168349Sobrien#! /bin/sh 268349Sobrien# Guess values for system-dependent variables and create Makefiles. 3302221Sdelphij# Generated by GNU Autoconf 2.69 for file 5.28. 468349Sobrien# 5186691Sobrien# Report bugs to <christos@astron.com>. 6186691Sobrien# 7234449Sobrien# 8267897Sdelphij# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9234449Sobrien# 10234449Sobrien# 1168349Sobrien# This configure script is free software; the Free Software Foundation 1268349Sobrien# gives unlimited permission to copy, distribute and modify it. 13234449Sobrien## -------------------- ## 14234449Sobrien## M4sh Initialization. ## 15234449Sobrien## -------------------- ## 16139368Sobrien 17175296Sobrien# Be more Bourne compatible 18175296SobrienDUALCASE=1; export DUALCASE # for MKS sh 19234449Sobrienif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20159764Sobrien emulate sh 21159764Sobrien NULLCMD=: 22234449Sobrien # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23159764Sobrien # is contrary to our usage. Disable this feature. 24159764Sobrien alias -g '${1+"$@"}'='"$@"' 25175296Sobrien setopt NO_GLOB_SUBST 26175296Sobrienelse 27234449Sobrien case `(set -o) 2>/dev/null` in #( 28234449Sobrien *posix*) : 29234449Sobrien set -o posix ;; #( 30234449Sobrien *) : 31234449Sobrien ;; 32175296Sobrienesac 33139368Sobrienfi 34139368Sobrien 35175296Sobrien 36234449Sobrienas_nl=' 37234449Sobrien' 38234449Sobrienexport as_nl 39234449Sobrien# Printing a long string crashes Solaris 7 /usr/bin/printf. 40234449Sobrienas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41234449Sobrienas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42234449Sobrienas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43234449Sobrien# Prefer a ksh shell builtin over an external printf program on Solaris, 44234449Sobrien# but without wasting forks for bash or zsh. 45234449Sobrienif test -z "$BASH_VERSION$ZSH_VERSION" \ 46234449Sobrien && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47234449Sobrien as_echo='print -r --' 48234449Sobrien as_echo_n='print -rn --' 49234449Sobrienelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50234449Sobrien as_echo='printf %s\n' 51234449Sobrien as_echo_n='printf %s' 52234449Sobrienelse 53234449Sobrien if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54234449Sobrien as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55234449Sobrien as_echo_n='/usr/ucb/echo -n' 56175296Sobrien else 57234449Sobrien as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58234449Sobrien as_echo_n_body='eval 59234449Sobrien arg=$1; 60234449Sobrien case $arg in #( 61234449Sobrien *"$as_nl"*) 62234449Sobrien expr "X$arg" : "X\\(.*\\)$as_nl"; 63234449Sobrien arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64234449Sobrien esac; 65234449Sobrien expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66234449Sobrien ' 67234449Sobrien export as_echo_n_body 68234449Sobrien as_echo_n='sh -c $as_echo_n_body as_echo' 69175296Sobrien fi 70234449Sobrien export as_echo_body 71234449Sobrien as_echo='sh -c $as_echo_body as_echo' 72175296Sobrienfi 73175296Sobrien 74234449Sobrien# The user is always right. 75234449Sobrienif test "${PATH_SEPARATOR+set}" != set; then 76234449Sobrien PATH_SEPARATOR=: 77234449Sobrien (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78234449Sobrien (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79234449Sobrien PATH_SEPARATOR=';' 80234449Sobrien } 81139368Sobrienfi 82139368Sobrien 83139368Sobrien 84175296Sobrien# IFS 85175296Sobrien# We need space, tab and new line, in precisely that order. Quoting is 86175296Sobrien# there to prevent editors from complaining about space-tab. 87175296Sobrien# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88175296Sobrien# splitting by setting IFS to empty value.) 89175296SobrienIFS=" "" $as_nl" 90175296Sobrien 91175296Sobrien# Find who we are. Look in the path if we contain no directory separator. 92234449Sobrienas_myself= 93234449Sobriencase $0 in #(( 94175296Sobrien *[\\/]* ) as_myself=$0 ;; 95175296Sobrien *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96175296Sobrienfor as_dir in $PATH 97175296Sobriendo 98175296Sobrien IFS=$as_save_IFS 99175296Sobrien test -z "$as_dir" && as_dir=. 100234449Sobrien test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101234449Sobrien done 102175296SobrienIFS=$as_save_IFS 103175296Sobrien 104175296Sobrien ;; 105175296Sobrienesac 106175296Sobrien# We did not find ourselves, most probably we were run as `sh COMMAND' 107175296Sobrien# in which case we are not to be found in the path. 108175296Sobrienif test "x$as_myself" = x; then 109175296Sobrien as_myself=$0 110175296Sobrienfi 111175296Sobrienif test ! -f "$as_myself"; then 112234449Sobrien $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113234449Sobrien exit 1 114175296Sobrienfi 115175296Sobrien 116234449Sobrien# Unset variables that we do not need and which cause bugs (e.g. in 117234449Sobrien# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118234449Sobrien# suppresses any "Segmentation fault" message there. '((' could 119234449Sobrien# trigger a bug in pdksh 5.2.14. 120234449Sobrienfor as_var in BASH_ENV ENV MAIL MAILPATH 121234449Sobriendo eval test x\${$as_var+set} = xset \ 122234449Sobrien && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123175296Sobriendone 124159764SobrienPS1='$ ' 125159764SobrienPS2='> ' 126159764SobrienPS4='+ ' 127139368Sobrien 128159764Sobrien# NLS nuisances. 129234449SobrienLC_ALL=C 130234449Sobrienexport LC_ALL 131234449SobrienLANGUAGE=C 132234449Sobrienexport LANGUAGE 133139368Sobrien 134175296Sobrien# CDPATH. 135234449Sobrien(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136159764Sobrien 137267897Sdelphij# Use a proper internal environment variable to ensure we don't fall 138267897Sdelphij # into an infinite loop, continuously re-executing ourselves. 139267897Sdelphij if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140267897Sdelphij _as_can_reexec=no; export _as_can_reexec; 141267897Sdelphij # We cannot yet assume a decent shell, so we have to provide a 142267897Sdelphij# neutralization value for shells without unset; and this also 143267897Sdelphij# works around shells that cannot unset nonexistent variables. 144267897Sdelphij# Preserve -v and -x to the replacement shell. 145267897SdelphijBASH_ENV=/dev/null 146267897SdelphijENV=/dev/null 147267897Sdelphij(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148267897Sdelphijcase $- in # (((( 149267897Sdelphij *v*x* | *x*v* ) as_opts=-vx ;; 150267897Sdelphij *v* ) as_opts=-v ;; 151267897Sdelphij *x* ) as_opts=-x ;; 152267897Sdelphij * ) as_opts= ;; 153267897Sdelphijesac 154267897Sdelphijexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155267897Sdelphij# Admittedly, this is quite paranoid, since all the known shells bail 156267897Sdelphij# out after a failed `exec'. 157267897Sdelphij$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158267897Sdelphijas_fn_exit 255 159267897Sdelphij fi 160267897Sdelphij # We don't want this to propagate to other subprocesses. 161267897Sdelphij { _as_can_reexec=; unset _as_can_reexec;} 162175296Sobrienif test "x$CONFIG_SHELL" = x; then 163234449Sobrien as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164234449Sobrien emulate sh 165234449Sobrien NULLCMD=: 166234449Sobrien # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167234449Sobrien # is contrary to our usage. Disable this feature. 168234449Sobrien alias -g '\${1+\"\$@\"}'='\"\$@\"' 169234449Sobrien setopt NO_GLOB_SUBST 170175296Sobrienelse 171234449Sobrien case \`(set -o) 2>/dev/null\` in #( 172234449Sobrien *posix*) : 173234449Sobrien set -o posix ;; #( 174234449Sobrien *) : 175234449Sobrien ;; 176234449Sobrienesac 177133359Sobrienfi 178234449Sobrien" 179234449Sobrien as_required="as_fn_return () { (exit \$1); } 180234449Sobrienas_fn_success () { as_fn_return 0; } 181234449Sobrienas_fn_failure () { as_fn_return 1; } 182234449Sobrienas_fn_ret_success () { return 0; } 183234449Sobrienas_fn_ret_failure () { return 1; } 184133359Sobrien 185175296Sobrienexitcode=0 186234449Sobrienas_fn_success || { exitcode=1; echo as_fn_success failed.; } 187234449Sobrienas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188234449Sobrienas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189234449Sobrienas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190234449Sobrienif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191133359Sobrien 192175296Sobrienelse 193234449Sobrien exitcode=1; echo positional parameters were not saved. 194175296Sobrienfi 195267897Sdelphijtest x\$exitcode = x0 || exit 1 196267897Sdelphijtest -x / || exit 1" 197234449Sobrien as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198234449Sobrien as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199234449Sobrien eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200234449Sobrien test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201267897Sdelphijtest \$(( 1 + 1 )) = 2 || exit 1 202267897Sdelphij 203267897Sdelphij test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204267897Sdelphij ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205267897Sdelphij ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206267897Sdelphij ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207267897Sdelphij PATH=/empty FPATH=/empty; export PATH FPATH 208267897Sdelphij test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209267897Sdelphij || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210234449Sobrien if (eval "$as_required") 2>/dev/null; then : 211234449Sobrien as_have_required=yes 212175296Sobrienelse 213234449Sobrien as_have_required=no 214175296Sobrienfi 215234449Sobrien if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216175296Sobrien 217175296Sobrienelse 218234449Sobrien as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219234449Sobrienas_found=false 220133359Sobrienfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221133359Sobriendo 222133359Sobrien IFS=$as_save_IFS 223133359Sobrien test -z "$as_dir" && as_dir=. 224234449Sobrien as_found=: 225234449Sobrien case $as_dir in #( 226133359Sobrien /*) 227175296Sobrien for as_base in sh bash ksh sh5; do 228234449Sobrien # Try only shells that exist, to save several forks. 229234449Sobrien as_shell=$as_dir/$as_base 230234449Sobrien if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231234449Sobrien { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232234449Sobrien CONFIG_SHELL=$as_shell as_have_required=yes 233234449Sobrien if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234234449Sobrien break 2 235234449Sobrienfi 236234449Sobrienfi 237175296Sobrien done;; 238175296Sobrien esac 239234449Sobrien as_found=false 240175296Sobriendone 241234449Sobrien$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242234449Sobrien { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243234449Sobrien CONFIG_SHELL=$SHELL as_have_required=yes 244234449Sobrienfi; } 245175296SobrienIFS=$as_save_IFS 246175296Sobrien 247175296Sobrien 248234449Sobrien if test "x$CONFIG_SHELL" != x; then : 249267897Sdelphij export CONFIG_SHELL 250267897Sdelphij # We cannot yet assume a decent shell, so we have to provide a 251267897Sdelphij# neutralization value for shells without unset; and this also 252267897Sdelphij# works around shells that cannot unset nonexistent variables. 253267897Sdelphij# Preserve -v and -x to the replacement shell. 254267897SdelphijBASH_ENV=/dev/null 255267897SdelphijENV=/dev/null 256267897Sdelphij(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257267897Sdelphijcase $- in # (((( 258267897Sdelphij *v*x* | *x*v* ) as_opts=-vx ;; 259267897Sdelphij *v* ) as_opts=-v ;; 260267897Sdelphij *x* ) as_opts=-x ;; 261267897Sdelphij * ) as_opts= ;; 262267897Sdelphijesac 263267897Sdelphijexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264267897Sdelphij# Admittedly, this is quite paranoid, since all the known shells bail 265267897Sdelphij# out after a failed `exec'. 266267897Sdelphij$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267267897Sdelphijexit 255 268175296Sobrienfi 269175296Sobrien 270234449Sobrien if test x$as_have_required = xno; then : 271234449Sobrien $as_echo "$0: This script requires a shell more modern than all" 272234449Sobrien $as_echo "$0: the shells that I found on your system." 273234449Sobrien if test x${ZSH_VERSION+set} = xset ; then 274234449Sobrien $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275234449Sobrien $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276234449Sobrien else 277234449Sobrien $as_echo "$0: Please tell bug-autoconf@gnu.org and 278234449Sobrien$0: christos@astron.com about your system, including any 279234449Sobrien$0: error possibly output before this message. Then install 280234449Sobrien$0: a modern shell, or manually run the script under such a 281234449Sobrien$0: shell if you do have one." 282234449Sobrien fi 283234449Sobrien exit 1 284175296Sobrienfi 285175296Sobrienfi 286175296Sobrienfi 287234449SobrienSHELL=${CONFIG_SHELL-/bin/sh} 288234449Sobrienexport SHELL 289234449Sobrien# Unset more variables known to interfere with behavior of common tools. 290234449SobrienCLICOLOR_FORCE= GREP_OPTIONS= 291234449Sobrienunset CLICOLOR_FORCE GREP_OPTIONS 292175296Sobrien 293234449Sobrien## --------------------- ## 294234449Sobrien## M4sh Shell Functions. ## 295234449Sobrien## --------------------- ## 296234449Sobrien# as_fn_unset VAR 297234449Sobrien# --------------- 298234449Sobrien# Portably unset VAR. 299234449Sobrienas_fn_unset () 300234449Sobrien{ 301234449Sobrien { eval $1=; unset $1;} 302234449Sobrien} 303234449Sobrienas_unset=as_fn_unset 304175296Sobrien 305234449Sobrien# as_fn_set_status STATUS 306234449Sobrien# ----------------------- 307234449Sobrien# Set $? to STATUS, without forking. 308234449Sobrienas_fn_set_status () 309234449Sobrien{ 310234449Sobrien return $1 311234449Sobrien} # as_fn_set_status 312175296Sobrien 313234449Sobrien# as_fn_exit STATUS 314234449Sobrien# ----------------- 315234449Sobrien# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316234449Sobrienas_fn_exit () 317234449Sobrien{ 318234449Sobrien set +e 319234449Sobrien as_fn_set_status $1 320234449Sobrien exit $1 321234449Sobrien} # as_fn_exit 322175296Sobrien 323234449Sobrien# as_fn_mkdir_p 324234449Sobrien# ------------- 325234449Sobrien# Create "$as_dir" as a directory, including parents if necessary. 326234449Sobrienas_fn_mkdir_p () 327234449Sobrien{ 328175296Sobrien 329234449Sobrien case $as_dir in #( 330234449Sobrien -*) as_dir=./$as_dir;; 331234449Sobrien esac 332234449Sobrien test -d "$as_dir" || eval $as_mkdir_p || { 333234449Sobrien as_dirs= 334234449Sobrien while :; do 335234449Sobrien case $as_dir in #( 336234449Sobrien *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337234449Sobrien *) as_qdir=$as_dir;; 338234449Sobrien esac 339234449Sobrien as_dirs="'$as_qdir' $as_dirs" 340234449Sobrien as_dir=`$as_dirname -- "$as_dir" || 341234449Sobrien$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342234449Sobrien X"$as_dir" : 'X\(//\)[^/]' \| \ 343234449Sobrien X"$as_dir" : 'X\(//\)$' \| \ 344234449Sobrien X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345234449Sobrien$as_echo X"$as_dir" | 346234449Sobrien sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347234449Sobrien s//\1/ 348234449Sobrien q 349234449Sobrien } 350234449Sobrien /^X\(\/\/\)[^/].*/{ 351234449Sobrien s//\1/ 352234449Sobrien q 353234449Sobrien } 354234449Sobrien /^X\(\/\/\)$/{ 355234449Sobrien s//\1/ 356234449Sobrien q 357234449Sobrien } 358234449Sobrien /^X\(\/\).*/{ 359234449Sobrien s//\1/ 360234449Sobrien q 361234449Sobrien } 362234449Sobrien s/.*/./; q'` 363234449Sobrien test -d "$as_dir" && break 364234449Sobrien done 365234449Sobrien test -z "$as_dirs" || eval "mkdir $as_dirs" 366234449Sobrien } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367133359Sobrien 368175296Sobrien 369234449Sobrien} # as_fn_mkdir_p 370267897Sdelphij 371267897Sdelphij# as_fn_executable_p FILE 372267897Sdelphij# ----------------------- 373267897Sdelphij# Test if FILE is an executable regular file. 374267897Sdelphijas_fn_executable_p () 375267897Sdelphij{ 376267897Sdelphij test -f "$1" && test -x "$1" 377267897Sdelphij} # as_fn_executable_p 378234449Sobrien# as_fn_append VAR VALUE 379234449Sobrien# ---------------------- 380234449Sobrien# Append the text in VALUE to the end of the definition contained in VAR. Take 381234449Sobrien# advantage of any shell optimizations that allow amortized linear growth over 382234449Sobrien# repeated appends, instead of the typical quadratic growth present in naive 383234449Sobrien# implementations. 384234449Sobrienif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385234449Sobrien eval 'as_fn_append () 386234449Sobrien { 387234449Sobrien eval $1+=\$2 388234449Sobrien }' 389234449Sobrienelse 390234449Sobrien as_fn_append () 391234449Sobrien { 392234449Sobrien eval $1=\$$1\$2 393234449Sobrien } 394234449Sobrienfi # as_fn_append 395175296Sobrien 396234449Sobrien# as_fn_arith ARG... 397234449Sobrien# ------------------ 398234449Sobrien# Perform arithmetic evaluation on the ARGs, and store the result in the 399234449Sobrien# global $as_val. Take advantage of shells that can avoid forks. The arguments 400234449Sobrien# must be portable across $(()) and expr. 401234449Sobrienif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402234449Sobrien eval 'as_fn_arith () 403234449Sobrien { 404234449Sobrien as_val=$(( $* )) 405234449Sobrien }' 406234449Sobrienelse 407234449Sobrien as_fn_arith () 408234449Sobrien { 409234449Sobrien as_val=`expr "$@" || test $? -eq 1` 410234449Sobrien } 411234449Sobrienfi # as_fn_arith 412175296Sobrien 413175296Sobrien 414234449Sobrien# as_fn_error STATUS ERROR [LINENO LOG_FD] 415234449Sobrien# ---------------------------------------- 416234449Sobrien# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417234449Sobrien# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418234449Sobrien# script with STATUS, using 1 if that was 0. 419234449Sobrienas_fn_error () 420234449Sobrien{ 421234449Sobrien as_status=$1; test $as_status -eq 0 && as_status=1 422234449Sobrien if test "$4"; then 423234449Sobrien as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425234449Sobrien fi 426234449Sobrien $as_echo "$as_me: error: $2" >&2 427234449Sobrien as_fn_exit $as_status 428234449Sobrien} # as_fn_error 429175296Sobrien 430234449Sobrienif expr a : '\(a\)' >/dev/null 2>&1 && 431234449Sobrien test "X`expr 00001 : '.*\(...\)'`" = X001; then 432234449Sobrien as_expr=expr 433175296Sobrienelse 434234449Sobrien as_expr=false 435175296Sobrienfi 436175296Sobrien 437234449Sobrienif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438234449Sobrien as_basename=basename 439175296Sobrienelse 440234449Sobrien as_basename=false 441175296Sobrienfi 442175296Sobrien 443234449Sobrienif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444234449Sobrien as_dirname=dirname 445175296Sobrienelse 446234449Sobrien as_dirname=false 447175296Sobrienfi 448175296Sobrien 449234449Sobrienas_me=`$as_basename -- "$0" || 450234449Sobrien$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451234449Sobrien X"$0" : 'X\(//\)$' \| \ 452234449Sobrien X"$0" : 'X\(/\)' \| . 2>/dev/null || 453234449Sobrien$as_echo X/"$0" | 454234449Sobrien sed '/^.*\/\([^/][^/]*\)\/*$/{ 455234449Sobrien s//\1/ 456234449Sobrien q 457234449Sobrien } 458234449Sobrien /^X\/\(\/\/\)$/{ 459234449Sobrien s//\1/ 460234449Sobrien q 461234449Sobrien } 462234449Sobrien /^X\/\(\/\).*/{ 463234449Sobrien s//\1/ 464234449Sobrien q 465234449Sobrien } 466234449Sobrien s/.*/./; q'` 467175296Sobrien 468234449Sobrien# Avoid depending upon Character Ranges. 469234449Sobrienas_cr_letters='abcdefghijklmnopqrstuvwxyz' 470234449Sobrienas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471234449Sobrienas_cr_Letters=$as_cr_letters$as_cr_LETTERS 472234449Sobrienas_cr_digits='0123456789' 473234449Sobrienas_cr_alnum=$as_cr_Letters$as_cr_digits 474175296Sobrien 475175296Sobrien 476234449Sobrien as_lineno_1=$LINENO as_lineno_1a=$LINENO 477234449Sobrien as_lineno_2=$LINENO as_lineno_2a=$LINENO 478234449Sobrien eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479234449Sobrien test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480234449Sobrien # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481175296Sobrien sed -n ' 482175296Sobrien p 483175296Sobrien /[$]LINENO/= 484175296Sobrien ' <$as_myself | 485133359Sobrien sed ' 486175296Sobrien s/[$]LINENO.*/&-/ 487175296Sobrien t lineno 488175296Sobrien b 489175296Sobrien :lineno 490133359Sobrien N 491175296Sobrien :loop 492175296Sobrien s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493133359Sobrien t loop 494175296Sobrien s/-\n.*// 495133359Sobrien ' >$as_me.lineno && 496175296Sobrien chmod +x "$as_me.lineno" || 497234449Sobrien { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498133359Sobrien 499267897Sdelphij # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500267897Sdelphij # already done that, so ensure we don't try to do so again and fall 501267897Sdelphij # in an infinite loop. This has already happened in practice. 502267897Sdelphij _as_can_reexec=no; export _as_can_reexec 503133359Sobrien # Don't try to exec as it changes $[0], causing all sort of problems 504133359Sobrien # (the dirname of $[0] is not the place where we might find the 505175296Sobrien # original and so on. Autoconf is especially sensitive to this). 506175296Sobrien . "./$as_me.lineno" 507133359Sobrien # Exit status is that of the last command. 508133359Sobrien exit 509133359Sobrien} 510133359Sobrien 511175296SobrienECHO_C= ECHO_N= ECHO_T= 512234449Sobriencase `echo -n x` in #((((( 513175296Sobrien-n*) 514234449Sobrien case `echo 'xy\c'` in 515175296Sobrien *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516234449Sobrien xy) ECHO_C='\c';; 517234449Sobrien *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518234449Sobrien ECHO_T=' ';; 519175296Sobrien esac;; 520175296Sobrien*) 521175296Sobrien ECHO_N='-n';; 522133359Sobrienesac 523133359Sobrien 524133359Sobrienrm -f conf$$ conf$$.exe conf$$.file 525175296Sobrienif test -d conf$$.dir; then 526175296Sobrien rm -f conf$$.dir/conf$$.file 527175296Sobrienelse 528175296Sobrien rm -f conf$$.dir 529234449Sobrien mkdir conf$$.dir 2>/dev/null 530175296Sobrienfi 531234449Sobrienif (echo >conf$$.file) 2>/dev/null; then 532234449Sobrien if ln -s conf$$.file conf$$ 2>/dev/null; then 533234449Sobrien as_ln_s='ln -s' 534234449Sobrien # ... but there are two gotchas: 535234449Sobrien # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536234449Sobrien # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537267897Sdelphij # In both cases, we have to default to `cp -pR'. 538234449Sobrien ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539267897Sdelphij as_ln_s='cp -pR' 540234449Sobrien elif ln conf$$.file conf$$ 2>/dev/null; then 541234449Sobrien as_ln_s=ln 542234449Sobrien else 543267897Sdelphij as_ln_s='cp -pR' 544234449Sobrien fi 545133359Sobrienelse 546267897Sdelphij as_ln_s='cp -pR' 547133359Sobrienfi 548175296Sobrienrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549175296Sobrienrmdir conf$$.dir 2>/dev/null 550133359Sobrien 551159764Sobrienif mkdir -p . 2>/dev/null; then 552234449Sobrien as_mkdir_p='mkdir -p "$as_dir"' 553159764Sobrienelse 554159764Sobrien test -d ./-p && rmdir ./-p 555159764Sobrien as_mkdir_p=false 556159764Sobrienfi 557159764Sobrien 558267897Sdelphijas_test_x='test -x' 559267897Sdelphijas_executable_p=as_fn_executable_p 560133359Sobrien 561133359Sobrien# Sed expression to map a string onto a valid CPP name. 562159764Sobrienas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563133359Sobrien 564133359Sobrien# Sed expression to map a string onto a valid variable name. 565159764Sobrienas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566133359Sobrien 567159764SobrienSHELL=${CONFIG_SHELL-/bin/sh} 568159764Sobrien 569159764Sobrien 570234449Sobrientest -n "$DJDIR" || exec 7<&0 </dev/null 571234449Sobrienexec 6>&1 572159764Sobrien 573133359Sobrien# Name of the host. 574234449Sobrien# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575133359Sobrien# so uname gets run too. 576133359Sobrienac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577133359Sobrien 578133359Sobrien# 579133359Sobrien# Initializations. 580133359Sobrien# 58168349Sobrienac_default_prefix=/usr/local 582175296Sobrienac_clean_files= 583159764Sobrienac_config_libobj_dir=. 584175296SobrienLIBOBJS= 585133359Sobriencross_compiling=no 586133359Sobriensubdirs= 587133359SobrienMFLAGS= 588133359SobrienMAKEFLAGS= 58968349Sobrien 590133359Sobrien# Identity of this package. 591186691SobrienPACKAGE_NAME='file' 592186691SobrienPACKAGE_TARNAME='file' 593302221SdelphijPACKAGE_VERSION='5.28' 594302221SdelphijPACKAGE_STRING='file 5.28' 595186691SobrienPACKAGE_BUGREPORT='christos@astron.com' 596234449SobrienPACKAGE_URL='' 597133359Sobrien 598133359Sobrien# Factoring default headers for most tests. 599133359Sobrienac_includes_default="\ 600133359Sobrien#include <stdio.h> 601175296Sobrien#ifdef HAVE_SYS_TYPES_H 602133359Sobrien# include <sys/types.h> 603133359Sobrien#endif 604175296Sobrien#ifdef HAVE_SYS_STAT_H 605133359Sobrien# include <sys/stat.h> 606133359Sobrien#endif 607175296Sobrien#ifdef STDC_HEADERS 608133359Sobrien# include <stdlib.h> 609133359Sobrien# include <stddef.h> 610133359Sobrien#else 611175296Sobrien# ifdef HAVE_STDLIB_H 612133359Sobrien# include <stdlib.h> 613133359Sobrien# endif 614133359Sobrien#endif 615175296Sobrien#ifdef HAVE_STRING_H 616175296Sobrien# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617133359Sobrien# include <memory.h> 618133359Sobrien# endif 619133359Sobrien# include <string.h> 620133359Sobrien#endif 621175296Sobrien#ifdef HAVE_STRINGS_H 622133359Sobrien# include <strings.h> 623133359Sobrien#endif 624175296Sobrien#ifdef HAVE_INTTYPES_H 625133359Sobrien# include <inttypes.h> 626133359Sobrien#endif 627175296Sobrien#ifdef HAVE_STDINT_H 628175296Sobrien# include <stdint.h> 629175296Sobrien#endif 630175296Sobrien#ifdef HAVE_UNISTD_H 631133359Sobrien# include <unistd.h> 632133359Sobrien#endif" 633133359Sobrien 634267897Sdelphijac_header_list= 635234449Sobrienac_subst_vars='am__EXEEXT_FALSE 636234449Sobrienam__EXEEXT_TRUE 637234449SobrienLTLIBOBJS 638234449SobrienIS_CROSS_COMPILE_FALSE 639234449SobrienIS_CROSS_COMPILE_TRUE 640234449SobrienLIBOBJS 641267897SdelphijHAVE_VISIBILITY 642267897SdelphijCFLAG_VISIBILITY 643234449SobrienOTOOL64 644234449SobrienOTOOL 645234449SobrienLIPO 646234449SobrienNMEDIT 647234449SobrienDSYMUTIL 648267897SdelphijMANIFEST_TOOL 649234449SobrienRANLIB 650267897Sdelphijac_ct_AR 651234449SobrienAR 652267897SdelphijDLLTOOL 653234449SobrienOBJDUMP 654234449SobrienNM 655234449Sobrienac_ct_DUMPBIN 656234449SobrienDUMPBIN 657234449SobrienLD 658234449SobrienFGREP 659234449SobrienSED 660234449SobrienLIBTOOL 661175296SobrienLN_S 662234449SobrienEGREP 663175296SobrienGREP 664175296SobrienCPP 665234449Sobrienam__fastdepCC_FALSE 666234449Sobrienam__fastdepCC_TRUE 667234449SobrienCCDEPMODE 668267897Sdelphijam__nodep 669234449SobrienAMDEPBACKSLASH 670234449SobrienAMDEP_FALSE 671234449SobrienAMDEP_TRUE 672234449Sobrienam__quote 673234449Sobrienam__include 674234449SobrienDEPDIR 675234449SobrienOBJEXT 676234449SobrienEXEEXT 677234449Sobrienac_ct_CC 678234449SobrienCPPFLAGS 679234449SobrienLDFLAGS 680234449SobrienCFLAGS 681234449SobrienCC 682234449SobrienWARNINGS 683234449SobrienFSECT5_FALSE 684234449SobrienFSECT5_TRUE 685234449Sobrienfsect 686234449Sobrienpkgdatadir 687234449SobrienMINGW_FALSE 688234449SobrienMINGW_TRUE 689234449SobrienMINGW 690234449Sobrienhost_os 691234449Sobrienhost_vendor 692234449Sobrienhost_cpu 693234449Sobrienhost 694234449Sobrienbuild_os 695234449Sobrienbuild_vendor 696234449Sobrienbuild_cpu 697234449Sobrienbuild 698234449SobrienAM_BACKSLASH 699234449SobrienAM_DEFAULT_VERBOSITY 700267897SdelphijAM_DEFAULT_V 701267897SdelphijAM_V 702234449Sobrienam__untar 703234449Sobrienam__tar 704234449SobrienAMTAR 705234449Sobrienam__leading_dot 706234449SobrienSET_MAKE 707234449SobrienAWK 708234449Sobrienmkdir_p 709234449SobrienMKDIR_P 710234449SobrienINSTALL_STRIP_PROGRAM 711234449SobrienSTRIP 712234449Sobrieninstall_sh 713234449SobrienMAKEINFO 714234449SobrienAUTOHEADER 715234449SobrienAUTOMAKE 716234449SobrienAUTOCONF 717234449SobrienACLOCAL 718234449SobrienVERSION 719234449SobrienPACKAGE 720234449SobrienCYGPATH_W 721234449Sobrienam__isrc 722234449SobrienINSTALL_DATA 723234449SobrienINSTALL_SCRIPT 724234449SobrienINSTALL_PROGRAM 725234449Sobrientarget_alias 726234449Sobrienhost_alias 727234449Sobrienbuild_alias 728234449SobrienLIBS 729234449SobrienECHO_T 730234449SobrienECHO_N 731234449SobrienECHO_C 732234449SobrienDEFS 733234449Sobrienmandir 734234449Sobrienlocaledir 735234449Sobrienlibdir 736234449Sobrienpsdir 737234449Sobrienpdfdir 738234449Sobriendvidir 739234449Sobrienhtmldir 740234449Sobrieninfodir 741234449Sobriendocdir 742234449Sobrienoldincludedir 743234449Sobrienincludedir 744234449Sobrienlocalstatedir 745234449Sobriensharedstatedir 746234449Sobriensysconfdir 747234449Sobriendatadir 748234449Sobriendatarootdir 749234449Sobrienlibexecdir 750234449Sobriensbindir 751234449Sobrienbindir 752234449Sobrienprogram_transform_name 753234449Sobrienprefix 754234449Sobrienexec_prefix 755234449SobrienPACKAGE_URL 756234449SobrienPACKAGE_BUGREPORT 757234449SobrienPACKAGE_STRING 758234449SobrienPACKAGE_VERSION 759234449SobrienPACKAGE_TARNAME 760234449SobrienPACKAGE_NAME 761234449SobrienPATH_SEPARATOR 762234449SobrienSHELL' 763159764Sobrienac_subst_files='' 764234449Sobrienac_user_opts=' 765234449Sobrienenable_option_checking 766234449Sobrienenable_silent_rules 767234449Sobrienenable_elf 768234449Sobrienenable_elf_core 769302221Sdelphijenable_zlib 770234449Sobrienenable_fsect_man5 771234449Sobrienenable_dependency_tracking 772234449Sobrienenable_static 773234449Sobrienwith_pic 774267897Sdelphijenable_shared 775234449Sobrienenable_fast_install 776234449Sobrienwith_gnu_ld 777267897Sdelphijwith_sysroot 778234449Sobrienenable_libtool_lock 779234449Sobrienenable_largefile 780234449Sobrienenable_warnings 781234449Sobrien' 782175296Sobrien ac_precious_vars='build_alias 783175296Sobrienhost_alias 784175296Sobrientarget_alias 785175296SobrienCC 786175296SobrienCFLAGS 787175296SobrienLDFLAGS 788175296SobrienLIBS 789175296SobrienCPPFLAGS 790234449SobrienCPP' 791133359Sobrien 792175296Sobrien 79368349Sobrien# Initialize some variables set by options. 794133359Sobrienac_init_help= 795133359Sobrienac_init_version=false 796234449Sobrienac_unrecognized_opts= 797234449Sobrienac_unrecognized_sep= 79868349Sobrien# The variables have the same names as the options, with 79968349Sobrien# dashes changed to underlines. 800133359Sobriencache_file=/dev/null 80168349Sobrienexec_prefix=NONE 80268349Sobrienno_create= 80368349Sobrienno_recursion= 80468349Sobrienprefix=NONE 80568349Sobrienprogram_prefix=NONE 80668349Sobrienprogram_suffix=NONE 80768349Sobrienprogram_transform_name=s,x,x, 80868349Sobriensilent= 80968349Sobriensite= 81068349Sobriensrcdir= 81168349Sobrienverbose= 81268349Sobrienx_includes=NONE 81368349Sobrienx_libraries=NONE 814133359Sobrien 815133359Sobrien# Installation directory options. 816133359Sobrien# These are left unexpanded so users can "make install exec_prefix=/foo" 817133359Sobrien# and all the variables that are supposed to be based on exec_prefix 818133359Sobrien# by default will actually change. 819133359Sobrien# Use braces instead of parens because sh, perl, etc. also accept them. 820175296Sobrien# (The list follows the same order as the GNU Coding Standards.) 82168349Sobrienbindir='${exec_prefix}/bin' 82268349Sobriensbindir='${exec_prefix}/sbin' 82368349Sobrienlibexecdir='${exec_prefix}/libexec' 824175296Sobriendatarootdir='${prefix}/share' 825175296Sobriendatadir='${datarootdir}' 82668349Sobriensysconfdir='${prefix}/etc' 82768349Sobriensharedstatedir='${prefix}/com' 82868349Sobrienlocalstatedir='${prefix}/var' 82968349Sobrienincludedir='${prefix}/include' 83068349Sobrienoldincludedir='/usr/include' 831186691Sobriendocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 832175296Sobrieninfodir='${datarootdir}/info' 833175296Sobrienhtmldir='${docdir}' 834175296Sobriendvidir='${docdir}' 835175296Sobrienpdfdir='${docdir}' 836175296Sobrienpsdir='${docdir}' 837175296Sobrienlibdir='${exec_prefix}/lib' 838175296Sobrienlocaledir='${datarootdir}/locale' 839175296Sobrienmandir='${datarootdir}/man' 84068349Sobrien 84168349Sobrienac_prev= 842175296Sobrienac_dashdash= 84368349Sobrienfor ac_option 84468349Sobriendo 84568349Sobrien # If the previous option needs an argument, assign it. 84668349Sobrien if test -n "$ac_prev"; then 847175296Sobrien eval $ac_prev=\$ac_option 84868349Sobrien ac_prev= 84968349Sobrien continue 85068349Sobrien fi 85168349Sobrien 852175296Sobrien case $ac_option in 853234449Sobrien *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 854234449Sobrien *=) ac_optarg= ;; 855234449Sobrien *) ac_optarg=yes ;; 856175296Sobrien esac 85768349Sobrien 85868349Sobrien # Accept the important Cygnus configure options, so we can diagnose typos. 85968349Sobrien 860175296Sobrien case $ac_dashdash$ac_option in 861175296Sobrien --) 862175296Sobrien ac_dashdash=yes ;; 86368349Sobrien 86468349Sobrien -bindir | --bindir | --bindi | --bind | --bin | --bi) 86568349Sobrien ac_prev=bindir ;; 86668349Sobrien -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 867133359Sobrien bindir=$ac_optarg ;; 86868349Sobrien 86968349Sobrien -build | --build | --buil | --bui | --bu) 870133359Sobrien ac_prev=build_alias ;; 87168349Sobrien -build=* | --build=* | --buil=* | --bui=* | --bu=*) 872133359Sobrien build_alias=$ac_optarg ;; 87368349Sobrien 87468349Sobrien -cache-file | --cache-file | --cache-fil | --cache-fi \ 87568349Sobrien | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 87668349Sobrien ac_prev=cache_file ;; 87768349Sobrien -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 87868349Sobrien | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 879133359Sobrien cache_file=$ac_optarg ;; 88068349Sobrien 881133359Sobrien --config-cache | -C) 882133359Sobrien cache_file=config.cache ;; 883133359Sobrien 884175296Sobrien -datadir | --datadir | --datadi | --datad) 88568349Sobrien ac_prev=datadir ;; 886175296Sobrien -datadir=* | --datadir=* | --datadi=* | --datad=*) 887133359Sobrien datadir=$ac_optarg ;; 88868349Sobrien 889175296Sobrien -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 890175296Sobrien | --dataroo | --dataro | --datar) 891175296Sobrien ac_prev=datarootdir ;; 892175296Sobrien -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 893175296Sobrien | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 894175296Sobrien datarootdir=$ac_optarg ;; 895175296Sobrien 89668349Sobrien -disable-* | --disable-*) 897234449Sobrien ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 89868349Sobrien # Reject names that are not valid shell variable names. 899234449Sobrien expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 900234449Sobrien as_fn_error $? "invalid feature name: $ac_useropt" 901234449Sobrien ac_useropt_orig=$ac_useropt 902234449Sobrien ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 903234449Sobrien case $ac_user_opts in 904234449Sobrien *" 905234449Sobrien"enable_$ac_useropt" 906234449Sobrien"*) ;; 907234449Sobrien *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 908234449Sobrien ac_unrecognized_sep=', ';; 909234449Sobrien esac 910234449Sobrien eval enable_$ac_useropt=no ;; 91168349Sobrien 912175296Sobrien -docdir | --docdir | --docdi | --doc | --do) 913175296Sobrien ac_prev=docdir ;; 914175296Sobrien -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 915175296Sobrien docdir=$ac_optarg ;; 916175296Sobrien 917175296Sobrien -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 918175296Sobrien ac_prev=dvidir ;; 919175296Sobrien -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 920175296Sobrien dvidir=$ac_optarg ;; 921175296Sobrien 92268349Sobrien -enable-* | --enable-*) 923234449Sobrien ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 92468349Sobrien # Reject names that are not valid shell variable names. 925234449Sobrien expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926234449Sobrien as_fn_error $? "invalid feature name: $ac_useropt" 927234449Sobrien ac_useropt_orig=$ac_useropt 928234449Sobrien ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 929234449Sobrien case $ac_user_opts in 930234449Sobrien *" 931234449Sobrien"enable_$ac_useropt" 932234449Sobrien"*) ;; 933234449Sobrien *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 934234449Sobrien ac_unrecognized_sep=', ';; 935234449Sobrien esac 936234449Sobrien eval enable_$ac_useropt=\$ac_optarg ;; 93768349Sobrien 93868349Sobrien -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 93968349Sobrien | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 94068349Sobrien | --exec | --exe | --ex) 94168349Sobrien ac_prev=exec_prefix ;; 94268349Sobrien -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 94368349Sobrien | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 94468349Sobrien | --exec=* | --exe=* | --ex=*) 945133359Sobrien exec_prefix=$ac_optarg ;; 94668349Sobrien 94768349Sobrien -gas | --gas | --ga | --g) 94868349Sobrien # Obsolete; use --with-gas. 94968349Sobrien with_gas=yes ;; 95068349Sobrien 951133359Sobrien -help | --help | --hel | --he | -h) 952133359Sobrien ac_init_help=long ;; 953133359Sobrien -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 954133359Sobrien ac_init_help=recursive ;; 955133359Sobrien -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 956133359Sobrien ac_init_help=short ;; 95768349Sobrien 95868349Sobrien -host | --host | --hos | --ho) 959133359Sobrien ac_prev=host_alias ;; 96068349Sobrien -host=* | --host=* | --hos=* | --ho=*) 961133359Sobrien host_alias=$ac_optarg ;; 96268349Sobrien 963175296Sobrien -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 964175296Sobrien ac_prev=htmldir ;; 965175296Sobrien -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 966175296Sobrien | --ht=*) 967175296Sobrien htmldir=$ac_optarg ;; 968175296Sobrien 96968349Sobrien -includedir | --includedir | --includedi | --included | --include \ 97068349Sobrien | --includ | --inclu | --incl | --inc) 97168349Sobrien ac_prev=includedir ;; 97268349Sobrien -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 97368349Sobrien | --includ=* | --inclu=* | --incl=* | --inc=*) 974133359Sobrien includedir=$ac_optarg ;; 97568349Sobrien 97668349Sobrien -infodir | --infodir | --infodi | --infod | --info | --inf) 97768349Sobrien ac_prev=infodir ;; 97868349Sobrien -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 979133359Sobrien infodir=$ac_optarg ;; 98068349Sobrien 98168349Sobrien -libdir | --libdir | --libdi | --libd) 98268349Sobrien ac_prev=libdir ;; 98368349Sobrien -libdir=* | --libdir=* | --libdi=* | --libd=*) 984133359Sobrien libdir=$ac_optarg ;; 98568349Sobrien 98668349Sobrien -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 98768349Sobrien | --libexe | --libex | --libe) 98868349Sobrien ac_prev=libexecdir ;; 98968349Sobrien -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 99068349Sobrien | --libexe=* | --libex=* | --libe=*) 991133359Sobrien libexecdir=$ac_optarg ;; 99268349Sobrien 993175296Sobrien -localedir | --localedir | --localedi | --localed | --locale) 994175296Sobrien ac_prev=localedir ;; 995175296Sobrien -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 996175296Sobrien localedir=$ac_optarg ;; 997175296Sobrien 99868349Sobrien -localstatedir | --localstatedir | --localstatedi | --localstated \ 999175296Sobrien | --localstate | --localstat | --localsta | --localst | --locals) 100068349Sobrien ac_prev=localstatedir ;; 100168349Sobrien -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1002175296Sobrien | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1003133359Sobrien localstatedir=$ac_optarg ;; 100468349Sobrien 100568349Sobrien -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 100668349Sobrien ac_prev=mandir ;; 100768349Sobrien -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1008133359Sobrien mandir=$ac_optarg ;; 100968349Sobrien 101068349Sobrien -nfp | --nfp | --nf) 101168349Sobrien # Obsolete; use --without-fp. 101268349Sobrien with_fp=no ;; 101368349Sobrien 101468349Sobrien -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1015133359Sobrien | --no-cr | --no-c | -n) 101668349Sobrien no_create=yes ;; 101768349Sobrien 101868349Sobrien -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 101968349Sobrien | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 102068349Sobrien no_recursion=yes ;; 102168349Sobrien 102268349Sobrien -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 102368349Sobrien | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 102468349Sobrien | --oldin | --oldi | --old | --ol | --o) 102568349Sobrien ac_prev=oldincludedir ;; 102668349Sobrien -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 102768349Sobrien | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 102868349Sobrien | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1029133359Sobrien oldincludedir=$ac_optarg ;; 103068349Sobrien 103168349Sobrien -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 103268349Sobrien ac_prev=prefix ;; 103368349Sobrien -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1034133359Sobrien prefix=$ac_optarg ;; 103568349Sobrien 103668349Sobrien -program-prefix | --program-prefix | --program-prefi | --program-pref \ 103768349Sobrien | --program-pre | --program-pr | --program-p) 103868349Sobrien ac_prev=program_prefix ;; 103968349Sobrien -program-prefix=* | --program-prefix=* | --program-prefi=* \ 104068349Sobrien | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1041133359Sobrien program_prefix=$ac_optarg ;; 104268349Sobrien 104368349Sobrien -program-suffix | --program-suffix | --program-suffi | --program-suff \ 104468349Sobrien | --program-suf | --program-su | --program-s) 104568349Sobrien ac_prev=program_suffix ;; 104668349Sobrien -program-suffix=* | --program-suffix=* | --program-suffi=* \ 104768349Sobrien | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1048133359Sobrien program_suffix=$ac_optarg ;; 104968349Sobrien 105068349Sobrien -program-transform-name | --program-transform-name \ 105168349Sobrien | --program-transform-nam | --program-transform-na \ 105268349Sobrien | --program-transform-n | --program-transform- \ 105368349Sobrien | --program-transform | --program-transfor \ 105468349Sobrien | --program-transfo | --program-transf \ 105568349Sobrien | --program-trans | --program-tran \ 105668349Sobrien | --progr-tra | --program-tr | --program-t) 105768349Sobrien ac_prev=program_transform_name ;; 105868349Sobrien -program-transform-name=* | --program-transform-name=* \ 105968349Sobrien | --program-transform-nam=* | --program-transform-na=* \ 106068349Sobrien | --program-transform-n=* | --program-transform-=* \ 106168349Sobrien | --program-transform=* | --program-transfor=* \ 106268349Sobrien | --program-transfo=* | --program-transf=* \ 106368349Sobrien | --program-trans=* | --program-tran=* \ 106468349Sobrien | --progr-tra=* | --program-tr=* | --program-t=*) 1065133359Sobrien program_transform_name=$ac_optarg ;; 106668349Sobrien 1067175296Sobrien -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1068175296Sobrien ac_prev=pdfdir ;; 1069175296Sobrien -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1070175296Sobrien pdfdir=$ac_optarg ;; 1071175296Sobrien 1072175296Sobrien -psdir | --psdir | --psdi | --psd | --ps) 1073175296Sobrien ac_prev=psdir ;; 1074175296Sobrien -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1075175296Sobrien psdir=$ac_optarg ;; 1076175296Sobrien 107768349Sobrien -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 107868349Sobrien | -silent | --silent | --silen | --sile | --sil) 107968349Sobrien silent=yes ;; 108068349Sobrien 108168349Sobrien -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 108268349Sobrien ac_prev=sbindir ;; 108368349Sobrien -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 108468349Sobrien | --sbi=* | --sb=*) 1085133359Sobrien sbindir=$ac_optarg ;; 108668349Sobrien 108768349Sobrien -sharedstatedir | --sharedstatedir | --sharedstatedi \ 108868349Sobrien | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 108968349Sobrien | --sharedst | --shareds | --shared | --share | --shar \ 109068349Sobrien | --sha | --sh) 109168349Sobrien ac_prev=sharedstatedir ;; 109268349Sobrien -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 109368349Sobrien | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 109468349Sobrien | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 109568349Sobrien | --sha=* | --sh=*) 1096133359Sobrien sharedstatedir=$ac_optarg ;; 109768349Sobrien 109868349Sobrien -site | --site | --sit) 109968349Sobrien ac_prev=site ;; 110068349Sobrien -site=* | --site=* | --sit=*) 1101133359Sobrien site=$ac_optarg ;; 110268349Sobrien 110368349Sobrien -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 110468349Sobrien ac_prev=srcdir ;; 110568349Sobrien -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1106133359Sobrien srcdir=$ac_optarg ;; 110768349Sobrien 110868349Sobrien -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 110968349Sobrien | --syscon | --sysco | --sysc | --sys | --sy) 111068349Sobrien ac_prev=sysconfdir ;; 111168349Sobrien -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 111268349Sobrien | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1113133359Sobrien sysconfdir=$ac_optarg ;; 111468349Sobrien 111568349Sobrien -target | --target | --targe | --targ | --tar | --ta | --t) 1116133359Sobrien ac_prev=target_alias ;; 111768349Sobrien -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1118133359Sobrien target_alias=$ac_optarg ;; 111968349Sobrien 112068349Sobrien -v | -verbose | --verbose | --verbos | --verbo | --verb) 112168349Sobrien verbose=yes ;; 112268349Sobrien 1123133359Sobrien -version | --version | --versio | --versi | --vers | -V) 1124133359Sobrien ac_init_version=: ;; 112568349Sobrien 112668349Sobrien -with-* | --with-*) 1127234449Sobrien ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 112868349Sobrien # Reject names that are not valid shell variable names. 1129234449Sobrien expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1130234449Sobrien as_fn_error $? "invalid package name: $ac_useropt" 1131234449Sobrien ac_useropt_orig=$ac_useropt 1132234449Sobrien ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1133234449Sobrien case $ac_user_opts in 1134234449Sobrien *" 1135234449Sobrien"with_$ac_useropt" 1136234449Sobrien"*) ;; 1137234449Sobrien *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1138234449Sobrien ac_unrecognized_sep=', ';; 1139234449Sobrien esac 1140234449Sobrien eval with_$ac_useropt=\$ac_optarg ;; 114168349Sobrien 114268349Sobrien -without-* | --without-*) 1143234449Sobrien ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 114468349Sobrien # Reject names that are not valid shell variable names. 1145234449Sobrien expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146234449Sobrien as_fn_error $? "invalid package name: $ac_useropt" 1147234449Sobrien ac_useropt_orig=$ac_useropt 1148234449Sobrien ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1149234449Sobrien case $ac_user_opts in 1150234449Sobrien *" 1151234449Sobrien"with_$ac_useropt" 1152234449Sobrien"*) ;; 1153234449Sobrien *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1154234449Sobrien ac_unrecognized_sep=', ';; 1155234449Sobrien esac 1156234449Sobrien eval with_$ac_useropt=no ;; 115768349Sobrien 115868349Sobrien --x) 115968349Sobrien # Obsolete; use --with-x. 116068349Sobrien with_x=yes ;; 116168349Sobrien 116268349Sobrien -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 116368349Sobrien | --x-incl | --x-inc | --x-in | --x-i) 116468349Sobrien ac_prev=x_includes ;; 116568349Sobrien -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 116668349Sobrien | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1167133359Sobrien x_includes=$ac_optarg ;; 116868349Sobrien 116968349Sobrien -x-libraries | --x-libraries | --x-librarie | --x-librari \ 117068349Sobrien | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 117168349Sobrien ac_prev=x_libraries ;; 117268349Sobrien -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 117368349Sobrien | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1174133359Sobrien x_libraries=$ac_optarg ;; 117568349Sobrien 1176234449Sobrien -*) as_fn_error $? "unrecognized option: \`$ac_option' 1177234449SobrienTry \`$0 --help' for more information" 117868349Sobrien ;; 117968349Sobrien 1180133359Sobrien *=*) 1181133359Sobrien ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1182133359Sobrien # Reject names that are not valid shell variable names. 1183234449Sobrien case $ac_envvar in #( 1184234449Sobrien '' | [0-9]* | *[!_$as_cr_alnum]* ) 1185234449Sobrien as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1186234449Sobrien esac 1187175296Sobrien eval $ac_envvar=\$ac_optarg 1188133359Sobrien export $ac_envvar ;; 1189133359Sobrien 119068349Sobrien *) 1191133359Sobrien # FIXME: should be removed in autoconf 3.0. 1192234449Sobrien $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1193133359Sobrien expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1194234449Sobrien $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1195234449Sobrien : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 119668349Sobrien ;; 119768349Sobrien 119868349Sobrien esac 119968349Sobriendone 120068349Sobrien 120168349Sobrienif test -n "$ac_prev"; then 1202133359Sobrien ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1203234449Sobrien as_fn_error $? "missing argument to $ac_option" 120468349Sobrienfi 120568349Sobrien 1206234449Sobrienif test -n "$ac_unrecognized_opts"; then 1207234449Sobrien case $enable_option_checking in 1208234449Sobrien no) ;; 1209234449Sobrien fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1210234449Sobrien *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1211234449Sobrien esac 1212234449Sobrienfi 1213234449Sobrien 1214234449Sobrien# Check all directory arguments for consistency. 1215175296Sobrienfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1216175296Sobrien datadir sysconfdir sharedstatedir localstatedir includedir \ 1217175296Sobrien oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1218175296Sobrien libdir localedir mandir 1219133359Sobriendo 1220175296Sobrien eval ac_val=\$$ac_var 1221234449Sobrien # Remove trailing slashes. 1222133359Sobrien case $ac_val in 1223234449Sobrien */ ) 1224234449Sobrien ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1225234449Sobrien eval $ac_var=\$ac_val;; 1226234449Sobrien esac 1227234449Sobrien # Be sure to have absolute directory names. 1228234449Sobrien case $ac_val in 1229175296Sobrien [\\/$]* | ?:[\\/]* ) continue;; 1230175296Sobrien NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1231133359Sobrien esac 1232234449Sobrien as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1233133359Sobriendone 123468349Sobrien 1235133359Sobrien# There might be people who depend on the old broken behavior: `$host' 1236133359Sobrien# used to hold the argument of --host etc. 1237133359Sobrien# FIXME: To remove some day. 1238133359Sobrienbuild=$build_alias 1239133359Sobrienhost=$host_alias 1240133359Sobrientarget=$target_alias 124168349Sobrien 1242133359Sobrien# FIXME: To remove some day. 1243133359Sobrienif test "x$host_alias" != x; then 1244133359Sobrien if test "x$build_alias" = x; then 1245133359Sobrien cross_compiling=maybe 1246133359Sobrien elif test "x$build_alias" != "x$host_alias"; then 1247133359Sobrien cross_compiling=yes 1248133359Sobrien fi 1249133359Sobrienfi 125068349Sobrien 1251133359Sobrienac_tool_prefix= 1252133359Sobrientest -n "$host_alias" && ac_tool_prefix=$host_alias- 125368349Sobrien 1254133359Sobrientest "$silent" = yes && exec 6>/dev/null 1255133359Sobrien 1256133359Sobrien 1257175296Sobrienac_pwd=`pwd` && test -n "$ac_pwd" && 1258175296Sobrienac_ls_di=`ls -di .` && 1259175296Sobrienac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1260234449Sobrien as_fn_error $? "working directory cannot be determined" 1261175296Sobrientest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1262234449Sobrien as_fn_error $? "pwd does not report name of working directory" 1263175296Sobrien 1264175296Sobrien 126568349Sobrien# Find the source files, if location was not specified. 126668349Sobrienif test -z "$srcdir"; then 126768349Sobrien ac_srcdir_defaulted=yes 1268175296Sobrien # Try the directory containing this script, then the parent directory. 1269234449Sobrien ac_confdir=`$as_dirname -- "$as_myself" || 1270234449Sobrien$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1271234449Sobrien X"$as_myself" : 'X\(//\)[^/]' \| \ 1272234449Sobrien X"$as_myself" : 'X\(//\)$' \| \ 1273234449Sobrien X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1274234449Sobrien$as_echo X"$as_myself" | 1275175296Sobrien sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1276175296Sobrien s//\1/ 1277175296Sobrien q 1278175296Sobrien } 1279175296Sobrien /^X\(\/\/\)[^/].*/{ 1280175296Sobrien s//\1/ 1281175296Sobrien q 1282175296Sobrien } 1283175296Sobrien /^X\(\/\/\)$/{ 1284175296Sobrien s//\1/ 1285175296Sobrien q 1286175296Sobrien } 1287175296Sobrien /^X\(\/\).*/{ 1288175296Sobrien s//\1/ 1289175296Sobrien q 1290175296Sobrien } 1291175296Sobrien s/.*/./; q'` 129268349Sobrien srcdir=$ac_confdir 1293175296Sobrien if test ! -r "$srcdir/$ac_unique_file"; then 129468349Sobrien srcdir=.. 129568349Sobrien fi 129668349Sobrienelse 129768349Sobrien ac_srcdir_defaulted=no 129868349Sobrienfi 1299175296Sobrienif test ! -r "$srcdir/$ac_unique_file"; then 1300175296Sobrien test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1301234449Sobrien as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1302175296Sobrienfi 1303175296Sobrienac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1304175296Sobrienac_abs_confdir=`( 1305234449Sobrien cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1306175296Sobrien pwd)` 1307175296Sobrien# When building in place, set srcdir=. 1308175296Sobrienif test "$ac_abs_confdir" = "$ac_pwd"; then 1309175296Sobrien srcdir=. 131068349Sobrienfi 1311175296Sobrien# Remove unnecessary trailing slashes from srcdir. 1312175296Sobrien# Double slashes in file names in object file debugging info 1313175296Sobrien# mess up M-x gdb in Emacs. 1314175296Sobriencase $srcdir in 1315175296Sobrien*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1316175296Sobrienesac 1317175296Sobrienfor ac_var in $ac_precious_vars; do 1318175296Sobrien eval ac_env_${ac_var}_set=\${${ac_var}+set} 1319175296Sobrien eval ac_env_${ac_var}_value=\$${ac_var} 1320175296Sobrien eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1321175296Sobrien eval ac_cv_env_${ac_var}_value=\$${ac_var} 1322175296Sobriendone 132368349Sobrien 1324133359Sobrien# 1325133359Sobrien# Report the --help message. 1326133359Sobrien# 1327133359Sobrienif test "$ac_init_help" = "long"; then 1328133359Sobrien # Omit some internal or obsolete options to make the list less imposing. 1329133359Sobrien # This message is too long to be a string in the A/UX 3.1 sh. 1330133359Sobrien cat <<_ACEOF 1331302221Sdelphij\`configure' configures file 5.28 to adapt to many kinds of systems. 1332133359Sobrien 1333133359SobrienUsage: $0 [OPTION]... [VAR=VALUE]... 1334133359Sobrien 1335133359SobrienTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1336133359SobrienVAR=VALUE. See below for descriptions of some of the useful variables. 1337133359Sobrien 1338133359SobrienDefaults for the options are specified in brackets. 1339133359Sobrien 1340133359SobrienConfiguration: 1341133359Sobrien -h, --help display this help and exit 1342133359Sobrien --help=short display options specific to this package 1343133359Sobrien --help=recursive display the short help of all the included packages 1344133359Sobrien -V, --version display version information and exit 1345234449Sobrien -q, --quiet, --silent do not print \`checking ...' messages 1346133359Sobrien --cache-file=FILE cache test results in FILE [disabled] 1347133359Sobrien -C, --config-cache alias for \`--cache-file=config.cache' 1348133359Sobrien -n, --no-create do not create output files 1349133359Sobrien --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1350133359Sobrien 1351133359SobrienInstallation directories: 1352133359Sobrien --prefix=PREFIX install architecture-independent files in PREFIX 1353234449Sobrien [$ac_default_prefix] 1354133359Sobrien --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1355234449Sobrien [PREFIX] 1356133359Sobrien 1357133359SobrienBy default, \`make install' will install all the files in 1358133359Sobrien\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1359133359Sobrienan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1360133359Sobrienfor instance \`--prefix=\$HOME'. 1361133359Sobrien 1362133359SobrienFor better control, use the options below. 1363133359Sobrien 1364133359SobrienFine tuning of the installation directories: 1365234449Sobrien --bindir=DIR user executables [EPREFIX/bin] 1366234449Sobrien --sbindir=DIR system admin executables [EPREFIX/sbin] 1367234449Sobrien --libexecdir=DIR program executables [EPREFIX/libexec] 1368234449Sobrien --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1369234449Sobrien --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1370234449Sobrien --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1371234449Sobrien --libdir=DIR object code libraries [EPREFIX/lib] 1372234449Sobrien --includedir=DIR C header files [PREFIX/include] 1373234449Sobrien --oldincludedir=DIR C header files for non-gcc [/usr/include] 1374234449Sobrien --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1375234449Sobrien --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1376234449Sobrien --infodir=DIR info documentation [DATAROOTDIR/info] 1377234449Sobrien --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1378234449Sobrien --mandir=DIR man documentation [DATAROOTDIR/man] 1379234449Sobrien --docdir=DIR documentation root [DATAROOTDIR/doc/file] 1380234449Sobrien --htmldir=DIR html documentation [DOCDIR] 1381234449Sobrien --dvidir=DIR dvi documentation [DOCDIR] 1382234449Sobrien --pdfdir=DIR pdf documentation [DOCDIR] 1383234449Sobrien --psdir=DIR ps documentation [DOCDIR] 1384133359Sobrien_ACEOF 1385133359Sobrien 1386133359Sobrien cat <<\_ACEOF 1387133359Sobrien 1388133359SobrienProgram names: 1389133359Sobrien --program-prefix=PREFIX prepend PREFIX to installed program names 1390133359Sobrien --program-suffix=SUFFIX append SUFFIX to installed program names 1391133359Sobrien --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1392133359Sobrien 1393133359SobrienSystem types: 1394133359Sobrien --build=BUILD configure for building on BUILD [guessed] 1395133359Sobrien --host=HOST cross-compile to build programs to run on HOST [BUILD] 1396133359Sobrien_ACEOF 1397133359Sobrienfi 1398133359Sobrien 1399133359Sobrienif test -n "$ac_init_help"; then 1400186691Sobrien case $ac_init_help in 1401302221Sdelphij short | recursive ) echo "Configuration of file 5.28:";; 1402186691Sobrien esac 1403133359Sobrien cat <<\_ACEOF 1404133359Sobrien 1405133359SobrienOptional Features: 1406234449Sobrien --disable-option-checking ignore unrecognized --enable/--with options 1407133359Sobrien --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1408133359Sobrien --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1409267897Sdelphij --enable-silent-rules less verbose build output (undo: "make V=1") 1410267897Sdelphij --disable-silent-rules verbose build output (undo: "make V=0") 1411133359Sobrien --disable-elf disable builtin ELF support 1412133359Sobrien --disable-elf-core disable ELF core file support 1413302221Sdelphij --disable-zlib disable zlib compression support [default=auto] 1414133359Sobrien --enable-fsect-man5 enable file formats in man section 5 1415267897Sdelphij --enable-dependency-tracking 1416267897Sdelphij do not reject slow dependency extractors 1417267897Sdelphij --disable-dependency-tracking 1418267897Sdelphij speeds up one-time build 1419267897Sdelphij --enable-static[=PKGS] build static libraries [default=no] 1420175296Sobrien --enable-shared[=PKGS] build shared libraries [default=yes] 1421159764Sobrien --enable-fast-install[=PKGS] 1422159764Sobrien optimize for fast installation [default=yes] 1423133359Sobrien --disable-libtool-lock avoid locking (might break parallel builds) 1424133359Sobrien --disable-largefile omit support for large files 1425186691Sobrien --disable-warnings disable compiler warnings 1426133359Sobrien 1427133359SobrienOptional Packages: 1428133359Sobrien --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1429133359Sobrien --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1430267897Sdelphij --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1431159764Sobrien both] 1432234449Sobrien --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1433267897Sdelphij --with-sysroot=DIR Search for dependent libraries within DIR 1434267897Sdelphij (or the compiler's sysroot if not specified). 1435133359Sobrien 1436133359SobrienSome influential environment variables: 1437133359Sobrien CC C compiler command 1438133359Sobrien CFLAGS C compiler flags 1439133359Sobrien LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1440133359Sobrien nonstandard directory <lib dir> 1441175296Sobrien LIBS libraries to pass to the linker, e.g. -l<library> 1442234449Sobrien CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1443175296Sobrien you have headers in a nonstandard directory <include dir> 1444133359Sobrien CPP C preprocessor 1445133359Sobrien 1446133359SobrienUse these variables to override the choices made by `configure' or to help 1447133359Sobrienit to find libraries and programs with nonstandard names/locations. 1448133359Sobrien 1449186691SobrienReport bugs to <christos@astron.com>. 1450133359Sobrien_ACEOF 1451175296Sobrienac_status=$? 1452133359Sobrienfi 1453133359Sobrien 1454133359Sobrienif test "$ac_init_help" = "recursive"; then 1455133359Sobrien # If there are subdirs, report their specific --help. 1456133359Sobrien for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1457234449Sobrien test -d "$ac_dir" || 1458234449Sobrien { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1459234449Sobrien continue 1460133359Sobrien ac_builddir=. 1461133359Sobrien 1462175296Sobriencase "$ac_dir" in 1463175296Sobrien.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1464175296Sobrien*) 1465234449Sobrien ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1466175296Sobrien # A ".." for each directory in $ac_dir_suffix. 1467234449Sobrien ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1468175296Sobrien case $ac_top_builddir_sub in 1469175296Sobrien "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1470175296Sobrien *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1471175296Sobrien esac ;; 1472175296Sobrienesac 1473175296Sobrienac_abs_top_builddir=$ac_pwd 1474175296Sobrienac_abs_builddir=$ac_pwd$ac_dir_suffix 1475175296Sobrien# for backward compatibility: 1476175296Sobrienac_top_builddir=$ac_top_build_prefix 1477133359Sobrien 1478133359Sobriencase $srcdir in 1479175296Sobrien .) # We are building in place. 1480133359Sobrien ac_srcdir=. 1481175296Sobrien ac_top_srcdir=$ac_top_builddir_sub 1482175296Sobrien ac_abs_top_srcdir=$ac_pwd ;; 1483175296Sobrien [\\/]* | ?:[\\/]* ) # Absolute name. 1484133359Sobrien ac_srcdir=$srcdir$ac_dir_suffix; 1485175296Sobrien ac_top_srcdir=$srcdir 1486175296Sobrien ac_abs_top_srcdir=$srcdir ;; 1487175296Sobrien *) # Relative name. 1488175296Sobrien ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1489175296Sobrien ac_top_srcdir=$ac_top_build_prefix$srcdir 1490175296Sobrien ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1491133359Sobrienesac 1492175296Sobrienac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1493133359Sobrien 1494175296Sobrien cd "$ac_dir" || { ac_status=$?; continue; } 1495175296Sobrien # Check for guested configure. 1496175296Sobrien if test -f "$ac_srcdir/configure.gnu"; then 1497175296Sobrien echo && 1498175296Sobrien $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1499175296Sobrien elif test -f "$ac_srcdir/configure"; then 1500175296Sobrien echo && 1501175296Sobrien $SHELL "$ac_srcdir/configure" --help=recursive 1502133359Sobrien else 1503234449Sobrien $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1504175296Sobrien fi || ac_status=$? 1505175296Sobrien cd "$ac_pwd" || { ac_status=$?; break; } 1506133359Sobrien done 1507133359Sobrienfi 1508133359Sobrien 1509175296Sobrientest -n "$ac_init_help" && exit $ac_status 1510133359Sobrienif $ac_init_version; then 1511133359Sobrien cat <<\_ACEOF 1512302221Sdelphijfile configure 5.28 1513267897Sdelphijgenerated by GNU Autoconf 2.69 1514133359Sobrien 1515267897SdelphijCopyright (C) 2012 Free Software Foundation, Inc. 1516133359SobrienThis configure script is free software; the Free Software Foundation 1517133359Sobriengives unlimited permission to copy, distribute and modify it. 1518133359Sobrien_ACEOF 1519175296Sobrien exit 1520133359Sobrienfi 1521234449Sobrien 1522234449Sobrien## ------------------------ ## 1523234449Sobrien## Autoconf initialization. ## 1524234449Sobrien## ------------------------ ## 1525234449Sobrien 1526234449Sobrien# ac_fn_c_try_compile LINENO 1527234449Sobrien# -------------------------- 1528234449Sobrien# Try to compile conftest.$ac_ext, and return whether this succeeded. 1529234449Sobrienac_fn_c_try_compile () 1530234449Sobrien{ 1531234449Sobrien as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1532234449Sobrien rm -f conftest.$ac_objext 1533234449Sobrien if { { ac_try="$ac_compile" 1534234449Sobriencase "(($ac_try" in 1535234449Sobrien *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1536234449Sobrien *) ac_try_echo=$ac_try;; 1537234449Sobrienesac 1538234449Sobrieneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1539234449Sobrien$as_echo "$ac_try_echo"; } >&5 1540234449Sobrien (eval "$ac_compile") 2>conftest.err 1541234449Sobrien ac_status=$? 1542234449Sobrien if test -s conftest.err; then 1543234449Sobrien grep -v '^ *+' conftest.err >conftest.er1 1544234449Sobrien cat conftest.er1 >&5 1545234449Sobrien mv -f conftest.er1 conftest.err 1546234449Sobrien fi 1547234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1548234449Sobrien test $ac_status = 0; } && { 1549234449Sobrien test -z "$ac_c_werror_flag" || 1550234449Sobrien test ! -s conftest.err 1551234449Sobrien } && test -s conftest.$ac_objext; then : 1552234449Sobrien ac_retval=0 1553234449Sobrienelse 1554234449Sobrien $as_echo "$as_me: failed program was:" >&5 1555234449Sobriensed 's/^/| /' conftest.$ac_ext >&5 1556234449Sobrien 1557234449Sobrien ac_retval=1 1558234449Sobrienfi 1559234449Sobrien eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1560234449Sobrien as_fn_set_status $ac_retval 1561234449Sobrien 1562234449Sobrien} # ac_fn_c_try_compile 1563234449Sobrien 1564234449Sobrien# ac_fn_c_try_cpp LINENO 1565234449Sobrien# ---------------------- 1566234449Sobrien# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1567234449Sobrienac_fn_c_try_cpp () 1568234449Sobrien{ 1569234449Sobrien as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1570234449Sobrien if { { ac_try="$ac_cpp conftest.$ac_ext" 1571234449Sobriencase "(($ac_try" in 1572234449Sobrien *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1573234449Sobrien *) ac_try_echo=$ac_try;; 1574234449Sobrienesac 1575234449Sobrieneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1576234449Sobrien$as_echo "$ac_try_echo"; } >&5 1577234449Sobrien (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1578234449Sobrien ac_status=$? 1579234449Sobrien if test -s conftest.err; then 1580234449Sobrien grep -v '^ *+' conftest.err >conftest.er1 1581234449Sobrien cat conftest.er1 >&5 1582234449Sobrien mv -f conftest.er1 conftest.err 1583234449Sobrien fi 1584234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1585234449Sobrien test $ac_status = 0; } > conftest.i && { 1586234449Sobrien test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1587234449Sobrien test ! -s conftest.err 1588234449Sobrien }; then : 1589234449Sobrien ac_retval=0 1590234449Sobrienelse 1591234449Sobrien $as_echo "$as_me: failed program was:" >&5 1592234449Sobriensed 's/^/| /' conftest.$ac_ext >&5 1593234449Sobrien 1594234449Sobrien ac_retval=1 1595234449Sobrienfi 1596234449Sobrien eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1597234449Sobrien as_fn_set_status $ac_retval 1598234449Sobrien 1599234449Sobrien} # ac_fn_c_try_cpp 1600234449Sobrien 1601234449Sobrien# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1602234449Sobrien# ------------------------------------------------------- 1603234449Sobrien# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1604234449Sobrien# the include files in INCLUDES and setting the cache variable VAR 1605234449Sobrien# accordingly. 1606234449Sobrienac_fn_c_check_header_mongrel () 1607234449Sobrien{ 1608234449Sobrien as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1609234449Sobrien if eval \${$3+:} false; then : 1610234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1611234449Sobrien$as_echo_n "checking for $2... " >&6; } 1612234449Sobrienif eval \${$3+:} false; then : 1613234449Sobrien $as_echo_n "(cached) " >&6 1614234449Sobrienfi 1615234449Sobrieneval ac_res=\$$3 1616234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1617234449Sobrien$as_echo "$ac_res" >&6; } 1618234449Sobrienelse 1619234449Sobrien # Is the header compilable? 1620234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1621234449Sobrien$as_echo_n "checking $2 usability... " >&6; } 1622234449Sobriencat confdefs.h - <<_ACEOF >conftest.$ac_ext 1623234449Sobrien/* end confdefs.h. */ 1624234449Sobrien$4 1625234449Sobrien#include <$2> 1626234449Sobrien_ACEOF 1627234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 1628234449Sobrien ac_header_compiler=yes 1629234449Sobrienelse 1630234449Sobrien ac_header_compiler=no 1631234449Sobrienfi 1632234449Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1633234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1634234449Sobrien$as_echo "$ac_header_compiler" >&6; } 1635234449Sobrien 1636234449Sobrien# Is the header present? 1637234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1638234449Sobrien$as_echo_n "checking $2 presence... " >&6; } 1639234449Sobriencat confdefs.h - <<_ACEOF >conftest.$ac_ext 1640234449Sobrien/* end confdefs.h. */ 1641234449Sobrien#include <$2> 1642234449Sobrien_ACEOF 1643234449Sobrienif ac_fn_c_try_cpp "$LINENO"; then : 1644234449Sobrien ac_header_preproc=yes 1645234449Sobrienelse 1646234449Sobrien ac_header_preproc=no 1647234449Sobrienfi 1648234449Sobrienrm -f conftest.err conftest.i conftest.$ac_ext 1649234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1650234449Sobrien$as_echo "$ac_header_preproc" >&6; } 1651234449Sobrien 1652234449Sobrien# So? What about this header? 1653234449Sobriencase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1654234449Sobrien yes:no: ) 1655234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1656234449Sobrien$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1657234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1658234449Sobrien$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1659234449Sobrien ;; 1660234449Sobrien no:yes:* ) 1661234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1662234449Sobrien$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1663234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1664234449Sobrien$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1665234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1666234449Sobrien$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1667234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1668234449Sobrien$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1669234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1670234449Sobrien$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1671234449Sobrien( $as_echo "## ---------------------------------- ## 1672234449Sobrien## Report this to christos@astron.com ## 1673234449Sobrien## ---------------------------------- ##" 1674234449Sobrien ) | sed "s/^/$as_me: WARNING: /" >&2 1675234449Sobrien ;; 1676234449Sobrienesac 1677234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1678234449Sobrien$as_echo_n "checking for $2... " >&6; } 1679234449Sobrienif eval \${$3+:} false; then : 1680234449Sobrien $as_echo_n "(cached) " >&6 1681234449Sobrienelse 1682234449Sobrien eval "$3=\$ac_header_compiler" 1683234449Sobrienfi 1684234449Sobrieneval ac_res=\$$3 1685234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1686234449Sobrien$as_echo "$ac_res" >&6; } 1687234449Sobrienfi 1688234449Sobrien eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689234449Sobrien 1690234449Sobrien} # ac_fn_c_check_header_mongrel 1691234449Sobrien 1692234449Sobrien# ac_fn_c_try_run LINENO 1693234449Sobrien# ---------------------- 1694234449Sobrien# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1695234449Sobrien# that executables *can* be run. 1696234449Sobrienac_fn_c_try_run () 1697234449Sobrien{ 1698234449Sobrien as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1699234449Sobrien if { { ac_try="$ac_link" 1700234449Sobriencase "(($ac_try" in 1701234449Sobrien *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1702234449Sobrien *) ac_try_echo=$ac_try;; 1703234449Sobrienesac 1704234449Sobrieneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1705234449Sobrien$as_echo "$ac_try_echo"; } >&5 1706234449Sobrien (eval "$ac_link") 2>&5 1707234449Sobrien ac_status=$? 1708234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709234449Sobrien test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1710234449Sobrien { { case "(($ac_try" in 1711234449Sobrien *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1712234449Sobrien *) ac_try_echo=$ac_try;; 1713234449Sobrienesac 1714234449Sobrieneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1715234449Sobrien$as_echo "$ac_try_echo"; } >&5 1716234449Sobrien (eval "$ac_try") 2>&5 1717234449Sobrien ac_status=$? 1718234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1719234449Sobrien test $ac_status = 0; }; }; then : 1720234449Sobrien ac_retval=0 1721234449Sobrienelse 1722234449Sobrien $as_echo "$as_me: program exited with status $ac_status" >&5 1723234449Sobrien $as_echo "$as_me: failed program was:" >&5 1724234449Sobriensed 's/^/| /' conftest.$ac_ext >&5 1725234449Sobrien 1726234449Sobrien ac_retval=$ac_status 1727234449Sobrienfi 1728234449Sobrien rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1729234449Sobrien eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730234449Sobrien as_fn_set_status $ac_retval 1731234449Sobrien 1732234449Sobrien} # ac_fn_c_try_run 1733234449Sobrien 1734234449Sobrien# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1735234449Sobrien# ------------------------------------------------------- 1736234449Sobrien# Tests whether HEADER exists and can be compiled using the include files in 1737234449Sobrien# INCLUDES, setting the cache variable VAR accordingly. 1738234449Sobrienac_fn_c_check_header_compile () 1739234449Sobrien{ 1740234449Sobrien as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1742234449Sobrien$as_echo_n "checking for $2... " >&6; } 1743234449Sobrienif eval \${$3+:} false; then : 1744234449Sobrien $as_echo_n "(cached) " >&6 1745234449Sobrienelse 1746234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1747234449Sobrien/* end confdefs.h. */ 1748234449Sobrien$4 1749234449Sobrien#include <$2> 1750234449Sobrien_ACEOF 1751234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 1752234449Sobrien eval "$3=yes" 1753234449Sobrienelse 1754234449Sobrien eval "$3=no" 1755234449Sobrienfi 1756234449Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1757234449Sobrienfi 1758234449Sobrieneval ac_res=\$$3 1759234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1760234449Sobrien$as_echo "$ac_res" >&6; } 1761234449Sobrien eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1762234449Sobrien 1763234449Sobrien} # ac_fn_c_check_header_compile 1764234449Sobrien 1765234449Sobrien# ac_fn_c_try_link LINENO 1766234449Sobrien# ----------------------- 1767234449Sobrien# Try to link conftest.$ac_ext, and return whether this succeeded. 1768234449Sobrienac_fn_c_try_link () 1769234449Sobrien{ 1770234449Sobrien as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1771234449Sobrien rm -f conftest.$ac_objext conftest$ac_exeext 1772234449Sobrien if { { ac_try="$ac_link" 1773234449Sobriencase "(($ac_try" in 1774234449Sobrien *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1775234449Sobrien *) ac_try_echo=$ac_try;; 1776234449Sobrienesac 1777234449Sobrieneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1778234449Sobrien$as_echo "$ac_try_echo"; } >&5 1779234449Sobrien (eval "$ac_link") 2>conftest.err 1780234449Sobrien ac_status=$? 1781234449Sobrien if test -s conftest.err; then 1782234449Sobrien grep -v '^ *+' conftest.err >conftest.er1 1783234449Sobrien cat conftest.er1 >&5 1784234449Sobrien mv -f conftest.er1 conftest.err 1785234449Sobrien fi 1786234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1787234449Sobrien test $ac_status = 0; } && { 1788234449Sobrien test -z "$ac_c_werror_flag" || 1789234449Sobrien test ! -s conftest.err 1790234449Sobrien } && test -s conftest$ac_exeext && { 1791234449Sobrien test "$cross_compiling" = yes || 1792267897Sdelphij test -x conftest$ac_exeext 1793234449Sobrien }; then : 1794234449Sobrien ac_retval=0 1795234449Sobrienelse 1796234449Sobrien $as_echo "$as_me: failed program was:" >&5 1797234449Sobriensed 's/^/| /' conftest.$ac_ext >&5 1798234449Sobrien 1799234449Sobrien ac_retval=1 1800234449Sobrienfi 1801234449Sobrien # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1802234449Sobrien # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1803234449Sobrien # interfere with the next link command; also delete a directory that is 1804234449Sobrien # left behind by Apple's compiler. We do this before executing the actions. 1805234449Sobrien rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1806234449Sobrien eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1807234449Sobrien as_fn_set_status $ac_retval 1808234449Sobrien 1809234449Sobrien} # ac_fn_c_try_link 1810234449Sobrien 1811234449Sobrien# ac_fn_c_check_func LINENO FUNC VAR 1812234449Sobrien# ---------------------------------- 1813234449Sobrien# Tests whether FUNC exists, setting the cache variable VAR accordingly 1814234449Sobrienac_fn_c_check_func () 1815234449Sobrien{ 1816234449Sobrien as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1817234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1818234449Sobrien$as_echo_n "checking for $2... " >&6; } 1819234449Sobrienif eval \${$3+:} false; then : 1820234449Sobrien $as_echo_n "(cached) " >&6 1821234449Sobrienelse 1822234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1823234449Sobrien/* end confdefs.h. */ 1824234449Sobrien/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1825234449Sobrien For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1826234449Sobrien#define $2 innocuous_$2 1827234449Sobrien 1828234449Sobrien/* System header to define __stub macros and hopefully few prototypes, 1829234449Sobrien which can conflict with char $2 (); below. 1830234449Sobrien Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1831234449Sobrien <limits.h> exists even on freestanding compilers. */ 1832234449Sobrien 1833234449Sobrien#ifdef __STDC__ 1834234449Sobrien# include <limits.h> 1835234449Sobrien#else 1836234449Sobrien# include <assert.h> 1837234449Sobrien#endif 1838234449Sobrien 1839234449Sobrien#undef $2 1840234449Sobrien 1841234449Sobrien/* Override any GCC internal prototype to avoid an error. 1842234449Sobrien Use char because int might match the return type of a GCC 1843234449Sobrien builtin and then its argument prototype would still apply. */ 1844234449Sobrien#ifdef __cplusplus 1845234449Sobrienextern "C" 1846234449Sobrien#endif 1847234449Sobrienchar $2 (); 1848234449Sobrien/* The GNU C library defines this for functions which it implements 1849234449Sobrien to always fail with ENOSYS. Some functions are actually named 1850234449Sobrien something starting with __ and the normal name is an alias. */ 1851234449Sobrien#if defined __stub_$2 || defined __stub___$2 1852234449Sobrienchoke me 1853234449Sobrien#endif 1854234449Sobrien 1855234449Sobrienint 1856234449Sobrienmain () 1857234449Sobrien{ 1858234449Sobrienreturn $2 (); 1859234449Sobrien ; 1860234449Sobrien return 0; 1861234449Sobrien} 1862234449Sobrien_ACEOF 1863234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 1864234449Sobrien eval "$3=yes" 1865234449Sobrienelse 1866234449Sobrien eval "$3=no" 1867234449Sobrienfi 1868234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 1869234449Sobrien conftest$ac_exeext conftest.$ac_ext 1870234449Sobrienfi 1871234449Sobrieneval ac_res=\$$3 1872234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1873234449Sobrien$as_echo "$ac_res" >&6; } 1874234449Sobrien eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1875234449Sobrien 1876234449Sobrien} # ac_fn_c_check_func 1877234449Sobrien 1878234449Sobrien# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1879234449Sobrien# ------------------------------------------- 1880234449Sobrien# Tests whether TYPE exists after having included INCLUDES, setting cache 1881234449Sobrien# variable VAR accordingly. 1882234449Sobrienac_fn_c_check_type () 1883234449Sobrien{ 1884234449Sobrien as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1885234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1886234449Sobrien$as_echo_n "checking for $2... " >&6; } 1887234449Sobrienif eval \${$3+:} false; then : 1888234449Sobrien $as_echo_n "(cached) " >&6 1889234449Sobrienelse 1890234449Sobrien eval "$3=no" 1891234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1892234449Sobrien/* end confdefs.h. */ 1893234449Sobrien$4 1894234449Sobrienint 1895234449Sobrienmain () 1896234449Sobrien{ 1897234449Sobrienif (sizeof ($2)) 1898234449Sobrien return 0; 1899234449Sobrien ; 1900234449Sobrien return 0; 1901234449Sobrien} 1902234449Sobrien_ACEOF 1903234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 1904234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1905234449Sobrien/* end confdefs.h. */ 1906234449Sobrien$4 1907234449Sobrienint 1908234449Sobrienmain () 1909234449Sobrien{ 1910234449Sobrienif (sizeof (($2))) 1911234449Sobrien return 0; 1912234449Sobrien ; 1913234449Sobrien return 0; 1914234449Sobrien} 1915234449Sobrien_ACEOF 1916234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 1917234449Sobrien 1918234449Sobrienelse 1919234449Sobrien eval "$3=yes" 1920234449Sobrienfi 1921234449Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1922234449Sobrienfi 1923234449Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1924234449Sobrienfi 1925234449Sobrieneval ac_res=\$$3 1926234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1927234449Sobrien$as_echo "$ac_res" >&6; } 1928234449Sobrien eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1929234449Sobrien 1930234449Sobrien} # ac_fn_c_check_type 1931234449Sobrien 1932234449Sobrien# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1933234449Sobrien# ---------------------------------------------------- 1934234449Sobrien# Tries to find if the field MEMBER exists in type AGGR, after including 1935234449Sobrien# INCLUDES, setting cache variable VAR accordingly. 1936234449Sobrienac_fn_c_check_member () 1937234449Sobrien{ 1938234449Sobrien as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1939234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1940234449Sobrien$as_echo_n "checking for $2.$3... " >&6; } 1941234449Sobrienif eval \${$4+:} false; then : 1942234449Sobrien $as_echo_n "(cached) " >&6 1943234449Sobrienelse 1944234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1945234449Sobrien/* end confdefs.h. */ 1946234449Sobrien$5 1947234449Sobrienint 1948234449Sobrienmain () 1949234449Sobrien{ 1950234449Sobrienstatic $2 ac_aggr; 1951234449Sobrienif (ac_aggr.$3) 1952234449Sobrienreturn 0; 1953234449Sobrien ; 1954234449Sobrien return 0; 1955234449Sobrien} 1956234449Sobrien_ACEOF 1957234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 1958234449Sobrien eval "$4=yes" 1959234449Sobrienelse 1960234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1961234449Sobrien/* end confdefs.h. */ 1962234449Sobrien$5 1963234449Sobrienint 1964234449Sobrienmain () 1965234449Sobrien{ 1966234449Sobrienstatic $2 ac_aggr; 1967234449Sobrienif (sizeof ac_aggr.$3) 1968234449Sobrienreturn 0; 1969234449Sobrien ; 1970234449Sobrien return 0; 1971234449Sobrien} 1972234449Sobrien_ACEOF 1973234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 1974234449Sobrien eval "$4=yes" 1975234449Sobrienelse 1976234449Sobrien eval "$4=no" 1977234449Sobrienfi 1978234449Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1979234449Sobrienfi 1980234449Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1981234449Sobrienfi 1982234449Sobrieneval ac_res=\$$4 1983234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1984234449Sobrien$as_echo "$ac_res" >&6; } 1985234449Sobrien eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1986234449Sobrien 1987234449Sobrien} # ac_fn_c_check_member 1988234449Sobrien 1989234449Sobrien# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1990234449Sobrien# --------------------------------------------- 1991234449Sobrien# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1992234449Sobrien# accordingly. 1993234449Sobrienac_fn_c_check_decl () 1994234449Sobrien{ 1995234449Sobrien as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1996234449Sobrien as_decl_name=`echo $2|sed 's/ *(.*//'` 1997234449Sobrien as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1998234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1999234449Sobrien$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2000234449Sobrienif eval \${$3+:} false; then : 2001234449Sobrien $as_echo_n "(cached) " >&6 2002234449Sobrienelse 2003234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2004234449Sobrien/* end confdefs.h. */ 2005234449Sobrien$4 2006234449Sobrienint 2007234449Sobrienmain () 2008234449Sobrien{ 2009234449Sobrien#ifndef $as_decl_name 2010234449Sobrien#ifdef __cplusplus 2011234449Sobrien (void) $as_decl_use; 2012234449Sobrien#else 2013234449Sobrien (void) $as_decl_name; 2014234449Sobrien#endif 2015234449Sobrien#endif 2016234449Sobrien 2017234449Sobrien ; 2018234449Sobrien return 0; 2019234449Sobrien} 2020234449Sobrien_ACEOF 2021234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 2022234449Sobrien eval "$3=yes" 2023234449Sobrienelse 2024234449Sobrien eval "$3=no" 2025234449Sobrienfi 2026234449Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2027234449Sobrienfi 2028234449Sobrieneval ac_res=\$$3 2029234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2030234449Sobrien$as_echo "$ac_res" >&6; } 2031234449Sobrien eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2032234449Sobrien 2033234449Sobrien} # ac_fn_c_check_decl 2034234449Sobrien 2035267897Sdelphij# ac_fn_c_find_uintX_t LINENO BITS VAR 2036267897Sdelphij# ------------------------------------ 2037267897Sdelphij# Finds an unsigned integer type with width BITS, setting cache variable VAR 2038267897Sdelphij# accordingly. 2039267897Sdelphijac_fn_c_find_uintX_t () 2040234449Sobrien{ 2041234449Sobrien as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2042267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2043267897Sdelphij$as_echo_n "checking for uint$2_t... " >&6; } 2044267897Sdelphijif eval \${$3+:} false; then : 2045267897Sdelphij $as_echo_n "(cached) " >&6 2046267897Sdelphijelse 2047267897Sdelphij eval "$3=no" 2048267897Sdelphij # Order is important - never check a type that is potentially smaller 2049267897Sdelphij # than half of the expected target width. 2050267897Sdelphij for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2051267897Sdelphij 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2052267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2053234449Sobrien/* end confdefs.h. */ 2054267897Sdelphij$ac_includes_default 2055234449Sobrienint 2056234449Sobrienmain () 2057234449Sobrien{ 2058267897Sdelphijstatic int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2059267897Sdelphijtest_array [0] = 0; 2060267897Sdelphijreturn test_array [0]; 2061234449Sobrien 2062234449Sobrien ; 2063234449Sobrien return 0; 2064234449Sobrien} 2065234449Sobrien_ACEOF 2066234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 2067267897Sdelphij case $ac_type in #( 2068267897Sdelphij uint$2_t) : 2069267897Sdelphij eval "$3=yes" ;; #( 2070267897Sdelphij *) : 2071267897Sdelphij eval "$3=\$ac_type" ;; 2072267897Sdelphijesac 2073267897Sdelphijfi 2074267897Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2075267897Sdelphij if eval test \"x\$"$3"\" = x"no"; then : 2076234449Sobrien 2077234449Sobrienelse 2078267897Sdelphij break 2079234449Sobrienfi 2080267897Sdelphij done 2081267897Sdelphijfi 2082267897Sdelphijeval ac_res=\$$3 2083267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2084267897Sdelphij$as_echo "$ac_res" >&6; } 2085267897Sdelphij eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2086267897Sdelphij 2087267897Sdelphij} # ac_fn_c_find_uintX_t 2088267897Sdelphij 2089267897Sdelphij# ac_fn_c_find_intX_t LINENO BITS VAR 2090267897Sdelphij# ----------------------------------- 2091267897Sdelphij# Finds a signed integer type with width BITS, setting cache variable VAR 2092267897Sdelphij# accordingly. 2093267897Sdelphijac_fn_c_find_intX_t () 2094267897Sdelphij{ 2095267897Sdelphij as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2096267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2097267897Sdelphij$as_echo_n "checking for int$2_t... " >&6; } 2098267897Sdelphijif eval \${$3+:} false; then : 2099267897Sdelphij $as_echo_n "(cached) " >&6 2100234449Sobrienelse 2101267897Sdelphij eval "$3=no" 2102267897Sdelphij # Order is important - never check a type that is potentially smaller 2103267897Sdelphij # than half of the expected target width. 2104267897Sdelphij for ac_type in int$2_t 'int' 'long int' \ 2105267897Sdelphij 'long long int' 'short int' 'signed char'; do 2106267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2107234449Sobrien/* end confdefs.h. */ 2108267897Sdelphij$ac_includes_default 2109267897Sdelphij enum { N = $2 / 2 - 1 }; 2110234449Sobrienint 2111234449Sobrienmain () 2112234449Sobrien{ 2113267897Sdelphijstatic int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2114267897Sdelphijtest_array [0] = 0; 2115267897Sdelphijreturn test_array [0]; 2116234449Sobrien 2117234449Sobrien ; 2118234449Sobrien return 0; 2119234449Sobrien} 2120234449Sobrien_ACEOF 2121234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 2122267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2123234449Sobrien/* end confdefs.h. */ 2124267897Sdelphij$ac_includes_default 2125267897Sdelphij enum { N = $2 / 2 - 1 }; 2126234449Sobrienint 2127234449Sobrienmain () 2128234449Sobrien{ 2129267897Sdelphijstatic int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2130267897Sdelphij < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2131267897Sdelphijtest_array [0] = 0; 2132267897Sdelphijreturn test_array [0]; 2133234449Sobrien 2134234449Sobrien ; 2135234449Sobrien return 0; 2136234449Sobrien} 2137234449Sobrien_ACEOF 2138234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 2139267897Sdelphij 2140234449Sobrienelse 2141267897Sdelphij case $ac_type in #( 2142267897Sdelphij int$2_t) : 2143267897Sdelphij eval "$3=yes" ;; #( 2144267897Sdelphij *) : 2145267897Sdelphij eval "$3=\$ac_type" ;; 2146267897Sdelphijesac 2147234449Sobrienfi 2148234449Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2149234449Sobrienfi 2150234449Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2151267897Sdelphij if eval test \"x\$"$3"\" = x"no"; then : 2152234449Sobrien 2153234449Sobrienelse 2154267897Sdelphij break 2155234449Sobrienfi 2156267897Sdelphij done 2157234449Sobrienfi 2158267897Sdelphijeval ac_res=\$$3 2159267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2160267897Sdelphij$as_echo "$ac_res" >&6; } 2161234449Sobrien eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2162234449Sobrien 2163267897Sdelphij} # ac_fn_c_find_intX_t 2164175296Sobriencat >config.log <<_ACEOF 2165133359SobrienThis file contains any messages produced by compilers while 2166133359Sobrienrunning configure, to aid debugging if configure makes a mistake. 2167133359Sobrien 2168302221SdelphijIt was created by file $as_me 5.28, which was 2169267897Sdelphijgenerated by GNU Autoconf 2.69. Invocation command line was 2170133359Sobrien 2171133359Sobrien $ $0 $@ 2172133359Sobrien 2173133359Sobrien_ACEOF 2174175296Sobrienexec 5>>config.log 2175133359Sobrien{ 2176133359Sobriencat <<_ASUNAME 2177133359Sobrien## --------- ## 2178133359Sobrien## Platform. ## 2179133359Sobrien## --------- ## 2180133359Sobrien 2181133359Sobrienhostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2182133359Sobrienuname -m = `(uname -m) 2>/dev/null || echo unknown` 2183133359Sobrienuname -r = `(uname -r) 2>/dev/null || echo unknown` 2184133359Sobrienuname -s = `(uname -s) 2>/dev/null || echo unknown` 2185133359Sobrienuname -v = `(uname -v) 2>/dev/null || echo unknown` 2186133359Sobrien 2187133359Sobrien/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2188133359Sobrien/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2189133359Sobrien 2190133359Sobrien/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2191133359Sobrien/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2192133359Sobrien/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2193175296Sobrien/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2194133359Sobrien/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2195133359Sobrien/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2196133359Sobrien/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2197133359Sobrien 2198133359Sobrien_ASUNAME 2199133359Sobrien 2200133359Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2201133359Sobrienfor as_dir in $PATH 2202133359Sobriendo 2203133359Sobrien IFS=$as_save_IFS 2204133359Sobrien test -z "$as_dir" && as_dir=. 2205234449Sobrien $as_echo "PATH: $as_dir" 2206234449Sobrien done 2207175296SobrienIFS=$as_save_IFS 2208133359Sobrien 2209133359Sobrien} >&5 2210133359Sobrien 2211133359Sobriencat >&5 <<_ACEOF 2212133359Sobrien 2213133359Sobrien 2214133359Sobrien## ----------- ## 2215133359Sobrien## Core tests. ## 2216133359Sobrien## ----------- ## 2217133359Sobrien 2218133359Sobrien_ACEOF 2219133359Sobrien 2220133359Sobrien 2221133359Sobrien# Keep a trace of the command line. 2222133359Sobrien# Strip out --no-create and --no-recursion so they do not pile up. 2223159764Sobrien# Strip out --silent because we don't want to record it for future runs. 2224133359Sobrien# Also quote any args containing shell meta-characters. 2225159764Sobrien# Make two passes to allow for proper duplicate-argument suppression. 2226133359Sobrienac_configure_args= 2227159764Sobrienac_configure_args0= 2228159764Sobrienac_configure_args1= 2229159764Sobrienac_must_keep_next=false 2230159764Sobrienfor ac_pass in 1 2 2231133359Sobriendo 2232159764Sobrien for ac_arg 2233159764Sobrien do 2234159764Sobrien case $ac_arg in 2235159764Sobrien -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2236159764Sobrien -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2237159764Sobrien | -silent | --silent | --silen | --sile | --sil) 2238159764Sobrien continue ;; 2239175296Sobrien *\'*) 2240234449Sobrien ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2241159764Sobrien esac 2242159764Sobrien case $ac_pass in 2243234449Sobrien 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2244159764Sobrien 2) 2245234449Sobrien as_fn_append ac_configure_args1 " '$ac_arg'" 2246159764Sobrien if test $ac_must_keep_next = true; then 2247159764Sobrien ac_must_keep_next=false # Got value, back to normal. 2248159764Sobrien else 2249159764Sobrien case $ac_arg in 2250159764Sobrien *=* | --config-cache | -C | -disable-* | --disable-* \ 2251159764Sobrien | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2252159764Sobrien | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2253159764Sobrien | -with-* | --with-* | -without-* | --without-* | --x) 2254159764Sobrien case "$ac_configure_args0 " in 2255159764Sobrien "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2256159764Sobrien esac 2257159764Sobrien ;; 2258159764Sobrien -* ) ac_must_keep_next=true ;; 2259159764Sobrien esac 2260159764Sobrien fi 2261234449Sobrien as_fn_append ac_configure_args " '$ac_arg'" 2262159764Sobrien ;; 2263159764Sobrien esac 2264159764Sobrien done 2265133359Sobriendone 2266234449Sobrien{ ac_configure_args0=; unset ac_configure_args0;} 2267234449Sobrien{ ac_configure_args1=; unset ac_configure_args1;} 2268133359Sobrien 2269133359Sobrien# When interrupted or exit'd, cleanup temporary files, and complete 2270133359Sobrien# config.log. We remove comments because anyway the quotes in there 2271133359Sobrien# would cause problems or look ugly. 2272175296Sobrien# WARNING: Use '\'' to represent an apostrophe within the trap. 2273175296Sobrien# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2274133359Sobrientrap 'exit_status=$? 2275133359Sobrien # Save into config.log some information that might help in debugging. 2276133359Sobrien { 2277133359Sobrien echo 2278159764Sobrien 2279234449Sobrien $as_echo "## ---------------- ## 2280133359Sobrien## Cache variables. ## 2281234449Sobrien## ---------------- ##" 2282133359Sobrien echo 2283133359Sobrien # The following way of writing the cache mishandles newlines in values, 2284175296Sobrien( 2285175296Sobrien for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2286175296Sobrien eval ac_val=\$$ac_var 2287175296Sobrien case $ac_val in #( 2288175296Sobrien *${as_nl}*) 2289175296Sobrien case $ac_var in #( 2290234449Sobrien *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2291234449Sobrien$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2292175296Sobrien esac 2293175296Sobrien case $ac_var in #( 2294175296Sobrien _ | IFS | as_nl) ;; #( 2295234449Sobrien BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2296234449Sobrien *) { eval $ac_var=; unset $ac_var;} ;; 2297175296Sobrien esac ;; 2298175296Sobrien esac 2299175296Sobrien done 2300133359Sobrien (set) 2>&1 | 2301175296Sobrien case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2302175296Sobrien *${as_nl}ac_space=\ *) 2303133359Sobrien sed -n \ 2304175296Sobrien "s/'\''/'\''\\\\'\'''\''/g; 2305175296Sobrien s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2306175296Sobrien ;; #( 2307133359Sobrien *) 2308175296Sobrien sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2309133359Sobrien ;; 2310175296Sobrien esac | 2311175296Sobrien sort 2312175296Sobrien) 2313133359Sobrien echo 2314159764Sobrien 2315234449Sobrien $as_echo "## ----------------- ## 2316159764Sobrien## Output variables. ## 2317234449Sobrien## ----------------- ##" 2318159764Sobrien echo 2319159764Sobrien for ac_var in $ac_subst_vars 2320159764Sobrien do 2321175296Sobrien eval ac_val=\$$ac_var 2322175296Sobrien case $ac_val in 2323234449Sobrien *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2324175296Sobrien esac 2325234449Sobrien $as_echo "$ac_var='\''$ac_val'\''" 2326159764Sobrien done | sort 2327159764Sobrien echo 2328159764Sobrien 2329159764Sobrien if test -n "$ac_subst_files"; then 2330234449Sobrien $as_echo "## ------------------- ## 2331175296Sobrien## File substitutions. ## 2332234449Sobrien## ------------------- ##" 2333159764Sobrien echo 2334159764Sobrien for ac_var in $ac_subst_files 2335159764Sobrien do 2336175296Sobrien eval ac_val=\$$ac_var 2337175296Sobrien case $ac_val in 2338234449Sobrien *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2339175296Sobrien esac 2340234449Sobrien $as_echo "$ac_var='\''$ac_val'\''" 2341159764Sobrien done | sort 2342159764Sobrien echo 2343159764Sobrien fi 2344159764Sobrien 2345133359Sobrien if test -s confdefs.h; then 2346234449Sobrien $as_echo "## ----------- ## 2347133359Sobrien## confdefs.h. ## 2348234449Sobrien## ----------- ##" 2349133359Sobrien echo 2350175296Sobrien cat confdefs.h 2351133359Sobrien echo 2352133359Sobrien fi 2353133359Sobrien test "$ac_signal" != 0 && 2354234449Sobrien $as_echo "$as_me: caught signal $ac_signal" 2355234449Sobrien $as_echo "$as_me: exit $exit_status" 2356133359Sobrien } >&5 2357175296Sobrien rm -f core *.core core.conftest.* && 2358175296Sobrien rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2359133359Sobrien exit $exit_status 2360175296Sobrien' 0 2361133359Sobrienfor ac_signal in 1 2 13 15; do 2362234449Sobrien trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2363133359Sobriendone 2364133359Sobrienac_signal=0 2365133359Sobrien 2366133359Sobrien# confdefs.h avoids OS command line length limits that DEFS can exceed. 2367175296Sobrienrm -f -r conftest* confdefs.h 2368133359Sobrien 2369234449Sobrien$as_echo "/* confdefs.h */" > confdefs.h 2370234449Sobrien 2371133359Sobrien# Predefined preprocessor variables. 2372133359Sobrien 2373133359Sobriencat >>confdefs.h <<_ACEOF 2374133359Sobrien#define PACKAGE_NAME "$PACKAGE_NAME" 2375133359Sobrien_ACEOF 2376133359Sobrien 2377133359Sobriencat >>confdefs.h <<_ACEOF 2378133359Sobrien#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2379133359Sobrien_ACEOF 2380133359Sobrien 2381133359Sobriencat >>confdefs.h <<_ACEOF 2382133359Sobrien#define PACKAGE_VERSION "$PACKAGE_VERSION" 2383133359Sobrien_ACEOF 2384133359Sobrien 2385133359Sobriencat >>confdefs.h <<_ACEOF 2386133359Sobrien#define PACKAGE_STRING "$PACKAGE_STRING" 2387133359Sobrien_ACEOF 2388133359Sobrien 2389133359Sobriencat >>confdefs.h <<_ACEOF 2390133359Sobrien#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2391133359Sobrien_ACEOF 2392133359Sobrien 2393234449Sobriencat >>confdefs.h <<_ACEOF 2394234449Sobrien#define PACKAGE_URL "$PACKAGE_URL" 2395234449Sobrien_ACEOF 2396133359Sobrien 2397234449Sobrien 2398133359Sobrien# Let the site file select an alternate cache file if it wants to. 2399234449Sobrien# Prefer an explicitly selected file to automatically selected ones. 2400234449Sobrienac_site_file1=NONE 2401234449Sobrienac_site_file2=NONE 2402175296Sobrienif test -n "$CONFIG_SITE"; then 2403234449Sobrien # We do not want a PATH search for config.site. 2404234449Sobrien case $CONFIG_SITE in #(( 2405234449Sobrien -*) ac_site_file1=./$CONFIG_SITE;; 2406234449Sobrien */*) ac_site_file1=$CONFIG_SITE;; 2407234449Sobrien *) ac_site_file1=./$CONFIG_SITE;; 2408234449Sobrien esac 2409175296Sobrienelif test "x$prefix" != xNONE; then 2410234449Sobrien ac_site_file1=$prefix/share/config.site 2411234449Sobrien ac_site_file2=$prefix/etc/config.site 2412175296Sobrienelse 2413234449Sobrien ac_site_file1=$ac_default_prefix/share/config.site 2414234449Sobrien ac_site_file2=$ac_default_prefix/etc/config.site 241568349Sobrienfi 2416234449Sobrienfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2417175296Sobriendo 2418234449Sobrien test "x$ac_site_file" = xNONE && continue 2419234449Sobrien if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2420234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2421234449Sobrien$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2422133359Sobrien sed 's/^/| /' "$ac_site_file" >&5 2423234449Sobrien . "$ac_site_file" \ 2424234449Sobrien || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2425234449Sobrien$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2426234449Sobrienas_fn_error $? "failed to load site script $ac_site_file 2427234449SobrienSee \`config.log' for more details" "$LINENO" 5; } 242868349Sobrien fi 242968349Sobriendone 243068349Sobrien 243168349Sobrienif test -r "$cache_file"; then 2432234449Sobrien # Some versions of bash will fail to source /dev/null (special files 2433234449Sobrien # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2434234449Sobrien if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2435234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2436234449Sobrien$as_echo "$as_me: loading cache $cache_file" >&6;} 2437133359Sobrien case $cache_file in 2438175296Sobrien [\\/]* | ?:[\\/]* ) . "$cache_file";; 2439175296Sobrien *) . "./$cache_file";; 2440133359Sobrien esac 2441133359Sobrien fi 244268349Sobrienelse 2443234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2444234449Sobrien$as_echo "$as_me: creating cache $cache_file" >&6;} 2445133359Sobrien >$cache_file 244668349Sobrienfi 244768349Sobrien 2448267897Sdelphijas_fn_append ac_header_list " stdlib.h" 2449267897Sdelphijas_fn_append ac_header_list " unistd.h" 2450267897Sdelphijas_fn_append ac_header_list " sys/param.h" 2451133359Sobrien# Check that the precious variables saved in the cache have kept the same 2452133359Sobrien# value. 2453133359Sobrienac_cache_corrupted=false 2454175296Sobrienfor ac_var in $ac_precious_vars; do 2455133359Sobrien eval ac_old_set=\$ac_cv_env_${ac_var}_set 2456133359Sobrien eval ac_new_set=\$ac_env_${ac_var}_set 2457175296Sobrien eval ac_old_val=\$ac_cv_env_${ac_var}_value 2458175296Sobrien eval ac_new_val=\$ac_env_${ac_var}_value 2459133359Sobrien case $ac_old_set,$ac_new_set in 2460133359Sobrien set,) 2461234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2462234449Sobrien$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2463133359Sobrien ac_cache_corrupted=: ;; 2464133359Sobrien ,set) 2465234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2466234449Sobrien$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2467133359Sobrien ac_cache_corrupted=: ;; 2468133359Sobrien ,);; 2469133359Sobrien *) 2470133359Sobrien if test "x$ac_old_val" != "x$ac_new_val"; then 2471234449Sobrien # differences in whitespace do not lead to failure. 2472234449Sobrien ac_old_val_w=`echo x $ac_old_val` 2473234449Sobrien ac_new_val_w=`echo x $ac_new_val` 2474234449Sobrien if test "$ac_old_val_w" != "$ac_new_val_w"; then 2475234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2476234449Sobrien$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2477234449Sobrien ac_cache_corrupted=: 2478234449Sobrien else 2479234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2480234449Sobrien$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2481234449Sobrien eval $ac_var=\$ac_old_val 2482234449Sobrien fi 2483234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2484234449Sobrien$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2485234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2486234449Sobrien$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2487133359Sobrien fi;; 2488133359Sobrien esac 2489133359Sobrien # Pass precious variables to config.status. 2490133359Sobrien if test "$ac_new_set" = set; then 2491133359Sobrien case $ac_new_val in 2492234449Sobrien *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2493133359Sobrien *) ac_arg=$ac_var=$ac_new_val ;; 2494133359Sobrien esac 2495133359Sobrien case " $ac_configure_args " in 2496133359Sobrien *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2497234449Sobrien *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2498133359Sobrien esac 2499133359Sobrien fi 2500133359Sobriendone 2501133359Sobrienif $ac_cache_corrupted; then 2502234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2503234449Sobrien$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2504234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2505234449Sobrien$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2506234449Sobrien as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2507133359Sobrienfi 2508234449Sobrien## -------------------- ## 2509234449Sobrien## Main body of script. ## 2510234449Sobrien## -------------------- ## 2511133359Sobrien 2512175296Sobrienac_ext=c 2513175296Sobrienac_cpp='$CPP $CPPFLAGS' 2514175296Sobrienac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2515175296Sobrienac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2516175296Sobrienac_compiler_gnu=$ac_cv_c_compiler_gnu 2517133359Sobrien 2518133359Sobrien 2519284237Sdelphijam__api_version='1.15' 2520159764Sobrien 252168349Sobrienac_aux_dir= 2522175296Sobrienfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2523175296Sobrien if test -f "$ac_dir/install-sh"; then 252468349Sobrien ac_aux_dir=$ac_dir 252568349Sobrien ac_install_sh="$ac_aux_dir/install-sh -c" 252668349Sobrien break 2527175296Sobrien elif test -f "$ac_dir/install.sh"; then 252868349Sobrien ac_aux_dir=$ac_dir 252968349Sobrien ac_install_sh="$ac_aux_dir/install.sh -c" 253068349Sobrien break 2531175296Sobrien elif test -f "$ac_dir/shtool"; then 2532133359Sobrien ac_aux_dir=$ac_dir 2533133359Sobrien ac_install_sh="$ac_aux_dir/shtool install -c" 2534133359Sobrien break 253568349Sobrien fi 253668349Sobriendone 253768349Sobrienif test -z "$ac_aux_dir"; then 2538234449Sobrien as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 253968349Sobrienfi 254068349Sobrien 2541175296Sobrien# These three variables are undocumented and unsupported, 2542175296Sobrien# and are intended to be withdrawn in a future Autoconf release. 2543175296Sobrien# They can cause serious problems if a builder's source tree is in a directory 2544175296Sobrien# whose full name contains unusual characters. 2545175296Sobrienac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2546175296Sobrienac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2547175296Sobrienac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2548175296Sobrien 2549175296Sobrien 255068349Sobrien# Find a good install program. We prefer a C program (faster), 255168349Sobrien# so one script is as good as another. But avoid the broken or 255268349Sobrien# incompatible versions: 255368349Sobrien# SysV /etc/install, /usr/sbin/install 255468349Sobrien# SunOS /usr/etc/install 255568349Sobrien# IRIX /sbin/install 255668349Sobrien# AIX /bin/install 2557133359Sobrien# AmigaOS /C/install, which installs bootblocks on floppy discs 255868349Sobrien# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 255968349Sobrien# AFS /usr/afsws/bin/install, which mishandles nonexistent args 256068349Sobrien# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2561159764Sobrien# OS/2's system install, which has a completely different semantic 256268349Sobrien# ./install, which can be erroneously created by make from ./install.sh. 2563234449Sobrien# Reject install programs that cannot install multiple files. 2564234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2565234449Sobrien$as_echo_n "checking for a BSD-compatible install... " >&6; } 256668349Sobrienif test -z "$INSTALL"; then 2567234449Sobrienif ${ac_cv_path_install+:} false; then : 2568234449Sobrien $as_echo_n "(cached) " >&6 256968349Sobrienelse 2570133359Sobrien as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2571133359Sobrienfor as_dir in $PATH 2572133359Sobriendo 2573133359Sobrien IFS=$as_save_IFS 2574133359Sobrien test -z "$as_dir" && as_dir=. 2575234449Sobrien # Account for people who put trailing slashes in PATH elements. 2576234449Sobriencase $as_dir/ in #(( 2577234449Sobrien ./ | .// | /[cC]/* | \ 2578133359Sobrien /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2579234449Sobrien ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2580133359Sobrien /usr/ucb/* ) ;; 2581133359Sobrien *) 2582133359Sobrien # OSF1 and SCO ODT 3.0 have their own names for install. 2583133359Sobrien # Don't use installbsd from OSF since it installs stuff as root 2584133359Sobrien # by default. 2585133359Sobrien for ac_prog in ginstall scoinst install; do 2586133359Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 2587267897Sdelphij if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2588159764Sobrien if test $ac_prog = install && 2589159764Sobrien grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2590159764Sobrien # AIX install. It has an incompatible calling convention. 2591159764Sobrien : 2592159764Sobrien elif test $ac_prog = install && 2593159764Sobrien grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2594159764Sobrien # program-specific install script used by HP pwplus--don't use. 2595159764Sobrien : 2596159764Sobrien else 2597234449Sobrien rm -rf conftest.one conftest.two conftest.dir 2598234449Sobrien echo one > conftest.one 2599234449Sobrien echo two > conftest.two 2600234449Sobrien mkdir conftest.dir 2601234449Sobrien if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2602234449Sobrien test -s conftest.one && test -s conftest.two && 2603234449Sobrien test -s conftest.dir/conftest.one && 2604234449Sobrien test -s conftest.dir/conftest.two 2605234449Sobrien then 2606234449Sobrien ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2607234449Sobrien break 3 2608234449Sobrien fi 2609159764Sobrien fi 2610159764Sobrien fi 261168349Sobrien done 2612133359Sobrien done 2613133359Sobrien ;; 2614133359Sobrienesac 2615234449Sobrien 2616234449Sobrien done 2617175296SobrienIFS=$as_save_IFS 261868349Sobrien 2619234449Sobrienrm -rf conftest.one conftest.two conftest.dir 2620133359Sobrien 262168349Sobrienfi 262268349Sobrien if test "${ac_cv_path_install+set}" = set; then 2623133359Sobrien INSTALL=$ac_cv_path_install 262468349Sobrien else 2625175296Sobrien # As a last resort, use the slow shell script. Don't cache a 2626175296Sobrien # value for INSTALL within a source directory, because that will 262768349Sobrien # break other packages using the cache if that directory is 2628175296Sobrien # removed, or if the value is a relative name. 2629133359Sobrien INSTALL=$ac_install_sh 263068349Sobrien fi 263168349Sobrienfi 2632234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2633234449Sobrien$as_echo "$INSTALL" >&6; } 263468349Sobrien 263568349Sobrien# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 263668349Sobrien# It thinks the first close brace ends the variable substitution. 263768349Sobrientest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 263868349Sobrien 2639133359Sobrientest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 264068349Sobrien 264168349Sobrientest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 264268349Sobrien 2643234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2644234449Sobrien$as_echo_n "checking whether build environment is sane... " >&6; } 2645234449Sobrien# Reject unsafe characters in $srcdir or the absolute working directory 2646234449Sobrien# name. Accept space and tab only in the latter. 2647234449Sobrienam_lf=' 2648234449Sobrien' 2649234449Sobriencase `pwd` in 2650234449Sobrien *[\\\"\#\$\&\'\`$am_lf]*) 2651234449Sobrien as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2652234449Sobrienesac 2653234449Sobriencase $srcdir in 2654234449Sobrien *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2655267897Sdelphij as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2656234449Sobrienesac 2657234449Sobrien 2658267897Sdelphij# Do 'set' in a subshell so we don't clobber the current shell's 265968349Sobrien# arguments. Must try -L first in case configure is actually a 266068349Sobrien# symlink; some systems play weird games with the mod time of symlinks 266168349Sobrien# (eg FreeBSD returns the mod time of the symlink's containing 266268349Sobrien# directory). 266368349Sobrienif ( 2664267897Sdelphij am_has_slept=no 2665267897Sdelphij for am_try in 1 2; do 2666267897Sdelphij echo "timestamp, slept: $am_has_slept" > conftest.file 2667267897Sdelphij set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2668267897Sdelphij if test "$*" = "X"; then 2669267897Sdelphij # -L didn't work. 2670267897Sdelphij set X `ls -t "$srcdir/configure" conftest.file` 2671267897Sdelphij fi 2672267897Sdelphij if test "$*" != "X $srcdir/configure conftest.file" \ 2673267897Sdelphij && test "$*" != "X conftest.file $srcdir/configure"; then 267468349Sobrien 2675267897Sdelphij # If neither matched, then we have a broken ls. This can happen 2676267897Sdelphij # if, for instance, CONFIG_SHELL is bash and it inherits a 2677267897Sdelphij # broken ls alias from the environment. This has actually 2678267897Sdelphij # happened. Such a system could not be considered "sane". 2679267897Sdelphij as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2680267897Sdelphij alias in your environment" "$LINENO" 5 2681267897Sdelphij fi 2682267897Sdelphij if test "$2" = conftest.file || test $am_try -eq 2; then 2683267897Sdelphij break 2684267897Sdelphij fi 2685267897Sdelphij # Just in case. 2686267897Sdelphij sleep 1 2687267897Sdelphij am_has_slept=yes 2688267897Sdelphij done 2689133359Sobrien test "$2" = conftest.file 269068349Sobrien ) 269168349Sobrienthen 269268349Sobrien # Ok. 269368349Sobrien : 269468349Sobrienelse 2695234449Sobrien as_fn_error $? "newly created file is older than distributed files! 2696234449SobrienCheck your system clock" "$LINENO" 5 269768349Sobrienfi 2698234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2699234449Sobrien$as_echo "yes" >&6; } 2700267897Sdelphij# If we didn't sleep, we still need to ensure time stamps of config.status and 2701267897Sdelphij# generated files are strictly newer. 2702267897Sdelphijam_sleep_pid= 2703267897Sdelphijif grep 'slept: no' conftest.file >/dev/null 2>&1; then 2704267897Sdelphij ( sleep 1 ) & 2705267897Sdelphij am_sleep_pid=$! 2706267897Sdelphijfi 2707267897Sdelphij 2708267897Sdelphijrm -f conftest.file 2709267897Sdelphij 271068349Sobrientest "$program_prefix" != NONE && 2711175296Sobrien program_transform_name="s&^&$program_prefix&;$program_transform_name" 271268349Sobrien# Use a double $ so make ignores it. 271368349Sobrientest "$program_suffix" != NONE && 2714175296Sobrien program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2715234449Sobrien# Double any \ or $. 2716133359Sobrien# By default was `s,x,x', remove it if useless. 2717234449Sobrienac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2718234449Sobrienprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 271968349Sobrien 2720284237Sdelphij# Expand $ac_aux_dir to an absolute path. 2721284237Sdelphijam_aux_dir=`cd "$ac_aux_dir" && pwd` 2722133359Sobrien 2723234449Sobrienif test x"${MISSING+set}" != xset; then 2724234449Sobrien case $am_aux_dir in 2725234449Sobrien *\ * | *\ *) 2726234449Sobrien MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2727234449Sobrien *) 2728234449Sobrien MISSING="\${SHELL} $am_aux_dir/missing" ;; 2729234449Sobrien esac 2730234449Sobrienfi 2731133359Sobrien# Use eval to expand $SHELL 2732267897Sdelphijif eval "$MISSING --is-lightweight"; then 2733267897Sdelphij am_missing_run="$MISSING " 273468349Sobrienelse 2735133359Sobrien am_missing_run= 2736267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2737267897Sdelphij$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2738133359Sobrienfi 2739133359Sobrien 2740284237Sdelphijif test x"${install_sh+set}" != xset; then 2741234449Sobrien case $am_aux_dir in 2742234449Sobrien *\ * | *\ *) 2743234449Sobrien install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2744234449Sobrien *) 2745234449Sobrien install_sh="\${SHELL} $am_aux_dir/install-sh" 2746234449Sobrien esac 2747234449Sobrienfi 2748234449Sobrien 2749267897Sdelphij# Installed binaries are usually stripped using 'strip' when the user 2750267897Sdelphij# run "make install-strip". However 'strip' might not be the right 2751234449Sobrien# tool to use in cross-compilation environments, therefore Automake 2752267897Sdelphij# will honor the 'STRIP' environment variable to overrule this program. 2753234449Sobrienif test "$cross_compiling" != no; then 2754234449Sobrien if test -n "$ac_tool_prefix"; then 2755234449Sobrien # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2756234449Sobrienset dummy ${ac_tool_prefix}strip; ac_word=$2 2757234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2758234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 2759234449Sobrienif ${ac_cv_prog_STRIP+:} false; then : 2760234449Sobrien $as_echo_n "(cached) " >&6 2761234449Sobrienelse 2762234449Sobrien if test -n "$STRIP"; then 2763234449Sobrien ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2764234449Sobrienelse 2765234449Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2766234449Sobrienfor as_dir in $PATH 2767234449Sobriendo 2768234449Sobrien IFS=$as_save_IFS 2769234449Sobrien test -z "$as_dir" && as_dir=. 2770234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 2771267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2772234449Sobrien ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2773234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2774234449Sobrien break 2 2775234449Sobrien fi 2776234449Sobriendone 2777234449Sobrien done 2778234449SobrienIFS=$as_save_IFS 2779234449Sobrien 2780234449Sobrienfi 2781234449Sobrienfi 2782234449SobrienSTRIP=$ac_cv_prog_STRIP 2783234449Sobrienif test -n "$STRIP"; then 2784234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2785234449Sobrien$as_echo "$STRIP" >&6; } 2786234449Sobrienelse 2787234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2788234449Sobrien$as_echo "no" >&6; } 2789234449Sobrienfi 2790234449Sobrien 2791234449Sobrien 2792234449Sobrienfi 2793234449Sobrienif test -z "$ac_cv_prog_STRIP"; then 2794234449Sobrien ac_ct_STRIP=$STRIP 2795234449Sobrien # Extract the first word of "strip", so it can be a program name with args. 2796234449Sobrienset dummy strip; ac_word=$2 2797234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2798234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 2799234449Sobrienif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2800234449Sobrien $as_echo_n "(cached) " >&6 2801234449Sobrienelse 2802234449Sobrien if test -n "$ac_ct_STRIP"; then 2803234449Sobrien ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2804234449Sobrienelse 2805234449Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2806234449Sobrienfor as_dir in $PATH 2807234449Sobriendo 2808234449Sobrien IFS=$as_save_IFS 2809234449Sobrien test -z "$as_dir" && as_dir=. 2810234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 2811267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2812234449Sobrien ac_cv_prog_ac_ct_STRIP="strip" 2813234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2814234449Sobrien break 2 2815234449Sobrien fi 2816234449Sobriendone 2817234449Sobrien done 2818234449SobrienIFS=$as_save_IFS 2819234449Sobrien 2820234449Sobrienfi 2821234449Sobrienfi 2822234449Sobrienac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2823234449Sobrienif test -n "$ac_ct_STRIP"; then 2824234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2825234449Sobrien$as_echo "$ac_ct_STRIP" >&6; } 2826234449Sobrienelse 2827234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2828234449Sobrien$as_echo "no" >&6; } 2829234449Sobrienfi 2830234449Sobrien 2831234449Sobrien if test "x$ac_ct_STRIP" = x; then 2832234449Sobrien STRIP=":" 2833234449Sobrien else 2834234449Sobrien case $cross_compiling:$ac_tool_warned in 2835234449Sobrienyes:) 2836234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2837234449Sobrien$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2838234449Sobrienac_tool_warned=yes ;; 2839234449Sobrienesac 2840234449Sobrien STRIP=$ac_ct_STRIP 2841234449Sobrien fi 2842234449Sobrienelse 2843234449Sobrien STRIP="$ac_cv_prog_STRIP" 2844234449Sobrienfi 2845234449Sobrien 2846234449Sobrienfi 2847234449SobrienINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2848234449Sobrien 2849234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2850234449Sobrien$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2851175296Sobrienif test -z "$MKDIR_P"; then 2852234449Sobrien if ${ac_cv_path_mkdir+:} false; then : 2853234449Sobrien $as_echo_n "(cached) " >&6 2854159764Sobrienelse 2855175296Sobrien as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2856175296Sobrienfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2857175296Sobriendo 2858175296Sobrien IFS=$as_save_IFS 2859175296Sobrien test -z "$as_dir" && as_dir=. 2860234449Sobrien for ac_prog in mkdir gmkdir; do 2861175296Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 2862267897Sdelphij as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2863175296Sobrien case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2864175296Sobrien 'mkdir (GNU coreutils) '* | \ 2865175296Sobrien 'mkdir (coreutils) '* | \ 2866175296Sobrien 'mkdir (fileutils) '4.1*) 2867175296Sobrien ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2868175296Sobrien break 3;; 2869175296Sobrien esac 2870175296Sobrien done 2871175296Sobrien done 2872234449Sobrien done 2873175296SobrienIFS=$as_save_IFS 2874175296Sobrien 2875175296Sobrienfi 2876175296Sobrien 2877234449Sobrien test -d ./--version && rmdir ./--version 2878175296Sobrien if test "${ac_cv_path_mkdir+set}" = set; then 2879175296Sobrien MKDIR_P="$ac_cv_path_mkdir -p" 2880159764Sobrien else 2881175296Sobrien # As a last resort, use the slow shell script. Don't cache a 2882175296Sobrien # value for MKDIR_P within a source directory, because that will 2883175296Sobrien # break other packages using the cache if that directory is 2884175296Sobrien # removed, or if the value is a relative name. 2885175296Sobrien MKDIR_P="$ac_install_sh -d" 2886159764Sobrien fi 2887159764Sobrienfi 2888234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2889234449Sobrien$as_echo "$MKDIR_P" >&6; } 2890159764Sobrien 2891133359Sobrienfor ac_prog in gawk mawk nawk awk 2892133359Sobriendo 2893133359Sobrien # Extract the first word of "$ac_prog", so it can be a program name with args. 2894133359Sobrienset dummy $ac_prog; ac_word=$2 2895234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2896234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 2897234449Sobrienif ${ac_cv_prog_AWK+:} false; then : 2898234449Sobrien $as_echo_n "(cached) " >&6 2899133359Sobrienelse 2900133359Sobrien if test -n "$AWK"; then 2901133359Sobrien ac_cv_prog_AWK="$AWK" # Let the user override the test. 2902133359Sobrienelse 2903133359Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2904133359Sobrienfor as_dir in $PATH 2905133359Sobriendo 2906133359Sobrien IFS=$as_save_IFS 2907133359Sobrien test -z "$as_dir" && as_dir=. 2908234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 2909267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2910133359Sobrien ac_cv_prog_AWK="$ac_prog" 2911234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2912133359Sobrien break 2 2913133359Sobrien fi 2914133359Sobriendone 2915234449Sobrien done 2916175296SobrienIFS=$as_save_IFS 2917133359Sobrien 2918133359Sobrienfi 2919133359Sobrienfi 2920133359SobrienAWK=$ac_cv_prog_AWK 2921133359Sobrienif test -n "$AWK"; then 2922234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2923234449Sobrien$as_echo "$AWK" >&6; } 2924133359Sobrienelse 2925234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2926234449Sobrien$as_echo "no" >&6; } 2927133359Sobrienfi 2928133359Sobrien 2929175296Sobrien 2930133359Sobrien test -n "$AWK" && break 2931133359Sobriendone 2932133359Sobrien 2933234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2934234449Sobrien$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2935234449Sobrienset x ${MAKE-make} 2936234449Sobrienac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2937234449Sobrienif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2938234449Sobrien $as_echo_n "(cached) " >&6 2939133359Sobrienelse 2940133359Sobrien cat >conftest.make <<\_ACEOF 2941175296SobrienSHELL = /bin/sh 294268349Sobrienall: 2943175296Sobrien @echo '@@@%%%=$(MAKE)=@@@%%%' 2944133359Sobrien_ACEOF 2945234449Sobrien# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2946175296Sobriencase `${MAKE-make} -f conftest.make 2>/dev/null` in 2947175296Sobrien *@@@%%%=?*=@@@%%%*) 2948175296Sobrien eval ac_cv_prog_make_${ac_make}_set=yes;; 2949175296Sobrien *) 2950175296Sobrien eval ac_cv_prog_make_${ac_make}_set=no;; 2951175296Sobrienesac 2952133359Sobrienrm -f conftest.make 295368349Sobrienfi 2954175296Sobrienif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2955234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2956234449Sobrien$as_echo "yes" >&6; } 295768349Sobrien SET_MAKE= 295868349Sobrienelse 2959234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2960234449Sobrien$as_echo "no" >&6; } 296168349Sobrien SET_MAKE="MAKE=${MAKE-make}" 296268349Sobrienfi 296368349Sobrien 2964159764Sobrienrm -rf .tst 2>/dev/null 2965159764Sobrienmkdir .tst 2>/dev/null 2966159764Sobrienif test -d .tst; then 2967159764Sobrien am__leading_dot=. 2968159764Sobrienelse 2969159764Sobrien am__leading_dot=_ 2970159764Sobrienfi 2971159764Sobrienrmdir .tst 2>/dev/null 2972159764Sobrien 2973267897Sdelphij# Check whether --enable-silent-rules was given. 2974267897Sdelphijif test "${enable_silent_rules+set}" = set; then : 2975267897Sdelphij enableval=$enable_silent_rules; 2976267897Sdelphijfi 2977267897Sdelphij 2978267897Sdelphijcase $enable_silent_rules in # ((( 2979267897Sdelphij yes) AM_DEFAULT_VERBOSITY=0;; 2980267897Sdelphij no) AM_DEFAULT_VERBOSITY=1;; 2981267897Sdelphij *) AM_DEFAULT_VERBOSITY=1;; 2982267897Sdelphijesac 2983267897Sdelphijam_make=${MAKE-make} 2984267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2985267897Sdelphij$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2986267897Sdelphijif ${am_cv_make_support_nested_variables+:} false; then : 2987267897Sdelphij $as_echo_n "(cached) " >&6 2988267897Sdelphijelse 2989267897Sdelphij if $as_echo 'TRUE=$(BAR$(V)) 2990267897SdelphijBAR0=false 2991267897SdelphijBAR1=true 2992267897SdelphijV=1 2993267897Sdelphijam__doit: 2994267897Sdelphij @$(TRUE) 2995267897Sdelphij.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2996267897Sdelphij am_cv_make_support_nested_variables=yes 2997267897Sdelphijelse 2998267897Sdelphij am_cv_make_support_nested_variables=no 2999267897Sdelphijfi 3000267897Sdelphijfi 3001267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3002267897Sdelphij$as_echo "$am_cv_make_support_nested_variables" >&6; } 3003267897Sdelphijif test $am_cv_make_support_nested_variables = yes; then 3004267897Sdelphij AM_V='$(V)' 3005267897Sdelphij AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3006267897Sdelphijelse 3007267897Sdelphij AM_V=$AM_DEFAULT_VERBOSITY 3008267897Sdelphij AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3009267897Sdelphijfi 3010267897SdelphijAM_BACKSLASH='\' 3011267897Sdelphij 3012175296Sobrienif test "`cd $srcdir && pwd`" != "`pwd`"; then 3013175296Sobrien # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3014175296Sobrien # is not polluted with repeated "-I." 3015175296Sobrien am__isrc=' -I$(srcdir)' 3016175296Sobrien # test to see if srcdir already configured 3017175296Sobrien if test -f $srcdir/config.status; then 3018234449Sobrien as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3019175296Sobrien fi 3020133359Sobrienfi 302168349Sobrien 3022159764Sobrien# test whether we have cygpath 3023159764Sobrienif test -z "$CYGPATH_W"; then 3024159764Sobrien if (cygpath --version) >/dev/null 2>/dev/null; then 3025159764Sobrien CYGPATH_W='cygpath -w' 3026159764Sobrien else 3027159764Sobrien CYGPATH_W=echo 3028159764Sobrien fi 3029159764Sobrienfi 3030159764Sobrien 3031159764Sobrien 3032133359Sobrien# Define the identity of the package. 3033186691Sobrien PACKAGE='file' 3034302221Sdelphij VERSION='5.28' 3035133359Sobrien 3036133359Sobrien 3037133359Sobriencat >>confdefs.h <<_ACEOF 303868349Sobrien#define PACKAGE "$PACKAGE" 3039133359Sobrien_ACEOF 304068349Sobrien 3041133359Sobrien 3042133359Sobriencat >>confdefs.h <<_ACEOF 304368349Sobrien#define VERSION "$VERSION" 3044133359Sobrien_ACEOF 304568349Sobrien 3046133359Sobrien# Some tools Automake needs. 304768349Sobrien 3048133359SobrienACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 304968349Sobrien 3050133359Sobrien 3051133359SobrienAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3052133359Sobrien 3053133359Sobrien 3054133359SobrienAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3055133359Sobrien 3056133359Sobrien 3057133359SobrienAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3058133359Sobrien 3059133359Sobrien 3060133359SobrienMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3061133359Sobrien 3062267897Sdelphij# For better backward compatibility. To be removed once Automake 1.9.x 3063267897Sdelphij# dies out for good. For more background, see: 3064267897Sdelphij# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3065267897Sdelphij# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3066267897Sdelphijmkdir_p='$(MKDIR_P)' 3067267897Sdelphij 3068284237Sdelphij# We need awk for the "check" target (and possibly the TAP driver). The 3069284237Sdelphij# system "awk" is bad on some platforms. 3070267897Sdelphij# Always define AMTAR for backward compatibility. Yes, it's still used 3071267897Sdelphij# in the wild :-( We should find a proper way to deprecate it ... 3072267897SdelphijAMTAR='$${TAR-tar}' 307368349Sobrien 307468349Sobrien 3075267897Sdelphij# We'll loop over all known methods to create a tar archive until one works. 3076267897Sdelphij_am_tools='gnutar pax cpio none' 307768349Sobrien 3078267897Sdelphijam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 307968349Sobrien 3080133359Sobrien 3081133359Sobrien 3082133359Sobrien 3083267897Sdelphij 3084267897Sdelphij 3085267897Sdelphij# POSIX will say in a future version that running "rm -f" with no argument 3086267897Sdelphij# is OK; and we want to be able to make that assumption in our Makefile 3087267897Sdelphij# recipes. So use an aggressive probe to check that the usage we want is 3088267897Sdelphij# actually supported "in the wild" to an acceptable degree. 3089267897Sdelphij# See automake bug#10828. 3090267897Sdelphij# To make any issue more visible, cause the running configure to be aborted 3091267897Sdelphij# by default if the 'rm' program in use doesn't match our expectations; the 3092267897Sdelphij# user can still override this though. 3093267897Sdelphijif rm -f && rm -fr && rm -rf; then : OK; else 3094267897Sdelphij cat >&2 <<'END' 3095267897SdelphijOops! 3096267897Sdelphij 3097267897SdelphijYour 'rm' program seems unable to run without file operands specified 3098267897Sdelphijon the command line, even when the '-f' option is present. This is contrary 3099267897Sdelphijto the behaviour of most rm programs out there, and not conforming with 3100267897Sdelphijthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3101267897Sdelphij 3102267897SdelphijPlease tell bug-automake@gnu.org about your system, including the value 3103267897Sdelphijof your $PATH and any error possibly output before this message. This 3104267897Sdelphijcan help us improve future automake versions. 3105267897Sdelphij 3106267897SdelphijEND 3107267897Sdelphij if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3108267897Sdelphij echo 'Configuration will proceed anyway, since you have set the' >&2 3109267897Sdelphij echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3110267897Sdelphij echo >&2 3111267897Sdelphij else 3112267897Sdelphij cat >&2 <<'END' 3113267897SdelphijAborting the configuration process, to ensure you take notice of the issue. 3114267897Sdelphij 3115267897SdelphijYou can download and install GNU coreutils to get an 'rm' implementation 3116267897Sdelphijthat behaves properly: <http://www.gnu.org/software/coreutils/>. 3117267897Sdelphij 3118267897SdelphijIf you want to complete the configuration process using your problematic 3119267897Sdelphij'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3120267897Sdelphijto "yes", and re-run configure. 3121267897Sdelphij 3122267897SdelphijEND 3123267897Sdelphij as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3124267897Sdelphij fi 3125267897Sdelphijfi 3126284237Sdelphij 3127234449Sobrien# Check whether --enable-silent-rules was given. 3128234449Sobrienif test "${enable_silent_rules+set}" = set; then : 3129234449Sobrien enableval=$enable_silent_rules; 3130234449Sobrienfi 3131234449Sobrien 3132267897Sdelphijcase $enable_silent_rules in # ((( 3133267897Sdelphij yes) AM_DEFAULT_VERBOSITY=0;; 3134267897Sdelphij no) AM_DEFAULT_VERBOSITY=1;; 3135267897Sdelphij *) AM_DEFAULT_VERBOSITY=0;; 3136234449Sobrienesac 3137267897Sdelphijam_make=${MAKE-make} 3138267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3139267897Sdelphij$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3140267897Sdelphijif ${am_cv_make_support_nested_variables+:} false; then : 3141267897Sdelphij $as_echo_n "(cached) " >&6 3142267897Sdelphijelse 3143267897Sdelphij if $as_echo 'TRUE=$(BAR$(V)) 3144267897SdelphijBAR0=false 3145267897SdelphijBAR1=true 3146267897SdelphijV=1 3147267897Sdelphijam__doit: 3148267897Sdelphij @$(TRUE) 3149267897Sdelphij.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3150267897Sdelphij am_cv_make_support_nested_variables=yes 3151267897Sdelphijelse 3152267897Sdelphij am_cv_make_support_nested_variables=no 3153267897Sdelphijfi 3154267897Sdelphijfi 3155267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3156267897Sdelphij$as_echo "$am_cv_make_support_nested_variables" >&6; } 3157267897Sdelphijif test $am_cv_make_support_nested_variables = yes; then 3158267897Sdelphij AM_V='$(V)' 3159267897Sdelphij AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3160267897Sdelphijelse 3161267897Sdelphij AM_V=$AM_DEFAULT_VERBOSITY 3162267897Sdelphij AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3163267897Sdelphijfi 3164234449SobrienAM_BACKSLASH='\' 3165234449Sobrien 3166234449Sobrien 3167175296Sobrienac_config_headers="$ac_config_headers config.h" 3168159764Sobrien 3169159764Sobrien 3170234449Sobrien 3171234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5 3172234449Sobrien$as_echo_n "checking for builtin ELF support... " >&6; } 3173175296Sobrien# Check whether --enable-elf was given. 3174234449Sobrienif test "${enable_elf+set}" = set; then : 3175175296Sobrien enableval=$enable_elf; if test "${enableval}" = yes; then 3176234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3177234449Sobrien$as_echo "yes" >&6; } 3178186691Sobrien 3179234449Sobrien$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 318068349Sobrien 318168349Sobrienelse 3182234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3183234449Sobrien$as_echo "no" >&6; } 318468349Sobrienfi 318568349Sobrienelse 3186133359Sobrien 318768349Sobrien # enable by default 3188234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3189234449Sobrien$as_echo "yes" >&6; } 3190186691Sobrien 3191234449Sobrien$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 319268349Sobrien 319368349Sobrien 3194175296Sobrienfi 319568349Sobrien 3196175296Sobrien 3197234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5 3198234449Sobrien$as_echo_n "checking for ELF core file support... " >&6; } 3199175296Sobrien# Check whether --enable-elf-core was given. 3200234449Sobrienif test "${enable_elf_core+set}" = set; then : 3201175296Sobrien enableval=$enable_elf_core; if test "${enableval}" = yes; then 3202234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3203234449Sobrien$as_echo "yes" >&6; } 3204186691Sobrien 3205234449Sobrien$as_echo "#define ELFCORE 1" >>confdefs.h 320668349Sobrien 320768349Sobrienelse 3208234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3209234449Sobrien$as_echo "no" >&6; } 321068349Sobrienfi 321168349Sobrienelse 3212133359Sobrien 321368349Sobrien # enable by default 3214234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3215234449Sobrien$as_echo "yes" >&6; } 3216186691Sobrien 3217234449Sobrien$as_echo "#define ELFCORE 1" >>confdefs.h 321868349Sobrien 321968349Sobrien 3220175296Sobrienfi 322168349Sobrien 3222175296Sobrien 3223302221Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5 3224302221Sdelphij$as_echo_n "checking for zlib support... " >&6; } 3225302221Sdelphij# Check whether --enable-zlib was given. 3226302221Sdelphijif test "${enable_zlib+set}" = set; then : 3227302221Sdelphij enableval=$enable_zlib; 3228302221Sdelphijfi 3229302221Sdelphij 3230302221Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5 3231302221Sdelphij$as_echo "$enable_zlib" >&6; } 3232302221Sdelphij 3233234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5 3234234449Sobrien$as_echo_n "checking for file formats in man section 5... " >&6; } 3235175296Sobrien# Check whether --enable-fsect-man5 was given. 3236234449Sobrienif test "${enable_fsect_man5+set}" = set; then : 3237175296Sobrien enableval=$enable_fsect_man5; if test "${enableval}" = yes; then 3238234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3239234449Sobrien$as_echo "yes" >&6; } 324080588Sobrien fsect=5 324180588Sobrienelse 3242234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3243234449Sobrien$as_echo "no" >&6; } 324480588Sobrien fsect=4 324580588Sobrienfi 324680588Sobrienelse 3247133359Sobrien 324880588Sobrien # disable by default 3249234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3250234449Sobrien$as_echo "no" >&6; } 325180588Sobrien fsect=4 325280588Sobrien 3253175296Sobrienfi 325480588Sobrien 325580588Sobrien 3256234449Sobrien# Make sure we can run config.sub. 3257234449Sobrien$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3258234449Sobrien as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3259234449Sobrien 3260234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3261234449Sobrien$as_echo_n "checking build system type... " >&6; } 3262234449Sobrienif ${ac_cv_build+:} false; then : 3263234449Sobrien $as_echo_n "(cached) " >&6 3264234449Sobrienelse 3265234449Sobrien ac_build_alias=$build_alias 3266234449Sobrientest "x$ac_build_alias" = x && 3267234449Sobrien ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3268234449Sobrientest "x$ac_build_alias" = x && 3269234449Sobrien as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3270234449Sobrienac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3271234449Sobrien as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3272234449Sobrien 3273234449Sobrienfi 3274234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3275234449Sobrien$as_echo "$ac_cv_build" >&6; } 3276234449Sobriencase $ac_cv_build in 3277234449Sobrien*-*-*) ;; 3278234449Sobrien*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3279234449Sobrienesac 3280234449Sobrienbuild=$ac_cv_build 3281234449Sobrienac_save_IFS=$IFS; IFS='-' 3282234449Sobrienset x $ac_cv_build 3283234449Sobrienshift 3284234449Sobrienbuild_cpu=$1 3285234449Sobrienbuild_vendor=$2 3286234449Sobrienshift; shift 3287234449Sobrien# Remember, the first character of IFS is used to create $*, 3288234449Sobrien# except with old shells: 3289234449Sobrienbuild_os=$* 3290234449SobrienIFS=$ac_save_IFS 3291234449Sobriencase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3292234449Sobrien 3293234449Sobrien 3294234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3295234449Sobrien$as_echo_n "checking host system type... " >&6; } 3296234449Sobrienif ${ac_cv_host+:} false; then : 3297234449Sobrien $as_echo_n "(cached) " >&6 3298234449Sobrienelse 3299234449Sobrien if test "x$host_alias" = x; then 3300234449Sobrien ac_cv_host=$ac_cv_build 3301234449Sobrienelse 3302234449Sobrien ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3303234449Sobrien as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3304234449Sobrienfi 3305234449Sobrien 3306234449Sobrienfi 3307234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3308234449Sobrien$as_echo "$ac_cv_host" >&6; } 3309234449Sobriencase $ac_cv_host in 3310234449Sobrien*-*-*) ;; 3311234449Sobrien*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3312234449Sobrienesac 3313234449Sobrienhost=$ac_cv_host 3314234449Sobrienac_save_IFS=$IFS; IFS='-' 3315234449Sobrienset x $ac_cv_host 3316234449Sobrienshift 3317234449Sobrienhost_cpu=$1 3318234449Sobrienhost_vendor=$2 3319234449Sobrienshift; shift 3320234449Sobrien# Remember, the first character of IFS is used to create $*, 3321234449Sobrien# except with old shells: 3322234449Sobrienhost_os=$* 3323234449SobrienIFS=$ac_save_IFS 3324234449Sobriencase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3325234449Sobrien 3326234449Sobrien 3327234449Sobriencase "$host_os" in 3328234449Sobrien mingw32*) 3329234449Sobrien MINGW=1 3330234449Sobrien ;; 3331234449Sobrien *) 3332234449Sobrien MINGW=0 3333234449Sobrien ;; 3334234449Sobrienesac 3335234449Sobrien 3336234449Sobrien if test "$MINGW" = 1; then 3337234449Sobrien MINGW_TRUE= 3338234449Sobrien MINGW_FALSE='#' 3339234449Sobrienelse 3340234449Sobrien MINGW_TRUE='#' 3341234449Sobrien MINGW_FALSE= 3342234449Sobrienfi 3343234449Sobrien 3344234449Sobrien 3345192350Sdelphijpkgdatadir='$(datadir)/misc' 3346186691Sobrien 3347192350Sdelphij 3348175296Sobrien if test x$fsect = x5; then 334980588Sobrien FSECT5_TRUE= 335080588Sobrien FSECT5_FALSE='#' 335180588Sobrienelse 335280588Sobrien FSECT5_TRUE='#' 335380588Sobrien FSECT5_FALSE= 335480588Sobrienfi 335580588Sobrien 3356133359Sobrien 3357186691Sobrien 3358267897Sdelphij 3359234449SobrienDEPDIR="${am__leading_dot}deps" 3360186691Sobrien 3361234449Sobrienac_config_commands="$ac_config_commands depfiles" 3362175296Sobrien 3363175296Sobrien 3364234449Sobrienam_make=${MAKE-make} 3365234449Sobriencat > confinc << 'END' 3366234449Sobrienam__doit: 3367234449Sobrien @echo this is the am__doit target 3368234449Sobrien.PHONY: am__doit 3369234449SobrienEND 3370234449Sobrien# If we don't find an include directive, just comment out the code. 3371234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3372234449Sobrien$as_echo_n "checking for style of include used by $am_make... " >&6; } 3373234449Sobrienam__include="#" 3374234449Sobrienam__quote= 3375234449Sobrien_am_result=none 3376234449Sobrien# First try GNU make style include. 3377234449Sobrienecho "include confinc" > confmf 3378267897Sdelphij# Ignore all kinds of additional output from 'make'. 3379234449Sobriencase `$am_make -s -f confmf 2> /dev/null` in #( 3380234449Sobrien*the\ am__doit\ target*) 3381234449Sobrien am__include=include 3382234449Sobrien am__quote= 3383234449Sobrien _am_result=GNU 3384234449Sobrien ;; 3385234449Sobrienesac 3386234449Sobrien# Now try BSD make style include. 3387234449Sobrienif test "$am__include" = "#"; then 3388234449Sobrien echo '.include "confinc"' > confmf 3389234449Sobrien case `$am_make -s -f confmf 2> /dev/null` in #( 3390234449Sobrien *the\ am__doit\ target*) 3391234449Sobrien am__include=.include 3392234449Sobrien am__quote="\"" 3393234449Sobrien _am_result=BSD 3394234449Sobrien ;; 3395234449Sobrien esac 3396234449Sobrienfi 3397175296Sobrien 3398234449Sobrien 3399234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3400234449Sobrien$as_echo "$_am_result" >&6; } 3401234449Sobrienrm -f confinc confmf 3402234449Sobrien 3403234449Sobrien# Check whether --enable-dependency-tracking was given. 3404234449Sobrienif test "${enable_dependency_tracking+set}" = set; then : 3405234449Sobrien enableval=$enable_dependency_tracking; 3406234449Sobrienfi 3407234449Sobrien 3408234449Sobrienif test "x$enable_dependency_tracking" != xno; then 3409234449Sobrien am_depcomp="$ac_aux_dir/depcomp" 3410234449Sobrien AMDEPBACKSLASH='\' 3411267897Sdelphij am__nodep='_no' 3412234449Sobrienfi 3413234449Sobrien if test "x$enable_dependency_tracking" != xno; then 3414234449Sobrien AMDEP_TRUE= 3415234449Sobrien AMDEP_FALSE='#' 3416234449Sobrienelse 3417234449Sobrien AMDEP_TRUE='#' 3418234449Sobrien AMDEP_FALSE= 3419234449Sobrienfi 3420234449Sobrien 3421234449Sobrien 3422133359Sobrienac_ext=c 3423133359Sobrienac_cpp='$CPP $CPPFLAGS' 3424133359Sobrienac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3425133359Sobrienac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3426133359Sobrienac_compiler_gnu=$ac_cv_c_compiler_gnu 3427133359Sobrienif test -n "$ac_tool_prefix"; then 3428133359Sobrien # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3429133359Sobrienset dummy ${ac_tool_prefix}gcc; ac_word=$2 3430234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3431234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 3432234449Sobrienif ${ac_cv_prog_CC+:} false; then : 3433234449Sobrien $as_echo_n "(cached) " >&6 3434133359Sobrienelse 3435133359Sobrien if test -n "$CC"; then 3436133359Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 3437133359Sobrienelse 3438133359Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3439133359Sobrienfor as_dir in $PATH 3440133359Sobriendo 3441133359Sobrien IFS=$as_save_IFS 3442133359Sobrien test -z "$as_dir" && as_dir=. 3443234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 3444267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3445133359Sobrien ac_cv_prog_CC="${ac_tool_prefix}gcc" 3446234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3447133359Sobrien break 2 3448133359Sobrien fi 3449133359Sobriendone 3450234449Sobrien done 3451175296SobrienIFS=$as_save_IFS 3452133359Sobrien 3453133359Sobrienfi 3454133359Sobrienfi 3455133359SobrienCC=$ac_cv_prog_CC 3456133359Sobrienif test -n "$CC"; then 3457234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3458234449Sobrien$as_echo "$CC" >&6; } 3459133359Sobrienelse 3460234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3461234449Sobrien$as_echo "no" >&6; } 3462133359Sobrienfi 3463133359Sobrien 3464175296Sobrien 3465133359Sobrienfi 3466133359Sobrienif test -z "$ac_cv_prog_CC"; then 3467133359Sobrien ac_ct_CC=$CC 3468133359Sobrien # Extract the first word of "gcc", so it can be a program name with args. 346968349Sobrienset dummy gcc; ac_word=$2 3470234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3471234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 3472234449Sobrienif ${ac_cv_prog_ac_ct_CC+:} false; then : 3473234449Sobrien $as_echo_n "(cached) " >&6 347468349Sobrienelse 3475133359Sobrien if test -n "$ac_ct_CC"; then 3476133359Sobrien ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3477133359Sobrienelse 3478133359Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3479133359Sobrienfor as_dir in $PATH 3480133359Sobriendo 3481133359Sobrien IFS=$as_save_IFS 3482133359Sobrien test -z "$as_dir" && as_dir=. 3483234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 3484267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3485133359Sobrien ac_cv_prog_ac_ct_CC="gcc" 3486234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3487133359Sobrien break 2 3488133359Sobrien fi 3489133359Sobriendone 3490234449Sobrien done 3491175296SobrienIFS=$as_save_IFS 3492133359Sobrien 3493133359Sobrienfi 3494133359Sobrienfi 3495133359Sobrienac_ct_CC=$ac_cv_prog_ac_ct_CC 3496133359Sobrienif test -n "$ac_ct_CC"; then 3497234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3498234449Sobrien$as_echo "$ac_ct_CC" >&6; } 3499133359Sobrienelse 3500234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3501234449Sobrien$as_echo "no" >&6; } 3502133359Sobrienfi 3503133359Sobrien 3504175296Sobrien if test "x$ac_ct_CC" = x; then 3505175296Sobrien CC="" 3506175296Sobrien else 3507175296Sobrien case $cross_compiling:$ac_tool_warned in 3508175296Sobrienyes:) 3509234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3510234449Sobrien$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3511175296Sobrienac_tool_warned=yes ;; 3512175296Sobrienesac 3513175296Sobrien CC=$ac_ct_CC 3514175296Sobrien fi 3515133359Sobrienelse 3516133359Sobrien CC="$ac_cv_prog_CC" 3517133359Sobrienfi 3518133359Sobrien 3519133359Sobrienif test -z "$CC"; then 3520175296Sobrien if test -n "$ac_tool_prefix"; then 3521175296Sobrien # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3522133359Sobrienset dummy ${ac_tool_prefix}cc; ac_word=$2 3523234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3524234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 3525234449Sobrienif ${ac_cv_prog_CC+:} false; then : 3526234449Sobrien $as_echo_n "(cached) " >&6 3527133359Sobrienelse 352868349Sobrien if test -n "$CC"; then 352968349Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 353068349Sobrienelse 3531133359Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3532133359Sobrienfor as_dir in $PATH 3533133359Sobriendo 3534133359Sobrien IFS=$as_save_IFS 3535133359Sobrien test -z "$as_dir" && as_dir=. 3536234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 3537267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3538133359Sobrien ac_cv_prog_CC="${ac_tool_prefix}cc" 3539234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3540133359Sobrien break 2 3541133359Sobrien fi 3542133359Sobriendone 3543234449Sobrien done 3544175296SobrienIFS=$as_save_IFS 3545133359Sobrien 354668349Sobrienfi 354768349Sobrienfi 3548133359SobrienCC=$ac_cv_prog_CC 354968349Sobrienif test -n "$CC"; then 3550234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3551234449Sobrien$as_echo "$CC" >&6; } 355268349Sobrienelse 3553234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3554234449Sobrien$as_echo "no" >&6; } 355568349Sobrienfi 355668349Sobrien 3557175296Sobrien 3558133359Sobrien fi 3559133359Sobrienfi 356068349Sobrienif test -z "$CC"; then 356168349Sobrien # Extract the first word of "cc", so it can be a program name with args. 356268349Sobrienset dummy cc; ac_word=$2 3563234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3564234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 3565234449Sobrienif ${ac_cv_prog_CC+:} false; then : 3566234449Sobrien $as_echo_n "(cached) " >&6 356768349Sobrienelse 356868349Sobrien if test -n "$CC"; then 356968349Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 357068349Sobrienelse 357168349Sobrien ac_prog_rejected=no 3572133359Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3573133359Sobrienfor as_dir in $PATH 3574133359Sobriendo 3575133359Sobrien IFS=$as_save_IFS 3576133359Sobrien test -z "$as_dir" && as_dir=. 3577234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 3578267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3579133359Sobrien if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3580133359Sobrien ac_prog_rejected=yes 3581133359Sobrien continue 3582133359Sobrien fi 3583133359Sobrien ac_cv_prog_CC="cc" 3584234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3585133359Sobrien break 2 3586133359Sobrien fi 3587133359Sobriendone 3588234449Sobrien done 3589175296SobrienIFS=$as_save_IFS 3590133359Sobrien 359168349Sobrienif test $ac_prog_rejected = yes; then 359268349Sobrien # We found a bogon in the path, so make sure we never use it. 359368349Sobrien set dummy $ac_cv_prog_CC 359468349Sobrien shift 3595133359Sobrien if test $# != 0; then 359668349Sobrien # We chose a different compiler from the bogus one. 359768349Sobrien # However, it has the same basename, so the bogon will be chosen 359868349Sobrien # first if we set CC to just the basename; use the full file name. 359968349Sobrien shift 3600159764Sobrien ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 360168349Sobrien fi 360268349Sobrienfi 360368349Sobrienfi 360468349Sobrienfi 3605133359SobrienCC=$ac_cv_prog_CC 360668349Sobrienif test -n "$CC"; then 3607234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3608234449Sobrien$as_echo "$CC" >&6; } 360968349Sobrienelse 3610234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3611234449Sobrien$as_echo "no" >&6; } 361268349Sobrienfi 361368349Sobrien 3614175296Sobrien 3615133359Sobrienfi 3616133359Sobrienif test -z "$CC"; then 3617133359Sobrien if test -n "$ac_tool_prefix"; then 3618175296Sobrien for ac_prog in cl.exe 3619133359Sobrien do 3620133359Sobrien # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3621133359Sobrienset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3622234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3623234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 3624234449Sobrienif ${ac_cv_prog_CC+:} false; then : 3625234449Sobrien $as_echo_n "(cached) " >&6 362668349Sobrienelse 362768349Sobrien if test -n "$CC"; then 362868349Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 362968349Sobrienelse 3630133359Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3631133359Sobrienfor as_dir in $PATH 3632133359Sobriendo 3633133359Sobrien IFS=$as_save_IFS 3634133359Sobrien test -z "$as_dir" && as_dir=. 3635234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 3636267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3637133359Sobrien ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3638234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3639133359Sobrien break 2 3640133359Sobrien fi 3641133359Sobriendone 3642234449Sobrien done 3643175296SobrienIFS=$as_save_IFS 3644133359Sobrien 364568349Sobrienfi 364668349Sobrienfi 3647133359SobrienCC=$ac_cv_prog_CC 364868349Sobrienif test -n "$CC"; then 3649234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3650234449Sobrien$as_echo "$CC" >&6; } 365168349Sobrienelse 3652234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3653234449Sobrien$as_echo "no" >&6; } 365468349Sobrienfi 3655133359Sobrien 3656175296Sobrien 3657133359Sobrien test -n "$CC" && break 3658133359Sobrien done 3659133359Sobrienfi 3660133359Sobrienif test -z "$CC"; then 3661133359Sobrien ac_ct_CC=$CC 3662175296Sobrien for ac_prog in cl.exe 3663133359Sobriendo 3664133359Sobrien # Extract the first word of "$ac_prog", so it can be a program name with args. 3665133359Sobrienset dummy $ac_prog; ac_word=$2 3666234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3667234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 3668234449Sobrienif ${ac_cv_prog_ac_ct_CC+:} false; then : 3669234449Sobrien $as_echo_n "(cached) " >&6 3670133359Sobrienelse 3671133359Sobrien if test -n "$ac_ct_CC"; then 3672133359Sobrien ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3673133359Sobrienelse 3674133359Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3675133359Sobrienfor as_dir in $PATH 3676133359Sobriendo 3677133359Sobrien IFS=$as_save_IFS 3678133359Sobrien test -z "$as_dir" && as_dir=. 3679234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 3680267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3681133359Sobrien ac_cv_prog_ac_ct_CC="$ac_prog" 3682234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3683133359Sobrien break 2 368468349Sobrien fi 3685133359Sobriendone 3686234449Sobrien done 3687175296SobrienIFS=$as_save_IFS 3688133359Sobrien 368968349Sobrienfi 3690133359Sobrienfi 3691133359Sobrienac_ct_CC=$ac_cv_prog_ac_ct_CC 3692133359Sobrienif test -n "$ac_ct_CC"; then 3693234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3694234449Sobrien$as_echo "$ac_ct_CC" >&6; } 3695133359Sobrienelse 3696234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3697234449Sobrien$as_echo "no" >&6; } 3698133359Sobrienfi 369968349Sobrien 3700175296Sobrien 3701133359Sobrien test -n "$ac_ct_CC" && break 3702133359Sobriendone 370368349Sobrien 3704175296Sobrien if test "x$ac_ct_CC" = x; then 3705175296Sobrien CC="" 3706175296Sobrien else 3707175296Sobrien case $cross_compiling:$ac_tool_warned in 3708175296Sobrienyes:) 3709234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3710234449Sobrien$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3711175296Sobrienac_tool_warned=yes ;; 3712175296Sobrienesac 3713175296Sobrien CC=$ac_ct_CC 3714175296Sobrien fi 3715133359Sobrienfi 371668349Sobrien 3717133359Sobrienfi 371868349Sobrien 371968349Sobrien 3720234449Sobrientest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3721234449Sobrien$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3722234449Sobrienas_fn_error $? "no acceptable C compiler found in \$PATH 3723234449SobrienSee \`config.log' for more details" "$LINENO" 5; } 3724133359Sobrien 3725133359Sobrien# Provide some information about the compiler. 3726234449Sobrien$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3727234449Sobrienset X $ac_compile 3728234449Sobrienac_compiler=$2 3729234449Sobrienfor ac_option in --version -v -V -qversion; do 3730234449Sobrien { { ac_try="$ac_compiler $ac_option >&5" 3731175296Sobriencase "(($ac_try" in 3732175296Sobrien *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3733175296Sobrien *) ac_try_echo=$ac_try;; 3734175296Sobrienesac 3735234449Sobrieneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3736234449Sobrien$as_echo "$ac_try_echo"; } >&5 3737234449Sobrien (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3738133359Sobrien ac_status=$? 3739234449Sobrien if test -s conftest.err; then 3740234449Sobrien sed '10a\ 3741234449Sobrien... rest of stderr output deleted ... 3742234449Sobrien 10q' conftest.err >conftest.er1 3743234449Sobrien cat conftest.er1 >&5 3744234449Sobrien fi 3745234449Sobrien rm -f conftest.er1 conftest.err 3746234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3747234449Sobrien test $ac_status = 0; } 3748234449Sobriendone 3749133359Sobrien 3750234449Sobriencat confdefs.h - <<_ACEOF >conftest.$ac_ext 3751159764Sobrien/* end confdefs.h. */ 3752133359Sobrien 3753133359Sobrienint 3754133359Sobrienmain () 3755133359Sobrien{ 3756133359Sobrien 3757133359Sobrien ; 3758133359Sobrien return 0; 3759133359Sobrien} 3760133359Sobrien_ACEOF 3761133359Sobrienac_clean_files_save=$ac_clean_files 3762234449Sobrienac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3763133359Sobrien# Try to create an executable without -o first, disregard a.out. 3764133359Sobrien# It will help us diagnose broken compilers, and finding out an intuition 3765133359Sobrien# of exeext. 3766234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3767234449Sobrien$as_echo_n "checking whether the C compiler works... " >&6; } 3768234449Sobrienac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3769234449Sobrien 3770234449Sobrien# The possible output files: 3771234449Sobrienac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3772234449Sobrien 3773175296Sobrienac_rmfiles= 3774175296Sobrienfor ac_file in $ac_files 3775175296Sobriendo 3776175296Sobrien case $ac_file in 3777234449Sobrien *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3778175296Sobrien * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3779175296Sobrien esac 3780175296Sobriendone 3781175296Sobrienrm -f $ac_rmfiles 3782175296Sobrien 3783234449Sobrienif { { ac_try="$ac_link_default" 3784175296Sobriencase "(($ac_try" in 3785175296Sobrien *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3786175296Sobrien *) ac_try_echo=$ac_try;; 3787175296Sobrienesac 3788234449Sobrieneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3789234449Sobrien$as_echo "$ac_try_echo"; } >&5 3790175296Sobrien (eval "$ac_link_default") 2>&5 3791133359Sobrien ac_status=$? 3792234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3793234449Sobrien test $ac_status = 0; }; then : 3794175296Sobrien # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3795175296Sobrien# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3796175296Sobrien# in a Makefile. We should not override ac_cv_exeext if it was cached, 3797175296Sobrien# so that the user can short-circuit this test for compilers unknown to 3798175296Sobrien# Autoconf. 3799175296Sobrienfor ac_file in $ac_files '' 3800159764Sobriendo 3801159764Sobrien test -f "$ac_file" || continue 3802133359Sobrien case $ac_file in 3803234449Sobrien *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3804159764Sobrien ;; 3805159764Sobrien [ab].out ) 3806159764Sobrien # We found the default executable, but exeext='' is most 3807159764Sobrien # certainly right. 3808159764Sobrien break;; 3809159764Sobrien *.* ) 3810234449Sobrien if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3811175296Sobrien then :; else 3812175296Sobrien ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3813175296Sobrien fi 3814175296Sobrien # We set ac_cv_exeext here because the later test for it is not 3815175296Sobrien # safe: cross compilers may not add the suffix if given an `-o' 3816175296Sobrien # argument, so we may need to know it at that point already. 3817175296Sobrien # Even if this section looks crufty: it has the advantage of 3818175296Sobrien # actually working. 3819159764Sobrien break;; 3820159764Sobrien * ) 3821159764Sobrien break;; 3822133359Sobrien esac 3823133359Sobriendone 3824175296Sobrientest "$ac_cv_exeext" = no && ac_cv_exeext= 3825175296Sobrien 3826133359Sobrienelse 3827175296Sobrien ac_file='' 3828175296Sobrienfi 3829234449Sobrienif test -z "$ac_file"; then : 3830234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3831234449Sobrien$as_echo "no" >&6; } 3832234449Sobrien$as_echo "$as_me: failed program was:" >&5 3833159764Sobriensed 's/^/| /' conftest.$ac_ext >&5 3834159764Sobrien 3835234449Sobrien{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3836234449Sobrien$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3837234449Sobrienas_fn_error 77 "C compiler cannot create executables 3838234449SobrienSee \`config.log' for more details" "$LINENO" 5; } 3839234449Sobrienelse 3840234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3841234449Sobrien$as_echo "yes" >&6; } 3842133359Sobrienfi 3843234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3844234449Sobrien$as_echo_n "checking for C compiler default output file name... " >&6; } 3845234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3846234449Sobrien$as_echo "$ac_file" >&6; } 3847133359Sobrienac_exeext=$ac_cv_exeext 3848133359Sobrien 3849234449Sobrienrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3850133359Sobrienac_clean_files=$ac_clean_files_save 3851234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3852234449Sobrien$as_echo_n "checking for suffix of executables... " >&6; } 3853234449Sobrienif { { ac_try="$ac_link" 3854175296Sobriencase "(($ac_try" in 3855175296Sobrien *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3856175296Sobrien *) ac_try_echo=$ac_try;; 3857175296Sobrienesac 3858234449Sobrieneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3859234449Sobrien$as_echo "$ac_try_echo"; } >&5 3860175296Sobrien (eval "$ac_link") 2>&5 3861133359Sobrien ac_status=$? 3862234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3863234449Sobrien test $ac_status = 0; }; then : 3864133359Sobrien # If both `conftest.exe' and `conftest' are `present' (well, observable) 3865133359Sobrien# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3866133359Sobrien# work properly (i.e., refer to `conftest.exe'), while it won't with 3867133359Sobrien# `rm'. 3868159764Sobrienfor ac_file in conftest.exe conftest conftest.*; do 3869159764Sobrien test -f "$ac_file" || continue 3870133359Sobrien case $ac_file in 3871234449Sobrien *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3872133359Sobrien *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3873159764Sobrien break;; 3874133359Sobrien * ) break;; 3875133359Sobrien esac 3876133359Sobriendone 3877133359Sobrienelse 3878234449Sobrien { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3879234449Sobrien$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3880234449Sobrienas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3881234449SobrienSee \`config.log' for more details" "$LINENO" 5; } 388268349Sobrienfi 3883234449Sobrienrm -f conftest conftest$ac_cv_exeext 3884234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3885234449Sobrien$as_echo "$ac_cv_exeext" >&6; } 388668349Sobrien 3887133359Sobrienrm -f conftest.$ac_ext 3888133359SobrienEXEEXT=$ac_cv_exeext 3889133359Sobrienac_exeext=$EXEEXT 3890234449Sobriencat confdefs.h - <<_ACEOF >conftest.$ac_ext 3891234449Sobrien/* end confdefs.h. */ 3892234449Sobrien#include <stdio.h> 3893234449Sobrienint 3894234449Sobrienmain () 3895234449Sobrien{ 3896234449SobrienFILE *f = fopen ("conftest.out", "w"); 3897234449Sobrien return ferror (f) || fclose (f) != 0; 3898234449Sobrien 3899234449Sobrien ; 3900234449Sobrien return 0; 3901234449Sobrien} 3902234449Sobrien_ACEOF 3903234449Sobrienac_clean_files="$ac_clean_files conftest.out" 3904234449Sobrien# Check that the compiler produces executables we can run. If not, either 3905234449Sobrien# the compiler is broken, or we cross compile. 3906234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3907234449Sobrien$as_echo_n "checking whether we are cross compiling... " >&6; } 3908234449Sobrienif test "$cross_compiling" != yes; then 3909234449Sobrien { { ac_try="$ac_link" 3910234449Sobriencase "(($ac_try" in 3911234449Sobrien *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3912234449Sobrien *) ac_try_echo=$ac_try;; 3913234449Sobrienesac 3914234449Sobrieneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3915234449Sobrien$as_echo "$ac_try_echo"; } >&5 3916234449Sobrien (eval "$ac_link") 2>&5 3917234449Sobrien ac_status=$? 3918234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3919234449Sobrien test $ac_status = 0; } 3920234449Sobrien if { ac_try='./conftest$ac_cv_exeext' 3921234449Sobrien { { case "(($ac_try" in 3922234449Sobrien *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3923234449Sobrien *) ac_try_echo=$ac_try;; 3924234449Sobrienesac 3925234449Sobrieneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3926234449Sobrien$as_echo "$ac_try_echo"; } >&5 3927234449Sobrien (eval "$ac_try") 2>&5 3928234449Sobrien ac_status=$? 3929234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3930234449Sobrien test $ac_status = 0; }; }; then 3931234449Sobrien cross_compiling=no 3932234449Sobrien else 3933234449Sobrien if test "$cross_compiling" = maybe; then 3934234449Sobrien cross_compiling=yes 3935234449Sobrien else 3936234449Sobrien { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3937234449Sobrien$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3938234449Sobrienas_fn_error $? "cannot run C compiled programs. 3939234449SobrienIf you meant to cross compile, use \`--host'. 3940234449SobrienSee \`config.log' for more details" "$LINENO" 5; } 3941234449Sobrien fi 3942234449Sobrien fi 3943234449Sobrienfi 3944234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3945234449Sobrien$as_echo "$cross_compiling" >&6; } 3946234449Sobrien 3947234449Sobrienrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3948234449Sobrienac_clean_files=$ac_clean_files_save 3949234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3950234449Sobrien$as_echo_n "checking for suffix of object files... " >&6; } 3951234449Sobrienif ${ac_cv_objext+:} false; then : 3952234449Sobrien $as_echo_n "(cached) " >&6 395368349Sobrienelse 3954234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3955159764Sobrien/* end confdefs.h. */ 3956133359Sobrien 3957133359Sobrienint 3958133359Sobrienmain () 3959133359Sobrien{ 3960133359Sobrien 3961133359Sobrien ; 3962133359Sobrien return 0; 3963133359Sobrien} 3964133359Sobrien_ACEOF 3965133359Sobrienrm -f conftest.o conftest.obj 3966234449Sobrienif { { ac_try="$ac_compile" 3967175296Sobriencase "(($ac_try" in 3968175296Sobrien *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3969175296Sobrien *) ac_try_echo=$ac_try;; 3970175296Sobrienesac 3971234449Sobrieneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3972234449Sobrien$as_echo "$ac_try_echo"; } >&5 3973175296Sobrien (eval "$ac_compile") 2>&5 3974133359Sobrien ac_status=$? 3975234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3976234449Sobrien test $ac_status = 0; }; then : 3977175296Sobrien for ac_file in conftest.o conftest.obj conftest.*; do 3978175296Sobrien test -f "$ac_file" || continue; 3979133359Sobrien case $ac_file in 3980234449Sobrien *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3981133359Sobrien *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3982133359Sobrien break;; 3983133359Sobrien esac 3984133359Sobriendone 398568349Sobrienelse 3986234449Sobrien $as_echo "$as_me: failed program was:" >&5 3987159764Sobriensed 's/^/| /' conftest.$ac_ext >&5 3988159764Sobrien 3989234449Sobrien{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3990234449Sobrien$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3991234449Sobrienas_fn_error $? "cannot compute suffix of object files: cannot compile 3992234449SobrienSee \`config.log' for more details" "$LINENO" 5; } 399368349Sobrienfi 3994133359Sobrienrm -f conftest.$ac_cv_objext conftest.$ac_ext 399568349Sobrienfi 3996234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3997234449Sobrien$as_echo "$ac_cv_objext" >&6; } 3998133359SobrienOBJEXT=$ac_cv_objext 3999133359Sobrienac_objext=$OBJEXT 4000234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4001234449Sobrien$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4002234449Sobrienif ${ac_cv_c_compiler_gnu+:} false; then : 4003234449Sobrien $as_echo_n "(cached) " >&6 4004133359Sobrienelse 4005234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4006159764Sobrien/* end confdefs.h. */ 400768349Sobrien 4008133359Sobrienint 4009133359Sobrienmain () 4010133359Sobrien{ 4011133359Sobrien#ifndef __GNUC__ 4012133359Sobrien choke me 4013133359Sobrien#endif 401468349Sobrien 4015133359Sobrien ; 4016133359Sobrien return 0; 4017133359Sobrien} 4018133359Sobrien_ACEOF 4019234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 4020133359Sobrien ac_compiler_gnu=yes 402168349Sobrienelse 4022234449Sobrien ac_compiler_gnu=no 402368349Sobrienfi 4024175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4025133359Sobrienac_cv_c_compiler_gnu=$ac_compiler_gnu 402668349Sobrien 4027133359Sobrienfi 4028234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4029234449Sobrien$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4030234449Sobrienif test $ac_compiler_gnu = yes; then 4031234449Sobrien GCC=yes 4032234449Sobrienelse 4033234449Sobrien GCC= 4034234449Sobrienfi 4035133359Sobrienac_test_CFLAGS=${CFLAGS+set} 4036133359Sobrienac_save_CFLAGS=$CFLAGS 4037234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4038234449Sobrien$as_echo_n "checking whether $CC accepts -g... " >&6; } 4039234449Sobrienif ${ac_cv_prog_cc_g+:} false; then : 4040234449Sobrien $as_echo_n "(cached) " >&6 404168349Sobrienelse 4042175296Sobrien ac_save_c_werror_flag=$ac_c_werror_flag 4043175296Sobrien ac_c_werror_flag=yes 4044175296Sobrien ac_cv_prog_cc_g=no 4045175296Sobrien CFLAGS="-g" 4046234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4047159764Sobrien/* end confdefs.h. */ 4048133359Sobrien 4049133359Sobrienint 4050133359Sobrienmain () 4051133359Sobrien{ 4052133359Sobrien 4053133359Sobrien ; 4054133359Sobrien return 0; 4055133359Sobrien} 4056133359Sobrien_ACEOF 4057234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 4058175296Sobrien ac_cv_prog_cc_g=yes 4059175296Sobrienelse 4060234449Sobrien CFLAGS="" 4061234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4062175296Sobrien/* end confdefs.h. */ 4063175296Sobrien 4064175296Sobrienint 4065175296Sobrienmain () 4066175296Sobrien{ 4067175296Sobrien 4068175296Sobrien ; 4069175296Sobrien return 0; 4070175296Sobrien} 4071175296Sobrien_ACEOF 4072234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 4073234449Sobrien 4074175296Sobrienelse 4075234449Sobrien ac_c_werror_flag=$ac_save_c_werror_flag 4076175296Sobrien CFLAGS="-g" 4077234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4078175296Sobrien/* end confdefs.h. */ 4079175296Sobrien 4080175296Sobrienint 4081175296Sobrienmain () 4082175296Sobrien{ 4083175296Sobrien 4084175296Sobrien ; 4085175296Sobrien return 0; 4086175296Sobrien} 4087175296Sobrien_ACEOF 4088234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 408968349Sobrien ac_cv_prog_cc_g=yes 409068349Sobrienfi 4091175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4092133359Sobrienfi 4093175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4094175296Sobrienfi 4095175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4096175296Sobrien ac_c_werror_flag=$ac_save_c_werror_flag 4097175296Sobrienfi 4098234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4099234449Sobrien$as_echo "$ac_cv_prog_cc_g" >&6; } 410068349Sobrienif test "$ac_test_CFLAGS" = set; then 4101133359Sobrien CFLAGS=$ac_save_CFLAGS 410268349Sobrienelif test $ac_cv_prog_cc_g = yes; then 410368349Sobrien if test "$GCC" = yes; then 410468349Sobrien CFLAGS="-g -O2" 410568349Sobrien else 410668349Sobrien CFLAGS="-g" 410768349Sobrien fi 410868349Sobrienelse 410968349Sobrien if test "$GCC" = yes; then 411068349Sobrien CFLAGS="-O2" 411168349Sobrien else 411268349Sobrien CFLAGS= 411368349Sobrien fi 411468349Sobrienfi 4115234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4116234449Sobrien$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4117234449Sobrienif ${ac_cv_prog_cc_c89+:} false; then : 4118234449Sobrien $as_echo_n "(cached) " >&6 4119159764Sobrienelse 4120175296Sobrien ac_cv_prog_cc_c89=no 4121159764Sobrienac_save_CC=$CC 4122234449Sobriencat confdefs.h - <<_ACEOF >conftest.$ac_ext 4123159764Sobrien/* end confdefs.h. */ 4124159764Sobrien#include <stdarg.h> 4125159764Sobrien#include <stdio.h> 4126267897Sdelphijstruct stat; 4127159764Sobrien/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4128159764Sobrienstruct buf { int x; }; 4129159764SobrienFILE * (*rcsopen) (struct buf *, struct stat *, int); 4130159764Sobrienstatic char *e (p, i) 4131159764Sobrien char **p; 4132159764Sobrien int i; 4133159764Sobrien{ 4134159764Sobrien return p[i]; 4135159764Sobrien} 4136159764Sobrienstatic char *f (char * (*g) (char **, int), char **p, ...) 4137159764Sobrien{ 4138159764Sobrien char *s; 4139159764Sobrien va_list v; 4140159764Sobrien va_start (v,p); 4141159764Sobrien s = g (p, va_arg (v,int)); 4142159764Sobrien va_end (v); 4143159764Sobrien return s; 4144159764Sobrien} 4145159764Sobrien 4146159764Sobrien/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4147159764Sobrien function prototypes and stuff, but not '\xHH' hex character constants. 4148159764Sobrien These don't provoke an error unfortunately, instead are silently treated 4149175296Sobrien as 'x'. The following induces an error, until -std is added to get 4150159764Sobrien proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4151159764Sobrien array size at least. It's necessary to write '\x00'==0 to get something 4152175296Sobrien that's true only with -std. */ 4153159764Sobrienint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4154159764Sobrien 4155175296Sobrien/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4156175296Sobrien inside strings and character constants. */ 4157175296Sobrien#define FOO(x) 'x' 4158175296Sobrienint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4159175296Sobrien 4160159764Sobrienint test (int i, double x); 4161159764Sobrienstruct s1 {int (*f) (int a);}; 4162159764Sobrienstruct s2 {int (*f) (double a);}; 4163159764Sobrienint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4164159764Sobrienint argc; 4165159764Sobrienchar **argv; 4166159764Sobrienint 4167159764Sobrienmain () 4168159764Sobrien{ 4169159764Sobrienreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4170159764Sobrien ; 4171159764Sobrien return 0; 4172159764Sobrien} 4173159764Sobrien_ACEOF 4174175296Sobrienfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4175175296Sobrien -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4176159764Sobriendo 4177159764Sobrien CC="$ac_save_CC $ac_arg" 4178234449Sobrien if ac_fn_c_try_compile "$LINENO"; then : 4179175296Sobrien ac_cv_prog_cc_c89=$ac_arg 4180159764Sobrienfi 4181175296Sobrienrm -f core conftest.err conftest.$ac_objext 4182175296Sobrien test "x$ac_cv_prog_cc_c89" != "xno" && break 4183159764Sobriendone 4184175296Sobrienrm -f conftest.$ac_ext 4185159764SobrienCC=$ac_save_CC 4186159764Sobrien 4187159764Sobrienfi 4188175296Sobrien# AC_CACHE_VAL 4189175296Sobriencase "x$ac_cv_prog_cc_c89" in 4190175296Sobrien x) 4191234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4192234449Sobrien$as_echo "none needed" >&6; } ;; 4193175296Sobrien xno) 4194234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4195234449Sobrien$as_echo "unsupported" >&6; } ;; 4196159764Sobrien *) 4197175296Sobrien CC="$CC $ac_cv_prog_cc_c89" 4198234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4199234449Sobrien$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4200159764Sobrienesac 4201234449Sobrienif test "x$ac_cv_prog_cc_c89" != xno; then : 4202159764Sobrien 4203234449Sobrienfi 4204159764Sobrien 4205133359Sobrienac_ext=c 4206133359Sobrienac_cpp='$CPP $CPPFLAGS' 4207133359Sobrienac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4208133359Sobrienac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4209133359Sobrienac_compiler_gnu=$ac_cv_c_compiler_gnu 4210133359Sobrien 4211267897Sdelphijac_ext=c 4212267897Sdelphijac_cpp='$CPP $CPPFLAGS' 4213267897Sdelphijac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4214267897Sdelphijac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4215267897Sdelphijac_compiler_gnu=$ac_cv_c_compiler_gnu 4216267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4217267897Sdelphij$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4218267897Sdelphijif ${am_cv_prog_cc_c_o+:} false; then : 4219267897Sdelphij $as_echo_n "(cached) " >&6 4220267897Sdelphijelse 4221267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4222267897Sdelphij/* end confdefs.h. */ 4223267897Sdelphij 4224267897Sdelphijint 4225267897Sdelphijmain () 4226267897Sdelphij{ 4227267897Sdelphij 4228267897Sdelphij ; 4229267897Sdelphij return 0; 4230267897Sdelphij} 4231267897Sdelphij_ACEOF 4232267897Sdelphij # Make sure it works both with $CC and with simple cc. 4233267897Sdelphij # Following AC_PROG_CC_C_O, we do the test twice because some 4234267897Sdelphij # compilers refuse to overwrite an existing .o file with -o, 4235267897Sdelphij # though they will create one. 4236267897Sdelphij am_cv_prog_cc_c_o=yes 4237267897Sdelphij for am_i in 1 2; do 4238267897Sdelphij if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4239267897Sdelphij ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4240267897Sdelphij ac_status=$? 4241267897Sdelphij echo "$as_me:$LINENO: \$? = $ac_status" >&5 4242267897Sdelphij (exit $ac_status); } \ 4243267897Sdelphij && test -f conftest2.$ac_objext; then 4244267897Sdelphij : OK 4245267897Sdelphij else 4246267897Sdelphij am_cv_prog_cc_c_o=no 4247267897Sdelphij break 4248267897Sdelphij fi 4249267897Sdelphij done 4250267897Sdelphij rm -f core conftest* 4251267897Sdelphij unset am_i 4252267897Sdelphijfi 4253267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4254267897Sdelphij$as_echo "$am_cv_prog_cc_c_o" >&6; } 4255267897Sdelphijif test "$am_cv_prog_cc_c_o" != yes; then 4256267897Sdelphij # Losing compiler, so override with the script. 4257267897Sdelphij # FIXME: It is wrong to rewrite CC. 4258267897Sdelphij # But if we don't then we get into trouble of one sort or another. 4259267897Sdelphij # A longer-term fix would be to have automake use am__CC in this case, 4260267897Sdelphij # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4261267897Sdelphij CC="$am_aux_dir/compile $CC" 4262267897Sdelphijfi 4263267897Sdelphijac_ext=c 4264267897Sdelphijac_cpp='$CPP $CPPFLAGS' 4265267897Sdelphijac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4266267897Sdelphijac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4267267897Sdelphijac_compiler_gnu=$ac_cv_c_compiler_gnu 4268267897Sdelphij 4269267897Sdelphij 4270133359Sobriendepcc="$CC" am_compiler_list= 4271133359Sobrien 4272234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4273234449Sobrien$as_echo_n "checking dependency style of $depcc... " >&6; } 4274234449Sobrienif ${am_cv_CC_dependencies_compiler_type+:} false; then : 4275234449Sobrien $as_echo_n "(cached) " >&6 4276133359Sobrienelse 4277133359Sobrien if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4278133359Sobrien # We make a subdir and do the tests there. Otherwise we can end up 4279133359Sobrien # making bogus files that we don't know about and never remove. For 4280133359Sobrien # instance it was reported that on HP-UX the gcc test will end up 4281267897Sdelphij # making a dummy file named 'D' -- because '-MD' means "put the output 4282267897Sdelphij # in D". 4283267897Sdelphij rm -rf conftest.dir 4284133359Sobrien mkdir conftest.dir 4285133359Sobrien # Copy depcomp to subdir because otherwise we won't find it if we're 4286133359Sobrien # using a relative directory. 4287133359Sobrien cp "$am_depcomp" conftest.dir 4288133359Sobrien cd conftest.dir 4289159764Sobrien # We will build objects and dependencies in a subdirectory because 4290159764Sobrien # it helps to detect inapplicable dependency modes. For instance 4291159764Sobrien # both Tru64's cc and ICC support -MD to output dependencies as a 4292159764Sobrien # side effect of compilation, but ICC will put the dependencies in 4293159764Sobrien # the current directory while Tru64 will put them in the object 4294159764Sobrien # directory. 4295159764Sobrien mkdir sub 4296133359Sobrien 4297133359Sobrien am_cv_CC_dependencies_compiler_type=none 4298133359Sobrien if test "$am_compiler_list" = ""; then 4299133359Sobrien am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4300133359Sobrien fi 4301234449Sobrien am__universal=false 4302234449Sobrien case " $depcc " in #( 4303234449Sobrien *\ -arch\ *\ -arch\ *) am__universal=true ;; 4304234449Sobrien esac 4305234449Sobrien 4306133359Sobrien for depmode in $am_compiler_list; do 4307159764Sobrien # Setup a source with many dependencies, because some compilers 4308159764Sobrien # like to wrap large dependency lists on column 80 (with \), and 4309159764Sobrien # we should not choose a depcomp mode which is confused by this. 4310159764Sobrien # 4311133359Sobrien # We need to recreate these files for each test, as the compiler may 4312133359Sobrien # overwrite some of them when testing with obscure command lines. 4313133359Sobrien # This happens at least with the AIX C compiler. 4314159764Sobrien : > sub/conftest.c 4315159764Sobrien for i in 1 2 3 4 5 6; do 4316159764Sobrien echo '#include "conftst'$i'.h"' >> sub/conftest.c 4317267897Sdelphij # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4318267897Sdelphij # Solaris 10 /bin/sh. 4319267897Sdelphij echo '/* dummy */' > sub/conftst$i.h 4320159764Sobrien done 4321159764Sobrien echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4322133359Sobrien 4323267897Sdelphij # We check with '-c' and '-o' for the sake of the "dashmstdout" 4324234449Sobrien # mode. It turns out that the SunPro C++ compiler does not properly 4325267897Sdelphij # handle '-M -o', and we need to detect this. Also, some Intel 4326267897Sdelphij # versions had trouble with output in subdirs. 4327234449Sobrien am__obj=sub/conftest.${OBJEXT-o} 4328234449Sobrien am__minus_obj="-o $am__obj" 4329133359Sobrien case $depmode in 4330234449Sobrien gcc) 4331234449Sobrien # This depmode causes a compiler race in universal mode. 4332234449Sobrien test "$am__universal" = false || continue 4333234449Sobrien ;; 4334133359Sobrien nosideeffect) 4335267897Sdelphij # After this tag, mechanisms are not by side-effect, so they'll 4336267897Sdelphij # only be used when explicitly requested. 4337133359Sobrien if test "x$enable_dependency_tracking" = xyes; then 4338133359Sobrien continue 4339133359Sobrien else 4340133359Sobrien break 4341133359Sobrien fi 4342133359Sobrien ;; 4343267897Sdelphij msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4344267897Sdelphij # This compiler won't grok '-c -o', but also, the minuso test has 4345234449Sobrien # not run yet. These depmodes are late enough in the game, and 4346234449Sobrien # so weak that their functioning should not be impacted. 4347234449Sobrien am__obj=conftest.${OBJEXT-o} 4348234449Sobrien am__minus_obj= 4349234449Sobrien ;; 4350133359Sobrien none) break ;; 4351133359Sobrien esac 4352133359Sobrien if depmode=$depmode \ 4353234449Sobrien source=sub/conftest.c object=$am__obj \ 4354159764Sobrien depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4355234449Sobrien $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4356159764Sobrien >/dev/null 2>conftest.err && 4357175296Sobrien grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4358159764Sobrien grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4359234449Sobrien grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4360133359Sobrien ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4361159764Sobrien # icc doesn't choke on unknown options, it will just issue warnings 4362159764Sobrien # or remarks (even with -Werror). So we grep stderr for any message 4363159764Sobrien # that says an option was ignored or not supported. 4364159764Sobrien # When given -MP, icc 7.0 and 7.1 complain thusly: 4365159764Sobrien # icc: Command line warning: ignoring option '-M'; no argument required 4366159764Sobrien # The diagnosis changed in icc 8.0: 4367159764Sobrien # icc: Command line remark: option '-MP' not supported 4368159764Sobrien if (grep 'ignoring option' conftest.err || 4369159764Sobrien grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4370159764Sobrien am_cv_CC_dependencies_compiler_type=$depmode 4371159764Sobrien break 4372159764Sobrien fi 4373133359Sobrien fi 4374133359Sobrien done 4375133359Sobrien 4376133359Sobrien cd .. 4377133359Sobrien rm -rf conftest.dir 4378133359Sobrienelse 4379133359Sobrien am_cv_CC_dependencies_compiler_type=none 4380133359Sobrienfi 4381133359Sobrien 4382133359Sobrienfi 4383234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4384234449Sobrien$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4385133359SobrienCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4386133359Sobrien 4387175296Sobrien if 4388159764Sobrien test "x$enable_dependency_tracking" != xno \ 4389159764Sobrien && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4390159764Sobrien am__fastdepCC_TRUE= 4391159764Sobrien am__fastdepCC_FALSE='#' 4392159764Sobrienelse 4393159764Sobrien am__fastdepCC_TRUE='#' 4394159764Sobrien am__fastdepCC_FALSE= 4395159764Sobrienfi 4396159764Sobrien 4397159764Sobrien 4398267897Sdelphij case $ac_cv_prog_cc_stdc in #( 4399267897Sdelphij no) : 4400267897Sdelphij ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4401267897Sdelphij *) : 4402267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4403267897Sdelphij$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4404267897Sdelphijif ${ac_cv_prog_cc_c99+:} false; then : 4405267897Sdelphij $as_echo_n "(cached) " >&6 4406267897Sdelphijelse 4407267897Sdelphij ac_cv_prog_cc_c99=no 4408267897Sdelphijac_save_CC=$CC 4409267897Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4410267897Sdelphij/* end confdefs.h. */ 4411267897Sdelphij#include <stdarg.h> 4412267897Sdelphij#include <stdbool.h> 4413267897Sdelphij#include <stdlib.h> 4414267897Sdelphij#include <wchar.h> 4415267897Sdelphij#include <stdio.h> 4416234449Sobrien 4417267897Sdelphij// Check varargs macros. These examples are taken from C99 6.10.3.5. 4418267897Sdelphij#define debug(...) fprintf (stderr, __VA_ARGS__) 4419267897Sdelphij#define showlist(...) puts (#__VA_ARGS__) 4420267897Sdelphij#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4421267897Sdelphijstatic void 4422267897Sdelphijtest_varargs_macros (void) 4423267897Sdelphij{ 4424267897Sdelphij int x = 1234; 4425267897Sdelphij int y = 5678; 4426267897Sdelphij debug ("Flag"); 4427267897Sdelphij debug ("X = %d\n", x); 4428267897Sdelphij showlist (The first, second, and third items.); 4429267897Sdelphij report (x>y, "x is %d but y is %d", x, y); 4430267897Sdelphij} 4431267897Sdelphij 4432267897Sdelphij// Check long long types. 4433267897Sdelphij#define BIG64 18446744073709551615ull 4434267897Sdelphij#define BIG32 4294967295ul 4435267897Sdelphij#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4436267897Sdelphij#if !BIG_OK 4437267897Sdelphij your preprocessor is broken; 4438267897Sdelphij#endif 4439267897Sdelphij#if BIG_OK 4440267897Sdelphij#else 4441267897Sdelphij your preprocessor is broken; 4442267897Sdelphij#endif 4443267897Sdelphijstatic long long int bignum = -9223372036854775807LL; 4444267897Sdelphijstatic unsigned long long int ubignum = BIG64; 4445267897Sdelphij 4446267897Sdelphijstruct incomplete_array 4447267897Sdelphij{ 4448267897Sdelphij int datasize; 4449267897Sdelphij double data[]; 4450267897Sdelphij}; 4451267897Sdelphij 4452267897Sdelphijstruct named_init { 4453267897Sdelphij int number; 4454267897Sdelphij const wchar_t *name; 4455267897Sdelphij double average; 4456267897Sdelphij}; 4457267897Sdelphij 4458267897Sdelphijtypedef const char *ccp; 4459267897Sdelphij 4460267897Sdelphijstatic inline int 4461267897Sdelphijtest_restrict (ccp restrict text) 4462267897Sdelphij{ 4463267897Sdelphij // See if C++-style comments work. 4464267897Sdelphij // Iterate through items via the restricted pointer. 4465267897Sdelphij // Also check for declarations in for loops. 4466267897Sdelphij for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4467267897Sdelphij continue; 4468267897Sdelphij return 0; 4469267897Sdelphij} 4470267897Sdelphij 4471267897Sdelphij// Check varargs and va_copy. 4472267897Sdelphijstatic void 4473267897Sdelphijtest_varargs (const char *format, ...) 4474267897Sdelphij{ 4475267897Sdelphij va_list args; 4476267897Sdelphij va_start (args, format); 4477267897Sdelphij va_list args_copy; 4478267897Sdelphij va_copy (args_copy, args); 4479267897Sdelphij 4480267897Sdelphij const char *str; 4481267897Sdelphij int number; 4482267897Sdelphij float fnumber; 4483267897Sdelphij 4484267897Sdelphij while (*format) 4485267897Sdelphij { 4486267897Sdelphij switch (*format++) 4487267897Sdelphij { 4488267897Sdelphij case 's': // string 4489267897Sdelphij str = va_arg (args_copy, const char *); 4490267897Sdelphij break; 4491267897Sdelphij case 'd': // int 4492267897Sdelphij number = va_arg (args_copy, int); 4493267897Sdelphij break; 4494267897Sdelphij case 'f': // float 4495267897Sdelphij fnumber = va_arg (args_copy, double); 4496267897Sdelphij break; 4497267897Sdelphij default: 4498267897Sdelphij break; 4499267897Sdelphij } 4500267897Sdelphij } 4501267897Sdelphij va_end (args_copy); 4502267897Sdelphij va_end (args); 4503267897Sdelphij} 4504267897Sdelphij 4505267897Sdelphijint 4506267897Sdelphijmain () 4507267897Sdelphij{ 4508267897Sdelphij 4509267897Sdelphij // Check bool. 4510267897Sdelphij _Bool success = false; 4511267897Sdelphij 4512267897Sdelphij // Check restrict. 4513267897Sdelphij if (test_restrict ("String literal") == 0) 4514267897Sdelphij success = true; 4515267897Sdelphij char *restrict newvar = "Another string"; 4516267897Sdelphij 4517267897Sdelphij // Check varargs. 4518267897Sdelphij test_varargs ("s, d' f .", "string", 65, 34.234); 4519267897Sdelphij test_varargs_macros (); 4520267897Sdelphij 4521267897Sdelphij // Check flexible array members. 4522267897Sdelphij struct incomplete_array *ia = 4523267897Sdelphij malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4524267897Sdelphij ia->datasize = 10; 4525267897Sdelphij for (int i = 0; i < ia->datasize; ++i) 4526267897Sdelphij ia->data[i] = i * 1.234; 4527267897Sdelphij 4528267897Sdelphij // Check named initializers. 4529267897Sdelphij struct named_init ni = { 4530267897Sdelphij .number = 34, 4531267897Sdelphij .name = L"Test wide string", 4532267897Sdelphij .average = 543.34343, 4533267897Sdelphij }; 4534267897Sdelphij 4535267897Sdelphij ni.number = 58; 4536267897Sdelphij 4537267897Sdelphij int dynamic_array[ni.number]; 4538267897Sdelphij dynamic_array[ni.number - 1] = 543; 4539267897Sdelphij 4540267897Sdelphij // work around unused variable warnings 4541267897Sdelphij return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4542267897Sdelphij || dynamic_array[ni.number - 1] != 543); 4543267897Sdelphij 4544267897Sdelphij ; 4545267897Sdelphij return 0; 4546267897Sdelphij} 4547267897Sdelphij_ACEOF 4548267897Sdelphijfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4549267897Sdelphijdo 4550267897Sdelphij CC="$ac_save_CC $ac_arg" 4551267897Sdelphij if ac_fn_c_try_compile "$LINENO"; then : 4552267897Sdelphij ac_cv_prog_cc_c99=$ac_arg 4553267897Sdelphijfi 4554267897Sdelphijrm -f core conftest.err conftest.$ac_objext 4555267897Sdelphij test "x$ac_cv_prog_cc_c99" != "xno" && break 4556267897Sdelphijdone 4557267897Sdelphijrm -f conftest.$ac_ext 4558267897SdelphijCC=$ac_save_CC 4559267897Sdelphij 4560267897Sdelphijfi 4561267897Sdelphij# AC_CACHE_VAL 4562267897Sdelphijcase "x$ac_cv_prog_cc_c99" in 4563267897Sdelphij x) 4564267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4565267897Sdelphij$as_echo "none needed" >&6; } ;; 4566267897Sdelphij xno) 4567267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4568267897Sdelphij$as_echo "unsupported" >&6; } ;; 4569267897Sdelphij *) 4570267897Sdelphij CC="$CC $ac_cv_prog_cc_c99" 4571267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4572267897Sdelphij$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4573267897Sdelphijesac 4574267897Sdelphijif test "x$ac_cv_prog_cc_c99" != xno; then : 4575267897Sdelphij ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4576267897Sdelphijelse 4577267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4578267897Sdelphij$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4579267897Sdelphijif ${ac_cv_prog_cc_c89+:} false; then : 4580267897Sdelphij $as_echo_n "(cached) " >&6 4581267897Sdelphijelse 4582267897Sdelphij ac_cv_prog_cc_c89=no 4583267897Sdelphijac_save_CC=$CC 4584267897Sdelphijcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4585267897Sdelphij/* end confdefs.h. */ 4586267897Sdelphij#include <stdarg.h> 4587267897Sdelphij#include <stdio.h> 4588267897Sdelphijstruct stat; 4589267897Sdelphij/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4590267897Sdelphijstruct buf { int x; }; 4591267897SdelphijFILE * (*rcsopen) (struct buf *, struct stat *, int); 4592267897Sdelphijstatic char *e (p, i) 4593267897Sdelphij char **p; 4594267897Sdelphij int i; 4595267897Sdelphij{ 4596267897Sdelphij return p[i]; 4597267897Sdelphij} 4598267897Sdelphijstatic char *f (char * (*g) (char **, int), char **p, ...) 4599267897Sdelphij{ 4600267897Sdelphij char *s; 4601267897Sdelphij va_list v; 4602267897Sdelphij va_start (v,p); 4603267897Sdelphij s = g (p, va_arg (v,int)); 4604267897Sdelphij va_end (v); 4605267897Sdelphij return s; 4606267897Sdelphij} 4607267897Sdelphij 4608267897Sdelphij/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4609267897Sdelphij function prototypes and stuff, but not '\xHH' hex character constants. 4610267897Sdelphij These don't provoke an error unfortunately, instead are silently treated 4611267897Sdelphij as 'x'. The following induces an error, until -std is added to get 4612267897Sdelphij proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4613267897Sdelphij array size at least. It's necessary to write '\x00'==0 to get something 4614267897Sdelphij that's true only with -std. */ 4615267897Sdelphijint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4616267897Sdelphij 4617267897Sdelphij/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4618267897Sdelphij inside strings and character constants. */ 4619267897Sdelphij#define FOO(x) 'x' 4620267897Sdelphijint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4621267897Sdelphij 4622267897Sdelphijint test (int i, double x); 4623267897Sdelphijstruct s1 {int (*f) (int a);}; 4624267897Sdelphijstruct s2 {int (*f) (double a);}; 4625267897Sdelphijint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4626267897Sdelphijint argc; 4627267897Sdelphijchar **argv; 4628267897Sdelphijint 4629267897Sdelphijmain () 4630267897Sdelphij{ 4631267897Sdelphijreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4632267897Sdelphij ; 4633267897Sdelphij return 0; 4634267897Sdelphij} 4635267897Sdelphij_ACEOF 4636267897Sdelphijfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4637267897Sdelphij -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4638267897Sdelphijdo 4639267897Sdelphij CC="$ac_save_CC $ac_arg" 4640267897Sdelphij if ac_fn_c_try_compile "$LINENO"; then : 4641267897Sdelphij ac_cv_prog_cc_c89=$ac_arg 4642267897Sdelphijfi 4643267897Sdelphijrm -f core conftest.err conftest.$ac_objext 4644267897Sdelphij test "x$ac_cv_prog_cc_c89" != "xno" && break 4645267897Sdelphijdone 4646267897Sdelphijrm -f conftest.$ac_ext 4647267897SdelphijCC=$ac_save_CC 4648267897Sdelphij 4649267897Sdelphijfi 4650267897Sdelphij# AC_CACHE_VAL 4651267897Sdelphijcase "x$ac_cv_prog_cc_c89" in 4652267897Sdelphij x) 4653267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4654267897Sdelphij$as_echo "none needed" >&6; } ;; 4655267897Sdelphij xno) 4656267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4657267897Sdelphij$as_echo "unsupported" >&6; } ;; 4658267897Sdelphij *) 4659267897Sdelphij CC="$CC $ac_cv_prog_cc_c89" 4660267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4661267897Sdelphij$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4662267897Sdelphijesac 4663267897Sdelphijif test "x$ac_cv_prog_cc_c89" != xno; then : 4664267897Sdelphij ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4665267897Sdelphijelse 4666267897Sdelphij ac_cv_prog_cc_stdc=no 4667267897Sdelphijfi 4668267897Sdelphij 4669267897Sdelphijfi 4670267897Sdelphij ;; 4671267897Sdelphijesac 4672267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4673267897Sdelphij$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4674267897Sdelphij if ${ac_cv_prog_cc_stdc+:} false; then : 4675267897Sdelphij $as_echo_n "(cached) " >&6 4676267897Sdelphijfi 4677267897Sdelphij 4678267897Sdelphij case $ac_cv_prog_cc_stdc in #( 4679267897Sdelphij no) : 4680267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4681267897Sdelphij$as_echo "unsupported" >&6; } ;; #( 4682267897Sdelphij '') : 4683267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4684267897Sdelphij$as_echo "none needed" >&6; } ;; #( 4685267897Sdelphij *) : 4686267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4687267897Sdelphij$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4688267897Sdelphijesac 4689267897Sdelphij 4690267897Sdelphij 4691234449Sobrienac_ext=c 4692234449Sobrienac_cpp='$CPP $CPPFLAGS' 4693234449Sobrienac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4694234449Sobrienac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4695234449Sobrienac_compiler_gnu=$ac_cv_c_compiler_gnu 4696234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4697234449Sobrien$as_echo_n "checking how to run the C preprocessor... " >&6; } 4698234449Sobrien# On Suns, sometimes $CPP names a directory. 4699234449Sobrienif test -n "$CPP" && test -d "$CPP"; then 4700234449Sobrien CPP= 4701186691Sobrienfi 4702234449Sobrienif test -z "$CPP"; then 4703234449Sobrien if ${ac_cv_prog_CPP+:} false; then : 4704234449Sobrien $as_echo_n "(cached) " >&6 4705186691Sobrienelse 4706234449Sobrien # Double quotes because CPP needs to be expanded 4707234449Sobrien for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4708234449Sobrien do 4709234449Sobrien ac_preproc_ok=false 4710234449Sobrienfor ac_c_preproc_warn_flag in '' yes 4711234449Sobriendo 4712234449Sobrien # Use a header file that comes with gcc, so configuring glibc 4713234449Sobrien # with a fresh cross-compiler works. 4714234449Sobrien # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4715234449Sobrien # <limits.h> exists even on freestanding compilers. 4716234449Sobrien # On the NeXT, cc -E runs the code through the compiler's parser, 4717234449Sobrien # not just through cpp. "Syntax error" is here to catch this case. 4718234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4719234449Sobrien/* end confdefs.h. */ 4720234449Sobrien#ifdef __STDC__ 4721234449Sobrien# include <limits.h> 4722234449Sobrien#else 4723234449Sobrien# include <assert.h> 4724234449Sobrien#endif 4725234449Sobrien Syntax error 4726186691Sobrien_ACEOF 4727234449Sobrienif ac_fn_c_try_cpp "$LINENO"; then : 4728186691Sobrien 4729186691Sobrienelse 4730234449Sobrien # Broken: fails on valid input. 4731234449Sobriencontinue 4732186691Sobrienfi 4733234449Sobrienrm -f conftest.err conftest.i conftest.$ac_ext 4734186691Sobrien 4735234449Sobrien # OK, works on sane cases. Now check whether nonexistent headers 4736234449Sobrien # can be detected and how. 4737234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4738234449Sobrien/* end confdefs.h. */ 4739234449Sobrien#include <ac_nonexistent.h> 4740234449Sobrien_ACEOF 4741234449Sobrienif ac_fn_c_try_cpp "$LINENO"; then : 4742234449Sobrien # Broken: success on invalid input. 4743234449Sobriencontinue 4744186691Sobrienelse 4745234449Sobrien # Passes both tests. 4746234449Sobrienac_preproc_ok=: 4747234449Sobrienbreak 4748186691Sobrienfi 4749234449Sobrienrm -f conftest.err conftest.i conftest.$ac_ext 4750186691Sobrien 4751234449Sobriendone 4752234449Sobrien# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4753234449Sobrienrm -f conftest.i conftest.err conftest.$ac_ext 4754234449Sobrienif $ac_preproc_ok; then : 4755234449Sobrien break 4756186691Sobrienfi 4757186691Sobrien 4758133359Sobrien done 4759234449Sobrien ac_cv_prog_CPP=$CPP 476068349Sobrien 476168349Sobrienfi 4762234449Sobrien CPP=$ac_cv_prog_CPP 476368349Sobrienelse 4764234449Sobrien ac_cv_prog_CPP=$CPP 4765133359Sobrienfi 4766234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4767234449Sobrien$as_echo "$CPP" >&6; } 4768234449Sobrienac_preproc_ok=false 4769234449Sobrienfor ac_c_preproc_warn_flag in '' yes 4770234449Sobriendo 4771234449Sobrien # Use a header file that comes with gcc, so configuring glibc 4772234449Sobrien # with a fresh cross-compiler works. 4773234449Sobrien # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4774234449Sobrien # <limits.h> exists even on freestanding compilers. 4775234449Sobrien # On the NeXT, cc -E runs the code through the compiler's parser, 4776234449Sobrien # not just through cpp. "Syntax error" is here to catch this case. 4777234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4778234449Sobrien/* end confdefs.h. */ 4779234449Sobrien#ifdef __STDC__ 4780234449Sobrien# include <limits.h> 4781234449Sobrien#else 4782234449Sobrien# include <assert.h> 4783234449Sobrien#endif 4784234449Sobrien Syntax error 4785234449Sobrien_ACEOF 4786234449Sobrienif ac_fn_c_try_cpp "$LINENO"; then : 4787133359Sobrien 478868349Sobrienelse 4789234449Sobrien # Broken: fails on valid input. 4790234449Sobriencontinue 4791175296Sobrienfi 4792234449Sobrienrm -f conftest.err conftest.i conftest.$ac_ext 4793159764Sobrien 4794234449Sobrien # OK, works on sane cases. Now check whether nonexistent headers 4795234449Sobrien # can be detected and how. 4796234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4797234449Sobrien/* end confdefs.h. */ 4798234449Sobrien#include <ac_nonexistent.h> 4799234449Sobrien_ACEOF 4800234449Sobrienif ac_fn_c_try_cpp "$LINENO"; then : 4801234449Sobrien # Broken: success on invalid input. 4802234449Sobriencontinue 4803133359Sobrienelse 4804234449Sobrien # Passes both tests. 4805234449Sobrienac_preproc_ok=: 4806234449Sobrienbreak 4807175296Sobrienfi 4808234449Sobrienrm -f conftest.err conftest.i conftest.$ac_ext 4809159764Sobrien 4810234449Sobriendone 4811234449Sobrien# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4812234449Sobrienrm -f conftest.i conftest.err conftest.$ac_ext 4813234449Sobrienif $ac_preproc_ok; then : 4814175296Sobrien 4815133359Sobrienelse 4816234449Sobrien { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4817234449Sobrien$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4818234449Sobrienas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4819234449SobrienSee \`config.log' for more details" "$LINENO" 5; } 4820175296Sobrienfi 4821159764Sobrien 4822234449Sobrienac_ext=c 4823234449Sobrienac_cpp='$CPP $CPPFLAGS' 4824234449Sobrienac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4825234449Sobrienac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4826234449Sobrienac_compiler_gnu=$ac_cv_c_compiler_gnu 4827175296Sobrien 4828133359Sobrien 4829234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4830234449Sobrien$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4831234449Sobrienif ${ac_cv_path_GREP+:} false; then : 4832234449Sobrien $as_echo_n "(cached) " >&6 4833133359Sobrienelse 4834234449Sobrien if test -z "$GREP"; then 4835175296Sobrien ac_path_GREP_found=false 4836234449Sobrien # Loop through the user's path and test for each of PROGNAME-LIST 4837234449Sobrien as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4838175296Sobrienfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4839175296Sobriendo 4840175296Sobrien IFS=$as_save_IFS 4841175296Sobrien test -z "$as_dir" && as_dir=. 4842234449Sobrien for ac_prog in grep ggrep; do 4843234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 4844234449Sobrien ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4845267897Sdelphij as_fn_executable_p "$ac_path_GREP" || continue 4846234449Sobrien# Check for GNU ac_path_GREP and select it if it is found. 4847175296Sobrien # Check for GNU $ac_path_GREP 4848175296Sobriencase `"$ac_path_GREP" --version 2>&1` in 4849175296Sobrien*GNU*) 4850175296Sobrien ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4851175296Sobrien*) 4852175296Sobrien ac_count=0 4853234449Sobrien $as_echo_n 0123456789 >"conftest.in" 4854175296Sobrien while : 4855175296Sobrien do 4856175296Sobrien cat "conftest.in" "conftest.in" >"conftest.tmp" 4857175296Sobrien mv "conftest.tmp" "conftest.in" 4858175296Sobrien cp "conftest.in" "conftest.nl" 4859234449Sobrien $as_echo 'GREP' >> "conftest.nl" 4860175296Sobrien "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4861175296Sobrien diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4862234449Sobrien as_fn_arith $ac_count + 1 && ac_count=$as_val 4863175296Sobrien if test $ac_count -gt ${ac_path_GREP_max-0}; then 4864175296Sobrien # Best one so far, save it but keep looking for a better one 4865175296Sobrien ac_cv_path_GREP="$ac_path_GREP" 4866175296Sobrien ac_path_GREP_max=$ac_count 4867159764Sobrien fi 4868175296Sobrien # 10*(2^10) chars as input seems more than enough 4869175296Sobrien test $ac_count -gt 10 && break 4870175296Sobrien done 4871175296Sobrien rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4872175296Sobrienesac 4873175296Sobrien 4874234449Sobrien $ac_path_GREP_found && break 3 4875234449Sobrien done 4876175296Sobrien done 4877234449Sobrien done 4878175296SobrienIFS=$as_save_IFS 4879234449Sobrien if test -z "$ac_cv_path_GREP"; then 4880234449Sobrien as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4881234449Sobrien fi 4882175296Sobrienelse 4883175296Sobrien ac_cv_path_GREP=$GREP 4884175296Sobrienfi 4885159764Sobrien 4886175296Sobrienfi 4887234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4888234449Sobrien$as_echo "$ac_cv_path_GREP" >&6; } 4889175296Sobrien GREP="$ac_cv_path_GREP" 4890175296Sobrien 4891175296Sobrien 4892234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4893234449Sobrien$as_echo_n "checking for egrep... " >&6; } 4894234449Sobrienif ${ac_cv_path_EGREP+:} false; then : 4895234449Sobrien $as_echo_n "(cached) " >&6 4896175296Sobrienelse 4897175296Sobrien if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4898175296Sobrien then ac_cv_path_EGREP="$GREP -E" 4899175296Sobrien else 4900234449Sobrien if test -z "$EGREP"; then 4901175296Sobrien ac_path_EGREP_found=false 4902234449Sobrien # Loop through the user's path and test for each of PROGNAME-LIST 4903234449Sobrien as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4904175296Sobrienfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4905175296Sobriendo 4906175296Sobrien IFS=$as_save_IFS 4907175296Sobrien test -z "$as_dir" && as_dir=. 4908234449Sobrien for ac_prog in egrep; do 4909234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 4910234449Sobrien ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4911267897Sdelphij as_fn_executable_p "$ac_path_EGREP" || continue 4912234449Sobrien# Check for GNU ac_path_EGREP and select it if it is found. 4913175296Sobrien # Check for GNU $ac_path_EGREP 4914175296Sobriencase `"$ac_path_EGREP" --version 2>&1` in 4915175296Sobrien*GNU*) 4916175296Sobrien ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4917175296Sobrien*) 4918175296Sobrien ac_count=0 4919234449Sobrien $as_echo_n 0123456789 >"conftest.in" 4920175296Sobrien while : 4921175296Sobrien do 4922175296Sobrien cat "conftest.in" "conftest.in" >"conftest.tmp" 4923175296Sobrien mv "conftest.tmp" "conftest.in" 4924175296Sobrien cp "conftest.in" "conftest.nl" 4925234449Sobrien $as_echo 'EGREP' >> "conftest.nl" 4926175296Sobrien "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4927175296Sobrien diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4928234449Sobrien as_fn_arith $ac_count + 1 && ac_count=$as_val 4929175296Sobrien if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4930175296Sobrien # Best one so far, save it but keep looking for a better one 4931175296Sobrien ac_cv_path_EGREP="$ac_path_EGREP" 4932175296Sobrien ac_path_EGREP_max=$ac_count 4933175296Sobrien fi 4934175296Sobrien # 10*(2^10) chars as input seems more than enough 4935175296Sobrien test $ac_count -gt 10 && break 4936175296Sobrien done 4937175296Sobrien rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4938175296Sobrienesac 4939175296Sobrien 4940234449Sobrien $ac_path_EGREP_found && break 3 4941234449Sobrien done 4942175296Sobrien done 4943234449Sobrien done 4944175296SobrienIFS=$as_save_IFS 4945234449Sobrien if test -z "$ac_cv_path_EGREP"; then 4946234449Sobrien as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4947234449Sobrien fi 4948175296Sobrienelse 4949175296Sobrien ac_cv_path_EGREP=$EGREP 4950175296Sobrienfi 4951175296Sobrien 4952175296Sobrien fi 4953175296Sobrienfi 4954234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4955234449Sobrien$as_echo "$ac_cv_path_EGREP" >&6; } 4956175296Sobrien EGREP="$ac_cv_path_EGREP" 4957175296Sobrien 4958175296Sobrien 4959234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4960234449Sobrien$as_echo_n "checking for ANSI C header files... " >&6; } 4961234449Sobrienif ${ac_cv_header_stdc+:} false; then : 4962234449Sobrien $as_echo_n "(cached) " >&6 496368349Sobrienelse 4964234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4965159764Sobrien/* end confdefs.h. */ 4966139368Sobrien#include <stdlib.h> 4967139368Sobrien#include <stdarg.h> 4968139368Sobrien#include <string.h> 4969139368Sobrien#include <float.h> 4970139368Sobrien 4971159764Sobrienint 4972159764Sobrienmain () 4973159764Sobrien{ 4974159764Sobrien 4975159764Sobrien ; 4976159764Sobrien return 0; 4977159764Sobrien} 4978139368Sobrien_ACEOF 4979234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 4980139368Sobrien ac_cv_header_stdc=yes 4981139368Sobrienelse 4982234449Sobrien ac_cv_header_stdc=no 4983139368Sobrienfi 4984175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4985175296Sobrien 4986139368Sobrienif test $ac_cv_header_stdc = yes; then 4987139368Sobrien # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4988234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4989159764Sobrien/* end confdefs.h. */ 4990139368Sobrien#include <string.h> 4991139368Sobrien 4992139368Sobrien_ACEOF 4993139368Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4994234449Sobrien $EGREP "memchr" >/dev/null 2>&1; then : 4995234449Sobrien 4996139368Sobrienelse 4997139368Sobrien ac_cv_header_stdc=no 4998139368Sobrienfi 4999139368Sobrienrm -f conftest* 5000139368Sobrien 5001139368Sobrienfi 5002139368Sobrien 5003139368Sobrienif test $ac_cv_header_stdc = yes; then 5004139368Sobrien # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5005234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5006159764Sobrien/* end confdefs.h. */ 5007139368Sobrien#include <stdlib.h> 5008139368Sobrien 5009139368Sobrien_ACEOF 5010139368Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5011234449Sobrien $EGREP "free" >/dev/null 2>&1; then : 5012234449Sobrien 5013139368Sobrienelse 5014139368Sobrien ac_cv_header_stdc=no 5015139368Sobrienfi 5016139368Sobrienrm -f conftest* 5017139368Sobrien 5018139368Sobrienfi 5019139368Sobrien 5020139368Sobrienif test $ac_cv_header_stdc = yes; then 5021139368Sobrien # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5022234449Sobrien if test "$cross_compiling" = yes; then : 5023139368Sobrien : 5024139368Sobrienelse 5025234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5026159764Sobrien/* end confdefs.h. */ 5027139368Sobrien#include <ctype.h> 5028175296Sobrien#include <stdlib.h> 5029139368Sobrien#if ((' ' & 0x0FF) == 0x020) 5030139368Sobrien# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5031139368Sobrien# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5032139368Sobrien#else 5033159764Sobrien# define ISLOWER(c) \ 5034159764Sobrien (('a' <= (c) && (c) <= 'i') \ 5035159764Sobrien || ('j' <= (c) && (c) <= 'r') \ 5036159764Sobrien || ('s' <= (c) && (c) <= 'z')) 5037139368Sobrien# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5038139368Sobrien#endif 5039139368Sobrien 5040139368Sobrien#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5041139368Sobrienint 5042139368Sobrienmain () 5043139368Sobrien{ 5044139368Sobrien int i; 5045139368Sobrien for (i = 0; i < 256; i++) 5046139368Sobrien if (XOR (islower (i), ISLOWER (i)) 5047159764Sobrien || toupper (i) != TOUPPER (i)) 5048175296Sobrien return 2; 5049175296Sobrien return 0; 5050139368Sobrien} 5051139368Sobrien_ACEOF 5052234449Sobrienif ac_fn_c_try_run "$LINENO"; then : 5053234449Sobrien 5054139368Sobrienelse 5055234449Sobrien ac_cv_header_stdc=no 5056139368Sobrienfi 5057234449Sobrienrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5058234449Sobrien conftest.$ac_objext conftest.beam conftest.$ac_ext 5059139368Sobrienfi 5060175296Sobrien 5061139368Sobrienfi 5062139368Sobrienfi 5063234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5064234449Sobrien$as_echo "$ac_cv_header_stdc" >&6; } 5065139368Sobrienif test $ac_cv_header_stdc = yes; then 5066139368Sobrien 5067234449Sobrien$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5068139368Sobrien 5069139368Sobrienfi 5070139368Sobrien 5071139368Sobrien# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5072234449Sobrienfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5073234449Sobrien inttypes.h stdint.h unistd.h 5074234449Sobriendo : 5075234449Sobrien as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5076234449Sobrienac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5077234449Sobrien" 5078234449Sobrienif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5079234449Sobrien cat >>confdefs.h <<_ACEOF 5080234449Sobrien#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5081234449Sobrien_ACEOF 5082139368Sobrien 5083234449Sobrienfi 5084139368Sobrien 5085234449Sobriendone 5086139368Sobrien 5087139368Sobrien 5088139368Sobrien 5089234449Sobrien ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5090234449Sobrienif test "x$ac_cv_header_minix_config_h" = xyes; then : 5091234449Sobrien MINIX=yes 5092234449Sobrienelse 5093234449Sobrien MINIX= 5094234449Sobrienfi 5095139368Sobrien 5096139368Sobrien 5097234449Sobrien if test "$MINIX" = yes; then 5098139368Sobrien 5099234449Sobrien$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5100139368Sobrien 5101234449Sobrien 5102234449Sobrien$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5103234449Sobrien 5104234449Sobrien 5105234449Sobrien$as_echo "#define _MINIX 1" >>confdefs.h 5106234449Sobrien 5107234449Sobrien fi 5108234449Sobrien 5109234449Sobrien 5110234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5111234449Sobrien$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5112234449Sobrienif ${ac_cv_safe_to_define___extensions__+:} false; then : 5113234449Sobrien $as_echo_n "(cached) " >&6 5114139368Sobrienelse 5115234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5116159764Sobrien/* end confdefs.h. */ 5117139368Sobrien 5118267897Sdelphij# define __EXTENSIONS__ 1 5119267897Sdelphij $ac_includes_default 5120234449Sobrienint 5121234449Sobrienmain () 5122234449Sobrien{ 5123234449Sobrien 5124234449Sobrien ; 5125234449Sobrien return 0; 5126234449Sobrien} 5127139368Sobrien_ACEOF 5128234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 5129234449Sobrien ac_cv_safe_to_define___extensions__=yes 5130139368Sobrienelse 5131234449Sobrien ac_cv_safe_to_define___extensions__=no 5132139368Sobrienfi 5133175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5134139368Sobrienfi 5135234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5136234449Sobrien$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5137234449Sobrien test $ac_cv_safe_to_define___extensions__ = yes && 5138234449Sobrien $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5139139368Sobrien 5140234449Sobrien $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5141139368Sobrien 5142234449Sobrien $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5143139368Sobrien 5144234449Sobrien $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5145139368Sobrien 5146234449Sobrien $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5147139368Sobrien 5148234449Sobrien 5149234449Sobrien 5150267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5151267897Sdelphij$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 5152267897Sdelphijif ${ac_cv_c_bigendian+:} false; then : 5153234449Sobrien $as_echo_n "(cached) " >&6 5154234449Sobrienelse 5155267897Sdelphij ac_cv_c_bigendian=unknown 5156267897Sdelphij # See if we're dealing with a universal compiler. 5157267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5158267897Sdelphij/* end confdefs.h. */ 5159267897Sdelphij#ifndef __APPLE_CC__ 5160267897Sdelphij not a universal capable compiler 5161267897Sdelphij #endif 5162267897Sdelphij typedef int dummy; 5163234449Sobrien 5164267897Sdelphij_ACEOF 5165267897Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 5166234449Sobrien 5167267897Sdelphij # Check for potential -arch flags. It is not universal unless 5168267897Sdelphij # there are at least two -arch flags with different values. 5169267897Sdelphij ac_arch= 5170267897Sdelphij ac_prev= 5171267897Sdelphij for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5172267897Sdelphij if test -n "$ac_prev"; then 5173267897Sdelphij case $ac_word in 5174267897Sdelphij i?86 | x86_64 | ppc | ppc64) 5175267897Sdelphij if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5176267897Sdelphij ac_arch=$ac_word 5177267897Sdelphij else 5178267897Sdelphij ac_cv_c_bigendian=universal 5179267897Sdelphij break 5180267897Sdelphij fi 5181267897Sdelphij ;; 5182267897Sdelphij esac 5183267897Sdelphij ac_prev= 5184267897Sdelphij elif test "x$ac_word" = "x-arch"; then 5185267897Sdelphij ac_prev=arch 5186267897Sdelphij fi 5187267897Sdelphij done 5188234449Sobrienfi 5189267897Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5190267897Sdelphij if test $ac_cv_c_bigendian = unknown; then 5191267897Sdelphij # See if sys/param.h defines the BYTE_ORDER macro. 5192267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5193159764Sobrien/* end confdefs.h. */ 5194267897Sdelphij#include <sys/types.h> 5195267897Sdelphij #include <sys/param.h> 5196133359Sobrien 5197159764Sobrienint 5198159764Sobrienmain () 5199159764Sobrien{ 5200267897Sdelphij#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5201267897Sdelphij && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5202267897Sdelphij && LITTLE_ENDIAN) 5203267897Sdelphij bogus endian macros 5204267897Sdelphij #endif 5205133359Sobrien 5206159764Sobrien ; 5207159764Sobrien return 0; 5208159764Sobrien} 5209159764Sobrien_ACEOF 5210234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 5211267897Sdelphij # It does; now see whether it defined to BIG_ENDIAN or not. 5212267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5213159764Sobrien/* end confdefs.h. */ 5214267897Sdelphij#include <sys/types.h> 5215267897Sdelphij #include <sys/param.h> 5216159764Sobrien 5217159764Sobrienint 5218159764Sobrienmain () 5219159764Sobrien{ 5220267897Sdelphij#if BYTE_ORDER != BIG_ENDIAN 5221267897Sdelphij not big endian 5222267897Sdelphij #endif 5223159764Sobrien 5224159764Sobrien ; 5225159764Sobrien return 0; 5226159764Sobrien} 5227159764Sobrien_ACEOF 5228234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 5229267897Sdelphij ac_cv_c_bigendian=yes 5230159764Sobrienelse 5231267897Sdelphij ac_cv_c_bigendian=no 5232267897Sdelphijfi 5233267897Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5234267897Sdelphijfi 5235267897Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5236267897Sdelphij fi 5237267897Sdelphij if test $ac_cv_c_bigendian = unknown; then 5238267897Sdelphij # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5239234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5240159764Sobrien/* end confdefs.h. */ 5241267897Sdelphij#include <limits.h> 5242175296Sobrien 5243159764Sobrienint 5244159764Sobrienmain () 5245159764Sobrien{ 5246267897Sdelphij#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5247267897Sdelphij bogus endian macros 5248267897Sdelphij #endif 5249175296Sobrien 5250159764Sobrien ; 5251159764Sobrien return 0; 5252159764Sobrien} 5253159764Sobrien_ACEOF 5254234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 5255267897Sdelphij # It does; now see whether it defined to _BIG_ENDIAN or not. 5256234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5257159764Sobrien/* end confdefs.h. */ 5258267897Sdelphij#include <limits.h> 5259175296Sobrien 5260159764Sobrienint 5261159764Sobrienmain () 5262159764Sobrien{ 5263267897Sdelphij#ifndef _BIG_ENDIAN 5264267897Sdelphij not big endian 5265267897Sdelphij #endif 5266175296Sobrien 5267159764Sobrien ; 5268159764Sobrien return 0; 5269159764Sobrien} 5270159764Sobrien_ACEOF 5271234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 5272267897Sdelphij ac_cv_c_bigendian=yes 5273267897Sdelphijelse 5274267897Sdelphij ac_cv_c_bigendian=no 5275159764Sobrienfi 5276175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5277159764Sobrienfi 5278175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5279267897Sdelphij fi 5280267897Sdelphij if test $ac_cv_c_bigendian = unknown; then 5281267897Sdelphij # Compile a test program. 5282267897Sdelphij if test "$cross_compiling" = yes; then : 5283267897Sdelphij # Try to guess by grepping values from an object file. 5284267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5285234449Sobrien/* end confdefs.h. */ 5286267897Sdelphijshort int ascii_mm[] = 5287267897Sdelphij { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5288267897Sdelphij short int ascii_ii[] = 5289267897Sdelphij { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5290267897Sdelphij int use_ascii (int i) { 5291267897Sdelphij return ascii_mm[i] + ascii_ii[i]; 5292267897Sdelphij } 5293267897Sdelphij short int ebcdic_ii[] = 5294267897Sdelphij { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5295267897Sdelphij short int ebcdic_mm[] = 5296267897Sdelphij { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5297267897Sdelphij int use_ebcdic (int i) { 5298267897Sdelphij return ebcdic_mm[i] + ebcdic_ii[i]; 5299267897Sdelphij } 5300267897Sdelphij extern int foo; 5301159764Sobrien 5302234449Sobrienint 5303234449Sobrienmain () 5304234449Sobrien{ 5305267897Sdelphijreturn use_ascii (foo) == use_ebcdic (foo); 5306234449Sobrien ; 5307234449Sobrien return 0; 5308234449Sobrien} 5309234449Sobrien_ACEOF 5310267897Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 5311267897Sdelphij if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 5312267897Sdelphij ac_cv_c_bigendian=yes 5313267897Sdelphij fi 5314267897Sdelphij if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5315267897Sdelphij if test "$ac_cv_c_bigendian" = unknown; then 5316267897Sdelphij ac_cv_c_bigendian=no 5317267897Sdelphij else 5318267897Sdelphij # finding both strings is unlikely to happen, but who knows? 5319267897Sdelphij ac_cv_c_bigendian=unknown 5320267897Sdelphij fi 5321267897Sdelphij fi 5322234449Sobrienfi 5323267897Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5324159764Sobrienelse 5325234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5326234449Sobrien/* end confdefs.h. */ 5327267897Sdelphij$ac_includes_default 5328234449Sobrienint 5329234449Sobrienmain () 5330234449Sobrien{ 5331159764Sobrien 5332267897Sdelphij /* Are we little or big endian? From Harbison&Steele. */ 5333267897Sdelphij union 5334267897Sdelphij { 5335267897Sdelphij long int l; 5336267897Sdelphij char c[sizeof (long int)]; 5337267897Sdelphij } u; 5338267897Sdelphij u.l = 1; 5339267897Sdelphij return u.c[sizeof (long int) - 1] == 1; 5340267897Sdelphij 5341234449Sobrien ; 5342234449Sobrien return 0; 5343234449Sobrien} 5344159764Sobrien_ACEOF 5345267897Sdelphijif ac_fn_c_try_run "$LINENO"; then : 5346267897Sdelphij ac_cv_c_bigendian=no 5347159764Sobrienelse 5348267897Sdelphij ac_cv_c_bigendian=yes 5349234449Sobrienfi 5350267897Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5351267897Sdelphij conftest.$ac_objext conftest.beam conftest.$ac_ext 5352159764Sobrienfi 5353175296Sobrien 5354267897Sdelphij fi 5355159764Sobrienfi 5356267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5357267897Sdelphij$as_echo "$ac_cv_c_bigendian" >&6; } 5358267897Sdelphij case $ac_cv_c_bigendian in #( 5359267897Sdelphij yes) 5360267897Sdelphij $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 5361267897Sdelphij;; #( 5362267897Sdelphij no) 5363267897Sdelphij ;; #( 5364267897Sdelphij universal) 5365159764Sobrien 5366267897Sdelphij$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5367159764Sobrien 5368267897Sdelphij ;; #( 5369267897Sdelphij *) 5370267897Sdelphij as_fn_error $? "unknown endianness 5371267897Sdelphij presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5372267897Sdelphij esac 5373234449Sobrien 5374234449Sobrien 5375234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5376234449Sobrien$as_echo_n "checking whether ln -s works... " >&6; } 5377234449SobrienLN_S=$as_ln_s 5378234449Sobrienif test "$LN_S" = "ln -s"; then 5379234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5380234449Sobrien$as_echo "yes" >&6; } 5381234449Sobrienelse 5382234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5383234449Sobrien$as_echo "no, using $LN_S" >&6; } 5384159764Sobrienfi 5385234449Sobrien 5386234449Sobriencase `pwd` in 5387234449Sobrien *\ * | *\ *) 5388234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5389234449Sobrien$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5390234449Sobrienesac 5391234449Sobrien 5392234449Sobrien 5393234449Sobrien 5394267897Sdelphijmacro_version='2.4.2' 5395267897Sdelphijmacro_revision='1.3337' 5396234449Sobrien 5397234449Sobrien 5398234449Sobrien 5399234449Sobrien 5400234449Sobrien 5401234449Sobrien 5402234449Sobrien 5403234449Sobrien 5404234449Sobrien 5405234449Sobrien 5406234449Sobrien 5407234449Sobrien 5408234449Sobrien 5409234449Sobrienltmain="$ac_aux_dir/ltmain.sh" 5410234449Sobrien 5411267897Sdelphij# Backslashify metacharacters that are still active within 5412267897Sdelphij# double-quoted strings. 5413267897Sdelphijsed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5414267897Sdelphij 5415267897Sdelphij# Same as above, but do not quote variable references. 5416267897Sdelphijdouble_quote_subst='s/\(["`\\]\)/\\\1/g' 5417267897Sdelphij 5418267897Sdelphij# Sed substitution to delay expansion of an escaped shell variable in a 5419267897Sdelphij# double_quote_subst'ed string. 5420267897Sdelphijdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5421267897Sdelphij 5422267897Sdelphij# Sed substitution to delay expansion of an escaped single quote. 5423267897Sdelphijdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5424267897Sdelphij 5425267897Sdelphij# Sed substitution to avoid accidental globbing in evaled expressions 5426267897Sdelphijno_glob_subst='s/\*/\\\*/g' 5427267897Sdelphij 5428267897SdelphijECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5429267897SdelphijECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5430267897SdelphijECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5431267897Sdelphij 5432267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5433267897Sdelphij$as_echo_n "checking how to print strings... " >&6; } 5434267897Sdelphij# Test print first, because it will be a builtin if present. 5435267897Sdelphijif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5436267897Sdelphij test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5437267897Sdelphij ECHO='print -r --' 5438267897Sdelphijelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5439267897Sdelphij ECHO='printf %s\n' 5440267897Sdelphijelse 5441267897Sdelphij # Use this function as a fallback that always works. 5442267897Sdelphij func_fallback_echo () 5443267897Sdelphij { 5444267897Sdelphij eval 'cat <<_LTECHO_EOF 5445267897Sdelphij$1 5446267897Sdelphij_LTECHO_EOF' 5447267897Sdelphij } 5448267897Sdelphij ECHO='func_fallback_echo' 5449267897Sdelphijfi 5450267897Sdelphij 5451267897Sdelphij# func_echo_all arg... 5452267897Sdelphij# Invoke $ECHO with all args, space-separated. 5453267897Sdelphijfunc_echo_all () 5454267897Sdelphij{ 5455267897Sdelphij $ECHO "" 5456267897Sdelphij} 5457267897Sdelphij 5458267897Sdelphijcase "$ECHO" in 5459267897Sdelphij printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5460267897Sdelphij$as_echo "printf" >&6; } ;; 5461267897Sdelphij print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5462267897Sdelphij$as_echo "print -r" >&6; } ;; 5463267897Sdelphij *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5464267897Sdelphij$as_echo "cat" >&6; } ;; 5465267897Sdelphijesac 5466267897Sdelphij 5467267897Sdelphij 5468267897Sdelphij 5469267897Sdelphij 5470267897Sdelphij 5471267897Sdelphij 5472267897Sdelphij 5473267897Sdelphij 5474267897Sdelphij 5475267897Sdelphij 5476267897Sdelphij 5477267897Sdelphij 5478267897Sdelphij 5479267897Sdelphij 5480234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5481234449Sobrien$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5482234449Sobrienif ${ac_cv_path_SED+:} false; then : 5483234449Sobrien $as_echo_n "(cached) " >&6 5484159764Sobrienelse 5485234449Sobrien ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5486234449Sobrien for ac_i in 1 2 3 4 5 6 7; do 5487234449Sobrien ac_script="$ac_script$as_nl$ac_script" 5488234449Sobrien done 5489234449Sobrien echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5490234449Sobrien { ac_script=; unset ac_script;} 5491234449Sobrien if test -z "$SED"; then 5492234449Sobrien ac_path_SED_found=false 5493234449Sobrien # Loop through the user's path and test for each of PROGNAME-LIST 5494234449Sobrien as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5495234449Sobrienfor as_dir in $PATH 5496159764Sobriendo 5497234449Sobrien IFS=$as_save_IFS 5498234449Sobrien test -z "$as_dir" && as_dir=. 5499234449Sobrien for ac_prog in sed gsed; do 5500234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 5501234449Sobrien ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5502267897Sdelphij as_fn_executable_p "$ac_path_SED" || continue 5503234449Sobrien# Check for GNU ac_path_SED and select it if it is found. 5504234449Sobrien # Check for GNU $ac_path_SED 5505234449Sobriencase `"$ac_path_SED" --version 2>&1` in 5506234449Sobrien*GNU*) 5507234449Sobrien ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5508234449Sobrien*) 5509234449Sobrien ac_count=0 5510234449Sobrien $as_echo_n 0123456789 >"conftest.in" 5511234449Sobrien while : 5512234449Sobrien do 5513234449Sobrien cat "conftest.in" "conftest.in" >"conftest.tmp" 5514234449Sobrien mv "conftest.tmp" "conftest.in" 5515234449Sobrien cp "conftest.in" "conftest.nl" 5516234449Sobrien $as_echo '' >> "conftest.nl" 5517234449Sobrien "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5518234449Sobrien diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5519234449Sobrien as_fn_arith $ac_count + 1 && ac_count=$as_val 5520234449Sobrien if test $ac_count -gt ${ac_path_SED_max-0}; then 5521234449Sobrien # Best one so far, save it but keep looking for a better one 5522234449Sobrien ac_cv_path_SED="$ac_path_SED" 5523234449Sobrien ac_path_SED_max=$ac_count 5524234449Sobrien fi 5525234449Sobrien # 10*(2^10) chars as input seems more than enough 5526234449Sobrien test $ac_count -gt 10 && break 5527234449Sobrien done 5528234449Sobrien rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5529175296Sobrienesac 5530234449Sobrien 5531234449Sobrien $ac_path_SED_found && break 3 5532234449Sobrien done 5533234449Sobrien done 5534234449Sobrien done 5535234449SobrienIFS=$as_save_IFS 5536234449Sobrien if test -z "$ac_cv_path_SED"; then 5537234449Sobrien as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5538234449Sobrien fi 5539159764Sobrienelse 5540234449Sobrien ac_cv_path_SED=$SED 5541234449Sobrienfi 5542159764Sobrien 5543159764Sobrienfi 5544234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5545234449Sobrien$as_echo "$ac_cv_path_SED" >&6; } 5546234449Sobrien SED="$ac_cv_path_SED" 5547234449Sobrien rm -f conftest.sed 5548175296Sobrien 5549234449Sobrientest -z "$SED" && SED=sed 5550234449SobrienXsed="$SED -e 1s/^X//" 5551159764Sobrien 5552234449Sobrien 5553234449Sobrien 5554234449Sobrien 5555234449Sobrien 5556234449Sobrien 5557234449Sobrien 5558234449Sobrien 5559234449Sobrien 5560234449Sobrien 5561234449Sobrien 5562234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5563234449Sobrien$as_echo_n "checking for fgrep... " >&6; } 5564234449Sobrienif ${ac_cv_path_FGREP+:} false; then : 5565234449Sobrien $as_echo_n "(cached) " >&6 5566234449Sobrienelse 5567234449Sobrien if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5568234449Sobrien then ac_cv_path_FGREP="$GREP -F" 5569234449Sobrien else 5570234449Sobrien if test -z "$FGREP"; then 5571234449Sobrien ac_path_FGREP_found=false 5572234449Sobrien # Loop through the user's path and test for each of PROGNAME-LIST 5573234449Sobrien as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5574234449Sobrienfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5575234449Sobriendo 5576234449Sobrien IFS=$as_save_IFS 5577234449Sobrien test -z "$as_dir" && as_dir=. 5578234449Sobrien for ac_prog in fgrep; do 5579234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 5580234449Sobrien ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5581267897Sdelphij as_fn_executable_p "$ac_path_FGREP" || continue 5582234449Sobrien# Check for GNU ac_path_FGREP and select it if it is found. 5583234449Sobrien # Check for GNU $ac_path_FGREP 5584234449Sobriencase `"$ac_path_FGREP" --version 2>&1` in 5585234449Sobrien*GNU*) 5586234449Sobrien ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5587234449Sobrien*) 5588234449Sobrien ac_count=0 5589234449Sobrien $as_echo_n 0123456789 >"conftest.in" 5590234449Sobrien while : 5591234449Sobrien do 5592234449Sobrien cat "conftest.in" "conftest.in" >"conftest.tmp" 5593234449Sobrien mv "conftest.tmp" "conftest.in" 5594234449Sobrien cp "conftest.in" "conftest.nl" 5595234449Sobrien $as_echo 'FGREP' >> "conftest.nl" 5596234449Sobrien "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5597234449Sobrien diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5598234449Sobrien as_fn_arith $ac_count + 1 && ac_count=$as_val 5599234449Sobrien if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5600234449Sobrien # Best one so far, save it but keep looking for a better one 5601234449Sobrien ac_cv_path_FGREP="$ac_path_FGREP" 5602234449Sobrien ac_path_FGREP_max=$ac_count 5603234449Sobrien fi 5604234449Sobrien # 10*(2^10) chars as input seems more than enough 5605234449Sobrien test $ac_count -gt 10 && break 5606234449Sobrien done 5607234449Sobrien rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5608175296Sobrienesac 5609234449Sobrien 5610234449Sobrien $ac_path_FGREP_found && break 3 5611234449Sobrien done 5612234449Sobrien done 5613234449Sobrien done 5614234449SobrienIFS=$as_save_IFS 5615234449Sobrien if test -z "$ac_cv_path_FGREP"; then 5616234449Sobrien as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5617234449Sobrien fi 5618159764Sobrienelse 5619234449Sobrien ac_cv_path_FGREP=$FGREP 5620234449Sobrienfi 5621159764Sobrien 5622234449Sobrien fi 5623159764Sobrienfi 5624234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5625234449Sobrien$as_echo "$ac_cv_path_FGREP" >&6; } 5626234449Sobrien FGREP="$ac_cv_path_FGREP" 5627175296Sobrien 5628159764Sobrien 5629234449Sobrientest -z "$GREP" && GREP=grep 5630234449Sobrien 5631234449Sobrien 5632234449Sobrien 5633234449Sobrien 5634234449Sobrien 5635234449Sobrien 5636234449Sobrien 5637234449Sobrien 5638234449Sobrien 5639234449Sobrien 5640234449Sobrien 5641234449Sobrien 5642234449Sobrien 5643234449Sobrien 5644234449Sobrien 5645234449Sobrien 5646234449Sobrien 5647234449Sobrien 5648234449Sobrien 5649234449Sobrien# Check whether --with-gnu-ld was given. 5650234449Sobrienif test "${with_gnu_ld+set}" = set; then : 5651234449Sobrien withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5652159764Sobrienelse 5653234449Sobrien with_gnu_ld=no 5654159764Sobrienfi 5655159764Sobrien 5656234449Sobrienac_prog=ld 5657234449Sobrienif test "$GCC" = yes; then 5658234449Sobrien # Check if gcc -print-prog-name=ld gives a path. 5659234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5660234449Sobrien$as_echo_n "checking for ld used by $CC... " >&6; } 5661234449Sobrien case $host in 5662234449Sobrien *-*-mingw*) 5663234449Sobrien # gcc leaves a trailing carriage return which upsets mingw 5664234449Sobrien ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5665234449Sobrien *) 5666234449Sobrien ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5667234449Sobrien esac 5668234449Sobrien case $ac_prog in 5669234449Sobrien # Accept absolute paths. 5670234449Sobrien [\\/]* | ?:[\\/]*) 5671234449Sobrien re_direlt='/[^/][^/]*/\.\./' 5672234449Sobrien # Canonicalize the pathname of ld 5673234449Sobrien ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5674234449Sobrien while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5675234449Sobrien ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5676234449Sobrien done 5677234449Sobrien test -z "$LD" && LD="$ac_prog" 5678234449Sobrien ;; 5679234449Sobrien "") 5680234449Sobrien # If it fails, then pretend we aren't using GCC. 5681234449Sobrien ac_prog=ld 5682234449Sobrien ;; 5683234449Sobrien *) 5684234449Sobrien # If it is relative, then search for the first ld in PATH. 5685234449Sobrien with_gnu_ld=unknown 5686234449Sobrien ;; 5687234449Sobrien esac 5688234449Sobrienelif test "$with_gnu_ld" = yes; then 5689234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5690234449Sobrien$as_echo_n "checking for GNU ld... " >&6; } 5691234449Sobrienelse 5692234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5693234449Sobrien$as_echo_n "checking for non-GNU ld... " >&6; } 5694234449Sobrienfi 5695234449Sobrienif ${lt_cv_path_LD+:} false; then : 5696234449Sobrien $as_echo_n "(cached) " >&6 5697234449Sobrienelse 5698234449Sobrien if test -z "$LD"; then 5699234449Sobrien lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5700234449Sobrien for ac_dir in $PATH; do 5701234449Sobrien IFS="$lt_save_ifs" 5702234449Sobrien test -z "$ac_dir" && ac_dir=. 5703234449Sobrien if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5704234449Sobrien lt_cv_path_LD="$ac_dir/$ac_prog" 5705234449Sobrien # Check to see if the program is GNU ld. I'd rather use --version, 5706234449Sobrien # but apparently some variants of GNU ld only accept -v. 5707234449Sobrien # Break only if it was the GNU/non-GNU ld that we prefer. 5708234449Sobrien case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5709234449Sobrien *GNU* | *'with BFD'*) 5710234449Sobrien test "$with_gnu_ld" != no && break 5711234449Sobrien ;; 5712234449Sobrien *) 5713234449Sobrien test "$with_gnu_ld" != yes && break 5714234449Sobrien ;; 5715234449Sobrien esac 5716234449Sobrien fi 5717234449Sobrien done 5718234449Sobrien IFS="$lt_save_ifs" 5719234449Sobrienelse 5720234449Sobrien lt_cv_path_LD="$LD" # Let the user override the test with a path. 5721234449Sobrienfi 5722234449Sobrienfi 5723159764Sobrien 5724234449SobrienLD="$lt_cv_path_LD" 5725234449Sobrienif test -n "$LD"; then 5726234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5727234449Sobrien$as_echo "$LD" >&6; } 5728234449Sobrienelse 5729234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5730234449Sobrien$as_echo "no" >&6; } 5731159764Sobrienfi 5732234449Sobrientest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5733234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5734234449Sobrien$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5735234449Sobrienif ${lt_cv_prog_gnu_ld+:} false; then : 5736234449Sobrien $as_echo_n "(cached) " >&6 5737234449Sobrienelse 5738234449Sobrien # I'd rather use --version here, but apparently some GNU lds only accept -v. 5739234449Sobriencase `$LD -v 2>&1 </dev/null` in 5740234449Sobrien*GNU* | *'with BFD'*) 5741234449Sobrien lt_cv_prog_gnu_ld=yes 5742234449Sobrien ;; 5743234449Sobrien*) 5744234449Sobrien lt_cv_prog_gnu_ld=no 5745234449Sobrien ;; 5746234449Sobrienesac 5747234449Sobrienfi 5748234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5749234449Sobrien$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5750234449Sobrienwith_gnu_ld=$lt_cv_prog_gnu_ld 5751159764Sobrien 5752159764Sobrien 5753234449Sobrien 5754234449Sobrien 5755234449Sobrien 5756234449Sobrien 5757234449Sobrien 5758234449Sobrien 5759234449Sobrien 5760234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5761234449Sobrien$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5762234449Sobrienif ${lt_cv_path_NM+:} false; then : 5763234449Sobrien $as_echo_n "(cached) " >&6 5764234449Sobrienelse 5765234449Sobrien if test -n "$NM"; then 5766234449Sobrien # Let the user override the test. 5767234449Sobrien lt_cv_path_NM="$NM" 5768234449Sobrienelse 5769234449Sobrien lt_nm_to_check="${ac_tool_prefix}nm" 5770234449Sobrien if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5771234449Sobrien lt_nm_to_check="$lt_nm_to_check nm" 5772234449Sobrien fi 5773234449Sobrien for lt_tmp_nm in $lt_nm_to_check; do 5774234449Sobrien lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5775234449Sobrien for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5776234449Sobrien IFS="$lt_save_ifs" 5777234449Sobrien test -z "$ac_dir" && ac_dir=. 5778234449Sobrien tmp_nm="$ac_dir/$lt_tmp_nm" 5779234449Sobrien if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5780234449Sobrien # Check to see if the nm accepts a BSD-compat flag. 5781234449Sobrien # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5782234449Sobrien # nm: unknown option "B" ignored 5783234449Sobrien # Tru64's nm complains that /dev/null is an invalid object file 5784234449Sobrien case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5785234449Sobrien */dev/null* | *'Invalid file or object type'*) 5786234449Sobrien lt_cv_path_NM="$tmp_nm -B" 5787234449Sobrien break 5788234449Sobrien ;; 5789234449Sobrien *) 5790234449Sobrien case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5791234449Sobrien */dev/null*) 5792234449Sobrien lt_cv_path_NM="$tmp_nm -p" 5793234449Sobrien break 5794234449Sobrien ;; 5795234449Sobrien *) 5796234449Sobrien lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5797234449Sobrien continue # so that we can try to find one that supports BSD flags 5798234449Sobrien ;; 5799234449Sobrien esac 5800234449Sobrien ;; 5801234449Sobrien esac 5802234449Sobrien fi 5803234449Sobrien done 5804234449Sobrien IFS="$lt_save_ifs" 5805234449Sobrien done 5806234449Sobrien : ${lt_cv_path_NM=no} 5807234449Sobrienfi 5808234449Sobrienfi 5809234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5810234449Sobrien$as_echo "$lt_cv_path_NM" >&6; } 5811234449Sobrienif test "$lt_cv_path_NM" != "no"; then 5812234449Sobrien NM="$lt_cv_path_NM" 5813234449Sobrienelse 5814234449Sobrien # Didn't find any BSD compatible name lister, look for dumpbin. 5815267897Sdelphij if test -n "$DUMPBIN"; then : 5816267897Sdelphij # Let the user override the test. 5817267897Sdelphij else 5818267897Sdelphij if test -n "$ac_tool_prefix"; then 5819267897Sdelphij for ac_prog in dumpbin "link -dump" 5820159764Sobrien do 5821159764Sobrien # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5822159764Sobrienset dummy $ac_tool_prefix$ac_prog; ac_word=$2 5823234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5824234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 5825234449Sobrienif ${ac_cv_prog_DUMPBIN+:} false; then : 5826234449Sobrien $as_echo_n "(cached) " >&6 5827159764Sobrienelse 5828234449Sobrien if test -n "$DUMPBIN"; then 5829234449Sobrien ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5830159764Sobrienelse 5831159764Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5832159764Sobrienfor as_dir in $PATH 5833159764Sobriendo 5834159764Sobrien IFS=$as_save_IFS 5835159764Sobrien test -z "$as_dir" && as_dir=. 5836234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 5837267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5838234449Sobrien ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5839234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5840159764Sobrien break 2 5841159764Sobrien fi 5842159764Sobriendone 5843234449Sobrien done 5844175296SobrienIFS=$as_save_IFS 5845159764Sobrien 5846159764Sobrienfi 5847159764Sobrienfi 5848234449SobrienDUMPBIN=$ac_cv_prog_DUMPBIN 5849234449Sobrienif test -n "$DUMPBIN"; then 5850234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5851234449Sobrien$as_echo "$DUMPBIN" >&6; } 5852159764Sobrienelse 5853234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5854234449Sobrien$as_echo "no" >&6; } 5855133359Sobrienfi 5856133359Sobrien 5857175296Sobrien 5858234449Sobrien test -n "$DUMPBIN" && break 5859159764Sobrien done 5860159764Sobrienfi 5861234449Sobrienif test -z "$DUMPBIN"; then 5862234449Sobrien ac_ct_DUMPBIN=$DUMPBIN 5863267897Sdelphij for ac_prog in dumpbin "link -dump" 5864159764Sobriendo 5865159764Sobrien # Extract the first word of "$ac_prog", so it can be a program name with args. 5866159764Sobrienset dummy $ac_prog; ac_word=$2 5867234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5868234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 5869234449Sobrienif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5870234449Sobrien $as_echo_n "(cached) " >&6 5871133359Sobrienelse 5872234449Sobrien if test -n "$ac_ct_DUMPBIN"; then 5873234449Sobrien ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5874159764Sobrienelse 5875159764Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5876159764Sobrienfor as_dir in $PATH 5877159764Sobriendo 5878159764Sobrien IFS=$as_save_IFS 5879159764Sobrien test -z "$as_dir" && as_dir=. 5880234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 5881267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5882234449Sobrien ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5883234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5884159764Sobrien break 2 5885159764Sobrien fi 5886159764Sobriendone 5887234449Sobrien done 5888175296SobrienIFS=$as_save_IFS 5889159764Sobrien 5890159764Sobrienfi 5891159764Sobrienfi 5892234449Sobrienac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5893234449Sobrienif test -n "$ac_ct_DUMPBIN"; then 5894234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5895234449Sobrien$as_echo "$ac_ct_DUMPBIN" >&6; } 5896159764Sobrienelse 5897234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5898234449Sobrien$as_echo "no" >&6; } 5899159764Sobrienfi 5900159764Sobrien 5901175296Sobrien 5902234449Sobrien test -n "$ac_ct_DUMPBIN" && break 5903159764Sobriendone 5904159764Sobrien 5905234449Sobrien if test "x$ac_ct_DUMPBIN" = x; then 5906234449Sobrien DUMPBIN=":" 5907175296Sobrien else 5908175296Sobrien case $cross_compiling:$ac_tool_warned in 5909175296Sobrienyes:) 5910234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5911234449Sobrien$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5912175296Sobrienac_tool_warned=yes ;; 5913175296Sobrienesac 5914234449Sobrien DUMPBIN=$ac_ct_DUMPBIN 5915175296Sobrien fi 5916159764Sobrienfi 5917159764Sobrien 5918267897Sdelphij case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5919267897Sdelphij *COFF*) 5920267897Sdelphij DUMPBIN="$DUMPBIN -symbols" 5921267897Sdelphij ;; 5922267897Sdelphij *) 5923267897Sdelphij DUMPBIN=: 5924267897Sdelphij ;; 5925267897Sdelphij esac 5926267897Sdelphij fi 5927159764Sobrien 5928234449Sobrien if test "$DUMPBIN" != ":"; then 5929234449Sobrien NM="$DUMPBIN" 5930234449Sobrien fi 5931159764Sobrienfi 5932234449Sobrientest -z "$NM" && NM=nm 5933175296Sobrien 5934159764Sobrien 5935159764Sobrien 5936159764Sobrien 5937159764Sobrien 5938175296Sobrien 5939234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5940234449Sobrien$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5941234449Sobrienif ${lt_cv_nm_interface+:} false; then : 5942234449Sobrien $as_echo_n "(cached) " >&6 5943159764Sobrienelse 5944234449Sobrien lt_cv_nm_interface="BSD nm" 5945234449Sobrien echo "int some_variable = 0;" > conftest.$ac_ext 5946267897Sdelphij (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5947234449Sobrien (eval "$ac_compile" 2>conftest.err) 5948234449Sobrien cat conftest.err >&5 5949267897Sdelphij (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5950234449Sobrien (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5951234449Sobrien cat conftest.err >&5 5952267897Sdelphij (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5953234449Sobrien cat conftest.out >&5 5954234449Sobrien if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5955234449Sobrien lt_cv_nm_interface="MS dumpbin" 5956159764Sobrien fi 5957234449Sobrien rm -f conftest* 5958159764Sobrienfi 5959234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5960234449Sobrien$as_echo "$lt_cv_nm_interface" >&6; } 5961159764Sobrien 5962159764Sobrien# find the maximum length of command line arguments 5963234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5964234449Sobrien$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5965234449Sobrienif ${lt_cv_sys_max_cmd_len+:} false; then : 5966234449Sobrien $as_echo_n "(cached) " >&6 5967159764Sobrienelse 5968159764Sobrien i=0 5969159764Sobrien teststring="ABCD" 5970159764Sobrien 5971159764Sobrien case $build_os in 5972159764Sobrien msdosdjgpp*) 5973159764Sobrien # On DJGPP, this test can blow up pretty badly due to problems in libc 5974159764Sobrien # (any single argument exceeding 2000 bytes causes a buffer overrun 5975159764Sobrien # during glob expansion). Even if it were fixed, the result of this 5976159764Sobrien # check would be larger than it should be. 5977159764Sobrien lt_cv_sys_max_cmd_len=12288; # 12K is about right 5978159764Sobrien ;; 5979159764Sobrien 5980159764Sobrien gnu*) 5981159764Sobrien # Under GNU Hurd, this test is not required because there is 5982159764Sobrien # no limit to the length of command line arguments. 5983159764Sobrien # Libtool will interpret -1 as no limit whatsoever 5984159764Sobrien lt_cv_sys_max_cmd_len=-1; 5985159764Sobrien ;; 5986159764Sobrien 5987234449Sobrien cygwin* | mingw* | cegcc*) 5988159764Sobrien # On Win9x/ME, this test blows up -- it succeeds, but takes 5989159764Sobrien # about 5 minutes as the teststring grows exponentially. 5990159764Sobrien # Worse, since 9x/ME are not pre-emptively multitasking, 5991159764Sobrien # you end up with a "frozen" computer, even though with patience 5992159764Sobrien # the test eventually succeeds (with a max line length of 256k). 5993159764Sobrien # Instead, let's just punt: use the minimum linelength reported by 5994159764Sobrien # all of the supported platforms: 8192 (on NT/2K/XP). 5995159764Sobrien lt_cv_sys_max_cmd_len=8192; 5996159764Sobrien ;; 5997159764Sobrien 5998267897Sdelphij mint*) 5999267897Sdelphij # On MiNT this can take a long time and run out of memory. 6000267897Sdelphij lt_cv_sys_max_cmd_len=8192; 6001267897Sdelphij ;; 6002267897Sdelphij 6003159764Sobrien amigaos*) 6004159764Sobrien # On AmigaOS with pdksh, this test takes hours, literally. 6005159764Sobrien # So we just punt and use a minimum line length of 8192. 6006159764Sobrien lt_cv_sys_max_cmd_len=8192; 6007159764Sobrien ;; 6008159764Sobrien 6009159764Sobrien netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6010159764Sobrien # This has been around since 386BSD, at least. Likely further. 6011159764Sobrien if test -x /sbin/sysctl; then 6012159764Sobrien lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6013159764Sobrien elif test -x /usr/sbin/sysctl; then 6014159764Sobrien lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6015159764Sobrien else 6016192350Sdelphij lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6017159764Sobrien fi 6018159764Sobrien # And add a safety zone 6019159764Sobrien lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6020159764Sobrien lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6021159764Sobrien ;; 6022192350Sdelphij 6023192350Sdelphij interix*) 6024192350Sdelphij # We know the value 262144 and hardcode it with a safety zone (like BSD) 6025192350Sdelphij lt_cv_sys_max_cmd_len=196608 6026192350Sdelphij ;; 6027192350Sdelphij 6028267897Sdelphij os2*) 6029267897Sdelphij # The test takes a long time on OS/2. 6030267897Sdelphij lt_cv_sys_max_cmd_len=8192 6031267897Sdelphij ;; 6032267897Sdelphij 6033159764Sobrien osf*) 6034159764Sobrien # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6035159764Sobrien # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6036159764Sobrien # nice to cause kernel panics so lets avoid the loop below. 6037159764Sobrien # First set a reasonable default. 6038159764Sobrien lt_cv_sys_max_cmd_len=16384 6039159764Sobrien # 6040159764Sobrien if test -x /sbin/sysconfig; then 6041159764Sobrien case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6042159764Sobrien *1*) lt_cv_sys_max_cmd_len=-1 ;; 6043159764Sobrien esac 6044159764Sobrien fi 6045159764Sobrien ;; 6046192350Sdelphij sco3.2v5*) 6047192350Sdelphij lt_cv_sys_max_cmd_len=102400 6048192350Sdelphij ;; 6049192350Sdelphij sysv5* | sco5v6* | sysv4.2uw2*) 6050192350Sdelphij kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6051192350Sdelphij if test -n "$kargmax"; then 6052234449Sobrien lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6053192350Sdelphij else 6054192350Sdelphij lt_cv_sys_max_cmd_len=32768 6055192350Sdelphij fi 6056192350Sdelphij ;; 6057159764Sobrien *) 6058192350Sdelphij lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6059192350Sdelphij if test -n "$lt_cv_sys_max_cmd_len"; then 6060192350Sdelphij lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6061192350Sdelphij lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6062192350Sdelphij else 6063234449Sobrien # Make teststring a little bigger before we do anything with it. 6064234449Sobrien # a 1K string should be a reasonable start. 6065234449Sobrien for i in 1 2 3 4 5 6 7 8 ; do 6066234449Sobrien teststring=$teststring$teststring 6067234449Sobrien done 6068192350Sdelphij SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6069234449Sobrien # If test is not a shell built-in, we'll probably end up computing a 6070234449Sobrien # maximum length that is only half of the actual maximum length, but 6071234449Sobrien # we can't tell. 6072267897Sdelphij while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6073267897Sdelphij = "X$teststring$teststring"; } >/dev/null 2>&1 && 6074192350Sdelphij test $i != 17 # 1/2 MB should be enough 6075192350Sdelphij do 6076192350Sdelphij i=`expr $i + 1` 6077192350Sdelphij teststring=$teststring$teststring 6078192350Sdelphij done 6079234449Sobrien # Only check the string length outside the loop. 6080234449Sobrien lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6081192350Sdelphij teststring= 6082234449Sobrien # Add a significant safety factor because C++ compilers can tack on 6083234449Sobrien # massive amounts of additional arguments before passing them to the 6084234449Sobrien # linker. It appears as though 1/2 is a usable value. 6085192350Sdelphij lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6086192350Sdelphij fi 6087159764Sobrien ;; 6088159764Sobrien esac 6089159764Sobrien 6090159764Sobrienfi 6091159764Sobrien 6092159764Sobrienif test -n $lt_cv_sys_max_cmd_len ; then 6093234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6094234449Sobrien$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6095159764Sobrienelse 6096234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6097234449Sobrien$as_echo "none" >&6; } 6098159764Sobrienfi 6099234449Sobrienmax_cmd_len=$lt_cv_sys_max_cmd_len 6100159764Sobrien 6101159764Sobrien 6102159764Sobrien 6103159764Sobrien 6104192350Sdelphij 6105234449Sobrien 6106234449Sobrien: ${CP="cp -f"} 6107234449Sobrien: ${MV="mv -f"} 6108234449Sobrien: ${RM="rm -f"} 6109234449Sobrien 6110234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6111234449Sobrien$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6112234449Sobrien# Try some XSI features 6113234449Sobrienxsi_shell=no 6114234449Sobrien( _lt_dummy="a/b/c" 6115267897Sdelphij test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6116267897Sdelphij = c,a/b,b/c, \ 6117234449Sobrien && eval 'test $(( 1 + 1 )) -eq 2 \ 6118234449Sobrien && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6119234449Sobrien && xsi_shell=yes 6120234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6121234449Sobrien$as_echo "$xsi_shell" >&6; } 6122234449Sobrien 6123234449Sobrien 6124234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6125234449Sobrien$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6126234449Sobrienlt_shell_append=no 6127234449Sobrien( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6128234449Sobrien >/dev/null 2>&1 \ 6129234449Sobrien && lt_shell_append=yes 6130234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6131234449Sobrien$as_echo "$lt_shell_append" >&6; } 6132234449Sobrien 6133234449Sobrien 6134234449Sobrienif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6135234449Sobrien lt_unset=unset 6136159764Sobrienelse 6137234449Sobrien lt_unset=false 6138234449Sobrienfi 6139159764Sobrien 6140159764Sobrien 6141159764Sobrien 6142159764Sobrien 6143159764Sobrien 6144234449Sobrien# test EBCDIC or ASCII 6145234449Sobriencase `echo X|tr X '\101'` in 6146234449Sobrien A) # ASCII based system 6147234449Sobrien # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6148234449Sobrien lt_SP2NL='tr \040 \012' 6149234449Sobrien lt_NL2SP='tr \015\012 \040\040' 6150133359Sobrien ;; 6151234449Sobrien *) # EBCDIC based system 6152234449Sobrien lt_SP2NL='tr \100 \n' 6153234449Sobrien lt_NL2SP='tr \r\n \100\100' 6154133359Sobrien ;; 6155159764Sobrienesac 6156133359Sobrien 6157133359Sobrien 6158159764Sobrien 6159159764Sobrien 6160159764Sobrien 6161159764Sobrien 6162159764Sobrien 6163159764Sobrien 6164159764Sobrien 6165267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6166267897Sdelphij$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6167267897Sdelphijif ${lt_cv_to_host_file_cmd+:} false; then : 6168267897Sdelphij $as_echo_n "(cached) " >&6 6169267897Sdelphijelse 6170267897Sdelphij case $host in 6171267897Sdelphij *-*-mingw* ) 6172267897Sdelphij case $build in 6173267897Sdelphij *-*-mingw* ) # actually msys 6174267897Sdelphij lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6175267897Sdelphij ;; 6176267897Sdelphij *-*-cygwin* ) 6177267897Sdelphij lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6178267897Sdelphij ;; 6179267897Sdelphij * ) # otherwise, assume *nix 6180267897Sdelphij lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6181267897Sdelphij ;; 6182267897Sdelphij esac 6183267897Sdelphij ;; 6184267897Sdelphij *-*-cygwin* ) 6185267897Sdelphij case $build in 6186267897Sdelphij *-*-mingw* ) # actually msys 6187267897Sdelphij lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6188267897Sdelphij ;; 6189267897Sdelphij *-*-cygwin* ) 6190267897Sdelphij lt_cv_to_host_file_cmd=func_convert_file_noop 6191267897Sdelphij ;; 6192267897Sdelphij * ) # otherwise, assume *nix 6193267897Sdelphij lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6194267897Sdelphij ;; 6195267897Sdelphij esac 6196267897Sdelphij ;; 6197267897Sdelphij * ) # unhandled hosts (and "normal" native builds) 6198267897Sdelphij lt_cv_to_host_file_cmd=func_convert_file_noop 6199267897Sdelphij ;; 6200267897Sdelphijesac 6201267897Sdelphij 6202267897Sdelphijfi 6203267897Sdelphij 6204267897Sdelphijto_host_file_cmd=$lt_cv_to_host_file_cmd 6205267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6206267897Sdelphij$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6207267897Sdelphij 6208267897Sdelphij 6209267897Sdelphij 6210267897Sdelphij 6211267897Sdelphij 6212267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6213267897Sdelphij$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6214267897Sdelphijif ${lt_cv_to_tool_file_cmd+:} false; then : 6215267897Sdelphij $as_echo_n "(cached) " >&6 6216267897Sdelphijelse 6217267897Sdelphij #assume ordinary cross tools, or native build. 6218267897Sdelphijlt_cv_to_tool_file_cmd=func_convert_file_noop 6219267897Sdelphijcase $host in 6220267897Sdelphij *-*-mingw* ) 6221267897Sdelphij case $build in 6222267897Sdelphij *-*-mingw* ) # actually msys 6223267897Sdelphij lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6224267897Sdelphij ;; 6225267897Sdelphij esac 6226267897Sdelphij ;; 6227267897Sdelphijesac 6228267897Sdelphij 6229267897Sdelphijfi 6230267897Sdelphij 6231267897Sdelphijto_tool_file_cmd=$lt_cv_to_tool_file_cmd 6232267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6233267897Sdelphij$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6234267897Sdelphij 6235267897Sdelphij 6236267897Sdelphij 6237267897Sdelphij 6238267897Sdelphij 6239234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6240234449Sobrien$as_echo_n "checking for $LD option to reload object files... " >&6; } 6241234449Sobrienif ${lt_cv_ld_reload_flag+:} false; then : 6242234449Sobrien $as_echo_n "(cached) " >&6 6243234449Sobrienelse 6244234449Sobrien lt_cv_ld_reload_flag='-r' 6245234449Sobrienfi 6246234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6247234449Sobrien$as_echo "$lt_cv_ld_reload_flag" >&6; } 6248234449Sobrienreload_flag=$lt_cv_ld_reload_flag 6249234449Sobriencase $reload_flag in 6250234449Sobrien"" | " "*) ;; 6251234449Sobrien*) reload_flag=" $reload_flag" ;; 6252234449Sobrienesac 6253234449Sobrienreload_cmds='$LD$reload_flag -o $output$reload_objs' 6254234449Sobriencase $host_os in 6255267897Sdelphij cygwin* | mingw* | pw32* | cegcc*) 6256267897Sdelphij if test "$GCC" != yes; then 6257267897Sdelphij reload_cmds=false 6258267897Sdelphij fi 6259267897Sdelphij ;; 6260234449Sobrien darwin*) 6261234449Sobrien if test "$GCC" = yes; then 6262234449Sobrien reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6263234449Sobrien else 6264234449Sobrien reload_cmds='$LD$reload_flag -o $output$reload_objs' 6265234449Sobrien fi 6266234449Sobrien ;; 6267234449Sobrienesac 6268159764Sobrien 6269159764Sobrien 6270159764Sobrien 6271159764Sobrien 6272159764Sobrien 6273234449Sobrien 6274234449Sobrien 6275234449Sobrien 6276234449Sobrien 6277234449Sobrienif test -n "$ac_tool_prefix"; then 6278234449Sobrien # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6279234449Sobrienset dummy ${ac_tool_prefix}objdump; ac_word=$2 6280234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6281234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 6282234449Sobrienif ${ac_cv_prog_OBJDUMP+:} false; then : 6283234449Sobrien $as_echo_n "(cached) " >&6 6284234449Sobrienelse 6285234449Sobrien if test -n "$OBJDUMP"; then 6286234449Sobrien ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6287234449Sobrienelse 6288234449Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6289234449Sobrienfor as_dir in $PATH 6290234449Sobriendo 6291234449Sobrien IFS=$as_save_IFS 6292234449Sobrien test -z "$as_dir" && as_dir=. 6293234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 6294267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6295234449Sobrien ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6296234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6297234449Sobrien break 2 6298159764Sobrien fi 6299159764Sobriendone 6300234449Sobrien done 6301234449SobrienIFS=$as_save_IFS 6302159764Sobrien 6303159764Sobrienfi 6304159764Sobrienfi 6305234449SobrienOBJDUMP=$ac_cv_prog_OBJDUMP 6306234449Sobrienif test -n "$OBJDUMP"; then 6307234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6308234449Sobrien$as_echo "$OBJDUMP" >&6; } 6309159764Sobrienelse 6310234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6311234449Sobrien$as_echo "no" >&6; } 6312159764Sobrienfi 6313159764Sobrien 6314234449Sobrien 6315234449Sobrienfi 6316234449Sobrienif test -z "$ac_cv_prog_OBJDUMP"; then 6317234449Sobrien ac_ct_OBJDUMP=$OBJDUMP 6318234449Sobrien # Extract the first word of "objdump", so it can be a program name with args. 6319234449Sobrienset dummy objdump; ac_word=$2 6320234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6321234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 6322234449Sobrienif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6323234449Sobrien $as_echo_n "(cached) " >&6 6324159764Sobrienelse 6325234449Sobrien if test -n "$ac_ct_OBJDUMP"; then 6326234449Sobrien ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6327159764Sobrienelse 6328234449Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6329234449Sobrienfor as_dir in $PATH 6330234449Sobriendo 6331234449Sobrien IFS=$as_save_IFS 6332234449Sobrien test -z "$as_dir" && as_dir=. 6333234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 6334267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6335234449Sobrien ac_cv_prog_ac_ct_OBJDUMP="objdump" 6336234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6337234449Sobrien break 2 6338234449Sobrien fi 6339234449Sobriendone 6340234449Sobrien done 6341234449SobrienIFS=$as_save_IFS 6342234449Sobrien 6343159764Sobrienfi 6344159764Sobrienfi 6345234449Sobrienac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6346234449Sobrienif test -n "$ac_ct_OBJDUMP"; then 6347234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6348234449Sobrien$as_echo "$ac_ct_OBJDUMP" >&6; } 6349234449Sobrienelse 6350234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6351234449Sobrien$as_echo "no" >&6; } 6352234449Sobrienfi 6353159764Sobrien 6354234449Sobrien if test "x$ac_ct_OBJDUMP" = x; then 6355234449Sobrien OBJDUMP="false" 6356234449Sobrien else 6357234449Sobrien case $cross_compiling:$ac_tool_warned in 6358234449Sobrienyes:) 6359234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6360234449Sobrien$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6361234449Sobrienac_tool_warned=yes ;; 6362234449Sobrienesac 6363234449Sobrien OBJDUMP=$ac_ct_OBJDUMP 6364234449Sobrien fi 6365234449Sobrienelse 6366234449Sobrien OBJDUMP="$ac_cv_prog_OBJDUMP" 6367234449Sobrienfi 6368159764Sobrien 6369234449Sobrientest -z "$OBJDUMP" && OBJDUMP=objdump 6370159764Sobrien 6371159764Sobrien 6372159764Sobrien 6373234449Sobrien 6374234449Sobrien 6375234449Sobrien 6376234449Sobrien 6377234449Sobrien 6378234449Sobrien 6379234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6380234449Sobrien$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6381234449Sobrienif ${lt_cv_deplibs_check_method+:} false; then : 6382234449Sobrien $as_echo_n "(cached) " >&6 6383234449Sobrienelse 6384234449Sobrien lt_cv_file_magic_cmd='$MAGIC_CMD' 6385234449Sobrienlt_cv_file_magic_test_file= 6386234449Sobrienlt_cv_deplibs_check_method='unknown' 6387234449Sobrien# Need to set the preceding variable on all platforms that support 6388234449Sobrien# interlibrary dependencies. 6389234449Sobrien# 'none' -- dependencies not supported. 6390234449Sobrien# `unknown' -- same as none, but documents that we really don't know. 6391234449Sobrien# 'pass_all' -- all dependencies passed with no checks. 6392234449Sobrien# 'test_compile' -- check by making test program. 6393234449Sobrien# 'file_magic [[regex]]' -- check by looking for files in library path 6394234449Sobrien# which responds to the $file_magic_cmd with a given extended regex. 6395234449Sobrien# If you have `file' or equivalent on your system and you're not sure 6396234449Sobrien# whether `pass_all' will *always* work, you probably want this one. 6397234449Sobrien 6398159764Sobriencase $host_os in 6399234449Sobrienaix[4-9]*) 6400234449Sobrien lt_cv_deplibs_check_method=pass_all 6401234449Sobrien ;; 6402234449Sobrien 6403234449Sobrienbeos*) 6404234449Sobrien lt_cv_deplibs_check_method=pass_all 6405234449Sobrien ;; 6406234449Sobrien 6407234449Sobrienbsdi[45]*) 6408234449Sobrien lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6409234449Sobrien lt_cv_file_magic_cmd='/usr/bin/file -L' 6410234449Sobrien lt_cv_file_magic_test_file=/shlib/libc.so 6411234449Sobrien ;; 6412234449Sobrien 6413234449Sobriencygwin*) 6414234449Sobrien # func_win32_libid is a shell function defined in ltmain.sh 6415234449Sobrien lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6416234449Sobrien lt_cv_file_magic_cmd='func_win32_libid' 6417234449Sobrien ;; 6418234449Sobrien 6419234449Sobrienmingw* | pw32*) 6420234449Sobrien # Base MSYS/MinGW do not provide the 'file' command needed by 6421234449Sobrien # func_win32_libid shell function, so use a weaker test based on 'objdump', 6422234449Sobrien # unless we find 'file', for example because we are cross-compiling. 6423267897Sdelphij # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6424267897Sdelphij if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6425234449Sobrien lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6426234449Sobrien lt_cv_file_magic_cmd='func_win32_libid' 6427234449Sobrien else 6428267897Sdelphij # Keep this pattern in sync with the one in func_win32_libid. 6429267897Sdelphij lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6430234449Sobrien lt_cv_file_magic_cmd='$OBJDUMP -f' 6431159764Sobrien fi 6432133359Sobrien ;; 6433234449Sobrien 6434267897Sdelphijcegcc*) 6435234449Sobrien # use the weaker test based on 'objdump'. See mingw*. 6436234449Sobrien lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6437234449Sobrien lt_cv_file_magic_cmd='$OBJDUMP -f' 6438234449Sobrien ;; 6439234449Sobrien 6440234449Sobriendarwin* | rhapsody*) 6441234449Sobrien lt_cv_deplibs_check_method=pass_all 6442234449Sobrien ;; 6443234449Sobrien 6444234449Sobrienfreebsd* | dragonfly*) 6445234449Sobrien if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6446234449Sobrien case $host_cpu in 6447234449Sobrien i*86 ) 6448234449Sobrien # Not sure whether the presence of OpenBSD here was a mistake. 6449234449Sobrien # Let's accept both of them until this is cleared up. 6450234449Sobrien lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6451234449Sobrien lt_cv_file_magic_cmd=/usr/bin/file 6452234449Sobrien lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6453234449Sobrien ;; 6454234449Sobrien esac 6455234449Sobrien else 6456234449Sobrien lt_cv_deplibs_check_method=pass_all 6457234449Sobrien fi 6458234449Sobrien ;; 6459234449Sobrien 6460234449Sobriengnu*) 6461234449Sobrien lt_cv_deplibs_check_method=pass_all 6462234449Sobrien ;; 6463234449Sobrien 6464267897Sdelphijhaiku*) 6465267897Sdelphij lt_cv_deplibs_check_method=pass_all 6466267897Sdelphij ;; 6467267897Sdelphij 6468234449Sobrienhpux10.20* | hpux11*) 6469234449Sobrien lt_cv_file_magic_cmd=/usr/bin/file 6470234449Sobrien case $host_cpu in 6471234449Sobrien ia64*) 6472234449Sobrien lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6473234449Sobrien lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6474234449Sobrien ;; 6475234449Sobrien hppa*64*) 6476267897Sdelphij 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]' 6477234449Sobrien lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6478234449Sobrien ;; 6479234449Sobrien *) 6480267897Sdelphij lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6481234449Sobrien lt_cv_file_magic_test_file=/usr/lib/libc.sl 6482234449Sobrien ;; 6483234449Sobrien esac 6484234449Sobrien ;; 6485234449Sobrien 6486234449Sobrieninterix[3-9]*) 6487234449Sobrien # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6488234449Sobrien lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6489234449Sobrien ;; 6490234449Sobrien 6491234449Sobrienirix5* | irix6* | nonstopux*) 6492234449Sobrien case $LD in 6493234449Sobrien *-32|*"-32 ") libmagic=32-bit;; 6494234449Sobrien *-n32|*"-n32 ") libmagic=N32;; 6495234449Sobrien *-64|*"-64 ") libmagic=64-bit;; 6496234449Sobrien *) libmagic=never-match;; 6497234449Sobrien esac 6498234449Sobrien lt_cv_deplibs_check_method=pass_all 6499234449Sobrien ;; 6500234449Sobrien 6501267897Sdelphij# This must be glibc/ELF. 6502267897Sdelphijlinux* | k*bsd*-gnu | kopensolaris*-gnu) 6503234449Sobrien lt_cv_deplibs_check_method=pass_all 6504234449Sobrien ;; 6505234449Sobrien 6506234449Sobriennetbsd*) 6507234449Sobrien if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6508234449Sobrien lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6509234449Sobrien else 6510234449Sobrien lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6511234449Sobrien fi 6512234449Sobrien ;; 6513234449Sobrien 6514234449Sobriennewos6*) 6515234449Sobrien lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6516234449Sobrien lt_cv_file_magic_cmd=/usr/bin/file 6517234449Sobrien lt_cv_file_magic_test_file=/usr/lib/libnls.so 6518234449Sobrien ;; 6519234449Sobrien 6520234449Sobrien*nto* | *qnx*) 6521234449Sobrien lt_cv_deplibs_check_method=pass_all 6522234449Sobrien ;; 6523234449Sobrien 6524234449Sobrienopenbsd*) 6525234449Sobrien if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6526234449Sobrien lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6527234449Sobrien else 6528234449Sobrien lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6529234449Sobrien fi 6530234449Sobrien ;; 6531234449Sobrien 6532234449Sobrienosf3* | osf4* | osf5*) 6533234449Sobrien lt_cv_deplibs_check_method=pass_all 6534234449Sobrien ;; 6535234449Sobrien 6536234449Sobrienrdos*) 6537234449Sobrien lt_cv_deplibs_check_method=pass_all 6538234449Sobrien ;; 6539234449Sobrien 6540234449Sobriensolaris*) 6541234449Sobrien lt_cv_deplibs_check_method=pass_all 6542234449Sobrien ;; 6543234449Sobrien 6544234449Sobriensysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6545234449Sobrien lt_cv_deplibs_check_method=pass_all 6546234449Sobrien ;; 6547234449Sobrien 6548234449Sobriensysv4 | sysv4.3*) 6549234449Sobrien case $host_vendor in 6550234449Sobrien motorola) 6551234449Sobrien 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]' 6552234449Sobrien lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6553234449Sobrien ;; 6554234449Sobrien ncr) 6555234449Sobrien lt_cv_deplibs_check_method=pass_all 6556234449Sobrien ;; 6557234449Sobrien sequent) 6558234449Sobrien lt_cv_file_magic_cmd='/bin/file' 6559234449Sobrien lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6560234449Sobrien ;; 6561234449Sobrien sni) 6562234449Sobrien lt_cv_file_magic_cmd='/bin/file' 6563234449Sobrien lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6564234449Sobrien lt_cv_file_magic_test_file=/lib/libc.so 6565234449Sobrien ;; 6566234449Sobrien siemens) 6567234449Sobrien lt_cv_deplibs_check_method=pass_all 6568234449Sobrien ;; 6569234449Sobrien pc) 6570234449Sobrien lt_cv_deplibs_check_method=pass_all 6571234449Sobrien ;; 6572234449Sobrien esac 6573234449Sobrien ;; 6574234449Sobrien 6575234449Sobrientpf*) 6576234449Sobrien lt_cv_deplibs_check_method=pass_all 6577234449Sobrien ;; 6578133359Sobrienesac 6579133359Sobrien 6580234449Sobrienfi 6581234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6582234449Sobrien$as_echo "$lt_cv_deplibs_check_method" >&6; } 6583267897Sdelphij 6584267897Sdelphijfile_magic_glob= 6585267897Sdelphijwant_nocaseglob=no 6586267897Sdelphijif test "$build" = "$host"; then 6587267897Sdelphij case $host_os in 6588267897Sdelphij mingw* | pw32*) 6589267897Sdelphij if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6590267897Sdelphij want_nocaseglob=yes 6591267897Sdelphij else 6592267897Sdelphij file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6593267897Sdelphij fi 6594267897Sdelphij ;; 6595267897Sdelphij esac 6596267897Sdelphijfi 6597267897Sdelphij 6598234449Sobrienfile_magic_cmd=$lt_cv_file_magic_cmd 6599234449Sobriendeplibs_check_method=$lt_cv_deplibs_check_method 6600234449Sobrientest -z "$deplibs_check_method" && deplibs_check_method=unknown 6601159764Sobrien 6602159764Sobrien 6603159764Sobrien 6604159764Sobrien 6605159764Sobrien 6606159764Sobrien 6607159764Sobrien 6608234449Sobrien 6609234449Sobrien 6610234449Sobrien 6611234449Sobrien 6612234449Sobrien 6613267897Sdelphij 6614267897Sdelphij 6615267897Sdelphij 6616267897Sdelphij 6617267897Sdelphij 6618267897Sdelphij 6619267897Sdelphij 6620267897Sdelphij 6621267897Sdelphij 6622267897Sdelphij 6623159764Sobrienif test -n "$ac_tool_prefix"; then 6624267897Sdelphij # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6625267897Sdelphijset dummy ${ac_tool_prefix}dlltool; ac_word=$2 6626234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6627234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 6628267897Sdelphijif ${ac_cv_prog_DLLTOOL+:} false; then : 6629267897Sdelphij $as_echo_n "(cached) " >&6 6630267897Sdelphijelse 6631267897Sdelphij if test -n "$DLLTOOL"; then 6632267897Sdelphij ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6633267897Sdelphijelse 6634267897Sdelphijas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6635267897Sdelphijfor as_dir in $PATH 6636267897Sdelphijdo 6637267897Sdelphij IFS=$as_save_IFS 6638267897Sdelphij test -z "$as_dir" && as_dir=. 6639267897Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 6640267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6641267897Sdelphij ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6642267897Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6643267897Sdelphij break 2 6644267897Sdelphij fi 6645267897Sdelphijdone 6646267897Sdelphij done 6647267897SdelphijIFS=$as_save_IFS 6648267897Sdelphij 6649267897Sdelphijfi 6650267897Sdelphijfi 6651267897SdelphijDLLTOOL=$ac_cv_prog_DLLTOOL 6652267897Sdelphijif test -n "$DLLTOOL"; then 6653267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6654267897Sdelphij$as_echo "$DLLTOOL" >&6; } 6655267897Sdelphijelse 6656267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6657267897Sdelphij$as_echo "no" >&6; } 6658267897Sdelphijfi 6659267897Sdelphij 6660267897Sdelphij 6661267897Sdelphijfi 6662267897Sdelphijif test -z "$ac_cv_prog_DLLTOOL"; then 6663267897Sdelphij ac_ct_DLLTOOL=$DLLTOOL 6664267897Sdelphij # Extract the first word of "dlltool", so it can be a program name with args. 6665267897Sdelphijset dummy dlltool; ac_word=$2 6666267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6667267897Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 6668267897Sdelphijif ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6669267897Sdelphij $as_echo_n "(cached) " >&6 6670267897Sdelphijelse 6671267897Sdelphij if test -n "$ac_ct_DLLTOOL"; then 6672267897Sdelphij ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6673267897Sdelphijelse 6674267897Sdelphijas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6675267897Sdelphijfor as_dir in $PATH 6676267897Sdelphijdo 6677267897Sdelphij IFS=$as_save_IFS 6678267897Sdelphij test -z "$as_dir" && as_dir=. 6679267897Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 6680267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6681267897Sdelphij ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6682267897Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6683267897Sdelphij break 2 6684267897Sdelphij fi 6685267897Sdelphijdone 6686267897Sdelphij done 6687267897SdelphijIFS=$as_save_IFS 6688267897Sdelphij 6689267897Sdelphijfi 6690267897Sdelphijfi 6691267897Sdelphijac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6692267897Sdelphijif test -n "$ac_ct_DLLTOOL"; then 6693267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6694267897Sdelphij$as_echo "$ac_ct_DLLTOOL" >&6; } 6695267897Sdelphijelse 6696267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6697267897Sdelphij$as_echo "no" >&6; } 6698267897Sdelphijfi 6699267897Sdelphij 6700267897Sdelphij if test "x$ac_ct_DLLTOOL" = x; then 6701267897Sdelphij DLLTOOL="false" 6702267897Sdelphij else 6703267897Sdelphij case $cross_compiling:$ac_tool_warned in 6704267897Sdelphijyes:) 6705267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6706267897Sdelphij$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6707267897Sdelphijac_tool_warned=yes ;; 6708267897Sdelphijesac 6709267897Sdelphij DLLTOOL=$ac_ct_DLLTOOL 6710267897Sdelphij fi 6711267897Sdelphijelse 6712267897Sdelphij DLLTOOL="$ac_cv_prog_DLLTOOL" 6713267897Sdelphijfi 6714267897Sdelphij 6715267897Sdelphijtest -z "$DLLTOOL" && DLLTOOL=dlltool 6716267897Sdelphij 6717267897Sdelphij 6718267897Sdelphij 6719267897Sdelphij 6720267897Sdelphij 6721267897Sdelphij 6722267897Sdelphij 6723267897Sdelphij 6724267897Sdelphij 6725267897Sdelphij 6726267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6727267897Sdelphij$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6728267897Sdelphijif ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6729267897Sdelphij $as_echo_n "(cached) " >&6 6730267897Sdelphijelse 6731267897Sdelphij lt_cv_sharedlib_from_linklib_cmd='unknown' 6732267897Sdelphij 6733267897Sdelphijcase $host_os in 6734267897Sdelphijcygwin* | mingw* | pw32* | cegcc*) 6735267897Sdelphij # two different shell functions defined in ltmain.sh 6736267897Sdelphij # decide which to use based on capabilities of $DLLTOOL 6737267897Sdelphij case `$DLLTOOL --help 2>&1` in 6738267897Sdelphij *--identify-strict*) 6739267897Sdelphij lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6740267897Sdelphij ;; 6741267897Sdelphij *) 6742267897Sdelphij lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6743267897Sdelphij ;; 6744267897Sdelphij esac 6745267897Sdelphij ;; 6746267897Sdelphij*) 6747267897Sdelphij # fallback: assume linklib IS sharedlib 6748267897Sdelphij lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6749267897Sdelphij ;; 6750267897Sdelphijesac 6751267897Sdelphij 6752267897Sdelphijfi 6753267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6754267897Sdelphij$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6755267897Sdelphijsharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6756267897Sdelphijtest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6757267897Sdelphij 6758267897Sdelphij 6759267897Sdelphij 6760267897Sdelphij 6761267897Sdelphij 6762267897Sdelphij 6763267897Sdelphij 6764267897Sdelphijif test -n "$ac_tool_prefix"; then 6765267897Sdelphij for ac_prog in ar 6766267897Sdelphij do 6767267897Sdelphij # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6768267897Sdelphijset dummy $ac_tool_prefix$ac_prog; ac_word=$2 6769267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6770267897Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 6771234449Sobrienif ${ac_cv_prog_AR+:} false; then : 6772234449Sobrien $as_echo_n "(cached) " >&6 6773133359Sobrienelse 6774159764Sobrien if test -n "$AR"; then 6775159764Sobrien ac_cv_prog_AR="$AR" # Let the user override the test. 6776159764Sobrienelse 6777159764Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6778159764Sobrienfor as_dir in $PATH 6779159764Sobriendo 6780159764Sobrien IFS=$as_save_IFS 6781159764Sobrien test -z "$as_dir" && as_dir=. 6782234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 6783267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6784267897Sdelphij ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6785234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6786159764Sobrien break 2 6787159764Sobrien fi 6788159764Sobriendone 6789234449Sobrien done 6790175296SobrienIFS=$as_save_IFS 6791159764Sobrien 6792159764Sobrienfi 6793159764Sobrienfi 6794159764SobrienAR=$ac_cv_prog_AR 6795159764Sobrienif test -n "$AR"; then 6796234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6797234449Sobrien$as_echo "$AR" >&6; } 6798159764Sobrienelse 6799234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6800234449Sobrien$as_echo "no" >&6; } 6801133359Sobrienfi 6802133359Sobrien 6803175296Sobrien 6804267897Sdelphij test -n "$AR" && break 6805267897Sdelphij done 6806159764Sobrienfi 6807267897Sdelphijif test -z "$AR"; then 6808159764Sobrien ac_ct_AR=$AR 6809267897Sdelphij for ac_prog in ar 6810267897Sdelphijdo 6811267897Sdelphij # Extract the first word of "$ac_prog", so it can be a program name with args. 6812267897Sdelphijset dummy $ac_prog; ac_word=$2 6813234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6814234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 6815234449Sobrienif ${ac_cv_prog_ac_ct_AR+:} false; then : 6816234449Sobrien $as_echo_n "(cached) " >&6 6817159764Sobrienelse 6818159764Sobrien if test -n "$ac_ct_AR"; then 6819159764Sobrien ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6820159764Sobrienelse 6821159764Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6822159764Sobrienfor as_dir in $PATH 6823159764Sobriendo 6824159764Sobrien IFS=$as_save_IFS 6825159764Sobrien test -z "$as_dir" && as_dir=. 6826234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 6827267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6828267897Sdelphij ac_cv_prog_ac_ct_AR="$ac_prog" 6829234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6830159764Sobrien break 2 6831133359Sobrien fi 6832159764Sobriendone 6833234449Sobrien done 6834175296SobrienIFS=$as_save_IFS 6835159764Sobrien 6836133359Sobrienfi 6837159764Sobrienfi 6838159764Sobrienac_ct_AR=$ac_cv_prog_ac_ct_AR 6839159764Sobrienif test -n "$ac_ct_AR"; then 6840234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6841234449Sobrien$as_echo "$ac_ct_AR" >&6; } 6842159764Sobrienelse 6843234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6844234449Sobrien$as_echo "no" >&6; } 6845159764Sobrienfi 6846133359Sobrien 6847267897Sdelphij 6848267897Sdelphij test -n "$ac_ct_AR" && break 6849267897Sdelphijdone 6850267897Sdelphij 6851175296Sobrien if test "x$ac_ct_AR" = x; then 6852175296Sobrien AR="false" 6853175296Sobrien else 6854175296Sobrien case $cross_compiling:$ac_tool_warned in 6855175296Sobrienyes:) 6856234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6857234449Sobrien$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6858175296Sobrienac_tool_warned=yes ;; 6859175296Sobrienesac 6860175296Sobrien AR=$ac_ct_AR 6861175296Sobrien fi 6862159764Sobrienfi 6863133359Sobrien 6864267897Sdelphij: ${AR=ar} 6865267897Sdelphij: ${AR_FLAGS=cru} 6866234449Sobrien 6867234449Sobrien 6868234449Sobrien 6869234449Sobrien 6870234449Sobrien 6871234449Sobrien 6872234449Sobrien 6873234449Sobrien 6874234449Sobrien 6875234449Sobrien 6876234449Sobrien 6877267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6878267897Sdelphij$as_echo_n "checking for archiver @FILE support... " >&6; } 6879267897Sdelphijif ${lt_cv_ar_at_file+:} false; then : 6880267897Sdelphij $as_echo_n "(cached) " >&6 6881267897Sdelphijelse 6882267897Sdelphij lt_cv_ar_at_file=no 6883267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6884267897Sdelphij/* end confdefs.h. */ 6885267897Sdelphij 6886267897Sdelphijint 6887267897Sdelphijmain () 6888267897Sdelphij{ 6889267897Sdelphij 6890267897Sdelphij ; 6891267897Sdelphij return 0; 6892267897Sdelphij} 6893267897Sdelphij_ACEOF 6894267897Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 6895267897Sdelphij echo conftest.$ac_objext > conftest.lst 6896267897Sdelphij lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6897267897Sdelphij { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6898267897Sdelphij (eval $lt_ar_try) 2>&5 6899267897Sdelphij ac_status=$? 6900267897Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6901267897Sdelphij test $ac_status = 0; } 6902267897Sdelphij if test "$ac_status" -eq 0; then 6903267897Sdelphij # Ensure the archiver fails upon bogus file names. 6904267897Sdelphij rm -f conftest.$ac_objext libconftest.a 6905267897Sdelphij { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6906267897Sdelphij (eval $lt_ar_try) 2>&5 6907267897Sdelphij ac_status=$? 6908267897Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6909267897Sdelphij test $ac_status = 0; } 6910267897Sdelphij if test "$ac_status" -ne 0; then 6911267897Sdelphij lt_cv_ar_at_file=@ 6912267897Sdelphij fi 6913267897Sdelphij fi 6914267897Sdelphij rm -f conftest.* libconftest.a 6915267897Sdelphij 6916267897Sdelphijfi 6917267897Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6918267897Sdelphij 6919267897Sdelphijfi 6920267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6921267897Sdelphij$as_echo "$lt_cv_ar_at_file" >&6; } 6922267897Sdelphij 6923267897Sdelphijif test "x$lt_cv_ar_at_file" = xno; then 6924267897Sdelphij archiver_list_spec= 6925267897Sdelphijelse 6926267897Sdelphij archiver_list_spec=$lt_cv_ar_at_file 6927267897Sdelphijfi 6928267897Sdelphij 6929267897Sdelphij 6930267897Sdelphij 6931267897Sdelphij 6932267897Sdelphij 6933267897Sdelphij 6934267897Sdelphij 6935133359Sobrienif test -n "$ac_tool_prefix"; then 6936234449Sobrien # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6937234449Sobrienset dummy ${ac_tool_prefix}strip; ac_word=$2 6938234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6939234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 6940234449Sobrienif ${ac_cv_prog_STRIP+:} false; then : 6941234449Sobrien $as_echo_n "(cached) " >&6 6942133359Sobrienelse 6943234449Sobrien if test -n "$STRIP"; then 6944234449Sobrien ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6945133359Sobrienelse 6946133359Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6947133359Sobrienfor as_dir in $PATH 6948133359Sobriendo 6949133359Sobrien IFS=$as_save_IFS 6950133359Sobrien test -z "$as_dir" && as_dir=. 6951234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 6952267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6953234449Sobrien ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6954234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6955133359Sobrien break 2 6956133359Sobrien fi 6957133359Sobriendone 6958234449Sobrien done 6959175296SobrienIFS=$as_save_IFS 6960133359Sobrien 6961133359Sobrienfi 6962133359Sobrienfi 6963234449SobrienSTRIP=$ac_cv_prog_STRIP 6964234449Sobrienif test -n "$STRIP"; then 6965234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6966234449Sobrien$as_echo "$STRIP" >&6; } 6967133359Sobrienelse 6968234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6969234449Sobrien$as_echo "no" >&6; } 6970133359Sobrienfi 6971133359Sobrien 6972175296Sobrien 6973133359Sobrienfi 6974234449Sobrienif test -z "$ac_cv_prog_STRIP"; then 6975234449Sobrien ac_ct_STRIP=$STRIP 6976234449Sobrien # Extract the first word of "strip", so it can be a program name with args. 6977234449Sobrienset dummy strip; ac_word=$2 6978234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6979234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 6980234449Sobrienif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6981234449Sobrien $as_echo_n "(cached) " >&6 6982133359Sobrienelse 6983234449Sobrien if test -n "$ac_ct_STRIP"; then 6984234449Sobrien ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6985133359Sobrienelse 6986133359Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6987133359Sobrienfor as_dir in $PATH 6988133359Sobriendo 6989133359Sobrien IFS=$as_save_IFS 6990133359Sobrien test -z "$as_dir" && as_dir=. 6991234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 6992267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6993234449Sobrien ac_cv_prog_ac_ct_STRIP="strip" 6994234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6995133359Sobrien break 2 6996133359Sobrien fi 6997133359Sobriendone 6998234449Sobrien done 6999175296SobrienIFS=$as_save_IFS 7000133359Sobrien 7001133359Sobrienfi 7002133359Sobrienfi 7003234449Sobrienac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7004234449Sobrienif test -n "$ac_ct_STRIP"; then 7005234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7006234449Sobrien$as_echo "$ac_ct_STRIP" >&6; } 7007133359Sobrienelse 7008234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7009234449Sobrien$as_echo "no" >&6; } 7010133359Sobrienfi 7011133359Sobrien 7012234449Sobrien if test "x$ac_ct_STRIP" = x; then 7013234449Sobrien STRIP=":" 7014175296Sobrien else 7015175296Sobrien case $cross_compiling:$ac_tool_warned in 7016175296Sobrienyes:) 7017234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7018234449Sobrien$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7019175296Sobrienac_tool_warned=yes ;; 7020175296Sobrienesac 7021234449Sobrien STRIP=$ac_ct_STRIP 7022175296Sobrien fi 7023133359Sobrienelse 7024234449Sobrien STRIP="$ac_cv_prog_STRIP" 7025133359Sobrienfi 7026133359Sobrien 7027234449Sobrientest -z "$STRIP" && STRIP=: 7028234449Sobrien 7029234449Sobrien 7030234449Sobrien 7031234449Sobrien 7032234449Sobrien 7033234449Sobrien 7034133359Sobrienif test -n "$ac_tool_prefix"; then 7035234449Sobrien # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7036234449Sobrienset dummy ${ac_tool_prefix}ranlib; ac_word=$2 7037234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7038234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 7039234449Sobrienif ${ac_cv_prog_RANLIB+:} false; then : 7040234449Sobrien $as_echo_n "(cached) " >&6 7041133359Sobrienelse 7042234449Sobrien if test -n "$RANLIB"; then 7043234449Sobrien ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7044133359Sobrienelse 7045133359Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7046133359Sobrienfor as_dir in $PATH 7047133359Sobriendo 7048133359Sobrien IFS=$as_save_IFS 7049133359Sobrien test -z "$as_dir" && as_dir=. 7050234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 7051267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7052234449Sobrien ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7053234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7054133359Sobrien break 2 7055133359Sobrien fi 7056133359Sobriendone 7057234449Sobrien done 7058175296SobrienIFS=$as_save_IFS 7059133359Sobrien 7060133359Sobrienfi 7061133359Sobrienfi 7062234449SobrienRANLIB=$ac_cv_prog_RANLIB 7063234449Sobrienif test -n "$RANLIB"; then 7064234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7065234449Sobrien$as_echo "$RANLIB" >&6; } 7066133359Sobrienelse 7067234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7068234449Sobrien$as_echo "no" >&6; } 7069133359Sobrienfi 7070133359Sobrien 7071175296Sobrien 7072133359Sobrienfi 7073234449Sobrienif test -z "$ac_cv_prog_RANLIB"; then 7074234449Sobrien ac_ct_RANLIB=$RANLIB 7075234449Sobrien # Extract the first word of "ranlib", so it can be a program name with args. 7076234449Sobrienset dummy ranlib; ac_word=$2 7077234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7078234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 7079234449Sobrienif ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7080234449Sobrien $as_echo_n "(cached) " >&6 7081133359Sobrienelse 7082234449Sobrien if test -n "$ac_ct_RANLIB"; then 7083234449Sobrien ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7084133359Sobrienelse 7085133359Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7086133359Sobrienfor as_dir in $PATH 7087133359Sobriendo 7088133359Sobrien IFS=$as_save_IFS 7089133359Sobrien test -z "$as_dir" && as_dir=. 7090234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 7091267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7092234449Sobrien ac_cv_prog_ac_ct_RANLIB="ranlib" 7093234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7094133359Sobrien break 2 7095133359Sobrien fi 7096133359Sobriendone 7097234449Sobrien done 7098175296SobrienIFS=$as_save_IFS 7099133359Sobrien 7100133359Sobrienfi 7101133359Sobrienfi 7102234449Sobrienac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7103234449Sobrienif test -n "$ac_ct_RANLIB"; then 7104234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7105234449Sobrien$as_echo "$ac_ct_RANLIB" >&6; } 7106133359Sobrienelse 7107234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7108234449Sobrien$as_echo "no" >&6; } 7109133359Sobrienfi 7110133359Sobrien 7111234449Sobrien if test "x$ac_ct_RANLIB" = x; then 7112234449Sobrien RANLIB=":" 7113175296Sobrien else 7114175296Sobrien case $cross_compiling:$ac_tool_warned in 7115175296Sobrienyes:) 7116234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7117234449Sobrien$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7118175296Sobrienac_tool_warned=yes ;; 7119175296Sobrienesac 7120234449Sobrien RANLIB=$ac_ct_RANLIB 7121175296Sobrien fi 7122133359Sobrienelse 7123234449Sobrien RANLIB="$ac_cv_prog_RANLIB" 7124133359Sobrienfi 7125133359Sobrien 7126234449Sobrientest -z "$RANLIB" && RANLIB=: 7127133359Sobrien 7128139368Sobrien 7129139368Sobrien 7130234449Sobrien 7131234449Sobrien 7132234449Sobrien 7133139368Sobrien# Determine commands to create old-style static archives. 7134192350Sdelphijold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7135139368Sobrienold_postinstall_cmds='chmod 644 $oldlib' 7136139368Sobrienold_postuninstall_cmds= 7137139368Sobrien 7138139368Sobrienif test -n "$RANLIB"; then 7139139368Sobrien case $host_os in 7140139368Sobrien openbsd*) 7141267897Sdelphij old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7142139368Sobrien ;; 7143139368Sobrien *) 7144267897Sdelphij old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7145139368Sobrien ;; 7146139368Sobrien esac 7147267897Sdelphij old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7148139368Sobrienfi 7149139368Sobrien 7150267897Sdelphijcase $host_os in 7151267897Sdelphij darwin*) 7152267897Sdelphij lock_old_archive_extraction=yes ;; 7153267897Sdelphij *) 7154267897Sdelphij lock_old_archive_extraction=no ;; 7155267897Sdelphijesac 7156139368Sobrien 7157159764Sobrien 7158234449Sobrien 7159234449Sobrien 7160234449Sobrien 7161234449Sobrien 7162234449Sobrien 7163234449Sobrien 7164234449Sobrien 7165234449Sobrien 7166234449Sobrien 7167234449Sobrien 7168234449Sobrien 7169234449Sobrien 7170234449Sobrien 7171234449Sobrien 7172234449Sobrien 7173234449Sobrien 7174234449Sobrien 7175234449Sobrien 7176234449Sobrien 7177234449Sobrien 7178234449Sobrien 7179234449Sobrien 7180234449Sobrien 7181234449Sobrien 7182234449Sobrien 7183234449Sobrien 7184234449Sobrien 7185234449Sobrien 7186234449Sobrien 7187234449Sobrien 7188234449Sobrien 7189267897Sdelphij 7190267897Sdelphij 7191267897Sdelphij 7192267897Sdelphij 7193267897Sdelphij 7194267897Sdelphij 7195234449Sobrien# If no C compiler was specified, use CC. 7196234449SobrienLTCC=${LTCC-"$CC"} 7197234449Sobrien 7198234449Sobrien# If no C compiler flags were specified, use CFLAGS. 7199234449SobrienLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7200234449Sobrien 7201234449Sobrien# Allow CC to be a program name with arguments. 7202234449Sobriencompiler=$CC 7203234449Sobrien 7204234449Sobrien 7205234449Sobrien# Check for command to grab the raw symbol name followed by C symbol from nm. 7206234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7207234449Sobrien$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7208234449Sobrienif ${lt_cv_sys_global_symbol_pipe+:} false; then : 7209234449Sobrien $as_echo_n "(cached) " >&6 7210139368Sobrienelse 7211234449Sobrien 7212234449Sobrien# These are sane defaults that work on at least a few old systems. 7213234449Sobrien# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7214234449Sobrien 7215234449Sobrien# Character class describing NM global symbol codes. 7216234449Sobriensymcode='[BCDEGRST]' 7217234449Sobrien 7218234449Sobrien# Regexp to match symbols that can be accessed directly from C. 7219234449Sobriensympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7220234449Sobrien 7221234449Sobrien# Define system-specific variables. 7222234449Sobriencase $host_os in 7223234449Sobrienaix*) 7224234449Sobrien symcode='[BCDT]' 7225159764Sobrien ;; 7226234449Sobriencygwin* | mingw* | pw32* | cegcc*) 7227234449Sobrien symcode='[ABCDGISTW]' 7228234449Sobrien ;; 7229234449Sobrienhpux*) 7230234449Sobrien if test "$host_cpu" = ia64; then 7231234449Sobrien symcode='[ABCDEGRST]' 7232234449Sobrien fi 7233234449Sobrien ;; 7234234449Sobrienirix* | nonstopux*) 7235234449Sobrien symcode='[BCDEGRST]' 7236234449Sobrien ;; 7237234449Sobrienosf*) 7238234449Sobrien symcode='[BCDEGQRST]' 7239234449Sobrien ;; 7240234449Sobriensolaris*) 7241234449Sobrien symcode='[BDRT]' 7242234449Sobrien ;; 7243234449Sobriensco3.2v5*) 7244234449Sobrien symcode='[DT]' 7245234449Sobrien ;; 7246234449Sobriensysv4.2uw2*) 7247234449Sobrien symcode='[DT]' 7248234449Sobrien ;; 7249234449Sobriensysv5* | sco5v6* | unixware* | OpenUNIX*) 7250234449Sobrien symcode='[ABDT]' 7251234449Sobrien ;; 7252234449Sobriensysv4) 7253234449Sobrien symcode='[DFNSTU]' 7254234449Sobrien ;; 7255234449Sobrienesac 7256159764Sobrien 7257234449Sobrien# If we're using GNU nm, then use its standard symbol codes. 7258234449Sobriencase `$NM -V 2>&1` in 7259234449Sobrien*GNU* | *'with BFD'*) 7260234449Sobrien symcode='[ABCDGIRSTW]' ;; 7261234449Sobrienesac 7262159764Sobrien 7263234449Sobrien# Transform an extracted symbol line into a proper C declaration. 7264234449Sobrien# Some systems (esp. on ia64) link data and code symbols differently, 7265234449Sobrien# so use this general approach. 7266234449Sobrienlt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7267234449Sobrien 7268234449Sobrien# Transform an extracted symbol line into symbol name and symbol address 7269267897Sdelphijlt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7270267897Sdelphijlt_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'" 7271234449Sobrien 7272234449Sobrien# Handle CRLF in mingw tool chain 7273234449Sobrienopt_cr= 7274234449Sobriencase $build_os in 7275234449Sobrienmingw*) 7276234449Sobrien opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7277234449Sobrien ;; 7278234449Sobrienesac 7279234449Sobrien 7280234449Sobrien# Try without a prefix underscore, then with it. 7281234449Sobrienfor ac_symprfx in "" "_"; do 7282234449Sobrien 7283234449Sobrien # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7284234449Sobrien symxfrm="\\1 $ac_symprfx\\2 \\2" 7285234449Sobrien 7286234449Sobrien # Write the raw and C identifiers. 7287234449Sobrien if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7288234449Sobrien # Fake it for dumpbin and say T for any non-static function 7289234449Sobrien # and D for any global variable. 7290234449Sobrien # Also find C++ and __fastcall symbols from MSVC++, 7291234449Sobrien # which start with @ or ?. 7292234449Sobrien lt_cv_sys_global_symbol_pipe="$AWK '"\ 7293234449Sobrien" {last_section=section; section=\$ 3};"\ 7294267897Sdelphij" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7295234449Sobrien" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7296234449Sobrien" \$ 0!~/External *\|/{next};"\ 7297234449Sobrien" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7298234449Sobrien" {if(hide[section]) next};"\ 7299234449Sobrien" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7300234449Sobrien" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7301234449Sobrien" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7302234449Sobrien" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7303234449Sobrien" ' prfx=^$ac_symprfx" 7304234449Sobrien else 7305234449Sobrien lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7306234449Sobrien fi 7307267897Sdelphij lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7308234449Sobrien 7309234449Sobrien # Check to see that the pipe works correctly. 7310234449Sobrien pipe_works=no 7311234449Sobrien 7312234449Sobrien rm -f conftest* 7313234449Sobrien cat > conftest.$ac_ext <<_LT_EOF 7314234449Sobrien#ifdef __cplusplus 7315234449Sobrienextern "C" { 7316234449Sobrien#endif 7317234449Sobrienchar nm_test_var; 7318234449Sobrienvoid nm_test_func(void); 7319234449Sobrienvoid nm_test_func(void){} 7320234449Sobrien#ifdef __cplusplus 7321234449Sobrien} 7322234449Sobrien#endif 7323234449Sobrienint main(){nm_test_var='a';nm_test_func();return(0);} 7324234449Sobrien_LT_EOF 7325234449Sobrien 7326234449Sobrien if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7327234449Sobrien (eval $ac_compile) 2>&5 7328234449Sobrien ac_status=$? 7329234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7330234449Sobrien test $ac_status = 0; }; then 7331234449Sobrien # Now try to grab the symbols. 7332234449Sobrien nlist=conftest.nm 7333267897Sdelphij if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7334267897Sdelphij (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7335234449Sobrien ac_status=$? 7336234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7337234449Sobrien test $ac_status = 0; } && test -s "$nlist"; then 7338234449Sobrien # Try sorting and uniquifying the output. 7339234449Sobrien if sort "$nlist" | uniq > "$nlist"T; then 7340234449Sobrien mv -f "$nlist"T "$nlist" 7341234449Sobrien else 7342234449Sobrien rm -f "$nlist"T 7343159764Sobrien fi 7344234449Sobrien 7345234449Sobrien # Make sure that we snagged all the symbols we need. 7346234449Sobrien if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7347234449Sobrien if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7348234449Sobrien cat <<_LT_EOF > conftest.$ac_ext 7349267897Sdelphij/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7350267897Sdelphij#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7351267897Sdelphij/* DATA imports from DLLs on WIN32 con't be const, because runtime 7352267897Sdelphij relocations are performed -- see ld's documentation on pseudo-relocs. */ 7353267897Sdelphij# define LT_DLSYM_CONST 7354267897Sdelphij#elif defined(__osf__) 7355267897Sdelphij/* This system does not cope well with relocations in const data. */ 7356267897Sdelphij# define LT_DLSYM_CONST 7357267897Sdelphij#else 7358267897Sdelphij# define LT_DLSYM_CONST const 7359267897Sdelphij#endif 7360267897Sdelphij 7361234449Sobrien#ifdef __cplusplus 7362234449Sobrienextern "C" { 7363234449Sobrien#endif 7364234449Sobrien 7365234449Sobrien_LT_EOF 7366234449Sobrien # Now generate the symbol file. 7367234449Sobrien eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7368234449Sobrien 7369234449Sobrien cat <<_LT_EOF >> conftest.$ac_ext 7370234449Sobrien 7371234449Sobrien/* The mapping between symbol names and symbols. */ 7372267897SdelphijLT_DLSYM_CONST struct { 7373234449Sobrien const char *name; 7374234449Sobrien void *address; 7375234449Sobrien} 7376234449Sobrienlt__PROGRAM__LTX_preloaded_symbols[] = 7377234449Sobrien{ 7378234449Sobrien { "@PROGRAM@", (void *) 0 }, 7379234449Sobrien_LT_EOF 7380234449Sobrien $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7381234449Sobrien cat <<\_LT_EOF >> conftest.$ac_ext 7382234449Sobrien {0, (void *) 0} 7383234449Sobrien}; 7384234449Sobrien 7385234449Sobrien/* This works around a problem in FreeBSD linker */ 7386234449Sobrien#ifdef FREEBSD_WORKAROUND 7387234449Sobrienstatic const void *lt_preloaded_setup() { 7388234449Sobrien return lt__PROGRAM__LTX_preloaded_symbols; 7389234449Sobrien} 7390234449Sobrien#endif 7391234449Sobrien 7392234449Sobrien#ifdef __cplusplus 7393234449Sobrien} 7394234449Sobrien#endif 7395234449Sobrien_LT_EOF 7396234449Sobrien # Now try linking the two files. 7397234449Sobrien mv conftest.$ac_objext conftstm.$ac_objext 7398267897Sdelphij lt_globsym_save_LIBS=$LIBS 7399267897Sdelphij lt_globsym_save_CFLAGS=$CFLAGS 7400234449Sobrien LIBS="conftstm.$ac_objext" 7401234449Sobrien CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7402234449Sobrien if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7403234449Sobrien (eval $ac_link) 2>&5 7404234449Sobrien ac_status=$? 7405234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7406234449Sobrien test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7407234449Sobrien pipe_works=yes 7408234449Sobrien fi 7409267897Sdelphij LIBS=$lt_globsym_save_LIBS 7410267897Sdelphij CFLAGS=$lt_globsym_save_CFLAGS 7411234449Sobrien else 7412234449Sobrien echo "cannot find nm_test_func in $nlist" >&5 7413234449Sobrien fi 7414234449Sobrien else 7415234449Sobrien echo "cannot find nm_test_var in $nlist" >&5 7416234449Sobrien fi 7417234449Sobrien else 7418234449Sobrien echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7419159764Sobrien fi 7420234449Sobrien else 7421234449Sobrien echo "$progname: failed program was:" >&5 7422234449Sobrien cat conftest.$ac_ext >&5 7423234449Sobrien fi 7424234449Sobrien rm -rf conftest* conftst* 7425234449Sobrien 7426234449Sobrien # Do not use the global_symbol_pipe unless it works. 7427234449Sobrien if test "$pipe_works" = yes; then 7428234449Sobrien break 7429234449Sobrien else 7430234449Sobrien lt_cv_sys_global_symbol_pipe= 7431234449Sobrien fi 7432234449Sobriendone 7433234449Sobrien 7434139368Sobrienfi 7435139368Sobrien 7436234449Sobrienif test -z "$lt_cv_sys_global_symbol_pipe"; then 7437234449Sobrien lt_cv_sys_global_symbol_to_cdecl= 7438234449Sobrienfi 7439234449Sobrienif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7440234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7441234449Sobrien$as_echo "failed" >&6; } 7442159764Sobrienelse 7443234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7444234449Sobrien$as_echo "ok" >&6; } 7445159764Sobrienfi 7446139368Sobrien 7447267897Sdelphij# Response file support. 7448267897Sdelphijif test "$lt_cv_nm_interface" = "MS dumpbin"; then 7449267897Sdelphij nm_file_list_spec='@' 7450267897Sdelphijelif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7451267897Sdelphij nm_file_list_spec='@' 7452267897Sdelphijfi 7453139368Sobrien 7454159764Sobrien 7455234449Sobrien 7456234449Sobrien 7457234449Sobrien 7458234449Sobrien 7459234449Sobrien 7460234449Sobrien 7461234449Sobrien 7462234449Sobrien 7463234449Sobrien 7464234449Sobrien 7465234449Sobrien 7466234449Sobrien 7467234449Sobrien 7468234449Sobrien 7469234449Sobrien 7470234449Sobrien 7471234449Sobrien 7472234449Sobrien 7473234449Sobrien 7474267897Sdelphij 7475267897Sdelphij 7476267897Sdelphij 7477267897Sdelphij 7478267897Sdelphij 7479267897Sdelphij 7480267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7481267897Sdelphij$as_echo_n "checking for sysroot... " >&6; } 7482267897Sdelphij 7483267897Sdelphij# Check whether --with-sysroot was given. 7484267897Sdelphijif test "${with_sysroot+set}" = set; then : 7485267897Sdelphij withval=$with_sysroot; 7486267897Sdelphijelse 7487267897Sdelphij with_sysroot=no 7488267897Sdelphijfi 7489267897Sdelphij 7490267897Sdelphij 7491267897Sdelphijlt_sysroot= 7492267897Sdelphijcase ${with_sysroot} in #( 7493267897Sdelphij yes) 7494267897Sdelphij if test "$GCC" = yes; then 7495267897Sdelphij lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7496267897Sdelphij fi 7497267897Sdelphij ;; #( 7498267897Sdelphij /*) 7499267897Sdelphij lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7500267897Sdelphij ;; #( 7501267897Sdelphij no|'') 7502267897Sdelphij ;; #( 7503267897Sdelphij *) 7504267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7505267897Sdelphij$as_echo "${with_sysroot}" >&6; } 7506267897Sdelphij as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7507267897Sdelphij ;; 7508267897Sdelphijesac 7509267897Sdelphij 7510267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7511267897Sdelphij$as_echo "${lt_sysroot:-no}" >&6; } 7512267897Sdelphij 7513267897Sdelphij 7514267897Sdelphij 7515267897Sdelphij 7516267897Sdelphij 7517234449Sobrien# Check whether --enable-libtool-lock was given. 7518234449Sobrienif test "${enable_libtool_lock+set}" = set; then : 7519234449Sobrien enableval=$enable_libtool_lock; 7520234449Sobrienfi 7521234449Sobrien 7522234449Sobrientest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7523234449Sobrien 7524234449Sobrien# Some flags need to be propagated to the compiler or linker for good 7525234449Sobrien# libtool support. 7526234449Sobriencase $host in 7527234449Sobrienia64-*-hpux*) 7528234449Sobrien # Find out which ABI we are using. 7529234449Sobrien echo 'int i;' > conftest.$ac_ext 7530234449Sobrien if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7531234449Sobrien (eval $ac_compile) 2>&5 7532234449Sobrien ac_status=$? 7533234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7534234449Sobrien test $ac_status = 0; }; then 7535234449Sobrien case `/usr/bin/file conftest.$ac_objext` in 7536234449Sobrien *ELF-32*) 7537234449Sobrien HPUX_IA64_MODE="32" 7538234449Sobrien ;; 7539234449Sobrien *ELF-64*) 7540234449Sobrien HPUX_IA64_MODE="64" 7541234449Sobrien ;; 7542234449Sobrien esac 7543234449Sobrien fi 7544234449Sobrien rm -rf conftest* 7545234449Sobrien ;; 7546234449Sobrien*-*-irix6*) 7547234449Sobrien # Find out which ABI we are using. 7548267897Sdelphij echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7549234449Sobrien if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7550234449Sobrien (eval $ac_compile) 2>&5 7551234449Sobrien ac_status=$? 7552234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7553234449Sobrien test $ac_status = 0; }; then 7554234449Sobrien if test "$lt_cv_prog_gnu_ld" = yes; then 7555234449Sobrien case `/usr/bin/file conftest.$ac_objext` in 7556234449Sobrien *32-bit*) 7557234449Sobrien LD="${LD-ld} -melf32bsmip" 7558234449Sobrien ;; 7559234449Sobrien *N32*) 7560234449Sobrien LD="${LD-ld} -melf32bmipn32" 7561234449Sobrien ;; 7562234449Sobrien *64-bit*) 7563234449Sobrien LD="${LD-ld} -melf64bmip" 7564234449Sobrien ;; 7565234449Sobrien esac 7566234449Sobrien else 7567234449Sobrien case `/usr/bin/file conftest.$ac_objext` in 7568234449Sobrien *32-bit*) 7569234449Sobrien LD="${LD-ld} -32" 7570234449Sobrien ;; 7571234449Sobrien *N32*) 7572234449Sobrien LD="${LD-ld} -n32" 7573234449Sobrien ;; 7574234449Sobrien *64-bit*) 7575234449Sobrien LD="${LD-ld} -64" 7576234449Sobrien ;; 7577234449Sobrien esac 7578159764Sobrien fi 7579234449Sobrien fi 7580234449Sobrien rm -rf conftest* 7581159764Sobrien ;; 7582159764Sobrien 7583234449Sobrienx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7584234449Sobriens390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7585234449Sobrien # Find out which ABI we are using. 7586234449Sobrien echo 'int i;' > conftest.$ac_ext 7587234449Sobrien if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7588234449Sobrien (eval $ac_compile) 2>&5 7589234449Sobrien ac_status=$? 7590234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7591234449Sobrien test $ac_status = 0; }; then 7592234449Sobrien case `/usr/bin/file conftest.o` in 7593234449Sobrien *32-bit*) 7594234449Sobrien case $host in 7595234449Sobrien x86_64-*kfreebsd*-gnu) 7596234449Sobrien LD="${LD-ld} -m elf_i386_fbsd" 7597234449Sobrien ;; 7598234449Sobrien x86_64-*linux*) 7599234449Sobrien LD="${LD-ld} -m elf_i386" 7600234449Sobrien ;; 7601234449Sobrien ppc64-*linux*|powerpc64-*linux*) 7602234449Sobrien LD="${LD-ld} -m elf32ppclinux" 7603234449Sobrien ;; 7604234449Sobrien s390x-*linux*) 7605234449Sobrien LD="${LD-ld} -m elf_s390" 7606234449Sobrien ;; 7607234449Sobrien sparc64-*linux*) 7608234449Sobrien LD="${LD-ld} -m elf32_sparc" 7609234449Sobrien ;; 7610234449Sobrien esac 7611234449Sobrien ;; 7612234449Sobrien *64-bit*) 7613234449Sobrien case $host in 7614234449Sobrien x86_64-*kfreebsd*-gnu) 7615234449Sobrien LD="${LD-ld} -m elf_x86_64_fbsd" 7616234449Sobrien ;; 7617234449Sobrien x86_64-*linux*) 7618234449Sobrien LD="${LD-ld} -m elf_x86_64" 7619234449Sobrien ;; 7620234449Sobrien ppc*-*linux*|powerpc*-*linux*) 7621234449Sobrien LD="${LD-ld} -m elf64ppc" 7622234449Sobrien ;; 7623234449Sobrien s390*-*linux*|s390*-*tpf*) 7624234449Sobrien LD="${LD-ld} -m elf64_s390" 7625234449Sobrien ;; 7626234449Sobrien sparc*-*linux*) 7627234449Sobrien LD="${LD-ld} -m elf64_sparc" 7628234449Sobrien ;; 7629234449Sobrien esac 7630234449Sobrien ;; 7631234449Sobrien esac 7632234449Sobrien fi 7633234449Sobrien rm -rf conftest* 7634234449Sobrien ;; 7635234449Sobrien 7636234449Sobrien*-*-sco3.2v5*) 7637234449Sobrien # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7638234449Sobrien SAVE_CFLAGS="$CFLAGS" 7639234449Sobrien CFLAGS="$CFLAGS -belf" 7640234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7641234449Sobrien$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7642234449Sobrienif ${lt_cv_cc_needs_belf+:} false; then : 7643234449Sobrien $as_echo_n "(cached) " >&6 7644159764Sobrienelse 7645234449Sobrien ac_ext=c 7646234449Sobrienac_cpp='$CPP $CPPFLAGS' 7647234449Sobrienac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7648234449Sobrienac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7649234449Sobrienac_compiler_gnu=$ac_cv_c_compiler_gnu 7650234449Sobrien 7651234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7652234449Sobrien/* end confdefs.h. */ 7653234449Sobrien 7654234449Sobrienint 7655234449Sobrienmain () 7656234449Sobrien{ 7657234449Sobrien 7658234449Sobrien ; 7659234449Sobrien return 0; 7660234449Sobrien} 7661234449Sobrien_ACEOF 7662234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 7663234449Sobrien lt_cv_cc_needs_belf=yes 7664234449Sobrienelse 7665234449Sobrien lt_cv_cc_needs_belf=no 7666159764Sobrienfi 7667234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 7668234449Sobrien conftest$ac_exeext conftest.$ac_ext 7669234449Sobrien ac_ext=c 7670234449Sobrienac_cpp='$CPP $CPPFLAGS' 7671234449Sobrienac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7672234449Sobrienac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7673234449Sobrienac_compiler_gnu=$ac_cv_c_compiler_gnu 7674159764Sobrien 7675159764Sobrienfi 7676234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7677234449Sobrien$as_echo "$lt_cv_cc_needs_belf" >&6; } 7678234449Sobrien if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7679234449Sobrien # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7680234449Sobrien CFLAGS="$SAVE_CFLAGS" 7681159764Sobrien fi 7682159764Sobrien ;; 7683267897Sdelphij*-*solaris*) 7684234449Sobrien # Find out which ABI we are using. 7685234449Sobrien echo 'int i;' > conftest.$ac_ext 7686234449Sobrien if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7687234449Sobrien (eval $ac_compile) 2>&5 7688234449Sobrien ac_status=$? 7689234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7690234449Sobrien test $ac_status = 0; }; then 7691234449Sobrien case `/usr/bin/file conftest.o` in 7692234449Sobrien *64-bit*) 7693234449Sobrien case $lt_cv_prog_gnu_ld in 7694267897Sdelphij yes*) 7695267897Sdelphij case $host in 7696267897Sdelphij i?86-*-solaris*) 7697267897Sdelphij LD="${LD-ld} -m elf_x86_64" 7698267897Sdelphij ;; 7699267897Sdelphij sparc*-*-solaris*) 7700267897Sdelphij LD="${LD-ld} -m elf64_sparc" 7701267897Sdelphij ;; 7702267897Sdelphij esac 7703267897Sdelphij # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7704267897Sdelphij if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7705267897Sdelphij LD="${LD-ld}_sol2" 7706267897Sdelphij fi 7707267897Sdelphij ;; 7708234449Sobrien *) 7709234449Sobrien if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7710234449Sobrien LD="${LD-ld} -64" 7711234449Sobrien fi 7712234449Sobrien ;; 7713234449Sobrien esac 7714234449Sobrien ;; 7715234449Sobrien esac 7716234449Sobrien fi 7717234449Sobrien rm -rf conftest* 7718234449Sobrien ;; 7719159764Sobrienesac 7720159764Sobrien 7721234449Sobrienneed_locks="$enable_libtool_lock" 7722192350Sdelphij 7723267897Sdelphijif test -n "$ac_tool_prefix"; then 7724267897Sdelphij # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7725267897Sdelphijset dummy ${ac_tool_prefix}mt; ac_word=$2 7726267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7727267897Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 7728267897Sdelphijif ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7729267897Sdelphij $as_echo_n "(cached) " >&6 7730267897Sdelphijelse 7731267897Sdelphij if test -n "$MANIFEST_TOOL"; then 7732267897Sdelphij ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7733267897Sdelphijelse 7734267897Sdelphijas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7735267897Sdelphijfor as_dir in $PATH 7736267897Sdelphijdo 7737267897Sdelphij IFS=$as_save_IFS 7738267897Sdelphij test -z "$as_dir" && as_dir=. 7739267897Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 7740267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7741267897Sdelphij ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7742267897Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7743267897Sdelphij break 2 7744267897Sdelphij fi 7745267897Sdelphijdone 7746267897Sdelphij done 7747267897SdelphijIFS=$as_save_IFS 7748234449Sobrien 7749267897Sdelphijfi 7750267897Sdelphijfi 7751267897SdelphijMANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7752267897Sdelphijif test -n "$MANIFEST_TOOL"; then 7753267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7754267897Sdelphij$as_echo "$MANIFEST_TOOL" >&6; } 7755267897Sdelphijelse 7756267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7757267897Sdelphij$as_echo "no" >&6; } 7758267897Sdelphijfi 7759267897Sdelphij 7760267897Sdelphij 7761267897Sdelphijfi 7762267897Sdelphijif test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7763267897Sdelphij ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7764267897Sdelphij # Extract the first word of "mt", so it can be a program name with args. 7765267897Sdelphijset dummy mt; ac_word=$2 7766267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7767267897Sdelphij$as_echo_n "checking for $ac_word... " >&6; } 7768267897Sdelphijif ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7769267897Sdelphij $as_echo_n "(cached) " >&6 7770267897Sdelphijelse 7771267897Sdelphij if test -n "$ac_ct_MANIFEST_TOOL"; then 7772267897Sdelphij ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7773267897Sdelphijelse 7774267897Sdelphijas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7775267897Sdelphijfor as_dir in $PATH 7776267897Sdelphijdo 7777267897Sdelphij IFS=$as_save_IFS 7778267897Sdelphij test -z "$as_dir" && as_dir=. 7779267897Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 7780267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7781267897Sdelphij ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7782267897Sdelphij $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7783267897Sdelphij break 2 7784267897Sdelphij fi 7785267897Sdelphijdone 7786267897Sdelphij done 7787267897SdelphijIFS=$as_save_IFS 7788267897Sdelphij 7789267897Sdelphijfi 7790267897Sdelphijfi 7791267897Sdelphijac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7792267897Sdelphijif test -n "$ac_ct_MANIFEST_TOOL"; then 7793267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7794267897Sdelphij$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7795267897Sdelphijelse 7796267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7797267897Sdelphij$as_echo "no" >&6; } 7798267897Sdelphijfi 7799267897Sdelphij 7800267897Sdelphij if test "x$ac_ct_MANIFEST_TOOL" = x; then 7801267897Sdelphij MANIFEST_TOOL=":" 7802267897Sdelphij else 7803267897Sdelphij case $cross_compiling:$ac_tool_warned in 7804267897Sdelphijyes:) 7805267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7806267897Sdelphij$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7807267897Sdelphijac_tool_warned=yes ;; 7808267897Sdelphijesac 7809267897Sdelphij MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7810267897Sdelphij fi 7811267897Sdelphijelse 7812267897Sdelphij MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7813267897Sdelphijfi 7814267897Sdelphij 7815267897Sdelphijtest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7816267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7817267897Sdelphij$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7818267897Sdelphijif ${lt_cv_path_mainfest_tool+:} false; then : 7819267897Sdelphij $as_echo_n "(cached) " >&6 7820267897Sdelphijelse 7821267897Sdelphij lt_cv_path_mainfest_tool=no 7822267897Sdelphij echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7823267897Sdelphij $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7824267897Sdelphij cat conftest.err >&5 7825267897Sdelphij if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7826267897Sdelphij lt_cv_path_mainfest_tool=yes 7827267897Sdelphij fi 7828267897Sdelphij rm -f conftest* 7829267897Sdelphijfi 7830267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7831267897Sdelphij$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7832267897Sdelphijif test "x$lt_cv_path_mainfest_tool" != xyes; then 7833267897Sdelphij MANIFEST_TOOL=: 7834267897Sdelphijfi 7835267897Sdelphij 7836267897Sdelphij 7837267897Sdelphij 7838267897Sdelphij 7839267897Sdelphij 7840267897Sdelphij 7841192350Sdelphij case $host_os in 7842192350Sdelphij rhapsody* | darwin*) 7843192350Sdelphij if test -n "$ac_tool_prefix"; then 7844192350Sdelphij # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7845192350Sdelphijset dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7846234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7847234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 7848234449Sobrienif ${ac_cv_prog_DSYMUTIL+:} false; then : 7849234449Sobrien $as_echo_n "(cached) " >&6 7850192350Sdelphijelse 7851192350Sdelphij if test -n "$DSYMUTIL"; then 7852192350Sdelphij ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7853192350Sdelphijelse 7854192350Sdelphijas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7855192350Sdelphijfor as_dir in $PATH 7856192350Sdelphijdo 7857192350Sdelphij IFS=$as_save_IFS 7858192350Sdelphij test -z "$as_dir" && as_dir=. 7859234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 7860267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7861192350Sdelphij ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7862234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7863192350Sdelphij break 2 7864192350Sdelphij fi 7865192350Sdelphijdone 7866234449Sobrien done 7867192350SdelphijIFS=$as_save_IFS 7868192350Sdelphij 7869192350Sdelphijfi 7870192350Sdelphijfi 7871192350SdelphijDSYMUTIL=$ac_cv_prog_DSYMUTIL 7872192350Sdelphijif test -n "$DSYMUTIL"; then 7873234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7874234449Sobrien$as_echo "$DSYMUTIL" >&6; } 7875192350Sdelphijelse 7876234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7877234449Sobrien$as_echo "no" >&6; } 7878192350Sdelphijfi 7879192350Sdelphij 7880192350Sdelphij 7881192350Sdelphijfi 7882192350Sdelphijif test -z "$ac_cv_prog_DSYMUTIL"; then 7883192350Sdelphij ac_ct_DSYMUTIL=$DSYMUTIL 7884192350Sdelphij # Extract the first word of "dsymutil", so it can be a program name with args. 7885192350Sdelphijset dummy dsymutil; ac_word=$2 7886234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7887234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 7888234449Sobrienif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7889234449Sobrien $as_echo_n "(cached) " >&6 7890192350Sdelphijelse 7891192350Sdelphij if test -n "$ac_ct_DSYMUTIL"; then 7892192350Sdelphij ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7893192350Sdelphijelse 7894192350Sdelphijas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7895192350Sdelphijfor as_dir in $PATH 7896192350Sdelphijdo 7897192350Sdelphij IFS=$as_save_IFS 7898192350Sdelphij test -z "$as_dir" && as_dir=. 7899234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 7900267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7901192350Sdelphij ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7902234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7903192350Sdelphij break 2 7904192350Sdelphij fi 7905192350Sdelphijdone 7906234449Sobrien done 7907192350SdelphijIFS=$as_save_IFS 7908192350Sdelphij 7909192350Sdelphijfi 7910192350Sdelphijfi 7911192350Sdelphijac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7912192350Sdelphijif test -n "$ac_ct_DSYMUTIL"; then 7913234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7914234449Sobrien$as_echo "$ac_ct_DSYMUTIL" >&6; } 7915192350Sdelphijelse 7916234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7917234449Sobrien$as_echo "no" >&6; } 7918192350Sdelphijfi 7919192350Sdelphij 7920192350Sdelphij if test "x$ac_ct_DSYMUTIL" = x; then 7921192350Sdelphij DSYMUTIL=":" 7922192350Sdelphij else 7923192350Sdelphij case $cross_compiling:$ac_tool_warned in 7924192350Sdelphijyes:) 7925234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7926234449Sobrien$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7927192350Sdelphijac_tool_warned=yes ;; 7928192350Sdelphijesac 7929192350Sdelphij DSYMUTIL=$ac_ct_DSYMUTIL 7930192350Sdelphij fi 7931192350Sdelphijelse 7932192350Sdelphij DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7933192350Sdelphijfi 7934192350Sdelphij 7935192350Sdelphij if test -n "$ac_tool_prefix"; then 7936192350Sdelphij # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7937192350Sdelphijset dummy ${ac_tool_prefix}nmedit; ac_word=$2 7938234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7939234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 7940234449Sobrienif ${ac_cv_prog_NMEDIT+:} false; then : 7941234449Sobrien $as_echo_n "(cached) " >&6 7942192350Sdelphijelse 7943192350Sdelphij if test -n "$NMEDIT"; then 7944192350Sdelphij ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7945192350Sdelphijelse 7946192350Sdelphijas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7947192350Sdelphijfor as_dir in $PATH 7948192350Sdelphijdo 7949192350Sdelphij IFS=$as_save_IFS 7950192350Sdelphij test -z "$as_dir" && as_dir=. 7951234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 7952267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7953192350Sdelphij ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7954234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7955192350Sdelphij break 2 7956192350Sdelphij fi 7957192350Sdelphijdone 7958234449Sobrien done 7959192350SdelphijIFS=$as_save_IFS 7960192350Sdelphij 7961192350Sdelphijfi 7962192350Sdelphijfi 7963192350SdelphijNMEDIT=$ac_cv_prog_NMEDIT 7964192350Sdelphijif test -n "$NMEDIT"; then 7965234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7966234449Sobrien$as_echo "$NMEDIT" >&6; } 7967192350Sdelphijelse 7968234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7969234449Sobrien$as_echo "no" >&6; } 7970192350Sdelphijfi 7971192350Sdelphij 7972192350Sdelphij 7973192350Sdelphijfi 7974192350Sdelphijif test -z "$ac_cv_prog_NMEDIT"; then 7975192350Sdelphij ac_ct_NMEDIT=$NMEDIT 7976192350Sdelphij # Extract the first word of "nmedit", so it can be a program name with args. 7977192350Sdelphijset dummy nmedit; ac_word=$2 7978234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7979234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 7980234449Sobrienif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7981234449Sobrien $as_echo_n "(cached) " >&6 7982192350Sdelphijelse 7983192350Sdelphij if test -n "$ac_ct_NMEDIT"; then 7984192350Sdelphij ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7985192350Sdelphijelse 7986192350Sdelphijas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7987192350Sdelphijfor as_dir in $PATH 7988192350Sdelphijdo 7989192350Sdelphij IFS=$as_save_IFS 7990192350Sdelphij test -z "$as_dir" && as_dir=. 7991234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 7992267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7993192350Sdelphij ac_cv_prog_ac_ct_NMEDIT="nmedit" 7994234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7995192350Sdelphij break 2 7996192350Sdelphij fi 7997192350Sdelphijdone 7998234449Sobrien done 7999192350SdelphijIFS=$as_save_IFS 8000192350Sdelphij 8001192350Sdelphijfi 8002192350Sdelphijfi 8003192350Sdelphijac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8004192350Sdelphijif test -n "$ac_ct_NMEDIT"; then 8005234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8006234449Sobrien$as_echo "$ac_ct_NMEDIT" >&6; } 8007192350Sdelphijelse 8008234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8009234449Sobrien$as_echo "no" >&6; } 8010192350Sdelphijfi 8011192350Sdelphij 8012192350Sdelphij if test "x$ac_ct_NMEDIT" = x; then 8013192350Sdelphij NMEDIT=":" 8014192350Sdelphij else 8015192350Sdelphij case $cross_compiling:$ac_tool_warned in 8016192350Sdelphijyes:) 8017234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8018234449Sobrien$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8019192350Sdelphijac_tool_warned=yes ;; 8020192350Sdelphijesac 8021192350Sdelphij NMEDIT=$ac_ct_NMEDIT 8022192350Sdelphij fi 8023192350Sdelphijelse 8024192350Sdelphij NMEDIT="$ac_cv_prog_NMEDIT" 8025192350Sdelphijfi 8026192350Sdelphij 8027234449Sobrien if test -n "$ac_tool_prefix"; then 8028234449Sobrien # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8029234449Sobrienset dummy ${ac_tool_prefix}lipo; ac_word=$2 8030234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8031234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 8032234449Sobrienif ${ac_cv_prog_LIPO+:} false; then : 8033234449Sobrien $as_echo_n "(cached) " >&6 8034234449Sobrienelse 8035234449Sobrien if test -n "$LIPO"; then 8036234449Sobrien ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8037234449Sobrienelse 8038234449Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8039234449Sobrienfor as_dir in $PATH 8040234449Sobriendo 8041234449Sobrien IFS=$as_save_IFS 8042234449Sobrien test -z "$as_dir" && as_dir=. 8043234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 8044267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8045234449Sobrien ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8046234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8047234449Sobrien break 2 8048234449Sobrien fi 8049234449Sobriendone 8050234449Sobrien done 8051234449SobrienIFS=$as_save_IFS 8052192350Sdelphij 8053234449Sobrienfi 8054234449Sobrienfi 8055234449SobrienLIPO=$ac_cv_prog_LIPO 8056234449Sobrienif test -n "$LIPO"; then 8057234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8058234449Sobrien$as_echo "$LIPO" >&6; } 8059192350Sdelphijelse 8060234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8061234449Sobrien$as_echo "no" >&6; } 8062234449Sobrienfi 8063234449Sobrien 8064234449Sobrien 8065234449Sobrienfi 8066234449Sobrienif test -z "$ac_cv_prog_LIPO"; then 8067234449Sobrien ac_ct_LIPO=$LIPO 8068234449Sobrien # Extract the first word of "lipo", so it can be a program name with args. 8069234449Sobrienset dummy lipo; ac_word=$2 8070234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8071234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 8072234449Sobrienif ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8073234449Sobrien $as_echo_n "(cached) " >&6 8074234449Sobrienelse 8075234449Sobrien if test -n "$ac_ct_LIPO"; then 8076234449Sobrien ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8077234449Sobrienelse 8078234449Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8079234449Sobrienfor as_dir in $PATH 8080234449Sobriendo 8081234449Sobrien IFS=$as_save_IFS 8082234449Sobrien test -z "$as_dir" && as_dir=. 8083234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 8084267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8085234449Sobrien ac_cv_prog_ac_ct_LIPO="lipo" 8086234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8087234449Sobrien break 2 8088234449Sobrien fi 8089234449Sobriendone 8090234449Sobrien done 8091234449SobrienIFS=$as_save_IFS 8092234449Sobrien 8093234449Sobrienfi 8094234449Sobrienfi 8095234449Sobrienac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8096234449Sobrienif test -n "$ac_ct_LIPO"; then 8097234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8098234449Sobrien$as_echo "$ac_ct_LIPO" >&6; } 8099234449Sobrienelse 8100234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8101234449Sobrien$as_echo "no" >&6; } 8102234449Sobrienfi 8103234449Sobrien 8104234449Sobrien if test "x$ac_ct_LIPO" = x; then 8105234449Sobrien LIPO=":" 8106234449Sobrien else 8107234449Sobrien case $cross_compiling:$ac_tool_warned in 8108234449Sobrienyes:) 8109234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8110234449Sobrien$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8111234449Sobrienac_tool_warned=yes ;; 8112234449Sobrienesac 8113234449Sobrien LIPO=$ac_ct_LIPO 8114234449Sobrien fi 8115234449Sobrienelse 8116234449Sobrien LIPO="$ac_cv_prog_LIPO" 8117234449Sobrienfi 8118234449Sobrien 8119234449Sobrien if test -n "$ac_tool_prefix"; then 8120234449Sobrien # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8121234449Sobrienset dummy ${ac_tool_prefix}otool; ac_word=$2 8122234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8123234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 8124234449Sobrienif ${ac_cv_prog_OTOOL+:} false; then : 8125234449Sobrien $as_echo_n "(cached) " >&6 8126234449Sobrienelse 8127234449Sobrien if test -n "$OTOOL"; then 8128234449Sobrien ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8129234449Sobrienelse 8130234449Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8131234449Sobrienfor as_dir in $PATH 8132234449Sobriendo 8133234449Sobrien IFS=$as_save_IFS 8134234449Sobrien test -z "$as_dir" && as_dir=. 8135234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 8136267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8137234449Sobrien ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8138234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8139234449Sobrien break 2 8140234449Sobrien fi 8141234449Sobriendone 8142234449Sobrien done 8143234449SobrienIFS=$as_save_IFS 8144234449Sobrien 8145234449Sobrienfi 8146234449Sobrienfi 8147234449SobrienOTOOL=$ac_cv_prog_OTOOL 8148234449Sobrienif test -n "$OTOOL"; then 8149234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8150234449Sobrien$as_echo "$OTOOL" >&6; } 8151234449Sobrienelse 8152234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8153234449Sobrien$as_echo "no" >&6; } 8154234449Sobrienfi 8155234449Sobrien 8156234449Sobrien 8157234449Sobrienfi 8158234449Sobrienif test -z "$ac_cv_prog_OTOOL"; then 8159234449Sobrien ac_ct_OTOOL=$OTOOL 8160234449Sobrien # Extract the first word of "otool", so it can be a program name with args. 8161234449Sobrienset dummy otool; ac_word=$2 8162234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8163234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 8164234449Sobrienif ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8165234449Sobrien $as_echo_n "(cached) " >&6 8166234449Sobrienelse 8167234449Sobrien if test -n "$ac_ct_OTOOL"; then 8168234449Sobrien ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8169234449Sobrienelse 8170234449Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8171234449Sobrienfor as_dir in $PATH 8172234449Sobriendo 8173234449Sobrien IFS=$as_save_IFS 8174234449Sobrien test -z "$as_dir" && as_dir=. 8175234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 8176267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8177234449Sobrien ac_cv_prog_ac_ct_OTOOL="otool" 8178234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8179234449Sobrien break 2 8180234449Sobrien fi 8181234449Sobriendone 8182234449Sobrien done 8183234449SobrienIFS=$as_save_IFS 8184234449Sobrien 8185234449Sobrienfi 8186234449Sobrienfi 8187234449Sobrienac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8188234449Sobrienif test -n "$ac_ct_OTOOL"; then 8189234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8190234449Sobrien$as_echo "$ac_ct_OTOOL" >&6; } 8191234449Sobrienelse 8192234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8193234449Sobrien$as_echo "no" >&6; } 8194234449Sobrienfi 8195234449Sobrien 8196234449Sobrien if test "x$ac_ct_OTOOL" = x; then 8197234449Sobrien OTOOL=":" 8198234449Sobrien else 8199234449Sobrien case $cross_compiling:$ac_tool_warned in 8200234449Sobrienyes:) 8201234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8202234449Sobrien$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8203234449Sobrienac_tool_warned=yes ;; 8204234449Sobrienesac 8205234449Sobrien OTOOL=$ac_ct_OTOOL 8206234449Sobrien fi 8207234449Sobrienelse 8208234449Sobrien OTOOL="$ac_cv_prog_OTOOL" 8209234449Sobrienfi 8210234449Sobrien 8211234449Sobrien if test -n "$ac_tool_prefix"; then 8212234449Sobrien # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8213234449Sobrienset dummy ${ac_tool_prefix}otool64; ac_word=$2 8214234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8215234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 8216234449Sobrienif ${ac_cv_prog_OTOOL64+:} false; then : 8217234449Sobrien $as_echo_n "(cached) " >&6 8218234449Sobrienelse 8219234449Sobrien if test -n "$OTOOL64"; then 8220234449Sobrien ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8221234449Sobrienelse 8222234449Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8223234449Sobrienfor as_dir in $PATH 8224234449Sobriendo 8225234449Sobrien IFS=$as_save_IFS 8226234449Sobrien test -z "$as_dir" && as_dir=. 8227234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 8228267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8229234449Sobrien ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8230234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8231234449Sobrien break 2 8232234449Sobrien fi 8233234449Sobriendone 8234234449Sobrien done 8235234449SobrienIFS=$as_save_IFS 8236234449Sobrien 8237234449Sobrienfi 8238234449Sobrienfi 8239234449SobrienOTOOL64=$ac_cv_prog_OTOOL64 8240234449Sobrienif test -n "$OTOOL64"; then 8241234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8242234449Sobrien$as_echo "$OTOOL64" >&6; } 8243234449Sobrienelse 8244234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8245234449Sobrien$as_echo "no" >&6; } 8246234449Sobrienfi 8247234449Sobrien 8248234449Sobrien 8249234449Sobrienfi 8250234449Sobrienif test -z "$ac_cv_prog_OTOOL64"; then 8251234449Sobrien ac_ct_OTOOL64=$OTOOL64 8252234449Sobrien # Extract the first word of "otool64", so it can be a program name with args. 8253234449Sobrienset dummy otool64; ac_word=$2 8254234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8255234449Sobrien$as_echo_n "checking for $ac_word... " >&6; } 8256234449Sobrienif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8257234449Sobrien $as_echo_n "(cached) " >&6 8258234449Sobrienelse 8259234449Sobrien if test -n "$ac_ct_OTOOL64"; then 8260234449Sobrien ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8261234449Sobrienelse 8262234449Sobrienas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8263234449Sobrienfor as_dir in $PATH 8264234449Sobriendo 8265234449Sobrien IFS=$as_save_IFS 8266234449Sobrien test -z "$as_dir" && as_dir=. 8267234449Sobrien for ac_exec_ext in '' $ac_executable_extensions; do 8268267897Sdelphij if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8269234449Sobrien ac_cv_prog_ac_ct_OTOOL64="otool64" 8270234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8271234449Sobrien break 2 8272234449Sobrien fi 8273234449Sobriendone 8274234449Sobrien done 8275234449SobrienIFS=$as_save_IFS 8276234449Sobrien 8277234449Sobrienfi 8278234449Sobrienfi 8279234449Sobrienac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8280234449Sobrienif test -n "$ac_ct_OTOOL64"; then 8281234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8282234449Sobrien$as_echo "$ac_ct_OTOOL64" >&6; } 8283234449Sobrienelse 8284234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8285234449Sobrien$as_echo "no" >&6; } 8286234449Sobrienfi 8287234449Sobrien 8288234449Sobrien if test "x$ac_ct_OTOOL64" = x; then 8289234449Sobrien OTOOL64=":" 8290234449Sobrien else 8291234449Sobrien case $cross_compiling:$ac_tool_warned in 8292234449Sobrienyes:) 8293234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8294234449Sobrien$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8295234449Sobrienac_tool_warned=yes ;; 8296234449Sobrienesac 8297234449Sobrien OTOOL64=$ac_ct_OTOOL64 8298234449Sobrien fi 8299234449Sobrienelse 8300234449Sobrien OTOOL64="$ac_cv_prog_OTOOL64" 8301234449Sobrienfi 8302234449Sobrien 8303234449Sobrien 8304234449Sobrien 8305234449Sobrien 8306234449Sobrien 8307234449Sobrien 8308234449Sobrien 8309234449Sobrien 8310234449Sobrien 8311234449Sobrien 8312234449Sobrien 8313234449Sobrien 8314234449Sobrien 8315234449Sobrien 8316234449Sobrien 8317234449Sobrien 8318234449Sobrien 8319234449Sobrien 8320234449Sobrien 8321234449Sobrien 8322234449Sobrien 8323234449Sobrien 8324234449Sobrien 8325234449Sobrien 8326234449Sobrien 8327234449Sobrien 8328234449Sobrien 8329234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8330234449Sobrien$as_echo_n "checking for -single_module linker flag... " >&6; } 8331234449Sobrienif ${lt_cv_apple_cc_single_mod+:} false; then : 8332234449Sobrien $as_echo_n "(cached) " >&6 8333234449Sobrienelse 8334192350Sdelphij lt_cv_apple_cc_single_mod=no 8335192350Sdelphij if test -z "${LT_MULTI_MODULE}"; then 8336234449Sobrien # By default we will add the -single_module flag. You can override 8337234449Sobrien # by either setting the environment variable LT_MULTI_MODULE 8338234449Sobrien # non-empty at configure time, or by adding -multi_module to the 8339234449Sobrien # link flags. 8340234449Sobrien rm -rf libconftest.dylib* 8341234449Sobrien echo "int foo(void){return 1;}" > conftest.c 8342234449Sobrien echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8343234449Sobrien-dynamiclib -Wl,-single_module conftest.c" >&5 8344234449Sobrien $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8345234449Sobrien -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8346234449Sobrien _lt_result=$? 8347267897Sdelphij # If there is a non-empty error log, and "single_module" 8348267897Sdelphij # appears in it, assume the flag caused a linker warning 8349267897Sdelphij if test -s conftest.err && $GREP single_module conftest.err; then 8350267897Sdelphij cat conftest.err >&5 8351267897Sdelphij # Otherwise, if the output was created with a 0 exit code from 8352267897Sdelphij # the compiler, it worked. 8353267897Sdelphij elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8354234449Sobrien lt_cv_apple_cc_single_mod=yes 8355234449Sobrien else 8356234449Sobrien cat conftest.err >&5 8357234449Sobrien fi 8358234449Sobrien rm -rf libconftest.dylib* 8359234449Sobrien rm -f conftest.* 8360192350Sdelphij fi 8361192350Sdelphijfi 8362234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8363234449Sobrien$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8364267897Sdelphij 8365234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8366234449Sobrien$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8367234449Sobrienif ${lt_cv_ld_exported_symbols_list+:} false; then : 8368234449Sobrien $as_echo_n "(cached) " >&6 8369192350Sdelphijelse 8370192350Sdelphij lt_cv_ld_exported_symbols_list=no 8371192350Sdelphij save_LDFLAGS=$LDFLAGS 8372192350Sdelphij echo "_main" > conftest.sym 8373192350Sdelphij LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8374234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8375192350Sdelphij/* end confdefs.h. */ 8376192350Sdelphij 8377192350Sdelphijint 8378192350Sdelphijmain () 8379192350Sdelphij{ 8380192350Sdelphij 8381192350Sdelphij ; 8382192350Sdelphij return 0; 8383192350Sdelphij} 8384192350Sdelphij_ACEOF 8385234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 8386192350Sdelphij lt_cv_ld_exported_symbols_list=yes 8387192350Sdelphijelse 8388234449Sobrien lt_cv_ld_exported_symbols_list=no 8389192350Sdelphijfi 8390234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 8391234449Sobrien conftest$ac_exeext conftest.$ac_ext 8392234449Sobrien LDFLAGS="$save_LDFLAGS" 8393192350Sdelphij 8394192350Sdelphijfi 8395234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8396234449Sobrien$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8397267897Sdelphij 8398267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8399267897Sdelphij$as_echo_n "checking for -force_load linker flag... " >&6; } 8400267897Sdelphijif ${lt_cv_ld_force_load+:} false; then : 8401267897Sdelphij $as_echo_n "(cached) " >&6 8402267897Sdelphijelse 8403267897Sdelphij lt_cv_ld_force_load=no 8404267897Sdelphij cat > conftest.c << _LT_EOF 8405267897Sdelphijint forced_loaded() { return 2;} 8406267897Sdelphij_LT_EOF 8407267897Sdelphij echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8408267897Sdelphij $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8409267897Sdelphij echo "$AR cru libconftest.a conftest.o" >&5 8410267897Sdelphij $AR cru libconftest.a conftest.o 2>&5 8411267897Sdelphij echo "$RANLIB libconftest.a" >&5 8412267897Sdelphij $RANLIB libconftest.a 2>&5 8413267897Sdelphij cat > conftest.c << _LT_EOF 8414267897Sdelphijint main() { return 0;} 8415267897Sdelphij_LT_EOF 8416267897Sdelphij echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8417267897Sdelphij $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8418267897Sdelphij _lt_result=$? 8419267897Sdelphij if test -s conftest.err && $GREP force_load conftest.err; then 8420267897Sdelphij cat conftest.err >&5 8421267897Sdelphij elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8422267897Sdelphij lt_cv_ld_force_load=yes 8423267897Sdelphij else 8424267897Sdelphij cat conftest.err >&5 8425267897Sdelphij fi 8426267897Sdelphij rm -f conftest.err libconftest.a conftest conftest.c 8427267897Sdelphij rm -rf conftest.dSYM 8428267897Sdelphij 8429267897Sdelphijfi 8430267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8431267897Sdelphij$as_echo "$lt_cv_ld_force_load" >&6; } 8432192350Sdelphij case $host_os in 8433234449Sobrien rhapsody* | darwin1.[012]) 8434192350Sdelphij _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8435192350Sdelphij darwin1.*) 8436234449Sobrien _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8437234449Sobrien darwin*) # darwin 5.x on 8438192350Sdelphij # if running on 10.5 or later, the deployment target defaults 8439192350Sdelphij # to the OS version, if on x86, and 10.4, the deployment 8440192350Sdelphij # target defaults to 10.4. Don't you love it? 8441192350Sdelphij case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8442234449Sobrien 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8443234449Sobrien _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8444234449Sobrien 10.[012]*) 8445234449Sobrien _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8446234449Sobrien 10.*) 8447234449Sobrien _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8448192350Sdelphij esac 8449192350Sdelphij ;; 8450192350Sdelphij esac 8451192350Sdelphij if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8452192350Sdelphij _lt_dar_single_mod='$single_module' 8453192350Sdelphij fi 8454192350Sdelphij if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8455192350Sdelphij _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8456192350Sdelphij else 8457234449Sobrien _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8458192350Sdelphij fi 8459267897Sdelphij if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8460234449Sobrien _lt_dsymutil='~$DSYMUTIL $lib || :' 8461192350Sdelphij else 8462192350Sdelphij _lt_dsymutil= 8463192350Sdelphij fi 8464192350Sdelphij ;; 8465192350Sdelphij esac 8466192350Sdelphij 8467234449Sobrienfor ac_header in dlfcn.h 8468234449Sobriendo : 8469234449Sobrien ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8470234449Sobrien" 8471234449Sobrienif test "x$ac_cv_header_dlfcn_h" = xyes; then : 8472234449Sobrien cat >>confdefs.h <<_ACEOF 8473234449Sobrien#define HAVE_DLFCN_H 1 8474234449Sobrien_ACEOF 8475192350Sdelphij 8476234449Sobrienfi 8477159764Sobrien 8478234449Sobriendone 8479234449Sobrien 8480234449Sobrien 8481234449Sobrien 8482234449Sobrien 8483234449Sobrien 8484267897Sdelphij# Set options 8485267897Sdelphij# Check whether --enable-static was given. 8486267897Sdelphijif test "${enable_static+set}" = set; then : 8487267897Sdelphij enableval=$enable_static; p=${PACKAGE-default} 8488234449Sobrien case $enableval in 8489267897Sdelphij yes) enable_static=yes ;; 8490267897Sdelphij no) enable_static=no ;; 8491234449Sobrien *) 8492267897Sdelphij enable_static=no 8493234449Sobrien # Look at the argument we got. We use all the common list separators. 8494234449Sobrien lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8495234449Sobrien for pkg in $enableval; do 8496234449Sobrien IFS="$lt_save_ifs" 8497234449Sobrien if test "X$pkg" = "X$p"; then 8498267897Sdelphij enable_static=yes 8499234449Sobrien fi 8500234449Sobrien done 8501234449Sobrien IFS="$lt_save_ifs" 8502234449Sobrien ;; 8503234449Sobrien esac 8504234449Sobrienelse 8505267897Sdelphij enable_static=no 8506175296Sobrienfi 8507159764Sobrien 8508159764Sobrien 8509159764Sobrien 8510234449Sobrien 8511234449Sobrien 8512234449Sobrien 8513234449Sobrien 8514234449Sobrien 8515267897Sdelphij# Check whether --with-pic was given. 8516267897Sdelphijif test "${with_pic+set}" = set; then : 8517267897Sdelphij withval=$with_pic; lt_p=${PACKAGE-default} 8518267897Sdelphij case $withval in 8519267897Sdelphij yes|no) pic_mode=$withval ;; 8520234449Sobrien *) 8521267897Sdelphij pic_mode=default 8522234449Sobrien # Look at the argument we got. We use all the common list separators. 8523234449Sobrien lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8524267897Sdelphij for lt_pkg in $withval; do 8525234449Sobrien IFS="$lt_save_ifs" 8526267897Sdelphij if test "X$lt_pkg" = "X$lt_p"; then 8527267897Sdelphij pic_mode=yes 8528234449Sobrien fi 8529234449Sobrien done 8530234449Sobrien IFS="$lt_save_ifs" 8531234449Sobrien ;; 8532234449Sobrien esac 8533234449Sobrienelse 8534267897Sdelphij pic_mode=default 8535234449Sobrienfi 8536234449Sobrien 8537234449Sobrien 8538267897Sdelphijtest -z "$pic_mode" && pic_mode=yes 8539234449Sobrien 8540234449Sobrien 8541234449Sobrien 8542234449Sobrien 8543234449Sobrien 8544234449Sobrien 8545234449Sobrien 8546234449Sobrien 8547267897Sdelphij enable_dlopen=no 8548267897Sdelphij 8549267897Sdelphij 8550267897Sdelphij enable_win32_dll=no 8551267897Sdelphij 8552267897Sdelphij 8553267897Sdelphij # Check whether --enable-shared was given. 8554267897Sdelphijif test "${enable_shared+set}" = set; then : 8555267897Sdelphij enableval=$enable_shared; p=${PACKAGE-default} 8556267897Sdelphij case $enableval in 8557267897Sdelphij yes) enable_shared=yes ;; 8558267897Sdelphij no) enable_shared=no ;; 8559267897Sdelphij *) 8560267897Sdelphij enable_shared=no 8561267897Sdelphij # Look at the argument we got. We use all the common list separators. 8562267897Sdelphij lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8563267897Sdelphij for pkg in $enableval; do 8564267897Sdelphij IFS="$lt_save_ifs" 8565267897Sdelphij if test "X$pkg" = "X$p"; then 8566267897Sdelphij enable_shared=yes 8567267897Sdelphij fi 8568267897Sdelphij done 8569267897Sdelphij IFS="$lt_save_ifs" 8570267897Sdelphij ;; 8571267897Sdelphij esac 8572139368Sobrienelse 8573267897Sdelphij enable_shared=yes 8574175296Sobrienfi 8575175296Sobrien 8576234449Sobrien 8577139368Sobrien 8578234449Sobrien 8579234449Sobrien 8580234449Sobrien 8581234449Sobrien 8582234449Sobrien 8583234449Sobrien 8584267897Sdelphij 8585267897Sdelphij 8586234449Sobrien # Check whether --enable-fast-install was given. 8587234449Sobrienif test "${enable_fast_install+set}" = set; then : 8588234449Sobrien enableval=$enable_fast_install; p=${PACKAGE-default} 8589234449Sobrien case $enableval in 8590234449Sobrien yes) enable_fast_install=yes ;; 8591234449Sobrien no) enable_fast_install=no ;; 8592234449Sobrien *) 8593234449Sobrien enable_fast_install=no 8594234449Sobrien # Look at the argument we got. We use all the common list separators. 8595234449Sobrien lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8596234449Sobrien for pkg in $enableval; do 8597234449Sobrien IFS="$lt_save_ifs" 8598234449Sobrien if test "X$pkg" = "X$p"; then 8599234449Sobrien enable_fast_install=yes 8600234449Sobrien fi 8601234449Sobrien done 8602234449Sobrien IFS="$lt_save_ifs" 8603234449Sobrien ;; 8604234449Sobrien esac 8605234449Sobrienelse 8606234449Sobrien enable_fast_install=yes 8607234449Sobrienfi 8608234449Sobrien 8609234449Sobrien 8610234449Sobrien 8611234449Sobrien 8612234449Sobrien 8613234449Sobrien 8614234449Sobrien 8615234449Sobrien 8616234449Sobrien 8617234449Sobrien 8618234449Sobrien 8619234449Sobrien# This can be used to rebuild libtool when needed 8620234449SobrienLIBTOOL_DEPS="$ltmain" 8621234449Sobrien 8622234449Sobrien# Always use our own libtool. 8623234449SobrienLIBTOOL='$(SHELL) $(top_builddir)/libtool' 8624234449Sobrien 8625234449Sobrien 8626234449Sobrien 8627234449Sobrien 8628234449Sobrien 8629234449Sobrien 8630234449Sobrien 8631234449Sobrien 8632234449Sobrien 8633234449Sobrien 8634234449Sobrien 8635234449Sobrien 8636234449Sobrien 8637234449Sobrien 8638234449Sobrien 8639234449Sobrien 8640234449Sobrien 8641234449Sobrien 8642234449Sobrien 8643234449Sobrien 8644234449Sobrien 8645234449Sobrien 8646234449Sobrien 8647234449Sobrien 8648234449Sobrien 8649267897Sdelphij 8650267897Sdelphij 8651267897Sdelphij 8652267897Sdelphij 8653267897Sdelphij 8654234449Sobrientest -z "$LN_S" && LN_S="ln -s" 8655234449Sobrien 8656234449Sobrien 8657234449Sobrien 8658234449Sobrien 8659234449Sobrien 8660234449Sobrien 8661234449Sobrien 8662234449Sobrien 8663234449Sobrien 8664234449Sobrien 8665234449Sobrien 8666234449Sobrien 8667234449Sobrien 8668234449Sobrien 8669234449Sobrienif test -n "${ZSH_VERSION+set}" ; then 8670234449Sobrien setopt NO_GLOB_SUBST 8671234449Sobrienfi 8672234449Sobrien 8673234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8674234449Sobrien$as_echo_n "checking for objdir... " >&6; } 8675234449Sobrienif ${lt_cv_objdir+:} false; then : 8676234449Sobrien $as_echo_n "(cached) " >&6 8677234449Sobrienelse 8678234449Sobrien rm -f .libs 2>/dev/null 8679234449Sobrienmkdir .libs 2>/dev/null 8680234449Sobrienif test -d .libs; then 8681234449Sobrien lt_cv_objdir=.libs 8682234449Sobrienelse 8683234449Sobrien # MS-DOS does not allow filenames that begin with a dot. 8684234449Sobrien lt_cv_objdir=_libs 8685234449Sobrienfi 8686234449Sobrienrmdir .libs 2>/dev/null 8687234449Sobrienfi 8688234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8689234449Sobrien$as_echo "$lt_cv_objdir" >&6; } 8690234449Sobrienobjdir=$lt_cv_objdir 8691234449Sobrien 8692234449Sobrien 8693234449Sobrien 8694234449Sobrien 8695234449Sobrien 8696234449Sobriencat >>confdefs.h <<_ACEOF 8697234449Sobrien#define LT_OBJDIR "$lt_cv_objdir/" 8698234449Sobrien_ACEOF 8699234449Sobrien 8700234449Sobrien 8701234449Sobrien 8702234449Sobrien 8703234449Sobriencase $host_os in 8704234449Sobrienaix3*) 8705234449Sobrien # AIX sometimes has problems with the GCC collect2 program. For some 8706234449Sobrien # reason, if we set the COLLECT_NAMES environment variable, the problems 8707234449Sobrien # vanish in a puff of smoke. 8708234449Sobrien if test "X${COLLECT_NAMES+set}" != Xset; then 8709234449Sobrien COLLECT_NAMES= 8710234449Sobrien export COLLECT_NAMES 8711234449Sobrien fi 8712234449Sobrien ;; 8713234449Sobrienesac 8714234449Sobrien 8715234449Sobrien# Global variables: 8716234449Sobrienofile=libtool 8717234449Sobriencan_build_shared=yes 8718234449Sobrien 8719234449Sobrien# All known linkers require a `.a' archive for static linking (except MSVC, 8720234449Sobrien# which needs '.lib'). 8721234449Sobrienlibext=a 8722234449Sobrien 8723234449Sobrienwith_gnu_ld="$lt_cv_prog_gnu_ld" 8724234449Sobrien 8725234449Sobrienold_CC="$CC" 8726234449Sobrienold_CFLAGS="$CFLAGS" 8727234449Sobrien 8728234449Sobrien# Set sane defaults for various variables 8729234449Sobrientest -z "$CC" && CC=cc 8730234449Sobrientest -z "$LTCC" && LTCC=$CC 8731234449Sobrientest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8732234449Sobrientest -z "$LD" && LD=ld 8733234449Sobrientest -z "$ac_objext" && ac_objext=o 8734234449Sobrien 8735234449Sobrienfor cc_temp in $compiler""; do 8736234449Sobrien case $cc_temp in 8737234449Sobrien compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8738234449Sobrien distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8739234449Sobrien \-*) ;; 8740234449Sobrien *) break;; 8741234449Sobrien esac 8742234449Sobriendone 8743267897Sdelphijcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8744234449Sobrien 8745234449Sobrien 8746234449Sobrien# Only perform the check for file, if the check method requires it 8747234449Sobrientest -z "$MAGIC_CMD" && MAGIC_CMD=file 8748234449Sobriencase $deplibs_check_method in 8749234449Sobrienfile_magic*) 8750234449Sobrien if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8751234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8752234449Sobrien$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8753234449Sobrienif ${lt_cv_path_MAGIC_CMD+:} false; then : 8754234449Sobrien $as_echo_n "(cached) " >&6 8755234449Sobrienelse 8756234449Sobrien case $MAGIC_CMD in 8757234449Sobrien[\\/*] | ?:[\\/]*) 8758234449Sobrien lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8759234449Sobrien ;; 8760234449Sobrien*) 8761234449Sobrien lt_save_MAGIC_CMD="$MAGIC_CMD" 8762234449Sobrien lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8763234449Sobrien ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8764234449Sobrien for ac_dir in $ac_dummy; do 8765234449Sobrien IFS="$lt_save_ifs" 8766234449Sobrien test -z "$ac_dir" && ac_dir=. 8767234449Sobrien if test -f $ac_dir/${ac_tool_prefix}file; then 8768234449Sobrien lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8769234449Sobrien if test -n "$file_magic_test_file"; then 8770234449Sobrien case $deplibs_check_method in 8771234449Sobrien "file_magic "*) 8772234449Sobrien file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8773234449Sobrien MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8774234449Sobrien if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8775234449Sobrien $EGREP "$file_magic_regex" > /dev/null; then 8776234449Sobrien : 8777234449Sobrien else 8778234449Sobrien cat <<_LT_EOF 1>&2 8779234449Sobrien 8780234449Sobrien*** Warning: the command libtool uses to detect shared libraries, 8781234449Sobrien*** $file_magic_cmd, produces output that libtool cannot recognize. 8782234449Sobrien*** The result is that libtool may fail to recognize shared libraries 8783234449Sobrien*** as such. This will affect the creation of libtool libraries that 8784234449Sobrien*** depend on shared libraries, but programs linked with such libtool 8785234449Sobrien*** libraries will work regardless of this problem. Nevertheless, you 8786234449Sobrien*** may want to report the problem to your system manager and/or to 8787234449Sobrien*** bug-libtool@gnu.org 8788234449Sobrien 8789234449Sobrien_LT_EOF 8790234449Sobrien fi ;; 8791234449Sobrien esac 8792234449Sobrien fi 8793234449Sobrien break 8794234449Sobrien fi 8795234449Sobrien done 8796234449Sobrien IFS="$lt_save_ifs" 8797234449Sobrien MAGIC_CMD="$lt_save_MAGIC_CMD" 8798234449Sobrien ;; 8799234449Sobrienesac 8800234449Sobrienfi 8801234449Sobrien 8802234449SobrienMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8803234449Sobrienif test -n "$MAGIC_CMD"; then 8804234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8805234449Sobrien$as_echo "$MAGIC_CMD" >&6; } 8806234449Sobrienelse 8807234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8808234449Sobrien$as_echo "no" >&6; } 8809234449Sobrienfi 8810234449Sobrien 8811234449Sobrien 8812234449Sobrien 8813234449Sobrien 8814234449Sobrien 8815234449Sobrienif test -z "$lt_cv_path_MAGIC_CMD"; then 8816234449Sobrien if test -n "$ac_tool_prefix"; then 8817234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8818234449Sobrien$as_echo_n "checking for file... " >&6; } 8819234449Sobrienif ${lt_cv_path_MAGIC_CMD+:} false; then : 8820234449Sobrien $as_echo_n "(cached) " >&6 8821234449Sobrienelse 8822234449Sobrien case $MAGIC_CMD in 8823234449Sobrien[\\/*] | ?:[\\/]*) 8824234449Sobrien lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8825234449Sobrien ;; 8826234449Sobrien*) 8827234449Sobrien lt_save_MAGIC_CMD="$MAGIC_CMD" 8828234449Sobrien lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8829234449Sobrien ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8830234449Sobrien for ac_dir in $ac_dummy; do 8831234449Sobrien IFS="$lt_save_ifs" 8832234449Sobrien test -z "$ac_dir" && ac_dir=. 8833234449Sobrien if test -f $ac_dir/file; then 8834234449Sobrien lt_cv_path_MAGIC_CMD="$ac_dir/file" 8835234449Sobrien if test -n "$file_magic_test_file"; then 8836234449Sobrien case $deplibs_check_method in 8837234449Sobrien "file_magic "*) 8838234449Sobrien file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8839234449Sobrien MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8840234449Sobrien if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8841234449Sobrien $EGREP "$file_magic_regex" > /dev/null; then 8842234449Sobrien : 8843234449Sobrien else 8844234449Sobrien cat <<_LT_EOF 1>&2 8845234449Sobrien 8846234449Sobrien*** Warning: the command libtool uses to detect shared libraries, 8847234449Sobrien*** $file_magic_cmd, produces output that libtool cannot recognize. 8848234449Sobrien*** The result is that libtool may fail to recognize shared libraries 8849234449Sobrien*** as such. This will affect the creation of libtool libraries that 8850234449Sobrien*** depend on shared libraries, but programs linked with such libtool 8851234449Sobrien*** libraries will work regardless of this problem. Nevertheless, you 8852234449Sobrien*** may want to report the problem to your system manager and/or to 8853234449Sobrien*** bug-libtool@gnu.org 8854234449Sobrien 8855234449Sobrien_LT_EOF 8856234449Sobrien fi ;; 8857234449Sobrien esac 8858234449Sobrien fi 8859234449Sobrien break 8860234449Sobrien fi 8861234449Sobrien done 8862234449Sobrien IFS="$lt_save_ifs" 8863234449Sobrien MAGIC_CMD="$lt_save_MAGIC_CMD" 8864234449Sobrien ;; 8865234449Sobrienesac 8866234449Sobrienfi 8867234449Sobrien 8868234449SobrienMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8869234449Sobrienif test -n "$MAGIC_CMD"; then 8870234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8871234449Sobrien$as_echo "$MAGIC_CMD" >&6; } 8872234449Sobrienelse 8873234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8874234449Sobrien$as_echo "no" >&6; } 8875234449Sobrienfi 8876234449Sobrien 8877234449Sobrien 8878234449Sobrien else 8879234449Sobrien MAGIC_CMD=: 8880234449Sobrien fi 8881234449Sobrienfi 8882234449Sobrien 8883234449Sobrien fi 8884234449Sobrien ;; 8885234449Sobrienesac 8886234449Sobrien 8887159764Sobrien# Use C for the default configuration in the libtool script 8888234449Sobrien 8889159764Sobrienlt_save_CC="$CC" 8890159764Sobrienac_ext=c 8891159764Sobrienac_cpp='$CPP $CPPFLAGS' 8892159764Sobrienac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8893159764Sobrienac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8894159764Sobrienac_compiler_gnu=$ac_cv_c_compiler_gnu 8895159764Sobrien 8896159764Sobrien 8897159764Sobrien# Source file extension for C test sources. 8898159764Sobrienac_ext=c 8899159764Sobrien 8900159764Sobrien# Object file extension for compiled C test sources. 8901159764Sobrienobjext=o 8902159764Sobrienobjext=$objext 8903159764Sobrien 8904159764Sobrien# Code to be used in simple compile tests 8905192350Sdelphijlt_simple_compile_test_code="int some_variable = 0;" 8906159764Sobrien 8907159764Sobrien# Code to be used in simple link tests 8908192350Sdelphijlt_simple_link_test_code='int main(){return(0);}' 8909159764Sobrien 8910159764Sobrien 8911234449Sobrien 8912234449Sobrien 8913234449Sobrien 8914234449Sobrien 8915234449Sobrien 8916159764Sobrien# If no C compiler was specified, use CC. 8917159764SobrienLTCC=${LTCC-"$CC"} 8918159764Sobrien 8919192350Sdelphij# If no C compiler flags were specified, use CFLAGS. 8920192350SdelphijLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8921192350Sdelphij 8922159764Sobrien# Allow CC to be a program name with arguments. 8923159764Sobriencompiler=$CC 8924159764Sobrien 8925234449Sobrien# Save the default compiler, since it gets overwritten when the other 8926234449Sobrien# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8927234449Sobriencompiler_DEFAULT=$CC 8928159764Sobrien 8929159764Sobrien# save warnings/boilerplate of simple test code 8930159764Sobrienac_outfile=conftest.$ac_objext 8931192350Sdelphijecho "$lt_simple_compile_test_code" >conftest.$ac_ext 8932192350Sdelphijeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8933159764Sobrien_lt_compiler_boilerplate=`cat conftest.err` 8934234449Sobrien$RM conftest* 8935159764Sobrien 8936159764Sobrienac_outfile=conftest.$ac_objext 8937192350Sdelphijecho "$lt_simple_link_test_code" >conftest.$ac_ext 8938192350Sdelphijeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8939159764Sobrien_lt_linker_boilerplate=`cat conftest.err` 8940234449Sobrien$RM -r conftest* 8941159764Sobrien 8942159764Sobrien 8943234449Sobrien## CAVEAT EMPTOR: 8944234449Sobrien## There is no encapsulation within the following macros, do not change 8945234449Sobrien## the running order or otherwise move them around unless you know exactly 8946234449Sobrien## what you are doing... 8947234449Sobrienif test -n "$compiler"; then 8948159764Sobrien 8949159764Sobrienlt_prog_compiler_no_builtin_flag= 8950159764Sobrien 8951159764Sobrienif test "$GCC" = yes; then 8952267897Sdelphij case $cc_basename in 8953267897Sdelphij nvcc*) 8954267897Sdelphij lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8955267897Sdelphij *) 8956267897Sdelphij lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8957267897Sdelphij esac 8958159764Sobrien 8959234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8960234449Sobrien$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8961234449Sobrienif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8962234449Sobrien $as_echo_n "(cached) " >&6 8963159764Sobrienelse 8964159764Sobrien lt_cv_prog_compiler_rtti_exceptions=no 8965234449Sobrien ac_outfile=conftest.$ac_objext 8966192350Sdelphij echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8967159764Sobrien lt_compiler_flag="-fno-rtti -fno-exceptions" 8968159764Sobrien # Insert the option either (1) after the last *FLAGS variable, or 8969159764Sobrien # (2) before a word containing "conftest.", or (3) at the end. 8970159764Sobrien # Note that $ac_compile itself does not contain backslashes and begins 8971159764Sobrien # with a dollar sign (not a hyphen), so the echo should work correctly. 8972159764Sobrien # The option is referenced via a variable to avoid confusing sed. 8973159764Sobrien lt_compile=`echo "$ac_compile" | $SED \ 8974192350Sdelphij -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8975159764Sobrien -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8976159764Sobrien -e 's:$: $lt_compiler_flag:'` 8977267897Sdelphij (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8978159764Sobrien (eval "$lt_compile" 2>conftest.err) 8979159764Sobrien ac_status=$? 8980159764Sobrien cat conftest.err >&5 8981267897Sdelphij echo "$as_me:$LINENO: \$? = $ac_status" >&5 8982159764Sobrien if (exit $ac_status) && test -s "$ac_outfile"; then 8983159764Sobrien # The compiler can only warn and ignore the option if not recognized 8984159764Sobrien # So say no if there are warnings other than the usual output. 8985267897Sdelphij $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8986192350Sdelphij $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8987192350Sdelphij if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8988159764Sobrien lt_cv_prog_compiler_rtti_exceptions=yes 8989159764Sobrien fi 8990159764Sobrien fi 8991234449Sobrien $RM conftest* 8992159764Sobrien 8993159764Sobrienfi 8994234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8995234449Sobrien$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8996159764Sobrien 8997159764Sobrienif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8998159764Sobrien lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8999159764Sobrienelse 9000159764Sobrien : 9001159764Sobrienfi 9002159764Sobrien 9003159764Sobrienfi 9004159764Sobrien 9005234449Sobrien 9006234449Sobrien 9007234449Sobrien 9008234449Sobrien 9009234449Sobrien 9010234449Sobrien lt_prog_compiler_wl= 9011159764Sobrienlt_prog_compiler_pic= 9012159764Sobrienlt_prog_compiler_static= 9013159764Sobrien 9014159764Sobrien 9015139368Sobrien if test "$GCC" = yes; then 9016159764Sobrien lt_prog_compiler_wl='-Wl,' 9017159764Sobrien lt_prog_compiler_static='-static' 9018139368Sobrien 9019139368Sobrien case $host_os in 9020159764Sobrien aix*) 9021159764Sobrien # All AIX code is PIC. 9022159764Sobrien if test "$host_cpu" = ia64; then 9023159764Sobrien # AIX 5 now supports IA64 processor 9024159764Sobrien lt_prog_compiler_static='-Bstatic' 9025159764Sobrien fi 9026133359Sobrien ;; 9027159764Sobrien 9028139368Sobrien amigaos*) 9029234449Sobrien case $host_cpu in 9030234449Sobrien powerpc) 9031234449Sobrien # see comment about AmigaOS4 .so support 9032234449Sobrien lt_prog_compiler_pic='-fPIC' 9033234449Sobrien ;; 9034234449Sobrien m68k) 9035234449Sobrien # FIXME: we need at least 68020 code to build shared libraries, but 9036234449Sobrien # adding the `-m68020' flag to GCC prevents building anything better, 9037234449Sobrien # like `-m68040'. 9038234449Sobrien lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9039234449Sobrien ;; 9040234449Sobrien esac 9041139368Sobrien ;; 9042159764Sobrien 9043192350Sdelphij beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9044139368Sobrien # PIC is the default for these OSes. 9045139368Sobrien ;; 9046159764Sobrien 9047234449Sobrien mingw* | cygwin* | pw32* | os2* | cegcc*) 9048159764Sobrien # This hack is so that the source file can tell whether it is being 9049159764Sobrien # built for inclusion in a dll (and should export symbols for example). 9050192350Sdelphij # Although the cygwin gcc ignores -fPIC, still need this for old-style 9051192350Sdelphij # (--disable-auto-import) libraries 9052159764Sobrien lt_prog_compiler_pic='-DDLL_EXPORT' 9053159764Sobrien ;; 9054159764Sobrien 9055139368Sobrien darwin* | rhapsody*) 9056139368Sobrien # PIC is the default on this platform 9057139368Sobrien # Common symbols not allowed in MH_DYLIB files 9058159764Sobrien lt_prog_compiler_pic='-fno-common' 9059139368Sobrien ;; 9060159764Sobrien 9061267897Sdelphij haiku*) 9062267897Sdelphij # PIC is the default for Haiku. 9063267897Sdelphij # The "-static" flag exists, but is broken. 9064267897Sdelphij lt_prog_compiler_static= 9065267897Sdelphij ;; 9066267897Sdelphij 9067234449Sobrien hpux*) 9068234449Sobrien # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9069234449Sobrien # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9070234449Sobrien # sets the default TLS model and affects inlining. 9071234449Sobrien case $host_cpu in 9072234449Sobrien hppa*64*) 9073234449Sobrien # +Z the default 9074234449Sobrien ;; 9075234449Sobrien *) 9076234449Sobrien lt_prog_compiler_pic='-fPIC' 9077234449Sobrien ;; 9078234449Sobrien esac 9079234449Sobrien ;; 9080234449Sobrien 9081192350Sdelphij interix[3-9]*) 9082192350Sdelphij # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9083192350Sdelphij # Instead, we relocate shared libraries at runtime. 9084192350Sdelphij ;; 9085192350Sdelphij 9086159764Sobrien msdosdjgpp*) 9087159764Sobrien # Just because we use GCC doesn't mean we suddenly get shared libraries 9088159764Sobrien # on systems that don't support them. 9089159764Sobrien lt_prog_compiler_can_build_shared=no 9090159764Sobrien enable_shared=no 9091139368Sobrien ;; 9092159764Sobrien 9093234449Sobrien *nto* | *qnx*) 9094234449Sobrien # QNX uses GNU C++, but need to define -shared option too, otherwise 9095234449Sobrien # it will coredump. 9096234449Sobrien lt_prog_compiler_pic='-fPIC -shared' 9097234449Sobrien ;; 9098234449Sobrien 9099139368Sobrien sysv4*MP*) 9100139368Sobrien if test -d /usr/nec; then 9101159764Sobrien lt_prog_compiler_pic=-Kconform_pic 9102139368Sobrien fi 9103139368Sobrien ;; 9104159764Sobrien 9105133359Sobrien *) 9106159764Sobrien lt_prog_compiler_pic='-fPIC' 9107133359Sobrien ;; 9108139368Sobrien esac 9109267897Sdelphij 9110267897Sdelphij case $cc_basename in 9111267897Sdelphij nvcc*) # Cuda Compiler Driver 2.2 9112267897Sdelphij lt_prog_compiler_wl='-Xlinker ' 9113267897Sdelphij if test -n "$lt_prog_compiler_pic"; then 9114267897Sdelphij lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9115267897Sdelphij fi 9116267897Sdelphij ;; 9117267897Sdelphij esac 9118133359Sobrien else 9119159764Sobrien # PORTME Check for flag to pass linker flags through the system compiler. 9120139368Sobrien case $host_os in 9121159764Sobrien aix*) 9122159764Sobrien lt_prog_compiler_wl='-Wl,' 9123139368Sobrien if test "$host_cpu" = ia64; then 9124139368Sobrien # AIX 5 now supports IA64 processor 9125159764Sobrien lt_prog_compiler_static='-Bstatic' 9126139368Sobrien else 9127159764Sobrien lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9128139368Sobrien fi 9129139368Sobrien ;; 9130133359Sobrien 9131234449Sobrien mingw* | cygwin* | pw32* | os2* | cegcc*) 9132159764Sobrien # This hack is so that the source file can tell whether it is being 9133159764Sobrien # built for inclusion in a dll (and should export symbols for example). 9134159764Sobrien lt_prog_compiler_pic='-DDLL_EXPORT' 9135159764Sobrien ;; 9136159764Sobrien 9137139368Sobrien hpux9* | hpux10* | hpux11*) 9138159764Sobrien lt_prog_compiler_wl='-Wl,' 9139159764Sobrien # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9140159764Sobrien # not for PA HP-UX. 9141192350Sdelphij case $host_cpu in 9142159764Sobrien hppa*64*|ia64*) 9143159764Sobrien # +Z the default 9144159764Sobrien ;; 9145159764Sobrien *) 9146159764Sobrien lt_prog_compiler_pic='+Z' 9147159764Sobrien ;; 9148159764Sobrien esac 9149159764Sobrien # Is there a better lt_prog_compiler_static that works with the bundled CC? 9150159764Sobrien lt_prog_compiler_static='${wl}-a ${wl}archive' 9151139368Sobrien ;; 9152133359Sobrien 9153159764Sobrien irix5* | irix6* | nonstopux*) 9154159764Sobrien lt_prog_compiler_wl='-Wl,' 9155139368Sobrien # PIC (with -KPIC) is the default. 9156159764Sobrien lt_prog_compiler_static='-non_shared' 9157139368Sobrien ;; 9158139368Sobrien 9159267897Sdelphij linux* | k*bsd*-gnu | kopensolaris*-gnu) 9160159764Sobrien case $cc_basename in 9161234449Sobrien # old Intel for x86_64 which still supported -KPIC. 9162234449Sobrien ecc*) 9163159764Sobrien lt_prog_compiler_wl='-Wl,' 9164159764Sobrien lt_prog_compiler_pic='-KPIC' 9165159764Sobrien lt_prog_compiler_static='-static' 9166159764Sobrien ;; 9167234449Sobrien # icc used to be incompatible with GCC. 9168234449Sobrien # ICC 10 doesn't accept -KPIC any more. 9169234449Sobrien icc* | ifort*) 9170234449Sobrien lt_prog_compiler_wl='-Wl,' 9171234449Sobrien lt_prog_compiler_pic='-fPIC' 9172234449Sobrien lt_prog_compiler_static='-static' 9173234449Sobrien ;; 9174234449Sobrien # Lahey Fortran 8.1. 9175234449Sobrien lf95*) 9176234449Sobrien lt_prog_compiler_wl='-Wl,' 9177234449Sobrien lt_prog_compiler_pic='--shared' 9178234449Sobrien lt_prog_compiler_static='--static' 9179234449Sobrien ;; 9180267897Sdelphij nagfor*) 9181267897Sdelphij # NAG Fortran compiler 9182267897Sdelphij lt_prog_compiler_wl='-Wl,-Wl,,' 9183267897Sdelphij lt_prog_compiler_pic='-PIC' 9184267897Sdelphij lt_prog_compiler_static='-Bstatic' 9185267897Sdelphij ;; 9186267897Sdelphij pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9187159764Sobrien # Portland Group compilers (*not* the Pentium gcc compiler, 9188159764Sobrien # which looks to be a dead project) 9189159764Sobrien lt_prog_compiler_wl='-Wl,' 9190159764Sobrien lt_prog_compiler_pic='-fpic' 9191192350Sdelphij lt_prog_compiler_static='-Bstatic' 9192159764Sobrien ;; 9193159764Sobrien ccc*) 9194159764Sobrien lt_prog_compiler_wl='-Wl,' 9195159764Sobrien # All Alpha code is PIC. 9196159764Sobrien lt_prog_compiler_static='-non_shared' 9197159764Sobrien ;; 9198267897Sdelphij xl* | bgxl* | bgf* | mpixl*) 9199267897Sdelphij # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9200234449Sobrien lt_prog_compiler_wl='-Wl,' 9201234449Sobrien lt_prog_compiler_pic='-qpic' 9202234449Sobrien lt_prog_compiler_static='-qstaticlink' 9203234449Sobrien ;; 9204192350Sdelphij *) 9205234449Sobrien case `$CC -V 2>&1 | sed 5q` in 9206267897Sdelphij *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9207267897Sdelphij # Sun Fortran 8.3 passes all unrecognized flags to the linker 9208267897Sdelphij lt_prog_compiler_pic='-KPIC' 9209267897Sdelphij lt_prog_compiler_static='-Bstatic' 9210267897Sdelphij lt_prog_compiler_wl='' 9211267897Sdelphij ;; 9212267897Sdelphij *Sun\ F* | *Sun*Fortran*) 9213267897Sdelphij lt_prog_compiler_pic='-KPIC' 9214267897Sdelphij lt_prog_compiler_static='-Bstatic' 9215267897Sdelphij lt_prog_compiler_wl='-Qoption ld ' 9216267897Sdelphij ;; 9217192350Sdelphij *Sun\ C*) 9218192350Sdelphij # Sun C 5.9 9219192350Sdelphij lt_prog_compiler_pic='-KPIC' 9220192350Sdelphij lt_prog_compiler_static='-Bstatic' 9221192350Sdelphij lt_prog_compiler_wl='-Wl,' 9222192350Sdelphij ;; 9223267897Sdelphij *Intel*\ [CF]*Compiler*) 9224267897Sdelphij lt_prog_compiler_wl='-Wl,' 9225267897Sdelphij lt_prog_compiler_pic='-fPIC' 9226267897Sdelphij lt_prog_compiler_static='-static' 9227267897Sdelphij ;; 9228267897Sdelphij *Portland\ Group*) 9229267897Sdelphij lt_prog_compiler_wl='-Wl,' 9230267897Sdelphij lt_prog_compiler_pic='-fpic' 9231192350Sdelphij lt_prog_compiler_static='-Bstatic' 9232192350Sdelphij ;; 9233192350Sdelphij esac 9234192350Sdelphij ;; 9235159764Sobrien esac 9236139368Sobrien ;; 9237139368Sobrien 9238234449Sobrien newsos6) 9239234449Sobrien lt_prog_compiler_pic='-KPIC' 9240234449Sobrien lt_prog_compiler_static='-Bstatic' 9241234449Sobrien ;; 9242234449Sobrien 9243234449Sobrien *nto* | *qnx*) 9244234449Sobrien # QNX uses GNU C++, but need to define -shared option too, otherwise 9245234449Sobrien # it will coredump. 9246234449Sobrien lt_prog_compiler_pic='-fPIC -shared' 9247234449Sobrien ;; 9248234449Sobrien 9249139368Sobrien osf3* | osf4* | osf5*) 9250159764Sobrien lt_prog_compiler_wl='-Wl,' 9251139368Sobrien # All OSF/1 code is PIC. 9252159764Sobrien lt_prog_compiler_static='-non_shared' 9253139368Sobrien ;; 9254139368Sobrien 9255192350Sdelphij rdos*) 9256192350Sdelphij lt_prog_compiler_static='-non_shared' 9257139368Sobrien ;; 9258139368Sobrien 9259139368Sobrien solaris*) 9260159764Sobrien lt_prog_compiler_pic='-KPIC' 9261159764Sobrien lt_prog_compiler_static='-Bstatic' 9262159764Sobrien case $cc_basename in 9263267897Sdelphij f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9264159764Sobrien lt_prog_compiler_wl='-Qoption ld ';; 9265159764Sobrien *) 9266159764Sobrien lt_prog_compiler_wl='-Wl,';; 9267159764Sobrien esac 9268139368Sobrien ;; 9269139368Sobrien 9270139368Sobrien sunos4*) 9271159764Sobrien lt_prog_compiler_wl='-Qoption ld ' 9272159764Sobrien lt_prog_compiler_pic='-PIC' 9273159764Sobrien lt_prog_compiler_static='-Bstatic' 9274139368Sobrien ;; 9275139368Sobrien 9276192350Sdelphij sysv4 | sysv4.2uw2* | sysv4.3*) 9277159764Sobrien lt_prog_compiler_wl='-Wl,' 9278159764Sobrien lt_prog_compiler_pic='-KPIC' 9279159764Sobrien lt_prog_compiler_static='-Bstatic' 9280139368Sobrien ;; 9281139368Sobrien 9282139368Sobrien sysv4*MP*) 9283139368Sobrien if test -d /usr/nec ;then 9284159764Sobrien lt_prog_compiler_pic='-Kconform_pic' 9285159764Sobrien lt_prog_compiler_static='-Bstatic' 9286139368Sobrien fi 9287139368Sobrien ;; 9288139368Sobrien 9289192350Sdelphij sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9290192350Sdelphij lt_prog_compiler_wl='-Wl,' 9291192350Sdelphij lt_prog_compiler_pic='-KPIC' 9292192350Sdelphij lt_prog_compiler_static='-Bstatic' 9293192350Sdelphij ;; 9294192350Sdelphij 9295159764Sobrien unicos*) 9296159764Sobrien lt_prog_compiler_wl='-Wl,' 9297159764Sobrien lt_prog_compiler_can_build_shared=no 9298159764Sobrien ;; 9299159764Sobrien 9300159764Sobrien uts4*) 9301159764Sobrien lt_prog_compiler_pic='-pic' 9302159764Sobrien lt_prog_compiler_static='-Bstatic' 9303159764Sobrien ;; 9304159764Sobrien 9305139368Sobrien *) 9306159764Sobrien lt_prog_compiler_can_build_shared=no 9307139368Sobrien ;; 9308133359Sobrien esac 9309133359Sobrien fi 9310139368Sobrien 9311234449Sobriencase $host_os in 9312234449Sobrien # For platforms which do not support PIC, -DPIC is meaningless: 9313234449Sobrien *djgpp*) 9314234449Sobrien lt_prog_compiler_pic= 9315234449Sobrien ;; 9316234449Sobrien *) 9317234449Sobrien lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9318234449Sobrien ;; 9319234449Sobrienesac 9320159764Sobrien 9321267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9322267897Sdelphij$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9323267897Sdelphijif ${lt_cv_prog_compiler_pic+:} false; then : 9324267897Sdelphij $as_echo_n "(cached) " >&6 9325267897Sdelphijelse 9326267897Sdelphij lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9327267897Sdelphijfi 9328267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9329267897Sdelphij$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9330267897Sdelphijlt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9331234449Sobrien 9332159764Sobrien# 9333159764Sobrien# Check to make sure the PIC flag actually works. 9334159764Sobrien# 9335159764Sobrienif test -n "$lt_prog_compiler_pic"; then 9336234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9337234449Sobrien$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9338234449Sobrienif ${lt_cv_prog_compiler_pic_works+:} false; then : 9339234449Sobrien $as_echo_n "(cached) " >&6 9340159764Sobrienelse 9341192350Sdelphij lt_cv_prog_compiler_pic_works=no 9342234449Sobrien ac_outfile=conftest.$ac_objext 9343192350Sdelphij echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9344159764Sobrien lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9345159764Sobrien # Insert the option either (1) after the last *FLAGS variable, or 9346159764Sobrien # (2) before a word containing "conftest.", or (3) at the end. 9347159764Sobrien # Note that $ac_compile itself does not contain backslashes and begins 9348159764Sobrien # with a dollar sign (not a hyphen), so the echo should work correctly. 9349159764Sobrien # The option is referenced via a variable to avoid confusing sed. 9350159764Sobrien lt_compile=`echo "$ac_compile" | $SED \ 9351192350Sdelphij -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9352159764Sobrien -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9353159764Sobrien -e 's:$: $lt_compiler_flag:'` 9354267897Sdelphij (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9355159764Sobrien (eval "$lt_compile" 2>conftest.err) 9356159764Sobrien ac_status=$? 9357159764Sobrien cat conftest.err >&5 9358267897Sdelphij echo "$as_me:$LINENO: \$? = $ac_status" >&5 9359159764Sobrien if (exit $ac_status) && test -s "$ac_outfile"; then 9360159764Sobrien # The compiler can only warn and ignore the option if not recognized 9361159764Sobrien # So say no if there are warnings other than the usual output. 9362267897Sdelphij $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9363192350Sdelphij $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9364192350Sdelphij if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9365192350Sdelphij lt_cv_prog_compiler_pic_works=yes 9366159764Sobrien fi 9367159764Sobrien fi 9368234449Sobrien $RM conftest* 9369159764Sobrien 9370133359Sobrienfi 9371234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9372234449Sobrien$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9373133359Sobrien 9374192350Sdelphijif test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9375159764Sobrien case $lt_prog_compiler_pic in 9376159764Sobrien "" | " "*) ;; 9377159764Sobrien *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9378159764Sobrien esac 9379139368Sobrienelse 9380159764Sobrien lt_prog_compiler_pic= 9381159764Sobrien lt_prog_compiler_can_build_shared=no 9382159764Sobrienfi 9383133359Sobrien 9384159764Sobrienfi 9385159764Sobrien 9386234449Sobrien 9387234449Sobrien 9388234449Sobrien 9389234449Sobrien 9390234449Sobrien 9391267897Sdelphij 9392267897Sdelphij 9393267897Sdelphij 9394267897Sdelphij 9395267897Sdelphij 9396192350Sdelphij# 9397192350Sdelphij# Check to make sure the static flag actually works. 9398192350Sdelphij# 9399192350Sdelphijwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9400234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9401234449Sobrien$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9402234449Sobrienif ${lt_cv_prog_compiler_static_works+:} false; then : 9403234449Sobrien $as_echo_n "(cached) " >&6 9404192350Sdelphijelse 9405192350Sdelphij lt_cv_prog_compiler_static_works=no 9406192350Sdelphij save_LDFLAGS="$LDFLAGS" 9407192350Sdelphij LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9408192350Sdelphij echo "$lt_simple_link_test_code" > conftest.$ac_ext 9409192350Sdelphij if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9410192350Sdelphij # The linker can only warn and ignore the option if not recognized 9411192350Sdelphij # So say no if there are warnings 9412192350Sdelphij if test -s conftest.err; then 9413192350Sdelphij # Append any errors to the config.log. 9414192350Sdelphij cat conftest.err 1>&5 9415267897Sdelphij $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9416192350Sdelphij $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9417192350Sdelphij if diff conftest.exp conftest.er2 >/dev/null; then 9418192350Sdelphij lt_cv_prog_compiler_static_works=yes 9419192350Sdelphij fi 9420192350Sdelphij else 9421192350Sdelphij lt_cv_prog_compiler_static_works=yes 9422192350Sdelphij fi 9423192350Sdelphij fi 9424234449Sobrien $RM -r conftest* 9425192350Sdelphij LDFLAGS="$save_LDFLAGS" 9426192350Sdelphij 9427192350Sdelphijfi 9428234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9429234449Sobrien$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9430192350Sdelphij 9431192350Sdelphijif test x"$lt_cv_prog_compiler_static_works" = xyes; then 9432192350Sdelphij : 9433192350Sdelphijelse 9434192350Sdelphij lt_prog_compiler_static= 9435192350Sdelphijfi 9436192350Sdelphij 9437192350Sdelphij 9438234449Sobrien 9439234449Sobrien 9440234449Sobrien 9441234449Sobrien 9442234449Sobrien 9443234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9444234449Sobrien$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9445234449Sobrienif ${lt_cv_prog_compiler_c_o+:} false; then : 9446234449Sobrien $as_echo_n "(cached) " >&6 9447139368Sobrienelse 9448159764Sobrien lt_cv_prog_compiler_c_o=no 9449234449Sobrien $RM -r conftest 2>/dev/null 9450159764Sobrien mkdir conftest 9451159764Sobrien cd conftest 9452159764Sobrien mkdir out 9453192350Sdelphij echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9454133359Sobrien 9455159764Sobrien lt_compiler_flag="-o out/conftest2.$ac_objext" 9456159764Sobrien # Insert the option either (1) after the last *FLAGS variable, or 9457159764Sobrien # (2) before a word containing "conftest.", or (3) at the end. 9458159764Sobrien # Note that $ac_compile itself does not contain backslashes and begins 9459159764Sobrien # with a dollar sign (not a hyphen), so the echo should work correctly. 9460159764Sobrien lt_compile=`echo "$ac_compile" | $SED \ 9461192350Sdelphij -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9462159764Sobrien -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9463159764Sobrien -e 's:$: $lt_compiler_flag:'` 9464267897Sdelphij (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9465159764Sobrien (eval "$lt_compile" 2>out/conftest.err) 9466159764Sobrien ac_status=$? 9467159764Sobrien cat out/conftest.err >&5 9468267897Sdelphij echo "$as_me:$LINENO: \$? = $ac_status" >&5 9469159764Sobrien if (exit $ac_status) && test -s out/conftest2.$ac_objext 9470159764Sobrien then 9471159764Sobrien # The compiler can only warn and ignore the option if not recognized 9472159764Sobrien # So say no if there are warnings 9473267897Sdelphij $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9474192350Sdelphij $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9475192350Sdelphij if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9476159764Sobrien lt_cv_prog_compiler_c_o=yes 9477159764Sobrien fi 9478159764Sobrien fi 9479192350Sdelphij chmod u+w . 2>&5 9480234449Sobrien $RM conftest* 9481159764Sobrien # SGI C++ compiler will create directory out/ii_files/ for 9482159764Sobrien # template instantiation 9483234449Sobrien test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9484234449Sobrien $RM out/* && rmdir out 9485159764Sobrien cd .. 9486234449Sobrien $RM -r conftest 9487234449Sobrien $RM conftest* 9488159764Sobrien 9489159764Sobrienfi 9490234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9491234449Sobrien$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9492159764Sobrien 9493159764Sobrien 9494234449Sobrien 9495234449Sobrien 9496234449Sobrien 9497234449Sobrien 9498234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9499234449Sobrien$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9500234449Sobrienif ${lt_cv_prog_compiler_c_o+:} false; then : 9501234449Sobrien $as_echo_n "(cached) " >&6 9502234449Sobrienelse 9503234449Sobrien lt_cv_prog_compiler_c_o=no 9504234449Sobrien $RM -r conftest 2>/dev/null 9505234449Sobrien mkdir conftest 9506234449Sobrien cd conftest 9507234449Sobrien mkdir out 9508234449Sobrien echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9509234449Sobrien 9510234449Sobrien lt_compiler_flag="-o out/conftest2.$ac_objext" 9511234449Sobrien # Insert the option either (1) after the last *FLAGS variable, or 9512234449Sobrien # (2) before a word containing "conftest.", or (3) at the end. 9513234449Sobrien # Note that $ac_compile itself does not contain backslashes and begins 9514234449Sobrien # with a dollar sign (not a hyphen), so the echo should work correctly. 9515234449Sobrien lt_compile=`echo "$ac_compile" | $SED \ 9516234449Sobrien -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9517234449Sobrien -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9518234449Sobrien -e 's:$: $lt_compiler_flag:'` 9519267897Sdelphij (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9520234449Sobrien (eval "$lt_compile" 2>out/conftest.err) 9521234449Sobrien ac_status=$? 9522234449Sobrien cat out/conftest.err >&5 9523267897Sdelphij echo "$as_me:$LINENO: \$? = $ac_status" >&5 9524234449Sobrien if (exit $ac_status) && test -s out/conftest2.$ac_objext 9525234449Sobrien then 9526234449Sobrien # The compiler can only warn and ignore the option if not recognized 9527234449Sobrien # So say no if there are warnings 9528267897Sdelphij $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9529234449Sobrien $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9530234449Sobrien if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9531234449Sobrien lt_cv_prog_compiler_c_o=yes 9532234449Sobrien fi 9533234449Sobrien fi 9534234449Sobrien chmod u+w . 2>&5 9535234449Sobrien $RM conftest* 9536234449Sobrien # SGI C++ compiler will create directory out/ii_files/ for 9537234449Sobrien # template instantiation 9538234449Sobrien test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9539234449Sobrien $RM out/* && rmdir out 9540234449Sobrien cd .. 9541234449Sobrien $RM -r conftest 9542234449Sobrien $RM conftest* 9543234449Sobrien 9544234449Sobrienfi 9545234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9546234449Sobrien$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9547234449Sobrien 9548234449Sobrien 9549234449Sobrien 9550234449Sobrien 9551159764Sobrienhard_links="nottested" 9552159764Sobrienif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9553159764Sobrien # do not overwrite the value of need_locks provided by the user 9554234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9555234449Sobrien$as_echo_n "checking if we can lock with hard links... " >&6; } 9556159764Sobrien hard_links=yes 9557234449Sobrien $RM conftest* 9558159764Sobrien ln conftest.a conftest.b 2>/dev/null && hard_links=no 9559159764Sobrien touch conftest.a 9560159764Sobrien ln conftest.a conftest.b 2>&5 || hard_links=no 9561159764Sobrien ln conftest.a conftest.b 2>/dev/null && hard_links=no 9562234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9563234449Sobrien$as_echo "$hard_links" >&6; } 9564159764Sobrien if test "$hard_links" = no; then 9565234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9566234449Sobrien$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9567159764Sobrien need_locks=warn 9568159764Sobrien fi 9569159764Sobrienelse 9570159764Sobrien need_locks=no 9571159764Sobrienfi 9572159764Sobrien 9573159764Sobrien 9574234449Sobrien 9575234449Sobrien 9576234449Sobrien 9577234449Sobrien 9578234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9579234449Sobrien$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9580234449Sobrien 9581159764Sobrien runpath_var= 9582159764Sobrien allow_undefined_flag= 9583234449Sobrien always_export_symbols=no 9584159764Sobrien archive_cmds= 9585159764Sobrien archive_expsym_cmds= 9586234449Sobrien compiler_needs_object=no 9587234449Sobrien enable_shared_with_static_runtimes=no 9588159764Sobrien export_dynamic_flag_spec= 9589234449Sobrien export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9590234449Sobrien hardcode_automatic=no 9591234449Sobrien hardcode_direct=no 9592234449Sobrien hardcode_direct_absolute=no 9593159764Sobrien hardcode_libdir_flag_spec= 9594159764Sobrien hardcode_libdir_separator= 9595159764Sobrien hardcode_minus_L=no 9596159764Sobrien hardcode_shlibpath_var=unsupported 9597234449Sobrien inherit_rpath=no 9598159764Sobrien link_all_deplibs=unknown 9599159764Sobrien module_cmds= 9600159764Sobrien module_expsym_cmds= 9601234449Sobrien old_archive_from_new_cmds= 9602234449Sobrien old_archive_from_expsyms_cmds= 9603234449Sobrien thread_safe_flag_spec= 9604234449Sobrien whole_archive_flag_spec= 9605159764Sobrien # include_expsyms should be a list of space-separated symbols to be *always* 9606159764Sobrien # included in the symbol list 9607159764Sobrien include_expsyms= 9608159764Sobrien # exclude_expsyms can be an extended regexp of symbols to exclude 9609159764Sobrien # it will be wrapped by ` (' and `)$', so one must not match beginning or 9610159764Sobrien # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9611159764Sobrien # as well as any symbol that contains `d'. 9612192350Sdelphij exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9613159764Sobrien # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9614159764Sobrien # platforms (ab)use it in PIC code, but their linkers get confused if 9615159764Sobrien # the symbol is explicitly referenced. Since portable code cannot 9616159764Sobrien # rely on this symbol name, it's probably fine to never include it in 9617159764Sobrien # preloaded symbol tables. 9618192350Sdelphij # Exclude shared library initialization/finalization symbols. 9619159764Sobrien extract_expsyms_cmds= 9620159764Sobrien 9621159764Sobrien case $host_os in 9622234449Sobrien cygwin* | mingw* | pw32* | cegcc*) 9623159764Sobrien # FIXME: the MSVC++ port hasn't been tested in a loooong time 9624159764Sobrien # When not using gcc, we currently assume that we are using 9625159764Sobrien # Microsoft Visual C++. 9626159764Sobrien if test "$GCC" != yes; then 9627159764Sobrien with_gnu_ld=no 9628159764Sobrien fi 9629159764Sobrien ;; 9630192350Sdelphij interix*) 9631192350Sdelphij # we just hope/assume this is gcc and not c89 (= MSVC++) 9632192350Sdelphij with_gnu_ld=yes 9633192350Sdelphij ;; 9634159764Sobrien openbsd*) 9635159764Sobrien with_gnu_ld=no 9636159764Sobrien ;; 9637159764Sobrien esac 9638159764Sobrien 9639159764Sobrien ld_shlibs=yes 9640267897Sdelphij 9641267897Sdelphij # On some targets, GNU ld is compatible enough with the native linker 9642267897Sdelphij # that we're better off using the native interface for both. 9643267897Sdelphij lt_use_gnu_ld_interface=no 9644159764Sobrien if test "$with_gnu_ld" = yes; then 9645267897Sdelphij case $host_os in 9646267897Sdelphij aix*) 9647267897Sdelphij # The AIX port of GNU ld has always aspired to compatibility 9648267897Sdelphij # with the native linker. However, as the warning in the GNU ld 9649267897Sdelphij # block says, versions before 2.19.5* couldn't really create working 9650267897Sdelphij # shared libraries, regardless of the interface used. 9651267897Sdelphij case `$LD -v 2>&1` in 9652267897Sdelphij *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9653267897Sdelphij *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9654267897Sdelphij *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9655267897Sdelphij *) 9656267897Sdelphij lt_use_gnu_ld_interface=yes 9657267897Sdelphij ;; 9658267897Sdelphij esac 9659267897Sdelphij ;; 9660267897Sdelphij *) 9661267897Sdelphij lt_use_gnu_ld_interface=yes 9662267897Sdelphij ;; 9663267897Sdelphij esac 9664267897Sdelphij fi 9665267897Sdelphij 9666267897Sdelphij if test "$lt_use_gnu_ld_interface" = yes; then 9667159764Sobrien # If archive_cmds runs LD, not CC, wlarc should be empty 9668159764Sobrien wlarc='${wl}' 9669159764Sobrien 9670159764Sobrien # Set some defaults for GNU ld with shared library support. These 9671159764Sobrien # are reset later if shared libraries are not supported. Putting them 9672159764Sobrien # here allows them to be overridden if necessary. 9673159764Sobrien runpath_var=LD_RUN_PATH 9674234449Sobrien hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9675159764Sobrien export_dynamic_flag_spec='${wl}--export-dynamic' 9676159764Sobrien # ancient GNU ld didn't support --whole-archive et. al. 9677234449Sobrien if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9678234449Sobrien whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9679234449Sobrien else 9680234449Sobrien whole_archive_flag_spec= 9681159764Sobrien fi 9682159764Sobrien supports_anon_versioning=no 9683234449Sobrien case `$LD -v 2>&1` in 9684267897Sdelphij *GNU\ gold*) supports_anon_versioning=yes ;; 9685159764Sobrien *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9686159764Sobrien *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9687159764Sobrien *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9688159764Sobrien *\ 2.11.*) ;; # other 2.11 versions 9689159764Sobrien *) supports_anon_versioning=yes ;; 9690159764Sobrien esac 9691159764Sobrien 9692159764Sobrien # See if GNU ld supports shared libraries. 9693159764Sobrien case $host_os in 9694192350Sdelphij aix[3-9]*) 9695159764Sobrien # On AIX/PPC, the GNU linker is very broken 9696159764Sobrien if test "$host_cpu" != ia64; then 9697159764Sobrien ld_shlibs=no 9698234449Sobrien cat <<_LT_EOF 1>&2 9699159764Sobrien 9700267897Sdelphij*** Warning: the GNU linker, at least up to release 2.19, is reported 9701159764Sobrien*** to be unable to reliably create shared libraries on AIX. 9702159764Sobrien*** Therefore, libtool is disabling shared libraries support. If you 9703267897Sdelphij*** really care for shared libraries, you may want to install binutils 9704267897Sdelphij*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9705267897Sdelphij*** You will then need to restart the configuration process. 9706159764Sobrien 9707234449Sobrien_LT_EOF 9708159764Sobrien fi 9709159764Sobrien ;; 9710159764Sobrien 9711159764Sobrien amigaos*) 9712234449Sobrien case $host_cpu in 9713234449Sobrien powerpc) 9714234449Sobrien # see comment about AmigaOS4 .so support 9715234449Sobrien archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9716234449Sobrien archive_expsym_cmds='' 9717234449Sobrien ;; 9718234449Sobrien m68k) 9719234449Sobrien 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)' 9720234449Sobrien hardcode_libdir_flag_spec='-L$libdir' 9721234449Sobrien hardcode_minus_L=yes 9722234449Sobrien ;; 9723234449Sobrien esac 9724159764Sobrien ;; 9725159764Sobrien 9726159764Sobrien beos*) 9727234449Sobrien if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9728159764Sobrien allow_undefined_flag=unsupported 9729159764Sobrien # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9730159764Sobrien # support --undefined. This deserves some investigation. FIXME 9731159764Sobrien archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9732159764Sobrien else 9733159764Sobrien ld_shlibs=no 9734159764Sobrien fi 9735159764Sobrien ;; 9736159764Sobrien 9737234449Sobrien cygwin* | mingw* | pw32* | cegcc*) 9738234449Sobrien # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9739159764Sobrien # as there is no search path for DLLs. 9740159764Sobrien hardcode_libdir_flag_spec='-L$libdir' 9741267897Sdelphij export_dynamic_flag_spec='${wl}--export-all-symbols' 9742159764Sobrien allow_undefined_flag=unsupported 9743159764Sobrien always_export_symbols=no 9744159764Sobrien enable_shared_with_static_runtimes=yes 9745267897Sdelphij 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' 9746267897Sdelphij exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9747159764Sobrien 9748234449Sobrien if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9749192350Sdelphij archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9750159764Sobrien # If the export-symbols file already is a .def file (1st line 9751159764Sobrien # is EXPORTS), use it as is; otherwise, prepend... 9752159764Sobrien archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9753159764Sobrien cp $export_symbols $output_objdir/$soname.def; 9754159764Sobrien else 9755159764Sobrien echo EXPORTS > $output_objdir/$soname.def; 9756159764Sobrien cat $export_symbols >> $output_objdir/$soname.def; 9757159764Sobrien fi~ 9758192350Sdelphij $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9759159764Sobrien else 9760159764Sobrien ld_shlibs=no 9761159764Sobrien fi 9762159764Sobrien ;; 9763159764Sobrien 9764267897Sdelphij haiku*) 9765267897Sdelphij archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9766267897Sdelphij link_all_deplibs=yes 9767267897Sdelphij ;; 9768267897Sdelphij 9769192350Sdelphij interix[3-9]*) 9770192350Sdelphij hardcode_direct=no 9771192350Sdelphij hardcode_shlibpath_var=no 9772192350Sdelphij hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9773192350Sdelphij export_dynamic_flag_spec='${wl}-E' 9774192350Sdelphij # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9775192350Sdelphij # Instead, shared libraries are loaded at an image base (0x10000000 by 9776192350Sdelphij # default) and relocated if they conflict, which is a slow very memory 9777192350Sdelphij # consuming and fragmenting process. To avoid this, we pick a random, 9778192350Sdelphij # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9779192350Sdelphij # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9780192350Sdelphij archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9781192350Sdelphij 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' 9782192350Sdelphij ;; 9783192350Sdelphij 9784267897Sdelphij gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9785234449Sobrien tmp_diet=no 9786234449Sobrien if test "$host_os" = linux-dietlibc; then 9787234449Sobrien case $cc_basename in 9788234449Sobrien diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9789234449Sobrien esac 9790234449Sobrien fi 9791234449Sobrien if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9792234449Sobrien && test "$tmp_diet" = no 9793234449Sobrien then 9794267897Sdelphij tmp_addflag=' $pic_flag' 9795234449Sobrien tmp_sharedflag='-shared' 9796159764Sobrien case $cc_basename,$host_cpu in 9797234449Sobrien pgcc*) # Portland Group C compiler 9798267897Sdelphij 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' 9799159764Sobrien tmp_addflag=' $pic_flag' 9800159764Sobrien ;; 9801267897Sdelphij pgf77* | pgf90* | pgf95* | pgfortran*) 9802267897Sdelphij # Portland Group f77 and f90 compilers 9803267897Sdelphij 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' 9804159764Sobrien tmp_addflag=' $pic_flag -Mnomain' ;; 9805234449Sobrien ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9806159764Sobrien tmp_addflag=' -i_dynamic' ;; 9807159764Sobrien efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9808159764Sobrien tmp_addflag=' -i_dynamic -nofor_main' ;; 9809159764Sobrien ifc* | ifort*) # Intel Fortran compiler 9810159764Sobrien tmp_addflag=' -nofor_main' ;; 9811234449Sobrien lf95*) # Lahey Fortran 8.1 9812234449Sobrien whole_archive_flag_spec= 9813234449Sobrien tmp_sharedflag='--shared' ;; 9814267897Sdelphij xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9815234449Sobrien tmp_sharedflag='-qmkshrobj' 9816234449Sobrien tmp_addflag= ;; 9817267897Sdelphij nvcc*) # Cuda Compiler Driver 2.2 9818267897Sdelphij 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' 9819267897Sdelphij compiler_needs_object=yes 9820267897Sdelphij ;; 9821159764Sobrien esac 9822192350Sdelphij case `$CC -V 2>&1 | sed 5q` in 9823192350Sdelphij *Sun\ C*) # Sun C 5.9 9824267897Sdelphij 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' 9825234449Sobrien compiler_needs_object=yes 9826192350Sdelphij tmp_sharedflag='-G' ;; 9827192350Sdelphij *Sun\ F*) # Sun Fortran 8.3 9828192350Sdelphij tmp_sharedflag='-G' ;; 9829192350Sdelphij esac 9830192350Sdelphij archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9831159764Sobrien 9832234449Sobrien if test "x$supports_anon_versioning" = xyes; then 9833234449Sobrien archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9834234449Sobrien cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9835234449Sobrien echo "local: *; };" >> $output_objdir/$libname.ver~ 9836234449Sobrien $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9837234449Sobrien fi 9838234449Sobrien 9839234449Sobrien case $cc_basename in 9840267897Sdelphij xlf* | bgf* | bgxlf* | mpixlf*) 9841234449Sobrien # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9842234449Sobrien whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9843267897Sdelphij hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9844267897Sdelphij archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9845234449Sobrien if test "x$supports_anon_versioning" = xyes; then 9846234449Sobrien archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9847234449Sobrien cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9848234449Sobrien echo "local: *; };" >> $output_objdir/$libname.ver~ 9849267897Sdelphij $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9850234449Sobrien fi 9851234449Sobrien ;; 9852234449Sobrien esac 9853159764Sobrien else 9854234449Sobrien ld_shlibs=no 9855159764Sobrien fi 9856159764Sobrien ;; 9857159764Sobrien 9858159764Sobrien netbsd*) 9859234449Sobrien if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9860159764Sobrien archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9861159764Sobrien wlarc= 9862159764Sobrien else 9863267897Sdelphij archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9864267897Sdelphij archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9865159764Sobrien fi 9866159764Sobrien ;; 9867159764Sobrien 9868192350Sdelphij solaris*) 9869234449Sobrien if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9870159764Sobrien ld_shlibs=no 9871234449Sobrien cat <<_LT_EOF 1>&2 9872159764Sobrien 9873159764Sobrien*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9874159764Sobrien*** create shared libraries on Solaris systems. Therefore, libtool 9875159764Sobrien*** is disabling shared libraries support. We urge you to upgrade GNU 9876159764Sobrien*** binutils to release 2.9.1 or newer. Another option is to modify 9877159764Sobrien*** your PATH or compiler configuration so that the native linker is 9878159764Sobrien*** used, and then restart. 9879159764Sobrien 9880234449Sobrien_LT_EOF 9881234449Sobrien elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9882267897Sdelphij archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9883267897Sdelphij archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9884159764Sobrien else 9885159764Sobrien ld_shlibs=no 9886159764Sobrien fi 9887159764Sobrien ;; 9888159764Sobrien 9889192350Sdelphij sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9890192350Sdelphij case `$LD -v 2>&1` in 9891192350Sdelphij *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9892192350Sdelphij ld_shlibs=no 9893192350Sdelphij cat <<_LT_EOF 1>&2 9894192350Sdelphij 9895192350Sdelphij*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9896192350Sdelphij*** reliably create shared libraries on SCO systems. Therefore, libtool 9897192350Sdelphij*** is disabling shared libraries support. We urge you to upgrade GNU 9898192350Sdelphij*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9899192350Sdelphij*** your PATH or compiler configuration so that the native linker is 9900192350Sdelphij*** used, and then restart. 9901192350Sdelphij 9902192350Sdelphij_LT_EOF 9903192350Sdelphij ;; 9904192350Sdelphij *) 9905234449Sobrien # For security reasons, it is highly recommended that you always 9906234449Sobrien # use absolute paths for naming shared libraries, and exclude the 9907234449Sobrien # DT_RUNPATH tag from executables and libraries. But doing so 9908234449Sobrien # requires that you compile everything twice, which is a pain. 9909234449Sobrien if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9910234449Sobrien hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9911234449Sobrien archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9912234449Sobrien archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9913192350Sdelphij else 9914192350Sdelphij ld_shlibs=no 9915192350Sdelphij fi 9916192350Sdelphij ;; 9917192350Sdelphij esac 9918192350Sdelphij ;; 9919192350Sdelphij 9920159764Sobrien sunos4*) 9921159764Sobrien archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9922159764Sobrien wlarc= 9923159764Sobrien hardcode_direct=yes 9924159764Sobrien hardcode_shlibpath_var=no 9925159764Sobrien ;; 9926159764Sobrien 9927159764Sobrien *) 9928234449Sobrien if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9929267897Sdelphij archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9930267897Sdelphij archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9931159764Sobrien else 9932159764Sobrien ld_shlibs=no 9933159764Sobrien fi 9934159764Sobrien ;; 9935159764Sobrien esac 9936159764Sobrien 9937159764Sobrien if test "$ld_shlibs" = no; then 9938159764Sobrien runpath_var= 9939159764Sobrien hardcode_libdir_flag_spec= 9940159764Sobrien export_dynamic_flag_spec= 9941159764Sobrien whole_archive_flag_spec= 9942159764Sobrien fi 9943159764Sobrien else 9944159764Sobrien # PORTME fill in a description of your system's linker (not GNU ld) 9945159764Sobrien case $host_os in 9946159764Sobrien aix3*) 9947159764Sobrien allow_undefined_flag=unsupported 9948159764Sobrien always_export_symbols=yes 9949159764Sobrien 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' 9950159764Sobrien # Note: this linker hardcodes the directories in LIBPATH if there 9951159764Sobrien # are no directories specified by -L. 9952159764Sobrien hardcode_minus_L=yes 9953192350Sdelphij if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9954159764Sobrien # Neither direct hardcoding nor static linking is supported with a 9955159764Sobrien # broken collect2. 9956159764Sobrien hardcode_direct=unsupported 9957159764Sobrien fi 9958159764Sobrien ;; 9959159764Sobrien 9960192350Sdelphij aix[4-9]*) 9961159764Sobrien if test "$host_cpu" = ia64; then 9962159764Sobrien # On IA64, the linker does run time linking by default, so we don't 9963159764Sobrien # have to do anything special. 9964159764Sobrien aix_use_runtimelinking=no 9965159764Sobrien exp_sym_flag='-Bexport' 9966159764Sobrien no_entry_flag="" 9967159764Sobrien else 9968159764Sobrien # If we're using GNU nm, then we don't want the "-C" option. 9969159764Sobrien # -C means demangle to AIX nm, but means don't demangle with GNU nm 9970267897Sdelphij # Also, AIX nm treats weak defined symbols like other global 9971267897Sdelphij # defined symbols, whereas GNU nm marks them as "W". 9972234449Sobrien if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9973267897Sdelphij 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' 9974159764Sobrien else 9975234449Sobrien 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' 9976159764Sobrien fi 9977159764Sobrien aix_use_runtimelinking=no 9978159764Sobrien 9979159764Sobrien # Test if we are trying to use run time linking or normal 9980159764Sobrien # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9981159764Sobrien # need to do runtime linking. 9982192350Sdelphij case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9983159764Sobrien for ld_flag in $LDFLAGS; do 9984234449Sobrien if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9985234449Sobrien aix_use_runtimelinking=yes 9986234449Sobrien break 9987234449Sobrien fi 9988159764Sobrien done 9989192350Sdelphij ;; 9990159764Sobrien esac 9991159764Sobrien 9992159764Sobrien exp_sym_flag='-bexport' 9993159764Sobrien no_entry_flag='-bnoentry' 9994159764Sobrien fi 9995159764Sobrien 9996159764Sobrien # When large executables or shared objects are built, AIX ld can 9997159764Sobrien # have problems creating the table of contents. If linking a library 9998159764Sobrien # or program results in "error TOC overflow" add -mminimal-toc to 9999159764Sobrien # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10000159764Sobrien # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10001159764Sobrien 10002159764Sobrien archive_cmds='' 10003159764Sobrien hardcode_direct=yes 10004234449Sobrien hardcode_direct_absolute=yes 10005159764Sobrien hardcode_libdir_separator=':' 10006159764Sobrien link_all_deplibs=yes 10007234449Sobrien file_list_spec='${wl}-f,' 10008159764Sobrien 10009159764Sobrien if test "$GCC" = yes; then 10010159764Sobrien case $host_os in aix4.[012]|aix4.[012].*) 10011159764Sobrien # We only want to do this on AIX 4.2 and lower, the check 10012159764Sobrien # below for broken collect2 doesn't work under 4.3+ 10013159764Sobrien collect2name=`${CC} -print-prog-name=collect2` 10014234449Sobrien if test -f "$collect2name" && 10015234449Sobrien strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10016159764Sobrien then 10017234449Sobrien # We have reworked collect2 10018234449Sobrien : 10019159764Sobrien else 10020234449Sobrien # We have old collect2 10021234449Sobrien hardcode_direct=unsupported 10022234449Sobrien # It fails to find uninstalled libraries when the uninstalled 10023234449Sobrien # path is not listed in the libpath. Setting hardcode_minus_L 10024234449Sobrien # to unsupported forces relinking 10025234449Sobrien hardcode_minus_L=yes 10026234449Sobrien hardcode_libdir_flag_spec='-L$libdir' 10027234449Sobrien hardcode_libdir_separator= 10028159764Sobrien fi 10029192350Sdelphij ;; 10030159764Sobrien esac 10031159764Sobrien shared_flag='-shared' 10032159764Sobrien if test "$aix_use_runtimelinking" = yes; then 10033159764Sobrien shared_flag="$shared_flag "'${wl}-G' 10034159764Sobrien fi 10035159764Sobrien else 10036159764Sobrien # not using gcc 10037159764Sobrien if test "$host_cpu" = ia64; then 10038234449Sobrien # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10039234449Sobrien # chokes on -Wl,-G. The following line is correct: 10040159764Sobrien shared_flag='-G' 10041159764Sobrien else 10042192350Sdelphij if test "$aix_use_runtimelinking" = yes; then 10043159764Sobrien shared_flag='${wl}-G' 10044159764Sobrien else 10045159764Sobrien shared_flag='${wl}-bM:SRE' 10046192350Sdelphij fi 10047159764Sobrien fi 10048159764Sobrien fi 10049159764Sobrien 10050234449Sobrien export_dynamic_flag_spec='${wl}-bexpall' 10051159764Sobrien # It seems that -bexpall does not export symbols beginning with 10052159764Sobrien # underscore (_), so it is better to generate a list of symbols to export. 10053159764Sobrien always_export_symbols=yes 10054159764Sobrien if test "$aix_use_runtimelinking" = yes; then 10055159764Sobrien # Warning - without using the other runtime loading flags (-brtl), 10056159764Sobrien # -berok will link without error, but may produce a broken library. 10057159764Sobrien allow_undefined_flag='-berok' 10058234449Sobrien # Determine the default libpath from the value encoded in an 10059234449Sobrien # empty executable. 10060267897Sdelphij if test "${lt_cv_aix_libpath+set}" = set; then 10061267897Sdelphij aix_libpath=$lt_cv_aix_libpath 10062267897Sdelphijelse 10063267897Sdelphij if ${lt_cv_aix_libpath_+:} false; then : 10064267897Sdelphij $as_echo_n "(cached) " >&6 10065267897Sdelphijelse 10066267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10067159764Sobrien/* end confdefs.h. */ 10068159764Sobrien 10069139368Sobrienint 10070139368Sobrienmain () 10071139368Sobrien{ 10072133359Sobrien 10073139368Sobrien ; 10074139368Sobrien return 0; 10075139368Sobrien} 10076139368Sobrien_ACEOF 10077234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 10078159764Sobrien 10079267897Sdelphij lt_aix_libpath_sed=' 10080267897Sdelphij /Import File Strings/,/^$/ { 10081267897Sdelphij /^0/ { 10082267897Sdelphij s/^0 *\([^ ]*\) *$/\1/ 10083267897Sdelphij p 10084267897Sdelphij } 10085267897Sdelphij }' 10086267897Sdelphij lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10087267897Sdelphij # Check for a 64-bit object if we didn't find anything. 10088267897Sdelphij if test -z "$lt_cv_aix_libpath_"; then 10089267897Sdelphij lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10090267897Sdelphij fi 10091192350Sdelphijfi 10092234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 10093234449Sobrien conftest$ac_exeext conftest.$ac_ext 10094267897Sdelphij if test -z "$lt_cv_aix_libpath_"; then 10095267897Sdelphij lt_cv_aix_libpath_="/usr/lib:/lib" 10096267897Sdelphij fi 10097159764Sobrien 10098267897Sdelphijfi 10099267897Sdelphij 10100267897Sdelphij aix_libpath=$lt_cv_aix_libpath_ 10101267897Sdelphijfi 10102267897Sdelphij 10103234449Sobrien hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10104267897Sdelphij 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" 10105234449Sobrien else 10106159764Sobrien if test "$host_cpu" = ia64; then 10107159764Sobrien hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10108159764Sobrien allow_undefined_flag="-z nodefs" 10109192350Sdelphij 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" 10110139368Sobrien else 10111234449Sobrien # Determine the default libpath from the value encoded in an 10112234449Sobrien # empty executable. 10113267897Sdelphij if test "${lt_cv_aix_libpath+set}" = set; then 10114267897Sdelphij aix_libpath=$lt_cv_aix_libpath 10115267897Sdelphijelse 10116267897Sdelphij if ${lt_cv_aix_libpath_+:} false; then : 10117267897Sdelphij $as_echo_n "(cached) " >&6 10118267897Sdelphijelse 10119267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10120159764Sobrien/* end confdefs.h. */ 10121159764Sobrien 10122159764Sobrienint 10123159764Sobrienmain () 10124159764Sobrien{ 10125159764Sobrien 10126159764Sobrien ; 10127159764Sobrien return 0; 10128159764Sobrien} 10129159764Sobrien_ACEOF 10130234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 10131159764Sobrien 10132267897Sdelphij lt_aix_libpath_sed=' 10133267897Sdelphij /Import File Strings/,/^$/ { 10134267897Sdelphij /^0/ { 10135267897Sdelphij s/^0 *\([^ ]*\) *$/\1/ 10136267897Sdelphij p 10137267897Sdelphij } 10138267897Sdelphij }' 10139267897Sdelphij lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10140267897Sdelphij # Check for a 64-bit object if we didn't find anything. 10141267897Sdelphij if test -z "$lt_cv_aix_libpath_"; then 10142267897Sdelphij lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10143267897Sdelphij fi 10144192350Sdelphijfi 10145234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 10146234449Sobrien conftest$ac_exeext conftest.$ac_ext 10147267897Sdelphij if test -z "$lt_cv_aix_libpath_"; then 10148267897Sdelphij lt_cv_aix_libpath_="/usr/lib:/lib" 10149267897Sdelphij fi 10150159764Sobrien 10151267897Sdelphijfi 10152267897Sdelphij 10153267897Sdelphij aix_libpath=$lt_cv_aix_libpath_ 10154267897Sdelphijfi 10155267897Sdelphij 10156159764Sobrien hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10157159764Sobrien # Warning - without using the other run time loading flags, 10158159764Sobrien # -berok will link without error, but may produce a broken library. 10159159764Sobrien no_undefined_flag=' ${wl}-bernotok' 10160159764Sobrien allow_undefined_flag=' ${wl}-berok' 10161267897Sdelphij if test "$with_gnu_ld" = yes; then 10162267897Sdelphij # We only use this code for GNU lds that support --whole-archive. 10163267897Sdelphij whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10164267897Sdelphij else 10165267897Sdelphij # Exported symbols can be pulled into shared objects from archives 10166267897Sdelphij whole_archive_flag_spec='$convenience' 10167267897Sdelphij fi 10168159764Sobrien archive_cmds_need_lc=yes 10169192350Sdelphij # This is similar to how AIX traditionally builds its shared libraries. 10170192350Sdelphij 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' 10171139368Sobrien fi 10172159764Sobrien fi 10173159764Sobrien ;; 10174159764Sobrien 10175159764Sobrien amigaos*) 10176234449Sobrien case $host_cpu in 10177234449Sobrien powerpc) 10178234449Sobrien # see comment about AmigaOS4 .so support 10179234449Sobrien archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10180234449Sobrien archive_expsym_cmds='' 10181234449Sobrien ;; 10182234449Sobrien m68k) 10183234449Sobrien 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)' 10184234449Sobrien hardcode_libdir_flag_spec='-L$libdir' 10185234449Sobrien hardcode_minus_L=yes 10186234449Sobrien ;; 10187234449Sobrien esac 10188159764Sobrien ;; 10189159764Sobrien 10190159764Sobrien bsdi[45]*) 10191159764Sobrien export_dynamic_flag_spec=-rdynamic 10192159764Sobrien ;; 10193159764Sobrien 10194234449Sobrien cygwin* | mingw* | pw32* | cegcc*) 10195159764Sobrien # When not using gcc, we currently assume that we are using 10196159764Sobrien # Microsoft Visual C++. 10197159764Sobrien # hardcode_libdir_flag_spec is actually meaningless, as there is 10198159764Sobrien # no search path for DLLs. 10199267897Sdelphij case $cc_basename in 10200267897Sdelphij cl*) 10201267897Sdelphij # Native MSVC 10202267897Sdelphij hardcode_libdir_flag_spec=' ' 10203267897Sdelphij allow_undefined_flag=unsupported 10204267897Sdelphij always_export_symbols=yes 10205267897Sdelphij file_list_spec='@' 10206267897Sdelphij # Tell ltmain to make .lib files, not .a files. 10207267897Sdelphij libext=lib 10208267897Sdelphij # Tell ltmain to make .dll files, not .so files. 10209267897Sdelphij shrext_cmds=".dll" 10210267897Sdelphij # FIXME: Setting linknames here is a bad hack. 10211267897Sdelphij archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10212267897Sdelphij archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10213267897Sdelphij sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10214267897Sdelphij else 10215267897Sdelphij sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10216267897Sdelphij fi~ 10217267897Sdelphij $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10218267897Sdelphij linknames=' 10219267897Sdelphij # The linker will not automatically build a static lib if we build a DLL. 10220267897Sdelphij # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10221267897Sdelphij enable_shared_with_static_runtimes=yes 10222267897Sdelphij exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10223267897Sdelphij export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10224267897Sdelphij # Don't use ranlib 10225267897Sdelphij old_postinstall_cmds='chmod 644 $oldlib' 10226267897Sdelphij postlink_cmds='lt_outputfile="@OUTPUT@"~ 10227267897Sdelphij lt_tool_outputfile="@TOOL_OUTPUT@"~ 10228267897Sdelphij case $lt_outputfile in 10229267897Sdelphij *.exe|*.EXE) ;; 10230267897Sdelphij *) 10231267897Sdelphij lt_outputfile="$lt_outputfile.exe" 10232267897Sdelphij lt_tool_outputfile="$lt_tool_outputfile.exe" 10233267897Sdelphij ;; 10234267897Sdelphij esac~ 10235267897Sdelphij if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10236267897Sdelphij $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10237267897Sdelphij $RM "$lt_outputfile.manifest"; 10238267897Sdelphij fi' 10239267897Sdelphij ;; 10240267897Sdelphij *) 10241267897Sdelphij # Assume MSVC wrapper 10242267897Sdelphij hardcode_libdir_flag_spec=' ' 10243267897Sdelphij allow_undefined_flag=unsupported 10244267897Sdelphij # Tell ltmain to make .lib files, not .a files. 10245267897Sdelphij libext=lib 10246267897Sdelphij # Tell ltmain to make .dll files, not .so files. 10247267897Sdelphij shrext_cmds=".dll" 10248267897Sdelphij # FIXME: Setting linknames here is a bad hack. 10249267897Sdelphij archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10250267897Sdelphij # The linker will automatically build a .lib file if we build a DLL. 10251267897Sdelphij old_archive_from_new_cmds='true' 10252267897Sdelphij # FIXME: Should let the user specify the lib program. 10253267897Sdelphij old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10254267897Sdelphij enable_shared_with_static_runtimes=yes 10255267897Sdelphij ;; 10256267897Sdelphij esac 10257159764Sobrien ;; 10258159764Sobrien 10259159764Sobrien darwin* | rhapsody*) 10260234449Sobrien 10261234449Sobrien 10262234449Sobrien archive_cmds_need_lc=no 10263234449Sobrien hardcode_direct=no 10264234449Sobrien hardcode_automatic=yes 10265234449Sobrien hardcode_shlibpath_var=unsupported 10266267897Sdelphij if test "$lt_cv_ld_force_load" = "yes"; then 10267267897Sdelphij 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\"`' 10268267897Sdelphij 10269267897Sdelphij else 10270267897Sdelphij whole_archive_flag_spec='' 10271267897Sdelphij fi 10272234449Sobrien link_all_deplibs=yes 10273234449Sobrien allow_undefined_flag="$_lt_dar_allow_undefined" 10274234449Sobrien case $cc_basename in 10275234449Sobrien ifort*) _lt_dar_can_shared=yes ;; 10276234449Sobrien *) _lt_dar_can_shared=$GCC ;; 10277234449Sobrien esac 10278234449Sobrien if test "$_lt_dar_can_shared" = "yes"; then 10279267897Sdelphij output_verbose_link_cmd=func_echo_all 10280234449Sobrien archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10281234449Sobrien module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10282234449Sobrien 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}" 10283234449Sobrien 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}" 10284234449Sobrien 10285234449Sobrien else 10286234449Sobrien ld_shlibs=no 10287234449Sobrien fi 10288234449Sobrien 10289159764Sobrien ;; 10290159764Sobrien 10291159764Sobrien dgux*) 10292159764Sobrien archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10293159764Sobrien hardcode_libdir_flag_spec='-L$libdir' 10294159764Sobrien hardcode_shlibpath_var=no 10295159764Sobrien ;; 10296159764Sobrien 10297159764Sobrien # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10298159764Sobrien # support. Future versions do this automatically, but an explicit c++rt0.o 10299159764Sobrien # does not break anything, and helps significantly (at the cost of a little 10300159764Sobrien # extra space). 10301159764Sobrien freebsd2.2*) 10302159764Sobrien archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10303159764Sobrien hardcode_libdir_flag_spec='-R$libdir' 10304159764Sobrien hardcode_direct=yes 10305159764Sobrien hardcode_shlibpath_var=no 10306159764Sobrien ;; 10307159764Sobrien 10308159764Sobrien # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10309267897Sdelphij freebsd2.*) 10310159764Sobrien archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10311159764Sobrien hardcode_direct=yes 10312159764Sobrien hardcode_minus_L=yes 10313159764Sobrien hardcode_shlibpath_var=no 10314159764Sobrien ;; 10315159764Sobrien 10316159764Sobrien # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10317192350Sdelphij freebsd* | dragonfly*) 10318267897Sdelphij archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10319159764Sobrien hardcode_libdir_flag_spec='-R$libdir' 10320159764Sobrien hardcode_direct=yes 10321159764Sobrien hardcode_shlibpath_var=no 10322159764Sobrien ;; 10323159764Sobrien 10324159764Sobrien hpux9*) 10325159764Sobrien if test "$GCC" = yes; then 10326267897Sdelphij 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' 10327159764Sobrien else 10328234449Sobrien 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' 10329159764Sobrien fi 10330159764Sobrien hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10331159764Sobrien hardcode_libdir_separator=: 10332159764Sobrien hardcode_direct=yes 10333159764Sobrien 10334159764Sobrien # hardcode_minus_L: Not really in the search PATH, 10335159764Sobrien # but as the default location of the library. 10336159764Sobrien hardcode_minus_L=yes 10337159764Sobrien export_dynamic_flag_spec='${wl}-E' 10338159764Sobrien ;; 10339159764Sobrien 10340192350Sdelphij hpux10*) 10341267897Sdelphij if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10342267897Sdelphij archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10343192350Sdelphij else 10344192350Sdelphij archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10345192350Sdelphij fi 10346192350Sdelphij if test "$with_gnu_ld" = no; then 10347192350Sdelphij hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10348192350Sdelphij hardcode_libdir_separator=: 10349192350Sdelphij hardcode_direct=yes 10350234449Sobrien hardcode_direct_absolute=yes 10351192350Sdelphij export_dynamic_flag_spec='${wl}-E' 10352192350Sdelphij # hardcode_minus_L: Not really in the search PATH, 10353192350Sdelphij # but as the default location of the library. 10354192350Sdelphij hardcode_minus_L=yes 10355192350Sdelphij fi 10356192350Sdelphij ;; 10357192350Sdelphij 10358192350Sdelphij hpux11*) 10359267897Sdelphij if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10360192350Sdelphij case $host_cpu in 10361192350Sdelphij hppa*64*) 10362159764Sobrien archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10363159764Sobrien ;; 10364192350Sdelphij ia64*) 10365267897Sdelphij archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10366192350Sdelphij ;; 10367159764Sobrien *) 10368267897Sdelphij archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10369159764Sobrien ;; 10370159764Sobrien esac 10371159764Sobrien else 10372192350Sdelphij case $host_cpu in 10373192350Sdelphij hppa*64*) 10374192350Sdelphij archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10375159764Sobrien ;; 10376192350Sdelphij ia64*) 10377192350Sdelphij archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10378192350Sdelphij ;; 10379159764Sobrien *) 10380267897Sdelphij 10381267897Sdelphij # Older versions of the 11.00 compiler do not understand -b yet 10382267897Sdelphij # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10383267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10384267897Sdelphij$as_echo_n "checking if $CC understands -b... " >&6; } 10385267897Sdelphijif ${lt_cv_prog_compiler__b+:} false; then : 10386267897Sdelphij $as_echo_n "(cached) " >&6 10387267897Sdelphijelse 10388267897Sdelphij lt_cv_prog_compiler__b=no 10389267897Sdelphij save_LDFLAGS="$LDFLAGS" 10390267897Sdelphij LDFLAGS="$LDFLAGS -b" 10391267897Sdelphij echo "$lt_simple_link_test_code" > conftest.$ac_ext 10392267897Sdelphij if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10393267897Sdelphij # The linker can only warn and ignore the option if not recognized 10394267897Sdelphij # So say no if there are warnings 10395267897Sdelphij if test -s conftest.err; then 10396267897Sdelphij # Append any errors to the config.log. 10397267897Sdelphij cat conftest.err 1>&5 10398267897Sdelphij $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10399267897Sdelphij $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10400267897Sdelphij if diff conftest.exp conftest.er2 >/dev/null; then 10401267897Sdelphij lt_cv_prog_compiler__b=yes 10402267897Sdelphij fi 10403267897Sdelphij else 10404267897Sdelphij lt_cv_prog_compiler__b=yes 10405267897Sdelphij fi 10406267897Sdelphij fi 10407267897Sdelphij $RM -r conftest* 10408267897Sdelphij LDFLAGS="$save_LDFLAGS" 10409267897Sdelphij 10410267897Sdelphijfi 10411267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10412267897Sdelphij$as_echo "$lt_cv_prog_compiler__b" >&6; } 10413267897Sdelphij 10414267897Sdelphijif test x"$lt_cv_prog_compiler__b" = xyes; then 10415267897Sdelphij archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10416267897Sdelphijelse 10417267897Sdelphij archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10418267897Sdelphijfi 10419267897Sdelphij 10420159764Sobrien ;; 10421159764Sobrien esac 10422159764Sobrien fi 10423159764Sobrien if test "$with_gnu_ld" = no; then 10424192350Sdelphij hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10425192350Sdelphij hardcode_libdir_separator=: 10426192350Sdelphij 10427192350Sdelphij case $host_cpu in 10428192350Sdelphij hppa*64*|ia64*) 10429159764Sobrien hardcode_direct=no 10430159764Sobrien hardcode_shlibpath_var=no 10431159764Sobrien ;; 10432159764Sobrien *) 10433159764Sobrien hardcode_direct=yes 10434234449Sobrien hardcode_direct_absolute=yes 10435159764Sobrien export_dynamic_flag_spec='${wl}-E' 10436159764Sobrien 10437159764Sobrien # hardcode_minus_L: Not really in the search PATH, 10438159764Sobrien # but as the default location of the library. 10439159764Sobrien hardcode_minus_L=yes 10440159764Sobrien ;; 10441159764Sobrien esac 10442159764Sobrien fi 10443159764Sobrien ;; 10444159764Sobrien 10445159764Sobrien irix5* | irix6* | nonstopux*) 10446159764Sobrien if test "$GCC" = yes; then 10447267897Sdelphij 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' 10448234449Sobrien # Try to use the -exported_symbol ld option, if it does not 10449234449Sobrien # work, assume that -exports_file does not work either and 10450234449Sobrien # implicitly export all symbols. 10451267897Sdelphij # This should be the same for all languages, so no per-tag cache variable. 10452267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10453267897Sdelphij$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10454267897Sdelphijif ${lt_cv_irix_exported_symbol+:} false; then : 10455267897Sdelphij $as_echo_n "(cached) " >&6 10456267897Sdelphijelse 10457267897Sdelphij save_LDFLAGS="$LDFLAGS" 10458267897Sdelphij LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10459267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10460234449Sobrien/* end confdefs.h. */ 10461267897Sdelphijint foo (void) { return 0; } 10462234449Sobrien_ACEOF 10463234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 10464267897Sdelphij lt_cv_irix_exported_symbol=yes 10465267897Sdelphijelse 10466267897Sdelphij lt_cv_irix_exported_symbol=no 10467234449Sobrienfi 10468234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 10469234449Sobrien conftest$ac_exeext conftest.$ac_ext 10470267897Sdelphij LDFLAGS="$save_LDFLAGS" 10471267897Sdelphijfi 10472267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10473267897Sdelphij$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10474267897Sdelphij if test "$lt_cv_irix_exported_symbol" = yes; then 10475267897Sdelphij 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' 10476267897Sdelphij fi 10477159764Sobrien else 10478267897Sdelphij 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' 10479267897Sdelphij 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' 10480159764Sobrien fi 10481234449Sobrien archive_cmds_need_lc='no' 10482159764Sobrien hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10483159764Sobrien hardcode_libdir_separator=: 10484234449Sobrien inherit_rpath=yes 10485159764Sobrien link_all_deplibs=yes 10486159764Sobrien ;; 10487159764Sobrien 10488159764Sobrien netbsd*) 10489234449Sobrien if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10490159764Sobrien archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10491159764Sobrien else 10492159764Sobrien archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10493159764Sobrien fi 10494159764Sobrien hardcode_libdir_flag_spec='-R$libdir' 10495159764Sobrien hardcode_direct=yes 10496159764Sobrien hardcode_shlibpath_var=no 10497159764Sobrien ;; 10498159764Sobrien 10499159764Sobrien newsos6) 10500159764Sobrien archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10501159764Sobrien hardcode_direct=yes 10502159764Sobrien hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10503159764Sobrien hardcode_libdir_separator=: 10504159764Sobrien hardcode_shlibpath_var=no 10505159764Sobrien ;; 10506159764Sobrien 10507234449Sobrien *nto* | *qnx*) 10508234449Sobrien ;; 10509234449Sobrien 10510159764Sobrien openbsd*) 10511192350Sdelphij if test -f /usr/libexec/ld.so; then 10512192350Sdelphij hardcode_direct=yes 10513192350Sdelphij hardcode_shlibpath_var=no 10514234449Sobrien hardcode_direct_absolute=yes 10515234449Sobrien if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10516192350Sdelphij archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10517192350Sdelphij archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10518192350Sdelphij hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10519192350Sdelphij export_dynamic_flag_spec='${wl}-E' 10520192350Sdelphij else 10521192350Sdelphij case $host_os in 10522192350Sdelphij openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10523192350Sdelphij archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10524192350Sdelphij hardcode_libdir_flag_spec='-R$libdir' 10525192350Sdelphij ;; 10526192350Sdelphij *) 10527192350Sdelphij archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10528192350Sdelphij hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10529192350Sdelphij ;; 10530192350Sdelphij esac 10531234449Sobrien fi 10532159764Sobrien else 10533192350Sdelphij ld_shlibs=no 10534159764Sobrien fi 10535159764Sobrien ;; 10536159764Sobrien 10537159764Sobrien os2*) 10538159764Sobrien hardcode_libdir_flag_spec='-L$libdir' 10539159764Sobrien hardcode_minus_L=yes 10540159764Sobrien allow_undefined_flag=unsupported 10541267897Sdelphij 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' 10542234449Sobrien old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10543159764Sobrien ;; 10544159764Sobrien 10545159764Sobrien osf3*) 10546159764Sobrien if test "$GCC" = yes; then 10547159764Sobrien allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10548267897Sdelphij 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' 10549159764Sobrien else 10550159764Sobrien allow_undefined_flag=' -expect_unresolved \*' 10551267897Sdelphij 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' 10552159764Sobrien fi 10553234449Sobrien archive_cmds_need_lc='no' 10554159764Sobrien hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10555159764Sobrien hardcode_libdir_separator=: 10556159764Sobrien ;; 10557159764Sobrien 10558159764Sobrien osf4* | osf5*) # as osf3* with the addition of -msym flag 10559159764Sobrien if test "$GCC" = yes; then 10560159764Sobrien allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10561267897Sdelphij 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' 10562159764Sobrien hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10563159764Sobrien else 10564159764Sobrien allow_undefined_flag=' -expect_unresolved \*' 10565267897Sdelphij 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' 10566234449Sobrien 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~ 10567267897Sdelphij $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' 10568159764Sobrien 10569159764Sobrien # Both c and cxx compiler support -rpath directly 10570159764Sobrien hardcode_libdir_flag_spec='-rpath $libdir' 10571159764Sobrien fi 10572234449Sobrien archive_cmds_need_lc='no' 10573159764Sobrien hardcode_libdir_separator=: 10574159764Sobrien ;; 10575159764Sobrien 10576159764Sobrien solaris*) 10577234449Sobrien no_undefined_flag=' -z defs' 10578159764Sobrien if test "$GCC" = yes; then 10579159764Sobrien wlarc='${wl}' 10580267897Sdelphij archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10581234449Sobrien archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10582267897Sdelphij $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' 10583159764Sobrien else 10584234449Sobrien case `$CC -V 2>&1` in 10585234449Sobrien *"Compilers 5.0"*) 10586234449Sobrien wlarc='' 10587234449Sobrien archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10588234449Sobrien archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10589234449Sobrien $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10590234449Sobrien ;; 10591234449Sobrien *) 10592234449Sobrien wlarc='${wl}' 10593234449Sobrien archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10594234449Sobrien archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10595234449Sobrien $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10596234449Sobrien ;; 10597234449Sobrien esac 10598159764Sobrien fi 10599159764Sobrien hardcode_libdir_flag_spec='-R$libdir' 10600159764Sobrien hardcode_shlibpath_var=no 10601159764Sobrien case $host_os in 10602159764Sobrien solaris2.[0-5] | solaris2.[0-5].*) ;; 10603139368Sobrien *) 10604192350Sdelphij # The compiler driver will combine and reorder linker options, 10605192350Sdelphij # but understands `-z linker_flag'. GCC discards it without `$wl', 10606192350Sdelphij # but is careful enough not to reorder. 10607234449Sobrien # Supported since Solaris 2.6 (maybe 2.5.1?) 10608192350Sdelphij if test "$GCC" = yes; then 10609192350Sdelphij whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10610192350Sdelphij else 10611192350Sdelphij whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10612192350Sdelphij fi 10613192350Sdelphij ;; 10614159764Sobrien esac 10615159764Sobrien link_all_deplibs=yes 10616159764Sobrien ;; 10617159764Sobrien 10618159764Sobrien sunos4*) 10619159764Sobrien if test "x$host_vendor" = xsequent; then 10620159764Sobrien # Use $CC to link under sequent, because it throws in some extra .o 10621159764Sobrien # files that make .init and .fini sections work. 10622159764Sobrien archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10623159764Sobrien else 10624159764Sobrien archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10625159764Sobrien fi 10626159764Sobrien hardcode_libdir_flag_spec='-L$libdir' 10627159764Sobrien hardcode_direct=yes 10628159764Sobrien hardcode_minus_L=yes 10629159764Sobrien hardcode_shlibpath_var=no 10630159764Sobrien ;; 10631159764Sobrien 10632159764Sobrien sysv4) 10633159764Sobrien case $host_vendor in 10634159764Sobrien sni) 10635159764Sobrien archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10636159764Sobrien hardcode_direct=yes # is this really true??? 10637139368Sobrien ;; 10638159764Sobrien siemens) 10639159764Sobrien ## LD is ld it makes a PLAMLIB 10640159764Sobrien ## CC just makes a GrossModule. 10641159764Sobrien archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10642159764Sobrien reload_cmds='$CC -r -o $output$reload_objs' 10643159764Sobrien hardcode_direct=no 10644159764Sobrien ;; 10645159764Sobrien motorola) 10646159764Sobrien archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10647159764Sobrien hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10648159764Sobrien ;; 10649139368Sobrien esac 10650159764Sobrien runpath_var='LD_RUN_PATH' 10651159764Sobrien hardcode_shlibpath_var=no 10652159764Sobrien ;; 10653133359Sobrien 10654159764Sobrien sysv4.3*) 10655159764Sobrien archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10656159764Sobrien hardcode_shlibpath_var=no 10657159764Sobrien export_dynamic_flag_spec='-Bexport' 10658159764Sobrien ;; 10659133359Sobrien 10660159764Sobrien sysv4*MP*) 10661159764Sobrien if test -d /usr/nec; then 10662159764Sobrien archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10663159764Sobrien hardcode_shlibpath_var=no 10664159764Sobrien runpath_var=LD_RUN_PATH 10665159764Sobrien hardcode_runpath_var=yes 10666159764Sobrien ld_shlibs=yes 10667159764Sobrien fi 10668159764Sobrien ;; 10669159764Sobrien 10670192350Sdelphij sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10671192350Sdelphij no_undefined_flag='${wl}-z,text' 10672192350Sdelphij archive_cmds_need_lc=no 10673159764Sobrien hardcode_shlibpath_var=no 10674192350Sdelphij runpath_var='LD_RUN_PATH' 10675159764Sobrien 10676159764Sobrien if test "$GCC" = yes; then 10677192350Sdelphij archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10678192350Sdelphij archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10679159764Sobrien else 10680192350Sdelphij archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10681192350Sdelphij archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10682159764Sobrien fi 10683159764Sobrien ;; 10684159764Sobrien 10685192350Sdelphij sysv5* | sco3.2v5* | sco5v6*) 10686192350Sdelphij # Note: We can NOT use -z defs as we might desire, because we do not 10687192350Sdelphij # link with -lc, and that would cause any symbols used from libc to 10688192350Sdelphij # always be unresolved, which means just about no library would 10689192350Sdelphij # ever link correctly. If we're not using GNU ld we use -z text 10690192350Sdelphij # though, which does catch some bad symbols but isn't as heavy-handed 10691192350Sdelphij # as -z defs. 10692192350Sdelphij no_undefined_flag='${wl}-z,text' 10693192350Sdelphij allow_undefined_flag='${wl}-z,nodefs' 10694192350Sdelphij archive_cmds_need_lc=no 10695159764Sobrien hardcode_shlibpath_var=no 10696234449Sobrien hardcode_libdir_flag_spec='${wl}-R,$libdir' 10697192350Sdelphij hardcode_libdir_separator=':' 10698192350Sdelphij link_all_deplibs=yes 10699192350Sdelphij export_dynamic_flag_spec='${wl}-Bexport' 10700159764Sobrien runpath_var='LD_RUN_PATH' 10701192350Sdelphij 10702192350Sdelphij if test "$GCC" = yes; then 10703234449Sobrien archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10704234449Sobrien archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10705192350Sdelphij else 10706234449Sobrien archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10707234449Sobrien archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10708192350Sdelphij fi 10709159764Sobrien ;; 10710159764Sobrien 10711159764Sobrien uts4*) 10712159764Sobrien archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10713159764Sobrien hardcode_libdir_flag_spec='-L$libdir' 10714159764Sobrien hardcode_shlibpath_var=no 10715159764Sobrien ;; 10716159764Sobrien 10717159764Sobrien *) 10718159764Sobrien ld_shlibs=no 10719159764Sobrien ;; 10720159764Sobrien esac 10721234449Sobrien 10722234449Sobrien if test x$host_vendor = xsni; then 10723234449Sobrien case $host in 10724234449Sobrien sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10725234449Sobrien export_dynamic_flag_spec='${wl}-Blargedynsym' 10726234449Sobrien ;; 10727234449Sobrien esac 10728234449Sobrien fi 10729159764Sobrien fi 10730159764Sobrien 10731234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10732234449Sobrien$as_echo "$ld_shlibs" >&6; } 10733159764Sobrientest "$ld_shlibs" = no && can_build_shared=no 10734159764Sobrien 10735234449Sobrienwith_gnu_ld=$with_gnu_ld 10736234449Sobrien 10737234449Sobrien 10738234449Sobrien 10739234449Sobrien 10740234449Sobrien 10741234449Sobrien 10742234449Sobrien 10743234449Sobrien 10744234449Sobrien 10745234449Sobrien 10746234449Sobrien 10747234449Sobrien 10748234449Sobrien 10749234449Sobrien 10750234449Sobrien 10751159764Sobrien# 10752159764Sobrien# Do we need to explicitly link libc? 10753159764Sobrien# 10754159764Sobriencase "x$archive_cmds_need_lc" in 10755159764Sobrienx|xyes) 10756159764Sobrien # Assume -lc should be added 10757159764Sobrien archive_cmds_need_lc=yes 10758159764Sobrien 10759159764Sobrien if test "$enable_shared" = yes && test "$GCC" = yes; then 10760159764Sobrien case $archive_cmds in 10761159764Sobrien *'~'*) 10762159764Sobrien # FIXME: we may have to deal with multi-command sequences. 10763159764Sobrien ;; 10764159764Sobrien '$CC '*) 10765159764Sobrien # Test whether the compiler implicitly links with -lc since on some 10766159764Sobrien # systems, -lgcc has to come before -lc. If gcc already passes -lc 10767159764Sobrien # to ld, don't add -lc before -lgcc. 10768234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10769234449Sobrien$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10770267897Sdelphijif ${lt_cv_archive_cmds_need_lc+:} false; then : 10771267897Sdelphij $as_echo_n "(cached) " >&6 10772267897Sdelphijelse 10773267897Sdelphij $RM conftest* 10774267897Sdelphij echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10775159764Sobrien 10776267897Sdelphij if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10777159764Sobrien (eval $ac_compile) 2>&5 10778159764Sobrien ac_status=$? 10779234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10780234449Sobrien test $ac_status = 0; } 2>conftest.err; then 10781267897Sdelphij soname=conftest 10782267897Sdelphij lib=conftest 10783267897Sdelphij libobjs=conftest.$ac_objext 10784267897Sdelphij deplibs= 10785267897Sdelphij wl=$lt_prog_compiler_wl 10786267897Sdelphij pic_flag=$lt_prog_compiler_pic 10787267897Sdelphij compiler_flags=-v 10788267897Sdelphij linker_flags=-v 10789267897Sdelphij verstring= 10790267897Sdelphij output_objdir=. 10791267897Sdelphij libname=conftest 10792267897Sdelphij lt_save_allow_undefined_flag=$allow_undefined_flag 10793267897Sdelphij allow_undefined_flag= 10794267897Sdelphij if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10795234449Sobrien (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10796159764Sobrien ac_status=$? 10797234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10798234449Sobrien test $ac_status = 0; } 10799267897Sdelphij then 10800267897Sdelphij lt_cv_archive_cmds_need_lc=no 10801267897Sdelphij else 10802267897Sdelphij lt_cv_archive_cmds_need_lc=yes 10803267897Sdelphij fi 10804267897Sdelphij allow_undefined_flag=$lt_save_allow_undefined_flag 10805267897Sdelphij else 10806267897Sdelphij cat conftest.err 1>&5 10807267897Sdelphij fi 10808267897Sdelphij $RM conftest* 10809267897Sdelphij 10810267897Sdelphijfi 10811267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10812267897Sdelphij$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10813267897Sdelphij archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10814159764Sobrien ;; 10815159764Sobrien esac 10816159764Sobrien fi 10817159764Sobrien ;; 10818159764Sobrienesac 10819159764Sobrien 10820192350Sdelphij 10821234449Sobrien 10822234449Sobrien 10823234449Sobrien 10824234449Sobrien 10825234449Sobrien 10826234449Sobrien 10827234449Sobrien 10828234449Sobrien 10829234449Sobrien 10830234449Sobrien 10831234449Sobrien 10832234449Sobrien 10833234449Sobrien 10834234449Sobrien 10835234449Sobrien 10836234449Sobrien 10837234449Sobrien 10838234449Sobrien 10839234449Sobrien 10840234449Sobrien 10841234449Sobrien 10842234449Sobrien 10843234449Sobrien 10844234449Sobrien 10845234449Sobrien 10846234449Sobrien 10847234449Sobrien 10848234449Sobrien 10849234449Sobrien 10850234449Sobrien 10851234449Sobrien 10852234449Sobrien 10853234449Sobrien 10854234449Sobrien 10855234449Sobrien 10856234449Sobrien 10857234449Sobrien 10858234449Sobrien 10859234449Sobrien 10860234449Sobrien 10861234449Sobrien 10862234449Sobrien 10863234449Sobrien 10864234449Sobrien 10865234449Sobrien 10866234449Sobrien 10867234449Sobrien 10868234449Sobrien 10869234449Sobrien 10870234449Sobrien 10871234449Sobrien 10872234449Sobrien 10873234449Sobrien 10874234449Sobrien 10875234449Sobrien 10876234449Sobrien 10877234449Sobrien 10878234449Sobrien 10879234449Sobrien 10880234449Sobrien 10881234449Sobrien 10882234449Sobrien 10883234449Sobrien 10884234449Sobrien 10885234449Sobrien 10886234449Sobrien 10887234449Sobrien 10888234449Sobrien 10889234449Sobrien 10890234449Sobrien 10891234449Sobrien 10892234449Sobrien 10893234449Sobrien 10894234449Sobrien 10895234449Sobrien 10896234449Sobrien 10897234449Sobrien 10898234449Sobrien 10899234449Sobrien 10900234449Sobrien 10901234449Sobrien 10902234449Sobrien 10903234449Sobrien 10904234449Sobrien 10905234449Sobrien 10906234449Sobrien 10907234449Sobrien 10908234449Sobrien 10909234449Sobrien 10910234449Sobrien 10911234449Sobrien 10912234449Sobrien 10913234449Sobrien 10914234449Sobrien 10915234449Sobrien 10916234449Sobrien 10917234449Sobrien 10918234449Sobrien 10919234449Sobrien 10920234449Sobrien 10921234449Sobrien 10922234449Sobrien 10923234449Sobrien 10924234449Sobrien 10925234449Sobrien 10926234449Sobrien 10927234449Sobrien 10928234449Sobrien 10929234449Sobrien 10930234449Sobrien 10931234449Sobrien 10932234449Sobrien 10933234449Sobrien 10934234449Sobrien 10935234449Sobrien 10936234449Sobrien 10937234449Sobrien 10938234449Sobrien 10939234449Sobrien 10940234449Sobrien 10941234449Sobrien 10942234449Sobrien 10943234449Sobrien 10944234449Sobrien 10945234449Sobrien 10946234449Sobrien 10947234449Sobrien 10948234449Sobrien 10949234449Sobrien 10950234449Sobrien 10951234449Sobrien 10952234449Sobrien 10953234449Sobrien 10954234449Sobrien 10955234449Sobrien 10956234449Sobrien 10957234449Sobrien 10958234449Sobrien 10959234449Sobrien 10960234449Sobrien 10961234449Sobrien 10962234449Sobrien 10963234449Sobrien 10964234449Sobrien 10965234449Sobrien 10966234449Sobrien 10967234449Sobrien 10968234449Sobrien 10969234449Sobrien 10970234449Sobrien 10971234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10972234449Sobrien$as_echo_n "checking dynamic linker characteristics... " >&6; } 10973234449Sobrien 10974159764Sobrienif test "$GCC" = yes; then 10975192350Sdelphij case $host_os in 10976192350Sdelphij darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10977192350Sdelphij *) lt_awk_arg="/^libraries:/" ;; 10978192350Sdelphij esac 10979267897Sdelphij case $host_os in 10980267897Sdelphij mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10981267897Sdelphij *) lt_sed_strip_eq="s,=/,/,g" ;; 10982267897Sdelphij esac 10983267897Sdelphij lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10984267897Sdelphij case $lt_search_path_spec in 10985267897Sdelphij *\;*) 10986159764Sobrien # if the path contains ";" then we assume it to be the separator 10987159764Sobrien # otherwise default to the standard path separator (i.e. ":") - it is 10988159764Sobrien # assumed that no part of a normal pathname contains ";" but that should 10989159764Sobrien # okay in the real world where ";" in dirpaths is itself problematic. 10990267897Sdelphij lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10991267897Sdelphij ;; 10992267897Sdelphij *) 10993267897Sdelphij lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10994267897Sdelphij ;; 10995267897Sdelphij esac 10996192350Sdelphij # Ok, now we have the path, separated by spaces, we can step through it 10997192350Sdelphij # and add multilib dir if necessary. 10998192350Sdelphij lt_tmp_lt_search_path_spec= 10999192350Sdelphij lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11000192350Sdelphij for lt_sys_path in $lt_search_path_spec; do 11001192350Sdelphij if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11002192350Sdelphij lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11003192350Sdelphij else 11004192350Sdelphij test -d "$lt_sys_path" && \ 11005192350Sdelphij lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11006192350Sdelphij fi 11007192350Sdelphij done 11008267897Sdelphij lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11009192350SdelphijBEGIN {RS=" "; FS="/|\n";} { 11010192350Sdelphij lt_foo=""; 11011192350Sdelphij lt_count=0; 11012192350Sdelphij for (lt_i = NF; lt_i > 0; lt_i--) { 11013192350Sdelphij if ($lt_i != "" && $lt_i != ".") { 11014192350Sdelphij if ($lt_i == "..") { 11015192350Sdelphij lt_count++; 11016192350Sdelphij } else { 11017192350Sdelphij if (lt_count == 0) { 11018192350Sdelphij lt_foo="/" $lt_i lt_foo; 11019192350Sdelphij } else { 11020192350Sdelphij lt_count--; 11021192350Sdelphij } 11022192350Sdelphij } 11023192350Sdelphij } 11024192350Sdelphij } 11025192350Sdelphij if (lt_foo != "") { lt_freq[lt_foo]++; } 11026192350Sdelphij if (lt_freq[lt_foo] == 1) { print lt_foo; } 11027192350Sdelphij}'` 11028267897Sdelphij # AWK program above erroneously prepends '/' to C:/dos/paths 11029267897Sdelphij # for these hosts. 11030267897Sdelphij case $host_os in 11031267897Sdelphij mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11032267897Sdelphij $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11033267897Sdelphij esac 11034267897Sdelphij sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11035159764Sobrienelse 11036159764Sobrien sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11037139368Sobrienfi 11038234449Sobrienlibrary_names_spec= 11039234449Sobrienlibname_spec='lib$name' 11040234449Sobriensoname_spec= 11041234449Sobrienshrext_cmds=".so" 11042234449Sobrienpostinstall_cmds= 11043234449Sobrienpostuninstall_cmds= 11044234449Sobrienfinish_cmds= 11045234449Sobrienfinish_eval= 11046234449Sobrienshlibpath_var= 11047234449Sobrienshlibpath_overrides_runpath=unknown 11048234449Sobrienversion_type=none 11049234449Sobriendynamic_linker="$host_os ld.so" 11050234449Sobriensys_lib_dlsearch_path_spec="/lib /usr/lib" 11051159764Sobrienneed_lib_prefix=unknown 11052159764Sobrienhardcode_into_libs=no 11053133359Sobrien 11054159764Sobrien# when you set need_version to no, make sure it does not cause -set_version 11055159764Sobrien# flags to be left without arguments 11056159764Sobrienneed_version=unknown 11057133359Sobrien 11058159764Sobriencase $host_os in 11059159764Sobrienaix3*) 11060267897Sdelphij version_type=linux # correct to gnu/linux during the next big refactor 11061159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11062159764Sobrien shlibpath_var=LIBPATH 11063159764Sobrien 11064159764Sobrien # AIX 3 has no versioning support, so we append a major version to the name. 11065159764Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11066159764Sobrien ;; 11067159764Sobrien 11068192350Sdelphijaix[4-9]*) 11069267897Sdelphij version_type=linux # correct to gnu/linux during the next big refactor 11070159764Sobrien need_lib_prefix=no 11071159764Sobrien need_version=no 11072159764Sobrien hardcode_into_libs=yes 11073159764Sobrien if test "$host_cpu" = ia64; then 11074159764Sobrien # AIX 5 supports IA64 11075159764Sobrien library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11076159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11077139368Sobrien else 11078159764Sobrien # With GCC up to 2.95.x, collect2 would create an import file 11079159764Sobrien # for dependence libraries. The import file would start with 11080159764Sobrien # the line `#! .'. This would cause the generated library to 11081159764Sobrien # depend on `.', always an invalid library. This was fixed in 11082159764Sobrien # development snapshots of GCC prior to 3.0. 11083159764Sobrien case $host_os in 11084159764Sobrien aix4 | aix4.[01] | aix4.[01].*) 11085159764Sobrien if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11086159764Sobrien echo ' yes ' 11087234449Sobrien echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11088159764Sobrien : 11089159764Sobrien else 11090159764Sobrien can_build_shared=no 11091159764Sobrien fi 11092159764Sobrien ;; 11093159764Sobrien esac 11094159764Sobrien # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11095159764Sobrien # soname into executable. Probably we can add versioning support to 11096159764Sobrien # collect2, so additional links can be useful in future. 11097159764Sobrien if test "$aix_use_runtimelinking" = yes; then 11098159764Sobrien # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11099159764Sobrien # instead of lib<name>.a to let people know that these are not 11100159764Sobrien # typical AIX shared libraries. 11101159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11102159764Sobrien else 11103159764Sobrien # We preserve .a as extension for shared libraries through AIX4.2 11104159764Sobrien # and later when we are not doing run time linking. 11105159764Sobrien library_names_spec='${libname}${release}.a $libname.a' 11106159764Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11107159764Sobrien fi 11108159764Sobrien shlibpath_var=LIBPATH 11109139368Sobrien fi 11110159764Sobrien ;; 11111133359Sobrien 11112159764Sobrienamigaos*) 11113234449Sobrien case $host_cpu in 11114234449Sobrien powerpc) 11115234449Sobrien # Since July 2007 AmigaOS4 officially supports .so libraries. 11116234449Sobrien # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11117234449Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11118234449Sobrien ;; 11119234449Sobrien m68k) 11120234449Sobrien library_names_spec='$libname.ixlibrary $libname.a' 11121234449Sobrien # Create ${libname}_ixlibrary.a entries in /sys/libs. 11122267897Sdelphij 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' 11123234449Sobrien ;; 11124234449Sobrien esac 11125159764Sobrien ;; 11126133359Sobrien 11127159764Sobrienbeos*) 11128159764Sobrien library_names_spec='${libname}${shared_ext}' 11129159764Sobrien dynamic_linker="$host_os ld.so" 11130159764Sobrien shlibpath_var=LIBRARY_PATH 11131159764Sobrien ;; 11132159764Sobrien 11133159764Sobrienbsdi[45]*) 11134267897Sdelphij version_type=linux # correct to gnu/linux during the next big refactor 11135159764Sobrien need_version=no 11136159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11137159764Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11138159764Sobrien finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11139159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11140159764Sobrien sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11141159764Sobrien sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11142159764Sobrien # the default ld.so.conf also contains /usr/contrib/lib and 11143159764Sobrien # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11144159764Sobrien # libtool to hard-code these into programs 11145159764Sobrien ;; 11146159764Sobrien 11147234449Sobriencygwin* | mingw* | pw32* | cegcc*) 11148159764Sobrien version_type=windows 11149159764Sobrien shrext_cmds=".dll" 11150159764Sobrien need_version=no 11151159764Sobrien need_lib_prefix=no 11152159764Sobrien 11153267897Sdelphij case $GCC,$cc_basename in 11154267897Sdelphij yes,*) 11155267897Sdelphij # gcc 11156159764Sobrien library_names_spec='$libname.dll.a' 11157159764Sobrien # DLL is installed to $(libdir)/../bin by postinstall_cmds 11158159764Sobrien postinstall_cmds='base_file=`basename \${file}`~ 11159234449Sobrien dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11160159764Sobrien dldir=$destdir/`dirname \$dlpath`~ 11161159764Sobrien test -d \$dldir || mkdir -p \$dldir~ 11162192350Sdelphij $install_prog $dir/$dlname \$dldir/$dlname~ 11163234449Sobrien chmod a+x \$dldir/$dlname~ 11164234449Sobrien if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11165234449Sobrien eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11166234449Sobrien fi' 11167159764Sobrien postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11168159764Sobrien dlpath=$dir/\$dldll~ 11169234449Sobrien $RM \$dlpath' 11170159764Sobrien shlibpath_overrides_runpath=yes 11171159764Sobrien 11172159764Sobrien case $host_os in 11173159764Sobrien cygwin*) 11174159764Sobrien # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11175159764Sobrien soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11176267897Sdelphij 11177267897Sdelphij sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11178159764Sobrien ;; 11179234449Sobrien mingw* | cegcc*) 11180159764Sobrien # MinGW DLLs use traditional 'lib' prefix 11181159764Sobrien soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11182159764Sobrien ;; 11183159764Sobrien pw32*) 11184159764Sobrien # pw32 DLLs use 'pw' prefix rather than 'lib' 11185159764Sobrien library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11186159764Sobrien ;; 11187159764Sobrien esac 11188267897Sdelphij dynamic_linker='Win32 ld.exe' 11189159764Sobrien ;; 11190159764Sobrien 11191267897Sdelphij *,cl*) 11192267897Sdelphij # Native MSVC 11193267897Sdelphij libname_spec='$name' 11194267897Sdelphij soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11195267897Sdelphij library_names_spec='${libname}.dll.lib' 11196267897Sdelphij 11197267897Sdelphij case $build_os in 11198267897Sdelphij mingw*) 11199267897Sdelphij sys_lib_search_path_spec= 11200267897Sdelphij lt_save_ifs=$IFS 11201267897Sdelphij IFS=';' 11202267897Sdelphij for lt_path in $LIB 11203267897Sdelphij do 11204267897Sdelphij IFS=$lt_save_ifs 11205267897Sdelphij # Let DOS variable expansion print the short 8.3 style file name. 11206267897Sdelphij lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11207267897Sdelphij sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11208267897Sdelphij done 11209267897Sdelphij IFS=$lt_save_ifs 11210267897Sdelphij # Convert to MSYS style. 11211267897Sdelphij sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11212267897Sdelphij ;; 11213267897Sdelphij cygwin*) 11214267897Sdelphij # Convert to unix form, then to dos form, then back to unix form 11215267897Sdelphij # but this time dos style (no spaces!) so that the unix form looks 11216267897Sdelphij # like /cygdrive/c/PROGRA~1:/cygdr... 11217267897Sdelphij sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11218267897Sdelphij sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11219267897Sdelphij sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11220267897Sdelphij ;; 11221267897Sdelphij *) 11222267897Sdelphij sys_lib_search_path_spec="$LIB" 11223267897Sdelphij if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11224267897Sdelphij # It is most probably a Windows format PATH. 11225267897Sdelphij sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11226267897Sdelphij else 11227267897Sdelphij sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11228267897Sdelphij fi 11229267897Sdelphij # FIXME: find the short name or the path components, as spaces are 11230267897Sdelphij # common. (e.g. "Program Files" -> "PROGRA~1") 11231267897Sdelphij ;; 11232267897Sdelphij esac 11233267897Sdelphij 11234267897Sdelphij # DLL is installed to $(libdir)/../bin by postinstall_cmds 11235267897Sdelphij postinstall_cmds='base_file=`basename \${file}`~ 11236267897Sdelphij dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11237267897Sdelphij dldir=$destdir/`dirname \$dlpath`~ 11238267897Sdelphij test -d \$dldir || mkdir -p \$dldir~ 11239267897Sdelphij $install_prog $dir/$dlname \$dldir/$dlname' 11240267897Sdelphij postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11241267897Sdelphij dlpath=$dir/\$dldll~ 11242267897Sdelphij $RM \$dlpath' 11243267897Sdelphij shlibpath_overrides_runpath=yes 11244267897Sdelphij dynamic_linker='Win32 link.exe' 11245267897Sdelphij ;; 11246267897Sdelphij 11247159764Sobrien *) 11248267897Sdelphij # Assume MSVC wrapper 11249159764Sobrien library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11250267897Sdelphij dynamic_linker='Win32 ld.exe' 11251159764Sobrien ;; 11252159764Sobrien esac 11253159764Sobrien # FIXME: first we should search . and the directory the executable is in 11254159764Sobrien shlibpath_var=PATH 11255159764Sobrien ;; 11256159764Sobrien 11257159764Sobriendarwin* | rhapsody*) 11258159764Sobrien dynamic_linker="$host_os dyld" 11259159764Sobrien version_type=darwin 11260159764Sobrien need_lib_prefix=no 11261159764Sobrien need_version=no 11262234449Sobrien library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11263159764Sobrien soname_spec='${libname}${release}${major}$shared_ext' 11264159764Sobrien shlibpath_overrides_runpath=yes 11265159764Sobrien shlibpath_var=DYLD_LIBRARY_PATH 11266192350Sdelphij shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11267192350Sdelphij 11268192350Sdelphij sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11269159764Sobrien sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11270159764Sobrien ;; 11271159764Sobrien 11272159764Sobriendgux*) 11273267897Sdelphij version_type=linux # correct to gnu/linux during the next big refactor 11274159764Sobrien need_lib_prefix=no 11275159764Sobrien need_version=no 11276159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11277159764Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11278159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11279159764Sobrien ;; 11280159764Sobrien 11281159764Sobrienfreebsd* | dragonfly*) 11282159764Sobrien # DragonFly does not have aout. When/if they implement a new 11283159764Sobrien # versioning mechanism, adjust this. 11284192350Sdelphij if test -x /usr/bin/objformat; then 11285192350Sdelphij objformat=`/usr/bin/objformat` 11286192350Sdelphij else 11287192350Sdelphij case $host_os in 11288267897Sdelphij freebsd[23].*) objformat=aout ;; 11289192350Sdelphij *) objformat=elf ;; 11290192350Sdelphij esac 11291192350Sdelphij fi 11292159764Sobrien version_type=freebsd-$objformat 11293159764Sobrien case $version_type in 11294159764Sobrien freebsd-elf*) 11295159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11296159764Sobrien need_version=no 11297159764Sobrien need_lib_prefix=no 11298159764Sobrien ;; 11299159764Sobrien freebsd-*) 11300159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11301159764Sobrien need_version=yes 11302159764Sobrien ;; 11303159764Sobrien esac 11304159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11305159764Sobrien case $host_os in 11306267897Sdelphij freebsd2.*) 11307159764Sobrien shlibpath_overrides_runpath=yes 11308159764Sobrien ;; 11309159764Sobrien freebsd3.[01]* | freebsdelf3.[01]*) 11310159764Sobrien shlibpath_overrides_runpath=yes 11311159764Sobrien hardcode_into_libs=yes 11312159764Sobrien ;; 11313192350Sdelphij freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11314192350Sdelphij freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11315159764Sobrien shlibpath_overrides_runpath=no 11316159764Sobrien hardcode_into_libs=yes 11317159764Sobrien ;; 11318192350Sdelphij *) # from 4.6 on, and DragonFly 11319192350Sdelphij shlibpath_overrides_runpath=yes 11320192350Sdelphij hardcode_into_libs=yes 11321192350Sdelphij ;; 11322159764Sobrien esac 11323159764Sobrien ;; 11324159764Sobrien 11325159764Sobriengnu*) 11326267897Sdelphij version_type=linux # correct to gnu/linux during the next big refactor 11327159764Sobrien need_lib_prefix=no 11328159764Sobrien need_version=no 11329159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11330159764Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11331159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11332267897Sdelphij shlibpath_overrides_runpath=no 11333159764Sobrien hardcode_into_libs=yes 11334159764Sobrien ;; 11335159764Sobrien 11336267897Sdelphijhaiku*) 11337267897Sdelphij version_type=linux # correct to gnu/linux during the next big refactor 11338267897Sdelphij need_lib_prefix=no 11339267897Sdelphij need_version=no 11340267897Sdelphij dynamic_linker="$host_os runtime_loader" 11341267897Sdelphij library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11342267897Sdelphij soname_spec='${libname}${release}${shared_ext}$major' 11343267897Sdelphij shlibpath_var=LIBRARY_PATH 11344267897Sdelphij shlibpath_overrides_runpath=yes 11345267897Sdelphij sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11346267897Sdelphij hardcode_into_libs=yes 11347267897Sdelphij ;; 11348267897Sdelphij 11349159764Sobrienhpux9* | hpux10* | hpux11*) 11350159764Sobrien # Give a soname corresponding to the major version so that dld.sl refuses to 11351159764Sobrien # link against other versions. 11352159764Sobrien version_type=sunos 11353159764Sobrien need_lib_prefix=no 11354159764Sobrien need_version=no 11355192350Sdelphij case $host_cpu in 11356159764Sobrien ia64*) 11357159764Sobrien shrext_cmds='.so' 11358159764Sobrien hardcode_into_libs=yes 11359159764Sobrien dynamic_linker="$host_os dld.so" 11360159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11361159764Sobrien shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11362159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11363159764Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11364159764Sobrien if test "X$HPUX_IA64_MODE" = X32; then 11365159764Sobrien sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11366159764Sobrien else 11367159764Sobrien sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11368159764Sobrien fi 11369159764Sobrien sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11370159764Sobrien ;; 11371234449Sobrien hppa*64*) 11372159764Sobrien shrext_cmds='.sl' 11373234449Sobrien hardcode_into_libs=yes 11374159764Sobrien dynamic_linker="$host_os dld.sl" 11375234449Sobrien shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11376234449Sobrien shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11377234449Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11378234449Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11379234449Sobrien sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11380234449Sobrien sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11381234449Sobrien ;; 11382234449Sobrien *) 11383234449Sobrien shrext_cmds='.sl' 11384234449Sobrien dynamic_linker="$host_os dld.sl" 11385159764Sobrien shlibpath_var=SHLIB_PATH 11386159764Sobrien shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11387159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11388159764Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11389159764Sobrien ;; 11390159764Sobrien esac 11391267897Sdelphij # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11392159764Sobrien postinstall_cmds='chmod 555 $lib' 11393267897Sdelphij # or fails outright, so override atomically: 11394267897Sdelphij install_override_mode=555 11395159764Sobrien ;; 11396159764Sobrien 11397192350Sdelphijinterix[3-9]*) 11398267897Sdelphij version_type=linux # correct to gnu/linux during the next big refactor 11399192350Sdelphij need_lib_prefix=no 11400192350Sdelphij need_version=no 11401192350Sdelphij library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11402192350Sdelphij soname_spec='${libname}${release}${shared_ext}$major' 11403192350Sdelphij dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11404192350Sdelphij shlibpath_var=LD_LIBRARY_PATH 11405192350Sdelphij shlibpath_overrides_runpath=no 11406192350Sdelphij hardcode_into_libs=yes 11407192350Sdelphij ;; 11408192350Sdelphij 11409159764Sobrienirix5* | irix6* | nonstopux*) 11410159764Sobrien case $host_os in 11411159764Sobrien nonstopux*) version_type=nonstopux ;; 11412159764Sobrien *) 11413159764Sobrien if test "$lt_cv_prog_gnu_ld" = yes; then 11414267897Sdelphij version_type=linux # correct to gnu/linux during the next big refactor 11415159764Sobrien else 11416159764Sobrien version_type=irix 11417159764Sobrien fi ;; 11418159764Sobrien esac 11419159764Sobrien need_lib_prefix=no 11420159764Sobrien need_version=no 11421159764Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11422159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11423159764Sobrien case $host_os in 11424159764Sobrien irix5* | nonstopux*) 11425159764Sobrien libsuff= shlibsuff= 11426159764Sobrien ;; 11427159764Sobrien *) 11428159764Sobrien case $LD in # libtool.m4 will add one of these switches to LD 11429159764Sobrien *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11430159764Sobrien libsuff= shlibsuff= libmagic=32-bit;; 11431159764Sobrien *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11432159764Sobrien libsuff=32 shlibsuff=N32 libmagic=N32;; 11433159764Sobrien *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11434159764Sobrien libsuff=64 shlibsuff=64 libmagic=64-bit;; 11435159764Sobrien *) libsuff= shlibsuff= libmagic=never-match;; 11436159764Sobrien esac 11437159764Sobrien ;; 11438159764Sobrien esac 11439159764Sobrien shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11440159764Sobrien shlibpath_overrides_runpath=no 11441159764Sobrien sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11442159764Sobrien sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11443159764Sobrien hardcode_into_libs=yes 11444159764Sobrien ;; 11445159764Sobrien 11446159764Sobrien# No shared lib support for Linux oldld, aout, or coff. 11447159764Sobrienlinux*oldld* | linux*aout* | linux*coff*) 11448159764Sobrien dynamic_linker=no 11449159764Sobrien ;; 11450159764Sobrien 11451267897Sdelphij# This must be glibc/ELF. 11452267897Sdelphijlinux* | k*bsd*-gnu | kopensolaris*-gnu) 11453267897Sdelphij version_type=linux # correct to gnu/linux during the next big refactor 11454159764Sobrien need_lib_prefix=no 11455159764Sobrien need_version=no 11456159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11457159764Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11458159764Sobrien finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11459159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11460159764Sobrien shlibpath_overrides_runpath=no 11461267897Sdelphij 11462234449Sobrien # Some binutils ld are patched to set DT_RUNPATH 11463267897Sdelphij if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11464267897Sdelphij $as_echo_n "(cached) " >&6 11465267897Sdelphijelse 11466267897Sdelphij lt_cv_shlibpath_overrides_runpath=no 11467267897Sdelphij save_LDFLAGS=$LDFLAGS 11468267897Sdelphij save_libdir=$libdir 11469267897Sdelphij eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11470267897Sdelphij LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11471267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11472234449Sobrien/* end confdefs.h. */ 11473234449Sobrien 11474234449Sobrienint 11475234449Sobrienmain () 11476234449Sobrien{ 11477234449Sobrien 11478234449Sobrien ; 11479234449Sobrien return 0; 11480234449Sobrien} 11481234449Sobrien_ACEOF 11482234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 11483234449Sobrien if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11484267897Sdelphij lt_cv_shlibpath_overrides_runpath=yes 11485234449Sobrienfi 11486234449Sobrienfi 11487234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 11488234449Sobrien conftest$ac_exeext conftest.$ac_ext 11489267897Sdelphij LDFLAGS=$save_LDFLAGS 11490267897Sdelphij libdir=$save_libdir 11491234449Sobrien 11492267897Sdelphijfi 11493267897Sdelphij 11494267897Sdelphij shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11495267897Sdelphij 11496159764Sobrien # This implies no fast_install, which is unacceptable. 11497159764Sobrien # Some rework will be needed to allow for fast_install 11498159764Sobrien # before this can be enabled. 11499159764Sobrien hardcode_into_libs=yes 11500159764Sobrien 11501159764Sobrien # Append ld.so.conf contents to the search path 11502159764Sobrien if test -f /etc/ld.so.conf; then 11503267897Sdelphij 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' ' '` 11504159764Sobrien sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11505159764Sobrien fi 11506159764Sobrien 11507159764Sobrien # We used to test for /lib/ld.so.1 and disable shared libraries on 11508159764Sobrien # powerpc, because MkLinux only supported shared libraries with the 11509159764Sobrien # GNU dynamic linker. Since this was broken with cross compilers, 11510159764Sobrien # most powerpc-linux boxes support dynamic linking these days and 11511159764Sobrien # people can always --disable-shared, the test was removed, and we 11512159764Sobrien # assume the GNU/Linux dynamic linker is in use. 11513159764Sobrien dynamic_linker='GNU/Linux ld.so' 11514159764Sobrien ;; 11515159764Sobrien 11516159764Sobriennetbsd*) 11517159764Sobrien version_type=sunos 11518159764Sobrien need_lib_prefix=no 11519159764Sobrien need_version=no 11520234449Sobrien if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11521159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11522159764Sobrien finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11523159764Sobrien dynamic_linker='NetBSD (a.out) ld.so' 11524159764Sobrien else 11525159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11526159764Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11527159764Sobrien dynamic_linker='NetBSD ld.elf_so' 11528159764Sobrien fi 11529159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11530159764Sobrien shlibpath_overrides_runpath=yes 11531159764Sobrien hardcode_into_libs=yes 11532159764Sobrien ;; 11533159764Sobrien 11534159764Sobriennewsos6) 11535267897Sdelphij version_type=linux # correct to gnu/linux during the next big refactor 11536159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11537159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11538159764Sobrien shlibpath_overrides_runpath=yes 11539159764Sobrien ;; 11540159764Sobrien 11541234449Sobrien*nto* | *qnx*) 11542234449Sobrien version_type=qnx 11543159764Sobrien need_lib_prefix=no 11544159764Sobrien need_version=no 11545159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11546159764Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11547159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11548234449Sobrien shlibpath_overrides_runpath=no 11549234449Sobrien hardcode_into_libs=yes 11550234449Sobrien dynamic_linker='ldqnx.so' 11551159764Sobrien ;; 11552159764Sobrien 11553159764Sobrienopenbsd*) 11554159764Sobrien version_type=sunos 11555192350Sdelphij sys_lib_dlsearch_path_spec="/usr/lib" 11556159764Sobrien need_lib_prefix=no 11557159764Sobrien # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11558159764Sobrien case $host_os in 11559234449Sobrien openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11560234449Sobrien *) need_version=no ;; 11561159764Sobrien esac 11562159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11563159764Sobrien finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11564159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11565234449Sobrien if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11566159764Sobrien case $host_os in 11567159764Sobrien openbsd2.[89] | openbsd2.[89].*) 11568159764Sobrien shlibpath_overrides_runpath=no 11569159764Sobrien ;; 11570159764Sobrien *) 11571159764Sobrien shlibpath_overrides_runpath=yes 11572159764Sobrien ;; 11573159764Sobrien esac 11574159764Sobrien else 11575159764Sobrien shlibpath_overrides_runpath=yes 11576159764Sobrien fi 11577159764Sobrien ;; 11578159764Sobrien 11579159764Sobrienos2*) 11580159764Sobrien libname_spec='$name' 11581159764Sobrien shrext_cmds=".dll" 11582159764Sobrien need_lib_prefix=no 11583159764Sobrien library_names_spec='$libname${shared_ext} $libname.a' 11584159764Sobrien dynamic_linker='OS/2 ld.exe' 11585159764Sobrien shlibpath_var=LIBPATH 11586159764Sobrien ;; 11587159764Sobrien 11588159764Sobrienosf3* | osf4* | osf5*) 11589159764Sobrien version_type=osf 11590159764Sobrien need_lib_prefix=no 11591159764Sobrien need_version=no 11592159764Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11593159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11594159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11595159764Sobrien sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11596159764Sobrien sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11597159764Sobrien ;; 11598159764Sobrien 11599192350Sdelphijrdos*) 11600192350Sdelphij dynamic_linker=no 11601159764Sobrien ;; 11602159764Sobrien 11603159764Sobriensolaris*) 11604267897Sdelphij version_type=linux # correct to gnu/linux during the next big refactor 11605159764Sobrien need_lib_prefix=no 11606159764Sobrien need_version=no 11607159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11608159764Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11609159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11610159764Sobrien shlibpath_overrides_runpath=yes 11611159764Sobrien hardcode_into_libs=yes 11612159764Sobrien # ldd complains unless libraries are executable 11613159764Sobrien postinstall_cmds='chmod +x $lib' 11614159764Sobrien ;; 11615159764Sobrien 11616159764Sobriensunos4*) 11617159764Sobrien version_type=sunos 11618159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11619159764Sobrien finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11620159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11621159764Sobrien shlibpath_overrides_runpath=yes 11622159764Sobrien if test "$with_gnu_ld" = yes; then 11623159764Sobrien need_lib_prefix=no 11624159764Sobrien fi 11625159764Sobrien need_version=yes 11626159764Sobrien ;; 11627159764Sobrien 11628192350Sdelphijsysv4 | sysv4.3*) 11629267897Sdelphij version_type=linux # correct to gnu/linux during the next big refactor 11630159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11631159764Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11632159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11633159764Sobrien case $host_vendor in 11634159764Sobrien sni) 11635159764Sobrien shlibpath_overrides_runpath=no 11636159764Sobrien need_lib_prefix=no 11637159764Sobrien runpath_var=LD_RUN_PATH 11638159764Sobrien ;; 11639159764Sobrien siemens) 11640159764Sobrien need_lib_prefix=no 11641159764Sobrien ;; 11642159764Sobrien motorola) 11643159764Sobrien need_lib_prefix=no 11644159764Sobrien need_version=no 11645159764Sobrien shlibpath_overrides_runpath=no 11646159764Sobrien sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11647159764Sobrien ;; 11648159764Sobrien esac 11649159764Sobrien ;; 11650159764Sobrien 11651159764Sobriensysv4*MP*) 11652159764Sobrien if test -d /usr/nec ;then 11653267897Sdelphij version_type=linux # correct to gnu/linux during the next big refactor 11654159764Sobrien library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11655159764Sobrien soname_spec='$libname${shared_ext}.$major' 11656159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11657159764Sobrien fi 11658159764Sobrien ;; 11659159764Sobrien 11660192350Sdelphijsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11661192350Sdelphij version_type=freebsd-elf 11662192350Sdelphij need_lib_prefix=no 11663192350Sdelphij need_version=no 11664192350Sdelphij library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11665192350Sdelphij soname_spec='${libname}${release}${shared_ext}$major' 11666192350Sdelphij shlibpath_var=LD_LIBRARY_PATH 11667234449Sobrien shlibpath_overrides_runpath=yes 11668192350Sdelphij hardcode_into_libs=yes 11669192350Sdelphij if test "$with_gnu_ld" = yes; then 11670192350Sdelphij sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11671192350Sdelphij else 11672192350Sdelphij sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11673192350Sdelphij case $host_os in 11674192350Sdelphij sco3.2v5*) 11675192350Sdelphij sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11676192350Sdelphij ;; 11677192350Sdelphij esac 11678192350Sdelphij fi 11679192350Sdelphij sys_lib_dlsearch_path_spec='/usr/lib' 11680192350Sdelphij ;; 11681192350Sdelphij 11682234449Sobrientpf*) 11683234449Sobrien # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11684267897Sdelphij version_type=linux # correct to gnu/linux during the next big refactor 11685234449Sobrien need_lib_prefix=no 11686234449Sobrien need_version=no 11687234449Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11688234449Sobrien shlibpath_var=LD_LIBRARY_PATH 11689234449Sobrien shlibpath_overrides_runpath=no 11690234449Sobrien hardcode_into_libs=yes 11691234449Sobrien ;; 11692234449Sobrien 11693159764Sobrienuts4*) 11694267897Sdelphij version_type=linux # correct to gnu/linux during the next big refactor 11695159764Sobrien library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11696159764Sobrien soname_spec='${libname}${release}${shared_ext}$major' 11697159764Sobrien shlibpath_var=LD_LIBRARY_PATH 11698159764Sobrien ;; 11699159764Sobrien 11700159764Sobrien*) 11701159764Sobrien dynamic_linker=no 11702159764Sobrien ;; 11703159764Sobrienesac 11704234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11705234449Sobrien$as_echo "$dynamic_linker" >&6; } 11706159764Sobrientest "$dynamic_linker" = no && can_build_shared=no 11707159764Sobrien 11708234449Sobrienvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11709234449Sobrienif test "$GCC" = yes; then 11710234449Sobrien variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11711234449Sobrienfi 11712234449Sobrien 11713192350Sdelphijif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11714234449Sobrien sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11715192350Sdelphijfi 11716192350Sdelphijif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11717234449Sobrien sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11718192350Sdelphijfi 11719192350Sdelphij 11720192350Sdelphij 11721192350Sdelphij 11722234449Sobrien 11723234449Sobrien 11724234449Sobrien 11725234449Sobrien 11726234449Sobrien 11727234449Sobrien 11728234449Sobrien 11729234449Sobrien 11730234449Sobrien 11731234449Sobrien 11732234449Sobrien 11733234449Sobrien 11734234449Sobrien 11735234449Sobrien 11736234449Sobrien 11737234449Sobrien 11738234449Sobrien 11739234449Sobrien 11740234449Sobrien 11741234449Sobrien 11742234449Sobrien 11743234449Sobrien 11744234449Sobrien 11745234449Sobrien 11746234449Sobrien 11747234449Sobrien 11748234449Sobrien 11749234449Sobrien 11750234449Sobrien 11751234449Sobrien 11752234449Sobrien 11753234449Sobrien 11754234449Sobrien 11755234449Sobrien 11756234449Sobrien 11757234449Sobrien 11758234449Sobrien 11759234449Sobrien 11760234449Sobrien 11761234449Sobrien 11762234449Sobrien 11763234449Sobrien 11764234449Sobrien 11765234449Sobrien 11766234449Sobrien 11767234449Sobrien 11768234449Sobrien 11769234449Sobrien 11770234449Sobrien 11771234449Sobrien 11772234449Sobrien 11773234449Sobrien 11774234449Sobrien 11775234449Sobrien 11776234449Sobrien 11777234449Sobrien 11778234449Sobrien 11779234449Sobrien 11780234449Sobrien 11781234449Sobrien 11782234449Sobrien 11783234449Sobrien 11784234449Sobrien 11785234449Sobrien 11786234449Sobrien 11787234449Sobrien 11788234449Sobrien 11789234449Sobrien 11790234449Sobrien 11791234449Sobrien 11792234449Sobrien 11793234449Sobrien 11794234449Sobrien 11795234449Sobrien 11796234449Sobrien 11797234449Sobrien 11798234449Sobrien 11799234449Sobrien 11800234449Sobrien 11801234449Sobrien 11802234449Sobrien 11803234449Sobrien 11804234449Sobrien 11805234449Sobrien 11806267897Sdelphij 11807267897Sdelphij 11808267897Sdelphij 11809267897Sdelphij 11810267897Sdelphij 11811234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11812234449Sobrien$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11813159764Sobrienhardcode_action= 11814234449Sobrienif test -n "$hardcode_libdir_flag_spec" || 11815234449Sobrien test -n "$runpath_var" || 11816159764Sobrien test "X$hardcode_automatic" = "Xyes" ; then 11817159764Sobrien 11818234449Sobrien # We can hardcode non-existent directories. 11819159764Sobrien if test "$hardcode_direct" != no && 11820159764Sobrien # If the only mechanism to avoid hardcoding is shlibpath_var, we 11821159764Sobrien # have to relink, otherwise we might link with an installed library 11822159764Sobrien # when we should be linking with a yet-to-be-installed one 11823234449Sobrien ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11824159764Sobrien test "$hardcode_minus_L" != no; then 11825159764Sobrien # Linking always hardcodes the temporary library directory. 11826159764Sobrien hardcode_action=relink 11827159764Sobrien else 11828159764Sobrien # We can link without hardcoding, and we can hardcode nonexisting dirs. 11829159764Sobrien hardcode_action=immediate 11830159764Sobrien fi 11831159764Sobrienelse 11832159764Sobrien # We cannot hardcode anything, or else we can only hardcode existing 11833159764Sobrien # directories. 11834159764Sobrien hardcode_action=unsupported 1183568349Sobrienfi 11836234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11837234449Sobrien$as_echo "$hardcode_action" >&6; } 11838139368Sobrien 11839234449Sobrienif test "$hardcode_action" = relink || 11840234449Sobrien test "$inherit_rpath" = yes; then 11841159764Sobrien # Fast installation is not supported 11842159764Sobrien enable_fast_install=no 11843159764Sobrienelif test "$shlibpath_overrides_runpath" = yes || 11844159764Sobrien test "$enable_shared" = no; then 11845159764Sobrien # Fast installation is not necessary 11846159764Sobrien enable_fast_install=needless 11847159764Sobrienfi 11848159764Sobrien 11849159764Sobrien 11850234449Sobrien 11851234449Sobrien 11852234449Sobrien 11853234449Sobrien 11854234449Sobrien if test "x$enable_dlopen" != xyes; then 11855159764Sobrien enable_dlopen=unknown 11856159764Sobrien enable_dlopen_self=unknown 11857159764Sobrien enable_dlopen_self_static=unknown 11858159764Sobrienelse 11859159764Sobrien lt_cv_dlopen=no 11860159764Sobrien lt_cv_dlopen_libs= 11861159764Sobrien 11862159764Sobrien case $host_os in 11863159764Sobrien beos*) 11864159764Sobrien lt_cv_dlopen="load_add_on" 11865159764Sobrien lt_cv_dlopen_libs= 11866159764Sobrien lt_cv_dlopen_self=yes 11867159764Sobrien ;; 11868159764Sobrien 11869234449Sobrien mingw* | pw32* | cegcc*) 11870159764Sobrien lt_cv_dlopen="LoadLibrary" 11871159764Sobrien lt_cv_dlopen_libs= 11872234449Sobrien ;; 11873159764Sobrien 11874159764Sobrien cygwin*) 11875159764Sobrien lt_cv_dlopen="dlopen" 11876159764Sobrien lt_cv_dlopen_libs= 11877234449Sobrien ;; 11878159764Sobrien 11879159764Sobrien darwin*) 11880159764Sobrien # if libdl is installed we need to link against it 11881234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11882234449Sobrien$as_echo_n "checking for dlopen in -ldl... " >&6; } 11883234449Sobrienif ${ac_cv_lib_dl_dlopen+:} false; then : 11884234449Sobrien $as_echo_n "(cached) " >&6 1188568349Sobrienelse 11886159764Sobrien ac_check_lib_save_LIBS=$LIBS 11887159764SobrienLIBS="-ldl $LIBS" 11888234449Sobriencat confdefs.h - <<_ACEOF >conftest.$ac_ext 11889159764Sobrien/* end confdefs.h. */ 11890139368Sobrien 11891175296Sobrien/* Override any GCC internal prototype to avoid an error. 11892175296Sobrien Use char because int might match the return type of a GCC 11893175296Sobrien builtin and then its argument prototype would still apply. */ 11894159764Sobrien#ifdef __cplusplus 11895159764Sobrienextern "C" 11896133359Sobrien#endif 11897159764Sobrienchar dlopen (); 11898139368Sobrienint 11899139368Sobrienmain () 11900139368Sobrien{ 11901175296Sobrienreturn dlopen (); 11902139368Sobrien ; 11903139368Sobrien return 0; 11904139368Sobrien} 11905133359Sobrien_ACEOF 11906234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 11907159764Sobrien ac_cv_lib_dl_dlopen=yes 11908139368Sobrienelse 11909234449Sobrien ac_cv_lib_dl_dlopen=no 11910139368Sobrienfi 11911234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 11912234449Sobrien conftest$ac_exeext conftest.$ac_ext 11913159764SobrienLIBS=$ac_check_lib_save_LIBS 11914159764Sobrienfi 11915234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11916234449Sobrien$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11917234449Sobrienif test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11918159764Sobrien lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11919159764Sobrienelse 11920139368Sobrien 11921159764Sobrien lt_cv_dlopen="dyld" 11922159764Sobrien lt_cv_dlopen_libs= 11923159764Sobrien lt_cv_dlopen_self=yes 11924159764Sobrien 11925139368Sobrienfi 11926139368Sobrien 11927234449Sobrien ;; 11928139368Sobrien 11929159764Sobrien *) 11930234449Sobrien ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11931234449Sobrienif test "x$ac_cv_func_shl_load" = xyes; then : 11932159764Sobrien lt_cv_dlopen="shl_load" 11933159764Sobrienelse 11934234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11935234449Sobrien$as_echo_n "checking for shl_load in -ldld... " >&6; } 11936234449Sobrienif ${ac_cv_lib_dld_shl_load+:} false; then : 11937234449Sobrien $as_echo_n "(cached) " >&6 11938139368Sobrienelse 11939159764Sobrien ac_check_lib_save_LIBS=$LIBS 11940159764SobrienLIBS="-ldld $LIBS" 11941234449Sobriencat confdefs.h - <<_ACEOF >conftest.$ac_ext 11942159764Sobrien/* end confdefs.h. */ 11943139368Sobrien 11944175296Sobrien/* Override any GCC internal prototype to avoid an error. 11945175296Sobrien Use char because int might match the return type of a GCC 11946175296Sobrien builtin and then its argument prototype would still apply. */ 11947159764Sobrien#ifdef __cplusplus 11948159764Sobrienextern "C" 11949159764Sobrien#endif 11950159764Sobrienchar shl_load (); 11951159764Sobrienint 11952159764Sobrienmain () 11953159764Sobrien{ 11954175296Sobrienreturn shl_load (); 11955159764Sobrien ; 11956159764Sobrien return 0; 11957159764Sobrien} 11958159764Sobrien_ACEOF 11959234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 11960159764Sobrien ac_cv_lib_dld_shl_load=yes 1196168349Sobrienelse 11962234449Sobrien ac_cv_lib_dld_shl_load=no 11963139368Sobrienfi 11964234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 11965234449Sobrien conftest$ac_exeext conftest.$ac_ext 11966159764SobrienLIBS=$ac_check_lib_save_LIBS 11967159764Sobrienfi 11968234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11969234449Sobrien$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11970234449Sobrienif test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11971192350Sdelphij lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11972159764Sobrienelse 11973234449Sobrien ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11974234449Sobrienif test "x$ac_cv_func_dlopen" = xyes; then : 11975159764Sobrien lt_cv_dlopen="dlopen" 11976159764Sobrienelse 11977234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11978234449Sobrien$as_echo_n "checking for dlopen in -ldl... " >&6; } 11979234449Sobrienif ${ac_cv_lib_dl_dlopen+:} false; then : 11980234449Sobrien $as_echo_n "(cached) " >&6 11981159764Sobrienelse 11982159764Sobrien ac_check_lib_save_LIBS=$LIBS 11983159764SobrienLIBS="-ldl $LIBS" 11984234449Sobriencat confdefs.h - <<_ACEOF >conftest.$ac_ext 11985159764Sobrien/* end confdefs.h. */ 11986133359Sobrien 11987175296Sobrien/* Override any GCC internal prototype to avoid an error. 11988175296Sobrien Use char because int might match the return type of a GCC 11989175296Sobrien builtin and then its argument prototype would still apply. */ 11990159764Sobrien#ifdef __cplusplus 11991159764Sobrienextern "C" 11992159764Sobrien#endif 11993159764Sobrienchar dlopen (); 11994159764Sobrienint 11995159764Sobrienmain () 11996159764Sobrien{ 11997175296Sobrienreturn dlopen (); 11998159764Sobrien ; 11999159764Sobrien return 0; 12000159764Sobrien} 12001159764Sobrien_ACEOF 12002234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 12003159764Sobrien ac_cv_lib_dl_dlopen=yes 12004139368Sobrienelse 12005234449Sobrien ac_cv_lib_dl_dlopen=no 12006139368Sobrienfi 12007234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 12008234449Sobrien conftest$ac_exeext conftest.$ac_ext 12009159764SobrienLIBS=$ac_check_lib_save_LIBS 12010159764Sobrienfi 12011234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12012234449Sobrien$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12013234449Sobrienif test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12014159764Sobrien lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12015159764Sobrienelse 12016234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12017234449Sobrien$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12018234449Sobrienif ${ac_cv_lib_svld_dlopen+:} false; then : 12019234449Sobrien $as_echo_n "(cached) " >&6 12020159764Sobrienelse 12021159764Sobrien ac_check_lib_save_LIBS=$LIBS 12022159764SobrienLIBS="-lsvld $LIBS" 12023234449Sobriencat confdefs.h - <<_ACEOF >conftest.$ac_ext 12024159764Sobrien/* end confdefs.h. */ 12025139368Sobrien 12026175296Sobrien/* Override any GCC internal prototype to avoid an error. 12027175296Sobrien Use char because int might match the return type of a GCC 12028175296Sobrien builtin and then its argument prototype would still apply. */ 12029159764Sobrien#ifdef __cplusplus 12030159764Sobrienextern "C" 12031159764Sobrien#endif 12032159764Sobrienchar dlopen (); 12033159764Sobrienint 12034159764Sobrienmain () 12035159764Sobrien{ 12036175296Sobrienreturn dlopen (); 12037159764Sobrien ; 12038159764Sobrien return 0; 12039159764Sobrien} 12040159764Sobrien_ACEOF 12041234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 12042159764Sobrien ac_cv_lib_svld_dlopen=yes 12043139368Sobrienelse 12044234449Sobrien ac_cv_lib_svld_dlopen=no 12045139368Sobrienfi 12046234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 12047234449Sobrien conftest$ac_exeext conftest.$ac_ext 12048159764SobrienLIBS=$ac_check_lib_save_LIBS 12049159764Sobrienfi 12050234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12051234449Sobrien$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12052234449Sobrienif test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12053159764Sobrien lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12054159764Sobrienelse 12055234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12056234449Sobrien$as_echo_n "checking for dld_link in -ldld... " >&6; } 12057234449Sobrienif ${ac_cv_lib_dld_dld_link+:} false; then : 12058234449Sobrien $as_echo_n "(cached) " >&6 12059159764Sobrienelse 12060159764Sobrien ac_check_lib_save_LIBS=$LIBS 12061159764SobrienLIBS="-ldld $LIBS" 12062234449Sobriencat confdefs.h - <<_ACEOF >conftest.$ac_ext 12063159764Sobrien/* end confdefs.h. */ 12064139368Sobrien 12065175296Sobrien/* Override any GCC internal prototype to avoid an error. 12066175296Sobrien Use char because int might match the return type of a GCC 12067175296Sobrien builtin and then its argument prototype would still apply. */ 12068159764Sobrien#ifdef __cplusplus 12069159764Sobrienextern "C" 12070139368Sobrien#endif 12071159764Sobrienchar dld_link (); 12072139368Sobrienint 12073139368Sobrienmain () 12074139368Sobrien{ 12075175296Sobrienreturn dld_link (); 12076139368Sobrien ; 12077139368Sobrien return 0; 12078139368Sobrien} 12079133359Sobrien_ACEOF 12080234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 12081159764Sobrien ac_cv_lib_dld_dld_link=yes 12082139368Sobrienelse 12083234449Sobrien ac_cv_lib_dld_dld_link=no 12084139368Sobrienfi 12085234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 12086234449Sobrien conftest$ac_exeext conftest.$ac_ext 12087159764SobrienLIBS=$ac_check_lib_save_LIBS 12088159764Sobrienfi 12089234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12090234449Sobrien$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12091234449Sobrienif test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12092192350Sdelphij lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12093159764Sobrienfi 12094139368Sobrien 12095159764Sobrien 12096159764Sobrienfi 12097159764Sobrien 12098159764Sobrien 12099159764Sobrienfi 12100159764Sobrien 12101159764Sobrien 12102159764Sobrienfi 12103159764Sobrien 12104159764Sobrien 12105159764Sobrienfi 12106159764Sobrien 12107159764Sobrien 12108159764Sobrienfi 12109159764Sobrien 12110159764Sobrien ;; 12111159764Sobrien esac 12112159764Sobrien 12113159764Sobrien if test "x$lt_cv_dlopen" != xno; then 12114159764Sobrien enable_dlopen=yes 12115133359Sobrien else 12116159764Sobrien enable_dlopen=no 12117133359Sobrien fi 12118139368Sobrien 12119159764Sobrien case $lt_cv_dlopen in 12120159764Sobrien dlopen) 12121159764Sobrien save_CPPFLAGS="$CPPFLAGS" 12122159764Sobrien test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12123139368Sobrien 12124159764Sobrien save_LDFLAGS="$LDFLAGS" 12125192350Sdelphij wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12126139368Sobrien 12127159764Sobrien save_LIBS="$LIBS" 12128159764Sobrien LIBS="$lt_cv_dlopen_libs $LIBS" 12129159764Sobrien 12130234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12131234449Sobrien$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12132234449Sobrienif ${lt_cv_dlopen_self+:} false; then : 12133234449Sobrien $as_echo_n "(cached) " >&6 12134159764Sobrienelse 12135159764Sobrien if test "$cross_compiling" = yes; then : 12136159764Sobrien lt_cv_dlopen_self=cross 12137159764Sobrienelse 12138159764Sobrien lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12139159764Sobrien lt_status=$lt_dlunknown 12140234449Sobrien cat > conftest.$ac_ext <<_LT_EOF 12141267897Sdelphij#line $LINENO "configure" 12142159764Sobrien#include "confdefs.h" 12143159764Sobrien 12144159764Sobrien#if HAVE_DLFCN_H 12145159764Sobrien#include <dlfcn.h> 12146159764Sobrien#endif 12147159764Sobrien 12148159764Sobrien#include <stdio.h> 12149159764Sobrien 12150159764Sobrien#ifdef RTLD_GLOBAL 12151159764Sobrien# define LT_DLGLOBAL RTLD_GLOBAL 12152159764Sobrien#else 12153159764Sobrien# ifdef DL_GLOBAL 12154159764Sobrien# define LT_DLGLOBAL DL_GLOBAL 12155159764Sobrien# else 12156159764Sobrien# define LT_DLGLOBAL 0 12157159764Sobrien# endif 12158159764Sobrien#endif 12159159764Sobrien 12160159764Sobrien/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12161159764Sobrien find out it does not work in some platform. */ 12162159764Sobrien#ifndef LT_DLLAZY_OR_NOW 12163159764Sobrien# ifdef RTLD_LAZY 12164159764Sobrien# define LT_DLLAZY_OR_NOW RTLD_LAZY 12165159764Sobrien# else 12166159764Sobrien# ifdef DL_LAZY 12167159764Sobrien# define LT_DLLAZY_OR_NOW DL_LAZY 12168159764Sobrien# else 12169159764Sobrien# ifdef RTLD_NOW 12170159764Sobrien# define LT_DLLAZY_OR_NOW RTLD_NOW 12171159764Sobrien# else 12172159764Sobrien# ifdef DL_NOW 12173159764Sobrien# define LT_DLLAZY_OR_NOW DL_NOW 12174159764Sobrien# else 12175159764Sobrien# define LT_DLLAZY_OR_NOW 0 12176159764Sobrien# endif 12177159764Sobrien# endif 12178159764Sobrien# endif 12179159764Sobrien# endif 12180159764Sobrien#endif 12181159764Sobrien 12182267897Sdelphij/* When -fvisbility=hidden is used, assume the code has been annotated 12183267897Sdelphij correspondingly for the symbols needed. */ 12184267897Sdelphij#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12185267897Sdelphijint fnord () __attribute__((visibility("default"))); 12186267897Sdelphij#endif 12187267897Sdelphij 12188267897Sdelphijint fnord () { return 42; } 12189159764Sobrienint main () 12190159764Sobrien{ 12191159764Sobrien void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12192159764Sobrien int status = $lt_dlunknown; 12193159764Sobrien 12194159764Sobrien if (self) 12195159764Sobrien { 12196159764Sobrien if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12197267897Sdelphij else 12198267897Sdelphij { 12199267897Sdelphij if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12200267897Sdelphij else puts (dlerror ()); 12201267897Sdelphij } 12202159764Sobrien /* dlclose (self); */ 12203159764Sobrien } 12204192350Sdelphij else 12205192350Sdelphij puts (dlerror ()); 12206159764Sobrien 12207234449Sobrien return status; 12208159764Sobrien} 12209234449Sobrien_LT_EOF 12210234449Sobrien if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12211159764Sobrien (eval $ac_link) 2>&5 12212159764Sobrien ac_status=$? 12213234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12214234449Sobrien test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12215192350Sdelphij (./conftest; exit; ) >&5 2>/dev/null 12216159764Sobrien lt_status=$? 12217159764Sobrien case x$lt_status in 12218159764Sobrien x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12219159764Sobrien x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12220192350Sdelphij x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12221159764Sobrien esac 12222159764Sobrien else : 12223159764Sobrien # compilation failed 12224159764Sobrien lt_cv_dlopen_self=no 12225139368Sobrien fi 12226159764Sobrienfi 12227159764Sobrienrm -fr conftest* 12228139368Sobrien 12229139368Sobrien 12230159764Sobrienfi 12231234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12232234449Sobrien$as_echo "$lt_cv_dlopen_self" >&6; } 12233139368Sobrien 12234159764Sobrien if test "x$lt_cv_dlopen_self" = xyes; then 12235192350Sdelphij wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12236234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12237234449Sobrien$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12238234449Sobrienif ${lt_cv_dlopen_self_static+:} false; then : 12239234449Sobrien $as_echo_n "(cached) " >&6 12240159764Sobrienelse 12241159764Sobrien if test "$cross_compiling" = yes; then : 12242159764Sobrien lt_cv_dlopen_self_static=cross 12243159764Sobrienelse 12244159764Sobrien lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12245159764Sobrien lt_status=$lt_dlunknown 12246234449Sobrien cat > conftest.$ac_ext <<_LT_EOF 12247267897Sdelphij#line $LINENO "configure" 12248159764Sobrien#include "confdefs.h" 12249139368Sobrien 12250159764Sobrien#if HAVE_DLFCN_H 12251159764Sobrien#include <dlfcn.h> 12252159764Sobrien#endif 12253159764Sobrien 12254159764Sobrien#include <stdio.h> 12255159764Sobrien 12256159764Sobrien#ifdef RTLD_GLOBAL 12257159764Sobrien# define LT_DLGLOBAL RTLD_GLOBAL 12258159764Sobrien#else 12259159764Sobrien# ifdef DL_GLOBAL 12260159764Sobrien# define LT_DLGLOBAL DL_GLOBAL 12261159764Sobrien# else 12262159764Sobrien# define LT_DLGLOBAL 0 12263159764Sobrien# endif 12264159764Sobrien#endif 12265159764Sobrien 12266159764Sobrien/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12267159764Sobrien find out it does not work in some platform. */ 12268159764Sobrien#ifndef LT_DLLAZY_OR_NOW 12269159764Sobrien# ifdef RTLD_LAZY 12270159764Sobrien# define LT_DLLAZY_OR_NOW RTLD_LAZY 12271159764Sobrien# else 12272159764Sobrien# ifdef DL_LAZY 12273159764Sobrien# define LT_DLLAZY_OR_NOW DL_LAZY 12274159764Sobrien# else 12275159764Sobrien# ifdef RTLD_NOW 12276159764Sobrien# define LT_DLLAZY_OR_NOW RTLD_NOW 12277159764Sobrien# else 12278159764Sobrien# ifdef DL_NOW 12279159764Sobrien# define LT_DLLAZY_OR_NOW DL_NOW 12280159764Sobrien# else 12281159764Sobrien# define LT_DLLAZY_OR_NOW 0 12282159764Sobrien# endif 12283159764Sobrien# endif 12284159764Sobrien# endif 12285159764Sobrien# endif 12286159764Sobrien#endif 12287159764Sobrien 12288267897Sdelphij/* When -fvisbility=hidden is used, assume the code has been annotated 12289267897Sdelphij correspondingly for the symbols needed. */ 12290267897Sdelphij#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12291267897Sdelphijint fnord () __attribute__((visibility("default"))); 12292267897Sdelphij#endif 12293267897Sdelphij 12294267897Sdelphijint fnord () { return 42; } 12295159764Sobrienint main () 12296159764Sobrien{ 12297159764Sobrien void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12298159764Sobrien int status = $lt_dlunknown; 12299159764Sobrien 12300159764Sobrien if (self) 12301159764Sobrien { 12302159764Sobrien if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12303267897Sdelphij else 12304267897Sdelphij { 12305267897Sdelphij if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12306267897Sdelphij else puts (dlerror ()); 12307267897Sdelphij } 12308159764Sobrien /* dlclose (self); */ 12309159764Sobrien } 12310192350Sdelphij else 12311192350Sdelphij puts (dlerror ()); 12312159764Sobrien 12313234449Sobrien return status; 12314159764Sobrien} 12315234449Sobrien_LT_EOF 12316234449Sobrien if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12317159764Sobrien (eval $ac_link) 2>&5 12318159764Sobrien ac_status=$? 12319234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12320234449Sobrien test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12321192350Sdelphij (./conftest; exit; ) >&5 2>/dev/null 12322159764Sobrien lt_status=$? 12323159764Sobrien case x$lt_status in 12324159764Sobrien x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12325159764Sobrien x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12326192350Sdelphij x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12327159764Sobrien esac 12328159764Sobrien else : 12329159764Sobrien # compilation failed 12330159764Sobrien lt_cv_dlopen_self_static=no 12331159764Sobrien fi 12332159764Sobrienfi 12333159764Sobrienrm -fr conftest* 12334139368Sobrien 12335139368Sobrien 12336159764Sobrienfi 12337234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12338234449Sobrien$as_echo "$lt_cv_dlopen_self_static" >&6; } 12339159764Sobrien fi 12340159764Sobrien 12341159764Sobrien CPPFLAGS="$save_CPPFLAGS" 12342159764Sobrien LDFLAGS="$save_LDFLAGS" 12343159764Sobrien LIBS="$save_LIBS" 12344139368Sobrien ;; 12345159764Sobrien esac 12346139368Sobrien 12347159764Sobrien case $lt_cv_dlopen_self in 12348159764Sobrien yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12349159764Sobrien *) enable_dlopen_self=unknown ;; 12350159764Sobrien esac 12351159764Sobrien 12352159764Sobrien case $lt_cv_dlopen_self_static in 12353159764Sobrien yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12354159764Sobrien *) enable_dlopen_self_static=unknown ;; 12355159764Sobrien esac 12356159764Sobrienfi 12357159764Sobrien 12358159764Sobrien 12359159764Sobrien 12360159764Sobrien 12361159764Sobrien 12362139368Sobrien 12363139368Sobrien 12364139368Sobrien 12365139368Sobrien 12366139368Sobrien 12367139368Sobrien 12368139368Sobrien 12369159764Sobrien 12370159764Sobrien 12371159764Sobrien 12372159764Sobrien 12373159764Sobrien 12374234449Sobrienstriplib= 12375234449Sobrienold_striplib= 12376234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12377234449Sobrien$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12378234449Sobrienif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12379234449Sobrien test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12380234449Sobrien test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12381234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12382234449Sobrien$as_echo "yes" >&6; } 12383234449Sobrienelse 12384234449Sobrien# FIXME - insert some real tests, host_os isn't really good enough 12385159764Sobrien case $host_os in 12386234449Sobrien darwin*) 12387234449Sobrien if test -n "$STRIP" ; then 12388234449Sobrien striplib="$STRIP -x" 12389234449Sobrien old_striplib="$STRIP -S" 12390234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12391234449Sobrien$as_echo "yes" >&6; } 12392139368Sobrien else 12393234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12394234449Sobrien$as_echo "no" >&6; } 12395139368Sobrien fi 12396139368Sobrien ;; 12397159764Sobrien *) 12398234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12399234449Sobrien$as_echo "no" >&6; } 12400159764Sobrien ;; 12401139368Sobrien esac 12402159764Sobrienfi 12403139368Sobrien 12404159764Sobrien 12405159764Sobrien 12406159764Sobrien 12407159764Sobrien 12408159764Sobrien 12409159764Sobrien 12410159764Sobrien 12411159764Sobrien 12412159764Sobrien 12413159764Sobrien 12414139368Sobrien 12415234449Sobrien # Report which library types will actually be built 12416234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12417234449Sobrien$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12418234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12419234449Sobrien$as_echo "$can_build_shared" >&6; } 12420139368Sobrien 12421234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12422234449Sobrien$as_echo_n "checking whether to build shared libraries... " >&6; } 12423234449Sobrien test "$can_build_shared" = "no" && enable_shared=no 12424139368Sobrien 12425234449Sobrien # On AIX, shared libraries and static libraries use the same namespace, and 12426234449Sobrien # are all built from PIC. 12427159764Sobrien case $host_os in 12428234449Sobrien aix3*) 12429159764Sobrien test "$enable_shared" = yes && enable_static=no 12430234449Sobrien if test -n "$RANLIB"; then 12431234449Sobrien archive_cmds="$archive_cmds~\$RANLIB \$lib" 12432234449Sobrien postinstall_cmds='$RANLIB $lib' 12433159764Sobrien fi 12434159764Sobrien ;; 12435159764Sobrien 12436234449Sobrien aix[4-9]*) 12437234449Sobrien if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12438234449Sobrien test "$enable_shared" = yes && enable_static=no 12439159764Sobrien fi 12440139368Sobrien ;; 12441139368Sobrien esac 12442234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12443234449Sobrien$as_echo "$enable_shared" >&6; } 12444139368Sobrien 12445234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12446234449Sobrien$as_echo_n "checking whether to build static libraries... " >&6; } 12447234449Sobrien # Make sure either enable_shared or enable_static is yes. 12448234449Sobrien test "$enable_shared" = yes || enable_static=yes 12449234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12450234449Sobrien$as_echo "$enable_static" >&6; } 12451192350Sdelphij 12452139368Sobrien 12453159764Sobrien 12454139368Sobrien 12455192350Sdelphijfi 12456159764Sobrienac_ext=c 12457159764Sobrienac_cpp='$CPP $CPPFLAGS' 12458159764Sobrienac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12459159764Sobrienac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12460159764Sobrienac_compiler_gnu=$ac_cv_c_compiler_gnu 12461159764Sobrien 12462159764SobrienCC="$lt_save_CC" 12463159764Sobrien 12464159764Sobrien 12465159764Sobrien 12466159764Sobrien 12467159764Sobrien 12468159764Sobrien 12469159764Sobrien 12470159764Sobrien 12471159764Sobrien 12472159764Sobrien 12473192350Sdelphij 12474159764Sobrien 12475159764Sobrien 12476267897Sdelphij 12477267897Sdelphij 12478234449Sobrien ac_config_commands="$ac_config_commands libtool" 12479159764Sobrien 12480159764Sobrien 12481159764Sobrien 12482159764Sobrien 12483234449Sobrien# Only expand once: 12484159764Sobrien 12485159764Sobrien 12486159764Sobrien 12487267897Sdelphij 12488267897Sdelphij CFLAG_VISIBILITY= 12489267897Sdelphij HAVE_VISIBILITY=0 12490267897Sdelphij if test -n "$GCC"; then 12491267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 12492267897Sdelphij$as_echo_n "checking whether the -Werror option is usable... " >&6; } 12493267897Sdelphij if ${gl_cv_cc_vis_werror+:} false; then : 12494267897Sdelphij $as_echo_n "(cached) " >&6 12495267897Sdelphijelse 12496267897Sdelphij 12497267897Sdelphij gl_save_CFLAGS="$CFLAGS" 12498267897Sdelphij CFLAGS="$CFLAGS -Werror" 12499267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12500267897Sdelphij/* end confdefs.h. */ 12501267897Sdelphij 12502267897Sdelphijint 12503267897Sdelphijmain () 12504267897Sdelphij{ 12505267897Sdelphij 12506267897Sdelphij ; 12507267897Sdelphij return 0; 12508267897Sdelphij} 12509267897Sdelphij_ACEOF 12510267897Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 12511267897Sdelphij gl_cv_cc_vis_werror=yes 12512267897Sdelphijelse 12513267897Sdelphij gl_cv_cc_vis_werror=no 12514267897Sdelphijfi 12515267897Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12516267897Sdelphij CFLAGS="$gl_save_CFLAGS" 12517267897Sdelphijfi 12518267897Sdelphij 12519267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 12520267897Sdelphij$as_echo "$gl_cv_cc_vis_werror" >&6; } 12521267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 12522267897Sdelphij$as_echo_n "checking for simple visibility declarations... " >&6; } 12523267897Sdelphij if ${gl_cv_cc_visibility+:} false; then : 12524267897Sdelphij $as_echo_n "(cached) " >&6 12525267897Sdelphijelse 12526267897Sdelphij 12527267897Sdelphij gl_save_CFLAGS="$CFLAGS" 12528267897Sdelphij CFLAGS="$CFLAGS -fvisibility=hidden" 12529267897Sdelphij if test $gl_cv_cc_vis_werror = yes; then 12530267897Sdelphij CFLAGS="$CFLAGS -Werror" 12531267897Sdelphij fi 12532267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12533267897Sdelphij/* end confdefs.h. */ 12534267897Sdelphijextern __attribute__((__visibility__("hidden"))) int hiddenvar; 12535267897Sdelphij extern __attribute__((__visibility__("default"))) int exportedvar; 12536267897Sdelphij extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 12537267897Sdelphij extern __attribute__((__visibility__("default"))) int exportedfunc (void); 12538267897Sdelphij void dummyfunc (void) {} 12539267897Sdelphij 12540267897Sdelphijint 12541267897Sdelphijmain () 12542267897Sdelphij{ 12543267897Sdelphij 12544267897Sdelphij ; 12545267897Sdelphij return 0; 12546267897Sdelphij} 12547267897Sdelphij_ACEOF 12548267897Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 12549267897Sdelphij gl_cv_cc_visibility=yes 12550267897Sdelphijelse 12551267897Sdelphij gl_cv_cc_visibility=no 12552267897Sdelphijfi 12553267897Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12554267897Sdelphij CFLAGS="$gl_save_CFLAGS" 12555267897Sdelphijfi 12556267897Sdelphij 12557267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 12558267897Sdelphij$as_echo "$gl_cv_cc_visibility" >&6; } 12559267897Sdelphij if test $gl_cv_cc_visibility = yes; then 12560267897Sdelphij CFLAG_VISIBILITY="-fvisibility=hidden" 12561267897Sdelphij HAVE_VISIBILITY=1 12562267897Sdelphij fi 12563267897Sdelphij fi 12564267897Sdelphij 12565267897Sdelphij 12566267897Sdelphij 12567267897Sdelphijcat >>confdefs.h <<_ACEOF 12568267897Sdelphij#define HAVE_VISIBILITY $HAVE_VISIBILITY 12569267897Sdelphij_ACEOF 12570267897Sdelphij 12571267897Sdelphij 12572234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12573234449Sobrien$as_echo_n "checking for ANSI C header files... " >&6; } 12574234449Sobrienif ${ac_cv_header_stdc+:} false; then : 12575234449Sobrien $as_echo_n "(cached) " >&6 12576159764Sobrienelse 12577234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12578159764Sobrien/* end confdefs.h. */ 1257968349Sobrien#include <stdlib.h> 1258068349Sobrien#include <stdarg.h> 1258168349Sobrien#include <string.h> 1258268349Sobrien#include <float.h> 12583133359Sobrien 12584159764Sobrienint 12585159764Sobrienmain () 12586159764Sobrien{ 12587159764Sobrien 12588159764Sobrien ; 12589159764Sobrien return 0; 12590159764Sobrien} 12591133359Sobrien_ACEOF 12592234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 1259368349Sobrien ac_cv_header_stdc=yes 1259468349Sobrienelse 12595234449Sobrien ac_cv_header_stdc=no 1259668349Sobrienfi 12597175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12598175296Sobrien 1259968349Sobrienif test $ac_cv_header_stdc = yes; then 1260068349Sobrien # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12601234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12602159764Sobrien/* end confdefs.h. */ 1260368349Sobrien#include <string.h> 12604133359Sobrien 12605133359Sobrien_ACEOF 1260668349Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12607234449Sobrien $EGREP "memchr" >/dev/null 2>&1; then : 12608234449Sobrien 1260968349Sobrienelse 1261068349Sobrien ac_cv_header_stdc=no 1261168349Sobrienfi 1261268349Sobrienrm -f conftest* 1261368349Sobrien 1261468349Sobrienfi 1261568349Sobrien 1261668349Sobrienif test $ac_cv_header_stdc = yes; then 1261768349Sobrien # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12618234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12619159764Sobrien/* end confdefs.h. */ 1262068349Sobrien#include <stdlib.h> 12621133359Sobrien 12622133359Sobrien_ACEOF 1262368349Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12624234449Sobrien $EGREP "free" >/dev/null 2>&1; then : 12625234449Sobrien 1262668349Sobrienelse 1262768349Sobrien ac_cv_header_stdc=no 1262868349Sobrienfi 1262968349Sobrienrm -f conftest* 1263068349Sobrien 1263168349Sobrienfi 1263268349Sobrien 1263368349Sobrienif test $ac_cv_header_stdc = yes; then 1263468349Sobrien # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12635234449Sobrien if test "$cross_compiling" = yes; then : 1263668349Sobrien : 1263768349Sobrienelse 12638234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12639159764Sobrien/* end confdefs.h. */ 1264068349Sobrien#include <ctype.h> 12641175296Sobrien#include <stdlib.h> 12642133359Sobrien#if ((' ' & 0x0FF) == 0x020) 12643133359Sobrien# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12644133359Sobrien# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12645133359Sobrien#else 12646159764Sobrien# define ISLOWER(c) \ 12647159764Sobrien (('a' <= (c) && (c) <= 'i') \ 12648159764Sobrien || ('j' <= (c) && (c) <= 'r') \ 12649159764Sobrien || ('s' <= (c) && (c) <= 'z')) 12650133359Sobrien# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12651133359Sobrien#endif 12652133359Sobrien 1265368349Sobrien#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12654133359Sobrienint 12655133359Sobrienmain () 12656133359Sobrien{ 12657133359Sobrien int i; 12658133359Sobrien for (i = 0; i < 256; i++) 12659133359Sobrien if (XOR (islower (i), ISLOWER (i)) 12660159764Sobrien || toupper (i) != TOUPPER (i)) 12661175296Sobrien return 2; 12662175296Sobrien return 0; 12663133359Sobrien} 12664133359Sobrien_ACEOF 12665234449Sobrienif ac_fn_c_try_run "$LINENO"; then : 12666234449Sobrien 1266768349Sobrienelse 12668234449Sobrien ac_cv_header_stdc=no 1266968349Sobrienfi 12670234449Sobrienrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12671234449Sobrien conftest.$ac_objext conftest.beam conftest.$ac_ext 1267268349Sobrienfi 12673175296Sobrien 1267468349Sobrienfi 1267568349Sobrienfi 12676234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12677234449Sobrien$as_echo "$ac_cv_header_stdc" >&6; } 12678133359Sobrienif test $ac_cv_header_stdc = yes; then 1267968349Sobrien 12680234449Sobrien$as_echo "#define STDC_HEADERS 1" >>confdefs.h 1268168349Sobrien 1268268349Sobrienfi 1268368349Sobrien 12684234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 12685234449Sobrien$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 12686234449Sobrienif ${ac_cv_header_sys_types_h_makedev+:} false; then : 12687234449Sobrien $as_echo_n "(cached) " >&6 12688133359Sobrienelse 12689234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12690159764Sobrien/* end confdefs.h. */ 1269168349Sobrien#include <sys/types.h> 12692133359Sobrienint 12693133359Sobrienmain () 12694133359Sobrien{ 1269568349Sobrienreturn makedev(0, 0); 12696133359Sobrien ; 12697133359Sobrien return 0; 12698133359Sobrien} 12699133359Sobrien_ACEOF 12700234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 1270168349Sobrien ac_cv_header_sys_types_h_makedev=yes 1270268349Sobrienelse 12703234449Sobrien ac_cv_header_sys_types_h_makedev=no 1270468349Sobrienfi 12705234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 12706234449Sobrien conftest$ac_exeext conftest.$ac_ext 12707175296Sobrien 1270868349Sobrienfi 12709234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 12710234449Sobrien$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 1271168349Sobrien 1271268349Sobrienif test $ac_cv_header_sys_types_h_makedev = no; then 12713234449Sobrienac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 12714234449Sobrienif test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 12715159764Sobrien 12716234449Sobrien$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 12717133359Sobrien 12718133359Sobrienfi 12719175296Sobrien 12720133359Sobrien 1272168349Sobrien 1272268349Sobrien if test $ac_cv_header_sys_mkdev_h = no; then 12723234449Sobrien ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 12724234449Sobrienif test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 12725159764Sobrien 12726234449Sobrien$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 12727133359Sobrien 12728133359Sobrienfi 12729175296Sobrien 12730133359Sobrien 1273168349Sobrien fi 1273268349Sobrienfi 1273368349Sobrien 12734234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 12735234449Sobrien$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 12736234449Sobrienif ${ac_cv_header_sys_wait_h+:} false; then : 12737234449Sobrien $as_echo_n "(cached) " >&6 1273868349Sobrienelse 12739234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12740159764Sobrien/* end confdefs.h. */ 1274168349Sobrien#include <sys/types.h> 1274268349Sobrien#include <sys/wait.h> 1274368349Sobrien#ifndef WEXITSTATUS 12744175296Sobrien# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 1274568349Sobrien#endif 1274668349Sobrien#ifndef WIFEXITED 12747133359Sobrien# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 1274868349Sobrien#endif 12749133359Sobrien 12750133359Sobrienint 12751133359Sobrienmain () 12752133359Sobrien{ 12753133359Sobrien int s; 12754133359Sobrien wait (&s); 12755133359Sobrien s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 12756133359Sobrien ; 12757133359Sobrien return 0; 12758133359Sobrien} 12759133359Sobrien_ACEOF 12760234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 1276168349Sobrien ac_cv_header_sys_wait_h=yes 1276268349Sobrienelse 12763234449Sobrien ac_cv_header_sys_wait_h=no 1276468349Sobrienfi 12765175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1276668349Sobrienfi 12767234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 12768234449Sobrien$as_echo "$ac_cv_header_sys_wait_h" >&6; } 12769133359Sobrienif test $ac_cv_header_sys_wait_h = yes; then 1277068349Sobrien 12771234449Sobrien$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 1277268349Sobrien 1277368349Sobrienfi 1277468349Sobrien 12775186691Sobrienfor ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h 12776234449Sobriendo : 12777234449Sobrien as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12778234449Sobrienac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12779234449Sobrienif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12780133359Sobrien cat >>confdefs.h <<_ACEOF 12781234449Sobrien#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12782133359Sobrien_ACEOF 12783133359Sobrien 12784133359Sobrienfi 12785133359Sobrien 12786103373Sobriendone 12787103373Sobrien 12788267897Sdelphijfor ac_header in stddef.h utime.h wchar.h wctype.h limits.h 12789234449Sobriendo : 12790234449Sobrien as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12791234449Sobrienac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12792234449Sobrienif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12793133359Sobrien cat >>confdefs.h <<_ACEOF 12794234449Sobrien#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12795133359Sobrien_ACEOF 12796133359Sobrien 12797133359Sobrienfi 12798133359Sobrien 12799103373Sobriendone 12800103373Sobrien 12801284237Sdelphijfor ac_header in getopt.h err.h xlocale.h signal.h 12802234449Sobriendo : 12803234449Sobrien as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12804234449Sobrienac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12805234449Sobrienif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12806133359Sobrien cat >>confdefs.h <<_ACEOF 12807234449Sobrien#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12808133359Sobrien_ACEOF 12809133359Sobrien 12810133359Sobrienfi 12811133359Sobrien 12812103373Sobriendone 12813103373Sobrien 12814169962Sobrienfor ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h 12815234449Sobriendo : 12816234449Sobrien as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12817234449Sobrienac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12818234449Sobrienif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12819175296Sobrien cat >>confdefs.h <<_ACEOF 12820234449Sobrien#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12821175296Sobrien_ACEOF 12822175296Sobrien 12823175296Sobrienfi 12824175296Sobrien 12825175296Sobriendone 12826175296Sobrien 12827302221Sdelphijif test "$enable_zlib" != "no"; then 12828302221Sdelphij for ac_header in zlib.h 12829234449Sobriendo : 12830234449Sobrien ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 12831234449Sobrienif test "x$ac_cv_header_zlib_h" = xyes; then : 12832133359Sobrien cat >>confdefs.h <<_ACEOF 12833234449Sobrien#define HAVE_ZLIB_H 1 12834133359Sobrien_ACEOF 12835133359Sobrien 12836133359Sobrienfi 12837133359Sobrien 12838133359Sobriendone 12839133359Sobrien 12840302221Sdelphijfi 12841284237Sdelphijac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" " 12842284237Sdelphij#ifdef HAVE_SIGNAL_H 12843284237Sdelphij#include <signal.h> 12844284237Sdelphij#endif 12845284237Sdelphij" 12846284237Sdelphijif test "x$ac_cv_type_sig_t" = xyes; then : 12847133359Sobrien 12848284237Sdelphij$as_echo "#define HAVE_SIG_T 1" >>confdefs.h 12849284237Sdelphij 12850284237Sdelphijfi 12851284237Sdelphij 12852284237Sdelphij 12853234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12854234449Sobrien$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12855234449Sobrienif ${ac_cv_c_const+:} false; then : 12856234449Sobrien $as_echo_n "(cached) " >&6 12857133359Sobrienelse 12858234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12859159764Sobrien/* end confdefs.h. */ 12860133359Sobrien 12861133359Sobrienint 12862133359Sobrienmain () 12863133359Sobrien{ 12864267897Sdelphij 12865133359Sobrien#ifndef __cplusplus 12866267897Sdelphij /* Ultrix mips cc rejects this sort of thing. */ 12867133359Sobrien typedef int charset[2]; 12868267897Sdelphij const charset cs = { 0, 0 }; 12869133359Sobrien /* SunOS 4.1.1 cc rejects this. */ 12870175296Sobrien char const *const *pcpcc; 12871175296Sobrien char **ppc; 12872133359Sobrien /* NEC SVR4.0.2 mips cc rejects this. */ 12873133359Sobrien struct point {int x, y;}; 12874133359Sobrien static struct point const zero = {0,0}; 12875133359Sobrien /* AIX XL C 1.02.0.0 rejects this. 12876133359Sobrien It does not let you subtract one const X* pointer from another in 12877133359Sobrien an arm of an if-expression whose if-part is not a constant 12878133359Sobrien expression */ 12879133359Sobrien const char *g = "string"; 12880175296Sobrien pcpcc = &g + (g ? g-g : 0); 12881133359Sobrien /* HPUX 7.0 cc rejects these. */ 12882175296Sobrien ++pcpcc; 12883175296Sobrien ppc = (char**) pcpcc; 12884175296Sobrien pcpcc = (char const *const *) ppc; 12885267897Sdelphij { /* SCO 3.2v4 cc rejects this sort of thing. */ 12886267897Sdelphij char tx; 12887267897Sdelphij char *t = &tx; 12888133359Sobrien char const *s = 0 ? (char *) 0 : (char const *) 0; 12889133359Sobrien 12890133359Sobrien *t++ = 0; 12891175296Sobrien if (s) return 0; 12892133359Sobrien } 12893133359Sobrien { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12894133359Sobrien int x[] = {25, 17}; 12895133359Sobrien const int *foo = &x[0]; 12896133359Sobrien ++foo; 12897133359Sobrien } 12898133359Sobrien { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12899133359Sobrien typedef const int *iptr; 12900133359Sobrien iptr p = 0; 12901133359Sobrien ++p; 12902133359Sobrien } 12903267897Sdelphij { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12904133359Sobrien "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12905267897Sdelphij struct s { int j; const int *ap[3]; } bx; 12906267897Sdelphij struct s *b = &bx; b->j = 5; 12907133359Sobrien } 12908133359Sobrien { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12909133359Sobrien const int foo = 10; 12910175296Sobrien if (!foo) return 0; 12911133359Sobrien } 12912175296Sobrien return !cs[0] && !zero.x; 12913133359Sobrien#endif 12914133359Sobrien 12915133359Sobrien ; 12916133359Sobrien return 0; 1291768349Sobrien} 12918133359Sobrien_ACEOF 12919234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 1292068349Sobrien ac_cv_c_const=yes 1292168349Sobrienelse 12922234449Sobrien ac_cv_c_const=no 1292368349Sobrienfi 12924175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1292568349Sobrienfi 12926234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12927234449Sobrien$as_echo "$ac_cv_c_const" >&6; } 1292868349Sobrienif test $ac_cv_c_const = no; then 1292968349Sobrien 12930234449Sobrien$as_echo "#define const /**/" >>confdefs.h 12931133359Sobrien 1293268349Sobrienfi 1293368349Sobrien 12934234449Sobrienac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 12935234449Sobrienif test "x$ac_cv_type_off_t" = xyes; then : 12936159764Sobrien 12937133359Sobrienelse 1293868349Sobrien 12939133359Sobriencat >>confdefs.h <<_ACEOF 12940175296Sobrien#define off_t long int 12941133359Sobrien_ACEOF 1294268349Sobrien 1294368349Sobrienfi 1294468349Sobrien 12945234449Sobrienac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12946234449Sobrienif test "x$ac_cv_type_size_t" = xyes; then : 12947159764Sobrien 12948133359Sobrienelse 1294968349Sobrien 12950133359Sobriencat >>confdefs.h <<_ACEOF 12951175296Sobrien#define size_t unsigned int 12952133359Sobrien_ACEOF 1295368349Sobrien 1295468349Sobrienfi 1295568349Sobrien 12956234449Sobrienac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 12957234449Sobrienif test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 12958159764Sobrien 12959133359Sobriencat >>confdefs.h <<_ACEOF 12960133359Sobrien#define HAVE_STRUCT_STAT_ST_RDEV 1 12961133359Sobrien_ACEOF 12962133359Sobrien 12963133359Sobrien 1296468349Sobrienfi 1296568349Sobrien 12966133359Sobrien 12967267897Sdelphijac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default" 12968267897Sdelphijif test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : 12969267897Sdelphij 12970267897Sdelphijcat >>confdefs.h <<_ACEOF 12971267897Sdelphij#define HAVE_STRUCT_TM_TM_GMTOFF 1 12972267897Sdelphij_ACEOF 12973267897Sdelphij 12974267897Sdelphij 12975267897Sdelphijfi 12976267897Sdelphij 12977234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 12978234449Sobrien$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 12979234449Sobrienif ${ac_cv_struct_tm+:} false; then : 12980234449Sobrien $as_echo_n "(cached) " >&6 1298184685Sobrienelse 12982234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12983159764Sobrien/* end confdefs.h. */ 1298484685Sobrien#include <sys/types.h> 1298584685Sobrien#include <time.h> 12986133359Sobrien 12987133359Sobrienint 12988133359Sobrienmain () 12989133359Sobrien{ 12990175296Sobrienstruct tm tm; 12991175296Sobrien int *p = &tm.tm_sec; 12992234449Sobrien return !p; 12993133359Sobrien ; 12994133359Sobrien return 0; 12995133359Sobrien} 12996133359Sobrien_ACEOF 12997234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 1299884685Sobrien ac_cv_struct_tm=time.h 1299984685Sobrienelse 13000234449Sobrien ac_cv_struct_tm=sys/time.h 1300184685Sobrienfi 13002175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1300384685Sobrienfi 13004234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13005234449Sobrien$as_echo "$ac_cv_struct_tm" >&6; } 13006133359Sobrienif test $ac_cv_struct_tm = sys/time.h; then 1300768349Sobrien 13008234449Sobrien$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 1300984685Sobrien 1301084685Sobrienfi 1301184685Sobrien 13012267897Sdelphijac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 13013267897Sdelphij#include <$ac_cv_struct_tm> 13014191771Sobrien 13015267897Sdelphij" 13016267897Sdelphijif test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 13017267897Sdelphij 13018191771Sobriencat >>confdefs.h <<_ACEOF 13019267897Sdelphij#define HAVE_STRUCT_TM_TM_ZONE 1 13020191771Sobrien_ACEOF 13021191771Sobrien 13022191771Sobrien 13023191771Sobrienfi 13024191771Sobrien 13025267897Sdelphijif test "$ac_cv_member_struct_tm_tm_zone" = yes; then 13026267897Sdelphij 13027267897Sdelphij$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 13028267897Sdelphij 13029267897Sdelphijelse 13030267897Sdelphij ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13031267897Sdelphij" 13032267897Sdelphijif test "x$ac_cv_have_decl_tzname" = xyes; then : 13033267897Sdelphij ac_have_decl=1 13034267897Sdelphijelse 13035267897Sdelphij ac_have_decl=0 13036267897Sdelphijfi 13037267897Sdelphij 13038191771Sobriencat >>confdefs.h <<_ACEOF 13039267897Sdelphij#define HAVE_DECL_TZNAME $ac_have_decl 13040191771Sobrien_ACEOF 13041191771Sobrien 13042267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 13043267897Sdelphij$as_echo_n "checking for tzname... " >&6; } 13044267897Sdelphijif ${ac_cv_var_tzname+:} false; then : 13045267897Sdelphij $as_echo_n "(cached) " >&6 13046267897Sdelphijelse 13047267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13048267897Sdelphij/* end confdefs.h. */ 13049267897Sdelphij#include <time.h> 13050267897Sdelphij#if !HAVE_DECL_TZNAME 13051267897Sdelphijextern char *tzname[]; 13052267897Sdelphij#endif 13053191771Sobrien 13054267897Sdelphijint 13055267897Sdelphijmain () 13056267897Sdelphij{ 13057267897Sdelphijreturn tzname[0][0]; 13058267897Sdelphij ; 13059267897Sdelphij return 0; 13060267897Sdelphij} 13061267897Sdelphij_ACEOF 13062267897Sdelphijif ac_fn_c_try_link "$LINENO"; then : 13063267897Sdelphij ac_cv_var_tzname=yes 13064267897Sdelphijelse 13065267897Sdelphij ac_cv_var_tzname=no 13066191771Sobrienfi 13067267897Sdelphijrm -f core conftest.err conftest.$ac_objext \ 13068267897Sdelphij conftest$ac_exeext conftest.$ac_ext 13069267897Sdelphijfi 13070267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 13071267897Sdelphij$as_echo "$ac_cv_var_tzname" >&6; } 13072267897Sdelphij if test $ac_cv_var_tzname = yes; then 13073191771Sobrien 13074267897Sdelphij$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 13075267897Sdelphij 13076267897Sdelphij fi 13077267897Sdelphijfi 13078267897Sdelphij 13079234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 13080234449Sobrien$as_echo_n "checking for tm_zone in struct tm... " >&6; } 13081234449Sobrienif ${ac_cv_struct_tm_zone+:} false; then : 13082234449Sobrien $as_echo_n "(cached) " >&6 1308384685Sobrienelse 13084234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13085159764Sobrien/* end confdefs.h. */ 1308684685Sobrien#include <sys/types.h> 1308784685Sobrien#include <$ac_cv_struct_tm> 13088133359Sobrienint 13089133359Sobrienmain () 13090133359Sobrien{ 1309184685Sobrienstruct tm tm; tm.tm_zone; 13092133359Sobrien ; 13093133359Sobrien return 0; 13094133359Sobrien} 13095133359Sobrien_ACEOF 13096234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 1309784685Sobrien ac_cv_struct_tm_zone=yes 1309884685Sobrienelse 13099234449Sobrien ac_cv_struct_tm_zone=no 1310084685Sobrienfi 13101175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1310284685Sobrienfi 13103234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5 13104234449Sobrien$as_echo "$ac_cv_struct_tm_zone" >&6; } 13105133359Sobrienif test "$ac_cv_struct_tm_zone" = yes; then 1310684685Sobrien 13107234449Sobrien$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 1310884685Sobrien 1310984685Sobrienfi 13110192350Sdelphij 13111234449Sobrien# On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will 13112234449Sobrien# consider it declared and we won't give our own extern. 13113234449Sobrienac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13114234449Sobrien" 13115234449Sobrienif test "x$ac_cv_have_decl_tzname" = xyes; then : 13116234449Sobrien ac_have_decl=1 1311784685Sobrienelse 13118234449Sobrien ac_have_decl=0 13119234449Sobrienfi 13120234449Sobrien 13121234449Sobriencat >>confdefs.h <<_ACEOF 13122234449Sobrien#define HAVE_DECL_TZNAME $ac_have_decl 13123159764Sobrien_ACEOF 13124234449Sobrien 13125234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 13126234449Sobrien$as_echo_n "checking for tzname... " >&6; } 13127234449Sobrienif ${ac_cv_var_tzname+:} false; then : 13128234449Sobrien $as_echo_n "(cached) " >&6 13129234449Sobrienelse 13130234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13131159764Sobrien/* end confdefs.h. */ 1313284685Sobrien#include <time.h> 13133234449Sobrien#if !HAVE_DECL_TZNAME 13134234449Sobrienextern char *tzname[]; 1313584685Sobrien#endif 13136133359Sobrienint 13137133359Sobrienmain () 13138133359Sobrien{ 13139234449Sobrienreturn tzname[0][0]; 13140133359Sobrien ; 13141133359Sobrien return 0; 13142133359Sobrien} 13143133359Sobrien_ACEOF 13144234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 1314584685Sobrien ac_cv_var_tzname=yes 1314684685Sobrienelse 13147234449Sobrien ac_cv_var_tzname=no 1314884685Sobrienfi 13149234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 13150234449Sobrien conftest$ac_exeext conftest.$ac_ext 1315184685Sobrienfi 13152234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 13153234449Sobrien$as_echo "$ac_cv_var_tzname" >&6; } 13154133359Sobrien if test $ac_cv_var_tzname = yes; then 1315584685Sobrien 13156234449Sobrien$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 1315784685Sobrien 1315884685Sobrien fi 1315984685Sobrien 13160234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5 13161234449Sobrien$as_echo_n "checking for tm_isdst in struct tm... " >&6; } 13162234449Sobrienif ${ac_cv_struct_tm_isdst+:} false; then : 13163234449Sobrien $as_echo_n "(cached) " >&6 1316484685Sobrienelse 13165234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13166159764Sobrien/* end confdefs.h. */ 1316784685Sobrien#include <sys/types.h> 1316884685Sobrien#include <$ac_cv_struct_tm> 13169133359Sobrienint 13170133359Sobrienmain () 13171133359Sobrien{ 1317284685Sobrienstruct tm tm; tm.tm_isdst; 13173133359Sobrien ; 13174133359Sobrien return 0; 13175133359Sobrien} 13176133359Sobrien_ACEOF 13177234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 1317884685Sobrien ac_cv_struct_tm_isdst=yes 1317984685Sobrienelse 13180234449Sobrien ac_cv_struct_tm_isdst=no 1318184685Sobrienfi 13182175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1318384685Sobrienfi 13184234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5 13185234449Sobrien$as_echo "$ac_cv_struct_tm_isdst" >&6; } 1318684685Sobrienif test "$ac_cv_struct_tm_isdst" = yes; then 13187186691Sobrien 13188234449Sobrien$as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h 1318984685Sobrien 1319084685Sobrienfi 13191192350Sdelphij 13192234449Sobrien 13193234449Sobrienac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h> 13194234449Sobrien" 13195234449Sobrienif test "x$ac_cv_have_decl_daylight" = xyes; then : 13196234449Sobrien ac_have_decl=1 1319784685Sobrienelse 13198234449Sobrien ac_have_decl=0 13199234449Sobrienfi 13200234449Sobrien 13201234449Sobriencat >>confdefs.h <<_ACEOF 13202234449Sobrien#define HAVE_DECL_DAYLIGHT $ac_have_decl 13203159764Sobrien_ACEOF 13204234449Sobrien 13205234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5 13206234449Sobrien$as_echo_n "checking for daylight... " >&6; } 13207234449Sobrienif ${ac_cv_var_daylight+:} false; then : 13208234449Sobrien $as_echo_n "(cached) " >&6 13209234449Sobrienelse 13210234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13211159764Sobrien/* end confdefs.h. */ 1321284685Sobrien#include <time.h> 13213234449Sobrien#if !HAVE_DECL_DAYLIGHT 1321484685Sobrienextern int daylight; 1321584685Sobrien#endif 13216133359Sobrienint 13217133359Sobrienmain () 13218133359Sobrien{ 1321984685Sobrienatoi(daylight); 13220133359Sobrien ; 13221133359Sobrien return 0; 13222133359Sobrien} 13223133359Sobrien_ACEOF 13224234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 1322584685Sobrien ac_cv_var_daylight=yes 1322684685Sobrienelse 13227234449Sobrien ac_cv_var_daylight=no 1322884685Sobrienfi 13229234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 13230234449Sobrien conftest$ac_exeext conftest.$ac_ext 1323184685Sobrienfi 13232234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5 13233234449Sobrien$as_echo "$ac_cv_var_daylight" >&6; } 1323484685Sobrien if test $ac_cv_var_daylight = yes; then 13235186691Sobrien 13236234449Sobrien$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h 1323784685Sobrien 1323884685Sobrien fi 1323984685Sobrien 13240186691Sobrien# Check whether --enable-largefile was given. 13241234449Sobrienif test "${enable_largefile+set}" = set; then : 13242175296Sobrien enableval=$enable_largefile; 13243175296Sobrienfi 13244103373Sobrien 13245186691Sobrienif test "$enable_largefile" != no; then 13246103373Sobrien 13247234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13248234449Sobrien$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13249234449Sobrienif ${ac_cv_sys_largefile_CC+:} false; then : 13250234449Sobrien $as_echo_n "(cached) " >&6 13251103373Sobrienelse 13252103373Sobrien ac_cv_sys_largefile_CC=no 13253186691Sobrien if test "$GCC" != yes; then 13254186691Sobrien ac_save_CC=$CC 13255186691Sobrien while :; do 13256186691Sobrien # IRIX 6.2 and later do not support large files by default, 13257186691Sobrien # so use the C compiler's -n32 option if that helps. 13258234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13259159764Sobrien/* end confdefs.h. */ 13260103373Sobrien#include <sys/types.h> 13261186691Sobrien /* Check that off_t can represent 2**63 - 1 correctly. 13262186691Sobrien We can't simply define LARGE_OFF_T to be 9223372036854775807, 13263186691Sobrien since some C++ compilers masquerading as C compilers 13264186691Sobrien incorrectly reject 9223372036854775807. */ 13265186691Sobrien#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13266186691Sobrien int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13267186691Sobrien && LARGE_OFF_T % 2147483647 == 1) 13268186691Sobrien ? 1 : -1]; 13269133359Sobrienint 13270133359Sobrienmain () 13271133359Sobrien{ 13272133359Sobrien 13273133359Sobrien ; 13274133359Sobrien return 0; 13275133359Sobrien} 13276133359Sobrien_ACEOF 13277234449Sobrien if ac_fn_c_try_compile "$LINENO"; then : 13278186691Sobrien break 13279186691Sobrienfi 13280186691Sobrienrm -f core conftest.err conftest.$ac_objext 13281186691Sobrien CC="$CC -n32" 13282234449Sobrien if ac_fn_c_try_compile "$LINENO"; then : 13283186691Sobrien ac_cv_sys_largefile_CC=' -n32'; break 13284103373Sobrienfi 13285186691Sobrienrm -f core conftest.err conftest.$ac_objext 13286186691Sobrien break 13287186691Sobrien done 13288186691Sobrien CC=$ac_save_CC 13289186691Sobrien rm -f conftest.$ac_ext 13290186691Sobrien fi 13291103373Sobrienfi 13292234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13293234449Sobrien$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13294186691Sobrien if test "$ac_cv_sys_largefile_CC" != no; then 13295186691Sobrien CC=$CC$ac_cv_sys_largefile_CC 13296186691Sobrien fi 13297103373Sobrien 13298234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13299234449Sobrien$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13300234449Sobrienif ${ac_cv_sys_file_offset_bits+:} false; then : 13301234449Sobrien $as_echo_n "(cached) " >&6 13302103373Sobrienelse 13303186691Sobrien while :; do 13304234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13305159764Sobrien/* end confdefs.h. */ 13306103373Sobrien#include <sys/types.h> 13307186691Sobrien /* Check that off_t can represent 2**63 - 1 correctly. 13308186691Sobrien We can't simply define LARGE_OFF_T to be 9223372036854775807, 13309186691Sobrien since some C++ compilers masquerading as C compilers 13310186691Sobrien incorrectly reject 9223372036854775807. */ 13311186691Sobrien#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13312186691Sobrien int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13313186691Sobrien && LARGE_OFF_T % 2147483647 == 1) 13314186691Sobrien ? 1 : -1]; 13315133359Sobrienint 13316133359Sobrienmain () 13317133359Sobrien{ 13318133359Sobrien 13319133359Sobrien ; 13320133359Sobrien return 0; 13321133359Sobrien} 13322133359Sobrien_ACEOF 13323234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 13324186691Sobrien ac_cv_sys_file_offset_bits=no; break 13325186691Sobrienfi 13326186691Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13327234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13328159764Sobrien/* end confdefs.h. */ 13329103373Sobrien#define _FILE_OFFSET_BITS 64 13330103373Sobrien#include <sys/types.h> 13331186691Sobrien /* Check that off_t can represent 2**63 - 1 correctly. 13332186691Sobrien We can't simply define LARGE_OFF_T to be 9223372036854775807, 13333186691Sobrien since some C++ compilers masquerading as C compilers 13334186691Sobrien incorrectly reject 9223372036854775807. */ 13335186691Sobrien#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13336186691Sobrien int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13337186691Sobrien && LARGE_OFF_T % 2147483647 == 1) 13338186691Sobrien ? 1 : -1]; 13339133359Sobrienint 13340133359Sobrienmain () 13341133359Sobrien{ 13342133359Sobrien 13343133359Sobrien ; 13344133359Sobrien return 0; 13345133359Sobrien} 13346133359Sobrien_ACEOF 13347234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 13348186691Sobrien ac_cv_sys_file_offset_bits=64; break 13349103373Sobrienfi 13350175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13351186691Sobrien ac_cv_sys_file_offset_bits=unknown 13352186691Sobrien break 13353186691Sobriendone 13354103373Sobrienfi 13355234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13356234449Sobrien$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13357186691Sobriencase $ac_cv_sys_file_offset_bits in #( 13358186691Sobrien no | unknown) ;; 13359186691Sobrien *) 13360133359Sobriencat >>confdefs.h <<_ACEOF 13361103373Sobrien#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13362133359Sobrien_ACEOF 13363186691Sobrien;; 13364186691Sobrienesac 13365234449Sobrienrm -rf conftest* 13366186691Sobrien if test $ac_cv_sys_file_offset_bits = unknown; then 13367234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13368234449Sobrien$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13369234449Sobrienif ${ac_cv_sys_large_files+:} false; then : 13370234449Sobrien $as_echo_n "(cached) " >&6 13371103373Sobrienelse 13372186691Sobrien while :; do 13373234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13374159764Sobrien/* end confdefs.h. */ 13375103373Sobrien#include <sys/types.h> 13376186691Sobrien /* Check that off_t can represent 2**63 - 1 correctly. 13377186691Sobrien We can't simply define LARGE_OFF_T to be 9223372036854775807, 13378186691Sobrien since some C++ compilers masquerading as C compilers 13379186691Sobrien incorrectly reject 9223372036854775807. */ 13380186691Sobrien#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13381186691Sobrien int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13382186691Sobrien && LARGE_OFF_T % 2147483647 == 1) 13383186691Sobrien ? 1 : -1]; 13384133359Sobrienint 13385133359Sobrienmain () 13386133359Sobrien{ 13387133359Sobrien 13388133359Sobrien ; 13389133359Sobrien return 0; 13390133359Sobrien} 13391133359Sobrien_ACEOF 13392234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 13393186691Sobrien ac_cv_sys_large_files=no; break 13394186691Sobrienfi 13395186691Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13396234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13397159764Sobrien/* end confdefs.h. */ 13398103373Sobrien#define _LARGE_FILES 1 13399103373Sobrien#include <sys/types.h> 13400186691Sobrien /* Check that off_t can represent 2**63 - 1 correctly. 13401186691Sobrien We can't simply define LARGE_OFF_T to be 9223372036854775807, 13402186691Sobrien since some C++ compilers masquerading as C compilers 13403186691Sobrien incorrectly reject 9223372036854775807. */ 13404186691Sobrien#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13405186691Sobrien int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13406186691Sobrien && LARGE_OFF_T % 2147483647 == 1) 13407186691Sobrien ? 1 : -1]; 13408133359Sobrienint 13409133359Sobrienmain () 13410133359Sobrien{ 13411133359Sobrien 13412133359Sobrien ; 13413133359Sobrien return 0; 13414133359Sobrien} 13415133359Sobrien_ACEOF 13416234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 13417186691Sobrien ac_cv_sys_large_files=1; break 13418103373Sobrienfi 13419175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13420186691Sobrien ac_cv_sys_large_files=unknown 13421186691Sobrien break 13422186691Sobriendone 13423103373Sobrienfi 13424234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13425234449Sobrien$as_echo "$ac_cv_sys_large_files" >&6; } 13426186691Sobriencase $ac_cv_sys_large_files in #( 13427186691Sobrien no | unknown) ;; 13428186691Sobrien *) 13429133359Sobriencat >>confdefs.h <<_ACEOF 13430103373Sobrien#define _LARGE_FILES $ac_cv_sys_large_files 13431133359Sobrien_ACEOF 13432186691Sobrien;; 13433186691Sobrienesac 13434234449Sobrienrm -rf conftest* 13435186691Sobrien fi 13436267897Sdelphij 13437267897Sdelphij 13438186691Sobrienfi 13439103373Sobrien 13440234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 13441234449Sobrien$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 13442234449Sobrienif ${ac_cv_sys_largefile_source+:} false; then : 13443234449Sobrien $as_echo_n "(cached) " >&6 13444186691Sobrienelse 13445186691Sobrien while :; do 13446234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13447186691Sobrien/* end confdefs.h. */ 13448234449Sobrien#include <sys/types.h> /* for off_t */ 13449234449Sobrien #include <stdio.h> 13450186691Sobrienint 13451186691Sobrienmain () 13452186691Sobrien{ 13453234449Sobrienint (*fp) (FILE *, off_t, int) = fseeko; 13454234449Sobrien return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 13455186691Sobrien ; 13456186691Sobrien return 0; 13457186691Sobrien} 13458186691Sobrien_ACEOF 13459234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 13460186691Sobrien ac_cv_sys_largefile_source=no; break 13461186691Sobrienfi 13462234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 13463234449Sobrien conftest$ac_exeext conftest.$ac_ext 13464234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13465186691Sobrien/* end confdefs.h. */ 13466186691Sobrien#define _LARGEFILE_SOURCE 1 13467234449Sobrien#include <sys/types.h> /* for off_t */ 13468234449Sobrien #include <stdio.h> 13469186691Sobrienint 13470186691Sobrienmain () 13471186691Sobrien{ 13472234449Sobrienint (*fp) (FILE *, off_t, int) = fseeko; 13473234449Sobrien return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 13474186691Sobrien ; 13475186691Sobrien return 0; 13476186691Sobrien} 13477186691Sobrien_ACEOF 13478234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 13479186691Sobrien ac_cv_sys_largefile_source=1; break 13480186691Sobrienfi 13481234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 13482234449Sobrien conftest$ac_exeext conftest.$ac_ext 13483186691Sobrien ac_cv_sys_largefile_source=unknown 13484186691Sobrien break 13485186691Sobriendone 13486186691Sobrienfi 13487234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 13488234449Sobrien$as_echo "$ac_cv_sys_largefile_source" >&6; } 13489186691Sobriencase $ac_cv_sys_largefile_source in #( 13490186691Sobrien no | unknown) ;; 13491186691Sobrien *) 13492186691Sobriencat >>confdefs.h <<_ACEOF 13493186691Sobrien#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 13494186691Sobrien_ACEOF 13495186691Sobrien;; 13496186691Sobrienesac 13497234449Sobrienrm -rf conftest* 13498186691Sobrien 13499186691Sobrien# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 13500186691Sobrien# in glibc 2.1.3, but that breaks too many other things. 13501186691Sobrien# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 13502186691Sobrienif test $ac_cv_sys_largefile_source != unknown; then 13503186691Sobrien 13504234449Sobrien$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 13505186691Sobrien 13506186691Sobrienfi 13507186691Sobrien 13508234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 13509234449Sobrien$as_echo_n "checking for mbstate_t... " >&6; } 13510234449Sobrienif ${ac_cv_type_mbstate_t+:} false; then : 13511234449Sobrien $as_echo_n "(cached) " >&6 13512133359Sobrienelse 13513234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13514159764Sobrien/* end confdefs.h. */ 13515159764Sobrien$ac_includes_default 13516159764Sobrien# include <wchar.h> 13517133359Sobrienint 13518133359Sobrienmain () 13519133359Sobrien{ 13520133359Sobrienmbstate_t x; return sizeof x; 13521133359Sobrien ; 13522133359Sobrien return 0; 13523133359Sobrien} 13524133359Sobrien_ACEOF 13525234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 13526133359Sobrien ac_cv_type_mbstate_t=yes 13527133359Sobrienelse 13528234449Sobrien ac_cv_type_mbstate_t=no 13529133359Sobrienfi 13530175296Sobrienrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13531133359Sobrienfi 13532234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 13533234449Sobrien$as_echo "$ac_cv_type_mbstate_t" >&6; } 13534159764Sobrien if test $ac_cv_type_mbstate_t = yes; then 13535133359Sobrien 13536234449Sobrien$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 13537159764Sobrien 13538159764Sobrien else 13539159764Sobrien 13540234449Sobrien$as_echo "#define mbstate_t int" >>confdefs.h 13541133359Sobrien 13542133359Sobrien fi 13543133359Sobrien 13544234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5 13545234449Sobrien$as_echo_n "checking for struct option in getopt... " >&6; } 13546234449Sobrienif ${ac_cv_struct_option_getopt_h+:} false; then : 13547234449Sobrien $as_echo_n "(cached) " >&6 13548192350Sdelphijelse 13549234449Sobrien cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13550192350Sdelphij/* end confdefs.h. */ 13551192350Sdelphij#include <getopt.h> 13552192350Sdelphijint 13553192350Sdelphijmain () 13554192350Sdelphij{ 13555192350Sdelphijstruct option op; op.name; 13556192350Sdelphij ; 13557192350Sdelphij return 0; 13558192350Sdelphij} 13559192350Sdelphij_ACEOF 13560234449Sobrienif ac_fn_c_try_compile "$LINENO"; then : 13561192350Sdelphij ac_cv_struct_option_getopt_h=yes 13562192350Sdelphijelse 13563234449Sobrien ac_cv_struct_option_getopt_h=no 13564192350Sdelphijfi 13565192350Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13566192350Sdelphijfi 13567234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5 13568234449Sobrien$as_echo "$ac_cv_struct_option_getopt_h" >&6; } 13569192350Sdelphijif test "$ac_cv_struct_option_getopt_h" = yes; then 13570192350Sdelphij 13571234449Sobrien$as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h 13572192350Sdelphij 13573192350Sdelphijfi 13574192350Sdelphij 13575234449Sobrienac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13576234449Sobrienif test "x$ac_cv_type_pid_t" = xyes; then : 13577234449Sobrien 13578267897Sdelphijelse 13579267897Sdelphij 13580234449Sobriencat >>confdefs.h <<_ACEOF 13581267897Sdelphij#define pid_t int 13582159764Sobrien_ACEOF 13583186691Sobrien 1358468349Sobrienfi 13585186691Sobrien 13586267897Sdelphijac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 13587267897Sdelphijcase $ac_cv_c_uint8_t in #( 13588267897Sdelphij no|yes) ;; #( 13589267897Sdelphij *) 13590267897Sdelphij 13591267897Sdelphij$as_echo "#define _UINT8_T 1" >>confdefs.h 13592267897Sdelphij 13593267897Sdelphij 13594186691Sobriencat >>confdefs.h <<_ACEOF 13595267897Sdelphij#define uint8_t $ac_cv_c_uint8_t 13596133359Sobrien_ACEOF 13597267897Sdelphij;; 13598267897Sdelphij esac 1359968349Sobrien 13600267897Sdelphijac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 13601267897Sdelphijcase $ac_cv_c_uint16_t in #( 13602267897Sdelphij no|yes) ;; #( 13603267897Sdelphij *) 13604186691Sobrien 13605186691Sobrien 13606186691Sobriencat >>confdefs.h <<_ACEOF 13607267897Sdelphij#define uint16_t $ac_cv_c_uint16_t 13608133359Sobrien_ACEOF 13609267897Sdelphij;; 13610267897Sdelphij esac 1361168349Sobrien 13612267897Sdelphijac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 13613267897Sdelphijcase $ac_cv_c_uint32_t in #( 13614267897Sdelphij no|yes) ;; #( 13615267897Sdelphij *) 13616186691Sobrien 13617267897Sdelphij$as_echo "#define _UINT32_T 1" >>confdefs.h 13618186691Sobrien 13619267897Sdelphij 13620186691Sobriencat >>confdefs.h <<_ACEOF 13621267897Sdelphij#define uint32_t $ac_cv_c_uint32_t 13622133359Sobrien_ACEOF 13623267897Sdelphij;; 13624267897Sdelphij esac 1362568349Sobrien 13626267897Sdelphijac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 13627267897Sdelphijcase $ac_cv_c_int32_t in #( 13628267897Sdelphij no|yes) ;; #( 13629267897Sdelphij *) 13630186691Sobrien 13631267897Sdelphijcat >>confdefs.h <<_ACEOF 13632267897Sdelphij#define int32_t $ac_cv_c_int32_t 13633267897Sdelphij_ACEOF 13634267897Sdelphij;; 13635267897Sdelphijesac 13636186691Sobrien 13637267897Sdelphijac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 13638267897Sdelphijcase $ac_cv_c_uint64_t in #( 13639267897Sdelphij no|yes) ;; #( 13640267897Sdelphij *) 13641267897Sdelphij 13642267897Sdelphij$as_echo "#define _UINT64_T 1" >>confdefs.h 13643267897Sdelphij 13644267897Sdelphij 13645186691Sobriencat >>confdefs.h <<_ACEOF 13646267897Sdelphij#define uint64_t $ac_cv_c_uint64_t 13647133359Sobrien_ACEOF 13648267897Sdelphij;; 13649267897Sdelphij esac 13650111658Sobrien 13651267897Sdelphijac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 13652267897Sdelphijcase $ac_cv_c_int64_t in #( 13653267897Sdelphij no|yes) ;; #( 13654267897Sdelphij *) 13655186691Sobrien 13656267897Sdelphijcat >>confdefs.h <<_ACEOF 13657267897Sdelphij#define int64_t $ac_cv_c_int64_t 13658267897Sdelphij_ACEOF 13659267897Sdelphij;; 13660267897Sdelphijesac 13661267897Sdelphij 13662267897Sdelphij 13663267897Sdelphij ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 13664267897Sdelphijif test "x$ac_cv_type_intptr_t" = xyes; then : 13665267897Sdelphij 13666267897Sdelphij$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 13667267897Sdelphij 13668267897Sdelphijelse 13669267897Sdelphij for ac_type in 'int' 'long int' 'long long int'; do 13670267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13671267897Sdelphij/* end confdefs.h. */ 13672267897Sdelphij$ac_includes_default 13673267897Sdelphijint 13674267897Sdelphijmain () 13675267897Sdelphij{ 13676267897Sdelphijstatic int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 13677267897Sdelphijtest_array [0] = 0; 13678267897Sdelphijreturn test_array [0]; 13679267897Sdelphij 13680267897Sdelphij ; 13681267897Sdelphij return 0; 13682267897Sdelphij} 13683267897Sdelphij_ACEOF 13684267897Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 13685267897Sdelphij 13686267897Sdelphijcat >>confdefs.h <<_ACEOF 13687267897Sdelphij#define intptr_t $ac_type 13688267897Sdelphij_ACEOF 13689267897Sdelphij 13690267897Sdelphij ac_type= 13691111658Sobrienfi 13692267897Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13693267897Sdelphij test -z "$ac_type" && break 13694267897Sdelphij done 13695267897Sdelphijfi 13696159764Sobrien 13697267897Sdelphij 13698267897Sdelphij 13699267897Sdelphij ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 13700267897Sdelphijif test "x$ac_cv_type_uintptr_t" = xyes; then : 13701267897Sdelphij 13702267897Sdelphij$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 13703267897Sdelphij 13704267897Sdelphijelse 13705267897Sdelphij for ac_type in 'unsigned int' 'unsigned long int' \ 13706267897Sdelphij 'unsigned long long int'; do 13707267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13708267897Sdelphij/* end confdefs.h. */ 13709267897Sdelphij$ac_includes_default 13710267897Sdelphijint 13711267897Sdelphijmain () 13712267897Sdelphij{ 13713267897Sdelphijstatic int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 13714267897Sdelphijtest_array [0] = 0; 13715267897Sdelphijreturn test_array [0]; 13716267897Sdelphij 13717267897Sdelphij ; 13718267897Sdelphij return 0; 13719267897Sdelphij} 13720267897Sdelphij_ACEOF 13721267897Sdelphijif ac_fn_c_try_compile "$LINENO"; then : 13722267897Sdelphij 13723186691Sobriencat >>confdefs.h <<_ACEOF 13724267897Sdelphij#define uintptr_t $ac_type 13725133359Sobrien_ACEOF 1372668349Sobrien 13727267897Sdelphij ac_type= 13728267897Sdelphijfi 13729267897Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13730267897Sdelphij test -z "$ac_type" && break 13731267897Sdelphij done 13732267897Sdelphijfi 1373368349Sobrien 13734267897Sdelphij 13735267897Sdelphij 13736267897Sdelphij 13737267897Sdelphij 13738267897Sdelphij for ac_header in $ac_header_list 13739267897Sdelphijdo : 13740267897Sdelphij as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13741267897Sdelphijac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13742267897Sdelphij" 13743267897Sdelphijif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13744267897Sdelphij cat >>confdefs.h <<_ACEOF 13745267897Sdelphij#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13746267897Sdelphij_ACEOF 13747267897Sdelphij 1374868349Sobrienfi 13749186691Sobrien 13750267897Sdelphijdone 13751267897Sdelphij 13752267897Sdelphij 13753267897Sdelphij 13754267897Sdelphij 13755267897Sdelphij 13756267897Sdelphij 13757267897Sdelphij 13758267897Sdelphij 13759267897Sdelphijfor ac_func in getpagesize 13760267897Sdelphijdo : 13761267897Sdelphij ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 13762267897Sdelphijif test "x$ac_cv_func_getpagesize" = xyes; then : 13763267897Sdelphij cat >>confdefs.h <<_ACEOF 13764267897Sdelphij#define HAVE_GETPAGESIZE 1 13765133359Sobrien_ACEOF 1376668349Sobrien 13767267897Sdelphijfi 13768267897Sdelphijdone 13769186691Sobrien 13770267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 13771267897Sdelphij$as_echo_n "checking for working mmap... " >&6; } 13772267897Sdelphijif ${ac_cv_func_mmap_fixed_mapped+:} false; then : 13773267897Sdelphij $as_echo_n "(cached) " >&6 13774267897Sdelphijelse 13775267897Sdelphij if test "$cross_compiling" = yes; then : 13776267897Sdelphij ac_cv_func_mmap_fixed_mapped=no 13777267897Sdelphijelse 13778267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13779267897Sdelphij/* end confdefs.h. */ 13780267897Sdelphij$ac_includes_default 13781267897Sdelphij/* malloc might have been renamed as rpl_malloc. */ 13782267897Sdelphij#undef malloc 13783267897Sdelphij 13784267897Sdelphij/* Thanks to Mike Haertel and Jim Avera for this test. 13785267897Sdelphij Here is a matrix of mmap possibilities: 13786267897Sdelphij mmap private not fixed 13787267897Sdelphij mmap private fixed at somewhere currently unmapped 13788267897Sdelphij mmap private fixed at somewhere already mapped 13789267897Sdelphij mmap shared not fixed 13790267897Sdelphij mmap shared fixed at somewhere currently unmapped 13791267897Sdelphij mmap shared fixed at somewhere already mapped 13792267897Sdelphij For private mappings, we should verify that changes cannot be read() 13793267897Sdelphij back from the file, nor mmap's back from the file at a different 13794267897Sdelphij address. (There have been systems where private was not correctly 13795267897Sdelphij implemented like the infamous i386 svr4.0, and systems where the 13796267897Sdelphij VM page cache was not coherent with the file system buffer cache 13797267897Sdelphij like early versions of FreeBSD and possibly contemporary NetBSD.) 13798267897Sdelphij For shared mappings, we should conversely verify that changes get 13799267897Sdelphij propagated back to all the places they're supposed to be. 13800267897Sdelphij 13801267897Sdelphij Grep wants private fixed already mapped. 13802267897Sdelphij The main things grep needs to know about mmap are: 13803267897Sdelphij * does it exist and is it safe to write into the mmap'd area 13804267897Sdelphij * how to use it (BSD variants) */ 13805267897Sdelphij 13806267897Sdelphij#include <fcntl.h> 13807267897Sdelphij#include <sys/mman.h> 13808267897Sdelphij 13809267897Sdelphij#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 13810267897Sdelphijchar *malloc (); 13811267897Sdelphij#endif 13812267897Sdelphij 13813267897Sdelphij/* This mess was copied from the GNU getpagesize.h. */ 13814267897Sdelphij#ifndef HAVE_GETPAGESIZE 13815267897Sdelphij# ifdef _SC_PAGESIZE 13816267897Sdelphij# define getpagesize() sysconf(_SC_PAGESIZE) 13817267897Sdelphij# else /* no _SC_PAGESIZE */ 13818267897Sdelphij# ifdef HAVE_SYS_PARAM_H 13819267897Sdelphij# include <sys/param.h> 13820267897Sdelphij# ifdef EXEC_PAGESIZE 13821267897Sdelphij# define getpagesize() EXEC_PAGESIZE 13822267897Sdelphij# else /* no EXEC_PAGESIZE */ 13823267897Sdelphij# ifdef NBPG 13824267897Sdelphij# define getpagesize() NBPG * CLSIZE 13825267897Sdelphij# ifndef CLSIZE 13826267897Sdelphij# define CLSIZE 1 13827267897Sdelphij# endif /* no CLSIZE */ 13828267897Sdelphij# else /* no NBPG */ 13829267897Sdelphij# ifdef NBPC 13830267897Sdelphij# define getpagesize() NBPC 13831267897Sdelphij# else /* no NBPC */ 13832267897Sdelphij# ifdef PAGESIZE 13833267897Sdelphij# define getpagesize() PAGESIZE 13834267897Sdelphij# endif /* PAGESIZE */ 13835267897Sdelphij# endif /* no NBPC */ 13836267897Sdelphij# endif /* no NBPG */ 13837267897Sdelphij# endif /* no EXEC_PAGESIZE */ 13838267897Sdelphij# else /* no HAVE_SYS_PARAM_H */ 13839267897Sdelphij# define getpagesize() 8192 /* punt totally */ 13840267897Sdelphij# endif /* no HAVE_SYS_PARAM_H */ 13841267897Sdelphij# endif /* no _SC_PAGESIZE */ 13842267897Sdelphij 13843267897Sdelphij#endif /* no HAVE_GETPAGESIZE */ 13844267897Sdelphij 13845267897Sdelphijint 13846267897Sdelphijmain () 13847267897Sdelphij{ 13848267897Sdelphij char *data, *data2, *data3; 13849267897Sdelphij const char *cdata2; 13850267897Sdelphij int i, pagesize; 13851267897Sdelphij int fd, fd2; 13852267897Sdelphij 13853267897Sdelphij pagesize = getpagesize (); 13854267897Sdelphij 13855267897Sdelphij /* First, make a file with some known garbage in it. */ 13856267897Sdelphij data = (char *) malloc (pagesize); 13857267897Sdelphij if (!data) 13858267897Sdelphij return 1; 13859267897Sdelphij for (i = 0; i < pagesize; ++i) 13860267897Sdelphij *(data + i) = rand (); 13861267897Sdelphij umask (0); 13862267897Sdelphij fd = creat ("conftest.mmap", 0600); 13863267897Sdelphij if (fd < 0) 13864267897Sdelphij return 2; 13865267897Sdelphij if (write (fd, data, pagesize) != pagesize) 13866267897Sdelphij return 3; 13867267897Sdelphij close (fd); 13868267897Sdelphij 13869267897Sdelphij /* Next, check that the tail of a page is zero-filled. File must have 13870267897Sdelphij non-zero length, otherwise we risk SIGBUS for entire page. */ 13871267897Sdelphij fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 13872267897Sdelphij if (fd2 < 0) 13873267897Sdelphij return 4; 13874267897Sdelphij cdata2 = ""; 13875267897Sdelphij if (write (fd2, cdata2, 1) != 1) 13876267897Sdelphij return 5; 13877267897Sdelphij data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 13878267897Sdelphij if (data2 == MAP_FAILED) 13879267897Sdelphij return 6; 13880267897Sdelphij for (i = 0; i < pagesize; ++i) 13881267897Sdelphij if (*(data2 + i)) 13882267897Sdelphij return 7; 13883267897Sdelphij close (fd2); 13884267897Sdelphij if (munmap (data2, pagesize)) 13885267897Sdelphij return 8; 13886267897Sdelphij 13887267897Sdelphij /* Next, try to mmap the file at a fixed address which already has 13888267897Sdelphij something else allocated at it. If we can, also make sure that 13889267897Sdelphij we see the same garbage. */ 13890267897Sdelphij fd = open ("conftest.mmap", O_RDWR); 13891267897Sdelphij if (fd < 0) 13892267897Sdelphij return 9; 13893267897Sdelphij if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 13894267897Sdelphij MAP_PRIVATE | MAP_FIXED, fd, 0L)) 13895267897Sdelphij return 10; 13896267897Sdelphij for (i = 0; i < pagesize; ++i) 13897267897Sdelphij if (*(data + i) != *(data2 + i)) 13898267897Sdelphij return 11; 13899267897Sdelphij 13900267897Sdelphij /* Finally, make sure that changes to the mapped area do not 13901267897Sdelphij percolate back to the file as seen by read(). (This is a bug on 13902267897Sdelphij some variants of i386 svr4.0.) */ 13903267897Sdelphij for (i = 0; i < pagesize; ++i) 13904267897Sdelphij *(data2 + i) = *(data2 + i) + 1; 13905267897Sdelphij data3 = (char *) malloc (pagesize); 13906267897Sdelphij if (!data3) 13907267897Sdelphij return 12; 13908267897Sdelphij if (read (fd, data3, pagesize) != pagesize) 13909267897Sdelphij return 13; 13910267897Sdelphij for (i = 0; i < pagesize; ++i) 13911267897Sdelphij if (*(data + i) != *(data3 + i)) 13912267897Sdelphij return 14; 13913267897Sdelphij close (fd); 13914267897Sdelphij return 0; 13915267897Sdelphij} 13916267897Sdelphij_ACEOF 13917267897Sdelphijif ac_fn_c_try_run "$LINENO"; then : 13918267897Sdelphij ac_cv_func_mmap_fixed_mapped=yes 13919267897Sdelphijelse 13920267897Sdelphij ac_cv_func_mmap_fixed_mapped=no 1392168349Sobrienfi 13922267897Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13923267897Sdelphij conftest.$ac_objext conftest.beam conftest.$ac_ext 13924267897Sdelphijfi 1392568349Sobrien 13926267897Sdelphijfi 13927267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 13928267897Sdelphij$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 13929267897Sdelphijif test $ac_cv_func_mmap_fixed_mapped = yes; then 13930267897Sdelphij 13931267897Sdelphij$as_echo "#define HAVE_MMAP 1" >>confdefs.h 13932267897Sdelphij 13933267897Sdelphijfi 13934267897Sdelphijrm -f conftest.mmap conftest.txt 13935267897Sdelphij 13936267897Sdelphijfor ac_header in vfork.h 13937267897Sdelphijdo : 13938267897Sdelphij ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 13939267897Sdelphijif test "x$ac_cv_header_vfork_h" = xyes; then : 13940267897Sdelphij cat >>confdefs.h <<_ACEOF 13941267897Sdelphij#define HAVE_VFORK_H 1 13942267897Sdelphij_ACEOF 13943267897Sdelphij 13944267897Sdelphijfi 13945267897Sdelphij 13946267897Sdelphijdone 13947267897Sdelphij 13948267897Sdelphijfor ac_func in fork vfork 13949267897Sdelphijdo : 13950267897Sdelphij as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13951267897Sdelphijac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13952267897Sdelphijif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13953267897Sdelphij cat >>confdefs.h <<_ACEOF 13954267897Sdelphij#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13955267897Sdelphij_ACEOF 13956267897Sdelphij 13957267897Sdelphijfi 13958267897Sdelphijdone 13959267897Sdelphij 13960267897Sdelphijif test "x$ac_cv_func_fork" = xyes; then 13961267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 13962267897Sdelphij$as_echo_n "checking for working fork... " >&6; } 13963267897Sdelphijif ${ac_cv_func_fork_works+:} false; then : 13964234449Sobrien $as_echo_n "(cached) " >&6 1396568349Sobrienelse 13966267897Sdelphij if test "$cross_compiling" = yes; then : 13967267897Sdelphij ac_cv_func_fork_works=cross 13968267897Sdelphijelse 13969267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13970267897Sdelphij/* end confdefs.h. */ 13971267897Sdelphij$ac_includes_default 13972267897Sdelphijint 13973267897Sdelphijmain () 13974267897Sdelphij{ 1397568349Sobrien 13976267897Sdelphij /* By Ruediger Kuhlmann. */ 13977267897Sdelphij return fork () < 0; 13978267897Sdelphij 13979267897Sdelphij ; 13980267897Sdelphij return 0; 13981267897Sdelphij} 13982267897Sdelphij_ACEOF 13983267897Sdelphijif ac_fn_c_try_run "$LINENO"; then : 13984267897Sdelphij ac_cv_func_fork_works=yes 1398568349Sobrienelse 13986267897Sdelphij ac_cv_func_fork_works=no 13987175296Sobrienfi 13988267897Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13989267897Sdelphij conftest.$ac_objext conftest.beam conftest.$ac_ext 13990267897Sdelphijfi 13991234449Sobrien 13992175296Sobrienfi 13993267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 13994267897Sdelphij$as_echo "$ac_cv_func_fork_works" >&6; } 13995175296Sobrien 13996267897Sdelphijelse 13997267897Sdelphij ac_cv_func_fork_works=$ac_cv_func_fork 13998267897Sdelphijfi 13999267897Sdelphijif test "x$ac_cv_func_fork_works" = xcross; then 14000267897Sdelphij case $host in 14001267897Sdelphij *-*-amigaos* | *-*-msdosdjgpp*) 14002267897Sdelphij # Override, as these systems have only a dummy fork() stub 14003267897Sdelphij ac_cv_func_fork_works=no 14004267897Sdelphij ;; 14005267897Sdelphij *) 14006267897Sdelphij ac_cv_func_fork_works=yes 14007267897Sdelphij ;; 14008267897Sdelphij esac 14009267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14010267897Sdelphij$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14011267897Sdelphijfi 14012267897Sdelphijac_cv_func_vfork_works=$ac_cv_func_vfork 14013267897Sdelphijif test "x$ac_cv_func_vfork" = xyes; then 14014267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14015267897Sdelphij$as_echo_n "checking for working vfork... " >&6; } 14016267897Sdelphijif ${ac_cv_func_vfork_works+:} false; then : 14017267897Sdelphij $as_echo_n "(cached) " >&6 14018267897Sdelphijelse 14019267897Sdelphij if test "$cross_compiling" = yes; then : 14020267897Sdelphij ac_cv_func_vfork_works=cross 14021267897Sdelphijelse 14022267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14023267897Sdelphij/* end confdefs.h. */ 14024267897Sdelphij/* Thanks to Paul Eggert for this test. */ 14025267897Sdelphij$ac_includes_default 14026267897Sdelphij#include <sys/wait.h> 14027267897Sdelphij#ifdef HAVE_VFORK_H 14028267897Sdelphij# include <vfork.h> 14029267897Sdelphij#endif 14030267897Sdelphij/* On some sparc systems, changes by the child to local and incoming 14031267897Sdelphij argument registers are propagated back to the parent. The compiler 14032267897Sdelphij is told about this with #include <vfork.h>, but some compilers 14033267897Sdelphij (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14034267897Sdelphij static variable whose address is put into a register that is 14035267897Sdelphij clobbered by the vfork. */ 14036267897Sdelphijstatic void 14037267897Sdelphij#ifdef __cplusplus 14038267897Sdelphijsparc_address_test (int arg) 14039267897Sdelphij# else 14040267897Sdelphijsparc_address_test (arg) int arg; 14041267897Sdelphij#endif 14042267897Sdelphij{ 14043267897Sdelphij static pid_t child; 14044267897Sdelphij if (!child) { 14045267897Sdelphij child = vfork (); 14046267897Sdelphij if (child < 0) { 14047267897Sdelphij perror ("vfork"); 14048267897Sdelphij _exit(2); 14049267897Sdelphij } 14050267897Sdelphij if (!child) { 14051267897Sdelphij arg = getpid(); 14052267897Sdelphij write(-1, "", 0); 14053267897Sdelphij _exit (arg); 14054267897Sdelphij } 14055267897Sdelphij } 14056267897Sdelphij} 14057175296Sobrien 14058267897Sdelphijint 14059267897Sdelphijmain () 14060267897Sdelphij{ 14061267897Sdelphij pid_t parent = getpid (); 14062267897Sdelphij pid_t child; 14063186691Sobrien 14064267897Sdelphij sparc_address_test (0); 14065267897Sdelphij 14066267897Sdelphij child = vfork (); 14067267897Sdelphij 14068267897Sdelphij if (child == 0) { 14069267897Sdelphij /* Here is another test for sparc vfork register problems. This 14070267897Sdelphij test uses lots of local variables, at least as many local 14071267897Sdelphij variables as main has allocated so far including compiler 14072267897Sdelphij temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14073267897Sdelphij 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14074267897Sdelphij reuse the register of parent for one of the local variables, 14075267897Sdelphij since it will think that parent can't possibly be used any more 14076267897Sdelphij in this routine. Assigning to the local variable will thus 14077267897Sdelphij munge parent in the parent process. */ 14078267897Sdelphij pid_t 14079267897Sdelphij p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14080267897Sdelphij p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14081267897Sdelphij /* Convince the compiler that p..p7 are live; otherwise, it might 14082267897Sdelphij use the same hardware register for all 8 local variables. */ 14083267897Sdelphij if (p != p1 || p != p2 || p != p3 || p != p4 14084267897Sdelphij || p != p5 || p != p6 || p != p7) 14085267897Sdelphij _exit(1); 14086267897Sdelphij 14087267897Sdelphij /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14088267897Sdelphij from child file descriptors. If the child closes a descriptor 14089267897Sdelphij before it execs or exits, this munges the parent's descriptor 14090267897Sdelphij as well. Test for this by closing stdout in the child. */ 14091267897Sdelphij _exit(close(fileno(stdout)) != 0); 14092267897Sdelphij } else { 14093267897Sdelphij int status; 14094267897Sdelphij struct stat st; 14095267897Sdelphij 14096267897Sdelphij while (wait(&status) != child) 14097267897Sdelphij ; 14098267897Sdelphij return ( 14099267897Sdelphij /* Was there some problem with vforking? */ 14100267897Sdelphij child < 0 14101267897Sdelphij 14102267897Sdelphij /* Did the child fail? (This shouldn't happen.) */ 14103267897Sdelphij || status 14104267897Sdelphij 14105267897Sdelphij /* Did the vfork/compiler bug occur? */ 14106267897Sdelphij || parent != getpid() 14107267897Sdelphij 14108267897Sdelphij /* Did the file descriptor bug occur? */ 14109267897Sdelphij || fstat(fileno(stdout), &st) != 0 14110267897Sdelphij ); 14111267897Sdelphij } 14112267897Sdelphij} 14113175296Sobrien_ACEOF 14114267897Sdelphijif ac_fn_c_try_run "$LINENO"; then : 14115267897Sdelphij ac_cv_func_vfork_works=yes 14116267897Sdelphijelse 14117267897Sdelphij ac_cv_func_vfork_works=no 14118267897Sdelphijfi 14119267897Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14120267897Sdelphij conftest.$ac_objext conftest.beam conftest.$ac_ext 14121267897Sdelphijfi 14122175296Sobrien 14123267897Sdelphijfi 14124267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14125267897Sdelphij$as_echo "$ac_cv_func_vfork_works" >&6; } 14126175296Sobrien 14127267897Sdelphijfi; 14128267897Sdelphijif test "x$ac_cv_func_fork_works" = xcross; then 14129267897Sdelphij ac_cv_func_vfork_works=$ac_cv_func_vfork 14130267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14131267897Sdelphij$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14132267897Sdelphijfi 14133175296Sobrien 14134267897Sdelphijif test "x$ac_cv_func_vfork_works" = xyes; then 14135186691Sobrien 14136267897Sdelphij$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 14137267897Sdelphij 14138267897Sdelphijelse 14139267897Sdelphij 14140267897Sdelphij$as_echo "#define vfork fork" >>confdefs.h 14141267897Sdelphij 14142267897Sdelphijfi 14143267897Sdelphijif test "x$ac_cv_func_fork_works" = xyes; then 14144267897Sdelphij 14145267897Sdelphij$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 14146267897Sdelphij 14147267897Sdelphijfi 14148267897Sdelphij 14149267897Sdelphij 14150267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 14151267897Sdelphij$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 14152267897Sdelphijif ${ac_cv_func_mbrtowc+:} false; then : 14153267897Sdelphij $as_echo_n "(cached) " >&6 14154267897Sdelphijelse 14155267897Sdelphij cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14156267897Sdelphij/* end confdefs.h. */ 14157267897Sdelphij#include <wchar.h> 14158267897Sdelphijint 14159267897Sdelphijmain () 14160267897Sdelphij{ 14161267897Sdelphijwchar_t wc; 14162267897Sdelphij char const s[] = ""; 14163267897Sdelphij size_t n = 1; 14164267897Sdelphij mbstate_t state; 14165267897Sdelphij return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 14166267897Sdelphij ; 14167267897Sdelphij return 0; 14168267897Sdelphij} 14169267897Sdelphij_ACEOF 14170267897Sdelphijif ac_fn_c_try_link "$LINENO"; then : 14171267897Sdelphij ac_cv_func_mbrtowc=yes 14172267897Sdelphijelse 14173267897Sdelphij ac_cv_func_mbrtowc=no 14174267897Sdelphijfi 14175267897Sdelphijrm -f core conftest.err conftest.$ac_objext \ 14176267897Sdelphij conftest$ac_exeext conftest.$ac_ext 14177267897Sdelphijfi 14178267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 14179267897Sdelphij$as_echo "$ac_cv_func_mbrtowc" >&6; } 14180267897Sdelphij if test $ac_cv_func_mbrtowc = yes; then 14181267897Sdelphij 14182267897Sdelphij$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h 14183267897Sdelphij 14184267897Sdelphij fi 14185267897Sdelphij 14186267897Sdelphij 14187234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5 14188234449Sobrien$as_echo_n "checking for gcc compiler warnings... " >&6; } 14189186691Sobrien# Check whether --enable-warnings was given. 14190234449Sobrienif test "${enable_warnings+set}" = set; then : 14191192350Sdelphij enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then 14192234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14193234449Sobrien$as_echo "no" >&6; } 14194186691Sobrien WARNINGS= 14195186691Sobrienelse 14196234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14197234449Sobrien$as_echo "yes" >&6; } 14198186691Sobrien WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 14199186691Sobrien -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 14200186691Sobrien -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 14201234449Sobrien -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 14202186691Sobrienfi 14203186691Sobrienelse 14204186691Sobrien 14205234449Sobrienif test "$GCC" = yes; then 14206234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14207234449Sobrien$as_echo "yes" >&6; } 14208186691Sobrien WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 14209186691Sobrien -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 14210186691Sobrien -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 14211234449Sobrien -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 14212234449Sobrienelse 14213234449Sobrien WARNINGS= 14214234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14215234449Sobrien$as_echo "no" >&6; } 14216186691Sobrienfi 14217186691Sobrienfi 14218186691Sobrien 14219186691Sobrien 14220275698Sdelphijfor ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale 14221234449Sobriendo : 14222234449Sobrien as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14223234449Sobrienac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14224234449Sobrienif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14225234449Sobrien cat >>confdefs.h <<_ACEOF 14226234449Sobrien#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14227234449Sobrien_ACEOF 14228186691Sobrien 14229234449Sobrienfi 14230234449Sobriendone 14231186691Sobrien 14232186691Sobrien 14233234449Sobrienac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 14234234449Sobrienif test "x$ac_cv_func_getopt_long" = xyes; then : 14235234449Sobrien $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h 14236186691Sobrien 14237234449Sobrienelse 14238234449Sobrien case " $LIBOBJS " in 14239234449Sobrien *" getopt_long.$ac_objext "* ) ;; 14240234449Sobrien *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 14241234449Sobrien ;; 14242234449Sobrienesac 14243186691Sobrien 14244234449Sobrienfi 14245186691Sobrien 14246234449Sobrienac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 14247234449Sobrienif test "x$ac_cv_func_asprintf" = xyes; then : 14248234449Sobrien $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h 14249186691Sobrien 14250234449Sobrienelse 14251234449Sobrien case " $LIBOBJS " in 14252234449Sobrien *" asprintf.$ac_objext "* ) ;; 14253234449Sobrien *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 14254234449Sobrien ;; 14255234449Sobrienesac 14256186691Sobrien 14257234449Sobrienfi 14258186691Sobrien 14259234449Sobrienac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 14260234449Sobrienif test "x$ac_cv_func_vasprintf" = xyes; then : 14261234449Sobrien $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h 14262186691Sobrien 1426368349Sobrienelse 14264234449Sobrien case " $LIBOBJS " in 14265234449Sobrien *" vasprintf.$ac_objext "* ) ;; 14266234449Sobrien *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" 14267234449Sobrien ;; 14268234449Sobrienesac 14269186691Sobrien 14270234449Sobrienfi 14271186691Sobrien 14272234449Sobrienac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 14273234449Sobrienif test "x$ac_cv_func_strlcpy" = xyes; then : 14274234449Sobrien $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 14275186691Sobrien 14276234449Sobrienelse 14277234449Sobrien case " $LIBOBJS " in 14278234449Sobrien *" strlcpy.$ac_objext "* ) ;; 14279234449Sobrien *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 14280234449Sobrien ;; 14281175296Sobrienesac 14282159764Sobrien 1428368349Sobrienfi 14284175296Sobrien 14285234449Sobrienac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 14286234449Sobrienif test "x$ac_cv_func_strlcat" = xyes; then : 14287234449Sobrien $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 1428868349Sobrien 14289234449Sobrienelse 14290234449Sobrien case " $LIBOBJS " in 14291234449Sobrien *" strlcat.$ac_objext "* ) ;; 14292234449Sobrien *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 14293234449Sobrien ;; 14294234449Sobrienesac 14295234449Sobrien 14296186691Sobrienfi 1429768349Sobrien 14298234449Sobrienac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 14299234449Sobrienif test "x$ac_cv_func_getline" = xyes; then : 14300234449Sobrien $as_echo "#define HAVE_GETLINE 1" >>confdefs.h 1430168349Sobrien 14302234449Sobrienelse 14303234449Sobrien case " $LIBOBJS " in 14304234449Sobrien *" getline.$ac_objext "* ) ;; 14305234449Sobrien *) LIBOBJS="$LIBOBJS getline.$ac_objext" 14306234449Sobrien ;; 14307234449Sobrienesac 1430868349Sobrien 14309234449Sobrienfi 14310133359Sobrien 14311267897Sdelphijac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 14312267897Sdelphijif test "x$ac_cv_func_ctime_r" = xyes; then : 14313267897Sdelphij $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 14314133359Sobrien 14315267897Sdelphijelse 14316267897Sdelphij case " $LIBOBJS " in 14317267897Sdelphij *" ctime_r.$ac_objext "* ) ;; 14318267897Sdelphij *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 14319267897Sdelphij ;; 14320267897Sdelphijesac 14321191771Sobrien 14322267897Sdelphijfi 14323267897Sdelphij 14324267897Sdelphijac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r" 14325267897Sdelphijif test "x$ac_cv_func_asctime_r" = xyes; then : 14326267897Sdelphij $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h 14327267897Sdelphij 14328267897Sdelphijelse 14329267897Sdelphij case " $LIBOBJS " in 14330267897Sdelphij *" asctime_r.$ac_objext "* ) ;; 14331267897Sdelphij *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext" 14332267897Sdelphij ;; 14333267897Sdelphijesac 14334267897Sdelphij 14335267897Sdelphijfi 14336267897Sdelphij 14337284237Sdelphijac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 14338284237Sdelphijif test "x$ac_cv_func_localtime_r" = xyes; then : 14339284237Sdelphij $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h 14340284237Sdelphij 14341284237Sdelphijelse 14342284237Sdelphij case " $LIBOBJS " in 14343284237Sdelphij *" localtime_r.$ac_objext "* ) ;; 14344284237Sdelphij *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 14345284237Sdelphij ;; 14346284237Sdelphijesac 14347284237Sdelphij 14348284237Sdelphijfi 14349284237Sdelphij 14350284237Sdelphijac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 14351284237Sdelphijif test "x$ac_cv_func_gmtime_r" = xyes; then : 14352284237Sdelphij $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 14353284237Sdelphij 14354284237Sdelphijelse 14355284237Sdelphij case " $LIBOBJS " in 14356284237Sdelphij *" gmtime_r.$ac_objext "* ) ;; 14357284237Sdelphij *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 14358284237Sdelphij ;; 14359284237Sdelphijesac 14360284237Sdelphij 14361284237Sdelphijfi 14362284237Sdelphij 14363267897Sdelphijac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 14364267897Sdelphijif test "x$ac_cv_func_pread" = xyes; then : 14365267897Sdelphij $as_echo "#define HAVE_PREAD 1" >>confdefs.h 14366267897Sdelphij 14367267897Sdelphijelse 14368267897Sdelphij case " $LIBOBJS " in 14369267897Sdelphij *" pread.$ac_objext "* ) ;; 14370267897Sdelphij *) LIBOBJS="$LIBOBJS pread.$ac_objext" 14371267897Sdelphij ;; 14372267897Sdelphijesac 14373267897Sdelphij 14374267897Sdelphijfi 14375267897Sdelphij 14376267897Sdelphijac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 14377267897Sdelphijif test "x$ac_cv_func_strcasestr" = xyes; then : 14378267897Sdelphij $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h 14379267897Sdelphij 14380267897Sdelphijelse 14381267897Sdelphij case " $LIBOBJS " in 14382267897Sdelphij *" strcasestr.$ac_objext "* ) ;; 14383267897Sdelphij *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 14384267897Sdelphij ;; 14385267897Sdelphijesac 14386267897Sdelphij 14387267897Sdelphijfi 14388267897Sdelphij 14389267897Sdelphijac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck" 14390267897Sdelphijif test "x$ac_cv_func_fmtcheck" = xyes; then : 14391267897Sdelphij $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h 14392267897Sdelphij 14393267897Sdelphijelse 14394267897Sdelphij case " $LIBOBJS " in 14395267897Sdelphij *" fmtcheck.$ac_objext "* ) ;; 14396267897Sdelphij *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext" 14397267897Sdelphij ;; 14398267897Sdelphijesac 14399267897Sdelphij 14400267897Sdelphijfi 14401267897Sdelphij 14402298192Sdelphijac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf" 14403298192Sdelphijif test "x$ac_cv_func_dprintf" = xyes; then : 14404298192Sdelphij $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h 14405267897Sdelphij 14406298192Sdelphijelse 14407298192Sdelphij case " $LIBOBJS " in 14408298192Sdelphij *" dprintf.$ac_objext "* ) ;; 14409298192Sdelphij *) LIBOBJS="$LIBOBJS dprintf.$ac_objext" 14410298192Sdelphij ;; 14411298192Sdelphijesac 14412267897Sdelphij 14413298192Sdelphijfi 14414298192Sdelphij 14415298192Sdelphij 14416298192Sdelphij 14417302221Sdelphijif test "$enable_zlib" != "no"; then 14418302221Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 14419234449Sobrien$as_echo_n "checking for gzopen in -lz... " >&6; } 14420234449Sobrienif ${ac_cv_lib_z_gzopen+:} false; then : 14421234449Sobrien $as_echo_n "(cached) " >&6 1442268349Sobrienelse 14423234449Sobrien ac_check_lib_save_LIBS=$LIBS 14424234449SobrienLIBS="-lz $LIBS" 14425234449Sobriencat confdefs.h - <<_ACEOF >conftest.$ac_ext 14426159764Sobrien/* end confdefs.h. */ 14427159764Sobrien 14428175296Sobrien/* Override any GCC internal prototype to avoid an error. 14429175296Sobrien Use char because int might match the return type of a GCC 14430175296Sobrien builtin and then its argument prototype would still apply. */ 14431133359Sobrien#ifdef __cplusplus 14432133359Sobrienextern "C" 14433133359Sobrien#endif 14434234449Sobrienchar gzopen (); 14435159764Sobrienint 14436159764Sobrienmain () 14437159764Sobrien{ 14438234449Sobrienreturn gzopen (); 14439133359Sobrien ; 14440133359Sobrien return 0; 14441133359Sobrien} 14442133359Sobrien_ACEOF 14443234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 14444234449Sobrien ac_cv_lib_z_gzopen=yes 1444568349Sobrienelse 14446234449Sobrien ac_cv_lib_z_gzopen=no 1444768349Sobrienfi 14448234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 14449234449Sobrien conftest$ac_exeext conftest.$ac_ext 14450234449SobrienLIBS=$ac_check_lib_save_LIBS 1445168349Sobrienfi 14452234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 14453234449Sobrien$as_echo "$ac_cv_lib_z_gzopen" >&6; } 14454234449Sobrienif test "x$ac_cv_lib_z_gzopen" = xyes; then : 14455133359Sobrien cat >>confdefs.h <<_ACEOF 14456234449Sobrien#define HAVE_LIBZ 1 14457133359Sobrien_ACEOF 1445868349Sobrien 14459234449Sobrien LIBS="-lz $LIBS" 14460186691Sobrien 1446168349Sobrienfi 1446268349Sobrien 14463302221Sdelphijfi 14464234449Sobrienif test "$MINGW" = 1; then 14465234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5 14466234449Sobrien$as_echo_n "checking for regexec in -lgnurx... " >&6; } 14467234449Sobrienif ${ac_cv_lib_gnurx_regexec+:} false; then : 14468234449Sobrien $as_echo_n "(cached) " >&6 14469103373Sobrienelse 14470133359Sobrien ac_check_lib_save_LIBS=$LIBS 14471234449SobrienLIBS="-lgnurx $LIBS" 14472234449Sobriencat confdefs.h - <<_ACEOF >conftest.$ac_ext 14473159764Sobrien/* end confdefs.h. */ 14474133359Sobrien 14475175296Sobrien/* Override any GCC internal prototype to avoid an error. 14476175296Sobrien Use char because int might match the return type of a GCC 14477175296Sobrien builtin and then its argument prototype would still apply. */ 14478133359Sobrien#ifdef __cplusplus 14479133359Sobrienextern "C" 14480133359Sobrien#endif 14481234449Sobrienchar regexec (); 14482133359Sobrienint 14483133359Sobrienmain () 14484133359Sobrien{ 14485234449Sobrienreturn regexec (); 14486133359Sobrien ; 14487133359Sobrien return 0; 14488133359Sobrien} 14489133359Sobrien_ACEOF 14490234449Sobrienif ac_fn_c_try_link "$LINENO"; then : 14491234449Sobrien ac_cv_lib_gnurx_regexec=yes 14492103373Sobrienelse 14493234449Sobrien ac_cv_lib_gnurx_regexec=no 14494103373Sobrienfi 14495234449Sobrienrm -f core conftest.err conftest.$ac_objext \ 14496234449Sobrien conftest$ac_exeext conftest.$ac_ext 14497133359SobrienLIBS=$ac_check_lib_save_LIBS 14498133359Sobrienfi 14499234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5 14500234449Sobrien$as_echo "$ac_cv_lib_gnurx_regexec" >&6; } 14501234449Sobrienif test "x$ac_cv_lib_gnurx_regexec" = xyes; then : 14502133359Sobrien cat >>confdefs.h <<_ACEOF 14503234449Sobrien#define HAVE_LIBGNURX 1 14504133359Sobrien_ACEOF 14505103373Sobrien 14506234449Sobrien LIBS="-lgnurx $LIBS" 14507103373Sobrien 14508234449Sobrienelse 14509234449Sobrien as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5 14510103373Sobrienfi 14511103373Sobrien 14512234449Sobrienfi 14513103373Sobrien 14514175296Sobrien if test "$cross_compiling" = yes; then 14515159764Sobrien IS_CROSS_COMPILE_TRUE= 14516159764Sobrien IS_CROSS_COMPILE_FALSE='#' 14517159764Sobrienelse 14518159764Sobrien IS_CROSS_COMPILE_TRUE='#' 14519159764Sobrien IS_CROSS_COMPILE_FALSE= 14520159764Sobrienfi 14521159764Sobrien 14522159764Sobrien 14523302221Sdelphijif test "$enable_zlib" = "yes"; then 14524302221Sdelphij if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then 14525302221Sdelphij as_fn_error $? "zlib support requested but not found" "$LINENO" 5 14526302221Sdelphij fi 14527302221Sdelphijelif test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then 14528302221Sdelphij 14529302221Sdelphij$as_echo "#define ZLIBSUPPORT 1" >>confdefs.h 14530302221Sdelphij 14531302221Sdelphijfi 14532302221Sdelphij 14533186691Sobrienac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile" 14534159764Sobrien 14535133359Sobriencat >confcache <<\_ACEOF 1453668349Sobrien# This file is a shell script that caches the results of configure 1453768349Sobrien# tests run on this system so they can be shared between configure 14538133359Sobrien# scripts and configure runs, see configure's option --config-cache. 14539133359Sobrien# It is not useful on other systems. If it contains results you don't 14540133359Sobrien# want to keep, you may remove or edit it. 1454168349Sobrien# 14542133359Sobrien# config.status only pays attention to the cache file if you give it 14543133359Sobrien# the --recheck option to rerun configure. 1454468349Sobrien# 14545159764Sobrien# `ac_cv_env_foo' variables (set or unset) will be overridden when 14546133359Sobrien# loading this file, other *unset* `ac_cv_foo' will be assigned the 14547133359Sobrien# following values. 14548133359Sobrien 14549133359Sobrien_ACEOF 14550133359Sobrien 1455168349Sobrien# The following way of writing the cache mishandles newlines in values, 1455268349Sobrien# but we know of no workaround that is simple, portable, and efficient. 14553175296Sobrien# So, we kill variables containing newlines. 1455468349Sobrien# Ultrix sh set writes to stderr and can't be redirected directly, 1455568349Sobrien# and sets the high bit in the cache file unless we assign to the vars. 14556175296Sobrien( 14557175296Sobrien for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14558175296Sobrien eval ac_val=\$$ac_var 14559175296Sobrien case $ac_val in #( 14560175296Sobrien *${as_nl}*) 14561175296Sobrien case $ac_var in #( 14562234449Sobrien *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14563234449Sobrien$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14564175296Sobrien esac 14565175296Sobrien case $ac_var in #( 14566175296Sobrien _ | IFS | as_nl) ;; #( 14567234449Sobrien BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14568234449Sobrien *) { eval $ac_var=; unset $ac_var;} ;; 14569175296Sobrien esac ;; 14570175296Sobrien esac 14571175296Sobrien done 14572175296Sobrien 14573133359Sobrien (set) 2>&1 | 14574175296Sobrien case $as_nl`(ac_space=' '; set) 2>&1` in #( 14575175296Sobrien *${as_nl}ac_space=\ *) 14576234449Sobrien # `set' does not quote correctly, so add quotes: double-quote 14577234449Sobrien # substitution turns \\\\ into \\, and sed turns \\ into \. 14578133359Sobrien sed -n \ 14579159764Sobrien "s/'/'\\\\''/g; 14580159764Sobrien s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14581175296Sobrien ;; #( 14582133359Sobrien *) 14583133359Sobrien # `set' quotes correctly as required by POSIX, so do not add quotes. 14584175296Sobrien sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14585133359Sobrien ;; 14586175296Sobrien esac | 14587175296Sobrien sort 14588175296Sobrien) | 14589133359Sobrien sed ' 14590175296Sobrien /^ac_cv_env_/b end 14591133359Sobrien t clear 14592175296Sobrien :clear 14593133359Sobrien s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14594133359Sobrien t end 14595175296Sobrien s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14596175296Sobrien :end' >>confcache 14597175296Sobrienif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14598175296Sobrien if test -w "$cache_file"; then 14599234449Sobrien if test "x$cache_file" != "x/dev/null"; then 14600234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14601234449Sobrien$as_echo "$as_me: updating cache $cache_file" >&6;} 14602234449Sobrien if test ! -f "$cache_file" || test -h "$cache_file"; then 14603234449Sobrien cat confcache >"$cache_file" 14604234449Sobrien else 14605234449Sobrien case $cache_file in #( 14606234449Sobrien */* | ?:*) 14607234449Sobrien mv -f confcache "$cache_file"$$ && 14608234449Sobrien mv -f "$cache_file"$$ "$cache_file" ;; #( 14609234449Sobrien *) 14610234449Sobrien mv -f confcache "$cache_file" ;; 14611234449Sobrien esac 14612234449Sobrien fi 14613234449Sobrien fi 1461468349Sobrien else 14615234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14616234449Sobrien$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 1461768349Sobrien fi 1461868349Sobrienfi 1461968349Sobrienrm -f confcache 1462068349Sobrien 1462168349Sobrientest "x$prefix" = xNONE && prefix=$ac_default_prefix 1462268349Sobrien# Let make expand exec_prefix. 1462368349Sobrientest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1462468349Sobrien 1462568349SobrienDEFS=-DHAVE_CONFIG_H 1462668349Sobrien 14627159764Sobrienac_libobjs= 14628159764Sobrienac_ltlibobjs= 14629234449SobrienU= 14630159764Sobrienfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14631159764Sobrien # 1. Remove the extension, and $U if already installed. 14632175296Sobrien ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14633234449Sobrien ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14634175296Sobrien # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14635175296Sobrien # will be set to the directory where LIBOBJS objects are built. 14636234449Sobrien as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14637234449Sobrien as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14638159764Sobriendone 14639159764SobrienLIBOBJS=$ac_libobjs 14640159764Sobrien 14641159764SobrienLTLIBOBJS=$ac_ltlibobjs 14642159764Sobrien 14643159764Sobrien 14644267897Sdelphij{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14645267897Sdelphij$as_echo_n "checking that generated files are newer than configure... " >&6; } 14646267897Sdelphij if test -n "$am_sleep_pid"; then 14647267897Sdelphij # Hide warnings about reused PIDs. 14648267897Sdelphij wait $am_sleep_pid 2>/dev/null 14649267897Sdelphij fi 14650267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14651267897Sdelphij$as_echo "done" >&6; } 14652234449Sobrien if test -n "$EXEEXT"; then 14653234449Sobrien am__EXEEXT_TRUE= 14654234449Sobrien am__EXEEXT_FALSE='#' 14655234449Sobrienelse 14656234449Sobrien am__EXEEXT_TRUE='#' 14657234449Sobrien am__EXEEXT_FALSE= 14658234449Sobrienfi 14659234449Sobrien 14660234449Sobrienif test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 14661234449Sobrien as_fn_error $? "conditional \"MINGW\" was never defined. 14662234449SobrienUsually this means the macro was only invoked conditionally." "$LINENO" 5 14663234449Sobrienfi 14664133359Sobrienif test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then 14665234449Sobrien as_fn_error $? "conditional \"FSECT5\" was never defined. 14666234449SobrienUsually this means the macro was only invoked conditionally." "$LINENO" 5 14667133359Sobrienfi 14668133359Sobrienif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14669234449Sobrien as_fn_error $? "conditional \"AMDEP\" was never defined. 14670234449SobrienUsually this means the macro was only invoked conditionally." "$LINENO" 5 14671133359Sobrienfi 14672159764Sobrienif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14673234449Sobrien as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14674234449SobrienUsually this means the macro was only invoked conditionally." "$LINENO" 5 14675159764Sobrienfi 14676267897Sdelphij 14677159764Sobrienif test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then 14678234449Sobrien as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined. 14679234449SobrienUsually this means the macro was only invoked conditionally." "$LINENO" 5 14680159764Sobrienfi 14681133359Sobrien 14682234449Sobrien: "${CONFIG_STATUS=./config.status}" 14683234449Sobrienac_write_fail=0 14684133359Sobrienac_clean_files_save=$ac_clean_files 14685133359Sobrienac_clean_files="$ac_clean_files $CONFIG_STATUS" 14686234449Sobrien{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14687234449Sobrien$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14688234449Sobrienas_write_fail=0 14689234449Sobriencat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14690133359Sobrien#! $SHELL 14691133359Sobrien# Generated by $as_me. 1469268349Sobrien# Run this file to recreate the current configuration. 1469368349Sobrien# Compiler output produced by configure, useful for debugging 14694133359Sobrien# configure, is in config.log if it exists. 1469568349Sobrien 14696133359Sobriendebug=false 14697159764Sobrienac_cs_recheck=false 14698159764Sobrienac_cs_silent=false 14699234449Sobrien 14700133359SobrienSHELL=\${CONFIG_SHELL-$SHELL} 14701234449Sobrienexport SHELL 14702234449Sobrien_ASEOF 14703234449Sobriencat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14704234449Sobrien## -------------------- ## 14705234449Sobrien## M4sh Initialization. ## 14706234449Sobrien## -------------------- ## 14707133359Sobrien 14708175296Sobrien# Be more Bourne compatible 14709175296SobrienDUALCASE=1; export DUALCASE # for MKS sh 14710234449Sobrienif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14711133359Sobrien emulate sh 14712133359Sobrien NULLCMD=: 14713234449Sobrien # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14714159764Sobrien # is contrary to our usage. Disable this feature. 14715159764Sobrien alias -g '${1+"$@"}'='"$@"' 14716175296Sobrien setopt NO_GLOB_SUBST 14717175296Sobrienelse 14718234449Sobrien case `(set -o) 2>/dev/null` in #( 14719234449Sobrien *posix*) : 14720234449Sobrien set -o posix ;; #( 14721234449Sobrien *) : 14722234449Sobrien ;; 14723175296Sobrienesac 14724133359Sobrienfi 14725133359Sobrien 14726175296Sobrien 14727234449Sobrienas_nl=' 14728234449Sobrien' 14729234449Sobrienexport as_nl 14730234449Sobrien# Printing a long string crashes Solaris 7 /usr/bin/printf. 14731234449Sobrienas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14732234449Sobrienas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14733234449Sobrienas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14734234449Sobrien# Prefer a ksh shell builtin over an external printf program on Solaris, 14735234449Sobrien# but without wasting forks for bash or zsh. 14736234449Sobrienif test -z "$BASH_VERSION$ZSH_VERSION" \ 14737234449Sobrien && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14738234449Sobrien as_echo='print -r --' 14739234449Sobrien as_echo_n='print -rn --' 14740234449Sobrienelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14741234449Sobrien as_echo='printf %s\n' 14742234449Sobrien as_echo_n='printf %s' 14743234449Sobrienelse 14744234449Sobrien if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14745234449Sobrien as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14746234449Sobrien as_echo_n='/usr/ucb/echo -n' 14747175296Sobrien else 14748234449Sobrien as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14749234449Sobrien as_echo_n_body='eval 14750234449Sobrien arg=$1; 14751234449Sobrien case $arg in #( 14752234449Sobrien *"$as_nl"*) 14753234449Sobrien expr "X$arg" : "X\\(.*\\)$as_nl"; 14754234449Sobrien arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14755234449Sobrien esac; 14756234449Sobrien expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14757234449Sobrien ' 14758234449Sobrien export as_echo_n_body 14759234449Sobrien as_echo_n='sh -c $as_echo_n_body as_echo' 14760175296Sobrien fi 14761234449Sobrien export as_echo_body 14762234449Sobrien as_echo='sh -c $as_echo_body as_echo' 14763175296Sobrienfi 14764175296Sobrien 14765234449Sobrien# The user is always right. 14766234449Sobrienif test "${PATH_SEPARATOR+set}" != set; then 14767234449Sobrien PATH_SEPARATOR=: 14768234449Sobrien (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14769234449Sobrien (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14770234449Sobrien PATH_SEPARATOR=';' 14771234449Sobrien } 14772133359Sobrienfi 14773133359Sobrien 14774133359Sobrien 14775175296Sobrien# IFS 14776175296Sobrien# We need space, tab and new line, in precisely that order. Quoting is 14777175296Sobrien# there to prevent editors from complaining about space-tab. 14778175296Sobrien# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14779175296Sobrien# splitting by setting IFS to empty value.) 14780175296SobrienIFS=" "" $as_nl" 14781175296Sobrien 14782175296Sobrien# Find who we are. Look in the path if we contain no directory separator. 14783234449Sobrienas_myself= 14784234449Sobriencase $0 in #(( 14785175296Sobrien *[\\/]* ) as_myself=$0 ;; 14786175296Sobrien *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14787175296Sobrienfor as_dir in $PATH 14788175296Sobriendo 14789175296Sobrien IFS=$as_save_IFS 14790175296Sobrien test -z "$as_dir" && as_dir=. 14791234449Sobrien test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14792234449Sobrien done 14793175296SobrienIFS=$as_save_IFS 14794175296Sobrien 14795175296Sobrien ;; 14796175296Sobrienesac 14797175296Sobrien# We did not find ourselves, most probably we were run as `sh COMMAND' 14798175296Sobrien# in which case we are not to be found in the path. 14799175296Sobrienif test "x$as_myself" = x; then 14800175296Sobrien as_myself=$0 14801175296Sobrienfi 14802175296Sobrienif test ! -f "$as_myself"; then 14803234449Sobrien $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14804234449Sobrien exit 1 14805175296Sobrienfi 14806175296Sobrien 14807234449Sobrien# Unset variables that we do not need and which cause bugs (e.g. in 14808234449Sobrien# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14809234449Sobrien# suppresses any "Segmentation fault" message there. '((' could 14810234449Sobrien# trigger a bug in pdksh 5.2.14. 14811234449Sobrienfor as_var in BASH_ENV ENV MAIL MAILPATH 14812234449Sobriendo eval test x\${$as_var+set} = xset \ 14813234449Sobrien && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14814175296Sobriendone 14815159764SobrienPS1='$ ' 14816159764SobrienPS2='> ' 14817159764SobrienPS4='+ ' 14818133359Sobrien 14819159764Sobrien# NLS nuisances. 14820234449SobrienLC_ALL=C 14821234449Sobrienexport LC_ALL 14822234449SobrienLANGUAGE=C 14823234449Sobrienexport LANGUAGE 14824234449Sobrien 14825234449Sobrien# CDPATH. 14826234449Sobrien(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14827234449Sobrien 14828234449Sobrien 14829234449Sobrien# as_fn_error STATUS ERROR [LINENO LOG_FD] 14830234449Sobrien# ---------------------------------------- 14831234449Sobrien# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14832234449Sobrien# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14833234449Sobrien# script with STATUS, using 1 if that was 0. 14834234449Sobrienas_fn_error () 14835234449Sobrien{ 14836234449Sobrien as_status=$1; test $as_status -eq 0 && as_status=1 14837234449Sobrien if test "$4"; then 14838234449Sobrien as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14839234449Sobrien $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14840159764Sobrien fi 14841234449Sobrien $as_echo "$as_me: error: $2" >&2 14842234449Sobrien as_fn_exit $as_status 14843234449Sobrien} # as_fn_error 14844159764Sobrien 14845234449Sobrien 14846234449Sobrien# as_fn_set_status STATUS 14847234449Sobrien# ----------------------- 14848234449Sobrien# Set $? to STATUS, without forking. 14849234449Sobrienas_fn_set_status () 14850234449Sobrien{ 14851234449Sobrien return $1 14852234449Sobrien} # as_fn_set_status 14853234449Sobrien 14854234449Sobrien# as_fn_exit STATUS 14855234449Sobrien# ----------------- 14856234449Sobrien# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14857234449Sobrienas_fn_exit () 14858234449Sobrien{ 14859234449Sobrien set +e 14860234449Sobrien as_fn_set_status $1 14861234449Sobrien exit $1 14862234449Sobrien} # as_fn_exit 14863234449Sobrien 14864234449Sobrien# as_fn_unset VAR 14865234449Sobrien# --------------- 14866234449Sobrien# Portably unset VAR. 14867234449Sobrienas_fn_unset () 14868234449Sobrien{ 14869234449Sobrien { eval $1=; unset $1;} 14870234449Sobrien} 14871234449Sobrienas_unset=as_fn_unset 14872234449Sobrien# as_fn_append VAR VALUE 14873234449Sobrien# ---------------------- 14874234449Sobrien# Append the text in VALUE to the end of the definition contained in VAR. Take 14875234449Sobrien# advantage of any shell optimizations that allow amortized linear growth over 14876234449Sobrien# repeated appends, instead of the typical quadratic growth present in naive 14877234449Sobrien# implementations. 14878234449Sobrienif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14879234449Sobrien eval 'as_fn_append () 14880234449Sobrien { 14881234449Sobrien eval $1+=\$2 14882234449Sobrien }' 14883234449Sobrienelse 14884234449Sobrien as_fn_append () 14885234449Sobrien { 14886234449Sobrien eval $1=\$$1\$2 14887234449Sobrien } 14888234449Sobrienfi # as_fn_append 14889234449Sobrien 14890234449Sobrien# as_fn_arith ARG... 14891234449Sobrien# ------------------ 14892234449Sobrien# Perform arithmetic evaluation on the ARGs, and store the result in the 14893234449Sobrien# global $as_val. Take advantage of shells that can avoid forks. The arguments 14894234449Sobrien# must be portable across $(()) and expr. 14895234449Sobrienif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14896234449Sobrien eval 'as_fn_arith () 14897234449Sobrien { 14898234449Sobrien as_val=$(( $* )) 14899234449Sobrien }' 14900234449Sobrienelse 14901234449Sobrien as_fn_arith () 14902234449Sobrien { 14903234449Sobrien as_val=`expr "$@" || test $? -eq 1` 14904234449Sobrien } 14905234449Sobrienfi # as_fn_arith 14906234449Sobrien 14907234449Sobrien 14908175296Sobrienif expr a : '\(a\)' >/dev/null 2>&1 && 14909175296Sobrien test "X`expr 00001 : '.*\(...\)'`" = X001; then 14910159764Sobrien as_expr=expr 14911159764Sobrienelse 14912159764Sobrien as_expr=false 14913159764Sobrienfi 14914159764Sobrien 14915175296Sobrienif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14916159764Sobrien as_basename=basename 14917159764Sobrienelse 14918159764Sobrien as_basename=false 14919159764Sobrienfi 14920159764Sobrien 14921234449Sobrienif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14922234449Sobrien as_dirname=dirname 14923234449Sobrienelse 14924234449Sobrien as_dirname=false 14925234449Sobrienfi 14926159764Sobrien 14927175296Sobrienas_me=`$as_basename -- "$0" || 14928133359Sobrien$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14929133359Sobrien X"$0" : 'X\(//\)$' \| \ 14930175296Sobrien X"$0" : 'X\(/\)' \| . 2>/dev/null || 14931234449Sobrien$as_echo X/"$0" | 14932175296Sobrien sed '/^.*\/\([^/][^/]*\)\/*$/{ 14933175296Sobrien s//\1/ 14934175296Sobrien q 14935175296Sobrien } 14936175296Sobrien /^X\/\(\/\/\)$/{ 14937175296Sobrien s//\1/ 14938175296Sobrien q 14939175296Sobrien } 14940175296Sobrien /^X\/\(\/\).*/{ 14941175296Sobrien s//\1/ 14942175296Sobrien q 14943175296Sobrien } 14944175296Sobrien s/.*/./; q'` 1494568349Sobrien 14946234449Sobrien# Avoid depending upon Character Ranges. 14947234449Sobrienas_cr_letters='abcdefghijklmnopqrstuvwxyz' 14948234449Sobrienas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14949234449Sobrienas_cr_Letters=$as_cr_letters$as_cr_LETTERS 14950234449Sobrienas_cr_digits='0123456789' 14951234449Sobrienas_cr_alnum=$as_cr_Letters$as_cr_digits 14952159764Sobrien 14953175296SobrienECHO_C= ECHO_N= ECHO_T= 14954234449Sobriencase `echo -n x` in #((((( 14955175296Sobrien-n*) 14956234449Sobrien case `echo 'xy\c'` in 14957175296Sobrien *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14958234449Sobrien xy) ECHO_C='\c';; 14959234449Sobrien *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14960234449Sobrien ECHO_T=' ';; 14961175296Sobrien esac;; 14962175296Sobrien*) 14963175296Sobrien ECHO_N='-n';; 14964133359Sobrienesac 14965133359Sobrien 14966133359Sobrienrm -f conf$$ conf$$.exe conf$$.file 14967175296Sobrienif test -d conf$$.dir; then 14968175296Sobrien rm -f conf$$.dir/conf$$.file 14969175296Sobrienelse 14970175296Sobrien rm -f conf$$.dir 14971234449Sobrien mkdir conf$$.dir 2>/dev/null 14972175296Sobrienfi 14973234449Sobrienif (echo >conf$$.file) 2>/dev/null; then 14974234449Sobrien if ln -s conf$$.file conf$$ 2>/dev/null; then 14975234449Sobrien as_ln_s='ln -s' 14976234449Sobrien # ... but there are two gotchas: 14977234449Sobrien # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14978234449Sobrien # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14979267897Sdelphij # In both cases, we have to default to `cp -pR'. 14980234449Sobrien ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14981267897Sdelphij as_ln_s='cp -pR' 14982234449Sobrien elif ln conf$$.file conf$$ 2>/dev/null; then 14983234449Sobrien as_ln_s=ln 14984234449Sobrien else 14985267897Sdelphij as_ln_s='cp -pR' 14986234449Sobrien fi 14987133359Sobrienelse 14988267897Sdelphij as_ln_s='cp -pR' 14989133359Sobrienfi 14990175296Sobrienrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14991175296Sobrienrmdir conf$$.dir 2>/dev/null 14992133359Sobrien 14993234449Sobrien 14994234449Sobrien# as_fn_mkdir_p 14995234449Sobrien# ------------- 14996234449Sobrien# Create "$as_dir" as a directory, including parents if necessary. 14997234449Sobrienas_fn_mkdir_p () 14998234449Sobrien{ 14999234449Sobrien 15000234449Sobrien case $as_dir in #( 15001234449Sobrien -*) as_dir=./$as_dir;; 15002234449Sobrien esac 15003234449Sobrien test -d "$as_dir" || eval $as_mkdir_p || { 15004234449Sobrien as_dirs= 15005234449Sobrien while :; do 15006234449Sobrien case $as_dir in #( 15007234449Sobrien *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15008234449Sobrien *) as_qdir=$as_dir;; 15009234449Sobrien esac 15010234449Sobrien as_dirs="'$as_qdir' $as_dirs" 15011234449Sobrien as_dir=`$as_dirname -- "$as_dir" || 15012234449Sobrien$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15013234449Sobrien X"$as_dir" : 'X\(//\)[^/]' \| \ 15014234449Sobrien X"$as_dir" : 'X\(//\)$' \| \ 15015234449Sobrien X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15016234449Sobrien$as_echo X"$as_dir" | 15017234449Sobrien sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15018234449Sobrien s//\1/ 15019234449Sobrien q 15020234449Sobrien } 15021234449Sobrien /^X\(\/\/\)[^/].*/{ 15022234449Sobrien s//\1/ 15023234449Sobrien q 15024234449Sobrien } 15025234449Sobrien /^X\(\/\/\)$/{ 15026234449Sobrien s//\1/ 15027234449Sobrien q 15028234449Sobrien } 15029234449Sobrien /^X\(\/\).*/{ 15030234449Sobrien s//\1/ 15031234449Sobrien q 15032234449Sobrien } 15033234449Sobrien s/.*/./; q'` 15034234449Sobrien test -d "$as_dir" && break 15035234449Sobrien done 15036234449Sobrien test -z "$as_dirs" || eval "mkdir $as_dirs" 15037234449Sobrien } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15038234449Sobrien 15039234449Sobrien 15040234449Sobrien} # as_fn_mkdir_p 15041159764Sobrienif mkdir -p . 2>/dev/null; then 15042234449Sobrien as_mkdir_p='mkdir -p "$as_dir"' 15043159764Sobrienelse 15044159764Sobrien test -d ./-p && rmdir ./-p 15045159764Sobrien as_mkdir_p=false 15046159764Sobrienfi 15047159764Sobrien 15048133359Sobrien 15049267897Sdelphij# as_fn_executable_p FILE 15050267897Sdelphij# ----------------------- 15051267897Sdelphij# Test if FILE is an executable regular file. 15052267897Sdelphijas_fn_executable_p () 15053267897Sdelphij{ 15054267897Sdelphij test -f "$1" && test -x "$1" 15055267897Sdelphij} # as_fn_executable_p 15056267897Sdelphijas_test_x='test -x' 15057267897Sdelphijas_executable_p=as_fn_executable_p 15058267897Sdelphij 15059133359Sobrien# Sed expression to map a string onto a valid CPP name. 15060159764Sobrienas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15061133359Sobrien 15062133359Sobrien# Sed expression to map a string onto a valid variable name. 15063159764Sobrienas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15064133359Sobrien 15065133359Sobrien 15066133359Sobrienexec 6>&1 15067234449Sobrien## ----------------------------------- ## 15068234449Sobrien## Main body of $CONFIG_STATUS script. ## 15069234449Sobrien## ----------------------------------- ## 15070234449Sobrien_ASEOF 15071234449Sobrientest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15072133359Sobrien 15073234449Sobriencat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15074234449Sobrien# Save the log message, to keep $0 and so on meaningful, and to 15075133359Sobrien# report actual input values of CONFIG_FILES etc. instead of their 15076175296Sobrien# values after options handling. 15077175296Sobrienac_log=" 15078302221SdelphijThis file was extended by file $as_me 5.28, which was 15079267897Sdelphijgenerated by GNU Autoconf 2.69. Invocation command line was 15080133359Sobrien 15081133359Sobrien CONFIG_FILES = $CONFIG_FILES 15082133359Sobrien CONFIG_HEADERS = $CONFIG_HEADERS 15083133359Sobrien CONFIG_LINKS = $CONFIG_LINKS 15084133359Sobrien CONFIG_COMMANDS = $CONFIG_COMMANDS 15085133359Sobrien $ $0 $@ 15086133359Sobrien 15087175296Sobrienon `(hostname || uname -n) 2>/dev/null | sed 1q` 15088175296Sobrien" 15089175296Sobrien 15090133359Sobrien_ACEOF 15091133359Sobrien 15092234449Sobriencase $ac_config_files in *" 15093234449Sobrien"*) set x $ac_config_files; shift; ac_config_files=$*;; 15094234449Sobrienesac 15095234449Sobrien 15096234449Sobriencase $ac_config_headers in *" 15097234449Sobrien"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15098234449Sobrienesac 15099234449Sobrien 15100234449Sobrien 15101234449Sobriencat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15102133359Sobrien# Files that config.status was made for. 15103175296Sobrienconfig_files="$ac_config_files" 15104175296Sobrienconfig_headers="$ac_config_headers" 15105175296Sobrienconfig_commands="$ac_config_commands" 15106133359Sobrien 15107175296Sobrien_ACEOF 15108133359Sobrien 15109234449Sobriencat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15110133359Sobrienac_cs_usage="\ 15111234449Sobrien\`$as_me' instantiates files and other configuration actions 15112234449Sobrienfrom templates according to the current configuration. Unless the files 15113234449Sobrienand actions are specified as TAGs, all are instantiated by default. 15114133359Sobrien 15115234449SobrienUsage: $0 [OPTION]... [TAG]... 15116133359Sobrien 15117133359Sobrien -h, --help print this help, then exit 15118175296Sobrien -V, --version print version number and configuration settings, then exit 15119234449Sobrien --config print configuration, then exit 15120234449Sobrien -q, --quiet, --silent 15121234449Sobrien do not print progress messages 15122133359Sobrien -d, --debug don't remove temporary files 15123133359Sobrien --recheck update $as_me by reconfiguring in the same conditions 15124234449Sobrien --file=FILE[:TEMPLATE] 15125234449Sobrien instantiate the configuration file FILE 15126234449Sobrien --header=FILE[:TEMPLATE] 15127234449Sobrien instantiate the configuration header FILE 15128133359Sobrien 15129133359SobrienConfiguration files: 15130133359Sobrien$config_files 15131133359Sobrien 15132133359SobrienConfiguration headers: 15133133359Sobrien$config_headers 15134133359Sobrien 15135133359SobrienConfiguration commands: 15136133359Sobrien$config_commands 15137133359Sobrien 15138234449SobrienReport bugs to <christos@astron.com>." 15139175296Sobrien 15140133359Sobrien_ACEOF 15141234449Sobriencat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15142234449Sobrienac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15143133359Sobrienac_cs_version="\\ 15144302221Sdelphijfile config.status 5.28 15145267897Sdelphijconfigured by $0, generated by GNU Autoconf 2.69, 15146234449Sobrien with options \\"\$ac_cs_config\\" 15147133359Sobrien 15148267897SdelphijCopyright (C) 2012 Free Software Foundation, Inc. 15149133359SobrienThis config.status script is free software; the Free Software Foundation 15150133359Sobriengives unlimited permission to copy, distribute and modify it." 15151175296Sobrien 15152175296Sobrienac_pwd='$ac_pwd' 15153175296Sobriensrcdir='$srcdir' 15154175296SobrienINSTALL='$INSTALL' 15155175296SobrienMKDIR_P='$MKDIR_P' 15156234449SobrienAWK='$AWK' 15157234449Sobrientest -n "\$AWK" || AWK=awk 15158133359Sobrien_ACEOF 15159133359Sobrien 15160234449Sobriencat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15161234449Sobrien# The default lists apply if the user does not specify any file. 15162133359Sobrienac_need_defaults=: 15163133359Sobrienwhile test $# != 0 15164133359Sobriendo 15165133359Sobrien case $1 in 15166234449Sobrien --*=?*) 15167175296Sobrien ac_option=`expr "X$1" : 'X\([^=]*\)='` 15168175296Sobrien ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15169159764Sobrien ac_shift=: 15170133359Sobrien ;; 15171234449Sobrien --*=) 15172234449Sobrien ac_option=`expr "X$1" : 'X\([^=]*\)='` 15173234449Sobrien ac_optarg= 15174234449Sobrien ac_shift=: 15175234449Sobrien ;; 15176175296Sobrien *) 15177159764Sobrien ac_option=$1 15178159764Sobrien ac_optarg=$2 15179159764Sobrien ac_shift=shift 15180159764Sobrien ;; 15181133359Sobrien esac 15182133359Sobrien 15183159764Sobrien case $ac_option in 15184133359Sobrien # Handling of the options. 15185139368Sobrien -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15186159764Sobrien ac_cs_recheck=: ;; 15187175296Sobrien --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15188234449Sobrien $as_echo "$ac_cs_version"; exit ;; 15189234449Sobrien --config | --confi | --conf | --con | --co | --c ) 15190234449Sobrien $as_echo "$ac_cs_config"; exit ;; 15191175296Sobrien --debug | --debu | --deb | --de | --d | -d ) 15192133359Sobrien debug=: ;; 15193133359Sobrien --file | --fil | --fi | --f ) 15194159764Sobrien $ac_shift 15195234449Sobrien case $ac_optarg in 15196234449Sobrien *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15197234449Sobrien '') as_fn_error $? "missing file argument" ;; 15198234449Sobrien esac 15199234449Sobrien as_fn_append CONFIG_FILES " '$ac_optarg'" 15200133359Sobrien ac_need_defaults=false;; 15201133359Sobrien --header | --heade | --head | --hea ) 15202159764Sobrien $ac_shift 15203234449Sobrien case $ac_optarg in 15204234449Sobrien *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15205234449Sobrien esac 15206234449Sobrien as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15207133359Sobrien ac_need_defaults=false;; 15208175296Sobrien --he | --h) 15209175296Sobrien # Conflict between --help and --header 15210234449Sobrien as_fn_error $? "ambiguous option: \`$1' 15211234449SobrienTry \`$0 --help' for more information.";; 15212175296Sobrien --help | --hel | -h ) 15213234449Sobrien $as_echo "$ac_cs_usage"; exit ;; 15214159764Sobrien -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15215159764Sobrien | -silent | --silent | --silen | --sile | --sil | --si | --s) 15216159764Sobrien ac_cs_silent=: ;; 15217133359Sobrien 15218133359Sobrien # This is an error. 15219234449Sobrien -*) as_fn_error $? "unrecognized option: \`$1' 15220234449SobrienTry \`$0 --help' for more information." ;; 15221133359Sobrien 15222234449Sobrien *) as_fn_append ac_config_targets " $1" 15223175296Sobrien ac_need_defaults=false ;; 15224133359Sobrien 15225133359Sobrien esac 15226133359Sobrien shift 1522768349Sobriendone 15228133359Sobrien 15229159764Sobrienac_configure_extra_args= 15230159764Sobrien 15231159764Sobrienif $ac_cs_silent; then 15232159764Sobrien exec 6>/dev/null 15233159764Sobrien ac_configure_extra_args="$ac_configure_extra_args --silent" 15234159764Sobrienfi 15235159764Sobrien 15236133359Sobrien_ACEOF 15237234449Sobriencat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15238159764Sobrienif \$ac_cs_recheck; then 15239267897Sdelphij set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15240234449Sobrien shift 15241234449Sobrien \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15242234449Sobrien CONFIG_SHELL='$SHELL' 15243175296Sobrien export CONFIG_SHELL 15244234449Sobrien exec "\$@" 15245159764Sobrienfi 1524668349Sobrien 15247159764Sobrien_ACEOF 15248234449Sobriencat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15249175296Sobrienexec 5>>config.log 15250175296Sobrien{ 15251175296Sobrien echo 15252175296Sobrien sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15253175296Sobrien## Running $as_me. ## 15254175296Sobrien_ASBOX 15255234449Sobrien $as_echo "$ac_log" 15256175296Sobrien} >&5 15257159764Sobrien 15258175296Sobrien_ACEOF 15259234449Sobriencat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15260133359Sobrien# 15261175296Sobrien# INIT-COMMANDS 15262133359Sobrien# 15263133359SobrienAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15264133359Sobrien 15265234449Sobrien 15266234449Sobrien# The HP-UX ksh and POSIX shell print the target directory to stdout 15267234449Sobrien# if CDPATH is set. 15268234449Sobrien(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15269234449Sobrien 15270234449Sobriensed_quote_subst='$sed_quote_subst' 15271234449Sobriendouble_quote_subst='$double_quote_subst' 15272234449Sobriendelay_variable_subst='$delay_variable_subst' 15273267897Sdelphijmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15274267897Sdelphijmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15275267897Sdelphijenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15276267897Sdelphijpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15277267897Sdelphijenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15278267897Sdelphijenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15279267897SdelphijSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15280267897SdelphijECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15281267897SdelphijPATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15282267897Sdelphijhost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15283267897Sdelphijhost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15284267897Sdelphijhost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15285267897Sdelphijbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15286267897Sdelphijbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15287267897Sdelphijbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15288267897SdelphijSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15289267897SdelphijXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15290267897SdelphijGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15291267897SdelphijEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15292267897SdelphijFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15293267897SdelphijLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15294267897SdelphijNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15295267897SdelphijLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15296267897Sdelphijmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15297267897Sdelphijac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15298267897Sdelphijexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15299267897Sdelphijlt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15300267897Sdelphijlt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15301267897Sdelphijlt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15302267897Sdelphijlt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15303267897Sdelphijlt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15304267897Sdelphijreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15305267897Sdelphijreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15306267897SdelphijOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15307267897Sdelphijdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15308267897Sdelphijfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15309267897Sdelphijfile_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15310267897Sdelphijwant_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15311267897SdelphijDLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15312267897Sdelphijsharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15313267897SdelphijAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15314267897SdelphijAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15315267897Sdelphijarchiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15316267897SdelphijSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15317267897SdelphijRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15318267897Sdelphijold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15319267897Sdelphijold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15320267897Sdelphijold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15321267897Sdelphijlock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15322267897SdelphijCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15323267897SdelphijCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15324267897Sdelphijcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15325267897SdelphijGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15326267897Sdelphijlt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15327267897Sdelphijlt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15328267897Sdelphijlt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15329267897Sdelphijlt_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"`' 15330267897Sdelphijnm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15331267897Sdelphijlt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15332267897Sdelphijobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15333267897SdelphijMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15334267897Sdelphijlt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15335267897Sdelphijlt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15336267897Sdelphijlt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15337267897Sdelphijlt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15338267897Sdelphijlt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15339267897Sdelphijneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15340267897SdelphijMANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15341267897SdelphijDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15342267897SdelphijNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15343267897SdelphijLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15344267897SdelphijOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15345267897SdelphijOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15346267897Sdelphijlibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15347267897Sdelphijshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15348267897Sdelphijextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15349267897Sdelphijarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15350267897Sdelphijenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15351267897Sdelphijexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15352267897Sdelphijwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15353267897Sdelphijcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15354267897Sdelphijold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15355267897Sdelphijold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15356267897Sdelphijarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15357267897Sdelphijarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15358267897Sdelphijmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15359267897Sdelphijmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15360267897Sdelphijwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15361267897Sdelphijallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15362267897Sdelphijno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15363267897Sdelphijhardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15364267897Sdelphijhardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15365267897Sdelphijhardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15366267897Sdelphijhardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15367267897Sdelphijhardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15368267897Sdelphijhardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15369267897Sdelphijhardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15370267897Sdelphijinherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15371267897Sdelphijlink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15372267897Sdelphijalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15373267897Sdelphijexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15374267897Sdelphijexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15375267897Sdelphijinclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15376267897Sdelphijprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15377267897Sdelphijpostlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 15378267897Sdelphijfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15379267897Sdelphijvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15380267897Sdelphijneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15381267897Sdelphijneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15382267897Sdelphijversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15383267897Sdelphijrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15384267897Sdelphijshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15385267897Sdelphijshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15386267897Sdelphijlibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15387267897Sdelphijlibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15388267897Sdelphijsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15389267897Sdelphijinstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15390267897Sdelphijpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15391267897Sdelphijpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15392267897Sdelphijfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15393267897Sdelphijfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15394267897Sdelphijhardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15395267897Sdelphijsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15396267897Sdelphijsys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15397267897Sdelphijhardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15398267897Sdelphijenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15399267897Sdelphijenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15400267897Sdelphijenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15401267897Sdelphijold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15402267897Sdelphijstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15403234449Sobrien 15404234449SobrienLTCC='$LTCC' 15405234449SobrienLTCFLAGS='$LTCFLAGS' 15406234449Sobriencompiler='$compiler_DEFAULT' 15407234449Sobrien 15408267897Sdelphij# A function that is used when there is no print builtin or printf. 15409267897Sdelphijfunc_fallback_echo () 15410267897Sdelphij{ 15411267897Sdelphij eval 'cat <<_LTECHO_EOF 15412267897Sdelphij\$1 15413267897Sdelphij_LTECHO_EOF' 15414267897Sdelphij} 15415267897Sdelphij 15416234449Sobrien# Quote evaled strings. 15417267897Sdelphijfor var in SHELL \ 15418267897SdelphijECHO \ 15419267897SdelphijPATH_SEPARATOR \ 15420267897SdelphijSED \ 15421234449SobrienGREP \ 15422234449SobrienEGREP \ 15423234449SobrienFGREP \ 15424234449SobrienLD \ 15425234449SobrienNM \ 15426234449SobrienLN_S \ 15427234449Sobrienlt_SP2NL \ 15428234449Sobrienlt_NL2SP \ 15429234449Sobrienreload_flag \ 15430234449SobrienOBJDUMP \ 15431234449Sobriendeplibs_check_method \ 15432234449Sobrienfile_magic_cmd \ 15433267897Sdelphijfile_magic_glob \ 15434267897Sdelphijwant_nocaseglob \ 15435267897SdelphijDLLTOOL \ 15436267897Sdelphijsharedlib_from_linklib_cmd \ 15437234449SobrienAR \ 15438234449SobrienAR_FLAGS \ 15439267897Sdelphijarchiver_list_spec \ 15440234449SobrienSTRIP \ 15441234449SobrienRANLIB \ 15442234449SobrienCC \ 15443234449SobrienCFLAGS \ 15444234449Sobriencompiler \ 15445234449Sobrienlt_cv_sys_global_symbol_pipe \ 15446234449Sobrienlt_cv_sys_global_symbol_to_cdecl \ 15447234449Sobrienlt_cv_sys_global_symbol_to_c_name_address \ 15448234449Sobrienlt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15449267897Sdelphijnm_file_list_spec \ 15450234449Sobrienlt_prog_compiler_no_builtin_flag \ 15451267897Sdelphijlt_prog_compiler_pic \ 15452234449Sobrienlt_prog_compiler_wl \ 15453234449Sobrienlt_prog_compiler_static \ 15454234449Sobrienlt_cv_prog_compiler_c_o \ 15455234449Sobrienneed_locks \ 15456267897SdelphijMANIFEST_TOOL \ 15457234449SobrienDSYMUTIL \ 15458234449SobrienNMEDIT \ 15459234449SobrienLIPO \ 15460234449SobrienOTOOL \ 15461234449SobrienOTOOL64 \ 15462234449Sobrienshrext_cmds \ 15463234449Sobrienexport_dynamic_flag_spec \ 15464234449Sobrienwhole_archive_flag_spec \ 15465234449Sobriencompiler_needs_object \ 15466234449Sobrienwith_gnu_ld \ 15467234449Sobrienallow_undefined_flag \ 15468234449Sobrienno_undefined_flag \ 15469234449Sobrienhardcode_libdir_flag_spec \ 15470234449Sobrienhardcode_libdir_separator \ 15471234449Sobrienexclude_expsyms \ 15472234449Sobrieninclude_expsyms \ 15473234449Sobrienfile_list_spec \ 15474234449Sobrienvariables_saved_for_relink \ 15475234449Sobrienlibname_spec \ 15476234449Sobrienlibrary_names_spec \ 15477234449Sobriensoname_spec \ 15478267897Sdelphijinstall_override_mode \ 15479234449Sobrienfinish_eval \ 15480234449Sobrienold_striplib \ 15481234449Sobrienstriplib; do 15482267897Sdelphij case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15483234449Sobrien *[\\\\\\\`\\"\\\$]*) 15484267897Sdelphij eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15485234449Sobrien ;; 15486234449Sobrien *) 15487234449Sobrien eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15488234449Sobrien ;; 15489234449Sobrien esac 15490234449Sobriendone 15491234449Sobrien 15492234449Sobrien# Double-quote double-evaled strings. 15493234449Sobrienfor var in reload_cmds \ 15494234449Sobrienold_postinstall_cmds \ 15495234449Sobrienold_postuninstall_cmds \ 15496234449Sobrienold_archive_cmds \ 15497234449Sobrienextract_expsyms_cmds \ 15498234449Sobrienold_archive_from_new_cmds \ 15499234449Sobrienold_archive_from_expsyms_cmds \ 15500234449Sobrienarchive_cmds \ 15501234449Sobrienarchive_expsym_cmds \ 15502234449Sobrienmodule_cmds \ 15503234449Sobrienmodule_expsym_cmds \ 15504234449Sobrienexport_symbols_cmds \ 15505234449Sobrienprelink_cmds \ 15506267897Sdelphijpostlink_cmds \ 15507234449Sobrienpostinstall_cmds \ 15508234449Sobrienpostuninstall_cmds \ 15509234449Sobrienfinish_cmds \ 15510234449Sobriensys_lib_search_path_spec \ 15511234449Sobriensys_lib_dlsearch_path_spec; do 15512267897Sdelphij case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15513234449Sobrien *[\\\\\\\`\\"\\\$]*) 15514267897Sdelphij eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15515234449Sobrien ;; 15516234449Sobrien *) 15517234449Sobrien eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15518234449Sobrien ;; 15519234449Sobrien esac 15520234449Sobriendone 15521234449Sobrien 15522234449Sobrienac_aux_dir='$ac_aux_dir' 15523234449Sobrienxsi_shell='$xsi_shell' 15524234449Sobrienlt_shell_append='$lt_shell_append' 15525234449Sobrien 15526234449Sobrien# See if we are running on zsh, and set the options which allow our 15527234449Sobrien# commands through without removal of \ escapes INIT. 15528234449Sobrienif test -n "\${ZSH_VERSION+set}" ; then 15529234449Sobrien setopt NO_GLOB_SUBST 15530234449Sobrienfi 15531234449Sobrien 15532234449Sobrien 15533234449Sobrien PACKAGE='$PACKAGE' 15534234449Sobrien VERSION='$VERSION' 15535234449Sobrien TIMESTAMP='$TIMESTAMP' 15536234449Sobrien RM='$RM' 15537234449Sobrien ofile='$ofile' 15538234449Sobrien 15539234449Sobrien 15540234449Sobrien 15541234449Sobrien 15542133359Sobrien_ACEOF 15543133359Sobrien 15544234449Sobriencat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15545133359Sobrien 15546175296Sobrien# Handling of arguments. 15547133359Sobrienfor ac_config_target in $ac_config_targets 15548133359Sobriendo 15549175296Sobrien case $ac_config_target in 15550175296Sobrien "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 15551175296Sobrien "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15552234449Sobrien "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15553175296Sobrien "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15554175296Sobrien "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 15555175296Sobrien "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;; 15556186691Sobrien "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 15557175296Sobrien "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 15558175296Sobrien "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 15559175296Sobrien 15560234449Sobrien *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 1556168349Sobrien esac 15562133359Sobriendone 1556368349Sobrien 15564175296Sobrien 15565133359Sobrien# If the user did not use the arguments to specify the items to instantiate, 15566133359Sobrien# then the envvar interface is used. Set only those that are not. 15567133359Sobrien# We use the long form for the default assignment because of an extremely 15568133359Sobrien# bizarre bug on SunOS 4.1.3. 15569133359Sobrienif $ac_need_defaults; then 15570133359Sobrien test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15571133359Sobrien test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15572133359Sobrien test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15573133359Sobrienfi 1557468349Sobrien 15575159764Sobrien# Have a temporary directory for convenience. Make it in the build tree 15576175296Sobrien# simply because there is no reason against having it here, and in addition, 15577159764Sobrien# creating and moving files from /tmp can sometimes cause problems. 15578175296Sobrien# Hook for its removal unless debugging. 15579175296Sobrien# Note that there is a small window in which the directory will not be cleaned: 15580175296Sobrien# after its creation but before its name has been assigned to `$tmp'. 15581133359Sobrien$debug || 15582133359Sobrien{ 15583234449Sobrien tmp= ac_tmp= 15584175296Sobrien trap 'exit_status=$? 15585234449Sobrien : "${ac_tmp:=$tmp}" 15586234449Sobrien { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15587175296Sobrien' 0 15588234449Sobrien trap 'as_fn_exit 1' 1 2 13 15 15589133359Sobrien} 15590133359Sobrien# Create a (secure) tmp directory for tmp files. 15591159764Sobrien 15592133359Sobrien{ 15593175296Sobrien tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15594234449Sobrien test -d "$tmp" 15595133359Sobrien} || 15596133359Sobrien{ 15597175296Sobrien tmp=./conf$$-$RANDOM 15598175296Sobrien (umask 077 && mkdir "$tmp") 15599234449Sobrien} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15600234449Sobrienac_tmp=$tmp 15601133359Sobrien 15602234449Sobrien# Set up the scripts for CONFIG_FILES section. 15603234449Sobrien# No need to generate them if there are no CONFIG_FILES. 15604234449Sobrien# This happens for instance with `./config.status config.h'. 15605175296Sobrienif test -n "$CONFIG_FILES"; then 15606133359Sobrien 15607234449Sobrien 15608234449Sobrienac_cr=`echo X | tr X '\015'` 15609234449Sobrien# On cygwin, bash can eat \r inside `` if the user requested igncr. 15610234449Sobrien# But we know of no other shell where ac_cr would be empty at this 15611234449Sobrien# point, so we can use a bashism as a fallback. 15612234449Sobrienif test "x$ac_cr" = x; then 15613234449Sobrien eval ac_cr=\$\'\\r\' 15614234449Sobrienfi 15615234449Sobrienac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15616234449Sobrienif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15617234449Sobrien ac_cs_awk_cr='\\r' 15618234449Sobrienelse 15619234449Sobrien ac_cs_awk_cr=$ac_cr 15620234449Sobrienfi 15621234449Sobrien 15622234449Sobrienecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 15623133359Sobrien_ACEOF 15624133359Sobrien 15625175296Sobrien 15626234449Sobrien{ 15627234449Sobrien echo "cat >conf$$subs.awk <<_ACEOF" && 15628234449Sobrien echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15629234449Sobrien echo "_ACEOF" 15630234449Sobrien} >conf$$subs.sh || 15631234449Sobrien as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15632234449Sobrienac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15633175296Sobrienac_delim='%!_!# ' 15634175296Sobrienfor ac_last_try in false false false false false :; do 15635234449Sobrien . ./conf$$subs.sh || 15636234449Sobrien as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15637175296Sobrien 15638234449Sobrien ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15639234449Sobrien if test $ac_delim_n = $ac_delim_num; then 15640175296Sobrien break 15641175296Sobrien elif $ac_last_try; then 15642234449Sobrien as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15643175296Sobrien else 15644175296Sobrien ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 1564568349Sobrien fi 15646175296Sobriendone 15647234449Sobrienrm -f conf$$subs.sh 1564868349Sobrien 15649234449Sobriencat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15650234449Sobriencat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15651234449Sobrien_ACEOF 15652234449Sobriensed -n ' 15653234449Sobrienh 15654234449Sobriens/^/S["/; s/!.*/"]=/ 15655234449Sobrienp 15656234449Sobrieng 15657234449Sobriens/^[^!]*!// 15658234449Sobrien:repl 15659234449Sobrient repl 15660234449Sobriens/'"$ac_delim"'$// 15661234449Sobrient delim 15662234449Sobrien:nl 15663234449Sobrienh 15664234449Sobriens/\(.\{148\}\)..*/\1/ 15665234449Sobrient more1 15666234449Sobriens/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15667234449Sobrienp 15668234449Sobrienn 15669234449Sobrienb repl 15670234449Sobrien:more1 15671234449Sobriens/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15672234449Sobrienp 15673234449Sobrieng 15674234449Sobriens/.\{148\}// 15675234449Sobrient nl 15676234449Sobrien:delim 15677234449Sobrienh 15678234449Sobriens/\(.\{148\}\)..*/\1/ 15679234449Sobrient more2 15680234449Sobriens/["\\]/\\&/g; s/^/"/; s/$/"/ 15681234449Sobrienp 15682234449Sobrienb 15683234449Sobrien:more2 15684234449Sobriens/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15685234449Sobrienp 15686234449Sobrieng 15687234449Sobriens/.\{148\}// 15688234449Sobrient delim 15689234449Sobrien' <conf$$subs.awk | sed ' 15690234449Sobrien/^[^""]/{ 15691234449Sobrien N 15692234449Sobrien s/\n// 15693234449Sobrien} 15694234449Sobrien' >>$CONFIG_STATUS || ac_write_fail=1 15695234449Sobrienrm -f conf$$subs.awk 15696234449Sobriencat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15697234449Sobrien_ACAWK 15698234449Sobriencat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15699234449Sobrien for (key in S) S_is_set[key] = 1 15700234449Sobrien FS = "" 15701175296Sobrien 15702234449Sobrien} 15703234449Sobrien{ 15704234449Sobrien line = $ 0 15705234449Sobrien nfields = split(line, field, "@") 15706234449Sobrien substed = 0 15707234449Sobrien len = length(field[1]) 15708234449Sobrien for (i = 2; i < nfields; i++) { 15709234449Sobrien key = field[i] 15710234449Sobrien keylen = length(key) 15711234449Sobrien if (S_is_set[key]) { 15712234449Sobrien value = S[key] 15713234449Sobrien line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15714234449Sobrien len += length(value) + length(field[++i]) 15715234449Sobrien substed = 1 15716234449Sobrien } else 15717234449Sobrien len += 1 + keylen 15718234449Sobrien } 15719234449Sobrien 15720234449Sobrien print line 15721234449Sobrien} 15722234449Sobrien 15723234449Sobrien_ACAWK 15724133359Sobrien_ACEOF 15725234449Sobriencat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15726234449Sobrienif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15727234449Sobrien sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15728234449Sobrienelse 15729234449Sobrien cat 15730234449Sobrienfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15731234449Sobrien || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15732175296Sobrien_ACEOF 15733175296Sobrien 15734234449Sobrien# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15735234449Sobrien# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15736234449Sobrien# trailing colons and then remove the whole line if VPATH becomes empty 15737234449Sobrien# (actually we leave an empty line to preserve line numbers). 15738234449Sobrienif test "x$srcdir" = x.; then 15739234449Sobrien ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15740234449Sobrienh 15741234449Sobriens/// 15742234449Sobriens/^/:/ 15743234449Sobriens/[ ]*$/:/ 15744234449Sobriens/:\$(srcdir):/:/g 15745234449Sobriens/:\${srcdir}:/:/g 15746234449Sobriens/:@srcdir@:/:/g 15747234449Sobriens/^:*// 15748234449Sobriens/:*$// 15749234449Sobrienx 15750234449Sobriens/\(=[ ]*\).*/\1/ 15751234449SobrienG 15752234449Sobriens/\n// 15753234449Sobriens/^[^=]*=[ ]*$// 15754234449Sobrien}' 15755234449Sobrienfi 15756175296Sobrien 15757234449Sobriencat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15758234449Sobrienfi # test -n "$CONFIG_FILES" 15759234449Sobrien 15760234449Sobrien# Set up the scripts for CONFIG_HEADERS section. 15761234449Sobrien# No need to generate them if there are no CONFIG_HEADERS. 15762234449Sobrien# This happens for instance with `./config.status Makefile'. 15763234449Sobrienif test -n "$CONFIG_HEADERS"; then 15764234449Sobriencat >"$ac_tmp/defines.awk" <<\_ACAWK || 15765234449SobrienBEGIN { 15766175296Sobrien_ACEOF 15767175296Sobrien 15768234449Sobrien# Transform confdefs.h into an awk script `defines.awk', embedded as 15769234449Sobrien# here-document in config.status, that substitutes the proper values into 15770234449Sobrien# config.h.in to produce config.h. 15771234449Sobrien 15772234449Sobrien# Create a delimiter string that does not exist in confdefs.h, to ease 15773234449Sobrien# handling of long lines. 15774234449Sobrienac_delim='%!_!# ' 15775234449Sobrienfor ac_last_try in false false :; do 15776234449Sobrien ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15777234449Sobrien if test -z "$ac_tt"; then 15778175296Sobrien break 15779175296Sobrien elif $ac_last_try; then 15780234449Sobrien as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15781175296Sobrien else 15782175296Sobrien ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15783175296Sobrien fi 15784175296Sobriendone 15785175296Sobrien 15786234449Sobrien# For the awk script, D is an array of macro values keyed by name, 15787234449Sobrien# likewise P contains macro parameters if any. Preserve backslash 15788234449Sobrien# newline sequences. 15789175296Sobrien 15790234449Sobrienac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15791234449Sobriensed -n ' 15792234449Sobriens/.\{148\}/&'"$ac_delim"'/g 15793234449Sobrient rset 15794234449Sobrien:rset 15795234449Sobriens/^[ ]*#[ ]*define[ ][ ]*/ / 15796234449Sobrient def 15797234449Sobriend 15798234449Sobrien:def 15799234449Sobriens/\\$// 15800234449Sobrient bsnl 15801234449Sobriens/["\\]/\\&/g 15802234449Sobriens/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15803234449SobrienD["\1"]=" \3"/p 15804234449Sobriens/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15805234449Sobriend 15806234449Sobrien:bsnl 15807234449Sobriens/["\\]/\\&/g 15808234449Sobriens/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15809234449SobrienD["\1"]=" \3\\\\\\n"\\/p 15810234449Sobrient cont 15811234449Sobriens/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15812234449Sobrient cont 15813234449Sobriend 15814234449Sobrien:cont 15815234449Sobrienn 15816234449Sobriens/.\{148\}/&'"$ac_delim"'/g 15817234449Sobrient clear 15818234449Sobrien:clear 15819234449Sobriens/\\$// 15820234449Sobrient bsnlc 15821234449Sobriens/["\\]/\\&/g; s/^/"/; s/$/"/p 15822234449Sobriend 15823234449Sobrien:bsnlc 15824234449Sobriens/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15825234449Sobrienb cont 15826234449Sobrien' <confdefs.h | sed ' 15827234449Sobriens/'"$ac_delim"'/"\\\ 15828234449Sobrien"/g' >>$CONFIG_STATUS || ac_write_fail=1 15829234449Sobrien 15830234449Sobriencat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15831234449Sobrien for (key in D) D_is_set[key] = 1 15832234449Sobrien FS = "" 15833234449Sobrien} 15834234449Sobrien/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15835234449Sobrien line = \$ 0 15836234449Sobrien split(line, arg, " ") 15837234449Sobrien if (arg[1] == "#") { 15838234449Sobrien defundef = arg[2] 15839234449Sobrien mac1 = arg[3] 15840234449Sobrien } else { 15841234449Sobrien defundef = substr(arg[1], 2) 15842234449Sobrien mac1 = arg[2] 15843234449Sobrien } 15844234449Sobrien split(mac1, mac2, "(") #) 15845234449Sobrien macro = mac2[1] 15846234449Sobrien prefix = substr(line, 1, index(line, defundef) - 1) 15847234449Sobrien if (D_is_set[macro]) { 15848234449Sobrien # Preserve the white space surrounding the "#". 15849234449Sobrien print prefix "define", macro P[macro] D[macro] 15850234449Sobrien next 15851234449Sobrien } else { 15852234449Sobrien # Replace #undef with comments. This is necessary, for example, 15853234449Sobrien # in the case of _POSIX_SOURCE, which is predefined and required 15854234449Sobrien # on some systems where configure will not decide to define it. 15855234449Sobrien if (defundef == "undef") { 15856234449Sobrien print "/*", prefix defundef, macro, "*/" 15857234449Sobrien next 15858234449Sobrien } 15859234449Sobrien } 15860234449Sobrien} 15861234449Sobrien{ print } 15862234449Sobrien_ACAWK 15863175296Sobrien_ACEOF 15864234449Sobriencat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15865234449Sobrien as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15866234449Sobrienfi # test -n "$CONFIG_HEADERS" 15867175296Sobrien 15868175296Sobrien 15869234449Sobrieneval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15870234449Sobrienshift 15871234449Sobrienfor ac_tag 15872175296Sobriendo 15873175296Sobrien case $ac_tag in 15874175296Sobrien :[FHLC]) ac_mode=$ac_tag; continue;; 1587568349Sobrien esac 15876175296Sobrien case $ac_mode$ac_tag in 15877175296Sobrien :[FHL]*:*);; 15878234449Sobrien :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15879175296Sobrien :[FH]-) ac_tag=-:-;; 15880175296Sobrien :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15881175296Sobrien esac 15882175296Sobrien ac_save_IFS=$IFS 15883175296Sobrien IFS=: 15884175296Sobrien set x $ac_tag 15885175296Sobrien IFS=$ac_save_IFS 15886175296Sobrien shift 15887175296Sobrien ac_file=$1 15888175296Sobrien shift 1588968349Sobrien 15890175296Sobrien case $ac_mode in 15891175296Sobrien :L) ac_source=$1;; 15892175296Sobrien :[FH]) 15893175296Sobrien ac_file_inputs= 15894175296Sobrien for ac_f 15895175296Sobrien do 15896175296Sobrien case $ac_f in 15897234449Sobrien -) ac_f="$ac_tmp/stdin";; 15898175296Sobrien *) # Look for the file first in the build tree, then in the source tree 15899175296Sobrien # (if the path is not absolute). The absolute path cannot be DOS-style, 15900175296Sobrien # because $ac_f cannot contain `:'. 15901175296Sobrien test -f "$ac_f" || 15902175296Sobrien case $ac_f in 15903175296Sobrien [\\/$]*) false;; 15904175296Sobrien *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15905175296Sobrien esac || 15906234449Sobrien as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15907175296Sobrien esac 15908234449Sobrien case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15909234449Sobrien as_fn_append ac_file_inputs " '$ac_f'" 15910175296Sobrien done 15911175296Sobrien 15912175296Sobrien # Let's still pretend it is `configure' which instantiates (i.e., don't 15913175296Sobrien # use $as_me), people would be surprised to read: 15914175296Sobrien # /* config.h. Generated by config.status. */ 15915234449Sobrien configure_input='Generated from '` 15916234449Sobrien $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15917234449Sobrien `' by configure.' 15918175296Sobrien if test x"$ac_file" != x-; then 15919175296Sobrien configure_input="$ac_file. $configure_input" 15920234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15921234449Sobrien$as_echo "$as_me: creating $ac_file" >&6;} 15922175296Sobrien fi 15923234449Sobrien # Neutralize special characters interpreted by sed in replacement strings. 15924234449Sobrien case $configure_input in #( 15925234449Sobrien *\&* | *\|* | *\\* ) 15926234449Sobrien ac_sed_conf_input=`$as_echo "$configure_input" | 15927234449Sobrien sed 's/[\\\\&|]/\\\\&/g'`;; #( 15928234449Sobrien *) ac_sed_conf_input=$configure_input;; 15929234449Sobrien esac 15930175296Sobrien 15931175296Sobrien case $ac_tag in 15932234449Sobrien *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15933234449Sobrien || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15934175296Sobrien esac 15935175296Sobrien ;; 15936175296Sobrien esac 15937175296Sobrien 15938175296Sobrien ac_dir=`$as_dirname -- "$ac_file" || 15939133359Sobrien$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15940159764Sobrien X"$ac_file" : 'X\(//\)[^/]' \| \ 15941159764Sobrien X"$ac_file" : 'X\(//\)$' \| \ 15942175296Sobrien X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15943234449Sobrien$as_echo X"$ac_file" | 15944175296Sobrien sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15945175296Sobrien s//\1/ 15946175296Sobrien q 15947175296Sobrien } 15948175296Sobrien /^X\(\/\/\)[^/].*/{ 15949175296Sobrien s//\1/ 15950175296Sobrien q 15951175296Sobrien } 15952175296Sobrien /^X\(\/\/\)$/{ 15953175296Sobrien s//\1/ 15954175296Sobrien q 15955175296Sobrien } 15956175296Sobrien /^X\(\/\).*/{ 15957175296Sobrien s//\1/ 15958175296Sobrien q 15959175296Sobrien } 15960175296Sobrien s/.*/./; q'` 15961234449Sobrien as_dir="$ac_dir"; as_fn_mkdir_p 15962133359Sobrien ac_builddir=. 15963133359Sobrien 15964175296Sobriencase "$ac_dir" in 15965175296Sobrien.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15966175296Sobrien*) 15967234449Sobrien ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15968175296Sobrien # A ".." for each directory in $ac_dir_suffix. 15969234449Sobrien ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15970175296Sobrien case $ac_top_builddir_sub in 15971175296Sobrien "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15972175296Sobrien *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15973175296Sobrien esac ;; 15974175296Sobrienesac 15975175296Sobrienac_abs_top_builddir=$ac_pwd 15976175296Sobrienac_abs_builddir=$ac_pwd$ac_dir_suffix 15977175296Sobrien# for backward compatibility: 15978175296Sobrienac_top_builddir=$ac_top_build_prefix 15979133359Sobrien 15980133359Sobriencase $srcdir in 15981175296Sobrien .) # We are building in place. 15982133359Sobrien ac_srcdir=. 15983175296Sobrien ac_top_srcdir=$ac_top_builddir_sub 15984175296Sobrien ac_abs_top_srcdir=$ac_pwd ;; 15985175296Sobrien [\\/]* | ?:[\\/]* ) # Absolute name. 15986133359Sobrien ac_srcdir=$srcdir$ac_dir_suffix; 15987175296Sobrien ac_top_srcdir=$srcdir 15988175296Sobrien ac_abs_top_srcdir=$srcdir ;; 15989175296Sobrien *) # Relative name. 15990175296Sobrien ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15991175296Sobrien ac_top_srcdir=$ac_top_build_prefix$srcdir 15992175296Sobrien ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15993133359Sobrienesac 15994175296Sobrienac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15995133359Sobrien 15996133359Sobrien 15997175296Sobrien case $ac_mode in 15998175296Sobrien :F) 15999175296Sobrien # 16000175296Sobrien # CONFIG_FILE 16001175296Sobrien # 16002159764Sobrien 16003133359Sobrien case $INSTALL in 16004133359Sobrien [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16005175296Sobrien *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 1600668349Sobrien esac 16007175296Sobrien ac_MKDIR_P=$MKDIR_P 16008175296Sobrien case $MKDIR_P in 16009175296Sobrien [\\/$]* | ?:[\\/]* ) ;; 16010175296Sobrien */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16011175296Sobrien esac 16012175296Sobrien_ACEOF 1601368349Sobrien 16014234449Sobriencat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16015175296Sobrien# If the template does not know about datarootdir, expand it. 16016175296Sobrien# FIXME: This hack should be removed a few years after 2.60. 16017175296Sobrienac_datarootdir_hack=; ac_datarootdir_seen= 16018234449Sobrienac_sed_dataroot=' 16019234449Sobrien/datarootdir/ { 16020175296Sobrien p 16021175296Sobrien q 16022175296Sobrien} 16023175296Sobrien/@datadir@/p 16024175296Sobrien/@docdir@/p 16025175296Sobrien/@infodir@/p 16026175296Sobrien/@localedir@/p 16027234449Sobrien/@mandir@/p' 16028234449Sobriencase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16029175296Sobrien*datarootdir*) ac_datarootdir_seen=yes;; 16030175296Sobrien*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16031234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16032234449Sobrien$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16033133359Sobrien_ACEOF 16034234449Sobriencat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16035175296Sobrien ac_datarootdir_hack=' 16036175296Sobrien s&@datadir@&$datadir&g 16037175296Sobrien s&@docdir@&$docdir&g 16038175296Sobrien s&@infodir@&$infodir&g 16039175296Sobrien s&@localedir@&$localedir&g 16040175296Sobrien s&@mandir@&$mandir&g 16041234449Sobrien s&\\\${datarootdir}&$datarootdir&g' ;; 16042175296Sobrienesac 16043175296Sobrien_ACEOF 16044175296Sobrien 16045175296Sobrien# Neutralize VPATH when `$srcdir' = `.'. 16046175296Sobrien# Shell code in configure.ac might set extrasub. 16047175296Sobrien# FIXME: do we really want to maintain this feature? 16048234449Sobriencat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16049234449Sobrienac_sed_extra="$ac_vpsub 16050133359Sobrien$extrasub 16051133359Sobrien_ACEOF 16052234449Sobriencat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16053133359Sobrien:t 16054133359Sobrien/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16055234449Sobriens|@configure_input@|$ac_sed_conf_input|;t t 16056175296Sobriens&@top_builddir@&$ac_top_builddir_sub&;t t 16057234449Sobriens&@top_build_prefix@&$ac_top_build_prefix&;t t 16058175296Sobriens&@srcdir@&$ac_srcdir&;t t 16059175296Sobriens&@abs_srcdir@&$ac_abs_srcdir&;t t 16060175296Sobriens&@top_srcdir@&$ac_top_srcdir&;t t 16061175296Sobriens&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16062175296Sobriens&@builddir@&$ac_builddir&;t t 16063175296Sobriens&@abs_builddir@&$ac_abs_builddir&;t t 16064175296Sobriens&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16065175296Sobriens&@INSTALL@&$ac_INSTALL&;t t 16066175296Sobriens&@MKDIR_P@&$ac_MKDIR_P&;t t 16067175296Sobrien$ac_datarootdir_hack 16068234449Sobrien" 16069234449Sobrieneval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16070234449Sobrien >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16071133359Sobrien 16072175296Sobrientest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16073234449Sobrien { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16074234449Sobrien { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16075234449Sobrien "$ac_tmp/out"`; test -z "$ac_out"; } && 16076234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16077234449Sobrienwhich seems to be undefined. Please make sure it is defined" >&5 16078234449Sobrien$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16079234449Sobrienwhich seems to be undefined. Please make sure it is defined" >&2;} 16080133359Sobrien 16081234449Sobrien rm -f "$ac_tmp/stdin" 16082133359Sobrien case $ac_file in 16083234449Sobrien -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16084234449Sobrien *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16085234449Sobrien esac \ 16086234449Sobrien || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16087175296Sobrien ;; 16088175296Sobrien :H) 16089175296Sobrien # 16090175296Sobrien # CONFIG_HEADER 16091175296Sobrien # 16092133359Sobrien if test x"$ac_file" != x-; then 16093234449Sobrien { 16094234449Sobrien $as_echo "/* $configure_input */" \ 16095234449Sobrien && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16096234449Sobrien } >"$ac_tmp/config.h" \ 16097234449Sobrien || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16098234449Sobrien if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16099234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16100234449Sobrien$as_echo "$as_me: $ac_file is unchanged" >&6;} 16101133359Sobrien else 16102234449Sobrien rm -f "$ac_file" 16103234449Sobrien mv "$ac_tmp/config.h" "$ac_file" \ 16104234449Sobrien || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1610568349Sobrien fi 16106133359Sobrien else 16107234449Sobrien $as_echo "/* $configure_input */" \ 16108234449Sobrien && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16109234449Sobrien || as_fn_error $? "could not create -" "$LINENO" 5 1611068349Sobrien fi 16111234449Sobrien# Compute "$ac_file"'s index in $config_headers. 16112234449Sobrien_am_arg="$ac_file" 16113159764Sobrien_am_stamp_count=1 16114159764Sobrienfor _am_header in $config_headers :; do 16115159764Sobrien case $_am_header in 16116234449Sobrien $_am_arg | $_am_arg:* ) 16117159764Sobrien break ;; 16118159764Sobrien * ) 16119159764Sobrien _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16120133359Sobrien esac 16121133359Sobriendone 16122234449Sobrienecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16123234449Sobrien$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16124234449Sobrien X"$_am_arg" : 'X\(//\)[^/]' \| \ 16125234449Sobrien X"$_am_arg" : 'X\(//\)$' \| \ 16126234449Sobrien X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16127234449Sobrien$as_echo X"$_am_arg" | 16128175296Sobrien sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16129175296Sobrien s//\1/ 16130175296Sobrien q 16131175296Sobrien } 16132175296Sobrien /^X\(\/\/\)[^/].*/{ 16133175296Sobrien s//\1/ 16134175296Sobrien q 16135175296Sobrien } 16136175296Sobrien /^X\(\/\/\)$/{ 16137175296Sobrien s//\1/ 16138175296Sobrien q 16139175296Sobrien } 16140175296Sobrien /^X\(\/\).*/{ 16141175296Sobrien s//\1/ 16142175296Sobrien q 16143175296Sobrien } 16144175296Sobrien s/.*/./; q'`/stamp-h$_am_stamp_count 16145175296Sobrien ;; 1614668349Sobrien 16147234449Sobrien :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16148234449Sobrien$as_echo "$as_me: executing $ac_file commands" >&6;} 16149175296Sobrien ;; 16150175296Sobrien esac 16151159764Sobrien 1615268349Sobrien 16153175296Sobrien case $ac_file$ac_mode in 16154234449Sobrien "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16155267897Sdelphij # Older Autoconf quotes --file arguments for eval, but not when files 16156234449Sobrien # are listed without --file. Let's play safe and only enable the eval 16157234449Sobrien # if we detect the quoting. 16158234449Sobrien case $CONFIG_FILES in 16159234449Sobrien *\'*) eval set x "$CONFIG_FILES" ;; 16160234449Sobrien *) set x $CONFIG_FILES ;; 16161234449Sobrien esac 16162234449Sobrien shift 16163234449Sobrien for mf 16164234449Sobrien do 16165234449Sobrien # Strip MF so we end up with the name of the file. 16166234449Sobrien mf=`echo "$mf" | sed -e 's/:.*$//'` 16167234449Sobrien # Check whether this is an Automake generated Makefile or not. 16168267897Sdelphij # We used to match only the files named 'Makefile.in', but 16169234449Sobrien # some people rename them; so instead we look at the file content. 16170234449Sobrien # Grep'ing the first line is not enough: some people post-process 16171234449Sobrien # each Makefile.in and add a new line on top of each file to say so. 16172234449Sobrien # Grep'ing the whole file is not good either: AIX grep has a line 16173234449Sobrien # limit of 2048, but all sed's we know have understand at least 4000. 16174234449Sobrien if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16175234449Sobrien dirpart=`$as_dirname -- "$mf" || 16176133359Sobrien$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16177159764Sobrien X"$mf" : 'X\(//\)[^/]' \| \ 16178159764Sobrien X"$mf" : 'X\(//\)$' \| \ 16179175296Sobrien X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16180234449Sobrien$as_echo X"$mf" | 16181175296Sobrien sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16182175296Sobrien s//\1/ 16183175296Sobrien q 16184175296Sobrien } 16185175296Sobrien /^X\(\/\/\)[^/].*/{ 16186175296Sobrien s//\1/ 16187175296Sobrien q 16188175296Sobrien } 16189175296Sobrien /^X\(\/\/\)$/{ 16190175296Sobrien s//\1/ 16191175296Sobrien q 16192175296Sobrien } 16193175296Sobrien /^X\(\/\).*/{ 16194175296Sobrien s//\1/ 16195175296Sobrien q 16196175296Sobrien } 16197175296Sobrien s/.*/./; q'` 16198234449Sobrien else 16199234449Sobrien continue 16200234449Sobrien fi 16201234449Sobrien # Extract the definition of DEPDIR, am__include, and am__quote 16202267897Sdelphij # from the Makefile without running 'make'. 16203234449Sobrien DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16204234449Sobrien test -z "$DEPDIR" && continue 16205234449Sobrien am__include=`sed -n 's/^am__include = //p' < "$mf"` 16206267897Sdelphij test -z "$am__include" && continue 16207234449Sobrien am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16208234449Sobrien # Find all dependency output files, they are included files with 16209234449Sobrien # $(DEPDIR) in their names. We invoke sed twice because it is the 16210234449Sobrien # simplest approach to changing $(DEPDIR) to its actual value in the 16211234449Sobrien # expansion. 16212234449Sobrien for file in `sed -n " 16213234449Sobrien s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16214267897Sdelphij sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 16215234449Sobrien # Make sure the directory exists. 16216234449Sobrien test -f "$dirpart/$file" && continue 16217234449Sobrien fdir=`$as_dirname -- "$file" || 16218133359Sobrien$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16219159764Sobrien X"$file" : 'X\(//\)[^/]' \| \ 16220159764Sobrien X"$file" : 'X\(//\)$' \| \ 16221175296Sobrien X"$file" : 'X\(/\)' \| . 2>/dev/null || 16222234449Sobrien$as_echo X"$file" | 16223175296Sobrien sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16224175296Sobrien s//\1/ 16225175296Sobrien q 16226175296Sobrien } 16227175296Sobrien /^X\(\/\/\)[^/].*/{ 16228175296Sobrien s//\1/ 16229175296Sobrien q 16230175296Sobrien } 16231175296Sobrien /^X\(\/\/\)$/{ 16232175296Sobrien s//\1/ 16233175296Sobrien q 16234175296Sobrien } 16235175296Sobrien /^X\(\/\).*/{ 16236175296Sobrien s//\1/ 16237175296Sobrien q 16238175296Sobrien } 16239175296Sobrien s/.*/./; q'` 16240234449Sobrien as_dir=$dirpart/$fdir; as_fn_mkdir_p 16241234449Sobrien # echo "creating $dirpart/$file" 16242234449Sobrien echo '# dummy' > "$dirpart/$file" 16243159764Sobrien done 16244133359Sobrien done 16245234449Sobrien} 16246133359Sobrien ;; 16247234449Sobrien "libtool":C) 16248175296Sobrien 16249234449Sobrien # See if we are running on zsh, and set the options which allow our 16250234449Sobrien # commands through without removal of \ escapes. 16251234449Sobrien if test -n "${ZSH_VERSION+set}" ; then 16252234449Sobrien setopt NO_GLOB_SUBST 16253234449Sobrien fi 16254234449Sobrien 16255234449Sobrien cfgfile="${ofile}T" 16256234449Sobrien trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16257234449Sobrien $RM "$cfgfile" 16258234449Sobrien 16259234449Sobrien cat <<_LT_EOF >> "$cfgfile" 16260234449Sobrien#! $SHELL 16261234449Sobrien 16262234449Sobrien# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16263234449Sobrien# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16264234449Sobrien# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16265234449Sobrien# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16266234449Sobrien# 16267234449Sobrien# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16268267897Sdelphij# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 16269267897Sdelphij# Foundation, Inc. 16270234449Sobrien# Written by Gordon Matzigkeit, 1996 16271234449Sobrien# 16272234449Sobrien# This file is part of GNU Libtool. 16273234449Sobrien# 16274234449Sobrien# GNU Libtool is free software; you can redistribute it and/or 16275234449Sobrien# modify it under the terms of the GNU General Public License as 16276234449Sobrien# published by the Free Software Foundation; either version 2 of 16277234449Sobrien# the License, or (at your option) any later version. 16278234449Sobrien# 16279234449Sobrien# As a special exception to the GNU General Public License, 16280234449Sobrien# if you distribute this file as part of a program or library that 16281234449Sobrien# is built using GNU Libtool, you may include this file under the 16282234449Sobrien# same distribution terms that you use for the rest of that program. 16283234449Sobrien# 16284234449Sobrien# GNU Libtool is distributed in the hope that it will be useful, 16285234449Sobrien# but WITHOUT ANY WARRANTY; without even the implied warranty of 16286234449Sobrien# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16287234449Sobrien# GNU General Public License for more details. 16288234449Sobrien# 16289234449Sobrien# You should have received a copy of the GNU General Public License 16290234449Sobrien# along with GNU Libtool; see the file COPYING. If not, a copy 16291234449Sobrien# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16292234449Sobrien# obtained by writing to the Free Software Foundation, Inc., 16293234449Sobrien# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16294234449Sobrien 16295234449Sobrien 16296234449Sobrien# The names of the tagged configurations supported by this script. 16297234449Sobrienavailable_tags="" 16298234449Sobrien 16299234449Sobrien# ### BEGIN LIBTOOL CONFIG 16300234449Sobrien 16301234449Sobrien# Which release of libtool.m4 was used? 16302234449Sobrienmacro_version=$macro_version 16303234449Sobrienmacro_revision=$macro_revision 16304234449Sobrien 16305234449Sobrien# Whether or not to build static libraries. 16306234449Sobrienbuild_old_libs=$enable_static 16307234449Sobrien 16308234449Sobrien# What type of objects to build. 16309234449Sobrienpic_mode=$pic_mode 16310234449Sobrien 16311267897Sdelphij# Whether or not to build shared libraries. 16312267897Sdelphijbuild_libtool_libs=$enable_shared 16313267897Sdelphij 16314234449Sobrien# Whether or not to optimize for fast installation. 16315234449Sobrienfast_install=$enable_fast_install 16316234449Sobrien 16317267897Sdelphij# Shell to use when invoking shell scripts. 16318267897SdelphijSHELL=$lt_SHELL 16319267897Sdelphij 16320267897Sdelphij# An echo program that protects backslashes. 16321267897SdelphijECHO=$lt_ECHO 16322267897Sdelphij 16323267897Sdelphij# The PATH separator for the build system. 16324267897SdelphijPATH_SEPARATOR=$lt_PATH_SEPARATOR 16325267897Sdelphij 16326234449Sobrien# The host system. 16327234449Sobrienhost_alias=$host_alias 16328234449Sobrienhost=$host 16329234449Sobrienhost_os=$host_os 16330234449Sobrien 16331234449Sobrien# The build system. 16332234449Sobrienbuild_alias=$build_alias 16333234449Sobrienbuild=$build 16334234449Sobrienbuild_os=$build_os 16335234449Sobrien 16336234449Sobrien# A sed program that does not truncate output. 16337234449SobrienSED=$lt_SED 16338234449Sobrien 16339234449Sobrien# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16340234449SobrienXsed="\$SED -e 1s/^X//" 16341234449Sobrien 16342234449Sobrien# A grep program that handles long lines. 16343234449SobrienGREP=$lt_GREP 16344234449Sobrien 16345234449Sobrien# An ERE matcher. 16346234449SobrienEGREP=$lt_EGREP 16347234449Sobrien 16348234449Sobrien# A literal string matcher. 16349234449SobrienFGREP=$lt_FGREP 16350234449Sobrien 16351234449Sobrien# A BSD- or MS-compatible name lister. 16352234449SobrienNM=$lt_NM 16353234449Sobrien 16354234449Sobrien# Whether we need soft or hard links. 16355234449SobrienLN_S=$lt_LN_S 16356234449Sobrien 16357234449Sobrien# What is the maximum length of a command? 16358234449Sobrienmax_cmd_len=$max_cmd_len 16359234449Sobrien 16360234449Sobrien# Object file suffix (normally "o"). 16361234449Sobrienobjext=$ac_objext 16362234449Sobrien 16363234449Sobrien# Executable file suffix (normally ""). 16364234449Sobrienexeext=$exeext 16365234449Sobrien 16366234449Sobrien# whether the shell understands "unset". 16367234449Sobrienlt_unset=$lt_unset 16368234449Sobrien 16369234449Sobrien# turn spaces into newlines. 16370234449SobrienSP2NL=$lt_lt_SP2NL 16371234449Sobrien 16372234449Sobrien# turn newlines into spaces. 16373234449SobrienNL2SP=$lt_lt_NL2SP 16374234449Sobrien 16375267897Sdelphij# convert \$build file names to \$host format. 16376267897Sdelphijto_host_file_cmd=$lt_cv_to_host_file_cmd 16377234449Sobrien 16378267897Sdelphij# convert \$build files to toolchain format. 16379267897Sdelphijto_tool_file_cmd=$lt_cv_to_tool_file_cmd 16380267897Sdelphij 16381234449Sobrien# An object symbol dumper. 16382234449SobrienOBJDUMP=$lt_OBJDUMP 16383234449Sobrien 16384234449Sobrien# Method to check whether dependent libraries are shared objects. 16385234449Sobriendeplibs_check_method=$lt_deplibs_check_method 16386234449Sobrien 16387267897Sdelphij# Command to use when deplibs_check_method = "file_magic". 16388234449Sobrienfile_magic_cmd=$lt_file_magic_cmd 16389234449Sobrien 16390267897Sdelphij# How to find potential files when deplibs_check_method = "file_magic". 16391267897Sdelphijfile_magic_glob=$lt_file_magic_glob 16392267897Sdelphij 16393267897Sdelphij# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 16394267897Sdelphijwant_nocaseglob=$lt_want_nocaseglob 16395267897Sdelphij 16396267897Sdelphij# DLL creation program. 16397267897SdelphijDLLTOOL=$lt_DLLTOOL 16398267897Sdelphij 16399267897Sdelphij# Command to associate shared and link libraries. 16400267897Sdelphijsharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 16401267897Sdelphij 16402234449Sobrien# The archiver. 16403234449SobrienAR=$lt_AR 16404267897Sdelphij 16405267897Sdelphij# Flags to create an archive. 16406234449SobrienAR_FLAGS=$lt_AR_FLAGS 16407234449Sobrien 16408267897Sdelphij# How to feed a file listing to the archiver. 16409267897Sdelphijarchiver_list_spec=$lt_archiver_list_spec 16410267897Sdelphij 16411234449Sobrien# A symbol stripping program. 16412234449SobrienSTRIP=$lt_STRIP 16413234449Sobrien 16414234449Sobrien# Commands used to install an old-style archive. 16415234449SobrienRANLIB=$lt_RANLIB 16416234449Sobrienold_postinstall_cmds=$lt_old_postinstall_cmds 16417234449Sobrienold_postuninstall_cmds=$lt_old_postuninstall_cmds 16418234449Sobrien 16419267897Sdelphij# Whether to use a lock for old archive extraction. 16420267897Sdelphijlock_old_archive_extraction=$lock_old_archive_extraction 16421267897Sdelphij 16422234449Sobrien# A C compiler. 16423234449SobrienLTCC=$lt_CC 16424234449Sobrien 16425234449Sobrien# LTCC compiler flags. 16426234449SobrienLTCFLAGS=$lt_CFLAGS 16427234449Sobrien 16428234449Sobrien# Take the output of nm and produce a listing of raw symbols and C names. 16429234449Sobrienglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16430234449Sobrien 16431234449Sobrien# Transform the output of nm in a proper C declaration. 16432234449Sobrienglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16433234449Sobrien 16434234449Sobrien# Transform the output of nm in a C name address pair. 16435234449Sobrienglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16436234449Sobrien 16437234449Sobrien# Transform the output of nm in a C name address pair when lib prefix is needed. 16438234449Sobrienglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16439234449Sobrien 16440267897Sdelphij# Specify filename containing input files for \$NM. 16441267897Sdelphijnm_file_list_spec=$lt_nm_file_list_spec 16442267897Sdelphij 16443267897Sdelphij# The root where to search for dependent libraries,and in which our libraries should be installed. 16444267897Sdelphijlt_sysroot=$lt_sysroot 16445267897Sdelphij 16446234449Sobrien# The name of the directory that contains temporary libtool files. 16447234449Sobrienobjdir=$objdir 16448234449Sobrien 16449234449Sobrien# Used to examine libraries when file_magic_cmd begins with "file". 16450234449SobrienMAGIC_CMD=$MAGIC_CMD 16451234449Sobrien 16452234449Sobrien# Must we lock files when doing compilation? 16453234449Sobrienneed_locks=$lt_need_locks 16454234449Sobrien 16455267897Sdelphij# Manifest tool. 16456267897SdelphijMANIFEST_TOOL=$lt_MANIFEST_TOOL 16457267897Sdelphij 16458234449Sobrien# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16459234449SobrienDSYMUTIL=$lt_DSYMUTIL 16460234449Sobrien 16461234449Sobrien# Tool to change global to local symbols on Mac OS X. 16462234449SobrienNMEDIT=$lt_NMEDIT 16463234449Sobrien 16464234449Sobrien# Tool to manipulate fat objects and archives on Mac OS X. 16465234449SobrienLIPO=$lt_LIPO 16466234449Sobrien 16467234449Sobrien# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16468234449SobrienOTOOL=$lt_OTOOL 16469234449Sobrien 16470234449Sobrien# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16471234449SobrienOTOOL64=$lt_OTOOL64 16472234449Sobrien 16473234449Sobrien# Old archive suffix (normally "a"). 16474234449Sobrienlibext=$libext 16475234449Sobrien 16476234449Sobrien# Shared library suffix (normally ".so"). 16477234449Sobrienshrext_cmds=$lt_shrext_cmds 16478234449Sobrien 16479234449Sobrien# The commands to extract the exported symbol list from a shared archive. 16480234449Sobrienextract_expsyms_cmds=$lt_extract_expsyms_cmds 16481234449Sobrien 16482234449Sobrien# Variables whose values should be saved in libtool wrapper scripts and 16483234449Sobrien# restored at link time. 16484234449Sobrienvariables_saved_for_relink=$lt_variables_saved_for_relink 16485234449Sobrien 16486234449Sobrien# Do we need the "lib" prefix for modules? 16487234449Sobrienneed_lib_prefix=$need_lib_prefix 16488234449Sobrien 16489234449Sobrien# Do we need a version for libraries? 16490234449Sobrienneed_version=$need_version 16491234449Sobrien 16492234449Sobrien# Library versioning type. 16493234449Sobrienversion_type=$version_type 16494234449Sobrien 16495234449Sobrien# Shared library runtime path variable. 16496234449Sobrienrunpath_var=$runpath_var 16497234449Sobrien 16498234449Sobrien# Shared library path variable. 16499234449Sobrienshlibpath_var=$shlibpath_var 16500234449Sobrien 16501234449Sobrien# Is shlibpath searched before the hard-coded library search path? 16502234449Sobrienshlibpath_overrides_runpath=$shlibpath_overrides_runpath 16503234449Sobrien 16504234449Sobrien# Format of library name prefix. 16505234449Sobrienlibname_spec=$lt_libname_spec 16506234449Sobrien 16507234449Sobrien# List of archive names. First name is the real one, the rest are links. 16508234449Sobrien# The last name is the one that the linker finds with -lNAME 16509234449Sobrienlibrary_names_spec=$lt_library_names_spec 16510234449Sobrien 16511234449Sobrien# The coded name of the library, if different from the real name. 16512234449Sobriensoname_spec=$lt_soname_spec 16513234449Sobrien 16514267897Sdelphij# Permission mode override for installation of shared libraries. 16515267897Sdelphijinstall_override_mode=$lt_install_override_mode 16516267897Sdelphij 16517234449Sobrien# Command to use after installation of a shared archive. 16518234449Sobrienpostinstall_cmds=$lt_postinstall_cmds 16519234449Sobrien 16520234449Sobrien# Command to use after uninstallation of a shared archive. 16521234449Sobrienpostuninstall_cmds=$lt_postuninstall_cmds 16522234449Sobrien 16523234449Sobrien# Commands used to finish a libtool library installation in a directory. 16524234449Sobrienfinish_cmds=$lt_finish_cmds 16525234449Sobrien 16526234449Sobrien# As "finish_cmds", except a single script fragment to be evaled but 16527234449Sobrien# not shown. 16528234449Sobrienfinish_eval=$lt_finish_eval 16529234449Sobrien 16530234449Sobrien# Whether we should hardcode library paths into libraries. 16531234449Sobrienhardcode_into_libs=$hardcode_into_libs 16532234449Sobrien 16533234449Sobrien# Compile-time system search path for libraries. 16534234449Sobriensys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16535234449Sobrien 16536234449Sobrien# Run-time system search path for libraries. 16537234449Sobriensys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16538234449Sobrien 16539234449Sobrien# Whether dlopen is supported. 16540234449Sobriendlopen_support=$enable_dlopen 16541234449Sobrien 16542234449Sobrien# Whether dlopen of programs is supported. 16543234449Sobriendlopen_self=$enable_dlopen_self 16544234449Sobrien 16545234449Sobrien# Whether dlopen of statically linked programs is supported. 16546234449Sobriendlopen_self_static=$enable_dlopen_self_static 16547234449Sobrien 16548234449Sobrien# Commands to strip libraries. 16549234449Sobrienold_striplib=$lt_old_striplib 16550234449Sobrienstriplib=$lt_striplib 16551234449Sobrien 16552234449Sobrien 16553234449Sobrien# The linker used to build libraries. 16554234449SobrienLD=$lt_LD 16555234449Sobrien 16556267897Sdelphij# How to create reloadable object files. 16557267897Sdelphijreload_flag=$lt_reload_flag 16558267897Sdelphijreload_cmds=$lt_reload_cmds 16559267897Sdelphij 16560234449Sobrien# Commands used to build an old-style archive. 16561234449Sobrienold_archive_cmds=$lt_old_archive_cmds 16562234449Sobrien 16563234449Sobrien# A language specific compiler. 16564234449SobrienCC=$lt_compiler 16565234449Sobrien 16566234449Sobrien# Is the compiler the GNU compiler? 16567234449Sobrienwith_gcc=$GCC 16568234449Sobrien 16569234449Sobrien# Compiler flag to turn off builtin functions. 16570234449Sobrienno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16571234449Sobrien 16572267897Sdelphij# Additional compiler flags for building library objects. 16573267897Sdelphijpic_flag=$lt_lt_prog_compiler_pic 16574267897Sdelphij 16575234449Sobrien# How to pass a linker flag through the compiler. 16576234449Sobrienwl=$lt_lt_prog_compiler_wl 16577234449Sobrien 16578234449Sobrien# Compiler flag to prevent dynamic linking. 16579234449Sobrienlink_static_flag=$lt_lt_prog_compiler_static 16580234449Sobrien 16581234449Sobrien# Does compiler simultaneously support -c and -o options? 16582234449Sobriencompiler_c_o=$lt_lt_cv_prog_compiler_c_o 16583234449Sobrien 16584234449Sobrien# Whether or not to add -lc for building shared libraries. 16585234449Sobrienbuild_libtool_need_lc=$archive_cmds_need_lc 16586234449Sobrien 16587234449Sobrien# Whether or not to disallow shared libs when runtime libs are static. 16588234449Sobrienallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16589234449Sobrien 16590234449Sobrien# Compiler flag to allow reflexive dlopens. 16591234449Sobrienexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16592234449Sobrien 16593234449Sobrien# Compiler flag to generate shared objects directly from archives. 16594234449Sobrienwhole_archive_flag_spec=$lt_whole_archive_flag_spec 16595234449Sobrien 16596234449Sobrien# Whether the compiler copes with passing no objects directly. 16597234449Sobriencompiler_needs_object=$lt_compiler_needs_object 16598234449Sobrien 16599234449Sobrien# Create an old-style archive from a shared archive. 16600234449Sobrienold_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16601234449Sobrien 16602234449Sobrien# Create a temporary old-style archive to link instead of a shared archive. 16603234449Sobrienold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16604234449Sobrien 16605234449Sobrien# Commands used to build a shared archive. 16606234449Sobrienarchive_cmds=$lt_archive_cmds 16607234449Sobrienarchive_expsym_cmds=$lt_archive_expsym_cmds 16608234449Sobrien 16609234449Sobrien# Commands used to build a loadable module if different from building 16610234449Sobrien# a shared archive. 16611234449Sobrienmodule_cmds=$lt_module_cmds 16612234449Sobrienmodule_expsym_cmds=$lt_module_expsym_cmds 16613234449Sobrien 16614234449Sobrien# Whether we are building with GNU ld or not. 16615234449Sobrienwith_gnu_ld=$lt_with_gnu_ld 16616234449Sobrien 16617234449Sobrien# Flag that allows shared libraries with undefined symbols to be built. 16618234449Sobrienallow_undefined_flag=$lt_allow_undefined_flag 16619234449Sobrien 16620234449Sobrien# Flag that enforces no undefined symbols. 16621234449Sobrienno_undefined_flag=$lt_no_undefined_flag 16622234449Sobrien 16623234449Sobrien# Flag to hardcode \$libdir into a binary during linking. 16624234449Sobrien# This must work even if \$libdir does not exist 16625234449Sobrienhardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16626234449Sobrien 16627234449Sobrien# Whether we need a single "-rpath" flag with a separated argument. 16628234449Sobrienhardcode_libdir_separator=$lt_hardcode_libdir_separator 16629234449Sobrien 16630234449Sobrien# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16631234449Sobrien# DIR into the resulting binary. 16632234449Sobrienhardcode_direct=$hardcode_direct 16633234449Sobrien 16634234449Sobrien# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16635234449Sobrien# DIR into the resulting binary and the resulting library dependency is 16636234449Sobrien# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16637234449Sobrien# library is relocated. 16638234449Sobrienhardcode_direct_absolute=$hardcode_direct_absolute 16639234449Sobrien 16640234449Sobrien# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16641234449Sobrien# into the resulting binary. 16642234449Sobrienhardcode_minus_L=$hardcode_minus_L 16643234449Sobrien 16644234449Sobrien# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16645234449Sobrien# into the resulting binary. 16646234449Sobrienhardcode_shlibpath_var=$hardcode_shlibpath_var 16647234449Sobrien 16648234449Sobrien# Set to "yes" if building a shared library automatically hardcodes DIR 16649234449Sobrien# into the library and all subsequent libraries and executables linked 16650234449Sobrien# against it. 16651234449Sobrienhardcode_automatic=$hardcode_automatic 16652234449Sobrien 16653234449Sobrien# Set to yes if linker adds runtime paths of dependent libraries 16654234449Sobrien# to runtime path list. 16655234449Sobrieninherit_rpath=$inherit_rpath 16656234449Sobrien 16657234449Sobrien# Whether libtool must link a program against all its dependency libraries. 16658234449Sobrienlink_all_deplibs=$link_all_deplibs 16659234449Sobrien 16660234449Sobrien# Set to "yes" if exported symbols are required. 16661234449Sobrienalways_export_symbols=$always_export_symbols 16662234449Sobrien 16663234449Sobrien# The commands to list exported symbols. 16664234449Sobrienexport_symbols_cmds=$lt_export_symbols_cmds 16665234449Sobrien 16666234449Sobrien# Symbols that should not be listed in the preloaded symbols. 16667234449Sobrienexclude_expsyms=$lt_exclude_expsyms 16668234449Sobrien 16669234449Sobrien# Symbols that must always be exported. 16670234449Sobrieninclude_expsyms=$lt_include_expsyms 16671234449Sobrien 16672234449Sobrien# Commands necessary for linking programs (against libraries) with templates. 16673234449Sobrienprelink_cmds=$lt_prelink_cmds 16674234449Sobrien 16675267897Sdelphij# Commands necessary for finishing linking programs. 16676267897Sdelphijpostlink_cmds=$lt_postlink_cmds 16677267897Sdelphij 16678234449Sobrien# Specify filename containing input files. 16679234449Sobrienfile_list_spec=$lt_file_list_spec 16680234449Sobrien 16681234449Sobrien# How to hardcode a shared library path into an executable. 16682234449Sobrienhardcode_action=$hardcode_action 16683234449Sobrien 16684234449Sobrien# ### END LIBTOOL CONFIG 16685234449Sobrien 16686234449Sobrien_LT_EOF 16687234449Sobrien 16688234449Sobrien case $host_os in 16689234449Sobrien aix3*) 16690234449Sobrien cat <<\_LT_EOF >> "$cfgfile" 16691234449Sobrien# AIX sometimes has problems with the GCC collect2 program. For some 16692234449Sobrien# reason, if we set the COLLECT_NAMES environment variable, the problems 16693234449Sobrien# vanish in a puff of smoke. 16694234449Sobrienif test "X${COLLECT_NAMES+set}" != Xset; then 16695234449Sobrien COLLECT_NAMES= 16696234449Sobrien export COLLECT_NAMES 16697234449Sobrienfi 16698234449Sobrien_LT_EOF 16699234449Sobrien ;; 16700133359Sobrien esac 16701234449Sobrien 16702234449Sobrien 16703234449Sobrienltmain="$ac_aux_dir/ltmain.sh" 16704234449Sobrien 16705234449Sobrien 16706234449Sobrien # We use sed instead of cat because bash on DJGPP gets confused if 16707234449Sobrien # if finds mixed CR/LF and LF-only lines. Since sed operates in 16708234449Sobrien # text mode, it properly converts lines to CR/LF. This bash problem 16709234449Sobrien # is reportedly fixed, but why not run on old versions too? 16710267897Sdelphij sed '$q' "$ltmain" >> "$cfgfile" \ 16711267897Sdelphij || (rm -f "$cfgfile"; exit 1) 16712234449Sobrien 16713267897Sdelphij if test x"$xsi_shell" = xyes; then 16714267897Sdelphij sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 16715267897Sdelphijfunc_dirname ()\ 16716267897Sdelphij{\ 16717267897Sdelphij\ case ${1} in\ 16718267897Sdelphij\ */*) func_dirname_result="${1%/*}${2}" ;;\ 16719267897Sdelphij\ * ) func_dirname_result="${3}" ;;\ 16720267897Sdelphij\ esac\ 16721267897Sdelphij} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 16722267897Sdelphij && mv -f "$cfgfile.tmp" "$cfgfile" \ 16723267897Sdelphij || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16724267897Sdelphijtest 0 -eq $? || _lt_function_replace_fail=: 16725234449Sobrien 16726234449Sobrien 16727267897Sdelphij sed -e '/^func_basename ()$/,/^} # func_basename /c\ 16728267897Sdelphijfunc_basename ()\ 16729267897Sdelphij{\ 16730267897Sdelphij\ func_basename_result="${1##*/}"\ 16731267897Sdelphij} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 16732267897Sdelphij && mv -f "$cfgfile.tmp" "$cfgfile" \ 16733267897Sdelphij || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16734267897Sdelphijtest 0 -eq $? || _lt_function_replace_fail=: 16735234449Sobrien 16736234449Sobrien 16737267897Sdelphij sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 16738267897Sdelphijfunc_dirname_and_basename ()\ 16739267897Sdelphij{\ 16740267897Sdelphij\ case ${1} in\ 16741267897Sdelphij\ */*) func_dirname_result="${1%/*}${2}" ;;\ 16742267897Sdelphij\ * ) func_dirname_result="${3}" ;;\ 16743267897Sdelphij\ esac\ 16744267897Sdelphij\ func_basename_result="${1##*/}"\ 16745267897Sdelphij} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 16746267897Sdelphij && mv -f "$cfgfile.tmp" "$cfgfile" \ 16747267897Sdelphij || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16748267897Sdelphijtest 0 -eq $? || _lt_function_replace_fail=: 16749234449Sobrien 16750234449Sobrien 16751267897Sdelphij sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 16752267897Sdelphijfunc_stripname ()\ 16753267897Sdelphij{\ 16754267897Sdelphij\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 16755267897Sdelphij\ # positional parameters, so assign one to ordinary parameter first.\ 16756267897Sdelphij\ func_stripname_result=${3}\ 16757267897Sdelphij\ func_stripname_result=${func_stripname_result#"${1}"}\ 16758267897Sdelphij\ func_stripname_result=${func_stripname_result%"${2}"}\ 16759267897Sdelphij} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 16760267897Sdelphij && mv -f "$cfgfile.tmp" "$cfgfile" \ 16761267897Sdelphij || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16762267897Sdelphijtest 0 -eq $? || _lt_function_replace_fail=: 16763234449Sobrien 16764234449Sobrien 16765267897Sdelphij sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 16766267897Sdelphijfunc_split_long_opt ()\ 16767267897Sdelphij{\ 16768267897Sdelphij\ func_split_long_opt_name=${1%%=*}\ 16769267897Sdelphij\ func_split_long_opt_arg=${1#*=}\ 16770267897Sdelphij} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 16771267897Sdelphij && mv -f "$cfgfile.tmp" "$cfgfile" \ 16772267897Sdelphij || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16773267897Sdelphijtest 0 -eq $? || _lt_function_replace_fail=: 16774234449Sobrien 16775234449Sobrien 16776267897Sdelphij sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 16777267897Sdelphijfunc_split_short_opt ()\ 16778267897Sdelphij{\ 16779267897Sdelphij\ func_split_short_opt_arg=${1#??}\ 16780267897Sdelphij\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 16781267897Sdelphij} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 16782267897Sdelphij && mv -f "$cfgfile.tmp" "$cfgfile" \ 16783267897Sdelphij || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16784267897Sdelphijtest 0 -eq $? || _lt_function_replace_fail=: 16785234449Sobrien 16786234449Sobrien 16787267897Sdelphij sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 16788267897Sdelphijfunc_lo2o ()\ 16789267897Sdelphij{\ 16790267897Sdelphij\ case ${1} in\ 16791267897Sdelphij\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 16792267897Sdelphij\ *) func_lo2o_result=${1} ;;\ 16793267897Sdelphij\ esac\ 16794267897Sdelphij} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 16795267897Sdelphij && mv -f "$cfgfile.tmp" "$cfgfile" \ 16796267897Sdelphij || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16797267897Sdelphijtest 0 -eq $? || _lt_function_replace_fail=: 16798234449Sobrien 16799234449Sobrien 16800267897Sdelphij sed -e '/^func_xform ()$/,/^} # func_xform /c\ 16801267897Sdelphijfunc_xform ()\ 16802267897Sdelphij{\ 16803267897Sdelphij func_xform_result=${1%.*}.lo\ 16804267897Sdelphij} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 16805267897Sdelphij && mv -f "$cfgfile.tmp" "$cfgfile" \ 16806267897Sdelphij || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16807267897Sdelphijtest 0 -eq $? || _lt_function_replace_fail=: 16808234449Sobrien 16809234449Sobrien 16810267897Sdelphij sed -e '/^func_arith ()$/,/^} # func_arith /c\ 16811267897Sdelphijfunc_arith ()\ 16812267897Sdelphij{\ 16813267897Sdelphij func_arith_result=$(( $* ))\ 16814267897Sdelphij} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 16815267897Sdelphij && mv -f "$cfgfile.tmp" "$cfgfile" \ 16816267897Sdelphij || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16817267897Sdelphijtest 0 -eq $? || _lt_function_replace_fail=: 16818234449Sobrien 16819234449Sobrien 16820267897Sdelphij sed -e '/^func_len ()$/,/^} # func_len /c\ 16821267897Sdelphijfunc_len ()\ 16822267897Sdelphij{\ 16823267897Sdelphij func_len_result=${#1}\ 16824267897Sdelphij} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 16825267897Sdelphij && mv -f "$cfgfile.tmp" "$cfgfile" \ 16826267897Sdelphij || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16827267897Sdelphijtest 0 -eq $? || _lt_function_replace_fail=: 16828234449Sobrien 16829267897Sdelphijfi 16830234449Sobrien 16831267897Sdelphijif test x"$lt_shell_append" = xyes; then 16832267897Sdelphij sed -e '/^func_append ()$/,/^} # func_append /c\ 16833267897Sdelphijfunc_append ()\ 16834267897Sdelphij{\ 16835267897Sdelphij eval "${1}+=\\${2}"\ 16836267897Sdelphij} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 16837267897Sdelphij && mv -f "$cfgfile.tmp" "$cfgfile" \ 16838267897Sdelphij || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16839267897Sdelphijtest 0 -eq $? || _lt_function_replace_fail=: 16840234449Sobrien 16841234449Sobrien 16842267897Sdelphij sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 16843267897Sdelphijfunc_append_quoted ()\ 16844267897Sdelphij{\ 16845267897Sdelphij\ func_quote_for_eval "${2}"\ 16846267897Sdelphij\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 16847267897Sdelphij} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 16848267897Sdelphij && mv -f "$cfgfile.tmp" "$cfgfile" \ 16849267897Sdelphij || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16850267897Sdelphijtest 0 -eq $? || _lt_function_replace_fail=: 16851234449Sobrien 16852234449Sobrien 16853267897Sdelphij # Save a `func_append' function call where possible by direct use of '+=' 16854267897Sdelphij sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 16855267897Sdelphij && mv -f "$cfgfile.tmp" "$cfgfile" \ 16856267897Sdelphij || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16857267897Sdelphij test 0 -eq $? || _lt_function_replace_fail=: 16858267897Sdelphijelse 16859267897Sdelphij # Save a `func_append' function call even when '+=' is not available 16860267897Sdelphij sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 16861267897Sdelphij && mv -f "$cfgfile.tmp" "$cfgfile" \ 16862267897Sdelphij || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16863267897Sdelphij test 0 -eq $? || _lt_function_replace_fail=: 16864267897Sdelphijfi 16865234449Sobrien 16866267897Sdelphijif test x"$_lt_function_replace_fail" = x":"; then 16867267897Sdelphij { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 16868267897Sdelphij$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 16869267897Sdelphijfi 16870234449Sobrien 16871234449Sobrien 16872267897Sdelphij mv -f "$cfgfile" "$ofile" || 16873234449Sobrien (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16874234449Sobrien chmod +x "$ofile" 16875234449Sobrien 16876234449Sobrien ;; 16877234449Sobrien 16878234449Sobrien esac 16879175296Sobriendone # for ac_tag 16880133359Sobrien 16881133359Sobrien 16882234449Sobrienas_fn_exit 0 16883133359Sobrien_ACEOF 16884133359Sobrienac_clean_files=$ac_clean_files_save 1688568349Sobrien 16886234449Sobrientest $ac_write_fail = 0 || 16887234449Sobrien as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16888133359Sobrien 16889234449Sobrien 16890133359Sobrien# configure is writing to config.log, and then calls config.status. 16891133359Sobrien# config.status does its own redirection, appending to config.log. 16892133359Sobrien# Unfortunately, on DOS this fails, as config.log is still kept open 16893133359Sobrien# by configure, so config.status won't be able to write to it; its 16894133359Sobrien# output is simply discarded. So we exec the FD to /dev/null, 16895133359Sobrien# effectively closing config.log, so it can be properly (re)opened and 16896133359Sobrien# appended to by config.status. When coming back to configure, we 16897133359Sobrien# need to make the FD available again. 16898133359Sobrienif test "$no_create" != yes; then 16899133359Sobrien ac_cs_success=: 16900159764Sobrien ac_config_status_args= 16901159764Sobrien test "$silent" = yes && 16902159764Sobrien ac_config_status_args="$ac_config_status_args --quiet" 16903133359Sobrien exec 5>/dev/null 16904159764Sobrien $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16905133359Sobrien exec 5>>config.log 16906133359Sobrien # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16907133359Sobrien # would make configure fail if this is the last instruction. 16908234449Sobrien $ac_cs_success || as_fn_exit 1 16909133359Sobrienfi 16910234449Sobrienif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16911234449Sobrien { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16912234449Sobrien$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16913234449Sobrienfi 16914133359Sobrien 16915