configure revision 7e6fb56f
17e6fb56fSmrg#! /bin/sh 27e6fb56fSmrg# Guess values for system-dependent variables and create Makefiles. 37e6fb56fSmrg# Generated by GNU Autoconf 2.63 for xf86-video-openchrome 0.2.904. 47e6fb56fSmrg# 57e6fb56fSmrg# Report bugs to <http://www.openchrome.org/trac/report/1>. 67e6fb56fSmrg# 77e6fb56fSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 87e6fb56fSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 97e6fb56fSmrg# This configure script is free software; the Free Software Foundation 107e6fb56fSmrg# gives unlimited permission to copy, distribute and modify it. 117e6fb56fSmrg## --------------------- ## 127e6fb56fSmrg## M4sh Initialization. ## 137e6fb56fSmrg## --------------------- ## 147e6fb56fSmrg 157e6fb56fSmrg# Be more Bourne compatible 167e6fb56fSmrgDUALCASE=1; export DUALCASE # for MKS sh 177e6fb56fSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 187e6fb56fSmrg emulate sh 197e6fb56fSmrg NULLCMD=: 207e6fb56fSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 217e6fb56fSmrg # is contrary to our usage. Disable this feature. 227e6fb56fSmrg alias -g '${1+"$@"}'='"$@"' 237e6fb56fSmrg setopt NO_GLOB_SUBST 247e6fb56fSmrgelse 257e6fb56fSmrg case `(set -o) 2>/dev/null` in 267e6fb56fSmrg *posix*) set -o posix ;; 277e6fb56fSmrgesac 287e6fb56fSmrg 297e6fb56fSmrgfi 307e6fb56fSmrg 317e6fb56fSmrg 327e6fb56fSmrg 337e6fb56fSmrg 347e6fb56fSmrg# PATH needs CR 357e6fb56fSmrg# Avoid depending upon Character Ranges. 367e6fb56fSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 377e6fb56fSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 387e6fb56fSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 397e6fb56fSmrgas_cr_digits='0123456789' 407e6fb56fSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 417e6fb56fSmrg 427e6fb56fSmrgas_nl=' 437e6fb56fSmrg' 447e6fb56fSmrgexport as_nl 457e6fb56fSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 467e6fb56fSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 477e6fb56fSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 487e6fb56fSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 497e6fb56fSmrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 507e6fb56fSmrg as_echo='printf %s\n' 517e6fb56fSmrg as_echo_n='printf %s' 527e6fb56fSmrgelse 537e6fb56fSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 547e6fb56fSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 557e6fb56fSmrg as_echo_n='/usr/ucb/echo -n' 567e6fb56fSmrg else 577e6fb56fSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 587e6fb56fSmrg as_echo_n_body='eval 597e6fb56fSmrg arg=$1; 607e6fb56fSmrg case $arg in 617e6fb56fSmrg *"$as_nl"*) 627e6fb56fSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 637e6fb56fSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 647e6fb56fSmrg esac; 657e6fb56fSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 667e6fb56fSmrg ' 677e6fb56fSmrg export as_echo_n_body 687e6fb56fSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 697e6fb56fSmrg fi 707e6fb56fSmrg export as_echo_body 717e6fb56fSmrg as_echo='sh -c $as_echo_body as_echo' 727e6fb56fSmrgfi 737e6fb56fSmrg 747e6fb56fSmrg# The user is always right. 757e6fb56fSmrgif test "${PATH_SEPARATOR+set}" != set; then 767e6fb56fSmrg PATH_SEPARATOR=: 777e6fb56fSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 787e6fb56fSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 797e6fb56fSmrg PATH_SEPARATOR=';' 807e6fb56fSmrg } 817e6fb56fSmrgfi 827e6fb56fSmrg 837e6fb56fSmrg# Support unset when possible. 847e6fb56fSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 857e6fb56fSmrg as_unset=unset 867e6fb56fSmrgelse 877e6fb56fSmrg as_unset=false 887e6fb56fSmrgfi 897e6fb56fSmrg 907e6fb56fSmrg 917e6fb56fSmrg# IFS 927e6fb56fSmrg# We need space, tab and new line, in precisely that order. Quoting is 937e6fb56fSmrg# there to prevent editors from complaining about space-tab. 947e6fb56fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 957e6fb56fSmrg# splitting by setting IFS to empty value.) 967e6fb56fSmrgIFS=" "" $as_nl" 977e6fb56fSmrg 987e6fb56fSmrg# Find who we are. Look in the path if we contain no directory separator. 997e6fb56fSmrgcase $0 in 1007e6fb56fSmrg *[\\/]* ) as_myself=$0 ;; 1017e6fb56fSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1027e6fb56fSmrgfor as_dir in $PATH 1037e6fb56fSmrgdo 1047e6fb56fSmrg IFS=$as_save_IFS 1057e6fb56fSmrg test -z "$as_dir" && as_dir=. 1067e6fb56fSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1077e6fb56fSmrgdone 1087e6fb56fSmrgIFS=$as_save_IFS 1097e6fb56fSmrg 1107e6fb56fSmrg ;; 1117e6fb56fSmrgesac 1127e6fb56fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1137e6fb56fSmrg# in which case we are not to be found in the path. 1147e6fb56fSmrgif test "x$as_myself" = x; then 1157e6fb56fSmrg as_myself=$0 1167e6fb56fSmrgfi 1177e6fb56fSmrgif test ! -f "$as_myself"; then 1187e6fb56fSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1197e6fb56fSmrg { (exit 1); exit 1; } 1207e6fb56fSmrgfi 1217e6fb56fSmrg 1227e6fb56fSmrg# Work around bugs in pre-3.0 UWIN ksh. 1237e6fb56fSmrgfor as_var in ENV MAIL MAILPATH 1247e6fb56fSmrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 1257e6fb56fSmrgdone 1267e6fb56fSmrgPS1='$ ' 1277e6fb56fSmrgPS2='> ' 1287e6fb56fSmrgPS4='+ ' 1297e6fb56fSmrg 1307e6fb56fSmrg# NLS nuisances. 1317e6fb56fSmrgLC_ALL=C 1327e6fb56fSmrgexport LC_ALL 1337e6fb56fSmrgLANGUAGE=C 1347e6fb56fSmrgexport LANGUAGE 1357e6fb56fSmrg 1367e6fb56fSmrg# Required to use basename. 1377e6fb56fSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 1387e6fb56fSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 1397e6fb56fSmrg as_expr=expr 1407e6fb56fSmrgelse 1417e6fb56fSmrg as_expr=false 1427e6fb56fSmrgfi 1437e6fb56fSmrg 1447e6fb56fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 1457e6fb56fSmrg as_basename=basename 1467e6fb56fSmrgelse 1477e6fb56fSmrg as_basename=false 1487e6fb56fSmrgfi 1497e6fb56fSmrg 1507e6fb56fSmrg 1517e6fb56fSmrg# Name of the executable. 1527e6fb56fSmrgas_me=`$as_basename -- "$0" || 1537e6fb56fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 1547e6fb56fSmrg X"$0" : 'X\(//\)$' \| \ 1557e6fb56fSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 1567e6fb56fSmrg$as_echo X/"$0" | 1577e6fb56fSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 1587e6fb56fSmrg s//\1/ 1597e6fb56fSmrg q 1607e6fb56fSmrg } 1617e6fb56fSmrg /^X\/\(\/\/\)$/{ 1627e6fb56fSmrg s//\1/ 1637e6fb56fSmrg q 1647e6fb56fSmrg } 1657e6fb56fSmrg /^X\/\(\/\).*/{ 1667e6fb56fSmrg s//\1/ 1677e6fb56fSmrg q 1687e6fb56fSmrg } 1697e6fb56fSmrg s/.*/./; q'` 1707e6fb56fSmrg 1717e6fb56fSmrg# CDPATH. 1727e6fb56fSmrg$as_unset CDPATH 1737e6fb56fSmrg 1747e6fb56fSmrg 1757e6fb56fSmrgif test "x$CONFIG_SHELL" = x; then 1767e6fb56fSmrg if (eval ":") 2>/dev/null; then 1777e6fb56fSmrg as_have_required=yes 1787e6fb56fSmrgelse 1797e6fb56fSmrg as_have_required=no 1807e6fb56fSmrgfi 1817e6fb56fSmrg 1827e6fb56fSmrg if test $as_have_required = yes && (eval ": 1837e6fb56fSmrg(as_func_return () { 1847e6fb56fSmrg (exit \$1) 1857e6fb56fSmrg} 1867e6fb56fSmrgas_func_success () { 1877e6fb56fSmrg as_func_return 0 1887e6fb56fSmrg} 1897e6fb56fSmrgas_func_failure () { 1907e6fb56fSmrg as_func_return 1 1917e6fb56fSmrg} 1927e6fb56fSmrgas_func_ret_success () { 1937e6fb56fSmrg return 0 1947e6fb56fSmrg} 1957e6fb56fSmrgas_func_ret_failure () { 1967e6fb56fSmrg return 1 1977e6fb56fSmrg} 1987e6fb56fSmrg 1997e6fb56fSmrgexitcode=0 2007e6fb56fSmrgif as_func_success; then 2017e6fb56fSmrg : 2027e6fb56fSmrgelse 2037e6fb56fSmrg exitcode=1 2047e6fb56fSmrg echo as_func_success failed. 2057e6fb56fSmrgfi 2067e6fb56fSmrg 2077e6fb56fSmrgif as_func_failure; then 2087e6fb56fSmrg exitcode=1 2097e6fb56fSmrg echo as_func_failure succeeded. 2107e6fb56fSmrgfi 2117e6fb56fSmrg 2127e6fb56fSmrgif as_func_ret_success; then 2137e6fb56fSmrg : 2147e6fb56fSmrgelse 2157e6fb56fSmrg exitcode=1 2167e6fb56fSmrg echo as_func_ret_success failed. 2177e6fb56fSmrgfi 2187e6fb56fSmrg 2197e6fb56fSmrgif as_func_ret_failure; then 2207e6fb56fSmrg exitcode=1 2217e6fb56fSmrg echo as_func_ret_failure succeeded. 2227e6fb56fSmrgfi 2237e6fb56fSmrg 2247e6fb56fSmrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 2257e6fb56fSmrg : 2267e6fb56fSmrgelse 2277e6fb56fSmrg exitcode=1 2287e6fb56fSmrg echo positional parameters were not saved. 2297e6fb56fSmrgfi 2307e6fb56fSmrg 2317e6fb56fSmrgtest \$exitcode = 0) || { (exit 1); exit 1; } 2327e6fb56fSmrg 2337e6fb56fSmrg( 2347e6fb56fSmrg as_lineno_1=\$LINENO 2357e6fb56fSmrg as_lineno_2=\$LINENO 2367e6fb56fSmrg test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 2377e6fb56fSmrg test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 2387e6fb56fSmrg") 2> /dev/null; then 2397e6fb56fSmrg : 2407e6fb56fSmrgelse 2417e6fb56fSmrg as_candidate_shells= 2427e6fb56fSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2437e6fb56fSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2447e6fb56fSmrgdo 2457e6fb56fSmrg IFS=$as_save_IFS 2467e6fb56fSmrg test -z "$as_dir" && as_dir=. 2477e6fb56fSmrg case $as_dir in 2487e6fb56fSmrg /*) 2497e6fb56fSmrg for as_base in sh bash ksh sh5; do 2507e6fb56fSmrg as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 2517e6fb56fSmrg done;; 2527e6fb56fSmrg esac 2537e6fb56fSmrgdone 2547e6fb56fSmrgIFS=$as_save_IFS 2557e6fb56fSmrg 2567e6fb56fSmrg 2577e6fb56fSmrg for as_shell in $as_candidate_shells $SHELL; do 2587e6fb56fSmrg # Try only shells that exist, to save several forks. 2597e6fb56fSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 2607e6fb56fSmrg { ("$as_shell") 2> /dev/null <<\_ASEOF 2617e6fb56fSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 2627e6fb56fSmrg emulate sh 2637e6fb56fSmrg NULLCMD=: 2647e6fb56fSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 2657e6fb56fSmrg # is contrary to our usage. Disable this feature. 2667e6fb56fSmrg alias -g '${1+"$@"}'='"$@"' 2677e6fb56fSmrg setopt NO_GLOB_SUBST 2687e6fb56fSmrgelse 2697e6fb56fSmrg case `(set -o) 2>/dev/null` in 2707e6fb56fSmrg *posix*) set -o posix ;; 2717e6fb56fSmrgesac 2727e6fb56fSmrg 2737e6fb56fSmrgfi 2747e6fb56fSmrg 2757e6fb56fSmrg 2767e6fb56fSmrg: 2777e6fb56fSmrg_ASEOF 2787e6fb56fSmrg}; then 2797e6fb56fSmrg CONFIG_SHELL=$as_shell 2807e6fb56fSmrg as_have_required=yes 2817e6fb56fSmrg if { "$as_shell" 2> /dev/null <<\_ASEOF 2827e6fb56fSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 2837e6fb56fSmrg emulate sh 2847e6fb56fSmrg NULLCMD=: 2857e6fb56fSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 2867e6fb56fSmrg # is contrary to our usage. Disable this feature. 2877e6fb56fSmrg alias -g '${1+"$@"}'='"$@"' 2887e6fb56fSmrg setopt NO_GLOB_SUBST 2897e6fb56fSmrgelse 2907e6fb56fSmrg case `(set -o) 2>/dev/null` in 2917e6fb56fSmrg *posix*) set -o posix ;; 2927e6fb56fSmrgesac 2937e6fb56fSmrg 2947e6fb56fSmrgfi 2957e6fb56fSmrg 2967e6fb56fSmrg 2977e6fb56fSmrg: 2987e6fb56fSmrg(as_func_return () { 2997e6fb56fSmrg (exit $1) 3007e6fb56fSmrg} 3017e6fb56fSmrgas_func_success () { 3027e6fb56fSmrg as_func_return 0 3037e6fb56fSmrg} 3047e6fb56fSmrgas_func_failure () { 3057e6fb56fSmrg as_func_return 1 3067e6fb56fSmrg} 3077e6fb56fSmrgas_func_ret_success () { 3087e6fb56fSmrg return 0 3097e6fb56fSmrg} 3107e6fb56fSmrgas_func_ret_failure () { 3117e6fb56fSmrg return 1 3127e6fb56fSmrg} 3137e6fb56fSmrg 3147e6fb56fSmrgexitcode=0 3157e6fb56fSmrgif as_func_success; then 3167e6fb56fSmrg : 3177e6fb56fSmrgelse 3187e6fb56fSmrg exitcode=1 3197e6fb56fSmrg echo as_func_success failed. 3207e6fb56fSmrgfi 3217e6fb56fSmrg 3227e6fb56fSmrgif as_func_failure; then 3237e6fb56fSmrg exitcode=1 3247e6fb56fSmrg echo as_func_failure succeeded. 3257e6fb56fSmrgfi 3267e6fb56fSmrg 3277e6fb56fSmrgif as_func_ret_success; then 3287e6fb56fSmrg : 3297e6fb56fSmrgelse 3307e6fb56fSmrg exitcode=1 3317e6fb56fSmrg echo as_func_ret_success failed. 3327e6fb56fSmrgfi 3337e6fb56fSmrg 3347e6fb56fSmrgif as_func_ret_failure; then 3357e6fb56fSmrg exitcode=1 3367e6fb56fSmrg echo as_func_ret_failure succeeded. 3377e6fb56fSmrgfi 3387e6fb56fSmrg 3397e6fb56fSmrgif ( set x; as_func_ret_success y && test x = "$1" ); then 3407e6fb56fSmrg : 3417e6fb56fSmrgelse 3427e6fb56fSmrg exitcode=1 3437e6fb56fSmrg echo positional parameters were not saved. 3447e6fb56fSmrgfi 3457e6fb56fSmrg 3467e6fb56fSmrgtest $exitcode = 0) || { (exit 1); exit 1; } 3477e6fb56fSmrg 3487e6fb56fSmrg( 3497e6fb56fSmrg as_lineno_1=$LINENO 3507e6fb56fSmrg as_lineno_2=$LINENO 3517e6fb56fSmrg test "x$as_lineno_1" != "x$as_lineno_2" && 3527e6fb56fSmrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 3537e6fb56fSmrg 3547e6fb56fSmrg_ASEOF 3557e6fb56fSmrg}; then 3567e6fb56fSmrg break 3577e6fb56fSmrgfi 3587e6fb56fSmrg 3597e6fb56fSmrgfi 3607e6fb56fSmrg 3617e6fb56fSmrg done 3627e6fb56fSmrg 3637e6fb56fSmrg if test "x$CONFIG_SHELL" != x; then 3647e6fb56fSmrg for as_var in BASH_ENV ENV 3657e6fb56fSmrg do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 3667e6fb56fSmrg done 3677e6fb56fSmrg export CONFIG_SHELL 3687e6fb56fSmrg exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 3697e6fb56fSmrgfi 3707e6fb56fSmrg 3717e6fb56fSmrg 3727e6fb56fSmrg if test $as_have_required = no; then 3737e6fb56fSmrg echo This script requires a shell more modern than all the 3747e6fb56fSmrg echo shells that I found on your system. Please install a 3757e6fb56fSmrg echo modern shell, or manually run the script under such a 3767e6fb56fSmrg echo shell if you do have one. 3777e6fb56fSmrg { (exit 1); exit 1; } 3787e6fb56fSmrgfi 3797e6fb56fSmrg 3807e6fb56fSmrg 3817e6fb56fSmrgfi 3827e6fb56fSmrg 3837e6fb56fSmrgfi 3847e6fb56fSmrg 3857e6fb56fSmrg 3867e6fb56fSmrg 3877e6fb56fSmrg(eval "as_func_return () { 3887e6fb56fSmrg (exit \$1) 3897e6fb56fSmrg} 3907e6fb56fSmrgas_func_success () { 3917e6fb56fSmrg as_func_return 0 3927e6fb56fSmrg} 3937e6fb56fSmrgas_func_failure () { 3947e6fb56fSmrg as_func_return 1 3957e6fb56fSmrg} 3967e6fb56fSmrgas_func_ret_success () { 3977e6fb56fSmrg return 0 3987e6fb56fSmrg} 3997e6fb56fSmrgas_func_ret_failure () { 4007e6fb56fSmrg return 1 4017e6fb56fSmrg} 4027e6fb56fSmrg 4037e6fb56fSmrgexitcode=0 4047e6fb56fSmrgif as_func_success; then 4057e6fb56fSmrg : 4067e6fb56fSmrgelse 4077e6fb56fSmrg exitcode=1 4087e6fb56fSmrg echo as_func_success failed. 4097e6fb56fSmrgfi 4107e6fb56fSmrg 4117e6fb56fSmrgif as_func_failure; then 4127e6fb56fSmrg exitcode=1 4137e6fb56fSmrg echo as_func_failure succeeded. 4147e6fb56fSmrgfi 4157e6fb56fSmrg 4167e6fb56fSmrgif as_func_ret_success; then 4177e6fb56fSmrg : 4187e6fb56fSmrgelse 4197e6fb56fSmrg exitcode=1 4207e6fb56fSmrg echo as_func_ret_success failed. 4217e6fb56fSmrgfi 4227e6fb56fSmrg 4237e6fb56fSmrgif as_func_ret_failure; then 4247e6fb56fSmrg exitcode=1 4257e6fb56fSmrg echo as_func_ret_failure succeeded. 4267e6fb56fSmrgfi 4277e6fb56fSmrg 4287e6fb56fSmrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 4297e6fb56fSmrg : 4307e6fb56fSmrgelse 4317e6fb56fSmrg exitcode=1 4327e6fb56fSmrg echo positional parameters were not saved. 4337e6fb56fSmrgfi 4347e6fb56fSmrg 4357e6fb56fSmrgtest \$exitcode = 0") || { 4367e6fb56fSmrg echo No shell found that supports shell functions. 4377e6fb56fSmrg echo Please tell bug-autoconf@gnu.org about your system, 4387e6fb56fSmrg echo including any error possibly output before this message. 4397e6fb56fSmrg echo This can help us improve future autoconf versions. 4407e6fb56fSmrg echo Configuration will now proceed without shell functions. 4417e6fb56fSmrg} 4427e6fb56fSmrg 4437e6fb56fSmrg 4447e6fb56fSmrg 4457e6fb56fSmrg as_lineno_1=$LINENO 4467e6fb56fSmrg as_lineno_2=$LINENO 4477e6fb56fSmrg test "x$as_lineno_1" != "x$as_lineno_2" && 4487e6fb56fSmrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 4497e6fb56fSmrg 4507e6fb56fSmrg # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 4517e6fb56fSmrg # uniformly replaced by the line number. The first 'sed' inserts a 4527e6fb56fSmrg # line-number line after each line using $LINENO; the second 'sed' 4537e6fb56fSmrg # does the real work. The second script uses 'N' to pair each 4547e6fb56fSmrg # line-number line with the line containing $LINENO, and appends 4557e6fb56fSmrg # trailing '-' during substitution so that $LINENO is not a special 4567e6fb56fSmrg # case at line end. 4577e6fb56fSmrg # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 4587e6fb56fSmrg # scripts with optimization help from Paolo Bonzini. Blame Lee 4597e6fb56fSmrg # E. McMahon (1931-1989) for sed's syntax. :-) 4607e6fb56fSmrg sed -n ' 4617e6fb56fSmrg p 4627e6fb56fSmrg /[$]LINENO/= 4637e6fb56fSmrg ' <$as_myself | 4647e6fb56fSmrg sed ' 4657e6fb56fSmrg s/[$]LINENO.*/&-/ 4667e6fb56fSmrg t lineno 4677e6fb56fSmrg b 4687e6fb56fSmrg :lineno 4697e6fb56fSmrg N 4707e6fb56fSmrg :loop 4717e6fb56fSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4727e6fb56fSmrg t loop 4737e6fb56fSmrg s/-\n.*// 4747e6fb56fSmrg ' >$as_me.lineno && 4757e6fb56fSmrg chmod +x "$as_me.lineno" || 4767e6fb56fSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 4777e6fb56fSmrg { (exit 1); exit 1; }; } 4787e6fb56fSmrg 4797e6fb56fSmrg # Don't try to exec as it changes $[0], causing all sort of problems 4807e6fb56fSmrg # (the dirname of $[0] is not the place where we might find the 4817e6fb56fSmrg # original and so on. Autoconf is especially sensitive to this). 4827e6fb56fSmrg . "./$as_me.lineno" 4837e6fb56fSmrg # Exit status is that of the last command. 4847e6fb56fSmrg exit 4857e6fb56fSmrg} 4867e6fb56fSmrg 4877e6fb56fSmrg 4887e6fb56fSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4897e6fb56fSmrg as_dirname=dirname 4907e6fb56fSmrgelse 4917e6fb56fSmrg as_dirname=false 4927e6fb56fSmrgfi 4937e6fb56fSmrg 4947e6fb56fSmrgECHO_C= ECHO_N= ECHO_T= 4957e6fb56fSmrgcase `echo -n x` in 4967e6fb56fSmrg-n*) 4977e6fb56fSmrg case `echo 'x\c'` in 4987e6fb56fSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4997e6fb56fSmrg *) ECHO_C='\c';; 5007e6fb56fSmrg esac;; 5017e6fb56fSmrg*) 5027e6fb56fSmrg ECHO_N='-n';; 5037e6fb56fSmrgesac 5047e6fb56fSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 5057e6fb56fSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 5067e6fb56fSmrg as_expr=expr 5077e6fb56fSmrgelse 5087e6fb56fSmrg as_expr=false 5097e6fb56fSmrgfi 5107e6fb56fSmrg 5117e6fb56fSmrgrm -f conf$$ conf$$.exe conf$$.file 5127e6fb56fSmrgif test -d conf$$.dir; then 5137e6fb56fSmrg rm -f conf$$.dir/conf$$.file 5147e6fb56fSmrgelse 5157e6fb56fSmrg rm -f conf$$.dir 5167e6fb56fSmrg mkdir conf$$.dir 2>/dev/null 5177e6fb56fSmrgfi 5187e6fb56fSmrgif (echo >conf$$.file) 2>/dev/null; then 5197e6fb56fSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5207e6fb56fSmrg as_ln_s='ln -s' 5217e6fb56fSmrg # ... but there are two gotchas: 5227e6fb56fSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5237e6fb56fSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5247e6fb56fSmrg # In both cases, we have to default to `cp -p'. 5257e6fb56fSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5267e6fb56fSmrg as_ln_s='cp -p' 5277e6fb56fSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 5287e6fb56fSmrg as_ln_s=ln 5297e6fb56fSmrg else 5307e6fb56fSmrg as_ln_s='cp -p' 5317e6fb56fSmrg fi 5327e6fb56fSmrgelse 5337e6fb56fSmrg as_ln_s='cp -p' 5347e6fb56fSmrgfi 5357e6fb56fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5367e6fb56fSmrgrmdir conf$$.dir 2>/dev/null 5377e6fb56fSmrg 5387e6fb56fSmrgif mkdir -p . 2>/dev/null; then 5397e6fb56fSmrg as_mkdir_p=: 5407e6fb56fSmrgelse 5417e6fb56fSmrg test -d ./-p && rmdir ./-p 5427e6fb56fSmrg as_mkdir_p=false 5437e6fb56fSmrgfi 5447e6fb56fSmrg 5457e6fb56fSmrgif test -x / >/dev/null 2>&1; then 5467e6fb56fSmrg as_test_x='test -x' 5477e6fb56fSmrgelse 5487e6fb56fSmrg if ls -dL / >/dev/null 2>&1; then 5497e6fb56fSmrg as_ls_L_option=L 5507e6fb56fSmrg else 5517e6fb56fSmrg as_ls_L_option= 5527e6fb56fSmrg fi 5537e6fb56fSmrg as_test_x=' 5547e6fb56fSmrg eval sh -c '\'' 5557e6fb56fSmrg if test -d "$1"; then 5567e6fb56fSmrg test -d "$1/."; 5577e6fb56fSmrg else 5587e6fb56fSmrg case $1 in 5597e6fb56fSmrg -*)set "./$1";; 5607e6fb56fSmrg esac; 5617e6fb56fSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 5627e6fb56fSmrg ???[sx]*):;;*)false;;esac;fi 5637e6fb56fSmrg '\'' sh 5647e6fb56fSmrg ' 5657e6fb56fSmrgfi 5667e6fb56fSmrgas_executable_p=$as_test_x 5677e6fb56fSmrg 5687e6fb56fSmrg# Sed expression to map a string onto a valid CPP name. 5697e6fb56fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5707e6fb56fSmrg 5717e6fb56fSmrg# Sed expression to map a string onto a valid variable name. 5727e6fb56fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5737e6fb56fSmrg 5747e6fb56fSmrg 5757e6fb56fSmrg 5767e6fb56fSmrg 5777e6fb56fSmrg# Check that we are running under the correct shell. 5787e6fb56fSmrgSHELL=${CONFIG_SHELL-/bin/sh} 5797e6fb56fSmrg 5807e6fb56fSmrgcase X$ECHO in 5817e6fb56fSmrgX*--fallback-echo) 5827e6fb56fSmrg # Remove one level of quotation (which was required for Make). 5837e6fb56fSmrg ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 5847e6fb56fSmrg ;; 5857e6fb56fSmrgesac 5867e6fb56fSmrg 5877e6fb56fSmrgecho=${ECHO-echo} 5887e6fb56fSmrgif test "X$1" = X--no-reexec; then 5897e6fb56fSmrg # Discard the --no-reexec flag, and continue. 5907e6fb56fSmrg shift 5917e6fb56fSmrgelif test "X$1" = X--fallback-echo; then 5927e6fb56fSmrg # Avoid inline document here, it may be left over 5937e6fb56fSmrg : 5947e6fb56fSmrgelif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 5957e6fb56fSmrg # Yippee, $echo works! 5967e6fb56fSmrg : 5977e6fb56fSmrgelse 5987e6fb56fSmrg # Restart under the correct shell. 5997e6fb56fSmrg exec $SHELL "$0" --no-reexec ${1+"$@"} 6007e6fb56fSmrgfi 6017e6fb56fSmrg 6027e6fb56fSmrgif test "X$1" = X--fallback-echo; then 6037e6fb56fSmrg # used as fallback echo 6047e6fb56fSmrg shift 6057e6fb56fSmrg cat <<EOF 6067e6fb56fSmrg$* 6077e6fb56fSmrgEOF 6087e6fb56fSmrg exit 0 6097e6fb56fSmrgfi 6107e6fb56fSmrg 6117e6fb56fSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 6127e6fb56fSmrg# if CDPATH is set. 6137e6fb56fSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 6147e6fb56fSmrg 6157e6fb56fSmrgif test -z "$ECHO"; then 6167e6fb56fSmrgif test "X${echo_test_string+set}" != Xset; then 6177e6fb56fSmrg# find a string as large as possible, as long as the shell can cope with it 6187e6fb56fSmrg for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 6197e6fb56fSmrg # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 6207e6fb56fSmrg if (echo_test_string=`eval $cmd`) 2>/dev/null && 6217e6fb56fSmrg echo_test_string=`eval $cmd` && 6227e6fb56fSmrg (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 6237e6fb56fSmrg then 6247e6fb56fSmrg break 6257e6fb56fSmrg fi 6267e6fb56fSmrg done 6277e6fb56fSmrgfi 6287e6fb56fSmrg 6297e6fb56fSmrgif test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 6307e6fb56fSmrg echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 6317e6fb56fSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 6327e6fb56fSmrg : 6337e6fb56fSmrgelse 6347e6fb56fSmrg # The Solaris, AIX, and Digital Unix default echo programs unquote 6357e6fb56fSmrg # backslashes. This makes it impossible to quote backslashes using 6367e6fb56fSmrg # echo "$something" | sed 's/\\/\\\\/g' 6377e6fb56fSmrg # 6387e6fb56fSmrg # So, first we look for a working echo in the user's PATH. 6397e6fb56fSmrg 6407e6fb56fSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6417e6fb56fSmrg for dir in $PATH /usr/ucb; do 6427e6fb56fSmrg IFS="$lt_save_ifs" 6437e6fb56fSmrg if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 6447e6fb56fSmrg test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 6457e6fb56fSmrg echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 6467e6fb56fSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 6477e6fb56fSmrg echo="$dir/echo" 6487e6fb56fSmrg break 6497e6fb56fSmrg fi 6507e6fb56fSmrg done 6517e6fb56fSmrg IFS="$lt_save_ifs" 6527e6fb56fSmrg 6537e6fb56fSmrg if test "X$echo" = Xecho; then 6547e6fb56fSmrg # We didn't find a better echo, so look for alternatives. 6557e6fb56fSmrg if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 6567e6fb56fSmrg echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 6577e6fb56fSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 6587e6fb56fSmrg # This shell has a builtin print -r that does the trick. 6597e6fb56fSmrg echo='print -r' 6607e6fb56fSmrg elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 6617e6fb56fSmrg test "X$CONFIG_SHELL" != X/bin/ksh; then 6627e6fb56fSmrg # If we have ksh, try running configure again with it. 6637e6fb56fSmrg ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 6647e6fb56fSmrg export ORIGINAL_CONFIG_SHELL 6657e6fb56fSmrg CONFIG_SHELL=/bin/ksh 6667e6fb56fSmrg export CONFIG_SHELL 6677e6fb56fSmrg exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 6687e6fb56fSmrg else 6697e6fb56fSmrg # Try using printf. 6707e6fb56fSmrg echo='printf %s\n' 6717e6fb56fSmrg if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 6727e6fb56fSmrg echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 6737e6fb56fSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 6747e6fb56fSmrg # Cool, printf works 6757e6fb56fSmrg : 6767e6fb56fSmrg elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 6777e6fb56fSmrg test "X$echo_testing_string" = 'X\t' && 6787e6fb56fSmrg echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 6797e6fb56fSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 6807e6fb56fSmrg CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 6817e6fb56fSmrg export CONFIG_SHELL 6827e6fb56fSmrg SHELL="$CONFIG_SHELL" 6837e6fb56fSmrg export SHELL 6847e6fb56fSmrg echo="$CONFIG_SHELL $0 --fallback-echo" 6857e6fb56fSmrg elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 6867e6fb56fSmrg test "X$echo_testing_string" = 'X\t' && 6877e6fb56fSmrg echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 6887e6fb56fSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 6897e6fb56fSmrg echo="$CONFIG_SHELL $0 --fallback-echo" 6907e6fb56fSmrg else 6917e6fb56fSmrg # maybe with a smaller string... 6927e6fb56fSmrg prev=: 6937e6fb56fSmrg 6947e6fb56fSmrg for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 6957e6fb56fSmrg if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 6967e6fb56fSmrg then 6977e6fb56fSmrg break 6987e6fb56fSmrg fi 6997e6fb56fSmrg prev="$cmd" 7007e6fb56fSmrg done 7017e6fb56fSmrg 7027e6fb56fSmrg if test "$prev" != 'sed 50q "$0"'; then 7037e6fb56fSmrg echo_test_string=`eval $prev` 7047e6fb56fSmrg export echo_test_string 7057e6fb56fSmrg exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 7067e6fb56fSmrg else 7077e6fb56fSmrg # Oops. We lost completely, so just stick with echo. 7087e6fb56fSmrg echo=echo 7097e6fb56fSmrg fi 7107e6fb56fSmrg fi 7117e6fb56fSmrg fi 7127e6fb56fSmrg fi 7137e6fb56fSmrgfi 7147e6fb56fSmrgfi 7157e6fb56fSmrg 7167e6fb56fSmrg# Copy echo and quote the copy suitably for passing to libtool from 7177e6fb56fSmrg# the Makefile, instead of quoting the original, which is used later. 7187e6fb56fSmrgECHO=$echo 7197e6fb56fSmrgif test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 7207e6fb56fSmrg ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 7217e6fb56fSmrgfi 7227e6fb56fSmrg 7237e6fb56fSmrg 7247e6fb56fSmrg 7257e6fb56fSmrg 7267e6fb56fSmrgtagnames=${tagnames+${tagnames},}CXX 7277e6fb56fSmrg 7287e6fb56fSmrgtagnames=${tagnames+${tagnames},}F77 7297e6fb56fSmrg 7307e6fb56fSmrgexec 7<&0 </dev/null 6>&1 7317e6fb56fSmrg 7327e6fb56fSmrg# Name of the host. 7337e6fb56fSmrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 7347e6fb56fSmrg# so uname gets run too. 7357e6fb56fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 7367e6fb56fSmrg 7377e6fb56fSmrg# 7387e6fb56fSmrg# Initializations. 7397e6fb56fSmrg# 7407e6fb56fSmrgac_default_prefix=/usr/local 7417e6fb56fSmrgac_clean_files= 7427e6fb56fSmrgac_config_libobj_dir=. 7437e6fb56fSmrgLIBOBJS= 7447e6fb56fSmrgcross_compiling=no 7457e6fb56fSmrgsubdirs= 7467e6fb56fSmrgMFLAGS= 7477e6fb56fSmrgMAKEFLAGS= 7487e6fb56fSmrgSHELL=${CONFIG_SHELL-/bin/sh} 7497e6fb56fSmrg 7507e6fb56fSmrg# Identity of this package. 7517e6fb56fSmrgPACKAGE_NAME='xf86-video-openchrome' 7527e6fb56fSmrgPACKAGE_TARNAME='xf86-video-openchrome' 7537e6fb56fSmrgPACKAGE_VERSION='0.2.904' 7547e6fb56fSmrgPACKAGE_STRING='xf86-video-openchrome 0.2.904' 7557e6fb56fSmrgPACKAGE_BUGREPORT='http://www.openchrome.org/trac/report/1' 7567e6fb56fSmrg 7577e6fb56fSmrgac_unique_file="Makefile.am" 7587e6fb56fSmrg# Factoring default headers for most tests. 7597e6fb56fSmrgac_includes_default="\ 7607e6fb56fSmrg#include <stdio.h> 7617e6fb56fSmrg#ifdef HAVE_SYS_TYPES_H 7627e6fb56fSmrg# include <sys/types.h> 7637e6fb56fSmrg#endif 7647e6fb56fSmrg#ifdef HAVE_SYS_STAT_H 7657e6fb56fSmrg# include <sys/stat.h> 7667e6fb56fSmrg#endif 7677e6fb56fSmrg#ifdef STDC_HEADERS 7687e6fb56fSmrg# include <stdlib.h> 7697e6fb56fSmrg# include <stddef.h> 7707e6fb56fSmrg#else 7717e6fb56fSmrg# ifdef HAVE_STDLIB_H 7727e6fb56fSmrg# include <stdlib.h> 7737e6fb56fSmrg# endif 7747e6fb56fSmrg#endif 7757e6fb56fSmrg#ifdef HAVE_STRING_H 7767e6fb56fSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 7777e6fb56fSmrg# include <memory.h> 7787e6fb56fSmrg# endif 7797e6fb56fSmrg# include <string.h> 7807e6fb56fSmrg#endif 7817e6fb56fSmrg#ifdef HAVE_STRINGS_H 7827e6fb56fSmrg# include <strings.h> 7837e6fb56fSmrg#endif 7847e6fb56fSmrg#ifdef HAVE_INTTYPES_H 7857e6fb56fSmrg# include <inttypes.h> 7867e6fb56fSmrg#endif 7877e6fb56fSmrg#ifdef HAVE_STDINT_H 7887e6fb56fSmrg# include <stdint.h> 7897e6fb56fSmrg#endif 7907e6fb56fSmrg#ifdef HAVE_UNISTD_H 7917e6fb56fSmrg# include <unistd.h> 7927e6fb56fSmrg#endif" 7937e6fb56fSmrg 7947e6fb56fSmrgac_subst_vars='am__EXEEXT_FALSE 7957e6fb56fSmrgam__EXEEXT_TRUE 7967e6fb56fSmrgLTLIBOBJS 7977e6fb56fSmrgLIBOBJS 7987e6fb56fSmrgDRIVER_MAN_SUFFIX 7997e6fb56fSmrgDRIVER_NAME 8007e6fb56fSmrgmoduledir 8017e6fb56fSmrgXV_DEBUG_FALSE 8027e6fb56fSmrgXV_DEBUG_TRUE 8037e6fb56fSmrgDEBUG_FALSE 8047e6fb56fSmrgDEBUG_TRUE 8057e6fb56fSmrgXSERVER_LIBPCIACCESS_FALSE 8067e6fb56fSmrgXSERVER_LIBPCIACCESS_TRUE 8077e6fb56fSmrgXVMC_FALSE 8087e6fb56fSmrgXVMC_TRUE 8097e6fb56fSmrgXVMC_LIBS 8107e6fb56fSmrgXVMC_CFLAGS 8117e6fb56fSmrgDRI_LIBS 8127e6fb56fSmrgDRI_CFLAGS 8137e6fb56fSmrgDRI_FALSE 8147e6fb56fSmrgDRI_TRUE 8157e6fb56fSmrgPCIACCESS_LIBS 8167e6fb56fSmrgPCIACCESS_CFLAGS 8177e6fb56fSmrgHAVE_XEXTPROTO_71_FALSE 8187e6fb56fSmrgHAVE_XEXTPROTO_71_TRUE 8197e6fb56fSmrgXEXT_LIBS 8207e6fb56fSmrgXEXT_CFLAGS 8217e6fb56fSmrgXORG_LIBS 8227e6fb56fSmrgXORG_CFLAGS 8237e6fb56fSmrgPKG_CONFIG 8247e6fb56fSmrgLIBTOOL 8257e6fb56fSmrgac_ct_F77 8267e6fb56fSmrgFFLAGS 8277e6fb56fSmrgF77 8287e6fb56fSmrgCXXCPP 8297e6fb56fSmrgam__fastdepCXX_FALSE 8307e6fb56fSmrgam__fastdepCXX_TRUE 8317e6fb56fSmrgCXXDEPMODE 8327e6fb56fSmrgac_ct_CXX 8337e6fb56fSmrgCXXFLAGS 8347e6fb56fSmrgCXX 8357e6fb56fSmrgCPP 8367e6fb56fSmrgNMEDIT 8377e6fb56fSmrgDSYMUTIL 8387e6fb56fSmrgRANLIB 8397e6fb56fSmrgAR 8407e6fb56fSmrgECHO 8417e6fb56fSmrgLN_S 8427e6fb56fSmrgEGREP 8437e6fb56fSmrgGREP 8447e6fb56fSmrgSED 8457e6fb56fSmrgam__fastdepCC_FALSE 8467e6fb56fSmrgam__fastdepCC_TRUE 8477e6fb56fSmrgCCDEPMODE 8487e6fb56fSmrgAMDEPBACKSLASH 8497e6fb56fSmrgAMDEP_FALSE 8507e6fb56fSmrgAMDEP_TRUE 8517e6fb56fSmrgam__quote 8527e6fb56fSmrgam__include 8537e6fb56fSmrgDEPDIR 8547e6fb56fSmrgOBJEXT 8557e6fb56fSmrgEXEEXT 8567e6fb56fSmrgac_ct_CC 8577e6fb56fSmrgCPPFLAGS 8587e6fb56fSmrgLDFLAGS 8597e6fb56fSmrgCFLAGS 8607e6fb56fSmrgCC 8617e6fb56fSmrghost_os 8627e6fb56fSmrghost_vendor 8637e6fb56fSmrghost_cpu 8647e6fb56fSmrghost 8657e6fb56fSmrgbuild_os 8667e6fb56fSmrgbuild_vendor 8677e6fb56fSmrgbuild_cpu 8687e6fb56fSmrgbuild 8697e6fb56fSmrgMAINT 8707e6fb56fSmrgMAINTAINER_MODE_FALSE 8717e6fb56fSmrgMAINTAINER_MODE_TRUE 8727e6fb56fSmrgam__untar 8737e6fb56fSmrgam__tar 8747e6fb56fSmrgAMTAR 8757e6fb56fSmrgam__leading_dot 8767e6fb56fSmrgSET_MAKE 8777e6fb56fSmrgAWK 8787e6fb56fSmrgmkdir_p 8797e6fb56fSmrgMKDIR_P 8807e6fb56fSmrgINSTALL_STRIP_PROGRAM 8817e6fb56fSmrgSTRIP 8827e6fb56fSmrginstall_sh 8837e6fb56fSmrgMAKEINFO 8847e6fb56fSmrgAUTOHEADER 8857e6fb56fSmrgAUTOMAKE 8867e6fb56fSmrgAUTOCONF 8877e6fb56fSmrgACLOCAL 8887e6fb56fSmrgVERSION 8897e6fb56fSmrgPACKAGE 8907e6fb56fSmrgCYGPATH_W 8917e6fb56fSmrgam__isrc 8927e6fb56fSmrgINSTALL_DATA 8937e6fb56fSmrgINSTALL_SCRIPT 8947e6fb56fSmrgINSTALL_PROGRAM 8957e6fb56fSmrgtarget_alias 8967e6fb56fSmrghost_alias 8977e6fb56fSmrgbuild_alias 8987e6fb56fSmrgLIBS 8997e6fb56fSmrgECHO_T 9007e6fb56fSmrgECHO_N 9017e6fb56fSmrgECHO_C 9027e6fb56fSmrgDEFS 9037e6fb56fSmrgmandir 9047e6fb56fSmrglocaledir 9057e6fb56fSmrglibdir 9067e6fb56fSmrgpsdir 9077e6fb56fSmrgpdfdir 9087e6fb56fSmrgdvidir 9097e6fb56fSmrghtmldir 9107e6fb56fSmrginfodir 9117e6fb56fSmrgdocdir 9127e6fb56fSmrgoldincludedir 9137e6fb56fSmrgincludedir 9147e6fb56fSmrglocalstatedir 9157e6fb56fSmrgsharedstatedir 9167e6fb56fSmrgsysconfdir 9177e6fb56fSmrgdatadir 9187e6fb56fSmrgdatarootdir 9197e6fb56fSmrglibexecdir 9207e6fb56fSmrgsbindir 9217e6fb56fSmrgbindir 9227e6fb56fSmrgprogram_transform_name 9237e6fb56fSmrgprefix 9247e6fb56fSmrgexec_prefix 9257e6fb56fSmrgPACKAGE_BUGREPORT 9267e6fb56fSmrgPACKAGE_STRING 9277e6fb56fSmrgPACKAGE_VERSION 9287e6fb56fSmrgPACKAGE_TARNAME 9297e6fb56fSmrgPACKAGE_NAME 9307e6fb56fSmrgPATH_SEPARATOR 9317e6fb56fSmrgSHELL' 9327e6fb56fSmrgac_subst_files='' 9337e6fb56fSmrgac_user_opts=' 9347e6fb56fSmrgenable_option_checking 9357e6fb56fSmrgenable_maintainer_mode 9367e6fb56fSmrgenable_static 9377e6fb56fSmrgenable_shared 9387e6fb56fSmrgenable_fast_install 9397e6fb56fSmrgenable_dependency_tracking 9407e6fb56fSmrgwith_gnu_ld 9417e6fb56fSmrgenable_libtool_lock 9427e6fb56fSmrgwith_pic 9437e6fb56fSmrgwith_tags 9447e6fb56fSmrgwith_xorg_module_dir 9457e6fb56fSmrgenable_dri 9467e6fb56fSmrgenable_debug 9477e6fb56fSmrgenable_xv_debug 9487e6fb56fSmrgwith_release_version 9497e6fb56fSmrg' 9507e6fb56fSmrg ac_precious_vars='build_alias 9517e6fb56fSmrghost_alias 9527e6fb56fSmrgtarget_alias 9537e6fb56fSmrgCC 9547e6fb56fSmrgCFLAGS 9557e6fb56fSmrgLDFLAGS 9567e6fb56fSmrgLIBS 9577e6fb56fSmrgCPPFLAGS 9587e6fb56fSmrgCPP 9597e6fb56fSmrgCXX 9607e6fb56fSmrgCXXFLAGS 9617e6fb56fSmrgCCC 9627e6fb56fSmrgCXXCPP 9637e6fb56fSmrgF77 9647e6fb56fSmrgFFLAGS 9657e6fb56fSmrgPKG_CONFIG 9667e6fb56fSmrgXORG_CFLAGS 9677e6fb56fSmrgXORG_LIBS 9687e6fb56fSmrgXEXT_CFLAGS 9697e6fb56fSmrgXEXT_LIBS 9707e6fb56fSmrgPCIACCESS_CFLAGS 9717e6fb56fSmrgPCIACCESS_LIBS 9727e6fb56fSmrgDRI_CFLAGS 9737e6fb56fSmrgDRI_LIBS 9747e6fb56fSmrgXVMC_CFLAGS 9757e6fb56fSmrgXVMC_LIBS' 9767e6fb56fSmrg 9777e6fb56fSmrg 9787e6fb56fSmrg# Initialize some variables set by options. 9797e6fb56fSmrgac_init_help= 9807e6fb56fSmrgac_init_version=false 9817e6fb56fSmrgac_unrecognized_opts= 9827e6fb56fSmrgac_unrecognized_sep= 9837e6fb56fSmrg# The variables have the same names as the options, with 9847e6fb56fSmrg# dashes changed to underlines. 9857e6fb56fSmrgcache_file=/dev/null 9867e6fb56fSmrgexec_prefix=NONE 9877e6fb56fSmrgno_create= 9887e6fb56fSmrgno_recursion= 9897e6fb56fSmrgprefix=NONE 9907e6fb56fSmrgprogram_prefix=NONE 9917e6fb56fSmrgprogram_suffix=NONE 9927e6fb56fSmrgprogram_transform_name=s,x,x, 9937e6fb56fSmrgsilent= 9947e6fb56fSmrgsite= 9957e6fb56fSmrgsrcdir= 9967e6fb56fSmrgverbose= 9977e6fb56fSmrgx_includes=NONE 9987e6fb56fSmrgx_libraries=NONE 9997e6fb56fSmrg 10007e6fb56fSmrg# Installation directory options. 10017e6fb56fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 10027e6fb56fSmrg# and all the variables that are supposed to be based on exec_prefix 10037e6fb56fSmrg# by default will actually change. 10047e6fb56fSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 10057e6fb56fSmrg# (The list follows the same order as the GNU Coding Standards.) 10067e6fb56fSmrgbindir='${exec_prefix}/bin' 10077e6fb56fSmrgsbindir='${exec_prefix}/sbin' 10087e6fb56fSmrglibexecdir='${exec_prefix}/libexec' 10097e6fb56fSmrgdatarootdir='${prefix}/share' 10107e6fb56fSmrgdatadir='${datarootdir}' 10117e6fb56fSmrgsysconfdir='${prefix}/etc' 10127e6fb56fSmrgsharedstatedir='${prefix}/com' 10137e6fb56fSmrglocalstatedir='${prefix}/var' 10147e6fb56fSmrgincludedir='${prefix}/include' 10157e6fb56fSmrgoldincludedir='/usr/include' 10167e6fb56fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 10177e6fb56fSmrginfodir='${datarootdir}/info' 10187e6fb56fSmrghtmldir='${docdir}' 10197e6fb56fSmrgdvidir='${docdir}' 10207e6fb56fSmrgpdfdir='${docdir}' 10217e6fb56fSmrgpsdir='${docdir}' 10227e6fb56fSmrglibdir='${exec_prefix}/lib' 10237e6fb56fSmrglocaledir='${datarootdir}/locale' 10247e6fb56fSmrgmandir='${datarootdir}/man' 10257e6fb56fSmrg 10267e6fb56fSmrgac_prev= 10277e6fb56fSmrgac_dashdash= 10287e6fb56fSmrgfor ac_option 10297e6fb56fSmrgdo 10307e6fb56fSmrg # If the previous option needs an argument, assign it. 10317e6fb56fSmrg if test -n "$ac_prev"; then 10327e6fb56fSmrg eval $ac_prev=\$ac_option 10337e6fb56fSmrg ac_prev= 10347e6fb56fSmrg continue 10357e6fb56fSmrg fi 10367e6fb56fSmrg 10377e6fb56fSmrg case $ac_option in 10387e6fb56fSmrg *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 10397e6fb56fSmrg *) ac_optarg=yes ;; 10407e6fb56fSmrg esac 10417e6fb56fSmrg 10427e6fb56fSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 10437e6fb56fSmrg 10447e6fb56fSmrg case $ac_dashdash$ac_option in 10457e6fb56fSmrg --) 10467e6fb56fSmrg ac_dashdash=yes ;; 10477e6fb56fSmrg 10487e6fb56fSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 10497e6fb56fSmrg ac_prev=bindir ;; 10507e6fb56fSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 10517e6fb56fSmrg bindir=$ac_optarg ;; 10527e6fb56fSmrg 10537e6fb56fSmrg -build | --build | --buil | --bui | --bu) 10547e6fb56fSmrg ac_prev=build_alias ;; 10557e6fb56fSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 10567e6fb56fSmrg build_alias=$ac_optarg ;; 10577e6fb56fSmrg 10587e6fb56fSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 10597e6fb56fSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 10607e6fb56fSmrg ac_prev=cache_file ;; 10617e6fb56fSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 10627e6fb56fSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 10637e6fb56fSmrg cache_file=$ac_optarg ;; 10647e6fb56fSmrg 10657e6fb56fSmrg --config-cache | -C) 10667e6fb56fSmrg cache_file=config.cache ;; 10677e6fb56fSmrg 10687e6fb56fSmrg -datadir | --datadir | --datadi | --datad) 10697e6fb56fSmrg ac_prev=datadir ;; 10707e6fb56fSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 10717e6fb56fSmrg datadir=$ac_optarg ;; 10727e6fb56fSmrg 10737e6fb56fSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 10747e6fb56fSmrg | --dataroo | --dataro | --datar) 10757e6fb56fSmrg ac_prev=datarootdir ;; 10767e6fb56fSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 10777e6fb56fSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 10787e6fb56fSmrg datarootdir=$ac_optarg ;; 10797e6fb56fSmrg 10807e6fb56fSmrg -disable-* | --disable-*) 10817e6fb56fSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 10827e6fb56fSmrg # Reject names that are not valid shell variable names. 10837e6fb56fSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 10847e6fb56fSmrg { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 10857e6fb56fSmrg { (exit 1); exit 1; }; } 10867e6fb56fSmrg ac_useropt_orig=$ac_useropt 10877e6fb56fSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 10887e6fb56fSmrg case $ac_user_opts in 10897e6fb56fSmrg *" 10907e6fb56fSmrg"enable_$ac_useropt" 10917e6fb56fSmrg"*) ;; 10927e6fb56fSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 10937e6fb56fSmrg ac_unrecognized_sep=', ';; 10947e6fb56fSmrg esac 10957e6fb56fSmrg eval enable_$ac_useropt=no ;; 10967e6fb56fSmrg 10977e6fb56fSmrg -docdir | --docdir | --docdi | --doc | --do) 10987e6fb56fSmrg ac_prev=docdir ;; 10997e6fb56fSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 11007e6fb56fSmrg docdir=$ac_optarg ;; 11017e6fb56fSmrg 11027e6fb56fSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 11037e6fb56fSmrg ac_prev=dvidir ;; 11047e6fb56fSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 11057e6fb56fSmrg dvidir=$ac_optarg ;; 11067e6fb56fSmrg 11077e6fb56fSmrg -enable-* | --enable-*) 11087e6fb56fSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 11097e6fb56fSmrg # Reject names that are not valid shell variable names. 11107e6fb56fSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11117e6fb56fSmrg { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 11127e6fb56fSmrg { (exit 1); exit 1; }; } 11137e6fb56fSmrg ac_useropt_orig=$ac_useropt 11147e6fb56fSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 11157e6fb56fSmrg case $ac_user_opts in 11167e6fb56fSmrg *" 11177e6fb56fSmrg"enable_$ac_useropt" 11187e6fb56fSmrg"*) ;; 11197e6fb56fSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 11207e6fb56fSmrg ac_unrecognized_sep=', ';; 11217e6fb56fSmrg esac 11227e6fb56fSmrg eval enable_$ac_useropt=\$ac_optarg ;; 11237e6fb56fSmrg 11247e6fb56fSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 11257e6fb56fSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 11267e6fb56fSmrg | --exec | --exe | --ex) 11277e6fb56fSmrg ac_prev=exec_prefix ;; 11287e6fb56fSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 11297e6fb56fSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 11307e6fb56fSmrg | --exec=* | --exe=* | --ex=*) 11317e6fb56fSmrg exec_prefix=$ac_optarg ;; 11327e6fb56fSmrg 11337e6fb56fSmrg -gas | --gas | --ga | --g) 11347e6fb56fSmrg # Obsolete; use --with-gas. 11357e6fb56fSmrg with_gas=yes ;; 11367e6fb56fSmrg 11377e6fb56fSmrg -help | --help | --hel | --he | -h) 11387e6fb56fSmrg ac_init_help=long ;; 11397e6fb56fSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 11407e6fb56fSmrg ac_init_help=recursive ;; 11417e6fb56fSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 11427e6fb56fSmrg ac_init_help=short ;; 11437e6fb56fSmrg 11447e6fb56fSmrg -host | --host | --hos | --ho) 11457e6fb56fSmrg ac_prev=host_alias ;; 11467e6fb56fSmrg -host=* | --host=* | --hos=* | --ho=*) 11477e6fb56fSmrg host_alias=$ac_optarg ;; 11487e6fb56fSmrg 11497e6fb56fSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 11507e6fb56fSmrg ac_prev=htmldir ;; 11517e6fb56fSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 11527e6fb56fSmrg | --ht=*) 11537e6fb56fSmrg htmldir=$ac_optarg ;; 11547e6fb56fSmrg 11557e6fb56fSmrg -includedir | --includedir | --includedi | --included | --include \ 11567e6fb56fSmrg | --includ | --inclu | --incl | --inc) 11577e6fb56fSmrg ac_prev=includedir ;; 11587e6fb56fSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 11597e6fb56fSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 11607e6fb56fSmrg includedir=$ac_optarg ;; 11617e6fb56fSmrg 11627e6fb56fSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 11637e6fb56fSmrg ac_prev=infodir ;; 11647e6fb56fSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 11657e6fb56fSmrg infodir=$ac_optarg ;; 11667e6fb56fSmrg 11677e6fb56fSmrg -libdir | --libdir | --libdi | --libd) 11687e6fb56fSmrg ac_prev=libdir ;; 11697e6fb56fSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 11707e6fb56fSmrg libdir=$ac_optarg ;; 11717e6fb56fSmrg 11727e6fb56fSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 11737e6fb56fSmrg | --libexe | --libex | --libe) 11747e6fb56fSmrg ac_prev=libexecdir ;; 11757e6fb56fSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 11767e6fb56fSmrg | --libexe=* | --libex=* | --libe=*) 11777e6fb56fSmrg libexecdir=$ac_optarg ;; 11787e6fb56fSmrg 11797e6fb56fSmrg -localedir | --localedir | --localedi | --localed | --locale) 11807e6fb56fSmrg ac_prev=localedir ;; 11817e6fb56fSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 11827e6fb56fSmrg localedir=$ac_optarg ;; 11837e6fb56fSmrg 11847e6fb56fSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 11857e6fb56fSmrg | --localstate | --localstat | --localsta | --localst | --locals) 11867e6fb56fSmrg ac_prev=localstatedir ;; 11877e6fb56fSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 11887e6fb56fSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 11897e6fb56fSmrg localstatedir=$ac_optarg ;; 11907e6fb56fSmrg 11917e6fb56fSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 11927e6fb56fSmrg ac_prev=mandir ;; 11937e6fb56fSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 11947e6fb56fSmrg mandir=$ac_optarg ;; 11957e6fb56fSmrg 11967e6fb56fSmrg -nfp | --nfp | --nf) 11977e6fb56fSmrg # Obsolete; use --without-fp. 11987e6fb56fSmrg with_fp=no ;; 11997e6fb56fSmrg 12007e6fb56fSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 12017e6fb56fSmrg | --no-cr | --no-c | -n) 12027e6fb56fSmrg no_create=yes ;; 12037e6fb56fSmrg 12047e6fb56fSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 12057e6fb56fSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 12067e6fb56fSmrg no_recursion=yes ;; 12077e6fb56fSmrg 12087e6fb56fSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 12097e6fb56fSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 12107e6fb56fSmrg | --oldin | --oldi | --old | --ol | --o) 12117e6fb56fSmrg ac_prev=oldincludedir ;; 12127e6fb56fSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 12137e6fb56fSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 12147e6fb56fSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 12157e6fb56fSmrg oldincludedir=$ac_optarg ;; 12167e6fb56fSmrg 12177e6fb56fSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 12187e6fb56fSmrg ac_prev=prefix ;; 12197e6fb56fSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 12207e6fb56fSmrg prefix=$ac_optarg ;; 12217e6fb56fSmrg 12227e6fb56fSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 12237e6fb56fSmrg | --program-pre | --program-pr | --program-p) 12247e6fb56fSmrg ac_prev=program_prefix ;; 12257e6fb56fSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 12267e6fb56fSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 12277e6fb56fSmrg program_prefix=$ac_optarg ;; 12287e6fb56fSmrg 12297e6fb56fSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 12307e6fb56fSmrg | --program-suf | --program-su | --program-s) 12317e6fb56fSmrg ac_prev=program_suffix ;; 12327e6fb56fSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 12337e6fb56fSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 12347e6fb56fSmrg program_suffix=$ac_optarg ;; 12357e6fb56fSmrg 12367e6fb56fSmrg -program-transform-name | --program-transform-name \ 12377e6fb56fSmrg | --program-transform-nam | --program-transform-na \ 12387e6fb56fSmrg | --program-transform-n | --program-transform- \ 12397e6fb56fSmrg | --program-transform | --program-transfor \ 12407e6fb56fSmrg | --program-transfo | --program-transf \ 12417e6fb56fSmrg | --program-trans | --program-tran \ 12427e6fb56fSmrg | --progr-tra | --program-tr | --program-t) 12437e6fb56fSmrg ac_prev=program_transform_name ;; 12447e6fb56fSmrg -program-transform-name=* | --program-transform-name=* \ 12457e6fb56fSmrg | --program-transform-nam=* | --program-transform-na=* \ 12467e6fb56fSmrg | --program-transform-n=* | --program-transform-=* \ 12477e6fb56fSmrg | --program-transform=* | --program-transfor=* \ 12487e6fb56fSmrg | --program-transfo=* | --program-transf=* \ 12497e6fb56fSmrg | --program-trans=* | --program-tran=* \ 12507e6fb56fSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 12517e6fb56fSmrg program_transform_name=$ac_optarg ;; 12527e6fb56fSmrg 12537e6fb56fSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 12547e6fb56fSmrg ac_prev=pdfdir ;; 12557e6fb56fSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 12567e6fb56fSmrg pdfdir=$ac_optarg ;; 12577e6fb56fSmrg 12587e6fb56fSmrg -psdir | --psdir | --psdi | --psd | --ps) 12597e6fb56fSmrg ac_prev=psdir ;; 12607e6fb56fSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 12617e6fb56fSmrg psdir=$ac_optarg ;; 12627e6fb56fSmrg 12637e6fb56fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12647e6fb56fSmrg | -silent | --silent | --silen | --sile | --sil) 12657e6fb56fSmrg silent=yes ;; 12667e6fb56fSmrg 12677e6fb56fSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 12687e6fb56fSmrg ac_prev=sbindir ;; 12697e6fb56fSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 12707e6fb56fSmrg | --sbi=* | --sb=*) 12717e6fb56fSmrg sbindir=$ac_optarg ;; 12727e6fb56fSmrg 12737e6fb56fSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 12747e6fb56fSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 12757e6fb56fSmrg | --sharedst | --shareds | --shared | --share | --shar \ 12767e6fb56fSmrg | --sha | --sh) 12777e6fb56fSmrg ac_prev=sharedstatedir ;; 12787e6fb56fSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 12797e6fb56fSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 12807e6fb56fSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 12817e6fb56fSmrg | --sha=* | --sh=*) 12827e6fb56fSmrg sharedstatedir=$ac_optarg ;; 12837e6fb56fSmrg 12847e6fb56fSmrg -site | --site | --sit) 12857e6fb56fSmrg ac_prev=site ;; 12867e6fb56fSmrg -site=* | --site=* | --sit=*) 12877e6fb56fSmrg site=$ac_optarg ;; 12887e6fb56fSmrg 12897e6fb56fSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 12907e6fb56fSmrg ac_prev=srcdir ;; 12917e6fb56fSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 12927e6fb56fSmrg srcdir=$ac_optarg ;; 12937e6fb56fSmrg 12947e6fb56fSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 12957e6fb56fSmrg | --syscon | --sysco | --sysc | --sys | --sy) 12967e6fb56fSmrg ac_prev=sysconfdir ;; 12977e6fb56fSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 12987e6fb56fSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 12997e6fb56fSmrg sysconfdir=$ac_optarg ;; 13007e6fb56fSmrg 13017e6fb56fSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 13027e6fb56fSmrg ac_prev=target_alias ;; 13037e6fb56fSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 13047e6fb56fSmrg target_alias=$ac_optarg ;; 13057e6fb56fSmrg 13067e6fb56fSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 13077e6fb56fSmrg verbose=yes ;; 13087e6fb56fSmrg 13097e6fb56fSmrg -version | --version | --versio | --versi | --vers | -V) 13107e6fb56fSmrg ac_init_version=: ;; 13117e6fb56fSmrg 13127e6fb56fSmrg -with-* | --with-*) 13137e6fb56fSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 13147e6fb56fSmrg # Reject names that are not valid shell variable names. 13157e6fb56fSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 13167e6fb56fSmrg { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 13177e6fb56fSmrg { (exit 1); exit 1; }; } 13187e6fb56fSmrg ac_useropt_orig=$ac_useropt 13197e6fb56fSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 13207e6fb56fSmrg case $ac_user_opts in 13217e6fb56fSmrg *" 13227e6fb56fSmrg"with_$ac_useropt" 13237e6fb56fSmrg"*) ;; 13247e6fb56fSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 13257e6fb56fSmrg ac_unrecognized_sep=', ';; 13267e6fb56fSmrg esac 13277e6fb56fSmrg eval with_$ac_useropt=\$ac_optarg ;; 13287e6fb56fSmrg 13297e6fb56fSmrg -without-* | --without-*) 13307e6fb56fSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 13317e6fb56fSmrg # Reject names that are not valid shell variable names. 13327e6fb56fSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 13337e6fb56fSmrg { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 13347e6fb56fSmrg { (exit 1); exit 1; }; } 13357e6fb56fSmrg ac_useropt_orig=$ac_useropt 13367e6fb56fSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 13377e6fb56fSmrg case $ac_user_opts in 13387e6fb56fSmrg *" 13397e6fb56fSmrg"with_$ac_useropt" 13407e6fb56fSmrg"*) ;; 13417e6fb56fSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 13427e6fb56fSmrg ac_unrecognized_sep=', ';; 13437e6fb56fSmrg esac 13447e6fb56fSmrg eval with_$ac_useropt=no ;; 13457e6fb56fSmrg 13467e6fb56fSmrg --x) 13477e6fb56fSmrg # Obsolete; use --with-x. 13487e6fb56fSmrg with_x=yes ;; 13497e6fb56fSmrg 13507e6fb56fSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 13517e6fb56fSmrg | --x-incl | --x-inc | --x-in | --x-i) 13527e6fb56fSmrg ac_prev=x_includes ;; 13537e6fb56fSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 13547e6fb56fSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 13557e6fb56fSmrg x_includes=$ac_optarg ;; 13567e6fb56fSmrg 13577e6fb56fSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 13587e6fb56fSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 13597e6fb56fSmrg ac_prev=x_libraries ;; 13607e6fb56fSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 13617e6fb56fSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 13627e6fb56fSmrg x_libraries=$ac_optarg ;; 13637e6fb56fSmrg 13647e6fb56fSmrg -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 13657e6fb56fSmrgTry \`$0 --help' for more information." >&2 13667e6fb56fSmrg { (exit 1); exit 1; }; } 13677e6fb56fSmrg ;; 13687e6fb56fSmrg 13697e6fb56fSmrg *=*) 13707e6fb56fSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 13717e6fb56fSmrg # Reject names that are not valid shell variable names. 13727e6fb56fSmrg expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 13737e6fb56fSmrg { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 13747e6fb56fSmrg { (exit 1); exit 1; }; } 13757e6fb56fSmrg eval $ac_envvar=\$ac_optarg 13767e6fb56fSmrg export $ac_envvar ;; 13777e6fb56fSmrg 13787e6fb56fSmrg *) 13797e6fb56fSmrg # FIXME: should be removed in autoconf 3.0. 13807e6fb56fSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 13817e6fb56fSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 13827e6fb56fSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 13837e6fb56fSmrg : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 13847e6fb56fSmrg ;; 13857e6fb56fSmrg 13867e6fb56fSmrg esac 13877e6fb56fSmrgdone 13887e6fb56fSmrg 13897e6fb56fSmrgif test -n "$ac_prev"; then 13907e6fb56fSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 13917e6fb56fSmrg { $as_echo "$as_me: error: missing argument to $ac_option" >&2 13927e6fb56fSmrg { (exit 1); exit 1; }; } 13937e6fb56fSmrgfi 13947e6fb56fSmrg 13957e6fb56fSmrgif test -n "$ac_unrecognized_opts"; then 13967e6fb56fSmrg case $enable_option_checking in 13977e6fb56fSmrg no) ;; 13987e6fb56fSmrg fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 13997e6fb56fSmrg { (exit 1); exit 1; }; } ;; 14007e6fb56fSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 14017e6fb56fSmrg esac 14027e6fb56fSmrgfi 14037e6fb56fSmrg 14047e6fb56fSmrg# Check all directory arguments for consistency. 14057e6fb56fSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 14067e6fb56fSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 14077e6fb56fSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 14087e6fb56fSmrg libdir localedir mandir 14097e6fb56fSmrgdo 14107e6fb56fSmrg eval ac_val=\$$ac_var 14117e6fb56fSmrg # Remove trailing slashes. 14127e6fb56fSmrg case $ac_val in 14137e6fb56fSmrg */ ) 14147e6fb56fSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 14157e6fb56fSmrg eval $ac_var=\$ac_val;; 14167e6fb56fSmrg esac 14177e6fb56fSmrg # Be sure to have absolute directory names. 14187e6fb56fSmrg case $ac_val in 14197e6fb56fSmrg [\\/$]* | ?:[\\/]* ) continue;; 14207e6fb56fSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 14217e6fb56fSmrg esac 14227e6fb56fSmrg { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 14237e6fb56fSmrg { (exit 1); exit 1; }; } 14247e6fb56fSmrgdone 14257e6fb56fSmrg 14267e6fb56fSmrg# There might be people who depend on the old broken behavior: `$host' 14277e6fb56fSmrg# used to hold the argument of --host etc. 14287e6fb56fSmrg# FIXME: To remove some day. 14297e6fb56fSmrgbuild=$build_alias 14307e6fb56fSmrghost=$host_alias 14317e6fb56fSmrgtarget=$target_alias 14327e6fb56fSmrg 14337e6fb56fSmrg# FIXME: To remove some day. 14347e6fb56fSmrgif test "x$host_alias" != x; then 14357e6fb56fSmrg if test "x$build_alias" = x; then 14367e6fb56fSmrg cross_compiling=maybe 14377e6fb56fSmrg $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 14387e6fb56fSmrg If a cross compiler is detected then cross compile mode will be used." >&2 14397e6fb56fSmrg elif test "x$build_alias" != "x$host_alias"; then 14407e6fb56fSmrg cross_compiling=yes 14417e6fb56fSmrg fi 14427e6fb56fSmrgfi 14437e6fb56fSmrg 14447e6fb56fSmrgac_tool_prefix= 14457e6fb56fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 14467e6fb56fSmrg 14477e6fb56fSmrgtest "$silent" = yes && exec 6>/dev/null 14487e6fb56fSmrg 14497e6fb56fSmrg 14507e6fb56fSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 14517e6fb56fSmrgac_ls_di=`ls -di .` && 14527e6fb56fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 14537e6fb56fSmrg { $as_echo "$as_me: error: working directory cannot be determined" >&2 14547e6fb56fSmrg { (exit 1); exit 1; }; } 14557e6fb56fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 14567e6fb56fSmrg { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 14577e6fb56fSmrg { (exit 1); exit 1; }; } 14587e6fb56fSmrg 14597e6fb56fSmrg 14607e6fb56fSmrg# Find the source files, if location was not specified. 14617e6fb56fSmrgif test -z "$srcdir"; then 14627e6fb56fSmrg ac_srcdir_defaulted=yes 14637e6fb56fSmrg # Try the directory containing this script, then the parent directory. 14647e6fb56fSmrg ac_confdir=`$as_dirname -- "$as_myself" || 14657e6fb56fSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14667e6fb56fSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 14677e6fb56fSmrg X"$as_myself" : 'X\(//\)$' \| \ 14687e6fb56fSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 14697e6fb56fSmrg$as_echo X"$as_myself" | 14707e6fb56fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14717e6fb56fSmrg s//\1/ 14727e6fb56fSmrg q 14737e6fb56fSmrg } 14747e6fb56fSmrg /^X\(\/\/\)[^/].*/{ 14757e6fb56fSmrg s//\1/ 14767e6fb56fSmrg q 14777e6fb56fSmrg } 14787e6fb56fSmrg /^X\(\/\/\)$/{ 14797e6fb56fSmrg s//\1/ 14807e6fb56fSmrg q 14817e6fb56fSmrg } 14827e6fb56fSmrg /^X\(\/\).*/{ 14837e6fb56fSmrg s//\1/ 14847e6fb56fSmrg q 14857e6fb56fSmrg } 14867e6fb56fSmrg s/.*/./; q'` 14877e6fb56fSmrg srcdir=$ac_confdir 14887e6fb56fSmrg if test ! -r "$srcdir/$ac_unique_file"; then 14897e6fb56fSmrg srcdir=.. 14907e6fb56fSmrg fi 14917e6fb56fSmrgelse 14927e6fb56fSmrg ac_srcdir_defaulted=no 14937e6fb56fSmrgfi 14947e6fb56fSmrgif test ! -r "$srcdir/$ac_unique_file"; then 14957e6fb56fSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 14967e6fb56fSmrg { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 14977e6fb56fSmrg { (exit 1); exit 1; }; } 14987e6fb56fSmrgfi 14997e6fb56fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 15007e6fb56fSmrgac_abs_confdir=`( 15017e6fb56fSmrg cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 15027e6fb56fSmrg { (exit 1); exit 1; }; } 15037e6fb56fSmrg pwd)` 15047e6fb56fSmrg# When building in place, set srcdir=. 15057e6fb56fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 15067e6fb56fSmrg srcdir=. 15077e6fb56fSmrgfi 15087e6fb56fSmrg# Remove unnecessary trailing slashes from srcdir. 15097e6fb56fSmrg# Double slashes in file names in object file debugging info 15107e6fb56fSmrg# mess up M-x gdb in Emacs. 15117e6fb56fSmrgcase $srcdir in 15127e6fb56fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 15137e6fb56fSmrgesac 15147e6fb56fSmrgfor ac_var in $ac_precious_vars; do 15157e6fb56fSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 15167e6fb56fSmrg eval ac_env_${ac_var}_value=\$${ac_var} 15177e6fb56fSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 15187e6fb56fSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 15197e6fb56fSmrgdone 15207e6fb56fSmrg 15217e6fb56fSmrg# 15227e6fb56fSmrg# Report the --help message. 15237e6fb56fSmrg# 15247e6fb56fSmrgif test "$ac_init_help" = "long"; then 15257e6fb56fSmrg # Omit some internal or obsolete options to make the list less imposing. 15267e6fb56fSmrg # This message is too long to be a string in the A/UX 3.1 sh. 15277e6fb56fSmrg cat <<_ACEOF 15287e6fb56fSmrg\`configure' configures xf86-video-openchrome 0.2.904 to adapt to many kinds of systems. 15297e6fb56fSmrg 15307e6fb56fSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 15317e6fb56fSmrg 15327e6fb56fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 15337e6fb56fSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 15347e6fb56fSmrg 15357e6fb56fSmrgDefaults for the options are specified in brackets. 15367e6fb56fSmrg 15377e6fb56fSmrgConfiguration: 15387e6fb56fSmrg -h, --help display this help and exit 15397e6fb56fSmrg --help=short display options specific to this package 15407e6fb56fSmrg --help=recursive display the short help of all the included packages 15417e6fb56fSmrg -V, --version display version information and exit 15427e6fb56fSmrg -q, --quiet, --silent do not print \`checking...' messages 15437e6fb56fSmrg --cache-file=FILE cache test results in FILE [disabled] 15447e6fb56fSmrg -C, --config-cache alias for \`--cache-file=config.cache' 15457e6fb56fSmrg -n, --no-create do not create output files 15467e6fb56fSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 15477e6fb56fSmrg 15487e6fb56fSmrgInstallation directories: 15497e6fb56fSmrg --prefix=PREFIX install architecture-independent files in PREFIX 15507e6fb56fSmrg [$ac_default_prefix] 15517e6fb56fSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 15527e6fb56fSmrg [PREFIX] 15537e6fb56fSmrg 15547e6fb56fSmrgBy default, \`make install' will install all the files in 15557e6fb56fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 15567e6fb56fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 15577e6fb56fSmrgfor instance \`--prefix=\$HOME'. 15587e6fb56fSmrg 15597e6fb56fSmrgFor better control, use the options below. 15607e6fb56fSmrg 15617e6fb56fSmrgFine tuning of the installation directories: 15627e6fb56fSmrg --bindir=DIR user executables [EPREFIX/bin] 15637e6fb56fSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 15647e6fb56fSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 15657e6fb56fSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 15667e6fb56fSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 15677e6fb56fSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 15687e6fb56fSmrg --libdir=DIR object code libraries [EPREFIX/lib] 15697e6fb56fSmrg --includedir=DIR C header files [PREFIX/include] 15707e6fb56fSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 15717e6fb56fSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 15727e6fb56fSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 15737e6fb56fSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 15747e6fb56fSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 15757e6fb56fSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 15767e6fb56fSmrg --docdir=DIR documentation root 15777e6fb56fSmrg [DATAROOTDIR/doc/xf86-video-openchrome] 15787e6fb56fSmrg --htmldir=DIR html documentation [DOCDIR] 15797e6fb56fSmrg --dvidir=DIR dvi documentation [DOCDIR] 15807e6fb56fSmrg --pdfdir=DIR pdf documentation [DOCDIR] 15817e6fb56fSmrg --psdir=DIR ps documentation [DOCDIR] 15827e6fb56fSmrg_ACEOF 15837e6fb56fSmrg 15847e6fb56fSmrg cat <<\_ACEOF 15857e6fb56fSmrg 15867e6fb56fSmrgProgram names: 15877e6fb56fSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 15887e6fb56fSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 15897e6fb56fSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 15907e6fb56fSmrg 15917e6fb56fSmrgSystem types: 15927e6fb56fSmrg --build=BUILD configure for building on BUILD [guessed] 15937e6fb56fSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 15947e6fb56fSmrg_ACEOF 15957e6fb56fSmrgfi 15967e6fb56fSmrg 15977e6fb56fSmrgif test -n "$ac_init_help"; then 15987e6fb56fSmrg case $ac_init_help in 15997e6fb56fSmrg short | recursive ) echo "Configuration of xf86-video-openchrome 0.2.904:";; 16007e6fb56fSmrg esac 16017e6fb56fSmrg cat <<\_ACEOF 16027e6fb56fSmrg 16037e6fb56fSmrgOptional Features: 16047e6fb56fSmrg --disable-option-checking ignore unrecognized --enable/--with options 16057e6fb56fSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 16067e6fb56fSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 16077e6fb56fSmrg --enable-maintainer-mode enable make rules and dependencies not useful 16087e6fb56fSmrg (and sometimes confusing) to the casual installer 16097e6fb56fSmrg --enable-static[=PKGS] build static libraries [default=no] 16107e6fb56fSmrg --enable-shared[=PKGS] build shared libraries [default=yes] 16117e6fb56fSmrg --enable-fast-install[=PKGS] 16127e6fb56fSmrg optimize for fast installation [default=yes] 16137e6fb56fSmrg --disable-dependency-tracking speeds up one-time build 16147e6fb56fSmrg --enable-dependency-tracking do not reject slow dependency extractors 16157e6fb56fSmrg --disable-libtool-lock avoid locking (might break parallel builds) 16167e6fb56fSmrg --disable-dri Disable DRI support [default=auto] 16177e6fb56fSmrg --enable-debug Enable debugging support [default=no] 16187e6fb56fSmrg --enable-xv-debug Enable XVideo debugging support [default=no] 16197e6fb56fSmrg 16207e6fb56fSmrgOptional Packages: 16217e6fb56fSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 16227e6fb56fSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 16237e6fb56fSmrg --with-gnu-ld assume the C compiler uses GNU ld [default=no] 16247e6fb56fSmrg --with-pic try to use only PIC/non-PIC objects [default=use 16257e6fb56fSmrg both] 16267e6fb56fSmrg --with-tags[=TAGS] include additional configurations [automatic] 16277e6fb56fSmrg --with-xorg-module-dir=DIR 16287e6fb56fSmrg Default xorg module directory 16297e6fb56fSmrg [default=$libdir/xorg/modules] 16307e6fb56fSmrg --with-release-version=STRING 16317e6fb56fSmrg Use release version string in package name 16327e6fb56fSmrg 16337e6fb56fSmrgSome influential environment variables: 16347e6fb56fSmrg CC C compiler command 16357e6fb56fSmrg CFLAGS C compiler flags 16367e6fb56fSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 16377e6fb56fSmrg nonstandard directory <lib dir> 16387e6fb56fSmrg LIBS libraries to pass to the linker, e.g. -l<library> 16397e6fb56fSmrg CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 16407e6fb56fSmrg you have headers in a nonstandard directory <include dir> 16417e6fb56fSmrg CPP C preprocessor 16427e6fb56fSmrg CXX C++ compiler command 16437e6fb56fSmrg CXXFLAGS C++ compiler flags 16447e6fb56fSmrg CXXCPP C++ preprocessor 16457e6fb56fSmrg F77 Fortran 77 compiler command 16467e6fb56fSmrg FFLAGS Fortran 77 compiler flags 16477e6fb56fSmrg PKG_CONFIG path to pkg-config utility 16487e6fb56fSmrg XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 16497e6fb56fSmrg XORG_LIBS linker flags for XORG, overriding pkg-config 16507e6fb56fSmrg XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 16517e6fb56fSmrg XEXT_LIBS linker flags for XEXT, overriding pkg-config 16527e6fb56fSmrg PCIACCESS_CFLAGS 16537e6fb56fSmrg C compiler flags for PCIACCESS, overriding pkg-config 16547e6fb56fSmrg PCIACCESS_LIBS 16557e6fb56fSmrg linker flags for PCIACCESS, overriding pkg-config 16567e6fb56fSmrg DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 16577e6fb56fSmrg DRI_LIBS linker flags for DRI, overriding pkg-config 16587e6fb56fSmrg XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config 16597e6fb56fSmrg XVMC_LIBS linker flags for XVMC, overriding pkg-config 16607e6fb56fSmrg 16617e6fb56fSmrgUse these variables to override the choices made by `configure' or to help 16627e6fb56fSmrgit to find libraries and programs with nonstandard names/locations. 16637e6fb56fSmrg 16647e6fb56fSmrgReport bugs to <http://www.openchrome.org/trac/report/1>. 16657e6fb56fSmrg_ACEOF 16667e6fb56fSmrgac_status=$? 16677e6fb56fSmrgfi 16687e6fb56fSmrg 16697e6fb56fSmrgif test "$ac_init_help" = "recursive"; then 16707e6fb56fSmrg # If there are subdirs, report their specific --help. 16717e6fb56fSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 16727e6fb56fSmrg test -d "$ac_dir" || 16737e6fb56fSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 16747e6fb56fSmrg continue 16757e6fb56fSmrg ac_builddir=. 16767e6fb56fSmrg 16777e6fb56fSmrgcase "$ac_dir" in 16787e6fb56fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16797e6fb56fSmrg*) 16807e6fb56fSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16817e6fb56fSmrg # A ".." for each directory in $ac_dir_suffix. 16827e6fb56fSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16837e6fb56fSmrg case $ac_top_builddir_sub in 16847e6fb56fSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16857e6fb56fSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16867e6fb56fSmrg esac ;; 16877e6fb56fSmrgesac 16887e6fb56fSmrgac_abs_top_builddir=$ac_pwd 16897e6fb56fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 16907e6fb56fSmrg# for backward compatibility: 16917e6fb56fSmrgac_top_builddir=$ac_top_build_prefix 16927e6fb56fSmrg 16937e6fb56fSmrgcase $srcdir in 16947e6fb56fSmrg .) # We are building in place. 16957e6fb56fSmrg ac_srcdir=. 16967e6fb56fSmrg ac_top_srcdir=$ac_top_builddir_sub 16977e6fb56fSmrg ac_abs_top_srcdir=$ac_pwd ;; 16987e6fb56fSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 16997e6fb56fSmrg ac_srcdir=$srcdir$ac_dir_suffix; 17007e6fb56fSmrg ac_top_srcdir=$srcdir 17017e6fb56fSmrg ac_abs_top_srcdir=$srcdir ;; 17027e6fb56fSmrg *) # Relative name. 17037e6fb56fSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17047e6fb56fSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 17057e6fb56fSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17067e6fb56fSmrgesac 17077e6fb56fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17087e6fb56fSmrg 17097e6fb56fSmrg cd "$ac_dir" || { ac_status=$?; continue; } 17107e6fb56fSmrg # Check for guested configure. 17117e6fb56fSmrg if test -f "$ac_srcdir/configure.gnu"; then 17127e6fb56fSmrg echo && 17137e6fb56fSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 17147e6fb56fSmrg elif test -f "$ac_srcdir/configure"; then 17157e6fb56fSmrg echo && 17167e6fb56fSmrg $SHELL "$ac_srcdir/configure" --help=recursive 17177e6fb56fSmrg else 17187e6fb56fSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 17197e6fb56fSmrg fi || ac_status=$? 17207e6fb56fSmrg cd "$ac_pwd" || { ac_status=$?; break; } 17217e6fb56fSmrg done 17227e6fb56fSmrgfi 17237e6fb56fSmrg 17247e6fb56fSmrgtest -n "$ac_init_help" && exit $ac_status 17257e6fb56fSmrgif $ac_init_version; then 17267e6fb56fSmrg cat <<\_ACEOF 17277e6fb56fSmrgxf86-video-openchrome configure 0.2.904 17287e6fb56fSmrggenerated by GNU Autoconf 2.63 17297e6fb56fSmrg 17307e6fb56fSmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17317e6fb56fSmrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 17327e6fb56fSmrgThis configure script is free software; the Free Software Foundation 17337e6fb56fSmrggives unlimited permission to copy, distribute and modify it. 17347e6fb56fSmrg_ACEOF 17357e6fb56fSmrg exit 17367e6fb56fSmrgfi 17377e6fb56fSmrgcat >config.log <<_ACEOF 17387e6fb56fSmrgThis file contains any messages produced by compilers while 17397e6fb56fSmrgrunning configure, to aid debugging if configure makes a mistake. 17407e6fb56fSmrg 17417e6fb56fSmrgIt was created by xf86-video-openchrome $as_me 0.2.904, which was 17427e6fb56fSmrggenerated by GNU Autoconf 2.63. Invocation command line was 17437e6fb56fSmrg 17447e6fb56fSmrg $ $0 $@ 17457e6fb56fSmrg 17467e6fb56fSmrg_ACEOF 17477e6fb56fSmrgexec 5>>config.log 17487e6fb56fSmrg{ 17497e6fb56fSmrgcat <<_ASUNAME 17507e6fb56fSmrg## --------- ## 17517e6fb56fSmrg## Platform. ## 17527e6fb56fSmrg## --------- ## 17537e6fb56fSmrg 17547e6fb56fSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 17557e6fb56fSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 17567e6fb56fSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 17577e6fb56fSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 17587e6fb56fSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 17597e6fb56fSmrg 17607e6fb56fSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 17617e6fb56fSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 17627e6fb56fSmrg 17637e6fb56fSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 17647e6fb56fSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 17657e6fb56fSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 17667e6fb56fSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 17677e6fb56fSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 17687e6fb56fSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 17697e6fb56fSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 17707e6fb56fSmrg 17717e6fb56fSmrg_ASUNAME 17727e6fb56fSmrg 17737e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17747e6fb56fSmrgfor as_dir in $PATH 17757e6fb56fSmrgdo 17767e6fb56fSmrg IFS=$as_save_IFS 17777e6fb56fSmrg test -z "$as_dir" && as_dir=. 17787e6fb56fSmrg $as_echo "PATH: $as_dir" 17797e6fb56fSmrgdone 17807e6fb56fSmrgIFS=$as_save_IFS 17817e6fb56fSmrg 17827e6fb56fSmrg} >&5 17837e6fb56fSmrg 17847e6fb56fSmrgcat >&5 <<_ACEOF 17857e6fb56fSmrg 17867e6fb56fSmrg 17877e6fb56fSmrg## ----------- ## 17887e6fb56fSmrg## Core tests. ## 17897e6fb56fSmrg## ----------- ## 17907e6fb56fSmrg 17917e6fb56fSmrg_ACEOF 17927e6fb56fSmrg 17937e6fb56fSmrg 17947e6fb56fSmrg# Keep a trace of the command line. 17957e6fb56fSmrg# Strip out --no-create and --no-recursion so they do not pile up. 17967e6fb56fSmrg# Strip out --silent because we don't want to record it for future runs. 17977e6fb56fSmrg# Also quote any args containing shell meta-characters. 17987e6fb56fSmrg# Make two passes to allow for proper duplicate-argument suppression. 17997e6fb56fSmrgac_configure_args= 18007e6fb56fSmrgac_configure_args0= 18017e6fb56fSmrgac_configure_args1= 18027e6fb56fSmrgac_must_keep_next=false 18037e6fb56fSmrgfor ac_pass in 1 2 18047e6fb56fSmrgdo 18057e6fb56fSmrg for ac_arg 18067e6fb56fSmrg do 18077e6fb56fSmrg case $ac_arg in 18087e6fb56fSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 18097e6fb56fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18107e6fb56fSmrg | -silent | --silent | --silen | --sile | --sil) 18117e6fb56fSmrg continue ;; 18127e6fb56fSmrg *\'*) 18137e6fb56fSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18147e6fb56fSmrg esac 18157e6fb56fSmrg case $ac_pass in 18167e6fb56fSmrg 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 18177e6fb56fSmrg 2) 18187e6fb56fSmrg ac_configure_args1="$ac_configure_args1 '$ac_arg'" 18197e6fb56fSmrg if test $ac_must_keep_next = true; then 18207e6fb56fSmrg ac_must_keep_next=false # Got value, back to normal. 18217e6fb56fSmrg else 18227e6fb56fSmrg case $ac_arg in 18237e6fb56fSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 18247e6fb56fSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 18257e6fb56fSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 18267e6fb56fSmrg | -with-* | --with-* | -without-* | --without-* | --x) 18277e6fb56fSmrg case "$ac_configure_args0 " in 18287e6fb56fSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 18297e6fb56fSmrg esac 18307e6fb56fSmrg ;; 18317e6fb56fSmrg -* ) ac_must_keep_next=true ;; 18327e6fb56fSmrg esac 18337e6fb56fSmrg fi 18347e6fb56fSmrg ac_configure_args="$ac_configure_args '$ac_arg'" 18357e6fb56fSmrg ;; 18367e6fb56fSmrg esac 18377e6fb56fSmrg done 18387e6fb56fSmrgdone 18397e6fb56fSmrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 18407e6fb56fSmrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 18417e6fb56fSmrg 18427e6fb56fSmrg# When interrupted or exit'd, cleanup temporary files, and complete 18437e6fb56fSmrg# config.log. We remove comments because anyway the quotes in there 18447e6fb56fSmrg# would cause problems or look ugly. 18457e6fb56fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 18467e6fb56fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 18477e6fb56fSmrgtrap 'exit_status=$? 18487e6fb56fSmrg # Save into config.log some information that might help in debugging. 18497e6fb56fSmrg { 18507e6fb56fSmrg echo 18517e6fb56fSmrg 18527e6fb56fSmrg cat <<\_ASBOX 18537e6fb56fSmrg## ---------------- ## 18547e6fb56fSmrg## Cache variables. ## 18557e6fb56fSmrg## ---------------- ## 18567e6fb56fSmrg_ASBOX 18577e6fb56fSmrg echo 18587e6fb56fSmrg # The following way of writing the cache mishandles newlines in values, 18597e6fb56fSmrg( 18607e6fb56fSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 18617e6fb56fSmrg eval ac_val=\$$ac_var 18627e6fb56fSmrg case $ac_val in #( 18637e6fb56fSmrg *${as_nl}*) 18647e6fb56fSmrg case $ac_var in #( 18657e6fb56fSmrg *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 18667e6fb56fSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18677e6fb56fSmrg esac 18687e6fb56fSmrg case $ac_var in #( 18697e6fb56fSmrg _ | IFS | as_nl) ;; #( 18707e6fb56fSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18717e6fb56fSmrg *) $as_unset $ac_var ;; 18727e6fb56fSmrg esac ;; 18737e6fb56fSmrg esac 18747e6fb56fSmrg done 18757e6fb56fSmrg (set) 2>&1 | 18767e6fb56fSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 18777e6fb56fSmrg *${as_nl}ac_space=\ *) 18787e6fb56fSmrg sed -n \ 18797e6fb56fSmrg "s/'\''/'\''\\\\'\'''\''/g; 18807e6fb56fSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 18817e6fb56fSmrg ;; #( 18827e6fb56fSmrg *) 18837e6fb56fSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18847e6fb56fSmrg ;; 18857e6fb56fSmrg esac | 18867e6fb56fSmrg sort 18877e6fb56fSmrg) 18887e6fb56fSmrg echo 18897e6fb56fSmrg 18907e6fb56fSmrg cat <<\_ASBOX 18917e6fb56fSmrg## ----------------- ## 18927e6fb56fSmrg## Output variables. ## 18937e6fb56fSmrg## ----------------- ## 18947e6fb56fSmrg_ASBOX 18957e6fb56fSmrg echo 18967e6fb56fSmrg for ac_var in $ac_subst_vars 18977e6fb56fSmrg do 18987e6fb56fSmrg eval ac_val=\$$ac_var 18997e6fb56fSmrg case $ac_val in 19007e6fb56fSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19017e6fb56fSmrg esac 19027e6fb56fSmrg $as_echo "$ac_var='\''$ac_val'\''" 19037e6fb56fSmrg done | sort 19047e6fb56fSmrg echo 19057e6fb56fSmrg 19067e6fb56fSmrg if test -n "$ac_subst_files"; then 19077e6fb56fSmrg cat <<\_ASBOX 19087e6fb56fSmrg## ------------------- ## 19097e6fb56fSmrg## File substitutions. ## 19107e6fb56fSmrg## ------------------- ## 19117e6fb56fSmrg_ASBOX 19127e6fb56fSmrg echo 19137e6fb56fSmrg for ac_var in $ac_subst_files 19147e6fb56fSmrg do 19157e6fb56fSmrg eval ac_val=\$$ac_var 19167e6fb56fSmrg case $ac_val in 19177e6fb56fSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19187e6fb56fSmrg esac 19197e6fb56fSmrg $as_echo "$ac_var='\''$ac_val'\''" 19207e6fb56fSmrg done | sort 19217e6fb56fSmrg echo 19227e6fb56fSmrg fi 19237e6fb56fSmrg 19247e6fb56fSmrg if test -s confdefs.h; then 19257e6fb56fSmrg cat <<\_ASBOX 19267e6fb56fSmrg## ----------- ## 19277e6fb56fSmrg## confdefs.h. ## 19287e6fb56fSmrg## ----------- ## 19297e6fb56fSmrg_ASBOX 19307e6fb56fSmrg echo 19317e6fb56fSmrg cat confdefs.h 19327e6fb56fSmrg echo 19337e6fb56fSmrg fi 19347e6fb56fSmrg test "$ac_signal" != 0 && 19357e6fb56fSmrg $as_echo "$as_me: caught signal $ac_signal" 19367e6fb56fSmrg $as_echo "$as_me: exit $exit_status" 19377e6fb56fSmrg } >&5 19387e6fb56fSmrg rm -f core *.core core.conftest.* && 19397e6fb56fSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 19407e6fb56fSmrg exit $exit_status 19417e6fb56fSmrg' 0 19427e6fb56fSmrgfor ac_signal in 1 2 13 15; do 19437e6fb56fSmrg trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 19447e6fb56fSmrgdone 19457e6fb56fSmrgac_signal=0 19467e6fb56fSmrg 19477e6fb56fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 19487e6fb56fSmrgrm -f -r conftest* confdefs.h 19497e6fb56fSmrg 19507e6fb56fSmrg# Predefined preprocessor variables. 19517e6fb56fSmrg 19527e6fb56fSmrgcat >>confdefs.h <<_ACEOF 19537e6fb56fSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 19547e6fb56fSmrg_ACEOF 19557e6fb56fSmrg 19567e6fb56fSmrg 19577e6fb56fSmrgcat >>confdefs.h <<_ACEOF 19587e6fb56fSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 19597e6fb56fSmrg_ACEOF 19607e6fb56fSmrg 19617e6fb56fSmrg 19627e6fb56fSmrgcat >>confdefs.h <<_ACEOF 19637e6fb56fSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 19647e6fb56fSmrg_ACEOF 19657e6fb56fSmrg 19667e6fb56fSmrg 19677e6fb56fSmrgcat >>confdefs.h <<_ACEOF 19687e6fb56fSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 19697e6fb56fSmrg_ACEOF 19707e6fb56fSmrg 19717e6fb56fSmrg 19727e6fb56fSmrgcat >>confdefs.h <<_ACEOF 19737e6fb56fSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 19747e6fb56fSmrg_ACEOF 19757e6fb56fSmrg 19767e6fb56fSmrg 19777e6fb56fSmrg# Let the site file select an alternate cache file if it wants to. 19787e6fb56fSmrg# Prefer an explicitly selected file to automatically selected ones. 19797e6fb56fSmrgac_site_file1=NONE 19807e6fb56fSmrgac_site_file2=NONE 19817e6fb56fSmrgif test -n "$CONFIG_SITE"; then 19827e6fb56fSmrg ac_site_file1=$CONFIG_SITE 19837e6fb56fSmrgelif test "x$prefix" != xNONE; then 19847e6fb56fSmrg ac_site_file1=$prefix/share/config.site 19857e6fb56fSmrg ac_site_file2=$prefix/etc/config.site 19867e6fb56fSmrgelse 19877e6fb56fSmrg ac_site_file1=$ac_default_prefix/share/config.site 19887e6fb56fSmrg ac_site_file2=$ac_default_prefix/etc/config.site 19897e6fb56fSmrgfi 19907e6fb56fSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 19917e6fb56fSmrgdo 19927e6fb56fSmrg test "x$ac_site_file" = xNONE && continue 19937e6fb56fSmrg if test -r "$ac_site_file"; then 19947e6fb56fSmrg { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 19957e6fb56fSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 19967e6fb56fSmrg sed 's/^/| /' "$ac_site_file" >&5 19977e6fb56fSmrg . "$ac_site_file" 19987e6fb56fSmrg fi 19997e6fb56fSmrgdone 20007e6fb56fSmrg 20017e6fb56fSmrgif test -r "$cache_file"; then 20027e6fb56fSmrg # Some versions of bash will fail to source /dev/null (special 20037e6fb56fSmrg # files actually), so we avoid doing that. 20047e6fb56fSmrg if test -f "$cache_file"; then 20057e6fb56fSmrg { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 20067e6fb56fSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 20077e6fb56fSmrg case $cache_file in 20087e6fb56fSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 20097e6fb56fSmrg *) . "./$cache_file";; 20107e6fb56fSmrg esac 20117e6fb56fSmrg fi 20127e6fb56fSmrgelse 20137e6fb56fSmrg { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 20147e6fb56fSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 20157e6fb56fSmrg >$cache_file 20167e6fb56fSmrgfi 20177e6fb56fSmrg 20187e6fb56fSmrg# Check that the precious variables saved in the cache have kept the same 20197e6fb56fSmrg# value. 20207e6fb56fSmrgac_cache_corrupted=false 20217e6fb56fSmrgfor ac_var in $ac_precious_vars; do 20227e6fb56fSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 20237e6fb56fSmrg eval ac_new_set=\$ac_env_${ac_var}_set 20247e6fb56fSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 20257e6fb56fSmrg eval ac_new_val=\$ac_env_${ac_var}_value 20267e6fb56fSmrg case $ac_old_set,$ac_new_set in 20277e6fb56fSmrg set,) 20287e6fb56fSmrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 20297e6fb56fSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 20307e6fb56fSmrg ac_cache_corrupted=: ;; 20317e6fb56fSmrg ,set) 20327e6fb56fSmrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 20337e6fb56fSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 20347e6fb56fSmrg ac_cache_corrupted=: ;; 20357e6fb56fSmrg ,);; 20367e6fb56fSmrg *) 20377e6fb56fSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 20387e6fb56fSmrg # differences in whitespace do not lead to failure. 20397e6fb56fSmrg ac_old_val_w=`echo x $ac_old_val` 20407e6fb56fSmrg ac_new_val_w=`echo x $ac_new_val` 20417e6fb56fSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 20427e6fb56fSmrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 20437e6fb56fSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 20447e6fb56fSmrg ac_cache_corrupted=: 20457e6fb56fSmrg else 20467e6fb56fSmrg { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 20477e6fb56fSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 20487e6fb56fSmrg eval $ac_var=\$ac_old_val 20497e6fb56fSmrg fi 20507e6fb56fSmrg { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 20517e6fb56fSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 20527e6fb56fSmrg { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 20537e6fb56fSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 20547e6fb56fSmrg fi;; 20557e6fb56fSmrg esac 20567e6fb56fSmrg # Pass precious variables to config.status. 20577e6fb56fSmrg if test "$ac_new_set" = set; then 20587e6fb56fSmrg case $ac_new_val in 20597e6fb56fSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 20607e6fb56fSmrg *) ac_arg=$ac_var=$ac_new_val ;; 20617e6fb56fSmrg esac 20627e6fb56fSmrg case " $ac_configure_args " in 20637e6fb56fSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 20647e6fb56fSmrg *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 20657e6fb56fSmrg esac 20667e6fb56fSmrg fi 20677e6fb56fSmrgdone 20687e6fb56fSmrgif $ac_cache_corrupted; then 20697e6fb56fSmrg { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20707e6fb56fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20717e6fb56fSmrg { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 20727e6fb56fSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 20737e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 20747e6fb56fSmrg$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 20757e6fb56fSmrg { (exit 1); exit 1; }; } 20767e6fb56fSmrgfi 20777e6fb56fSmrg 20787e6fb56fSmrg 20797e6fb56fSmrg 20807e6fb56fSmrg 20817e6fb56fSmrg 20827e6fb56fSmrg 20837e6fb56fSmrg 20847e6fb56fSmrg 20857e6fb56fSmrg 20867e6fb56fSmrg 20877e6fb56fSmrg 20887e6fb56fSmrg 20897e6fb56fSmrg 20907e6fb56fSmrg 20917e6fb56fSmrg 20927e6fb56fSmrg 20937e6fb56fSmrg 20947e6fb56fSmrg 20957e6fb56fSmrg 20967e6fb56fSmrg 20977e6fb56fSmrg 20987e6fb56fSmrg 20997e6fb56fSmrg 21007e6fb56fSmrg 21017e6fb56fSmrg 21027e6fb56fSmrgac_ext=c 21037e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 21047e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21057e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21067e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 21077e6fb56fSmrg 21087e6fb56fSmrg 21097e6fb56fSmrg 21107e6fb56fSmrg 21117e6fb56fSmrgac_config_headers="$ac_config_headers config.h" 21127e6fb56fSmrg 21137e6fb56fSmrgac_aux_dir= 21147e6fb56fSmrgfor ac_dir in . "$srcdir"/.; do 21157e6fb56fSmrg if test -f "$ac_dir/install-sh"; then 21167e6fb56fSmrg ac_aux_dir=$ac_dir 21177e6fb56fSmrg ac_install_sh="$ac_aux_dir/install-sh -c" 21187e6fb56fSmrg break 21197e6fb56fSmrg elif test -f "$ac_dir/install.sh"; then 21207e6fb56fSmrg ac_aux_dir=$ac_dir 21217e6fb56fSmrg ac_install_sh="$ac_aux_dir/install.sh -c" 21227e6fb56fSmrg break 21237e6fb56fSmrg elif test -f "$ac_dir/shtool"; then 21247e6fb56fSmrg ac_aux_dir=$ac_dir 21257e6fb56fSmrg ac_install_sh="$ac_aux_dir/shtool install -c" 21267e6fb56fSmrg break 21277e6fb56fSmrg fi 21287e6fb56fSmrgdone 21297e6fb56fSmrgif test -z "$ac_aux_dir"; then 21307e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 21317e6fb56fSmrg$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 21327e6fb56fSmrg { (exit 1); exit 1; }; } 21337e6fb56fSmrgfi 21347e6fb56fSmrg 21357e6fb56fSmrg# These three variables are undocumented and unsupported, 21367e6fb56fSmrg# and are intended to be withdrawn in a future Autoconf release. 21377e6fb56fSmrg# They can cause serious problems if a builder's source tree is in a directory 21387e6fb56fSmrg# whose full name contains unusual characters. 21397e6fb56fSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 21407e6fb56fSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 21417e6fb56fSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 21427e6fb56fSmrg 21437e6fb56fSmrg 21447e6fb56fSmrg 21457e6fb56fSmrgam__api_version='1.11' 21467e6fb56fSmrg 21477e6fb56fSmrg# Find a good install program. We prefer a C program (faster), 21487e6fb56fSmrg# so one script is as good as another. But avoid the broken or 21497e6fb56fSmrg# incompatible versions: 21507e6fb56fSmrg# SysV /etc/install, /usr/sbin/install 21517e6fb56fSmrg# SunOS /usr/etc/install 21527e6fb56fSmrg# IRIX /sbin/install 21537e6fb56fSmrg# AIX /bin/install 21547e6fb56fSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 21557e6fb56fSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 21567e6fb56fSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 21577e6fb56fSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 21587e6fb56fSmrg# OS/2's system install, which has a completely different semantic 21597e6fb56fSmrg# ./install, which can be erroneously created by make from ./install.sh. 21607e6fb56fSmrg# Reject install programs that cannot install multiple files. 21617e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 21627e6fb56fSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 21637e6fb56fSmrgif test -z "$INSTALL"; then 21647e6fb56fSmrgif test "${ac_cv_path_install+set}" = set; then 21657e6fb56fSmrg $as_echo_n "(cached) " >&6 21667e6fb56fSmrgelse 21677e6fb56fSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21687e6fb56fSmrgfor as_dir in $PATH 21697e6fb56fSmrgdo 21707e6fb56fSmrg IFS=$as_save_IFS 21717e6fb56fSmrg test -z "$as_dir" && as_dir=. 21727e6fb56fSmrg # Account for people who put trailing slashes in PATH elements. 21737e6fb56fSmrgcase $as_dir/ in 21747e6fb56fSmrg ./ | .// | /cC/* | \ 21757e6fb56fSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 21767e6fb56fSmrg ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 21777e6fb56fSmrg /usr/ucb/* ) ;; 21787e6fb56fSmrg *) 21797e6fb56fSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 21807e6fb56fSmrg # Don't use installbsd from OSF since it installs stuff as root 21817e6fb56fSmrg # by default. 21827e6fb56fSmrg for ac_prog in ginstall scoinst install; do 21837e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 21847e6fb56fSmrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 21857e6fb56fSmrg if test $ac_prog = install && 21867e6fb56fSmrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 21877e6fb56fSmrg # AIX install. It has an incompatible calling convention. 21887e6fb56fSmrg : 21897e6fb56fSmrg elif test $ac_prog = install && 21907e6fb56fSmrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 21917e6fb56fSmrg # program-specific install script used by HP pwplus--don't use. 21927e6fb56fSmrg : 21937e6fb56fSmrg else 21947e6fb56fSmrg rm -rf conftest.one conftest.two conftest.dir 21957e6fb56fSmrg echo one > conftest.one 21967e6fb56fSmrg echo two > conftest.two 21977e6fb56fSmrg mkdir conftest.dir 21987e6fb56fSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 21997e6fb56fSmrg test -s conftest.one && test -s conftest.two && 22007e6fb56fSmrg test -s conftest.dir/conftest.one && 22017e6fb56fSmrg test -s conftest.dir/conftest.two 22027e6fb56fSmrg then 22037e6fb56fSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 22047e6fb56fSmrg break 3 22057e6fb56fSmrg fi 22067e6fb56fSmrg fi 22077e6fb56fSmrg fi 22087e6fb56fSmrg done 22097e6fb56fSmrg done 22107e6fb56fSmrg ;; 22117e6fb56fSmrgesac 22127e6fb56fSmrg 22137e6fb56fSmrgdone 22147e6fb56fSmrgIFS=$as_save_IFS 22157e6fb56fSmrg 22167e6fb56fSmrgrm -rf conftest.one conftest.two conftest.dir 22177e6fb56fSmrg 22187e6fb56fSmrgfi 22197e6fb56fSmrg if test "${ac_cv_path_install+set}" = set; then 22207e6fb56fSmrg INSTALL=$ac_cv_path_install 22217e6fb56fSmrg else 22227e6fb56fSmrg # As a last resort, use the slow shell script. Don't cache a 22237e6fb56fSmrg # value for INSTALL within a source directory, because that will 22247e6fb56fSmrg # break other packages using the cache if that directory is 22257e6fb56fSmrg # removed, or if the value is a relative name. 22267e6fb56fSmrg INSTALL=$ac_install_sh 22277e6fb56fSmrg fi 22287e6fb56fSmrgfi 22297e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 22307e6fb56fSmrg$as_echo "$INSTALL" >&6; } 22317e6fb56fSmrg 22327e6fb56fSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 22337e6fb56fSmrg# It thinks the first close brace ends the variable substitution. 22347e6fb56fSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 22357e6fb56fSmrg 22367e6fb56fSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 22377e6fb56fSmrg 22387e6fb56fSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 22397e6fb56fSmrg 22407e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 22417e6fb56fSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 22427e6fb56fSmrg# Just in case 22437e6fb56fSmrgsleep 1 22447e6fb56fSmrgecho timestamp > conftest.file 22457e6fb56fSmrg# Reject unsafe characters in $srcdir or the absolute working directory 22467e6fb56fSmrg# name. Accept space and tab only in the latter. 22477e6fb56fSmrgam_lf=' 22487e6fb56fSmrg' 22497e6fb56fSmrgcase `pwd` in 22507e6fb56fSmrg *[\\\"\#\$\&\'\`$am_lf]*) 22517e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 22527e6fb56fSmrg$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 22537e6fb56fSmrg { (exit 1); exit 1; }; };; 22547e6fb56fSmrgesac 22557e6fb56fSmrgcase $srcdir in 22567e6fb56fSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 22577e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 22587e6fb56fSmrg$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 22597e6fb56fSmrg { (exit 1); exit 1; }; };; 22607e6fb56fSmrgesac 22617e6fb56fSmrg 22627e6fb56fSmrg# Do `set' in a subshell so we don't clobber the current shell's 22637e6fb56fSmrg# arguments. Must try -L first in case configure is actually a 22647e6fb56fSmrg# symlink; some systems play weird games with the mod time of symlinks 22657e6fb56fSmrg# (eg FreeBSD returns the mod time of the symlink's containing 22667e6fb56fSmrg# directory). 22677e6fb56fSmrgif ( 22687e6fb56fSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 22697e6fb56fSmrg if test "$*" = "X"; then 22707e6fb56fSmrg # -L didn't work. 22717e6fb56fSmrg set X `ls -t "$srcdir/configure" conftest.file` 22727e6fb56fSmrg fi 22737e6fb56fSmrg rm -f conftest.file 22747e6fb56fSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 22757e6fb56fSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 22767e6fb56fSmrg 22777e6fb56fSmrg # If neither matched, then we have a broken ls. This can happen 22787e6fb56fSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 22797e6fb56fSmrg # broken ls alias from the environment. This has actually 22807e6fb56fSmrg # happened. Such a system could not be considered "sane". 22817e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 22827e6fb56fSmrgalias in your environment" >&5 22837e6fb56fSmrg$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 22847e6fb56fSmrgalias in your environment" >&2;} 22857e6fb56fSmrg { (exit 1); exit 1; }; } 22867e6fb56fSmrg fi 22877e6fb56fSmrg 22887e6fb56fSmrg test "$2" = conftest.file 22897e6fb56fSmrg ) 22907e6fb56fSmrgthen 22917e6fb56fSmrg # Ok. 22927e6fb56fSmrg : 22937e6fb56fSmrgelse 22947e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 22957e6fb56fSmrgCheck your system clock" >&5 22967e6fb56fSmrg$as_echo "$as_me: error: newly created file is older than distributed files! 22977e6fb56fSmrgCheck your system clock" >&2;} 22987e6fb56fSmrg { (exit 1); exit 1; }; } 22997e6fb56fSmrgfi 23007e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: yes" >&5 23017e6fb56fSmrg$as_echo "yes" >&6; } 23027e6fb56fSmrgtest "$program_prefix" != NONE && 23037e6fb56fSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 23047e6fb56fSmrg# Use a double $ so make ignores it. 23057e6fb56fSmrgtest "$program_suffix" != NONE && 23067e6fb56fSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 23077e6fb56fSmrg# Double any \ or $. 23087e6fb56fSmrg# By default was `s,x,x', remove it if useless. 23097e6fb56fSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 23107e6fb56fSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 23117e6fb56fSmrg 23127e6fb56fSmrg# expand $ac_aux_dir to an absolute path 23137e6fb56fSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 23147e6fb56fSmrg 23157e6fb56fSmrgif test x"${MISSING+set}" != xset; then 23167e6fb56fSmrg case $am_aux_dir in 23177e6fb56fSmrg *\ * | *\ *) 23187e6fb56fSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 23197e6fb56fSmrg *) 23207e6fb56fSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 23217e6fb56fSmrg esac 23227e6fb56fSmrgfi 23237e6fb56fSmrg# Use eval to expand $SHELL 23247e6fb56fSmrgif eval "$MISSING --run true"; then 23257e6fb56fSmrg am_missing_run="$MISSING --run " 23267e6fb56fSmrgelse 23277e6fb56fSmrg am_missing_run= 23287e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 23297e6fb56fSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 23307e6fb56fSmrgfi 23317e6fb56fSmrg 23327e6fb56fSmrgif test x"${install_sh}" != xset; then 23337e6fb56fSmrg case $am_aux_dir in 23347e6fb56fSmrg *\ * | *\ *) 23357e6fb56fSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 23367e6fb56fSmrg *) 23377e6fb56fSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 23387e6fb56fSmrg esac 23397e6fb56fSmrgfi 23407e6fb56fSmrg 23417e6fb56fSmrg# Installed binaries are usually stripped using `strip' when the user 23427e6fb56fSmrg# run `make install-strip'. However `strip' might not be the right 23437e6fb56fSmrg# tool to use in cross-compilation environments, therefore Automake 23447e6fb56fSmrg# will honor the `STRIP' environment variable to overrule this program. 23457e6fb56fSmrgif test "$cross_compiling" != no; then 23467e6fb56fSmrg if test -n "$ac_tool_prefix"; then 23477e6fb56fSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 23487e6fb56fSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 23497e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 23507e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 23517e6fb56fSmrgif test "${ac_cv_prog_STRIP+set}" = set; then 23527e6fb56fSmrg $as_echo_n "(cached) " >&6 23537e6fb56fSmrgelse 23547e6fb56fSmrg if test -n "$STRIP"; then 23557e6fb56fSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 23567e6fb56fSmrgelse 23577e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23587e6fb56fSmrgfor as_dir in $PATH 23597e6fb56fSmrgdo 23607e6fb56fSmrg IFS=$as_save_IFS 23617e6fb56fSmrg test -z "$as_dir" && as_dir=. 23627e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 23637e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23647e6fb56fSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 23657e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23667e6fb56fSmrg break 2 23677e6fb56fSmrg fi 23687e6fb56fSmrgdone 23697e6fb56fSmrgdone 23707e6fb56fSmrgIFS=$as_save_IFS 23717e6fb56fSmrg 23727e6fb56fSmrgfi 23737e6fb56fSmrgfi 23747e6fb56fSmrgSTRIP=$ac_cv_prog_STRIP 23757e6fb56fSmrgif test -n "$STRIP"; then 23767e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 23777e6fb56fSmrg$as_echo "$STRIP" >&6; } 23787e6fb56fSmrgelse 23797e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 23807e6fb56fSmrg$as_echo "no" >&6; } 23817e6fb56fSmrgfi 23827e6fb56fSmrg 23837e6fb56fSmrg 23847e6fb56fSmrgfi 23857e6fb56fSmrgif test -z "$ac_cv_prog_STRIP"; then 23867e6fb56fSmrg ac_ct_STRIP=$STRIP 23877e6fb56fSmrg # Extract the first word of "strip", so it can be a program name with args. 23887e6fb56fSmrgset dummy strip; ac_word=$2 23897e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 23907e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 23917e6fb56fSmrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 23927e6fb56fSmrg $as_echo_n "(cached) " >&6 23937e6fb56fSmrgelse 23947e6fb56fSmrg if test -n "$ac_ct_STRIP"; then 23957e6fb56fSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 23967e6fb56fSmrgelse 23977e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23987e6fb56fSmrgfor as_dir in $PATH 23997e6fb56fSmrgdo 24007e6fb56fSmrg IFS=$as_save_IFS 24017e6fb56fSmrg test -z "$as_dir" && as_dir=. 24027e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 24037e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24047e6fb56fSmrg ac_cv_prog_ac_ct_STRIP="strip" 24057e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 24067e6fb56fSmrg break 2 24077e6fb56fSmrg fi 24087e6fb56fSmrgdone 24097e6fb56fSmrgdone 24107e6fb56fSmrgIFS=$as_save_IFS 24117e6fb56fSmrg 24127e6fb56fSmrgfi 24137e6fb56fSmrgfi 24147e6fb56fSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 24157e6fb56fSmrgif test -n "$ac_ct_STRIP"; then 24167e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 24177e6fb56fSmrg$as_echo "$ac_ct_STRIP" >&6; } 24187e6fb56fSmrgelse 24197e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 24207e6fb56fSmrg$as_echo "no" >&6; } 24217e6fb56fSmrgfi 24227e6fb56fSmrg 24237e6fb56fSmrg if test "x$ac_ct_STRIP" = x; then 24247e6fb56fSmrg STRIP=":" 24257e6fb56fSmrg else 24267e6fb56fSmrg case $cross_compiling:$ac_tool_warned in 24277e6fb56fSmrgyes:) 24287e6fb56fSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 24297e6fb56fSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24307e6fb56fSmrgac_tool_warned=yes ;; 24317e6fb56fSmrgesac 24327e6fb56fSmrg STRIP=$ac_ct_STRIP 24337e6fb56fSmrg fi 24347e6fb56fSmrgelse 24357e6fb56fSmrg STRIP="$ac_cv_prog_STRIP" 24367e6fb56fSmrgfi 24377e6fb56fSmrg 24387e6fb56fSmrgfi 24397e6fb56fSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 24407e6fb56fSmrg 24417e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 24427e6fb56fSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 24437e6fb56fSmrgif test -z "$MKDIR_P"; then 24447e6fb56fSmrg if test "${ac_cv_path_mkdir+set}" = set; then 24457e6fb56fSmrg $as_echo_n "(cached) " >&6 24467e6fb56fSmrgelse 24477e6fb56fSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24487e6fb56fSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 24497e6fb56fSmrgdo 24507e6fb56fSmrg IFS=$as_save_IFS 24517e6fb56fSmrg test -z "$as_dir" && as_dir=. 24527e6fb56fSmrg for ac_prog in mkdir gmkdir; do 24537e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 24547e6fb56fSmrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 24557e6fb56fSmrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 24567e6fb56fSmrg 'mkdir (GNU coreutils) '* | \ 24577e6fb56fSmrg 'mkdir (coreutils) '* | \ 24587e6fb56fSmrg 'mkdir (fileutils) '4.1*) 24597e6fb56fSmrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 24607e6fb56fSmrg break 3;; 24617e6fb56fSmrg esac 24627e6fb56fSmrg done 24637e6fb56fSmrg done 24647e6fb56fSmrgdone 24657e6fb56fSmrgIFS=$as_save_IFS 24667e6fb56fSmrg 24677e6fb56fSmrgfi 24687e6fb56fSmrg 24697e6fb56fSmrg if test "${ac_cv_path_mkdir+set}" = set; then 24707e6fb56fSmrg MKDIR_P="$ac_cv_path_mkdir -p" 24717e6fb56fSmrg else 24727e6fb56fSmrg # As a last resort, use the slow shell script. Don't cache a 24737e6fb56fSmrg # value for MKDIR_P within a source directory, because that will 24747e6fb56fSmrg # break other packages using the cache if that directory is 24757e6fb56fSmrg # removed, or if the value is a relative name. 24767e6fb56fSmrg test -d ./--version && rmdir ./--version 24777e6fb56fSmrg MKDIR_P="$ac_install_sh -d" 24787e6fb56fSmrg fi 24797e6fb56fSmrgfi 24807e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 24817e6fb56fSmrg$as_echo "$MKDIR_P" >&6; } 24827e6fb56fSmrg 24837e6fb56fSmrgmkdir_p="$MKDIR_P" 24847e6fb56fSmrgcase $mkdir_p in 24857e6fb56fSmrg [\\/$]* | ?:[\\/]*) ;; 24867e6fb56fSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 24877e6fb56fSmrgesac 24887e6fb56fSmrg 24897e6fb56fSmrgfor ac_prog in gawk mawk nawk awk 24907e6fb56fSmrgdo 24917e6fb56fSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 24927e6fb56fSmrgset dummy $ac_prog; ac_word=$2 24937e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 24947e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 24957e6fb56fSmrgif test "${ac_cv_prog_AWK+set}" = set; then 24967e6fb56fSmrg $as_echo_n "(cached) " >&6 24977e6fb56fSmrgelse 24987e6fb56fSmrg if test -n "$AWK"; then 24997e6fb56fSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 25007e6fb56fSmrgelse 25017e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25027e6fb56fSmrgfor as_dir in $PATH 25037e6fb56fSmrgdo 25047e6fb56fSmrg IFS=$as_save_IFS 25057e6fb56fSmrg test -z "$as_dir" && as_dir=. 25067e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 25077e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25087e6fb56fSmrg ac_cv_prog_AWK="$ac_prog" 25097e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 25107e6fb56fSmrg break 2 25117e6fb56fSmrg fi 25127e6fb56fSmrgdone 25137e6fb56fSmrgdone 25147e6fb56fSmrgIFS=$as_save_IFS 25157e6fb56fSmrg 25167e6fb56fSmrgfi 25177e6fb56fSmrgfi 25187e6fb56fSmrgAWK=$ac_cv_prog_AWK 25197e6fb56fSmrgif test -n "$AWK"; then 25207e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $AWK" >&5 25217e6fb56fSmrg$as_echo "$AWK" >&6; } 25227e6fb56fSmrgelse 25237e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 25247e6fb56fSmrg$as_echo "no" >&6; } 25257e6fb56fSmrgfi 25267e6fb56fSmrg 25277e6fb56fSmrg 25287e6fb56fSmrg test -n "$AWK" && break 25297e6fb56fSmrgdone 25307e6fb56fSmrg 25317e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 25327e6fb56fSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 25337e6fb56fSmrgset x ${MAKE-make} 25347e6fb56fSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 25357e6fb56fSmrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 25367e6fb56fSmrg $as_echo_n "(cached) " >&6 25377e6fb56fSmrgelse 25387e6fb56fSmrg cat >conftest.make <<\_ACEOF 25397e6fb56fSmrgSHELL = /bin/sh 25407e6fb56fSmrgall: 25417e6fb56fSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 25427e6fb56fSmrg_ACEOF 25437e6fb56fSmrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 25447e6fb56fSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 25457e6fb56fSmrg *@@@%%%=?*=@@@%%%*) 25467e6fb56fSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 25477e6fb56fSmrg *) 25487e6fb56fSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 25497e6fb56fSmrgesac 25507e6fb56fSmrgrm -f conftest.make 25517e6fb56fSmrgfi 25527e6fb56fSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 25537e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: yes" >&5 25547e6fb56fSmrg$as_echo "yes" >&6; } 25557e6fb56fSmrg SET_MAKE= 25567e6fb56fSmrgelse 25577e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 25587e6fb56fSmrg$as_echo "no" >&6; } 25597e6fb56fSmrg SET_MAKE="MAKE=${MAKE-make}" 25607e6fb56fSmrgfi 25617e6fb56fSmrg 25627e6fb56fSmrgrm -rf .tst 2>/dev/null 25637e6fb56fSmrgmkdir .tst 2>/dev/null 25647e6fb56fSmrgif test -d .tst; then 25657e6fb56fSmrg am__leading_dot=. 25667e6fb56fSmrgelse 25677e6fb56fSmrg am__leading_dot=_ 25687e6fb56fSmrgfi 25697e6fb56fSmrgrmdir .tst 2>/dev/null 25707e6fb56fSmrg 25717e6fb56fSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 25727e6fb56fSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 25737e6fb56fSmrg # is not polluted with repeated "-I." 25747e6fb56fSmrg am__isrc=' -I$(srcdir)' 25757e6fb56fSmrg # test to see if srcdir already configured 25767e6fb56fSmrg if test -f $srcdir/config.status; then 25777e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 25787e6fb56fSmrg$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 25797e6fb56fSmrg { (exit 1); exit 1; }; } 25807e6fb56fSmrg fi 25817e6fb56fSmrgfi 25827e6fb56fSmrg 25837e6fb56fSmrg# test whether we have cygpath 25847e6fb56fSmrgif test -z "$CYGPATH_W"; then 25857e6fb56fSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 25867e6fb56fSmrg CYGPATH_W='cygpath -w' 25877e6fb56fSmrg else 25887e6fb56fSmrg CYGPATH_W=echo 25897e6fb56fSmrg fi 25907e6fb56fSmrgfi 25917e6fb56fSmrg 25927e6fb56fSmrg 25937e6fb56fSmrg# Define the identity of the package. 25947e6fb56fSmrg PACKAGE='xf86-video-openchrome' 25957e6fb56fSmrg VERSION='0.2.904' 25967e6fb56fSmrg 25977e6fb56fSmrg 25987e6fb56fSmrgcat >>confdefs.h <<_ACEOF 25997e6fb56fSmrg#define PACKAGE "$PACKAGE" 26007e6fb56fSmrg_ACEOF 26017e6fb56fSmrg 26027e6fb56fSmrg 26037e6fb56fSmrgcat >>confdefs.h <<_ACEOF 26047e6fb56fSmrg#define VERSION "$VERSION" 26057e6fb56fSmrg_ACEOF 26067e6fb56fSmrg 26077e6fb56fSmrg# Some tools Automake needs. 26087e6fb56fSmrg 26097e6fb56fSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 26107e6fb56fSmrg 26117e6fb56fSmrg 26127e6fb56fSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 26137e6fb56fSmrg 26147e6fb56fSmrg 26157e6fb56fSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 26167e6fb56fSmrg 26177e6fb56fSmrg 26187e6fb56fSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 26197e6fb56fSmrg 26207e6fb56fSmrg 26217e6fb56fSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 26227e6fb56fSmrg 26237e6fb56fSmrg# We need awk for the "check" target. The system "awk" is bad on 26247e6fb56fSmrg# some platforms. 26257e6fb56fSmrg# Always define AMTAR for backward compatibility. 26267e6fb56fSmrg 26277e6fb56fSmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 26287e6fb56fSmrg 26297e6fb56fSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 26307e6fb56fSmrg 26317e6fb56fSmrg 26327e6fb56fSmrg 26337e6fb56fSmrg 26347e6fb56fSmrg 26357e6fb56fSmrg 26367e6fb56fSmrg 26377e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 26387e6fb56fSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 26397e6fb56fSmrg # Check whether --enable-maintainer-mode was given. 26407e6fb56fSmrgif test "${enable_maintainer_mode+set}" = set; then 26417e6fb56fSmrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 26427e6fb56fSmrgelse 26437e6fb56fSmrg USE_MAINTAINER_MODE=no 26447e6fb56fSmrgfi 26457e6fb56fSmrg 26467e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 26477e6fb56fSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 26487e6fb56fSmrg if test $USE_MAINTAINER_MODE = yes; then 26497e6fb56fSmrg MAINTAINER_MODE_TRUE= 26507e6fb56fSmrg MAINTAINER_MODE_FALSE='#' 26517e6fb56fSmrgelse 26527e6fb56fSmrg MAINTAINER_MODE_TRUE='#' 26537e6fb56fSmrg MAINTAINER_MODE_FALSE= 26547e6fb56fSmrgfi 26557e6fb56fSmrg 26567e6fb56fSmrg MAINT=$MAINTAINER_MODE_TRUE 26577e6fb56fSmrg 26587e6fb56fSmrg 26597e6fb56fSmrg 26607e6fb56fSmrg# Checks for programs. 26617e6fb56fSmrg# Check whether --enable-static was given. 26627e6fb56fSmrgif test "${enable_static+set}" = set; then 26637e6fb56fSmrg enableval=$enable_static; p=${PACKAGE-default} 26647e6fb56fSmrg case $enableval in 26657e6fb56fSmrg yes) enable_static=yes ;; 26667e6fb56fSmrg no) enable_static=no ;; 26677e6fb56fSmrg *) 26687e6fb56fSmrg enable_static=no 26697e6fb56fSmrg # Look at the argument we got. We use all the common list separators. 26707e6fb56fSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 26717e6fb56fSmrg for pkg in $enableval; do 26727e6fb56fSmrg IFS="$lt_save_ifs" 26737e6fb56fSmrg if test "X$pkg" = "X$p"; then 26747e6fb56fSmrg enable_static=yes 26757e6fb56fSmrg fi 26767e6fb56fSmrg done 26777e6fb56fSmrg IFS="$lt_save_ifs" 26787e6fb56fSmrg ;; 26797e6fb56fSmrg esac 26807e6fb56fSmrgelse 26817e6fb56fSmrg enable_static=no 26827e6fb56fSmrgfi 26837e6fb56fSmrg 26847e6fb56fSmrg 26857e6fb56fSmrg 26867e6fb56fSmrg# Check whether --enable-shared was given. 26877e6fb56fSmrgif test "${enable_shared+set}" = set; then 26887e6fb56fSmrg enableval=$enable_shared; p=${PACKAGE-default} 26897e6fb56fSmrg case $enableval in 26907e6fb56fSmrg yes) enable_shared=yes ;; 26917e6fb56fSmrg no) enable_shared=no ;; 26927e6fb56fSmrg *) 26937e6fb56fSmrg enable_shared=no 26947e6fb56fSmrg # Look at the argument we got. We use all the common list separators. 26957e6fb56fSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 26967e6fb56fSmrg for pkg in $enableval; do 26977e6fb56fSmrg IFS="$lt_save_ifs" 26987e6fb56fSmrg if test "X$pkg" = "X$p"; then 26997e6fb56fSmrg enable_shared=yes 27007e6fb56fSmrg fi 27017e6fb56fSmrg done 27027e6fb56fSmrg IFS="$lt_save_ifs" 27037e6fb56fSmrg ;; 27047e6fb56fSmrg esac 27057e6fb56fSmrgelse 27067e6fb56fSmrg enable_shared=yes 27077e6fb56fSmrgfi 27087e6fb56fSmrg 27097e6fb56fSmrg 27107e6fb56fSmrg# Check whether --enable-fast-install was given. 27117e6fb56fSmrgif test "${enable_fast_install+set}" = set; then 27127e6fb56fSmrg enableval=$enable_fast_install; p=${PACKAGE-default} 27137e6fb56fSmrg case $enableval in 27147e6fb56fSmrg yes) enable_fast_install=yes ;; 27157e6fb56fSmrg no) enable_fast_install=no ;; 27167e6fb56fSmrg *) 27177e6fb56fSmrg enable_fast_install=no 27187e6fb56fSmrg # Look at the argument we got. We use all the common list separators. 27197e6fb56fSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 27207e6fb56fSmrg for pkg in $enableval; do 27217e6fb56fSmrg IFS="$lt_save_ifs" 27227e6fb56fSmrg if test "X$pkg" = "X$p"; then 27237e6fb56fSmrg enable_fast_install=yes 27247e6fb56fSmrg fi 27257e6fb56fSmrg done 27267e6fb56fSmrg IFS="$lt_save_ifs" 27277e6fb56fSmrg ;; 27287e6fb56fSmrg esac 27297e6fb56fSmrgelse 27307e6fb56fSmrg enable_fast_install=yes 27317e6fb56fSmrgfi 27327e6fb56fSmrg 27337e6fb56fSmrg 27347e6fb56fSmrg# Make sure we can run config.sub. 27357e6fb56fSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 27367e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 27377e6fb56fSmrg$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 27387e6fb56fSmrg { (exit 1); exit 1; }; } 27397e6fb56fSmrg 27407e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking build system type" >&5 27417e6fb56fSmrg$as_echo_n "checking build system type... " >&6; } 27427e6fb56fSmrgif test "${ac_cv_build+set}" = set; then 27437e6fb56fSmrg $as_echo_n "(cached) " >&6 27447e6fb56fSmrgelse 27457e6fb56fSmrg ac_build_alias=$build_alias 27467e6fb56fSmrgtest "x$ac_build_alias" = x && 27477e6fb56fSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 27487e6fb56fSmrgtest "x$ac_build_alias" = x && 27497e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 27507e6fb56fSmrg$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 27517e6fb56fSmrg { (exit 1); exit 1; }; } 27527e6fb56fSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 27537e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 27547e6fb56fSmrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 27557e6fb56fSmrg { (exit 1); exit 1; }; } 27567e6fb56fSmrg 27577e6fb56fSmrgfi 27587e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 27597e6fb56fSmrg$as_echo "$ac_cv_build" >&6; } 27607e6fb56fSmrgcase $ac_cv_build in 27617e6fb56fSmrg*-*-*) ;; 27627e6fb56fSmrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 27637e6fb56fSmrg$as_echo "$as_me: error: invalid value of canonical build" >&2;} 27647e6fb56fSmrg { (exit 1); exit 1; }; };; 27657e6fb56fSmrgesac 27667e6fb56fSmrgbuild=$ac_cv_build 27677e6fb56fSmrgac_save_IFS=$IFS; IFS='-' 27687e6fb56fSmrgset x $ac_cv_build 27697e6fb56fSmrgshift 27707e6fb56fSmrgbuild_cpu=$1 27717e6fb56fSmrgbuild_vendor=$2 27727e6fb56fSmrgshift; shift 27737e6fb56fSmrg# Remember, the first character of IFS is used to create $*, 27747e6fb56fSmrg# except with old shells: 27757e6fb56fSmrgbuild_os=$* 27767e6fb56fSmrgIFS=$ac_save_IFS 27777e6fb56fSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 27787e6fb56fSmrg 27797e6fb56fSmrg 27807e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking host system type" >&5 27817e6fb56fSmrg$as_echo_n "checking host system type... " >&6; } 27827e6fb56fSmrgif test "${ac_cv_host+set}" = set; then 27837e6fb56fSmrg $as_echo_n "(cached) " >&6 27847e6fb56fSmrgelse 27857e6fb56fSmrg if test "x$host_alias" = x; then 27867e6fb56fSmrg ac_cv_host=$ac_cv_build 27877e6fb56fSmrgelse 27887e6fb56fSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 27897e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 27907e6fb56fSmrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 27917e6fb56fSmrg { (exit 1); exit 1; }; } 27927e6fb56fSmrgfi 27937e6fb56fSmrg 27947e6fb56fSmrgfi 27957e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 27967e6fb56fSmrg$as_echo "$ac_cv_host" >&6; } 27977e6fb56fSmrgcase $ac_cv_host in 27987e6fb56fSmrg*-*-*) ;; 27997e6fb56fSmrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 28007e6fb56fSmrg$as_echo "$as_me: error: invalid value of canonical host" >&2;} 28017e6fb56fSmrg { (exit 1); exit 1; }; };; 28027e6fb56fSmrgesac 28037e6fb56fSmrghost=$ac_cv_host 28047e6fb56fSmrgac_save_IFS=$IFS; IFS='-' 28057e6fb56fSmrgset x $ac_cv_host 28067e6fb56fSmrgshift 28077e6fb56fSmrghost_cpu=$1 28087e6fb56fSmrghost_vendor=$2 28097e6fb56fSmrgshift; shift 28107e6fb56fSmrg# Remember, the first character of IFS is used to create $*, 28117e6fb56fSmrg# except with old shells: 28127e6fb56fSmrghost_os=$* 28137e6fb56fSmrgIFS=$ac_save_IFS 28147e6fb56fSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 28157e6fb56fSmrg 28167e6fb56fSmrg 28177e6fb56fSmrgDEPDIR="${am__leading_dot}deps" 28187e6fb56fSmrg 28197e6fb56fSmrgac_config_commands="$ac_config_commands depfiles" 28207e6fb56fSmrg 28217e6fb56fSmrg 28227e6fb56fSmrgam_make=${MAKE-make} 28237e6fb56fSmrgcat > confinc << 'END' 28247e6fb56fSmrgam__doit: 28257e6fb56fSmrg @echo this is the am__doit target 28267e6fb56fSmrg.PHONY: am__doit 28277e6fb56fSmrgEND 28287e6fb56fSmrg# If we don't find an include directive, just comment out the code. 28297e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 28307e6fb56fSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 28317e6fb56fSmrgam__include="#" 28327e6fb56fSmrgam__quote= 28337e6fb56fSmrg_am_result=none 28347e6fb56fSmrg# First try GNU make style include. 28357e6fb56fSmrgecho "include confinc" > confmf 28367e6fb56fSmrg# Ignore all kinds of additional output from `make'. 28377e6fb56fSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 28387e6fb56fSmrg*the\ am__doit\ target*) 28397e6fb56fSmrg am__include=include 28407e6fb56fSmrg am__quote= 28417e6fb56fSmrg _am_result=GNU 28427e6fb56fSmrg ;; 28437e6fb56fSmrgesac 28447e6fb56fSmrg# Now try BSD make style include. 28457e6fb56fSmrgif test "$am__include" = "#"; then 28467e6fb56fSmrg echo '.include "confinc"' > confmf 28477e6fb56fSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 28487e6fb56fSmrg *the\ am__doit\ target*) 28497e6fb56fSmrg am__include=.include 28507e6fb56fSmrg am__quote="\"" 28517e6fb56fSmrg _am_result=BSD 28527e6fb56fSmrg ;; 28537e6fb56fSmrg esac 28547e6fb56fSmrgfi 28557e6fb56fSmrg 28567e6fb56fSmrg 28577e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 28587e6fb56fSmrg$as_echo "$_am_result" >&6; } 28597e6fb56fSmrgrm -f confinc confmf 28607e6fb56fSmrg 28617e6fb56fSmrg# Check whether --enable-dependency-tracking was given. 28627e6fb56fSmrgif test "${enable_dependency_tracking+set}" = set; then 28637e6fb56fSmrg enableval=$enable_dependency_tracking; 28647e6fb56fSmrgfi 28657e6fb56fSmrg 28667e6fb56fSmrgif test "x$enable_dependency_tracking" != xno; then 28677e6fb56fSmrg am_depcomp="$ac_aux_dir/depcomp" 28687e6fb56fSmrg AMDEPBACKSLASH='\' 28697e6fb56fSmrgfi 28707e6fb56fSmrg if test "x$enable_dependency_tracking" != xno; then 28717e6fb56fSmrg AMDEP_TRUE= 28727e6fb56fSmrg AMDEP_FALSE='#' 28737e6fb56fSmrgelse 28747e6fb56fSmrg AMDEP_TRUE='#' 28757e6fb56fSmrg AMDEP_FALSE= 28767e6fb56fSmrgfi 28777e6fb56fSmrg 28787e6fb56fSmrg 28797e6fb56fSmrgac_ext=c 28807e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 28817e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28827e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28837e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 28847e6fb56fSmrgif test -n "$ac_tool_prefix"; then 28857e6fb56fSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 28867e6fb56fSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 28877e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 28887e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 28897e6fb56fSmrgif test "${ac_cv_prog_CC+set}" = set; then 28907e6fb56fSmrg $as_echo_n "(cached) " >&6 28917e6fb56fSmrgelse 28927e6fb56fSmrg if test -n "$CC"; then 28937e6fb56fSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 28947e6fb56fSmrgelse 28957e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28967e6fb56fSmrgfor as_dir in $PATH 28977e6fb56fSmrgdo 28987e6fb56fSmrg IFS=$as_save_IFS 28997e6fb56fSmrg test -z "$as_dir" && as_dir=. 29007e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29017e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29027e6fb56fSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 29037e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 29047e6fb56fSmrg break 2 29057e6fb56fSmrg fi 29067e6fb56fSmrgdone 29077e6fb56fSmrgdone 29087e6fb56fSmrgIFS=$as_save_IFS 29097e6fb56fSmrg 29107e6fb56fSmrgfi 29117e6fb56fSmrgfi 29127e6fb56fSmrgCC=$ac_cv_prog_CC 29137e6fb56fSmrgif test -n "$CC"; then 29147e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 29157e6fb56fSmrg$as_echo "$CC" >&6; } 29167e6fb56fSmrgelse 29177e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 29187e6fb56fSmrg$as_echo "no" >&6; } 29197e6fb56fSmrgfi 29207e6fb56fSmrg 29217e6fb56fSmrg 29227e6fb56fSmrgfi 29237e6fb56fSmrgif test -z "$ac_cv_prog_CC"; then 29247e6fb56fSmrg ac_ct_CC=$CC 29257e6fb56fSmrg # Extract the first word of "gcc", so it can be a program name with args. 29267e6fb56fSmrgset dummy gcc; ac_word=$2 29277e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 29287e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 29297e6fb56fSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 29307e6fb56fSmrg $as_echo_n "(cached) " >&6 29317e6fb56fSmrgelse 29327e6fb56fSmrg if test -n "$ac_ct_CC"; then 29337e6fb56fSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 29347e6fb56fSmrgelse 29357e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29367e6fb56fSmrgfor as_dir in $PATH 29377e6fb56fSmrgdo 29387e6fb56fSmrg IFS=$as_save_IFS 29397e6fb56fSmrg test -z "$as_dir" && as_dir=. 29407e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29417e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29427e6fb56fSmrg ac_cv_prog_ac_ct_CC="gcc" 29437e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 29447e6fb56fSmrg break 2 29457e6fb56fSmrg fi 29467e6fb56fSmrgdone 29477e6fb56fSmrgdone 29487e6fb56fSmrgIFS=$as_save_IFS 29497e6fb56fSmrg 29507e6fb56fSmrgfi 29517e6fb56fSmrgfi 29527e6fb56fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 29537e6fb56fSmrgif test -n "$ac_ct_CC"; then 29547e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 29557e6fb56fSmrg$as_echo "$ac_ct_CC" >&6; } 29567e6fb56fSmrgelse 29577e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 29587e6fb56fSmrg$as_echo "no" >&6; } 29597e6fb56fSmrgfi 29607e6fb56fSmrg 29617e6fb56fSmrg if test "x$ac_ct_CC" = x; then 29627e6fb56fSmrg CC="" 29637e6fb56fSmrg else 29647e6fb56fSmrg case $cross_compiling:$ac_tool_warned in 29657e6fb56fSmrgyes:) 29667e6fb56fSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 29677e6fb56fSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29687e6fb56fSmrgac_tool_warned=yes ;; 29697e6fb56fSmrgesac 29707e6fb56fSmrg CC=$ac_ct_CC 29717e6fb56fSmrg fi 29727e6fb56fSmrgelse 29737e6fb56fSmrg CC="$ac_cv_prog_CC" 29747e6fb56fSmrgfi 29757e6fb56fSmrg 29767e6fb56fSmrgif test -z "$CC"; then 29777e6fb56fSmrg if test -n "$ac_tool_prefix"; then 29787e6fb56fSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 29797e6fb56fSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 29807e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 29817e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 29827e6fb56fSmrgif test "${ac_cv_prog_CC+set}" = set; then 29837e6fb56fSmrg $as_echo_n "(cached) " >&6 29847e6fb56fSmrgelse 29857e6fb56fSmrg if test -n "$CC"; then 29867e6fb56fSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 29877e6fb56fSmrgelse 29887e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29897e6fb56fSmrgfor as_dir in $PATH 29907e6fb56fSmrgdo 29917e6fb56fSmrg IFS=$as_save_IFS 29927e6fb56fSmrg test -z "$as_dir" && as_dir=. 29937e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29947e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29957e6fb56fSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 29967e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 29977e6fb56fSmrg break 2 29987e6fb56fSmrg fi 29997e6fb56fSmrgdone 30007e6fb56fSmrgdone 30017e6fb56fSmrgIFS=$as_save_IFS 30027e6fb56fSmrg 30037e6fb56fSmrgfi 30047e6fb56fSmrgfi 30057e6fb56fSmrgCC=$ac_cv_prog_CC 30067e6fb56fSmrgif test -n "$CC"; then 30077e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 30087e6fb56fSmrg$as_echo "$CC" >&6; } 30097e6fb56fSmrgelse 30107e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 30117e6fb56fSmrg$as_echo "no" >&6; } 30127e6fb56fSmrgfi 30137e6fb56fSmrg 30147e6fb56fSmrg 30157e6fb56fSmrg fi 30167e6fb56fSmrgfi 30177e6fb56fSmrgif test -z "$CC"; then 30187e6fb56fSmrg # Extract the first word of "cc", so it can be a program name with args. 30197e6fb56fSmrgset dummy cc; ac_word=$2 30207e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 30217e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 30227e6fb56fSmrgif test "${ac_cv_prog_CC+set}" = set; then 30237e6fb56fSmrg $as_echo_n "(cached) " >&6 30247e6fb56fSmrgelse 30257e6fb56fSmrg if test -n "$CC"; then 30267e6fb56fSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 30277e6fb56fSmrgelse 30287e6fb56fSmrg ac_prog_rejected=no 30297e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30307e6fb56fSmrgfor as_dir in $PATH 30317e6fb56fSmrgdo 30327e6fb56fSmrg IFS=$as_save_IFS 30337e6fb56fSmrg test -z "$as_dir" && as_dir=. 30347e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 30357e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 30367e6fb56fSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 30377e6fb56fSmrg ac_prog_rejected=yes 30387e6fb56fSmrg continue 30397e6fb56fSmrg fi 30407e6fb56fSmrg ac_cv_prog_CC="cc" 30417e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 30427e6fb56fSmrg break 2 30437e6fb56fSmrg fi 30447e6fb56fSmrgdone 30457e6fb56fSmrgdone 30467e6fb56fSmrgIFS=$as_save_IFS 30477e6fb56fSmrg 30487e6fb56fSmrgif test $ac_prog_rejected = yes; then 30497e6fb56fSmrg # We found a bogon in the path, so make sure we never use it. 30507e6fb56fSmrg set dummy $ac_cv_prog_CC 30517e6fb56fSmrg shift 30527e6fb56fSmrg if test $# != 0; then 30537e6fb56fSmrg # We chose a different compiler from the bogus one. 30547e6fb56fSmrg # However, it has the same basename, so the bogon will be chosen 30557e6fb56fSmrg # first if we set CC to just the basename; use the full file name. 30567e6fb56fSmrg shift 30577e6fb56fSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 30587e6fb56fSmrg fi 30597e6fb56fSmrgfi 30607e6fb56fSmrgfi 30617e6fb56fSmrgfi 30627e6fb56fSmrgCC=$ac_cv_prog_CC 30637e6fb56fSmrgif test -n "$CC"; then 30647e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 30657e6fb56fSmrg$as_echo "$CC" >&6; } 30667e6fb56fSmrgelse 30677e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 30687e6fb56fSmrg$as_echo "no" >&6; } 30697e6fb56fSmrgfi 30707e6fb56fSmrg 30717e6fb56fSmrg 30727e6fb56fSmrgfi 30737e6fb56fSmrgif test -z "$CC"; then 30747e6fb56fSmrg if test -n "$ac_tool_prefix"; then 30757e6fb56fSmrg for ac_prog in cl.exe 30767e6fb56fSmrg do 30777e6fb56fSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30787e6fb56fSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 30797e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 30807e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 30817e6fb56fSmrgif test "${ac_cv_prog_CC+set}" = set; then 30827e6fb56fSmrg $as_echo_n "(cached) " >&6 30837e6fb56fSmrgelse 30847e6fb56fSmrg if test -n "$CC"; then 30857e6fb56fSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 30867e6fb56fSmrgelse 30877e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30887e6fb56fSmrgfor as_dir in $PATH 30897e6fb56fSmrgdo 30907e6fb56fSmrg IFS=$as_save_IFS 30917e6fb56fSmrg test -z "$as_dir" && as_dir=. 30927e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 30937e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 30947e6fb56fSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 30957e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 30967e6fb56fSmrg break 2 30977e6fb56fSmrg fi 30987e6fb56fSmrgdone 30997e6fb56fSmrgdone 31007e6fb56fSmrgIFS=$as_save_IFS 31017e6fb56fSmrg 31027e6fb56fSmrgfi 31037e6fb56fSmrgfi 31047e6fb56fSmrgCC=$ac_cv_prog_CC 31057e6fb56fSmrgif test -n "$CC"; then 31067e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 31077e6fb56fSmrg$as_echo "$CC" >&6; } 31087e6fb56fSmrgelse 31097e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 31107e6fb56fSmrg$as_echo "no" >&6; } 31117e6fb56fSmrgfi 31127e6fb56fSmrg 31137e6fb56fSmrg 31147e6fb56fSmrg test -n "$CC" && break 31157e6fb56fSmrg done 31167e6fb56fSmrgfi 31177e6fb56fSmrgif test -z "$CC"; then 31187e6fb56fSmrg ac_ct_CC=$CC 31197e6fb56fSmrg for ac_prog in cl.exe 31207e6fb56fSmrgdo 31217e6fb56fSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 31227e6fb56fSmrgset dummy $ac_prog; ac_word=$2 31237e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 31247e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 31257e6fb56fSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 31267e6fb56fSmrg $as_echo_n "(cached) " >&6 31277e6fb56fSmrgelse 31287e6fb56fSmrg if test -n "$ac_ct_CC"; then 31297e6fb56fSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 31307e6fb56fSmrgelse 31317e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31327e6fb56fSmrgfor as_dir in $PATH 31337e6fb56fSmrgdo 31347e6fb56fSmrg IFS=$as_save_IFS 31357e6fb56fSmrg test -z "$as_dir" && as_dir=. 31367e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 31377e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 31387e6fb56fSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 31397e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 31407e6fb56fSmrg break 2 31417e6fb56fSmrg fi 31427e6fb56fSmrgdone 31437e6fb56fSmrgdone 31447e6fb56fSmrgIFS=$as_save_IFS 31457e6fb56fSmrg 31467e6fb56fSmrgfi 31477e6fb56fSmrgfi 31487e6fb56fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 31497e6fb56fSmrgif test -n "$ac_ct_CC"; then 31507e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 31517e6fb56fSmrg$as_echo "$ac_ct_CC" >&6; } 31527e6fb56fSmrgelse 31537e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 31547e6fb56fSmrg$as_echo "no" >&6; } 31557e6fb56fSmrgfi 31567e6fb56fSmrg 31577e6fb56fSmrg 31587e6fb56fSmrg test -n "$ac_ct_CC" && break 31597e6fb56fSmrgdone 31607e6fb56fSmrg 31617e6fb56fSmrg if test "x$ac_ct_CC" = x; then 31627e6fb56fSmrg CC="" 31637e6fb56fSmrg else 31647e6fb56fSmrg case $cross_compiling:$ac_tool_warned in 31657e6fb56fSmrgyes:) 31667e6fb56fSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 31677e6fb56fSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31687e6fb56fSmrgac_tool_warned=yes ;; 31697e6fb56fSmrgesac 31707e6fb56fSmrg CC=$ac_ct_CC 31717e6fb56fSmrg fi 31727e6fb56fSmrgfi 31737e6fb56fSmrg 31747e6fb56fSmrgfi 31757e6fb56fSmrg 31767e6fb56fSmrg 31777e6fb56fSmrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 31787e6fb56fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31797e6fb56fSmrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 31807e6fb56fSmrgSee \`config.log' for more details." >&5 31817e6fb56fSmrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 31827e6fb56fSmrgSee \`config.log' for more details." >&2;} 31837e6fb56fSmrg { (exit 1); exit 1; }; }; } 31847e6fb56fSmrg 31857e6fb56fSmrg# Provide some information about the compiler. 31867e6fb56fSmrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 31877e6fb56fSmrgset X $ac_compile 31887e6fb56fSmrgac_compiler=$2 31897e6fb56fSmrg{ (ac_try="$ac_compiler --version >&5" 31907e6fb56fSmrgcase "(($ac_try" in 31917e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31927e6fb56fSmrg *) ac_try_echo=$ac_try;; 31937e6fb56fSmrgesac 31947e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 31957e6fb56fSmrg$as_echo "$ac_try_echo") >&5 31967e6fb56fSmrg (eval "$ac_compiler --version >&5") 2>&5 31977e6fb56fSmrg ac_status=$? 31987e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 31997e6fb56fSmrg (exit $ac_status); } 32007e6fb56fSmrg{ (ac_try="$ac_compiler -v >&5" 32017e6fb56fSmrgcase "(($ac_try" in 32027e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32037e6fb56fSmrg *) ac_try_echo=$ac_try;; 32047e6fb56fSmrgesac 32057e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 32067e6fb56fSmrg$as_echo "$ac_try_echo") >&5 32077e6fb56fSmrg (eval "$ac_compiler -v >&5") 2>&5 32087e6fb56fSmrg ac_status=$? 32097e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 32107e6fb56fSmrg (exit $ac_status); } 32117e6fb56fSmrg{ (ac_try="$ac_compiler -V >&5" 32127e6fb56fSmrgcase "(($ac_try" in 32137e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32147e6fb56fSmrg *) ac_try_echo=$ac_try;; 32157e6fb56fSmrgesac 32167e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 32177e6fb56fSmrg$as_echo "$ac_try_echo") >&5 32187e6fb56fSmrg (eval "$ac_compiler -V >&5") 2>&5 32197e6fb56fSmrg ac_status=$? 32207e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 32217e6fb56fSmrg (exit $ac_status); } 32227e6fb56fSmrg 32237e6fb56fSmrgcat >conftest.$ac_ext <<_ACEOF 32247e6fb56fSmrg/* confdefs.h. */ 32257e6fb56fSmrg_ACEOF 32267e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 32277e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 32287e6fb56fSmrg/* end confdefs.h. */ 32297e6fb56fSmrg 32307e6fb56fSmrgint 32317e6fb56fSmrgmain () 32327e6fb56fSmrg{ 32337e6fb56fSmrg 32347e6fb56fSmrg ; 32357e6fb56fSmrg return 0; 32367e6fb56fSmrg} 32377e6fb56fSmrg_ACEOF 32387e6fb56fSmrgac_clean_files_save=$ac_clean_files 32397e6fb56fSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 32407e6fb56fSmrg# Try to create an executable without -o first, disregard a.out. 32417e6fb56fSmrg# It will help us diagnose broken compilers, and finding out an intuition 32427e6fb56fSmrg# of exeext. 32437e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 32447e6fb56fSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 32457e6fb56fSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 32467e6fb56fSmrg 32477e6fb56fSmrg# The possible output files: 32487e6fb56fSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 32497e6fb56fSmrg 32507e6fb56fSmrgac_rmfiles= 32517e6fb56fSmrgfor ac_file in $ac_files 32527e6fb56fSmrgdo 32537e6fb56fSmrg case $ac_file in 32547e6fb56fSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 32557e6fb56fSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 32567e6fb56fSmrg esac 32577e6fb56fSmrgdone 32587e6fb56fSmrgrm -f $ac_rmfiles 32597e6fb56fSmrg 32607e6fb56fSmrgif { (ac_try="$ac_link_default" 32617e6fb56fSmrgcase "(($ac_try" in 32627e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32637e6fb56fSmrg *) ac_try_echo=$ac_try;; 32647e6fb56fSmrgesac 32657e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 32667e6fb56fSmrg$as_echo "$ac_try_echo") >&5 32677e6fb56fSmrg (eval "$ac_link_default") 2>&5 32687e6fb56fSmrg ac_status=$? 32697e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 32707e6fb56fSmrg (exit $ac_status); }; then 32717e6fb56fSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 32727e6fb56fSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 32737e6fb56fSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 32747e6fb56fSmrg# so that the user can short-circuit this test for compilers unknown to 32757e6fb56fSmrg# Autoconf. 32767e6fb56fSmrgfor ac_file in $ac_files '' 32777e6fb56fSmrgdo 32787e6fb56fSmrg test -f "$ac_file" || continue 32797e6fb56fSmrg case $ac_file in 32807e6fb56fSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 32817e6fb56fSmrg ;; 32827e6fb56fSmrg [ab].out ) 32837e6fb56fSmrg # We found the default executable, but exeext='' is most 32847e6fb56fSmrg # certainly right. 32857e6fb56fSmrg break;; 32867e6fb56fSmrg *.* ) 32877e6fb56fSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 32887e6fb56fSmrg then :; else 32897e6fb56fSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 32907e6fb56fSmrg fi 32917e6fb56fSmrg # We set ac_cv_exeext here because the later test for it is not 32927e6fb56fSmrg # safe: cross compilers may not add the suffix if given an `-o' 32937e6fb56fSmrg # argument, so we may need to know it at that point already. 32947e6fb56fSmrg # Even if this section looks crufty: it has the advantage of 32957e6fb56fSmrg # actually working. 32967e6fb56fSmrg break;; 32977e6fb56fSmrg * ) 32987e6fb56fSmrg break;; 32997e6fb56fSmrg esac 33007e6fb56fSmrgdone 33017e6fb56fSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 33027e6fb56fSmrg 33037e6fb56fSmrgelse 33047e6fb56fSmrg ac_file='' 33057e6fb56fSmrgfi 33067e6fb56fSmrg 33077e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 33087e6fb56fSmrg$as_echo "$ac_file" >&6; } 33097e6fb56fSmrgif test -z "$ac_file"; then 33107e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 33117e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 33127e6fb56fSmrg 33137e6fb56fSmrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 33147e6fb56fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33157e6fb56fSmrg{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 33167e6fb56fSmrgSee \`config.log' for more details." >&5 33177e6fb56fSmrg$as_echo "$as_me: error: C compiler cannot create executables 33187e6fb56fSmrgSee \`config.log' for more details." >&2;} 33197e6fb56fSmrg { (exit 77); exit 77; }; }; } 33207e6fb56fSmrgfi 33217e6fb56fSmrg 33227e6fb56fSmrgac_exeext=$ac_cv_exeext 33237e6fb56fSmrg 33247e6fb56fSmrg# Check that the compiler produces executables we can run. If not, either 33257e6fb56fSmrg# the compiler is broken, or we cross compile. 33267e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 33277e6fb56fSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 33287e6fb56fSmrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 33297e6fb56fSmrg# If not cross compiling, check that we can run a simple program. 33307e6fb56fSmrgif test "$cross_compiling" != yes; then 33317e6fb56fSmrg if { ac_try='./$ac_file' 33327e6fb56fSmrg { (case "(($ac_try" in 33337e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33347e6fb56fSmrg *) ac_try_echo=$ac_try;; 33357e6fb56fSmrgesac 33367e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 33377e6fb56fSmrg$as_echo "$ac_try_echo") >&5 33387e6fb56fSmrg (eval "$ac_try") 2>&5 33397e6fb56fSmrg ac_status=$? 33407e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 33417e6fb56fSmrg (exit $ac_status); }; }; then 33427e6fb56fSmrg cross_compiling=no 33437e6fb56fSmrg else 33447e6fb56fSmrg if test "$cross_compiling" = maybe; then 33457e6fb56fSmrg cross_compiling=yes 33467e6fb56fSmrg else 33477e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 33487e6fb56fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33497e6fb56fSmrg{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 33507e6fb56fSmrgIf you meant to cross compile, use \`--host'. 33517e6fb56fSmrgSee \`config.log' for more details." >&5 33527e6fb56fSmrg$as_echo "$as_me: error: cannot run C compiled programs. 33537e6fb56fSmrgIf you meant to cross compile, use \`--host'. 33547e6fb56fSmrgSee \`config.log' for more details." >&2;} 33557e6fb56fSmrg { (exit 1); exit 1; }; }; } 33567e6fb56fSmrg fi 33577e6fb56fSmrg fi 33587e6fb56fSmrgfi 33597e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: yes" >&5 33607e6fb56fSmrg$as_echo "yes" >&6; } 33617e6fb56fSmrg 33627e6fb56fSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 33637e6fb56fSmrgac_clean_files=$ac_clean_files_save 33647e6fb56fSmrg# Check that the compiler produces executables we can run. If not, either 33657e6fb56fSmrg# the compiler is broken, or we cross compile. 33667e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 33677e6fb56fSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 33687e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 33697e6fb56fSmrg$as_echo "$cross_compiling" >&6; } 33707e6fb56fSmrg 33717e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 33727e6fb56fSmrg$as_echo_n "checking for suffix of executables... " >&6; } 33737e6fb56fSmrgif { (ac_try="$ac_link" 33747e6fb56fSmrgcase "(($ac_try" in 33757e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33767e6fb56fSmrg *) ac_try_echo=$ac_try;; 33777e6fb56fSmrgesac 33787e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 33797e6fb56fSmrg$as_echo "$ac_try_echo") >&5 33807e6fb56fSmrg (eval "$ac_link") 2>&5 33817e6fb56fSmrg ac_status=$? 33827e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 33837e6fb56fSmrg (exit $ac_status); }; then 33847e6fb56fSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 33857e6fb56fSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 33867e6fb56fSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 33877e6fb56fSmrg# `rm'. 33887e6fb56fSmrgfor ac_file in conftest.exe conftest conftest.*; do 33897e6fb56fSmrg test -f "$ac_file" || continue 33907e6fb56fSmrg case $ac_file in 33917e6fb56fSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 33927e6fb56fSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 33937e6fb56fSmrg break;; 33947e6fb56fSmrg * ) break;; 33957e6fb56fSmrg esac 33967e6fb56fSmrgdone 33977e6fb56fSmrgelse 33987e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 33997e6fb56fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34007e6fb56fSmrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 34017e6fb56fSmrgSee \`config.log' for more details." >&5 34027e6fb56fSmrg$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 34037e6fb56fSmrgSee \`config.log' for more details." >&2;} 34047e6fb56fSmrg { (exit 1); exit 1; }; }; } 34057e6fb56fSmrgfi 34067e6fb56fSmrg 34077e6fb56fSmrgrm -f conftest$ac_cv_exeext 34087e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 34097e6fb56fSmrg$as_echo "$ac_cv_exeext" >&6; } 34107e6fb56fSmrg 34117e6fb56fSmrgrm -f conftest.$ac_ext 34127e6fb56fSmrgEXEEXT=$ac_cv_exeext 34137e6fb56fSmrgac_exeext=$EXEEXT 34147e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 34157e6fb56fSmrg$as_echo_n "checking for suffix of object files... " >&6; } 34167e6fb56fSmrgif test "${ac_cv_objext+set}" = set; then 34177e6fb56fSmrg $as_echo_n "(cached) " >&6 34187e6fb56fSmrgelse 34197e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 34207e6fb56fSmrg/* confdefs.h. */ 34217e6fb56fSmrg_ACEOF 34227e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 34237e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 34247e6fb56fSmrg/* end confdefs.h. */ 34257e6fb56fSmrg 34267e6fb56fSmrgint 34277e6fb56fSmrgmain () 34287e6fb56fSmrg{ 34297e6fb56fSmrg 34307e6fb56fSmrg ; 34317e6fb56fSmrg return 0; 34327e6fb56fSmrg} 34337e6fb56fSmrg_ACEOF 34347e6fb56fSmrgrm -f conftest.o conftest.obj 34357e6fb56fSmrgif { (ac_try="$ac_compile" 34367e6fb56fSmrgcase "(($ac_try" in 34377e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34387e6fb56fSmrg *) ac_try_echo=$ac_try;; 34397e6fb56fSmrgesac 34407e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 34417e6fb56fSmrg$as_echo "$ac_try_echo") >&5 34427e6fb56fSmrg (eval "$ac_compile") 2>&5 34437e6fb56fSmrg ac_status=$? 34447e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 34457e6fb56fSmrg (exit $ac_status); }; then 34467e6fb56fSmrg for ac_file in conftest.o conftest.obj conftest.*; do 34477e6fb56fSmrg test -f "$ac_file" || continue; 34487e6fb56fSmrg case $ac_file in 34497e6fb56fSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 34507e6fb56fSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 34517e6fb56fSmrg break;; 34527e6fb56fSmrg esac 34537e6fb56fSmrgdone 34547e6fb56fSmrgelse 34557e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 34567e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 34577e6fb56fSmrg 34587e6fb56fSmrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 34597e6fb56fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34607e6fb56fSmrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 34617e6fb56fSmrgSee \`config.log' for more details." >&5 34627e6fb56fSmrg$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 34637e6fb56fSmrgSee \`config.log' for more details." >&2;} 34647e6fb56fSmrg { (exit 1); exit 1; }; }; } 34657e6fb56fSmrgfi 34667e6fb56fSmrg 34677e6fb56fSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 34687e6fb56fSmrgfi 34697e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 34707e6fb56fSmrg$as_echo "$ac_cv_objext" >&6; } 34717e6fb56fSmrgOBJEXT=$ac_cv_objext 34727e6fb56fSmrgac_objext=$OBJEXT 34737e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 34747e6fb56fSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 34757e6fb56fSmrgif test "${ac_cv_c_compiler_gnu+set}" = set; then 34767e6fb56fSmrg $as_echo_n "(cached) " >&6 34777e6fb56fSmrgelse 34787e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 34797e6fb56fSmrg/* confdefs.h. */ 34807e6fb56fSmrg_ACEOF 34817e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 34827e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 34837e6fb56fSmrg/* end confdefs.h. */ 34847e6fb56fSmrg 34857e6fb56fSmrgint 34867e6fb56fSmrgmain () 34877e6fb56fSmrg{ 34887e6fb56fSmrg#ifndef __GNUC__ 34897e6fb56fSmrg choke me 34907e6fb56fSmrg#endif 34917e6fb56fSmrg 34927e6fb56fSmrg ; 34937e6fb56fSmrg return 0; 34947e6fb56fSmrg} 34957e6fb56fSmrg_ACEOF 34967e6fb56fSmrgrm -f conftest.$ac_objext 34977e6fb56fSmrgif { (ac_try="$ac_compile" 34987e6fb56fSmrgcase "(($ac_try" in 34997e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35007e6fb56fSmrg *) ac_try_echo=$ac_try;; 35017e6fb56fSmrgesac 35027e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 35037e6fb56fSmrg$as_echo "$ac_try_echo") >&5 35047e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 35057e6fb56fSmrg ac_status=$? 35067e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 35077e6fb56fSmrg rm -f conftest.er1 35087e6fb56fSmrg cat conftest.err >&5 35097e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 35107e6fb56fSmrg (exit $ac_status); } && { 35117e6fb56fSmrg test -z "$ac_c_werror_flag" || 35127e6fb56fSmrg test ! -s conftest.err 35137e6fb56fSmrg } && test -s conftest.$ac_objext; then 35147e6fb56fSmrg ac_compiler_gnu=yes 35157e6fb56fSmrgelse 35167e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 35177e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 35187e6fb56fSmrg 35197e6fb56fSmrg ac_compiler_gnu=no 35207e6fb56fSmrgfi 35217e6fb56fSmrg 35227e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35237e6fb56fSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 35247e6fb56fSmrg 35257e6fb56fSmrgfi 35267e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 35277e6fb56fSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 35287e6fb56fSmrgif test $ac_compiler_gnu = yes; then 35297e6fb56fSmrg GCC=yes 35307e6fb56fSmrgelse 35317e6fb56fSmrg GCC= 35327e6fb56fSmrgfi 35337e6fb56fSmrgac_test_CFLAGS=${CFLAGS+set} 35347e6fb56fSmrgac_save_CFLAGS=$CFLAGS 35357e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 35367e6fb56fSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 35377e6fb56fSmrgif test "${ac_cv_prog_cc_g+set}" = set; then 35387e6fb56fSmrg $as_echo_n "(cached) " >&6 35397e6fb56fSmrgelse 35407e6fb56fSmrg ac_save_c_werror_flag=$ac_c_werror_flag 35417e6fb56fSmrg ac_c_werror_flag=yes 35427e6fb56fSmrg ac_cv_prog_cc_g=no 35437e6fb56fSmrg CFLAGS="-g" 35447e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 35457e6fb56fSmrg/* confdefs.h. */ 35467e6fb56fSmrg_ACEOF 35477e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 35487e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 35497e6fb56fSmrg/* end confdefs.h. */ 35507e6fb56fSmrg 35517e6fb56fSmrgint 35527e6fb56fSmrgmain () 35537e6fb56fSmrg{ 35547e6fb56fSmrg 35557e6fb56fSmrg ; 35567e6fb56fSmrg return 0; 35577e6fb56fSmrg} 35587e6fb56fSmrg_ACEOF 35597e6fb56fSmrgrm -f conftest.$ac_objext 35607e6fb56fSmrgif { (ac_try="$ac_compile" 35617e6fb56fSmrgcase "(($ac_try" in 35627e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35637e6fb56fSmrg *) ac_try_echo=$ac_try;; 35647e6fb56fSmrgesac 35657e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 35667e6fb56fSmrg$as_echo "$ac_try_echo") >&5 35677e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 35687e6fb56fSmrg ac_status=$? 35697e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 35707e6fb56fSmrg rm -f conftest.er1 35717e6fb56fSmrg cat conftest.err >&5 35727e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 35737e6fb56fSmrg (exit $ac_status); } && { 35747e6fb56fSmrg test -z "$ac_c_werror_flag" || 35757e6fb56fSmrg test ! -s conftest.err 35767e6fb56fSmrg } && test -s conftest.$ac_objext; then 35777e6fb56fSmrg ac_cv_prog_cc_g=yes 35787e6fb56fSmrgelse 35797e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 35807e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 35817e6fb56fSmrg 35827e6fb56fSmrg CFLAGS="" 35837e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 35847e6fb56fSmrg/* confdefs.h. */ 35857e6fb56fSmrg_ACEOF 35867e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 35877e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 35887e6fb56fSmrg/* end confdefs.h. */ 35897e6fb56fSmrg 35907e6fb56fSmrgint 35917e6fb56fSmrgmain () 35927e6fb56fSmrg{ 35937e6fb56fSmrg 35947e6fb56fSmrg ; 35957e6fb56fSmrg return 0; 35967e6fb56fSmrg} 35977e6fb56fSmrg_ACEOF 35987e6fb56fSmrgrm -f conftest.$ac_objext 35997e6fb56fSmrgif { (ac_try="$ac_compile" 36007e6fb56fSmrgcase "(($ac_try" in 36017e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36027e6fb56fSmrg *) ac_try_echo=$ac_try;; 36037e6fb56fSmrgesac 36047e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 36057e6fb56fSmrg$as_echo "$ac_try_echo") >&5 36067e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 36077e6fb56fSmrg ac_status=$? 36087e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 36097e6fb56fSmrg rm -f conftest.er1 36107e6fb56fSmrg cat conftest.err >&5 36117e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 36127e6fb56fSmrg (exit $ac_status); } && { 36137e6fb56fSmrg test -z "$ac_c_werror_flag" || 36147e6fb56fSmrg test ! -s conftest.err 36157e6fb56fSmrg } && test -s conftest.$ac_objext; then 36167e6fb56fSmrg : 36177e6fb56fSmrgelse 36187e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 36197e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 36207e6fb56fSmrg 36217e6fb56fSmrg ac_c_werror_flag=$ac_save_c_werror_flag 36227e6fb56fSmrg CFLAGS="-g" 36237e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 36247e6fb56fSmrg/* confdefs.h. */ 36257e6fb56fSmrg_ACEOF 36267e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 36277e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 36287e6fb56fSmrg/* end confdefs.h. */ 36297e6fb56fSmrg 36307e6fb56fSmrgint 36317e6fb56fSmrgmain () 36327e6fb56fSmrg{ 36337e6fb56fSmrg 36347e6fb56fSmrg ; 36357e6fb56fSmrg return 0; 36367e6fb56fSmrg} 36377e6fb56fSmrg_ACEOF 36387e6fb56fSmrgrm -f conftest.$ac_objext 36397e6fb56fSmrgif { (ac_try="$ac_compile" 36407e6fb56fSmrgcase "(($ac_try" in 36417e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36427e6fb56fSmrg *) ac_try_echo=$ac_try;; 36437e6fb56fSmrgesac 36447e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 36457e6fb56fSmrg$as_echo "$ac_try_echo") >&5 36467e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 36477e6fb56fSmrg ac_status=$? 36487e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 36497e6fb56fSmrg rm -f conftest.er1 36507e6fb56fSmrg cat conftest.err >&5 36517e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 36527e6fb56fSmrg (exit $ac_status); } && { 36537e6fb56fSmrg test -z "$ac_c_werror_flag" || 36547e6fb56fSmrg test ! -s conftest.err 36557e6fb56fSmrg } && test -s conftest.$ac_objext; then 36567e6fb56fSmrg ac_cv_prog_cc_g=yes 36577e6fb56fSmrgelse 36587e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 36597e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 36607e6fb56fSmrg 36617e6fb56fSmrg 36627e6fb56fSmrgfi 36637e6fb56fSmrg 36647e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36657e6fb56fSmrgfi 36667e6fb56fSmrg 36677e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36687e6fb56fSmrgfi 36697e6fb56fSmrg 36707e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36717e6fb56fSmrg ac_c_werror_flag=$ac_save_c_werror_flag 36727e6fb56fSmrgfi 36737e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 36747e6fb56fSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 36757e6fb56fSmrgif test "$ac_test_CFLAGS" = set; then 36767e6fb56fSmrg CFLAGS=$ac_save_CFLAGS 36777e6fb56fSmrgelif test $ac_cv_prog_cc_g = yes; then 36787e6fb56fSmrg if test "$GCC" = yes; then 36797e6fb56fSmrg CFLAGS="-g -O2" 36807e6fb56fSmrg else 36817e6fb56fSmrg CFLAGS="-g" 36827e6fb56fSmrg fi 36837e6fb56fSmrgelse 36847e6fb56fSmrg if test "$GCC" = yes; then 36857e6fb56fSmrg CFLAGS="-O2" 36867e6fb56fSmrg else 36877e6fb56fSmrg CFLAGS= 36887e6fb56fSmrg fi 36897e6fb56fSmrgfi 36907e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 36917e6fb56fSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 36927e6fb56fSmrgif test "${ac_cv_prog_cc_c89+set}" = set; then 36937e6fb56fSmrg $as_echo_n "(cached) " >&6 36947e6fb56fSmrgelse 36957e6fb56fSmrg ac_cv_prog_cc_c89=no 36967e6fb56fSmrgac_save_CC=$CC 36977e6fb56fSmrgcat >conftest.$ac_ext <<_ACEOF 36987e6fb56fSmrg/* confdefs.h. */ 36997e6fb56fSmrg_ACEOF 37007e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 37017e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 37027e6fb56fSmrg/* end confdefs.h. */ 37037e6fb56fSmrg#include <stdarg.h> 37047e6fb56fSmrg#include <stdio.h> 37057e6fb56fSmrg#include <sys/types.h> 37067e6fb56fSmrg#include <sys/stat.h> 37077e6fb56fSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 37087e6fb56fSmrgstruct buf { int x; }; 37097e6fb56fSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 37107e6fb56fSmrgstatic char *e (p, i) 37117e6fb56fSmrg char **p; 37127e6fb56fSmrg int i; 37137e6fb56fSmrg{ 37147e6fb56fSmrg return p[i]; 37157e6fb56fSmrg} 37167e6fb56fSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 37177e6fb56fSmrg{ 37187e6fb56fSmrg char *s; 37197e6fb56fSmrg va_list v; 37207e6fb56fSmrg va_start (v,p); 37217e6fb56fSmrg s = g (p, va_arg (v,int)); 37227e6fb56fSmrg va_end (v); 37237e6fb56fSmrg return s; 37247e6fb56fSmrg} 37257e6fb56fSmrg 37267e6fb56fSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 37277e6fb56fSmrg function prototypes and stuff, but not '\xHH' hex character constants. 37287e6fb56fSmrg These don't provoke an error unfortunately, instead are silently treated 37297e6fb56fSmrg as 'x'. The following induces an error, until -std is added to get 37307e6fb56fSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 37317e6fb56fSmrg array size at least. It's necessary to write '\x00'==0 to get something 37327e6fb56fSmrg that's true only with -std. */ 37337e6fb56fSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 37347e6fb56fSmrg 37357e6fb56fSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 37367e6fb56fSmrg inside strings and character constants. */ 37377e6fb56fSmrg#define FOO(x) 'x' 37387e6fb56fSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 37397e6fb56fSmrg 37407e6fb56fSmrgint test (int i, double x); 37417e6fb56fSmrgstruct s1 {int (*f) (int a);}; 37427e6fb56fSmrgstruct s2 {int (*f) (double a);}; 37437e6fb56fSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 37447e6fb56fSmrgint argc; 37457e6fb56fSmrgchar **argv; 37467e6fb56fSmrgint 37477e6fb56fSmrgmain () 37487e6fb56fSmrg{ 37497e6fb56fSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 37507e6fb56fSmrg ; 37517e6fb56fSmrg return 0; 37527e6fb56fSmrg} 37537e6fb56fSmrg_ACEOF 37547e6fb56fSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 37557e6fb56fSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 37567e6fb56fSmrgdo 37577e6fb56fSmrg CC="$ac_save_CC $ac_arg" 37587e6fb56fSmrg rm -f conftest.$ac_objext 37597e6fb56fSmrgif { (ac_try="$ac_compile" 37607e6fb56fSmrgcase "(($ac_try" in 37617e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37627e6fb56fSmrg *) ac_try_echo=$ac_try;; 37637e6fb56fSmrgesac 37647e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 37657e6fb56fSmrg$as_echo "$ac_try_echo") >&5 37667e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 37677e6fb56fSmrg ac_status=$? 37687e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 37697e6fb56fSmrg rm -f conftest.er1 37707e6fb56fSmrg cat conftest.err >&5 37717e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 37727e6fb56fSmrg (exit $ac_status); } && { 37737e6fb56fSmrg test -z "$ac_c_werror_flag" || 37747e6fb56fSmrg test ! -s conftest.err 37757e6fb56fSmrg } && test -s conftest.$ac_objext; then 37767e6fb56fSmrg ac_cv_prog_cc_c89=$ac_arg 37777e6fb56fSmrgelse 37787e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 37797e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 37807e6fb56fSmrg 37817e6fb56fSmrg 37827e6fb56fSmrgfi 37837e6fb56fSmrg 37847e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext 37857e6fb56fSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 37867e6fb56fSmrgdone 37877e6fb56fSmrgrm -f conftest.$ac_ext 37887e6fb56fSmrgCC=$ac_save_CC 37897e6fb56fSmrg 37907e6fb56fSmrgfi 37917e6fb56fSmrg# AC_CACHE_VAL 37927e6fb56fSmrgcase "x$ac_cv_prog_cc_c89" in 37937e6fb56fSmrg x) 37947e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: none needed" >&5 37957e6fb56fSmrg$as_echo "none needed" >&6; } ;; 37967e6fb56fSmrg xno) 37977e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: unsupported" >&5 37987e6fb56fSmrg$as_echo "unsupported" >&6; } ;; 37997e6fb56fSmrg *) 38007e6fb56fSmrg CC="$CC $ac_cv_prog_cc_c89" 38017e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 38027e6fb56fSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 38037e6fb56fSmrgesac 38047e6fb56fSmrg 38057e6fb56fSmrg 38067e6fb56fSmrgac_ext=c 38077e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 38087e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 38097e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 38107e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 38117e6fb56fSmrg 38127e6fb56fSmrgdepcc="$CC" am_compiler_list= 38137e6fb56fSmrg 38147e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 38157e6fb56fSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 38167e6fb56fSmrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 38177e6fb56fSmrg $as_echo_n "(cached) " >&6 38187e6fb56fSmrgelse 38197e6fb56fSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 38207e6fb56fSmrg # We make a subdir and do the tests there. Otherwise we can end up 38217e6fb56fSmrg # making bogus files that we don't know about and never remove. For 38227e6fb56fSmrg # instance it was reported that on HP-UX the gcc test will end up 38237e6fb56fSmrg # making a dummy file named `D' -- because `-MD' means `put the output 38247e6fb56fSmrg # in D'. 38257e6fb56fSmrg mkdir conftest.dir 38267e6fb56fSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 38277e6fb56fSmrg # using a relative directory. 38287e6fb56fSmrg cp "$am_depcomp" conftest.dir 38297e6fb56fSmrg cd conftest.dir 38307e6fb56fSmrg # We will build objects and dependencies in a subdirectory because 38317e6fb56fSmrg # it helps to detect inapplicable dependency modes. For instance 38327e6fb56fSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 38337e6fb56fSmrg # side effect of compilation, but ICC will put the dependencies in 38347e6fb56fSmrg # the current directory while Tru64 will put them in the object 38357e6fb56fSmrg # directory. 38367e6fb56fSmrg mkdir sub 38377e6fb56fSmrg 38387e6fb56fSmrg am_cv_CC_dependencies_compiler_type=none 38397e6fb56fSmrg if test "$am_compiler_list" = ""; then 38407e6fb56fSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 38417e6fb56fSmrg fi 38427e6fb56fSmrg am__universal=false 38437e6fb56fSmrg case " $depcc " in #( 38447e6fb56fSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 38457e6fb56fSmrg esac 38467e6fb56fSmrg 38477e6fb56fSmrg for depmode in $am_compiler_list; do 38487e6fb56fSmrg # Setup a source with many dependencies, because some compilers 38497e6fb56fSmrg # like to wrap large dependency lists on column 80 (with \), and 38507e6fb56fSmrg # we should not choose a depcomp mode which is confused by this. 38517e6fb56fSmrg # 38527e6fb56fSmrg # We need to recreate these files for each test, as the compiler may 38537e6fb56fSmrg # overwrite some of them when testing with obscure command lines. 38547e6fb56fSmrg # This happens at least with the AIX C compiler. 38557e6fb56fSmrg : > sub/conftest.c 38567e6fb56fSmrg for i in 1 2 3 4 5 6; do 38577e6fb56fSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 38587e6fb56fSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 38597e6fb56fSmrg # Solaris 8's {/usr,}/bin/sh. 38607e6fb56fSmrg touch sub/conftst$i.h 38617e6fb56fSmrg done 38627e6fb56fSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 38637e6fb56fSmrg 38647e6fb56fSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 38657e6fb56fSmrg # mode. It turns out that the SunPro C++ compiler does not properly 38667e6fb56fSmrg # handle `-M -o', and we need to detect this. Also, some Intel 38677e6fb56fSmrg # versions had trouble with output in subdirs 38687e6fb56fSmrg am__obj=sub/conftest.${OBJEXT-o} 38697e6fb56fSmrg am__minus_obj="-o $am__obj" 38707e6fb56fSmrg case $depmode in 38717e6fb56fSmrg gcc) 38727e6fb56fSmrg # This depmode causes a compiler race in universal mode. 38737e6fb56fSmrg test "$am__universal" = false || continue 38747e6fb56fSmrg ;; 38757e6fb56fSmrg nosideeffect) 38767e6fb56fSmrg # after this tag, mechanisms are not by side-effect, so they'll 38777e6fb56fSmrg # only be used when explicitly requested 38787e6fb56fSmrg if test "x$enable_dependency_tracking" = xyes; then 38797e6fb56fSmrg continue 38807e6fb56fSmrg else 38817e6fb56fSmrg break 38827e6fb56fSmrg fi 38837e6fb56fSmrg ;; 38847e6fb56fSmrg msvisualcpp | msvcmsys) 38857e6fb56fSmrg # This compiler won't grok `-c -o', but also, the minuso test has 38867e6fb56fSmrg # not run yet. These depmodes are late enough in the game, and 38877e6fb56fSmrg # so weak that their functioning should not be impacted. 38887e6fb56fSmrg am__obj=conftest.${OBJEXT-o} 38897e6fb56fSmrg am__minus_obj= 38907e6fb56fSmrg ;; 38917e6fb56fSmrg none) break ;; 38927e6fb56fSmrg esac 38937e6fb56fSmrg if depmode=$depmode \ 38947e6fb56fSmrg source=sub/conftest.c object=$am__obj \ 38957e6fb56fSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 38967e6fb56fSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 38977e6fb56fSmrg >/dev/null 2>conftest.err && 38987e6fb56fSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 38997e6fb56fSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 39007e6fb56fSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 39017e6fb56fSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 39027e6fb56fSmrg # icc doesn't choke on unknown options, it will just issue warnings 39037e6fb56fSmrg # or remarks (even with -Werror). So we grep stderr for any message 39047e6fb56fSmrg # that says an option was ignored or not supported. 39057e6fb56fSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 39067e6fb56fSmrg # icc: Command line warning: ignoring option '-M'; no argument required 39077e6fb56fSmrg # The diagnosis changed in icc 8.0: 39087e6fb56fSmrg # icc: Command line remark: option '-MP' not supported 39097e6fb56fSmrg if (grep 'ignoring option' conftest.err || 39107e6fb56fSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 39117e6fb56fSmrg am_cv_CC_dependencies_compiler_type=$depmode 39127e6fb56fSmrg break 39137e6fb56fSmrg fi 39147e6fb56fSmrg fi 39157e6fb56fSmrg done 39167e6fb56fSmrg 39177e6fb56fSmrg cd .. 39187e6fb56fSmrg rm -rf conftest.dir 39197e6fb56fSmrgelse 39207e6fb56fSmrg am_cv_CC_dependencies_compiler_type=none 39217e6fb56fSmrgfi 39227e6fb56fSmrg 39237e6fb56fSmrgfi 39247e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 39257e6fb56fSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 39267e6fb56fSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 39277e6fb56fSmrg 39287e6fb56fSmrg if 39297e6fb56fSmrg test "x$enable_dependency_tracking" != xno \ 39307e6fb56fSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 39317e6fb56fSmrg am__fastdepCC_TRUE= 39327e6fb56fSmrg am__fastdepCC_FALSE='#' 39337e6fb56fSmrgelse 39347e6fb56fSmrg am__fastdepCC_TRUE='#' 39357e6fb56fSmrg am__fastdepCC_FALSE= 39367e6fb56fSmrgfi 39377e6fb56fSmrg 39387e6fb56fSmrg 39397e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 39407e6fb56fSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 39417e6fb56fSmrgif test "${lt_cv_path_SED+set}" = set; then 39427e6fb56fSmrg $as_echo_n "(cached) " >&6 39437e6fb56fSmrgelse 39447e6fb56fSmrg # Loop through the user's path and test for sed and gsed. 39457e6fb56fSmrg# Then use that list of sed's as ones to test for truncation. 39467e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39477e6fb56fSmrgfor as_dir in $PATH 39487e6fb56fSmrgdo 39497e6fb56fSmrg IFS=$as_save_IFS 39507e6fb56fSmrg test -z "$as_dir" && as_dir=. 39517e6fb56fSmrg for lt_ac_prog in sed gsed; do 39527e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 39537e6fb56fSmrg if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 39547e6fb56fSmrg lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 39557e6fb56fSmrg fi 39567e6fb56fSmrg done 39577e6fb56fSmrg done 39587e6fb56fSmrgdone 39597e6fb56fSmrgIFS=$as_save_IFS 39607e6fb56fSmrglt_ac_max=0 39617e6fb56fSmrglt_ac_count=0 39627e6fb56fSmrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris 39637e6fb56fSmrg# along with /bin/sed that truncates output. 39647e6fb56fSmrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 39657e6fb56fSmrg test ! -f $lt_ac_sed && continue 39667e6fb56fSmrg cat /dev/null > conftest.in 39677e6fb56fSmrg lt_ac_count=0 39687e6fb56fSmrg echo $ECHO_N "0123456789$ECHO_C" >conftest.in 39697e6fb56fSmrg # Check for GNU sed and select it if it is found. 39707e6fb56fSmrg if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 39717e6fb56fSmrg lt_cv_path_SED=$lt_ac_sed 39727e6fb56fSmrg break 39737e6fb56fSmrg fi 39747e6fb56fSmrg while true; do 39757e6fb56fSmrg cat conftest.in conftest.in >conftest.tmp 39767e6fb56fSmrg mv conftest.tmp conftest.in 39777e6fb56fSmrg cp conftest.in conftest.nl 39787e6fb56fSmrg echo >>conftest.nl 39797e6fb56fSmrg $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 39807e6fb56fSmrg cmp -s conftest.out conftest.nl || break 39817e6fb56fSmrg # 10000 chars as input seems more than enough 39827e6fb56fSmrg test $lt_ac_count -gt 10 && break 39837e6fb56fSmrg lt_ac_count=`expr $lt_ac_count + 1` 39847e6fb56fSmrg if test $lt_ac_count -gt $lt_ac_max; then 39857e6fb56fSmrg lt_ac_max=$lt_ac_count 39867e6fb56fSmrg lt_cv_path_SED=$lt_ac_sed 39877e6fb56fSmrg fi 39887e6fb56fSmrg done 39897e6fb56fSmrgdone 39907e6fb56fSmrg 39917e6fb56fSmrgfi 39927e6fb56fSmrg 39937e6fb56fSmrgSED=$lt_cv_path_SED 39947e6fb56fSmrg 39957e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $SED" >&5 39967e6fb56fSmrg$as_echo "$SED" >&6; } 39977e6fb56fSmrg 39987e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 39997e6fb56fSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 40007e6fb56fSmrgif test "${ac_cv_path_GREP+set}" = set; then 40017e6fb56fSmrg $as_echo_n "(cached) " >&6 40027e6fb56fSmrgelse 40037e6fb56fSmrg if test -z "$GREP"; then 40047e6fb56fSmrg ac_path_GREP_found=false 40057e6fb56fSmrg # Loop through the user's path and test for each of PROGNAME-LIST 40067e6fb56fSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40077e6fb56fSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 40087e6fb56fSmrgdo 40097e6fb56fSmrg IFS=$as_save_IFS 40107e6fb56fSmrg test -z "$as_dir" && as_dir=. 40117e6fb56fSmrg for ac_prog in grep ggrep; do 40127e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 40137e6fb56fSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 40147e6fb56fSmrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 40157e6fb56fSmrg# Check for GNU ac_path_GREP and select it if it is found. 40167e6fb56fSmrg # Check for GNU $ac_path_GREP 40177e6fb56fSmrgcase `"$ac_path_GREP" --version 2>&1` in 40187e6fb56fSmrg*GNU*) 40197e6fb56fSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 40207e6fb56fSmrg*) 40217e6fb56fSmrg ac_count=0 40227e6fb56fSmrg $as_echo_n 0123456789 >"conftest.in" 40237e6fb56fSmrg while : 40247e6fb56fSmrg do 40257e6fb56fSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 40267e6fb56fSmrg mv "conftest.tmp" "conftest.in" 40277e6fb56fSmrg cp "conftest.in" "conftest.nl" 40287e6fb56fSmrg $as_echo 'GREP' >> "conftest.nl" 40297e6fb56fSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 40307e6fb56fSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 40317e6fb56fSmrg ac_count=`expr $ac_count + 1` 40327e6fb56fSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 40337e6fb56fSmrg # Best one so far, save it but keep looking for a better one 40347e6fb56fSmrg ac_cv_path_GREP="$ac_path_GREP" 40357e6fb56fSmrg ac_path_GREP_max=$ac_count 40367e6fb56fSmrg fi 40377e6fb56fSmrg # 10*(2^10) chars as input seems more than enough 40387e6fb56fSmrg test $ac_count -gt 10 && break 40397e6fb56fSmrg done 40407e6fb56fSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 40417e6fb56fSmrgesac 40427e6fb56fSmrg 40437e6fb56fSmrg $ac_path_GREP_found && break 3 40447e6fb56fSmrg done 40457e6fb56fSmrg done 40467e6fb56fSmrgdone 40477e6fb56fSmrgIFS=$as_save_IFS 40487e6fb56fSmrg if test -z "$ac_cv_path_GREP"; then 40497e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 40507e6fb56fSmrg$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 40517e6fb56fSmrg { (exit 1); exit 1; }; } 40527e6fb56fSmrg fi 40537e6fb56fSmrgelse 40547e6fb56fSmrg ac_cv_path_GREP=$GREP 40557e6fb56fSmrgfi 40567e6fb56fSmrg 40577e6fb56fSmrgfi 40587e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 40597e6fb56fSmrg$as_echo "$ac_cv_path_GREP" >&6; } 40607e6fb56fSmrg GREP="$ac_cv_path_GREP" 40617e6fb56fSmrg 40627e6fb56fSmrg 40637e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 40647e6fb56fSmrg$as_echo_n "checking for egrep... " >&6; } 40657e6fb56fSmrgif test "${ac_cv_path_EGREP+set}" = set; then 40667e6fb56fSmrg $as_echo_n "(cached) " >&6 40677e6fb56fSmrgelse 40687e6fb56fSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 40697e6fb56fSmrg then ac_cv_path_EGREP="$GREP -E" 40707e6fb56fSmrg else 40717e6fb56fSmrg if test -z "$EGREP"; then 40727e6fb56fSmrg ac_path_EGREP_found=false 40737e6fb56fSmrg # Loop through the user's path and test for each of PROGNAME-LIST 40747e6fb56fSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40757e6fb56fSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 40767e6fb56fSmrgdo 40777e6fb56fSmrg IFS=$as_save_IFS 40787e6fb56fSmrg test -z "$as_dir" && as_dir=. 40797e6fb56fSmrg for ac_prog in egrep; do 40807e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 40817e6fb56fSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 40827e6fb56fSmrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 40837e6fb56fSmrg# Check for GNU ac_path_EGREP and select it if it is found. 40847e6fb56fSmrg # Check for GNU $ac_path_EGREP 40857e6fb56fSmrgcase `"$ac_path_EGREP" --version 2>&1` in 40867e6fb56fSmrg*GNU*) 40877e6fb56fSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 40887e6fb56fSmrg*) 40897e6fb56fSmrg ac_count=0 40907e6fb56fSmrg $as_echo_n 0123456789 >"conftest.in" 40917e6fb56fSmrg while : 40927e6fb56fSmrg do 40937e6fb56fSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 40947e6fb56fSmrg mv "conftest.tmp" "conftest.in" 40957e6fb56fSmrg cp "conftest.in" "conftest.nl" 40967e6fb56fSmrg $as_echo 'EGREP' >> "conftest.nl" 40977e6fb56fSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 40987e6fb56fSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 40997e6fb56fSmrg ac_count=`expr $ac_count + 1` 41007e6fb56fSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 41017e6fb56fSmrg # Best one so far, save it but keep looking for a better one 41027e6fb56fSmrg ac_cv_path_EGREP="$ac_path_EGREP" 41037e6fb56fSmrg ac_path_EGREP_max=$ac_count 41047e6fb56fSmrg fi 41057e6fb56fSmrg # 10*(2^10) chars as input seems more than enough 41067e6fb56fSmrg test $ac_count -gt 10 && break 41077e6fb56fSmrg done 41087e6fb56fSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 41097e6fb56fSmrgesac 41107e6fb56fSmrg 41117e6fb56fSmrg $ac_path_EGREP_found && break 3 41127e6fb56fSmrg done 41137e6fb56fSmrg done 41147e6fb56fSmrgdone 41157e6fb56fSmrgIFS=$as_save_IFS 41167e6fb56fSmrg if test -z "$ac_cv_path_EGREP"; then 41177e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 41187e6fb56fSmrg$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 41197e6fb56fSmrg { (exit 1); exit 1; }; } 41207e6fb56fSmrg fi 41217e6fb56fSmrgelse 41227e6fb56fSmrg ac_cv_path_EGREP=$EGREP 41237e6fb56fSmrgfi 41247e6fb56fSmrg 41257e6fb56fSmrg fi 41267e6fb56fSmrgfi 41277e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 41287e6fb56fSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 41297e6fb56fSmrg EGREP="$ac_cv_path_EGREP" 41307e6fb56fSmrg 41317e6fb56fSmrg 41327e6fb56fSmrg 41337e6fb56fSmrg# Check whether --with-gnu-ld was given. 41347e6fb56fSmrgif test "${with_gnu_ld+set}" = set; then 41357e6fb56fSmrg withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 41367e6fb56fSmrgelse 41377e6fb56fSmrg with_gnu_ld=no 41387e6fb56fSmrgfi 41397e6fb56fSmrg 41407e6fb56fSmrgac_prog=ld 41417e6fb56fSmrgif test "$GCC" = yes; then 41427e6fb56fSmrg # Check if gcc -print-prog-name=ld gives a path. 41437e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 41447e6fb56fSmrg$as_echo_n "checking for ld used by $CC... " >&6; } 41457e6fb56fSmrg case $host in 41467e6fb56fSmrg *-*-mingw*) 41477e6fb56fSmrg # gcc leaves a trailing carriage return which upsets mingw 41487e6fb56fSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 41497e6fb56fSmrg *) 41507e6fb56fSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 41517e6fb56fSmrg esac 41527e6fb56fSmrg case $ac_prog in 41537e6fb56fSmrg # Accept absolute paths. 41547e6fb56fSmrg [\\/]* | ?:[\\/]*) 41557e6fb56fSmrg re_direlt='/[^/][^/]*/\.\./' 41567e6fb56fSmrg # Canonicalize the pathname of ld 41577e6fb56fSmrg ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 41587e6fb56fSmrg while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 41597e6fb56fSmrg ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 41607e6fb56fSmrg done 41617e6fb56fSmrg test -z "$LD" && LD="$ac_prog" 41627e6fb56fSmrg ;; 41637e6fb56fSmrg "") 41647e6fb56fSmrg # If it fails, then pretend we aren't using GCC. 41657e6fb56fSmrg ac_prog=ld 41667e6fb56fSmrg ;; 41677e6fb56fSmrg *) 41687e6fb56fSmrg # If it is relative, then search for the first ld in PATH. 41697e6fb56fSmrg with_gnu_ld=unknown 41707e6fb56fSmrg ;; 41717e6fb56fSmrg esac 41727e6fb56fSmrgelif test "$with_gnu_ld" = yes; then 41737e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 41747e6fb56fSmrg$as_echo_n "checking for GNU ld... " >&6; } 41757e6fb56fSmrgelse 41767e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 41777e6fb56fSmrg$as_echo_n "checking for non-GNU ld... " >&6; } 41787e6fb56fSmrgfi 41797e6fb56fSmrgif test "${lt_cv_path_LD+set}" = set; then 41807e6fb56fSmrg $as_echo_n "(cached) " >&6 41817e6fb56fSmrgelse 41827e6fb56fSmrg if test -z "$LD"; then 41837e6fb56fSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 41847e6fb56fSmrg for ac_dir in $PATH; do 41857e6fb56fSmrg IFS="$lt_save_ifs" 41867e6fb56fSmrg test -z "$ac_dir" && ac_dir=. 41877e6fb56fSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 41887e6fb56fSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 41897e6fb56fSmrg # Check to see if the program is GNU ld. I'd rather use --version, 41907e6fb56fSmrg # but apparently some variants of GNU ld only accept -v. 41917e6fb56fSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 41927e6fb56fSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 41937e6fb56fSmrg *GNU* | *'with BFD'*) 41947e6fb56fSmrg test "$with_gnu_ld" != no && break 41957e6fb56fSmrg ;; 41967e6fb56fSmrg *) 41977e6fb56fSmrg test "$with_gnu_ld" != yes && break 41987e6fb56fSmrg ;; 41997e6fb56fSmrg esac 42007e6fb56fSmrg fi 42017e6fb56fSmrg done 42027e6fb56fSmrg IFS="$lt_save_ifs" 42037e6fb56fSmrgelse 42047e6fb56fSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 42057e6fb56fSmrgfi 42067e6fb56fSmrgfi 42077e6fb56fSmrg 42087e6fb56fSmrgLD="$lt_cv_path_LD" 42097e6fb56fSmrgif test -n "$LD"; then 42107e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $LD" >&5 42117e6fb56fSmrg$as_echo "$LD" >&6; } 42127e6fb56fSmrgelse 42137e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 42147e6fb56fSmrg$as_echo "no" >&6; } 42157e6fb56fSmrgfi 42167e6fb56fSmrgtest -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 42177e6fb56fSmrg$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 42187e6fb56fSmrg { (exit 1); exit 1; }; } 42197e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 42207e6fb56fSmrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 42217e6fb56fSmrgif test "${lt_cv_prog_gnu_ld+set}" = set; then 42227e6fb56fSmrg $as_echo_n "(cached) " >&6 42237e6fb56fSmrgelse 42247e6fb56fSmrg # I'd rather use --version here, but apparently some GNU lds only accept -v. 42257e6fb56fSmrgcase `$LD -v 2>&1 </dev/null` in 42267e6fb56fSmrg*GNU* | *'with BFD'*) 42277e6fb56fSmrg lt_cv_prog_gnu_ld=yes 42287e6fb56fSmrg ;; 42297e6fb56fSmrg*) 42307e6fb56fSmrg lt_cv_prog_gnu_ld=no 42317e6fb56fSmrg ;; 42327e6fb56fSmrgesac 42337e6fb56fSmrgfi 42347e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 42357e6fb56fSmrg$as_echo "$lt_cv_prog_gnu_ld" >&6; } 42367e6fb56fSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 42377e6fb56fSmrg 42387e6fb56fSmrg 42397e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 42407e6fb56fSmrg$as_echo_n "checking for $LD option to reload object files... " >&6; } 42417e6fb56fSmrgif test "${lt_cv_ld_reload_flag+set}" = set; then 42427e6fb56fSmrg $as_echo_n "(cached) " >&6 42437e6fb56fSmrgelse 42447e6fb56fSmrg lt_cv_ld_reload_flag='-r' 42457e6fb56fSmrgfi 42467e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 42477e6fb56fSmrg$as_echo "$lt_cv_ld_reload_flag" >&6; } 42487e6fb56fSmrgreload_flag=$lt_cv_ld_reload_flag 42497e6fb56fSmrgcase $reload_flag in 42507e6fb56fSmrg"" | " "*) ;; 42517e6fb56fSmrg*) reload_flag=" $reload_flag" ;; 42527e6fb56fSmrgesac 42537e6fb56fSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 42547e6fb56fSmrgcase $host_os in 42557e6fb56fSmrg darwin*) 42567e6fb56fSmrg if test "$GCC" = yes; then 42577e6fb56fSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 42587e6fb56fSmrg else 42597e6fb56fSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 42607e6fb56fSmrg fi 42617e6fb56fSmrg ;; 42627e6fb56fSmrgesac 42637e6fb56fSmrg 42647e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 42657e6fb56fSmrg$as_echo_n "checking for BSD-compatible nm... " >&6; } 42667e6fb56fSmrgif test "${lt_cv_path_NM+set}" = set; then 42677e6fb56fSmrg $as_echo_n "(cached) " >&6 42687e6fb56fSmrgelse 42697e6fb56fSmrg if test -n "$NM"; then 42707e6fb56fSmrg # Let the user override the test. 42717e6fb56fSmrg lt_cv_path_NM="$NM" 42727e6fb56fSmrgelse 42737e6fb56fSmrg lt_nm_to_check="${ac_tool_prefix}nm" 42747e6fb56fSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 42757e6fb56fSmrg lt_nm_to_check="$lt_nm_to_check nm" 42767e6fb56fSmrg fi 42777e6fb56fSmrg for lt_tmp_nm in $lt_nm_to_check; do 42787e6fb56fSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 42797e6fb56fSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 42807e6fb56fSmrg IFS="$lt_save_ifs" 42817e6fb56fSmrg test -z "$ac_dir" && ac_dir=. 42827e6fb56fSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 42837e6fb56fSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 42847e6fb56fSmrg # Check to see if the nm accepts a BSD-compat flag. 42857e6fb56fSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 42867e6fb56fSmrg # nm: unknown option "B" ignored 42877e6fb56fSmrg # Tru64's nm complains that /dev/null is an invalid object file 42887e6fb56fSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 42897e6fb56fSmrg */dev/null* | *'Invalid file or object type'*) 42907e6fb56fSmrg lt_cv_path_NM="$tmp_nm -B" 42917e6fb56fSmrg break 42927e6fb56fSmrg ;; 42937e6fb56fSmrg *) 42947e6fb56fSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 42957e6fb56fSmrg */dev/null*) 42967e6fb56fSmrg lt_cv_path_NM="$tmp_nm -p" 42977e6fb56fSmrg break 42987e6fb56fSmrg ;; 42997e6fb56fSmrg *) 43007e6fb56fSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 43017e6fb56fSmrg continue # so that we can try to find one that supports BSD flags 43027e6fb56fSmrg ;; 43037e6fb56fSmrg esac 43047e6fb56fSmrg ;; 43057e6fb56fSmrg esac 43067e6fb56fSmrg fi 43077e6fb56fSmrg done 43087e6fb56fSmrg IFS="$lt_save_ifs" 43097e6fb56fSmrg done 43107e6fb56fSmrg test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 43117e6fb56fSmrgfi 43127e6fb56fSmrgfi 43137e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 43147e6fb56fSmrg$as_echo "$lt_cv_path_NM" >&6; } 43157e6fb56fSmrgNM="$lt_cv_path_NM" 43167e6fb56fSmrg 43177e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 43187e6fb56fSmrg$as_echo_n "checking whether ln -s works... " >&6; } 43197e6fb56fSmrgLN_S=$as_ln_s 43207e6fb56fSmrgif test "$LN_S" = "ln -s"; then 43217e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: yes" >&5 43227e6fb56fSmrg$as_echo "yes" >&6; } 43237e6fb56fSmrgelse 43247e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 43257e6fb56fSmrg$as_echo "no, using $LN_S" >&6; } 43267e6fb56fSmrgfi 43277e6fb56fSmrg 43287e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 43297e6fb56fSmrg$as_echo_n "checking how to recognize dependent libraries... " >&6; } 43307e6fb56fSmrgif test "${lt_cv_deplibs_check_method+set}" = set; then 43317e6fb56fSmrg $as_echo_n "(cached) " >&6 43327e6fb56fSmrgelse 43337e6fb56fSmrg lt_cv_file_magic_cmd='$MAGIC_CMD' 43347e6fb56fSmrglt_cv_file_magic_test_file= 43357e6fb56fSmrglt_cv_deplibs_check_method='unknown' 43367e6fb56fSmrg# Need to set the preceding variable on all platforms that support 43377e6fb56fSmrg# interlibrary dependencies. 43387e6fb56fSmrg# 'none' -- dependencies not supported. 43397e6fb56fSmrg# `unknown' -- same as none, but documents that we really don't know. 43407e6fb56fSmrg# 'pass_all' -- all dependencies passed with no checks. 43417e6fb56fSmrg# 'test_compile' -- check by making test program. 43427e6fb56fSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 43437e6fb56fSmrg# which responds to the $file_magic_cmd with a given extended regex. 43447e6fb56fSmrg# If you have `file' or equivalent on your system and you're not sure 43457e6fb56fSmrg# whether `pass_all' will *always* work, you probably want this one. 43467e6fb56fSmrg 43477e6fb56fSmrgcase $host_os in 43487e6fb56fSmrgaix[4-9]*) 43497e6fb56fSmrg lt_cv_deplibs_check_method=pass_all 43507e6fb56fSmrg ;; 43517e6fb56fSmrg 43527e6fb56fSmrgbeos*) 43537e6fb56fSmrg lt_cv_deplibs_check_method=pass_all 43547e6fb56fSmrg ;; 43557e6fb56fSmrg 43567e6fb56fSmrgbsdi[45]*) 43577e6fb56fSmrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 43587e6fb56fSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 43597e6fb56fSmrg lt_cv_file_magic_test_file=/shlib/libc.so 43607e6fb56fSmrg ;; 43617e6fb56fSmrg 43627e6fb56fSmrgcygwin*) 43637e6fb56fSmrg # func_win32_libid is a shell function defined in ltmain.sh 43647e6fb56fSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 43657e6fb56fSmrg lt_cv_file_magic_cmd='func_win32_libid' 43667e6fb56fSmrg ;; 43677e6fb56fSmrg 43687e6fb56fSmrgmingw* | pw32*) 43697e6fb56fSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 43707e6fb56fSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 43717e6fb56fSmrg # unless we find 'file', for example because we are cross-compiling. 43727e6fb56fSmrg if ( file / ) >/dev/null 2>&1; then 43737e6fb56fSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 43747e6fb56fSmrg lt_cv_file_magic_cmd='func_win32_libid' 43757e6fb56fSmrg else 43767e6fb56fSmrg lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 43777e6fb56fSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 43787e6fb56fSmrg fi 43797e6fb56fSmrg ;; 43807e6fb56fSmrg 43817e6fb56fSmrgdarwin* | rhapsody*) 43827e6fb56fSmrg lt_cv_deplibs_check_method=pass_all 43837e6fb56fSmrg ;; 43847e6fb56fSmrg 43857e6fb56fSmrgfreebsd* | dragonfly*) 43867e6fb56fSmrg if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 43877e6fb56fSmrg case $host_cpu in 43887e6fb56fSmrg i*86 ) 43897e6fb56fSmrg # Not sure whether the presence of OpenBSD here was a mistake. 43907e6fb56fSmrg # Let's accept both of them until this is cleared up. 43917e6fb56fSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 43927e6fb56fSmrg lt_cv_file_magic_cmd=/usr/bin/file 43937e6fb56fSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 43947e6fb56fSmrg ;; 43957e6fb56fSmrg esac 43967e6fb56fSmrg else 43977e6fb56fSmrg lt_cv_deplibs_check_method=pass_all 43987e6fb56fSmrg fi 43997e6fb56fSmrg ;; 44007e6fb56fSmrg 44017e6fb56fSmrggnu*) 44027e6fb56fSmrg lt_cv_deplibs_check_method=pass_all 44037e6fb56fSmrg ;; 44047e6fb56fSmrg 44057e6fb56fSmrghpux10.20* | hpux11*) 44067e6fb56fSmrg lt_cv_file_magic_cmd=/usr/bin/file 44077e6fb56fSmrg case $host_cpu in 44087e6fb56fSmrg ia64*) 44097e6fb56fSmrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 44107e6fb56fSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 44117e6fb56fSmrg ;; 44127e6fb56fSmrg hppa*64*) 44137e6fb56fSmrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 44147e6fb56fSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 44157e6fb56fSmrg ;; 44167e6fb56fSmrg *) 44177e6fb56fSmrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 44187e6fb56fSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 44197e6fb56fSmrg ;; 44207e6fb56fSmrg esac 44217e6fb56fSmrg ;; 44227e6fb56fSmrg 44237e6fb56fSmrginterix[3-9]*) 44247e6fb56fSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 44257e6fb56fSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 44267e6fb56fSmrg ;; 44277e6fb56fSmrg 44287e6fb56fSmrgirix5* | irix6* | nonstopux*) 44297e6fb56fSmrg case $LD in 44307e6fb56fSmrg *-32|*"-32 ") libmagic=32-bit;; 44317e6fb56fSmrg *-n32|*"-n32 ") libmagic=N32;; 44327e6fb56fSmrg *-64|*"-64 ") libmagic=64-bit;; 44337e6fb56fSmrg *) libmagic=never-match;; 44347e6fb56fSmrg esac 44357e6fb56fSmrg lt_cv_deplibs_check_method=pass_all 44367e6fb56fSmrg ;; 44377e6fb56fSmrg 44387e6fb56fSmrg# This must be Linux ELF. 44397e6fb56fSmrglinux* | k*bsd*-gnu) 44407e6fb56fSmrg lt_cv_deplibs_check_method=pass_all 44417e6fb56fSmrg ;; 44427e6fb56fSmrg 44437e6fb56fSmrgnetbsd*) 44447e6fb56fSmrg if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 44457e6fb56fSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 44467e6fb56fSmrg else 44477e6fb56fSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 44487e6fb56fSmrg fi 44497e6fb56fSmrg ;; 44507e6fb56fSmrg 44517e6fb56fSmrgnewos6*) 44527e6fb56fSmrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 44537e6fb56fSmrg lt_cv_file_magic_cmd=/usr/bin/file 44547e6fb56fSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 44557e6fb56fSmrg ;; 44567e6fb56fSmrg 44577e6fb56fSmrgnto-qnx*) 44587e6fb56fSmrg lt_cv_deplibs_check_method=unknown 44597e6fb56fSmrg ;; 44607e6fb56fSmrg 44617e6fb56fSmrgopenbsd*) 44627e6fb56fSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 44637e6fb56fSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 44647e6fb56fSmrg else 44657e6fb56fSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 44667e6fb56fSmrg fi 44677e6fb56fSmrg ;; 44687e6fb56fSmrg 44697e6fb56fSmrgosf3* | osf4* | osf5*) 44707e6fb56fSmrg lt_cv_deplibs_check_method=pass_all 44717e6fb56fSmrg ;; 44727e6fb56fSmrg 44737e6fb56fSmrgrdos*) 44747e6fb56fSmrg lt_cv_deplibs_check_method=pass_all 44757e6fb56fSmrg ;; 44767e6fb56fSmrg 44777e6fb56fSmrgsolaris*) 44787e6fb56fSmrg lt_cv_deplibs_check_method=pass_all 44797e6fb56fSmrg ;; 44807e6fb56fSmrg 44817e6fb56fSmrgsysv4 | sysv4.3*) 44827e6fb56fSmrg case $host_vendor in 44837e6fb56fSmrg motorola) 44847e6fb56fSmrg 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]' 44857e6fb56fSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 44867e6fb56fSmrg ;; 44877e6fb56fSmrg ncr) 44887e6fb56fSmrg lt_cv_deplibs_check_method=pass_all 44897e6fb56fSmrg ;; 44907e6fb56fSmrg sequent) 44917e6fb56fSmrg lt_cv_file_magic_cmd='/bin/file' 44927e6fb56fSmrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 44937e6fb56fSmrg ;; 44947e6fb56fSmrg sni) 44957e6fb56fSmrg lt_cv_file_magic_cmd='/bin/file' 44967e6fb56fSmrg lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 44977e6fb56fSmrg lt_cv_file_magic_test_file=/lib/libc.so 44987e6fb56fSmrg ;; 44997e6fb56fSmrg siemens) 45007e6fb56fSmrg lt_cv_deplibs_check_method=pass_all 45017e6fb56fSmrg ;; 45027e6fb56fSmrg pc) 45037e6fb56fSmrg lt_cv_deplibs_check_method=pass_all 45047e6fb56fSmrg ;; 45057e6fb56fSmrg esac 45067e6fb56fSmrg ;; 45077e6fb56fSmrg 45087e6fb56fSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 45097e6fb56fSmrg lt_cv_deplibs_check_method=pass_all 45107e6fb56fSmrg ;; 45117e6fb56fSmrgesac 45127e6fb56fSmrg 45137e6fb56fSmrgfi 45147e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 45157e6fb56fSmrg$as_echo "$lt_cv_deplibs_check_method" >&6; } 45167e6fb56fSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 45177e6fb56fSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 45187e6fb56fSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 45197e6fb56fSmrg 45207e6fb56fSmrg 45217e6fb56fSmrg 45227e6fb56fSmrg 45237e6fb56fSmrg# If no C compiler was specified, use CC. 45247e6fb56fSmrgLTCC=${LTCC-"$CC"} 45257e6fb56fSmrg 45267e6fb56fSmrg# If no C compiler flags were specified, use CFLAGS. 45277e6fb56fSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 45287e6fb56fSmrg 45297e6fb56fSmrg# Allow CC to be a program name with arguments. 45307e6fb56fSmrgcompiler=$CC 45317e6fb56fSmrg 45327e6fb56fSmrg 45337e6fb56fSmrg# Check whether --enable-libtool-lock was given. 45347e6fb56fSmrgif test "${enable_libtool_lock+set}" = set; then 45357e6fb56fSmrg enableval=$enable_libtool_lock; 45367e6fb56fSmrgfi 45377e6fb56fSmrg 45387e6fb56fSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 45397e6fb56fSmrg 45407e6fb56fSmrg# Some flags need to be propagated to the compiler or linker for good 45417e6fb56fSmrg# libtool support. 45427e6fb56fSmrgcase $host in 45437e6fb56fSmrgia64-*-hpux*) 45447e6fb56fSmrg # Find out which ABI we are using. 45457e6fb56fSmrg echo 'int i;' > conftest.$ac_ext 45467e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 45477e6fb56fSmrg (eval $ac_compile) 2>&5 45487e6fb56fSmrg ac_status=$? 45497e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 45507e6fb56fSmrg (exit $ac_status); }; then 45517e6fb56fSmrg case `/usr/bin/file conftest.$ac_objext` in 45527e6fb56fSmrg *ELF-32*) 45537e6fb56fSmrg HPUX_IA64_MODE="32" 45547e6fb56fSmrg ;; 45557e6fb56fSmrg *ELF-64*) 45567e6fb56fSmrg HPUX_IA64_MODE="64" 45577e6fb56fSmrg ;; 45587e6fb56fSmrg esac 45597e6fb56fSmrg fi 45607e6fb56fSmrg rm -rf conftest* 45617e6fb56fSmrg ;; 45627e6fb56fSmrg*-*-irix6*) 45637e6fb56fSmrg # Find out which ABI we are using. 45647e6fb56fSmrg echo '#line 4564 "configure"' > conftest.$ac_ext 45657e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 45667e6fb56fSmrg (eval $ac_compile) 2>&5 45677e6fb56fSmrg ac_status=$? 45687e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 45697e6fb56fSmrg (exit $ac_status); }; then 45707e6fb56fSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 45717e6fb56fSmrg case `/usr/bin/file conftest.$ac_objext` in 45727e6fb56fSmrg *32-bit*) 45737e6fb56fSmrg LD="${LD-ld} -melf32bsmip" 45747e6fb56fSmrg ;; 45757e6fb56fSmrg *N32*) 45767e6fb56fSmrg LD="${LD-ld} -melf32bmipn32" 45777e6fb56fSmrg ;; 45787e6fb56fSmrg *64-bit*) 45797e6fb56fSmrg LD="${LD-ld} -melf64bmip" 45807e6fb56fSmrg ;; 45817e6fb56fSmrg esac 45827e6fb56fSmrg else 45837e6fb56fSmrg case `/usr/bin/file conftest.$ac_objext` in 45847e6fb56fSmrg *32-bit*) 45857e6fb56fSmrg LD="${LD-ld} -32" 45867e6fb56fSmrg ;; 45877e6fb56fSmrg *N32*) 45887e6fb56fSmrg LD="${LD-ld} -n32" 45897e6fb56fSmrg ;; 45907e6fb56fSmrg *64-bit*) 45917e6fb56fSmrg LD="${LD-ld} -64" 45927e6fb56fSmrg ;; 45937e6fb56fSmrg esac 45947e6fb56fSmrg fi 45957e6fb56fSmrg fi 45967e6fb56fSmrg rm -rf conftest* 45977e6fb56fSmrg ;; 45987e6fb56fSmrg 45997e6fb56fSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 46007e6fb56fSmrgs390*-*linux*|sparc*-*linux*) 46017e6fb56fSmrg # Find out which ABI we are using. 46027e6fb56fSmrg echo 'int i;' > conftest.$ac_ext 46037e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 46047e6fb56fSmrg (eval $ac_compile) 2>&5 46057e6fb56fSmrg ac_status=$? 46067e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 46077e6fb56fSmrg (exit $ac_status); }; then 46087e6fb56fSmrg case `/usr/bin/file conftest.o` in 46097e6fb56fSmrg *32-bit*) 46107e6fb56fSmrg case $host in 46117e6fb56fSmrg x86_64-*kfreebsd*-gnu) 46127e6fb56fSmrg LD="${LD-ld} -m elf_i386_fbsd" 46137e6fb56fSmrg ;; 46147e6fb56fSmrg x86_64-*linux*) 46157e6fb56fSmrg LD="${LD-ld} -m elf_i386" 46167e6fb56fSmrg ;; 46177e6fb56fSmrg ppc64-*linux*|powerpc64-*linux*) 46187e6fb56fSmrg LD="${LD-ld} -m elf32ppclinux" 46197e6fb56fSmrg ;; 46207e6fb56fSmrg s390x-*linux*) 46217e6fb56fSmrg LD="${LD-ld} -m elf_s390" 46227e6fb56fSmrg ;; 46237e6fb56fSmrg sparc64-*linux*) 46247e6fb56fSmrg LD="${LD-ld} -m elf32_sparc" 46257e6fb56fSmrg ;; 46267e6fb56fSmrg esac 46277e6fb56fSmrg ;; 46287e6fb56fSmrg *64-bit*) 46297e6fb56fSmrg libsuff=64 46307e6fb56fSmrg case $host in 46317e6fb56fSmrg x86_64-*kfreebsd*-gnu) 46327e6fb56fSmrg LD="${LD-ld} -m elf_x86_64_fbsd" 46337e6fb56fSmrg ;; 46347e6fb56fSmrg x86_64-*linux*) 46357e6fb56fSmrg LD="${LD-ld} -m elf_x86_64" 46367e6fb56fSmrg ;; 46377e6fb56fSmrg ppc*-*linux*|powerpc*-*linux*) 46387e6fb56fSmrg LD="${LD-ld} -m elf64ppc" 46397e6fb56fSmrg ;; 46407e6fb56fSmrg s390*-*linux*) 46417e6fb56fSmrg LD="${LD-ld} -m elf64_s390" 46427e6fb56fSmrg ;; 46437e6fb56fSmrg sparc*-*linux*) 46447e6fb56fSmrg LD="${LD-ld} -m elf64_sparc" 46457e6fb56fSmrg ;; 46467e6fb56fSmrg esac 46477e6fb56fSmrg ;; 46487e6fb56fSmrg esac 46497e6fb56fSmrg fi 46507e6fb56fSmrg rm -rf conftest* 46517e6fb56fSmrg ;; 46527e6fb56fSmrg 46537e6fb56fSmrg*-*-sco3.2v5*) 46547e6fb56fSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 46557e6fb56fSmrg SAVE_CFLAGS="$CFLAGS" 46567e6fb56fSmrg CFLAGS="$CFLAGS -belf" 46577e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 46587e6fb56fSmrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 46597e6fb56fSmrgif test "${lt_cv_cc_needs_belf+set}" = set; then 46607e6fb56fSmrg $as_echo_n "(cached) " >&6 46617e6fb56fSmrgelse 46627e6fb56fSmrg ac_ext=c 46637e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 46647e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46657e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46667e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 46677e6fb56fSmrg 46687e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 46697e6fb56fSmrg/* confdefs.h. */ 46707e6fb56fSmrg_ACEOF 46717e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 46727e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 46737e6fb56fSmrg/* end confdefs.h. */ 46747e6fb56fSmrg 46757e6fb56fSmrgint 46767e6fb56fSmrgmain () 46777e6fb56fSmrg{ 46787e6fb56fSmrg 46797e6fb56fSmrg ; 46807e6fb56fSmrg return 0; 46817e6fb56fSmrg} 46827e6fb56fSmrg_ACEOF 46837e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 46847e6fb56fSmrgif { (ac_try="$ac_link" 46857e6fb56fSmrgcase "(($ac_try" in 46867e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 46877e6fb56fSmrg *) ac_try_echo=$ac_try;; 46887e6fb56fSmrgesac 46897e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 46907e6fb56fSmrg$as_echo "$ac_try_echo") >&5 46917e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 46927e6fb56fSmrg ac_status=$? 46937e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 46947e6fb56fSmrg rm -f conftest.er1 46957e6fb56fSmrg cat conftest.err >&5 46967e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 46977e6fb56fSmrg (exit $ac_status); } && { 46987e6fb56fSmrg test -z "$ac_c_werror_flag" || 46997e6fb56fSmrg test ! -s conftest.err 47007e6fb56fSmrg } && test -s conftest$ac_exeext && { 47017e6fb56fSmrg test "$cross_compiling" = yes || 47027e6fb56fSmrg $as_test_x conftest$ac_exeext 47037e6fb56fSmrg }; then 47047e6fb56fSmrg lt_cv_cc_needs_belf=yes 47057e6fb56fSmrgelse 47067e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 47077e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 47087e6fb56fSmrg 47097e6fb56fSmrg lt_cv_cc_needs_belf=no 47107e6fb56fSmrgfi 47117e6fb56fSmrg 47127e6fb56fSmrgrm -rf conftest.dSYM 47137e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 47147e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 47157e6fb56fSmrg ac_ext=c 47167e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 47177e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47187e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47197e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 47207e6fb56fSmrg 47217e6fb56fSmrgfi 47227e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 47237e6fb56fSmrg$as_echo "$lt_cv_cc_needs_belf" >&6; } 47247e6fb56fSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 47257e6fb56fSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 47267e6fb56fSmrg CFLAGS="$SAVE_CFLAGS" 47277e6fb56fSmrg fi 47287e6fb56fSmrg ;; 47297e6fb56fSmrgsparc*-*solaris*) 47307e6fb56fSmrg # Find out which ABI we are using. 47317e6fb56fSmrg echo 'int i;' > conftest.$ac_ext 47327e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 47337e6fb56fSmrg (eval $ac_compile) 2>&5 47347e6fb56fSmrg ac_status=$? 47357e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 47367e6fb56fSmrg (exit $ac_status); }; then 47377e6fb56fSmrg case `/usr/bin/file conftest.o` in 47387e6fb56fSmrg *64-bit*) 47397e6fb56fSmrg case $lt_cv_prog_gnu_ld in 47407e6fb56fSmrg yes*) LD="${LD-ld} -m elf64_sparc" ;; 47417e6fb56fSmrg *) 47427e6fb56fSmrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 47437e6fb56fSmrg LD="${LD-ld} -64" 47447e6fb56fSmrg fi 47457e6fb56fSmrg ;; 47467e6fb56fSmrg esac 47477e6fb56fSmrg ;; 47487e6fb56fSmrg esac 47497e6fb56fSmrg fi 47507e6fb56fSmrg rm -rf conftest* 47517e6fb56fSmrg ;; 47527e6fb56fSmrg 47537e6fb56fSmrg 47547e6fb56fSmrgesac 47557e6fb56fSmrg 47567e6fb56fSmrgneed_locks="$enable_libtool_lock" 47577e6fb56fSmrg 47587e6fb56fSmrg 47597e6fb56fSmrgac_ext=c 47607e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 47617e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47627e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47637e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 47647e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 47657e6fb56fSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 47667e6fb56fSmrg# On Suns, sometimes $CPP names a directory. 47677e6fb56fSmrgif test -n "$CPP" && test -d "$CPP"; then 47687e6fb56fSmrg CPP= 47697e6fb56fSmrgfi 47707e6fb56fSmrgif test -z "$CPP"; then 47717e6fb56fSmrg if test "${ac_cv_prog_CPP+set}" = set; then 47727e6fb56fSmrg $as_echo_n "(cached) " >&6 47737e6fb56fSmrgelse 47747e6fb56fSmrg # Double quotes because CPP needs to be expanded 47757e6fb56fSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 47767e6fb56fSmrg do 47777e6fb56fSmrg ac_preproc_ok=false 47787e6fb56fSmrgfor ac_c_preproc_warn_flag in '' yes 47797e6fb56fSmrgdo 47807e6fb56fSmrg # Use a header file that comes with gcc, so configuring glibc 47817e6fb56fSmrg # with a fresh cross-compiler works. 47827e6fb56fSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 47837e6fb56fSmrg # <limits.h> exists even on freestanding compilers. 47847e6fb56fSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 47857e6fb56fSmrg # not just through cpp. "Syntax error" is here to catch this case. 47867e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 47877e6fb56fSmrg/* confdefs.h. */ 47887e6fb56fSmrg_ACEOF 47897e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 47907e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 47917e6fb56fSmrg/* end confdefs.h. */ 47927e6fb56fSmrg#ifdef __STDC__ 47937e6fb56fSmrg# include <limits.h> 47947e6fb56fSmrg#else 47957e6fb56fSmrg# include <assert.h> 47967e6fb56fSmrg#endif 47977e6fb56fSmrg Syntax error 47987e6fb56fSmrg_ACEOF 47997e6fb56fSmrgif { (ac_try="$ac_cpp conftest.$ac_ext" 48007e6fb56fSmrgcase "(($ac_try" in 48017e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 48027e6fb56fSmrg *) ac_try_echo=$ac_try;; 48037e6fb56fSmrgesac 48047e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 48057e6fb56fSmrg$as_echo "$ac_try_echo") >&5 48067e6fb56fSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 48077e6fb56fSmrg ac_status=$? 48087e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 48097e6fb56fSmrg rm -f conftest.er1 48107e6fb56fSmrg cat conftest.err >&5 48117e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 48127e6fb56fSmrg (exit $ac_status); } >/dev/null && { 48137e6fb56fSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 48147e6fb56fSmrg test ! -s conftest.err 48157e6fb56fSmrg }; then 48167e6fb56fSmrg : 48177e6fb56fSmrgelse 48187e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 48197e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 48207e6fb56fSmrg 48217e6fb56fSmrg # Broken: fails on valid input. 48227e6fb56fSmrgcontinue 48237e6fb56fSmrgfi 48247e6fb56fSmrg 48257e6fb56fSmrgrm -f conftest.err conftest.$ac_ext 48267e6fb56fSmrg 48277e6fb56fSmrg # OK, works on sane cases. Now check whether nonexistent headers 48287e6fb56fSmrg # can be detected and how. 48297e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 48307e6fb56fSmrg/* confdefs.h. */ 48317e6fb56fSmrg_ACEOF 48327e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 48337e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 48347e6fb56fSmrg/* end confdefs.h. */ 48357e6fb56fSmrg#include <ac_nonexistent.h> 48367e6fb56fSmrg_ACEOF 48377e6fb56fSmrgif { (ac_try="$ac_cpp conftest.$ac_ext" 48387e6fb56fSmrgcase "(($ac_try" in 48397e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 48407e6fb56fSmrg *) ac_try_echo=$ac_try;; 48417e6fb56fSmrgesac 48427e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 48437e6fb56fSmrg$as_echo "$ac_try_echo") >&5 48447e6fb56fSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 48457e6fb56fSmrg ac_status=$? 48467e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 48477e6fb56fSmrg rm -f conftest.er1 48487e6fb56fSmrg cat conftest.err >&5 48497e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 48507e6fb56fSmrg (exit $ac_status); } >/dev/null && { 48517e6fb56fSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 48527e6fb56fSmrg test ! -s conftest.err 48537e6fb56fSmrg }; then 48547e6fb56fSmrg # Broken: success on invalid input. 48557e6fb56fSmrgcontinue 48567e6fb56fSmrgelse 48577e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 48587e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 48597e6fb56fSmrg 48607e6fb56fSmrg # Passes both tests. 48617e6fb56fSmrgac_preproc_ok=: 48627e6fb56fSmrgbreak 48637e6fb56fSmrgfi 48647e6fb56fSmrg 48657e6fb56fSmrgrm -f conftest.err conftest.$ac_ext 48667e6fb56fSmrg 48677e6fb56fSmrgdone 48687e6fb56fSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 48697e6fb56fSmrgrm -f conftest.err conftest.$ac_ext 48707e6fb56fSmrgif $ac_preproc_ok; then 48717e6fb56fSmrg break 48727e6fb56fSmrgfi 48737e6fb56fSmrg 48747e6fb56fSmrg done 48757e6fb56fSmrg ac_cv_prog_CPP=$CPP 48767e6fb56fSmrg 48777e6fb56fSmrgfi 48787e6fb56fSmrg CPP=$ac_cv_prog_CPP 48797e6fb56fSmrgelse 48807e6fb56fSmrg ac_cv_prog_CPP=$CPP 48817e6fb56fSmrgfi 48827e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 48837e6fb56fSmrg$as_echo "$CPP" >&6; } 48847e6fb56fSmrgac_preproc_ok=false 48857e6fb56fSmrgfor ac_c_preproc_warn_flag in '' yes 48867e6fb56fSmrgdo 48877e6fb56fSmrg # Use a header file that comes with gcc, so configuring glibc 48887e6fb56fSmrg # with a fresh cross-compiler works. 48897e6fb56fSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 48907e6fb56fSmrg # <limits.h> exists even on freestanding compilers. 48917e6fb56fSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 48927e6fb56fSmrg # not just through cpp. "Syntax error" is here to catch this case. 48937e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 48947e6fb56fSmrg/* confdefs.h. */ 48957e6fb56fSmrg_ACEOF 48967e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 48977e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 48987e6fb56fSmrg/* end confdefs.h. */ 48997e6fb56fSmrg#ifdef __STDC__ 49007e6fb56fSmrg# include <limits.h> 49017e6fb56fSmrg#else 49027e6fb56fSmrg# include <assert.h> 49037e6fb56fSmrg#endif 49047e6fb56fSmrg Syntax error 49057e6fb56fSmrg_ACEOF 49067e6fb56fSmrgif { (ac_try="$ac_cpp conftest.$ac_ext" 49077e6fb56fSmrgcase "(($ac_try" in 49087e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 49097e6fb56fSmrg *) ac_try_echo=$ac_try;; 49107e6fb56fSmrgesac 49117e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 49127e6fb56fSmrg$as_echo "$ac_try_echo") >&5 49137e6fb56fSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 49147e6fb56fSmrg ac_status=$? 49157e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 49167e6fb56fSmrg rm -f conftest.er1 49177e6fb56fSmrg cat conftest.err >&5 49187e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 49197e6fb56fSmrg (exit $ac_status); } >/dev/null && { 49207e6fb56fSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 49217e6fb56fSmrg test ! -s conftest.err 49227e6fb56fSmrg }; then 49237e6fb56fSmrg : 49247e6fb56fSmrgelse 49257e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 49267e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 49277e6fb56fSmrg 49287e6fb56fSmrg # Broken: fails on valid input. 49297e6fb56fSmrgcontinue 49307e6fb56fSmrgfi 49317e6fb56fSmrg 49327e6fb56fSmrgrm -f conftest.err conftest.$ac_ext 49337e6fb56fSmrg 49347e6fb56fSmrg # OK, works on sane cases. Now check whether nonexistent headers 49357e6fb56fSmrg # can be detected and how. 49367e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 49377e6fb56fSmrg/* confdefs.h. */ 49387e6fb56fSmrg_ACEOF 49397e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 49407e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 49417e6fb56fSmrg/* end confdefs.h. */ 49427e6fb56fSmrg#include <ac_nonexistent.h> 49437e6fb56fSmrg_ACEOF 49447e6fb56fSmrgif { (ac_try="$ac_cpp conftest.$ac_ext" 49457e6fb56fSmrgcase "(($ac_try" in 49467e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 49477e6fb56fSmrg *) ac_try_echo=$ac_try;; 49487e6fb56fSmrgesac 49497e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 49507e6fb56fSmrg$as_echo "$ac_try_echo") >&5 49517e6fb56fSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 49527e6fb56fSmrg ac_status=$? 49537e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 49547e6fb56fSmrg rm -f conftest.er1 49557e6fb56fSmrg cat conftest.err >&5 49567e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 49577e6fb56fSmrg (exit $ac_status); } >/dev/null && { 49587e6fb56fSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 49597e6fb56fSmrg test ! -s conftest.err 49607e6fb56fSmrg }; then 49617e6fb56fSmrg # Broken: success on invalid input. 49627e6fb56fSmrgcontinue 49637e6fb56fSmrgelse 49647e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 49657e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 49667e6fb56fSmrg 49677e6fb56fSmrg # Passes both tests. 49687e6fb56fSmrgac_preproc_ok=: 49697e6fb56fSmrgbreak 49707e6fb56fSmrgfi 49717e6fb56fSmrg 49727e6fb56fSmrgrm -f conftest.err conftest.$ac_ext 49737e6fb56fSmrg 49747e6fb56fSmrgdone 49757e6fb56fSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 49767e6fb56fSmrgrm -f conftest.err conftest.$ac_ext 49777e6fb56fSmrgif $ac_preproc_ok; then 49787e6fb56fSmrg : 49797e6fb56fSmrgelse 49807e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 49817e6fb56fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 49827e6fb56fSmrg{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 49837e6fb56fSmrgSee \`config.log' for more details." >&5 49847e6fb56fSmrg$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 49857e6fb56fSmrgSee \`config.log' for more details." >&2;} 49867e6fb56fSmrg { (exit 1); exit 1; }; }; } 49877e6fb56fSmrgfi 49887e6fb56fSmrg 49897e6fb56fSmrgac_ext=c 49907e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 49917e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49927e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49937e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 49947e6fb56fSmrg 49957e6fb56fSmrg 49967e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 49977e6fb56fSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 49987e6fb56fSmrgif test "${ac_cv_header_stdc+set}" = set; then 49997e6fb56fSmrg $as_echo_n "(cached) " >&6 50007e6fb56fSmrgelse 50017e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 50027e6fb56fSmrg/* confdefs.h. */ 50037e6fb56fSmrg_ACEOF 50047e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 50057e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 50067e6fb56fSmrg/* end confdefs.h. */ 50077e6fb56fSmrg#include <stdlib.h> 50087e6fb56fSmrg#include <stdarg.h> 50097e6fb56fSmrg#include <string.h> 50107e6fb56fSmrg#include <float.h> 50117e6fb56fSmrg 50127e6fb56fSmrgint 50137e6fb56fSmrgmain () 50147e6fb56fSmrg{ 50157e6fb56fSmrg 50167e6fb56fSmrg ; 50177e6fb56fSmrg return 0; 50187e6fb56fSmrg} 50197e6fb56fSmrg_ACEOF 50207e6fb56fSmrgrm -f conftest.$ac_objext 50217e6fb56fSmrgif { (ac_try="$ac_compile" 50227e6fb56fSmrgcase "(($ac_try" in 50237e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50247e6fb56fSmrg *) ac_try_echo=$ac_try;; 50257e6fb56fSmrgesac 50267e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 50277e6fb56fSmrg$as_echo "$ac_try_echo") >&5 50287e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 50297e6fb56fSmrg ac_status=$? 50307e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 50317e6fb56fSmrg rm -f conftest.er1 50327e6fb56fSmrg cat conftest.err >&5 50337e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 50347e6fb56fSmrg (exit $ac_status); } && { 50357e6fb56fSmrg test -z "$ac_c_werror_flag" || 50367e6fb56fSmrg test ! -s conftest.err 50377e6fb56fSmrg } && test -s conftest.$ac_objext; then 50387e6fb56fSmrg ac_cv_header_stdc=yes 50397e6fb56fSmrgelse 50407e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 50417e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 50427e6fb56fSmrg 50437e6fb56fSmrg ac_cv_header_stdc=no 50447e6fb56fSmrgfi 50457e6fb56fSmrg 50467e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50477e6fb56fSmrg 50487e6fb56fSmrgif test $ac_cv_header_stdc = yes; then 50497e6fb56fSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 50507e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 50517e6fb56fSmrg/* confdefs.h. */ 50527e6fb56fSmrg_ACEOF 50537e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 50547e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 50557e6fb56fSmrg/* end confdefs.h. */ 50567e6fb56fSmrg#include <string.h> 50577e6fb56fSmrg 50587e6fb56fSmrg_ACEOF 50597e6fb56fSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 50607e6fb56fSmrg $EGREP "memchr" >/dev/null 2>&1; then 50617e6fb56fSmrg : 50627e6fb56fSmrgelse 50637e6fb56fSmrg ac_cv_header_stdc=no 50647e6fb56fSmrgfi 50657e6fb56fSmrgrm -f conftest* 50667e6fb56fSmrg 50677e6fb56fSmrgfi 50687e6fb56fSmrg 50697e6fb56fSmrgif test $ac_cv_header_stdc = yes; then 50707e6fb56fSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 50717e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 50727e6fb56fSmrg/* confdefs.h. */ 50737e6fb56fSmrg_ACEOF 50747e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 50757e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 50767e6fb56fSmrg/* end confdefs.h. */ 50777e6fb56fSmrg#include <stdlib.h> 50787e6fb56fSmrg 50797e6fb56fSmrg_ACEOF 50807e6fb56fSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 50817e6fb56fSmrg $EGREP "free" >/dev/null 2>&1; then 50827e6fb56fSmrg : 50837e6fb56fSmrgelse 50847e6fb56fSmrg ac_cv_header_stdc=no 50857e6fb56fSmrgfi 50867e6fb56fSmrgrm -f conftest* 50877e6fb56fSmrg 50887e6fb56fSmrgfi 50897e6fb56fSmrg 50907e6fb56fSmrgif test $ac_cv_header_stdc = yes; then 50917e6fb56fSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 50927e6fb56fSmrg if test "$cross_compiling" = yes; then 50937e6fb56fSmrg : 50947e6fb56fSmrgelse 50957e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 50967e6fb56fSmrg/* confdefs.h. */ 50977e6fb56fSmrg_ACEOF 50987e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 50997e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 51007e6fb56fSmrg/* end confdefs.h. */ 51017e6fb56fSmrg#include <ctype.h> 51027e6fb56fSmrg#include <stdlib.h> 51037e6fb56fSmrg#if ((' ' & 0x0FF) == 0x020) 51047e6fb56fSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 51057e6fb56fSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 51067e6fb56fSmrg#else 51077e6fb56fSmrg# define ISLOWER(c) \ 51087e6fb56fSmrg (('a' <= (c) && (c) <= 'i') \ 51097e6fb56fSmrg || ('j' <= (c) && (c) <= 'r') \ 51107e6fb56fSmrg || ('s' <= (c) && (c) <= 'z')) 51117e6fb56fSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 51127e6fb56fSmrg#endif 51137e6fb56fSmrg 51147e6fb56fSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 51157e6fb56fSmrgint 51167e6fb56fSmrgmain () 51177e6fb56fSmrg{ 51187e6fb56fSmrg int i; 51197e6fb56fSmrg for (i = 0; i < 256; i++) 51207e6fb56fSmrg if (XOR (islower (i), ISLOWER (i)) 51217e6fb56fSmrg || toupper (i) != TOUPPER (i)) 51227e6fb56fSmrg return 2; 51237e6fb56fSmrg return 0; 51247e6fb56fSmrg} 51257e6fb56fSmrg_ACEOF 51267e6fb56fSmrgrm -f conftest$ac_exeext 51277e6fb56fSmrgif { (ac_try="$ac_link" 51287e6fb56fSmrgcase "(($ac_try" in 51297e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 51307e6fb56fSmrg *) ac_try_echo=$ac_try;; 51317e6fb56fSmrgesac 51327e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 51337e6fb56fSmrg$as_echo "$ac_try_echo") >&5 51347e6fb56fSmrg (eval "$ac_link") 2>&5 51357e6fb56fSmrg ac_status=$? 51367e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 51377e6fb56fSmrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 51387e6fb56fSmrg { (case "(($ac_try" in 51397e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 51407e6fb56fSmrg *) ac_try_echo=$ac_try;; 51417e6fb56fSmrgesac 51427e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 51437e6fb56fSmrg$as_echo "$ac_try_echo") >&5 51447e6fb56fSmrg (eval "$ac_try") 2>&5 51457e6fb56fSmrg ac_status=$? 51467e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 51477e6fb56fSmrg (exit $ac_status); }; }; then 51487e6fb56fSmrg : 51497e6fb56fSmrgelse 51507e6fb56fSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 51517e6fb56fSmrg$as_echo "$as_me: failed program was:" >&5 51527e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 51537e6fb56fSmrg 51547e6fb56fSmrg( exit $ac_status ) 51557e6fb56fSmrgac_cv_header_stdc=no 51567e6fb56fSmrgfi 51577e6fb56fSmrgrm -rf conftest.dSYM 51587e6fb56fSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 51597e6fb56fSmrgfi 51607e6fb56fSmrg 51617e6fb56fSmrg 51627e6fb56fSmrgfi 51637e6fb56fSmrgfi 51647e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 51657e6fb56fSmrg$as_echo "$ac_cv_header_stdc" >&6; } 51667e6fb56fSmrgif test $ac_cv_header_stdc = yes; then 51677e6fb56fSmrg 51687e6fb56fSmrgcat >>confdefs.h <<\_ACEOF 51697e6fb56fSmrg#define STDC_HEADERS 1 51707e6fb56fSmrg_ACEOF 51717e6fb56fSmrg 51727e6fb56fSmrgfi 51737e6fb56fSmrg 51747e6fb56fSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 51757e6fb56fSmrg 51767e6fb56fSmrg 51777e6fb56fSmrg 51787e6fb56fSmrg 51797e6fb56fSmrg 51807e6fb56fSmrg 51817e6fb56fSmrg 51827e6fb56fSmrg 51837e6fb56fSmrg 51847e6fb56fSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 51857e6fb56fSmrg inttypes.h stdint.h unistd.h 51867e6fb56fSmrgdo 51877e6fb56fSmrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 51887e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 51897e6fb56fSmrg$as_echo_n "checking for $ac_header... " >&6; } 51907e6fb56fSmrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 51917e6fb56fSmrg $as_echo_n "(cached) " >&6 51927e6fb56fSmrgelse 51937e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 51947e6fb56fSmrg/* confdefs.h. */ 51957e6fb56fSmrg_ACEOF 51967e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 51977e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 51987e6fb56fSmrg/* end confdefs.h. */ 51997e6fb56fSmrg$ac_includes_default 52007e6fb56fSmrg 52017e6fb56fSmrg#include <$ac_header> 52027e6fb56fSmrg_ACEOF 52037e6fb56fSmrgrm -f conftest.$ac_objext 52047e6fb56fSmrgif { (ac_try="$ac_compile" 52057e6fb56fSmrgcase "(($ac_try" in 52067e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 52077e6fb56fSmrg *) ac_try_echo=$ac_try;; 52087e6fb56fSmrgesac 52097e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 52107e6fb56fSmrg$as_echo "$ac_try_echo") >&5 52117e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 52127e6fb56fSmrg ac_status=$? 52137e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 52147e6fb56fSmrg rm -f conftest.er1 52157e6fb56fSmrg cat conftest.err >&5 52167e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 52177e6fb56fSmrg (exit $ac_status); } && { 52187e6fb56fSmrg test -z "$ac_c_werror_flag" || 52197e6fb56fSmrg test ! -s conftest.err 52207e6fb56fSmrg } && test -s conftest.$ac_objext; then 52217e6fb56fSmrg eval "$as_ac_Header=yes" 52227e6fb56fSmrgelse 52237e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 52247e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 52257e6fb56fSmrg 52267e6fb56fSmrg eval "$as_ac_Header=no" 52277e6fb56fSmrgfi 52287e6fb56fSmrg 52297e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52307e6fb56fSmrgfi 52317e6fb56fSmrgac_res=`eval 'as_val=${'$as_ac_Header'} 52327e6fb56fSmrg $as_echo "$as_val"'` 52337e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 52347e6fb56fSmrg$as_echo "$ac_res" >&6; } 52357e6fb56fSmrgas_val=`eval 'as_val=${'$as_ac_Header'} 52367e6fb56fSmrg $as_echo "$as_val"'` 52377e6fb56fSmrg if test "x$as_val" = x""yes; then 52387e6fb56fSmrg cat >>confdefs.h <<_ACEOF 52397e6fb56fSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 52407e6fb56fSmrg_ACEOF 52417e6fb56fSmrg 52427e6fb56fSmrgfi 52437e6fb56fSmrg 52447e6fb56fSmrgdone 52457e6fb56fSmrg 52467e6fb56fSmrg 52477e6fb56fSmrg 52487e6fb56fSmrgfor ac_header in dlfcn.h 52497e6fb56fSmrgdo 52507e6fb56fSmrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 52517e6fb56fSmrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 52527e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 52537e6fb56fSmrg$as_echo_n "checking for $ac_header... " >&6; } 52547e6fb56fSmrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 52557e6fb56fSmrg $as_echo_n "(cached) " >&6 52567e6fb56fSmrgfi 52577e6fb56fSmrgac_res=`eval 'as_val=${'$as_ac_Header'} 52587e6fb56fSmrg $as_echo "$as_val"'` 52597e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 52607e6fb56fSmrg$as_echo "$ac_res" >&6; } 52617e6fb56fSmrgelse 52627e6fb56fSmrg # Is the header compilable? 52637e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 52647e6fb56fSmrg$as_echo_n "checking $ac_header usability... " >&6; } 52657e6fb56fSmrgcat >conftest.$ac_ext <<_ACEOF 52667e6fb56fSmrg/* confdefs.h. */ 52677e6fb56fSmrg_ACEOF 52687e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 52697e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 52707e6fb56fSmrg/* end confdefs.h. */ 52717e6fb56fSmrg$ac_includes_default 52727e6fb56fSmrg#include <$ac_header> 52737e6fb56fSmrg_ACEOF 52747e6fb56fSmrgrm -f conftest.$ac_objext 52757e6fb56fSmrgif { (ac_try="$ac_compile" 52767e6fb56fSmrgcase "(($ac_try" in 52777e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 52787e6fb56fSmrg *) ac_try_echo=$ac_try;; 52797e6fb56fSmrgesac 52807e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 52817e6fb56fSmrg$as_echo "$ac_try_echo") >&5 52827e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 52837e6fb56fSmrg ac_status=$? 52847e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 52857e6fb56fSmrg rm -f conftest.er1 52867e6fb56fSmrg cat conftest.err >&5 52877e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 52887e6fb56fSmrg (exit $ac_status); } && { 52897e6fb56fSmrg test -z "$ac_c_werror_flag" || 52907e6fb56fSmrg test ! -s conftest.err 52917e6fb56fSmrg } && test -s conftest.$ac_objext; then 52927e6fb56fSmrg ac_header_compiler=yes 52937e6fb56fSmrgelse 52947e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 52957e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 52967e6fb56fSmrg 52977e6fb56fSmrg ac_header_compiler=no 52987e6fb56fSmrgfi 52997e6fb56fSmrg 53007e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53017e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 53027e6fb56fSmrg$as_echo "$ac_header_compiler" >&6; } 53037e6fb56fSmrg 53047e6fb56fSmrg# Is the header present? 53057e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 53067e6fb56fSmrg$as_echo_n "checking $ac_header presence... " >&6; } 53077e6fb56fSmrgcat >conftest.$ac_ext <<_ACEOF 53087e6fb56fSmrg/* confdefs.h. */ 53097e6fb56fSmrg_ACEOF 53107e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 53117e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 53127e6fb56fSmrg/* end confdefs.h. */ 53137e6fb56fSmrg#include <$ac_header> 53147e6fb56fSmrg_ACEOF 53157e6fb56fSmrgif { (ac_try="$ac_cpp conftest.$ac_ext" 53167e6fb56fSmrgcase "(($ac_try" in 53177e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 53187e6fb56fSmrg *) ac_try_echo=$ac_try;; 53197e6fb56fSmrgesac 53207e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 53217e6fb56fSmrg$as_echo "$ac_try_echo") >&5 53227e6fb56fSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 53237e6fb56fSmrg ac_status=$? 53247e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 53257e6fb56fSmrg rm -f conftest.er1 53267e6fb56fSmrg cat conftest.err >&5 53277e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 53287e6fb56fSmrg (exit $ac_status); } >/dev/null && { 53297e6fb56fSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 53307e6fb56fSmrg test ! -s conftest.err 53317e6fb56fSmrg }; then 53327e6fb56fSmrg ac_header_preproc=yes 53337e6fb56fSmrgelse 53347e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 53357e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 53367e6fb56fSmrg 53377e6fb56fSmrg ac_header_preproc=no 53387e6fb56fSmrgfi 53397e6fb56fSmrg 53407e6fb56fSmrgrm -f conftest.err conftest.$ac_ext 53417e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 53427e6fb56fSmrg$as_echo "$ac_header_preproc" >&6; } 53437e6fb56fSmrg 53447e6fb56fSmrg# So? What about this header? 53457e6fb56fSmrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 53467e6fb56fSmrg yes:no: ) 53477e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 53487e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 53497e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 53507e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 53517e6fb56fSmrg ac_header_preproc=yes 53527e6fb56fSmrg ;; 53537e6fb56fSmrg no:yes:* ) 53547e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 53557e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 53567e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 53577e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 53587e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 53597e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 53607e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 53617e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 53627e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 53637e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 53647e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 53657e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 53667e6fb56fSmrg ( cat <<\_ASBOX 53677e6fb56fSmrg## ------------------------------------------------------ ## 53687e6fb56fSmrg## Report this to http://www.openchrome.org/trac/report/1 ## 53697e6fb56fSmrg## ------------------------------------------------------ ## 53707e6fb56fSmrg_ASBOX 53717e6fb56fSmrg ) | sed "s/^/$as_me: WARNING: /" >&2 53727e6fb56fSmrg ;; 53737e6fb56fSmrgesac 53747e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 53757e6fb56fSmrg$as_echo_n "checking for $ac_header... " >&6; } 53767e6fb56fSmrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 53777e6fb56fSmrg $as_echo_n "(cached) " >&6 53787e6fb56fSmrgelse 53797e6fb56fSmrg eval "$as_ac_Header=\$ac_header_preproc" 53807e6fb56fSmrgfi 53817e6fb56fSmrgac_res=`eval 'as_val=${'$as_ac_Header'} 53827e6fb56fSmrg $as_echo "$as_val"'` 53837e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 53847e6fb56fSmrg$as_echo "$ac_res" >&6; } 53857e6fb56fSmrg 53867e6fb56fSmrgfi 53877e6fb56fSmrgas_val=`eval 'as_val=${'$as_ac_Header'} 53887e6fb56fSmrg $as_echo "$as_val"'` 53897e6fb56fSmrg if test "x$as_val" = x""yes; then 53907e6fb56fSmrg cat >>confdefs.h <<_ACEOF 53917e6fb56fSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 53927e6fb56fSmrg_ACEOF 53937e6fb56fSmrg 53947e6fb56fSmrgfi 53957e6fb56fSmrg 53967e6fb56fSmrgdone 53977e6fb56fSmrg 53987e6fb56fSmrgac_ext=cpp 53997e6fb56fSmrgac_cpp='$CXXCPP $CPPFLAGS' 54007e6fb56fSmrgac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54017e6fb56fSmrgac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54027e6fb56fSmrgac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54037e6fb56fSmrgif test -z "$CXX"; then 54047e6fb56fSmrg if test -n "$CCC"; then 54057e6fb56fSmrg CXX=$CCC 54067e6fb56fSmrg else 54077e6fb56fSmrg if test -n "$ac_tool_prefix"; then 54087e6fb56fSmrg for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 54097e6fb56fSmrg do 54107e6fb56fSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 54117e6fb56fSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 54127e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 54137e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 54147e6fb56fSmrgif test "${ac_cv_prog_CXX+set}" = set; then 54157e6fb56fSmrg $as_echo_n "(cached) " >&6 54167e6fb56fSmrgelse 54177e6fb56fSmrg if test -n "$CXX"; then 54187e6fb56fSmrg ac_cv_prog_CXX="$CXX" # Let the user override the test. 54197e6fb56fSmrgelse 54207e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 54217e6fb56fSmrgfor as_dir in $PATH 54227e6fb56fSmrgdo 54237e6fb56fSmrg IFS=$as_save_IFS 54247e6fb56fSmrg test -z "$as_dir" && as_dir=. 54257e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 54267e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 54277e6fb56fSmrg ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 54287e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 54297e6fb56fSmrg break 2 54307e6fb56fSmrg fi 54317e6fb56fSmrgdone 54327e6fb56fSmrgdone 54337e6fb56fSmrgIFS=$as_save_IFS 54347e6fb56fSmrg 54357e6fb56fSmrgfi 54367e6fb56fSmrgfi 54377e6fb56fSmrgCXX=$ac_cv_prog_CXX 54387e6fb56fSmrgif test -n "$CXX"; then 54397e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $CXX" >&5 54407e6fb56fSmrg$as_echo "$CXX" >&6; } 54417e6fb56fSmrgelse 54427e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 54437e6fb56fSmrg$as_echo "no" >&6; } 54447e6fb56fSmrgfi 54457e6fb56fSmrg 54467e6fb56fSmrg 54477e6fb56fSmrg test -n "$CXX" && break 54487e6fb56fSmrg done 54497e6fb56fSmrgfi 54507e6fb56fSmrgif test -z "$CXX"; then 54517e6fb56fSmrg ac_ct_CXX=$CXX 54527e6fb56fSmrg for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 54537e6fb56fSmrgdo 54547e6fb56fSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 54557e6fb56fSmrgset dummy $ac_prog; ac_word=$2 54567e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 54577e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 54587e6fb56fSmrgif test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 54597e6fb56fSmrg $as_echo_n "(cached) " >&6 54607e6fb56fSmrgelse 54617e6fb56fSmrg if test -n "$ac_ct_CXX"; then 54627e6fb56fSmrg ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 54637e6fb56fSmrgelse 54647e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 54657e6fb56fSmrgfor as_dir in $PATH 54667e6fb56fSmrgdo 54677e6fb56fSmrg IFS=$as_save_IFS 54687e6fb56fSmrg test -z "$as_dir" && as_dir=. 54697e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 54707e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 54717e6fb56fSmrg ac_cv_prog_ac_ct_CXX="$ac_prog" 54727e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 54737e6fb56fSmrg break 2 54747e6fb56fSmrg fi 54757e6fb56fSmrgdone 54767e6fb56fSmrgdone 54777e6fb56fSmrgIFS=$as_save_IFS 54787e6fb56fSmrg 54797e6fb56fSmrgfi 54807e6fb56fSmrgfi 54817e6fb56fSmrgac_ct_CXX=$ac_cv_prog_ac_ct_CXX 54827e6fb56fSmrgif test -n "$ac_ct_CXX"; then 54837e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 54847e6fb56fSmrg$as_echo "$ac_ct_CXX" >&6; } 54857e6fb56fSmrgelse 54867e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 54877e6fb56fSmrg$as_echo "no" >&6; } 54887e6fb56fSmrgfi 54897e6fb56fSmrg 54907e6fb56fSmrg 54917e6fb56fSmrg test -n "$ac_ct_CXX" && break 54927e6fb56fSmrgdone 54937e6fb56fSmrg 54947e6fb56fSmrg if test "x$ac_ct_CXX" = x; then 54957e6fb56fSmrg CXX="g++" 54967e6fb56fSmrg else 54977e6fb56fSmrg case $cross_compiling:$ac_tool_warned in 54987e6fb56fSmrgyes:) 54997e6fb56fSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 55007e6fb56fSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 55017e6fb56fSmrgac_tool_warned=yes ;; 55027e6fb56fSmrgesac 55037e6fb56fSmrg CXX=$ac_ct_CXX 55047e6fb56fSmrg fi 55057e6fb56fSmrgfi 55067e6fb56fSmrg 55077e6fb56fSmrg fi 55087e6fb56fSmrgfi 55097e6fb56fSmrg# Provide some information about the compiler. 55107e6fb56fSmrg$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 55117e6fb56fSmrgset X $ac_compile 55127e6fb56fSmrgac_compiler=$2 55137e6fb56fSmrg{ (ac_try="$ac_compiler --version >&5" 55147e6fb56fSmrgcase "(($ac_try" in 55157e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 55167e6fb56fSmrg *) ac_try_echo=$ac_try;; 55177e6fb56fSmrgesac 55187e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 55197e6fb56fSmrg$as_echo "$ac_try_echo") >&5 55207e6fb56fSmrg (eval "$ac_compiler --version >&5") 2>&5 55217e6fb56fSmrg ac_status=$? 55227e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 55237e6fb56fSmrg (exit $ac_status); } 55247e6fb56fSmrg{ (ac_try="$ac_compiler -v >&5" 55257e6fb56fSmrgcase "(($ac_try" in 55267e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 55277e6fb56fSmrg *) ac_try_echo=$ac_try;; 55287e6fb56fSmrgesac 55297e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 55307e6fb56fSmrg$as_echo "$ac_try_echo") >&5 55317e6fb56fSmrg (eval "$ac_compiler -v >&5") 2>&5 55327e6fb56fSmrg ac_status=$? 55337e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 55347e6fb56fSmrg (exit $ac_status); } 55357e6fb56fSmrg{ (ac_try="$ac_compiler -V >&5" 55367e6fb56fSmrgcase "(($ac_try" in 55377e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 55387e6fb56fSmrg *) ac_try_echo=$ac_try;; 55397e6fb56fSmrgesac 55407e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 55417e6fb56fSmrg$as_echo "$ac_try_echo") >&5 55427e6fb56fSmrg (eval "$ac_compiler -V >&5") 2>&5 55437e6fb56fSmrg ac_status=$? 55447e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 55457e6fb56fSmrg (exit $ac_status); } 55467e6fb56fSmrg 55477e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 55487e6fb56fSmrg$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 55497e6fb56fSmrgif test "${ac_cv_cxx_compiler_gnu+set}" = set; then 55507e6fb56fSmrg $as_echo_n "(cached) " >&6 55517e6fb56fSmrgelse 55527e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 55537e6fb56fSmrg/* confdefs.h. */ 55547e6fb56fSmrg_ACEOF 55557e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 55567e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 55577e6fb56fSmrg/* end confdefs.h. */ 55587e6fb56fSmrg 55597e6fb56fSmrgint 55607e6fb56fSmrgmain () 55617e6fb56fSmrg{ 55627e6fb56fSmrg#ifndef __GNUC__ 55637e6fb56fSmrg choke me 55647e6fb56fSmrg#endif 55657e6fb56fSmrg 55667e6fb56fSmrg ; 55677e6fb56fSmrg return 0; 55687e6fb56fSmrg} 55697e6fb56fSmrg_ACEOF 55707e6fb56fSmrgrm -f conftest.$ac_objext 55717e6fb56fSmrgif { (ac_try="$ac_compile" 55727e6fb56fSmrgcase "(($ac_try" in 55737e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 55747e6fb56fSmrg *) ac_try_echo=$ac_try;; 55757e6fb56fSmrgesac 55767e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 55777e6fb56fSmrg$as_echo "$ac_try_echo") >&5 55787e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 55797e6fb56fSmrg ac_status=$? 55807e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 55817e6fb56fSmrg rm -f conftest.er1 55827e6fb56fSmrg cat conftest.err >&5 55837e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 55847e6fb56fSmrg (exit $ac_status); } && { 55857e6fb56fSmrg test -z "$ac_cxx_werror_flag" || 55867e6fb56fSmrg test ! -s conftest.err 55877e6fb56fSmrg } && test -s conftest.$ac_objext; then 55887e6fb56fSmrg ac_compiler_gnu=yes 55897e6fb56fSmrgelse 55907e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 55917e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 55927e6fb56fSmrg 55937e6fb56fSmrg ac_compiler_gnu=no 55947e6fb56fSmrgfi 55957e6fb56fSmrg 55967e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 55977e6fb56fSmrgac_cv_cxx_compiler_gnu=$ac_compiler_gnu 55987e6fb56fSmrg 55997e6fb56fSmrgfi 56007e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 56017e6fb56fSmrg$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 56027e6fb56fSmrgif test $ac_compiler_gnu = yes; then 56037e6fb56fSmrg GXX=yes 56047e6fb56fSmrgelse 56057e6fb56fSmrg GXX= 56067e6fb56fSmrgfi 56077e6fb56fSmrgac_test_CXXFLAGS=${CXXFLAGS+set} 56087e6fb56fSmrgac_save_CXXFLAGS=$CXXFLAGS 56097e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 56107e6fb56fSmrg$as_echo_n "checking whether $CXX accepts -g... " >&6; } 56117e6fb56fSmrgif test "${ac_cv_prog_cxx_g+set}" = set; then 56127e6fb56fSmrg $as_echo_n "(cached) " >&6 56137e6fb56fSmrgelse 56147e6fb56fSmrg ac_save_cxx_werror_flag=$ac_cxx_werror_flag 56157e6fb56fSmrg ac_cxx_werror_flag=yes 56167e6fb56fSmrg ac_cv_prog_cxx_g=no 56177e6fb56fSmrg CXXFLAGS="-g" 56187e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 56197e6fb56fSmrg/* confdefs.h. */ 56207e6fb56fSmrg_ACEOF 56217e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 56227e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 56237e6fb56fSmrg/* end confdefs.h. */ 56247e6fb56fSmrg 56257e6fb56fSmrgint 56267e6fb56fSmrgmain () 56277e6fb56fSmrg{ 56287e6fb56fSmrg 56297e6fb56fSmrg ; 56307e6fb56fSmrg return 0; 56317e6fb56fSmrg} 56327e6fb56fSmrg_ACEOF 56337e6fb56fSmrgrm -f conftest.$ac_objext 56347e6fb56fSmrgif { (ac_try="$ac_compile" 56357e6fb56fSmrgcase "(($ac_try" in 56367e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 56377e6fb56fSmrg *) ac_try_echo=$ac_try;; 56387e6fb56fSmrgesac 56397e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 56407e6fb56fSmrg$as_echo "$ac_try_echo") >&5 56417e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 56427e6fb56fSmrg ac_status=$? 56437e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 56447e6fb56fSmrg rm -f conftest.er1 56457e6fb56fSmrg cat conftest.err >&5 56467e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 56477e6fb56fSmrg (exit $ac_status); } && { 56487e6fb56fSmrg test -z "$ac_cxx_werror_flag" || 56497e6fb56fSmrg test ! -s conftest.err 56507e6fb56fSmrg } && test -s conftest.$ac_objext; then 56517e6fb56fSmrg ac_cv_prog_cxx_g=yes 56527e6fb56fSmrgelse 56537e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 56547e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 56557e6fb56fSmrg 56567e6fb56fSmrg CXXFLAGS="" 56577e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 56587e6fb56fSmrg/* confdefs.h. */ 56597e6fb56fSmrg_ACEOF 56607e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 56617e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 56627e6fb56fSmrg/* end confdefs.h. */ 56637e6fb56fSmrg 56647e6fb56fSmrgint 56657e6fb56fSmrgmain () 56667e6fb56fSmrg{ 56677e6fb56fSmrg 56687e6fb56fSmrg ; 56697e6fb56fSmrg return 0; 56707e6fb56fSmrg} 56717e6fb56fSmrg_ACEOF 56727e6fb56fSmrgrm -f conftest.$ac_objext 56737e6fb56fSmrgif { (ac_try="$ac_compile" 56747e6fb56fSmrgcase "(($ac_try" in 56757e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 56767e6fb56fSmrg *) ac_try_echo=$ac_try;; 56777e6fb56fSmrgesac 56787e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 56797e6fb56fSmrg$as_echo "$ac_try_echo") >&5 56807e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 56817e6fb56fSmrg ac_status=$? 56827e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 56837e6fb56fSmrg rm -f conftest.er1 56847e6fb56fSmrg cat conftest.err >&5 56857e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 56867e6fb56fSmrg (exit $ac_status); } && { 56877e6fb56fSmrg test -z "$ac_cxx_werror_flag" || 56887e6fb56fSmrg test ! -s conftest.err 56897e6fb56fSmrg } && test -s conftest.$ac_objext; then 56907e6fb56fSmrg : 56917e6fb56fSmrgelse 56927e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 56937e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 56947e6fb56fSmrg 56957e6fb56fSmrg ac_cxx_werror_flag=$ac_save_cxx_werror_flag 56967e6fb56fSmrg CXXFLAGS="-g" 56977e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 56987e6fb56fSmrg/* confdefs.h. */ 56997e6fb56fSmrg_ACEOF 57007e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 57017e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 57027e6fb56fSmrg/* end confdefs.h. */ 57037e6fb56fSmrg 57047e6fb56fSmrgint 57057e6fb56fSmrgmain () 57067e6fb56fSmrg{ 57077e6fb56fSmrg 57087e6fb56fSmrg ; 57097e6fb56fSmrg return 0; 57107e6fb56fSmrg} 57117e6fb56fSmrg_ACEOF 57127e6fb56fSmrgrm -f conftest.$ac_objext 57137e6fb56fSmrgif { (ac_try="$ac_compile" 57147e6fb56fSmrgcase "(($ac_try" in 57157e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 57167e6fb56fSmrg *) ac_try_echo=$ac_try;; 57177e6fb56fSmrgesac 57187e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 57197e6fb56fSmrg$as_echo "$ac_try_echo") >&5 57207e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 57217e6fb56fSmrg ac_status=$? 57227e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 57237e6fb56fSmrg rm -f conftest.er1 57247e6fb56fSmrg cat conftest.err >&5 57257e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 57267e6fb56fSmrg (exit $ac_status); } && { 57277e6fb56fSmrg test -z "$ac_cxx_werror_flag" || 57287e6fb56fSmrg test ! -s conftest.err 57297e6fb56fSmrg } && test -s conftest.$ac_objext; then 57307e6fb56fSmrg ac_cv_prog_cxx_g=yes 57317e6fb56fSmrgelse 57327e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 57337e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 57347e6fb56fSmrg 57357e6fb56fSmrg 57367e6fb56fSmrgfi 57377e6fb56fSmrg 57387e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 57397e6fb56fSmrgfi 57407e6fb56fSmrg 57417e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 57427e6fb56fSmrgfi 57437e6fb56fSmrg 57447e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 57457e6fb56fSmrg ac_cxx_werror_flag=$ac_save_cxx_werror_flag 57467e6fb56fSmrgfi 57477e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 57487e6fb56fSmrg$as_echo "$ac_cv_prog_cxx_g" >&6; } 57497e6fb56fSmrgif test "$ac_test_CXXFLAGS" = set; then 57507e6fb56fSmrg CXXFLAGS=$ac_save_CXXFLAGS 57517e6fb56fSmrgelif test $ac_cv_prog_cxx_g = yes; then 57527e6fb56fSmrg if test "$GXX" = yes; then 57537e6fb56fSmrg CXXFLAGS="-g -O2" 57547e6fb56fSmrg else 57557e6fb56fSmrg CXXFLAGS="-g" 57567e6fb56fSmrg fi 57577e6fb56fSmrgelse 57587e6fb56fSmrg if test "$GXX" = yes; then 57597e6fb56fSmrg CXXFLAGS="-O2" 57607e6fb56fSmrg else 57617e6fb56fSmrg CXXFLAGS= 57627e6fb56fSmrg fi 57637e6fb56fSmrgfi 57647e6fb56fSmrgac_ext=cpp 57657e6fb56fSmrgac_cpp='$CXXCPP $CPPFLAGS' 57667e6fb56fSmrgac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 57677e6fb56fSmrgac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 57687e6fb56fSmrgac_compiler_gnu=$ac_cv_cxx_compiler_gnu 57697e6fb56fSmrg 57707e6fb56fSmrgdepcc="$CXX" am_compiler_list= 57717e6fb56fSmrg 57727e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 57737e6fb56fSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 57747e6fb56fSmrgif test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 57757e6fb56fSmrg $as_echo_n "(cached) " >&6 57767e6fb56fSmrgelse 57777e6fb56fSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 57787e6fb56fSmrg # We make a subdir and do the tests there. Otherwise we can end up 57797e6fb56fSmrg # making bogus files that we don't know about and never remove. For 57807e6fb56fSmrg # instance it was reported that on HP-UX the gcc test will end up 57817e6fb56fSmrg # making a dummy file named `D' -- because `-MD' means `put the output 57827e6fb56fSmrg # in D'. 57837e6fb56fSmrg mkdir conftest.dir 57847e6fb56fSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 57857e6fb56fSmrg # using a relative directory. 57867e6fb56fSmrg cp "$am_depcomp" conftest.dir 57877e6fb56fSmrg cd conftest.dir 57887e6fb56fSmrg # We will build objects and dependencies in a subdirectory because 57897e6fb56fSmrg # it helps to detect inapplicable dependency modes. For instance 57907e6fb56fSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 57917e6fb56fSmrg # side effect of compilation, but ICC will put the dependencies in 57927e6fb56fSmrg # the current directory while Tru64 will put them in the object 57937e6fb56fSmrg # directory. 57947e6fb56fSmrg mkdir sub 57957e6fb56fSmrg 57967e6fb56fSmrg am_cv_CXX_dependencies_compiler_type=none 57977e6fb56fSmrg if test "$am_compiler_list" = ""; then 57987e6fb56fSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 57997e6fb56fSmrg fi 58007e6fb56fSmrg am__universal=false 58017e6fb56fSmrg case " $depcc " in #( 58027e6fb56fSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 58037e6fb56fSmrg esac 58047e6fb56fSmrg 58057e6fb56fSmrg for depmode in $am_compiler_list; do 58067e6fb56fSmrg # Setup a source with many dependencies, because some compilers 58077e6fb56fSmrg # like to wrap large dependency lists on column 80 (with \), and 58087e6fb56fSmrg # we should not choose a depcomp mode which is confused by this. 58097e6fb56fSmrg # 58107e6fb56fSmrg # We need to recreate these files for each test, as the compiler may 58117e6fb56fSmrg # overwrite some of them when testing with obscure command lines. 58127e6fb56fSmrg # This happens at least with the AIX C compiler. 58137e6fb56fSmrg : > sub/conftest.c 58147e6fb56fSmrg for i in 1 2 3 4 5 6; do 58157e6fb56fSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 58167e6fb56fSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 58177e6fb56fSmrg # Solaris 8's {/usr,}/bin/sh. 58187e6fb56fSmrg touch sub/conftst$i.h 58197e6fb56fSmrg done 58207e6fb56fSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 58217e6fb56fSmrg 58227e6fb56fSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 58237e6fb56fSmrg # mode. It turns out that the SunPro C++ compiler does not properly 58247e6fb56fSmrg # handle `-M -o', and we need to detect this. Also, some Intel 58257e6fb56fSmrg # versions had trouble with output in subdirs 58267e6fb56fSmrg am__obj=sub/conftest.${OBJEXT-o} 58277e6fb56fSmrg am__minus_obj="-o $am__obj" 58287e6fb56fSmrg case $depmode in 58297e6fb56fSmrg gcc) 58307e6fb56fSmrg # This depmode causes a compiler race in universal mode. 58317e6fb56fSmrg test "$am__universal" = false || continue 58327e6fb56fSmrg ;; 58337e6fb56fSmrg nosideeffect) 58347e6fb56fSmrg # after this tag, mechanisms are not by side-effect, so they'll 58357e6fb56fSmrg # only be used when explicitly requested 58367e6fb56fSmrg if test "x$enable_dependency_tracking" = xyes; then 58377e6fb56fSmrg continue 58387e6fb56fSmrg else 58397e6fb56fSmrg break 58407e6fb56fSmrg fi 58417e6fb56fSmrg ;; 58427e6fb56fSmrg msvisualcpp | msvcmsys) 58437e6fb56fSmrg # This compiler won't grok `-c -o', but also, the minuso test has 58447e6fb56fSmrg # not run yet. These depmodes are late enough in the game, and 58457e6fb56fSmrg # so weak that their functioning should not be impacted. 58467e6fb56fSmrg am__obj=conftest.${OBJEXT-o} 58477e6fb56fSmrg am__minus_obj= 58487e6fb56fSmrg ;; 58497e6fb56fSmrg none) break ;; 58507e6fb56fSmrg esac 58517e6fb56fSmrg if depmode=$depmode \ 58527e6fb56fSmrg source=sub/conftest.c object=$am__obj \ 58537e6fb56fSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 58547e6fb56fSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 58557e6fb56fSmrg >/dev/null 2>conftest.err && 58567e6fb56fSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 58577e6fb56fSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 58587e6fb56fSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 58597e6fb56fSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 58607e6fb56fSmrg # icc doesn't choke on unknown options, it will just issue warnings 58617e6fb56fSmrg # or remarks (even with -Werror). So we grep stderr for any message 58627e6fb56fSmrg # that says an option was ignored or not supported. 58637e6fb56fSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 58647e6fb56fSmrg # icc: Command line warning: ignoring option '-M'; no argument required 58657e6fb56fSmrg # The diagnosis changed in icc 8.0: 58667e6fb56fSmrg # icc: Command line remark: option '-MP' not supported 58677e6fb56fSmrg if (grep 'ignoring option' conftest.err || 58687e6fb56fSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 58697e6fb56fSmrg am_cv_CXX_dependencies_compiler_type=$depmode 58707e6fb56fSmrg break 58717e6fb56fSmrg fi 58727e6fb56fSmrg fi 58737e6fb56fSmrg done 58747e6fb56fSmrg 58757e6fb56fSmrg cd .. 58767e6fb56fSmrg rm -rf conftest.dir 58777e6fb56fSmrgelse 58787e6fb56fSmrg am_cv_CXX_dependencies_compiler_type=none 58797e6fb56fSmrgfi 58807e6fb56fSmrg 58817e6fb56fSmrgfi 58827e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 58837e6fb56fSmrg$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 58847e6fb56fSmrgCXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 58857e6fb56fSmrg 58867e6fb56fSmrg if 58877e6fb56fSmrg test "x$enable_dependency_tracking" != xno \ 58887e6fb56fSmrg && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 58897e6fb56fSmrg am__fastdepCXX_TRUE= 58907e6fb56fSmrg am__fastdepCXX_FALSE='#' 58917e6fb56fSmrgelse 58927e6fb56fSmrg am__fastdepCXX_TRUE='#' 58937e6fb56fSmrg am__fastdepCXX_FALSE= 58947e6fb56fSmrgfi 58957e6fb56fSmrg 58967e6fb56fSmrg 58977e6fb56fSmrg 58987e6fb56fSmrg 58997e6fb56fSmrgif test -n "$CXX" && ( test "X$CXX" != "Xno" && 59007e6fb56fSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 59017e6fb56fSmrg (test "X$CXX" != "Xg++"))) ; then 59027e6fb56fSmrg ac_ext=cpp 59037e6fb56fSmrgac_cpp='$CXXCPP $CPPFLAGS' 59047e6fb56fSmrgac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 59057e6fb56fSmrgac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 59067e6fb56fSmrgac_compiler_gnu=$ac_cv_cxx_compiler_gnu 59077e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 59087e6fb56fSmrg$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 59097e6fb56fSmrgif test -z "$CXXCPP"; then 59107e6fb56fSmrg if test "${ac_cv_prog_CXXCPP+set}" = set; then 59117e6fb56fSmrg $as_echo_n "(cached) " >&6 59127e6fb56fSmrgelse 59137e6fb56fSmrg # Double quotes because CXXCPP needs to be expanded 59147e6fb56fSmrg for CXXCPP in "$CXX -E" "/lib/cpp" 59157e6fb56fSmrg do 59167e6fb56fSmrg ac_preproc_ok=false 59177e6fb56fSmrgfor ac_cxx_preproc_warn_flag in '' yes 59187e6fb56fSmrgdo 59197e6fb56fSmrg # Use a header file that comes with gcc, so configuring glibc 59207e6fb56fSmrg # with a fresh cross-compiler works. 59217e6fb56fSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 59227e6fb56fSmrg # <limits.h> exists even on freestanding compilers. 59237e6fb56fSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 59247e6fb56fSmrg # not just through cpp. "Syntax error" is here to catch this case. 59257e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 59267e6fb56fSmrg/* confdefs.h. */ 59277e6fb56fSmrg_ACEOF 59287e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 59297e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 59307e6fb56fSmrg/* end confdefs.h. */ 59317e6fb56fSmrg#ifdef __STDC__ 59327e6fb56fSmrg# include <limits.h> 59337e6fb56fSmrg#else 59347e6fb56fSmrg# include <assert.h> 59357e6fb56fSmrg#endif 59367e6fb56fSmrg Syntax error 59377e6fb56fSmrg_ACEOF 59387e6fb56fSmrgif { (ac_try="$ac_cpp conftest.$ac_ext" 59397e6fb56fSmrgcase "(($ac_try" in 59407e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 59417e6fb56fSmrg *) ac_try_echo=$ac_try;; 59427e6fb56fSmrgesac 59437e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 59447e6fb56fSmrg$as_echo "$ac_try_echo") >&5 59457e6fb56fSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 59467e6fb56fSmrg ac_status=$? 59477e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 59487e6fb56fSmrg rm -f conftest.er1 59497e6fb56fSmrg cat conftest.err >&5 59507e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 59517e6fb56fSmrg (exit $ac_status); } >/dev/null && { 59527e6fb56fSmrg test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 59537e6fb56fSmrg test ! -s conftest.err 59547e6fb56fSmrg }; then 59557e6fb56fSmrg : 59567e6fb56fSmrgelse 59577e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 59587e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 59597e6fb56fSmrg 59607e6fb56fSmrg # Broken: fails on valid input. 59617e6fb56fSmrgcontinue 59627e6fb56fSmrgfi 59637e6fb56fSmrg 59647e6fb56fSmrgrm -f conftest.err conftest.$ac_ext 59657e6fb56fSmrg 59667e6fb56fSmrg # OK, works on sane cases. Now check whether nonexistent headers 59677e6fb56fSmrg # can be detected and how. 59687e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 59697e6fb56fSmrg/* confdefs.h. */ 59707e6fb56fSmrg_ACEOF 59717e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 59727e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 59737e6fb56fSmrg/* end confdefs.h. */ 59747e6fb56fSmrg#include <ac_nonexistent.h> 59757e6fb56fSmrg_ACEOF 59767e6fb56fSmrgif { (ac_try="$ac_cpp conftest.$ac_ext" 59777e6fb56fSmrgcase "(($ac_try" in 59787e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 59797e6fb56fSmrg *) ac_try_echo=$ac_try;; 59807e6fb56fSmrgesac 59817e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 59827e6fb56fSmrg$as_echo "$ac_try_echo") >&5 59837e6fb56fSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 59847e6fb56fSmrg ac_status=$? 59857e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 59867e6fb56fSmrg rm -f conftest.er1 59877e6fb56fSmrg cat conftest.err >&5 59887e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 59897e6fb56fSmrg (exit $ac_status); } >/dev/null && { 59907e6fb56fSmrg test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 59917e6fb56fSmrg test ! -s conftest.err 59927e6fb56fSmrg }; then 59937e6fb56fSmrg # Broken: success on invalid input. 59947e6fb56fSmrgcontinue 59957e6fb56fSmrgelse 59967e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 59977e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 59987e6fb56fSmrg 59997e6fb56fSmrg # Passes both tests. 60007e6fb56fSmrgac_preproc_ok=: 60017e6fb56fSmrgbreak 60027e6fb56fSmrgfi 60037e6fb56fSmrg 60047e6fb56fSmrgrm -f conftest.err conftest.$ac_ext 60057e6fb56fSmrg 60067e6fb56fSmrgdone 60077e6fb56fSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 60087e6fb56fSmrgrm -f conftest.err conftest.$ac_ext 60097e6fb56fSmrgif $ac_preproc_ok; then 60107e6fb56fSmrg break 60117e6fb56fSmrgfi 60127e6fb56fSmrg 60137e6fb56fSmrg done 60147e6fb56fSmrg ac_cv_prog_CXXCPP=$CXXCPP 60157e6fb56fSmrg 60167e6fb56fSmrgfi 60177e6fb56fSmrg CXXCPP=$ac_cv_prog_CXXCPP 60187e6fb56fSmrgelse 60197e6fb56fSmrg ac_cv_prog_CXXCPP=$CXXCPP 60207e6fb56fSmrgfi 60217e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 60227e6fb56fSmrg$as_echo "$CXXCPP" >&6; } 60237e6fb56fSmrgac_preproc_ok=false 60247e6fb56fSmrgfor ac_cxx_preproc_warn_flag in '' yes 60257e6fb56fSmrgdo 60267e6fb56fSmrg # Use a header file that comes with gcc, so configuring glibc 60277e6fb56fSmrg # with a fresh cross-compiler works. 60287e6fb56fSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 60297e6fb56fSmrg # <limits.h> exists even on freestanding compilers. 60307e6fb56fSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 60317e6fb56fSmrg # not just through cpp. "Syntax error" is here to catch this case. 60327e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 60337e6fb56fSmrg/* confdefs.h. */ 60347e6fb56fSmrg_ACEOF 60357e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 60367e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 60377e6fb56fSmrg/* end confdefs.h. */ 60387e6fb56fSmrg#ifdef __STDC__ 60397e6fb56fSmrg# include <limits.h> 60407e6fb56fSmrg#else 60417e6fb56fSmrg# include <assert.h> 60427e6fb56fSmrg#endif 60437e6fb56fSmrg Syntax error 60447e6fb56fSmrg_ACEOF 60457e6fb56fSmrgif { (ac_try="$ac_cpp conftest.$ac_ext" 60467e6fb56fSmrgcase "(($ac_try" in 60477e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 60487e6fb56fSmrg *) ac_try_echo=$ac_try;; 60497e6fb56fSmrgesac 60507e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 60517e6fb56fSmrg$as_echo "$ac_try_echo") >&5 60527e6fb56fSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 60537e6fb56fSmrg ac_status=$? 60547e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 60557e6fb56fSmrg rm -f conftest.er1 60567e6fb56fSmrg cat conftest.err >&5 60577e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 60587e6fb56fSmrg (exit $ac_status); } >/dev/null && { 60597e6fb56fSmrg test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 60607e6fb56fSmrg test ! -s conftest.err 60617e6fb56fSmrg }; then 60627e6fb56fSmrg : 60637e6fb56fSmrgelse 60647e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 60657e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 60667e6fb56fSmrg 60677e6fb56fSmrg # Broken: fails on valid input. 60687e6fb56fSmrgcontinue 60697e6fb56fSmrgfi 60707e6fb56fSmrg 60717e6fb56fSmrgrm -f conftest.err conftest.$ac_ext 60727e6fb56fSmrg 60737e6fb56fSmrg # OK, works on sane cases. Now check whether nonexistent headers 60747e6fb56fSmrg # can be detected and how. 60757e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 60767e6fb56fSmrg/* confdefs.h. */ 60777e6fb56fSmrg_ACEOF 60787e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 60797e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 60807e6fb56fSmrg/* end confdefs.h. */ 60817e6fb56fSmrg#include <ac_nonexistent.h> 60827e6fb56fSmrg_ACEOF 60837e6fb56fSmrgif { (ac_try="$ac_cpp conftest.$ac_ext" 60847e6fb56fSmrgcase "(($ac_try" in 60857e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 60867e6fb56fSmrg *) ac_try_echo=$ac_try;; 60877e6fb56fSmrgesac 60887e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 60897e6fb56fSmrg$as_echo "$ac_try_echo") >&5 60907e6fb56fSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 60917e6fb56fSmrg ac_status=$? 60927e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 60937e6fb56fSmrg rm -f conftest.er1 60947e6fb56fSmrg cat conftest.err >&5 60957e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 60967e6fb56fSmrg (exit $ac_status); } >/dev/null && { 60977e6fb56fSmrg test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 60987e6fb56fSmrg test ! -s conftest.err 60997e6fb56fSmrg }; then 61007e6fb56fSmrg # Broken: success on invalid input. 61017e6fb56fSmrgcontinue 61027e6fb56fSmrgelse 61037e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 61047e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 61057e6fb56fSmrg 61067e6fb56fSmrg # Passes both tests. 61077e6fb56fSmrgac_preproc_ok=: 61087e6fb56fSmrgbreak 61097e6fb56fSmrgfi 61107e6fb56fSmrg 61117e6fb56fSmrgrm -f conftest.err conftest.$ac_ext 61127e6fb56fSmrg 61137e6fb56fSmrgdone 61147e6fb56fSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 61157e6fb56fSmrgrm -f conftest.err conftest.$ac_ext 61167e6fb56fSmrgif $ac_preproc_ok; then 61177e6fb56fSmrg : 61187e6fb56fSmrgelse 61197e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 61207e6fb56fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 61217e6fb56fSmrg{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 61227e6fb56fSmrgSee \`config.log' for more details." >&5 61237e6fb56fSmrg$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 61247e6fb56fSmrgSee \`config.log' for more details." >&2;} 61257e6fb56fSmrg { (exit 1); exit 1; }; }; } 61267e6fb56fSmrgfi 61277e6fb56fSmrg 61287e6fb56fSmrgac_ext=cpp 61297e6fb56fSmrgac_cpp='$CXXCPP $CPPFLAGS' 61307e6fb56fSmrgac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 61317e6fb56fSmrgac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 61327e6fb56fSmrgac_compiler_gnu=$ac_cv_cxx_compiler_gnu 61337e6fb56fSmrg 61347e6fb56fSmrgfi 61357e6fb56fSmrg 61367e6fb56fSmrg 61377e6fb56fSmrgac_ext=f 61387e6fb56fSmrgac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 61397e6fb56fSmrgac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 61407e6fb56fSmrgac_compiler_gnu=$ac_cv_f77_compiler_gnu 61417e6fb56fSmrgif test -n "$ac_tool_prefix"; then 61427e6fb56fSmrg for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 61437e6fb56fSmrg do 61447e6fb56fSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 61457e6fb56fSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 61467e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 61477e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 61487e6fb56fSmrgif test "${ac_cv_prog_F77+set}" = set; then 61497e6fb56fSmrg $as_echo_n "(cached) " >&6 61507e6fb56fSmrgelse 61517e6fb56fSmrg if test -n "$F77"; then 61527e6fb56fSmrg ac_cv_prog_F77="$F77" # Let the user override the test. 61537e6fb56fSmrgelse 61547e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 61557e6fb56fSmrgfor as_dir in $PATH 61567e6fb56fSmrgdo 61577e6fb56fSmrg IFS=$as_save_IFS 61587e6fb56fSmrg test -z "$as_dir" && as_dir=. 61597e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 61607e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 61617e6fb56fSmrg ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 61627e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 61637e6fb56fSmrg break 2 61647e6fb56fSmrg fi 61657e6fb56fSmrgdone 61667e6fb56fSmrgdone 61677e6fb56fSmrgIFS=$as_save_IFS 61687e6fb56fSmrg 61697e6fb56fSmrgfi 61707e6fb56fSmrgfi 61717e6fb56fSmrgF77=$ac_cv_prog_F77 61727e6fb56fSmrgif test -n "$F77"; then 61737e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $F77" >&5 61747e6fb56fSmrg$as_echo "$F77" >&6; } 61757e6fb56fSmrgelse 61767e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 61777e6fb56fSmrg$as_echo "no" >&6; } 61787e6fb56fSmrgfi 61797e6fb56fSmrg 61807e6fb56fSmrg 61817e6fb56fSmrg test -n "$F77" && break 61827e6fb56fSmrg done 61837e6fb56fSmrgfi 61847e6fb56fSmrgif test -z "$F77"; then 61857e6fb56fSmrg ac_ct_F77=$F77 61867e6fb56fSmrg for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 61877e6fb56fSmrgdo 61887e6fb56fSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 61897e6fb56fSmrgset dummy $ac_prog; ac_word=$2 61907e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 61917e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 61927e6fb56fSmrgif test "${ac_cv_prog_ac_ct_F77+set}" = set; then 61937e6fb56fSmrg $as_echo_n "(cached) " >&6 61947e6fb56fSmrgelse 61957e6fb56fSmrg if test -n "$ac_ct_F77"; then 61967e6fb56fSmrg ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 61977e6fb56fSmrgelse 61987e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 61997e6fb56fSmrgfor as_dir in $PATH 62007e6fb56fSmrgdo 62017e6fb56fSmrg IFS=$as_save_IFS 62027e6fb56fSmrg test -z "$as_dir" && as_dir=. 62037e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 62047e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 62057e6fb56fSmrg ac_cv_prog_ac_ct_F77="$ac_prog" 62067e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 62077e6fb56fSmrg break 2 62087e6fb56fSmrg fi 62097e6fb56fSmrgdone 62107e6fb56fSmrgdone 62117e6fb56fSmrgIFS=$as_save_IFS 62127e6fb56fSmrg 62137e6fb56fSmrgfi 62147e6fb56fSmrgfi 62157e6fb56fSmrgac_ct_F77=$ac_cv_prog_ac_ct_F77 62167e6fb56fSmrgif test -n "$ac_ct_F77"; then 62177e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 62187e6fb56fSmrg$as_echo "$ac_ct_F77" >&6; } 62197e6fb56fSmrgelse 62207e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 62217e6fb56fSmrg$as_echo "no" >&6; } 62227e6fb56fSmrgfi 62237e6fb56fSmrg 62247e6fb56fSmrg 62257e6fb56fSmrg test -n "$ac_ct_F77" && break 62267e6fb56fSmrgdone 62277e6fb56fSmrg 62287e6fb56fSmrg if test "x$ac_ct_F77" = x; then 62297e6fb56fSmrg F77="" 62307e6fb56fSmrg else 62317e6fb56fSmrg case $cross_compiling:$ac_tool_warned in 62327e6fb56fSmrgyes:) 62337e6fb56fSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 62347e6fb56fSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 62357e6fb56fSmrgac_tool_warned=yes ;; 62367e6fb56fSmrgesac 62377e6fb56fSmrg F77=$ac_ct_F77 62387e6fb56fSmrg fi 62397e6fb56fSmrgfi 62407e6fb56fSmrg 62417e6fb56fSmrg 62427e6fb56fSmrg# Provide some information about the compiler. 62437e6fb56fSmrg$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 62447e6fb56fSmrgset X $ac_compile 62457e6fb56fSmrgac_compiler=$2 62467e6fb56fSmrg{ (ac_try="$ac_compiler --version >&5" 62477e6fb56fSmrgcase "(($ac_try" in 62487e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 62497e6fb56fSmrg *) ac_try_echo=$ac_try;; 62507e6fb56fSmrgesac 62517e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 62527e6fb56fSmrg$as_echo "$ac_try_echo") >&5 62537e6fb56fSmrg (eval "$ac_compiler --version >&5") 2>&5 62547e6fb56fSmrg ac_status=$? 62557e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 62567e6fb56fSmrg (exit $ac_status); } 62577e6fb56fSmrg{ (ac_try="$ac_compiler -v >&5" 62587e6fb56fSmrgcase "(($ac_try" in 62597e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 62607e6fb56fSmrg *) ac_try_echo=$ac_try;; 62617e6fb56fSmrgesac 62627e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 62637e6fb56fSmrg$as_echo "$ac_try_echo") >&5 62647e6fb56fSmrg (eval "$ac_compiler -v >&5") 2>&5 62657e6fb56fSmrg ac_status=$? 62667e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 62677e6fb56fSmrg (exit $ac_status); } 62687e6fb56fSmrg{ (ac_try="$ac_compiler -V >&5" 62697e6fb56fSmrgcase "(($ac_try" in 62707e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 62717e6fb56fSmrg *) ac_try_echo=$ac_try;; 62727e6fb56fSmrgesac 62737e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 62747e6fb56fSmrg$as_echo "$ac_try_echo") >&5 62757e6fb56fSmrg (eval "$ac_compiler -V >&5") 2>&5 62767e6fb56fSmrg ac_status=$? 62777e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 62787e6fb56fSmrg (exit $ac_status); } 62797e6fb56fSmrgrm -f a.out 62807e6fb56fSmrg 62817e6fb56fSmrg# If we don't use `.F' as extension, the preprocessor is not run on the 62827e6fb56fSmrg# input file. (Note that this only needs to work for GNU compilers.) 62837e6fb56fSmrgac_save_ext=$ac_ext 62847e6fb56fSmrgac_ext=F 62857e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 62867e6fb56fSmrg$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 62877e6fb56fSmrgif test "${ac_cv_f77_compiler_gnu+set}" = set; then 62887e6fb56fSmrg $as_echo_n "(cached) " >&6 62897e6fb56fSmrgelse 62907e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 62917e6fb56fSmrg program main 62927e6fb56fSmrg#ifndef __GNUC__ 62937e6fb56fSmrg choke me 62947e6fb56fSmrg#endif 62957e6fb56fSmrg 62967e6fb56fSmrg end 62977e6fb56fSmrg_ACEOF 62987e6fb56fSmrgrm -f conftest.$ac_objext 62997e6fb56fSmrgif { (ac_try="$ac_compile" 63007e6fb56fSmrgcase "(($ac_try" in 63017e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 63027e6fb56fSmrg *) ac_try_echo=$ac_try;; 63037e6fb56fSmrgesac 63047e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 63057e6fb56fSmrg$as_echo "$ac_try_echo") >&5 63067e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 63077e6fb56fSmrg ac_status=$? 63087e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 63097e6fb56fSmrg rm -f conftest.er1 63107e6fb56fSmrg cat conftest.err >&5 63117e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 63127e6fb56fSmrg (exit $ac_status); } && { 63137e6fb56fSmrg test -z "$ac_f77_werror_flag" || 63147e6fb56fSmrg test ! -s conftest.err 63157e6fb56fSmrg } && test -s conftest.$ac_objext; then 63167e6fb56fSmrg ac_compiler_gnu=yes 63177e6fb56fSmrgelse 63187e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 63197e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 63207e6fb56fSmrg 63217e6fb56fSmrg ac_compiler_gnu=no 63227e6fb56fSmrgfi 63237e6fb56fSmrg 63247e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 63257e6fb56fSmrgac_cv_f77_compiler_gnu=$ac_compiler_gnu 63267e6fb56fSmrg 63277e6fb56fSmrgfi 63287e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 63297e6fb56fSmrg$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 63307e6fb56fSmrgac_ext=$ac_save_ext 63317e6fb56fSmrgac_test_FFLAGS=${FFLAGS+set} 63327e6fb56fSmrgac_save_FFLAGS=$FFLAGS 63337e6fb56fSmrgFFLAGS= 63347e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 63357e6fb56fSmrg$as_echo_n "checking whether $F77 accepts -g... " >&6; } 63367e6fb56fSmrgif test "${ac_cv_prog_f77_g+set}" = set; then 63377e6fb56fSmrg $as_echo_n "(cached) " >&6 63387e6fb56fSmrgelse 63397e6fb56fSmrg FFLAGS=-g 63407e6fb56fSmrgcat >conftest.$ac_ext <<_ACEOF 63417e6fb56fSmrg program main 63427e6fb56fSmrg 63437e6fb56fSmrg end 63447e6fb56fSmrg_ACEOF 63457e6fb56fSmrgrm -f conftest.$ac_objext 63467e6fb56fSmrgif { (ac_try="$ac_compile" 63477e6fb56fSmrgcase "(($ac_try" in 63487e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 63497e6fb56fSmrg *) ac_try_echo=$ac_try;; 63507e6fb56fSmrgesac 63517e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 63527e6fb56fSmrg$as_echo "$ac_try_echo") >&5 63537e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 63547e6fb56fSmrg ac_status=$? 63557e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 63567e6fb56fSmrg rm -f conftest.er1 63577e6fb56fSmrg cat conftest.err >&5 63587e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 63597e6fb56fSmrg (exit $ac_status); } && { 63607e6fb56fSmrg test -z "$ac_f77_werror_flag" || 63617e6fb56fSmrg test ! -s conftest.err 63627e6fb56fSmrg } && test -s conftest.$ac_objext; then 63637e6fb56fSmrg ac_cv_prog_f77_g=yes 63647e6fb56fSmrgelse 63657e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 63667e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 63677e6fb56fSmrg 63687e6fb56fSmrg ac_cv_prog_f77_g=no 63697e6fb56fSmrgfi 63707e6fb56fSmrg 63717e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 63727e6fb56fSmrg 63737e6fb56fSmrgfi 63747e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 63757e6fb56fSmrg$as_echo "$ac_cv_prog_f77_g" >&6; } 63767e6fb56fSmrgif test "$ac_test_FFLAGS" = set; then 63777e6fb56fSmrg FFLAGS=$ac_save_FFLAGS 63787e6fb56fSmrgelif test $ac_cv_prog_f77_g = yes; then 63797e6fb56fSmrg if test "x$ac_cv_f77_compiler_gnu" = xyes; then 63807e6fb56fSmrg FFLAGS="-g -O2" 63817e6fb56fSmrg else 63827e6fb56fSmrg FFLAGS="-g" 63837e6fb56fSmrg fi 63847e6fb56fSmrgelse 63857e6fb56fSmrg if test "x$ac_cv_f77_compiler_gnu" = xyes; then 63867e6fb56fSmrg FFLAGS="-O2" 63877e6fb56fSmrg else 63887e6fb56fSmrg FFLAGS= 63897e6fb56fSmrg fi 63907e6fb56fSmrgfi 63917e6fb56fSmrg 63927e6fb56fSmrgif test $ac_compiler_gnu = yes; then 63937e6fb56fSmrg G77=yes 63947e6fb56fSmrgelse 63957e6fb56fSmrg G77= 63967e6fb56fSmrgfi 63977e6fb56fSmrgac_ext=c 63987e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 63997e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64007e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64017e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 64027e6fb56fSmrg 64037e6fb56fSmrg 64047e6fb56fSmrg 64057e6fb56fSmrg# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 64067e6fb56fSmrg# find the maximum length of command line arguments 64077e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 64087e6fb56fSmrg$as_echo_n "checking the maximum length of command line arguments... " >&6; } 64097e6fb56fSmrgif test "${lt_cv_sys_max_cmd_len+set}" = set; then 64107e6fb56fSmrg $as_echo_n "(cached) " >&6 64117e6fb56fSmrgelse 64127e6fb56fSmrg i=0 64137e6fb56fSmrg teststring="ABCD" 64147e6fb56fSmrg 64157e6fb56fSmrg case $build_os in 64167e6fb56fSmrg msdosdjgpp*) 64177e6fb56fSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 64187e6fb56fSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 64197e6fb56fSmrg # during glob expansion). Even if it were fixed, the result of this 64207e6fb56fSmrg # check would be larger than it should be. 64217e6fb56fSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 64227e6fb56fSmrg ;; 64237e6fb56fSmrg 64247e6fb56fSmrg gnu*) 64257e6fb56fSmrg # Under GNU Hurd, this test is not required because there is 64267e6fb56fSmrg # no limit to the length of command line arguments. 64277e6fb56fSmrg # Libtool will interpret -1 as no limit whatsoever 64287e6fb56fSmrg lt_cv_sys_max_cmd_len=-1; 64297e6fb56fSmrg ;; 64307e6fb56fSmrg 64317e6fb56fSmrg cygwin* | mingw*) 64327e6fb56fSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 64337e6fb56fSmrg # about 5 minutes as the teststring grows exponentially. 64347e6fb56fSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 64357e6fb56fSmrg # you end up with a "frozen" computer, even though with patience 64367e6fb56fSmrg # the test eventually succeeds (with a max line length of 256k). 64377e6fb56fSmrg # Instead, let's just punt: use the minimum linelength reported by 64387e6fb56fSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 64397e6fb56fSmrg lt_cv_sys_max_cmd_len=8192; 64407e6fb56fSmrg ;; 64417e6fb56fSmrg 64427e6fb56fSmrg amigaos*) 64437e6fb56fSmrg # On AmigaOS with pdksh, this test takes hours, literally. 64447e6fb56fSmrg # So we just punt and use a minimum line length of 8192. 64457e6fb56fSmrg lt_cv_sys_max_cmd_len=8192; 64467e6fb56fSmrg ;; 64477e6fb56fSmrg 64487e6fb56fSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 64497e6fb56fSmrg # This has been around since 386BSD, at least. Likely further. 64507e6fb56fSmrg if test -x /sbin/sysctl; then 64517e6fb56fSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 64527e6fb56fSmrg elif test -x /usr/sbin/sysctl; then 64537e6fb56fSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 64547e6fb56fSmrg else 64557e6fb56fSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 64567e6fb56fSmrg fi 64577e6fb56fSmrg # And add a safety zone 64587e6fb56fSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 64597e6fb56fSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 64607e6fb56fSmrg ;; 64617e6fb56fSmrg 64627e6fb56fSmrg interix*) 64637e6fb56fSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 64647e6fb56fSmrg lt_cv_sys_max_cmd_len=196608 64657e6fb56fSmrg ;; 64667e6fb56fSmrg 64677e6fb56fSmrg osf*) 64687e6fb56fSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 64697e6fb56fSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 64707e6fb56fSmrg # nice to cause kernel panics so lets avoid the loop below. 64717e6fb56fSmrg # First set a reasonable default. 64727e6fb56fSmrg lt_cv_sys_max_cmd_len=16384 64737e6fb56fSmrg # 64747e6fb56fSmrg if test -x /sbin/sysconfig; then 64757e6fb56fSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 64767e6fb56fSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 64777e6fb56fSmrg esac 64787e6fb56fSmrg fi 64797e6fb56fSmrg ;; 64807e6fb56fSmrg sco3.2v5*) 64817e6fb56fSmrg lt_cv_sys_max_cmd_len=102400 64827e6fb56fSmrg ;; 64837e6fb56fSmrg sysv5* | sco5v6* | sysv4.2uw2*) 64847e6fb56fSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 64857e6fb56fSmrg if test -n "$kargmax"; then 64867e6fb56fSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 64877e6fb56fSmrg else 64887e6fb56fSmrg lt_cv_sys_max_cmd_len=32768 64897e6fb56fSmrg fi 64907e6fb56fSmrg ;; 64917e6fb56fSmrg *) 64927e6fb56fSmrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 64937e6fb56fSmrg if test -n "$lt_cv_sys_max_cmd_len"; then 64947e6fb56fSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 64957e6fb56fSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 64967e6fb56fSmrg else 64977e6fb56fSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 64987e6fb56fSmrg while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 64997e6fb56fSmrg = "XX$teststring") >/dev/null 2>&1 && 65007e6fb56fSmrg new_result=`expr "X$teststring" : ".*" 2>&1` && 65017e6fb56fSmrg lt_cv_sys_max_cmd_len=$new_result && 65027e6fb56fSmrg test $i != 17 # 1/2 MB should be enough 65037e6fb56fSmrg do 65047e6fb56fSmrg i=`expr $i + 1` 65057e6fb56fSmrg teststring=$teststring$teststring 65067e6fb56fSmrg done 65077e6fb56fSmrg teststring= 65087e6fb56fSmrg # Add a significant safety factor because C++ compilers can tack on massive 65097e6fb56fSmrg # amounts of additional arguments before passing them to the linker. 65107e6fb56fSmrg # It appears as though 1/2 is a usable value. 65117e6fb56fSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 65127e6fb56fSmrg fi 65137e6fb56fSmrg ;; 65147e6fb56fSmrg esac 65157e6fb56fSmrg 65167e6fb56fSmrgfi 65177e6fb56fSmrg 65187e6fb56fSmrgif test -n $lt_cv_sys_max_cmd_len ; then 65197e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 65207e6fb56fSmrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 65217e6fb56fSmrgelse 65227e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: none" >&5 65237e6fb56fSmrg$as_echo "none" >&6; } 65247e6fb56fSmrgfi 65257e6fb56fSmrg 65267e6fb56fSmrg 65277e6fb56fSmrg 65287e6fb56fSmrg 65297e6fb56fSmrg 65307e6fb56fSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 65317e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 65327e6fb56fSmrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 65337e6fb56fSmrgif test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 65347e6fb56fSmrg $as_echo_n "(cached) " >&6 65357e6fb56fSmrgelse 65367e6fb56fSmrg 65377e6fb56fSmrg# These are sane defaults that work on at least a few old systems. 65387e6fb56fSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 65397e6fb56fSmrg 65407e6fb56fSmrg# Character class describing NM global symbol codes. 65417e6fb56fSmrgsymcode='[BCDEGRST]' 65427e6fb56fSmrg 65437e6fb56fSmrg# Regexp to match symbols that can be accessed directly from C. 65447e6fb56fSmrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)' 65457e6fb56fSmrg 65467e6fb56fSmrg# Transform an extracted symbol line into a proper C declaration 65477e6fb56fSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 65487e6fb56fSmrg 65497e6fb56fSmrg# Transform an extracted symbol line into symbol name and symbol address 65507e6fb56fSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 65517e6fb56fSmrg 65527e6fb56fSmrg# Define system-specific variables. 65537e6fb56fSmrgcase $host_os in 65547e6fb56fSmrgaix*) 65557e6fb56fSmrg symcode='[BCDT]' 65567e6fb56fSmrg ;; 65577e6fb56fSmrgcygwin* | mingw* | pw32*) 65587e6fb56fSmrg symcode='[ABCDGISTW]' 65597e6fb56fSmrg ;; 65607e6fb56fSmrghpux*) # Its linker distinguishes data from code symbols 65617e6fb56fSmrg if test "$host_cpu" = ia64; then 65627e6fb56fSmrg symcode='[ABCDEGRST]' 65637e6fb56fSmrg fi 65647e6fb56fSmrg lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 65657e6fb56fSmrg lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 65667e6fb56fSmrg ;; 65677e6fb56fSmrglinux* | k*bsd*-gnu) 65687e6fb56fSmrg if test "$host_cpu" = ia64; then 65697e6fb56fSmrg symcode='[ABCDGIRSTW]' 65707e6fb56fSmrg lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 65717e6fb56fSmrg lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 65727e6fb56fSmrg fi 65737e6fb56fSmrg ;; 65747e6fb56fSmrgirix* | nonstopux*) 65757e6fb56fSmrg symcode='[BCDEGRST]' 65767e6fb56fSmrg ;; 65777e6fb56fSmrgosf*) 65787e6fb56fSmrg symcode='[BCDEGQRST]' 65797e6fb56fSmrg ;; 65807e6fb56fSmrgsolaris*) 65817e6fb56fSmrg symcode='[BDRT]' 65827e6fb56fSmrg ;; 65837e6fb56fSmrgsco3.2v5*) 65847e6fb56fSmrg symcode='[DT]' 65857e6fb56fSmrg ;; 65867e6fb56fSmrgsysv4.2uw2*) 65877e6fb56fSmrg symcode='[DT]' 65887e6fb56fSmrg ;; 65897e6fb56fSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 65907e6fb56fSmrg symcode='[ABDT]' 65917e6fb56fSmrg ;; 65927e6fb56fSmrgsysv4) 65937e6fb56fSmrg symcode='[DFNSTU]' 65947e6fb56fSmrg ;; 65957e6fb56fSmrgesac 65967e6fb56fSmrg 65977e6fb56fSmrg# Handle CRLF in mingw tool chain 65987e6fb56fSmrgopt_cr= 65997e6fb56fSmrgcase $build_os in 66007e6fb56fSmrgmingw*) 66017e6fb56fSmrg opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 66027e6fb56fSmrg ;; 66037e6fb56fSmrgesac 66047e6fb56fSmrg 66057e6fb56fSmrg# If we're using GNU nm, then use its standard symbol codes. 66067e6fb56fSmrgcase `$NM -V 2>&1` in 66077e6fb56fSmrg*GNU* | *'with BFD'*) 66087e6fb56fSmrg symcode='[ABCDGIRSTW]' ;; 66097e6fb56fSmrgesac 66107e6fb56fSmrg 66117e6fb56fSmrg# Try without a prefix undercore, then with it. 66127e6fb56fSmrgfor ac_symprfx in "" "_"; do 66137e6fb56fSmrg 66147e6fb56fSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 66157e6fb56fSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 66167e6fb56fSmrg 66177e6fb56fSmrg # Write the raw and C identifiers. 66187e6fb56fSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 66197e6fb56fSmrg 66207e6fb56fSmrg # Check to see that the pipe works correctly. 66217e6fb56fSmrg pipe_works=no 66227e6fb56fSmrg 66237e6fb56fSmrg rm -f conftest* 66247e6fb56fSmrg cat > conftest.$ac_ext <<EOF 66257e6fb56fSmrg#ifdef __cplusplus 66267e6fb56fSmrgextern "C" { 66277e6fb56fSmrg#endif 66287e6fb56fSmrgchar nm_test_var; 66297e6fb56fSmrgvoid nm_test_func(){} 66307e6fb56fSmrg#ifdef __cplusplus 66317e6fb56fSmrg} 66327e6fb56fSmrg#endif 66337e6fb56fSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 66347e6fb56fSmrgEOF 66357e6fb56fSmrg 66367e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 66377e6fb56fSmrg (eval $ac_compile) 2>&5 66387e6fb56fSmrg ac_status=$? 66397e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 66407e6fb56fSmrg (exit $ac_status); }; then 66417e6fb56fSmrg # Now try to grab the symbols. 66427e6fb56fSmrg nlist=conftest.nm 66437e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 66447e6fb56fSmrg (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 66457e6fb56fSmrg ac_status=$? 66467e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 66477e6fb56fSmrg (exit $ac_status); } && test -s "$nlist"; then 66487e6fb56fSmrg # Try sorting and uniquifying the output. 66497e6fb56fSmrg if sort "$nlist" | uniq > "$nlist"T; then 66507e6fb56fSmrg mv -f "$nlist"T "$nlist" 66517e6fb56fSmrg else 66527e6fb56fSmrg rm -f "$nlist"T 66537e6fb56fSmrg fi 66547e6fb56fSmrg 66557e6fb56fSmrg # Make sure that we snagged all the symbols we need. 66567e6fb56fSmrg if grep ' nm_test_var$' "$nlist" >/dev/null; then 66577e6fb56fSmrg if grep ' nm_test_func$' "$nlist" >/dev/null; then 66587e6fb56fSmrg cat <<EOF > conftest.$ac_ext 66597e6fb56fSmrg#ifdef __cplusplus 66607e6fb56fSmrgextern "C" { 66617e6fb56fSmrg#endif 66627e6fb56fSmrg 66637e6fb56fSmrgEOF 66647e6fb56fSmrg # Now generate the symbol file. 66657e6fb56fSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 66667e6fb56fSmrg 66677e6fb56fSmrg cat <<EOF >> conftest.$ac_ext 66687e6fb56fSmrg#if defined (__STDC__) && __STDC__ 66697e6fb56fSmrg# define lt_ptr_t void * 66707e6fb56fSmrg#else 66717e6fb56fSmrg# define lt_ptr_t char * 66727e6fb56fSmrg# define const 66737e6fb56fSmrg#endif 66747e6fb56fSmrg 66757e6fb56fSmrg/* The mapping between symbol names and symbols. */ 66767e6fb56fSmrgconst struct { 66777e6fb56fSmrg const char *name; 66787e6fb56fSmrg lt_ptr_t address; 66797e6fb56fSmrg} 66807e6fb56fSmrglt_preloaded_symbols[] = 66817e6fb56fSmrg{ 66827e6fb56fSmrgEOF 66837e6fb56fSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 66847e6fb56fSmrg cat <<\EOF >> conftest.$ac_ext 66857e6fb56fSmrg {0, (lt_ptr_t) 0} 66867e6fb56fSmrg}; 66877e6fb56fSmrg 66887e6fb56fSmrg#ifdef __cplusplus 66897e6fb56fSmrg} 66907e6fb56fSmrg#endif 66917e6fb56fSmrgEOF 66927e6fb56fSmrg # Now try linking the two files. 66937e6fb56fSmrg mv conftest.$ac_objext conftstm.$ac_objext 66947e6fb56fSmrg lt_save_LIBS="$LIBS" 66957e6fb56fSmrg lt_save_CFLAGS="$CFLAGS" 66967e6fb56fSmrg LIBS="conftstm.$ac_objext" 66977e6fb56fSmrg CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 66987e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 66997e6fb56fSmrg (eval $ac_link) 2>&5 67007e6fb56fSmrg ac_status=$? 67017e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 67027e6fb56fSmrg (exit $ac_status); } && test -s conftest${ac_exeext}; then 67037e6fb56fSmrg pipe_works=yes 67047e6fb56fSmrg fi 67057e6fb56fSmrg LIBS="$lt_save_LIBS" 67067e6fb56fSmrg CFLAGS="$lt_save_CFLAGS" 67077e6fb56fSmrg else 67087e6fb56fSmrg echo "cannot find nm_test_func in $nlist" >&5 67097e6fb56fSmrg fi 67107e6fb56fSmrg else 67117e6fb56fSmrg echo "cannot find nm_test_var in $nlist" >&5 67127e6fb56fSmrg fi 67137e6fb56fSmrg else 67147e6fb56fSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 67157e6fb56fSmrg fi 67167e6fb56fSmrg else 67177e6fb56fSmrg echo "$progname: failed program was:" >&5 67187e6fb56fSmrg cat conftest.$ac_ext >&5 67197e6fb56fSmrg fi 67207e6fb56fSmrg rm -rf conftest* conftst* 67217e6fb56fSmrg 67227e6fb56fSmrg # Do not use the global_symbol_pipe unless it works. 67237e6fb56fSmrg if test "$pipe_works" = yes; then 67247e6fb56fSmrg break 67257e6fb56fSmrg else 67267e6fb56fSmrg lt_cv_sys_global_symbol_pipe= 67277e6fb56fSmrg fi 67287e6fb56fSmrgdone 67297e6fb56fSmrg 67307e6fb56fSmrgfi 67317e6fb56fSmrg 67327e6fb56fSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 67337e6fb56fSmrg lt_cv_sys_global_symbol_to_cdecl= 67347e6fb56fSmrgfi 67357e6fb56fSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 67367e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: failed" >&5 67377e6fb56fSmrg$as_echo "failed" >&6; } 67387e6fb56fSmrgelse 67397e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: ok" >&5 67407e6fb56fSmrg$as_echo "ok" >&6; } 67417e6fb56fSmrgfi 67427e6fb56fSmrg 67437e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 67447e6fb56fSmrg$as_echo_n "checking for objdir... " >&6; } 67457e6fb56fSmrgif test "${lt_cv_objdir+set}" = set; then 67467e6fb56fSmrg $as_echo_n "(cached) " >&6 67477e6fb56fSmrgelse 67487e6fb56fSmrg rm -f .libs 2>/dev/null 67497e6fb56fSmrgmkdir .libs 2>/dev/null 67507e6fb56fSmrgif test -d .libs; then 67517e6fb56fSmrg lt_cv_objdir=.libs 67527e6fb56fSmrgelse 67537e6fb56fSmrg # MS-DOS does not allow filenames that begin with a dot. 67547e6fb56fSmrg lt_cv_objdir=_libs 67557e6fb56fSmrgfi 67567e6fb56fSmrgrmdir .libs 2>/dev/null 67577e6fb56fSmrgfi 67587e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 67597e6fb56fSmrg$as_echo "$lt_cv_objdir" >&6; } 67607e6fb56fSmrgobjdir=$lt_cv_objdir 67617e6fb56fSmrg 67627e6fb56fSmrg 67637e6fb56fSmrg 67647e6fb56fSmrg 67657e6fb56fSmrg 67667e6fb56fSmrgcase $host_os in 67677e6fb56fSmrgaix3*) 67687e6fb56fSmrg # AIX sometimes has problems with the GCC collect2 program. For some 67697e6fb56fSmrg # reason, if we set the COLLECT_NAMES environment variable, the problems 67707e6fb56fSmrg # vanish in a puff of smoke. 67717e6fb56fSmrg if test "X${COLLECT_NAMES+set}" != Xset; then 67727e6fb56fSmrg COLLECT_NAMES= 67737e6fb56fSmrg export COLLECT_NAMES 67747e6fb56fSmrg fi 67757e6fb56fSmrg ;; 67767e6fb56fSmrgesac 67777e6fb56fSmrg 67787e6fb56fSmrg# Sed substitution that helps us do robust quoting. It backslashifies 67797e6fb56fSmrg# metacharacters that are still active within double-quoted strings. 67807e6fb56fSmrgXsed='sed -e 1s/^X//' 67817e6fb56fSmrgsed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 67827e6fb56fSmrg 67837e6fb56fSmrg# Same as above, but do not quote variable references. 67847e6fb56fSmrgdouble_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 67857e6fb56fSmrg 67867e6fb56fSmrg# Sed substitution to delay expansion of an escaped shell variable in a 67877e6fb56fSmrg# double_quote_subst'ed string. 67887e6fb56fSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 67897e6fb56fSmrg 67907e6fb56fSmrg# Sed substitution to avoid accidental globbing in evaled expressions 67917e6fb56fSmrgno_glob_subst='s/\*/\\\*/g' 67927e6fb56fSmrg 67937e6fb56fSmrg# Constants: 67947e6fb56fSmrgrm="rm -f" 67957e6fb56fSmrg 67967e6fb56fSmrg# Global variables: 67977e6fb56fSmrgdefault_ofile=libtool 67987e6fb56fSmrgcan_build_shared=yes 67997e6fb56fSmrg 68007e6fb56fSmrg# All known linkers require a `.a' archive for static linking (except MSVC, 68017e6fb56fSmrg# which needs '.lib'). 68027e6fb56fSmrglibext=a 68037e6fb56fSmrgltmain="$ac_aux_dir/ltmain.sh" 68047e6fb56fSmrgofile="$default_ofile" 68057e6fb56fSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 68067e6fb56fSmrg 68077e6fb56fSmrgif test -n "$ac_tool_prefix"; then 68087e6fb56fSmrg # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 68097e6fb56fSmrgset dummy ${ac_tool_prefix}ar; ac_word=$2 68107e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 68117e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 68127e6fb56fSmrgif test "${ac_cv_prog_AR+set}" = set; then 68137e6fb56fSmrg $as_echo_n "(cached) " >&6 68147e6fb56fSmrgelse 68157e6fb56fSmrg if test -n "$AR"; then 68167e6fb56fSmrg ac_cv_prog_AR="$AR" # Let the user override the test. 68177e6fb56fSmrgelse 68187e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68197e6fb56fSmrgfor as_dir in $PATH 68207e6fb56fSmrgdo 68217e6fb56fSmrg IFS=$as_save_IFS 68227e6fb56fSmrg test -z "$as_dir" && as_dir=. 68237e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 68247e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 68257e6fb56fSmrg ac_cv_prog_AR="${ac_tool_prefix}ar" 68267e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 68277e6fb56fSmrg break 2 68287e6fb56fSmrg fi 68297e6fb56fSmrgdone 68307e6fb56fSmrgdone 68317e6fb56fSmrgIFS=$as_save_IFS 68327e6fb56fSmrg 68337e6fb56fSmrgfi 68347e6fb56fSmrgfi 68357e6fb56fSmrgAR=$ac_cv_prog_AR 68367e6fb56fSmrgif test -n "$AR"; then 68377e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $AR" >&5 68387e6fb56fSmrg$as_echo "$AR" >&6; } 68397e6fb56fSmrgelse 68407e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 68417e6fb56fSmrg$as_echo "no" >&6; } 68427e6fb56fSmrgfi 68437e6fb56fSmrg 68447e6fb56fSmrg 68457e6fb56fSmrgfi 68467e6fb56fSmrgif test -z "$ac_cv_prog_AR"; then 68477e6fb56fSmrg ac_ct_AR=$AR 68487e6fb56fSmrg # Extract the first word of "ar", so it can be a program name with args. 68497e6fb56fSmrgset dummy ar; ac_word=$2 68507e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 68517e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 68527e6fb56fSmrgif test "${ac_cv_prog_ac_ct_AR+set}" = set; then 68537e6fb56fSmrg $as_echo_n "(cached) " >&6 68547e6fb56fSmrgelse 68557e6fb56fSmrg if test -n "$ac_ct_AR"; then 68567e6fb56fSmrg ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 68577e6fb56fSmrgelse 68587e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68597e6fb56fSmrgfor as_dir in $PATH 68607e6fb56fSmrgdo 68617e6fb56fSmrg IFS=$as_save_IFS 68627e6fb56fSmrg test -z "$as_dir" && as_dir=. 68637e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 68647e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 68657e6fb56fSmrg ac_cv_prog_ac_ct_AR="ar" 68667e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 68677e6fb56fSmrg break 2 68687e6fb56fSmrg fi 68697e6fb56fSmrgdone 68707e6fb56fSmrgdone 68717e6fb56fSmrgIFS=$as_save_IFS 68727e6fb56fSmrg 68737e6fb56fSmrgfi 68747e6fb56fSmrgfi 68757e6fb56fSmrgac_ct_AR=$ac_cv_prog_ac_ct_AR 68767e6fb56fSmrgif test -n "$ac_ct_AR"; then 68777e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 68787e6fb56fSmrg$as_echo "$ac_ct_AR" >&6; } 68797e6fb56fSmrgelse 68807e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 68817e6fb56fSmrg$as_echo "no" >&6; } 68827e6fb56fSmrgfi 68837e6fb56fSmrg 68847e6fb56fSmrg if test "x$ac_ct_AR" = x; then 68857e6fb56fSmrg AR="false" 68867e6fb56fSmrg else 68877e6fb56fSmrg case $cross_compiling:$ac_tool_warned in 68887e6fb56fSmrgyes:) 68897e6fb56fSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 68907e6fb56fSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 68917e6fb56fSmrgac_tool_warned=yes ;; 68927e6fb56fSmrgesac 68937e6fb56fSmrg AR=$ac_ct_AR 68947e6fb56fSmrg fi 68957e6fb56fSmrgelse 68967e6fb56fSmrg AR="$ac_cv_prog_AR" 68977e6fb56fSmrgfi 68987e6fb56fSmrg 68997e6fb56fSmrgif test -n "$ac_tool_prefix"; then 69007e6fb56fSmrg # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 69017e6fb56fSmrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2 69027e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 69037e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 69047e6fb56fSmrgif test "${ac_cv_prog_RANLIB+set}" = set; then 69057e6fb56fSmrg $as_echo_n "(cached) " >&6 69067e6fb56fSmrgelse 69077e6fb56fSmrg if test -n "$RANLIB"; then 69087e6fb56fSmrg ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 69097e6fb56fSmrgelse 69107e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 69117e6fb56fSmrgfor as_dir in $PATH 69127e6fb56fSmrgdo 69137e6fb56fSmrg IFS=$as_save_IFS 69147e6fb56fSmrg test -z "$as_dir" && as_dir=. 69157e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 69167e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 69177e6fb56fSmrg ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 69187e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 69197e6fb56fSmrg break 2 69207e6fb56fSmrg fi 69217e6fb56fSmrgdone 69227e6fb56fSmrgdone 69237e6fb56fSmrgIFS=$as_save_IFS 69247e6fb56fSmrg 69257e6fb56fSmrgfi 69267e6fb56fSmrgfi 69277e6fb56fSmrgRANLIB=$ac_cv_prog_RANLIB 69287e6fb56fSmrgif test -n "$RANLIB"; then 69297e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 69307e6fb56fSmrg$as_echo "$RANLIB" >&6; } 69317e6fb56fSmrgelse 69327e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 69337e6fb56fSmrg$as_echo "no" >&6; } 69347e6fb56fSmrgfi 69357e6fb56fSmrg 69367e6fb56fSmrg 69377e6fb56fSmrgfi 69387e6fb56fSmrgif test -z "$ac_cv_prog_RANLIB"; then 69397e6fb56fSmrg ac_ct_RANLIB=$RANLIB 69407e6fb56fSmrg # Extract the first word of "ranlib", so it can be a program name with args. 69417e6fb56fSmrgset dummy ranlib; ac_word=$2 69427e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 69437e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 69447e6fb56fSmrgif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 69457e6fb56fSmrg $as_echo_n "(cached) " >&6 69467e6fb56fSmrgelse 69477e6fb56fSmrg if test -n "$ac_ct_RANLIB"; then 69487e6fb56fSmrg ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 69497e6fb56fSmrgelse 69507e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 69517e6fb56fSmrgfor as_dir in $PATH 69527e6fb56fSmrgdo 69537e6fb56fSmrg IFS=$as_save_IFS 69547e6fb56fSmrg test -z "$as_dir" && as_dir=. 69557e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 69567e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 69577e6fb56fSmrg ac_cv_prog_ac_ct_RANLIB="ranlib" 69587e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 69597e6fb56fSmrg break 2 69607e6fb56fSmrg fi 69617e6fb56fSmrgdone 69627e6fb56fSmrgdone 69637e6fb56fSmrgIFS=$as_save_IFS 69647e6fb56fSmrg 69657e6fb56fSmrgfi 69667e6fb56fSmrgfi 69677e6fb56fSmrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 69687e6fb56fSmrgif test -n "$ac_ct_RANLIB"; then 69697e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 69707e6fb56fSmrg$as_echo "$ac_ct_RANLIB" >&6; } 69717e6fb56fSmrgelse 69727e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 69737e6fb56fSmrg$as_echo "no" >&6; } 69747e6fb56fSmrgfi 69757e6fb56fSmrg 69767e6fb56fSmrg if test "x$ac_ct_RANLIB" = x; then 69777e6fb56fSmrg RANLIB=":" 69787e6fb56fSmrg else 69797e6fb56fSmrg case $cross_compiling:$ac_tool_warned in 69807e6fb56fSmrgyes:) 69817e6fb56fSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 69827e6fb56fSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 69837e6fb56fSmrgac_tool_warned=yes ;; 69847e6fb56fSmrgesac 69857e6fb56fSmrg RANLIB=$ac_ct_RANLIB 69867e6fb56fSmrg fi 69877e6fb56fSmrgelse 69887e6fb56fSmrg RANLIB="$ac_cv_prog_RANLIB" 69897e6fb56fSmrgfi 69907e6fb56fSmrg 69917e6fb56fSmrgif test -n "$ac_tool_prefix"; then 69927e6fb56fSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 69937e6fb56fSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 69947e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 69957e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 69967e6fb56fSmrgif test "${ac_cv_prog_STRIP+set}" = set; then 69977e6fb56fSmrg $as_echo_n "(cached) " >&6 69987e6fb56fSmrgelse 69997e6fb56fSmrg if test -n "$STRIP"; then 70007e6fb56fSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 70017e6fb56fSmrgelse 70027e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 70037e6fb56fSmrgfor as_dir in $PATH 70047e6fb56fSmrgdo 70057e6fb56fSmrg IFS=$as_save_IFS 70067e6fb56fSmrg test -z "$as_dir" && as_dir=. 70077e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 70087e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 70097e6fb56fSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 70107e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 70117e6fb56fSmrg break 2 70127e6fb56fSmrg fi 70137e6fb56fSmrgdone 70147e6fb56fSmrgdone 70157e6fb56fSmrgIFS=$as_save_IFS 70167e6fb56fSmrg 70177e6fb56fSmrgfi 70187e6fb56fSmrgfi 70197e6fb56fSmrgSTRIP=$ac_cv_prog_STRIP 70207e6fb56fSmrgif test -n "$STRIP"; then 70217e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 70227e6fb56fSmrg$as_echo "$STRIP" >&6; } 70237e6fb56fSmrgelse 70247e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 70257e6fb56fSmrg$as_echo "no" >&6; } 70267e6fb56fSmrgfi 70277e6fb56fSmrg 70287e6fb56fSmrg 70297e6fb56fSmrgfi 70307e6fb56fSmrgif test -z "$ac_cv_prog_STRIP"; then 70317e6fb56fSmrg ac_ct_STRIP=$STRIP 70327e6fb56fSmrg # Extract the first word of "strip", so it can be a program name with args. 70337e6fb56fSmrgset dummy strip; ac_word=$2 70347e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 70357e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 70367e6fb56fSmrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 70377e6fb56fSmrg $as_echo_n "(cached) " >&6 70387e6fb56fSmrgelse 70397e6fb56fSmrg if test -n "$ac_ct_STRIP"; then 70407e6fb56fSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 70417e6fb56fSmrgelse 70427e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 70437e6fb56fSmrgfor as_dir in $PATH 70447e6fb56fSmrgdo 70457e6fb56fSmrg IFS=$as_save_IFS 70467e6fb56fSmrg test -z "$as_dir" && as_dir=. 70477e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 70487e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 70497e6fb56fSmrg ac_cv_prog_ac_ct_STRIP="strip" 70507e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 70517e6fb56fSmrg break 2 70527e6fb56fSmrg fi 70537e6fb56fSmrgdone 70547e6fb56fSmrgdone 70557e6fb56fSmrgIFS=$as_save_IFS 70567e6fb56fSmrg 70577e6fb56fSmrgfi 70587e6fb56fSmrgfi 70597e6fb56fSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 70607e6fb56fSmrgif test -n "$ac_ct_STRIP"; then 70617e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 70627e6fb56fSmrg$as_echo "$ac_ct_STRIP" >&6; } 70637e6fb56fSmrgelse 70647e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 70657e6fb56fSmrg$as_echo "no" >&6; } 70667e6fb56fSmrgfi 70677e6fb56fSmrg 70687e6fb56fSmrg if test "x$ac_ct_STRIP" = x; then 70697e6fb56fSmrg STRIP=":" 70707e6fb56fSmrg else 70717e6fb56fSmrg case $cross_compiling:$ac_tool_warned in 70727e6fb56fSmrgyes:) 70737e6fb56fSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 70747e6fb56fSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 70757e6fb56fSmrgac_tool_warned=yes ;; 70767e6fb56fSmrgesac 70777e6fb56fSmrg STRIP=$ac_ct_STRIP 70787e6fb56fSmrg fi 70797e6fb56fSmrgelse 70807e6fb56fSmrg STRIP="$ac_cv_prog_STRIP" 70817e6fb56fSmrgfi 70827e6fb56fSmrg 70837e6fb56fSmrg 70847e6fb56fSmrgold_CC="$CC" 70857e6fb56fSmrgold_CFLAGS="$CFLAGS" 70867e6fb56fSmrg 70877e6fb56fSmrg# Set sane defaults for various variables 70887e6fb56fSmrgtest -z "$AR" && AR=ar 70897e6fb56fSmrgtest -z "$AR_FLAGS" && AR_FLAGS=cru 70907e6fb56fSmrgtest -z "$AS" && AS=as 70917e6fb56fSmrgtest -z "$CC" && CC=cc 70927e6fb56fSmrgtest -z "$LTCC" && LTCC=$CC 70937e6fb56fSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 70947e6fb56fSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 70957e6fb56fSmrgtest -z "$LD" && LD=ld 70967e6fb56fSmrgtest -z "$LN_S" && LN_S="ln -s" 70977e6fb56fSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 70987e6fb56fSmrgtest -z "$NM" && NM=nm 70997e6fb56fSmrgtest -z "$SED" && SED=sed 71007e6fb56fSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 71017e6fb56fSmrgtest -z "$RANLIB" && RANLIB=: 71027e6fb56fSmrgtest -z "$STRIP" && STRIP=: 71037e6fb56fSmrgtest -z "$ac_objext" && ac_objext=o 71047e6fb56fSmrg 71057e6fb56fSmrg# Determine commands to create old-style static archives. 71067e6fb56fSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 71077e6fb56fSmrgold_postinstall_cmds='chmod 644 $oldlib' 71087e6fb56fSmrgold_postuninstall_cmds= 71097e6fb56fSmrg 71107e6fb56fSmrgif test -n "$RANLIB"; then 71117e6fb56fSmrg case $host_os in 71127e6fb56fSmrg openbsd*) 71137e6fb56fSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 71147e6fb56fSmrg ;; 71157e6fb56fSmrg *) 71167e6fb56fSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 71177e6fb56fSmrg ;; 71187e6fb56fSmrg esac 71197e6fb56fSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 71207e6fb56fSmrgfi 71217e6fb56fSmrg 71227e6fb56fSmrgfor cc_temp in $compiler""; do 71237e6fb56fSmrg case $cc_temp in 71247e6fb56fSmrg compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 71257e6fb56fSmrg distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 71267e6fb56fSmrg \-*) ;; 71277e6fb56fSmrg *) break;; 71287e6fb56fSmrg esac 71297e6fb56fSmrgdone 71307e6fb56fSmrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 71317e6fb56fSmrg 71327e6fb56fSmrg 71337e6fb56fSmrg# Only perform the check for file, if the check method requires it 71347e6fb56fSmrgcase $deplibs_check_method in 71357e6fb56fSmrgfile_magic*) 71367e6fb56fSmrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 71377e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 71387e6fb56fSmrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 71397e6fb56fSmrgif test "${lt_cv_path_MAGIC_CMD+set}" = set; then 71407e6fb56fSmrg $as_echo_n "(cached) " >&6 71417e6fb56fSmrgelse 71427e6fb56fSmrg case $MAGIC_CMD in 71437e6fb56fSmrg[\\/*] | ?:[\\/]*) 71447e6fb56fSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 71457e6fb56fSmrg ;; 71467e6fb56fSmrg*) 71477e6fb56fSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 71487e6fb56fSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 71497e6fb56fSmrg ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 71507e6fb56fSmrg for ac_dir in $ac_dummy; do 71517e6fb56fSmrg IFS="$lt_save_ifs" 71527e6fb56fSmrg test -z "$ac_dir" && ac_dir=. 71537e6fb56fSmrg if test -f $ac_dir/${ac_tool_prefix}file; then 71547e6fb56fSmrg lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 71557e6fb56fSmrg if test -n "$file_magic_test_file"; then 71567e6fb56fSmrg case $deplibs_check_method in 71577e6fb56fSmrg "file_magic "*) 71587e6fb56fSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 71597e6fb56fSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 71607e6fb56fSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 71617e6fb56fSmrg $EGREP "$file_magic_regex" > /dev/null; then 71627e6fb56fSmrg : 71637e6fb56fSmrg else 71647e6fb56fSmrg cat <<EOF 1>&2 71657e6fb56fSmrg 71667e6fb56fSmrg*** Warning: the command libtool uses to detect shared libraries, 71677e6fb56fSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 71687e6fb56fSmrg*** The result is that libtool may fail to recognize shared libraries 71697e6fb56fSmrg*** as such. This will affect the creation of libtool libraries that 71707e6fb56fSmrg*** depend on shared libraries, but programs linked with such libtool 71717e6fb56fSmrg*** libraries will work regardless of this problem. Nevertheless, you 71727e6fb56fSmrg*** may want to report the problem to your system manager and/or to 71737e6fb56fSmrg*** bug-libtool@gnu.org 71747e6fb56fSmrg 71757e6fb56fSmrgEOF 71767e6fb56fSmrg fi ;; 71777e6fb56fSmrg esac 71787e6fb56fSmrg fi 71797e6fb56fSmrg break 71807e6fb56fSmrg fi 71817e6fb56fSmrg done 71827e6fb56fSmrg IFS="$lt_save_ifs" 71837e6fb56fSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 71847e6fb56fSmrg ;; 71857e6fb56fSmrgesac 71867e6fb56fSmrgfi 71877e6fb56fSmrg 71887e6fb56fSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 71897e6fb56fSmrgif test -n "$MAGIC_CMD"; then 71907e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 71917e6fb56fSmrg$as_echo "$MAGIC_CMD" >&6; } 71927e6fb56fSmrgelse 71937e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 71947e6fb56fSmrg$as_echo "no" >&6; } 71957e6fb56fSmrgfi 71967e6fb56fSmrg 71977e6fb56fSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 71987e6fb56fSmrg if test -n "$ac_tool_prefix"; then 71997e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for file" >&5 72007e6fb56fSmrg$as_echo_n "checking for file... " >&6; } 72017e6fb56fSmrgif test "${lt_cv_path_MAGIC_CMD+set}" = set; then 72027e6fb56fSmrg $as_echo_n "(cached) " >&6 72037e6fb56fSmrgelse 72047e6fb56fSmrg case $MAGIC_CMD in 72057e6fb56fSmrg[\\/*] | ?:[\\/]*) 72067e6fb56fSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 72077e6fb56fSmrg ;; 72087e6fb56fSmrg*) 72097e6fb56fSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 72107e6fb56fSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 72117e6fb56fSmrg ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 72127e6fb56fSmrg for ac_dir in $ac_dummy; do 72137e6fb56fSmrg IFS="$lt_save_ifs" 72147e6fb56fSmrg test -z "$ac_dir" && ac_dir=. 72157e6fb56fSmrg if test -f $ac_dir/file; then 72167e6fb56fSmrg lt_cv_path_MAGIC_CMD="$ac_dir/file" 72177e6fb56fSmrg if test -n "$file_magic_test_file"; then 72187e6fb56fSmrg case $deplibs_check_method in 72197e6fb56fSmrg "file_magic "*) 72207e6fb56fSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 72217e6fb56fSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 72227e6fb56fSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 72237e6fb56fSmrg $EGREP "$file_magic_regex" > /dev/null; then 72247e6fb56fSmrg : 72257e6fb56fSmrg else 72267e6fb56fSmrg cat <<EOF 1>&2 72277e6fb56fSmrg 72287e6fb56fSmrg*** Warning: the command libtool uses to detect shared libraries, 72297e6fb56fSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 72307e6fb56fSmrg*** The result is that libtool may fail to recognize shared libraries 72317e6fb56fSmrg*** as such. This will affect the creation of libtool libraries that 72327e6fb56fSmrg*** depend on shared libraries, but programs linked with such libtool 72337e6fb56fSmrg*** libraries will work regardless of this problem. Nevertheless, you 72347e6fb56fSmrg*** may want to report the problem to your system manager and/or to 72357e6fb56fSmrg*** bug-libtool@gnu.org 72367e6fb56fSmrg 72377e6fb56fSmrgEOF 72387e6fb56fSmrg fi ;; 72397e6fb56fSmrg esac 72407e6fb56fSmrg fi 72417e6fb56fSmrg break 72427e6fb56fSmrg fi 72437e6fb56fSmrg done 72447e6fb56fSmrg IFS="$lt_save_ifs" 72457e6fb56fSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 72467e6fb56fSmrg ;; 72477e6fb56fSmrgesac 72487e6fb56fSmrgfi 72497e6fb56fSmrg 72507e6fb56fSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 72517e6fb56fSmrgif test -n "$MAGIC_CMD"; then 72527e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 72537e6fb56fSmrg$as_echo "$MAGIC_CMD" >&6; } 72547e6fb56fSmrgelse 72557e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 72567e6fb56fSmrg$as_echo "no" >&6; } 72577e6fb56fSmrgfi 72587e6fb56fSmrg 72597e6fb56fSmrg else 72607e6fb56fSmrg MAGIC_CMD=: 72617e6fb56fSmrg fi 72627e6fb56fSmrgfi 72637e6fb56fSmrg 72647e6fb56fSmrg fi 72657e6fb56fSmrg ;; 72667e6fb56fSmrgesac 72677e6fb56fSmrg 72687e6fb56fSmrg 72697e6fb56fSmrg case $host_os in 72707e6fb56fSmrg rhapsody* | darwin*) 72717e6fb56fSmrg if test -n "$ac_tool_prefix"; then 72727e6fb56fSmrg # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 72737e6fb56fSmrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2 72747e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 72757e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 72767e6fb56fSmrgif test "${ac_cv_prog_DSYMUTIL+set}" = set; then 72777e6fb56fSmrg $as_echo_n "(cached) " >&6 72787e6fb56fSmrgelse 72797e6fb56fSmrg if test -n "$DSYMUTIL"; then 72807e6fb56fSmrg ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 72817e6fb56fSmrgelse 72827e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 72837e6fb56fSmrgfor as_dir in $PATH 72847e6fb56fSmrgdo 72857e6fb56fSmrg IFS=$as_save_IFS 72867e6fb56fSmrg test -z "$as_dir" && as_dir=. 72877e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 72887e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 72897e6fb56fSmrg ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 72907e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 72917e6fb56fSmrg break 2 72927e6fb56fSmrg fi 72937e6fb56fSmrgdone 72947e6fb56fSmrgdone 72957e6fb56fSmrgIFS=$as_save_IFS 72967e6fb56fSmrg 72977e6fb56fSmrgfi 72987e6fb56fSmrgfi 72997e6fb56fSmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL 73007e6fb56fSmrgif test -n "$DSYMUTIL"; then 73017e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 73027e6fb56fSmrg$as_echo "$DSYMUTIL" >&6; } 73037e6fb56fSmrgelse 73047e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 73057e6fb56fSmrg$as_echo "no" >&6; } 73067e6fb56fSmrgfi 73077e6fb56fSmrg 73087e6fb56fSmrg 73097e6fb56fSmrgfi 73107e6fb56fSmrgif test -z "$ac_cv_prog_DSYMUTIL"; then 73117e6fb56fSmrg ac_ct_DSYMUTIL=$DSYMUTIL 73127e6fb56fSmrg # Extract the first word of "dsymutil", so it can be a program name with args. 73137e6fb56fSmrgset dummy dsymutil; ac_word=$2 73147e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 73157e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 73167e6fb56fSmrgif test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 73177e6fb56fSmrg $as_echo_n "(cached) " >&6 73187e6fb56fSmrgelse 73197e6fb56fSmrg if test -n "$ac_ct_DSYMUTIL"; then 73207e6fb56fSmrg ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 73217e6fb56fSmrgelse 73227e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 73237e6fb56fSmrgfor as_dir in $PATH 73247e6fb56fSmrgdo 73257e6fb56fSmrg IFS=$as_save_IFS 73267e6fb56fSmrg test -z "$as_dir" && as_dir=. 73277e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 73287e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 73297e6fb56fSmrg ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 73307e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 73317e6fb56fSmrg break 2 73327e6fb56fSmrg fi 73337e6fb56fSmrgdone 73347e6fb56fSmrgdone 73357e6fb56fSmrgIFS=$as_save_IFS 73367e6fb56fSmrg 73377e6fb56fSmrgfi 73387e6fb56fSmrgfi 73397e6fb56fSmrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 73407e6fb56fSmrgif test -n "$ac_ct_DSYMUTIL"; then 73417e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 73427e6fb56fSmrg$as_echo "$ac_ct_DSYMUTIL" >&6; } 73437e6fb56fSmrgelse 73447e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 73457e6fb56fSmrg$as_echo "no" >&6; } 73467e6fb56fSmrgfi 73477e6fb56fSmrg 73487e6fb56fSmrg if test "x$ac_ct_DSYMUTIL" = x; then 73497e6fb56fSmrg DSYMUTIL=":" 73507e6fb56fSmrg else 73517e6fb56fSmrg case $cross_compiling:$ac_tool_warned in 73527e6fb56fSmrgyes:) 73537e6fb56fSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 73547e6fb56fSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 73557e6fb56fSmrgac_tool_warned=yes ;; 73567e6fb56fSmrgesac 73577e6fb56fSmrg DSYMUTIL=$ac_ct_DSYMUTIL 73587e6fb56fSmrg fi 73597e6fb56fSmrgelse 73607e6fb56fSmrg DSYMUTIL="$ac_cv_prog_DSYMUTIL" 73617e6fb56fSmrgfi 73627e6fb56fSmrg 73637e6fb56fSmrg if test -n "$ac_tool_prefix"; then 73647e6fb56fSmrg # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 73657e6fb56fSmrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2 73667e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 73677e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 73687e6fb56fSmrgif test "${ac_cv_prog_NMEDIT+set}" = set; then 73697e6fb56fSmrg $as_echo_n "(cached) " >&6 73707e6fb56fSmrgelse 73717e6fb56fSmrg if test -n "$NMEDIT"; then 73727e6fb56fSmrg ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 73737e6fb56fSmrgelse 73747e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 73757e6fb56fSmrgfor as_dir in $PATH 73767e6fb56fSmrgdo 73777e6fb56fSmrg IFS=$as_save_IFS 73787e6fb56fSmrg test -z "$as_dir" && as_dir=. 73797e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 73807e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 73817e6fb56fSmrg ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 73827e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 73837e6fb56fSmrg break 2 73847e6fb56fSmrg fi 73857e6fb56fSmrgdone 73867e6fb56fSmrgdone 73877e6fb56fSmrgIFS=$as_save_IFS 73887e6fb56fSmrg 73897e6fb56fSmrgfi 73907e6fb56fSmrgfi 73917e6fb56fSmrgNMEDIT=$ac_cv_prog_NMEDIT 73927e6fb56fSmrgif test -n "$NMEDIT"; then 73937e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 73947e6fb56fSmrg$as_echo "$NMEDIT" >&6; } 73957e6fb56fSmrgelse 73967e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 73977e6fb56fSmrg$as_echo "no" >&6; } 73987e6fb56fSmrgfi 73997e6fb56fSmrg 74007e6fb56fSmrg 74017e6fb56fSmrgfi 74027e6fb56fSmrgif test -z "$ac_cv_prog_NMEDIT"; then 74037e6fb56fSmrg ac_ct_NMEDIT=$NMEDIT 74047e6fb56fSmrg # Extract the first word of "nmedit", so it can be a program name with args. 74057e6fb56fSmrgset dummy nmedit; ac_word=$2 74067e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 74077e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 74087e6fb56fSmrgif test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 74097e6fb56fSmrg $as_echo_n "(cached) " >&6 74107e6fb56fSmrgelse 74117e6fb56fSmrg if test -n "$ac_ct_NMEDIT"; then 74127e6fb56fSmrg ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 74137e6fb56fSmrgelse 74147e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74157e6fb56fSmrgfor as_dir in $PATH 74167e6fb56fSmrgdo 74177e6fb56fSmrg IFS=$as_save_IFS 74187e6fb56fSmrg test -z "$as_dir" && as_dir=. 74197e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 74207e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 74217e6fb56fSmrg ac_cv_prog_ac_ct_NMEDIT="nmedit" 74227e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 74237e6fb56fSmrg break 2 74247e6fb56fSmrg fi 74257e6fb56fSmrgdone 74267e6fb56fSmrgdone 74277e6fb56fSmrgIFS=$as_save_IFS 74287e6fb56fSmrg 74297e6fb56fSmrgfi 74307e6fb56fSmrgfi 74317e6fb56fSmrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 74327e6fb56fSmrgif test -n "$ac_ct_NMEDIT"; then 74337e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 74347e6fb56fSmrg$as_echo "$ac_ct_NMEDIT" >&6; } 74357e6fb56fSmrgelse 74367e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 74377e6fb56fSmrg$as_echo "no" >&6; } 74387e6fb56fSmrgfi 74397e6fb56fSmrg 74407e6fb56fSmrg if test "x$ac_ct_NMEDIT" = x; then 74417e6fb56fSmrg NMEDIT=":" 74427e6fb56fSmrg else 74437e6fb56fSmrg case $cross_compiling:$ac_tool_warned in 74447e6fb56fSmrgyes:) 74457e6fb56fSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 74467e6fb56fSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 74477e6fb56fSmrgac_tool_warned=yes ;; 74487e6fb56fSmrgesac 74497e6fb56fSmrg NMEDIT=$ac_ct_NMEDIT 74507e6fb56fSmrg fi 74517e6fb56fSmrgelse 74527e6fb56fSmrg NMEDIT="$ac_cv_prog_NMEDIT" 74537e6fb56fSmrgfi 74547e6fb56fSmrg 74557e6fb56fSmrg 74567e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 74577e6fb56fSmrg$as_echo_n "checking for -single_module linker flag... " >&6; } 74587e6fb56fSmrgif test "${lt_cv_apple_cc_single_mod+set}" = set; then 74597e6fb56fSmrg $as_echo_n "(cached) " >&6 74607e6fb56fSmrgelse 74617e6fb56fSmrg lt_cv_apple_cc_single_mod=no 74627e6fb56fSmrg if test -z "${LT_MULTI_MODULE}"; then 74637e6fb56fSmrg # By default we will add the -single_module flag. You can override 74647e6fb56fSmrg # by either setting the environment variable LT_MULTI_MODULE 74657e6fb56fSmrg # non-empty at configure time, or by adding -multi_module to the 74667e6fb56fSmrg # link flags. 74677e6fb56fSmrg echo "int foo(void){return 1;}" > conftest.c 74687e6fb56fSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 74697e6fb56fSmrg -dynamiclib ${wl}-single_module conftest.c 74707e6fb56fSmrg if test -f libconftest.dylib; then 74717e6fb56fSmrg lt_cv_apple_cc_single_mod=yes 74727e6fb56fSmrg rm -rf libconftest.dylib* 74737e6fb56fSmrg fi 74747e6fb56fSmrg rm conftest.c 74757e6fb56fSmrg fi 74767e6fb56fSmrgfi 74777e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 74787e6fb56fSmrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 74797e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 74807e6fb56fSmrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 74817e6fb56fSmrgif test "${lt_cv_ld_exported_symbols_list+set}" = set; then 74827e6fb56fSmrg $as_echo_n "(cached) " >&6 74837e6fb56fSmrgelse 74847e6fb56fSmrg lt_cv_ld_exported_symbols_list=no 74857e6fb56fSmrg save_LDFLAGS=$LDFLAGS 74867e6fb56fSmrg echo "_main" > conftest.sym 74877e6fb56fSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 74887e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 74897e6fb56fSmrg/* confdefs.h. */ 74907e6fb56fSmrg_ACEOF 74917e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 74927e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 74937e6fb56fSmrg/* end confdefs.h. */ 74947e6fb56fSmrg 74957e6fb56fSmrgint 74967e6fb56fSmrgmain () 74977e6fb56fSmrg{ 74987e6fb56fSmrg 74997e6fb56fSmrg ; 75007e6fb56fSmrg return 0; 75017e6fb56fSmrg} 75027e6fb56fSmrg_ACEOF 75037e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 75047e6fb56fSmrgif { (ac_try="$ac_link" 75057e6fb56fSmrgcase "(($ac_try" in 75067e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 75077e6fb56fSmrg *) ac_try_echo=$ac_try;; 75087e6fb56fSmrgesac 75097e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 75107e6fb56fSmrg$as_echo "$ac_try_echo") >&5 75117e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 75127e6fb56fSmrg ac_status=$? 75137e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 75147e6fb56fSmrg rm -f conftest.er1 75157e6fb56fSmrg cat conftest.err >&5 75167e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 75177e6fb56fSmrg (exit $ac_status); } && { 75187e6fb56fSmrg test -z "$ac_c_werror_flag" || 75197e6fb56fSmrg test ! -s conftest.err 75207e6fb56fSmrg } && test -s conftest$ac_exeext && { 75217e6fb56fSmrg test "$cross_compiling" = yes || 75227e6fb56fSmrg $as_test_x conftest$ac_exeext 75237e6fb56fSmrg }; then 75247e6fb56fSmrg lt_cv_ld_exported_symbols_list=yes 75257e6fb56fSmrgelse 75267e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 75277e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 75287e6fb56fSmrg 75297e6fb56fSmrg lt_cv_ld_exported_symbols_list=no 75307e6fb56fSmrgfi 75317e6fb56fSmrg 75327e6fb56fSmrgrm -rf conftest.dSYM 75337e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 75347e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 75357e6fb56fSmrg LDFLAGS="$save_LDFLAGS" 75367e6fb56fSmrg 75377e6fb56fSmrgfi 75387e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 75397e6fb56fSmrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 75407e6fb56fSmrg case $host_os in 75417e6fb56fSmrg rhapsody* | darwin1.[0123]) 75427e6fb56fSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 75437e6fb56fSmrg darwin1.*) 75447e6fb56fSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 75457e6fb56fSmrg darwin*) 75467e6fb56fSmrg # if running on 10.5 or later, the deployment target defaults 75477e6fb56fSmrg # to the OS version, if on x86, and 10.4, the deployment 75487e6fb56fSmrg # target defaults to 10.4. Don't you love it? 75497e6fb56fSmrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 75507e6fb56fSmrg 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 75517e6fb56fSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 75527e6fb56fSmrg 10.[012]*) 75537e6fb56fSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 75547e6fb56fSmrg 10.*) 75557e6fb56fSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 75567e6fb56fSmrg esac 75577e6fb56fSmrg ;; 75587e6fb56fSmrg esac 75597e6fb56fSmrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 75607e6fb56fSmrg _lt_dar_single_mod='$single_module' 75617e6fb56fSmrg fi 75627e6fb56fSmrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 75637e6fb56fSmrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 75647e6fb56fSmrg else 75657e6fb56fSmrg _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 75667e6fb56fSmrg fi 75677e6fb56fSmrg if test "$DSYMUTIL" != ":"; then 75687e6fb56fSmrg _lt_dsymutil="~$DSYMUTIL \$lib || :" 75697e6fb56fSmrg else 75707e6fb56fSmrg _lt_dsymutil= 75717e6fb56fSmrg fi 75727e6fb56fSmrg ;; 75737e6fb56fSmrg esac 75747e6fb56fSmrg 75757e6fb56fSmrg 75767e6fb56fSmrgenable_dlopen=no 75777e6fb56fSmrgenable_win32_dll=no 75787e6fb56fSmrg 75797e6fb56fSmrg# Check whether --enable-libtool-lock was given. 75807e6fb56fSmrgif test "${enable_libtool_lock+set}" = set; then 75817e6fb56fSmrg enableval=$enable_libtool_lock; 75827e6fb56fSmrgfi 75837e6fb56fSmrg 75847e6fb56fSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 75857e6fb56fSmrg 75867e6fb56fSmrg 75877e6fb56fSmrg# Check whether --with-pic was given. 75887e6fb56fSmrgif test "${with_pic+set}" = set; then 75897e6fb56fSmrg withval=$with_pic; pic_mode="$withval" 75907e6fb56fSmrgelse 75917e6fb56fSmrg pic_mode=default 75927e6fb56fSmrgfi 75937e6fb56fSmrg 75947e6fb56fSmrgtest -z "$pic_mode" && pic_mode=default 75957e6fb56fSmrg 75967e6fb56fSmrg# Use C for the default configuration in the libtool script 75977e6fb56fSmrgtagname= 75987e6fb56fSmrglt_save_CC="$CC" 75997e6fb56fSmrgac_ext=c 76007e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 76017e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 76027e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 76037e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 76047e6fb56fSmrg 76057e6fb56fSmrg 76067e6fb56fSmrg# Source file extension for C test sources. 76077e6fb56fSmrgac_ext=c 76087e6fb56fSmrg 76097e6fb56fSmrg# Object file extension for compiled C test sources. 76107e6fb56fSmrgobjext=o 76117e6fb56fSmrgobjext=$objext 76127e6fb56fSmrg 76137e6fb56fSmrg# Code to be used in simple compile tests 76147e6fb56fSmrglt_simple_compile_test_code="int some_variable = 0;" 76157e6fb56fSmrg 76167e6fb56fSmrg# Code to be used in simple link tests 76177e6fb56fSmrglt_simple_link_test_code='int main(){return(0);}' 76187e6fb56fSmrg 76197e6fb56fSmrg 76207e6fb56fSmrg# If no C compiler was specified, use CC. 76217e6fb56fSmrgLTCC=${LTCC-"$CC"} 76227e6fb56fSmrg 76237e6fb56fSmrg# If no C compiler flags were specified, use CFLAGS. 76247e6fb56fSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 76257e6fb56fSmrg 76267e6fb56fSmrg# Allow CC to be a program name with arguments. 76277e6fb56fSmrgcompiler=$CC 76287e6fb56fSmrg 76297e6fb56fSmrg 76307e6fb56fSmrg# save warnings/boilerplate of simple test code 76317e6fb56fSmrgac_outfile=conftest.$ac_objext 76327e6fb56fSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 76337e6fb56fSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 76347e6fb56fSmrg_lt_compiler_boilerplate=`cat conftest.err` 76357e6fb56fSmrg$rm conftest* 76367e6fb56fSmrg 76377e6fb56fSmrgac_outfile=conftest.$ac_objext 76387e6fb56fSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 76397e6fb56fSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 76407e6fb56fSmrg_lt_linker_boilerplate=`cat conftest.err` 76417e6fb56fSmrg$rm -r conftest* 76427e6fb56fSmrg 76437e6fb56fSmrg 76447e6fb56fSmrg 76457e6fb56fSmrglt_prog_compiler_no_builtin_flag= 76467e6fb56fSmrg 76477e6fb56fSmrgif test "$GCC" = yes; then 76487e6fb56fSmrg lt_prog_compiler_no_builtin_flag=' -fno-builtin' 76497e6fb56fSmrg 76507e6fb56fSmrg 76517e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 76527e6fb56fSmrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 76537e6fb56fSmrgif test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 76547e6fb56fSmrg $as_echo_n "(cached) " >&6 76557e6fb56fSmrgelse 76567e6fb56fSmrg lt_cv_prog_compiler_rtti_exceptions=no 76577e6fb56fSmrg ac_outfile=conftest.$ac_objext 76587e6fb56fSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 76597e6fb56fSmrg lt_compiler_flag="-fno-rtti -fno-exceptions" 76607e6fb56fSmrg # Insert the option either (1) after the last *FLAGS variable, or 76617e6fb56fSmrg # (2) before a word containing "conftest.", or (3) at the end. 76627e6fb56fSmrg # Note that $ac_compile itself does not contain backslashes and begins 76637e6fb56fSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 76647e6fb56fSmrg # The option is referenced via a variable to avoid confusing sed. 76657e6fb56fSmrg lt_compile=`echo "$ac_compile" | $SED \ 76667e6fb56fSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 76677e6fb56fSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 76687e6fb56fSmrg -e 's:$: $lt_compiler_flag:'` 76697e6fb56fSmrg (eval echo "\"\$as_me:7669: $lt_compile\"" >&5) 76707e6fb56fSmrg (eval "$lt_compile" 2>conftest.err) 76717e6fb56fSmrg ac_status=$? 76727e6fb56fSmrg cat conftest.err >&5 76737e6fb56fSmrg echo "$as_me:7673: \$? = $ac_status" >&5 76747e6fb56fSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 76757e6fb56fSmrg # The compiler can only warn and ignore the option if not recognized 76767e6fb56fSmrg # So say no if there are warnings other than the usual output. 76777e6fb56fSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 76787e6fb56fSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 76797e6fb56fSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 76807e6fb56fSmrg lt_cv_prog_compiler_rtti_exceptions=yes 76817e6fb56fSmrg fi 76827e6fb56fSmrg fi 76837e6fb56fSmrg $rm conftest* 76847e6fb56fSmrg 76857e6fb56fSmrgfi 76867e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 76877e6fb56fSmrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 76887e6fb56fSmrg 76897e6fb56fSmrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 76907e6fb56fSmrg lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 76917e6fb56fSmrgelse 76927e6fb56fSmrg : 76937e6fb56fSmrgfi 76947e6fb56fSmrg 76957e6fb56fSmrgfi 76967e6fb56fSmrg 76977e6fb56fSmrglt_prog_compiler_wl= 76987e6fb56fSmrglt_prog_compiler_pic= 76997e6fb56fSmrglt_prog_compiler_static= 77007e6fb56fSmrg 77017e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 77027e6fb56fSmrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 77037e6fb56fSmrg 77047e6fb56fSmrg if test "$GCC" = yes; then 77057e6fb56fSmrg lt_prog_compiler_wl='-Wl,' 77067e6fb56fSmrg lt_prog_compiler_static='-static' 77077e6fb56fSmrg 77087e6fb56fSmrg case $host_os in 77097e6fb56fSmrg aix*) 77107e6fb56fSmrg # All AIX code is PIC. 77117e6fb56fSmrg if test "$host_cpu" = ia64; then 77127e6fb56fSmrg # AIX 5 now supports IA64 processor 77137e6fb56fSmrg lt_prog_compiler_static='-Bstatic' 77147e6fb56fSmrg fi 77157e6fb56fSmrg ;; 77167e6fb56fSmrg 77177e6fb56fSmrg amigaos*) 77187e6fb56fSmrg # FIXME: we need at least 68020 code to build shared libraries, but 77197e6fb56fSmrg # adding the `-m68020' flag to GCC prevents building anything better, 77207e6fb56fSmrg # like `-m68040'. 77217e6fb56fSmrg lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 77227e6fb56fSmrg ;; 77237e6fb56fSmrg 77247e6fb56fSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 77257e6fb56fSmrg # PIC is the default for these OSes. 77267e6fb56fSmrg ;; 77277e6fb56fSmrg 77287e6fb56fSmrg mingw* | cygwin* | pw32* | os2*) 77297e6fb56fSmrg # This hack is so that the source file can tell whether it is being 77307e6fb56fSmrg # built for inclusion in a dll (and should export symbols for example). 77317e6fb56fSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 77327e6fb56fSmrg # (--disable-auto-import) libraries 77337e6fb56fSmrg lt_prog_compiler_pic='-DDLL_EXPORT' 77347e6fb56fSmrg ;; 77357e6fb56fSmrg 77367e6fb56fSmrg darwin* | rhapsody*) 77377e6fb56fSmrg # PIC is the default on this platform 77387e6fb56fSmrg # Common symbols not allowed in MH_DYLIB files 77397e6fb56fSmrg lt_prog_compiler_pic='-fno-common' 77407e6fb56fSmrg ;; 77417e6fb56fSmrg 77427e6fb56fSmrg interix[3-9]*) 77437e6fb56fSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 77447e6fb56fSmrg # Instead, we relocate shared libraries at runtime. 77457e6fb56fSmrg ;; 77467e6fb56fSmrg 77477e6fb56fSmrg msdosdjgpp*) 77487e6fb56fSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 77497e6fb56fSmrg # on systems that don't support them. 77507e6fb56fSmrg lt_prog_compiler_can_build_shared=no 77517e6fb56fSmrg enable_shared=no 77527e6fb56fSmrg ;; 77537e6fb56fSmrg 77547e6fb56fSmrg sysv4*MP*) 77557e6fb56fSmrg if test -d /usr/nec; then 77567e6fb56fSmrg lt_prog_compiler_pic=-Kconform_pic 77577e6fb56fSmrg fi 77587e6fb56fSmrg ;; 77597e6fb56fSmrg 77607e6fb56fSmrg hpux*) 77617e6fb56fSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 77627e6fb56fSmrg # not for PA HP-UX. 77637e6fb56fSmrg case $host_cpu in 77647e6fb56fSmrg hppa*64*|ia64*) 77657e6fb56fSmrg # +Z the default 77667e6fb56fSmrg ;; 77677e6fb56fSmrg *) 77687e6fb56fSmrg lt_prog_compiler_pic='-fPIC' 77697e6fb56fSmrg ;; 77707e6fb56fSmrg esac 77717e6fb56fSmrg ;; 77727e6fb56fSmrg 77737e6fb56fSmrg *) 77747e6fb56fSmrg lt_prog_compiler_pic='-fPIC' 77757e6fb56fSmrg ;; 77767e6fb56fSmrg esac 77777e6fb56fSmrg else 77787e6fb56fSmrg # PORTME Check for flag to pass linker flags through the system compiler. 77797e6fb56fSmrg case $host_os in 77807e6fb56fSmrg aix*) 77817e6fb56fSmrg lt_prog_compiler_wl='-Wl,' 77827e6fb56fSmrg if test "$host_cpu" = ia64; then 77837e6fb56fSmrg # AIX 5 now supports IA64 processor 77847e6fb56fSmrg lt_prog_compiler_static='-Bstatic' 77857e6fb56fSmrg else 77867e6fb56fSmrg lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 77877e6fb56fSmrg fi 77887e6fb56fSmrg ;; 77897e6fb56fSmrg darwin*) 77907e6fb56fSmrg # PIC is the default on this platform 77917e6fb56fSmrg # Common symbols not allowed in MH_DYLIB files 77927e6fb56fSmrg case $cc_basename in 77937e6fb56fSmrg xlc*) 77947e6fb56fSmrg lt_prog_compiler_pic='-qnocommon' 77957e6fb56fSmrg lt_prog_compiler_wl='-Wl,' 77967e6fb56fSmrg ;; 77977e6fb56fSmrg esac 77987e6fb56fSmrg ;; 77997e6fb56fSmrg 78007e6fb56fSmrg mingw* | cygwin* | pw32* | os2*) 78017e6fb56fSmrg # This hack is so that the source file can tell whether it is being 78027e6fb56fSmrg # built for inclusion in a dll (and should export symbols for example). 78037e6fb56fSmrg lt_prog_compiler_pic='-DDLL_EXPORT' 78047e6fb56fSmrg ;; 78057e6fb56fSmrg 78067e6fb56fSmrg hpux9* | hpux10* | hpux11*) 78077e6fb56fSmrg lt_prog_compiler_wl='-Wl,' 78087e6fb56fSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 78097e6fb56fSmrg # not for PA HP-UX. 78107e6fb56fSmrg case $host_cpu in 78117e6fb56fSmrg hppa*64*|ia64*) 78127e6fb56fSmrg # +Z the default 78137e6fb56fSmrg ;; 78147e6fb56fSmrg *) 78157e6fb56fSmrg lt_prog_compiler_pic='+Z' 78167e6fb56fSmrg ;; 78177e6fb56fSmrg esac 78187e6fb56fSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 78197e6fb56fSmrg lt_prog_compiler_static='${wl}-a ${wl}archive' 78207e6fb56fSmrg ;; 78217e6fb56fSmrg 78227e6fb56fSmrg irix5* | irix6* | nonstopux*) 78237e6fb56fSmrg lt_prog_compiler_wl='-Wl,' 78247e6fb56fSmrg # PIC (with -KPIC) is the default. 78257e6fb56fSmrg lt_prog_compiler_static='-non_shared' 78267e6fb56fSmrg ;; 78277e6fb56fSmrg 78287e6fb56fSmrg newsos6) 78297e6fb56fSmrg lt_prog_compiler_pic='-KPIC' 78307e6fb56fSmrg lt_prog_compiler_static='-Bstatic' 78317e6fb56fSmrg ;; 78327e6fb56fSmrg 78337e6fb56fSmrg linux* | k*bsd*-gnu) 78347e6fb56fSmrg case $cc_basename in 78357e6fb56fSmrg icc* | ecc*) 78367e6fb56fSmrg lt_prog_compiler_wl='-Wl,' 78377e6fb56fSmrg lt_prog_compiler_pic='-KPIC' 78387e6fb56fSmrg lt_prog_compiler_static='-static' 78397e6fb56fSmrg ;; 78407e6fb56fSmrg pgcc* | pgf77* | pgf90* | pgf95*) 78417e6fb56fSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 78427e6fb56fSmrg # which looks to be a dead project) 78437e6fb56fSmrg lt_prog_compiler_wl='-Wl,' 78447e6fb56fSmrg lt_prog_compiler_pic='-fpic' 78457e6fb56fSmrg lt_prog_compiler_static='-Bstatic' 78467e6fb56fSmrg ;; 78477e6fb56fSmrg ccc*) 78487e6fb56fSmrg lt_prog_compiler_wl='-Wl,' 78497e6fb56fSmrg # All Alpha code is PIC. 78507e6fb56fSmrg lt_prog_compiler_static='-non_shared' 78517e6fb56fSmrg ;; 78527e6fb56fSmrg *) 78537e6fb56fSmrg case `$CC -V 2>&1 | sed 5q` in 78547e6fb56fSmrg *Sun\ C*) 78557e6fb56fSmrg # Sun C 5.9 78567e6fb56fSmrg lt_prog_compiler_pic='-KPIC' 78577e6fb56fSmrg lt_prog_compiler_static='-Bstatic' 78587e6fb56fSmrg lt_prog_compiler_wl='-Wl,' 78597e6fb56fSmrg ;; 78607e6fb56fSmrg *Sun\ F*) 78617e6fb56fSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 78627e6fb56fSmrg lt_prog_compiler_pic='-KPIC' 78637e6fb56fSmrg lt_prog_compiler_static='-Bstatic' 78647e6fb56fSmrg lt_prog_compiler_wl='' 78657e6fb56fSmrg ;; 78667e6fb56fSmrg esac 78677e6fb56fSmrg ;; 78687e6fb56fSmrg esac 78697e6fb56fSmrg ;; 78707e6fb56fSmrg 78717e6fb56fSmrg osf3* | osf4* | osf5*) 78727e6fb56fSmrg lt_prog_compiler_wl='-Wl,' 78737e6fb56fSmrg # All OSF/1 code is PIC. 78747e6fb56fSmrg lt_prog_compiler_static='-non_shared' 78757e6fb56fSmrg ;; 78767e6fb56fSmrg 78777e6fb56fSmrg rdos*) 78787e6fb56fSmrg lt_prog_compiler_static='-non_shared' 78797e6fb56fSmrg ;; 78807e6fb56fSmrg 78817e6fb56fSmrg solaris*) 78827e6fb56fSmrg lt_prog_compiler_pic='-KPIC' 78837e6fb56fSmrg lt_prog_compiler_static='-Bstatic' 78847e6fb56fSmrg case $cc_basename in 78857e6fb56fSmrg f77* | f90* | f95*) 78867e6fb56fSmrg lt_prog_compiler_wl='-Qoption ld ';; 78877e6fb56fSmrg *) 78887e6fb56fSmrg lt_prog_compiler_wl='-Wl,';; 78897e6fb56fSmrg esac 78907e6fb56fSmrg ;; 78917e6fb56fSmrg 78927e6fb56fSmrg sunos4*) 78937e6fb56fSmrg lt_prog_compiler_wl='-Qoption ld ' 78947e6fb56fSmrg lt_prog_compiler_pic='-PIC' 78957e6fb56fSmrg lt_prog_compiler_static='-Bstatic' 78967e6fb56fSmrg ;; 78977e6fb56fSmrg 78987e6fb56fSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 78997e6fb56fSmrg lt_prog_compiler_wl='-Wl,' 79007e6fb56fSmrg lt_prog_compiler_pic='-KPIC' 79017e6fb56fSmrg lt_prog_compiler_static='-Bstatic' 79027e6fb56fSmrg ;; 79037e6fb56fSmrg 79047e6fb56fSmrg sysv4*MP*) 79057e6fb56fSmrg if test -d /usr/nec ;then 79067e6fb56fSmrg lt_prog_compiler_pic='-Kconform_pic' 79077e6fb56fSmrg lt_prog_compiler_static='-Bstatic' 79087e6fb56fSmrg fi 79097e6fb56fSmrg ;; 79107e6fb56fSmrg 79117e6fb56fSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 79127e6fb56fSmrg lt_prog_compiler_wl='-Wl,' 79137e6fb56fSmrg lt_prog_compiler_pic='-KPIC' 79147e6fb56fSmrg lt_prog_compiler_static='-Bstatic' 79157e6fb56fSmrg ;; 79167e6fb56fSmrg 79177e6fb56fSmrg unicos*) 79187e6fb56fSmrg lt_prog_compiler_wl='-Wl,' 79197e6fb56fSmrg lt_prog_compiler_can_build_shared=no 79207e6fb56fSmrg ;; 79217e6fb56fSmrg 79227e6fb56fSmrg uts4*) 79237e6fb56fSmrg lt_prog_compiler_pic='-pic' 79247e6fb56fSmrg lt_prog_compiler_static='-Bstatic' 79257e6fb56fSmrg ;; 79267e6fb56fSmrg 79277e6fb56fSmrg *) 79287e6fb56fSmrg lt_prog_compiler_can_build_shared=no 79297e6fb56fSmrg ;; 79307e6fb56fSmrg esac 79317e6fb56fSmrg fi 79327e6fb56fSmrg 79337e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 79347e6fb56fSmrg$as_echo "$lt_prog_compiler_pic" >&6; } 79357e6fb56fSmrg 79367e6fb56fSmrg# 79377e6fb56fSmrg# Check to make sure the PIC flag actually works. 79387e6fb56fSmrg# 79397e6fb56fSmrgif test -n "$lt_prog_compiler_pic"; then 79407e6fb56fSmrg 79417e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 79427e6fb56fSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 79437e6fb56fSmrgif test "${lt_cv_prog_compiler_pic_works+set}" = set; then 79447e6fb56fSmrg $as_echo_n "(cached) " >&6 79457e6fb56fSmrgelse 79467e6fb56fSmrg lt_cv_prog_compiler_pic_works=no 79477e6fb56fSmrg ac_outfile=conftest.$ac_objext 79487e6fb56fSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 79497e6fb56fSmrg lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 79507e6fb56fSmrg # Insert the option either (1) after the last *FLAGS variable, or 79517e6fb56fSmrg # (2) before a word containing "conftest.", or (3) at the end. 79527e6fb56fSmrg # Note that $ac_compile itself does not contain backslashes and begins 79537e6fb56fSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 79547e6fb56fSmrg # The option is referenced via a variable to avoid confusing sed. 79557e6fb56fSmrg lt_compile=`echo "$ac_compile" | $SED \ 79567e6fb56fSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 79577e6fb56fSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 79587e6fb56fSmrg -e 's:$: $lt_compiler_flag:'` 79597e6fb56fSmrg (eval echo "\"\$as_me:7959: $lt_compile\"" >&5) 79607e6fb56fSmrg (eval "$lt_compile" 2>conftest.err) 79617e6fb56fSmrg ac_status=$? 79627e6fb56fSmrg cat conftest.err >&5 79637e6fb56fSmrg echo "$as_me:7963: \$? = $ac_status" >&5 79647e6fb56fSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 79657e6fb56fSmrg # The compiler can only warn and ignore the option if not recognized 79667e6fb56fSmrg # So say no if there are warnings other than the usual output. 79677e6fb56fSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 79687e6fb56fSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 79697e6fb56fSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 79707e6fb56fSmrg lt_cv_prog_compiler_pic_works=yes 79717e6fb56fSmrg fi 79727e6fb56fSmrg fi 79737e6fb56fSmrg $rm conftest* 79747e6fb56fSmrg 79757e6fb56fSmrgfi 79767e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 79777e6fb56fSmrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 79787e6fb56fSmrg 79797e6fb56fSmrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then 79807e6fb56fSmrg case $lt_prog_compiler_pic in 79817e6fb56fSmrg "" | " "*) ;; 79827e6fb56fSmrg *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 79837e6fb56fSmrg esac 79847e6fb56fSmrgelse 79857e6fb56fSmrg lt_prog_compiler_pic= 79867e6fb56fSmrg lt_prog_compiler_can_build_shared=no 79877e6fb56fSmrgfi 79887e6fb56fSmrg 79897e6fb56fSmrgfi 79907e6fb56fSmrgcase $host_os in 79917e6fb56fSmrg # For platforms which do not support PIC, -DPIC is meaningless: 79927e6fb56fSmrg *djgpp*) 79937e6fb56fSmrg lt_prog_compiler_pic= 79947e6fb56fSmrg ;; 79957e6fb56fSmrg *) 79967e6fb56fSmrg lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 79977e6fb56fSmrg ;; 79987e6fb56fSmrgesac 79997e6fb56fSmrg 80007e6fb56fSmrg# 80017e6fb56fSmrg# Check to make sure the static flag actually works. 80027e6fb56fSmrg# 80037e6fb56fSmrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 80047e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 80057e6fb56fSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 80067e6fb56fSmrgif test "${lt_cv_prog_compiler_static_works+set}" = set; then 80077e6fb56fSmrg $as_echo_n "(cached) " >&6 80087e6fb56fSmrgelse 80097e6fb56fSmrg lt_cv_prog_compiler_static_works=no 80107e6fb56fSmrg save_LDFLAGS="$LDFLAGS" 80117e6fb56fSmrg LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 80127e6fb56fSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 80137e6fb56fSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 80147e6fb56fSmrg # The linker can only warn and ignore the option if not recognized 80157e6fb56fSmrg # So say no if there are warnings 80167e6fb56fSmrg if test -s conftest.err; then 80177e6fb56fSmrg # Append any errors to the config.log. 80187e6fb56fSmrg cat conftest.err 1>&5 80197e6fb56fSmrg $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 80207e6fb56fSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 80217e6fb56fSmrg if diff conftest.exp conftest.er2 >/dev/null; then 80227e6fb56fSmrg lt_cv_prog_compiler_static_works=yes 80237e6fb56fSmrg fi 80247e6fb56fSmrg else 80257e6fb56fSmrg lt_cv_prog_compiler_static_works=yes 80267e6fb56fSmrg fi 80277e6fb56fSmrg fi 80287e6fb56fSmrg $rm -r conftest* 80297e6fb56fSmrg LDFLAGS="$save_LDFLAGS" 80307e6fb56fSmrg 80317e6fb56fSmrgfi 80327e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 80337e6fb56fSmrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 80347e6fb56fSmrg 80357e6fb56fSmrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then 80367e6fb56fSmrg : 80377e6fb56fSmrgelse 80387e6fb56fSmrg lt_prog_compiler_static= 80397e6fb56fSmrgfi 80407e6fb56fSmrg 80417e6fb56fSmrg 80427e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 80437e6fb56fSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 80447e6fb56fSmrgif test "${lt_cv_prog_compiler_c_o+set}" = set; then 80457e6fb56fSmrg $as_echo_n "(cached) " >&6 80467e6fb56fSmrgelse 80477e6fb56fSmrg lt_cv_prog_compiler_c_o=no 80487e6fb56fSmrg $rm -r conftest 2>/dev/null 80497e6fb56fSmrg mkdir conftest 80507e6fb56fSmrg cd conftest 80517e6fb56fSmrg mkdir out 80527e6fb56fSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 80537e6fb56fSmrg 80547e6fb56fSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 80557e6fb56fSmrg # Insert the option either (1) after the last *FLAGS variable, or 80567e6fb56fSmrg # (2) before a word containing "conftest.", or (3) at the end. 80577e6fb56fSmrg # Note that $ac_compile itself does not contain backslashes and begins 80587e6fb56fSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 80597e6fb56fSmrg lt_compile=`echo "$ac_compile" | $SED \ 80607e6fb56fSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 80617e6fb56fSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 80627e6fb56fSmrg -e 's:$: $lt_compiler_flag:'` 80637e6fb56fSmrg (eval echo "\"\$as_me:8063: $lt_compile\"" >&5) 80647e6fb56fSmrg (eval "$lt_compile" 2>out/conftest.err) 80657e6fb56fSmrg ac_status=$? 80667e6fb56fSmrg cat out/conftest.err >&5 80677e6fb56fSmrg echo "$as_me:8067: \$? = $ac_status" >&5 80687e6fb56fSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 80697e6fb56fSmrg then 80707e6fb56fSmrg # The compiler can only warn and ignore the option if not recognized 80717e6fb56fSmrg # So say no if there are warnings 80727e6fb56fSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 80737e6fb56fSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 80747e6fb56fSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 80757e6fb56fSmrg lt_cv_prog_compiler_c_o=yes 80767e6fb56fSmrg fi 80777e6fb56fSmrg fi 80787e6fb56fSmrg chmod u+w . 2>&5 80797e6fb56fSmrg $rm conftest* 80807e6fb56fSmrg # SGI C++ compiler will create directory out/ii_files/ for 80817e6fb56fSmrg # template instantiation 80827e6fb56fSmrg test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 80837e6fb56fSmrg $rm out/* && rmdir out 80847e6fb56fSmrg cd .. 80857e6fb56fSmrg rmdir conftest 80867e6fb56fSmrg $rm conftest* 80877e6fb56fSmrg 80887e6fb56fSmrgfi 80897e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 80907e6fb56fSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 80917e6fb56fSmrg 80927e6fb56fSmrg 80937e6fb56fSmrghard_links="nottested" 80947e6fb56fSmrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 80957e6fb56fSmrg # do not overwrite the value of need_locks provided by the user 80967e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 80977e6fb56fSmrg$as_echo_n "checking if we can lock with hard links... " >&6; } 80987e6fb56fSmrg hard_links=yes 80997e6fb56fSmrg $rm conftest* 81007e6fb56fSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 81017e6fb56fSmrg touch conftest.a 81027e6fb56fSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 81037e6fb56fSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 81047e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 81057e6fb56fSmrg$as_echo "$hard_links" >&6; } 81067e6fb56fSmrg if test "$hard_links" = no; then 81077e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 81087e6fb56fSmrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 81097e6fb56fSmrg need_locks=warn 81107e6fb56fSmrg fi 81117e6fb56fSmrgelse 81127e6fb56fSmrg need_locks=no 81137e6fb56fSmrgfi 81147e6fb56fSmrg 81157e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 81167e6fb56fSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 81177e6fb56fSmrg 81187e6fb56fSmrg runpath_var= 81197e6fb56fSmrg allow_undefined_flag= 81207e6fb56fSmrg enable_shared_with_static_runtimes=no 81217e6fb56fSmrg archive_cmds= 81227e6fb56fSmrg archive_expsym_cmds= 81237e6fb56fSmrg old_archive_From_new_cmds= 81247e6fb56fSmrg old_archive_from_expsyms_cmds= 81257e6fb56fSmrg export_dynamic_flag_spec= 81267e6fb56fSmrg whole_archive_flag_spec= 81277e6fb56fSmrg thread_safe_flag_spec= 81287e6fb56fSmrg hardcode_libdir_flag_spec= 81297e6fb56fSmrg hardcode_libdir_flag_spec_ld= 81307e6fb56fSmrg hardcode_libdir_separator= 81317e6fb56fSmrg hardcode_direct=no 81327e6fb56fSmrg hardcode_minus_L=no 81337e6fb56fSmrg hardcode_shlibpath_var=unsupported 81347e6fb56fSmrg link_all_deplibs=unknown 81357e6fb56fSmrg hardcode_automatic=no 81367e6fb56fSmrg module_cmds= 81377e6fb56fSmrg module_expsym_cmds= 81387e6fb56fSmrg always_export_symbols=no 81397e6fb56fSmrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 81407e6fb56fSmrg # include_expsyms should be a list of space-separated symbols to be *always* 81417e6fb56fSmrg # included in the symbol list 81427e6fb56fSmrg include_expsyms= 81437e6fb56fSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 81447e6fb56fSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 81457e6fb56fSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 81467e6fb56fSmrg # as well as any symbol that contains `d'. 81477e6fb56fSmrg exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 81487e6fb56fSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 81497e6fb56fSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 81507e6fb56fSmrg # the symbol is explicitly referenced. Since portable code cannot 81517e6fb56fSmrg # rely on this symbol name, it's probably fine to never include it in 81527e6fb56fSmrg # preloaded symbol tables. 81537e6fb56fSmrg # Exclude shared library initialization/finalization symbols. 81547e6fb56fSmrg extract_expsyms_cmds= 81557e6fb56fSmrg # Just being paranoid about ensuring that cc_basename is set. 81567e6fb56fSmrg for cc_temp in $compiler""; do 81577e6fb56fSmrg case $cc_temp in 81587e6fb56fSmrg compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 81597e6fb56fSmrg distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 81607e6fb56fSmrg \-*) ;; 81617e6fb56fSmrg *) break;; 81627e6fb56fSmrg esac 81637e6fb56fSmrgdone 81647e6fb56fSmrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 81657e6fb56fSmrg 81667e6fb56fSmrg case $host_os in 81677e6fb56fSmrg cygwin* | mingw* | pw32*) 81687e6fb56fSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 81697e6fb56fSmrg # When not using gcc, we currently assume that we are using 81707e6fb56fSmrg # Microsoft Visual C++. 81717e6fb56fSmrg if test "$GCC" != yes; then 81727e6fb56fSmrg with_gnu_ld=no 81737e6fb56fSmrg fi 81747e6fb56fSmrg ;; 81757e6fb56fSmrg interix*) 81767e6fb56fSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 81777e6fb56fSmrg with_gnu_ld=yes 81787e6fb56fSmrg ;; 81797e6fb56fSmrg openbsd*) 81807e6fb56fSmrg with_gnu_ld=no 81817e6fb56fSmrg ;; 81827e6fb56fSmrg esac 81837e6fb56fSmrg 81847e6fb56fSmrg ld_shlibs=yes 81857e6fb56fSmrg if test "$with_gnu_ld" = yes; then 81867e6fb56fSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 81877e6fb56fSmrg wlarc='${wl}' 81887e6fb56fSmrg 81897e6fb56fSmrg # Set some defaults for GNU ld with shared library support. These 81907e6fb56fSmrg # are reset later if shared libraries are not supported. Putting them 81917e6fb56fSmrg # here allows them to be overridden if necessary. 81927e6fb56fSmrg runpath_var=LD_RUN_PATH 81937e6fb56fSmrg hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 81947e6fb56fSmrg export_dynamic_flag_spec='${wl}--export-dynamic' 81957e6fb56fSmrg # ancient GNU ld didn't support --whole-archive et. al. 81967e6fb56fSmrg if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 81977e6fb56fSmrg whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 81987e6fb56fSmrg else 81997e6fb56fSmrg whole_archive_flag_spec= 82007e6fb56fSmrg fi 82017e6fb56fSmrg supports_anon_versioning=no 82027e6fb56fSmrg case `$LD -v 2>/dev/null` in 82037e6fb56fSmrg *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 82047e6fb56fSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 82057e6fb56fSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 82067e6fb56fSmrg *\ 2.11.*) ;; # other 2.11 versions 82077e6fb56fSmrg *) supports_anon_versioning=yes ;; 82087e6fb56fSmrg esac 82097e6fb56fSmrg 82107e6fb56fSmrg # See if GNU ld supports shared libraries. 82117e6fb56fSmrg case $host_os in 82127e6fb56fSmrg aix[3-9]*) 82137e6fb56fSmrg # On AIX/PPC, the GNU linker is very broken 82147e6fb56fSmrg if test "$host_cpu" != ia64; then 82157e6fb56fSmrg ld_shlibs=no 82167e6fb56fSmrg cat <<EOF 1>&2 82177e6fb56fSmrg 82187e6fb56fSmrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported 82197e6fb56fSmrg*** to be unable to reliably create shared libraries on AIX. 82207e6fb56fSmrg*** Therefore, libtool is disabling shared libraries support. If you 82217e6fb56fSmrg*** really care for shared libraries, you may want to modify your PATH 82227e6fb56fSmrg*** so that a non-GNU linker is found, and then restart. 82237e6fb56fSmrg 82247e6fb56fSmrgEOF 82257e6fb56fSmrg fi 82267e6fb56fSmrg ;; 82277e6fb56fSmrg 82287e6fb56fSmrg amigaos*) 82297e6fb56fSmrg 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)' 82307e6fb56fSmrg hardcode_libdir_flag_spec='-L$libdir' 82317e6fb56fSmrg hardcode_minus_L=yes 82327e6fb56fSmrg 82337e6fb56fSmrg # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 82347e6fb56fSmrg # that the semantics of dynamic libraries on AmigaOS, at least up 82357e6fb56fSmrg # to version 4, is to share data among multiple programs linked 82367e6fb56fSmrg # with the same dynamic library. Since this doesn't match the 82377e6fb56fSmrg # behavior of shared libraries on other platforms, we can't use 82387e6fb56fSmrg # them. 82397e6fb56fSmrg ld_shlibs=no 82407e6fb56fSmrg ;; 82417e6fb56fSmrg 82427e6fb56fSmrg beos*) 82437e6fb56fSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 82447e6fb56fSmrg allow_undefined_flag=unsupported 82457e6fb56fSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 82467e6fb56fSmrg # support --undefined. This deserves some investigation. FIXME 82477e6fb56fSmrg archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 82487e6fb56fSmrg else 82497e6fb56fSmrg ld_shlibs=no 82507e6fb56fSmrg fi 82517e6fb56fSmrg ;; 82527e6fb56fSmrg 82537e6fb56fSmrg cygwin* | mingw* | pw32*) 82547e6fb56fSmrg # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 82557e6fb56fSmrg # as there is no search path for DLLs. 82567e6fb56fSmrg hardcode_libdir_flag_spec='-L$libdir' 82577e6fb56fSmrg allow_undefined_flag=unsupported 82587e6fb56fSmrg always_export_symbols=no 82597e6fb56fSmrg enable_shared_with_static_runtimes=yes 82607e6fb56fSmrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 82617e6fb56fSmrg 82627e6fb56fSmrg if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 82637e6fb56fSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 82647e6fb56fSmrg # If the export-symbols file already is a .def file (1st line 82657e6fb56fSmrg # is EXPORTS), use it as is; otherwise, prepend... 82667e6fb56fSmrg archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 82677e6fb56fSmrg cp $export_symbols $output_objdir/$soname.def; 82687e6fb56fSmrg else 82697e6fb56fSmrg echo EXPORTS > $output_objdir/$soname.def; 82707e6fb56fSmrg cat $export_symbols >> $output_objdir/$soname.def; 82717e6fb56fSmrg fi~ 82727e6fb56fSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 82737e6fb56fSmrg else 82747e6fb56fSmrg ld_shlibs=no 82757e6fb56fSmrg fi 82767e6fb56fSmrg ;; 82777e6fb56fSmrg 82787e6fb56fSmrg interix[3-9]*) 82797e6fb56fSmrg hardcode_direct=no 82807e6fb56fSmrg hardcode_shlibpath_var=no 82817e6fb56fSmrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 82827e6fb56fSmrg export_dynamic_flag_spec='${wl}-E' 82837e6fb56fSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 82847e6fb56fSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 82857e6fb56fSmrg # default) and relocated if they conflict, which is a slow very memory 82867e6fb56fSmrg # consuming and fragmenting process. To avoid this, we pick a random, 82877e6fb56fSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 82887e6fb56fSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 82897e6fb56fSmrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 82907e6fb56fSmrg 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' 82917e6fb56fSmrg ;; 82927e6fb56fSmrg 82937e6fb56fSmrg gnu* | linux* | k*bsd*-gnu) 82947e6fb56fSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 82957e6fb56fSmrg tmp_addflag= 82967e6fb56fSmrg case $cc_basename,$host_cpu in 82977e6fb56fSmrg pgcc*) # Portland Group C compiler 82987e6fb56fSmrg whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 82997e6fb56fSmrg tmp_addflag=' $pic_flag' 83007e6fb56fSmrg ;; 83017e6fb56fSmrg pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 83027e6fb56fSmrg whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 83037e6fb56fSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 83047e6fb56fSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 83057e6fb56fSmrg tmp_addflag=' -i_dynamic' ;; 83067e6fb56fSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 83077e6fb56fSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 83087e6fb56fSmrg ifc* | ifort*) # Intel Fortran compiler 83097e6fb56fSmrg tmp_addflag=' -nofor_main' ;; 83107e6fb56fSmrg esac 83117e6fb56fSmrg case `$CC -V 2>&1 | sed 5q` in 83127e6fb56fSmrg *Sun\ C*) # Sun C 5.9 83137e6fb56fSmrg whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 83147e6fb56fSmrg tmp_sharedflag='-G' ;; 83157e6fb56fSmrg *Sun\ F*) # Sun Fortran 8.3 83167e6fb56fSmrg tmp_sharedflag='-G' ;; 83177e6fb56fSmrg *) 83187e6fb56fSmrg tmp_sharedflag='-shared' ;; 83197e6fb56fSmrg esac 83207e6fb56fSmrg archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 83217e6fb56fSmrg 83227e6fb56fSmrg if test $supports_anon_versioning = yes; then 83237e6fb56fSmrg archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 83247e6fb56fSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 83257e6fb56fSmrg $echo "local: *; };" >> $output_objdir/$libname.ver~ 83267e6fb56fSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 83277e6fb56fSmrg fi 83287e6fb56fSmrg else 83297e6fb56fSmrg ld_shlibs=no 83307e6fb56fSmrg fi 83317e6fb56fSmrg ;; 83327e6fb56fSmrg 83337e6fb56fSmrg netbsd*) 83347e6fb56fSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 83357e6fb56fSmrg archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 83367e6fb56fSmrg wlarc= 83377e6fb56fSmrg else 83387e6fb56fSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 83397e6fb56fSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 83407e6fb56fSmrg fi 83417e6fb56fSmrg ;; 83427e6fb56fSmrg 83437e6fb56fSmrg solaris*) 83447e6fb56fSmrg if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 83457e6fb56fSmrg ld_shlibs=no 83467e6fb56fSmrg cat <<EOF 1>&2 83477e6fb56fSmrg 83487e6fb56fSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 83497e6fb56fSmrg*** create shared libraries on Solaris systems. Therefore, libtool 83507e6fb56fSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 83517e6fb56fSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 83527e6fb56fSmrg*** your PATH or compiler configuration so that the native linker is 83537e6fb56fSmrg*** used, and then restart. 83547e6fb56fSmrg 83557e6fb56fSmrgEOF 83567e6fb56fSmrg elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 83577e6fb56fSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 83587e6fb56fSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 83597e6fb56fSmrg else 83607e6fb56fSmrg ld_shlibs=no 83617e6fb56fSmrg fi 83627e6fb56fSmrg ;; 83637e6fb56fSmrg 83647e6fb56fSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 83657e6fb56fSmrg case `$LD -v 2>&1` in 83667e6fb56fSmrg *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 83677e6fb56fSmrg ld_shlibs=no 83687e6fb56fSmrg cat <<_LT_EOF 1>&2 83697e6fb56fSmrg 83707e6fb56fSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 83717e6fb56fSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 83727e6fb56fSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 83737e6fb56fSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 83747e6fb56fSmrg*** your PATH or compiler configuration so that the native linker is 83757e6fb56fSmrg*** used, and then restart. 83767e6fb56fSmrg 83777e6fb56fSmrg_LT_EOF 83787e6fb56fSmrg ;; 83797e6fb56fSmrg *) 83807e6fb56fSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 83817e6fb56fSmrg hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 83827e6fb56fSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 83837e6fb56fSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 83847e6fb56fSmrg else 83857e6fb56fSmrg ld_shlibs=no 83867e6fb56fSmrg fi 83877e6fb56fSmrg ;; 83887e6fb56fSmrg esac 83897e6fb56fSmrg ;; 83907e6fb56fSmrg 83917e6fb56fSmrg sunos4*) 83927e6fb56fSmrg archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 83937e6fb56fSmrg wlarc= 83947e6fb56fSmrg hardcode_direct=yes 83957e6fb56fSmrg hardcode_shlibpath_var=no 83967e6fb56fSmrg ;; 83977e6fb56fSmrg 83987e6fb56fSmrg *) 83997e6fb56fSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 84007e6fb56fSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 84017e6fb56fSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 84027e6fb56fSmrg else 84037e6fb56fSmrg ld_shlibs=no 84047e6fb56fSmrg fi 84057e6fb56fSmrg ;; 84067e6fb56fSmrg esac 84077e6fb56fSmrg 84087e6fb56fSmrg if test "$ld_shlibs" = no; then 84097e6fb56fSmrg runpath_var= 84107e6fb56fSmrg hardcode_libdir_flag_spec= 84117e6fb56fSmrg export_dynamic_flag_spec= 84127e6fb56fSmrg whole_archive_flag_spec= 84137e6fb56fSmrg fi 84147e6fb56fSmrg else 84157e6fb56fSmrg # PORTME fill in a description of your system's linker (not GNU ld) 84167e6fb56fSmrg case $host_os in 84177e6fb56fSmrg aix3*) 84187e6fb56fSmrg allow_undefined_flag=unsupported 84197e6fb56fSmrg always_export_symbols=yes 84207e6fb56fSmrg 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' 84217e6fb56fSmrg # Note: this linker hardcodes the directories in LIBPATH if there 84227e6fb56fSmrg # are no directories specified by -L. 84237e6fb56fSmrg hardcode_minus_L=yes 84247e6fb56fSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 84257e6fb56fSmrg # Neither direct hardcoding nor static linking is supported with a 84267e6fb56fSmrg # broken collect2. 84277e6fb56fSmrg hardcode_direct=unsupported 84287e6fb56fSmrg fi 84297e6fb56fSmrg ;; 84307e6fb56fSmrg 84317e6fb56fSmrg aix[4-9]*) 84327e6fb56fSmrg if test "$host_cpu" = ia64; then 84337e6fb56fSmrg # On IA64, the linker does run time linking by default, so we don't 84347e6fb56fSmrg # have to do anything special. 84357e6fb56fSmrg aix_use_runtimelinking=no 84367e6fb56fSmrg exp_sym_flag='-Bexport' 84377e6fb56fSmrg no_entry_flag="" 84387e6fb56fSmrg else 84397e6fb56fSmrg # If we're using GNU nm, then we don't want the "-C" option. 84407e6fb56fSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 84417e6fb56fSmrg if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 84427e6fb56fSmrg export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 84437e6fb56fSmrg else 84447e6fb56fSmrg 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' 84457e6fb56fSmrg fi 84467e6fb56fSmrg aix_use_runtimelinking=no 84477e6fb56fSmrg 84487e6fb56fSmrg # Test if we are trying to use run time linking or normal 84497e6fb56fSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 84507e6fb56fSmrg # need to do runtime linking. 84517e6fb56fSmrg case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 84527e6fb56fSmrg for ld_flag in $LDFLAGS; do 84537e6fb56fSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 84547e6fb56fSmrg aix_use_runtimelinking=yes 84557e6fb56fSmrg break 84567e6fb56fSmrg fi 84577e6fb56fSmrg done 84587e6fb56fSmrg ;; 84597e6fb56fSmrg esac 84607e6fb56fSmrg 84617e6fb56fSmrg exp_sym_flag='-bexport' 84627e6fb56fSmrg no_entry_flag='-bnoentry' 84637e6fb56fSmrg fi 84647e6fb56fSmrg 84657e6fb56fSmrg # When large executables or shared objects are built, AIX ld can 84667e6fb56fSmrg # have problems creating the table of contents. If linking a library 84677e6fb56fSmrg # or program results in "error TOC overflow" add -mminimal-toc to 84687e6fb56fSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 84697e6fb56fSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 84707e6fb56fSmrg 84717e6fb56fSmrg archive_cmds='' 84727e6fb56fSmrg hardcode_direct=yes 84737e6fb56fSmrg hardcode_libdir_separator=':' 84747e6fb56fSmrg link_all_deplibs=yes 84757e6fb56fSmrg 84767e6fb56fSmrg if test "$GCC" = yes; then 84777e6fb56fSmrg case $host_os in aix4.[012]|aix4.[012].*) 84787e6fb56fSmrg # We only want to do this on AIX 4.2 and lower, the check 84797e6fb56fSmrg # below for broken collect2 doesn't work under 4.3+ 84807e6fb56fSmrg collect2name=`${CC} -print-prog-name=collect2` 84817e6fb56fSmrg if test -f "$collect2name" && \ 84827e6fb56fSmrg strings "$collect2name" | grep resolve_lib_name >/dev/null 84837e6fb56fSmrg then 84847e6fb56fSmrg # We have reworked collect2 84857e6fb56fSmrg : 84867e6fb56fSmrg else 84877e6fb56fSmrg # We have old collect2 84887e6fb56fSmrg hardcode_direct=unsupported 84897e6fb56fSmrg # It fails to find uninstalled libraries when the uninstalled 84907e6fb56fSmrg # path is not listed in the libpath. Setting hardcode_minus_L 84917e6fb56fSmrg # to unsupported forces relinking 84927e6fb56fSmrg hardcode_minus_L=yes 84937e6fb56fSmrg hardcode_libdir_flag_spec='-L$libdir' 84947e6fb56fSmrg hardcode_libdir_separator= 84957e6fb56fSmrg fi 84967e6fb56fSmrg ;; 84977e6fb56fSmrg esac 84987e6fb56fSmrg shared_flag='-shared' 84997e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 85007e6fb56fSmrg shared_flag="$shared_flag "'${wl}-G' 85017e6fb56fSmrg fi 85027e6fb56fSmrg else 85037e6fb56fSmrg # not using gcc 85047e6fb56fSmrg if test "$host_cpu" = ia64; then 85057e6fb56fSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 85067e6fb56fSmrg # chokes on -Wl,-G. The following line is correct: 85077e6fb56fSmrg shared_flag='-G' 85087e6fb56fSmrg else 85097e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 85107e6fb56fSmrg shared_flag='${wl}-G' 85117e6fb56fSmrg else 85127e6fb56fSmrg shared_flag='${wl}-bM:SRE' 85137e6fb56fSmrg fi 85147e6fb56fSmrg fi 85157e6fb56fSmrg fi 85167e6fb56fSmrg 85177e6fb56fSmrg # It seems that -bexpall does not export symbols beginning with 85187e6fb56fSmrg # underscore (_), so it is better to generate a list of symbols to export. 85197e6fb56fSmrg always_export_symbols=yes 85207e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 85217e6fb56fSmrg # Warning - without using the other runtime loading flags (-brtl), 85227e6fb56fSmrg # -berok will link without error, but may produce a broken library. 85237e6fb56fSmrg allow_undefined_flag='-berok' 85247e6fb56fSmrg # Determine the default libpath from the value encoded in an empty executable. 85257e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 85267e6fb56fSmrg/* confdefs.h. */ 85277e6fb56fSmrg_ACEOF 85287e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 85297e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 85307e6fb56fSmrg/* end confdefs.h. */ 85317e6fb56fSmrg 85327e6fb56fSmrgint 85337e6fb56fSmrgmain () 85347e6fb56fSmrg{ 85357e6fb56fSmrg 85367e6fb56fSmrg ; 85377e6fb56fSmrg return 0; 85387e6fb56fSmrg} 85397e6fb56fSmrg_ACEOF 85407e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 85417e6fb56fSmrgif { (ac_try="$ac_link" 85427e6fb56fSmrgcase "(($ac_try" in 85437e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 85447e6fb56fSmrg *) ac_try_echo=$ac_try;; 85457e6fb56fSmrgesac 85467e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 85477e6fb56fSmrg$as_echo "$ac_try_echo") >&5 85487e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 85497e6fb56fSmrg ac_status=$? 85507e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 85517e6fb56fSmrg rm -f conftest.er1 85527e6fb56fSmrg cat conftest.err >&5 85537e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 85547e6fb56fSmrg (exit $ac_status); } && { 85557e6fb56fSmrg test -z "$ac_c_werror_flag" || 85567e6fb56fSmrg test ! -s conftest.err 85577e6fb56fSmrg } && test -s conftest$ac_exeext && { 85587e6fb56fSmrg test "$cross_compiling" = yes || 85597e6fb56fSmrg $as_test_x conftest$ac_exeext 85607e6fb56fSmrg }; then 85617e6fb56fSmrg 85627e6fb56fSmrglt_aix_libpath_sed=' 85637e6fb56fSmrg /Import File Strings/,/^$/ { 85647e6fb56fSmrg /^0/ { 85657e6fb56fSmrg s/^0 *\(.*\)$/\1/ 85667e6fb56fSmrg p 85677e6fb56fSmrg } 85687e6fb56fSmrg }' 85697e6fb56fSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 85707e6fb56fSmrg# Check for a 64-bit object if we didn't find anything. 85717e6fb56fSmrgif test -z "$aix_libpath"; then 85727e6fb56fSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 85737e6fb56fSmrgfi 85747e6fb56fSmrgelse 85757e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 85767e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 85777e6fb56fSmrg 85787e6fb56fSmrg 85797e6fb56fSmrgfi 85807e6fb56fSmrg 85817e6fb56fSmrgrm -rf conftest.dSYM 85827e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 85837e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 85847e6fb56fSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 85857e6fb56fSmrg 85867e6fb56fSmrg hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 85877e6fb56fSmrg archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 85887e6fb56fSmrg else 85897e6fb56fSmrg if test "$host_cpu" = ia64; then 85907e6fb56fSmrg hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 85917e6fb56fSmrg allow_undefined_flag="-z nodefs" 85927e6fb56fSmrg 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" 85937e6fb56fSmrg else 85947e6fb56fSmrg # Determine the default libpath from the value encoded in an empty executable. 85957e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 85967e6fb56fSmrg/* confdefs.h. */ 85977e6fb56fSmrg_ACEOF 85987e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 85997e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 86007e6fb56fSmrg/* end confdefs.h. */ 86017e6fb56fSmrg 86027e6fb56fSmrgint 86037e6fb56fSmrgmain () 86047e6fb56fSmrg{ 86057e6fb56fSmrg 86067e6fb56fSmrg ; 86077e6fb56fSmrg return 0; 86087e6fb56fSmrg} 86097e6fb56fSmrg_ACEOF 86107e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 86117e6fb56fSmrgif { (ac_try="$ac_link" 86127e6fb56fSmrgcase "(($ac_try" in 86137e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 86147e6fb56fSmrg *) ac_try_echo=$ac_try;; 86157e6fb56fSmrgesac 86167e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 86177e6fb56fSmrg$as_echo "$ac_try_echo") >&5 86187e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 86197e6fb56fSmrg ac_status=$? 86207e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 86217e6fb56fSmrg rm -f conftest.er1 86227e6fb56fSmrg cat conftest.err >&5 86237e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 86247e6fb56fSmrg (exit $ac_status); } && { 86257e6fb56fSmrg test -z "$ac_c_werror_flag" || 86267e6fb56fSmrg test ! -s conftest.err 86277e6fb56fSmrg } && test -s conftest$ac_exeext && { 86287e6fb56fSmrg test "$cross_compiling" = yes || 86297e6fb56fSmrg $as_test_x conftest$ac_exeext 86307e6fb56fSmrg }; then 86317e6fb56fSmrg 86327e6fb56fSmrglt_aix_libpath_sed=' 86337e6fb56fSmrg /Import File Strings/,/^$/ { 86347e6fb56fSmrg /^0/ { 86357e6fb56fSmrg s/^0 *\(.*\)$/\1/ 86367e6fb56fSmrg p 86377e6fb56fSmrg } 86387e6fb56fSmrg }' 86397e6fb56fSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 86407e6fb56fSmrg# Check for a 64-bit object if we didn't find anything. 86417e6fb56fSmrgif test -z "$aix_libpath"; then 86427e6fb56fSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 86437e6fb56fSmrgfi 86447e6fb56fSmrgelse 86457e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 86467e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 86477e6fb56fSmrg 86487e6fb56fSmrg 86497e6fb56fSmrgfi 86507e6fb56fSmrg 86517e6fb56fSmrgrm -rf conftest.dSYM 86527e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 86537e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 86547e6fb56fSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 86557e6fb56fSmrg 86567e6fb56fSmrg hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 86577e6fb56fSmrg # Warning - without using the other run time loading flags, 86587e6fb56fSmrg # -berok will link without error, but may produce a broken library. 86597e6fb56fSmrg no_undefined_flag=' ${wl}-bernotok' 86607e6fb56fSmrg allow_undefined_flag=' ${wl}-berok' 86617e6fb56fSmrg # Exported symbols can be pulled into shared objects from archives 86627e6fb56fSmrg whole_archive_flag_spec='$convenience' 86637e6fb56fSmrg archive_cmds_need_lc=yes 86647e6fb56fSmrg # This is similar to how AIX traditionally builds its shared libraries. 86657e6fb56fSmrg 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' 86667e6fb56fSmrg fi 86677e6fb56fSmrg fi 86687e6fb56fSmrg ;; 86697e6fb56fSmrg 86707e6fb56fSmrg amigaos*) 86717e6fb56fSmrg 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)' 86727e6fb56fSmrg hardcode_libdir_flag_spec='-L$libdir' 86737e6fb56fSmrg hardcode_minus_L=yes 86747e6fb56fSmrg # see comment about different semantics on the GNU ld section 86757e6fb56fSmrg ld_shlibs=no 86767e6fb56fSmrg ;; 86777e6fb56fSmrg 86787e6fb56fSmrg bsdi[45]*) 86797e6fb56fSmrg export_dynamic_flag_spec=-rdynamic 86807e6fb56fSmrg ;; 86817e6fb56fSmrg 86827e6fb56fSmrg cygwin* | mingw* | pw32*) 86837e6fb56fSmrg # When not using gcc, we currently assume that we are using 86847e6fb56fSmrg # Microsoft Visual C++. 86857e6fb56fSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 86867e6fb56fSmrg # no search path for DLLs. 86877e6fb56fSmrg hardcode_libdir_flag_spec=' ' 86887e6fb56fSmrg allow_undefined_flag=unsupported 86897e6fb56fSmrg # Tell ltmain to make .lib files, not .a files. 86907e6fb56fSmrg libext=lib 86917e6fb56fSmrg # Tell ltmain to make .dll files, not .so files. 86927e6fb56fSmrg shrext_cmds=".dll" 86937e6fb56fSmrg # FIXME: Setting linknames here is a bad hack. 86947e6fb56fSmrg archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 86957e6fb56fSmrg # The linker will automatically build a .lib file if we build a DLL. 86967e6fb56fSmrg old_archive_From_new_cmds='true' 86977e6fb56fSmrg # FIXME: Should let the user specify the lib program. 86987e6fb56fSmrg old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 86997e6fb56fSmrg fix_srcfile_path='`cygpath -w "$srcfile"`' 87007e6fb56fSmrg enable_shared_with_static_runtimes=yes 87017e6fb56fSmrg ;; 87027e6fb56fSmrg 87037e6fb56fSmrg darwin* | rhapsody*) 87047e6fb56fSmrg case $host_os in 87057e6fb56fSmrg rhapsody* | darwin1.[012]) 87067e6fb56fSmrg allow_undefined_flag='${wl}-undefined ${wl}suppress' 87077e6fb56fSmrg ;; 87087e6fb56fSmrg *) # Darwin 1.3 on 87097e6fb56fSmrg if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 87107e6fb56fSmrg allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 87117e6fb56fSmrg else 87127e6fb56fSmrg case ${MACOSX_DEPLOYMENT_TARGET} in 87137e6fb56fSmrg 10.[012]) 87147e6fb56fSmrg allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 87157e6fb56fSmrg ;; 87167e6fb56fSmrg 10.*) 87177e6fb56fSmrg allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 87187e6fb56fSmrg ;; 87197e6fb56fSmrg esac 87207e6fb56fSmrg fi 87217e6fb56fSmrg ;; 87227e6fb56fSmrg esac 87237e6fb56fSmrg archive_cmds_need_lc=no 87247e6fb56fSmrg hardcode_direct=no 87257e6fb56fSmrg hardcode_automatic=yes 87267e6fb56fSmrg hardcode_shlibpath_var=unsupported 87277e6fb56fSmrg whole_archive_flag_spec='' 87287e6fb56fSmrg link_all_deplibs=yes 87297e6fb56fSmrg if test "$GCC" = yes ; then 87307e6fb56fSmrg output_verbose_link_cmd='echo' 87317e6fb56fSmrg archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 87327e6fb56fSmrg module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 87337e6fb56fSmrg 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}" 87347e6fb56fSmrg 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}" 87357e6fb56fSmrg else 87367e6fb56fSmrg case $cc_basename in 87377e6fb56fSmrg xlc*) 87387e6fb56fSmrg output_verbose_link_cmd='echo' 87397e6fb56fSmrg archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 87407e6fb56fSmrg module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 87417e6fb56fSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 87427e6fb56fSmrg archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 87437e6fb56fSmrg module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 87447e6fb56fSmrg ;; 87457e6fb56fSmrg *) 87467e6fb56fSmrg ld_shlibs=no 87477e6fb56fSmrg ;; 87487e6fb56fSmrg esac 87497e6fb56fSmrg fi 87507e6fb56fSmrg ;; 87517e6fb56fSmrg 87527e6fb56fSmrg dgux*) 87537e6fb56fSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 87547e6fb56fSmrg hardcode_libdir_flag_spec='-L$libdir' 87557e6fb56fSmrg hardcode_shlibpath_var=no 87567e6fb56fSmrg ;; 87577e6fb56fSmrg 87587e6fb56fSmrg freebsd1*) 87597e6fb56fSmrg ld_shlibs=no 87607e6fb56fSmrg ;; 87617e6fb56fSmrg 87627e6fb56fSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 87637e6fb56fSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 87647e6fb56fSmrg # does not break anything, and helps significantly (at the cost of a little 87657e6fb56fSmrg # extra space). 87667e6fb56fSmrg freebsd2.2*) 87677e6fb56fSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 87687e6fb56fSmrg hardcode_libdir_flag_spec='-R$libdir' 87697e6fb56fSmrg hardcode_direct=yes 87707e6fb56fSmrg hardcode_shlibpath_var=no 87717e6fb56fSmrg ;; 87727e6fb56fSmrg 87737e6fb56fSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 87747e6fb56fSmrg freebsd2*) 87757e6fb56fSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 87767e6fb56fSmrg hardcode_direct=yes 87777e6fb56fSmrg hardcode_minus_L=yes 87787e6fb56fSmrg hardcode_shlibpath_var=no 87797e6fb56fSmrg ;; 87807e6fb56fSmrg 87817e6fb56fSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 87827e6fb56fSmrg freebsd* | dragonfly*) 87837e6fb56fSmrg archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 87847e6fb56fSmrg hardcode_libdir_flag_spec='-R$libdir' 87857e6fb56fSmrg hardcode_direct=yes 87867e6fb56fSmrg hardcode_shlibpath_var=no 87877e6fb56fSmrg ;; 87887e6fb56fSmrg 87897e6fb56fSmrg hpux9*) 87907e6fb56fSmrg if test "$GCC" = yes; then 87917e6fb56fSmrg archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 87927e6fb56fSmrg else 87937e6fb56fSmrg 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' 87947e6fb56fSmrg fi 87957e6fb56fSmrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 87967e6fb56fSmrg hardcode_libdir_separator=: 87977e6fb56fSmrg hardcode_direct=yes 87987e6fb56fSmrg 87997e6fb56fSmrg # hardcode_minus_L: Not really in the search PATH, 88007e6fb56fSmrg # but as the default location of the library. 88017e6fb56fSmrg hardcode_minus_L=yes 88027e6fb56fSmrg export_dynamic_flag_spec='${wl}-E' 88037e6fb56fSmrg ;; 88047e6fb56fSmrg 88057e6fb56fSmrg hpux10*) 88067e6fb56fSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 88077e6fb56fSmrg archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 88087e6fb56fSmrg else 88097e6fb56fSmrg archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 88107e6fb56fSmrg fi 88117e6fb56fSmrg if test "$with_gnu_ld" = no; then 88127e6fb56fSmrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 88137e6fb56fSmrg hardcode_libdir_separator=: 88147e6fb56fSmrg 88157e6fb56fSmrg hardcode_direct=yes 88167e6fb56fSmrg export_dynamic_flag_spec='${wl}-E' 88177e6fb56fSmrg 88187e6fb56fSmrg # hardcode_minus_L: Not really in the search PATH, 88197e6fb56fSmrg # but as the default location of the library. 88207e6fb56fSmrg hardcode_minus_L=yes 88217e6fb56fSmrg fi 88227e6fb56fSmrg ;; 88237e6fb56fSmrg 88247e6fb56fSmrg hpux11*) 88257e6fb56fSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 88267e6fb56fSmrg case $host_cpu in 88277e6fb56fSmrg hppa*64*) 88287e6fb56fSmrg archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 88297e6fb56fSmrg ;; 88307e6fb56fSmrg ia64*) 88317e6fb56fSmrg archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 88327e6fb56fSmrg ;; 88337e6fb56fSmrg *) 88347e6fb56fSmrg archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 88357e6fb56fSmrg ;; 88367e6fb56fSmrg esac 88377e6fb56fSmrg else 88387e6fb56fSmrg case $host_cpu in 88397e6fb56fSmrg hppa*64*) 88407e6fb56fSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 88417e6fb56fSmrg ;; 88427e6fb56fSmrg ia64*) 88437e6fb56fSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 88447e6fb56fSmrg ;; 88457e6fb56fSmrg *) 88467e6fb56fSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 88477e6fb56fSmrg ;; 88487e6fb56fSmrg esac 88497e6fb56fSmrg fi 88507e6fb56fSmrg if test "$with_gnu_ld" = no; then 88517e6fb56fSmrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 88527e6fb56fSmrg hardcode_libdir_separator=: 88537e6fb56fSmrg 88547e6fb56fSmrg case $host_cpu in 88557e6fb56fSmrg hppa*64*|ia64*) 88567e6fb56fSmrg hardcode_libdir_flag_spec_ld='+b $libdir' 88577e6fb56fSmrg hardcode_direct=no 88587e6fb56fSmrg hardcode_shlibpath_var=no 88597e6fb56fSmrg ;; 88607e6fb56fSmrg *) 88617e6fb56fSmrg hardcode_direct=yes 88627e6fb56fSmrg export_dynamic_flag_spec='${wl}-E' 88637e6fb56fSmrg 88647e6fb56fSmrg # hardcode_minus_L: Not really in the search PATH, 88657e6fb56fSmrg # but as the default location of the library. 88667e6fb56fSmrg hardcode_minus_L=yes 88677e6fb56fSmrg ;; 88687e6fb56fSmrg esac 88697e6fb56fSmrg fi 88707e6fb56fSmrg ;; 88717e6fb56fSmrg 88727e6fb56fSmrg irix5* | irix6* | nonstopux*) 88737e6fb56fSmrg if test "$GCC" = yes; then 88747e6fb56fSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 88757e6fb56fSmrg else 88767e6fb56fSmrg archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 88777e6fb56fSmrg hardcode_libdir_flag_spec_ld='-rpath $libdir' 88787e6fb56fSmrg fi 88797e6fb56fSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 88807e6fb56fSmrg hardcode_libdir_separator=: 88817e6fb56fSmrg link_all_deplibs=yes 88827e6fb56fSmrg ;; 88837e6fb56fSmrg 88847e6fb56fSmrg netbsd*) 88857e6fb56fSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 88867e6fb56fSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 88877e6fb56fSmrg else 88887e6fb56fSmrg archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 88897e6fb56fSmrg fi 88907e6fb56fSmrg hardcode_libdir_flag_spec='-R$libdir' 88917e6fb56fSmrg hardcode_direct=yes 88927e6fb56fSmrg hardcode_shlibpath_var=no 88937e6fb56fSmrg ;; 88947e6fb56fSmrg 88957e6fb56fSmrg newsos6) 88967e6fb56fSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 88977e6fb56fSmrg hardcode_direct=yes 88987e6fb56fSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 88997e6fb56fSmrg hardcode_libdir_separator=: 89007e6fb56fSmrg hardcode_shlibpath_var=no 89017e6fb56fSmrg ;; 89027e6fb56fSmrg 89037e6fb56fSmrg openbsd*) 89047e6fb56fSmrg if test -f /usr/libexec/ld.so; then 89057e6fb56fSmrg hardcode_direct=yes 89067e6fb56fSmrg hardcode_shlibpath_var=no 89077e6fb56fSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 89087e6fb56fSmrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 89097e6fb56fSmrg archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 89107e6fb56fSmrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 89117e6fb56fSmrg export_dynamic_flag_spec='${wl}-E' 89127e6fb56fSmrg else 89137e6fb56fSmrg case $host_os in 89147e6fb56fSmrg openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 89157e6fb56fSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 89167e6fb56fSmrg hardcode_libdir_flag_spec='-R$libdir' 89177e6fb56fSmrg ;; 89187e6fb56fSmrg *) 89197e6fb56fSmrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 89207e6fb56fSmrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 89217e6fb56fSmrg ;; 89227e6fb56fSmrg esac 89237e6fb56fSmrg fi 89247e6fb56fSmrg else 89257e6fb56fSmrg ld_shlibs=no 89267e6fb56fSmrg fi 89277e6fb56fSmrg ;; 89287e6fb56fSmrg 89297e6fb56fSmrg os2*) 89307e6fb56fSmrg hardcode_libdir_flag_spec='-L$libdir' 89317e6fb56fSmrg hardcode_minus_L=yes 89327e6fb56fSmrg allow_undefined_flag=unsupported 89337e6fb56fSmrg 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' 89347e6fb56fSmrg old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 89357e6fb56fSmrg ;; 89367e6fb56fSmrg 89377e6fb56fSmrg osf3*) 89387e6fb56fSmrg if test "$GCC" = yes; then 89397e6fb56fSmrg allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 89407e6fb56fSmrg archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 89417e6fb56fSmrg else 89427e6fb56fSmrg allow_undefined_flag=' -expect_unresolved \*' 89437e6fb56fSmrg archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 89447e6fb56fSmrg fi 89457e6fb56fSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 89467e6fb56fSmrg hardcode_libdir_separator=: 89477e6fb56fSmrg ;; 89487e6fb56fSmrg 89497e6fb56fSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 89507e6fb56fSmrg if test "$GCC" = yes; then 89517e6fb56fSmrg allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 89527e6fb56fSmrg archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 89537e6fb56fSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 89547e6fb56fSmrg else 89557e6fb56fSmrg allow_undefined_flag=' -expect_unresolved \*' 89567e6fb56fSmrg archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 89577e6fb56fSmrg archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 89587e6fb56fSmrg $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 89597e6fb56fSmrg 89607e6fb56fSmrg # Both c and cxx compiler support -rpath directly 89617e6fb56fSmrg hardcode_libdir_flag_spec='-rpath $libdir' 89627e6fb56fSmrg fi 89637e6fb56fSmrg hardcode_libdir_separator=: 89647e6fb56fSmrg ;; 89657e6fb56fSmrg 89667e6fb56fSmrg solaris*) 89677e6fb56fSmrg no_undefined_flag=' -z text' 89687e6fb56fSmrg if test "$GCC" = yes; then 89697e6fb56fSmrg wlarc='${wl}' 89707e6fb56fSmrg archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 89717e6fb56fSmrg archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 89727e6fb56fSmrg $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 89737e6fb56fSmrg else 89747e6fb56fSmrg wlarc='' 89757e6fb56fSmrg archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 89767e6fb56fSmrg archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 89777e6fb56fSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 89787e6fb56fSmrg fi 89797e6fb56fSmrg hardcode_libdir_flag_spec='-R$libdir' 89807e6fb56fSmrg hardcode_shlibpath_var=no 89817e6fb56fSmrg case $host_os in 89827e6fb56fSmrg solaris2.[0-5] | solaris2.[0-5].*) ;; 89837e6fb56fSmrg *) 89847e6fb56fSmrg # The compiler driver will combine and reorder linker options, 89857e6fb56fSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 89867e6fb56fSmrg # but is careful enough not to reorder. 89877e6fb56fSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 89887e6fb56fSmrg if test "$GCC" = yes; then 89897e6fb56fSmrg whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 89907e6fb56fSmrg else 89917e6fb56fSmrg whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 89927e6fb56fSmrg fi 89937e6fb56fSmrg ;; 89947e6fb56fSmrg esac 89957e6fb56fSmrg link_all_deplibs=yes 89967e6fb56fSmrg ;; 89977e6fb56fSmrg 89987e6fb56fSmrg sunos4*) 89997e6fb56fSmrg if test "x$host_vendor" = xsequent; then 90007e6fb56fSmrg # Use $CC to link under sequent, because it throws in some extra .o 90017e6fb56fSmrg # files that make .init and .fini sections work. 90027e6fb56fSmrg archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 90037e6fb56fSmrg else 90047e6fb56fSmrg archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 90057e6fb56fSmrg fi 90067e6fb56fSmrg hardcode_libdir_flag_spec='-L$libdir' 90077e6fb56fSmrg hardcode_direct=yes 90087e6fb56fSmrg hardcode_minus_L=yes 90097e6fb56fSmrg hardcode_shlibpath_var=no 90107e6fb56fSmrg ;; 90117e6fb56fSmrg 90127e6fb56fSmrg sysv4) 90137e6fb56fSmrg case $host_vendor in 90147e6fb56fSmrg sni) 90157e6fb56fSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 90167e6fb56fSmrg hardcode_direct=yes # is this really true??? 90177e6fb56fSmrg ;; 90187e6fb56fSmrg siemens) 90197e6fb56fSmrg ## LD is ld it makes a PLAMLIB 90207e6fb56fSmrg ## CC just makes a GrossModule. 90217e6fb56fSmrg archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 90227e6fb56fSmrg reload_cmds='$CC -r -o $output$reload_objs' 90237e6fb56fSmrg hardcode_direct=no 90247e6fb56fSmrg ;; 90257e6fb56fSmrg motorola) 90267e6fb56fSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 90277e6fb56fSmrg hardcode_direct=no #Motorola manual says yes, but my tests say they lie 90287e6fb56fSmrg ;; 90297e6fb56fSmrg esac 90307e6fb56fSmrg runpath_var='LD_RUN_PATH' 90317e6fb56fSmrg hardcode_shlibpath_var=no 90327e6fb56fSmrg ;; 90337e6fb56fSmrg 90347e6fb56fSmrg sysv4.3*) 90357e6fb56fSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 90367e6fb56fSmrg hardcode_shlibpath_var=no 90377e6fb56fSmrg export_dynamic_flag_spec='-Bexport' 90387e6fb56fSmrg ;; 90397e6fb56fSmrg 90407e6fb56fSmrg sysv4*MP*) 90417e6fb56fSmrg if test -d /usr/nec; then 90427e6fb56fSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 90437e6fb56fSmrg hardcode_shlibpath_var=no 90447e6fb56fSmrg runpath_var=LD_RUN_PATH 90457e6fb56fSmrg hardcode_runpath_var=yes 90467e6fb56fSmrg ld_shlibs=yes 90477e6fb56fSmrg fi 90487e6fb56fSmrg ;; 90497e6fb56fSmrg 90507e6fb56fSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 90517e6fb56fSmrg no_undefined_flag='${wl}-z,text' 90527e6fb56fSmrg archive_cmds_need_lc=no 90537e6fb56fSmrg hardcode_shlibpath_var=no 90547e6fb56fSmrg runpath_var='LD_RUN_PATH' 90557e6fb56fSmrg 90567e6fb56fSmrg if test "$GCC" = yes; then 90577e6fb56fSmrg archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 90587e6fb56fSmrg archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 90597e6fb56fSmrg else 90607e6fb56fSmrg archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 90617e6fb56fSmrg archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 90627e6fb56fSmrg fi 90637e6fb56fSmrg ;; 90647e6fb56fSmrg 90657e6fb56fSmrg sysv5* | sco3.2v5* | sco5v6*) 90667e6fb56fSmrg # Note: We can NOT use -z defs as we might desire, because we do not 90677e6fb56fSmrg # link with -lc, and that would cause any symbols used from libc to 90687e6fb56fSmrg # always be unresolved, which means just about no library would 90697e6fb56fSmrg # ever link correctly. If we're not using GNU ld we use -z text 90707e6fb56fSmrg # though, which does catch some bad symbols but isn't as heavy-handed 90717e6fb56fSmrg # as -z defs. 90727e6fb56fSmrg no_undefined_flag='${wl}-z,text' 90737e6fb56fSmrg allow_undefined_flag='${wl}-z,nodefs' 90747e6fb56fSmrg archive_cmds_need_lc=no 90757e6fb56fSmrg hardcode_shlibpath_var=no 90767e6fb56fSmrg hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 90777e6fb56fSmrg hardcode_libdir_separator=':' 90787e6fb56fSmrg link_all_deplibs=yes 90797e6fb56fSmrg export_dynamic_flag_spec='${wl}-Bexport' 90807e6fb56fSmrg runpath_var='LD_RUN_PATH' 90817e6fb56fSmrg 90827e6fb56fSmrg if test "$GCC" = yes; then 90837e6fb56fSmrg archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 90847e6fb56fSmrg archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 90857e6fb56fSmrg else 90867e6fb56fSmrg archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 90877e6fb56fSmrg archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 90887e6fb56fSmrg fi 90897e6fb56fSmrg ;; 90907e6fb56fSmrg 90917e6fb56fSmrg uts4*) 90927e6fb56fSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 90937e6fb56fSmrg hardcode_libdir_flag_spec='-L$libdir' 90947e6fb56fSmrg hardcode_shlibpath_var=no 90957e6fb56fSmrg ;; 90967e6fb56fSmrg 90977e6fb56fSmrg *) 90987e6fb56fSmrg ld_shlibs=no 90997e6fb56fSmrg ;; 91007e6fb56fSmrg esac 91017e6fb56fSmrg fi 91027e6fb56fSmrg 91037e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 91047e6fb56fSmrg$as_echo "$ld_shlibs" >&6; } 91057e6fb56fSmrgtest "$ld_shlibs" = no && can_build_shared=no 91067e6fb56fSmrg 91077e6fb56fSmrg# 91087e6fb56fSmrg# Do we need to explicitly link libc? 91097e6fb56fSmrg# 91107e6fb56fSmrgcase "x$archive_cmds_need_lc" in 91117e6fb56fSmrgx|xyes) 91127e6fb56fSmrg # Assume -lc should be added 91137e6fb56fSmrg archive_cmds_need_lc=yes 91147e6fb56fSmrg 91157e6fb56fSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 91167e6fb56fSmrg case $archive_cmds in 91177e6fb56fSmrg *'~'*) 91187e6fb56fSmrg # FIXME: we may have to deal with multi-command sequences. 91197e6fb56fSmrg ;; 91207e6fb56fSmrg '$CC '*) 91217e6fb56fSmrg # Test whether the compiler implicitly links with -lc since on some 91227e6fb56fSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 91237e6fb56fSmrg # to ld, don't add -lc before -lgcc. 91247e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 91257e6fb56fSmrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 91267e6fb56fSmrg $rm conftest* 91277e6fb56fSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 91287e6fb56fSmrg 91297e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 91307e6fb56fSmrg (eval $ac_compile) 2>&5 91317e6fb56fSmrg ac_status=$? 91327e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 91337e6fb56fSmrg (exit $ac_status); } 2>conftest.err; then 91347e6fb56fSmrg soname=conftest 91357e6fb56fSmrg lib=conftest 91367e6fb56fSmrg libobjs=conftest.$ac_objext 91377e6fb56fSmrg deplibs= 91387e6fb56fSmrg wl=$lt_prog_compiler_wl 91397e6fb56fSmrg pic_flag=$lt_prog_compiler_pic 91407e6fb56fSmrg compiler_flags=-v 91417e6fb56fSmrg linker_flags=-v 91427e6fb56fSmrg verstring= 91437e6fb56fSmrg output_objdir=. 91447e6fb56fSmrg libname=conftest 91457e6fb56fSmrg lt_save_allow_undefined_flag=$allow_undefined_flag 91467e6fb56fSmrg allow_undefined_flag= 91477e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 91487e6fb56fSmrg (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 91497e6fb56fSmrg ac_status=$? 91507e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 91517e6fb56fSmrg (exit $ac_status); } 91527e6fb56fSmrg then 91537e6fb56fSmrg archive_cmds_need_lc=no 91547e6fb56fSmrg else 91557e6fb56fSmrg archive_cmds_need_lc=yes 91567e6fb56fSmrg fi 91577e6fb56fSmrg allow_undefined_flag=$lt_save_allow_undefined_flag 91587e6fb56fSmrg else 91597e6fb56fSmrg cat conftest.err 1>&5 91607e6fb56fSmrg fi 91617e6fb56fSmrg $rm conftest* 91627e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 91637e6fb56fSmrg$as_echo "$archive_cmds_need_lc" >&6; } 91647e6fb56fSmrg ;; 91657e6fb56fSmrg esac 91667e6fb56fSmrg fi 91677e6fb56fSmrg ;; 91687e6fb56fSmrgesac 91697e6fb56fSmrg 91707e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 91717e6fb56fSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; } 91727e6fb56fSmrglibrary_names_spec= 91737e6fb56fSmrglibname_spec='lib$name' 91747e6fb56fSmrgsoname_spec= 91757e6fb56fSmrgshrext_cmds=".so" 91767e6fb56fSmrgpostinstall_cmds= 91777e6fb56fSmrgpostuninstall_cmds= 91787e6fb56fSmrgfinish_cmds= 91797e6fb56fSmrgfinish_eval= 91807e6fb56fSmrgshlibpath_var= 91817e6fb56fSmrgshlibpath_overrides_runpath=unknown 91827e6fb56fSmrgversion_type=none 91837e6fb56fSmrgdynamic_linker="$host_os ld.so" 91847e6fb56fSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 91857e6fb56fSmrg 91867e6fb56fSmrgif test "$GCC" = yes; then 91877e6fb56fSmrg case $host_os in 91887e6fb56fSmrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 91897e6fb56fSmrg *) lt_awk_arg="/^libraries:/" ;; 91907e6fb56fSmrg esac 91917e6fb56fSmrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 91927e6fb56fSmrg if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 91937e6fb56fSmrg # if the path contains ";" then we assume it to be the separator 91947e6fb56fSmrg # otherwise default to the standard path separator (i.e. ":") - it is 91957e6fb56fSmrg # assumed that no part of a normal pathname contains ";" but that should 91967e6fb56fSmrg # okay in the real world where ";" in dirpaths is itself problematic. 91977e6fb56fSmrg lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 91987e6fb56fSmrg else 91997e6fb56fSmrg lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 92007e6fb56fSmrg fi 92017e6fb56fSmrg # Ok, now we have the path, separated by spaces, we can step through it 92027e6fb56fSmrg # and add multilib dir if necessary. 92037e6fb56fSmrg lt_tmp_lt_search_path_spec= 92047e6fb56fSmrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 92057e6fb56fSmrg for lt_sys_path in $lt_search_path_spec; do 92067e6fb56fSmrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 92077e6fb56fSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 92087e6fb56fSmrg else 92097e6fb56fSmrg test -d "$lt_sys_path" && \ 92107e6fb56fSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 92117e6fb56fSmrg fi 92127e6fb56fSmrg done 92137e6fb56fSmrg lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 92147e6fb56fSmrgBEGIN {RS=" "; FS="/|\n";} { 92157e6fb56fSmrg lt_foo=""; 92167e6fb56fSmrg lt_count=0; 92177e6fb56fSmrg for (lt_i = NF; lt_i > 0; lt_i--) { 92187e6fb56fSmrg if ($lt_i != "" && $lt_i != ".") { 92197e6fb56fSmrg if ($lt_i == "..") { 92207e6fb56fSmrg lt_count++; 92217e6fb56fSmrg } else { 92227e6fb56fSmrg if (lt_count == 0) { 92237e6fb56fSmrg lt_foo="/" $lt_i lt_foo; 92247e6fb56fSmrg } else { 92257e6fb56fSmrg lt_count--; 92267e6fb56fSmrg } 92277e6fb56fSmrg } 92287e6fb56fSmrg } 92297e6fb56fSmrg } 92307e6fb56fSmrg if (lt_foo != "") { lt_freq[lt_foo]++; } 92317e6fb56fSmrg if (lt_freq[lt_foo] == 1) { print lt_foo; } 92327e6fb56fSmrg}'` 92337e6fb56fSmrg sys_lib_search_path_spec=`echo $lt_search_path_spec` 92347e6fb56fSmrgelse 92357e6fb56fSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 92367e6fb56fSmrgfi 92377e6fb56fSmrgneed_lib_prefix=unknown 92387e6fb56fSmrghardcode_into_libs=no 92397e6fb56fSmrg 92407e6fb56fSmrg# when you set need_version to no, make sure it does not cause -set_version 92417e6fb56fSmrg# flags to be left without arguments 92427e6fb56fSmrgneed_version=unknown 92437e6fb56fSmrg 92447e6fb56fSmrgcase $host_os in 92457e6fb56fSmrgaix3*) 92467e6fb56fSmrg version_type=linux 92477e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 92487e6fb56fSmrg shlibpath_var=LIBPATH 92497e6fb56fSmrg 92507e6fb56fSmrg # AIX 3 has no versioning support, so we append a major version to the name. 92517e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 92527e6fb56fSmrg ;; 92537e6fb56fSmrg 92547e6fb56fSmrgaix[4-9]*) 92557e6fb56fSmrg version_type=linux 92567e6fb56fSmrg need_lib_prefix=no 92577e6fb56fSmrg need_version=no 92587e6fb56fSmrg hardcode_into_libs=yes 92597e6fb56fSmrg if test "$host_cpu" = ia64; then 92607e6fb56fSmrg # AIX 5 supports IA64 92617e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 92627e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 92637e6fb56fSmrg else 92647e6fb56fSmrg # With GCC up to 2.95.x, collect2 would create an import file 92657e6fb56fSmrg # for dependence libraries. The import file would start with 92667e6fb56fSmrg # the line `#! .'. This would cause the generated library to 92677e6fb56fSmrg # depend on `.', always an invalid library. This was fixed in 92687e6fb56fSmrg # development snapshots of GCC prior to 3.0. 92697e6fb56fSmrg case $host_os in 92707e6fb56fSmrg aix4 | aix4.[01] | aix4.[01].*) 92717e6fb56fSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 92727e6fb56fSmrg echo ' yes ' 92737e6fb56fSmrg echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 92747e6fb56fSmrg : 92757e6fb56fSmrg else 92767e6fb56fSmrg can_build_shared=no 92777e6fb56fSmrg fi 92787e6fb56fSmrg ;; 92797e6fb56fSmrg esac 92807e6fb56fSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 92817e6fb56fSmrg # soname into executable. Probably we can add versioning support to 92827e6fb56fSmrg # collect2, so additional links can be useful in future. 92837e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 92847e6fb56fSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 92857e6fb56fSmrg # instead of lib<name>.a to let people know that these are not 92867e6fb56fSmrg # typical AIX shared libraries. 92877e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 92887e6fb56fSmrg else 92897e6fb56fSmrg # We preserve .a as extension for shared libraries through AIX4.2 92907e6fb56fSmrg # and later when we are not doing run time linking. 92917e6fb56fSmrg library_names_spec='${libname}${release}.a $libname.a' 92927e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 92937e6fb56fSmrg fi 92947e6fb56fSmrg shlibpath_var=LIBPATH 92957e6fb56fSmrg fi 92967e6fb56fSmrg ;; 92977e6fb56fSmrg 92987e6fb56fSmrgamigaos*) 92997e6fb56fSmrg library_names_spec='$libname.ixlibrary $libname.a' 93007e6fb56fSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 93017e6fb56fSmrg finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 93027e6fb56fSmrg ;; 93037e6fb56fSmrg 93047e6fb56fSmrgbeos*) 93057e6fb56fSmrg library_names_spec='${libname}${shared_ext}' 93067e6fb56fSmrg dynamic_linker="$host_os ld.so" 93077e6fb56fSmrg shlibpath_var=LIBRARY_PATH 93087e6fb56fSmrg ;; 93097e6fb56fSmrg 93107e6fb56fSmrgbsdi[45]*) 93117e6fb56fSmrg version_type=linux 93127e6fb56fSmrg need_version=no 93137e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 93147e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 93157e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 93167e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 93177e6fb56fSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 93187e6fb56fSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 93197e6fb56fSmrg # the default ld.so.conf also contains /usr/contrib/lib and 93207e6fb56fSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 93217e6fb56fSmrg # libtool to hard-code these into programs 93227e6fb56fSmrg ;; 93237e6fb56fSmrg 93247e6fb56fSmrgcygwin* | mingw* | pw32*) 93257e6fb56fSmrg version_type=windows 93267e6fb56fSmrg shrext_cmds=".dll" 93277e6fb56fSmrg need_version=no 93287e6fb56fSmrg need_lib_prefix=no 93297e6fb56fSmrg 93307e6fb56fSmrg case $GCC,$host_os in 93317e6fb56fSmrg yes,cygwin* | yes,mingw* | yes,pw32*) 93327e6fb56fSmrg library_names_spec='$libname.dll.a' 93337e6fb56fSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 93347e6fb56fSmrg postinstall_cmds='base_file=`basename \${file}`~ 93357e6fb56fSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 93367e6fb56fSmrg dldir=$destdir/`dirname \$dlpath`~ 93377e6fb56fSmrg test -d \$dldir || mkdir -p \$dldir~ 93387e6fb56fSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 93397e6fb56fSmrg chmod a+x \$dldir/$dlname' 93407e6fb56fSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 93417e6fb56fSmrg dlpath=$dir/\$dldll~ 93427e6fb56fSmrg $rm \$dlpath' 93437e6fb56fSmrg shlibpath_overrides_runpath=yes 93447e6fb56fSmrg 93457e6fb56fSmrg case $host_os in 93467e6fb56fSmrg cygwin*) 93477e6fb56fSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 93487e6fb56fSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 93497e6fb56fSmrg sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 93507e6fb56fSmrg ;; 93517e6fb56fSmrg mingw*) 93527e6fb56fSmrg # MinGW DLLs use traditional 'lib' prefix 93537e6fb56fSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 93547e6fb56fSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 93557e6fb56fSmrg if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 93567e6fb56fSmrg # It is most probably a Windows format PATH printed by 93577e6fb56fSmrg # mingw gcc, but we are running on Cygwin. Gcc prints its search 93587e6fb56fSmrg # path with ; separators, and with drive letters. We can handle the 93597e6fb56fSmrg # drive letters (cygwin fileutils understands them), so leave them, 93607e6fb56fSmrg # especially as we might pass files found there to a mingw objdump, 93617e6fb56fSmrg # which wouldn't understand a cygwinified path. Ahh. 93627e6fb56fSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 93637e6fb56fSmrg else 93647e6fb56fSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 93657e6fb56fSmrg fi 93667e6fb56fSmrg ;; 93677e6fb56fSmrg pw32*) 93687e6fb56fSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 93697e6fb56fSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 93707e6fb56fSmrg ;; 93717e6fb56fSmrg esac 93727e6fb56fSmrg ;; 93737e6fb56fSmrg 93747e6fb56fSmrg *) 93757e6fb56fSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 93767e6fb56fSmrg ;; 93777e6fb56fSmrg esac 93787e6fb56fSmrg dynamic_linker='Win32 ld.exe' 93797e6fb56fSmrg # FIXME: first we should search . and the directory the executable is in 93807e6fb56fSmrg shlibpath_var=PATH 93817e6fb56fSmrg ;; 93827e6fb56fSmrg 93837e6fb56fSmrgdarwin* | rhapsody*) 93847e6fb56fSmrg dynamic_linker="$host_os dyld" 93857e6fb56fSmrg version_type=darwin 93867e6fb56fSmrg need_lib_prefix=no 93877e6fb56fSmrg need_version=no 93887e6fb56fSmrg library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 93897e6fb56fSmrg soname_spec='${libname}${release}${major}$shared_ext' 93907e6fb56fSmrg shlibpath_overrides_runpath=yes 93917e6fb56fSmrg shlibpath_var=DYLD_LIBRARY_PATH 93927e6fb56fSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 93937e6fb56fSmrg 93947e6fb56fSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 93957e6fb56fSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 93967e6fb56fSmrg ;; 93977e6fb56fSmrg 93987e6fb56fSmrgdgux*) 93997e6fb56fSmrg version_type=linux 94007e6fb56fSmrg need_lib_prefix=no 94017e6fb56fSmrg need_version=no 94027e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 94037e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 94047e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 94057e6fb56fSmrg ;; 94067e6fb56fSmrg 94077e6fb56fSmrgfreebsd1*) 94087e6fb56fSmrg dynamic_linker=no 94097e6fb56fSmrg ;; 94107e6fb56fSmrg 94117e6fb56fSmrgfreebsd* | dragonfly*) 94127e6fb56fSmrg # DragonFly does not have aout. When/if they implement a new 94137e6fb56fSmrg # versioning mechanism, adjust this. 94147e6fb56fSmrg if test -x /usr/bin/objformat; then 94157e6fb56fSmrg objformat=`/usr/bin/objformat` 94167e6fb56fSmrg else 94177e6fb56fSmrg case $host_os in 94187e6fb56fSmrg freebsd[123]*) objformat=aout ;; 94197e6fb56fSmrg *) objformat=elf ;; 94207e6fb56fSmrg esac 94217e6fb56fSmrg fi 94227e6fb56fSmrg version_type=freebsd-$objformat 94237e6fb56fSmrg case $version_type in 94247e6fb56fSmrg freebsd-elf*) 94257e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 94267e6fb56fSmrg need_version=no 94277e6fb56fSmrg need_lib_prefix=no 94287e6fb56fSmrg ;; 94297e6fb56fSmrg freebsd-*) 94307e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 94317e6fb56fSmrg need_version=yes 94327e6fb56fSmrg ;; 94337e6fb56fSmrg esac 94347e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 94357e6fb56fSmrg case $host_os in 94367e6fb56fSmrg freebsd2*) 94377e6fb56fSmrg shlibpath_overrides_runpath=yes 94387e6fb56fSmrg ;; 94397e6fb56fSmrg freebsd3.[01]* | freebsdelf3.[01]*) 94407e6fb56fSmrg shlibpath_overrides_runpath=yes 94417e6fb56fSmrg hardcode_into_libs=yes 94427e6fb56fSmrg ;; 94437e6fb56fSmrg freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 94447e6fb56fSmrg freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 94457e6fb56fSmrg shlibpath_overrides_runpath=no 94467e6fb56fSmrg hardcode_into_libs=yes 94477e6fb56fSmrg ;; 94487e6fb56fSmrg *) # from 4.6 on, and DragonFly 94497e6fb56fSmrg shlibpath_overrides_runpath=yes 94507e6fb56fSmrg hardcode_into_libs=yes 94517e6fb56fSmrg ;; 94527e6fb56fSmrg esac 94537e6fb56fSmrg ;; 94547e6fb56fSmrg 94557e6fb56fSmrggnu*) 94567e6fb56fSmrg version_type=linux 94577e6fb56fSmrg need_lib_prefix=no 94587e6fb56fSmrg need_version=no 94597e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 94607e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 94617e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 94627e6fb56fSmrg hardcode_into_libs=yes 94637e6fb56fSmrg ;; 94647e6fb56fSmrg 94657e6fb56fSmrghpux9* | hpux10* | hpux11*) 94667e6fb56fSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 94677e6fb56fSmrg # link against other versions. 94687e6fb56fSmrg version_type=sunos 94697e6fb56fSmrg need_lib_prefix=no 94707e6fb56fSmrg need_version=no 94717e6fb56fSmrg case $host_cpu in 94727e6fb56fSmrg ia64*) 94737e6fb56fSmrg shrext_cmds='.so' 94747e6fb56fSmrg hardcode_into_libs=yes 94757e6fb56fSmrg dynamic_linker="$host_os dld.so" 94767e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 94777e6fb56fSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 94787e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 94797e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 94807e6fb56fSmrg if test "X$HPUX_IA64_MODE" = X32; then 94817e6fb56fSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 94827e6fb56fSmrg else 94837e6fb56fSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 94847e6fb56fSmrg fi 94857e6fb56fSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 94867e6fb56fSmrg ;; 94877e6fb56fSmrg hppa*64*) 94887e6fb56fSmrg shrext_cmds='.sl' 94897e6fb56fSmrg hardcode_into_libs=yes 94907e6fb56fSmrg dynamic_linker="$host_os dld.sl" 94917e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 94927e6fb56fSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 94937e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 94947e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 94957e6fb56fSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 94967e6fb56fSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 94977e6fb56fSmrg ;; 94987e6fb56fSmrg *) 94997e6fb56fSmrg shrext_cmds='.sl' 95007e6fb56fSmrg dynamic_linker="$host_os dld.sl" 95017e6fb56fSmrg shlibpath_var=SHLIB_PATH 95027e6fb56fSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 95037e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 95047e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 95057e6fb56fSmrg ;; 95067e6fb56fSmrg esac 95077e6fb56fSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555. 95087e6fb56fSmrg postinstall_cmds='chmod 555 $lib' 95097e6fb56fSmrg ;; 95107e6fb56fSmrg 95117e6fb56fSmrginterix[3-9]*) 95127e6fb56fSmrg version_type=linux 95137e6fb56fSmrg need_lib_prefix=no 95147e6fb56fSmrg need_version=no 95157e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 95167e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 95177e6fb56fSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 95187e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 95197e6fb56fSmrg shlibpath_overrides_runpath=no 95207e6fb56fSmrg hardcode_into_libs=yes 95217e6fb56fSmrg ;; 95227e6fb56fSmrg 95237e6fb56fSmrgirix5* | irix6* | nonstopux*) 95247e6fb56fSmrg case $host_os in 95257e6fb56fSmrg nonstopux*) version_type=nonstopux ;; 95267e6fb56fSmrg *) 95277e6fb56fSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 95287e6fb56fSmrg version_type=linux 95297e6fb56fSmrg else 95307e6fb56fSmrg version_type=irix 95317e6fb56fSmrg fi ;; 95327e6fb56fSmrg esac 95337e6fb56fSmrg need_lib_prefix=no 95347e6fb56fSmrg need_version=no 95357e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 95367e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 95377e6fb56fSmrg case $host_os in 95387e6fb56fSmrg irix5* | nonstopux*) 95397e6fb56fSmrg libsuff= shlibsuff= 95407e6fb56fSmrg ;; 95417e6fb56fSmrg *) 95427e6fb56fSmrg case $LD in # libtool.m4 will add one of these switches to LD 95437e6fb56fSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 95447e6fb56fSmrg libsuff= shlibsuff= libmagic=32-bit;; 95457e6fb56fSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 95467e6fb56fSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 95477e6fb56fSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 95487e6fb56fSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 95497e6fb56fSmrg *) libsuff= shlibsuff= libmagic=never-match;; 95507e6fb56fSmrg esac 95517e6fb56fSmrg ;; 95527e6fb56fSmrg esac 95537e6fb56fSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 95547e6fb56fSmrg shlibpath_overrides_runpath=no 95557e6fb56fSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 95567e6fb56fSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 95577e6fb56fSmrg hardcode_into_libs=yes 95587e6fb56fSmrg ;; 95597e6fb56fSmrg 95607e6fb56fSmrg# No shared lib support for Linux oldld, aout, or coff. 95617e6fb56fSmrglinux*oldld* | linux*aout* | linux*coff*) 95627e6fb56fSmrg dynamic_linker=no 95637e6fb56fSmrg ;; 95647e6fb56fSmrg 95657e6fb56fSmrg# This must be Linux ELF. 95667e6fb56fSmrglinux* | k*bsd*-gnu) 95677e6fb56fSmrg version_type=linux 95687e6fb56fSmrg need_lib_prefix=no 95697e6fb56fSmrg need_version=no 95707e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 95717e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 95727e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 95737e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 95747e6fb56fSmrg shlibpath_overrides_runpath=no 95757e6fb56fSmrg # This implies no fast_install, which is unacceptable. 95767e6fb56fSmrg # Some rework will be needed to allow for fast_install 95777e6fb56fSmrg # before this can be enabled. 95787e6fb56fSmrg hardcode_into_libs=yes 95797e6fb56fSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 95807e6fb56fSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 95817e6fb56fSmrg 95827e6fb56fSmrg # Append ld.so.conf contents to the search path 95837e6fb56fSmrg if test -f /etc/ld.so.conf; then 95847e6fb56fSmrg 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;/^$/d' | tr '\n' ' '` 95857e6fb56fSmrg sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 95867e6fb56fSmrg fi 95877e6fb56fSmrg 95887e6fb56fSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 95897e6fb56fSmrg # powerpc, because MkLinux only supported shared libraries with the 95907e6fb56fSmrg # GNU dynamic linker. Since this was broken with cross compilers, 95917e6fb56fSmrg # most powerpc-linux boxes support dynamic linking these days and 95927e6fb56fSmrg # people can always --disable-shared, the test was removed, and we 95937e6fb56fSmrg # assume the GNU/Linux dynamic linker is in use. 95947e6fb56fSmrg dynamic_linker='GNU/Linux ld.so' 95957e6fb56fSmrg ;; 95967e6fb56fSmrg 95977e6fb56fSmrgnetbsd*) 95987e6fb56fSmrg version_type=sunos 95997e6fb56fSmrg need_lib_prefix=no 96007e6fb56fSmrg need_version=no 96017e6fb56fSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 96027e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 96037e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 96047e6fb56fSmrg dynamic_linker='NetBSD (a.out) ld.so' 96057e6fb56fSmrg else 96067e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 96077e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 96087e6fb56fSmrg dynamic_linker='NetBSD ld.elf_so' 96097e6fb56fSmrg fi 96107e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 96117e6fb56fSmrg shlibpath_overrides_runpath=yes 96127e6fb56fSmrg hardcode_into_libs=yes 96137e6fb56fSmrg ;; 96147e6fb56fSmrg 96157e6fb56fSmrgnewsos6) 96167e6fb56fSmrg version_type=linux 96177e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 96187e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 96197e6fb56fSmrg shlibpath_overrides_runpath=yes 96207e6fb56fSmrg ;; 96217e6fb56fSmrg 96227e6fb56fSmrgnto-qnx*) 96237e6fb56fSmrg version_type=linux 96247e6fb56fSmrg need_lib_prefix=no 96257e6fb56fSmrg need_version=no 96267e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 96277e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 96287e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 96297e6fb56fSmrg shlibpath_overrides_runpath=yes 96307e6fb56fSmrg ;; 96317e6fb56fSmrg 96327e6fb56fSmrgopenbsd*) 96337e6fb56fSmrg version_type=sunos 96347e6fb56fSmrg sys_lib_dlsearch_path_spec="/usr/lib" 96357e6fb56fSmrg need_lib_prefix=no 96367e6fb56fSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 96377e6fb56fSmrg case $host_os in 96387e6fb56fSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 96397e6fb56fSmrg *) need_version=no ;; 96407e6fb56fSmrg esac 96417e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 96427e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 96437e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 96447e6fb56fSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 96457e6fb56fSmrg case $host_os in 96467e6fb56fSmrg openbsd2.[89] | openbsd2.[89].*) 96477e6fb56fSmrg shlibpath_overrides_runpath=no 96487e6fb56fSmrg ;; 96497e6fb56fSmrg *) 96507e6fb56fSmrg shlibpath_overrides_runpath=yes 96517e6fb56fSmrg ;; 96527e6fb56fSmrg esac 96537e6fb56fSmrg else 96547e6fb56fSmrg shlibpath_overrides_runpath=yes 96557e6fb56fSmrg fi 96567e6fb56fSmrg ;; 96577e6fb56fSmrg 96587e6fb56fSmrgos2*) 96597e6fb56fSmrg libname_spec='$name' 96607e6fb56fSmrg shrext_cmds=".dll" 96617e6fb56fSmrg need_lib_prefix=no 96627e6fb56fSmrg library_names_spec='$libname${shared_ext} $libname.a' 96637e6fb56fSmrg dynamic_linker='OS/2 ld.exe' 96647e6fb56fSmrg shlibpath_var=LIBPATH 96657e6fb56fSmrg ;; 96667e6fb56fSmrg 96677e6fb56fSmrgosf3* | osf4* | osf5*) 96687e6fb56fSmrg version_type=osf 96697e6fb56fSmrg need_lib_prefix=no 96707e6fb56fSmrg need_version=no 96717e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 96727e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 96737e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 96747e6fb56fSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 96757e6fb56fSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 96767e6fb56fSmrg ;; 96777e6fb56fSmrg 96787e6fb56fSmrgrdos*) 96797e6fb56fSmrg dynamic_linker=no 96807e6fb56fSmrg ;; 96817e6fb56fSmrg 96827e6fb56fSmrgsolaris*) 96837e6fb56fSmrg version_type=linux 96847e6fb56fSmrg need_lib_prefix=no 96857e6fb56fSmrg need_version=no 96867e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 96877e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 96887e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 96897e6fb56fSmrg shlibpath_overrides_runpath=yes 96907e6fb56fSmrg hardcode_into_libs=yes 96917e6fb56fSmrg # ldd complains unless libraries are executable 96927e6fb56fSmrg postinstall_cmds='chmod +x $lib' 96937e6fb56fSmrg ;; 96947e6fb56fSmrg 96957e6fb56fSmrgsunos4*) 96967e6fb56fSmrg version_type=sunos 96977e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 96987e6fb56fSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 96997e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 97007e6fb56fSmrg shlibpath_overrides_runpath=yes 97017e6fb56fSmrg if test "$with_gnu_ld" = yes; then 97027e6fb56fSmrg need_lib_prefix=no 97037e6fb56fSmrg fi 97047e6fb56fSmrg need_version=yes 97057e6fb56fSmrg ;; 97067e6fb56fSmrg 97077e6fb56fSmrgsysv4 | sysv4.3*) 97087e6fb56fSmrg version_type=linux 97097e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 97107e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 97117e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 97127e6fb56fSmrg case $host_vendor in 97137e6fb56fSmrg sni) 97147e6fb56fSmrg shlibpath_overrides_runpath=no 97157e6fb56fSmrg need_lib_prefix=no 97167e6fb56fSmrg export_dynamic_flag_spec='${wl}-Blargedynsym' 97177e6fb56fSmrg runpath_var=LD_RUN_PATH 97187e6fb56fSmrg ;; 97197e6fb56fSmrg siemens) 97207e6fb56fSmrg need_lib_prefix=no 97217e6fb56fSmrg ;; 97227e6fb56fSmrg motorola) 97237e6fb56fSmrg need_lib_prefix=no 97247e6fb56fSmrg need_version=no 97257e6fb56fSmrg shlibpath_overrides_runpath=no 97267e6fb56fSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 97277e6fb56fSmrg ;; 97287e6fb56fSmrg esac 97297e6fb56fSmrg ;; 97307e6fb56fSmrg 97317e6fb56fSmrgsysv4*MP*) 97327e6fb56fSmrg if test -d /usr/nec ;then 97337e6fb56fSmrg version_type=linux 97347e6fb56fSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 97357e6fb56fSmrg soname_spec='$libname${shared_ext}.$major' 97367e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 97377e6fb56fSmrg fi 97387e6fb56fSmrg ;; 97397e6fb56fSmrg 97407e6fb56fSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 97417e6fb56fSmrg version_type=freebsd-elf 97427e6fb56fSmrg need_lib_prefix=no 97437e6fb56fSmrg need_version=no 97447e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 97457e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 97467e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 97477e6fb56fSmrg hardcode_into_libs=yes 97487e6fb56fSmrg if test "$with_gnu_ld" = yes; then 97497e6fb56fSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 97507e6fb56fSmrg shlibpath_overrides_runpath=no 97517e6fb56fSmrg else 97527e6fb56fSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 97537e6fb56fSmrg shlibpath_overrides_runpath=yes 97547e6fb56fSmrg case $host_os in 97557e6fb56fSmrg sco3.2v5*) 97567e6fb56fSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 97577e6fb56fSmrg ;; 97587e6fb56fSmrg esac 97597e6fb56fSmrg fi 97607e6fb56fSmrg sys_lib_dlsearch_path_spec='/usr/lib' 97617e6fb56fSmrg ;; 97627e6fb56fSmrg 97637e6fb56fSmrguts4*) 97647e6fb56fSmrg version_type=linux 97657e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 97667e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 97677e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 97687e6fb56fSmrg ;; 97697e6fb56fSmrg 97707e6fb56fSmrg*) 97717e6fb56fSmrg dynamic_linker=no 97727e6fb56fSmrg ;; 97737e6fb56fSmrgesac 97747e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 97757e6fb56fSmrg$as_echo "$dynamic_linker" >&6; } 97767e6fb56fSmrgtest "$dynamic_linker" = no && can_build_shared=no 97777e6fb56fSmrg 97787e6fb56fSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 97797e6fb56fSmrg $as_echo_n "(cached) " >&6 97807e6fb56fSmrgelse 97817e6fb56fSmrg lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 97827e6fb56fSmrgfi 97837e6fb56fSmrg 97847e6fb56fSmrgsys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 97857e6fb56fSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 97867e6fb56fSmrg $as_echo_n "(cached) " >&6 97877e6fb56fSmrgelse 97887e6fb56fSmrg lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 97897e6fb56fSmrgfi 97907e6fb56fSmrg 97917e6fb56fSmrgsys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 97927e6fb56fSmrg 97937e6fb56fSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 97947e6fb56fSmrgif test "$GCC" = yes; then 97957e6fb56fSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 97967e6fb56fSmrgfi 97977e6fb56fSmrg 97987e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 97997e6fb56fSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 98007e6fb56fSmrghardcode_action= 98017e6fb56fSmrgif test -n "$hardcode_libdir_flag_spec" || \ 98027e6fb56fSmrg test -n "$runpath_var" || \ 98037e6fb56fSmrg test "X$hardcode_automatic" = "Xyes" ; then 98047e6fb56fSmrg 98057e6fb56fSmrg # We can hardcode non-existant directories. 98067e6fb56fSmrg if test "$hardcode_direct" != no && 98077e6fb56fSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 98087e6fb56fSmrg # have to relink, otherwise we might link with an installed library 98097e6fb56fSmrg # when we should be linking with a yet-to-be-installed one 98107e6fb56fSmrg ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 98117e6fb56fSmrg test "$hardcode_minus_L" != no; then 98127e6fb56fSmrg # Linking always hardcodes the temporary library directory. 98137e6fb56fSmrg hardcode_action=relink 98147e6fb56fSmrg else 98157e6fb56fSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 98167e6fb56fSmrg hardcode_action=immediate 98177e6fb56fSmrg fi 98187e6fb56fSmrgelse 98197e6fb56fSmrg # We cannot hardcode anything, or else we can only hardcode existing 98207e6fb56fSmrg # directories. 98217e6fb56fSmrg hardcode_action=unsupported 98227e6fb56fSmrgfi 98237e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 98247e6fb56fSmrg$as_echo "$hardcode_action" >&6; } 98257e6fb56fSmrg 98267e6fb56fSmrgif test "$hardcode_action" = relink; then 98277e6fb56fSmrg # Fast installation is not supported 98287e6fb56fSmrg enable_fast_install=no 98297e6fb56fSmrgelif test "$shlibpath_overrides_runpath" = yes || 98307e6fb56fSmrg test "$enable_shared" = no; then 98317e6fb56fSmrg # Fast installation is not necessary 98327e6fb56fSmrg enable_fast_install=needless 98337e6fb56fSmrgfi 98347e6fb56fSmrg 98357e6fb56fSmrgstriplib= 98367e6fb56fSmrgold_striplib= 98377e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 98387e6fb56fSmrg$as_echo_n "checking whether stripping libraries is possible... " >&6; } 98397e6fb56fSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 98407e6fb56fSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 98417e6fb56fSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 98427e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: yes" >&5 98437e6fb56fSmrg$as_echo "yes" >&6; } 98447e6fb56fSmrgelse 98457e6fb56fSmrg# FIXME - insert some real tests, host_os isn't really good enough 98467e6fb56fSmrg case $host_os in 98477e6fb56fSmrg darwin*) 98487e6fb56fSmrg if test -n "$STRIP" ; then 98497e6fb56fSmrg striplib="$STRIP -x" 98507e6fb56fSmrg old_striplib="$STRIP -S" 98517e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: yes" >&5 98527e6fb56fSmrg$as_echo "yes" >&6; } 98537e6fb56fSmrg else 98547e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 98557e6fb56fSmrg$as_echo "no" >&6; } 98567e6fb56fSmrgfi 98577e6fb56fSmrg ;; 98587e6fb56fSmrg *) 98597e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 98607e6fb56fSmrg$as_echo "no" >&6; } 98617e6fb56fSmrg ;; 98627e6fb56fSmrg esac 98637e6fb56fSmrgfi 98647e6fb56fSmrg 98657e6fb56fSmrgif test "x$enable_dlopen" != xyes; then 98667e6fb56fSmrg enable_dlopen=unknown 98677e6fb56fSmrg enable_dlopen_self=unknown 98687e6fb56fSmrg enable_dlopen_self_static=unknown 98697e6fb56fSmrgelse 98707e6fb56fSmrg lt_cv_dlopen=no 98717e6fb56fSmrg lt_cv_dlopen_libs= 98727e6fb56fSmrg 98737e6fb56fSmrg case $host_os in 98747e6fb56fSmrg beos*) 98757e6fb56fSmrg lt_cv_dlopen="load_add_on" 98767e6fb56fSmrg lt_cv_dlopen_libs= 98777e6fb56fSmrg lt_cv_dlopen_self=yes 98787e6fb56fSmrg ;; 98797e6fb56fSmrg 98807e6fb56fSmrg mingw* | pw32*) 98817e6fb56fSmrg lt_cv_dlopen="LoadLibrary" 98827e6fb56fSmrg lt_cv_dlopen_libs= 98837e6fb56fSmrg ;; 98847e6fb56fSmrg 98857e6fb56fSmrg cygwin*) 98867e6fb56fSmrg lt_cv_dlopen="dlopen" 98877e6fb56fSmrg lt_cv_dlopen_libs= 98887e6fb56fSmrg ;; 98897e6fb56fSmrg 98907e6fb56fSmrg darwin*) 98917e6fb56fSmrg # if libdl is installed we need to link against it 98927e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 98937e6fb56fSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; } 98947e6fb56fSmrgif test "${ac_cv_lib_dl_dlopen+set}" = set; then 98957e6fb56fSmrg $as_echo_n "(cached) " >&6 98967e6fb56fSmrgelse 98977e6fb56fSmrg ac_check_lib_save_LIBS=$LIBS 98987e6fb56fSmrgLIBS="-ldl $LIBS" 98997e6fb56fSmrgcat >conftest.$ac_ext <<_ACEOF 99007e6fb56fSmrg/* confdefs.h. */ 99017e6fb56fSmrg_ACEOF 99027e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 99037e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 99047e6fb56fSmrg/* end confdefs.h. */ 99057e6fb56fSmrg 99067e6fb56fSmrg/* Override any GCC internal prototype to avoid an error. 99077e6fb56fSmrg Use char because int might match the return type of a GCC 99087e6fb56fSmrg builtin and then its argument prototype would still apply. */ 99097e6fb56fSmrg#ifdef __cplusplus 99107e6fb56fSmrgextern "C" 99117e6fb56fSmrg#endif 99127e6fb56fSmrgchar dlopen (); 99137e6fb56fSmrgint 99147e6fb56fSmrgmain () 99157e6fb56fSmrg{ 99167e6fb56fSmrgreturn dlopen (); 99177e6fb56fSmrg ; 99187e6fb56fSmrg return 0; 99197e6fb56fSmrg} 99207e6fb56fSmrg_ACEOF 99217e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 99227e6fb56fSmrgif { (ac_try="$ac_link" 99237e6fb56fSmrgcase "(($ac_try" in 99247e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 99257e6fb56fSmrg *) ac_try_echo=$ac_try;; 99267e6fb56fSmrgesac 99277e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 99287e6fb56fSmrg$as_echo "$ac_try_echo") >&5 99297e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 99307e6fb56fSmrg ac_status=$? 99317e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 99327e6fb56fSmrg rm -f conftest.er1 99337e6fb56fSmrg cat conftest.err >&5 99347e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 99357e6fb56fSmrg (exit $ac_status); } && { 99367e6fb56fSmrg test -z "$ac_c_werror_flag" || 99377e6fb56fSmrg test ! -s conftest.err 99387e6fb56fSmrg } && test -s conftest$ac_exeext && { 99397e6fb56fSmrg test "$cross_compiling" = yes || 99407e6fb56fSmrg $as_test_x conftest$ac_exeext 99417e6fb56fSmrg }; then 99427e6fb56fSmrg ac_cv_lib_dl_dlopen=yes 99437e6fb56fSmrgelse 99447e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 99457e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 99467e6fb56fSmrg 99477e6fb56fSmrg ac_cv_lib_dl_dlopen=no 99487e6fb56fSmrgfi 99497e6fb56fSmrg 99507e6fb56fSmrgrm -rf conftest.dSYM 99517e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 99527e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 99537e6fb56fSmrgLIBS=$ac_check_lib_save_LIBS 99547e6fb56fSmrgfi 99557e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 99567e6fb56fSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 99577e6fb56fSmrgif test "x$ac_cv_lib_dl_dlopen" = x""yes; then 99587e6fb56fSmrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 99597e6fb56fSmrgelse 99607e6fb56fSmrg 99617e6fb56fSmrg lt_cv_dlopen="dyld" 99627e6fb56fSmrg lt_cv_dlopen_libs= 99637e6fb56fSmrg lt_cv_dlopen_self=yes 99647e6fb56fSmrg 99657e6fb56fSmrgfi 99667e6fb56fSmrg 99677e6fb56fSmrg ;; 99687e6fb56fSmrg 99697e6fb56fSmrg *) 99707e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 99717e6fb56fSmrg$as_echo_n "checking for shl_load... " >&6; } 99727e6fb56fSmrgif test "${ac_cv_func_shl_load+set}" = set; then 99737e6fb56fSmrg $as_echo_n "(cached) " >&6 99747e6fb56fSmrgelse 99757e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 99767e6fb56fSmrg/* confdefs.h. */ 99777e6fb56fSmrg_ACEOF 99787e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 99797e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 99807e6fb56fSmrg/* end confdefs.h. */ 99817e6fb56fSmrg/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 99827e6fb56fSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 99837e6fb56fSmrg#define shl_load innocuous_shl_load 99847e6fb56fSmrg 99857e6fb56fSmrg/* System header to define __stub macros and hopefully few prototypes, 99867e6fb56fSmrg which can conflict with char shl_load (); below. 99877e6fb56fSmrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 99887e6fb56fSmrg <limits.h> exists even on freestanding compilers. */ 99897e6fb56fSmrg 99907e6fb56fSmrg#ifdef __STDC__ 99917e6fb56fSmrg# include <limits.h> 99927e6fb56fSmrg#else 99937e6fb56fSmrg# include <assert.h> 99947e6fb56fSmrg#endif 99957e6fb56fSmrg 99967e6fb56fSmrg#undef shl_load 99977e6fb56fSmrg 99987e6fb56fSmrg/* Override any GCC internal prototype to avoid an error. 99997e6fb56fSmrg Use char because int might match the return type of a GCC 100007e6fb56fSmrg builtin and then its argument prototype would still apply. */ 100017e6fb56fSmrg#ifdef __cplusplus 100027e6fb56fSmrgextern "C" 100037e6fb56fSmrg#endif 100047e6fb56fSmrgchar shl_load (); 100057e6fb56fSmrg/* The GNU C library defines this for functions which it implements 100067e6fb56fSmrg to always fail with ENOSYS. Some functions are actually named 100077e6fb56fSmrg something starting with __ and the normal name is an alias. */ 100087e6fb56fSmrg#if defined __stub_shl_load || defined __stub___shl_load 100097e6fb56fSmrgchoke me 100107e6fb56fSmrg#endif 100117e6fb56fSmrg 100127e6fb56fSmrgint 100137e6fb56fSmrgmain () 100147e6fb56fSmrg{ 100157e6fb56fSmrgreturn shl_load (); 100167e6fb56fSmrg ; 100177e6fb56fSmrg return 0; 100187e6fb56fSmrg} 100197e6fb56fSmrg_ACEOF 100207e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 100217e6fb56fSmrgif { (ac_try="$ac_link" 100227e6fb56fSmrgcase "(($ac_try" in 100237e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 100247e6fb56fSmrg *) ac_try_echo=$ac_try;; 100257e6fb56fSmrgesac 100267e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 100277e6fb56fSmrg$as_echo "$ac_try_echo") >&5 100287e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 100297e6fb56fSmrg ac_status=$? 100307e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 100317e6fb56fSmrg rm -f conftest.er1 100327e6fb56fSmrg cat conftest.err >&5 100337e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 100347e6fb56fSmrg (exit $ac_status); } && { 100357e6fb56fSmrg test -z "$ac_c_werror_flag" || 100367e6fb56fSmrg test ! -s conftest.err 100377e6fb56fSmrg } && test -s conftest$ac_exeext && { 100387e6fb56fSmrg test "$cross_compiling" = yes || 100397e6fb56fSmrg $as_test_x conftest$ac_exeext 100407e6fb56fSmrg }; then 100417e6fb56fSmrg ac_cv_func_shl_load=yes 100427e6fb56fSmrgelse 100437e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 100447e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 100457e6fb56fSmrg 100467e6fb56fSmrg ac_cv_func_shl_load=no 100477e6fb56fSmrgfi 100487e6fb56fSmrg 100497e6fb56fSmrgrm -rf conftest.dSYM 100507e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 100517e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 100527e6fb56fSmrgfi 100537e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 100547e6fb56fSmrg$as_echo "$ac_cv_func_shl_load" >&6; } 100557e6fb56fSmrgif test "x$ac_cv_func_shl_load" = x""yes; then 100567e6fb56fSmrg lt_cv_dlopen="shl_load" 100577e6fb56fSmrgelse 100587e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 100597e6fb56fSmrg$as_echo_n "checking for shl_load in -ldld... " >&6; } 100607e6fb56fSmrgif test "${ac_cv_lib_dld_shl_load+set}" = set; then 100617e6fb56fSmrg $as_echo_n "(cached) " >&6 100627e6fb56fSmrgelse 100637e6fb56fSmrg ac_check_lib_save_LIBS=$LIBS 100647e6fb56fSmrgLIBS="-ldld $LIBS" 100657e6fb56fSmrgcat >conftest.$ac_ext <<_ACEOF 100667e6fb56fSmrg/* confdefs.h. */ 100677e6fb56fSmrg_ACEOF 100687e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 100697e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 100707e6fb56fSmrg/* end confdefs.h. */ 100717e6fb56fSmrg 100727e6fb56fSmrg/* Override any GCC internal prototype to avoid an error. 100737e6fb56fSmrg Use char because int might match the return type of a GCC 100747e6fb56fSmrg builtin and then its argument prototype would still apply. */ 100757e6fb56fSmrg#ifdef __cplusplus 100767e6fb56fSmrgextern "C" 100777e6fb56fSmrg#endif 100787e6fb56fSmrgchar shl_load (); 100797e6fb56fSmrgint 100807e6fb56fSmrgmain () 100817e6fb56fSmrg{ 100827e6fb56fSmrgreturn shl_load (); 100837e6fb56fSmrg ; 100847e6fb56fSmrg return 0; 100857e6fb56fSmrg} 100867e6fb56fSmrg_ACEOF 100877e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 100887e6fb56fSmrgif { (ac_try="$ac_link" 100897e6fb56fSmrgcase "(($ac_try" in 100907e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 100917e6fb56fSmrg *) ac_try_echo=$ac_try;; 100927e6fb56fSmrgesac 100937e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 100947e6fb56fSmrg$as_echo "$ac_try_echo") >&5 100957e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 100967e6fb56fSmrg ac_status=$? 100977e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 100987e6fb56fSmrg rm -f conftest.er1 100997e6fb56fSmrg cat conftest.err >&5 101007e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 101017e6fb56fSmrg (exit $ac_status); } && { 101027e6fb56fSmrg test -z "$ac_c_werror_flag" || 101037e6fb56fSmrg test ! -s conftest.err 101047e6fb56fSmrg } && test -s conftest$ac_exeext && { 101057e6fb56fSmrg test "$cross_compiling" = yes || 101067e6fb56fSmrg $as_test_x conftest$ac_exeext 101077e6fb56fSmrg }; then 101087e6fb56fSmrg ac_cv_lib_dld_shl_load=yes 101097e6fb56fSmrgelse 101107e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 101117e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 101127e6fb56fSmrg 101137e6fb56fSmrg ac_cv_lib_dld_shl_load=no 101147e6fb56fSmrgfi 101157e6fb56fSmrg 101167e6fb56fSmrgrm -rf conftest.dSYM 101177e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 101187e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 101197e6fb56fSmrgLIBS=$ac_check_lib_save_LIBS 101207e6fb56fSmrgfi 101217e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 101227e6fb56fSmrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 101237e6fb56fSmrgif test "x$ac_cv_lib_dld_shl_load" = x""yes; then 101247e6fb56fSmrg lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 101257e6fb56fSmrgelse 101267e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 101277e6fb56fSmrg$as_echo_n "checking for dlopen... " >&6; } 101287e6fb56fSmrgif test "${ac_cv_func_dlopen+set}" = set; then 101297e6fb56fSmrg $as_echo_n "(cached) " >&6 101307e6fb56fSmrgelse 101317e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 101327e6fb56fSmrg/* confdefs.h. */ 101337e6fb56fSmrg_ACEOF 101347e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 101357e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 101367e6fb56fSmrg/* end confdefs.h. */ 101377e6fb56fSmrg/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 101387e6fb56fSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 101397e6fb56fSmrg#define dlopen innocuous_dlopen 101407e6fb56fSmrg 101417e6fb56fSmrg/* System header to define __stub macros and hopefully few prototypes, 101427e6fb56fSmrg which can conflict with char dlopen (); below. 101437e6fb56fSmrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 101447e6fb56fSmrg <limits.h> exists even on freestanding compilers. */ 101457e6fb56fSmrg 101467e6fb56fSmrg#ifdef __STDC__ 101477e6fb56fSmrg# include <limits.h> 101487e6fb56fSmrg#else 101497e6fb56fSmrg# include <assert.h> 101507e6fb56fSmrg#endif 101517e6fb56fSmrg 101527e6fb56fSmrg#undef dlopen 101537e6fb56fSmrg 101547e6fb56fSmrg/* Override any GCC internal prototype to avoid an error. 101557e6fb56fSmrg Use char because int might match the return type of a GCC 101567e6fb56fSmrg builtin and then its argument prototype would still apply. */ 101577e6fb56fSmrg#ifdef __cplusplus 101587e6fb56fSmrgextern "C" 101597e6fb56fSmrg#endif 101607e6fb56fSmrgchar dlopen (); 101617e6fb56fSmrg/* The GNU C library defines this for functions which it implements 101627e6fb56fSmrg to always fail with ENOSYS. Some functions are actually named 101637e6fb56fSmrg something starting with __ and the normal name is an alias. */ 101647e6fb56fSmrg#if defined __stub_dlopen || defined __stub___dlopen 101657e6fb56fSmrgchoke me 101667e6fb56fSmrg#endif 101677e6fb56fSmrg 101687e6fb56fSmrgint 101697e6fb56fSmrgmain () 101707e6fb56fSmrg{ 101717e6fb56fSmrgreturn dlopen (); 101727e6fb56fSmrg ; 101737e6fb56fSmrg return 0; 101747e6fb56fSmrg} 101757e6fb56fSmrg_ACEOF 101767e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 101777e6fb56fSmrgif { (ac_try="$ac_link" 101787e6fb56fSmrgcase "(($ac_try" in 101797e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 101807e6fb56fSmrg *) ac_try_echo=$ac_try;; 101817e6fb56fSmrgesac 101827e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 101837e6fb56fSmrg$as_echo "$ac_try_echo") >&5 101847e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 101857e6fb56fSmrg ac_status=$? 101867e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 101877e6fb56fSmrg rm -f conftest.er1 101887e6fb56fSmrg cat conftest.err >&5 101897e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 101907e6fb56fSmrg (exit $ac_status); } && { 101917e6fb56fSmrg test -z "$ac_c_werror_flag" || 101927e6fb56fSmrg test ! -s conftest.err 101937e6fb56fSmrg } && test -s conftest$ac_exeext && { 101947e6fb56fSmrg test "$cross_compiling" = yes || 101957e6fb56fSmrg $as_test_x conftest$ac_exeext 101967e6fb56fSmrg }; then 101977e6fb56fSmrg ac_cv_func_dlopen=yes 101987e6fb56fSmrgelse 101997e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 102007e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 102017e6fb56fSmrg 102027e6fb56fSmrg ac_cv_func_dlopen=no 102037e6fb56fSmrgfi 102047e6fb56fSmrg 102057e6fb56fSmrgrm -rf conftest.dSYM 102067e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 102077e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 102087e6fb56fSmrgfi 102097e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 102107e6fb56fSmrg$as_echo "$ac_cv_func_dlopen" >&6; } 102117e6fb56fSmrgif test "x$ac_cv_func_dlopen" = x""yes; then 102127e6fb56fSmrg lt_cv_dlopen="dlopen" 102137e6fb56fSmrgelse 102147e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 102157e6fb56fSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; } 102167e6fb56fSmrgif test "${ac_cv_lib_dl_dlopen+set}" = set; then 102177e6fb56fSmrg $as_echo_n "(cached) " >&6 102187e6fb56fSmrgelse 102197e6fb56fSmrg ac_check_lib_save_LIBS=$LIBS 102207e6fb56fSmrgLIBS="-ldl $LIBS" 102217e6fb56fSmrgcat >conftest.$ac_ext <<_ACEOF 102227e6fb56fSmrg/* confdefs.h. */ 102237e6fb56fSmrg_ACEOF 102247e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 102257e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 102267e6fb56fSmrg/* end confdefs.h. */ 102277e6fb56fSmrg 102287e6fb56fSmrg/* Override any GCC internal prototype to avoid an error. 102297e6fb56fSmrg Use char because int might match the return type of a GCC 102307e6fb56fSmrg builtin and then its argument prototype would still apply. */ 102317e6fb56fSmrg#ifdef __cplusplus 102327e6fb56fSmrgextern "C" 102337e6fb56fSmrg#endif 102347e6fb56fSmrgchar dlopen (); 102357e6fb56fSmrgint 102367e6fb56fSmrgmain () 102377e6fb56fSmrg{ 102387e6fb56fSmrgreturn dlopen (); 102397e6fb56fSmrg ; 102407e6fb56fSmrg return 0; 102417e6fb56fSmrg} 102427e6fb56fSmrg_ACEOF 102437e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 102447e6fb56fSmrgif { (ac_try="$ac_link" 102457e6fb56fSmrgcase "(($ac_try" in 102467e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 102477e6fb56fSmrg *) ac_try_echo=$ac_try;; 102487e6fb56fSmrgesac 102497e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 102507e6fb56fSmrg$as_echo "$ac_try_echo") >&5 102517e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 102527e6fb56fSmrg ac_status=$? 102537e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 102547e6fb56fSmrg rm -f conftest.er1 102557e6fb56fSmrg cat conftest.err >&5 102567e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 102577e6fb56fSmrg (exit $ac_status); } && { 102587e6fb56fSmrg test -z "$ac_c_werror_flag" || 102597e6fb56fSmrg test ! -s conftest.err 102607e6fb56fSmrg } && test -s conftest$ac_exeext && { 102617e6fb56fSmrg test "$cross_compiling" = yes || 102627e6fb56fSmrg $as_test_x conftest$ac_exeext 102637e6fb56fSmrg }; then 102647e6fb56fSmrg ac_cv_lib_dl_dlopen=yes 102657e6fb56fSmrgelse 102667e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 102677e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 102687e6fb56fSmrg 102697e6fb56fSmrg ac_cv_lib_dl_dlopen=no 102707e6fb56fSmrgfi 102717e6fb56fSmrg 102727e6fb56fSmrgrm -rf conftest.dSYM 102737e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 102747e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 102757e6fb56fSmrgLIBS=$ac_check_lib_save_LIBS 102767e6fb56fSmrgfi 102777e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 102787e6fb56fSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 102797e6fb56fSmrgif test "x$ac_cv_lib_dl_dlopen" = x""yes; then 102807e6fb56fSmrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 102817e6fb56fSmrgelse 102827e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 102837e6fb56fSmrg$as_echo_n "checking for dlopen in -lsvld... " >&6; } 102847e6fb56fSmrgif test "${ac_cv_lib_svld_dlopen+set}" = set; then 102857e6fb56fSmrg $as_echo_n "(cached) " >&6 102867e6fb56fSmrgelse 102877e6fb56fSmrg ac_check_lib_save_LIBS=$LIBS 102887e6fb56fSmrgLIBS="-lsvld $LIBS" 102897e6fb56fSmrgcat >conftest.$ac_ext <<_ACEOF 102907e6fb56fSmrg/* confdefs.h. */ 102917e6fb56fSmrg_ACEOF 102927e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 102937e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 102947e6fb56fSmrg/* end confdefs.h. */ 102957e6fb56fSmrg 102967e6fb56fSmrg/* Override any GCC internal prototype to avoid an error. 102977e6fb56fSmrg Use char because int might match the return type of a GCC 102987e6fb56fSmrg builtin and then its argument prototype would still apply. */ 102997e6fb56fSmrg#ifdef __cplusplus 103007e6fb56fSmrgextern "C" 103017e6fb56fSmrg#endif 103027e6fb56fSmrgchar dlopen (); 103037e6fb56fSmrgint 103047e6fb56fSmrgmain () 103057e6fb56fSmrg{ 103067e6fb56fSmrgreturn dlopen (); 103077e6fb56fSmrg ; 103087e6fb56fSmrg return 0; 103097e6fb56fSmrg} 103107e6fb56fSmrg_ACEOF 103117e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 103127e6fb56fSmrgif { (ac_try="$ac_link" 103137e6fb56fSmrgcase "(($ac_try" in 103147e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 103157e6fb56fSmrg *) ac_try_echo=$ac_try;; 103167e6fb56fSmrgesac 103177e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 103187e6fb56fSmrg$as_echo "$ac_try_echo") >&5 103197e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 103207e6fb56fSmrg ac_status=$? 103217e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 103227e6fb56fSmrg rm -f conftest.er1 103237e6fb56fSmrg cat conftest.err >&5 103247e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 103257e6fb56fSmrg (exit $ac_status); } && { 103267e6fb56fSmrg test -z "$ac_c_werror_flag" || 103277e6fb56fSmrg test ! -s conftest.err 103287e6fb56fSmrg } && test -s conftest$ac_exeext && { 103297e6fb56fSmrg test "$cross_compiling" = yes || 103307e6fb56fSmrg $as_test_x conftest$ac_exeext 103317e6fb56fSmrg }; then 103327e6fb56fSmrg ac_cv_lib_svld_dlopen=yes 103337e6fb56fSmrgelse 103347e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 103357e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 103367e6fb56fSmrg 103377e6fb56fSmrg ac_cv_lib_svld_dlopen=no 103387e6fb56fSmrgfi 103397e6fb56fSmrg 103407e6fb56fSmrgrm -rf conftest.dSYM 103417e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 103427e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 103437e6fb56fSmrgLIBS=$ac_check_lib_save_LIBS 103447e6fb56fSmrgfi 103457e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 103467e6fb56fSmrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 103477e6fb56fSmrgif test "x$ac_cv_lib_svld_dlopen" = x""yes; then 103487e6fb56fSmrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 103497e6fb56fSmrgelse 103507e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 103517e6fb56fSmrg$as_echo_n "checking for dld_link in -ldld... " >&6; } 103527e6fb56fSmrgif test "${ac_cv_lib_dld_dld_link+set}" = set; then 103537e6fb56fSmrg $as_echo_n "(cached) " >&6 103547e6fb56fSmrgelse 103557e6fb56fSmrg ac_check_lib_save_LIBS=$LIBS 103567e6fb56fSmrgLIBS="-ldld $LIBS" 103577e6fb56fSmrgcat >conftest.$ac_ext <<_ACEOF 103587e6fb56fSmrg/* confdefs.h. */ 103597e6fb56fSmrg_ACEOF 103607e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 103617e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 103627e6fb56fSmrg/* end confdefs.h. */ 103637e6fb56fSmrg 103647e6fb56fSmrg/* Override any GCC internal prototype to avoid an error. 103657e6fb56fSmrg Use char because int might match the return type of a GCC 103667e6fb56fSmrg builtin and then its argument prototype would still apply. */ 103677e6fb56fSmrg#ifdef __cplusplus 103687e6fb56fSmrgextern "C" 103697e6fb56fSmrg#endif 103707e6fb56fSmrgchar dld_link (); 103717e6fb56fSmrgint 103727e6fb56fSmrgmain () 103737e6fb56fSmrg{ 103747e6fb56fSmrgreturn dld_link (); 103757e6fb56fSmrg ; 103767e6fb56fSmrg return 0; 103777e6fb56fSmrg} 103787e6fb56fSmrg_ACEOF 103797e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 103807e6fb56fSmrgif { (ac_try="$ac_link" 103817e6fb56fSmrgcase "(($ac_try" in 103827e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 103837e6fb56fSmrg *) ac_try_echo=$ac_try;; 103847e6fb56fSmrgesac 103857e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 103867e6fb56fSmrg$as_echo "$ac_try_echo") >&5 103877e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 103887e6fb56fSmrg ac_status=$? 103897e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 103907e6fb56fSmrg rm -f conftest.er1 103917e6fb56fSmrg cat conftest.err >&5 103927e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 103937e6fb56fSmrg (exit $ac_status); } && { 103947e6fb56fSmrg test -z "$ac_c_werror_flag" || 103957e6fb56fSmrg test ! -s conftest.err 103967e6fb56fSmrg } && test -s conftest$ac_exeext && { 103977e6fb56fSmrg test "$cross_compiling" = yes || 103987e6fb56fSmrg $as_test_x conftest$ac_exeext 103997e6fb56fSmrg }; then 104007e6fb56fSmrg ac_cv_lib_dld_dld_link=yes 104017e6fb56fSmrgelse 104027e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 104037e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 104047e6fb56fSmrg 104057e6fb56fSmrg ac_cv_lib_dld_dld_link=no 104067e6fb56fSmrgfi 104077e6fb56fSmrg 104087e6fb56fSmrgrm -rf conftest.dSYM 104097e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 104107e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 104117e6fb56fSmrgLIBS=$ac_check_lib_save_LIBS 104127e6fb56fSmrgfi 104137e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 104147e6fb56fSmrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 104157e6fb56fSmrgif test "x$ac_cv_lib_dld_dld_link" = x""yes; then 104167e6fb56fSmrg lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 104177e6fb56fSmrgfi 104187e6fb56fSmrg 104197e6fb56fSmrg 104207e6fb56fSmrgfi 104217e6fb56fSmrg 104227e6fb56fSmrg 104237e6fb56fSmrgfi 104247e6fb56fSmrg 104257e6fb56fSmrg 104267e6fb56fSmrgfi 104277e6fb56fSmrg 104287e6fb56fSmrg 104297e6fb56fSmrgfi 104307e6fb56fSmrg 104317e6fb56fSmrg 104327e6fb56fSmrgfi 104337e6fb56fSmrg 104347e6fb56fSmrg ;; 104357e6fb56fSmrg esac 104367e6fb56fSmrg 104377e6fb56fSmrg if test "x$lt_cv_dlopen" != xno; then 104387e6fb56fSmrg enable_dlopen=yes 104397e6fb56fSmrg else 104407e6fb56fSmrg enable_dlopen=no 104417e6fb56fSmrg fi 104427e6fb56fSmrg 104437e6fb56fSmrg case $lt_cv_dlopen in 104447e6fb56fSmrg dlopen) 104457e6fb56fSmrg save_CPPFLAGS="$CPPFLAGS" 104467e6fb56fSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 104477e6fb56fSmrg 104487e6fb56fSmrg save_LDFLAGS="$LDFLAGS" 104497e6fb56fSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 104507e6fb56fSmrg 104517e6fb56fSmrg save_LIBS="$LIBS" 104527e6fb56fSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 104537e6fb56fSmrg 104547e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 104557e6fb56fSmrg$as_echo_n "checking whether a program can dlopen itself... " >&6; } 104567e6fb56fSmrgif test "${lt_cv_dlopen_self+set}" = set; then 104577e6fb56fSmrg $as_echo_n "(cached) " >&6 104587e6fb56fSmrgelse 104597e6fb56fSmrg if test "$cross_compiling" = yes; then : 104607e6fb56fSmrg lt_cv_dlopen_self=cross 104617e6fb56fSmrgelse 104627e6fb56fSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 104637e6fb56fSmrg lt_status=$lt_dlunknown 104647e6fb56fSmrg cat > conftest.$ac_ext <<EOF 104657e6fb56fSmrg#line 10465 "configure" 104667e6fb56fSmrg#include "confdefs.h" 104677e6fb56fSmrg 104687e6fb56fSmrg#if HAVE_DLFCN_H 104697e6fb56fSmrg#include <dlfcn.h> 104707e6fb56fSmrg#endif 104717e6fb56fSmrg 104727e6fb56fSmrg#include <stdio.h> 104737e6fb56fSmrg 104747e6fb56fSmrg#ifdef RTLD_GLOBAL 104757e6fb56fSmrg# define LT_DLGLOBAL RTLD_GLOBAL 104767e6fb56fSmrg#else 104777e6fb56fSmrg# ifdef DL_GLOBAL 104787e6fb56fSmrg# define LT_DLGLOBAL DL_GLOBAL 104797e6fb56fSmrg# else 104807e6fb56fSmrg# define LT_DLGLOBAL 0 104817e6fb56fSmrg# endif 104827e6fb56fSmrg#endif 104837e6fb56fSmrg 104847e6fb56fSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 104857e6fb56fSmrg find out it does not work in some platform. */ 104867e6fb56fSmrg#ifndef LT_DLLAZY_OR_NOW 104877e6fb56fSmrg# ifdef RTLD_LAZY 104887e6fb56fSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 104897e6fb56fSmrg# else 104907e6fb56fSmrg# ifdef DL_LAZY 104917e6fb56fSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 104927e6fb56fSmrg# else 104937e6fb56fSmrg# ifdef RTLD_NOW 104947e6fb56fSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 104957e6fb56fSmrg# else 104967e6fb56fSmrg# ifdef DL_NOW 104977e6fb56fSmrg# define LT_DLLAZY_OR_NOW DL_NOW 104987e6fb56fSmrg# else 104997e6fb56fSmrg# define LT_DLLAZY_OR_NOW 0 105007e6fb56fSmrg# endif 105017e6fb56fSmrg# endif 105027e6fb56fSmrg# endif 105037e6fb56fSmrg# endif 105047e6fb56fSmrg#endif 105057e6fb56fSmrg 105067e6fb56fSmrg#ifdef __cplusplus 105077e6fb56fSmrgextern "C" void exit (int); 105087e6fb56fSmrg#endif 105097e6fb56fSmrg 105107e6fb56fSmrgvoid fnord() { int i=42;} 105117e6fb56fSmrgint main () 105127e6fb56fSmrg{ 105137e6fb56fSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 105147e6fb56fSmrg int status = $lt_dlunknown; 105157e6fb56fSmrg 105167e6fb56fSmrg if (self) 105177e6fb56fSmrg { 105187e6fb56fSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 105197e6fb56fSmrg else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 105207e6fb56fSmrg /* dlclose (self); */ 105217e6fb56fSmrg } 105227e6fb56fSmrg else 105237e6fb56fSmrg puts (dlerror ()); 105247e6fb56fSmrg 105257e6fb56fSmrg exit (status); 105267e6fb56fSmrg} 105277e6fb56fSmrgEOF 105287e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 105297e6fb56fSmrg (eval $ac_link) 2>&5 105307e6fb56fSmrg ac_status=$? 105317e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 105327e6fb56fSmrg (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 105337e6fb56fSmrg (./conftest; exit; ) >&5 2>/dev/null 105347e6fb56fSmrg lt_status=$? 105357e6fb56fSmrg case x$lt_status in 105367e6fb56fSmrg x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 105377e6fb56fSmrg x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 105387e6fb56fSmrg x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 105397e6fb56fSmrg esac 105407e6fb56fSmrg else : 105417e6fb56fSmrg # compilation failed 105427e6fb56fSmrg lt_cv_dlopen_self=no 105437e6fb56fSmrg fi 105447e6fb56fSmrgfi 105457e6fb56fSmrgrm -fr conftest* 105467e6fb56fSmrg 105477e6fb56fSmrg 105487e6fb56fSmrgfi 105497e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 105507e6fb56fSmrg$as_echo "$lt_cv_dlopen_self" >&6; } 105517e6fb56fSmrg 105527e6fb56fSmrg if test "x$lt_cv_dlopen_self" = xyes; then 105537e6fb56fSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 105547e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 105557e6fb56fSmrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 105567e6fb56fSmrgif test "${lt_cv_dlopen_self_static+set}" = set; then 105577e6fb56fSmrg $as_echo_n "(cached) " >&6 105587e6fb56fSmrgelse 105597e6fb56fSmrg if test "$cross_compiling" = yes; then : 105607e6fb56fSmrg lt_cv_dlopen_self_static=cross 105617e6fb56fSmrgelse 105627e6fb56fSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 105637e6fb56fSmrg lt_status=$lt_dlunknown 105647e6fb56fSmrg cat > conftest.$ac_ext <<EOF 105657e6fb56fSmrg#line 10565 "configure" 105667e6fb56fSmrg#include "confdefs.h" 105677e6fb56fSmrg 105687e6fb56fSmrg#if HAVE_DLFCN_H 105697e6fb56fSmrg#include <dlfcn.h> 105707e6fb56fSmrg#endif 105717e6fb56fSmrg 105727e6fb56fSmrg#include <stdio.h> 105737e6fb56fSmrg 105747e6fb56fSmrg#ifdef RTLD_GLOBAL 105757e6fb56fSmrg# define LT_DLGLOBAL RTLD_GLOBAL 105767e6fb56fSmrg#else 105777e6fb56fSmrg# ifdef DL_GLOBAL 105787e6fb56fSmrg# define LT_DLGLOBAL DL_GLOBAL 105797e6fb56fSmrg# else 105807e6fb56fSmrg# define LT_DLGLOBAL 0 105817e6fb56fSmrg# endif 105827e6fb56fSmrg#endif 105837e6fb56fSmrg 105847e6fb56fSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 105857e6fb56fSmrg find out it does not work in some platform. */ 105867e6fb56fSmrg#ifndef LT_DLLAZY_OR_NOW 105877e6fb56fSmrg# ifdef RTLD_LAZY 105887e6fb56fSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 105897e6fb56fSmrg# else 105907e6fb56fSmrg# ifdef DL_LAZY 105917e6fb56fSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 105927e6fb56fSmrg# else 105937e6fb56fSmrg# ifdef RTLD_NOW 105947e6fb56fSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 105957e6fb56fSmrg# else 105967e6fb56fSmrg# ifdef DL_NOW 105977e6fb56fSmrg# define LT_DLLAZY_OR_NOW DL_NOW 105987e6fb56fSmrg# else 105997e6fb56fSmrg# define LT_DLLAZY_OR_NOW 0 106007e6fb56fSmrg# endif 106017e6fb56fSmrg# endif 106027e6fb56fSmrg# endif 106037e6fb56fSmrg# endif 106047e6fb56fSmrg#endif 106057e6fb56fSmrg 106067e6fb56fSmrg#ifdef __cplusplus 106077e6fb56fSmrgextern "C" void exit (int); 106087e6fb56fSmrg#endif 106097e6fb56fSmrg 106107e6fb56fSmrgvoid fnord() { int i=42;} 106117e6fb56fSmrgint main () 106127e6fb56fSmrg{ 106137e6fb56fSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 106147e6fb56fSmrg int status = $lt_dlunknown; 106157e6fb56fSmrg 106167e6fb56fSmrg if (self) 106177e6fb56fSmrg { 106187e6fb56fSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 106197e6fb56fSmrg else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 106207e6fb56fSmrg /* dlclose (self); */ 106217e6fb56fSmrg } 106227e6fb56fSmrg else 106237e6fb56fSmrg puts (dlerror ()); 106247e6fb56fSmrg 106257e6fb56fSmrg exit (status); 106267e6fb56fSmrg} 106277e6fb56fSmrgEOF 106287e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 106297e6fb56fSmrg (eval $ac_link) 2>&5 106307e6fb56fSmrg ac_status=$? 106317e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 106327e6fb56fSmrg (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 106337e6fb56fSmrg (./conftest; exit; ) >&5 2>/dev/null 106347e6fb56fSmrg lt_status=$? 106357e6fb56fSmrg case x$lt_status in 106367e6fb56fSmrg x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 106377e6fb56fSmrg x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 106387e6fb56fSmrg x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 106397e6fb56fSmrg esac 106407e6fb56fSmrg else : 106417e6fb56fSmrg # compilation failed 106427e6fb56fSmrg lt_cv_dlopen_self_static=no 106437e6fb56fSmrg fi 106447e6fb56fSmrgfi 106457e6fb56fSmrgrm -fr conftest* 106467e6fb56fSmrg 106477e6fb56fSmrg 106487e6fb56fSmrgfi 106497e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 106507e6fb56fSmrg$as_echo "$lt_cv_dlopen_self_static" >&6; } 106517e6fb56fSmrg fi 106527e6fb56fSmrg 106537e6fb56fSmrg CPPFLAGS="$save_CPPFLAGS" 106547e6fb56fSmrg LDFLAGS="$save_LDFLAGS" 106557e6fb56fSmrg LIBS="$save_LIBS" 106567e6fb56fSmrg ;; 106577e6fb56fSmrg esac 106587e6fb56fSmrg 106597e6fb56fSmrg case $lt_cv_dlopen_self in 106607e6fb56fSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 106617e6fb56fSmrg *) enable_dlopen_self=unknown ;; 106627e6fb56fSmrg esac 106637e6fb56fSmrg 106647e6fb56fSmrg case $lt_cv_dlopen_self_static in 106657e6fb56fSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 106667e6fb56fSmrg *) enable_dlopen_self_static=unknown ;; 106677e6fb56fSmrg esac 106687e6fb56fSmrgfi 106697e6fb56fSmrg 106707e6fb56fSmrg 106717e6fb56fSmrg# Report which library types will actually be built 106727e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 106737e6fb56fSmrg$as_echo_n "checking if libtool supports shared libraries... " >&6; } 106747e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 106757e6fb56fSmrg$as_echo "$can_build_shared" >&6; } 106767e6fb56fSmrg 106777e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 106787e6fb56fSmrg$as_echo_n "checking whether to build shared libraries... " >&6; } 106797e6fb56fSmrgtest "$can_build_shared" = "no" && enable_shared=no 106807e6fb56fSmrg 106817e6fb56fSmrg# On AIX, shared libraries and static libraries use the same namespace, and 106827e6fb56fSmrg# are all built from PIC. 106837e6fb56fSmrgcase $host_os in 106847e6fb56fSmrgaix3*) 106857e6fb56fSmrg test "$enable_shared" = yes && enable_static=no 106867e6fb56fSmrg if test -n "$RANLIB"; then 106877e6fb56fSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 106887e6fb56fSmrg postinstall_cmds='$RANLIB $lib' 106897e6fb56fSmrg fi 106907e6fb56fSmrg ;; 106917e6fb56fSmrg 106927e6fb56fSmrgaix[4-9]*) 106937e6fb56fSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 106947e6fb56fSmrg test "$enable_shared" = yes && enable_static=no 106957e6fb56fSmrg fi 106967e6fb56fSmrg ;; 106977e6fb56fSmrgesac 106987e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 106997e6fb56fSmrg$as_echo "$enable_shared" >&6; } 107007e6fb56fSmrg 107017e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 107027e6fb56fSmrg$as_echo_n "checking whether to build static libraries... " >&6; } 107037e6fb56fSmrg# Make sure either enable_shared or enable_static is yes. 107047e6fb56fSmrgtest "$enable_shared" = yes || enable_static=yes 107057e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 107067e6fb56fSmrg$as_echo "$enable_static" >&6; } 107077e6fb56fSmrg 107087e6fb56fSmrg# The else clause should only fire when bootstrapping the 107097e6fb56fSmrg# libtool distribution, otherwise you forgot to ship ltmain.sh 107107e6fb56fSmrg# with your package, and you will get complaints that there are 107117e6fb56fSmrg# no rules to generate ltmain.sh. 107127e6fb56fSmrgif test -f "$ltmain"; then 107137e6fb56fSmrg # See if we are running on zsh, and set the options which allow our commands through 107147e6fb56fSmrg # without removal of \ escapes. 107157e6fb56fSmrg if test -n "${ZSH_VERSION+set}" ; then 107167e6fb56fSmrg setopt NO_GLOB_SUBST 107177e6fb56fSmrg fi 107187e6fb56fSmrg # Now quote all the things that may contain metacharacters while being 107197e6fb56fSmrg # careful not to overquote the AC_SUBSTed values. We take copies of the 107207e6fb56fSmrg # variables and quote the copies for generation of the libtool script. 107217e6fb56fSmrg for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 107227e6fb56fSmrg SED SHELL STRIP \ 107237e6fb56fSmrg libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 107247e6fb56fSmrg old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 107257e6fb56fSmrg deplibs_check_method reload_flag reload_cmds need_locks \ 107267e6fb56fSmrg lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 107277e6fb56fSmrg lt_cv_sys_global_symbol_to_c_name_address \ 107287e6fb56fSmrg sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 107297e6fb56fSmrg old_postinstall_cmds old_postuninstall_cmds \ 107307e6fb56fSmrg compiler \ 107317e6fb56fSmrg CC \ 107327e6fb56fSmrg LD \ 107337e6fb56fSmrg lt_prog_compiler_wl \ 107347e6fb56fSmrg lt_prog_compiler_pic \ 107357e6fb56fSmrg lt_prog_compiler_static \ 107367e6fb56fSmrg lt_prog_compiler_no_builtin_flag \ 107377e6fb56fSmrg export_dynamic_flag_spec \ 107387e6fb56fSmrg thread_safe_flag_spec \ 107397e6fb56fSmrg whole_archive_flag_spec \ 107407e6fb56fSmrg enable_shared_with_static_runtimes \ 107417e6fb56fSmrg old_archive_cmds \ 107427e6fb56fSmrg old_archive_from_new_cmds \ 107437e6fb56fSmrg predep_objects \ 107447e6fb56fSmrg postdep_objects \ 107457e6fb56fSmrg predeps \ 107467e6fb56fSmrg postdeps \ 107477e6fb56fSmrg compiler_lib_search_path \ 107487e6fb56fSmrg compiler_lib_search_dirs \ 107497e6fb56fSmrg archive_cmds \ 107507e6fb56fSmrg archive_expsym_cmds \ 107517e6fb56fSmrg postinstall_cmds \ 107527e6fb56fSmrg postuninstall_cmds \ 107537e6fb56fSmrg old_archive_from_expsyms_cmds \ 107547e6fb56fSmrg allow_undefined_flag \ 107557e6fb56fSmrg no_undefined_flag \ 107567e6fb56fSmrg export_symbols_cmds \ 107577e6fb56fSmrg hardcode_libdir_flag_spec \ 107587e6fb56fSmrg hardcode_libdir_flag_spec_ld \ 107597e6fb56fSmrg hardcode_libdir_separator \ 107607e6fb56fSmrg hardcode_automatic \ 107617e6fb56fSmrg module_cmds \ 107627e6fb56fSmrg module_expsym_cmds \ 107637e6fb56fSmrg lt_cv_prog_compiler_c_o \ 107647e6fb56fSmrg fix_srcfile_path \ 107657e6fb56fSmrg exclude_expsyms \ 107667e6fb56fSmrg include_expsyms; do 107677e6fb56fSmrg 107687e6fb56fSmrg case $var in 107697e6fb56fSmrg old_archive_cmds | \ 107707e6fb56fSmrg old_archive_from_new_cmds | \ 107717e6fb56fSmrg archive_cmds | \ 107727e6fb56fSmrg archive_expsym_cmds | \ 107737e6fb56fSmrg module_cmds | \ 107747e6fb56fSmrg module_expsym_cmds | \ 107757e6fb56fSmrg old_archive_from_expsyms_cmds | \ 107767e6fb56fSmrg export_symbols_cmds | \ 107777e6fb56fSmrg extract_expsyms_cmds | reload_cmds | finish_cmds | \ 107787e6fb56fSmrg postinstall_cmds | postuninstall_cmds | \ 107797e6fb56fSmrg old_postinstall_cmds | old_postuninstall_cmds | \ 107807e6fb56fSmrg sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 107817e6fb56fSmrg # Double-quote double-evaled strings. 107827e6fb56fSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 107837e6fb56fSmrg ;; 107847e6fb56fSmrg *) 107857e6fb56fSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 107867e6fb56fSmrg ;; 107877e6fb56fSmrg esac 107887e6fb56fSmrg done 107897e6fb56fSmrg 107907e6fb56fSmrg case $lt_echo in 107917e6fb56fSmrg *'\$0 --fallback-echo"') 107927e6fb56fSmrg lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 107937e6fb56fSmrg ;; 107947e6fb56fSmrg esac 107957e6fb56fSmrg 107967e6fb56fSmrgcfgfile="${ofile}T" 107977e6fb56fSmrg trap "$rm \"$cfgfile\"; exit 1" 1 2 15 107987e6fb56fSmrg $rm -f "$cfgfile" 107997e6fb56fSmrg { $as_echo "$as_me:$LINENO: creating $ofile" >&5 108007e6fb56fSmrg$as_echo "$as_me: creating $ofile" >&6;} 108017e6fb56fSmrg 108027e6fb56fSmrg cat <<__EOF__ >> "$cfgfile" 108037e6fb56fSmrg#! $SHELL 108047e6fb56fSmrg 108057e6fb56fSmrg# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 108067e6fb56fSmrg# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 108077e6fb56fSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 108087e6fb56fSmrg# 108097e6fb56fSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 108107e6fb56fSmrg# Free Software Foundation, Inc. 108117e6fb56fSmrg# 108127e6fb56fSmrg# This file is part of GNU Libtool: 108137e6fb56fSmrg# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 108147e6fb56fSmrg# 108157e6fb56fSmrg# This program is free software; you can redistribute it and/or modify 108167e6fb56fSmrg# it under the terms of the GNU General Public License as published by 108177e6fb56fSmrg# the Free Software Foundation; either version 2 of the License, or 108187e6fb56fSmrg# (at your option) any later version. 108197e6fb56fSmrg# 108207e6fb56fSmrg# This program is distributed in the hope that it will be useful, but 108217e6fb56fSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 108227e6fb56fSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 108237e6fb56fSmrg# General Public License for more details. 108247e6fb56fSmrg# 108257e6fb56fSmrg# You should have received a copy of the GNU General Public License 108267e6fb56fSmrg# along with this program; if not, write to the Free Software 108277e6fb56fSmrg# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 108287e6fb56fSmrg# 108297e6fb56fSmrg# As a special exception to the GNU General Public License, if you 108307e6fb56fSmrg# distribute this file as part of a program that contains a 108317e6fb56fSmrg# configuration script generated by Autoconf, you may include it under 108327e6fb56fSmrg# the same distribution terms that you use for the rest of that program. 108337e6fb56fSmrg 108347e6fb56fSmrg# A sed program that does not truncate output. 108357e6fb56fSmrgSED=$lt_SED 108367e6fb56fSmrg 108377e6fb56fSmrg# Sed that helps us avoid accidentally triggering echo(1) options like -n. 108387e6fb56fSmrgXsed="$SED -e 1s/^X//" 108397e6fb56fSmrg 108407e6fb56fSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 108417e6fb56fSmrg# if CDPATH is set. 108427e6fb56fSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 108437e6fb56fSmrg 108447e6fb56fSmrg# The names of the tagged configurations supported by this script. 108457e6fb56fSmrgavailable_tags= 108467e6fb56fSmrg 108477e6fb56fSmrg# ### BEGIN LIBTOOL CONFIG 108487e6fb56fSmrg 108497e6fb56fSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 108507e6fb56fSmrg 108517e6fb56fSmrg# Shell to use when invoking shell scripts. 108527e6fb56fSmrgSHELL=$lt_SHELL 108537e6fb56fSmrg 108547e6fb56fSmrg# Whether or not to build shared libraries. 108557e6fb56fSmrgbuild_libtool_libs=$enable_shared 108567e6fb56fSmrg 108577e6fb56fSmrg# Whether or not to build static libraries. 108587e6fb56fSmrgbuild_old_libs=$enable_static 108597e6fb56fSmrg 108607e6fb56fSmrg# Whether or not to add -lc for building shared libraries. 108617e6fb56fSmrgbuild_libtool_need_lc=$archive_cmds_need_lc 108627e6fb56fSmrg 108637e6fb56fSmrg# Whether or not to disallow shared libs when runtime libs are static 108647e6fb56fSmrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 108657e6fb56fSmrg 108667e6fb56fSmrg# Whether or not to optimize for fast installation. 108677e6fb56fSmrgfast_install=$enable_fast_install 108687e6fb56fSmrg 108697e6fb56fSmrg# The host system. 108707e6fb56fSmrghost_alias=$host_alias 108717e6fb56fSmrghost=$host 108727e6fb56fSmrghost_os=$host_os 108737e6fb56fSmrg 108747e6fb56fSmrg# The build system. 108757e6fb56fSmrgbuild_alias=$build_alias 108767e6fb56fSmrgbuild=$build 108777e6fb56fSmrgbuild_os=$build_os 108787e6fb56fSmrg 108797e6fb56fSmrg# An echo program that does not interpret backslashes. 108807e6fb56fSmrgecho=$lt_echo 108817e6fb56fSmrg 108827e6fb56fSmrg# The archiver. 108837e6fb56fSmrgAR=$lt_AR 108847e6fb56fSmrgAR_FLAGS=$lt_AR_FLAGS 108857e6fb56fSmrg 108867e6fb56fSmrg# A C compiler. 108877e6fb56fSmrgLTCC=$lt_LTCC 108887e6fb56fSmrg 108897e6fb56fSmrg# LTCC compiler flags. 108907e6fb56fSmrgLTCFLAGS=$lt_LTCFLAGS 108917e6fb56fSmrg 108927e6fb56fSmrg# A language-specific compiler. 108937e6fb56fSmrgCC=$lt_compiler 108947e6fb56fSmrg 108957e6fb56fSmrg# Is the compiler the GNU C compiler? 108967e6fb56fSmrgwith_gcc=$GCC 108977e6fb56fSmrg 108987e6fb56fSmrg# An ERE matcher. 108997e6fb56fSmrgEGREP=$lt_EGREP 109007e6fb56fSmrg 109017e6fb56fSmrg# The linker used to build libraries. 109027e6fb56fSmrgLD=$lt_LD 109037e6fb56fSmrg 109047e6fb56fSmrg# Whether we need hard or soft links. 109057e6fb56fSmrgLN_S=$lt_LN_S 109067e6fb56fSmrg 109077e6fb56fSmrg# A BSD-compatible nm program. 109087e6fb56fSmrgNM=$lt_NM 109097e6fb56fSmrg 109107e6fb56fSmrg# A symbol stripping program 109117e6fb56fSmrgSTRIP=$lt_STRIP 109127e6fb56fSmrg 109137e6fb56fSmrg# Used to examine libraries when file_magic_cmd begins "file" 109147e6fb56fSmrgMAGIC_CMD=$MAGIC_CMD 109157e6fb56fSmrg 109167e6fb56fSmrg# Used on cygwin: DLL creation program. 109177e6fb56fSmrgDLLTOOL="$DLLTOOL" 109187e6fb56fSmrg 109197e6fb56fSmrg# Used on cygwin: object dumper. 109207e6fb56fSmrgOBJDUMP="$OBJDUMP" 109217e6fb56fSmrg 109227e6fb56fSmrg# Used on cygwin: assembler. 109237e6fb56fSmrgAS="$AS" 109247e6fb56fSmrg 109257e6fb56fSmrg# The name of the directory that contains temporary libtool files. 109267e6fb56fSmrgobjdir=$objdir 109277e6fb56fSmrg 109287e6fb56fSmrg# How to create reloadable object files. 109297e6fb56fSmrgreload_flag=$lt_reload_flag 109307e6fb56fSmrgreload_cmds=$lt_reload_cmds 109317e6fb56fSmrg 109327e6fb56fSmrg# How to pass a linker flag through the compiler. 109337e6fb56fSmrgwl=$lt_lt_prog_compiler_wl 109347e6fb56fSmrg 109357e6fb56fSmrg# Object file suffix (normally "o"). 109367e6fb56fSmrgobjext="$ac_objext" 109377e6fb56fSmrg 109387e6fb56fSmrg# Old archive suffix (normally "a"). 109397e6fb56fSmrglibext="$libext" 109407e6fb56fSmrg 109417e6fb56fSmrg# Shared library suffix (normally ".so"). 109427e6fb56fSmrgshrext_cmds='$shrext_cmds' 109437e6fb56fSmrg 109447e6fb56fSmrg# Executable file suffix (normally ""). 109457e6fb56fSmrgexeext="$exeext" 109467e6fb56fSmrg 109477e6fb56fSmrg# Additional compiler flags for building library objects. 109487e6fb56fSmrgpic_flag=$lt_lt_prog_compiler_pic 109497e6fb56fSmrgpic_mode=$pic_mode 109507e6fb56fSmrg 109517e6fb56fSmrg# What is the maximum length of a command? 109527e6fb56fSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 109537e6fb56fSmrg 109547e6fb56fSmrg# Does compiler simultaneously support -c and -o options? 109557e6fb56fSmrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o 109567e6fb56fSmrg 109577e6fb56fSmrg# Must we lock files when doing compilation? 109587e6fb56fSmrgneed_locks=$lt_need_locks 109597e6fb56fSmrg 109607e6fb56fSmrg# Do we need the lib prefix for modules? 109617e6fb56fSmrgneed_lib_prefix=$need_lib_prefix 109627e6fb56fSmrg 109637e6fb56fSmrg# Do we need a version for libraries? 109647e6fb56fSmrgneed_version=$need_version 109657e6fb56fSmrg 109667e6fb56fSmrg# Whether dlopen is supported. 109677e6fb56fSmrgdlopen_support=$enable_dlopen 109687e6fb56fSmrg 109697e6fb56fSmrg# Whether dlopen of programs is supported. 109707e6fb56fSmrgdlopen_self=$enable_dlopen_self 109717e6fb56fSmrg 109727e6fb56fSmrg# Whether dlopen of statically linked programs is supported. 109737e6fb56fSmrgdlopen_self_static=$enable_dlopen_self_static 109747e6fb56fSmrg 109757e6fb56fSmrg# Compiler flag to prevent dynamic linking. 109767e6fb56fSmrglink_static_flag=$lt_lt_prog_compiler_static 109777e6fb56fSmrg 109787e6fb56fSmrg# Compiler flag to turn off builtin functions. 109797e6fb56fSmrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 109807e6fb56fSmrg 109817e6fb56fSmrg# Compiler flag to allow reflexive dlopens. 109827e6fb56fSmrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec 109837e6fb56fSmrg 109847e6fb56fSmrg# Compiler flag to generate shared objects directly from archives. 109857e6fb56fSmrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec 109867e6fb56fSmrg 109877e6fb56fSmrg# Compiler flag to generate thread-safe objects. 109887e6fb56fSmrgthread_safe_flag_spec=$lt_thread_safe_flag_spec 109897e6fb56fSmrg 109907e6fb56fSmrg# Library versioning type. 109917e6fb56fSmrgversion_type=$version_type 109927e6fb56fSmrg 109937e6fb56fSmrg# Format of library name prefix. 109947e6fb56fSmrglibname_spec=$lt_libname_spec 109957e6fb56fSmrg 109967e6fb56fSmrg# List of archive names. First name is the real one, the rest are links. 109977e6fb56fSmrg# The last name is the one that the linker finds with -lNAME. 109987e6fb56fSmrglibrary_names_spec=$lt_library_names_spec 109997e6fb56fSmrg 110007e6fb56fSmrg# The coded name of the library, if different from the real name. 110017e6fb56fSmrgsoname_spec=$lt_soname_spec 110027e6fb56fSmrg 110037e6fb56fSmrg# Commands used to build and install an old-style archive. 110047e6fb56fSmrgRANLIB=$lt_RANLIB 110057e6fb56fSmrgold_archive_cmds=$lt_old_archive_cmds 110067e6fb56fSmrgold_postinstall_cmds=$lt_old_postinstall_cmds 110077e6fb56fSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 110087e6fb56fSmrg 110097e6fb56fSmrg# Create an old-style archive from a shared archive. 110107e6fb56fSmrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds 110117e6fb56fSmrg 110127e6fb56fSmrg# Create a temporary old-style archive to link instead of a shared archive. 110137e6fb56fSmrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 110147e6fb56fSmrg 110157e6fb56fSmrg# Commands used to build and install a shared archive. 110167e6fb56fSmrgarchive_cmds=$lt_archive_cmds 110177e6fb56fSmrgarchive_expsym_cmds=$lt_archive_expsym_cmds 110187e6fb56fSmrgpostinstall_cmds=$lt_postinstall_cmds 110197e6fb56fSmrgpostuninstall_cmds=$lt_postuninstall_cmds 110207e6fb56fSmrg 110217e6fb56fSmrg# Commands used to build a loadable module (assumed same as above if empty) 110227e6fb56fSmrgmodule_cmds=$lt_module_cmds 110237e6fb56fSmrgmodule_expsym_cmds=$lt_module_expsym_cmds 110247e6fb56fSmrg 110257e6fb56fSmrg# Commands to strip libraries. 110267e6fb56fSmrgold_striplib=$lt_old_striplib 110277e6fb56fSmrgstriplib=$lt_striplib 110287e6fb56fSmrg 110297e6fb56fSmrg# Dependencies to place before the objects being linked to create a 110307e6fb56fSmrg# shared library. 110317e6fb56fSmrgpredep_objects=$lt_predep_objects 110327e6fb56fSmrg 110337e6fb56fSmrg# Dependencies to place after the objects being linked to create a 110347e6fb56fSmrg# shared library. 110357e6fb56fSmrgpostdep_objects=$lt_postdep_objects 110367e6fb56fSmrg 110377e6fb56fSmrg# Dependencies to place before the objects being linked to create a 110387e6fb56fSmrg# shared library. 110397e6fb56fSmrgpredeps=$lt_predeps 110407e6fb56fSmrg 110417e6fb56fSmrg# Dependencies to place after the objects being linked to create a 110427e6fb56fSmrg# shared library. 110437e6fb56fSmrgpostdeps=$lt_postdeps 110447e6fb56fSmrg 110457e6fb56fSmrg# The directories searched by this compiler when creating a shared 110467e6fb56fSmrg# library 110477e6fb56fSmrgcompiler_lib_search_dirs=$lt_compiler_lib_search_dirs 110487e6fb56fSmrg 110497e6fb56fSmrg# The library search path used internally by the compiler when linking 110507e6fb56fSmrg# a shared library. 110517e6fb56fSmrgcompiler_lib_search_path=$lt_compiler_lib_search_path 110527e6fb56fSmrg 110537e6fb56fSmrg# Method to check whether dependent libraries are shared objects. 110547e6fb56fSmrgdeplibs_check_method=$lt_deplibs_check_method 110557e6fb56fSmrg 110567e6fb56fSmrg# Command to use when deplibs_check_method == file_magic. 110577e6fb56fSmrgfile_magic_cmd=$lt_file_magic_cmd 110587e6fb56fSmrg 110597e6fb56fSmrg# Flag that allows shared libraries with undefined symbols to be built. 110607e6fb56fSmrgallow_undefined_flag=$lt_allow_undefined_flag 110617e6fb56fSmrg 110627e6fb56fSmrg# Flag that forces no undefined symbols. 110637e6fb56fSmrgno_undefined_flag=$lt_no_undefined_flag 110647e6fb56fSmrg 110657e6fb56fSmrg# Commands used to finish a libtool library installation in a directory. 110667e6fb56fSmrgfinish_cmds=$lt_finish_cmds 110677e6fb56fSmrg 110687e6fb56fSmrg# Same as above, but a single script fragment to be evaled but not shown. 110697e6fb56fSmrgfinish_eval=$lt_finish_eval 110707e6fb56fSmrg 110717e6fb56fSmrg# Take the output of nm and produce a listing of raw symbols and C names. 110727e6fb56fSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 110737e6fb56fSmrg 110747e6fb56fSmrg# Transform the output of nm in a proper C declaration 110757e6fb56fSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 110767e6fb56fSmrg 110777e6fb56fSmrg# Transform the output of nm in a C name address pair 110787e6fb56fSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 110797e6fb56fSmrg 110807e6fb56fSmrg# This is the shared library runtime path variable. 110817e6fb56fSmrgrunpath_var=$runpath_var 110827e6fb56fSmrg 110837e6fb56fSmrg# This is the shared library path variable. 110847e6fb56fSmrgshlibpath_var=$shlibpath_var 110857e6fb56fSmrg 110867e6fb56fSmrg# Is shlibpath searched before the hard-coded library search path? 110877e6fb56fSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 110887e6fb56fSmrg 110897e6fb56fSmrg# How to hardcode a shared library path into an executable. 110907e6fb56fSmrghardcode_action=$hardcode_action 110917e6fb56fSmrg 110927e6fb56fSmrg# Whether we should hardcode library paths into libraries. 110937e6fb56fSmrghardcode_into_libs=$hardcode_into_libs 110947e6fb56fSmrg 110957e6fb56fSmrg# Flag to hardcode \$libdir into a binary during linking. 110967e6fb56fSmrg# This must work even if \$libdir does not exist. 110977e6fb56fSmrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 110987e6fb56fSmrg 110997e6fb56fSmrg# If ld is used when linking, flag to hardcode \$libdir into 111007e6fb56fSmrg# a binary during linking. This must work even if \$libdir does 111017e6fb56fSmrg# not exist. 111027e6fb56fSmrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 111037e6fb56fSmrg 111047e6fb56fSmrg# Whether we need a single -rpath flag with a separated argument. 111057e6fb56fSmrghardcode_libdir_separator=$lt_hardcode_libdir_separator 111067e6fb56fSmrg 111077e6fb56fSmrg# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 111087e6fb56fSmrg# resulting binary. 111097e6fb56fSmrghardcode_direct=$hardcode_direct 111107e6fb56fSmrg 111117e6fb56fSmrg# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 111127e6fb56fSmrg# resulting binary. 111137e6fb56fSmrghardcode_minus_L=$hardcode_minus_L 111147e6fb56fSmrg 111157e6fb56fSmrg# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 111167e6fb56fSmrg# the resulting binary. 111177e6fb56fSmrghardcode_shlibpath_var=$hardcode_shlibpath_var 111187e6fb56fSmrg 111197e6fb56fSmrg# Set to yes if building a shared library automatically hardcodes DIR into the library 111207e6fb56fSmrg# and all subsequent libraries and executables linked against it. 111217e6fb56fSmrghardcode_automatic=$hardcode_automatic 111227e6fb56fSmrg 111237e6fb56fSmrg# Variables whose values should be saved in libtool wrapper scripts and 111247e6fb56fSmrg# restored at relink time. 111257e6fb56fSmrgvariables_saved_for_relink="$variables_saved_for_relink" 111267e6fb56fSmrg 111277e6fb56fSmrg# Whether libtool must link a program against all its dependency libraries. 111287e6fb56fSmrglink_all_deplibs=$link_all_deplibs 111297e6fb56fSmrg 111307e6fb56fSmrg# Compile-time system search path for libraries 111317e6fb56fSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 111327e6fb56fSmrg 111337e6fb56fSmrg# Run-time system search path for libraries 111347e6fb56fSmrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 111357e6fb56fSmrg 111367e6fb56fSmrg# Fix the shell variable \$srcfile for the compiler. 111377e6fb56fSmrgfix_srcfile_path=$lt_fix_srcfile_path 111387e6fb56fSmrg 111397e6fb56fSmrg# Set to yes if exported symbols are required. 111407e6fb56fSmrgalways_export_symbols=$always_export_symbols 111417e6fb56fSmrg 111427e6fb56fSmrg# The commands to list exported symbols. 111437e6fb56fSmrgexport_symbols_cmds=$lt_export_symbols_cmds 111447e6fb56fSmrg 111457e6fb56fSmrg# The commands to extract the exported symbol list from a shared archive. 111467e6fb56fSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 111477e6fb56fSmrg 111487e6fb56fSmrg# Symbols that should not be listed in the preloaded symbols. 111497e6fb56fSmrgexclude_expsyms=$lt_exclude_expsyms 111507e6fb56fSmrg 111517e6fb56fSmrg# Symbols that must always be exported. 111527e6fb56fSmrginclude_expsyms=$lt_include_expsyms 111537e6fb56fSmrg 111547e6fb56fSmrg# ### END LIBTOOL CONFIG 111557e6fb56fSmrg 111567e6fb56fSmrg__EOF__ 111577e6fb56fSmrg 111587e6fb56fSmrg 111597e6fb56fSmrg case $host_os in 111607e6fb56fSmrg aix3*) 111617e6fb56fSmrg cat <<\EOF >> "$cfgfile" 111627e6fb56fSmrg 111637e6fb56fSmrg# AIX sometimes has problems with the GCC collect2 program. For some 111647e6fb56fSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 111657e6fb56fSmrg# vanish in a puff of smoke. 111667e6fb56fSmrgif test "X${COLLECT_NAMES+set}" != Xset; then 111677e6fb56fSmrg COLLECT_NAMES= 111687e6fb56fSmrg export COLLECT_NAMES 111697e6fb56fSmrgfi 111707e6fb56fSmrgEOF 111717e6fb56fSmrg ;; 111727e6fb56fSmrg esac 111737e6fb56fSmrg 111747e6fb56fSmrg # We use sed instead of cat because bash on DJGPP gets confused if 111757e6fb56fSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 111767e6fb56fSmrg # text mode, it properly converts lines to CR/LF. This bash problem 111777e6fb56fSmrg # is reportedly fixed, but why not run on old versions too? 111787e6fb56fSmrg sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 111797e6fb56fSmrg 111807e6fb56fSmrg mv -f "$cfgfile" "$ofile" || \ 111817e6fb56fSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 111827e6fb56fSmrg chmod +x "$ofile" 111837e6fb56fSmrg 111847e6fb56fSmrgelse 111857e6fb56fSmrg # If there is no Makefile yet, we rely on a make rule to execute 111867e6fb56fSmrg # `config.status --recheck' to rerun these tests and create the 111877e6fb56fSmrg # libtool script then. 111887e6fb56fSmrg ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 111897e6fb56fSmrg if test -f "$ltmain_in"; then 111907e6fb56fSmrg test -f Makefile && make "$ltmain" 111917e6fb56fSmrg fi 111927e6fb56fSmrgfi 111937e6fb56fSmrg 111947e6fb56fSmrg 111957e6fb56fSmrgac_ext=c 111967e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 111977e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 111987e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 111997e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 112007e6fb56fSmrg 112017e6fb56fSmrgCC="$lt_save_CC" 112027e6fb56fSmrg 112037e6fb56fSmrg 112047e6fb56fSmrg# Check whether --with-tags was given. 112057e6fb56fSmrgif test "${with_tags+set}" = set; then 112067e6fb56fSmrg withval=$with_tags; tagnames="$withval" 112077e6fb56fSmrgfi 112087e6fb56fSmrg 112097e6fb56fSmrg 112107e6fb56fSmrgif test -f "$ltmain" && test -n "$tagnames"; then 112117e6fb56fSmrg if test ! -f "${ofile}"; then 112127e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 112137e6fb56fSmrg$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 112147e6fb56fSmrg fi 112157e6fb56fSmrg 112167e6fb56fSmrg if test -z "$LTCC"; then 112177e6fb56fSmrg eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 112187e6fb56fSmrg if test -z "$LTCC"; then 112197e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 112207e6fb56fSmrg$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 112217e6fb56fSmrg else 112227e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 112237e6fb56fSmrg$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 112247e6fb56fSmrg fi 112257e6fb56fSmrg fi 112267e6fb56fSmrg if test -z "$LTCFLAGS"; then 112277e6fb56fSmrg eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 112287e6fb56fSmrg fi 112297e6fb56fSmrg 112307e6fb56fSmrg # Extract list of available tagged configurations in $ofile. 112317e6fb56fSmrg # Note that this assumes the entire list is on one line. 112327e6fb56fSmrg available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 112337e6fb56fSmrg 112347e6fb56fSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 112357e6fb56fSmrg for tagname in $tagnames; do 112367e6fb56fSmrg IFS="$lt_save_ifs" 112377e6fb56fSmrg # Check whether tagname contains only valid characters 112387e6fb56fSmrg case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 112397e6fb56fSmrg "") ;; 112407e6fb56fSmrg *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 112417e6fb56fSmrg$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 112427e6fb56fSmrg { (exit 1); exit 1; }; } 112437e6fb56fSmrg ;; 112447e6fb56fSmrg esac 112457e6fb56fSmrg 112467e6fb56fSmrg if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 112477e6fb56fSmrg then 112487e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 112497e6fb56fSmrg$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 112507e6fb56fSmrg { (exit 1); exit 1; }; } 112517e6fb56fSmrg fi 112527e6fb56fSmrg 112537e6fb56fSmrg # Update the list of available tags. 112547e6fb56fSmrg if test -n "$tagname"; then 112557e6fb56fSmrg echo appending configuration tag \"$tagname\" to $ofile 112567e6fb56fSmrg 112577e6fb56fSmrg case $tagname in 112587e6fb56fSmrg CXX) 112597e6fb56fSmrg if test -n "$CXX" && ( test "X$CXX" != "Xno" && 112607e6fb56fSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 112617e6fb56fSmrg (test "X$CXX" != "Xg++"))) ; then 112627e6fb56fSmrg ac_ext=cpp 112637e6fb56fSmrgac_cpp='$CXXCPP $CPPFLAGS' 112647e6fb56fSmrgac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 112657e6fb56fSmrgac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 112667e6fb56fSmrgac_compiler_gnu=$ac_cv_cxx_compiler_gnu 112677e6fb56fSmrg 112687e6fb56fSmrg 112697e6fb56fSmrg 112707e6fb56fSmrg 112717e6fb56fSmrgarchive_cmds_need_lc_CXX=no 112727e6fb56fSmrgallow_undefined_flag_CXX= 112737e6fb56fSmrgalways_export_symbols_CXX=no 112747e6fb56fSmrgarchive_expsym_cmds_CXX= 112757e6fb56fSmrgexport_dynamic_flag_spec_CXX= 112767e6fb56fSmrghardcode_direct_CXX=no 112777e6fb56fSmrghardcode_libdir_flag_spec_CXX= 112787e6fb56fSmrghardcode_libdir_flag_spec_ld_CXX= 112797e6fb56fSmrghardcode_libdir_separator_CXX= 112807e6fb56fSmrghardcode_minus_L_CXX=no 112817e6fb56fSmrghardcode_shlibpath_var_CXX=unsupported 112827e6fb56fSmrghardcode_automatic_CXX=no 112837e6fb56fSmrgmodule_cmds_CXX= 112847e6fb56fSmrgmodule_expsym_cmds_CXX= 112857e6fb56fSmrglink_all_deplibs_CXX=unknown 112867e6fb56fSmrgold_archive_cmds_CXX=$old_archive_cmds 112877e6fb56fSmrgno_undefined_flag_CXX= 112887e6fb56fSmrgwhole_archive_flag_spec_CXX= 112897e6fb56fSmrgenable_shared_with_static_runtimes_CXX=no 112907e6fb56fSmrg 112917e6fb56fSmrg# Dependencies to place before and after the object being linked: 112927e6fb56fSmrgpredep_objects_CXX= 112937e6fb56fSmrgpostdep_objects_CXX= 112947e6fb56fSmrgpredeps_CXX= 112957e6fb56fSmrgpostdeps_CXX= 112967e6fb56fSmrgcompiler_lib_search_path_CXX= 112977e6fb56fSmrgcompiler_lib_search_dirs_CXX= 112987e6fb56fSmrg 112997e6fb56fSmrg# Source file extension for C++ test sources. 113007e6fb56fSmrgac_ext=cpp 113017e6fb56fSmrg 113027e6fb56fSmrg# Object file extension for compiled C++ test sources. 113037e6fb56fSmrgobjext=o 113047e6fb56fSmrgobjext_CXX=$objext 113057e6fb56fSmrg 113067e6fb56fSmrg# Code to be used in simple compile tests 113077e6fb56fSmrglt_simple_compile_test_code="int some_variable = 0;" 113087e6fb56fSmrg 113097e6fb56fSmrg# Code to be used in simple link tests 113107e6fb56fSmrglt_simple_link_test_code='int main(int, char *[]) { return(0); }' 113117e6fb56fSmrg 113127e6fb56fSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 113137e6fb56fSmrg 113147e6fb56fSmrg# If no C compiler was specified, use CC. 113157e6fb56fSmrgLTCC=${LTCC-"$CC"} 113167e6fb56fSmrg 113177e6fb56fSmrg# If no C compiler flags were specified, use CFLAGS. 113187e6fb56fSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 113197e6fb56fSmrg 113207e6fb56fSmrg# Allow CC to be a program name with arguments. 113217e6fb56fSmrgcompiler=$CC 113227e6fb56fSmrg 113237e6fb56fSmrg 113247e6fb56fSmrg# save warnings/boilerplate of simple test code 113257e6fb56fSmrgac_outfile=conftest.$ac_objext 113267e6fb56fSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 113277e6fb56fSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 113287e6fb56fSmrg_lt_compiler_boilerplate=`cat conftest.err` 113297e6fb56fSmrg$rm conftest* 113307e6fb56fSmrg 113317e6fb56fSmrgac_outfile=conftest.$ac_objext 113327e6fb56fSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 113337e6fb56fSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 113347e6fb56fSmrg_lt_linker_boilerplate=`cat conftest.err` 113357e6fb56fSmrg$rm -r conftest* 113367e6fb56fSmrg 113377e6fb56fSmrg 113387e6fb56fSmrg# Allow CC to be a program name with arguments. 113397e6fb56fSmrglt_save_CC=$CC 113407e6fb56fSmrglt_save_LD=$LD 113417e6fb56fSmrglt_save_GCC=$GCC 113427e6fb56fSmrgGCC=$GXX 113437e6fb56fSmrglt_save_with_gnu_ld=$with_gnu_ld 113447e6fb56fSmrglt_save_path_LD=$lt_cv_path_LD 113457e6fb56fSmrgif test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 113467e6fb56fSmrg lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 113477e6fb56fSmrgelse 113487e6fb56fSmrg $as_unset lt_cv_prog_gnu_ld 113497e6fb56fSmrgfi 113507e6fb56fSmrgif test -n "${lt_cv_path_LDCXX+set}"; then 113517e6fb56fSmrg lt_cv_path_LD=$lt_cv_path_LDCXX 113527e6fb56fSmrgelse 113537e6fb56fSmrg $as_unset lt_cv_path_LD 113547e6fb56fSmrgfi 113557e6fb56fSmrgtest -z "${LDCXX+set}" || LD=$LDCXX 113567e6fb56fSmrgCC=${CXX-"c++"} 113577e6fb56fSmrgcompiler=$CC 113587e6fb56fSmrgcompiler_CXX=$CC 113597e6fb56fSmrgfor cc_temp in $compiler""; do 113607e6fb56fSmrg case $cc_temp in 113617e6fb56fSmrg compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 113627e6fb56fSmrg distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 113637e6fb56fSmrg \-*) ;; 113647e6fb56fSmrg *) break;; 113657e6fb56fSmrg esac 113667e6fb56fSmrgdone 113677e6fb56fSmrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 113687e6fb56fSmrg 113697e6fb56fSmrg 113707e6fb56fSmrg# We don't want -fno-exception wen compiling C++ code, so set the 113717e6fb56fSmrg# no_builtin_flag separately 113727e6fb56fSmrgif test "$GXX" = yes; then 113737e6fb56fSmrg lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 113747e6fb56fSmrgelse 113757e6fb56fSmrg lt_prog_compiler_no_builtin_flag_CXX= 113767e6fb56fSmrgfi 113777e6fb56fSmrg 113787e6fb56fSmrgif test "$GXX" = yes; then 113797e6fb56fSmrg # Set up default GNU C++ configuration 113807e6fb56fSmrg 113817e6fb56fSmrg 113827e6fb56fSmrg# Check whether --with-gnu-ld was given. 113837e6fb56fSmrgif test "${with_gnu_ld+set}" = set; then 113847e6fb56fSmrg withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 113857e6fb56fSmrgelse 113867e6fb56fSmrg with_gnu_ld=no 113877e6fb56fSmrgfi 113887e6fb56fSmrg 113897e6fb56fSmrgac_prog=ld 113907e6fb56fSmrgif test "$GCC" = yes; then 113917e6fb56fSmrg # Check if gcc -print-prog-name=ld gives a path. 113927e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 113937e6fb56fSmrg$as_echo_n "checking for ld used by $CC... " >&6; } 113947e6fb56fSmrg case $host in 113957e6fb56fSmrg *-*-mingw*) 113967e6fb56fSmrg # gcc leaves a trailing carriage return which upsets mingw 113977e6fb56fSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 113987e6fb56fSmrg *) 113997e6fb56fSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 114007e6fb56fSmrg esac 114017e6fb56fSmrg case $ac_prog in 114027e6fb56fSmrg # Accept absolute paths. 114037e6fb56fSmrg [\\/]* | ?:[\\/]*) 114047e6fb56fSmrg re_direlt='/[^/][^/]*/\.\./' 114057e6fb56fSmrg # Canonicalize the pathname of ld 114067e6fb56fSmrg ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 114077e6fb56fSmrg while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 114087e6fb56fSmrg ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 114097e6fb56fSmrg done 114107e6fb56fSmrg test -z "$LD" && LD="$ac_prog" 114117e6fb56fSmrg ;; 114127e6fb56fSmrg "") 114137e6fb56fSmrg # If it fails, then pretend we aren't using GCC. 114147e6fb56fSmrg ac_prog=ld 114157e6fb56fSmrg ;; 114167e6fb56fSmrg *) 114177e6fb56fSmrg # If it is relative, then search for the first ld in PATH. 114187e6fb56fSmrg with_gnu_ld=unknown 114197e6fb56fSmrg ;; 114207e6fb56fSmrg esac 114217e6fb56fSmrgelif test "$with_gnu_ld" = yes; then 114227e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 114237e6fb56fSmrg$as_echo_n "checking for GNU ld... " >&6; } 114247e6fb56fSmrgelse 114257e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 114267e6fb56fSmrg$as_echo_n "checking for non-GNU ld... " >&6; } 114277e6fb56fSmrgfi 114287e6fb56fSmrgif test "${lt_cv_path_LD+set}" = set; then 114297e6fb56fSmrg $as_echo_n "(cached) " >&6 114307e6fb56fSmrgelse 114317e6fb56fSmrg if test -z "$LD"; then 114327e6fb56fSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 114337e6fb56fSmrg for ac_dir in $PATH; do 114347e6fb56fSmrg IFS="$lt_save_ifs" 114357e6fb56fSmrg test -z "$ac_dir" && ac_dir=. 114367e6fb56fSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 114377e6fb56fSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 114387e6fb56fSmrg # Check to see if the program is GNU ld. I'd rather use --version, 114397e6fb56fSmrg # but apparently some variants of GNU ld only accept -v. 114407e6fb56fSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 114417e6fb56fSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 114427e6fb56fSmrg *GNU* | *'with BFD'*) 114437e6fb56fSmrg test "$with_gnu_ld" != no && break 114447e6fb56fSmrg ;; 114457e6fb56fSmrg *) 114467e6fb56fSmrg test "$with_gnu_ld" != yes && break 114477e6fb56fSmrg ;; 114487e6fb56fSmrg esac 114497e6fb56fSmrg fi 114507e6fb56fSmrg done 114517e6fb56fSmrg IFS="$lt_save_ifs" 114527e6fb56fSmrgelse 114537e6fb56fSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 114547e6fb56fSmrgfi 114557e6fb56fSmrgfi 114567e6fb56fSmrg 114577e6fb56fSmrgLD="$lt_cv_path_LD" 114587e6fb56fSmrgif test -n "$LD"; then 114597e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $LD" >&5 114607e6fb56fSmrg$as_echo "$LD" >&6; } 114617e6fb56fSmrgelse 114627e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 114637e6fb56fSmrg$as_echo "no" >&6; } 114647e6fb56fSmrgfi 114657e6fb56fSmrgtest -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 114667e6fb56fSmrg$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 114677e6fb56fSmrg { (exit 1); exit 1; }; } 114687e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 114697e6fb56fSmrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 114707e6fb56fSmrgif test "${lt_cv_prog_gnu_ld+set}" = set; then 114717e6fb56fSmrg $as_echo_n "(cached) " >&6 114727e6fb56fSmrgelse 114737e6fb56fSmrg # I'd rather use --version here, but apparently some GNU lds only accept -v. 114747e6fb56fSmrgcase `$LD -v 2>&1 </dev/null` in 114757e6fb56fSmrg*GNU* | *'with BFD'*) 114767e6fb56fSmrg lt_cv_prog_gnu_ld=yes 114777e6fb56fSmrg ;; 114787e6fb56fSmrg*) 114797e6fb56fSmrg lt_cv_prog_gnu_ld=no 114807e6fb56fSmrg ;; 114817e6fb56fSmrgesac 114827e6fb56fSmrgfi 114837e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 114847e6fb56fSmrg$as_echo "$lt_cv_prog_gnu_ld" >&6; } 114857e6fb56fSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 114867e6fb56fSmrg 114877e6fb56fSmrg 114887e6fb56fSmrg 114897e6fb56fSmrg # Check if GNU C++ uses GNU ld as the underlying linker, since the 114907e6fb56fSmrg # archiving commands below assume that GNU ld is being used. 114917e6fb56fSmrg if test "$with_gnu_ld" = yes; then 114927e6fb56fSmrg archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 114937e6fb56fSmrg archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 114947e6fb56fSmrg 114957e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 114967e6fb56fSmrg export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 114977e6fb56fSmrg 114987e6fb56fSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 114997e6fb56fSmrg # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 115007e6fb56fSmrg # investigate it a little bit more. (MM) 115017e6fb56fSmrg wlarc='${wl}' 115027e6fb56fSmrg 115037e6fb56fSmrg # ancient GNU ld didn't support --whole-archive et. al. 115047e6fb56fSmrg if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 115057e6fb56fSmrg grep 'no-whole-archive' > /dev/null; then 115067e6fb56fSmrg whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 115077e6fb56fSmrg else 115087e6fb56fSmrg whole_archive_flag_spec_CXX= 115097e6fb56fSmrg fi 115107e6fb56fSmrg else 115117e6fb56fSmrg with_gnu_ld=no 115127e6fb56fSmrg wlarc= 115137e6fb56fSmrg 115147e6fb56fSmrg # A generic and very simple default shared library creation 115157e6fb56fSmrg # command for GNU C++ for the case where it uses the native 115167e6fb56fSmrg # linker, instead of GNU ld. If possible, this setting should 115177e6fb56fSmrg # overridden to take advantage of the native linker features on 115187e6fb56fSmrg # the platform it is being used on. 115197e6fb56fSmrg archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 115207e6fb56fSmrg fi 115217e6fb56fSmrg 115227e6fb56fSmrg # Commands to make compiler produce verbose output that lists 115237e6fb56fSmrg # what "hidden" libraries, object files and flags are used when 115247e6fb56fSmrg # linking a shared library. 115257e6fb56fSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 115267e6fb56fSmrg 115277e6fb56fSmrgelse 115287e6fb56fSmrg GXX=no 115297e6fb56fSmrg with_gnu_ld=no 115307e6fb56fSmrg wlarc= 115317e6fb56fSmrgfi 115327e6fb56fSmrg 115337e6fb56fSmrg# PORTME: fill in a description of your system's C++ link characteristics 115347e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 115357e6fb56fSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 115367e6fb56fSmrgld_shlibs_CXX=yes 115377e6fb56fSmrgcase $host_os in 115387e6fb56fSmrg aix3*) 115397e6fb56fSmrg # FIXME: insert proper C++ library support 115407e6fb56fSmrg ld_shlibs_CXX=no 115417e6fb56fSmrg ;; 115427e6fb56fSmrg aix[4-9]*) 115437e6fb56fSmrg if test "$host_cpu" = ia64; then 115447e6fb56fSmrg # On IA64, the linker does run time linking by default, so we don't 115457e6fb56fSmrg # have to do anything special. 115467e6fb56fSmrg aix_use_runtimelinking=no 115477e6fb56fSmrg exp_sym_flag='-Bexport' 115487e6fb56fSmrg no_entry_flag="" 115497e6fb56fSmrg else 115507e6fb56fSmrg aix_use_runtimelinking=no 115517e6fb56fSmrg 115527e6fb56fSmrg # Test if we are trying to use run time linking or normal 115537e6fb56fSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 115547e6fb56fSmrg # need to do runtime linking. 115557e6fb56fSmrg case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 115567e6fb56fSmrg for ld_flag in $LDFLAGS; do 115577e6fb56fSmrg case $ld_flag in 115587e6fb56fSmrg *-brtl*) 115597e6fb56fSmrg aix_use_runtimelinking=yes 115607e6fb56fSmrg break 115617e6fb56fSmrg ;; 115627e6fb56fSmrg esac 115637e6fb56fSmrg done 115647e6fb56fSmrg ;; 115657e6fb56fSmrg esac 115667e6fb56fSmrg 115677e6fb56fSmrg exp_sym_flag='-bexport' 115687e6fb56fSmrg no_entry_flag='-bnoentry' 115697e6fb56fSmrg fi 115707e6fb56fSmrg 115717e6fb56fSmrg # When large executables or shared objects are built, AIX ld can 115727e6fb56fSmrg # have problems creating the table of contents. If linking a library 115737e6fb56fSmrg # or program results in "error TOC overflow" add -mminimal-toc to 115747e6fb56fSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 115757e6fb56fSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 115767e6fb56fSmrg 115777e6fb56fSmrg archive_cmds_CXX='' 115787e6fb56fSmrg hardcode_direct_CXX=yes 115797e6fb56fSmrg hardcode_libdir_separator_CXX=':' 115807e6fb56fSmrg link_all_deplibs_CXX=yes 115817e6fb56fSmrg 115827e6fb56fSmrg if test "$GXX" = yes; then 115837e6fb56fSmrg case $host_os in aix4.[012]|aix4.[012].*) 115847e6fb56fSmrg # We only want to do this on AIX 4.2 and lower, the check 115857e6fb56fSmrg # below for broken collect2 doesn't work under 4.3+ 115867e6fb56fSmrg collect2name=`${CC} -print-prog-name=collect2` 115877e6fb56fSmrg if test -f "$collect2name" && \ 115887e6fb56fSmrg strings "$collect2name" | grep resolve_lib_name >/dev/null 115897e6fb56fSmrg then 115907e6fb56fSmrg # We have reworked collect2 115917e6fb56fSmrg : 115927e6fb56fSmrg else 115937e6fb56fSmrg # We have old collect2 115947e6fb56fSmrg hardcode_direct_CXX=unsupported 115957e6fb56fSmrg # It fails to find uninstalled libraries when the uninstalled 115967e6fb56fSmrg # path is not listed in the libpath. Setting hardcode_minus_L 115977e6fb56fSmrg # to unsupported forces relinking 115987e6fb56fSmrg hardcode_minus_L_CXX=yes 115997e6fb56fSmrg hardcode_libdir_flag_spec_CXX='-L$libdir' 116007e6fb56fSmrg hardcode_libdir_separator_CXX= 116017e6fb56fSmrg fi 116027e6fb56fSmrg ;; 116037e6fb56fSmrg esac 116047e6fb56fSmrg shared_flag='-shared' 116057e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 116067e6fb56fSmrg shared_flag="$shared_flag "'${wl}-G' 116077e6fb56fSmrg fi 116087e6fb56fSmrg else 116097e6fb56fSmrg # not using gcc 116107e6fb56fSmrg if test "$host_cpu" = ia64; then 116117e6fb56fSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 116127e6fb56fSmrg # chokes on -Wl,-G. The following line is correct: 116137e6fb56fSmrg shared_flag='-G' 116147e6fb56fSmrg else 116157e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 116167e6fb56fSmrg shared_flag='${wl}-G' 116177e6fb56fSmrg else 116187e6fb56fSmrg shared_flag='${wl}-bM:SRE' 116197e6fb56fSmrg fi 116207e6fb56fSmrg fi 116217e6fb56fSmrg fi 116227e6fb56fSmrg 116237e6fb56fSmrg # It seems that -bexpall does not export symbols beginning with 116247e6fb56fSmrg # underscore (_), so it is better to generate a list of symbols to export. 116257e6fb56fSmrg always_export_symbols_CXX=yes 116267e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 116277e6fb56fSmrg # Warning - without using the other runtime loading flags (-brtl), 116287e6fb56fSmrg # -berok will link without error, but may produce a broken library. 116297e6fb56fSmrg allow_undefined_flag_CXX='-berok' 116307e6fb56fSmrg # Determine the default libpath from the value encoded in an empty executable. 116317e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 116327e6fb56fSmrg/* confdefs.h. */ 116337e6fb56fSmrg_ACEOF 116347e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 116357e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 116367e6fb56fSmrg/* end confdefs.h. */ 116377e6fb56fSmrg 116387e6fb56fSmrgint 116397e6fb56fSmrgmain () 116407e6fb56fSmrg{ 116417e6fb56fSmrg 116427e6fb56fSmrg ; 116437e6fb56fSmrg return 0; 116447e6fb56fSmrg} 116457e6fb56fSmrg_ACEOF 116467e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 116477e6fb56fSmrgif { (ac_try="$ac_link" 116487e6fb56fSmrgcase "(($ac_try" in 116497e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 116507e6fb56fSmrg *) ac_try_echo=$ac_try;; 116517e6fb56fSmrgesac 116527e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 116537e6fb56fSmrg$as_echo "$ac_try_echo") >&5 116547e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 116557e6fb56fSmrg ac_status=$? 116567e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 116577e6fb56fSmrg rm -f conftest.er1 116587e6fb56fSmrg cat conftest.err >&5 116597e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 116607e6fb56fSmrg (exit $ac_status); } && { 116617e6fb56fSmrg test -z "$ac_cxx_werror_flag" || 116627e6fb56fSmrg test ! -s conftest.err 116637e6fb56fSmrg } && test -s conftest$ac_exeext && { 116647e6fb56fSmrg test "$cross_compiling" = yes || 116657e6fb56fSmrg $as_test_x conftest$ac_exeext 116667e6fb56fSmrg }; then 116677e6fb56fSmrg 116687e6fb56fSmrglt_aix_libpath_sed=' 116697e6fb56fSmrg /Import File Strings/,/^$/ { 116707e6fb56fSmrg /^0/ { 116717e6fb56fSmrg s/^0 *\(.*\)$/\1/ 116727e6fb56fSmrg p 116737e6fb56fSmrg } 116747e6fb56fSmrg }' 116757e6fb56fSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 116767e6fb56fSmrg# Check for a 64-bit object if we didn't find anything. 116777e6fb56fSmrgif test -z "$aix_libpath"; then 116787e6fb56fSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 116797e6fb56fSmrgfi 116807e6fb56fSmrgelse 116817e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 116827e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 116837e6fb56fSmrg 116847e6fb56fSmrg 116857e6fb56fSmrgfi 116867e6fb56fSmrg 116877e6fb56fSmrgrm -rf conftest.dSYM 116887e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 116897e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 116907e6fb56fSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 116917e6fb56fSmrg 116927e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 116937e6fb56fSmrg 116947e6fb56fSmrg archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 116957e6fb56fSmrg else 116967e6fb56fSmrg if test "$host_cpu" = ia64; then 116977e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 116987e6fb56fSmrg allow_undefined_flag_CXX="-z nodefs" 116997e6fb56fSmrg archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 117007e6fb56fSmrg else 117017e6fb56fSmrg # Determine the default libpath from the value encoded in an empty executable. 117027e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 117037e6fb56fSmrg/* confdefs.h. */ 117047e6fb56fSmrg_ACEOF 117057e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 117067e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 117077e6fb56fSmrg/* end confdefs.h. */ 117087e6fb56fSmrg 117097e6fb56fSmrgint 117107e6fb56fSmrgmain () 117117e6fb56fSmrg{ 117127e6fb56fSmrg 117137e6fb56fSmrg ; 117147e6fb56fSmrg return 0; 117157e6fb56fSmrg} 117167e6fb56fSmrg_ACEOF 117177e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 117187e6fb56fSmrgif { (ac_try="$ac_link" 117197e6fb56fSmrgcase "(($ac_try" in 117207e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 117217e6fb56fSmrg *) ac_try_echo=$ac_try;; 117227e6fb56fSmrgesac 117237e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 117247e6fb56fSmrg$as_echo "$ac_try_echo") >&5 117257e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 117267e6fb56fSmrg ac_status=$? 117277e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 117287e6fb56fSmrg rm -f conftest.er1 117297e6fb56fSmrg cat conftest.err >&5 117307e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 117317e6fb56fSmrg (exit $ac_status); } && { 117327e6fb56fSmrg test -z "$ac_cxx_werror_flag" || 117337e6fb56fSmrg test ! -s conftest.err 117347e6fb56fSmrg } && test -s conftest$ac_exeext && { 117357e6fb56fSmrg test "$cross_compiling" = yes || 117367e6fb56fSmrg $as_test_x conftest$ac_exeext 117377e6fb56fSmrg }; then 117387e6fb56fSmrg 117397e6fb56fSmrglt_aix_libpath_sed=' 117407e6fb56fSmrg /Import File Strings/,/^$/ { 117417e6fb56fSmrg /^0/ { 117427e6fb56fSmrg s/^0 *\(.*\)$/\1/ 117437e6fb56fSmrg p 117447e6fb56fSmrg } 117457e6fb56fSmrg }' 117467e6fb56fSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 117477e6fb56fSmrg# Check for a 64-bit object if we didn't find anything. 117487e6fb56fSmrgif test -z "$aix_libpath"; then 117497e6fb56fSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 117507e6fb56fSmrgfi 117517e6fb56fSmrgelse 117527e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 117537e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 117547e6fb56fSmrg 117557e6fb56fSmrg 117567e6fb56fSmrgfi 117577e6fb56fSmrg 117587e6fb56fSmrgrm -rf conftest.dSYM 117597e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 117607e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 117617e6fb56fSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 117627e6fb56fSmrg 117637e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 117647e6fb56fSmrg # Warning - without using the other run time loading flags, 117657e6fb56fSmrg # -berok will link without error, but may produce a broken library. 117667e6fb56fSmrg no_undefined_flag_CXX=' ${wl}-bernotok' 117677e6fb56fSmrg allow_undefined_flag_CXX=' ${wl}-berok' 117687e6fb56fSmrg # Exported symbols can be pulled into shared objects from archives 117697e6fb56fSmrg whole_archive_flag_spec_CXX='$convenience' 117707e6fb56fSmrg archive_cmds_need_lc_CXX=yes 117717e6fb56fSmrg # This is similar to how AIX traditionally builds its shared libraries. 117727e6fb56fSmrg archive_expsym_cmds_CXX="\$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' 117737e6fb56fSmrg fi 117747e6fb56fSmrg fi 117757e6fb56fSmrg ;; 117767e6fb56fSmrg 117777e6fb56fSmrg beos*) 117787e6fb56fSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 117797e6fb56fSmrg allow_undefined_flag_CXX=unsupported 117807e6fb56fSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 117817e6fb56fSmrg # support --undefined. This deserves some investigation. FIXME 117827e6fb56fSmrg archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 117837e6fb56fSmrg else 117847e6fb56fSmrg ld_shlibs_CXX=no 117857e6fb56fSmrg fi 117867e6fb56fSmrg ;; 117877e6fb56fSmrg 117887e6fb56fSmrg chorus*) 117897e6fb56fSmrg case $cc_basename in 117907e6fb56fSmrg *) 117917e6fb56fSmrg # FIXME: insert proper C++ library support 117927e6fb56fSmrg ld_shlibs_CXX=no 117937e6fb56fSmrg ;; 117947e6fb56fSmrg esac 117957e6fb56fSmrg ;; 117967e6fb56fSmrg 117977e6fb56fSmrg cygwin* | mingw* | pw32*) 117987e6fb56fSmrg # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 117997e6fb56fSmrg # as there is no search path for DLLs. 118007e6fb56fSmrg hardcode_libdir_flag_spec_CXX='-L$libdir' 118017e6fb56fSmrg allow_undefined_flag_CXX=unsupported 118027e6fb56fSmrg always_export_symbols_CXX=no 118037e6fb56fSmrg enable_shared_with_static_runtimes_CXX=yes 118047e6fb56fSmrg 118057e6fb56fSmrg if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 118067e6fb56fSmrg archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 118077e6fb56fSmrg # If the export-symbols file already is a .def file (1st line 118087e6fb56fSmrg # is EXPORTS), use it as is; otherwise, prepend... 118097e6fb56fSmrg archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 118107e6fb56fSmrg cp $export_symbols $output_objdir/$soname.def; 118117e6fb56fSmrg else 118127e6fb56fSmrg echo EXPORTS > $output_objdir/$soname.def; 118137e6fb56fSmrg cat $export_symbols >> $output_objdir/$soname.def; 118147e6fb56fSmrg fi~ 118157e6fb56fSmrg $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 118167e6fb56fSmrg else 118177e6fb56fSmrg ld_shlibs_CXX=no 118187e6fb56fSmrg fi 118197e6fb56fSmrg ;; 118207e6fb56fSmrg darwin* | rhapsody*) 118217e6fb56fSmrg archive_cmds_need_lc_CXX=no 118227e6fb56fSmrg hardcode_direct_CXX=no 118237e6fb56fSmrg hardcode_automatic_CXX=yes 118247e6fb56fSmrg hardcode_shlibpath_var_CXX=unsupported 118257e6fb56fSmrg whole_archive_flag_spec_CXX='' 118267e6fb56fSmrg link_all_deplibs_CXX=yes 118277e6fb56fSmrg allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 118287e6fb56fSmrg if test "$GXX" = yes ; then 118297e6fb56fSmrg output_verbose_link_cmd='echo' 118307e6fb56fSmrg archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 118317e6fb56fSmrg module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 118327e6fb56fSmrg archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 118337e6fb56fSmrg module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 118347e6fb56fSmrg if test "$lt_cv_apple_cc_single_mod" != "yes"; then 118357e6fb56fSmrg archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 118367e6fb56fSmrg archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 118377e6fb56fSmrg fi 118387e6fb56fSmrg else 118397e6fb56fSmrg case $cc_basename in 118407e6fb56fSmrg xlc*) 118417e6fb56fSmrg output_verbose_link_cmd='echo' 118427e6fb56fSmrg archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 118437e6fb56fSmrg module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 118447e6fb56fSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 118457e6fb56fSmrg archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 118467e6fb56fSmrg module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 118477e6fb56fSmrg ;; 118487e6fb56fSmrg *) 118497e6fb56fSmrg ld_shlibs_CXX=no 118507e6fb56fSmrg ;; 118517e6fb56fSmrg esac 118527e6fb56fSmrg fi 118537e6fb56fSmrg ;; 118547e6fb56fSmrg 118557e6fb56fSmrg dgux*) 118567e6fb56fSmrg case $cc_basename in 118577e6fb56fSmrg ec++*) 118587e6fb56fSmrg # FIXME: insert proper C++ library support 118597e6fb56fSmrg ld_shlibs_CXX=no 118607e6fb56fSmrg ;; 118617e6fb56fSmrg ghcx*) 118627e6fb56fSmrg # Green Hills C++ Compiler 118637e6fb56fSmrg # FIXME: insert proper C++ library support 118647e6fb56fSmrg ld_shlibs_CXX=no 118657e6fb56fSmrg ;; 118667e6fb56fSmrg *) 118677e6fb56fSmrg # FIXME: insert proper C++ library support 118687e6fb56fSmrg ld_shlibs_CXX=no 118697e6fb56fSmrg ;; 118707e6fb56fSmrg esac 118717e6fb56fSmrg ;; 118727e6fb56fSmrg freebsd[12]*) 118737e6fb56fSmrg # C++ shared libraries reported to be fairly broken before switch to ELF 118747e6fb56fSmrg ld_shlibs_CXX=no 118757e6fb56fSmrg ;; 118767e6fb56fSmrg freebsd-elf*) 118777e6fb56fSmrg archive_cmds_need_lc_CXX=no 118787e6fb56fSmrg ;; 118797e6fb56fSmrg freebsd* | dragonfly*) 118807e6fb56fSmrg # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 118817e6fb56fSmrg # conventions 118827e6fb56fSmrg ld_shlibs_CXX=yes 118837e6fb56fSmrg ;; 118847e6fb56fSmrg gnu*) 118857e6fb56fSmrg ;; 118867e6fb56fSmrg hpux9*) 118877e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 118887e6fb56fSmrg hardcode_libdir_separator_CXX=: 118897e6fb56fSmrg export_dynamic_flag_spec_CXX='${wl}-E' 118907e6fb56fSmrg hardcode_direct_CXX=yes 118917e6fb56fSmrg hardcode_minus_L_CXX=yes # Not in the search PATH, 118927e6fb56fSmrg # but as the default 118937e6fb56fSmrg # location of the library. 118947e6fb56fSmrg 118957e6fb56fSmrg case $cc_basename in 118967e6fb56fSmrg CC*) 118977e6fb56fSmrg # FIXME: insert proper C++ library support 118987e6fb56fSmrg ld_shlibs_CXX=no 118997e6fb56fSmrg ;; 119007e6fb56fSmrg aCC*) 119017e6fb56fSmrg archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 119027e6fb56fSmrg # Commands to make compiler produce verbose output that lists 119037e6fb56fSmrg # what "hidden" libraries, object files and flags are used when 119047e6fb56fSmrg # linking a shared library. 119057e6fb56fSmrg # 119067e6fb56fSmrg # There doesn't appear to be a way to prevent this compiler from 119077e6fb56fSmrg # explicitly linking system object files so we need to strip them 119087e6fb56fSmrg # from the output so that they don't get included in the library 119097e6fb56fSmrg # dependencies. 119107e6fb56fSmrg output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 119117e6fb56fSmrg ;; 119127e6fb56fSmrg *) 119137e6fb56fSmrg if test "$GXX" = yes; then 119147e6fb56fSmrg archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 119157e6fb56fSmrg else 119167e6fb56fSmrg # FIXME: insert proper C++ library support 119177e6fb56fSmrg ld_shlibs_CXX=no 119187e6fb56fSmrg fi 119197e6fb56fSmrg ;; 119207e6fb56fSmrg esac 119217e6fb56fSmrg ;; 119227e6fb56fSmrg hpux10*|hpux11*) 119237e6fb56fSmrg if test $with_gnu_ld = no; then 119247e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 119257e6fb56fSmrg hardcode_libdir_separator_CXX=: 119267e6fb56fSmrg 119277e6fb56fSmrg case $host_cpu in 119287e6fb56fSmrg hppa*64*|ia64*) ;; 119297e6fb56fSmrg *) 119307e6fb56fSmrg export_dynamic_flag_spec_CXX='${wl}-E' 119317e6fb56fSmrg ;; 119327e6fb56fSmrg esac 119337e6fb56fSmrg fi 119347e6fb56fSmrg case $host_cpu in 119357e6fb56fSmrg hppa*64*|ia64*) 119367e6fb56fSmrg hardcode_direct_CXX=no 119377e6fb56fSmrg hardcode_shlibpath_var_CXX=no 119387e6fb56fSmrg ;; 119397e6fb56fSmrg *) 119407e6fb56fSmrg hardcode_direct_CXX=yes 119417e6fb56fSmrg hardcode_minus_L_CXX=yes # Not in the search PATH, 119427e6fb56fSmrg # but as the default 119437e6fb56fSmrg # location of the library. 119447e6fb56fSmrg ;; 119457e6fb56fSmrg esac 119467e6fb56fSmrg 119477e6fb56fSmrg case $cc_basename in 119487e6fb56fSmrg CC*) 119497e6fb56fSmrg # FIXME: insert proper C++ library support 119507e6fb56fSmrg ld_shlibs_CXX=no 119517e6fb56fSmrg ;; 119527e6fb56fSmrg aCC*) 119537e6fb56fSmrg case $host_cpu in 119547e6fb56fSmrg hppa*64*) 119557e6fb56fSmrg archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 119567e6fb56fSmrg ;; 119577e6fb56fSmrg ia64*) 119587e6fb56fSmrg archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 119597e6fb56fSmrg ;; 119607e6fb56fSmrg *) 119617e6fb56fSmrg archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 119627e6fb56fSmrg ;; 119637e6fb56fSmrg esac 119647e6fb56fSmrg # Commands to make compiler produce verbose output that lists 119657e6fb56fSmrg # what "hidden" libraries, object files and flags are used when 119667e6fb56fSmrg # linking a shared library. 119677e6fb56fSmrg # 119687e6fb56fSmrg # There doesn't appear to be a way to prevent this compiler from 119697e6fb56fSmrg # explicitly linking system object files so we need to strip them 119707e6fb56fSmrg # from the output so that they don't get included in the library 119717e6fb56fSmrg # dependencies. 119727e6fb56fSmrg output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 119737e6fb56fSmrg ;; 119747e6fb56fSmrg *) 119757e6fb56fSmrg if test "$GXX" = yes; then 119767e6fb56fSmrg if test $with_gnu_ld = no; then 119777e6fb56fSmrg case $host_cpu in 119787e6fb56fSmrg hppa*64*) 119797e6fb56fSmrg archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 119807e6fb56fSmrg ;; 119817e6fb56fSmrg ia64*) 119827e6fb56fSmrg archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 119837e6fb56fSmrg ;; 119847e6fb56fSmrg *) 119857e6fb56fSmrg archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 119867e6fb56fSmrg ;; 119877e6fb56fSmrg esac 119887e6fb56fSmrg fi 119897e6fb56fSmrg else 119907e6fb56fSmrg # FIXME: insert proper C++ library support 119917e6fb56fSmrg ld_shlibs_CXX=no 119927e6fb56fSmrg fi 119937e6fb56fSmrg ;; 119947e6fb56fSmrg esac 119957e6fb56fSmrg ;; 119967e6fb56fSmrg interix[3-9]*) 119977e6fb56fSmrg hardcode_direct_CXX=no 119987e6fb56fSmrg hardcode_shlibpath_var_CXX=no 119997e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 120007e6fb56fSmrg export_dynamic_flag_spec_CXX='${wl}-E' 120017e6fb56fSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 120027e6fb56fSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 120037e6fb56fSmrg # default) and relocated if they conflict, which is a slow very memory 120047e6fb56fSmrg # consuming and fragmenting process. To avoid this, we pick a random, 120057e6fb56fSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 120067e6fb56fSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 120077e6fb56fSmrg archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 120087e6fb56fSmrg archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 120097e6fb56fSmrg ;; 120107e6fb56fSmrg irix5* | irix6*) 120117e6fb56fSmrg case $cc_basename in 120127e6fb56fSmrg CC*) 120137e6fb56fSmrg # SGI C++ 120147e6fb56fSmrg archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 120157e6fb56fSmrg 120167e6fb56fSmrg # Archives containing C++ object files must be created using 120177e6fb56fSmrg # "CC -ar", where "CC" is the IRIX C++ compiler. This is 120187e6fb56fSmrg # necessary to make sure instantiated templates are included 120197e6fb56fSmrg # in the archive. 120207e6fb56fSmrg old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 120217e6fb56fSmrg ;; 120227e6fb56fSmrg *) 120237e6fb56fSmrg if test "$GXX" = yes; then 120247e6fb56fSmrg if test "$with_gnu_ld" = no; then 120257e6fb56fSmrg archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 120267e6fb56fSmrg else 120277e6fb56fSmrg archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 120287e6fb56fSmrg fi 120297e6fb56fSmrg fi 120307e6fb56fSmrg link_all_deplibs_CXX=yes 120317e6fb56fSmrg ;; 120327e6fb56fSmrg esac 120337e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 120347e6fb56fSmrg hardcode_libdir_separator_CXX=: 120357e6fb56fSmrg ;; 120367e6fb56fSmrg linux* | k*bsd*-gnu) 120377e6fb56fSmrg case $cc_basename in 120387e6fb56fSmrg KCC*) 120397e6fb56fSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 120407e6fb56fSmrg 120417e6fb56fSmrg # KCC will only create a shared library if the output file 120427e6fb56fSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 120437e6fb56fSmrg # to its proper name (with version) after linking. 120447e6fb56fSmrg archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 120457e6fb56fSmrg archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 120467e6fb56fSmrg # Commands to make compiler produce verbose output that lists 120477e6fb56fSmrg # what "hidden" libraries, object files and flags are used when 120487e6fb56fSmrg # linking a shared library. 120497e6fb56fSmrg # 120507e6fb56fSmrg # There doesn't appear to be a way to prevent this compiler from 120517e6fb56fSmrg # explicitly linking system object files so we need to strip them 120527e6fb56fSmrg # from the output so that they don't get included in the library 120537e6fb56fSmrg # dependencies. 120547e6fb56fSmrg output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 120557e6fb56fSmrg 120567e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 120577e6fb56fSmrg export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 120587e6fb56fSmrg 120597e6fb56fSmrg # Archives containing C++ object files must be created using 120607e6fb56fSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 120617e6fb56fSmrg old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 120627e6fb56fSmrg ;; 120637e6fb56fSmrg icpc*) 120647e6fb56fSmrg # Intel C++ 120657e6fb56fSmrg with_gnu_ld=yes 120667e6fb56fSmrg # version 8.0 and above of icpc choke on multiply defined symbols 120677e6fb56fSmrg # if we add $predep_objects and $postdep_objects, however 7.1 and 120687e6fb56fSmrg # earlier do not add the objects themselves. 120697e6fb56fSmrg case `$CC -V 2>&1` in 120707e6fb56fSmrg *"Version 7."*) 120717e6fb56fSmrg archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 120727e6fb56fSmrg archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 120737e6fb56fSmrg ;; 120747e6fb56fSmrg *) # Version 8.0 or newer 120757e6fb56fSmrg tmp_idyn= 120767e6fb56fSmrg case $host_cpu in 120777e6fb56fSmrg ia64*) tmp_idyn=' -i_dynamic';; 120787e6fb56fSmrg esac 120797e6fb56fSmrg archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 120807e6fb56fSmrg archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 120817e6fb56fSmrg ;; 120827e6fb56fSmrg esac 120837e6fb56fSmrg archive_cmds_need_lc_CXX=no 120847e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 120857e6fb56fSmrg export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 120867e6fb56fSmrg whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 120877e6fb56fSmrg ;; 120887e6fb56fSmrg pgCC* | pgcpp*) 120897e6fb56fSmrg # Portland Group C++ compiler 120907e6fb56fSmrg archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 120917e6fb56fSmrg archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 120927e6fb56fSmrg 120937e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 120947e6fb56fSmrg export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 120957e6fb56fSmrg whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 120967e6fb56fSmrg ;; 120977e6fb56fSmrg cxx*) 120987e6fb56fSmrg # Compaq C++ 120997e6fb56fSmrg archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 121007e6fb56fSmrg archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 121017e6fb56fSmrg 121027e6fb56fSmrg runpath_var=LD_RUN_PATH 121037e6fb56fSmrg hardcode_libdir_flag_spec_CXX='-rpath $libdir' 121047e6fb56fSmrg hardcode_libdir_separator_CXX=: 121057e6fb56fSmrg 121067e6fb56fSmrg # Commands to make compiler produce verbose output that lists 121077e6fb56fSmrg # what "hidden" libraries, object files and flags are used when 121087e6fb56fSmrg # linking a shared library. 121097e6fb56fSmrg # 121107e6fb56fSmrg # There doesn't appear to be a way to prevent this compiler from 121117e6fb56fSmrg # explicitly linking system object files so we need to strip them 121127e6fb56fSmrg # from the output so that they don't get included in the library 121137e6fb56fSmrg # dependencies. 121147e6fb56fSmrg output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 121157e6fb56fSmrg ;; 121167e6fb56fSmrg *) 121177e6fb56fSmrg case `$CC -V 2>&1 | sed 5q` in 121187e6fb56fSmrg *Sun\ C*) 121197e6fb56fSmrg # Sun C++ 5.9 121207e6fb56fSmrg no_undefined_flag_CXX=' -zdefs' 121217e6fb56fSmrg archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 121227e6fb56fSmrg archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 121237e6fb56fSmrg hardcode_libdir_flag_spec_CXX='-R$libdir' 121247e6fb56fSmrg whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 121257e6fb56fSmrg 121267e6fb56fSmrg # Not sure whether something based on 121277e6fb56fSmrg # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 121287e6fb56fSmrg # would be better. 121297e6fb56fSmrg output_verbose_link_cmd='echo' 121307e6fb56fSmrg 121317e6fb56fSmrg # Archives containing C++ object files must be created using 121327e6fb56fSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 121337e6fb56fSmrg # necessary to make sure instantiated templates are included 121347e6fb56fSmrg # in the archive. 121357e6fb56fSmrg old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 121367e6fb56fSmrg ;; 121377e6fb56fSmrg esac 121387e6fb56fSmrg ;; 121397e6fb56fSmrg esac 121407e6fb56fSmrg ;; 121417e6fb56fSmrg lynxos*) 121427e6fb56fSmrg # FIXME: insert proper C++ library support 121437e6fb56fSmrg ld_shlibs_CXX=no 121447e6fb56fSmrg ;; 121457e6fb56fSmrg m88k*) 121467e6fb56fSmrg # FIXME: insert proper C++ library support 121477e6fb56fSmrg ld_shlibs_CXX=no 121487e6fb56fSmrg ;; 121497e6fb56fSmrg mvs*) 121507e6fb56fSmrg case $cc_basename in 121517e6fb56fSmrg cxx*) 121527e6fb56fSmrg # FIXME: insert proper C++ library support 121537e6fb56fSmrg ld_shlibs_CXX=no 121547e6fb56fSmrg ;; 121557e6fb56fSmrg *) 121567e6fb56fSmrg # FIXME: insert proper C++ library support 121577e6fb56fSmrg ld_shlibs_CXX=no 121587e6fb56fSmrg ;; 121597e6fb56fSmrg esac 121607e6fb56fSmrg ;; 121617e6fb56fSmrg netbsd*) 121627e6fb56fSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 121637e6fb56fSmrg archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 121647e6fb56fSmrg wlarc= 121657e6fb56fSmrg hardcode_libdir_flag_spec_CXX='-R$libdir' 121667e6fb56fSmrg hardcode_direct_CXX=yes 121677e6fb56fSmrg hardcode_shlibpath_var_CXX=no 121687e6fb56fSmrg fi 121697e6fb56fSmrg # Workaround some broken pre-1.5 toolchains 121707e6fb56fSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 121717e6fb56fSmrg ;; 121727e6fb56fSmrg openbsd2*) 121737e6fb56fSmrg # C++ shared libraries are fairly broken 121747e6fb56fSmrg ld_shlibs_CXX=no 121757e6fb56fSmrg ;; 121767e6fb56fSmrg openbsd*) 121777e6fb56fSmrg if test -f /usr/libexec/ld.so; then 121787e6fb56fSmrg hardcode_direct_CXX=yes 121797e6fb56fSmrg hardcode_shlibpath_var_CXX=no 121807e6fb56fSmrg archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 121817e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 121827e6fb56fSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 121837e6fb56fSmrg archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 121847e6fb56fSmrg export_dynamic_flag_spec_CXX='${wl}-E' 121857e6fb56fSmrg whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 121867e6fb56fSmrg fi 121877e6fb56fSmrg output_verbose_link_cmd='echo' 121887e6fb56fSmrg else 121897e6fb56fSmrg ld_shlibs_CXX=no 121907e6fb56fSmrg fi 121917e6fb56fSmrg ;; 121927e6fb56fSmrg osf3*) 121937e6fb56fSmrg case $cc_basename in 121947e6fb56fSmrg KCC*) 121957e6fb56fSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 121967e6fb56fSmrg 121977e6fb56fSmrg # KCC will only create a shared library if the output file 121987e6fb56fSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 121997e6fb56fSmrg # to its proper name (with version) after linking. 122007e6fb56fSmrg archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 122017e6fb56fSmrg 122027e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 122037e6fb56fSmrg hardcode_libdir_separator_CXX=: 122047e6fb56fSmrg 122057e6fb56fSmrg # Archives containing C++ object files must be created using 122067e6fb56fSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 122077e6fb56fSmrg old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 122087e6fb56fSmrg 122097e6fb56fSmrg ;; 122107e6fb56fSmrg RCC*) 122117e6fb56fSmrg # Rational C++ 2.4.1 122127e6fb56fSmrg # FIXME: insert proper C++ library support 122137e6fb56fSmrg ld_shlibs_CXX=no 122147e6fb56fSmrg ;; 122157e6fb56fSmrg cxx*) 122167e6fb56fSmrg allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 122177e6fb56fSmrg archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 122187e6fb56fSmrg 122197e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 122207e6fb56fSmrg hardcode_libdir_separator_CXX=: 122217e6fb56fSmrg 122227e6fb56fSmrg # Commands to make compiler produce verbose output that lists 122237e6fb56fSmrg # what "hidden" libraries, object files and flags are used when 122247e6fb56fSmrg # linking a shared library. 122257e6fb56fSmrg # 122267e6fb56fSmrg # There doesn't appear to be a way to prevent this compiler from 122277e6fb56fSmrg # explicitly linking system object files so we need to strip them 122287e6fb56fSmrg # from the output so that they don't get included in the library 122297e6fb56fSmrg # dependencies. 122307e6fb56fSmrg output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 122317e6fb56fSmrg ;; 122327e6fb56fSmrg *) 122337e6fb56fSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 122347e6fb56fSmrg allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 122357e6fb56fSmrg archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 122367e6fb56fSmrg 122377e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 122387e6fb56fSmrg hardcode_libdir_separator_CXX=: 122397e6fb56fSmrg 122407e6fb56fSmrg # Commands to make compiler produce verbose output that lists 122417e6fb56fSmrg # what "hidden" libraries, object files and flags are used when 122427e6fb56fSmrg # linking a shared library. 122437e6fb56fSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 122447e6fb56fSmrg 122457e6fb56fSmrg else 122467e6fb56fSmrg # FIXME: insert proper C++ library support 122477e6fb56fSmrg ld_shlibs_CXX=no 122487e6fb56fSmrg fi 122497e6fb56fSmrg ;; 122507e6fb56fSmrg esac 122517e6fb56fSmrg ;; 122527e6fb56fSmrg osf4* | osf5*) 122537e6fb56fSmrg case $cc_basename in 122547e6fb56fSmrg KCC*) 122557e6fb56fSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 122567e6fb56fSmrg 122577e6fb56fSmrg # KCC will only create a shared library if the output file 122587e6fb56fSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 122597e6fb56fSmrg # to its proper name (with version) after linking. 122607e6fb56fSmrg archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 122617e6fb56fSmrg 122627e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 122637e6fb56fSmrg hardcode_libdir_separator_CXX=: 122647e6fb56fSmrg 122657e6fb56fSmrg # Archives containing C++ object files must be created using 122667e6fb56fSmrg # the KAI C++ compiler. 122677e6fb56fSmrg old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 122687e6fb56fSmrg ;; 122697e6fb56fSmrg RCC*) 122707e6fb56fSmrg # Rational C++ 2.4.1 122717e6fb56fSmrg # FIXME: insert proper C++ library support 122727e6fb56fSmrg ld_shlibs_CXX=no 122737e6fb56fSmrg ;; 122747e6fb56fSmrg cxx*) 122757e6fb56fSmrg allow_undefined_flag_CXX=' -expect_unresolved \*' 122767e6fb56fSmrg archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 122777e6fb56fSmrg archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 122787e6fb56fSmrg echo "-hidden">> $lib.exp~ 122797e6fb56fSmrg $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 122807e6fb56fSmrg $rm $lib.exp' 122817e6fb56fSmrg 122827e6fb56fSmrg hardcode_libdir_flag_spec_CXX='-rpath $libdir' 122837e6fb56fSmrg hardcode_libdir_separator_CXX=: 122847e6fb56fSmrg 122857e6fb56fSmrg # Commands to make compiler produce verbose output that lists 122867e6fb56fSmrg # what "hidden" libraries, object files and flags are used when 122877e6fb56fSmrg # linking a shared library. 122887e6fb56fSmrg # 122897e6fb56fSmrg # There doesn't appear to be a way to prevent this compiler from 122907e6fb56fSmrg # explicitly linking system object files so we need to strip them 122917e6fb56fSmrg # from the output so that they don't get included in the library 122927e6fb56fSmrg # dependencies. 122937e6fb56fSmrg output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 122947e6fb56fSmrg ;; 122957e6fb56fSmrg *) 122967e6fb56fSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 122977e6fb56fSmrg allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 122987e6fb56fSmrg archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 122997e6fb56fSmrg 123007e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 123017e6fb56fSmrg hardcode_libdir_separator_CXX=: 123027e6fb56fSmrg 123037e6fb56fSmrg # Commands to make compiler produce verbose output that lists 123047e6fb56fSmrg # what "hidden" libraries, object files and flags are used when 123057e6fb56fSmrg # linking a shared library. 123067e6fb56fSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 123077e6fb56fSmrg 123087e6fb56fSmrg else 123097e6fb56fSmrg # FIXME: insert proper C++ library support 123107e6fb56fSmrg ld_shlibs_CXX=no 123117e6fb56fSmrg fi 123127e6fb56fSmrg ;; 123137e6fb56fSmrg esac 123147e6fb56fSmrg ;; 123157e6fb56fSmrg psos*) 123167e6fb56fSmrg # FIXME: insert proper C++ library support 123177e6fb56fSmrg ld_shlibs_CXX=no 123187e6fb56fSmrg ;; 123197e6fb56fSmrg sunos4*) 123207e6fb56fSmrg case $cc_basename in 123217e6fb56fSmrg CC*) 123227e6fb56fSmrg # Sun C++ 4.x 123237e6fb56fSmrg # FIXME: insert proper C++ library support 123247e6fb56fSmrg ld_shlibs_CXX=no 123257e6fb56fSmrg ;; 123267e6fb56fSmrg lcc*) 123277e6fb56fSmrg # Lucid 123287e6fb56fSmrg # FIXME: insert proper C++ library support 123297e6fb56fSmrg ld_shlibs_CXX=no 123307e6fb56fSmrg ;; 123317e6fb56fSmrg *) 123327e6fb56fSmrg # FIXME: insert proper C++ library support 123337e6fb56fSmrg ld_shlibs_CXX=no 123347e6fb56fSmrg ;; 123357e6fb56fSmrg esac 123367e6fb56fSmrg ;; 123377e6fb56fSmrg solaris*) 123387e6fb56fSmrg case $cc_basename in 123397e6fb56fSmrg CC*) 123407e6fb56fSmrg # Sun C++ 4.2, 5.x and Centerline C++ 123417e6fb56fSmrg archive_cmds_need_lc_CXX=yes 123427e6fb56fSmrg no_undefined_flag_CXX=' -zdefs' 123437e6fb56fSmrg archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 123447e6fb56fSmrg archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 123457e6fb56fSmrg $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 123467e6fb56fSmrg 123477e6fb56fSmrg hardcode_libdir_flag_spec_CXX='-R$libdir' 123487e6fb56fSmrg hardcode_shlibpath_var_CXX=no 123497e6fb56fSmrg case $host_os in 123507e6fb56fSmrg solaris2.[0-5] | solaris2.[0-5].*) ;; 123517e6fb56fSmrg *) 123527e6fb56fSmrg # The compiler driver will combine and reorder linker options, 123537e6fb56fSmrg # but understands `-z linker_flag'. 123547e6fb56fSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 123557e6fb56fSmrg whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 123567e6fb56fSmrg ;; 123577e6fb56fSmrg esac 123587e6fb56fSmrg link_all_deplibs_CXX=yes 123597e6fb56fSmrg 123607e6fb56fSmrg output_verbose_link_cmd='echo' 123617e6fb56fSmrg 123627e6fb56fSmrg # Archives containing C++ object files must be created using 123637e6fb56fSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 123647e6fb56fSmrg # necessary to make sure instantiated templates are included 123657e6fb56fSmrg # in the archive. 123667e6fb56fSmrg old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 123677e6fb56fSmrg ;; 123687e6fb56fSmrg gcx*) 123697e6fb56fSmrg # Green Hills C++ Compiler 123707e6fb56fSmrg archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 123717e6fb56fSmrg 123727e6fb56fSmrg # The C++ compiler must be used to create the archive. 123737e6fb56fSmrg old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 123747e6fb56fSmrg ;; 123757e6fb56fSmrg *) 123767e6fb56fSmrg # GNU C++ compiler with Solaris linker 123777e6fb56fSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 123787e6fb56fSmrg no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 123797e6fb56fSmrg if $CC --version | grep -v '^2\.7' > /dev/null; then 123807e6fb56fSmrg archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 123817e6fb56fSmrg archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 123827e6fb56fSmrg $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 123837e6fb56fSmrg 123847e6fb56fSmrg # Commands to make compiler produce verbose output that lists 123857e6fb56fSmrg # what "hidden" libraries, object files and flags are used when 123867e6fb56fSmrg # linking a shared library. 123877e6fb56fSmrg output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 123887e6fb56fSmrg else 123897e6fb56fSmrg # g++ 2.7 appears to require `-G' NOT `-shared' on this 123907e6fb56fSmrg # platform. 123917e6fb56fSmrg archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 123927e6fb56fSmrg archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 123937e6fb56fSmrg $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 123947e6fb56fSmrg 123957e6fb56fSmrg # Commands to make compiler produce verbose output that lists 123967e6fb56fSmrg # what "hidden" libraries, object files and flags are used when 123977e6fb56fSmrg # linking a shared library. 123987e6fb56fSmrg output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 123997e6fb56fSmrg fi 124007e6fb56fSmrg 124017e6fb56fSmrg hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 124027e6fb56fSmrg case $host_os in 124037e6fb56fSmrg solaris2.[0-5] | solaris2.[0-5].*) ;; 124047e6fb56fSmrg *) 124057e6fb56fSmrg whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 124067e6fb56fSmrg ;; 124077e6fb56fSmrg esac 124087e6fb56fSmrg fi 124097e6fb56fSmrg ;; 124107e6fb56fSmrg esac 124117e6fb56fSmrg ;; 124127e6fb56fSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 124137e6fb56fSmrg no_undefined_flag_CXX='${wl}-z,text' 124147e6fb56fSmrg archive_cmds_need_lc_CXX=no 124157e6fb56fSmrg hardcode_shlibpath_var_CXX=no 124167e6fb56fSmrg runpath_var='LD_RUN_PATH' 124177e6fb56fSmrg 124187e6fb56fSmrg case $cc_basename in 124197e6fb56fSmrg CC*) 124207e6fb56fSmrg archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 124217e6fb56fSmrg archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 124227e6fb56fSmrg ;; 124237e6fb56fSmrg *) 124247e6fb56fSmrg archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 124257e6fb56fSmrg archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 124267e6fb56fSmrg ;; 124277e6fb56fSmrg esac 124287e6fb56fSmrg ;; 124297e6fb56fSmrg sysv5* | sco3.2v5* | sco5v6*) 124307e6fb56fSmrg # Note: We can NOT use -z defs as we might desire, because we do not 124317e6fb56fSmrg # link with -lc, and that would cause any symbols used from libc to 124327e6fb56fSmrg # always be unresolved, which means just about no library would 124337e6fb56fSmrg # ever link correctly. If we're not using GNU ld we use -z text 124347e6fb56fSmrg # though, which does catch some bad symbols but isn't as heavy-handed 124357e6fb56fSmrg # as -z defs. 124367e6fb56fSmrg # For security reasons, it is highly recommended that you always 124377e6fb56fSmrg # use absolute paths for naming shared libraries, and exclude the 124387e6fb56fSmrg # DT_RUNPATH tag from executables and libraries. But doing so 124397e6fb56fSmrg # requires that you compile everything twice, which is a pain. 124407e6fb56fSmrg # So that behaviour is only enabled if SCOABSPATH is set to a 124417e6fb56fSmrg # non-empty value in the environment. Most likely only useful for 124427e6fb56fSmrg # creating official distributions of packages. 124437e6fb56fSmrg # This is a hack until libtool officially supports absolute path 124447e6fb56fSmrg # names for shared libraries. 124457e6fb56fSmrg no_undefined_flag_CXX='${wl}-z,text' 124467e6fb56fSmrg allow_undefined_flag_CXX='${wl}-z,nodefs' 124477e6fb56fSmrg archive_cmds_need_lc_CXX=no 124487e6fb56fSmrg hardcode_shlibpath_var_CXX=no 124497e6fb56fSmrg hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 124507e6fb56fSmrg hardcode_libdir_separator_CXX=':' 124517e6fb56fSmrg link_all_deplibs_CXX=yes 124527e6fb56fSmrg export_dynamic_flag_spec_CXX='${wl}-Bexport' 124537e6fb56fSmrg runpath_var='LD_RUN_PATH' 124547e6fb56fSmrg 124557e6fb56fSmrg case $cc_basename in 124567e6fb56fSmrg CC*) 124577e6fb56fSmrg archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 124587e6fb56fSmrg archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 124597e6fb56fSmrg ;; 124607e6fb56fSmrg *) 124617e6fb56fSmrg archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 124627e6fb56fSmrg archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 124637e6fb56fSmrg ;; 124647e6fb56fSmrg esac 124657e6fb56fSmrg ;; 124667e6fb56fSmrg tandem*) 124677e6fb56fSmrg case $cc_basename in 124687e6fb56fSmrg NCC*) 124697e6fb56fSmrg # NonStop-UX NCC 3.20 124707e6fb56fSmrg # FIXME: insert proper C++ library support 124717e6fb56fSmrg ld_shlibs_CXX=no 124727e6fb56fSmrg ;; 124737e6fb56fSmrg *) 124747e6fb56fSmrg # FIXME: insert proper C++ library support 124757e6fb56fSmrg ld_shlibs_CXX=no 124767e6fb56fSmrg ;; 124777e6fb56fSmrg esac 124787e6fb56fSmrg ;; 124797e6fb56fSmrg vxworks*) 124807e6fb56fSmrg # FIXME: insert proper C++ library support 124817e6fb56fSmrg ld_shlibs_CXX=no 124827e6fb56fSmrg ;; 124837e6fb56fSmrg *) 124847e6fb56fSmrg # FIXME: insert proper C++ library support 124857e6fb56fSmrg ld_shlibs_CXX=no 124867e6fb56fSmrg ;; 124877e6fb56fSmrgesac 124887e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 124897e6fb56fSmrg$as_echo "$ld_shlibs_CXX" >&6; } 124907e6fb56fSmrgtest "$ld_shlibs_CXX" = no && can_build_shared=no 124917e6fb56fSmrg 124927e6fb56fSmrgGCC_CXX="$GXX" 124937e6fb56fSmrgLD_CXX="$LD" 124947e6fb56fSmrg 124957e6fb56fSmrgcat > conftest.$ac_ext <<EOF 124967e6fb56fSmrgclass Foo 124977e6fb56fSmrg{ 124987e6fb56fSmrgpublic: 124997e6fb56fSmrg Foo (void) { a = 0; } 125007e6fb56fSmrgprivate: 125017e6fb56fSmrg int a; 125027e6fb56fSmrg}; 125037e6fb56fSmrgEOF 125047e6fb56fSmrg 125057e6fb56fSmrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 125067e6fb56fSmrg (eval $ac_compile) 2>&5 125077e6fb56fSmrg ac_status=$? 125087e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 125097e6fb56fSmrg (exit $ac_status); }; then 125107e6fb56fSmrg # Parse the compiler output and extract the necessary 125117e6fb56fSmrg # objects, libraries and library flags. 125127e6fb56fSmrg 125137e6fb56fSmrg # Sentinel used to keep track of whether or not we are before 125147e6fb56fSmrg # the conftest object file. 125157e6fb56fSmrg pre_test_object_deps_done=no 125167e6fb56fSmrg 125177e6fb56fSmrg # The `*' in the case matches for architectures that use `case' in 125187e6fb56fSmrg # $output_verbose_cmd can trigger glob expansion during the loop 125197e6fb56fSmrg # eval without this substitution. 125207e6fb56fSmrg output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 125217e6fb56fSmrg 125227e6fb56fSmrg for p in `eval $output_verbose_link_cmd`; do 125237e6fb56fSmrg case $p in 125247e6fb56fSmrg 125257e6fb56fSmrg -L* | -R* | -l*) 125267e6fb56fSmrg # Some compilers place space between "-{L,R}" and the path. 125277e6fb56fSmrg # Remove the space. 125287e6fb56fSmrg if test $p = "-L" \ 125297e6fb56fSmrg || test $p = "-R"; then 125307e6fb56fSmrg prev=$p 125317e6fb56fSmrg continue 125327e6fb56fSmrg else 125337e6fb56fSmrg prev= 125347e6fb56fSmrg fi 125357e6fb56fSmrg 125367e6fb56fSmrg if test "$pre_test_object_deps_done" = no; then 125377e6fb56fSmrg case $p in 125387e6fb56fSmrg -L* | -R*) 125397e6fb56fSmrg # Internal compiler library paths should come after those 125407e6fb56fSmrg # provided the user. The postdeps already come after the 125417e6fb56fSmrg # user supplied libs so there is no need to process them. 125427e6fb56fSmrg if test -z "$compiler_lib_search_path_CXX"; then 125437e6fb56fSmrg compiler_lib_search_path_CXX="${prev}${p}" 125447e6fb56fSmrg else 125457e6fb56fSmrg compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 125467e6fb56fSmrg fi 125477e6fb56fSmrg ;; 125487e6fb56fSmrg # The "-l" case would never come before the object being 125497e6fb56fSmrg # linked, so don't bother handling this case. 125507e6fb56fSmrg esac 125517e6fb56fSmrg else 125527e6fb56fSmrg if test -z "$postdeps_CXX"; then 125537e6fb56fSmrg postdeps_CXX="${prev}${p}" 125547e6fb56fSmrg else 125557e6fb56fSmrg postdeps_CXX="${postdeps_CXX} ${prev}${p}" 125567e6fb56fSmrg fi 125577e6fb56fSmrg fi 125587e6fb56fSmrg ;; 125597e6fb56fSmrg 125607e6fb56fSmrg *.$objext) 125617e6fb56fSmrg # This assumes that the test object file only shows up 125627e6fb56fSmrg # once in the compiler output. 125637e6fb56fSmrg if test "$p" = "conftest.$objext"; then 125647e6fb56fSmrg pre_test_object_deps_done=yes 125657e6fb56fSmrg continue 125667e6fb56fSmrg fi 125677e6fb56fSmrg 125687e6fb56fSmrg if test "$pre_test_object_deps_done" = no; then 125697e6fb56fSmrg if test -z "$predep_objects_CXX"; then 125707e6fb56fSmrg predep_objects_CXX="$p" 125717e6fb56fSmrg else 125727e6fb56fSmrg predep_objects_CXX="$predep_objects_CXX $p" 125737e6fb56fSmrg fi 125747e6fb56fSmrg else 125757e6fb56fSmrg if test -z "$postdep_objects_CXX"; then 125767e6fb56fSmrg postdep_objects_CXX="$p" 125777e6fb56fSmrg else 125787e6fb56fSmrg postdep_objects_CXX="$postdep_objects_CXX $p" 125797e6fb56fSmrg fi 125807e6fb56fSmrg fi 125817e6fb56fSmrg ;; 125827e6fb56fSmrg 125837e6fb56fSmrg *) ;; # Ignore the rest. 125847e6fb56fSmrg 125857e6fb56fSmrg esac 125867e6fb56fSmrg done 125877e6fb56fSmrg 125887e6fb56fSmrg # Clean up. 125897e6fb56fSmrg rm -f a.out a.exe 125907e6fb56fSmrgelse 125917e6fb56fSmrg echo "libtool.m4: error: problem compiling CXX test program" 125927e6fb56fSmrgfi 125937e6fb56fSmrg 125947e6fb56fSmrg$rm -f confest.$objext 125957e6fb56fSmrg 125967e6fb56fSmrgcompiler_lib_search_dirs_CXX= 125977e6fb56fSmrgif test -n "$compiler_lib_search_path_CXX"; then 125987e6fb56fSmrg compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 125997e6fb56fSmrgfi 126007e6fb56fSmrg 126017e6fb56fSmrg# PORTME: override above test on systems where it is broken 126027e6fb56fSmrgcase $host_os in 126037e6fb56fSmrginterix[3-9]*) 126047e6fb56fSmrg # Interix 3.5 installs completely hosed .la files for C++, so rather than 126057e6fb56fSmrg # hack all around it, let's just trust "g++" to DTRT. 126067e6fb56fSmrg predep_objects_CXX= 126077e6fb56fSmrg postdep_objects_CXX= 126087e6fb56fSmrg postdeps_CXX= 126097e6fb56fSmrg ;; 126107e6fb56fSmrg 126117e6fb56fSmrglinux*) 126127e6fb56fSmrg case `$CC -V 2>&1 | sed 5q` in 126137e6fb56fSmrg *Sun\ C*) 126147e6fb56fSmrg # Sun C++ 5.9 126157e6fb56fSmrg # 126167e6fb56fSmrg # The more standards-conforming stlport4 library is 126177e6fb56fSmrg # incompatible with the Cstd library. Avoid specifying 126187e6fb56fSmrg # it if it's in CXXFLAGS. Ignore libCrun as 126197e6fb56fSmrg # -library=stlport4 depends on it. 126207e6fb56fSmrg case " $CXX $CXXFLAGS " in 126217e6fb56fSmrg *" -library=stlport4 "*) 126227e6fb56fSmrg solaris_use_stlport4=yes 126237e6fb56fSmrg ;; 126247e6fb56fSmrg esac 126257e6fb56fSmrg if test "$solaris_use_stlport4" != yes; then 126267e6fb56fSmrg postdeps_CXX='-library=Cstd -library=Crun' 126277e6fb56fSmrg fi 126287e6fb56fSmrg ;; 126297e6fb56fSmrg esac 126307e6fb56fSmrg ;; 126317e6fb56fSmrg 126327e6fb56fSmrgsolaris*) 126337e6fb56fSmrg case $cc_basename in 126347e6fb56fSmrg CC*) 126357e6fb56fSmrg # The more standards-conforming stlport4 library is 126367e6fb56fSmrg # incompatible with the Cstd library. Avoid specifying 126377e6fb56fSmrg # it if it's in CXXFLAGS. Ignore libCrun as 126387e6fb56fSmrg # -library=stlport4 depends on it. 126397e6fb56fSmrg case " $CXX $CXXFLAGS " in 126407e6fb56fSmrg *" -library=stlport4 "*) 126417e6fb56fSmrg solaris_use_stlport4=yes 126427e6fb56fSmrg ;; 126437e6fb56fSmrg esac 126447e6fb56fSmrg 126457e6fb56fSmrg # Adding this requires a known-good setup of shared libraries for 126467e6fb56fSmrg # Sun compiler versions before 5.6, else PIC objects from an old 126477e6fb56fSmrg # archive will be linked into the output, leading to subtle bugs. 126487e6fb56fSmrg if test "$solaris_use_stlport4" != yes; then 126497e6fb56fSmrg postdeps_CXX='-library=Cstd -library=Crun' 126507e6fb56fSmrg fi 126517e6fb56fSmrg ;; 126527e6fb56fSmrg esac 126537e6fb56fSmrg ;; 126547e6fb56fSmrgesac 126557e6fb56fSmrg 126567e6fb56fSmrgcase " $postdeps_CXX " in 126577e6fb56fSmrg*" -lc "*) archive_cmds_need_lc_CXX=no ;; 126587e6fb56fSmrgesac 126597e6fb56fSmrg 126607e6fb56fSmrglt_prog_compiler_wl_CXX= 126617e6fb56fSmrglt_prog_compiler_pic_CXX= 126627e6fb56fSmrglt_prog_compiler_static_CXX= 126637e6fb56fSmrg 126647e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 126657e6fb56fSmrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 126667e6fb56fSmrg 126677e6fb56fSmrg # C++ specific cases for pic, static, wl, etc. 126687e6fb56fSmrg if test "$GXX" = yes; then 126697e6fb56fSmrg lt_prog_compiler_wl_CXX='-Wl,' 126707e6fb56fSmrg lt_prog_compiler_static_CXX='-static' 126717e6fb56fSmrg 126727e6fb56fSmrg case $host_os in 126737e6fb56fSmrg aix*) 126747e6fb56fSmrg # All AIX code is PIC. 126757e6fb56fSmrg if test "$host_cpu" = ia64; then 126767e6fb56fSmrg # AIX 5 now supports IA64 processor 126777e6fb56fSmrg lt_prog_compiler_static_CXX='-Bstatic' 126787e6fb56fSmrg fi 126797e6fb56fSmrg ;; 126807e6fb56fSmrg amigaos*) 126817e6fb56fSmrg # FIXME: we need at least 68020 code to build shared libraries, but 126827e6fb56fSmrg # adding the `-m68020' flag to GCC prevents building anything better, 126837e6fb56fSmrg # like `-m68040'. 126847e6fb56fSmrg lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 126857e6fb56fSmrg ;; 126867e6fb56fSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 126877e6fb56fSmrg # PIC is the default for these OSes. 126887e6fb56fSmrg ;; 126897e6fb56fSmrg mingw* | cygwin* | os2* | pw32*) 126907e6fb56fSmrg # This hack is so that the source file can tell whether it is being 126917e6fb56fSmrg # built for inclusion in a dll (and should export symbols for example). 126927e6fb56fSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 126937e6fb56fSmrg # (--disable-auto-import) libraries 126947e6fb56fSmrg lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 126957e6fb56fSmrg ;; 126967e6fb56fSmrg darwin* | rhapsody*) 126977e6fb56fSmrg # PIC is the default on this platform 126987e6fb56fSmrg # Common symbols not allowed in MH_DYLIB files 126997e6fb56fSmrg lt_prog_compiler_pic_CXX='-fno-common' 127007e6fb56fSmrg ;; 127017e6fb56fSmrg *djgpp*) 127027e6fb56fSmrg # DJGPP does not support shared libraries at all 127037e6fb56fSmrg lt_prog_compiler_pic_CXX= 127047e6fb56fSmrg ;; 127057e6fb56fSmrg interix[3-9]*) 127067e6fb56fSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 127077e6fb56fSmrg # Instead, we relocate shared libraries at runtime. 127087e6fb56fSmrg ;; 127097e6fb56fSmrg sysv4*MP*) 127107e6fb56fSmrg if test -d /usr/nec; then 127117e6fb56fSmrg lt_prog_compiler_pic_CXX=-Kconform_pic 127127e6fb56fSmrg fi 127137e6fb56fSmrg ;; 127147e6fb56fSmrg hpux*) 127157e6fb56fSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 127167e6fb56fSmrg # not for PA HP-UX. 127177e6fb56fSmrg case $host_cpu in 127187e6fb56fSmrg hppa*64*|ia64*) 127197e6fb56fSmrg ;; 127207e6fb56fSmrg *) 127217e6fb56fSmrg lt_prog_compiler_pic_CXX='-fPIC' 127227e6fb56fSmrg ;; 127237e6fb56fSmrg esac 127247e6fb56fSmrg ;; 127257e6fb56fSmrg *) 127267e6fb56fSmrg lt_prog_compiler_pic_CXX='-fPIC' 127277e6fb56fSmrg ;; 127287e6fb56fSmrg esac 127297e6fb56fSmrg else 127307e6fb56fSmrg case $host_os in 127317e6fb56fSmrg aix[4-9]*) 127327e6fb56fSmrg # All AIX code is PIC. 127337e6fb56fSmrg if test "$host_cpu" = ia64; then 127347e6fb56fSmrg # AIX 5 now supports IA64 processor 127357e6fb56fSmrg lt_prog_compiler_static_CXX='-Bstatic' 127367e6fb56fSmrg else 127377e6fb56fSmrg lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 127387e6fb56fSmrg fi 127397e6fb56fSmrg ;; 127407e6fb56fSmrg chorus*) 127417e6fb56fSmrg case $cc_basename in 127427e6fb56fSmrg cxch68*) 127437e6fb56fSmrg # Green Hills C++ Compiler 127447e6fb56fSmrg # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 127457e6fb56fSmrg ;; 127467e6fb56fSmrg esac 127477e6fb56fSmrg ;; 127487e6fb56fSmrg darwin*) 127497e6fb56fSmrg # PIC is the default on this platform 127507e6fb56fSmrg # Common symbols not allowed in MH_DYLIB files 127517e6fb56fSmrg case $cc_basename in 127527e6fb56fSmrg xlc*) 127537e6fb56fSmrg lt_prog_compiler_pic_CXX='-qnocommon' 127547e6fb56fSmrg lt_prog_compiler_wl_CXX='-Wl,' 127557e6fb56fSmrg ;; 127567e6fb56fSmrg esac 127577e6fb56fSmrg ;; 127587e6fb56fSmrg dgux*) 127597e6fb56fSmrg case $cc_basename in 127607e6fb56fSmrg ec++*) 127617e6fb56fSmrg lt_prog_compiler_pic_CXX='-KPIC' 127627e6fb56fSmrg ;; 127637e6fb56fSmrg ghcx*) 127647e6fb56fSmrg # Green Hills C++ Compiler 127657e6fb56fSmrg lt_prog_compiler_pic_CXX='-pic' 127667e6fb56fSmrg ;; 127677e6fb56fSmrg *) 127687e6fb56fSmrg ;; 127697e6fb56fSmrg esac 127707e6fb56fSmrg ;; 127717e6fb56fSmrg freebsd* | dragonfly*) 127727e6fb56fSmrg # FreeBSD uses GNU C++ 127737e6fb56fSmrg ;; 127747e6fb56fSmrg hpux9* | hpux10* | hpux11*) 127757e6fb56fSmrg case $cc_basename in 127767e6fb56fSmrg CC*) 127777e6fb56fSmrg lt_prog_compiler_wl_CXX='-Wl,' 127787e6fb56fSmrg lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 127797e6fb56fSmrg if test "$host_cpu" != ia64; then 127807e6fb56fSmrg lt_prog_compiler_pic_CXX='+Z' 127817e6fb56fSmrg fi 127827e6fb56fSmrg ;; 127837e6fb56fSmrg aCC*) 127847e6fb56fSmrg lt_prog_compiler_wl_CXX='-Wl,' 127857e6fb56fSmrg lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 127867e6fb56fSmrg case $host_cpu in 127877e6fb56fSmrg hppa*64*|ia64*) 127887e6fb56fSmrg # +Z the default 127897e6fb56fSmrg ;; 127907e6fb56fSmrg *) 127917e6fb56fSmrg lt_prog_compiler_pic_CXX='+Z' 127927e6fb56fSmrg ;; 127937e6fb56fSmrg esac 127947e6fb56fSmrg ;; 127957e6fb56fSmrg *) 127967e6fb56fSmrg ;; 127977e6fb56fSmrg esac 127987e6fb56fSmrg ;; 127997e6fb56fSmrg interix*) 128007e6fb56fSmrg # This is c89, which is MS Visual C++ (no shared libs) 128017e6fb56fSmrg # Anyone wants to do a port? 128027e6fb56fSmrg ;; 128037e6fb56fSmrg irix5* | irix6* | nonstopux*) 128047e6fb56fSmrg case $cc_basename in 128057e6fb56fSmrg CC*) 128067e6fb56fSmrg lt_prog_compiler_wl_CXX='-Wl,' 128077e6fb56fSmrg lt_prog_compiler_static_CXX='-non_shared' 128087e6fb56fSmrg # CC pic flag -KPIC is the default. 128097e6fb56fSmrg ;; 128107e6fb56fSmrg *) 128117e6fb56fSmrg ;; 128127e6fb56fSmrg esac 128137e6fb56fSmrg ;; 128147e6fb56fSmrg linux* | k*bsd*-gnu) 128157e6fb56fSmrg case $cc_basename in 128167e6fb56fSmrg KCC*) 128177e6fb56fSmrg # KAI C++ Compiler 128187e6fb56fSmrg lt_prog_compiler_wl_CXX='--backend -Wl,' 128197e6fb56fSmrg lt_prog_compiler_pic_CXX='-fPIC' 128207e6fb56fSmrg ;; 128217e6fb56fSmrg icpc* | ecpc*) 128227e6fb56fSmrg # Intel C++ 128237e6fb56fSmrg lt_prog_compiler_wl_CXX='-Wl,' 128247e6fb56fSmrg lt_prog_compiler_pic_CXX='-KPIC' 128257e6fb56fSmrg lt_prog_compiler_static_CXX='-static' 128267e6fb56fSmrg ;; 128277e6fb56fSmrg pgCC* | pgcpp*) 128287e6fb56fSmrg # Portland Group C++ compiler. 128297e6fb56fSmrg lt_prog_compiler_wl_CXX='-Wl,' 128307e6fb56fSmrg lt_prog_compiler_pic_CXX='-fpic' 128317e6fb56fSmrg lt_prog_compiler_static_CXX='-Bstatic' 128327e6fb56fSmrg ;; 128337e6fb56fSmrg cxx*) 128347e6fb56fSmrg # Compaq C++ 128357e6fb56fSmrg # Make sure the PIC flag is empty. It appears that all Alpha 128367e6fb56fSmrg # Linux and Compaq Tru64 Unix objects are PIC. 128377e6fb56fSmrg lt_prog_compiler_pic_CXX= 128387e6fb56fSmrg lt_prog_compiler_static_CXX='-non_shared' 128397e6fb56fSmrg ;; 128407e6fb56fSmrg *) 128417e6fb56fSmrg case `$CC -V 2>&1 | sed 5q` in 128427e6fb56fSmrg *Sun\ C*) 128437e6fb56fSmrg # Sun C++ 5.9 128447e6fb56fSmrg lt_prog_compiler_pic_CXX='-KPIC' 128457e6fb56fSmrg lt_prog_compiler_static_CXX='-Bstatic' 128467e6fb56fSmrg lt_prog_compiler_wl_CXX='-Qoption ld ' 128477e6fb56fSmrg ;; 128487e6fb56fSmrg esac 128497e6fb56fSmrg ;; 128507e6fb56fSmrg esac 128517e6fb56fSmrg ;; 128527e6fb56fSmrg lynxos*) 128537e6fb56fSmrg ;; 128547e6fb56fSmrg m88k*) 128557e6fb56fSmrg ;; 128567e6fb56fSmrg mvs*) 128577e6fb56fSmrg case $cc_basename in 128587e6fb56fSmrg cxx*) 128597e6fb56fSmrg lt_prog_compiler_pic_CXX='-W c,exportall' 128607e6fb56fSmrg ;; 128617e6fb56fSmrg *) 128627e6fb56fSmrg ;; 128637e6fb56fSmrg esac 128647e6fb56fSmrg ;; 128657e6fb56fSmrg netbsd*) 128667e6fb56fSmrg ;; 128677e6fb56fSmrg osf3* | osf4* | osf5*) 128687e6fb56fSmrg case $cc_basename in 128697e6fb56fSmrg KCC*) 128707e6fb56fSmrg lt_prog_compiler_wl_CXX='--backend -Wl,' 128717e6fb56fSmrg ;; 128727e6fb56fSmrg RCC*) 128737e6fb56fSmrg # Rational C++ 2.4.1 128747e6fb56fSmrg lt_prog_compiler_pic_CXX='-pic' 128757e6fb56fSmrg ;; 128767e6fb56fSmrg cxx*) 128777e6fb56fSmrg # Digital/Compaq C++ 128787e6fb56fSmrg lt_prog_compiler_wl_CXX='-Wl,' 128797e6fb56fSmrg # Make sure the PIC flag is empty. It appears that all Alpha 128807e6fb56fSmrg # Linux and Compaq Tru64 Unix objects are PIC. 128817e6fb56fSmrg lt_prog_compiler_pic_CXX= 128827e6fb56fSmrg lt_prog_compiler_static_CXX='-non_shared' 128837e6fb56fSmrg ;; 128847e6fb56fSmrg *) 128857e6fb56fSmrg ;; 128867e6fb56fSmrg esac 128877e6fb56fSmrg ;; 128887e6fb56fSmrg psos*) 128897e6fb56fSmrg ;; 128907e6fb56fSmrg solaris*) 128917e6fb56fSmrg case $cc_basename in 128927e6fb56fSmrg CC*) 128937e6fb56fSmrg # Sun C++ 4.2, 5.x and Centerline C++ 128947e6fb56fSmrg lt_prog_compiler_pic_CXX='-KPIC' 128957e6fb56fSmrg lt_prog_compiler_static_CXX='-Bstatic' 128967e6fb56fSmrg lt_prog_compiler_wl_CXX='-Qoption ld ' 128977e6fb56fSmrg ;; 128987e6fb56fSmrg gcx*) 128997e6fb56fSmrg # Green Hills C++ Compiler 129007e6fb56fSmrg lt_prog_compiler_pic_CXX='-PIC' 129017e6fb56fSmrg ;; 129027e6fb56fSmrg *) 129037e6fb56fSmrg ;; 129047e6fb56fSmrg esac 129057e6fb56fSmrg ;; 129067e6fb56fSmrg sunos4*) 129077e6fb56fSmrg case $cc_basename in 129087e6fb56fSmrg CC*) 129097e6fb56fSmrg # Sun C++ 4.x 129107e6fb56fSmrg lt_prog_compiler_pic_CXX='-pic' 129117e6fb56fSmrg lt_prog_compiler_static_CXX='-Bstatic' 129127e6fb56fSmrg ;; 129137e6fb56fSmrg lcc*) 129147e6fb56fSmrg # Lucid 129157e6fb56fSmrg lt_prog_compiler_pic_CXX='-pic' 129167e6fb56fSmrg ;; 129177e6fb56fSmrg *) 129187e6fb56fSmrg ;; 129197e6fb56fSmrg esac 129207e6fb56fSmrg ;; 129217e6fb56fSmrg tandem*) 129227e6fb56fSmrg case $cc_basename in 129237e6fb56fSmrg NCC*) 129247e6fb56fSmrg # NonStop-UX NCC 3.20 129257e6fb56fSmrg lt_prog_compiler_pic_CXX='-KPIC' 129267e6fb56fSmrg ;; 129277e6fb56fSmrg *) 129287e6fb56fSmrg ;; 129297e6fb56fSmrg esac 129307e6fb56fSmrg ;; 129317e6fb56fSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 129327e6fb56fSmrg case $cc_basename in 129337e6fb56fSmrg CC*) 129347e6fb56fSmrg lt_prog_compiler_wl_CXX='-Wl,' 129357e6fb56fSmrg lt_prog_compiler_pic_CXX='-KPIC' 129367e6fb56fSmrg lt_prog_compiler_static_CXX='-Bstatic' 129377e6fb56fSmrg ;; 129387e6fb56fSmrg esac 129397e6fb56fSmrg ;; 129407e6fb56fSmrg vxworks*) 129417e6fb56fSmrg ;; 129427e6fb56fSmrg *) 129437e6fb56fSmrg lt_prog_compiler_can_build_shared_CXX=no 129447e6fb56fSmrg ;; 129457e6fb56fSmrg esac 129467e6fb56fSmrg fi 129477e6fb56fSmrg 129487e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 129497e6fb56fSmrg$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 129507e6fb56fSmrg 129517e6fb56fSmrg# 129527e6fb56fSmrg# Check to make sure the PIC flag actually works. 129537e6fb56fSmrg# 129547e6fb56fSmrgif test -n "$lt_prog_compiler_pic_CXX"; then 129557e6fb56fSmrg 129567e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 129577e6fb56fSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 129587e6fb56fSmrgif test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 129597e6fb56fSmrg $as_echo_n "(cached) " >&6 129607e6fb56fSmrgelse 129617e6fb56fSmrg lt_cv_prog_compiler_pic_works_CXX=no 129627e6fb56fSmrg ac_outfile=conftest.$ac_objext 129637e6fb56fSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 129647e6fb56fSmrg lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 129657e6fb56fSmrg # Insert the option either (1) after the last *FLAGS variable, or 129667e6fb56fSmrg # (2) before a word containing "conftest.", or (3) at the end. 129677e6fb56fSmrg # Note that $ac_compile itself does not contain backslashes and begins 129687e6fb56fSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 129697e6fb56fSmrg # The option is referenced via a variable to avoid confusing sed. 129707e6fb56fSmrg lt_compile=`echo "$ac_compile" | $SED \ 129717e6fb56fSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 129727e6fb56fSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 129737e6fb56fSmrg -e 's:$: $lt_compiler_flag:'` 129747e6fb56fSmrg (eval echo "\"\$as_me:12974: $lt_compile\"" >&5) 129757e6fb56fSmrg (eval "$lt_compile" 2>conftest.err) 129767e6fb56fSmrg ac_status=$? 129777e6fb56fSmrg cat conftest.err >&5 129787e6fb56fSmrg echo "$as_me:12978: \$? = $ac_status" >&5 129797e6fb56fSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 129807e6fb56fSmrg # The compiler can only warn and ignore the option if not recognized 129817e6fb56fSmrg # So say no if there are warnings other than the usual output. 129827e6fb56fSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 129837e6fb56fSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 129847e6fb56fSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 129857e6fb56fSmrg lt_cv_prog_compiler_pic_works_CXX=yes 129867e6fb56fSmrg fi 129877e6fb56fSmrg fi 129887e6fb56fSmrg $rm conftest* 129897e6fb56fSmrg 129907e6fb56fSmrgfi 129917e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 129927e6fb56fSmrg$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 129937e6fb56fSmrg 129947e6fb56fSmrgif test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 129957e6fb56fSmrg case $lt_prog_compiler_pic_CXX in 129967e6fb56fSmrg "" | " "*) ;; 129977e6fb56fSmrg *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 129987e6fb56fSmrg esac 129997e6fb56fSmrgelse 130007e6fb56fSmrg lt_prog_compiler_pic_CXX= 130017e6fb56fSmrg lt_prog_compiler_can_build_shared_CXX=no 130027e6fb56fSmrgfi 130037e6fb56fSmrg 130047e6fb56fSmrgfi 130057e6fb56fSmrgcase $host_os in 130067e6fb56fSmrg # For platforms which do not support PIC, -DPIC is meaningless: 130077e6fb56fSmrg *djgpp*) 130087e6fb56fSmrg lt_prog_compiler_pic_CXX= 130097e6fb56fSmrg ;; 130107e6fb56fSmrg *) 130117e6fb56fSmrg lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 130127e6fb56fSmrg ;; 130137e6fb56fSmrgesac 130147e6fb56fSmrg 130157e6fb56fSmrg# 130167e6fb56fSmrg# Check to make sure the static flag actually works. 130177e6fb56fSmrg# 130187e6fb56fSmrgwl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 130197e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 130207e6fb56fSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 130217e6fb56fSmrgif test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 130227e6fb56fSmrg $as_echo_n "(cached) " >&6 130237e6fb56fSmrgelse 130247e6fb56fSmrg lt_cv_prog_compiler_static_works_CXX=no 130257e6fb56fSmrg save_LDFLAGS="$LDFLAGS" 130267e6fb56fSmrg LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 130277e6fb56fSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 130287e6fb56fSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 130297e6fb56fSmrg # The linker can only warn and ignore the option if not recognized 130307e6fb56fSmrg # So say no if there are warnings 130317e6fb56fSmrg if test -s conftest.err; then 130327e6fb56fSmrg # Append any errors to the config.log. 130337e6fb56fSmrg cat conftest.err 1>&5 130347e6fb56fSmrg $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 130357e6fb56fSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 130367e6fb56fSmrg if diff conftest.exp conftest.er2 >/dev/null; then 130377e6fb56fSmrg lt_cv_prog_compiler_static_works_CXX=yes 130387e6fb56fSmrg fi 130397e6fb56fSmrg else 130407e6fb56fSmrg lt_cv_prog_compiler_static_works_CXX=yes 130417e6fb56fSmrg fi 130427e6fb56fSmrg fi 130437e6fb56fSmrg $rm -r conftest* 130447e6fb56fSmrg LDFLAGS="$save_LDFLAGS" 130457e6fb56fSmrg 130467e6fb56fSmrgfi 130477e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 130487e6fb56fSmrg$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 130497e6fb56fSmrg 130507e6fb56fSmrgif test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 130517e6fb56fSmrg : 130527e6fb56fSmrgelse 130537e6fb56fSmrg lt_prog_compiler_static_CXX= 130547e6fb56fSmrgfi 130557e6fb56fSmrg 130567e6fb56fSmrg 130577e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 130587e6fb56fSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 130597e6fb56fSmrgif test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 130607e6fb56fSmrg $as_echo_n "(cached) " >&6 130617e6fb56fSmrgelse 130627e6fb56fSmrg lt_cv_prog_compiler_c_o_CXX=no 130637e6fb56fSmrg $rm -r conftest 2>/dev/null 130647e6fb56fSmrg mkdir conftest 130657e6fb56fSmrg cd conftest 130667e6fb56fSmrg mkdir out 130677e6fb56fSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 130687e6fb56fSmrg 130697e6fb56fSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 130707e6fb56fSmrg # Insert the option either (1) after the last *FLAGS variable, or 130717e6fb56fSmrg # (2) before a word containing "conftest.", or (3) at the end. 130727e6fb56fSmrg # Note that $ac_compile itself does not contain backslashes and begins 130737e6fb56fSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 130747e6fb56fSmrg lt_compile=`echo "$ac_compile" | $SED \ 130757e6fb56fSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 130767e6fb56fSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 130777e6fb56fSmrg -e 's:$: $lt_compiler_flag:'` 130787e6fb56fSmrg (eval echo "\"\$as_me:13078: $lt_compile\"" >&5) 130797e6fb56fSmrg (eval "$lt_compile" 2>out/conftest.err) 130807e6fb56fSmrg ac_status=$? 130817e6fb56fSmrg cat out/conftest.err >&5 130827e6fb56fSmrg echo "$as_me:13082: \$? = $ac_status" >&5 130837e6fb56fSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 130847e6fb56fSmrg then 130857e6fb56fSmrg # The compiler can only warn and ignore the option if not recognized 130867e6fb56fSmrg # So say no if there are warnings 130877e6fb56fSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 130887e6fb56fSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 130897e6fb56fSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 130907e6fb56fSmrg lt_cv_prog_compiler_c_o_CXX=yes 130917e6fb56fSmrg fi 130927e6fb56fSmrg fi 130937e6fb56fSmrg chmod u+w . 2>&5 130947e6fb56fSmrg $rm conftest* 130957e6fb56fSmrg # SGI C++ compiler will create directory out/ii_files/ for 130967e6fb56fSmrg # template instantiation 130977e6fb56fSmrg test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 130987e6fb56fSmrg $rm out/* && rmdir out 130997e6fb56fSmrg cd .. 131007e6fb56fSmrg rmdir conftest 131017e6fb56fSmrg $rm conftest* 131027e6fb56fSmrg 131037e6fb56fSmrgfi 131047e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 131057e6fb56fSmrg$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 131067e6fb56fSmrg 131077e6fb56fSmrg 131087e6fb56fSmrghard_links="nottested" 131097e6fb56fSmrgif test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 131107e6fb56fSmrg # do not overwrite the value of need_locks provided by the user 131117e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 131127e6fb56fSmrg$as_echo_n "checking if we can lock with hard links... " >&6; } 131137e6fb56fSmrg hard_links=yes 131147e6fb56fSmrg $rm conftest* 131157e6fb56fSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 131167e6fb56fSmrg touch conftest.a 131177e6fb56fSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 131187e6fb56fSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 131197e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 131207e6fb56fSmrg$as_echo "$hard_links" >&6; } 131217e6fb56fSmrg if test "$hard_links" = no; then 131227e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 131237e6fb56fSmrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 131247e6fb56fSmrg need_locks=warn 131257e6fb56fSmrg fi 131267e6fb56fSmrgelse 131277e6fb56fSmrg need_locks=no 131287e6fb56fSmrgfi 131297e6fb56fSmrg 131307e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 131317e6fb56fSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 131327e6fb56fSmrg 131337e6fb56fSmrg export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 131347e6fb56fSmrg case $host_os in 131357e6fb56fSmrg aix[4-9]*) 131367e6fb56fSmrg # If we're using GNU nm, then we don't want the "-C" option. 131377e6fb56fSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 131387e6fb56fSmrg if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 131397e6fb56fSmrg export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 131407e6fb56fSmrg else 131417e6fb56fSmrg export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 131427e6fb56fSmrg fi 131437e6fb56fSmrg ;; 131447e6fb56fSmrg pw32*) 131457e6fb56fSmrg export_symbols_cmds_CXX="$ltdll_cmds" 131467e6fb56fSmrg ;; 131477e6fb56fSmrg cygwin* | mingw*) 131487e6fb56fSmrg export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 131497e6fb56fSmrg ;; 131507e6fb56fSmrg *) 131517e6fb56fSmrg export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 131527e6fb56fSmrg ;; 131537e6fb56fSmrg esac 131547e6fb56fSmrg exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 131557e6fb56fSmrg 131567e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 131577e6fb56fSmrg$as_echo "$ld_shlibs_CXX" >&6; } 131587e6fb56fSmrgtest "$ld_shlibs_CXX" = no && can_build_shared=no 131597e6fb56fSmrg 131607e6fb56fSmrg# 131617e6fb56fSmrg# Do we need to explicitly link libc? 131627e6fb56fSmrg# 131637e6fb56fSmrgcase "x$archive_cmds_need_lc_CXX" in 131647e6fb56fSmrgx|xyes) 131657e6fb56fSmrg # Assume -lc should be added 131667e6fb56fSmrg archive_cmds_need_lc_CXX=yes 131677e6fb56fSmrg 131687e6fb56fSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 131697e6fb56fSmrg case $archive_cmds_CXX in 131707e6fb56fSmrg *'~'*) 131717e6fb56fSmrg # FIXME: we may have to deal with multi-command sequences. 131727e6fb56fSmrg ;; 131737e6fb56fSmrg '$CC '*) 131747e6fb56fSmrg # Test whether the compiler implicitly links with -lc since on some 131757e6fb56fSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 131767e6fb56fSmrg # to ld, don't add -lc before -lgcc. 131777e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 131787e6fb56fSmrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 131797e6fb56fSmrg $rm conftest* 131807e6fb56fSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 131817e6fb56fSmrg 131827e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 131837e6fb56fSmrg (eval $ac_compile) 2>&5 131847e6fb56fSmrg ac_status=$? 131857e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 131867e6fb56fSmrg (exit $ac_status); } 2>conftest.err; then 131877e6fb56fSmrg soname=conftest 131887e6fb56fSmrg lib=conftest 131897e6fb56fSmrg libobjs=conftest.$ac_objext 131907e6fb56fSmrg deplibs= 131917e6fb56fSmrg wl=$lt_prog_compiler_wl_CXX 131927e6fb56fSmrg pic_flag=$lt_prog_compiler_pic_CXX 131937e6fb56fSmrg compiler_flags=-v 131947e6fb56fSmrg linker_flags=-v 131957e6fb56fSmrg verstring= 131967e6fb56fSmrg output_objdir=. 131977e6fb56fSmrg libname=conftest 131987e6fb56fSmrg lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 131997e6fb56fSmrg allow_undefined_flag_CXX= 132007e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 132017e6fb56fSmrg (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 132027e6fb56fSmrg ac_status=$? 132037e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 132047e6fb56fSmrg (exit $ac_status); } 132057e6fb56fSmrg then 132067e6fb56fSmrg archive_cmds_need_lc_CXX=no 132077e6fb56fSmrg else 132087e6fb56fSmrg archive_cmds_need_lc_CXX=yes 132097e6fb56fSmrg fi 132107e6fb56fSmrg allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 132117e6fb56fSmrg else 132127e6fb56fSmrg cat conftest.err 1>&5 132137e6fb56fSmrg fi 132147e6fb56fSmrg $rm conftest* 132157e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 132167e6fb56fSmrg$as_echo "$archive_cmds_need_lc_CXX" >&6; } 132177e6fb56fSmrg ;; 132187e6fb56fSmrg esac 132197e6fb56fSmrg fi 132207e6fb56fSmrg ;; 132217e6fb56fSmrgesac 132227e6fb56fSmrg 132237e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 132247e6fb56fSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; } 132257e6fb56fSmrglibrary_names_spec= 132267e6fb56fSmrglibname_spec='lib$name' 132277e6fb56fSmrgsoname_spec= 132287e6fb56fSmrgshrext_cmds=".so" 132297e6fb56fSmrgpostinstall_cmds= 132307e6fb56fSmrgpostuninstall_cmds= 132317e6fb56fSmrgfinish_cmds= 132327e6fb56fSmrgfinish_eval= 132337e6fb56fSmrgshlibpath_var= 132347e6fb56fSmrgshlibpath_overrides_runpath=unknown 132357e6fb56fSmrgversion_type=none 132367e6fb56fSmrgdynamic_linker="$host_os ld.so" 132377e6fb56fSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 132387e6fb56fSmrg 132397e6fb56fSmrgneed_lib_prefix=unknown 132407e6fb56fSmrghardcode_into_libs=no 132417e6fb56fSmrg 132427e6fb56fSmrg# when you set need_version to no, make sure it does not cause -set_version 132437e6fb56fSmrg# flags to be left without arguments 132447e6fb56fSmrgneed_version=unknown 132457e6fb56fSmrg 132467e6fb56fSmrgcase $host_os in 132477e6fb56fSmrgaix3*) 132487e6fb56fSmrg version_type=linux 132497e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 132507e6fb56fSmrg shlibpath_var=LIBPATH 132517e6fb56fSmrg 132527e6fb56fSmrg # AIX 3 has no versioning support, so we append a major version to the name. 132537e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 132547e6fb56fSmrg ;; 132557e6fb56fSmrg 132567e6fb56fSmrgaix[4-9]*) 132577e6fb56fSmrg version_type=linux 132587e6fb56fSmrg need_lib_prefix=no 132597e6fb56fSmrg need_version=no 132607e6fb56fSmrg hardcode_into_libs=yes 132617e6fb56fSmrg if test "$host_cpu" = ia64; then 132627e6fb56fSmrg # AIX 5 supports IA64 132637e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 132647e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 132657e6fb56fSmrg else 132667e6fb56fSmrg # With GCC up to 2.95.x, collect2 would create an import file 132677e6fb56fSmrg # for dependence libraries. The import file would start with 132687e6fb56fSmrg # the line `#! .'. This would cause the generated library to 132697e6fb56fSmrg # depend on `.', always an invalid library. This was fixed in 132707e6fb56fSmrg # development snapshots of GCC prior to 3.0. 132717e6fb56fSmrg case $host_os in 132727e6fb56fSmrg aix4 | aix4.[01] | aix4.[01].*) 132737e6fb56fSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 132747e6fb56fSmrg echo ' yes ' 132757e6fb56fSmrg echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 132767e6fb56fSmrg : 132777e6fb56fSmrg else 132787e6fb56fSmrg can_build_shared=no 132797e6fb56fSmrg fi 132807e6fb56fSmrg ;; 132817e6fb56fSmrg esac 132827e6fb56fSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 132837e6fb56fSmrg # soname into executable. Probably we can add versioning support to 132847e6fb56fSmrg # collect2, so additional links can be useful in future. 132857e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 132867e6fb56fSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 132877e6fb56fSmrg # instead of lib<name>.a to let people know that these are not 132887e6fb56fSmrg # typical AIX shared libraries. 132897e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 132907e6fb56fSmrg else 132917e6fb56fSmrg # We preserve .a as extension for shared libraries through AIX4.2 132927e6fb56fSmrg # and later when we are not doing run time linking. 132937e6fb56fSmrg library_names_spec='${libname}${release}.a $libname.a' 132947e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 132957e6fb56fSmrg fi 132967e6fb56fSmrg shlibpath_var=LIBPATH 132977e6fb56fSmrg fi 132987e6fb56fSmrg ;; 132997e6fb56fSmrg 133007e6fb56fSmrgamigaos*) 133017e6fb56fSmrg library_names_spec='$libname.ixlibrary $libname.a' 133027e6fb56fSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 133037e6fb56fSmrg finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 133047e6fb56fSmrg ;; 133057e6fb56fSmrg 133067e6fb56fSmrgbeos*) 133077e6fb56fSmrg library_names_spec='${libname}${shared_ext}' 133087e6fb56fSmrg dynamic_linker="$host_os ld.so" 133097e6fb56fSmrg shlibpath_var=LIBRARY_PATH 133107e6fb56fSmrg ;; 133117e6fb56fSmrg 133127e6fb56fSmrgbsdi[45]*) 133137e6fb56fSmrg version_type=linux 133147e6fb56fSmrg need_version=no 133157e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 133167e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 133177e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 133187e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 133197e6fb56fSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 133207e6fb56fSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 133217e6fb56fSmrg # the default ld.so.conf also contains /usr/contrib/lib and 133227e6fb56fSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 133237e6fb56fSmrg # libtool to hard-code these into programs 133247e6fb56fSmrg ;; 133257e6fb56fSmrg 133267e6fb56fSmrgcygwin* | mingw* | pw32*) 133277e6fb56fSmrg version_type=windows 133287e6fb56fSmrg shrext_cmds=".dll" 133297e6fb56fSmrg need_version=no 133307e6fb56fSmrg need_lib_prefix=no 133317e6fb56fSmrg 133327e6fb56fSmrg case $GCC,$host_os in 133337e6fb56fSmrg yes,cygwin* | yes,mingw* | yes,pw32*) 133347e6fb56fSmrg library_names_spec='$libname.dll.a' 133357e6fb56fSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 133367e6fb56fSmrg postinstall_cmds='base_file=`basename \${file}`~ 133377e6fb56fSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 133387e6fb56fSmrg dldir=$destdir/`dirname \$dlpath`~ 133397e6fb56fSmrg test -d \$dldir || mkdir -p \$dldir~ 133407e6fb56fSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 133417e6fb56fSmrg chmod a+x \$dldir/$dlname' 133427e6fb56fSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 133437e6fb56fSmrg dlpath=$dir/\$dldll~ 133447e6fb56fSmrg $rm \$dlpath' 133457e6fb56fSmrg shlibpath_overrides_runpath=yes 133467e6fb56fSmrg 133477e6fb56fSmrg case $host_os in 133487e6fb56fSmrg cygwin*) 133497e6fb56fSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 133507e6fb56fSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 133517e6fb56fSmrg sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 133527e6fb56fSmrg ;; 133537e6fb56fSmrg mingw*) 133547e6fb56fSmrg # MinGW DLLs use traditional 'lib' prefix 133557e6fb56fSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 133567e6fb56fSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 133577e6fb56fSmrg if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 133587e6fb56fSmrg # It is most probably a Windows format PATH printed by 133597e6fb56fSmrg # mingw gcc, but we are running on Cygwin. Gcc prints its search 133607e6fb56fSmrg # path with ; separators, and with drive letters. We can handle the 133617e6fb56fSmrg # drive letters (cygwin fileutils understands them), so leave them, 133627e6fb56fSmrg # especially as we might pass files found there to a mingw objdump, 133637e6fb56fSmrg # which wouldn't understand a cygwinified path. Ahh. 133647e6fb56fSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 133657e6fb56fSmrg else 133667e6fb56fSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 133677e6fb56fSmrg fi 133687e6fb56fSmrg ;; 133697e6fb56fSmrg pw32*) 133707e6fb56fSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 133717e6fb56fSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 133727e6fb56fSmrg ;; 133737e6fb56fSmrg esac 133747e6fb56fSmrg ;; 133757e6fb56fSmrg 133767e6fb56fSmrg *) 133777e6fb56fSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 133787e6fb56fSmrg ;; 133797e6fb56fSmrg esac 133807e6fb56fSmrg dynamic_linker='Win32 ld.exe' 133817e6fb56fSmrg # FIXME: first we should search . and the directory the executable is in 133827e6fb56fSmrg shlibpath_var=PATH 133837e6fb56fSmrg ;; 133847e6fb56fSmrg 133857e6fb56fSmrgdarwin* | rhapsody*) 133867e6fb56fSmrg dynamic_linker="$host_os dyld" 133877e6fb56fSmrg version_type=darwin 133887e6fb56fSmrg need_lib_prefix=no 133897e6fb56fSmrg need_version=no 133907e6fb56fSmrg library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 133917e6fb56fSmrg soname_spec='${libname}${release}${major}$shared_ext' 133927e6fb56fSmrg shlibpath_overrides_runpath=yes 133937e6fb56fSmrg shlibpath_var=DYLD_LIBRARY_PATH 133947e6fb56fSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 133957e6fb56fSmrg 133967e6fb56fSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 133977e6fb56fSmrg ;; 133987e6fb56fSmrg 133997e6fb56fSmrgdgux*) 134007e6fb56fSmrg version_type=linux 134017e6fb56fSmrg need_lib_prefix=no 134027e6fb56fSmrg need_version=no 134037e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 134047e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 134057e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 134067e6fb56fSmrg ;; 134077e6fb56fSmrg 134087e6fb56fSmrgfreebsd1*) 134097e6fb56fSmrg dynamic_linker=no 134107e6fb56fSmrg ;; 134117e6fb56fSmrg 134127e6fb56fSmrgfreebsd* | dragonfly*) 134137e6fb56fSmrg # DragonFly does not have aout. When/if they implement a new 134147e6fb56fSmrg # versioning mechanism, adjust this. 134157e6fb56fSmrg if test -x /usr/bin/objformat; then 134167e6fb56fSmrg objformat=`/usr/bin/objformat` 134177e6fb56fSmrg else 134187e6fb56fSmrg case $host_os in 134197e6fb56fSmrg freebsd[123]*) objformat=aout ;; 134207e6fb56fSmrg *) objformat=elf ;; 134217e6fb56fSmrg esac 134227e6fb56fSmrg fi 134237e6fb56fSmrg version_type=freebsd-$objformat 134247e6fb56fSmrg case $version_type in 134257e6fb56fSmrg freebsd-elf*) 134267e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 134277e6fb56fSmrg need_version=no 134287e6fb56fSmrg need_lib_prefix=no 134297e6fb56fSmrg ;; 134307e6fb56fSmrg freebsd-*) 134317e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 134327e6fb56fSmrg need_version=yes 134337e6fb56fSmrg ;; 134347e6fb56fSmrg esac 134357e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 134367e6fb56fSmrg case $host_os in 134377e6fb56fSmrg freebsd2*) 134387e6fb56fSmrg shlibpath_overrides_runpath=yes 134397e6fb56fSmrg ;; 134407e6fb56fSmrg freebsd3.[01]* | freebsdelf3.[01]*) 134417e6fb56fSmrg shlibpath_overrides_runpath=yes 134427e6fb56fSmrg hardcode_into_libs=yes 134437e6fb56fSmrg ;; 134447e6fb56fSmrg freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 134457e6fb56fSmrg freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 134467e6fb56fSmrg shlibpath_overrides_runpath=no 134477e6fb56fSmrg hardcode_into_libs=yes 134487e6fb56fSmrg ;; 134497e6fb56fSmrg *) # from 4.6 on, and DragonFly 134507e6fb56fSmrg shlibpath_overrides_runpath=yes 134517e6fb56fSmrg hardcode_into_libs=yes 134527e6fb56fSmrg ;; 134537e6fb56fSmrg esac 134547e6fb56fSmrg ;; 134557e6fb56fSmrg 134567e6fb56fSmrggnu*) 134577e6fb56fSmrg version_type=linux 134587e6fb56fSmrg need_lib_prefix=no 134597e6fb56fSmrg need_version=no 134607e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 134617e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 134627e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 134637e6fb56fSmrg hardcode_into_libs=yes 134647e6fb56fSmrg ;; 134657e6fb56fSmrg 134667e6fb56fSmrghpux9* | hpux10* | hpux11*) 134677e6fb56fSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 134687e6fb56fSmrg # link against other versions. 134697e6fb56fSmrg version_type=sunos 134707e6fb56fSmrg need_lib_prefix=no 134717e6fb56fSmrg need_version=no 134727e6fb56fSmrg case $host_cpu in 134737e6fb56fSmrg ia64*) 134747e6fb56fSmrg shrext_cmds='.so' 134757e6fb56fSmrg hardcode_into_libs=yes 134767e6fb56fSmrg dynamic_linker="$host_os dld.so" 134777e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 134787e6fb56fSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 134797e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 134807e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 134817e6fb56fSmrg if test "X$HPUX_IA64_MODE" = X32; then 134827e6fb56fSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 134837e6fb56fSmrg else 134847e6fb56fSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 134857e6fb56fSmrg fi 134867e6fb56fSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 134877e6fb56fSmrg ;; 134887e6fb56fSmrg hppa*64*) 134897e6fb56fSmrg shrext_cmds='.sl' 134907e6fb56fSmrg hardcode_into_libs=yes 134917e6fb56fSmrg dynamic_linker="$host_os dld.sl" 134927e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 134937e6fb56fSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 134947e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 134957e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 134967e6fb56fSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 134977e6fb56fSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 134987e6fb56fSmrg ;; 134997e6fb56fSmrg *) 135007e6fb56fSmrg shrext_cmds='.sl' 135017e6fb56fSmrg dynamic_linker="$host_os dld.sl" 135027e6fb56fSmrg shlibpath_var=SHLIB_PATH 135037e6fb56fSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 135047e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 135057e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 135067e6fb56fSmrg ;; 135077e6fb56fSmrg esac 135087e6fb56fSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555. 135097e6fb56fSmrg postinstall_cmds='chmod 555 $lib' 135107e6fb56fSmrg ;; 135117e6fb56fSmrg 135127e6fb56fSmrginterix[3-9]*) 135137e6fb56fSmrg version_type=linux 135147e6fb56fSmrg need_lib_prefix=no 135157e6fb56fSmrg need_version=no 135167e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 135177e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 135187e6fb56fSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 135197e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 135207e6fb56fSmrg shlibpath_overrides_runpath=no 135217e6fb56fSmrg hardcode_into_libs=yes 135227e6fb56fSmrg ;; 135237e6fb56fSmrg 135247e6fb56fSmrgirix5* | irix6* | nonstopux*) 135257e6fb56fSmrg case $host_os in 135267e6fb56fSmrg nonstopux*) version_type=nonstopux ;; 135277e6fb56fSmrg *) 135287e6fb56fSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 135297e6fb56fSmrg version_type=linux 135307e6fb56fSmrg else 135317e6fb56fSmrg version_type=irix 135327e6fb56fSmrg fi ;; 135337e6fb56fSmrg esac 135347e6fb56fSmrg need_lib_prefix=no 135357e6fb56fSmrg need_version=no 135367e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 135377e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 135387e6fb56fSmrg case $host_os in 135397e6fb56fSmrg irix5* | nonstopux*) 135407e6fb56fSmrg libsuff= shlibsuff= 135417e6fb56fSmrg ;; 135427e6fb56fSmrg *) 135437e6fb56fSmrg case $LD in # libtool.m4 will add one of these switches to LD 135447e6fb56fSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 135457e6fb56fSmrg libsuff= shlibsuff= libmagic=32-bit;; 135467e6fb56fSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 135477e6fb56fSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 135487e6fb56fSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 135497e6fb56fSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 135507e6fb56fSmrg *) libsuff= shlibsuff= libmagic=never-match;; 135517e6fb56fSmrg esac 135527e6fb56fSmrg ;; 135537e6fb56fSmrg esac 135547e6fb56fSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 135557e6fb56fSmrg shlibpath_overrides_runpath=no 135567e6fb56fSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 135577e6fb56fSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 135587e6fb56fSmrg hardcode_into_libs=yes 135597e6fb56fSmrg ;; 135607e6fb56fSmrg 135617e6fb56fSmrg# No shared lib support for Linux oldld, aout, or coff. 135627e6fb56fSmrglinux*oldld* | linux*aout* | linux*coff*) 135637e6fb56fSmrg dynamic_linker=no 135647e6fb56fSmrg ;; 135657e6fb56fSmrg 135667e6fb56fSmrg# This must be Linux ELF. 135677e6fb56fSmrglinux* | k*bsd*-gnu) 135687e6fb56fSmrg version_type=linux 135697e6fb56fSmrg need_lib_prefix=no 135707e6fb56fSmrg need_version=no 135717e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 135727e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 135737e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 135747e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 135757e6fb56fSmrg shlibpath_overrides_runpath=no 135767e6fb56fSmrg # This implies no fast_install, which is unacceptable. 135777e6fb56fSmrg # Some rework will be needed to allow for fast_install 135787e6fb56fSmrg # before this can be enabled. 135797e6fb56fSmrg hardcode_into_libs=yes 135807e6fb56fSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 135817e6fb56fSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 135827e6fb56fSmrg 135837e6fb56fSmrg # Append ld.so.conf contents to the search path 135847e6fb56fSmrg if test -f /etc/ld.so.conf; then 135857e6fb56fSmrg 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;/^$/d' | tr '\n' ' '` 135867e6fb56fSmrg sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 135877e6fb56fSmrg fi 135887e6fb56fSmrg 135897e6fb56fSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 135907e6fb56fSmrg # powerpc, because MkLinux only supported shared libraries with the 135917e6fb56fSmrg # GNU dynamic linker. Since this was broken with cross compilers, 135927e6fb56fSmrg # most powerpc-linux boxes support dynamic linking these days and 135937e6fb56fSmrg # people can always --disable-shared, the test was removed, and we 135947e6fb56fSmrg # assume the GNU/Linux dynamic linker is in use. 135957e6fb56fSmrg dynamic_linker='GNU/Linux ld.so' 135967e6fb56fSmrg ;; 135977e6fb56fSmrg 135987e6fb56fSmrgnetbsd*) 135997e6fb56fSmrg version_type=sunos 136007e6fb56fSmrg need_lib_prefix=no 136017e6fb56fSmrg need_version=no 136027e6fb56fSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 136037e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 136047e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 136057e6fb56fSmrg dynamic_linker='NetBSD (a.out) ld.so' 136067e6fb56fSmrg else 136077e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 136087e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 136097e6fb56fSmrg dynamic_linker='NetBSD ld.elf_so' 136107e6fb56fSmrg fi 136117e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 136127e6fb56fSmrg shlibpath_overrides_runpath=yes 136137e6fb56fSmrg hardcode_into_libs=yes 136147e6fb56fSmrg ;; 136157e6fb56fSmrg 136167e6fb56fSmrgnewsos6) 136177e6fb56fSmrg version_type=linux 136187e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 136197e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 136207e6fb56fSmrg shlibpath_overrides_runpath=yes 136217e6fb56fSmrg ;; 136227e6fb56fSmrg 136237e6fb56fSmrgnto-qnx*) 136247e6fb56fSmrg version_type=linux 136257e6fb56fSmrg need_lib_prefix=no 136267e6fb56fSmrg need_version=no 136277e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 136287e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 136297e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 136307e6fb56fSmrg shlibpath_overrides_runpath=yes 136317e6fb56fSmrg ;; 136327e6fb56fSmrg 136337e6fb56fSmrgopenbsd*) 136347e6fb56fSmrg version_type=sunos 136357e6fb56fSmrg sys_lib_dlsearch_path_spec="/usr/lib" 136367e6fb56fSmrg need_lib_prefix=no 136377e6fb56fSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 136387e6fb56fSmrg case $host_os in 136397e6fb56fSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 136407e6fb56fSmrg *) need_version=no ;; 136417e6fb56fSmrg esac 136427e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 136437e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 136447e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 136457e6fb56fSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 136467e6fb56fSmrg case $host_os in 136477e6fb56fSmrg openbsd2.[89] | openbsd2.[89].*) 136487e6fb56fSmrg shlibpath_overrides_runpath=no 136497e6fb56fSmrg ;; 136507e6fb56fSmrg *) 136517e6fb56fSmrg shlibpath_overrides_runpath=yes 136527e6fb56fSmrg ;; 136537e6fb56fSmrg esac 136547e6fb56fSmrg else 136557e6fb56fSmrg shlibpath_overrides_runpath=yes 136567e6fb56fSmrg fi 136577e6fb56fSmrg ;; 136587e6fb56fSmrg 136597e6fb56fSmrgos2*) 136607e6fb56fSmrg libname_spec='$name' 136617e6fb56fSmrg shrext_cmds=".dll" 136627e6fb56fSmrg need_lib_prefix=no 136637e6fb56fSmrg library_names_spec='$libname${shared_ext} $libname.a' 136647e6fb56fSmrg dynamic_linker='OS/2 ld.exe' 136657e6fb56fSmrg shlibpath_var=LIBPATH 136667e6fb56fSmrg ;; 136677e6fb56fSmrg 136687e6fb56fSmrgosf3* | osf4* | osf5*) 136697e6fb56fSmrg version_type=osf 136707e6fb56fSmrg need_lib_prefix=no 136717e6fb56fSmrg need_version=no 136727e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 136737e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 136747e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 136757e6fb56fSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 136767e6fb56fSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 136777e6fb56fSmrg ;; 136787e6fb56fSmrg 136797e6fb56fSmrgrdos*) 136807e6fb56fSmrg dynamic_linker=no 136817e6fb56fSmrg ;; 136827e6fb56fSmrg 136837e6fb56fSmrgsolaris*) 136847e6fb56fSmrg version_type=linux 136857e6fb56fSmrg need_lib_prefix=no 136867e6fb56fSmrg need_version=no 136877e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 136887e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 136897e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 136907e6fb56fSmrg shlibpath_overrides_runpath=yes 136917e6fb56fSmrg hardcode_into_libs=yes 136927e6fb56fSmrg # ldd complains unless libraries are executable 136937e6fb56fSmrg postinstall_cmds='chmod +x $lib' 136947e6fb56fSmrg ;; 136957e6fb56fSmrg 136967e6fb56fSmrgsunos4*) 136977e6fb56fSmrg version_type=sunos 136987e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 136997e6fb56fSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 137007e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 137017e6fb56fSmrg shlibpath_overrides_runpath=yes 137027e6fb56fSmrg if test "$with_gnu_ld" = yes; then 137037e6fb56fSmrg need_lib_prefix=no 137047e6fb56fSmrg fi 137057e6fb56fSmrg need_version=yes 137067e6fb56fSmrg ;; 137077e6fb56fSmrg 137087e6fb56fSmrgsysv4 | sysv4.3*) 137097e6fb56fSmrg version_type=linux 137107e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 137117e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 137127e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 137137e6fb56fSmrg case $host_vendor in 137147e6fb56fSmrg sni) 137157e6fb56fSmrg shlibpath_overrides_runpath=no 137167e6fb56fSmrg need_lib_prefix=no 137177e6fb56fSmrg export_dynamic_flag_spec='${wl}-Blargedynsym' 137187e6fb56fSmrg runpath_var=LD_RUN_PATH 137197e6fb56fSmrg ;; 137207e6fb56fSmrg siemens) 137217e6fb56fSmrg need_lib_prefix=no 137227e6fb56fSmrg ;; 137237e6fb56fSmrg motorola) 137247e6fb56fSmrg need_lib_prefix=no 137257e6fb56fSmrg need_version=no 137267e6fb56fSmrg shlibpath_overrides_runpath=no 137277e6fb56fSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 137287e6fb56fSmrg ;; 137297e6fb56fSmrg esac 137307e6fb56fSmrg ;; 137317e6fb56fSmrg 137327e6fb56fSmrgsysv4*MP*) 137337e6fb56fSmrg if test -d /usr/nec ;then 137347e6fb56fSmrg version_type=linux 137357e6fb56fSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 137367e6fb56fSmrg soname_spec='$libname${shared_ext}.$major' 137377e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 137387e6fb56fSmrg fi 137397e6fb56fSmrg ;; 137407e6fb56fSmrg 137417e6fb56fSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 137427e6fb56fSmrg version_type=freebsd-elf 137437e6fb56fSmrg need_lib_prefix=no 137447e6fb56fSmrg need_version=no 137457e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 137467e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 137477e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 137487e6fb56fSmrg hardcode_into_libs=yes 137497e6fb56fSmrg if test "$with_gnu_ld" = yes; then 137507e6fb56fSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 137517e6fb56fSmrg shlibpath_overrides_runpath=no 137527e6fb56fSmrg else 137537e6fb56fSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 137547e6fb56fSmrg shlibpath_overrides_runpath=yes 137557e6fb56fSmrg case $host_os in 137567e6fb56fSmrg sco3.2v5*) 137577e6fb56fSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 137587e6fb56fSmrg ;; 137597e6fb56fSmrg esac 137607e6fb56fSmrg fi 137617e6fb56fSmrg sys_lib_dlsearch_path_spec='/usr/lib' 137627e6fb56fSmrg ;; 137637e6fb56fSmrg 137647e6fb56fSmrguts4*) 137657e6fb56fSmrg version_type=linux 137667e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 137677e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 137687e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 137697e6fb56fSmrg ;; 137707e6fb56fSmrg 137717e6fb56fSmrg*) 137727e6fb56fSmrg dynamic_linker=no 137737e6fb56fSmrg ;; 137747e6fb56fSmrgesac 137757e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 137767e6fb56fSmrg$as_echo "$dynamic_linker" >&6; } 137777e6fb56fSmrgtest "$dynamic_linker" = no && can_build_shared=no 137787e6fb56fSmrg 137797e6fb56fSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 137807e6fb56fSmrg $as_echo_n "(cached) " >&6 137817e6fb56fSmrgelse 137827e6fb56fSmrg lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 137837e6fb56fSmrgfi 137847e6fb56fSmrg 137857e6fb56fSmrgsys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 137867e6fb56fSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 137877e6fb56fSmrg $as_echo_n "(cached) " >&6 137887e6fb56fSmrgelse 137897e6fb56fSmrg lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 137907e6fb56fSmrgfi 137917e6fb56fSmrg 137927e6fb56fSmrgsys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 137937e6fb56fSmrg 137947e6fb56fSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 137957e6fb56fSmrgif test "$GCC" = yes; then 137967e6fb56fSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 137977e6fb56fSmrgfi 137987e6fb56fSmrg 137997e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 138007e6fb56fSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 138017e6fb56fSmrghardcode_action_CXX= 138027e6fb56fSmrgif test -n "$hardcode_libdir_flag_spec_CXX" || \ 138037e6fb56fSmrg test -n "$runpath_var_CXX" || \ 138047e6fb56fSmrg test "X$hardcode_automatic_CXX" = "Xyes" ; then 138057e6fb56fSmrg 138067e6fb56fSmrg # We can hardcode non-existant directories. 138077e6fb56fSmrg if test "$hardcode_direct_CXX" != no && 138087e6fb56fSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 138097e6fb56fSmrg # have to relink, otherwise we might link with an installed library 138107e6fb56fSmrg # when we should be linking with a yet-to-be-installed one 138117e6fb56fSmrg ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 138127e6fb56fSmrg test "$hardcode_minus_L_CXX" != no; then 138137e6fb56fSmrg # Linking always hardcodes the temporary library directory. 138147e6fb56fSmrg hardcode_action_CXX=relink 138157e6fb56fSmrg else 138167e6fb56fSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 138177e6fb56fSmrg hardcode_action_CXX=immediate 138187e6fb56fSmrg fi 138197e6fb56fSmrgelse 138207e6fb56fSmrg # We cannot hardcode anything, or else we can only hardcode existing 138217e6fb56fSmrg # directories. 138227e6fb56fSmrg hardcode_action_CXX=unsupported 138237e6fb56fSmrgfi 138247e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 138257e6fb56fSmrg$as_echo "$hardcode_action_CXX" >&6; } 138267e6fb56fSmrg 138277e6fb56fSmrgif test "$hardcode_action_CXX" = relink; then 138287e6fb56fSmrg # Fast installation is not supported 138297e6fb56fSmrg enable_fast_install=no 138307e6fb56fSmrgelif test "$shlibpath_overrides_runpath" = yes || 138317e6fb56fSmrg test "$enable_shared" = no; then 138327e6fb56fSmrg # Fast installation is not necessary 138337e6fb56fSmrg enable_fast_install=needless 138347e6fb56fSmrgfi 138357e6fb56fSmrg 138367e6fb56fSmrg 138377e6fb56fSmrg# The else clause should only fire when bootstrapping the 138387e6fb56fSmrg# libtool distribution, otherwise you forgot to ship ltmain.sh 138397e6fb56fSmrg# with your package, and you will get complaints that there are 138407e6fb56fSmrg# no rules to generate ltmain.sh. 138417e6fb56fSmrgif test -f "$ltmain"; then 138427e6fb56fSmrg # See if we are running on zsh, and set the options which allow our commands through 138437e6fb56fSmrg # without removal of \ escapes. 138447e6fb56fSmrg if test -n "${ZSH_VERSION+set}" ; then 138457e6fb56fSmrg setopt NO_GLOB_SUBST 138467e6fb56fSmrg fi 138477e6fb56fSmrg # Now quote all the things that may contain metacharacters while being 138487e6fb56fSmrg # careful not to overquote the AC_SUBSTed values. We take copies of the 138497e6fb56fSmrg # variables and quote the copies for generation of the libtool script. 138507e6fb56fSmrg for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 138517e6fb56fSmrg SED SHELL STRIP \ 138527e6fb56fSmrg libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 138537e6fb56fSmrg old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 138547e6fb56fSmrg deplibs_check_method reload_flag reload_cmds need_locks \ 138557e6fb56fSmrg lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 138567e6fb56fSmrg lt_cv_sys_global_symbol_to_c_name_address \ 138577e6fb56fSmrg sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 138587e6fb56fSmrg old_postinstall_cmds old_postuninstall_cmds \ 138597e6fb56fSmrg compiler_CXX \ 138607e6fb56fSmrg CC_CXX \ 138617e6fb56fSmrg LD_CXX \ 138627e6fb56fSmrg lt_prog_compiler_wl_CXX \ 138637e6fb56fSmrg lt_prog_compiler_pic_CXX \ 138647e6fb56fSmrg lt_prog_compiler_static_CXX \ 138657e6fb56fSmrg lt_prog_compiler_no_builtin_flag_CXX \ 138667e6fb56fSmrg export_dynamic_flag_spec_CXX \ 138677e6fb56fSmrg thread_safe_flag_spec_CXX \ 138687e6fb56fSmrg whole_archive_flag_spec_CXX \ 138697e6fb56fSmrg enable_shared_with_static_runtimes_CXX \ 138707e6fb56fSmrg old_archive_cmds_CXX \ 138717e6fb56fSmrg old_archive_from_new_cmds_CXX \ 138727e6fb56fSmrg predep_objects_CXX \ 138737e6fb56fSmrg postdep_objects_CXX \ 138747e6fb56fSmrg predeps_CXX \ 138757e6fb56fSmrg postdeps_CXX \ 138767e6fb56fSmrg compiler_lib_search_path_CXX \ 138777e6fb56fSmrg compiler_lib_search_dirs_CXX \ 138787e6fb56fSmrg archive_cmds_CXX \ 138797e6fb56fSmrg archive_expsym_cmds_CXX \ 138807e6fb56fSmrg postinstall_cmds_CXX \ 138817e6fb56fSmrg postuninstall_cmds_CXX \ 138827e6fb56fSmrg old_archive_from_expsyms_cmds_CXX \ 138837e6fb56fSmrg allow_undefined_flag_CXX \ 138847e6fb56fSmrg no_undefined_flag_CXX \ 138857e6fb56fSmrg export_symbols_cmds_CXX \ 138867e6fb56fSmrg hardcode_libdir_flag_spec_CXX \ 138877e6fb56fSmrg hardcode_libdir_flag_spec_ld_CXX \ 138887e6fb56fSmrg hardcode_libdir_separator_CXX \ 138897e6fb56fSmrg hardcode_automatic_CXX \ 138907e6fb56fSmrg module_cmds_CXX \ 138917e6fb56fSmrg module_expsym_cmds_CXX \ 138927e6fb56fSmrg lt_cv_prog_compiler_c_o_CXX \ 138937e6fb56fSmrg fix_srcfile_path_CXX \ 138947e6fb56fSmrg exclude_expsyms_CXX \ 138957e6fb56fSmrg include_expsyms_CXX; do 138967e6fb56fSmrg 138977e6fb56fSmrg case $var in 138987e6fb56fSmrg old_archive_cmds_CXX | \ 138997e6fb56fSmrg old_archive_from_new_cmds_CXX | \ 139007e6fb56fSmrg archive_cmds_CXX | \ 139017e6fb56fSmrg archive_expsym_cmds_CXX | \ 139027e6fb56fSmrg module_cmds_CXX | \ 139037e6fb56fSmrg module_expsym_cmds_CXX | \ 139047e6fb56fSmrg old_archive_from_expsyms_cmds_CXX | \ 139057e6fb56fSmrg export_symbols_cmds_CXX | \ 139067e6fb56fSmrg extract_expsyms_cmds | reload_cmds | finish_cmds | \ 139077e6fb56fSmrg postinstall_cmds | postuninstall_cmds | \ 139087e6fb56fSmrg old_postinstall_cmds | old_postuninstall_cmds | \ 139097e6fb56fSmrg sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 139107e6fb56fSmrg # Double-quote double-evaled strings. 139117e6fb56fSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 139127e6fb56fSmrg ;; 139137e6fb56fSmrg *) 139147e6fb56fSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 139157e6fb56fSmrg ;; 139167e6fb56fSmrg esac 139177e6fb56fSmrg done 139187e6fb56fSmrg 139197e6fb56fSmrg case $lt_echo in 139207e6fb56fSmrg *'\$0 --fallback-echo"') 139217e6fb56fSmrg lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 139227e6fb56fSmrg ;; 139237e6fb56fSmrg esac 139247e6fb56fSmrg 139257e6fb56fSmrgcfgfile="$ofile" 139267e6fb56fSmrg 139277e6fb56fSmrg cat <<__EOF__ >> "$cfgfile" 139287e6fb56fSmrg# ### BEGIN LIBTOOL TAG CONFIG: $tagname 139297e6fb56fSmrg 139307e6fb56fSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 139317e6fb56fSmrg 139327e6fb56fSmrg# Shell to use when invoking shell scripts. 139337e6fb56fSmrgSHELL=$lt_SHELL 139347e6fb56fSmrg 139357e6fb56fSmrg# Whether or not to build shared libraries. 139367e6fb56fSmrgbuild_libtool_libs=$enable_shared 139377e6fb56fSmrg 139387e6fb56fSmrg# Whether or not to build static libraries. 139397e6fb56fSmrgbuild_old_libs=$enable_static 139407e6fb56fSmrg 139417e6fb56fSmrg# Whether or not to add -lc for building shared libraries. 139427e6fb56fSmrgbuild_libtool_need_lc=$archive_cmds_need_lc_CXX 139437e6fb56fSmrg 139447e6fb56fSmrg# Whether or not to disallow shared libs when runtime libs are static 139457e6fb56fSmrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 139467e6fb56fSmrg 139477e6fb56fSmrg# Whether or not to optimize for fast installation. 139487e6fb56fSmrgfast_install=$enable_fast_install 139497e6fb56fSmrg 139507e6fb56fSmrg# The host system. 139517e6fb56fSmrghost_alias=$host_alias 139527e6fb56fSmrghost=$host 139537e6fb56fSmrghost_os=$host_os 139547e6fb56fSmrg 139557e6fb56fSmrg# The build system. 139567e6fb56fSmrgbuild_alias=$build_alias 139577e6fb56fSmrgbuild=$build 139587e6fb56fSmrgbuild_os=$build_os 139597e6fb56fSmrg 139607e6fb56fSmrg# An echo program that does not interpret backslashes. 139617e6fb56fSmrgecho=$lt_echo 139627e6fb56fSmrg 139637e6fb56fSmrg# The archiver. 139647e6fb56fSmrgAR=$lt_AR 139657e6fb56fSmrgAR_FLAGS=$lt_AR_FLAGS 139667e6fb56fSmrg 139677e6fb56fSmrg# A C compiler. 139687e6fb56fSmrgLTCC=$lt_LTCC 139697e6fb56fSmrg 139707e6fb56fSmrg# LTCC compiler flags. 139717e6fb56fSmrgLTCFLAGS=$lt_LTCFLAGS 139727e6fb56fSmrg 139737e6fb56fSmrg# A language-specific compiler. 139747e6fb56fSmrgCC=$lt_compiler_CXX 139757e6fb56fSmrg 139767e6fb56fSmrg# Is the compiler the GNU C compiler? 139777e6fb56fSmrgwith_gcc=$GCC_CXX 139787e6fb56fSmrg 139797e6fb56fSmrg# An ERE matcher. 139807e6fb56fSmrgEGREP=$lt_EGREP 139817e6fb56fSmrg 139827e6fb56fSmrg# The linker used to build libraries. 139837e6fb56fSmrgLD=$lt_LD_CXX 139847e6fb56fSmrg 139857e6fb56fSmrg# Whether we need hard or soft links. 139867e6fb56fSmrgLN_S=$lt_LN_S 139877e6fb56fSmrg 139887e6fb56fSmrg# A BSD-compatible nm program. 139897e6fb56fSmrgNM=$lt_NM 139907e6fb56fSmrg 139917e6fb56fSmrg# A symbol stripping program 139927e6fb56fSmrgSTRIP=$lt_STRIP 139937e6fb56fSmrg 139947e6fb56fSmrg# Used to examine libraries when file_magic_cmd begins "file" 139957e6fb56fSmrgMAGIC_CMD=$MAGIC_CMD 139967e6fb56fSmrg 139977e6fb56fSmrg# Used on cygwin: DLL creation program. 139987e6fb56fSmrgDLLTOOL="$DLLTOOL" 139997e6fb56fSmrg 140007e6fb56fSmrg# Used on cygwin: object dumper. 140017e6fb56fSmrgOBJDUMP="$OBJDUMP" 140027e6fb56fSmrg 140037e6fb56fSmrg# Used on cygwin: assembler. 140047e6fb56fSmrgAS="$AS" 140057e6fb56fSmrg 140067e6fb56fSmrg# The name of the directory that contains temporary libtool files. 140077e6fb56fSmrgobjdir=$objdir 140087e6fb56fSmrg 140097e6fb56fSmrg# How to create reloadable object files. 140107e6fb56fSmrgreload_flag=$lt_reload_flag 140117e6fb56fSmrgreload_cmds=$lt_reload_cmds 140127e6fb56fSmrg 140137e6fb56fSmrg# How to pass a linker flag through the compiler. 140147e6fb56fSmrgwl=$lt_lt_prog_compiler_wl_CXX 140157e6fb56fSmrg 140167e6fb56fSmrg# Object file suffix (normally "o"). 140177e6fb56fSmrgobjext="$ac_objext" 140187e6fb56fSmrg 140197e6fb56fSmrg# Old archive suffix (normally "a"). 140207e6fb56fSmrglibext="$libext" 140217e6fb56fSmrg 140227e6fb56fSmrg# Shared library suffix (normally ".so"). 140237e6fb56fSmrgshrext_cmds='$shrext_cmds' 140247e6fb56fSmrg 140257e6fb56fSmrg# Executable file suffix (normally ""). 140267e6fb56fSmrgexeext="$exeext" 140277e6fb56fSmrg 140287e6fb56fSmrg# Additional compiler flags for building library objects. 140297e6fb56fSmrgpic_flag=$lt_lt_prog_compiler_pic_CXX 140307e6fb56fSmrgpic_mode=$pic_mode 140317e6fb56fSmrg 140327e6fb56fSmrg# What is the maximum length of a command? 140337e6fb56fSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 140347e6fb56fSmrg 140357e6fb56fSmrg# Does compiler simultaneously support -c and -o options? 140367e6fb56fSmrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 140377e6fb56fSmrg 140387e6fb56fSmrg# Must we lock files when doing compilation? 140397e6fb56fSmrgneed_locks=$lt_need_locks 140407e6fb56fSmrg 140417e6fb56fSmrg# Do we need the lib prefix for modules? 140427e6fb56fSmrgneed_lib_prefix=$need_lib_prefix 140437e6fb56fSmrg 140447e6fb56fSmrg# Do we need a version for libraries? 140457e6fb56fSmrgneed_version=$need_version 140467e6fb56fSmrg 140477e6fb56fSmrg# Whether dlopen is supported. 140487e6fb56fSmrgdlopen_support=$enable_dlopen 140497e6fb56fSmrg 140507e6fb56fSmrg# Whether dlopen of programs is supported. 140517e6fb56fSmrgdlopen_self=$enable_dlopen_self 140527e6fb56fSmrg 140537e6fb56fSmrg# Whether dlopen of statically linked programs is supported. 140547e6fb56fSmrgdlopen_self_static=$enable_dlopen_self_static 140557e6fb56fSmrg 140567e6fb56fSmrg# Compiler flag to prevent dynamic linking. 140577e6fb56fSmrglink_static_flag=$lt_lt_prog_compiler_static_CXX 140587e6fb56fSmrg 140597e6fb56fSmrg# Compiler flag to turn off builtin functions. 140607e6fb56fSmrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 140617e6fb56fSmrg 140627e6fb56fSmrg# Compiler flag to allow reflexive dlopens. 140637e6fb56fSmrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 140647e6fb56fSmrg 140657e6fb56fSmrg# Compiler flag to generate shared objects directly from archives. 140667e6fb56fSmrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 140677e6fb56fSmrg 140687e6fb56fSmrg# Compiler flag to generate thread-safe objects. 140697e6fb56fSmrgthread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 140707e6fb56fSmrg 140717e6fb56fSmrg# Library versioning type. 140727e6fb56fSmrgversion_type=$version_type 140737e6fb56fSmrg 140747e6fb56fSmrg# Format of library name prefix. 140757e6fb56fSmrglibname_spec=$lt_libname_spec 140767e6fb56fSmrg 140777e6fb56fSmrg# List of archive names. First name is the real one, the rest are links. 140787e6fb56fSmrg# The last name is the one that the linker finds with -lNAME. 140797e6fb56fSmrglibrary_names_spec=$lt_library_names_spec 140807e6fb56fSmrg 140817e6fb56fSmrg# The coded name of the library, if different from the real name. 140827e6fb56fSmrgsoname_spec=$lt_soname_spec 140837e6fb56fSmrg 140847e6fb56fSmrg# Commands used to build and install an old-style archive. 140857e6fb56fSmrgRANLIB=$lt_RANLIB 140867e6fb56fSmrgold_archive_cmds=$lt_old_archive_cmds_CXX 140877e6fb56fSmrgold_postinstall_cmds=$lt_old_postinstall_cmds 140887e6fb56fSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 140897e6fb56fSmrg 140907e6fb56fSmrg# Create an old-style archive from a shared archive. 140917e6fb56fSmrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 140927e6fb56fSmrg 140937e6fb56fSmrg# Create a temporary old-style archive to link instead of a shared archive. 140947e6fb56fSmrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 140957e6fb56fSmrg 140967e6fb56fSmrg# Commands used to build and install a shared archive. 140977e6fb56fSmrgarchive_cmds=$lt_archive_cmds_CXX 140987e6fb56fSmrgarchive_expsym_cmds=$lt_archive_expsym_cmds_CXX 140997e6fb56fSmrgpostinstall_cmds=$lt_postinstall_cmds 141007e6fb56fSmrgpostuninstall_cmds=$lt_postuninstall_cmds 141017e6fb56fSmrg 141027e6fb56fSmrg# Commands used to build a loadable module (assumed same as above if empty) 141037e6fb56fSmrgmodule_cmds=$lt_module_cmds_CXX 141047e6fb56fSmrgmodule_expsym_cmds=$lt_module_expsym_cmds_CXX 141057e6fb56fSmrg 141067e6fb56fSmrg# Commands to strip libraries. 141077e6fb56fSmrgold_striplib=$lt_old_striplib 141087e6fb56fSmrgstriplib=$lt_striplib 141097e6fb56fSmrg 141107e6fb56fSmrg# Dependencies to place before the objects being linked to create a 141117e6fb56fSmrg# shared library. 141127e6fb56fSmrgpredep_objects=$lt_predep_objects_CXX 141137e6fb56fSmrg 141147e6fb56fSmrg# Dependencies to place after the objects being linked to create a 141157e6fb56fSmrg# shared library. 141167e6fb56fSmrgpostdep_objects=$lt_postdep_objects_CXX 141177e6fb56fSmrg 141187e6fb56fSmrg# Dependencies to place before the objects being linked to create a 141197e6fb56fSmrg# shared library. 141207e6fb56fSmrgpredeps=$lt_predeps_CXX 141217e6fb56fSmrg 141227e6fb56fSmrg# Dependencies to place after the objects being linked to create a 141237e6fb56fSmrg# shared library. 141247e6fb56fSmrgpostdeps=$lt_postdeps_CXX 141257e6fb56fSmrg 141267e6fb56fSmrg# The directories searched by this compiler when creating a shared 141277e6fb56fSmrg# library 141287e6fb56fSmrgcompiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 141297e6fb56fSmrg 141307e6fb56fSmrg# The library search path used internally by the compiler when linking 141317e6fb56fSmrg# a shared library. 141327e6fb56fSmrgcompiler_lib_search_path=$lt_compiler_lib_search_path_CXX 141337e6fb56fSmrg 141347e6fb56fSmrg# Method to check whether dependent libraries are shared objects. 141357e6fb56fSmrgdeplibs_check_method=$lt_deplibs_check_method 141367e6fb56fSmrg 141377e6fb56fSmrg# Command to use when deplibs_check_method == file_magic. 141387e6fb56fSmrgfile_magic_cmd=$lt_file_magic_cmd 141397e6fb56fSmrg 141407e6fb56fSmrg# Flag that allows shared libraries with undefined symbols to be built. 141417e6fb56fSmrgallow_undefined_flag=$lt_allow_undefined_flag_CXX 141427e6fb56fSmrg 141437e6fb56fSmrg# Flag that forces no undefined symbols. 141447e6fb56fSmrgno_undefined_flag=$lt_no_undefined_flag_CXX 141457e6fb56fSmrg 141467e6fb56fSmrg# Commands used to finish a libtool library installation in a directory. 141477e6fb56fSmrgfinish_cmds=$lt_finish_cmds 141487e6fb56fSmrg 141497e6fb56fSmrg# Same as above, but a single script fragment to be evaled but not shown. 141507e6fb56fSmrgfinish_eval=$lt_finish_eval 141517e6fb56fSmrg 141527e6fb56fSmrg# Take the output of nm and produce a listing of raw symbols and C names. 141537e6fb56fSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 141547e6fb56fSmrg 141557e6fb56fSmrg# Transform the output of nm in a proper C declaration 141567e6fb56fSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 141577e6fb56fSmrg 141587e6fb56fSmrg# Transform the output of nm in a C name address pair 141597e6fb56fSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 141607e6fb56fSmrg 141617e6fb56fSmrg# This is the shared library runtime path variable. 141627e6fb56fSmrgrunpath_var=$runpath_var 141637e6fb56fSmrg 141647e6fb56fSmrg# This is the shared library path variable. 141657e6fb56fSmrgshlibpath_var=$shlibpath_var 141667e6fb56fSmrg 141677e6fb56fSmrg# Is shlibpath searched before the hard-coded library search path? 141687e6fb56fSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 141697e6fb56fSmrg 141707e6fb56fSmrg# How to hardcode a shared library path into an executable. 141717e6fb56fSmrghardcode_action=$hardcode_action_CXX 141727e6fb56fSmrg 141737e6fb56fSmrg# Whether we should hardcode library paths into libraries. 141747e6fb56fSmrghardcode_into_libs=$hardcode_into_libs 141757e6fb56fSmrg 141767e6fb56fSmrg# Flag to hardcode \$libdir into a binary during linking. 141777e6fb56fSmrg# This must work even if \$libdir does not exist. 141787e6fb56fSmrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 141797e6fb56fSmrg 141807e6fb56fSmrg# If ld is used when linking, flag to hardcode \$libdir into 141817e6fb56fSmrg# a binary during linking. This must work even if \$libdir does 141827e6fb56fSmrg# not exist. 141837e6fb56fSmrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 141847e6fb56fSmrg 141857e6fb56fSmrg# Whether we need a single -rpath flag with a separated argument. 141867e6fb56fSmrghardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 141877e6fb56fSmrg 141887e6fb56fSmrg# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 141897e6fb56fSmrg# resulting binary. 141907e6fb56fSmrghardcode_direct=$hardcode_direct_CXX 141917e6fb56fSmrg 141927e6fb56fSmrg# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 141937e6fb56fSmrg# resulting binary. 141947e6fb56fSmrghardcode_minus_L=$hardcode_minus_L_CXX 141957e6fb56fSmrg 141967e6fb56fSmrg# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 141977e6fb56fSmrg# the resulting binary. 141987e6fb56fSmrghardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 141997e6fb56fSmrg 142007e6fb56fSmrg# Set to yes if building a shared library automatically hardcodes DIR into the library 142017e6fb56fSmrg# and all subsequent libraries and executables linked against it. 142027e6fb56fSmrghardcode_automatic=$hardcode_automatic_CXX 142037e6fb56fSmrg 142047e6fb56fSmrg# Variables whose values should be saved in libtool wrapper scripts and 142057e6fb56fSmrg# restored at relink time. 142067e6fb56fSmrgvariables_saved_for_relink="$variables_saved_for_relink" 142077e6fb56fSmrg 142087e6fb56fSmrg# Whether libtool must link a program against all its dependency libraries. 142097e6fb56fSmrglink_all_deplibs=$link_all_deplibs_CXX 142107e6fb56fSmrg 142117e6fb56fSmrg# Compile-time system search path for libraries 142127e6fb56fSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 142137e6fb56fSmrg 142147e6fb56fSmrg# Run-time system search path for libraries 142157e6fb56fSmrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 142167e6fb56fSmrg 142177e6fb56fSmrg# Fix the shell variable \$srcfile for the compiler. 142187e6fb56fSmrgfix_srcfile_path=$lt_fix_srcfile_path 142197e6fb56fSmrg 142207e6fb56fSmrg# Set to yes if exported symbols are required. 142217e6fb56fSmrgalways_export_symbols=$always_export_symbols_CXX 142227e6fb56fSmrg 142237e6fb56fSmrg# The commands to list exported symbols. 142247e6fb56fSmrgexport_symbols_cmds=$lt_export_symbols_cmds_CXX 142257e6fb56fSmrg 142267e6fb56fSmrg# The commands to extract the exported symbol list from a shared archive. 142277e6fb56fSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 142287e6fb56fSmrg 142297e6fb56fSmrg# Symbols that should not be listed in the preloaded symbols. 142307e6fb56fSmrgexclude_expsyms=$lt_exclude_expsyms_CXX 142317e6fb56fSmrg 142327e6fb56fSmrg# Symbols that must always be exported. 142337e6fb56fSmrginclude_expsyms=$lt_include_expsyms_CXX 142347e6fb56fSmrg 142357e6fb56fSmrg# ### END LIBTOOL TAG CONFIG: $tagname 142367e6fb56fSmrg 142377e6fb56fSmrg__EOF__ 142387e6fb56fSmrg 142397e6fb56fSmrg 142407e6fb56fSmrgelse 142417e6fb56fSmrg # If there is no Makefile yet, we rely on a make rule to execute 142427e6fb56fSmrg # `config.status --recheck' to rerun these tests and create the 142437e6fb56fSmrg # libtool script then. 142447e6fb56fSmrg ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 142457e6fb56fSmrg if test -f "$ltmain_in"; then 142467e6fb56fSmrg test -f Makefile && make "$ltmain" 142477e6fb56fSmrg fi 142487e6fb56fSmrgfi 142497e6fb56fSmrg 142507e6fb56fSmrg 142517e6fb56fSmrgac_ext=c 142527e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 142537e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 142547e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 142557e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 142567e6fb56fSmrg 142577e6fb56fSmrgCC=$lt_save_CC 142587e6fb56fSmrgLDCXX=$LD 142597e6fb56fSmrgLD=$lt_save_LD 142607e6fb56fSmrgGCC=$lt_save_GCC 142617e6fb56fSmrgwith_gnu_ldcxx=$with_gnu_ld 142627e6fb56fSmrgwith_gnu_ld=$lt_save_with_gnu_ld 142637e6fb56fSmrglt_cv_path_LDCXX=$lt_cv_path_LD 142647e6fb56fSmrglt_cv_path_LD=$lt_save_path_LD 142657e6fb56fSmrglt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 142667e6fb56fSmrglt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 142677e6fb56fSmrg 142687e6fb56fSmrg else 142697e6fb56fSmrg tagname="" 142707e6fb56fSmrg fi 142717e6fb56fSmrg ;; 142727e6fb56fSmrg 142737e6fb56fSmrg F77) 142747e6fb56fSmrg if test -n "$F77" && test "X$F77" != "Xno"; then 142757e6fb56fSmrg 142767e6fb56fSmrgac_ext=f 142777e6fb56fSmrgac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 142787e6fb56fSmrgac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 142797e6fb56fSmrgac_compiler_gnu=$ac_cv_f77_compiler_gnu 142807e6fb56fSmrg 142817e6fb56fSmrg 142827e6fb56fSmrgarchive_cmds_need_lc_F77=no 142837e6fb56fSmrgallow_undefined_flag_F77= 142847e6fb56fSmrgalways_export_symbols_F77=no 142857e6fb56fSmrgarchive_expsym_cmds_F77= 142867e6fb56fSmrgexport_dynamic_flag_spec_F77= 142877e6fb56fSmrghardcode_direct_F77=no 142887e6fb56fSmrghardcode_libdir_flag_spec_F77= 142897e6fb56fSmrghardcode_libdir_flag_spec_ld_F77= 142907e6fb56fSmrghardcode_libdir_separator_F77= 142917e6fb56fSmrghardcode_minus_L_F77=no 142927e6fb56fSmrghardcode_automatic_F77=no 142937e6fb56fSmrgmodule_cmds_F77= 142947e6fb56fSmrgmodule_expsym_cmds_F77= 142957e6fb56fSmrglink_all_deplibs_F77=unknown 142967e6fb56fSmrgold_archive_cmds_F77=$old_archive_cmds 142977e6fb56fSmrgno_undefined_flag_F77= 142987e6fb56fSmrgwhole_archive_flag_spec_F77= 142997e6fb56fSmrgenable_shared_with_static_runtimes_F77=no 143007e6fb56fSmrg 143017e6fb56fSmrg# Source file extension for f77 test sources. 143027e6fb56fSmrgac_ext=f 143037e6fb56fSmrg 143047e6fb56fSmrg# Object file extension for compiled f77 test sources. 143057e6fb56fSmrgobjext=o 143067e6fb56fSmrgobjext_F77=$objext 143077e6fb56fSmrg 143087e6fb56fSmrg# Code to be used in simple compile tests 143097e6fb56fSmrglt_simple_compile_test_code="\ 143107e6fb56fSmrg subroutine t 143117e6fb56fSmrg return 143127e6fb56fSmrg end 143137e6fb56fSmrg" 143147e6fb56fSmrg 143157e6fb56fSmrg# Code to be used in simple link tests 143167e6fb56fSmrglt_simple_link_test_code="\ 143177e6fb56fSmrg program t 143187e6fb56fSmrg end 143197e6fb56fSmrg" 143207e6fb56fSmrg 143217e6fb56fSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 143227e6fb56fSmrg 143237e6fb56fSmrg# If no C compiler was specified, use CC. 143247e6fb56fSmrgLTCC=${LTCC-"$CC"} 143257e6fb56fSmrg 143267e6fb56fSmrg# If no C compiler flags were specified, use CFLAGS. 143277e6fb56fSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 143287e6fb56fSmrg 143297e6fb56fSmrg# Allow CC to be a program name with arguments. 143307e6fb56fSmrgcompiler=$CC 143317e6fb56fSmrg 143327e6fb56fSmrg 143337e6fb56fSmrg# save warnings/boilerplate of simple test code 143347e6fb56fSmrgac_outfile=conftest.$ac_objext 143357e6fb56fSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 143367e6fb56fSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 143377e6fb56fSmrg_lt_compiler_boilerplate=`cat conftest.err` 143387e6fb56fSmrg$rm conftest* 143397e6fb56fSmrg 143407e6fb56fSmrgac_outfile=conftest.$ac_objext 143417e6fb56fSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 143427e6fb56fSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 143437e6fb56fSmrg_lt_linker_boilerplate=`cat conftest.err` 143447e6fb56fSmrg$rm -r conftest* 143457e6fb56fSmrg 143467e6fb56fSmrg 143477e6fb56fSmrg# Allow CC to be a program name with arguments. 143487e6fb56fSmrglt_save_CC="$CC" 143497e6fb56fSmrgCC=${F77-"f77"} 143507e6fb56fSmrgcompiler=$CC 143517e6fb56fSmrgcompiler_F77=$CC 143527e6fb56fSmrgfor cc_temp in $compiler""; do 143537e6fb56fSmrg case $cc_temp in 143547e6fb56fSmrg compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 143557e6fb56fSmrg distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 143567e6fb56fSmrg \-*) ;; 143577e6fb56fSmrg *) break;; 143587e6fb56fSmrg esac 143597e6fb56fSmrgdone 143607e6fb56fSmrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 143617e6fb56fSmrg 143627e6fb56fSmrg 143637e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 143647e6fb56fSmrg$as_echo_n "checking if libtool supports shared libraries... " >&6; } 143657e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 143667e6fb56fSmrg$as_echo "$can_build_shared" >&6; } 143677e6fb56fSmrg 143687e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 143697e6fb56fSmrg$as_echo_n "checking whether to build shared libraries... " >&6; } 143707e6fb56fSmrgtest "$can_build_shared" = "no" && enable_shared=no 143717e6fb56fSmrg 143727e6fb56fSmrg# On AIX, shared libraries and static libraries use the same namespace, and 143737e6fb56fSmrg# are all built from PIC. 143747e6fb56fSmrgcase $host_os in 143757e6fb56fSmrgaix3*) 143767e6fb56fSmrg test "$enable_shared" = yes && enable_static=no 143777e6fb56fSmrg if test -n "$RANLIB"; then 143787e6fb56fSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 143797e6fb56fSmrg postinstall_cmds='$RANLIB $lib' 143807e6fb56fSmrg fi 143817e6fb56fSmrg ;; 143827e6fb56fSmrgaix[4-9]*) 143837e6fb56fSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 143847e6fb56fSmrg test "$enable_shared" = yes && enable_static=no 143857e6fb56fSmrg fi 143867e6fb56fSmrg ;; 143877e6fb56fSmrgesac 143887e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 143897e6fb56fSmrg$as_echo "$enable_shared" >&6; } 143907e6fb56fSmrg 143917e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 143927e6fb56fSmrg$as_echo_n "checking whether to build static libraries... " >&6; } 143937e6fb56fSmrg# Make sure either enable_shared or enable_static is yes. 143947e6fb56fSmrgtest "$enable_shared" = yes || enable_static=yes 143957e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 143967e6fb56fSmrg$as_echo "$enable_static" >&6; } 143977e6fb56fSmrg 143987e6fb56fSmrgGCC_F77="$G77" 143997e6fb56fSmrgLD_F77="$LD" 144007e6fb56fSmrg 144017e6fb56fSmrglt_prog_compiler_wl_F77= 144027e6fb56fSmrglt_prog_compiler_pic_F77= 144037e6fb56fSmrglt_prog_compiler_static_F77= 144047e6fb56fSmrg 144057e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 144067e6fb56fSmrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 144077e6fb56fSmrg 144087e6fb56fSmrg if test "$GCC" = yes; then 144097e6fb56fSmrg lt_prog_compiler_wl_F77='-Wl,' 144107e6fb56fSmrg lt_prog_compiler_static_F77='-static' 144117e6fb56fSmrg 144127e6fb56fSmrg case $host_os in 144137e6fb56fSmrg aix*) 144147e6fb56fSmrg # All AIX code is PIC. 144157e6fb56fSmrg if test "$host_cpu" = ia64; then 144167e6fb56fSmrg # AIX 5 now supports IA64 processor 144177e6fb56fSmrg lt_prog_compiler_static_F77='-Bstatic' 144187e6fb56fSmrg fi 144197e6fb56fSmrg ;; 144207e6fb56fSmrg 144217e6fb56fSmrg amigaos*) 144227e6fb56fSmrg # FIXME: we need at least 68020 code to build shared libraries, but 144237e6fb56fSmrg # adding the `-m68020' flag to GCC prevents building anything better, 144247e6fb56fSmrg # like `-m68040'. 144257e6fb56fSmrg lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 144267e6fb56fSmrg ;; 144277e6fb56fSmrg 144287e6fb56fSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 144297e6fb56fSmrg # PIC is the default for these OSes. 144307e6fb56fSmrg ;; 144317e6fb56fSmrg 144327e6fb56fSmrg mingw* | cygwin* | pw32* | os2*) 144337e6fb56fSmrg # This hack is so that the source file can tell whether it is being 144347e6fb56fSmrg # built for inclusion in a dll (and should export symbols for example). 144357e6fb56fSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 144367e6fb56fSmrg # (--disable-auto-import) libraries 144377e6fb56fSmrg lt_prog_compiler_pic_F77='-DDLL_EXPORT' 144387e6fb56fSmrg ;; 144397e6fb56fSmrg 144407e6fb56fSmrg darwin* | rhapsody*) 144417e6fb56fSmrg # PIC is the default on this platform 144427e6fb56fSmrg # Common symbols not allowed in MH_DYLIB files 144437e6fb56fSmrg lt_prog_compiler_pic_F77='-fno-common' 144447e6fb56fSmrg ;; 144457e6fb56fSmrg 144467e6fb56fSmrg interix[3-9]*) 144477e6fb56fSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 144487e6fb56fSmrg # Instead, we relocate shared libraries at runtime. 144497e6fb56fSmrg ;; 144507e6fb56fSmrg 144517e6fb56fSmrg msdosdjgpp*) 144527e6fb56fSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 144537e6fb56fSmrg # on systems that don't support them. 144547e6fb56fSmrg lt_prog_compiler_can_build_shared_F77=no 144557e6fb56fSmrg enable_shared=no 144567e6fb56fSmrg ;; 144577e6fb56fSmrg 144587e6fb56fSmrg sysv4*MP*) 144597e6fb56fSmrg if test -d /usr/nec; then 144607e6fb56fSmrg lt_prog_compiler_pic_F77=-Kconform_pic 144617e6fb56fSmrg fi 144627e6fb56fSmrg ;; 144637e6fb56fSmrg 144647e6fb56fSmrg hpux*) 144657e6fb56fSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 144667e6fb56fSmrg # not for PA HP-UX. 144677e6fb56fSmrg case $host_cpu in 144687e6fb56fSmrg hppa*64*|ia64*) 144697e6fb56fSmrg # +Z the default 144707e6fb56fSmrg ;; 144717e6fb56fSmrg *) 144727e6fb56fSmrg lt_prog_compiler_pic_F77='-fPIC' 144737e6fb56fSmrg ;; 144747e6fb56fSmrg esac 144757e6fb56fSmrg ;; 144767e6fb56fSmrg 144777e6fb56fSmrg *) 144787e6fb56fSmrg lt_prog_compiler_pic_F77='-fPIC' 144797e6fb56fSmrg ;; 144807e6fb56fSmrg esac 144817e6fb56fSmrg else 144827e6fb56fSmrg # PORTME Check for flag to pass linker flags through the system compiler. 144837e6fb56fSmrg case $host_os in 144847e6fb56fSmrg aix*) 144857e6fb56fSmrg lt_prog_compiler_wl_F77='-Wl,' 144867e6fb56fSmrg if test "$host_cpu" = ia64; then 144877e6fb56fSmrg # AIX 5 now supports IA64 processor 144887e6fb56fSmrg lt_prog_compiler_static_F77='-Bstatic' 144897e6fb56fSmrg else 144907e6fb56fSmrg lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 144917e6fb56fSmrg fi 144927e6fb56fSmrg ;; 144937e6fb56fSmrg darwin*) 144947e6fb56fSmrg # PIC is the default on this platform 144957e6fb56fSmrg # Common symbols not allowed in MH_DYLIB files 144967e6fb56fSmrg case $cc_basename in 144977e6fb56fSmrg xlc*) 144987e6fb56fSmrg lt_prog_compiler_pic_F77='-qnocommon' 144997e6fb56fSmrg lt_prog_compiler_wl_F77='-Wl,' 145007e6fb56fSmrg ;; 145017e6fb56fSmrg esac 145027e6fb56fSmrg ;; 145037e6fb56fSmrg 145047e6fb56fSmrg mingw* | cygwin* | pw32* | os2*) 145057e6fb56fSmrg # This hack is so that the source file can tell whether it is being 145067e6fb56fSmrg # built for inclusion in a dll (and should export symbols for example). 145077e6fb56fSmrg lt_prog_compiler_pic_F77='-DDLL_EXPORT' 145087e6fb56fSmrg ;; 145097e6fb56fSmrg 145107e6fb56fSmrg hpux9* | hpux10* | hpux11*) 145117e6fb56fSmrg lt_prog_compiler_wl_F77='-Wl,' 145127e6fb56fSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 145137e6fb56fSmrg # not for PA HP-UX. 145147e6fb56fSmrg case $host_cpu in 145157e6fb56fSmrg hppa*64*|ia64*) 145167e6fb56fSmrg # +Z the default 145177e6fb56fSmrg ;; 145187e6fb56fSmrg *) 145197e6fb56fSmrg lt_prog_compiler_pic_F77='+Z' 145207e6fb56fSmrg ;; 145217e6fb56fSmrg esac 145227e6fb56fSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 145237e6fb56fSmrg lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 145247e6fb56fSmrg ;; 145257e6fb56fSmrg 145267e6fb56fSmrg irix5* | irix6* | nonstopux*) 145277e6fb56fSmrg lt_prog_compiler_wl_F77='-Wl,' 145287e6fb56fSmrg # PIC (with -KPIC) is the default. 145297e6fb56fSmrg lt_prog_compiler_static_F77='-non_shared' 145307e6fb56fSmrg ;; 145317e6fb56fSmrg 145327e6fb56fSmrg newsos6) 145337e6fb56fSmrg lt_prog_compiler_pic_F77='-KPIC' 145347e6fb56fSmrg lt_prog_compiler_static_F77='-Bstatic' 145357e6fb56fSmrg ;; 145367e6fb56fSmrg 145377e6fb56fSmrg linux* | k*bsd*-gnu) 145387e6fb56fSmrg case $cc_basename in 145397e6fb56fSmrg icc* | ecc*) 145407e6fb56fSmrg lt_prog_compiler_wl_F77='-Wl,' 145417e6fb56fSmrg lt_prog_compiler_pic_F77='-KPIC' 145427e6fb56fSmrg lt_prog_compiler_static_F77='-static' 145437e6fb56fSmrg ;; 145447e6fb56fSmrg pgcc* | pgf77* | pgf90* | pgf95*) 145457e6fb56fSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 145467e6fb56fSmrg # which looks to be a dead project) 145477e6fb56fSmrg lt_prog_compiler_wl_F77='-Wl,' 145487e6fb56fSmrg lt_prog_compiler_pic_F77='-fpic' 145497e6fb56fSmrg lt_prog_compiler_static_F77='-Bstatic' 145507e6fb56fSmrg ;; 145517e6fb56fSmrg ccc*) 145527e6fb56fSmrg lt_prog_compiler_wl_F77='-Wl,' 145537e6fb56fSmrg # All Alpha code is PIC. 145547e6fb56fSmrg lt_prog_compiler_static_F77='-non_shared' 145557e6fb56fSmrg ;; 145567e6fb56fSmrg *) 145577e6fb56fSmrg case `$CC -V 2>&1 | sed 5q` in 145587e6fb56fSmrg *Sun\ C*) 145597e6fb56fSmrg # Sun C 5.9 145607e6fb56fSmrg lt_prog_compiler_pic_F77='-KPIC' 145617e6fb56fSmrg lt_prog_compiler_static_F77='-Bstatic' 145627e6fb56fSmrg lt_prog_compiler_wl_F77='-Wl,' 145637e6fb56fSmrg ;; 145647e6fb56fSmrg *Sun\ F*) 145657e6fb56fSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 145667e6fb56fSmrg lt_prog_compiler_pic_F77='-KPIC' 145677e6fb56fSmrg lt_prog_compiler_static_F77='-Bstatic' 145687e6fb56fSmrg lt_prog_compiler_wl_F77='' 145697e6fb56fSmrg ;; 145707e6fb56fSmrg esac 145717e6fb56fSmrg ;; 145727e6fb56fSmrg esac 145737e6fb56fSmrg ;; 145747e6fb56fSmrg 145757e6fb56fSmrg osf3* | osf4* | osf5*) 145767e6fb56fSmrg lt_prog_compiler_wl_F77='-Wl,' 145777e6fb56fSmrg # All OSF/1 code is PIC. 145787e6fb56fSmrg lt_prog_compiler_static_F77='-non_shared' 145797e6fb56fSmrg ;; 145807e6fb56fSmrg 145817e6fb56fSmrg rdos*) 145827e6fb56fSmrg lt_prog_compiler_static_F77='-non_shared' 145837e6fb56fSmrg ;; 145847e6fb56fSmrg 145857e6fb56fSmrg solaris*) 145867e6fb56fSmrg lt_prog_compiler_pic_F77='-KPIC' 145877e6fb56fSmrg lt_prog_compiler_static_F77='-Bstatic' 145887e6fb56fSmrg case $cc_basename in 145897e6fb56fSmrg f77* | f90* | f95*) 145907e6fb56fSmrg lt_prog_compiler_wl_F77='-Qoption ld ';; 145917e6fb56fSmrg *) 145927e6fb56fSmrg lt_prog_compiler_wl_F77='-Wl,';; 145937e6fb56fSmrg esac 145947e6fb56fSmrg ;; 145957e6fb56fSmrg 145967e6fb56fSmrg sunos4*) 145977e6fb56fSmrg lt_prog_compiler_wl_F77='-Qoption ld ' 145987e6fb56fSmrg lt_prog_compiler_pic_F77='-PIC' 145997e6fb56fSmrg lt_prog_compiler_static_F77='-Bstatic' 146007e6fb56fSmrg ;; 146017e6fb56fSmrg 146027e6fb56fSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 146037e6fb56fSmrg lt_prog_compiler_wl_F77='-Wl,' 146047e6fb56fSmrg lt_prog_compiler_pic_F77='-KPIC' 146057e6fb56fSmrg lt_prog_compiler_static_F77='-Bstatic' 146067e6fb56fSmrg ;; 146077e6fb56fSmrg 146087e6fb56fSmrg sysv4*MP*) 146097e6fb56fSmrg if test -d /usr/nec ;then 146107e6fb56fSmrg lt_prog_compiler_pic_F77='-Kconform_pic' 146117e6fb56fSmrg lt_prog_compiler_static_F77='-Bstatic' 146127e6fb56fSmrg fi 146137e6fb56fSmrg ;; 146147e6fb56fSmrg 146157e6fb56fSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 146167e6fb56fSmrg lt_prog_compiler_wl_F77='-Wl,' 146177e6fb56fSmrg lt_prog_compiler_pic_F77='-KPIC' 146187e6fb56fSmrg lt_prog_compiler_static_F77='-Bstatic' 146197e6fb56fSmrg ;; 146207e6fb56fSmrg 146217e6fb56fSmrg unicos*) 146227e6fb56fSmrg lt_prog_compiler_wl_F77='-Wl,' 146237e6fb56fSmrg lt_prog_compiler_can_build_shared_F77=no 146247e6fb56fSmrg ;; 146257e6fb56fSmrg 146267e6fb56fSmrg uts4*) 146277e6fb56fSmrg lt_prog_compiler_pic_F77='-pic' 146287e6fb56fSmrg lt_prog_compiler_static_F77='-Bstatic' 146297e6fb56fSmrg ;; 146307e6fb56fSmrg 146317e6fb56fSmrg *) 146327e6fb56fSmrg lt_prog_compiler_can_build_shared_F77=no 146337e6fb56fSmrg ;; 146347e6fb56fSmrg esac 146357e6fb56fSmrg fi 146367e6fb56fSmrg 146377e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 146387e6fb56fSmrg$as_echo "$lt_prog_compiler_pic_F77" >&6; } 146397e6fb56fSmrg 146407e6fb56fSmrg# 146417e6fb56fSmrg# Check to make sure the PIC flag actually works. 146427e6fb56fSmrg# 146437e6fb56fSmrgif test -n "$lt_prog_compiler_pic_F77"; then 146447e6fb56fSmrg 146457e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 146467e6fb56fSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 146477e6fb56fSmrgif test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 146487e6fb56fSmrg $as_echo_n "(cached) " >&6 146497e6fb56fSmrgelse 146507e6fb56fSmrg lt_cv_prog_compiler_pic_works_F77=no 146517e6fb56fSmrg ac_outfile=conftest.$ac_objext 146527e6fb56fSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 146537e6fb56fSmrg lt_compiler_flag="$lt_prog_compiler_pic_F77" 146547e6fb56fSmrg # Insert the option either (1) after the last *FLAGS variable, or 146557e6fb56fSmrg # (2) before a word containing "conftest.", or (3) at the end. 146567e6fb56fSmrg # Note that $ac_compile itself does not contain backslashes and begins 146577e6fb56fSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 146587e6fb56fSmrg # The option is referenced via a variable to avoid confusing sed. 146597e6fb56fSmrg lt_compile=`echo "$ac_compile" | $SED \ 146607e6fb56fSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 146617e6fb56fSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 146627e6fb56fSmrg -e 's:$: $lt_compiler_flag:'` 146637e6fb56fSmrg (eval echo "\"\$as_me:14663: $lt_compile\"" >&5) 146647e6fb56fSmrg (eval "$lt_compile" 2>conftest.err) 146657e6fb56fSmrg ac_status=$? 146667e6fb56fSmrg cat conftest.err >&5 146677e6fb56fSmrg echo "$as_me:14667: \$? = $ac_status" >&5 146687e6fb56fSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 146697e6fb56fSmrg # The compiler can only warn and ignore the option if not recognized 146707e6fb56fSmrg # So say no if there are warnings other than the usual output. 146717e6fb56fSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 146727e6fb56fSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 146737e6fb56fSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 146747e6fb56fSmrg lt_cv_prog_compiler_pic_works_F77=yes 146757e6fb56fSmrg fi 146767e6fb56fSmrg fi 146777e6fb56fSmrg $rm conftest* 146787e6fb56fSmrg 146797e6fb56fSmrgfi 146807e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 146817e6fb56fSmrg$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 146827e6fb56fSmrg 146837e6fb56fSmrgif test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 146847e6fb56fSmrg case $lt_prog_compiler_pic_F77 in 146857e6fb56fSmrg "" | " "*) ;; 146867e6fb56fSmrg *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 146877e6fb56fSmrg esac 146887e6fb56fSmrgelse 146897e6fb56fSmrg lt_prog_compiler_pic_F77= 146907e6fb56fSmrg lt_prog_compiler_can_build_shared_F77=no 146917e6fb56fSmrgfi 146927e6fb56fSmrg 146937e6fb56fSmrgfi 146947e6fb56fSmrgcase $host_os in 146957e6fb56fSmrg # For platforms which do not support PIC, -DPIC is meaningless: 146967e6fb56fSmrg *djgpp*) 146977e6fb56fSmrg lt_prog_compiler_pic_F77= 146987e6fb56fSmrg ;; 146997e6fb56fSmrg *) 147007e6fb56fSmrg lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 147017e6fb56fSmrg ;; 147027e6fb56fSmrgesac 147037e6fb56fSmrg 147047e6fb56fSmrg# 147057e6fb56fSmrg# Check to make sure the static flag actually works. 147067e6fb56fSmrg# 147077e6fb56fSmrgwl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 147087e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 147097e6fb56fSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 147107e6fb56fSmrgif test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 147117e6fb56fSmrg $as_echo_n "(cached) " >&6 147127e6fb56fSmrgelse 147137e6fb56fSmrg lt_cv_prog_compiler_static_works_F77=no 147147e6fb56fSmrg save_LDFLAGS="$LDFLAGS" 147157e6fb56fSmrg LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 147167e6fb56fSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 147177e6fb56fSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 147187e6fb56fSmrg # The linker can only warn and ignore the option if not recognized 147197e6fb56fSmrg # So say no if there are warnings 147207e6fb56fSmrg if test -s conftest.err; then 147217e6fb56fSmrg # Append any errors to the config.log. 147227e6fb56fSmrg cat conftest.err 1>&5 147237e6fb56fSmrg $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 147247e6fb56fSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 147257e6fb56fSmrg if diff conftest.exp conftest.er2 >/dev/null; then 147267e6fb56fSmrg lt_cv_prog_compiler_static_works_F77=yes 147277e6fb56fSmrg fi 147287e6fb56fSmrg else 147297e6fb56fSmrg lt_cv_prog_compiler_static_works_F77=yes 147307e6fb56fSmrg fi 147317e6fb56fSmrg fi 147327e6fb56fSmrg $rm -r conftest* 147337e6fb56fSmrg LDFLAGS="$save_LDFLAGS" 147347e6fb56fSmrg 147357e6fb56fSmrgfi 147367e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 147377e6fb56fSmrg$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 147387e6fb56fSmrg 147397e6fb56fSmrgif test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 147407e6fb56fSmrg : 147417e6fb56fSmrgelse 147427e6fb56fSmrg lt_prog_compiler_static_F77= 147437e6fb56fSmrgfi 147447e6fb56fSmrg 147457e6fb56fSmrg 147467e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 147477e6fb56fSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 147487e6fb56fSmrgif test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 147497e6fb56fSmrg $as_echo_n "(cached) " >&6 147507e6fb56fSmrgelse 147517e6fb56fSmrg lt_cv_prog_compiler_c_o_F77=no 147527e6fb56fSmrg $rm -r conftest 2>/dev/null 147537e6fb56fSmrg mkdir conftest 147547e6fb56fSmrg cd conftest 147557e6fb56fSmrg mkdir out 147567e6fb56fSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 147577e6fb56fSmrg 147587e6fb56fSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 147597e6fb56fSmrg # Insert the option either (1) after the last *FLAGS variable, or 147607e6fb56fSmrg # (2) before a word containing "conftest.", or (3) at the end. 147617e6fb56fSmrg # Note that $ac_compile itself does not contain backslashes and begins 147627e6fb56fSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 147637e6fb56fSmrg lt_compile=`echo "$ac_compile" | $SED \ 147647e6fb56fSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 147657e6fb56fSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 147667e6fb56fSmrg -e 's:$: $lt_compiler_flag:'` 147677e6fb56fSmrg (eval echo "\"\$as_me:14767: $lt_compile\"" >&5) 147687e6fb56fSmrg (eval "$lt_compile" 2>out/conftest.err) 147697e6fb56fSmrg ac_status=$? 147707e6fb56fSmrg cat out/conftest.err >&5 147717e6fb56fSmrg echo "$as_me:14771: \$? = $ac_status" >&5 147727e6fb56fSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 147737e6fb56fSmrg then 147747e6fb56fSmrg # The compiler can only warn and ignore the option if not recognized 147757e6fb56fSmrg # So say no if there are warnings 147767e6fb56fSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 147777e6fb56fSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 147787e6fb56fSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 147797e6fb56fSmrg lt_cv_prog_compiler_c_o_F77=yes 147807e6fb56fSmrg fi 147817e6fb56fSmrg fi 147827e6fb56fSmrg chmod u+w . 2>&5 147837e6fb56fSmrg $rm conftest* 147847e6fb56fSmrg # SGI C++ compiler will create directory out/ii_files/ for 147857e6fb56fSmrg # template instantiation 147867e6fb56fSmrg test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 147877e6fb56fSmrg $rm out/* && rmdir out 147887e6fb56fSmrg cd .. 147897e6fb56fSmrg rmdir conftest 147907e6fb56fSmrg $rm conftest* 147917e6fb56fSmrg 147927e6fb56fSmrgfi 147937e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 147947e6fb56fSmrg$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 147957e6fb56fSmrg 147967e6fb56fSmrg 147977e6fb56fSmrghard_links="nottested" 147987e6fb56fSmrgif test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 147997e6fb56fSmrg # do not overwrite the value of need_locks provided by the user 148007e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 148017e6fb56fSmrg$as_echo_n "checking if we can lock with hard links... " >&6; } 148027e6fb56fSmrg hard_links=yes 148037e6fb56fSmrg $rm conftest* 148047e6fb56fSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 148057e6fb56fSmrg touch conftest.a 148067e6fb56fSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 148077e6fb56fSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 148087e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 148097e6fb56fSmrg$as_echo "$hard_links" >&6; } 148107e6fb56fSmrg if test "$hard_links" = no; then 148117e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 148127e6fb56fSmrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 148137e6fb56fSmrg need_locks=warn 148147e6fb56fSmrg fi 148157e6fb56fSmrgelse 148167e6fb56fSmrg need_locks=no 148177e6fb56fSmrgfi 148187e6fb56fSmrg 148197e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 148207e6fb56fSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 148217e6fb56fSmrg 148227e6fb56fSmrg runpath_var= 148237e6fb56fSmrg allow_undefined_flag_F77= 148247e6fb56fSmrg enable_shared_with_static_runtimes_F77=no 148257e6fb56fSmrg archive_cmds_F77= 148267e6fb56fSmrg archive_expsym_cmds_F77= 148277e6fb56fSmrg old_archive_From_new_cmds_F77= 148287e6fb56fSmrg old_archive_from_expsyms_cmds_F77= 148297e6fb56fSmrg export_dynamic_flag_spec_F77= 148307e6fb56fSmrg whole_archive_flag_spec_F77= 148317e6fb56fSmrg thread_safe_flag_spec_F77= 148327e6fb56fSmrg hardcode_libdir_flag_spec_F77= 148337e6fb56fSmrg hardcode_libdir_flag_spec_ld_F77= 148347e6fb56fSmrg hardcode_libdir_separator_F77= 148357e6fb56fSmrg hardcode_direct_F77=no 148367e6fb56fSmrg hardcode_minus_L_F77=no 148377e6fb56fSmrg hardcode_shlibpath_var_F77=unsupported 148387e6fb56fSmrg link_all_deplibs_F77=unknown 148397e6fb56fSmrg hardcode_automatic_F77=no 148407e6fb56fSmrg module_cmds_F77= 148417e6fb56fSmrg module_expsym_cmds_F77= 148427e6fb56fSmrg always_export_symbols_F77=no 148437e6fb56fSmrg export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 148447e6fb56fSmrg # include_expsyms should be a list of space-separated symbols to be *always* 148457e6fb56fSmrg # included in the symbol list 148467e6fb56fSmrg include_expsyms_F77= 148477e6fb56fSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 148487e6fb56fSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 148497e6fb56fSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 148507e6fb56fSmrg # as well as any symbol that contains `d'. 148517e6fb56fSmrg exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 148527e6fb56fSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 148537e6fb56fSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 148547e6fb56fSmrg # the symbol is explicitly referenced. Since portable code cannot 148557e6fb56fSmrg # rely on this symbol name, it's probably fine to never include it in 148567e6fb56fSmrg # preloaded symbol tables. 148577e6fb56fSmrg # Exclude shared library initialization/finalization symbols. 148587e6fb56fSmrg extract_expsyms_cmds= 148597e6fb56fSmrg # Just being paranoid about ensuring that cc_basename is set. 148607e6fb56fSmrg for cc_temp in $compiler""; do 148617e6fb56fSmrg case $cc_temp in 148627e6fb56fSmrg compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 148637e6fb56fSmrg distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 148647e6fb56fSmrg \-*) ;; 148657e6fb56fSmrg *) break;; 148667e6fb56fSmrg esac 148677e6fb56fSmrgdone 148687e6fb56fSmrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 148697e6fb56fSmrg 148707e6fb56fSmrg case $host_os in 148717e6fb56fSmrg cygwin* | mingw* | pw32*) 148727e6fb56fSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 148737e6fb56fSmrg # When not using gcc, we currently assume that we are using 148747e6fb56fSmrg # Microsoft Visual C++. 148757e6fb56fSmrg if test "$GCC" != yes; then 148767e6fb56fSmrg with_gnu_ld=no 148777e6fb56fSmrg fi 148787e6fb56fSmrg ;; 148797e6fb56fSmrg interix*) 148807e6fb56fSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 148817e6fb56fSmrg with_gnu_ld=yes 148827e6fb56fSmrg ;; 148837e6fb56fSmrg openbsd*) 148847e6fb56fSmrg with_gnu_ld=no 148857e6fb56fSmrg ;; 148867e6fb56fSmrg esac 148877e6fb56fSmrg 148887e6fb56fSmrg ld_shlibs_F77=yes 148897e6fb56fSmrg if test "$with_gnu_ld" = yes; then 148907e6fb56fSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 148917e6fb56fSmrg wlarc='${wl}' 148927e6fb56fSmrg 148937e6fb56fSmrg # Set some defaults for GNU ld with shared library support. These 148947e6fb56fSmrg # are reset later if shared libraries are not supported. Putting them 148957e6fb56fSmrg # here allows them to be overridden if necessary. 148967e6fb56fSmrg runpath_var=LD_RUN_PATH 148977e6fb56fSmrg hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 148987e6fb56fSmrg export_dynamic_flag_spec_F77='${wl}--export-dynamic' 148997e6fb56fSmrg # ancient GNU ld didn't support --whole-archive et. al. 149007e6fb56fSmrg if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 149017e6fb56fSmrg whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 149027e6fb56fSmrg else 149037e6fb56fSmrg whole_archive_flag_spec_F77= 149047e6fb56fSmrg fi 149057e6fb56fSmrg supports_anon_versioning=no 149067e6fb56fSmrg case `$LD -v 2>/dev/null` in 149077e6fb56fSmrg *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 149087e6fb56fSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 149097e6fb56fSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 149107e6fb56fSmrg *\ 2.11.*) ;; # other 2.11 versions 149117e6fb56fSmrg *) supports_anon_versioning=yes ;; 149127e6fb56fSmrg esac 149137e6fb56fSmrg 149147e6fb56fSmrg # See if GNU ld supports shared libraries. 149157e6fb56fSmrg case $host_os in 149167e6fb56fSmrg aix[3-9]*) 149177e6fb56fSmrg # On AIX/PPC, the GNU linker is very broken 149187e6fb56fSmrg if test "$host_cpu" != ia64; then 149197e6fb56fSmrg ld_shlibs_F77=no 149207e6fb56fSmrg cat <<EOF 1>&2 149217e6fb56fSmrg 149227e6fb56fSmrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported 149237e6fb56fSmrg*** to be unable to reliably create shared libraries on AIX. 149247e6fb56fSmrg*** Therefore, libtool is disabling shared libraries support. If you 149257e6fb56fSmrg*** really care for shared libraries, you may want to modify your PATH 149267e6fb56fSmrg*** so that a non-GNU linker is found, and then restart. 149277e6fb56fSmrg 149287e6fb56fSmrgEOF 149297e6fb56fSmrg fi 149307e6fb56fSmrg ;; 149317e6fb56fSmrg 149327e6fb56fSmrg amigaos*) 149337e6fb56fSmrg archive_cmds_F77='$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)' 149347e6fb56fSmrg hardcode_libdir_flag_spec_F77='-L$libdir' 149357e6fb56fSmrg hardcode_minus_L_F77=yes 149367e6fb56fSmrg 149377e6fb56fSmrg # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 149387e6fb56fSmrg # that the semantics of dynamic libraries on AmigaOS, at least up 149397e6fb56fSmrg # to version 4, is to share data among multiple programs linked 149407e6fb56fSmrg # with the same dynamic library. Since this doesn't match the 149417e6fb56fSmrg # behavior of shared libraries on other platforms, we can't use 149427e6fb56fSmrg # them. 149437e6fb56fSmrg ld_shlibs_F77=no 149447e6fb56fSmrg ;; 149457e6fb56fSmrg 149467e6fb56fSmrg beos*) 149477e6fb56fSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 149487e6fb56fSmrg allow_undefined_flag_F77=unsupported 149497e6fb56fSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 149507e6fb56fSmrg # support --undefined. This deserves some investigation. FIXME 149517e6fb56fSmrg archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 149527e6fb56fSmrg else 149537e6fb56fSmrg ld_shlibs_F77=no 149547e6fb56fSmrg fi 149557e6fb56fSmrg ;; 149567e6fb56fSmrg 149577e6fb56fSmrg cygwin* | mingw* | pw32*) 149587e6fb56fSmrg # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 149597e6fb56fSmrg # as there is no search path for DLLs. 149607e6fb56fSmrg hardcode_libdir_flag_spec_F77='-L$libdir' 149617e6fb56fSmrg allow_undefined_flag_F77=unsupported 149627e6fb56fSmrg always_export_symbols_F77=no 149637e6fb56fSmrg enable_shared_with_static_runtimes_F77=yes 149647e6fb56fSmrg export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 149657e6fb56fSmrg 149667e6fb56fSmrg if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 149677e6fb56fSmrg archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 149687e6fb56fSmrg # If the export-symbols file already is a .def file (1st line 149697e6fb56fSmrg # is EXPORTS), use it as is; otherwise, prepend... 149707e6fb56fSmrg archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 149717e6fb56fSmrg cp $export_symbols $output_objdir/$soname.def; 149727e6fb56fSmrg else 149737e6fb56fSmrg echo EXPORTS > $output_objdir/$soname.def; 149747e6fb56fSmrg cat $export_symbols >> $output_objdir/$soname.def; 149757e6fb56fSmrg fi~ 149767e6fb56fSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 149777e6fb56fSmrg else 149787e6fb56fSmrg ld_shlibs_F77=no 149797e6fb56fSmrg fi 149807e6fb56fSmrg ;; 149817e6fb56fSmrg 149827e6fb56fSmrg interix[3-9]*) 149837e6fb56fSmrg hardcode_direct_F77=no 149847e6fb56fSmrg hardcode_shlibpath_var_F77=no 149857e6fb56fSmrg hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 149867e6fb56fSmrg export_dynamic_flag_spec_F77='${wl}-E' 149877e6fb56fSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 149887e6fb56fSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 149897e6fb56fSmrg # default) and relocated if they conflict, which is a slow very memory 149907e6fb56fSmrg # consuming and fragmenting process. To avoid this, we pick a random, 149917e6fb56fSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 149927e6fb56fSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 149937e6fb56fSmrg archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 149947e6fb56fSmrg archive_expsym_cmds_F77='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' 149957e6fb56fSmrg ;; 149967e6fb56fSmrg 149977e6fb56fSmrg gnu* | linux* | k*bsd*-gnu) 149987e6fb56fSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 149997e6fb56fSmrg tmp_addflag= 150007e6fb56fSmrg case $cc_basename,$host_cpu in 150017e6fb56fSmrg pgcc*) # Portland Group C compiler 150027e6fb56fSmrg whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 150037e6fb56fSmrg tmp_addflag=' $pic_flag' 150047e6fb56fSmrg ;; 150057e6fb56fSmrg pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 150067e6fb56fSmrg whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 150077e6fb56fSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 150087e6fb56fSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 150097e6fb56fSmrg tmp_addflag=' -i_dynamic' ;; 150107e6fb56fSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 150117e6fb56fSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 150127e6fb56fSmrg ifc* | ifort*) # Intel Fortran compiler 150137e6fb56fSmrg tmp_addflag=' -nofor_main' ;; 150147e6fb56fSmrg esac 150157e6fb56fSmrg case `$CC -V 2>&1 | sed 5q` in 150167e6fb56fSmrg *Sun\ C*) # Sun C 5.9 150177e6fb56fSmrg whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 150187e6fb56fSmrg tmp_sharedflag='-G' ;; 150197e6fb56fSmrg *Sun\ F*) # Sun Fortran 8.3 150207e6fb56fSmrg tmp_sharedflag='-G' ;; 150217e6fb56fSmrg *) 150227e6fb56fSmrg tmp_sharedflag='-shared' ;; 150237e6fb56fSmrg esac 150247e6fb56fSmrg archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 150257e6fb56fSmrg 150267e6fb56fSmrg if test $supports_anon_versioning = yes; then 150277e6fb56fSmrg archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 150287e6fb56fSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 150297e6fb56fSmrg $echo "local: *; };" >> $output_objdir/$libname.ver~ 150307e6fb56fSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 150317e6fb56fSmrg fi 150327e6fb56fSmrg else 150337e6fb56fSmrg ld_shlibs_F77=no 150347e6fb56fSmrg fi 150357e6fb56fSmrg ;; 150367e6fb56fSmrg 150377e6fb56fSmrg netbsd*) 150387e6fb56fSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 150397e6fb56fSmrg archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 150407e6fb56fSmrg wlarc= 150417e6fb56fSmrg else 150427e6fb56fSmrg archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 150437e6fb56fSmrg archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 150447e6fb56fSmrg fi 150457e6fb56fSmrg ;; 150467e6fb56fSmrg 150477e6fb56fSmrg solaris*) 150487e6fb56fSmrg if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 150497e6fb56fSmrg ld_shlibs_F77=no 150507e6fb56fSmrg cat <<EOF 1>&2 150517e6fb56fSmrg 150527e6fb56fSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 150537e6fb56fSmrg*** create shared libraries on Solaris systems. Therefore, libtool 150547e6fb56fSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 150557e6fb56fSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 150567e6fb56fSmrg*** your PATH or compiler configuration so that the native linker is 150577e6fb56fSmrg*** used, and then restart. 150587e6fb56fSmrg 150597e6fb56fSmrgEOF 150607e6fb56fSmrg elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 150617e6fb56fSmrg archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 150627e6fb56fSmrg archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 150637e6fb56fSmrg else 150647e6fb56fSmrg ld_shlibs_F77=no 150657e6fb56fSmrg fi 150667e6fb56fSmrg ;; 150677e6fb56fSmrg 150687e6fb56fSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 150697e6fb56fSmrg case `$LD -v 2>&1` in 150707e6fb56fSmrg *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 150717e6fb56fSmrg ld_shlibs_F77=no 150727e6fb56fSmrg cat <<_LT_EOF 1>&2 150737e6fb56fSmrg 150747e6fb56fSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 150757e6fb56fSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 150767e6fb56fSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 150777e6fb56fSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 150787e6fb56fSmrg*** your PATH or compiler configuration so that the native linker is 150797e6fb56fSmrg*** used, and then restart. 150807e6fb56fSmrg 150817e6fb56fSmrg_LT_EOF 150827e6fb56fSmrg ;; 150837e6fb56fSmrg *) 150847e6fb56fSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 150857e6fb56fSmrg hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 150867e6fb56fSmrg archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 150877e6fb56fSmrg archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 150887e6fb56fSmrg else 150897e6fb56fSmrg ld_shlibs_F77=no 150907e6fb56fSmrg fi 150917e6fb56fSmrg ;; 150927e6fb56fSmrg esac 150937e6fb56fSmrg ;; 150947e6fb56fSmrg 150957e6fb56fSmrg sunos4*) 150967e6fb56fSmrg archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 150977e6fb56fSmrg wlarc= 150987e6fb56fSmrg hardcode_direct_F77=yes 150997e6fb56fSmrg hardcode_shlibpath_var_F77=no 151007e6fb56fSmrg ;; 151017e6fb56fSmrg 151027e6fb56fSmrg *) 151037e6fb56fSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 151047e6fb56fSmrg archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 151057e6fb56fSmrg archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 151067e6fb56fSmrg else 151077e6fb56fSmrg ld_shlibs_F77=no 151087e6fb56fSmrg fi 151097e6fb56fSmrg ;; 151107e6fb56fSmrg esac 151117e6fb56fSmrg 151127e6fb56fSmrg if test "$ld_shlibs_F77" = no; then 151137e6fb56fSmrg runpath_var= 151147e6fb56fSmrg hardcode_libdir_flag_spec_F77= 151157e6fb56fSmrg export_dynamic_flag_spec_F77= 151167e6fb56fSmrg whole_archive_flag_spec_F77= 151177e6fb56fSmrg fi 151187e6fb56fSmrg else 151197e6fb56fSmrg # PORTME fill in a description of your system's linker (not GNU ld) 151207e6fb56fSmrg case $host_os in 151217e6fb56fSmrg aix3*) 151227e6fb56fSmrg allow_undefined_flag_F77=unsupported 151237e6fb56fSmrg always_export_symbols_F77=yes 151247e6fb56fSmrg archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 151257e6fb56fSmrg # Note: this linker hardcodes the directories in LIBPATH if there 151267e6fb56fSmrg # are no directories specified by -L. 151277e6fb56fSmrg hardcode_minus_L_F77=yes 151287e6fb56fSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 151297e6fb56fSmrg # Neither direct hardcoding nor static linking is supported with a 151307e6fb56fSmrg # broken collect2. 151317e6fb56fSmrg hardcode_direct_F77=unsupported 151327e6fb56fSmrg fi 151337e6fb56fSmrg ;; 151347e6fb56fSmrg 151357e6fb56fSmrg aix[4-9]*) 151367e6fb56fSmrg if test "$host_cpu" = ia64; then 151377e6fb56fSmrg # On IA64, the linker does run time linking by default, so we don't 151387e6fb56fSmrg # have to do anything special. 151397e6fb56fSmrg aix_use_runtimelinking=no 151407e6fb56fSmrg exp_sym_flag='-Bexport' 151417e6fb56fSmrg no_entry_flag="" 151427e6fb56fSmrg else 151437e6fb56fSmrg # If we're using GNU nm, then we don't want the "-C" option. 151447e6fb56fSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 151457e6fb56fSmrg if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 151467e6fb56fSmrg export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 151477e6fb56fSmrg else 151487e6fb56fSmrg export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 151497e6fb56fSmrg fi 151507e6fb56fSmrg aix_use_runtimelinking=no 151517e6fb56fSmrg 151527e6fb56fSmrg # Test if we are trying to use run time linking or normal 151537e6fb56fSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 151547e6fb56fSmrg # need to do runtime linking. 151557e6fb56fSmrg case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 151567e6fb56fSmrg for ld_flag in $LDFLAGS; do 151577e6fb56fSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 151587e6fb56fSmrg aix_use_runtimelinking=yes 151597e6fb56fSmrg break 151607e6fb56fSmrg fi 151617e6fb56fSmrg done 151627e6fb56fSmrg ;; 151637e6fb56fSmrg esac 151647e6fb56fSmrg 151657e6fb56fSmrg exp_sym_flag='-bexport' 151667e6fb56fSmrg no_entry_flag='-bnoentry' 151677e6fb56fSmrg fi 151687e6fb56fSmrg 151697e6fb56fSmrg # When large executables or shared objects are built, AIX ld can 151707e6fb56fSmrg # have problems creating the table of contents. If linking a library 151717e6fb56fSmrg # or program results in "error TOC overflow" add -mminimal-toc to 151727e6fb56fSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 151737e6fb56fSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 151747e6fb56fSmrg 151757e6fb56fSmrg archive_cmds_F77='' 151767e6fb56fSmrg hardcode_direct_F77=yes 151777e6fb56fSmrg hardcode_libdir_separator_F77=':' 151787e6fb56fSmrg link_all_deplibs_F77=yes 151797e6fb56fSmrg 151807e6fb56fSmrg if test "$GCC" = yes; then 151817e6fb56fSmrg case $host_os in aix4.[012]|aix4.[012].*) 151827e6fb56fSmrg # We only want to do this on AIX 4.2 and lower, the check 151837e6fb56fSmrg # below for broken collect2 doesn't work under 4.3+ 151847e6fb56fSmrg collect2name=`${CC} -print-prog-name=collect2` 151857e6fb56fSmrg if test -f "$collect2name" && \ 151867e6fb56fSmrg strings "$collect2name" | grep resolve_lib_name >/dev/null 151877e6fb56fSmrg then 151887e6fb56fSmrg # We have reworked collect2 151897e6fb56fSmrg : 151907e6fb56fSmrg else 151917e6fb56fSmrg # We have old collect2 151927e6fb56fSmrg hardcode_direct_F77=unsupported 151937e6fb56fSmrg # It fails to find uninstalled libraries when the uninstalled 151947e6fb56fSmrg # path is not listed in the libpath. Setting hardcode_minus_L 151957e6fb56fSmrg # to unsupported forces relinking 151967e6fb56fSmrg hardcode_minus_L_F77=yes 151977e6fb56fSmrg hardcode_libdir_flag_spec_F77='-L$libdir' 151987e6fb56fSmrg hardcode_libdir_separator_F77= 151997e6fb56fSmrg fi 152007e6fb56fSmrg ;; 152017e6fb56fSmrg esac 152027e6fb56fSmrg shared_flag='-shared' 152037e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 152047e6fb56fSmrg shared_flag="$shared_flag "'${wl}-G' 152057e6fb56fSmrg fi 152067e6fb56fSmrg else 152077e6fb56fSmrg # not using gcc 152087e6fb56fSmrg if test "$host_cpu" = ia64; then 152097e6fb56fSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 152107e6fb56fSmrg # chokes on -Wl,-G. The following line is correct: 152117e6fb56fSmrg shared_flag='-G' 152127e6fb56fSmrg else 152137e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 152147e6fb56fSmrg shared_flag='${wl}-G' 152157e6fb56fSmrg else 152167e6fb56fSmrg shared_flag='${wl}-bM:SRE' 152177e6fb56fSmrg fi 152187e6fb56fSmrg fi 152197e6fb56fSmrg fi 152207e6fb56fSmrg 152217e6fb56fSmrg # It seems that -bexpall does not export symbols beginning with 152227e6fb56fSmrg # underscore (_), so it is better to generate a list of symbols to export. 152237e6fb56fSmrg always_export_symbols_F77=yes 152247e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 152257e6fb56fSmrg # Warning - without using the other runtime loading flags (-brtl), 152267e6fb56fSmrg # -berok will link without error, but may produce a broken library. 152277e6fb56fSmrg allow_undefined_flag_F77='-berok' 152287e6fb56fSmrg # Determine the default libpath from the value encoded in an empty executable. 152297e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 152307e6fb56fSmrg program main 152317e6fb56fSmrg 152327e6fb56fSmrg end 152337e6fb56fSmrg_ACEOF 152347e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 152357e6fb56fSmrgif { (ac_try="$ac_link" 152367e6fb56fSmrgcase "(($ac_try" in 152377e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 152387e6fb56fSmrg *) ac_try_echo=$ac_try;; 152397e6fb56fSmrgesac 152407e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 152417e6fb56fSmrg$as_echo "$ac_try_echo") >&5 152427e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 152437e6fb56fSmrg ac_status=$? 152447e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 152457e6fb56fSmrg rm -f conftest.er1 152467e6fb56fSmrg cat conftest.err >&5 152477e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 152487e6fb56fSmrg (exit $ac_status); } && { 152497e6fb56fSmrg test -z "$ac_f77_werror_flag" || 152507e6fb56fSmrg test ! -s conftest.err 152517e6fb56fSmrg } && test -s conftest$ac_exeext && { 152527e6fb56fSmrg test "$cross_compiling" = yes || 152537e6fb56fSmrg $as_test_x conftest$ac_exeext 152547e6fb56fSmrg }; then 152557e6fb56fSmrg 152567e6fb56fSmrglt_aix_libpath_sed=' 152577e6fb56fSmrg /Import File Strings/,/^$/ { 152587e6fb56fSmrg /^0/ { 152597e6fb56fSmrg s/^0 *\(.*\)$/\1/ 152607e6fb56fSmrg p 152617e6fb56fSmrg } 152627e6fb56fSmrg }' 152637e6fb56fSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 152647e6fb56fSmrg# Check for a 64-bit object if we didn't find anything. 152657e6fb56fSmrgif test -z "$aix_libpath"; then 152667e6fb56fSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 152677e6fb56fSmrgfi 152687e6fb56fSmrgelse 152697e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 152707e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 152717e6fb56fSmrg 152727e6fb56fSmrg 152737e6fb56fSmrgfi 152747e6fb56fSmrg 152757e6fb56fSmrgrm -rf conftest.dSYM 152767e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 152777e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 152787e6fb56fSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 152797e6fb56fSmrg 152807e6fb56fSmrg hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 152817e6fb56fSmrg archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 152827e6fb56fSmrg else 152837e6fb56fSmrg if test "$host_cpu" = ia64; then 152847e6fb56fSmrg hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 152857e6fb56fSmrg allow_undefined_flag_F77="-z nodefs" 152867e6fb56fSmrg archive_expsym_cmds_F77="\$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" 152877e6fb56fSmrg else 152887e6fb56fSmrg # Determine the default libpath from the value encoded in an empty executable. 152897e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 152907e6fb56fSmrg program main 152917e6fb56fSmrg 152927e6fb56fSmrg end 152937e6fb56fSmrg_ACEOF 152947e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 152957e6fb56fSmrgif { (ac_try="$ac_link" 152967e6fb56fSmrgcase "(($ac_try" in 152977e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 152987e6fb56fSmrg *) ac_try_echo=$ac_try;; 152997e6fb56fSmrgesac 153007e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 153017e6fb56fSmrg$as_echo "$ac_try_echo") >&5 153027e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 153037e6fb56fSmrg ac_status=$? 153047e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 153057e6fb56fSmrg rm -f conftest.er1 153067e6fb56fSmrg cat conftest.err >&5 153077e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 153087e6fb56fSmrg (exit $ac_status); } && { 153097e6fb56fSmrg test -z "$ac_f77_werror_flag" || 153107e6fb56fSmrg test ! -s conftest.err 153117e6fb56fSmrg } && test -s conftest$ac_exeext && { 153127e6fb56fSmrg test "$cross_compiling" = yes || 153137e6fb56fSmrg $as_test_x conftest$ac_exeext 153147e6fb56fSmrg }; then 153157e6fb56fSmrg 153167e6fb56fSmrglt_aix_libpath_sed=' 153177e6fb56fSmrg /Import File Strings/,/^$/ { 153187e6fb56fSmrg /^0/ { 153197e6fb56fSmrg s/^0 *\(.*\)$/\1/ 153207e6fb56fSmrg p 153217e6fb56fSmrg } 153227e6fb56fSmrg }' 153237e6fb56fSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 153247e6fb56fSmrg# Check for a 64-bit object if we didn't find anything. 153257e6fb56fSmrgif test -z "$aix_libpath"; then 153267e6fb56fSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 153277e6fb56fSmrgfi 153287e6fb56fSmrgelse 153297e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 153307e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 153317e6fb56fSmrg 153327e6fb56fSmrg 153337e6fb56fSmrgfi 153347e6fb56fSmrg 153357e6fb56fSmrgrm -rf conftest.dSYM 153367e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 153377e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 153387e6fb56fSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 153397e6fb56fSmrg 153407e6fb56fSmrg hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 153417e6fb56fSmrg # Warning - without using the other run time loading flags, 153427e6fb56fSmrg # -berok will link without error, but may produce a broken library. 153437e6fb56fSmrg no_undefined_flag_F77=' ${wl}-bernotok' 153447e6fb56fSmrg allow_undefined_flag_F77=' ${wl}-berok' 153457e6fb56fSmrg # Exported symbols can be pulled into shared objects from archives 153467e6fb56fSmrg whole_archive_flag_spec_F77='$convenience' 153477e6fb56fSmrg archive_cmds_need_lc_F77=yes 153487e6fb56fSmrg # This is similar to how AIX traditionally builds its shared libraries. 153497e6fb56fSmrg archive_expsym_cmds_F77="\$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' 153507e6fb56fSmrg fi 153517e6fb56fSmrg fi 153527e6fb56fSmrg ;; 153537e6fb56fSmrg 153547e6fb56fSmrg amigaos*) 153557e6fb56fSmrg archive_cmds_F77='$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)' 153567e6fb56fSmrg hardcode_libdir_flag_spec_F77='-L$libdir' 153577e6fb56fSmrg hardcode_minus_L_F77=yes 153587e6fb56fSmrg # see comment about different semantics on the GNU ld section 153597e6fb56fSmrg ld_shlibs_F77=no 153607e6fb56fSmrg ;; 153617e6fb56fSmrg 153627e6fb56fSmrg bsdi[45]*) 153637e6fb56fSmrg export_dynamic_flag_spec_F77=-rdynamic 153647e6fb56fSmrg ;; 153657e6fb56fSmrg 153667e6fb56fSmrg cygwin* | mingw* | pw32*) 153677e6fb56fSmrg # When not using gcc, we currently assume that we are using 153687e6fb56fSmrg # Microsoft Visual C++. 153697e6fb56fSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 153707e6fb56fSmrg # no search path for DLLs. 153717e6fb56fSmrg hardcode_libdir_flag_spec_F77=' ' 153727e6fb56fSmrg allow_undefined_flag_F77=unsupported 153737e6fb56fSmrg # Tell ltmain to make .lib files, not .a files. 153747e6fb56fSmrg libext=lib 153757e6fb56fSmrg # Tell ltmain to make .dll files, not .so files. 153767e6fb56fSmrg shrext_cmds=".dll" 153777e6fb56fSmrg # FIXME: Setting linknames here is a bad hack. 153787e6fb56fSmrg archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 153797e6fb56fSmrg # The linker will automatically build a .lib file if we build a DLL. 153807e6fb56fSmrg old_archive_From_new_cmds_F77='true' 153817e6fb56fSmrg # FIXME: Should let the user specify the lib program. 153827e6fb56fSmrg old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 153837e6fb56fSmrg fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 153847e6fb56fSmrg enable_shared_with_static_runtimes_F77=yes 153857e6fb56fSmrg ;; 153867e6fb56fSmrg 153877e6fb56fSmrg darwin* | rhapsody*) 153887e6fb56fSmrg case $host_os in 153897e6fb56fSmrg rhapsody* | darwin1.[012]) 153907e6fb56fSmrg allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 153917e6fb56fSmrg ;; 153927e6fb56fSmrg *) # Darwin 1.3 on 153937e6fb56fSmrg if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 153947e6fb56fSmrg allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 153957e6fb56fSmrg else 153967e6fb56fSmrg case ${MACOSX_DEPLOYMENT_TARGET} in 153977e6fb56fSmrg 10.[012]) 153987e6fb56fSmrg allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 153997e6fb56fSmrg ;; 154007e6fb56fSmrg 10.*) 154017e6fb56fSmrg allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 154027e6fb56fSmrg ;; 154037e6fb56fSmrg esac 154047e6fb56fSmrg fi 154057e6fb56fSmrg ;; 154067e6fb56fSmrg esac 154077e6fb56fSmrg archive_cmds_need_lc_F77=no 154087e6fb56fSmrg hardcode_direct_F77=no 154097e6fb56fSmrg hardcode_automatic_F77=yes 154107e6fb56fSmrg hardcode_shlibpath_var_F77=unsupported 154117e6fb56fSmrg whole_archive_flag_spec_F77='' 154127e6fb56fSmrg link_all_deplibs_F77=yes 154137e6fb56fSmrg if test "$GCC" = yes ; then 154147e6fb56fSmrg output_verbose_link_cmd='echo' 154157e6fb56fSmrg archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 154167e6fb56fSmrg module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 154177e6fb56fSmrg archive_expsym_cmds_F77="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}" 154187e6fb56fSmrg module_expsym_cmds_F77="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}" 154197e6fb56fSmrg else 154207e6fb56fSmrg case $cc_basename in 154217e6fb56fSmrg xlc*) 154227e6fb56fSmrg output_verbose_link_cmd='echo' 154237e6fb56fSmrg archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 154247e6fb56fSmrg module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 154257e6fb56fSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 154267e6fb56fSmrg archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 154277e6fb56fSmrg module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 154287e6fb56fSmrg ;; 154297e6fb56fSmrg *) 154307e6fb56fSmrg ld_shlibs_F77=no 154317e6fb56fSmrg ;; 154327e6fb56fSmrg esac 154337e6fb56fSmrg fi 154347e6fb56fSmrg ;; 154357e6fb56fSmrg 154367e6fb56fSmrg dgux*) 154377e6fb56fSmrg archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 154387e6fb56fSmrg hardcode_libdir_flag_spec_F77='-L$libdir' 154397e6fb56fSmrg hardcode_shlibpath_var_F77=no 154407e6fb56fSmrg ;; 154417e6fb56fSmrg 154427e6fb56fSmrg freebsd1*) 154437e6fb56fSmrg ld_shlibs_F77=no 154447e6fb56fSmrg ;; 154457e6fb56fSmrg 154467e6fb56fSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 154477e6fb56fSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 154487e6fb56fSmrg # does not break anything, and helps significantly (at the cost of a little 154497e6fb56fSmrg # extra space). 154507e6fb56fSmrg freebsd2.2*) 154517e6fb56fSmrg archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 154527e6fb56fSmrg hardcode_libdir_flag_spec_F77='-R$libdir' 154537e6fb56fSmrg hardcode_direct_F77=yes 154547e6fb56fSmrg hardcode_shlibpath_var_F77=no 154557e6fb56fSmrg ;; 154567e6fb56fSmrg 154577e6fb56fSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 154587e6fb56fSmrg freebsd2*) 154597e6fb56fSmrg archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 154607e6fb56fSmrg hardcode_direct_F77=yes 154617e6fb56fSmrg hardcode_minus_L_F77=yes 154627e6fb56fSmrg hardcode_shlibpath_var_F77=no 154637e6fb56fSmrg ;; 154647e6fb56fSmrg 154657e6fb56fSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 154667e6fb56fSmrg freebsd* | dragonfly*) 154677e6fb56fSmrg archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 154687e6fb56fSmrg hardcode_libdir_flag_spec_F77='-R$libdir' 154697e6fb56fSmrg hardcode_direct_F77=yes 154707e6fb56fSmrg hardcode_shlibpath_var_F77=no 154717e6fb56fSmrg ;; 154727e6fb56fSmrg 154737e6fb56fSmrg hpux9*) 154747e6fb56fSmrg if test "$GCC" = yes; then 154757e6fb56fSmrg archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 154767e6fb56fSmrg else 154777e6fb56fSmrg archive_cmds_F77='$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' 154787e6fb56fSmrg fi 154797e6fb56fSmrg hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 154807e6fb56fSmrg hardcode_libdir_separator_F77=: 154817e6fb56fSmrg hardcode_direct_F77=yes 154827e6fb56fSmrg 154837e6fb56fSmrg # hardcode_minus_L: Not really in the search PATH, 154847e6fb56fSmrg # but as the default location of the library. 154857e6fb56fSmrg hardcode_minus_L_F77=yes 154867e6fb56fSmrg export_dynamic_flag_spec_F77='${wl}-E' 154877e6fb56fSmrg ;; 154887e6fb56fSmrg 154897e6fb56fSmrg hpux10*) 154907e6fb56fSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 154917e6fb56fSmrg archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 154927e6fb56fSmrg else 154937e6fb56fSmrg archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 154947e6fb56fSmrg fi 154957e6fb56fSmrg if test "$with_gnu_ld" = no; then 154967e6fb56fSmrg hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 154977e6fb56fSmrg hardcode_libdir_separator_F77=: 154987e6fb56fSmrg 154997e6fb56fSmrg hardcode_direct_F77=yes 155007e6fb56fSmrg export_dynamic_flag_spec_F77='${wl}-E' 155017e6fb56fSmrg 155027e6fb56fSmrg # hardcode_minus_L: Not really in the search PATH, 155037e6fb56fSmrg # but as the default location of the library. 155047e6fb56fSmrg hardcode_minus_L_F77=yes 155057e6fb56fSmrg fi 155067e6fb56fSmrg ;; 155077e6fb56fSmrg 155087e6fb56fSmrg hpux11*) 155097e6fb56fSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 155107e6fb56fSmrg case $host_cpu in 155117e6fb56fSmrg hppa*64*) 155127e6fb56fSmrg archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 155137e6fb56fSmrg ;; 155147e6fb56fSmrg ia64*) 155157e6fb56fSmrg archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 155167e6fb56fSmrg ;; 155177e6fb56fSmrg *) 155187e6fb56fSmrg archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 155197e6fb56fSmrg ;; 155207e6fb56fSmrg esac 155217e6fb56fSmrg else 155227e6fb56fSmrg case $host_cpu in 155237e6fb56fSmrg hppa*64*) 155247e6fb56fSmrg archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 155257e6fb56fSmrg ;; 155267e6fb56fSmrg ia64*) 155277e6fb56fSmrg archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 155287e6fb56fSmrg ;; 155297e6fb56fSmrg *) 155307e6fb56fSmrg archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 155317e6fb56fSmrg ;; 155327e6fb56fSmrg esac 155337e6fb56fSmrg fi 155347e6fb56fSmrg if test "$with_gnu_ld" = no; then 155357e6fb56fSmrg hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 155367e6fb56fSmrg hardcode_libdir_separator_F77=: 155377e6fb56fSmrg 155387e6fb56fSmrg case $host_cpu in 155397e6fb56fSmrg hppa*64*|ia64*) 155407e6fb56fSmrg hardcode_libdir_flag_spec_ld_F77='+b $libdir' 155417e6fb56fSmrg hardcode_direct_F77=no 155427e6fb56fSmrg hardcode_shlibpath_var_F77=no 155437e6fb56fSmrg ;; 155447e6fb56fSmrg *) 155457e6fb56fSmrg hardcode_direct_F77=yes 155467e6fb56fSmrg export_dynamic_flag_spec_F77='${wl}-E' 155477e6fb56fSmrg 155487e6fb56fSmrg # hardcode_minus_L: Not really in the search PATH, 155497e6fb56fSmrg # but as the default location of the library. 155507e6fb56fSmrg hardcode_minus_L_F77=yes 155517e6fb56fSmrg ;; 155527e6fb56fSmrg esac 155537e6fb56fSmrg fi 155547e6fb56fSmrg ;; 155557e6fb56fSmrg 155567e6fb56fSmrg irix5* | irix6* | nonstopux*) 155577e6fb56fSmrg if test "$GCC" = yes; then 155587e6fb56fSmrg archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 155597e6fb56fSmrg else 155607e6fb56fSmrg archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 155617e6fb56fSmrg hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 155627e6fb56fSmrg fi 155637e6fb56fSmrg hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 155647e6fb56fSmrg hardcode_libdir_separator_F77=: 155657e6fb56fSmrg link_all_deplibs_F77=yes 155667e6fb56fSmrg ;; 155677e6fb56fSmrg 155687e6fb56fSmrg netbsd*) 155697e6fb56fSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 155707e6fb56fSmrg archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 155717e6fb56fSmrg else 155727e6fb56fSmrg archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 155737e6fb56fSmrg fi 155747e6fb56fSmrg hardcode_libdir_flag_spec_F77='-R$libdir' 155757e6fb56fSmrg hardcode_direct_F77=yes 155767e6fb56fSmrg hardcode_shlibpath_var_F77=no 155777e6fb56fSmrg ;; 155787e6fb56fSmrg 155797e6fb56fSmrg newsos6) 155807e6fb56fSmrg archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 155817e6fb56fSmrg hardcode_direct_F77=yes 155827e6fb56fSmrg hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 155837e6fb56fSmrg hardcode_libdir_separator_F77=: 155847e6fb56fSmrg hardcode_shlibpath_var_F77=no 155857e6fb56fSmrg ;; 155867e6fb56fSmrg 155877e6fb56fSmrg openbsd*) 155887e6fb56fSmrg if test -f /usr/libexec/ld.so; then 155897e6fb56fSmrg hardcode_direct_F77=yes 155907e6fb56fSmrg hardcode_shlibpath_var_F77=no 155917e6fb56fSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 155927e6fb56fSmrg archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 155937e6fb56fSmrg archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 155947e6fb56fSmrg hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 155957e6fb56fSmrg export_dynamic_flag_spec_F77='${wl}-E' 155967e6fb56fSmrg else 155977e6fb56fSmrg case $host_os in 155987e6fb56fSmrg openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 155997e6fb56fSmrg archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 156007e6fb56fSmrg hardcode_libdir_flag_spec_F77='-R$libdir' 156017e6fb56fSmrg ;; 156027e6fb56fSmrg *) 156037e6fb56fSmrg archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 156047e6fb56fSmrg hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 156057e6fb56fSmrg ;; 156067e6fb56fSmrg esac 156077e6fb56fSmrg fi 156087e6fb56fSmrg else 156097e6fb56fSmrg ld_shlibs_F77=no 156107e6fb56fSmrg fi 156117e6fb56fSmrg ;; 156127e6fb56fSmrg 156137e6fb56fSmrg os2*) 156147e6fb56fSmrg hardcode_libdir_flag_spec_F77='-L$libdir' 156157e6fb56fSmrg hardcode_minus_L_F77=yes 156167e6fb56fSmrg allow_undefined_flag_F77=unsupported 156177e6fb56fSmrg archive_cmds_F77='$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' 156187e6fb56fSmrg old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 156197e6fb56fSmrg ;; 156207e6fb56fSmrg 156217e6fb56fSmrg osf3*) 156227e6fb56fSmrg if test "$GCC" = yes; then 156237e6fb56fSmrg allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 156247e6fb56fSmrg archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 156257e6fb56fSmrg else 156267e6fb56fSmrg allow_undefined_flag_F77=' -expect_unresolved \*' 156277e6fb56fSmrg archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 156287e6fb56fSmrg fi 156297e6fb56fSmrg hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 156307e6fb56fSmrg hardcode_libdir_separator_F77=: 156317e6fb56fSmrg ;; 156327e6fb56fSmrg 156337e6fb56fSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 156347e6fb56fSmrg if test "$GCC" = yes; then 156357e6fb56fSmrg allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 156367e6fb56fSmrg archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 156377e6fb56fSmrg hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 156387e6fb56fSmrg else 156397e6fb56fSmrg allow_undefined_flag_F77=' -expect_unresolved \*' 156407e6fb56fSmrg archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 156417e6fb56fSmrg archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 156427e6fb56fSmrg $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 156437e6fb56fSmrg 156447e6fb56fSmrg # Both c and cxx compiler support -rpath directly 156457e6fb56fSmrg hardcode_libdir_flag_spec_F77='-rpath $libdir' 156467e6fb56fSmrg fi 156477e6fb56fSmrg hardcode_libdir_separator_F77=: 156487e6fb56fSmrg ;; 156497e6fb56fSmrg 156507e6fb56fSmrg solaris*) 156517e6fb56fSmrg no_undefined_flag_F77=' -z text' 156527e6fb56fSmrg if test "$GCC" = yes; then 156537e6fb56fSmrg wlarc='${wl}' 156547e6fb56fSmrg archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 156557e6fb56fSmrg archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 156567e6fb56fSmrg $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 156577e6fb56fSmrg else 156587e6fb56fSmrg wlarc='' 156597e6fb56fSmrg archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 156607e6fb56fSmrg archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 156617e6fb56fSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 156627e6fb56fSmrg fi 156637e6fb56fSmrg hardcode_libdir_flag_spec_F77='-R$libdir' 156647e6fb56fSmrg hardcode_shlibpath_var_F77=no 156657e6fb56fSmrg case $host_os in 156667e6fb56fSmrg solaris2.[0-5] | solaris2.[0-5].*) ;; 156677e6fb56fSmrg *) 156687e6fb56fSmrg # The compiler driver will combine and reorder linker options, 156697e6fb56fSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 156707e6fb56fSmrg # but is careful enough not to reorder. 156717e6fb56fSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 156727e6fb56fSmrg if test "$GCC" = yes; then 156737e6fb56fSmrg whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 156747e6fb56fSmrg else 156757e6fb56fSmrg whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 156767e6fb56fSmrg fi 156777e6fb56fSmrg ;; 156787e6fb56fSmrg esac 156797e6fb56fSmrg link_all_deplibs_F77=yes 156807e6fb56fSmrg ;; 156817e6fb56fSmrg 156827e6fb56fSmrg sunos4*) 156837e6fb56fSmrg if test "x$host_vendor" = xsequent; then 156847e6fb56fSmrg # Use $CC to link under sequent, because it throws in some extra .o 156857e6fb56fSmrg # files that make .init and .fini sections work. 156867e6fb56fSmrg archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 156877e6fb56fSmrg else 156887e6fb56fSmrg archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 156897e6fb56fSmrg fi 156907e6fb56fSmrg hardcode_libdir_flag_spec_F77='-L$libdir' 156917e6fb56fSmrg hardcode_direct_F77=yes 156927e6fb56fSmrg hardcode_minus_L_F77=yes 156937e6fb56fSmrg hardcode_shlibpath_var_F77=no 156947e6fb56fSmrg ;; 156957e6fb56fSmrg 156967e6fb56fSmrg sysv4) 156977e6fb56fSmrg case $host_vendor in 156987e6fb56fSmrg sni) 156997e6fb56fSmrg archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 157007e6fb56fSmrg hardcode_direct_F77=yes # is this really true??? 157017e6fb56fSmrg ;; 157027e6fb56fSmrg siemens) 157037e6fb56fSmrg ## LD is ld it makes a PLAMLIB 157047e6fb56fSmrg ## CC just makes a GrossModule. 157057e6fb56fSmrg archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 157067e6fb56fSmrg reload_cmds_F77='$CC -r -o $output$reload_objs' 157077e6fb56fSmrg hardcode_direct_F77=no 157087e6fb56fSmrg ;; 157097e6fb56fSmrg motorola) 157107e6fb56fSmrg archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 157117e6fb56fSmrg hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 157127e6fb56fSmrg ;; 157137e6fb56fSmrg esac 157147e6fb56fSmrg runpath_var='LD_RUN_PATH' 157157e6fb56fSmrg hardcode_shlibpath_var_F77=no 157167e6fb56fSmrg ;; 157177e6fb56fSmrg 157187e6fb56fSmrg sysv4.3*) 157197e6fb56fSmrg archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 157207e6fb56fSmrg hardcode_shlibpath_var_F77=no 157217e6fb56fSmrg export_dynamic_flag_spec_F77='-Bexport' 157227e6fb56fSmrg ;; 157237e6fb56fSmrg 157247e6fb56fSmrg sysv4*MP*) 157257e6fb56fSmrg if test -d /usr/nec; then 157267e6fb56fSmrg archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 157277e6fb56fSmrg hardcode_shlibpath_var_F77=no 157287e6fb56fSmrg runpath_var=LD_RUN_PATH 157297e6fb56fSmrg hardcode_runpath_var=yes 157307e6fb56fSmrg ld_shlibs_F77=yes 157317e6fb56fSmrg fi 157327e6fb56fSmrg ;; 157337e6fb56fSmrg 157347e6fb56fSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 157357e6fb56fSmrg no_undefined_flag_F77='${wl}-z,text' 157367e6fb56fSmrg archive_cmds_need_lc_F77=no 157377e6fb56fSmrg hardcode_shlibpath_var_F77=no 157387e6fb56fSmrg runpath_var='LD_RUN_PATH' 157397e6fb56fSmrg 157407e6fb56fSmrg if test "$GCC" = yes; then 157417e6fb56fSmrg archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 157427e6fb56fSmrg archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 157437e6fb56fSmrg else 157447e6fb56fSmrg archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 157457e6fb56fSmrg archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 157467e6fb56fSmrg fi 157477e6fb56fSmrg ;; 157487e6fb56fSmrg 157497e6fb56fSmrg sysv5* | sco3.2v5* | sco5v6*) 157507e6fb56fSmrg # Note: We can NOT use -z defs as we might desire, because we do not 157517e6fb56fSmrg # link with -lc, and that would cause any symbols used from libc to 157527e6fb56fSmrg # always be unresolved, which means just about no library would 157537e6fb56fSmrg # ever link correctly. If we're not using GNU ld we use -z text 157547e6fb56fSmrg # though, which does catch some bad symbols but isn't as heavy-handed 157557e6fb56fSmrg # as -z defs. 157567e6fb56fSmrg no_undefined_flag_F77='${wl}-z,text' 157577e6fb56fSmrg allow_undefined_flag_F77='${wl}-z,nodefs' 157587e6fb56fSmrg archive_cmds_need_lc_F77=no 157597e6fb56fSmrg hardcode_shlibpath_var_F77=no 157607e6fb56fSmrg hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 157617e6fb56fSmrg hardcode_libdir_separator_F77=':' 157627e6fb56fSmrg link_all_deplibs_F77=yes 157637e6fb56fSmrg export_dynamic_flag_spec_F77='${wl}-Bexport' 157647e6fb56fSmrg runpath_var='LD_RUN_PATH' 157657e6fb56fSmrg 157667e6fb56fSmrg if test "$GCC" = yes; then 157677e6fb56fSmrg archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 157687e6fb56fSmrg archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 157697e6fb56fSmrg else 157707e6fb56fSmrg archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 157717e6fb56fSmrg archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 157727e6fb56fSmrg fi 157737e6fb56fSmrg ;; 157747e6fb56fSmrg 157757e6fb56fSmrg uts4*) 157767e6fb56fSmrg archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 157777e6fb56fSmrg hardcode_libdir_flag_spec_F77='-L$libdir' 157787e6fb56fSmrg hardcode_shlibpath_var_F77=no 157797e6fb56fSmrg ;; 157807e6fb56fSmrg 157817e6fb56fSmrg *) 157827e6fb56fSmrg ld_shlibs_F77=no 157837e6fb56fSmrg ;; 157847e6fb56fSmrg esac 157857e6fb56fSmrg fi 157867e6fb56fSmrg 157877e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 157887e6fb56fSmrg$as_echo "$ld_shlibs_F77" >&6; } 157897e6fb56fSmrgtest "$ld_shlibs_F77" = no && can_build_shared=no 157907e6fb56fSmrg 157917e6fb56fSmrg# 157927e6fb56fSmrg# Do we need to explicitly link libc? 157937e6fb56fSmrg# 157947e6fb56fSmrgcase "x$archive_cmds_need_lc_F77" in 157957e6fb56fSmrgx|xyes) 157967e6fb56fSmrg # Assume -lc should be added 157977e6fb56fSmrg archive_cmds_need_lc_F77=yes 157987e6fb56fSmrg 157997e6fb56fSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 158007e6fb56fSmrg case $archive_cmds_F77 in 158017e6fb56fSmrg *'~'*) 158027e6fb56fSmrg # FIXME: we may have to deal with multi-command sequences. 158037e6fb56fSmrg ;; 158047e6fb56fSmrg '$CC '*) 158057e6fb56fSmrg # Test whether the compiler implicitly links with -lc since on some 158067e6fb56fSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 158077e6fb56fSmrg # to ld, don't add -lc before -lgcc. 158087e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 158097e6fb56fSmrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 158107e6fb56fSmrg $rm conftest* 158117e6fb56fSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 158127e6fb56fSmrg 158137e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 158147e6fb56fSmrg (eval $ac_compile) 2>&5 158157e6fb56fSmrg ac_status=$? 158167e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 158177e6fb56fSmrg (exit $ac_status); } 2>conftest.err; then 158187e6fb56fSmrg soname=conftest 158197e6fb56fSmrg lib=conftest 158207e6fb56fSmrg libobjs=conftest.$ac_objext 158217e6fb56fSmrg deplibs= 158227e6fb56fSmrg wl=$lt_prog_compiler_wl_F77 158237e6fb56fSmrg pic_flag=$lt_prog_compiler_pic_F77 158247e6fb56fSmrg compiler_flags=-v 158257e6fb56fSmrg linker_flags=-v 158267e6fb56fSmrg verstring= 158277e6fb56fSmrg output_objdir=. 158287e6fb56fSmrg libname=conftest 158297e6fb56fSmrg lt_save_allow_undefined_flag=$allow_undefined_flag_F77 158307e6fb56fSmrg allow_undefined_flag_F77= 158317e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 158327e6fb56fSmrg (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 158337e6fb56fSmrg ac_status=$? 158347e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 158357e6fb56fSmrg (exit $ac_status); } 158367e6fb56fSmrg then 158377e6fb56fSmrg archive_cmds_need_lc_F77=no 158387e6fb56fSmrg else 158397e6fb56fSmrg archive_cmds_need_lc_F77=yes 158407e6fb56fSmrg fi 158417e6fb56fSmrg allow_undefined_flag_F77=$lt_save_allow_undefined_flag 158427e6fb56fSmrg else 158437e6fb56fSmrg cat conftest.err 1>&5 158447e6fb56fSmrg fi 158457e6fb56fSmrg $rm conftest* 158467e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 158477e6fb56fSmrg$as_echo "$archive_cmds_need_lc_F77" >&6; } 158487e6fb56fSmrg ;; 158497e6fb56fSmrg esac 158507e6fb56fSmrg fi 158517e6fb56fSmrg ;; 158527e6fb56fSmrgesac 158537e6fb56fSmrg 158547e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 158557e6fb56fSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; } 158567e6fb56fSmrglibrary_names_spec= 158577e6fb56fSmrglibname_spec='lib$name' 158587e6fb56fSmrgsoname_spec= 158597e6fb56fSmrgshrext_cmds=".so" 158607e6fb56fSmrgpostinstall_cmds= 158617e6fb56fSmrgpostuninstall_cmds= 158627e6fb56fSmrgfinish_cmds= 158637e6fb56fSmrgfinish_eval= 158647e6fb56fSmrgshlibpath_var= 158657e6fb56fSmrgshlibpath_overrides_runpath=unknown 158667e6fb56fSmrgversion_type=none 158677e6fb56fSmrgdynamic_linker="$host_os ld.so" 158687e6fb56fSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 158697e6fb56fSmrg 158707e6fb56fSmrgneed_lib_prefix=unknown 158717e6fb56fSmrghardcode_into_libs=no 158727e6fb56fSmrg 158737e6fb56fSmrg# when you set need_version to no, make sure it does not cause -set_version 158747e6fb56fSmrg# flags to be left without arguments 158757e6fb56fSmrgneed_version=unknown 158767e6fb56fSmrg 158777e6fb56fSmrgcase $host_os in 158787e6fb56fSmrgaix3*) 158797e6fb56fSmrg version_type=linux 158807e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 158817e6fb56fSmrg shlibpath_var=LIBPATH 158827e6fb56fSmrg 158837e6fb56fSmrg # AIX 3 has no versioning support, so we append a major version to the name. 158847e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 158857e6fb56fSmrg ;; 158867e6fb56fSmrg 158877e6fb56fSmrgaix[4-9]*) 158887e6fb56fSmrg version_type=linux 158897e6fb56fSmrg need_lib_prefix=no 158907e6fb56fSmrg need_version=no 158917e6fb56fSmrg hardcode_into_libs=yes 158927e6fb56fSmrg if test "$host_cpu" = ia64; then 158937e6fb56fSmrg # AIX 5 supports IA64 158947e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 158957e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 158967e6fb56fSmrg else 158977e6fb56fSmrg # With GCC up to 2.95.x, collect2 would create an import file 158987e6fb56fSmrg # for dependence libraries. The import file would start with 158997e6fb56fSmrg # the line `#! .'. This would cause the generated library to 159007e6fb56fSmrg # depend on `.', always an invalid library. This was fixed in 159017e6fb56fSmrg # development snapshots of GCC prior to 3.0. 159027e6fb56fSmrg case $host_os in 159037e6fb56fSmrg aix4 | aix4.[01] | aix4.[01].*) 159047e6fb56fSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 159057e6fb56fSmrg echo ' yes ' 159067e6fb56fSmrg echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 159077e6fb56fSmrg : 159087e6fb56fSmrg else 159097e6fb56fSmrg can_build_shared=no 159107e6fb56fSmrg fi 159117e6fb56fSmrg ;; 159127e6fb56fSmrg esac 159137e6fb56fSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 159147e6fb56fSmrg # soname into executable. Probably we can add versioning support to 159157e6fb56fSmrg # collect2, so additional links can be useful in future. 159167e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 159177e6fb56fSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 159187e6fb56fSmrg # instead of lib<name>.a to let people know that these are not 159197e6fb56fSmrg # typical AIX shared libraries. 159207e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 159217e6fb56fSmrg else 159227e6fb56fSmrg # We preserve .a as extension for shared libraries through AIX4.2 159237e6fb56fSmrg # and later when we are not doing run time linking. 159247e6fb56fSmrg library_names_spec='${libname}${release}.a $libname.a' 159257e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 159267e6fb56fSmrg fi 159277e6fb56fSmrg shlibpath_var=LIBPATH 159287e6fb56fSmrg fi 159297e6fb56fSmrg ;; 159307e6fb56fSmrg 159317e6fb56fSmrgamigaos*) 159327e6fb56fSmrg library_names_spec='$libname.ixlibrary $libname.a' 159337e6fb56fSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 159347e6fb56fSmrg finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 159357e6fb56fSmrg ;; 159367e6fb56fSmrg 159377e6fb56fSmrgbeos*) 159387e6fb56fSmrg library_names_spec='${libname}${shared_ext}' 159397e6fb56fSmrg dynamic_linker="$host_os ld.so" 159407e6fb56fSmrg shlibpath_var=LIBRARY_PATH 159417e6fb56fSmrg ;; 159427e6fb56fSmrg 159437e6fb56fSmrgbsdi[45]*) 159447e6fb56fSmrg version_type=linux 159457e6fb56fSmrg need_version=no 159467e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 159477e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 159487e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 159497e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 159507e6fb56fSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 159517e6fb56fSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 159527e6fb56fSmrg # the default ld.so.conf also contains /usr/contrib/lib and 159537e6fb56fSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 159547e6fb56fSmrg # libtool to hard-code these into programs 159557e6fb56fSmrg ;; 159567e6fb56fSmrg 159577e6fb56fSmrgcygwin* | mingw* | pw32*) 159587e6fb56fSmrg version_type=windows 159597e6fb56fSmrg shrext_cmds=".dll" 159607e6fb56fSmrg need_version=no 159617e6fb56fSmrg need_lib_prefix=no 159627e6fb56fSmrg 159637e6fb56fSmrg case $GCC,$host_os in 159647e6fb56fSmrg yes,cygwin* | yes,mingw* | yes,pw32*) 159657e6fb56fSmrg library_names_spec='$libname.dll.a' 159667e6fb56fSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 159677e6fb56fSmrg postinstall_cmds='base_file=`basename \${file}`~ 159687e6fb56fSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 159697e6fb56fSmrg dldir=$destdir/`dirname \$dlpath`~ 159707e6fb56fSmrg test -d \$dldir || mkdir -p \$dldir~ 159717e6fb56fSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 159727e6fb56fSmrg chmod a+x \$dldir/$dlname' 159737e6fb56fSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 159747e6fb56fSmrg dlpath=$dir/\$dldll~ 159757e6fb56fSmrg $rm \$dlpath' 159767e6fb56fSmrg shlibpath_overrides_runpath=yes 159777e6fb56fSmrg 159787e6fb56fSmrg case $host_os in 159797e6fb56fSmrg cygwin*) 159807e6fb56fSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 159817e6fb56fSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 159827e6fb56fSmrg sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 159837e6fb56fSmrg ;; 159847e6fb56fSmrg mingw*) 159857e6fb56fSmrg # MinGW DLLs use traditional 'lib' prefix 159867e6fb56fSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 159877e6fb56fSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 159887e6fb56fSmrg if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 159897e6fb56fSmrg # It is most probably a Windows format PATH printed by 159907e6fb56fSmrg # mingw gcc, but we are running on Cygwin. Gcc prints its search 159917e6fb56fSmrg # path with ; separators, and with drive letters. We can handle the 159927e6fb56fSmrg # drive letters (cygwin fileutils understands them), so leave them, 159937e6fb56fSmrg # especially as we might pass files found there to a mingw objdump, 159947e6fb56fSmrg # which wouldn't understand a cygwinified path. Ahh. 159957e6fb56fSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 159967e6fb56fSmrg else 159977e6fb56fSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 159987e6fb56fSmrg fi 159997e6fb56fSmrg ;; 160007e6fb56fSmrg pw32*) 160017e6fb56fSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 160027e6fb56fSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 160037e6fb56fSmrg ;; 160047e6fb56fSmrg esac 160057e6fb56fSmrg ;; 160067e6fb56fSmrg 160077e6fb56fSmrg *) 160087e6fb56fSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 160097e6fb56fSmrg ;; 160107e6fb56fSmrg esac 160117e6fb56fSmrg dynamic_linker='Win32 ld.exe' 160127e6fb56fSmrg # FIXME: first we should search . and the directory the executable is in 160137e6fb56fSmrg shlibpath_var=PATH 160147e6fb56fSmrg ;; 160157e6fb56fSmrg 160167e6fb56fSmrgdarwin* | rhapsody*) 160177e6fb56fSmrg dynamic_linker="$host_os dyld" 160187e6fb56fSmrg version_type=darwin 160197e6fb56fSmrg need_lib_prefix=no 160207e6fb56fSmrg need_version=no 160217e6fb56fSmrg library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 160227e6fb56fSmrg soname_spec='${libname}${release}${major}$shared_ext' 160237e6fb56fSmrg shlibpath_overrides_runpath=yes 160247e6fb56fSmrg shlibpath_var=DYLD_LIBRARY_PATH 160257e6fb56fSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 160267e6fb56fSmrg 160277e6fb56fSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 160287e6fb56fSmrg ;; 160297e6fb56fSmrg 160307e6fb56fSmrgdgux*) 160317e6fb56fSmrg version_type=linux 160327e6fb56fSmrg need_lib_prefix=no 160337e6fb56fSmrg need_version=no 160347e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 160357e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 160367e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 160377e6fb56fSmrg ;; 160387e6fb56fSmrg 160397e6fb56fSmrgfreebsd1*) 160407e6fb56fSmrg dynamic_linker=no 160417e6fb56fSmrg ;; 160427e6fb56fSmrg 160437e6fb56fSmrgfreebsd* | dragonfly*) 160447e6fb56fSmrg # DragonFly does not have aout. When/if they implement a new 160457e6fb56fSmrg # versioning mechanism, adjust this. 160467e6fb56fSmrg if test -x /usr/bin/objformat; then 160477e6fb56fSmrg objformat=`/usr/bin/objformat` 160487e6fb56fSmrg else 160497e6fb56fSmrg case $host_os in 160507e6fb56fSmrg freebsd[123]*) objformat=aout ;; 160517e6fb56fSmrg *) objformat=elf ;; 160527e6fb56fSmrg esac 160537e6fb56fSmrg fi 160547e6fb56fSmrg version_type=freebsd-$objformat 160557e6fb56fSmrg case $version_type in 160567e6fb56fSmrg freebsd-elf*) 160577e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 160587e6fb56fSmrg need_version=no 160597e6fb56fSmrg need_lib_prefix=no 160607e6fb56fSmrg ;; 160617e6fb56fSmrg freebsd-*) 160627e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 160637e6fb56fSmrg need_version=yes 160647e6fb56fSmrg ;; 160657e6fb56fSmrg esac 160667e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 160677e6fb56fSmrg case $host_os in 160687e6fb56fSmrg freebsd2*) 160697e6fb56fSmrg shlibpath_overrides_runpath=yes 160707e6fb56fSmrg ;; 160717e6fb56fSmrg freebsd3.[01]* | freebsdelf3.[01]*) 160727e6fb56fSmrg shlibpath_overrides_runpath=yes 160737e6fb56fSmrg hardcode_into_libs=yes 160747e6fb56fSmrg ;; 160757e6fb56fSmrg freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 160767e6fb56fSmrg freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 160777e6fb56fSmrg shlibpath_overrides_runpath=no 160787e6fb56fSmrg hardcode_into_libs=yes 160797e6fb56fSmrg ;; 160807e6fb56fSmrg *) # from 4.6 on, and DragonFly 160817e6fb56fSmrg shlibpath_overrides_runpath=yes 160827e6fb56fSmrg hardcode_into_libs=yes 160837e6fb56fSmrg ;; 160847e6fb56fSmrg esac 160857e6fb56fSmrg ;; 160867e6fb56fSmrg 160877e6fb56fSmrggnu*) 160887e6fb56fSmrg version_type=linux 160897e6fb56fSmrg need_lib_prefix=no 160907e6fb56fSmrg need_version=no 160917e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 160927e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 160937e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 160947e6fb56fSmrg hardcode_into_libs=yes 160957e6fb56fSmrg ;; 160967e6fb56fSmrg 160977e6fb56fSmrghpux9* | hpux10* | hpux11*) 160987e6fb56fSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 160997e6fb56fSmrg # link against other versions. 161007e6fb56fSmrg version_type=sunos 161017e6fb56fSmrg need_lib_prefix=no 161027e6fb56fSmrg need_version=no 161037e6fb56fSmrg case $host_cpu in 161047e6fb56fSmrg ia64*) 161057e6fb56fSmrg shrext_cmds='.so' 161067e6fb56fSmrg hardcode_into_libs=yes 161077e6fb56fSmrg dynamic_linker="$host_os dld.so" 161087e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 161097e6fb56fSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 161107e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 161117e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 161127e6fb56fSmrg if test "X$HPUX_IA64_MODE" = X32; then 161137e6fb56fSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 161147e6fb56fSmrg else 161157e6fb56fSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 161167e6fb56fSmrg fi 161177e6fb56fSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 161187e6fb56fSmrg ;; 161197e6fb56fSmrg hppa*64*) 161207e6fb56fSmrg shrext_cmds='.sl' 161217e6fb56fSmrg hardcode_into_libs=yes 161227e6fb56fSmrg dynamic_linker="$host_os dld.sl" 161237e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 161247e6fb56fSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 161257e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 161267e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 161277e6fb56fSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 161287e6fb56fSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 161297e6fb56fSmrg ;; 161307e6fb56fSmrg *) 161317e6fb56fSmrg shrext_cmds='.sl' 161327e6fb56fSmrg dynamic_linker="$host_os dld.sl" 161337e6fb56fSmrg shlibpath_var=SHLIB_PATH 161347e6fb56fSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 161357e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 161367e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 161377e6fb56fSmrg ;; 161387e6fb56fSmrg esac 161397e6fb56fSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555. 161407e6fb56fSmrg postinstall_cmds='chmod 555 $lib' 161417e6fb56fSmrg ;; 161427e6fb56fSmrg 161437e6fb56fSmrginterix[3-9]*) 161447e6fb56fSmrg version_type=linux 161457e6fb56fSmrg need_lib_prefix=no 161467e6fb56fSmrg need_version=no 161477e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 161487e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 161497e6fb56fSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 161507e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 161517e6fb56fSmrg shlibpath_overrides_runpath=no 161527e6fb56fSmrg hardcode_into_libs=yes 161537e6fb56fSmrg ;; 161547e6fb56fSmrg 161557e6fb56fSmrgirix5* | irix6* | nonstopux*) 161567e6fb56fSmrg case $host_os in 161577e6fb56fSmrg nonstopux*) version_type=nonstopux ;; 161587e6fb56fSmrg *) 161597e6fb56fSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 161607e6fb56fSmrg version_type=linux 161617e6fb56fSmrg else 161627e6fb56fSmrg version_type=irix 161637e6fb56fSmrg fi ;; 161647e6fb56fSmrg esac 161657e6fb56fSmrg need_lib_prefix=no 161667e6fb56fSmrg need_version=no 161677e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 161687e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 161697e6fb56fSmrg case $host_os in 161707e6fb56fSmrg irix5* | nonstopux*) 161717e6fb56fSmrg libsuff= shlibsuff= 161727e6fb56fSmrg ;; 161737e6fb56fSmrg *) 161747e6fb56fSmrg case $LD in # libtool.m4 will add one of these switches to LD 161757e6fb56fSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 161767e6fb56fSmrg libsuff= shlibsuff= libmagic=32-bit;; 161777e6fb56fSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 161787e6fb56fSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 161797e6fb56fSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 161807e6fb56fSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 161817e6fb56fSmrg *) libsuff= shlibsuff= libmagic=never-match;; 161827e6fb56fSmrg esac 161837e6fb56fSmrg ;; 161847e6fb56fSmrg esac 161857e6fb56fSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 161867e6fb56fSmrg shlibpath_overrides_runpath=no 161877e6fb56fSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 161887e6fb56fSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 161897e6fb56fSmrg hardcode_into_libs=yes 161907e6fb56fSmrg ;; 161917e6fb56fSmrg 161927e6fb56fSmrg# No shared lib support for Linux oldld, aout, or coff. 161937e6fb56fSmrglinux*oldld* | linux*aout* | linux*coff*) 161947e6fb56fSmrg dynamic_linker=no 161957e6fb56fSmrg ;; 161967e6fb56fSmrg 161977e6fb56fSmrg# This must be Linux ELF. 161987e6fb56fSmrglinux* | k*bsd*-gnu) 161997e6fb56fSmrg version_type=linux 162007e6fb56fSmrg need_lib_prefix=no 162017e6fb56fSmrg need_version=no 162027e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 162037e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 162047e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 162057e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 162067e6fb56fSmrg shlibpath_overrides_runpath=no 162077e6fb56fSmrg # This implies no fast_install, which is unacceptable. 162087e6fb56fSmrg # Some rework will be needed to allow for fast_install 162097e6fb56fSmrg # before this can be enabled. 162107e6fb56fSmrg hardcode_into_libs=yes 162117e6fb56fSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 162127e6fb56fSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 162137e6fb56fSmrg 162147e6fb56fSmrg # Append ld.so.conf contents to the search path 162157e6fb56fSmrg if test -f /etc/ld.so.conf; then 162167e6fb56fSmrg 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;/^$/d' | tr '\n' ' '` 162177e6fb56fSmrg sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 162187e6fb56fSmrg fi 162197e6fb56fSmrg 162207e6fb56fSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 162217e6fb56fSmrg # powerpc, because MkLinux only supported shared libraries with the 162227e6fb56fSmrg # GNU dynamic linker. Since this was broken with cross compilers, 162237e6fb56fSmrg # most powerpc-linux boxes support dynamic linking these days and 162247e6fb56fSmrg # people can always --disable-shared, the test was removed, and we 162257e6fb56fSmrg # assume the GNU/Linux dynamic linker is in use. 162267e6fb56fSmrg dynamic_linker='GNU/Linux ld.so' 162277e6fb56fSmrg ;; 162287e6fb56fSmrg 162297e6fb56fSmrgnetbsd*) 162307e6fb56fSmrg version_type=sunos 162317e6fb56fSmrg need_lib_prefix=no 162327e6fb56fSmrg need_version=no 162337e6fb56fSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 162347e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 162357e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 162367e6fb56fSmrg dynamic_linker='NetBSD (a.out) ld.so' 162377e6fb56fSmrg else 162387e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 162397e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 162407e6fb56fSmrg dynamic_linker='NetBSD ld.elf_so' 162417e6fb56fSmrg fi 162427e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 162437e6fb56fSmrg shlibpath_overrides_runpath=yes 162447e6fb56fSmrg hardcode_into_libs=yes 162457e6fb56fSmrg ;; 162467e6fb56fSmrg 162477e6fb56fSmrgnewsos6) 162487e6fb56fSmrg version_type=linux 162497e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 162507e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 162517e6fb56fSmrg shlibpath_overrides_runpath=yes 162527e6fb56fSmrg ;; 162537e6fb56fSmrg 162547e6fb56fSmrgnto-qnx*) 162557e6fb56fSmrg version_type=linux 162567e6fb56fSmrg need_lib_prefix=no 162577e6fb56fSmrg need_version=no 162587e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 162597e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 162607e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 162617e6fb56fSmrg shlibpath_overrides_runpath=yes 162627e6fb56fSmrg ;; 162637e6fb56fSmrg 162647e6fb56fSmrgopenbsd*) 162657e6fb56fSmrg version_type=sunos 162667e6fb56fSmrg sys_lib_dlsearch_path_spec="/usr/lib" 162677e6fb56fSmrg need_lib_prefix=no 162687e6fb56fSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 162697e6fb56fSmrg case $host_os in 162707e6fb56fSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 162717e6fb56fSmrg *) need_version=no ;; 162727e6fb56fSmrg esac 162737e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 162747e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 162757e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 162767e6fb56fSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 162777e6fb56fSmrg case $host_os in 162787e6fb56fSmrg openbsd2.[89] | openbsd2.[89].*) 162797e6fb56fSmrg shlibpath_overrides_runpath=no 162807e6fb56fSmrg ;; 162817e6fb56fSmrg *) 162827e6fb56fSmrg shlibpath_overrides_runpath=yes 162837e6fb56fSmrg ;; 162847e6fb56fSmrg esac 162857e6fb56fSmrg else 162867e6fb56fSmrg shlibpath_overrides_runpath=yes 162877e6fb56fSmrg fi 162887e6fb56fSmrg ;; 162897e6fb56fSmrg 162907e6fb56fSmrgos2*) 162917e6fb56fSmrg libname_spec='$name' 162927e6fb56fSmrg shrext_cmds=".dll" 162937e6fb56fSmrg need_lib_prefix=no 162947e6fb56fSmrg library_names_spec='$libname${shared_ext} $libname.a' 162957e6fb56fSmrg dynamic_linker='OS/2 ld.exe' 162967e6fb56fSmrg shlibpath_var=LIBPATH 162977e6fb56fSmrg ;; 162987e6fb56fSmrg 162997e6fb56fSmrgosf3* | osf4* | osf5*) 163007e6fb56fSmrg version_type=osf 163017e6fb56fSmrg need_lib_prefix=no 163027e6fb56fSmrg need_version=no 163037e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 163047e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 163057e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 163067e6fb56fSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 163077e6fb56fSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 163087e6fb56fSmrg ;; 163097e6fb56fSmrg 163107e6fb56fSmrgrdos*) 163117e6fb56fSmrg dynamic_linker=no 163127e6fb56fSmrg ;; 163137e6fb56fSmrg 163147e6fb56fSmrgsolaris*) 163157e6fb56fSmrg version_type=linux 163167e6fb56fSmrg need_lib_prefix=no 163177e6fb56fSmrg need_version=no 163187e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 163197e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 163207e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 163217e6fb56fSmrg shlibpath_overrides_runpath=yes 163227e6fb56fSmrg hardcode_into_libs=yes 163237e6fb56fSmrg # ldd complains unless libraries are executable 163247e6fb56fSmrg postinstall_cmds='chmod +x $lib' 163257e6fb56fSmrg ;; 163267e6fb56fSmrg 163277e6fb56fSmrgsunos4*) 163287e6fb56fSmrg version_type=sunos 163297e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 163307e6fb56fSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 163317e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 163327e6fb56fSmrg shlibpath_overrides_runpath=yes 163337e6fb56fSmrg if test "$with_gnu_ld" = yes; then 163347e6fb56fSmrg need_lib_prefix=no 163357e6fb56fSmrg fi 163367e6fb56fSmrg need_version=yes 163377e6fb56fSmrg ;; 163387e6fb56fSmrg 163397e6fb56fSmrgsysv4 | sysv4.3*) 163407e6fb56fSmrg version_type=linux 163417e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 163427e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 163437e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 163447e6fb56fSmrg case $host_vendor in 163457e6fb56fSmrg sni) 163467e6fb56fSmrg shlibpath_overrides_runpath=no 163477e6fb56fSmrg need_lib_prefix=no 163487e6fb56fSmrg export_dynamic_flag_spec='${wl}-Blargedynsym' 163497e6fb56fSmrg runpath_var=LD_RUN_PATH 163507e6fb56fSmrg ;; 163517e6fb56fSmrg siemens) 163527e6fb56fSmrg need_lib_prefix=no 163537e6fb56fSmrg ;; 163547e6fb56fSmrg motorola) 163557e6fb56fSmrg need_lib_prefix=no 163567e6fb56fSmrg need_version=no 163577e6fb56fSmrg shlibpath_overrides_runpath=no 163587e6fb56fSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 163597e6fb56fSmrg ;; 163607e6fb56fSmrg esac 163617e6fb56fSmrg ;; 163627e6fb56fSmrg 163637e6fb56fSmrgsysv4*MP*) 163647e6fb56fSmrg if test -d /usr/nec ;then 163657e6fb56fSmrg version_type=linux 163667e6fb56fSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 163677e6fb56fSmrg soname_spec='$libname${shared_ext}.$major' 163687e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 163697e6fb56fSmrg fi 163707e6fb56fSmrg ;; 163717e6fb56fSmrg 163727e6fb56fSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 163737e6fb56fSmrg version_type=freebsd-elf 163747e6fb56fSmrg need_lib_prefix=no 163757e6fb56fSmrg need_version=no 163767e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 163777e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 163787e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 163797e6fb56fSmrg hardcode_into_libs=yes 163807e6fb56fSmrg if test "$with_gnu_ld" = yes; then 163817e6fb56fSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 163827e6fb56fSmrg shlibpath_overrides_runpath=no 163837e6fb56fSmrg else 163847e6fb56fSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 163857e6fb56fSmrg shlibpath_overrides_runpath=yes 163867e6fb56fSmrg case $host_os in 163877e6fb56fSmrg sco3.2v5*) 163887e6fb56fSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 163897e6fb56fSmrg ;; 163907e6fb56fSmrg esac 163917e6fb56fSmrg fi 163927e6fb56fSmrg sys_lib_dlsearch_path_spec='/usr/lib' 163937e6fb56fSmrg ;; 163947e6fb56fSmrg 163957e6fb56fSmrguts4*) 163967e6fb56fSmrg version_type=linux 163977e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 163987e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 163997e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 164007e6fb56fSmrg ;; 164017e6fb56fSmrg 164027e6fb56fSmrg*) 164037e6fb56fSmrg dynamic_linker=no 164047e6fb56fSmrg ;; 164057e6fb56fSmrgesac 164067e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 164077e6fb56fSmrg$as_echo "$dynamic_linker" >&6; } 164087e6fb56fSmrgtest "$dynamic_linker" = no && can_build_shared=no 164097e6fb56fSmrg 164107e6fb56fSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 164117e6fb56fSmrg $as_echo_n "(cached) " >&6 164127e6fb56fSmrgelse 164137e6fb56fSmrg lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 164147e6fb56fSmrgfi 164157e6fb56fSmrg 164167e6fb56fSmrgsys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 164177e6fb56fSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 164187e6fb56fSmrg $as_echo_n "(cached) " >&6 164197e6fb56fSmrgelse 164207e6fb56fSmrg lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 164217e6fb56fSmrgfi 164227e6fb56fSmrg 164237e6fb56fSmrgsys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 164247e6fb56fSmrg 164257e6fb56fSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 164267e6fb56fSmrgif test "$GCC" = yes; then 164277e6fb56fSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 164287e6fb56fSmrgfi 164297e6fb56fSmrg 164307e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 164317e6fb56fSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 164327e6fb56fSmrghardcode_action_F77= 164337e6fb56fSmrgif test -n "$hardcode_libdir_flag_spec_F77" || \ 164347e6fb56fSmrg test -n "$runpath_var_F77" || \ 164357e6fb56fSmrg test "X$hardcode_automatic_F77" = "Xyes" ; then 164367e6fb56fSmrg 164377e6fb56fSmrg # We can hardcode non-existant directories. 164387e6fb56fSmrg if test "$hardcode_direct_F77" != no && 164397e6fb56fSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 164407e6fb56fSmrg # have to relink, otherwise we might link with an installed library 164417e6fb56fSmrg # when we should be linking with a yet-to-be-installed one 164427e6fb56fSmrg ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 164437e6fb56fSmrg test "$hardcode_minus_L_F77" != no; then 164447e6fb56fSmrg # Linking always hardcodes the temporary library directory. 164457e6fb56fSmrg hardcode_action_F77=relink 164467e6fb56fSmrg else 164477e6fb56fSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 164487e6fb56fSmrg hardcode_action_F77=immediate 164497e6fb56fSmrg fi 164507e6fb56fSmrgelse 164517e6fb56fSmrg # We cannot hardcode anything, or else we can only hardcode existing 164527e6fb56fSmrg # directories. 164537e6fb56fSmrg hardcode_action_F77=unsupported 164547e6fb56fSmrgfi 164557e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 164567e6fb56fSmrg$as_echo "$hardcode_action_F77" >&6; } 164577e6fb56fSmrg 164587e6fb56fSmrgif test "$hardcode_action_F77" = relink; then 164597e6fb56fSmrg # Fast installation is not supported 164607e6fb56fSmrg enable_fast_install=no 164617e6fb56fSmrgelif test "$shlibpath_overrides_runpath" = yes || 164627e6fb56fSmrg test "$enable_shared" = no; then 164637e6fb56fSmrg # Fast installation is not necessary 164647e6fb56fSmrg enable_fast_install=needless 164657e6fb56fSmrgfi 164667e6fb56fSmrg 164677e6fb56fSmrg 164687e6fb56fSmrg# The else clause should only fire when bootstrapping the 164697e6fb56fSmrg# libtool distribution, otherwise you forgot to ship ltmain.sh 164707e6fb56fSmrg# with your package, and you will get complaints that there are 164717e6fb56fSmrg# no rules to generate ltmain.sh. 164727e6fb56fSmrgif test -f "$ltmain"; then 164737e6fb56fSmrg # See if we are running on zsh, and set the options which allow our commands through 164747e6fb56fSmrg # without removal of \ escapes. 164757e6fb56fSmrg if test -n "${ZSH_VERSION+set}" ; then 164767e6fb56fSmrg setopt NO_GLOB_SUBST 164777e6fb56fSmrg fi 164787e6fb56fSmrg # Now quote all the things that may contain metacharacters while being 164797e6fb56fSmrg # careful not to overquote the AC_SUBSTed values. We take copies of the 164807e6fb56fSmrg # variables and quote the copies for generation of the libtool script. 164817e6fb56fSmrg for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 164827e6fb56fSmrg SED SHELL STRIP \ 164837e6fb56fSmrg libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 164847e6fb56fSmrg old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 164857e6fb56fSmrg deplibs_check_method reload_flag reload_cmds need_locks \ 164867e6fb56fSmrg lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 164877e6fb56fSmrg lt_cv_sys_global_symbol_to_c_name_address \ 164887e6fb56fSmrg sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 164897e6fb56fSmrg old_postinstall_cmds old_postuninstall_cmds \ 164907e6fb56fSmrg compiler_F77 \ 164917e6fb56fSmrg CC_F77 \ 164927e6fb56fSmrg LD_F77 \ 164937e6fb56fSmrg lt_prog_compiler_wl_F77 \ 164947e6fb56fSmrg lt_prog_compiler_pic_F77 \ 164957e6fb56fSmrg lt_prog_compiler_static_F77 \ 164967e6fb56fSmrg lt_prog_compiler_no_builtin_flag_F77 \ 164977e6fb56fSmrg export_dynamic_flag_spec_F77 \ 164987e6fb56fSmrg thread_safe_flag_spec_F77 \ 164997e6fb56fSmrg whole_archive_flag_spec_F77 \ 165007e6fb56fSmrg enable_shared_with_static_runtimes_F77 \ 165017e6fb56fSmrg old_archive_cmds_F77 \ 165027e6fb56fSmrg old_archive_from_new_cmds_F77 \ 165037e6fb56fSmrg predep_objects_F77 \ 165047e6fb56fSmrg postdep_objects_F77 \ 165057e6fb56fSmrg predeps_F77 \ 165067e6fb56fSmrg postdeps_F77 \ 165077e6fb56fSmrg compiler_lib_search_path_F77 \ 165087e6fb56fSmrg compiler_lib_search_dirs_F77 \ 165097e6fb56fSmrg archive_cmds_F77 \ 165107e6fb56fSmrg archive_expsym_cmds_F77 \ 165117e6fb56fSmrg postinstall_cmds_F77 \ 165127e6fb56fSmrg postuninstall_cmds_F77 \ 165137e6fb56fSmrg old_archive_from_expsyms_cmds_F77 \ 165147e6fb56fSmrg allow_undefined_flag_F77 \ 165157e6fb56fSmrg no_undefined_flag_F77 \ 165167e6fb56fSmrg export_symbols_cmds_F77 \ 165177e6fb56fSmrg hardcode_libdir_flag_spec_F77 \ 165187e6fb56fSmrg hardcode_libdir_flag_spec_ld_F77 \ 165197e6fb56fSmrg hardcode_libdir_separator_F77 \ 165207e6fb56fSmrg hardcode_automatic_F77 \ 165217e6fb56fSmrg module_cmds_F77 \ 165227e6fb56fSmrg module_expsym_cmds_F77 \ 165237e6fb56fSmrg lt_cv_prog_compiler_c_o_F77 \ 165247e6fb56fSmrg fix_srcfile_path_F77 \ 165257e6fb56fSmrg exclude_expsyms_F77 \ 165267e6fb56fSmrg include_expsyms_F77; do 165277e6fb56fSmrg 165287e6fb56fSmrg case $var in 165297e6fb56fSmrg old_archive_cmds_F77 | \ 165307e6fb56fSmrg old_archive_from_new_cmds_F77 | \ 165317e6fb56fSmrg archive_cmds_F77 | \ 165327e6fb56fSmrg archive_expsym_cmds_F77 | \ 165337e6fb56fSmrg module_cmds_F77 | \ 165347e6fb56fSmrg module_expsym_cmds_F77 | \ 165357e6fb56fSmrg old_archive_from_expsyms_cmds_F77 | \ 165367e6fb56fSmrg export_symbols_cmds_F77 | \ 165377e6fb56fSmrg extract_expsyms_cmds | reload_cmds | finish_cmds | \ 165387e6fb56fSmrg postinstall_cmds | postuninstall_cmds | \ 165397e6fb56fSmrg old_postinstall_cmds | old_postuninstall_cmds | \ 165407e6fb56fSmrg sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 165417e6fb56fSmrg # Double-quote double-evaled strings. 165427e6fb56fSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 165437e6fb56fSmrg ;; 165447e6fb56fSmrg *) 165457e6fb56fSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 165467e6fb56fSmrg ;; 165477e6fb56fSmrg esac 165487e6fb56fSmrg done 165497e6fb56fSmrg 165507e6fb56fSmrg case $lt_echo in 165517e6fb56fSmrg *'\$0 --fallback-echo"') 165527e6fb56fSmrg lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 165537e6fb56fSmrg ;; 165547e6fb56fSmrg esac 165557e6fb56fSmrg 165567e6fb56fSmrgcfgfile="$ofile" 165577e6fb56fSmrg 165587e6fb56fSmrg cat <<__EOF__ >> "$cfgfile" 165597e6fb56fSmrg# ### BEGIN LIBTOOL TAG CONFIG: $tagname 165607e6fb56fSmrg 165617e6fb56fSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 165627e6fb56fSmrg 165637e6fb56fSmrg# Shell to use when invoking shell scripts. 165647e6fb56fSmrgSHELL=$lt_SHELL 165657e6fb56fSmrg 165667e6fb56fSmrg# Whether or not to build shared libraries. 165677e6fb56fSmrgbuild_libtool_libs=$enable_shared 165687e6fb56fSmrg 165697e6fb56fSmrg# Whether or not to build static libraries. 165707e6fb56fSmrgbuild_old_libs=$enable_static 165717e6fb56fSmrg 165727e6fb56fSmrg# Whether or not to add -lc for building shared libraries. 165737e6fb56fSmrgbuild_libtool_need_lc=$archive_cmds_need_lc_F77 165747e6fb56fSmrg 165757e6fb56fSmrg# Whether or not to disallow shared libs when runtime libs are static 165767e6fb56fSmrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 165777e6fb56fSmrg 165787e6fb56fSmrg# Whether or not to optimize for fast installation. 165797e6fb56fSmrgfast_install=$enable_fast_install 165807e6fb56fSmrg 165817e6fb56fSmrg# The host system. 165827e6fb56fSmrghost_alias=$host_alias 165837e6fb56fSmrghost=$host 165847e6fb56fSmrghost_os=$host_os 165857e6fb56fSmrg 165867e6fb56fSmrg# The build system. 165877e6fb56fSmrgbuild_alias=$build_alias 165887e6fb56fSmrgbuild=$build 165897e6fb56fSmrgbuild_os=$build_os 165907e6fb56fSmrg 165917e6fb56fSmrg# An echo program that does not interpret backslashes. 165927e6fb56fSmrgecho=$lt_echo 165937e6fb56fSmrg 165947e6fb56fSmrg# The archiver. 165957e6fb56fSmrgAR=$lt_AR 165967e6fb56fSmrgAR_FLAGS=$lt_AR_FLAGS 165977e6fb56fSmrg 165987e6fb56fSmrg# A C compiler. 165997e6fb56fSmrgLTCC=$lt_LTCC 166007e6fb56fSmrg 166017e6fb56fSmrg# LTCC compiler flags. 166027e6fb56fSmrgLTCFLAGS=$lt_LTCFLAGS 166037e6fb56fSmrg 166047e6fb56fSmrg# A language-specific compiler. 166057e6fb56fSmrgCC=$lt_compiler_F77 166067e6fb56fSmrg 166077e6fb56fSmrg# Is the compiler the GNU C compiler? 166087e6fb56fSmrgwith_gcc=$GCC_F77 166097e6fb56fSmrg 166107e6fb56fSmrg# An ERE matcher. 166117e6fb56fSmrgEGREP=$lt_EGREP 166127e6fb56fSmrg 166137e6fb56fSmrg# The linker used to build libraries. 166147e6fb56fSmrgLD=$lt_LD_F77 166157e6fb56fSmrg 166167e6fb56fSmrg# Whether we need hard or soft links. 166177e6fb56fSmrgLN_S=$lt_LN_S 166187e6fb56fSmrg 166197e6fb56fSmrg# A BSD-compatible nm program. 166207e6fb56fSmrgNM=$lt_NM 166217e6fb56fSmrg 166227e6fb56fSmrg# A symbol stripping program 166237e6fb56fSmrgSTRIP=$lt_STRIP 166247e6fb56fSmrg 166257e6fb56fSmrg# Used to examine libraries when file_magic_cmd begins "file" 166267e6fb56fSmrgMAGIC_CMD=$MAGIC_CMD 166277e6fb56fSmrg 166287e6fb56fSmrg# Used on cygwin: DLL creation program. 166297e6fb56fSmrgDLLTOOL="$DLLTOOL" 166307e6fb56fSmrg 166317e6fb56fSmrg# Used on cygwin: object dumper. 166327e6fb56fSmrgOBJDUMP="$OBJDUMP" 166337e6fb56fSmrg 166347e6fb56fSmrg# Used on cygwin: assembler. 166357e6fb56fSmrgAS="$AS" 166367e6fb56fSmrg 166377e6fb56fSmrg# The name of the directory that contains temporary libtool files. 166387e6fb56fSmrgobjdir=$objdir 166397e6fb56fSmrg 166407e6fb56fSmrg# How to create reloadable object files. 166417e6fb56fSmrgreload_flag=$lt_reload_flag 166427e6fb56fSmrgreload_cmds=$lt_reload_cmds 166437e6fb56fSmrg 166447e6fb56fSmrg# How to pass a linker flag through the compiler. 166457e6fb56fSmrgwl=$lt_lt_prog_compiler_wl_F77 166467e6fb56fSmrg 166477e6fb56fSmrg# Object file suffix (normally "o"). 166487e6fb56fSmrgobjext="$ac_objext" 166497e6fb56fSmrg 166507e6fb56fSmrg# Old archive suffix (normally "a"). 166517e6fb56fSmrglibext="$libext" 166527e6fb56fSmrg 166537e6fb56fSmrg# Shared library suffix (normally ".so"). 166547e6fb56fSmrgshrext_cmds='$shrext_cmds' 166557e6fb56fSmrg 166567e6fb56fSmrg# Executable file suffix (normally ""). 166577e6fb56fSmrgexeext="$exeext" 166587e6fb56fSmrg 166597e6fb56fSmrg# Additional compiler flags for building library objects. 166607e6fb56fSmrgpic_flag=$lt_lt_prog_compiler_pic_F77 166617e6fb56fSmrgpic_mode=$pic_mode 166627e6fb56fSmrg 166637e6fb56fSmrg# What is the maximum length of a command? 166647e6fb56fSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 166657e6fb56fSmrg 166667e6fb56fSmrg# Does compiler simultaneously support -c and -o options? 166677e6fb56fSmrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 166687e6fb56fSmrg 166697e6fb56fSmrg# Must we lock files when doing compilation? 166707e6fb56fSmrgneed_locks=$lt_need_locks 166717e6fb56fSmrg 166727e6fb56fSmrg# Do we need the lib prefix for modules? 166737e6fb56fSmrgneed_lib_prefix=$need_lib_prefix 166747e6fb56fSmrg 166757e6fb56fSmrg# Do we need a version for libraries? 166767e6fb56fSmrgneed_version=$need_version 166777e6fb56fSmrg 166787e6fb56fSmrg# Whether dlopen is supported. 166797e6fb56fSmrgdlopen_support=$enable_dlopen 166807e6fb56fSmrg 166817e6fb56fSmrg# Whether dlopen of programs is supported. 166827e6fb56fSmrgdlopen_self=$enable_dlopen_self 166837e6fb56fSmrg 166847e6fb56fSmrg# Whether dlopen of statically linked programs is supported. 166857e6fb56fSmrgdlopen_self_static=$enable_dlopen_self_static 166867e6fb56fSmrg 166877e6fb56fSmrg# Compiler flag to prevent dynamic linking. 166887e6fb56fSmrglink_static_flag=$lt_lt_prog_compiler_static_F77 166897e6fb56fSmrg 166907e6fb56fSmrg# Compiler flag to turn off builtin functions. 166917e6fb56fSmrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 166927e6fb56fSmrg 166937e6fb56fSmrg# Compiler flag to allow reflexive dlopens. 166947e6fb56fSmrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 166957e6fb56fSmrg 166967e6fb56fSmrg# Compiler flag to generate shared objects directly from archives. 166977e6fb56fSmrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 166987e6fb56fSmrg 166997e6fb56fSmrg# Compiler flag to generate thread-safe objects. 167007e6fb56fSmrgthread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 167017e6fb56fSmrg 167027e6fb56fSmrg# Library versioning type. 167037e6fb56fSmrgversion_type=$version_type 167047e6fb56fSmrg 167057e6fb56fSmrg# Format of library name prefix. 167067e6fb56fSmrglibname_spec=$lt_libname_spec 167077e6fb56fSmrg 167087e6fb56fSmrg# List of archive names. First name is the real one, the rest are links. 167097e6fb56fSmrg# The last name is the one that the linker finds with -lNAME. 167107e6fb56fSmrglibrary_names_spec=$lt_library_names_spec 167117e6fb56fSmrg 167127e6fb56fSmrg# The coded name of the library, if different from the real name. 167137e6fb56fSmrgsoname_spec=$lt_soname_spec 167147e6fb56fSmrg 167157e6fb56fSmrg# Commands used to build and install an old-style archive. 167167e6fb56fSmrgRANLIB=$lt_RANLIB 167177e6fb56fSmrgold_archive_cmds=$lt_old_archive_cmds_F77 167187e6fb56fSmrgold_postinstall_cmds=$lt_old_postinstall_cmds 167197e6fb56fSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 167207e6fb56fSmrg 167217e6fb56fSmrg# Create an old-style archive from a shared archive. 167227e6fb56fSmrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 167237e6fb56fSmrg 167247e6fb56fSmrg# Create a temporary old-style archive to link instead of a shared archive. 167257e6fb56fSmrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 167267e6fb56fSmrg 167277e6fb56fSmrg# Commands used to build and install a shared archive. 167287e6fb56fSmrgarchive_cmds=$lt_archive_cmds_F77 167297e6fb56fSmrgarchive_expsym_cmds=$lt_archive_expsym_cmds_F77 167307e6fb56fSmrgpostinstall_cmds=$lt_postinstall_cmds 167317e6fb56fSmrgpostuninstall_cmds=$lt_postuninstall_cmds 167327e6fb56fSmrg 167337e6fb56fSmrg# Commands used to build a loadable module (assumed same as above if empty) 167347e6fb56fSmrgmodule_cmds=$lt_module_cmds_F77 167357e6fb56fSmrgmodule_expsym_cmds=$lt_module_expsym_cmds_F77 167367e6fb56fSmrg 167377e6fb56fSmrg# Commands to strip libraries. 167387e6fb56fSmrgold_striplib=$lt_old_striplib 167397e6fb56fSmrgstriplib=$lt_striplib 167407e6fb56fSmrg 167417e6fb56fSmrg# Dependencies to place before the objects being linked to create a 167427e6fb56fSmrg# shared library. 167437e6fb56fSmrgpredep_objects=$lt_predep_objects_F77 167447e6fb56fSmrg 167457e6fb56fSmrg# Dependencies to place after the objects being linked to create a 167467e6fb56fSmrg# shared library. 167477e6fb56fSmrgpostdep_objects=$lt_postdep_objects_F77 167487e6fb56fSmrg 167497e6fb56fSmrg# Dependencies to place before the objects being linked to create a 167507e6fb56fSmrg# shared library. 167517e6fb56fSmrgpredeps=$lt_predeps_F77 167527e6fb56fSmrg 167537e6fb56fSmrg# Dependencies to place after the objects being linked to create a 167547e6fb56fSmrg# shared library. 167557e6fb56fSmrgpostdeps=$lt_postdeps_F77 167567e6fb56fSmrg 167577e6fb56fSmrg# The directories searched by this compiler when creating a shared 167587e6fb56fSmrg# library 167597e6fb56fSmrgcompiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 167607e6fb56fSmrg 167617e6fb56fSmrg# The library search path used internally by the compiler when linking 167627e6fb56fSmrg# a shared library. 167637e6fb56fSmrgcompiler_lib_search_path=$lt_compiler_lib_search_path_F77 167647e6fb56fSmrg 167657e6fb56fSmrg# Method to check whether dependent libraries are shared objects. 167667e6fb56fSmrgdeplibs_check_method=$lt_deplibs_check_method 167677e6fb56fSmrg 167687e6fb56fSmrg# Command to use when deplibs_check_method == file_magic. 167697e6fb56fSmrgfile_magic_cmd=$lt_file_magic_cmd 167707e6fb56fSmrg 167717e6fb56fSmrg# Flag that allows shared libraries with undefined symbols to be built. 167727e6fb56fSmrgallow_undefined_flag=$lt_allow_undefined_flag_F77 167737e6fb56fSmrg 167747e6fb56fSmrg# Flag that forces no undefined symbols. 167757e6fb56fSmrgno_undefined_flag=$lt_no_undefined_flag_F77 167767e6fb56fSmrg 167777e6fb56fSmrg# Commands used to finish a libtool library installation in a directory. 167787e6fb56fSmrgfinish_cmds=$lt_finish_cmds 167797e6fb56fSmrg 167807e6fb56fSmrg# Same as above, but a single script fragment to be evaled but not shown. 167817e6fb56fSmrgfinish_eval=$lt_finish_eval 167827e6fb56fSmrg 167837e6fb56fSmrg# Take the output of nm and produce a listing of raw symbols and C names. 167847e6fb56fSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 167857e6fb56fSmrg 167867e6fb56fSmrg# Transform the output of nm in a proper C declaration 167877e6fb56fSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 167887e6fb56fSmrg 167897e6fb56fSmrg# Transform the output of nm in a C name address pair 167907e6fb56fSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 167917e6fb56fSmrg 167927e6fb56fSmrg# This is the shared library runtime path variable. 167937e6fb56fSmrgrunpath_var=$runpath_var 167947e6fb56fSmrg 167957e6fb56fSmrg# This is the shared library path variable. 167967e6fb56fSmrgshlibpath_var=$shlibpath_var 167977e6fb56fSmrg 167987e6fb56fSmrg# Is shlibpath searched before the hard-coded library search path? 167997e6fb56fSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 168007e6fb56fSmrg 168017e6fb56fSmrg# How to hardcode a shared library path into an executable. 168027e6fb56fSmrghardcode_action=$hardcode_action_F77 168037e6fb56fSmrg 168047e6fb56fSmrg# Whether we should hardcode library paths into libraries. 168057e6fb56fSmrghardcode_into_libs=$hardcode_into_libs 168067e6fb56fSmrg 168077e6fb56fSmrg# Flag to hardcode \$libdir into a binary during linking. 168087e6fb56fSmrg# This must work even if \$libdir does not exist. 168097e6fb56fSmrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 168107e6fb56fSmrg 168117e6fb56fSmrg# If ld is used when linking, flag to hardcode \$libdir into 168127e6fb56fSmrg# a binary during linking. This must work even if \$libdir does 168137e6fb56fSmrg# not exist. 168147e6fb56fSmrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 168157e6fb56fSmrg 168167e6fb56fSmrg# Whether we need a single -rpath flag with a separated argument. 168177e6fb56fSmrghardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 168187e6fb56fSmrg 168197e6fb56fSmrg# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 168207e6fb56fSmrg# resulting binary. 168217e6fb56fSmrghardcode_direct=$hardcode_direct_F77 168227e6fb56fSmrg 168237e6fb56fSmrg# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 168247e6fb56fSmrg# resulting binary. 168257e6fb56fSmrghardcode_minus_L=$hardcode_minus_L_F77 168267e6fb56fSmrg 168277e6fb56fSmrg# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 168287e6fb56fSmrg# the resulting binary. 168297e6fb56fSmrghardcode_shlibpath_var=$hardcode_shlibpath_var_F77 168307e6fb56fSmrg 168317e6fb56fSmrg# Set to yes if building a shared library automatically hardcodes DIR into the library 168327e6fb56fSmrg# and all subsequent libraries and executables linked against it. 168337e6fb56fSmrghardcode_automatic=$hardcode_automatic_F77 168347e6fb56fSmrg 168357e6fb56fSmrg# Variables whose values should be saved in libtool wrapper scripts and 168367e6fb56fSmrg# restored at relink time. 168377e6fb56fSmrgvariables_saved_for_relink="$variables_saved_for_relink" 168387e6fb56fSmrg 168397e6fb56fSmrg# Whether libtool must link a program against all its dependency libraries. 168407e6fb56fSmrglink_all_deplibs=$link_all_deplibs_F77 168417e6fb56fSmrg 168427e6fb56fSmrg# Compile-time system search path for libraries 168437e6fb56fSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 168447e6fb56fSmrg 168457e6fb56fSmrg# Run-time system search path for libraries 168467e6fb56fSmrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 168477e6fb56fSmrg 168487e6fb56fSmrg# Fix the shell variable \$srcfile for the compiler. 168497e6fb56fSmrgfix_srcfile_path=$lt_fix_srcfile_path 168507e6fb56fSmrg 168517e6fb56fSmrg# Set to yes if exported symbols are required. 168527e6fb56fSmrgalways_export_symbols=$always_export_symbols_F77 168537e6fb56fSmrg 168547e6fb56fSmrg# The commands to list exported symbols. 168557e6fb56fSmrgexport_symbols_cmds=$lt_export_symbols_cmds_F77 168567e6fb56fSmrg 168577e6fb56fSmrg# The commands to extract the exported symbol list from a shared archive. 168587e6fb56fSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 168597e6fb56fSmrg 168607e6fb56fSmrg# Symbols that should not be listed in the preloaded symbols. 168617e6fb56fSmrgexclude_expsyms=$lt_exclude_expsyms_F77 168627e6fb56fSmrg 168637e6fb56fSmrg# Symbols that must always be exported. 168647e6fb56fSmrginclude_expsyms=$lt_include_expsyms_F77 168657e6fb56fSmrg 168667e6fb56fSmrg# ### END LIBTOOL TAG CONFIG: $tagname 168677e6fb56fSmrg 168687e6fb56fSmrg__EOF__ 168697e6fb56fSmrg 168707e6fb56fSmrg 168717e6fb56fSmrgelse 168727e6fb56fSmrg # If there is no Makefile yet, we rely on a make rule to execute 168737e6fb56fSmrg # `config.status --recheck' to rerun these tests and create the 168747e6fb56fSmrg # libtool script then. 168757e6fb56fSmrg ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 168767e6fb56fSmrg if test -f "$ltmain_in"; then 168777e6fb56fSmrg test -f Makefile && make "$ltmain" 168787e6fb56fSmrg fi 168797e6fb56fSmrgfi 168807e6fb56fSmrg 168817e6fb56fSmrg 168827e6fb56fSmrgac_ext=c 168837e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 168847e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 168857e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 168867e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 168877e6fb56fSmrg 168887e6fb56fSmrgCC="$lt_save_CC" 168897e6fb56fSmrg 168907e6fb56fSmrg else 168917e6fb56fSmrg tagname="" 168927e6fb56fSmrg fi 168937e6fb56fSmrg ;; 168947e6fb56fSmrg 168957e6fb56fSmrg GCJ) 168967e6fb56fSmrg if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 168977e6fb56fSmrg 168987e6fb56fSmrg 168997e6fb56fSmrg# Source file extension for Java test sources. 169007e6fb56fSmrgac_ext=java 169017e6fb56fSmrg 169027e6fb56fSmrg# Object file extension for compiled Java test sources. 169037e6fb56fSmrgobjext=o 169047e6fb56fSmrgobjext_GCJ=$objext 169057e6fb56fSmrg 169067e6fb56fSmrg# Code to be used in simple compile tests 169077e6fb56fSmrglt_simple_compile_test_code="class foo {}" 169087e6fb56fSmrg 169097e6fb56fSmrg# Code to be used in simple link tests 169107e6fb56fSmrglt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 169117e6fb56fSmrg 169127e6fb56fSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 169137e6fb56fSmrg 169147e6fb56fSmrg# If no C compiler was specified, use CC. 169157e6fb56fSmrgLTCC=${LTCC-"$CC"} 169167e6fb56fSmrg 169177e6fb56fSmrg# If no C compiler flags were specified, use CFLAGS. 169187e6fb56fSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 169197e6fb56fSmrg 169207e6fb56fSmrg# Allow CC to be a program name with arguments. 169217e6fb56fSmrgcompiler=$CC 169227e6fb56fSmrg 169237e6fb56fSmrg 169247e6fb56fSmrg# save warnings/boilerplate of simple test code 169257e6fb56fSmrgac_outfile=conftest.$ac_objext 169267e6fb56fSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 169277e6fb56fSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 169287e6fb56fSmrg_lt_compiler_boilerplate=`cat conftest.err` 169297e6fb56fSmrg$rm conftest* 169307e6fb56fSmrg 169317e6fb56fSmrgac_outfile=conftest.$ac_objext 169327e6fb56fSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 169337e6fb56fSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 169347e6fb56fSmrg_lt_linker_boilerplate=`cat conftest.err` 169357e6fb56fSmrg$rm -r conftest* 169367e6fb56fSmrg 169377e6fb56fSmrg 169387e6fb56fSmrg# Allow CC to be a program name with arguments. 169397e6fb56fSmrglt_save_CC="$CC" 169407e6fb56fSmrgCC=${GCJ-"gcj"} 169417e6fb56fSmrgcompiler=$CC 169427e6fb56fSmrgcompiler_GCJ=$CC 169437e6fb56fSmrgfor cc_temp in $compiler""; do 169447e6fb56fSmrg case $cc_temp in 169457e6fb56fSmrg compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 169467e6fb56fSmrg distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 169477e6fb56fSmrg \-*) ;; 169487e6fb56fSmrg *) break;; 169497e6fb56fSmrg esac 169507e6fb56fSmrgdone 169517e6fb56fSmrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 169527e6fb56fSmrg 169537e6fb56fSmrg 169547e6fb56fSmrg# GCJ did not exist at the time GCC didn't implicitly link libc in. 169557e6fb56fSmrgarchive_cmds_need_lc_GCJ=no 169567e6fb56fSmrg 169577e6fb56fSmrgold_archive_cmds_GCJ=$old_archive_cmds 169587e6fb56fSmrg 169597e6fb56fSmrg 169607e6fb56fSmrglt_prog_compiler_no_builtin_flag_GCJ= 169617e6fb56fSmrg 169627e6fb56fSmrgif test "$GCC" = yes; then 169637e6fb56fSmrg lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 169647e6fb56fSmrg 169657e6fb56fSmrg 169667e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 169677e6fb56fSmrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 169687e6fb56fSmrgif test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 169697e6fb56fSmrg $as_echo_n "(cached) " >&6 169707e6fb56fSmrgelse 169717e6fb56fSmrg lt_cv_prog_compiler_rtti_exceptions=no 169727e6fb56fSmrg ac_outfile=conftest.$ac_objext 169737e6fb56fSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 169747e6fb56fSmrg lt_compiler_flag="-fno-rtti -fno-exceptions" 169757e6fb56fSmrg # Insert the option either (1) after the last *FLAGS variable, or 169767e6fb56fSmrg # (2) before a word containing "conftest.", or (3) at the end. 169777e6fb56fSmrg # Note that $ac_compile itself does not contain backslashes and begins 169787e6fb56fSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 169797e6fb56fSmrg # The option is referenced via a variable to avoid confusing sed. 169807e6fb56fSmrg lt_compile=`echo "$ac_compile" | $SED \ 169817e6fb56fSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 169827e6fb56fSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 169837e6fb56fSmrg -e 's:$: $lt_compiler_flag:'` 169847e6fb56fSmrg (eval echo "\"\$as_me:16984: $lt_compile\"" >&5) 169857e6fb56fSmrg (eval "$lt_compile" 2>conftest.err) 169867e6fb56fSmrg ac_status=$? 169877e6fb56fSmrg cat conftest.err >&5 169887e6fb56fSmrg echo "$as_me:16988: \$? = $ac_status" >&5 169897e6fb56fSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 169907e6fb56fSmrg # The compiler can only warn and ignore the option if not recognized 169917e6fb56fSmrg # So say no if there are warnings other than the usual output. 169927e6fb56fSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 169937e6fb56fSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 169947e6fb56fSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 169957e6fb56fSmrg lt_cv_prog_compiler_rtti_exceptions=yes 169967e6fb56fSmrg fi 169977e6fb56fSmrg fi 169987e6fb56fSmrg $rm conftest* 169997e6fb56fSmrg 170007e6fb56fSmrgfi 170017e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 170027e6fb56fSmrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 170037e6fb56fSmrg 170047e6fb56fSmrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 170057e6fb56fSmrg lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 170067e6fb56fSmrgelse 170077e6fb56fSmrg : 170087e6fb56fSmrgfi 170097e6fb56fSmrg 170107e6fb56fSmrgfi 170117e6fb56fSmrg 170127e6fb56fSmrglt_prog_compiler_wl_GCJ= 170137e6fb56fSmrglt_prog_compiler_pic_GCJ= 170147e6fb56fSmrglt_prog_compiler_static_GCJ= 170157e6fb56fSmrg 170167e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 170177e6fb56fSmrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 170187e6fb56fSmrg 170197e6fb56fSmrg if test "$GCC" = yes; then 170207e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Wl,' 170217e6fb56fSmrg lt_prog_compiler_static_GCJ='-static' 170227e6fb56fSmrg 170237e6fb56fSmrg case $host_os in 170247e6fb56fSmrg aix*) 170257e6fb56fSmrg # All AIX code is PIC. 170267e6fb56fSmrg if test "$host_cpu" = ia64; then 170277e6fb56fSmrg # AIX 5 now supports IA64 processor 170287e6fb56fSmrg lt_prog_compiler_static_GCJ='-Bstatic' 170297e6fb56fSmrg fi 170307e6fb56fSmrg ;; 170317e6fb56fSmrg 170327e6fb56fSmrg amigaos*) 170337e6fb56fSmrg # FIXME: we need at least 68020 code to build shared libraries, but 170347e6fb56fSmrg # adding the `-m68020' flag to GCC prevents building anything better, 170357e6fb56fSmrg # like `-m68040'. 170367e6fb56fSmrg lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 170377e6fb56fSmrg ;; 170387e6fb56fSmrg 170397e6fb56fSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 170407e6fb56fSmrg # PIC is the default for these OSes. 170417e6fb56fSmrg ;; 170427e6fb56fSmrg 170437e6fb56fSmrg mingw* | cygwin* | pw32* | os2*) 170447e6fb56fSmrg # This hack is so that the source file can tell whether it is being 170457e6fb56fSmrg # built for inclusion in a dll (and should export symbols for example). 170467e6fb56fSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 170477e6fb56fSmrg # (--disable-auto-import) libraries 170487e6fb56fSmrg 170497e6fb56fSmrg ;; 170507e6fb56fSmrg 170517e6fb56fSmrg darwin* | rhapsody*) 170527e6fb56fSmrg # PIC is the default on this platform 170537e6fb56fSmrg # Common symbols not allowed in MH_DYLIB files 170547e6fb56fSmrg lt_prog_compiler_pic_GCJ='-fno-common' 170557e6fb56fSmrg ;; 170567e6fb56fSmrg 170577e6fb56fSmrg interix[3-9]*) 170587e6fb56fSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 170597e6fb56fSmrg # Instead, we relocate shared libraries at runtime. 170607e6fb56fSmrg ;; 170617e6fb56fSmrg 170627e6fb56fSmrg msdosdjgpp*) 170637e6fb56fSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 170647e6fb56fSmrg # on systems that don't support them. 170657e6fb56fSmrg lt_prog_compiler_can_build_shared_GCJ=no 170667e6fb56fSmrg enable_shared=no 170677e6fb56fSmrg ;; 170687e6fb56fSmrg 170697e6fb56fSmrg sysv4*MP*) 170707e6fb56fSmrg if test -d /usr/nec; then 170717e6fb56fSmrg lt_prog_compiler_pic_GCJ=-Kconform_pic 170727e6fb56fSmrg fi 170737e6fb56fSmrg ;; 170747e6fb56fSmrg 170757e6fb56fSmrg hpux*) 170767e6fb56fSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 170777e6fb56fSmrg # not for PA HP-UX. 170787e6fb56fSmrg case $host_cpu in 170797e6fb56fSmrg hppa*64*|ia64*) 170807e6fb56fSmrg # +Z the default 170817e6fb56fSmrg ;; 170827e6fb56fSmrg *) 170837e6fb56fSmrg lt_prog_compiler_pic_GCJ='-fPIC' 170847e6fb56fSmrg ;; 170857e6fb56fSmrg esac 170867e6fb56fSmrg ;; 170877e6fb56fSmrg 170887e6fb56fSmrg *) 170897e6fb56fSmrg lt_prog_compiler_pic_GCJ='-fPIC' 170907e6fb56fSmrg ;; 170917e6fb56fSmrg esac 170927e6fb56fSmrg else 170937e6fb56fSmrg # PORTME Check for flag to pass linker flags through the system compiler. 170947e6fb56fSmrg case $host_os in 170957e6fb56fSmrg aix*) 170967e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Wl,' 170977e6fb56fSmrg if test "$host_cpu" = ia64; then 170987e6fb56fSmrg # AIX 5 now supports IA64 processor 170997e6fb56fSmrg lt_prog_compiler_static_GCJ='-Bstatic' 171007e6fb56fSmrg else 171017e6fb56fSmrg lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 171027e6fb56fSmrg fi 171037e6fb56fSmrg ;; 171047e6fb56fSmrg darwin*) 171057e6fb56fSmrg # PIC is the default on this platform 171067e6fb56fSmrg # Common symbols not allowed in MH_DYLIB files 171077e6fb56fSmrg case $cc_basename in 171087e6fb56fSmrg xlc*) 171097e6fb56fSmrg lt_prog_compiler_pic_GCJ='-qnocommon' 171107e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Wl,' 171117e6fb56fSmrg ;; 171127e6fb56fSmrg esac 171137e6fb56fSmrg ;; 171147e6fb56fSmrg 171157e6fb56fSmrg mingw* | cygwin* | pw32* | os2*) 171167e6fb56fSmrg # This hack is so that the source file can tell whether it is being 171177e6fb56fSmrg # built for inclusion in a dll (and should export symbols for example). 171187e6fb56fSmrg 171197e6fb56fSmrg ;; 171207e6fb56fSmrg 171217e6fb56fSmrg hpux9* | hpux10* | hpux11*) 171227e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Wl,' 171237e6fb56fSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 171247e6fb56fSmrg # not for PA HP-UX. 171257e6fb56fSmrg case $host_cpu in 171267e6fb56fSmrg hppa*64*|ia64*) 171277e6fb56fSmrg # +Z the default 171287e6fb56fSmrg ;; 171297e6fb56fSmrg *) 171307e6fb56fSmrg lt_prog_compiler_pic_GCJ='+Z' 171317e6fb56fSmrg ;; 171327e6fb56fSmrg esac 171337e6fb56fSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 171347e6fb56fSmrg lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 171357e6fb56fSmrg ;; 171367e6fb56fSmrg 171377e6fb56fSmrg irix5* | irix6* | nonstopux*) 171387e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Wl,' 171397e6fb56fSmrg # PIC (with -KPIC) is the default. 171407e6fb56fSmrg lt_prog_compiler_static_GCJ='-non_shared' 171417e6fb56fSmrg ;; 171427e6fb56fSmrg 171437e6fb56fSmrg newsos6) 171447e6fb56fSmrg lt_prog_compiler_pic_GCJ='-KPIC' 171457e6fb56fSmrg lt_prog_compiler_static_GCJ='-Bstatic' 171467e6fb56fSmrg ;; 171477e6fb56fSmrg 171487e6fb56fSmrg linux* | k*bsd*-gnu) 171497e6fb56fSmrg case $cc_basename in 171507e6fb56fSmrg icc* | ecc*) 171517e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Wl,' 171527e6fb56fSmrg lt_prog_compiler_pic_GCJ='-KPIC' 171537e6fb56fSmrg lt_prog_compiler_static_GCJ='-static' 171547e6fb56fSmrg ;; 171557e6fb56fSmrg pgcc* | pgf77* | pgf90* | pgf95*) 171567e6fb56fSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 171577e6fb56fSmrg # which looks to be a dead project) 171587e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Wl,' 171597e6fb56fSmrg lt_prog_compiler_pic_GCJ='-fpic' 171607e6fb56fSmrg lt_prog_compiler_static_GCJ='-Bstatic' 171617e6fb56fSmrg ;; 171627e6fb56fSmrg ccc*) 171637e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Wl,' 171647e6fb56fSmrg # All Alpha code is PIC. 171657e6fb56fSmrg lt_prog_compiler_static_GCJ='-non_shared' 171667e6fb56fSmrg ;; 171677e6fb56fSmrg *) 171687e6fb56fSmrg case `$CC -V 2>&1 | sed 5q` in 171697e6fb56fSmrg *Sun\ C*) 171707e6fb56fSmrg # Sun C 5.9 171717e6fb56fSmrg lt_prog_compiler_pic_GCJ='-KPIC' 171727e6fb56fSmrg lt_prog_compiler_static_GCJ='-Bstatic' 171737e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Wl,' 171747e6fb56fSmrg ;; 171757e6fb56fSmrg *Sun\ F*) 171767e6fb56fSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 171777e6fb56fSmrg lt_prog_compiler_pic_GCJ='-KPIC' 171787e6fb56fSmrg lt_prog_compiler_static_GCJ='-Bstatic' 171797e6fb56fSmrg lt_prog_compiler_wl_GCJ='' 171807e6fb56fSmrg ;; 171817e6fb56fSmrg esac 171827e6fb56fSmrg ;; 171837e6fb56fSmrg esac 171847e6fb56fSmrg ;; 171857e6fb56fSmrg 171867e6fb56fSmrg osf3* | osf4* | osf5*) 171877e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Wl,' 171887e6fb56fSmrg # All OSF/1 code is PIC. 171897e6fb56fSmrg lt_prog_compiler_static_GCJ='-non_shared' 171907e6fb56fSmrg ;; 171917e6fb56fSmrg 171927e6fb56fSmrg rdos*) 171937e6fb56fSmrg lt_prog_compiler_static_GCJ='-non_shared' 171947e6fb56fSmrg ;; 171957e6fb56fSmrg 171967e6fb56fSmrg solaris*) 171977e6fb56fSmrg lt_prog_compiler_pic_GCJ='-KPIC' 171987e6fb56fSmrg lt_prog_compiler_static_GCJ='-Bstatic' 171997e6fb56fSmrg case $cc_basename in 172007e6fb56fSmrg f77* | f90* | f95*) 172017e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Qoption ld ';; 172027e6fb56fSmrg *) 172037e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Wl,';; 172047e6fb56fSmrg esac 172057e6fb56fSmrg ;; 172067e6fb56fSmrg 172077e6fb56fSmrg sunos4*) 172087e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Qoption ld ' 172097e6fb56fSmrg lt_prog_compiler_pic_GCJ='-PIC' 172107e6fb56fSmrg lt_prog_compiler_static_GCJ='-Bstatic' 172117e6fb56fSmrg ;; 172127e6fb56fSmrg 172137e6fb56fSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 172147e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Wl,' 172157e6fb56fSmrg lt_prog_compiler_pic_GCJ='-KPIC' 172167e6fb56fSmrg lt_prog_compiler_static_GCJ='-Bstatic' 172177e6fb56fSmrg ;; 172187e6fb56fSmrg 172197e6fb56fSmrg sysv4*MP*) 172207e6fb56fSmrg if test -d /usr/nec ;then 172217e6fb56fSmrg lt_prog_compiler_pic_GCJ='-Kconform_pic' 172227e6fb56fSmrg lt_prog_compiler_static_GCJ='-Bstatic' 172237e6fb56fSmrg fi 172247e6fb56fSmrg ;; 172257e6fb56fSmrg 172267e6fb56fSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 172277e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Wl,' 172287e6fb56fSmrg lt_prog_compiler_pic_GCJ='-KPIC' 172297e6fb56fSmrg lt_prog_compiler_static_GCJ='-Bstatic' 172307e6fb56fSmrg ;; 172317e6fb56fSmrg 172327e6fb56fSmrg unicos*) 172337e6fb56fSmrg lt_prog_compiler_wl_GCJ='-Wl,' 172347e6fb56fSmrg lt_prog_compiler_can_build_shared_GCJ=no 172357e6fb56fSmrg ;; 172367e6fb56fSmrg 172377e6fb56fSmrg uts4*) 172387e6fb56fSmrg lt_prog_compiler_pic_GCJ='-pic' 172397e6fb56fSmrg lt_prog_compiler_static_GCJ='-Bstatic' 172407e6fb56fSmrg ;; 172417e6fb56fSmrg 172427e6fb56fSmrg *) 172437e6fb56fSmrg lt_prog_compiler_can_build_shared_GCJ=no 172447e6fb56fSmrg ;; 172457e6fb56fSmrg esac 172467e6fb56fSmrg fi 172477e6fb56fSmrg 172487e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 172497e6fb56fSmrg$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 172507e6fb56fSmrg 172517e6fb56fSmrg# 172527e6fb56fSmrg# Check to make sure the PIC flag actually works. 172537e6fb56fSmrg# 172547e6fb56fSmrgif test -n "$lt_prog_compiler_pic_GCJ"; then 172557e6fb56fSmrg 172567e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 172577e6fb56fSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 172587e6fb56fSmrgif test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 172597e6fb56fSmrg $as_echo_n "(cached) " >&6 172607e6fb56fSmrgelse 172617e6fb56fSmrg lt_cv_prog_compiler_pic_works_GCJ=no 172627e6fb56fSmrg ac_outfile=conftest.$ac_objext 172637e6fb56fSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 172647e6fb56fSmrg lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 172657e6fb56fSmrg # Insert the option either (1) after the last *FLAGS variable, or 172667e6fb56fSmrg # (2) before a word containing "conftest.", or (3) at the end. 172677e6fb56fSmrg # Note that $ac_compile itself does not contain backslashes and begins 172687e6fb56fSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 172697e6fb56fSmrg # The option is referenced via a variable to avoid confusing sed. 172707e6fb56fSmrg lt_compile=`echo "$ac_compile" | $SED \ 172717e6fb56fSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 172727e6fb56fSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 172737e6fb56fSmrg -e 's:$: $lt_compiler_flag:'` 172747e6fb56fSmrg (eval echo "\"\$as_me:17274: $lt_compile\"" >&5) 172757e6fb56fSmrg (eval "$lt_compile" 2>conftest.err) 172767e6fb56fSmrg ac_status=$? 172777e6fb56fSmrg cat conftest.err >&5 172787e6fb56fSmrg echo "$as_me:17278: \$? = $ac_status" >&5 172797e6fb56fSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 172807e6fb56fSmrg # The compiler can only warn and ignore the option if not recognized 172817e6fb56fSmrg # So say no if there are warnings other than the usual output. 172827e6fb56fSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 172837e6fb56fSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 172847e6fb56fSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 172857e6fb56fSmrg lt_cv_prog_compiler_pic_works_GCJ=yes 172867e6fb56fSmrg fi 172877e6fb56fSmrg fi 172887e6fb56fSmrg $rm conftest* 172897e6fb56fSmrg 172907e6fb56fSmrgfi 172917e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 172927e6fb56fSmrg$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 172937e6fb56fSmrg 172947e6fb56fSmrgif test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 172957e6fb56fSmrg case $lt_prog_compiler_pic_GCJ in 172967e6fb56fSmrg "" | " "*) ;; 172977e6fb56fSmrg *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 172987e6fb56fSmrg esac 172997e6fb56fSmrgelse 173007e6fb56fSmrg lt_prog_compiler_pic_GCJ= 173017e6fb56fSmrg lt_prog_compiler_can_build_shared_GCJ=no 173027e6fb56fSmrgfi 173037e6fb56fSmrg 173047e6fb56fSmrgfi 173057e6fb56fSmrgcase $host_os in 173067e6fb56fSmrg # For platforms which do not support PIC, -DPIC is meaningless: 173077e6fb56fSmrg *djgpp*) 173087e6fb56fSmrg lt_prog_compiler_pic_GCJ= 173097e6fb56fSmrg ;; 173107e6fb56fSmrg *) 173117e6fb56fSmrg lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 173127e6fb56fSmrg ;; 173137e6fb56fSmrgesac 173147e6fb56fSmrg 173157e6fb56fSmrg# 173167e6fb56fSmrg# Check to make sure the static flag actually works. 173177e6fb56fSmrg# 173187e6fb56fSmrgwl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 173197e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 173207e6fb56fSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 173217e6fb56fSmrgif test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 173227e6fb56fSmrg $as_echo_n "(cached) " >&6 173237e6fb56fSmrgelse 173247e6fb56fSmrg lt_cv_prog_compiler_static_works_GCJ=no 173257e6fb56fSmrg save_LDFLAGS="$LDFLAGS" 173267e6fb56fSmrg LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 173277e6fb56fSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 173287e6fb56fSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 173297e6fb56fSmrg # The linker can only warn and ignore the option if not recognized 173307e6fb56fSmrg # So say no if there are warnings 173317e6fb56fSmrg if test -s conftest.err; then 173327e6fb56fSmrg # Append any errors to the config.log. 173337e6fb56fSmrg cat conftest.err 1>&5 173347e6fb56fSmrg $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 173357e6fb56fSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 173367e6fb56fSmrg if diff conftest.exp conftest.er2 >/dev/null; then 173377e6fb56fSmrg lt_cv_prog_compiler_static_works_GCJ=yes 173387e6fb56fSmrg fi 173397e6fb56fSmrg else 173407e6fb56fSmrg lt_cv_prog_compiler_static_works_GCJ=yes 173417e6fb56fSmrg fi 173427e6fb56fSmrg fi 173437e6fb56fSmrg $rm -r conftest* 173447e6fb56fSmrg LDFLAGS="$save_LDFLAGS" 173457e6fb56fSmrg 173467e6fb56fSmrgfi 173477e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 173487e6fb56fSmrg$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 173497e6fb56fSmrg 173507e6fb56fSmrgif test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 173517e6fb56fSmrg : 173527e6fb56fSmrgelse 173537e6fb56fSmrg lt_prog_compiler_static_GCJ= 173547e6fb56fSmrgfi 173557e6fb56fSmrg 173567e6fb56fSmrg 173577e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 173587e6fb56fSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 173597e6fb56fSmrgif test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 173607e6fb56fSmrg $as_echo_n "(cached) " >&6 173617e6fb56fSmrgelse 173627e6fb56fSmrg lt_cv_prog_compiler_c_o_GCJ=no 173637e6fb56fSmrg $rm -r conftest 2>/dev/null 173647e6fb56fSmrg mkdir conftest 173657e6fb56fSmrg cd conftest 173667e6fb56fSmrg mkdir out 173677e6fb56fSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 173687e6fb56fSmrg 173697e6fb56fSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 173707e6fb56fSmrg # Insert the option either (1) after the last *FLAGS variable, or 173717e6fb56fSmrg # (2) before a word containing "conftest.", or (3) at the end. 173727e6fb56fSmrg # Note that $ac_compile itself does not contain backslashes and begins 173737e6fb56fSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 173747e6fb56fSmrg lt_compile=`echo "$ac_compile" | $SED \ 173757e6fb56fSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 173767e6fb56fSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 173777e6fb56fSmrg -e 's:$: $lt_compiler_flag:'` 173787e6fb56fSmrg (eval echo "\"\$as_me:17378: $lt_compile\"" >&5) 173797e6fb56fSmrg (eval "$lt_compile" 2>out/conftest.err) 173807e6fb56fSmrg ac_status=$? 173817e6fb56fSmrg cat out/conftest.err >&5 173827e6fb56fSmrg echo "$as_me:17382: \$? = $ac_status" >&5 173837e6fb56fSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 173847e6fb56fSmrg then 173857e6fb56fSmrg # The compiler can only warn and ignore the option if not recognized 173867e6fb56fSmrg # So say no if there are warnings 173877e6fb56fSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 173887e6fb56fSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 173897e6fb56fSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 173907e6fb56fSmrg lt_cv_prog_compiler_c_o_GCJ=yes 173917e6fb56fSmrg fi 173927e6fb56fSmrg fi 173937e6fb56fSmrg chmod u+w . 2>&5 173947e6fb56fSmrg $rm conftest* 173957e6fb56fSmrg # SGI C++ compiler will create directory out/ii_files/ for 173967e6fb56fSmrg # template instantiation 173977e6fb56fSmrg test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 173987e6fb56fSmrg $rm out/* && rmdir out 173997e6fb56fSmrg cd .. 174007e6fb56fSmrg rmdir conftest 174017e6fb56fSmrg $rm conftest* 174027e6fb56fSmrg 174037e6fb56fSmrgfi 174047e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 174057e6fb56fSmrg$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 174067e6fb56fSmrg 174077e6fb56fSmrg 174087e6fb56fSmrghard_links="nottested" 174097e6fb56fSmrgif test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 174107e6fb56fSmrg # do not overwrite the value of need_locks provided by the user 174117e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 174127e6fb56fSmrg$as_echo_n "checking if we can lock with hard links... " >&6; } 174137e6fb56fSmrg hard_links=yes 174147e6fb56fSmrg $rm conftest* 174157e6fb56fSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 174167e6fb56fSmrg touch conftest.a 174177e6fb56fSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 174187e6fb56fSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 174197e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 174207e6fb56fSmrg$as_echo "$hard_links" >&6; } 174217e6fb56fSmrg if test "$hard_links" = no; then 174227e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 174237e6fb56fSmrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 174247e6fb56fSmrg need_locks=warn 174257e6fb56fSmrg fi 174267e6fb56fSmrgelse 174277e6fb56fSmrg need_locks=no 174287e6fb56fSmrgfi 174297e6fb56fSmrg 174307e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 174317e6fb56fSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 174327e6fb56fSmrg 174337e6fb56fSmrg runpath_var= 174347e6fb56fSmrg allow_undefined_flag_GCJ= 174357e6fb56fSmrg enable_shared_with_static_runtimes_GCJ=no 174367e6fb56fSmrg archive_cmds_GCJ= 174377e6fb56fSmrg archive_expsym_cmds_GCJ= 174387e6fb56fSmrg old_archive_From_new_cmds_GCJ= 174397e6fb56fSmrg old_archive_from_expsyms_cmds_GCJ= 174407e6fb56fSmrg export_dynamic_flag_spec_GCJ= 174417e6fb56fSmrg whole_archive_flag_spec_GCJ= 174427e6fb56fSmrg thread_safe_flag_spec_GCJ= 174437e6fb56fSmrg hardcode_libdir_flag_spec_GCJ= 174447e6fb56fSmrg hardcode_libdir_flag_spec_ld_GCJ= 174457e6fb56fSmrg hardcode_libdir_separator_GCJ= 174467e6fb56fSmrg hardcode_direct_GCJ=no 174477e6fb56fSmrg hardcode_minus_L_GCJ=no 174487e6fb56fSmrg hardcode_shlibpath_var_GCJ=unsupported 174497e6fb56fSmrg link_all_deplibs_GCJ=unknown 174507e6fb56fSmrg hardcode_automatic_GCJ=no 174517e6fb56fSmrg module_cmds_GCJ= 174527e6fb56fSmrg module_expsym_cmds_GCJ= 174537e6fb56fSmrg always_export_symbols_GCJ=no 174547e6fb56fSmrg export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 174557e6fb56fSmrg # include_expsyms should be a list of space-separated symbols to be *always* 174567e6fb56fSmrg # included in the symbol list 174577e6fb56fSmrg include_expsyms_GCJ= 174587e6fb56fSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 174597e6fb56fSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 174607e6fb56fSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 174617e6fb56fSmrg # as well as any symbol that contains `d'. 174627e6fb56fSmrg exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 174637e6fb56fSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 174647e6fb56fSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 174657e6fb56fSmrg # the symbol is explicitly referenced. Since portable code cannot 174667e6fb56fSmrg # rely on this symbol name, it's probably fine to never include it in 174677e6fb56fSmrg # preloaded symbol tables. 174687e6fb56fSmrg # Exclude shared library initialization/finalization symbols. 174697e6fb56fSmrg extract_expsyms_cmds= 174707e6fb56fSmrg # Just being paranoid about ensuring that cc_basename is set. 174717e6fb56fSmrg for cc_temp in $compiler""; do 174727e6fb56fSmrg case $cc_temp in 174737e6fb56fSmrg compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 174747e6fb56fSmrg distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 174757e6fb56fSmrg \-*) ;; 174767e6fb56fSmrg *) break;; 174777e6fb56fSmrg esac 174787e6fb56fSmrgdone 174797e6fb56fSmrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 174807e6fb56fSmrg 174817e6fb56fSmrg case $host_os in 174827e6fb56fSmrg cygwin* | mingw* | pw32*) 174837e6fb56fSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 174847e6fb56fSmrg # When not using gcc, we currently assume that we are using 174857e6fb56fSmrg # Microsoft Visual C++. 174867e6fb56fSmrg if test "$GCC" != yes; then 174877e6fb56fSmrg with_gnu_ld=no 174887e6fb56fSmrg fi 174897e6fb56fSmrg ;; 174907e6fb56fSmrg interix*) 174917e6fb56fSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 174927e6fb56fSmrg with_gnu_ld=yes 174937e6fb56fSmrg ;; 174947e6fb56fSmrg openbsd*) 174957e6fb56fSmrg with_gnu_ld=no 174967e6fb56fSmrg ;; 174977e6fb56fSmrg esac 174987e6fb56fSmrg 174997e6fb56fSmrg ld_shlibs_GCJ=yes 175007e6fb56fSmrg if test "$with_gnu_ld" = yes; then 175017e6fb56fSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 175027e6fb56fSmrg wlarc='${wl}' 175037e6fb56fSmrg 175047e6fb56fSmrg # Set some defaults for GNU ld with shared library support. These 175057e6fb56fSmrg # are reset later if shared libraries are not supported. Putting them 175067e6fb56fSmrg # here allows them to be overridden if necessary. 175077e6fb56fSmrg runpath_var=LD_RUN_PATH 175087e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 175097e6fb56fSmrg export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 175107e6fb56fSmrg # ancient GNU ld didn't support --whole-archive et. al. 175117e6fb56fSmrg if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 175127e6fb56fSmrg whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 175137e6fb56fSmrg else 175147e6fb56fSmrg whole_archive_flag_spec_GCJ= 175157e6fb56fSmrg fi 175167e6fb56fSmrg supports_anon_versioning=no 175177e6fb56fSmrg case `$LD -v 2>/dev/null` in 175187e6fb56fSmrg *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 175197e6fb56fSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 175207e6fb56fSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 175217e6fb56fSmrg *\ 2.11.*) ;; # other 2.11 versions 175227e6fb56fSmrg *) supports_anon_versioning=yes ;; 175237e6fb56fSmrg esac 175247e6fb56fSmrg 175257e6fb56fSmrg # See if GNU ld supports shared libraries. 175267e6fb56fSmrg case $host_os in 175277e6fb56fSmrg aix[3-9]*) 175287e6fb56fSmrg # On AIX/PPC, the GNU linker is very broken 175297e6fb56fSmrg if test "$host_cpu" != ia64; then 175307e6fb56fSmrg ld_shlibs_GCJ=no 175317e6fb56fSmrg cat <<EOF 1>&2 175327e6fb56fSmrg 175337e6fb56fSmrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported 175347e6fb56fSmrg*** to be unable to reliably create shared libraries on AIX. 175357e6fb56fSmrg*** Therefore, libtool is disabling shared libraries support. If you 175367e6fb56fSmrg*** really care for shared libraries, you may want to modify your PATH 175377e6fb56fSmrg*** so that a non-GNU linker is found, and then restart. 175387e6fb56fSmrg 175397e6fb56fSmrgEOF 175407e6fb56fSmrg fi 175417e6fb56fSmrg ;; 175427e6fb56fSmrg 175437e6fb56fSmrg amigaos*) 175447e6fb56fSmrg archive_cmds_GCJ='$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)' 175457e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='-L$libdir' 175467e6fb56fSmrg hardcode_minus_L_GCJ=yes 175477e6fb56fSmrg 175487e6fb56fSmrg # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 175497e6fb56fSmrg # that the semantics of dynamic libraries on AmigaOS, at least up 175507e6fb56fSmrg # to version 4, is to share data among multiple programs linked 175517e6fb56fSmrg # with the same dynamic library. Since this doesn't match the 175527e6fb56fSmrg # behavior of shared libraries on other platforms, we can't use 175537e6fb56fSmrg # them. 175547e6fb56fSmrg ld_shlibs_GCJ=no 175557e6fb56fSmrg ;; 175567e6fb56fSmrg 175577e6fb56fSmrg beos*) 175587e6fb56fSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 175597e6fb56fSmrg allow_undefined_flag_GCJ=unsupported 175607e6fb56fSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 175617e6fb56fSmrg # support --undefined. This deserves some investigation. FIXME 175627e6fb56fSmrg archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 175637e6fb56fSmrg else 175647e6fb56fSmrg ld_shlibs_GCJ=no 175657e6fb56fSmrg fi 175667e6fb56fSmrg ;; 175677e6fb56fSmrg 175687e6fb56fSmrg cygwin* | mingw* | pw32*) 175697e6fb56fSmrg # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 175707e6fb56fSmrg # as there is no search path for DLLs. 175717e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='-L$libdir' 175727e6fb56fSmrg allow_undefined_flag_GCJ=unsupported 175737e6fb56fSmrg always_export_symbols_GCJ=no 175747e6fb56fSmrg enable_shared_with_static_runtimes_GCJ=yes 175757e6fb56fSmrg export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 175767e6fb56fSmrg 175777e6fb56fSmrg if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 175787e6fb56fSmrg archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 175797e6fb56fSmrg # If the export-symbols file already is a .def file (1st line 175807e6fb56fSmrg # is EXPORTS), use it as is; otherwise, prepend... 175817e6fb56fSmrg archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 175827e6fb56fSmrg cp $export_symbols $output_objdir/$soname.def; 175837e6fb56fSmrg else 175847e6fb56fSmrg echo EXPORTS > $output_objdir/$soname.def; 175857e6fb56fSmrg cat $export_symbols >> $output_objdir/$soname.def; 175867e6fb56fSmrg fi~ 175877e6fb56fSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 175887e6fb56fSmrg else 175897e6fb56fSmrg ld_shlibs_GCJ=no 175907e6fb56fSmrg fi 175917e6fb56fSmrg ;; 175927e6fb56fSmrg 175937e6fb56fSmrg interix[3-9]*) 175947e6fb56fSmrg hardcode_direct_GCJ=no 175957e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 175967e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 175977e6fb56fSmrg export_dynamic_flag_spec_GCJ='${wl}-E' 175987e6fb56fSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 175997e6fb56fSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 176007e6fb56fSmrg # default) and relocated if they conflict, which is a slow very memory 176017e6fb56fSmrg # consuming and fragmenting process. To avoid this, we pick a random, 176027e6fb56fSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 176037e6fb56fSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 176047e6fb56fSmrg archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 176057e6fb56fSmrg archive_expsym_cmds_GCJ='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' 176067e6fb56fSmrg ;; 176077e6fb56fSmrg 176087e6fb56fSmrg gnu* | linux* | k*bsd*-gnu) 176097e6fb56fSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 176107e6fb56fSmrg tmp_addflag= 176117e6fb56fSmrg case $cc_basename,$host_cpu in 176127e6fb56fSmrg pgcc*) # Portland Group C compiler 176137e6fb56fSmrg whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 176147e6fb56fSmrg tmp_addflag=' $pic_flag' 176157e6fb56fSmrg ;; 176167e6fb56fSmrg pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 176177e6fb56fSmrg whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 176187e6fb56fSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 176197e6fb56fSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 176207e6fb56fSmrg tmp_addflag=' -i_dynamic' ;; 176217e6fb56fSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 176227e6fb56fSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 176237e6fb56fSmrg ifc* | ifort*) # Intel Fortran compiler 176247e6fb56fSmrg tmp_addflag=' -nofor_main' ;; 176257e6fb56fSmrg esac 176267e6fb56fSmrg case `$CC -V 2>&1 | sed 5q` in 176277e6fb56fSmrg *Sun\ C*) # Sun C 5.9 176287e6fb56fSmrg whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 176297e6fb56fSmrg tmp_sharedflag='-G' ;; 176307e6fb56fSmrg *Sun\ F*) # Sun Fortran 8.3 176317e6fb56fSmrg tmp_sharedflag='-G' ;; 176327e6fb56fSmrg *) 176337e6fb56fSmrg tmp_sharedflag='-shared' ;; 176347e6fb56fSmrg esac 176357e6fb56fSmrg archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 176367e6fb56fSmrg 176377e6fb56fSmrg if test $supports_anon_versioning = yes; then 176387e6fb56fSmrg archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 176397e6fb56fSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 176407e6fb56fSmrg $echo "local: *; };" >> $output_objdir/$libname.ver~ 176417e6fb56fSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 176427e6fb56fSmrg fi 176437e6fb56fSmrg else 176447e6fb56fSmrg ld_shlibs_GCJ=no 176457e6fb56fSmrg fi 176467e6fb56fSmrg ;; 176477e6fb56fSmrg 176487e6fb56fSmrg netbsd*) 176497e6fb56fSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 176507e6fb56fSmrg archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 176517e6fb56fSmrg wlarc= 176527e6fb56fSmrg else 176537e6fb56fSmrg archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 176547e6fb56fSmrg archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 176557e6fb56fSmrg fi 176567e6fb56fSmrg ;; 176577e6fb56fSmrg 176587e6fb56fSmrg solaris*) 176597e6fb56fSmrg if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 176607e6fb56fSmrg ld_shlibs_GCJ=no 176617e6fb56fSmrg cat <<EOF 1>&2 176627e6fb56fSmrg 176637e6fb56fSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 176647e6fb56fSmrg*** create shared libraries on Solaris systems. Therefore, libtool 176657e6fb56fSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 176667e6fb56fSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 176677e6fb56fSmrg*** your PATH or compiler configuration so that the native linker is 176687e6fb56fSmrg*** used, and then restart. 176697e6fb56fSmrg 176707e6fb56fSmrgEOF 176717e6fb56fSmrg elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 176727e6fb56fSmrg archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 176737e6fb56fSmrg archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 176747e6fb56fSmrg else 176757e6fb56fSmrg ld_shlibs_GCJ=no 176767e6fb56fSmrg fi 176777e6fb56fSmrg ;; 176787e6fb56fSmrg 176797e6fb56fSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 176807e6fb56fSmrg case `$LD -v 2>&1` in 176817e6fb56fSmrg *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 176827e6fb56fSmrg ld_shlibs_GCJ=no 176837e6fb56fSmrg cat <<_LT_EOF 1>&2 176847e6fb56fSmrg 176857e6fb56fSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 176867e6fb56fSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 176877e6fb56fSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 176887e6fb56fSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 176897e6fb56fSmrg*** your PATH or compiler configuration so that the native linker is 176907e6fb56fSmrg*** used, and then restart. 176917e6fb56fSmrg 176927e6fb56fSmrg_LT_EOF 176937e6fb56fSmrg ;; 176947e6fb56fSmrg *) 176957e6fb56fSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 176967e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 176977e6fb56fSmrg archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 176987e6fb56fSmrg archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 176997e6fb56fSmrg else 177007e6fb56fSmrg ld_shlibs_GCJ=no 177017e6fb56fSmrg fi 177027e6fb56fSmrg ;; 177037e6fb56fSmrg esac 177047e6fb56fSmrg ;; 177057e6fb56fSmrg 177067e6fb56fSmrg sunos4*) 177077e6fb56fSmrg archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 177087e6fb56fSmrg wlarc= 177097e6fb56fSmrg hardcode_direct_GCJ=yes 177107e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 177117e6fb56fSmrg ;; 177127e6fb56fSmrg 177137e6fb56fSmrg *) 177147e6fb56fSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 177157e6fb56fSmrg archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 177167e6fb56fSmrg archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 177177e6fb56fSmrg else 177187e6fb56fSmrg ld_shlibs_GCJ=no 177197e6fb56fSmrg fi 177207e6fb56fSmrg ;; 177217e6fb56fSmrg esac 177227e6fb56fSmrg 177237e6fb56fSmrg if test "$ld_shlibs_GCJ" = no; then 177247e6fb56fSmrg runpath_var= 177257e6fb56fSmrg hardcode_libdir_flag_spec_GCJ= 177267e6fb56fSmrg export_dynamic_flag_spec_GCJ= 177277e6fb56fSmrg whole_archive_flag_spec_GCJ= 177287e6fb56fSmrg fi 177297e6fb56fSmrg else 177307e6fb56fSmrg # PORTME fill in a description of your system's linker (not GNU ld) 177317e6fb56fSmrg case $host_os in 177327e6fb56fSmrg aix3*) 177337e6fb56fSmrg allow_undefined_flag_GCJ=unsupported 177347e6fb56fSmrg always_export_symbols_GCJ=yes 177357e6fb56fSmrg archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 177367e6fb56fSmrg # Note: this linker hardcodes the directories in LIBPATH if there 177377e6fb56fSmrg # are no directories specified by -L. 177387e6fb56fSmrg hardcode_minus_L_GCJ=yes 177397e6fb56fSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 177407e6fb56fSmrg # Neither direct hardcoding nor static linking is supported with a 177417e6fb56fSmrg # broken collect2. 177427e6fb56fSmrg hardcode_direct_GCJ=unsupported 177437e6fb56fSmrg fi 177447e6fb56fSmrg ;; 177457e6fb56fSmrg 177467e6fb56fSmrg aix[4-9]*) 177477e6fb56fSmrg if test "$host_cpu" = ia64; then 177487e6fb56fSmrg # On IA64, the linker does run time linking by default, so we don't 177497e6fb56fSmrg # have to do anything special. 177507e6fb56fSmrg aix_use_runtimelinking=no 177517e6fb56fSmrg exp_sym_flag='-Bexport' 177527e6fb56fSmrg no_entry_flag="" 177537e6fb56fSmrg else 177547e6fb56fSmrg # If we're using GNU nm, then we don't want the "-C" option. 177557e6fb56fSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 177567e6fb56fSmrg if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 177577e6fb56fSmrg export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 177587e6fb56fSmrg else 177597e6fb56fSmrg export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 177607e6fb56fSmrg fi 177617e6fb56fSmrg aix_use_runtimelinking=no 177627e6fb56fSmrg 177637e6fb56fSmrg # Test if we are trying to use run time linking or normal 177647e6fb56fSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 177657e6fb56fSmrg # need to do runtime linking. 177667e6fb56fSmrg case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 177677e6fb56fSmrg for ld_flag in $LDFLAGS; do 177687e6fb56fSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 177697e6fb56fSmrg aix_use_runtimelinking=yes 177707e6fb56fSmrg break 177717e6fb56fSmrg fi 177727e6fb56fSmrg done 177737e6fb56fSmrg ;; 177747e6fb56fSmrg esac 177757e6fb56fSmrg 177767e6fb56fSmrg exp_sym_flag='-bexport' 177777e6fb56fSmrg no_entry_flag='-bnoentry' 177787e6fb56fSmrg fi 177797e6fb56fSmrg 177807e6fb56fSmrg # When large executables or shared objects are built, AIX ld can 177817e6fb56fSmrg # have problems creating the table of contents. If linking a library 177827e6fb56fSmrg # or program results in "error TOC overflow" add -mminimal-toc to 177837e6fb56fSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 177847e6fb56fSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 177857e6fb56fSmrg 177867e6fb56fSmrg archive_cmds_GCJ='' 177877e6fb56fSmrg hardcode_direct_GCJ=yes 177887e6fb56fSmrg hardcode_libdir_separator_GCJ=':' 177897e6fb56fSmrg link_all_deplibs_GCJ=yes 177907e6fb56fSmrg 177917e6fb56fSmrg if test "$GCC" = yes; then 177927e6fb56fSmrg case $host_os in aix4.[012]|aix4.[012].*) 177937e6fb56fSmrg # We only want to do this on AIX 4.2 and lower, the check 177947e6fb56fSmrg # below for broken collect2 doesn't work under 4.3+ 177957e6fb56fSmrg collect2name=`${CC} -print-prog-name=collect2` 177967e6fb56fSmrg if test -f "$collect2name" && \ 177977e6fb56fSmrg strings "$collect2name" | grep resolve_lib_name >/dev/null 177987e6fb56fSmrg then 177997e6fb56fSmrg # We have reworked collect2 178007e6fb56fSmrg : 178017e6fb56fSmrg else 178027e6fb56fSmrg # We have old collect2 178037e6fb56fSmrg hardcode_direct_GCJ=unsupported 178047e6fb56fSmrg # It fails to find uninstalled libraries when the uninstalled 178057e6fb56fSmrg # path is not listed in the libpath. Setting hardcode_minus_L 178067e6fb56fSmrg # to unsupported forces relinking 178077e6fb56fSmrg hardcode_minus_L_GCJ=yes 178087e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='-L$libdir' 178097e6fb56fSmrg hardcode_libdir_separator_GCJ= 178107e6fb56fSmrg fi 178117e6fb56fSmrg ;; 178127e6fb56fSmrg esac 178137e6fb56fSmrg shared_flag='-shared' 178147e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 178157e6fb56fSmrg shared_flag="$shared_flag "'${wl}-G' 178167e6fb56fSmrg fi 178177e6fb56fSmrg else 178187e6fb56fSmrg # not using gcc 178197e6fb56fSmrg if test "$host_cpu" = ia64; then 178207e6fb56fSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 178217e6fb56fSmrg # chokes on -Wl,-G. The following line is correct: 178227e6fb56fSmrg shared_flag='-G' 178237e6fb56fSmrg else 178247e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 178257e6fb56fSmrg shared_flag='${wl}-G' 178267e6fb56fSmrg else 178277e6fb56fSmrg shared_flag='${wl}-bM:SRE' 178287e6fb56fSmrg fi 178297e6fb56fSmrg fi 178307e6fb56fSmrg fi 178317e6fb56fSmrg 178327e6fb56fSmrg # It seems that -bexpall does not export symbols beginning with 178337e6fb56fSmrg # underscore (_), so it is better to generate a list of symbols to export. 178347e6fb56fSmrg always_export_symbols_GCJ=yes 178357e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 178367e6fb56fSmrg # Warning - without using the other runtime loading flags (-brtl), 178377e6fb56fSmrg # -berok will link without error, but may produce a broken library. 178387e6fb56fSmrg allow_undefined_flag_GCJ='-berok' 178397e6fb56fSmrg # Determine the default libpath from the value encoded in an empty executable. 178407e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 178417e6fb56fSmrg/* confdefs.h. */ 178427e6fb56fSmrg_ACEOF 178437e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 178447e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 178457e6fb56fSmrg/* end confdefs.h. */ 178467e6fb56fSmrg 178477e6fb56fSmrgint 178487e6fb56fSmrgmain () 178497e6fb56fSmrg{ 178507e6fb56fSmrg 178517e6fb56fSmrg ; 178527e6fb56fSmrg return 0; 178537e6fb56fSmrg} 178547e6fb56fSmrg_ACEOF 178557e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 178567e6fb56fSmrgif { (ac_try="$ac_link" 178577e6fb56fSmrgcase "(($ac_try" in 178587e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 178597e6fb56fSmrg *) ac_try_echo=$ac_try;; 178607e6fb56fSmrgesac 178617e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 178627e6fb56fSmrg$as_echo "$ac_try_echo") >&5 178637e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 178647e6fb56fSmrg ac_status=$? 178657e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 178667e6fb56fSmrg rm -f conftest.er1 178677e6fb56fSmrg cat conftest.err >&5 178687e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 178697e6fb56fSmrg (exit $ac_status); } && { 178707e6fb56fSmrg test -z "$ac_c_werror_flag" || 178717e6fb56fSmrg test ! -s conftest.err 178727e6fb56fSmrg } && test -s conftest$ac_exeext && { 178737e6fb56fSmrg test "$cross_compiling" = yes || 178747e6fb56fSmrg $as_test_x conftest$ac_exeext 178757e6fb56fSmrg }; then 178767e6fb56fSmrg 178777e6fb56fSmrglt_aix_libpath_sed=' 178787e6fb56fSmrg /Import File Strings/,/^$/ { 178797e6fb56fSmrg /^0/ { 178807e6fb56fSmrg s/^0 *\(.*\)$/\1/ 178817e6fb56fSmrg p 178827e6fb56fSmrg } 178837e6fb56fSmrg }' 178847e6fb56fSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 178857e6fb56fSmrg# Check for a 64-bit object if we didn't find anything. 178867e6fb56fSmrgif test -z "$aix_libpath"; then 178877e6fb56fSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 178887e6fb56fSmrgfi 178897e6fb56fSmrgelse 178907e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 178917e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 178927e6fb56fSmrg 178937e6fb56fSmrg 178947e6fb56fSmrgfi 178957e6fb56fSmrg 178967e6fb56fSmrgrm -rf conftest.dSYM 178977e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 178987e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 178997e6fb56fSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 179007e6fb56fSmrg 179017e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 179027e6fb56fSmrg archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 179037e6fb56fSmrg else 179047e6fb56fSmrg if test "$host_cpu" = ia64; then 179057e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 179067e6fb56fSmrg allow_undefined_flag_GCJ="-z nodefs" 179077e6fb56fSmrg archive_expsym_cmds_GCJ="\$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" 179087e6fb56fSmrg else 179097e6fb56fSmrg # Determine the default libpath from the value encoded in an empty executable. 179107e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 179117e6fb56fSmrg/* confdefs.h. */ 179127e6fb56fSmrg_ACEOF 179137e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 179147e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 179157e6fb56fSmrg/* end confdefs.h. */ 179167e6fb56fSmrg 179177e6fb56fSmrgint 179187e6fb56fSmrgmain () 179197e6fb56fSmrg{ 179207e6fb56fSmrg 179217e6fb56fSmrg ; 179227e6fb56fSmrg return 0; 179237e6fb56fSmrg} 179247e6fb56fSmrg_ACEOF 179257e6fb56fSmrgrm -f conftest.$ac_objext conftest$ac_exeext 179267e6fb56fSmrgif { (ac_try="$ac_link" 179277e6fb56fSmrgcase "(($ac_try" in 179287e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 179297e6fb56fSmrg *) ac_try_echo=$ac_try;; 179307e6fb56fSmrgesac 179317e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 179327e6fb56fSmrg$as_echo "$ac_try_echo") >&5 179337e6fb56fSmrg (eval "$ac_link") 2>conftest.er1 179347e6fb56fSmrg ac_status=$? 179357e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 179367e6fb56fSmrg rm -f conftest.er1 179377e6fb56fSmrg cat conftest.err >&5 179387e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 179397e6fb56fSmrg (exit $ac_status); } && { 179407e6fb56fSmrg test -z "$ac_c_werror_flag" || 179417e6fb56fSmrg test ! -s conftest.err 179427e6fb56fSmrg } && test -s conftest$ac_exeext && { 179437e6fb56fSmrg test "$cross_compiling" = yes || 179447e6fb56fSmrg $as_test_x conftest$ac_exeext 179457e6fb56fSmrg }; then 179467e6fb56fSmrg 179477e6fb56fSmrglt_aix_libpath_sed=' 179487e6fb56fSmrg /Import File Strings/,/^$/ { 179497e6fb56fSmrg /^0/ { 179507e6fb56fSmrg s/^0 *\(.*\)$/\1/ 179517e6fb56fSmrg p 179527e6fb56fSmrg } 179537e6fb56fSmrg }' 179547e6fb56fSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 179557e6fb56fSmrg# Check for a 64-bit object if we didn't find anything. 179567e6fb56fSmrgif test -z "$aix_libpath"; then 179577e6fb56fSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 179587e6fb56fSmrgfi 179597e6fb56fSmrgelse 179607e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 179617e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 179627e6fb56fSmrg 179637e6fb56fSmrg 179647e6fb56fSmrgfi 179657e6fb56fSmrg 179667e6fb56fSmrgrm -rf conftest.dSYM 179677e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 179687e6fb56fSmrg conftest$ac_exeext conftest.$ac_ext 179697e6fb56fSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 179707e6fb56fSmrg 179717e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 179727e6fb56fSmrg # Warning - without using the other run time loading flags, 179737e6fb56fSmrg # -berok will link without error, but may produce a broken library. 179747e6fb56fSmrg no_undefined_flag_GCJ=' ${wl}-bernotok' 179757e6fb56fSmrg allow_undefined_flag_GCJ=' ${wl}-berok' 179767e6fb56fSmrg # Exported symbols can be pulled into shared objects from archives 179777e6fb56fSmrg whole_archive_flag_spec_GCJ='$convenience' 179787e6fb56fSmrg archive_cmds_need_lc_GCJ=yes 179797e6fb56fSmrg # This is similar to how AIX traditionally builds its shared libraries. 179807e6fb56fSmrg archive_expsym_cmds_GCJ="\$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' 179817e6fb56fSmrg fi 179827e6fb56fSmrg fi 179837e6fb56fSmrg ;; 179847e6fb56fSmrg 179857e6fb56fSmrg amigaos*) 179867e6fb56fSmrg archive_cmds_GCJ='$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)' 179877e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='-L$libdir' 179887e6fb56fSmrg hardcode_minus_L_GCJ=yes 179897e6fb56fSmrg # see comment about different semantics on the GNU ld section 179907e6fb56fSmrg ld_shlibs_GCJ=no 179917e6fb56fSmrg ;; 179927e6fb56fSmrg 179937e6fb56fSmrg bsdi[45]*) 179947e6fb56fSmrg export_dynamic_flag_spec_GCJ=-rdynamic 179957e6fb56fSmrg ;; 179967e6fb56fSmrg 179977e6fb56fSmrg cygwin* | mingw* | pw32*) 179987e6fb56fSmrg # When not using gcc, we currently assume that we are using 179997e6fb56fSmrg # Microsoft Visual C++. 180007e6fb56fSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 180017e6fb56fSmrg # no search path for DLLs. 180027e6fb56fSmrg hardcode_libdir_flag_spec_GCJ=' ' 180037e6fb56fSmrg allow_undefined_flag_GCJ=unsupported 180047e6fb56fSmrg # Tell ltmain to make .lib files, not .a files. 180057e6fb56fSmrg libext=lib 180067e6fb56fSmrg # Tell ltmain to make .dll files, not .so files. 180077e6fb56fSmrg shrext_cmds=".dll" 180087e6fb56fSmrg # FIXME: Setting linknames here is a bad hack. 180097e6fb56fSmrg archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 180107e6fb56fSmrg # The linker will automatically build a .lib file if we build a DLL. 180117e6fb56fSmrg old_archive_From_new_cmds_GCJ='true' 180127e6fb56fSmrg # FIXME: Should let the user specify the lib program. 180137e6fb56fSmrg old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 180147e6fb56fSmrg fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 180157e6fb56fSmrg enable_shared_with_static_runtimes_GCJ=yes 180167e6fb56fSmrg ;; 180177e6fb56fSmrg 180187e6fb56fSmrg darwin* | rhapsody*) 180197e6fb56fSmrg case $host_os in 180207e6fb56fSmrg rhapsody* | darwin1.[012]) 180217e6fb56fSmrg allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 180227e6fb56fSmrg ;; 180237e6fb56fSmrg *) # Darwin 1.3 on 180247e6fb56fSmrg if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 180257e6fb56fSmrg allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 180267e6fb56fSmrg else 180277e6fb56fSmrg case ${MACOSX_DEPLOYMENT_TARGET} in 180287e6fb56fSmrg 10.[012]) 180297e6fb56fSmrg allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 180307e6fb56fSmrg ;; 180317e6fb56fSmrg 10.*) 180327e6fb56fSmrg allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 180337e6fb56fSmrg ;; 180347e6fb56fSmrg esac 180357e6fb56fSmrg fi 180367e6fb56fSmrg ;; 180377e6fb56fSmrg esac 180387e6fb56fSmrg archive_cmds_need_lc_GCJ=no 180397e6fb56fSmrg hardcode_direct_GCJ=no 180407e6fb56fSmrg hardcode_automatic_GCJ=yes 180417e6fb56fSmrg hardcode_shlibpath_var_GCJ=unsupported 180427e6fb56fSmrg whole_archive_flag_spec_GCJ='' 180437e6fb56fSmrg link_all_deplibs_GCJ=yes 180447e6fb56fSmrg if test "$GCC" = yes ; then 180457e6fb56fSmrg output_verbose_link_cmd='echo' 180467e6fb56fSmrg archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 180477e6fb56fSmrg module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 180487e6fb56fSmrg archive_expsym_cmds_GCJ="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}" 180497e6fb56fSmrg module_expsym_cmds_GCJ="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}" 180507e6fb56fSmrg else 180517e6fb56fSmrg case $cc_basename in 180527e6fb56fSmrg xlc*) 180537e6fb56fSmrg output_verbose_link_cmd='echo' 180547e6fb56fSmrg archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 180557e6fb56fSmrg module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 180567e6fb56fSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 180577e6fb56fSmrg archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 180587e6fb56fSmrg module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 180597e6fb56fSmrg ;; 180607e6fb56fSmrg *) 180617e6fb56fSmrg ld_shlibs_GCJ=no 180627e6fb56fSmrg ;; 180637e6fb56fSmrg esac 180647e6fb56fSmrg fi 180657e6fb56fSmrg ;; 180667e6fb56fSmrg 180677e6fb56fSmrg dgux*) 180687e6fb56fSmrg archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 180697e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='-L$libdir' 180707e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 180717e6fb56fSmrg ;; 180727e6fb56fSmrg 180737e6fb56fSmrg freebsd1*) 180747e6fb56fSmrg ld_shlibs_GCJ=no 180757e6fb56fSmrg ;; 180767e6fb56fSmrg 180777e6fb56fSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 180787e6fb56fSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 180797e6fb56fSmrg # does not break anything, and helps significantly (at the cost of a little 180807e6fb56fSmrg # extra space). 180817e6fb56fSmrg freebsd2.2*) 180827e6fb56fSmrg archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 180837e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='-R$libdir' 180847e6fb56fSmrg hardcode_direct_GCJ=yes 180857e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 180867e6fb56fSmrg ;; 180877e6fb56fSmrg 180887e6fb56fSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 180897e6fb56fSmrg freebsd2*) 180907e6fb56fSmrg archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 180917e6fb56fSmrg hardcode_direct_GCJ=yes 180927e6fb56fSmrg hardcode_minus_L_GCJ=yes 180937e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 180947e6fb56fSmrg ;; 180957e6fb56fSmrg 180967e6fb56fSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 180977e6fb56fSmrg freebsd* | dragonfly*) 180987e6fb56fSmrg archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 180997e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='-R$libdir' 181007e6fb56fSmrg hardcode_direct_GCJ=yes 181017e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 181027e6fb56fSmrg ;; 181037e6fb56fSmrg 181047e6fb56fSmrg hpux9*) 181057e6fb56fSmrg if test "$GCC" = yes; then 181067e6fb56fSmrg archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 181077e6fb56fSmrg else 181087e6fb56fSmrg archive_cmds_GCJ='$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' 181097e6fb56fSmrg fi 181107e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 181117e6fb56fSmrg hardcode_libdir_separator_GCJ=: 181127e6fb56fSmrg hardcode_direct_GCJ=yes 181137e6fb56fSmrg 181147e6fb56fSmrg # hardcode_minus_L: Not really in the search PATH, 181157e6fb56fSmrg # but as the default location of the library. 181167e6fb56fSmrg hardcode_minus_L_GCJ=yes 181177e6fb56fSmrg export_dynamic_flag_spec_GCJ='${wl}-E' 181187e6fb56fSmrg ;; 181197e6fb56fSmrg 181207e6fb56fSmrg hpux10*) 181217e6fb56fSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 181227e6fb56fSmrg archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 181237e6fb56fSmrg else 181247e6fb56fSmrg archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 181257e6fb56fSmrg fi 181267e6fb56fSmrg if test "$with_gnu_ld" = no; then 181277e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 181287e6fb56fSmrg hardcode_libdir_separator_GCJ=: 181297e6fb56fSmrg 181307e6fb56fSmrg hardcode_direct_GCJ=yes 181317e6fb56fSmrg export_dynamic_flag_spec_GCJ='${wl}-E' 181327e6fb56fSmrg 181337e6fb56fSmrg # hardcode_minus_L: Not really in the search PATH, 181347e6fb56fSmrg # but as the default location of the library. 181357e6fb56fSmrg hardcode_minus_L_GCJ=yes 181367e6fb56fSmrg fi 181377e6fb56fSmrg ;; 181387e6fb56fSmrg 181397e6fb56fSmrg hpux11*) 181407e6fb56fSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 181417e6fb56fSmrg case $host_cpu in 181427e6fb56fSmrg hppa*64*) 181437e6fb56fSmrg archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 181447e6fb56fSmrg ;; 181457e6fb56fSmrg ia64*) 181467e6fb56fSmrg archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 181477e6fb56fSmrg ;; 181487e6fb56fSmrg *) 181497e6fb56fSmrg archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 181507e6fb56fSmrg ;; 181517e6fb56fSmrg esac 181527e6fb56fSmrg else 181537e6fb56fSmrg case $host_cpu in 181547e6fb56fSmrg hppa*64*) 181557e6fb56fSmrg archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 181567e6fb56fSmrg ;; 181577e6fb56fSmrg ia64*) 181587e6fb56fSmrg archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 181597e6fb56fSmrg ;; 181607e6fb56fSmrg *) 181617e6fb56fSmrg archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 181627e6fb56fSmrg ;; 181637e6fb56fSmrg esac 181647e6fb56fSmrg fi 181657e6fb56fSmrg if test "$with_gnu_ld" = no; then 181667e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 181677e6fb56fSmrg hardcode_libdir_separator_GCJ=: 181687e6fb56fSmrg 181697e6fb56fSmrg case $host_cpu in 181707e6fb56fSmrg hppa*64*|ia64*) 181717e6fb56fSmrg hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 181727e6fb56fSmrg hardcode_direct_GCJ=no 181737e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 181747e6fb56fSmrg ;; 181757e6fb56fSmrg *) 181767e6fb56fSmrg hardcode_direct_GCJ=yes 181777e6fb56fSmrg export_dynamic_flag_spec_GCJ='${wl}-E' 181787e6fb56fSmrg 181797e6fb56fSmrg # hardcode_minus_L: Not really in the search PATH, 181807e6fb56fSmrg # but as the default location of the library. 181817e6fb56fSmrg hardcode_minus_L_GCJ=yes 181827e6fb56fSmrg ;; 181837e6fb56fSmrg esac 181847e6fb56fSmrg fi 181857e6fb56fSmrg ;; 181867e6fb56fSmrg 181877e6fb56fSmrg irix5* | irix6* | nonstopux*) 181887e6fb56fSmrg if test "$GCC" = yes; then 181897e6fb56fSmrg archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 181907e6fb56fSmrg else 181917e6fb56fSmrg archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 181927e6fb56fSmrg hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 181937e6fb56fSmrg fi 181947e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 181957e6fb56fSmrg hardcode_libdir_separator_GCJ=: 181967e6fb56fSmrg link_all_deplibs_GCJ=yes 181977e6fb56fSmrg ;; 181987e6fb56fSmrg 181997e6fb56fSmrg netbsd*) 182007e6fb56fSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 182017e6fb56fSmrg archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 182027e6fb56fSmrg else 182037e6fb56fSmrg archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 182047e6fb56fSmrg fi 182057e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='-R$libdir' 182067e6fb56fSmrg hardcode_direct_GCJ=yes 182077e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 182087e6fb56fSmrg ;; 182097e6fb56fSmrg 182107e6fb56fSmrg newsos6) 182117e6fb56fSmrg archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 182127e6fb56fSmrg hardcode_direct_GCJ=yes 182137e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 182147e6fb56fSmrg hardcode_libdir_separator_GCJ=: 182157e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 182167e6fb56fSmrg ;; 182177e6fb56fSmrg 182187e6fb56fSmrg openbsd*) 182197e6fb56fSmrg if test -f /usr/libexec/ld.so; then 182207e6fb56fSmrg hardcode_direct_GCJ=yes 182217e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 182227e6fb56fSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 182237e6fb56fSmrg archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 182247e6fb56fSmrg archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 182257e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 182267e6fb56fSmrg export_dynamic_flag_spec_GCJ='${wl}-E' 182277e6fb56fSmrg else 182287e6fb56fSmrg case $host_os in 182297e6fb56fSmrg openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 182307e6fb56fSmrg archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 182317e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='-R$libdir' 182327e6fb56fSmrg ;; 182337e6fb56fSmrg *) 182347e6fb56fSmrg archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 182357e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 182367e6fb56fSmrg ;; 182377e6fb56fSmrg esac 182387e6fb56fSmrg fi 182397e6fb56fSmrg else 182407e6fb56fSmrg ld_shlibs_GCJ=no 182417e6fb56fSmrg fi 182427e6fb56fSmrg ;; 182437e6fb56fSmrg 182447e6fb56fSmrg os2*) 182457e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='-L$libdir' 182467e6fb56fSmrg hardcode_minus_L_GCJ=yes 182477e6fb56fSmrg allow_undefined_flag_GCJ=unsupported 182487e6fb56fSmrg archive_cmds_GCJ='$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' 182497e6fb56fSmrg old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 182507e6fb56fSmrg ;; 182517e6fb56fSmrg 182527e6fb56fSmrg osf3*) 182537e6fb56fSmrg if test "$GCC" = yes; then 182547e6fb56fSmrg allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 182557e6fb56fSmrg archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 182567e6fb56fSmrg else 182577e6fb56fSmrg allow_undefined_flag_GCJ=' -expect_unresolved \*' 182587e6fb56fSmrg archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 182597e6fb56fSmrg fi 182607e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 182617e6fb56fSmrg hardcode_libdir_separator_GCJ=: 182627e6fb56fSmrg ;; 182637e6fb56fSmrg 182647e6fb56fSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 182657e6fb56fSmrg if test "$GCC" = yes; then 182667e6fb56fSmrg allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 182677e6fb56fSmrg archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 182687e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 182697e6fb56fSmrg else 182707e6fb56fSmrg allow_undefined_flag_GCJ=' -expect_unresolved \*' 182717e6fb56fSmrg archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 182727e6fb56fSmrg archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 182737e6fb56fSmrg $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 182747e6fb56fSmrg 182757e6fb56fSmrg # Both c and cxx compiler support -rpath directly 182767e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 182777e6fb56fSmrg fi 182787e6fb56fSmrg hardcode_libdir_separator_GCJ=: 182797e6fb56fSmrg ;; 182807e6fb56fSmrg 182817e6fb56fSmrg solaris*) 182827e6fb56fSmrg no_undefined_flag_GCJ=' -z text' 182837e6fb56fSmrg if test "$GCC" = yes; then 182847e6fb56fSmrg wlarc='${wl}' 182857e6fb56fSmrg archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 182867e6fb56fSmrg archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 182877e6fb56fSmrg $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 182887e6fb56fSmrg else 182897e6fb56fSmrg wlarc='' 182907e6fb56fSmrg archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 182917e6fb56fSmrg archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 182927e6fb56fSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 182937e6fb56fSmrg fi 182947e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='-R$libdir' 182957e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 182967e6fb56fSmrg case $host_os in 182977e6fb56fSmrg solaris2.[0-5] | solaris2.[0-5].*) ;; 182987e6fb56fSmrg *) 182997e6fb56fSmrg # The compiler driver will combine and reorder linker options, 183007e6fb56fSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 183017e6fb56fSmrg # but is careful enough not to reorder. 183027e6fb56fSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 183037e6fb56fSmrg if test "$GCC" = yes; then 183047e6fb56fSmrg whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 183057e6fb56fSmrg else 183067e6fb56fSmrg whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 183077e6fb56fSmrg fi 183087e6fb56fSmrg ;; 183097e6fb56fSmrg esac 183107e6fb56fSmrg link_all_deplibs_GCJ=yes 183117e6fb56fSmrg ;; 183127e6fb56fSmrg 183137e6fb56fSmrg sunos4*) 183147e6fb56fSmrg if test "x$host_vendor" = xsequent; then 183157e6fb56fSmrg # Use $CC to link under sequent, because it throws in some extra .o 183167e6fb56fSmrg # files that make .init and .fini sections work. 183177e6fb56fSmrg archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 183187e6fb56fSmrg else 183197e6fb56fSmrg archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 183207e6fb56fSmrg fi 183217e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='-L$libdir' 183227e6fb56fSmrg hardcode_direct_GCJ=yes 183237e6fb56fSmrg hardcode_minus_L_GCJ=yes 183247e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 183257e6fb56fSmrg ;; 183267e6fb56fSmrg 183277e6fb56fSmrg sysv4) 183287e6fb56fSmrg case $host_vendor in 183297e6fb56fSmrg sni) 183307e6fb56fSmrg archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 183317e6fb56fSmrg hardcode_direct_GCJ=yes # is this really true??? 183327e6fb56fSmrg ;; 183337e6fb56fSmrg siemens) 183347e6fb56fSmrg ## LD is ld it makes a PLAMLIB 183357e6fb56fSmrg ## CC just makes a GrossModule. 183367e6fb56fSmrg archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 183377e6fb56fSmrg reload_cmds_GCJ='$CC -r -o $output$reload_objs' 183387e6fb56fSmrg hardcode_direct_GCJ=no 183397e6fb56fSmrg ;; 183407e6fb56fSmrg motorola) 183417e6fb56fSmrg archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 183427e6fb56fSmrg hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 183437e6fb56fSmrg ;; 183447e6fb56fSmrg esac 183457e6fb56fSmrg runpath_var='LD_RUN_PATH' 183467e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 183477e6fb56fSmrg ;; 183487e6fb56fSmrg 183497e6fb56fSmrg sysv4.3*) 183507e6fb56fSmrg archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 183517e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 183527e6fb56fSmrg export_dynamic_flag_spec_GCJ='-Bexport' 183537e6fb56fSmrg ;; 183547e6fb56fSmrg 183557e6fb56fSmrg sysv4*MP*) 183567e6fb56fSmrg if test -d /usr/nec; then 183577e6fb56fSmrg archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 183587e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 183597e6fb56fSmrg runpath_var=LD_RUN_PATH 183607e6fb56fSmrg hardcode_runpath_var=yes 183617e6fb56fSmrg ld_shlibs_GCJ=yes 183627e6fb56fSmrg fi 183637e6fb56fSmrg ;; 183647e6fb56fSmrg 183657e6fb56fSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 183667e6fb56fSmrg no_undefined_flag_GCJ='${wl}-z,text' 183677e6fb56fSmrg archive_cmds_need_lc_GCJ=no 183687e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 183697e6fb56fSmrg runpath_var='LD_RUN_PATH' 183707e6fb56fSmrg 183717e6fb56fSmrg if test "$GCC" = yes; then 183727e6fb56fSmrg archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 183737e6fb56fSmrg archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 183747e6fb56fSmrg else 183757e6fb56fSmrg archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 183767e6fb56fSmrg archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 183777e6fb56fSmrg fi 183787e6fb56fSmrg ;; 183797e6fb56fSmrg 183807e6fb56fSmrg sysv5* | sco3.2v5* | sco5v6*) 183817e6fb56fSmrg # Note: We can NOT use -z defs as we might desire, because we do not 183827e6fb56fSmrg # link with -lc, and that would cause any symbols used from libc to 183837e6fb56fSmrg # always be unresolved, which means just about no library would 183847e6fb56fSmrg # ever link correctly. If we're not using GNU ld we use -z text 183857e6fb56fSmrg # though, which does catch some bad symbols but isn't as heavy-handed 183867e6fb56fSmrg # as -z defs. 183877e6fb56fSmrg no_undefined_flag_GCJ='${wl}-z,text' 183887e6fb56fSmrg allow_undefined_flag_GCJ='${wl}-z,nodefs' 183897e6fb56fSmrg archive_cmds_need_lc_GCJ=no 183907e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 183917e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 183927e6fb56fSmrg hardcode_libdir_separator_GCJ=':' 183937e6fb56fSmrg link_all_deplibs_GCJ=yes 183947e6fb56fSmrg export_dynamic_flag_spec_GCJ='${wl}-Bexport' 183957e6fb56fSmrg runpath_var='LD_RUN_PATH' 183967e6fb56fSmrg 183977e6fb56fSmrg if test "$GCC" = yes; then 183987e6fb56fSmrg archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 183997e6fb56fSmrg archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 184007e6fb56fSmrg else 184017e6fb56fSmrg archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 184027e6fb56fSmrg archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 184037e6fb56fSmrg fi 184047e6fb56fSmrg ;; 184057e6fb56fSmrg 184067e6fb56fSmrg uts4*) 184077e6fb56fSmrg archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 184087e6fb56fSmrg hardcode_libdir_flag_spec_GCJ='-L$libdir' 184097e6fb56fSmrg hardcode_shlibpath_var_GCJ=no 184107e6fb56fSmrg ;; 184117e6fb56fSmrg 184127e6fb56fSmrg *) 184137e6fb56fSmrg ld_shlibs_GCJ=no 184147e6fb56fSmrg ;; 184157e6fb56fSmrg esac 184167e6fb56fSmrg fi 184177e6fb56fSmrg 184187e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 184197e6fb56fSmrg$as_echo "$ld_shlibs_GCJ" >&6; } 184207e6fb56fSmrgtest "$ld_shlibs_GCJ" = no && can_build_shared=no 184217e6fb56fSmrg 184227e6fb56fSmrg# 184237e6fb56fSmrg# Do we need to explicitly link libc? 184247e6fb56fSmrg# 184257e6fb56fSmrgcase "x$archive_cmds_need_lc_GCJ" in 184267e6fb56fSmrgx|xyes) 184277e6fb56fSmrg # Assume -lc should be added 184287e6fb56fSmrg archive_cmds_need_lc_GCJ=yes 184297e6fb56fSmrg 184307e6fb56fSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 184317e6fb56fSmrg case $archive_cmds_GCJ in 184327e6fb56fSmrg *'~'*) 184337e6fb56fSmrg # FIXME: we may have to deal with multi-command sequences. 184347e6fb56fSmrg ;; 184357e6fb56fSmrg '$CC '*) 184367e6fb56fSmrg # Test whether the compiler implicitly links with -lc since on some 184377e6fb56fSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 184387e6fb56fSmrg # to ld, don't add -lc before -lgcc. 184397e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 184407e6fb56fSmrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 184417e6fb56fSmrg $rm conftest* 184427e6fb56fSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 184437e6fb56fSmrg 184447e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 184457e6fb56fSmrg (eval $ac_compile) 2>&5 184467e6fb56fSmrg ac_status=$? 184477e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 184487e6fb56fSmrg (exit $ac_status); } 2>conftest.err; then 184497e6fb56fSmrg soname=conftest 184507e6fb56fSmrg lib=conftest 184517e6fb56fSmrg libobjs=conftest.$ac_objext 184527e6fb56fSmrg deplibs= 184537e6fb56fSmrg wl=$lt_prog_compiler_wl_GCJ 184547e6fb56fSmrg pic_flag=$lt_prog_compiler_pic_GCJ 184557e6fb56fSmrg compiler_flags=-v 184567e6fb56fSmrg linker_flags=-v 184577e6fb56fSmrg verstring= 184587e6fb56fSmrg output_objdir=. 184597e6fb56fSmrg libname=conftest 184607e6fb56fSmrg lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 184617e6fb56fSmrg allow_undefined_flag_GCJ= 184627e6fb56fSmrg if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 184637e6fb56fSmrg (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 184647e6fb56fSmrg ac_status=$? 184657e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 184667e6fb56fSmrg (exit $ac_status); } 184677e6fb56fSmrg then 184687e6fb56fSmrg archive_cmds_need_lc_GCJ=no 184697e6fb56fSmrg else 184707e6fb56fSmrg archive_cmds_need_lc_GCJ=yes 184717e6fb56fSmrg fi 184727e6fb56fSmrg allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 184737e6fb56fSmrg else 184747e6fb56fSmrg cat conftest.err 1>&5 184757e6fb56fSmrg fi 184767e6fb56fSmrg $rm conftest* 184777e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 184787e6fb56fSmrg$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 184797e6fb56fSmrg ;; 184807e6fb56fSmrg esac 184817e6fb56fSmrg fi 184827e6fb56fSmrg ;; 184837e6fb56fSmrgesac 184847e6fb56fSmrg 184857e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 184867e6fb56fSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; } 184877e6fb56fSmrglibrary_names_spec= 184887e6fb56fSmrglibname_spec='lib$name' 184897e6fb56fSmrgsoname_spec= 184907e6fb56fSmrgshrext_cmds=".so" 184917e6fb56fSmrgpostinstall_cmds= 184927e6fb56fSmrgpostuninstall_cmds= 184937e6fb56fSmrgfinish_cmds= 184947e6fb56fSmrgfinish_eval= 184957e6fb56fSmrgshlibpath_var= 184967e6fb56fSmrgshlibpath_overrides_runpath=unknown 184977e6fb56fSmrgversion_type=none 184987e6fb56fSmrgdynamic_linker="$host_os ld.so" 184997e6fb56fSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 185007e6fb56fSmrg 185017e6fb56fSmrgneed_lib_prefix=unknown 185027e6fb56fSmrghardcode_into_libs=no 185037e6fb56fSmrg 185047e6fb56fSmrg# when you set need_version to no, make sure it does not cause -set_version 185057e6fb56fSmrg# flags to be left without arguments 185067e6fb56fSmrgneed_version=unknown 185077e6fb56fSmrg 185087e6fb56fSmrgcase $host_os in 185097e6fb56fSmrgaix3*) 185107e6fb56fSmrg version_type=linux 185117e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 185127e6fb56fSmrg shlibpath_var=LIBPATH 185137e6fb56fSmrg 185147e6fb56fSmrg # AIX 3 has no versioning support, so we append a major version to the name. 185157e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 185167e6fb56fSmrg ;; 185177e6fb56fSmrg 185187e6fb56fSmrgaix[4-9]*) 185197e6fb56fSmrg version_type=linux 185207e6fb56fSmrg need_lib_prefix=no 185217e6fb56fSmrg need_version=no 185227e6fb56fSmrg hardcode_into_libs=yes 185237e6fb56fSmrg if test "$host_cpu" = ia64; then 185247e6fb56fSmrg # AIX 5 supports IA64 185257e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 185267e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 185277e6fb56fSmrg else 185287e6fb56fSmrg # With GCC up to 2.95.x, collect2 would create an import file 185297e6fb56fSmrg # for dependence libraries. The import file would start with 185307e6fb56fSmrg # the line `#! .'. This would cause the generated library to 185317e6fb56fSmrg # depend on `.', always an invalid library. This was fixed in 185327e6fb56fSmrg # development snapshots of GCC prior to 3.0. 185337e6fb56fSmrg case $host_os in 185347e6fb56fSmrg aix4 | aix4.[01] | aix4.[01].*) 185357e6fb56fSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 185367e6fb56fSmrg echo ' yes ' 185377e6fb56fSmrg echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 185387e6fb56fSmrg : 185397e6fb56fSmrg else 185407e6fb56fSmrg can_build_shared=no 185417e6fb56fSmrg fi 185427e6fb56fSmrg ;; 185437e6fb56fSmrg esac 185447e6fb56fSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 185457e6fb56fSmrg # soname into executable. Probably we can add versioning support to 185467e6fb56fSmrg # collect2, so additional links can be useful in future. 185477e6fb56fSmrg if test "$aix_use_runtimelinking" = yes; then 185487e6fb56fSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 185497e6fb56fSmrg # instead of lib<name>.a to let people know that these are not 185507e6fb56fSmrg # typical AIX shared libraries. 185517e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 185527e6fb56fSmrg else 185537e6fb56fSmrg # We preserve .a as extension for shared libraries through AIX4.2 185547e6fb56fSmrg # and later when we are not doing run time linking. 185557e6fb56fSmrg library_names_spec='${libname}${release}.a $libname.a' 185567e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 185577e6fb56fSmrg fi 185587e6fb56fSmrg shlibpath_var=LIBPATH 185597e6fb56fSmrg fi 185607e6fb56fSmrg ;; 185617e6fb56fSmrg 185627e6fb56fSmrgamigaos*) 185637e6fb56fSmrg library_names_spec='$libname.ixlibrary $libname.a' 185647e6fb56fSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 185657e6fb56fSmrg finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 185667e6fb56fSmrg ;; 185677e6fb56fSmrg 185687e6fb56fSmrgbeos*) 185697e6fb56fSmrg library_names_spec='${libname}${shared_ext}' 185707e6fb56fSmrg dynamic_linker="$host_os ld.so" 185717e6fb56fSmrg shlibpath_var=LIBRARY_PATH 185727e6fb56fSmrg ;; 185737e6fb56fSmrg 185747e6fb56fSmrgbsdi[45]*) 185757e6fb56fSmrg version_type=linux 185767e6fb56fSmrg need_version=no 185777e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 185787e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 185797e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 185807e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 185817e6fb56fSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 185827e6fb56fSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 185837e6fb56fSmrg # the default ld.so.conf also contains /usr/contrib/lib and 185847e6fb56fSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 185857e6fb56fSmrg # libtool to hard-code these into programs 185867e6fb56fSmrg ;; 185877e6fb56fSmrg 185887e6fb56fSmrgcygwin* | mingw* | pw32*) 185897e6fb56fSmrg version_type=windows 185907e6fb56fSmrg shrext_cmds=".dll" 185917e6fb56fSmrg need_version=no 185927e6fb56fSmrg need_lib_prefix=no 185937e6fb56fSmrg 185947e6fb56fSmrg case $GCC,$host_os in 185957e6fb56fSmrg yes,cygwin* | yes,mingw* | yes,pw32*) 185967e6fb56fSmrg library_names_spec='$libname.dll.a' 185977e6fb56fSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 185987e6fb56fSmrg postinstall_cmds='base_file=`basename \${file}`~ 185997e6fb56fSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 186007e6fb56fSmrg dldir=$destdir/`dirname \$dlpath`~ 186017e6fb56fSmrg test -d \$dldir || mkdir -p \$dldir~ 186027e6fb56fSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 186037e6fb56fSmrg chmod a+x \$dldir/$dlname' 186047e6fb56fSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 186057e6fb56fSmrg dlpath=$dir/\$dldll~ 186067e6fb56fSmrg $rm \$dlpath' 186077e6fb56fSmrg shlibpath_overrides_runpath=yes 186087e6fb56fSmrg 186097e6fb56fSmrg case $host_os in 186107e6fb56fSmrg cygwin*) 186117e6fb56fSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 186127e6fb56fSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 186137e6fb56fSmrg sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 186147e6fb56fSmrg ;; 186157e6fb56fSmrg mingw*) 186167e6fb56fSmrg # MinGW DLLs use traditional 'lib' prefix 186177e6fb56fSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 186187e6fb56fSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 186197e6fb56fSmrg if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 186207e6fb56fSmrg # It is most probably a Windows format PATH printed by 186217e6fb56fSmrg # mingw gcc, but we are running on Cygwin. Gcc prints its search 186227e6fb56fSmrg # path with ; separators, and with drive letters. We can handle the 186237e6fb56fSmrg # drive letters (cygwin fileutils understands them), so leave them, 186247e6fb56fSmrg # especially as we might pass files found there to a mingw objdump, 186257e6fb56fSmrg # which wouldn't understand a cygwinified path. Ahh. 186267e6fb56fSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 186277e6fb56fSmrg else 186287e6fb56fSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 186297e6fb56fSmrg fi 186307e6fb56fSmrg ;; 186317e6fb56fSmrg pw32*) 186327e6fb56fSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 186337e6fb56fSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 186347e6fb56fSmrg ;; 186357e6fb56fSmrg esac 186367e6fb56fSmrg ;; 186377e6fb56fSmrg 186387e6fb56fSmrg *) 186397e6fb56fSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 186407e6fb56fSmrg ;; 186417e6fb56fSmrg esac 186427e6fb56fSmrg dynamic_linker='Win32 ld.exe' 186437e6fb56fSmrg # FIXME: first we should search . and the directory the executable is in 186447e6fb56fSmrg shlibpath_var=PATH 186457e6fb56fSmrg ;; 186467e6fb56fSmrg 186477e6fb56fSmrgdarwin* | rhapsody*) 186487e6fb56fSmrg dynamic_linker="$host_os dyld" 186497e6fb56fSmrg version_type=darwin 186507e6fb56fSmrg need_lib_prefix=no 186517e6fb56fSmrg need_version=no 186527e6fb56fSmrg library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 186537e6fb56fSmrg soname_spec='${libname}${release}${major}$shared_ext' 186547e6fb56fSmrg shlibpath_overrides_runpath=yes 186557e6fb56fSmrg shlibpath_var=DYLD_LIBRARY_PATH 186567e6fb56fSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 186577e6fb56fSmrg 186587e6fb56fSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 186597e6fb56fSmrg ;; 186607e6fb56fSmrg 186617e6fb56fSmrgdgux*) 186627e6fb56fSmrg version_type=linux 186637e6fb56fSmrg need_lib_prefix=no 186647e6fb56fSmrg need_version=no 186657e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 186667e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 186677e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 186687e6fb56fSmrg ;; 186697e6fb56fSmrg 186707e6fb56fSmrgfreebsd1*) 186717e6fb56fSmrg dynamic_linker=no 186727e6fb56fSmrg ;; 186737e6fb56fSmrg 186747e6fb56fSmrgfreebsd* | dragonfly*) 186757e6fb56fSmrg # DragonFly does not have aout. When/if they implement a new 186767e6fb56fSmrg # versioning mechanism, adjust this. 186777e6fb56fSmrg if test -x /usr/bin/objformat; then 186787e6fb56fSmrg objformat=`/usr/bin/objformat` 186797e6fb56fSmrg else 186807e6fb56fSmrg case $host_os in 186817e6fb56fSmrg freebsd[123]*) objformat=aout ;; 186827e6fb56fSmrg *) objformat=elf ;; 186837e6fb56fSmrg esac 186847e6fb56fSmrg fi 186857e6fb56fSmrg version_type=freebsd-$objformat 186867e6fb56fSmrg case $version_type in 186877e6fb56fSmrg freebsd-elf*) 186887e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 186897e6fb56fSmrg need_version=no 186907e6fb56fSmrg need_lib_prefix=no 186917e6fb56fSmrg ;; 186927e6fb56fSmrg freebsd-*) 186937e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 186947e6fb56fSmrg need_version=yes 186957e6fb56fSmrg ;; 186967e6fb56fSmrg esac 186977e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 186987e6fb56fSmrg case $host_os in 186997e6fb56fSmrg freebsd2*) 187007e6fb56fSmrg shlibpath_overrides_runpath=yes 187017e6fb56fSmrg ;; 187027e6fb56fSmrg freebsd3.[01]* | freebsdelf3.[01]*) 187037e6fb56fSmrg shlibpath_overrides_runpath=yes 187047e6fb56fSmrg hardcode_into_libs=yes 187057e6fb56fSmrg ;; 187067e6fb56fSmrg freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 187077e6fb56fSmrg freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 187087e6fb56fSmrg shlibpath_overrides_runpath=no 187097e6fb56fSmrg hardcode_into_libs=yes 187107e6fb56fSmrg ;; 187117e6fb56fSmrg *) # from 4.6 on, and DragonFly 187127e6fb56fSmrg shlibpath_overrides_runpath=yes 187137e6fb56fSmrg hardcode_into_libs=yes 187147e6fb56fSmrg ;; 187157e6fb56fSmrg esac 187167e6fb56fSmrg ;; 187177e6fb56fSmrg 187187e6fb56fSmrggnu*) 187197e6fb56fSmrg version_type=linux 187207e6fb56fSmrg need_lib_prefix=no 187217e6fb56fSmrg need_version=no 187227e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 187237e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 187247e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 187257e6fb56fSmrg hardcode_into_libs=yes 187267e6fb56fSmrg ;; 187277e6fb56fSmrg 187287e6fb56fSmrghpux9* | hpux10* | hpux11*) 187297e6fb56fSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 187307e6fb56fSmrg # link against other versions. 187317e6fb56fSmrg version_type=sunos 187327e6fb56fSmrg need_lib_prefix=no 187337e6fb56fSmrg need_version=no 187347e6fb56fSmrg case $host_cpu in 187357e6fb56fSmrg ia64*) 187367e6fb56fSmrg shrext_cmds='.so' 187377e6fb56fSmrg hardcode_into_libs=yes 187387e6fb56fSmrg dynamic_linker="$host_os dld.so" 187397e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 187407e6fb56fSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 187417e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 187427e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 187437e6fb56fSmrg if test "X$HPUX_IA64_MODE" = X32; then 187447e6fb56fSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 187457e6fb56fSmrg else 187467e6fb56fSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 187477e6fb56fSmrg fi 187487e6fb56fSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 187497e6fb56fSmrg ;; 187507e6fb56fSmrg hppa*64*) 187517e6fb56fSmrg shrext_cmds='.sl' 187527e6fb56fSmrg hardcode_into_libs=yes 187537e6fb56fSmrg dynamic_linker="$host_os dld.sl" 187547e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 187557e6fb56fSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 187567e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 187577e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 187587e6fb56fSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 187597e6fb56fSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 187607e6fb56fSmrg ;; 187617e6fb56fSmrg *) 187627e6fb56fSmrg shrext_cmds='.sl' 187637e6fb56fSmrg dynamic_linker="$host_os dld.sl" 187647e6fb56fSmrg shlibpath_var=SHLIB_PATH 187657e6fb56fSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 187667e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 187677e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 187687e6fb56fSmrg ;; 187697e6fb56fSmrg esac 187707e6fb56fSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555. 187717e6fb56fSmrg postinstall_cmds='chmod 555 $lib' 187727e6fb56fSmrg ;; 187737e6fb56fSmrg 187747e6fb56fSmrginterix[3-9]*) 187757e6fb56fSmrg version_type=linux 187767e6fb56fSmrg need_lib_prefix=no 187777e6fb56fSmrg need_version=no 187787e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 187797e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 187807e6fb56fSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 187817e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 187827e6fb56fSmrg shlibpath_overrides_runpath=no 187837e6fb56fSmrg hardcode_into_libs=yes 187847e6fb56fSmrg ;; 187857e6fb56fSmrg 187867e6fb56fSmrgirix5* | irix6* | nonstopux*) 187877e6fb56fSmrg case $host_os in 187887e6fb56fSmrg nonstopux*) version_type=nonstopux ;; 187897e6fb56fSmrg *) 187907e6fb56fSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 187917e6fb56fSmrg version_type=linux 187927e6fb56fSmrg else 187937e6fb56fSmrg version_type=irix 187947e6fb56fSmrg fi ;; 187957e6fb56fSmrg esac 187967e6fb56fSmrg need_lib_prefix=no 187977e6fb56fSmrg need_version=no 187987e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 187997e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 188007e6fb56fSmrg case $host_os in 188017e6fb56fSmrg irix5* | nonstopux*) 188027e6fb56fSmrg libsuff= shlibsuff= 188037e6fb56fSmrg ;; 188047e6fb56fSmrg *) 188057e6fb56fSmrg case $LD in # libtool.m4 will add one of these switches to LD 188067e6fb56fSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 188077e6fb56fSmrg libsuff= shlibsuff= libmagic=32-bit;; 188087e6fb56fSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 188097e6fb56fSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 188107e6fb56fSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 188117e6fb56fSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 188127e6fb56fSmrg *) libsuff= shlibsuff= libmagic=never-match;; 188137e6fb56fSmrg esac 188147e6fb56fSmrg ;; 188157e6fb56fSmrg esac 188167e6fb56fSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 188177e6fb56fSmrg shlibpath_overrides_runpath=no 188187e6fb56fSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 188197e6fb56fSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 188207e6fb56fSmrg hardcode_into_libs=yes 188217e6fb56fSmrg ;; 188227e6fb56fSmrg 188237e6fb56fSmrg# No shared lib support for Linux oldld, aout, or coff. 188247e6fb56fSmrglinux*oldld* | linux*aout* | linux*coff*) 188257e6fb56fSmrg dynamic_linker=no 188267e6fb56fSmrg ;; 188277e6fb56fSmrg 188287e6fb56fSmrg# This must be Linux ELF. 188297e6fb56fSmrglinux* | k*bsd*-gnu) 188307e6fb56fSmrg version_type=linux 188317e6fb56fSmrg need_lib_prefix=no 188327e6fb56fSmrg need_version=no 188337e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 188347e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 188357e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 188367e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 188377e6fb56fSmrg shlibpath_overrides_runpath=no 188387e6fb56fSmrg # This implies no fast_install, which is unacceptable. 188397e6fb56fSmrg # Some rework will be needed to allow for fast_install 188407e6fb56fSmrg # before this can be enabled. 188417e6fb56fSmrg hardcode_into_libs=yes 188427e6fb56fSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 188437e6fb56fSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 188447e6fb56fSmrg 188457e6fb56fSmrg # Append ld.so.conf contents to the search path 188467e6fb56fSmrg if test -f /etc/ld.so.conf; then 188477e6fb56fSmrg 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;/^$/d' | tr '\n' ' '` 188487e6fb56fSmrg sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 188497e6fb56fSmrg fi 188507e6fb56fSmrg 188517e6fb56fSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 188527e6fb56fSmrg # powerpc, because MkLinux only supported shared libraries with the 188537e6fb56fSmrg # GNU dynamic linker. Since this was broken with cross compilers, 188547e6fb56fSmrg # most powerpc-linux boxes support dynamic linking these days and 188557e6fb56fSmrg # people can always --disable-shared, the test was removed, and we 188567e6fb56fSmrg # assume the GNU/Linux dynamic linker is in use. 188577e6fb56fSmrg dynamic_linker='GNU/Linux ld.so' 188587e6fb56fSmrg ;; 188597e6fb56fSmrg 188607e6fb56fSmrgnetbsd*) 188617e6fb56fSmrg version_type=sunos 188627e6fb56fSmrg need_lib_prefix=no 188637e6fb56fSmrg need_version=no 188647e6fb56fSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 188657e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 188667e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 188677e6fb56fSmrg dynamic_linker='NetBSD (a.out) ld.so' 188687e6fb56fSmrg else 188697e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 188707e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 188717e6fb56fSmrg dynamic_linker='NetBSD ld.elf_so' 188727e6fb56fSmrg fi 188737e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 188747e6fb56fSmrg shlibpath_overrides_runpath=yes 188757e6fb56fSmrg hardcode_into_libs=yes 188767e6fb56fSmrg ;; 188777e6fb56fSmrg 188787e6fb56fSmrgnewsos6) 188797e6fb56fSmrg version_type=linux 188807e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 188817e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 188827e6fb56fSmrg shlibpath_overrides_runpath=yes 188837e6fb56fSmrg ;; 188847e6fb56fSmrg 188857e6fb56fSmrgnto-qnx*) 188867e6fb56fSmrg version_type=linux 188877e6fb56fSmrg need_lib_prefix=no 188887e6fb56fSmrg need_version=no 188897e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 188907e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 188917e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 188927e6fb56fSmrg shlibpath_overrides_runpath=yes 188937e6fb56fSmrg ;; 188947e6fb56fSmrg 188957e6fb56fSmrgopenbsd*) 188967e6fb56fSmrg version_type=sunos 188977e6fb56fSmrg sys_lib_dlsearch_path_spec="/usr/lib" 188987e6fb56fSmrg need_lib_prefix=no 188997e6fb56fSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 189007e6fb56fSmrg case $host_os in 189017e6fb56fSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 189027e6fb56fSmrg *) need_version=no ;; 189037e6fb56fSmrg esac 189047e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 189057e6fb56fSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 189067e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 189077e6fb56fSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 189087e6fb56fSmrg case $host_os in 189097e6fb56fSmrg openbsd2.[89] | openbsd2.[89].*) 189107e6fb56fSmrg shlibpath_overrides_runpath=no 189117e6fb56fSmrg ;; 189127e6fb56fSmrg *) 189137e6fb56fSmrg shlibpath_overrides_runpath=yes 189147e6fb56fSmrg ;; 189157e6fb56fSmrg esac 189167e6fb56fSmrg else 189177e6fb56fSmrg shlibpath_overrides_runpath=yes 189187e6fb56fSmrg fi 189197e6fb56fSmrg ;; 189207e6fb56fSmrg 189217e6fb56fSmrgos2*) 189227e6fb56fSmrg libname_spec='$name' 189237e6fb56fSmrg shrext_cmds=".dll" 189247e6fb56fSmrg need_lib_prefix=no 189257e6fb56fSmrg library_names_spec='$libname${shared_ext} $libname.a' 189267e6fb56fSmrg dynamic_linker='OS/2 ld.exe' 189277e6fb56fSmrg shlibpath_var=LIBPATH 189287e6fb56fSmrg ;; 189297e6fb56fSmrg 189307e6fb56fSmrgosf3* | osf4* | osf5*) 189317e6fb56fSmrg version_type=osf 189327e6fb56fSmrg need_lib_prefix=no 189337e6fb56fSmrg need_version=no 189347e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 189357e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 189367e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 189377e6fb56fSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 189387e6fb56fSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 189397e6fb56fSmrg ;; 189407e6fb56fSmrg 189417e6fb56fSmrgrdos*) 189427e6fb56fSmrg dynamic_linker=no 189437e6fb56fSmrg ;; 189447e6fb56fSmrg 189457e6fb56fSmrgsolaris*) 189467e6fb56fSmrg version_type=linux 189477e6fb56fSmrg need_lib_prefix=no 189487e6fb56fSmrg need_version=no 189497e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 189507e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 189517e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 189527e6fb56fSmrg shlibpath_overrides_runpath=yes 189537e6fb56fSmrg hardcode_into_libs=yes 189547e6fb56fSmrg # ldd complains unless libraries are executable 189557e6fb56fSmrg postinstall_cmds='chmod +x $lib' 189567e6fb56fSmrg ;; 189577e6fb56fSmrg 189587e6fb56fSmrgsunos4*) 189597e6fb56fSmrg version_type=sunos 189607e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 189617e6fb56fSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 189627e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 189637e6fb56fSmrg shlibpath_overrides_runpath=yes 189647e6fb56fSmrg if test "$with_gnu_ld" = yes; then 189657e6fb56fSmrg need_lib_prefix=no 189667e6fb56fSmrg fi 189677e6fb56fSmrg need_version=yes 189687e6fb56fSmrg ;; 189697e6fb56fSmrg 189707e6fb56fSmrgsysv4 | sysv4.3*) 189717e6fb56fSmrg version_type=linux 189727e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 189737e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 189747e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 189757e6fb56fSmrg case $host_vendor in 189767e6fb56fSmrg sni) 189777e6fb56fSmrg shlibpath_overrides_runpath=no 189787e6fb56fSmrg need_lib_prefix=no 189797e6fb56fSmrg export_dynamic_flag_spec='${wl}-Blargedynsym' 189807e6fb56fSmrg runpath_var=LD_RUN_PATH 189817e6fb56fSmrg ;; 189827e6fb56fSmrg siemens) 189837e6fb56fSmrg need_lib_prefix=no 189847e6fb56fSmrg ;; 189857e6fb56fSmrg motorola) 189867e6fb56fSmrg need_lib_prefix=no 189877e6fb56fSmrg need_version=no 189887e6fb56fSmrg shlibpath_overrides_runpath=no 189897e6fb56fSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 189907e6fb56fSmrg ;; 189917e6fb56fSmrg esac 189927e6fb56fSmrg ;; 189937e6fb56fSmrg 189947e6fb56fSmrgsysv4*MP*) 189957e6fb56fSmrg if test -d /usr/nec ;then 189967e6fb56fSmrg version_type=linux 189977e6fb56fSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 189987e6fb56fSmrg soname_spec='$libname${shared_ext}.$major' 189997e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 190007e6fb56fSmrg fi 190017e6fb56fSmrg ;; 190027e6fb56fSmrg 190037e6fb56fSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 190047e6fb56fSmrg version_type=freebsd-elf 190057e6fb56fSmrg need_lib_prefix=no 190067e6fb56fSmrg need_version=no 190077e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 190087e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 190097e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 190107e6fb56fSmrg hardcode_into_libs=yes 190117e6fb56fSmrg if test "$with_gnu_ld" = yes; then 190127e6fb56fSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 190137e6fb56fSmrg shlibpath_overrides_runpath=no 190147e6fb56fSmrg else 190157e6fb56fSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 190167e6fb56fSmrg shlibpath_overrides_runpath=yes 190177e6fb56fSmrg case $host_os in 190187e6fb56fSmrg sco3.2v5*) 190197e6fb56fSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 190207e6fb56fSmrg ;; 190217e6fb56fSmrg esac 190227e6fb56fSmrg fi 190237e6fb56fSmrg sys_lib_dlsearch_path_spec='/usr/lib' 190247e6fb56fSmrg ;; 190257e6fb56fSmrg 190267e6fb56fSmrguts4*) 190277e6fb56fSmrg version_type=linux 190287e6fb56fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 190297e6fb56fSmrg soname_spec='${libname}${release}${shared_ext}$major' 190307e6fb56fSmrg shlibpath_var=LD_LIBRARY_PATH 190317e6fb56fSmrg ;; 190327e6fb56fSmrg 190337e6fb56fSmrg*) 190347e6fb56fSmrg dynamic_linker=no 190357e6fb56fSmrg ;; 190367e6fb56fSmrgesac 190377e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 190387e6fb56fSmrg$as_echo "$dynamic_linker" >&6; } 190397e6fb56fSmrgtest "$dynamic_linker" = no && can_build_shared=no 190407e6fb56fSmrg 190417e6fb56fSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 190427e6fb56fSmrg $as_echo_n "(cached) " >&6 190437e6fb56fSmrgelse 190447e6fb56fSmrg lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 190457e6fb56fSmrgfi 190467e6fb56fSmrg 190477e6fb56fSmrgsys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 190487e6fb56fSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 190497e6fb56fSmrg $as_echo_n "(cached) " >&6 190507e6fb56fSmrgelse 190517e6fb56fSmrg lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 190527e6fb56fSmrgfi 190537e6fb56fSmrg 190547e6fb56fSmrgsys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 190557e6fb56fSmrg 190567e6fb56fSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 190577e6fb56fSmrgif test "$GCC" = yes; then 190587e6fb56fSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 190597e6fb56fSmrgfi 190607e6fb56fSmrg 190617e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 190627e6fb56fSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 190637e6fb56fSmrghardcode_action_GCJ= 190647e6fb56fSmrgif test -n "$hardcode_libdir_flag_spec_GCJ" || \ 190657e6fb56fSmrg test -n "$runpath_var_GCJ" || \ 190667e6fb56fSmrg test "X$hardcode_automatic_GCJ" = "Xyes" ; then 190677e6fb56fSmrg 190687e6fb56fSmrg # We can hardcode non-existant directories. 190697e6fb56fSmrg if test "$hardcode_direct_GCJ" != no && 190707e6fb56fSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 190717e6fb56fSmrg # have to relink, otherwise we might link with an installed library 190727e6fb56fSmrg # when we should be linking with a yet-to-be-installed one 190737e6fb56fSmrg ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 190747e6fb56fSmrg test "$hardcode_minus_L_GCJ" != no; then 190757e6fb56fSmrg # Linking always hardcodes the temporary library directory. 190767e6fb56fSmrg hardcode_action_GCJ=relink 190777e6fb56fSmrg else 190787e6fb56fSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 190797e6fb56fSmrg hardcode_action_GCJ=immediate 190807e6fb56fSmrg fi 190817e6fb56fSmrgelse 190827e6fb56fSmrg # We cannot hardcode anything, or else we can only hardcode existing 190837e6fb56fSmrg # directories. 190847e6fb56fSmrg hardcode_action_GCJ=unsupported 190857e6fb56fSmrgfi 190867e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 190877e6fb56fSmrg$as_echo "$hardcode_action_GCJ" >&6; } 190887e6fb56fSmrg 190897e6fb56fSmrgif test "$hardcode_action_GCJ" = relink; then 190907e6fb56fSmrg # Fast installation is not supported 190917e6fb56fSmrg enable_fast_install=no 190927e6fb56fSmrgelif test "$shlibpath_overrides_runpath" = yes || 190937e6fb56fSmrg test "$enable_shared" = no; then 190947e6fb56fSmrg # Fast installation is not necessary 190957e6fb56fSmrg enable_fast_install=needless 190967e6fb56fSmrgfi 190977e6fb56fSmrg 190987e6fb56fSmrg 190997e6fb56fSmrg# The else clause should only fire when bootstrapping the 191007e6fb56fSmrg# libtool distribution, otherwise you forgot to ship ltmain.sh 191017e6fb56fSmrg# with your package, and you will get complaints that there are 191027e6fb56fSmrg# no rules to generate ltmain.sh. 191037e6fb56fSmrgif test -f "$ltmain"; then 191047e6fb56fSmrg # See if we are running on zsh, and set the options which allow our commands through 191057e6fb56fSmrg # without removal of \ escapes. 191067e6fb56fSmrg if test -n "${ZSH_VERSION+set}" ; then 191077e6fb56fSmrg setopt NO_GLOB_SUBST 191087e6fb56fSmrg fi 191097e6fb56fSmrg # Now quote all the things that may contain metacharacters while being 191107e6fb56fSmrg # careful not to overquote the AC_SUBSTed values. We take copies of the 191117e6fb56fSmrg # variables and quote the copies for generation of the libtool script. 191127e6fb56fSmrg for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 191137e6fb56fSmrg SED SHELL STRIP \ 191147e6fb56fSmrg libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 191157e6fb56fSmrg old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 191167e6fb56fSmrg deplibs_check_method reload_flag reload_cmds need_locks \ 191177e6fb56fSmrg lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 191187e6fb56fSmrg lt_cv_sys_global_symbol_to_c_name_address \ 191197e6fb56fSmrg sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 191207e6fb56fSmrg old_postinstall_cmds old_postuninstall_cmds \ 191217e6fb56fSmrg compiler_GCJ \ 191227e6fb56fSmrg CC_GCJ \ 191237e6fb56fSmrg LD_GCJ \ 191247e6fb56fSmrg lt_prog_compiler_wl_GCJ \ 191257e6fb56fSmrg lt_prog_compiler_pic_GCJ \ 191267e6fb56fSmrg lt_prog_compiler_static_GCJ \ 191277e6fb56fSmrg lt_prog_compiler_no_builtin_flag_GCJ \ 191287e6fb56fSmrg export_dynamic_flag_spec_GCJ \ 191297e6fb56fSmrg thread_safe_flag_spec_GCJ \ 191307e6fb56fSmrg whole_archive_flag_spec_GCJ \ 191317e6fb56fSmrg enable_shared_with_static_runtimes_GCJ \ 191327e6fb56fSmrg old_archive_cmds_GCJ \ 191337e6fb56fSmrg old_archive_from_new_cmds_GCJ \ 191347e6fb56fSmrg predep_objects_GCJ \ 191357e6fb56fSmrg postdep_objects_GCJ \ 191367e6fb56fSmrg predeps_GCJ \ 191377e6fb56fSmrg postdeps_GCJ \ 191387e6fb56fSmrg compiler_lib_search_path_GCJ \ 191397e6fb56fSmrg compiler_lib_search_dirs_GCJ \ 191407e6fb56fSmrg archive_cmds_GCJ \ 191417e6fb56fSmrg archive_expsym_cmds_GCJ \ 191427e6fb56fSmrg postinstall_cmds_GCJ \ 191437e6fb56fSmrg postuninstall_cmds_GCJ \ 191447e6fb56fSmrg old_archive_from_expsyms_cmds_GCJ \ 191457e6fb56fSmrg allow_undefined_flag_GCJ \ 191467e6fb56fSmrg no_undefined_flag_GCJ \ 191477e6fb56fSmrg export_symbols_cmds_GCJ \ 191487e6fb56fSmrg hardcode_libdir_flag_spec_GCJ \ 191497e6fb56fSmrg hardcode_libdir_flag_spec_ld_GCJ \ 191507e6fb56fSmrg hardcode_libdir_separator_GCJ \ 191517e6fb56fSmrg hardcode_automatic_GCJ \ 191527e6fb56fSmrg module_cmds_GCJ \ 191537e6fb56fSmrg module_expsym_cmds_GCJ \ 191547e6fb56fSmrg lt_cv_prog_compiler_c_o_GCJ \ 191557e6fb56fSmrg fix_srcfile_path_GCJ \ 191567e6fb56fSmrg exclude_expsyms_GCJ \ 191577e6fb56fSmrg include_expsyms_GCJ; do 191587e6fb56fSmrg 191597e6fb56fSmrg case $var in 191607e6fb56fSmrg old_archive_cmds_GCJ | \ 191617e6fb56fSmrg old_archive_from_new_cmds_GCJ | \ 191627e6fb56fSmrg archive_cmds_GCJ | \ 191637e6fb56fSmrg archive_expsym_cmds_GCJ | \ 191647e6fb56fSmrg module_cmds_GCJ | \ 191657e6fb56fSmrg module_expsym_cmds_GCJ | \ 191667e6fb56fSmrg old_archive_from_expsyms_cmds_GCJ | \ 191677e6fb56fSmrg export_symbols_cmds_GCJ | \ 191687e6fb56fSmrg extract_expsyms_cmds | reload_cmds | finish_cmds | \ 191697e6fb56fSmrg postinstall_cmds | postuninstall_cmds | \ 191707e6fb56fSmrg old_postinstall_cmds | old_postuninstall_cmds | \ 191717e6fb56fSmrg sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 191727e6fb56fSmrg # Double-quote double-evaled strings. 191737e6fb56fSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 191747e6fb56fSmrg ;; 191757e6fb56fSmrg *) 191767e6fb56fSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 191777e6fb56fSmrg ;; 191787e6fb56fSmrg esac 191797e6fb56fSmrg done 191807e6fb56fSmrg 191817e6fb56fSmrg case $lt_echo in 191827e6fb56fSmrg *'\$0 --fallback-echo"') 191837e6fb56fSmrg lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 191847e6fb56fSmrg ;; 191857e6fb56fSmrg esac 191867e6fb56fSmrg 191877e6fb56fSmrgcfgfile="$ofile" 191887e6fb56fSmrg 191897e6fb56fSmrg cat <<__EOF__ >> "$cfgfile" 191907e6fb56fSmrg# ### BEGIN LIBTOOL TAG CONFIG: $tagname 191917e6fb56fSmrg 191927e6fb56fSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 191937e6fb56fSmrg 191947e6fb56fSmrg# Shell to use when invoking shell scripts. 191957e6fb56fSmrgSHELL=$lt_SHELL 191967e6fb56fSmrg 191977e6fb56fSmrg# Whether or not to build shared libraries. 191987e6fb56fSmrgbuild_libtool_libs=$enable_shared 191997e6fb56fSmrg 192007e6fb56fSmrg# Whether or not to build static libraries. 192017e6fb56fSmrgbuild_old_libs=$enable_static 192027e6fb56fSmrg 192037e6fb56fSmrg# Whether or not to add -lc for building shared libraries. 192047e6fb56fSmrgbuild_libtool_need_lc=$archive_cmds_need_lc_GCJ 192057e6fb56fSmrg 192067e6fb56fSmrg# Whether or not to disallow shared libs when runtime libs are static 192077e6fb56fSmrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 192087e6fb56fSmrg 192097e6fb56fSmrg# Whether or not to optimize for fast installation. 192107e6fb56fSmrgfast_install=$enable_fast_install 192117e6fb56fSmrg 192127e6fb56fSmrg# The host system. 192137e6fb56fSmrghost_alias=$host_alias 192147e6fb56fSmrghost=$host 192157e6fb56fSmrghost_os=$host_os 192167e6fb56fSmrg 192177e6fb56fSmrg# The build system. 192187e6fb56fSmrgbuild_alias=$build_alias 192197e6fb56fSmrgbuild=$build 192207e6fb56fSmrgbuild_os=$build_os 192217e6fb56fSmrg 192227e6fb56fSmrg# An echo program that does not interpret backslashes. 192237e6fb56fSmrgecho=$lt_echo 192247e6fb56fSmrg 192257e6fb56fSmrg# The archiver. 192267e6fb56fSmrgAR=$lt_AR 192277e6fb56fSmrgAR_FLAGS=$lt_AR_FLAGS 192287e6fb56fSmrg 192297e6fb56fSmrg# A C compiler. 192307e6fb56fSmrgLTCC=$lt_LTCC 192317e6fb56fSmrg 192327e6fb56fSmrg# LTCC compiler flags. 192337e6fb56fSmrgLTCFLAGS=$lt_LTCFLAGS 192347e6fb56fSmrg 192357e6fb56fSmrg# A language-specific compiler. 192367e6fb56fSmrgCC=$lt_compiler_GCJ 192377e6fb56fSmrg 192387e6fb56fSmrg# Is the compiler the GNU C compiler? 192397e6fb56fSmrgwith_gcc=$GCC_GCJ 192407e6fb56fSmrg 192417e6fb56fSmrg# An ERE matcher. 192427e6fb56fSmrgEGREP=$lt_EGREP 192437e6fb56fSmrg 192447e6fb56fSmrg# The linker used to build libraries. 192457e6fb56fSmrgLD=$lt_LD_GCJ 192467e6fb56fSmrg 192477e6fb56fSmrg# Whether we need hard or soft links. 192487e6fb56fSmrgLN_S=$lt_LN_S 192497e6fb56fSmrg 192507e6fb56fSmrg# A BSD-compatible nm program. 192517e6fb56fSmrgNM=$lt_NM 192527e6fb56fSmrg 192537e6fb56fSmrg# A symbol stripping program 192547e6fb56fSmrgSTRIP=$lt_STRIP 192557e6fb56fSmrg 192567e6fb56fSmrg# Used to examine libraries when file_magic_cmd begins "file" 192577e6fb56fSmrgMAGIC_CMD=$MAGIC_CMD 192587e6fb56fSmrg 192597e6fb56fSmrg# Used on cygwin: DLL creation program. 192607e6fb56fSmrgDLLTOOL="$DLLTOOL" 192617e6fb56fSmrg 192627e6fb56fSmrg# Used on cygwin: object dumper. 192637e6fb56fSmrgOBJDUMP="$OBJDUMP" 192647e6fb56fSmrg 192657e6fb56fSmrg# Used on cygwin: assembler. 192667e6fb56fSmrgAS="$AS" 192677e6fb56fSmrg 192687e6fb56fSmrg# The name of the directory that contains temporary libtool files. 192697e6fb56fSmrgobjdir=$objdir 192707e6fb56fSmrg 192717e6fb56fSmrg# How to create reloadable object files. 192727e6fb56fSmrgreload_flag=$lt_reload_flag 192737e6fb56fSmrgreload_cmds=$lt_reload_cmds 192747e6fb56fSmrg 192757e6fb56fSmrg# How to pass a linker flag through the compiler. 192767e6fb56fSmrgwl=$lt_lt_prog_compiler_wl_GCJ 192777e6fb56fSmrg 192787e6fb56fSmrg# Object file suffix (normally "o"). 192797e6fb56fSmrgobjext="$ac_objext" 192807e6fb56fSmrg 192817e6fb56fSmrg# Old archive suffix (normally "a"). 192827e6fb56fSmrglibext="$libext" 192837e6fb56fSmrg 192847e6fb56fSmrg# Shared library suffix (normally ".so"). 192857e6fb56fSmrgshrext_cmds='$shrext_cmds' 192867e6fb56fSmrg 192877e6fb56fSmrg# Executable file suffix (normally ""). 192887e6fb56fSmrgexeext="$exeext" 192897e6fb56fSmrg 192907e6fb56fSmrg# Additional compiler flags for building library objects. 192917e6fb56fSmrgpic_flag=$lt_lt_prog_compiler_pic_GCJ 192927e6fb56fSmrgpic_mode=$pic_mode 192937e6fb56fSmrg 192947e6fb56fSmrg# What is the maximum length of a command? 192957e6fb56fSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 192967e6fb56fSmrg 192977e6fb56fSmrg# Does compiler simultaneously support -c and -o options? 192987e6fb56fSmrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 192997e6fb56fSmrg 193007e6fb56fSmrg# Must we lock files when doing compilation? 193017e6fb56fSmrgneed_locks=$lt_need_locks 193027e6fb56fSmrg 193037e6fb56fSmrg# Do we need the lib prefix for modules? 193047e6fb56fSmrgneed_lib_prefix=$need_lib_prefix 193057e6fb56fSmrg 193067e6fb56fSmrg# Do we need a version for libraries? 193077e6fb56fSmrgneed_version=$need_version 193087e6fb56fSmrg 193097e6fb56fSmrg# Whether dlopen is supported. 193107e6fb56fSmrgdlopen_support=$enable_dlopen 193117e6fb56fSmrg 193127e6fb56fSmrg# Whether dlopen of programs is supported. 193137e6fb56fSmrgdlopen_self=$enable_dlopen_self 193147e6fb56fSmrg 193157e6fb56fSmrg# Whether dlopen of statically linked programs is supported. 193167e6fb56fSmrgdlopen_self_static=$enable_dlopen_self_static 193177e6fb56fSmrg 193187e6fb56fSmrg# Compiler flag to prevent dynamic linking. 193197e6fb56fSmrglink_static_flag=$lt_lt_prog_compiler_static_GCJ 193207e6fb56fSmrg 193217e6fb56fSmrg# Compiler flag to turn off builtin functions. 193227e6fb56fSmrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 193237e6fb56fSmrg 193247e6fb56fSmrg# Compiler flag to allow reflexive dlopens. 193257e6fb56fSmrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 193267e6fb56fSmrg 193277e6fb56fSmrg# Compiler flag to generate shared objects directly from archives. 193287e6fb56fSmrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 193297e6fb56fSmrg 193307e6fb56fSmrg# Compiler flag to generate thread-safe objects. 193317e6fb56fSmrgthread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 193327e6fb56fSmrg 193337e6fb56fSmrg# Library versioning type. 193347e6fb56fSmrgversion_type=$version_type 193357e6fb56fSmrg 193367e6fb56fSmrg# Format of library name prefix. 193377e6fb56fSmrglibname_spec=$lt_libname_spec 193387e6fb56fSmrg 193397e6fb56fSmrg# List of archive names. First name is the real one, the rest are links. 193407e6fb56fSmrg# The last name is the one that the linker finds with -lNAME. 193417e6fb56fSmrglibrary_names_spec=$lt_library_names_spec 193427e6fb56fSmrg 193437e6fb56fSmrg# The coded name of the library, if different from the real name. 193447e6fb56fSmrgsoname_spec=$lt_soname_spec 193457e6fb56fSmrg 193467e6fb56fSmrg# Commands used to build and install an old-style archive. 193477e6fb56fSmrgRANLIB=$lt_RANLIB 193487e6fb56fSmrgold_archive_cmds=$lt_old_archive_cmds_GCJ 193497e6fb56fSmrgold_postinstall_cmds=$lt_old_postinstall_cmds 193507e6fb56fSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 193517e6fb56fSmrg 193527e6fb56fSmrg# Create an old-style archive from a shared archive. 193537e6fb56fSmrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 193547e6fb56fSmrg 193557e6fb56fSmrg# Create a temporary old-style archive to link instead of a shared archive. 193567e6fb56fSmrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 193577e6fb56fSmrg 193587e6fb56fSmrg# Commands used to build and install a shared archive. 193597e6fb56fSmrgarchive_cmds=$lt_archive_cmds_GCJ 193607e6fb56fSmrgarchive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 193617e6fb56fSmrgpostinstall_cmds=$lt_postinstall_cmds 193627e6fb56fSmrgpostuninstall_cmds=$lt_postuninstall_cmds 193637e6fb56fSmrg 193647e6fb56fSmrg# Commands used to build a loadable module (assumed same as above if empty) 193657e6fb56fSmrgmodule_cmds=$lt_module_cmds_GCJ 193667e6fb56fSmrgmodule_expsym_cmds=$lt_module_expsym_cmds_GCJ 193677e6fb56fSmrg 193687e6fb56fSmrg# Commands to strip libraries. 193697e6fb56fSmrgold_striplib=$lt_old_striplib 193707e6fb56fSmrgstriplib=$lt_striplib 193717e6fb56fSmrg 193727e6fb56fSmrg# Dependencies to place before the objects being linked to create a 193737e6fb56fSmrg# shared library. 193747e6fb56fSmrgpredep_objects=$lt_predep_objects_GCJ 193757e6fb56fSmrg 193767e6fb56fSmrg# Dependencies to place after the objects being linked to create a 193777e6fb56fSmrg# shared library. 193787e6fb56fSmrgpostdep_objects=$lt_postdep_objects_GCJ 193797e6fb56fSmrg 193807e6fb56fSmrg# Dependencies to place before the objects being linked to create a 193817e6fb56fSmrg# shared library. 193827e6fb56fSmrgpredeps=$lt_predeps_GCJ 193837e6fb56fSmrg 193847e6fb56fSmrg# Dependencies to place after the objects being linked to create a 193857e6fb56fSmrg# shared library. 193867e6fb56fSmrgpostdeps=$lt_postdeps_GCJ 193877e6fb56fSmrg 193887e6fb56fSmrg# The directories searched by this compiler when creating a shared 193897e6fb56fSmrg# library 193907e6fb56fSmrgcompiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 193917e6fb56fSmrg 193927e6fb56fSmrg# The library search path used internally by the compiler when linking 193937e6fb56fSmrg# a shared library. 193947e6fb56fSmrgcompiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 193957e6fb56fSmrg 193967e6fb56fSmrg# Method to check whether dependent libraries are shared objects. 193977e6fb56fSmrgdeplibs_check_method=$lt_deplibs_check_method 193987e6fb56fSmrg 193997e6fb56fSmrg# Command to use when deplibs_check_method == file_magic. 194007e6fb56fSmrgfile_magic_cmd=$lt_file_magic_cmd 194017e6fb56fSmrg 194027e6fb56fSmrg# Flag that allows shared libraries with undefined symbols to be built. 194037e6fb56fSmrgallow_undefined_flag=$lt_allow_undefined_flag_GCJ 194047e6fb56fSmrg 194057e6fb56fSmrg# Flag that forces no undefined symbols. 194067e6fb56fSmrgno_undefined_flag=$lt_no_undefined_flag_GCJ 194077e6fb56fSmrg 194087e6fb56fSmrg# Commands used to finish a libtool library installation in a directory. 194097e6fb56fSmrgfinish_cmds=$lt_finish_cmds 194107e6fb56fSmrg 194117e6fb56fSmrg# Same as above, but a single script fragment to be evaled but not shown. 194127e6fb56fSmrgfinish_eval=$lt_finish_eval 194137e6fb56fSmrg 194147e6fb56fSmrg# Take the output of nm and produce a listing of raw symbols and C names. 194157e6fb56fSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 194167e6fb56fSmrg 194177e6fb56fSmrg# Transform the output of nm in a proper C declaration 194187e6fb56fSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 194197e6fb56fSmrg 194207e6fb56fSmrg# Transform the output of nm in a C name address pair 194217e6fb56fSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 194227e6fb56fSmrg 194237e6fb56fSmrg# This is the shared library runtime path variable. 194247e6fb56fSmrgrunpath_var=$runpath_var 194257e6fb56fSmrg 194267e6fb56fSmrg# This is the shared library path variable. 194277e6fb56fSmrgshlibpath_var=$shlibpath_var 194287e6fb56fSmrg 194297e6fb56fSmrg# Is shlibpath searched before the hard-coded library search path? 194307e6fb56fSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 194317e6fb56fSmrg 194327e6fb56fSmrg# How to hardcode a shared library path into an executable. 194337e6fb56fSmrghardcode_action=$hardcode_action_GCJ 194347e6fb56fSmrg 194357e6fb56fSmrg# Whether we should hardcode library paths into libraries. 194367e6fb56fSmrghardcode_into_libs=$hardcode_into_libs 194377e6fb56fSmrg 194387e6fb56fSmrg# Flag to hardcode \$libdir into a binary during linking. 194397e6fb56fSmrg# This must work even if \$libdir does not exist. 194407e6fb56fSmrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 194417e6fb56fSmrg 194427e6fb56fSmrg# If ld is used when linking, flag to hardcode \$libdir into 194437e6fb56fSmrg# a binary during linking. This must work even if \$libdir does 194447e6fb56fSmrg# not exist. 194457e6fb56fSmrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 194467e6fb56fSmrg 194477e6fb56fSmrg# Whether we need a single -rpath flag with a separated argument. 194487e6fb56fSmrghardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 194497e6fb56fSmrg 194507e6fb56fSmrg# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 194517e6fb56fSmrg# resulting binary. 194527e6fb56fSmrghardcode_direct=$hardcode_direct_GCJ 194537e6fb56fSmrg 194547e6fb56fSmrg# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 194557e6fb56fSmrg# resulting binary. 194567e6fb56fSmrghardcode_minus_L=$hardcode_minus_L_GCJ 194577e6fb56fSmrg 194587e6fb56fSmrg# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 194597e6fb56fSmrg# the resulting binary. 194607e6fb56fSmrghardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 194617e6fb56fSmrg 194627e6fb56fSmrg# Set to yes if building a shared library automatically hardcodes DIR into the library 194637e6fb56fSmrg# and all subsequent libraries and executables linked against it. 194647e6fb56fSmrghardcode_automatic=$hardcode_automatic_GCJ 194657e6fb56fSmrg 194667e6fb56fSmrg# Variables whose values should be saved in libtool wrapper scripts and 194677e6fb56fSmrg# restored at relink time. 194687e6fb56fSmrgvariables_saved_for_relink="$variables_saved_for_relink" 194697e6fb56fSmrg 194707e6fb56fSmrg# Whether libtool must link a program against all its dependency libraries. 194717e6fb56fSmrglink_all_deplibs=$link_all_deplibs_GCJ 194727e6fb56fSmrg 194737e6fb56fSmrg# Compile-time system search path for libraries 194747e6fb56fSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 194757e6fb56fSmrg 194767e6fb56fSmrg# Run-time system search path for libraries 194777e6fb56fSmrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 194787e6fb56fSmrg 194797e6fb56fSmrg# Fix the shell variable \$srcfile for the compiler. 194807e6fb56fSmrgfix_srcfile_path=$lt_fix_srcfile_path 194817e6fb56fSmrg 194827e6fb56fSmrg# Set to yes if exported symbols are required. 194837e6fb56fSmrgalways_export_symbols=$always_export_symbols_GCJ 194847e6fb56fSmrg 194857e6fb56fSmrg# The commands to list exported symbols. 194867e6fb56fSmrgexport_symbols_cmds=$lt_export_symbols_cmds_GCJ 194877e6fb56fSmrg 194887e6fb56fSmrg# The commands to extract the exported symbol list from a shared archive. 194897e6fb56fSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 194907e6fb56fSmrg 194917e6fb56fSmrg# Symbols that should not be listed in the preloaded symbols. 194927e6fb56fSmrgexclude_expsyms=$lt_exclude_expsyms_GCJ 194937e6fb56fSmrg 194947e6fb56fSmrg# Symbols that must always be exported. 194957e6fb56fSmrginclude_expsyms=$lt_include_expsyms_GCJ 194967e6fb56fSmrg 194977e6fb56fSmrg# ### END LIBTOOL TAG CONFIG: $tagname 194987e6fb56fSmrg 194997e6fb56fSmrg__EOF__ 195007e6fb56fSmrg 195017e6fb56fSmrg 195027e6fb56fSmrgelse 195037e6fb56fSmrg # If there is no Makefile yet, we rely on a make rule to execute 195047e6fb56fSmrg # `config.status --recheck' to rerun these tests and create the 195057e6fb56fSmrg # libtool script then. 195067e6fb56fSmrg ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 195077e6fb56fSmrg if test -f "$ltmain_in"; then 195087e6fb56fSmrg test -f Makefile && make "$ltmain" 195097e6fb56fSmrg fi 195107e6fb56fSmrgfi 195117e6fb56fSmrg 195127e6fb56fSmrg 195137e6fb56fSmrgac_ext=c 195147e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 195157e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 195167e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 195177e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 195187e6fb56fSmrg 195197e6fb56fSmrgCC="$lt_save_CC" 195207e6fb56fSmrg 195217e6fb56fSmrg else 195227e6fb56fSmrg tagname="" 195237e6fb56fSmrg fi 195247e6fb56fSmrg ;; 195257e6fb56fSmrg 195267e6fb56fSmrg RC) 195277e6fb56fSmrg 195287e6fb56fSmrg 195297e6fb56fSmrg# Source file extension for RC test sources. 195307e6fb56fSmrgac_ext=rc 195317e6fb56fSmrg 195327e6fb56fSmrg# Object file extension for compiled RC test sources. 195337e6fb56fSmrgobjext=o 195347e6fb56fSmrgobjext_RC=$objext 195357e6fb56fSmrg 195367e6fb56fSmrg# Code to be used in simple compile tests 195377e6fb56fSmrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 195387e6fb56fSmrg 195397e6fb56fSmrg# Code to be used in simple link tests 195407e6fb56fSmrglt_simple_link_test_code="$lt_simple_compile_test_code" 195417e6fb56fSmrg 195427e6fb56fSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 195437e6fb56fSmrg 195447e6fb56fSmrg# If no C compiler was specified, use CC. 195457e6fb56fSmrgLTCC=${LTCC-"$CC"} 195467e6fb56fSmrg 195477e6fb56fSmrg# If no C compiler flags were specified, use CFLAGS. 195487e6fb56fSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 195497e6fb56fSmrg 195507e6fb56fSmrg# Allow CC to be a program name with arguments. 195517e6fb56fSmrgcompiler=$CC 195527e6fb56fSmrg 195537e6fb56fSmrg 195547e6fb56fSmrg# save warnings/boilerplate of simple test code 195557e6fb56fSmrgac_outfile=conftest.$ac_objext 195567e6fb56fSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 195577e6fb56fSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 195587e6fb56fSmrg_lt_compiler_boilerplate=`cat conftest.err` 195597e6fb56fSmrg$rm conftest* 195607e6fb56fSmrg 195617e6fb56fSmrgac_outfile=conftest.$ac_objext 195627e6fb56fSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 195637e6fb56fSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 195647e6fb56fSmrg_lt_linker_boilerplate=`cat conftest.err` 195657e6fb56fSmrg$rm -r conftest* 195667e6fb56fSmrg 195677e6fb56fSmrg 195687e6fb56fSmrg# Allow CC to be a program name with arguments. 195697e6fb56fSmrglt_save_CC="$CC" 195707e6fb56fSmrgCC=${RC-"windres"} 195717e6fb56fSmrgcompiler=$CC 195727e6fb56fSmrgcompiler_RC=$CC 195737e6fb56fSmrgfor cc_temp in $compiler""; do 195747e6fb56fSmrg case $cc_temp in 195757e6fb56fSmrg compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 195767e6fb56fSmrg distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 195777e6fb56fSmrg \-*) ;; 195787e6fb56fSmrg *) break;; 195797e6fb56fSmrg esac 195807e6fb56fSmrgdone 195817e6fb56fSmrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 195827e6fb56fSmrg 195837e6fb56fSmrglt_cv_prog_compiler_c_o_RC=yes 195847e6fb56fSmrg 195857e6fb56fSmrg# The else clause should only fire when bootstrapping the 195867e6fb56fSmrg# libtool distribution, otherwise you forgot to ship ltmain.sh 195877e6fb56fSmrg# with your package, and you will get complaints that there are 195887e6fb56fSmrg# no rules to generate ltmain.sh. 195897e6fb56fSmrgif test -f "$ltmain"; then 195907e6fb56fSmrg # See if we are running on zsh, and set the options which allow our commands through 195917e6fb56fSmrg # without removal of \ escapes. 195927e6fb56fSmrg if test -n "${ZSH_VERSION+set}" ; then 195937e6fb56fSmrg setopt NO_GLOB_SUBST 195947e6fb56fSmrg fi 195957e6fb56fSmrg # Now quote all the things that may contain metacharacters while being 195967e6fb56fSmrg # careful not to overquote the AC_SUBSTed values. We take copies of the 195977e6fb56fSmrg # variables and quote the copies for generation of the libtool script. 195987e6fb56fSmrg for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 195997e6fb56fSmrg SED SHELL STRIP \ 196007e6fb56fSmrg libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 196017e6fb56fSmrg old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 196027e6fb56fSmrg deplibs_check_method reload_flag reload_cmds need_locks \ 196037e6fb56fSmrg lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 196047e6fb56fSmrg lt_cv_sys_global_symbol_to_c_name_address \ 196057e6fb56fSmrg sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 196067e6fb56fSmrg old_postinstall_cmds old_postuninstall_cmds \ 196077e6fb56fSmrg compiler_RC \ 196087e6fb56fSmrg CC_RC \ 196097e6fb56fSmrg LD_RC \ 196107e6fb56fSmrg lt_prog_compiler_wl_RC \ 196117e6fb56fSmrg lt_prog_compiler_pic_RC \ 196127e6fb56fSmrg lt_prog_compiler_static_RC \ 196137e6fb56fSmrg lt_prog_compiler_no_builtin_flag_RC \ 196147e6fb56fSmrg export_dynamic_flag_spec_RC \ 196157e6fb56fSmrg thread_safe_flag_spec_RC \ 196167e6fb56fSmrg whole_archive_flag_spec_RC \ 196177e6fb56fSmrg enable_shared_with_static_runtimes_RC \ 196187e6fb56fSmrg old_archive_cmds_RC \ 196197e6fb56fSmrg old_archive_from_new_cmds_RC \ 196207e6fb56fSmrg predep_objects_RC \ 196217e6fb56fSmrg postdep_objects_RC \ 196227e6fb56fSmrg predeps_RC \ 196237e6fb56fSmrg postdeps_RC \ 196247e6fb56fSmrg compiler_lib_search_path_RC \ 196257e6fb56fSmrg compiler_lib_search_dirs_RC \ 196267e6fb56fSmrg archive_cmds_RC \ 196277e6fb56fSmrg archive_expsym_cmds_RC \ 196287e6fb56fSmrg postinstall_cmds_RC \ 196297e6fb56fSmrg postuninstall_cmds_RC \ 196307e6fb56fSmrg old_archive_from_expsyms_cmds_RC \ 196317e6fb56fSmrg allow_undefined_flag_RC \ 196327e6fb56fSmrg no_undefined_flag_RC \ 196337e6fb56fSmrg export_symbols_cmds_RC \ 196347e6fb56fSmrg hardcode_libdir_flag_spec_RC \ 196357e6fb56fSmrg hardcode_libdir_flag_spec_ld_RC \ 196367e6fb56fSmrg hardcode_libdir_separator_RC \ 196377e6fb56fSmrg hardcode_automatic_RC \ 196387e6fb56fSmrg module_cmds_RC \ 196397e6fb56fSmrg module_expsym_cmds_RC \ 196407e6fb56fSmrg lt_cv_prog_compiler_c_o_RC \ 196417e6fb56fSmrg fix_srcfile_path_RC \ 196427e6fb56fSmrg exclude_expsyms_RC \ 196437e6fb56fSmrg include_expsyms_RC; do 196447e6fb56fSmrg 196457e6fb56fSmrg case $var in 196467e6fb56fSmrg old_archive_cmds_RC | \ 196477e6fb56fSmrg old_archive_from_new_cmds_RC | \ 196487e6fb56fSmrg archive_cmds_RC | \ 196497e6fb56fSmrg archive_expsym_cmds_RC | \ 196507e6fb56fSmrg module_cmds_RC | \ 196517e6fb56fSmrg module_expsym_cmds_RC | \ 196527e6fb56fSmrg old_archive_from_expsyms_cmds_RC | \ 196537e6fb56fSmrg export_symbols_cmds_RC | \ 196547e6fb56fSmrg extract_expsyms_cmds | reload_cmds | finish_cmds | \ 196557e6fb56fSmrg postinstall_cmds | postuninstall_cmds | \ 196567e6fb56fSmrg old_postinstall_cmds | old_postuninstall_cmds | \ 196577e6fb56fSmrg sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 196587e6fb56fSmrg # Double-quote double-evaled strings. 196597e6fb56fSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 196607e6fb56fSmrg ;; 196617e6fb56fSmrg *) 196627e6fb56fSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 196637e6fb56fSmrg ;; 196647e6fb56fSmrg esac 196657e6fb56fSmrg done 196667e6fb56fSmrg 196677e6fb56fSmrg case $lt_echo in 196687e6fb56fSmrg *'\$0 --fallback-echo"') 196697e6fb56fSmrg lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 196707e6fb56fSmrg ;; 196717e6fb56fSmrg esac 196727e6fb56fSmrg 196737e6fb56fSmrgcfgfile="$ofile" 196747e6fb56fSmrg 196757e6fb56fSmrg cat <<__EOF__ >> "$cfgfile" 196767e6fb56fSmrg# ### BEGIN LIBTOOL TAG CONFIG: $tagname 196777e6fb56fSmrg 196787e6fb56fSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 196797e6fb56fSmrg 196807e6fb56fSmrg# Shell to use when invoking shell scripts. 196817e6fb56fSmrgSHELL=$lt_SHELL 196827e6fb56fSmrg 196837e6fb56fSmrg# Whether or not to build shared libraries. 196847e6fb56fSmrgbuild_libtool_libs=$enable_shared 196857e6fb56fSmrg 196867e6fb56fSmrg# Whether or not to build static libraries. 196877e6fb56fSmrgbuild_old_libs=$enable_static 196887e6fb56fSmrg 196897e6fb56fSmrg# Whether or not to add -lc for building shared libraries. 196907e6fb56fSmrgbuild_libtool_need_lc=$archive_cmds_need_lc_RC 196917e6fb56fSmrg 196927e6fb56fSmrg# Whether or not to disallow shared libs when runtime libs are static 196937e6fb56fSmrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 196947e6fb56fSmrg 196957e6fb56fSmrg# Whether or not to optimize for fast installation. 196967e6fb56fSmrgfast_install=$enable_fast_install 196977e6fb56fSmrg 196987e6fb56fSmrg# The host system. 196997e6fb56fSmrghost_alias=$host_alias 197007e6fb56fSmrghost=$host 197017e6fb56fSmrghost_os=$host_os 197027e6fb56fSmrg 197037e6fb56fSmrg# The build system. 197047e6fb56fSmrgbuild_alias=$build_alias 197057e6fb56fSmrgbuild=$build 197067e6fb56fSmrgbuild_os=$build_os 197077e6fb56fSmrg 197087e6fb56fSmrg# An echo program that does not interpret backslashes. 197097e6fb56fSmrgecho=$lt_echo 197107e6fb56fSmrg 197117e6fb56fSmrg# The archiver. 197127e6fb56fSmrgAR=$lt_AR 197137e6fb56fSmrgAR_FLAGS=$lt_AR_FLAGS 197147e6fb56fSmrg 197157e6fb56fSmrg# A C compiler. 197167e6fb56fSmrgLTCC=$lt_LTCC 197177e6fb56fSmrg 197187e6fb56fSmrg# LTCC compiler flags. 197197e6fb56fSmrgLTCFLAGS=$lt_LTCFLAGS 197207e6fb56fSmrg 197217e6fb56fSmrg# A language-specific compiler. 197227e6fb56fSmrgCC=$lt_compiler_RC 197237e6fb56fSmrg 197247e6fb56fSmrg# Is the compiler the GNU C compiler? 197257e6fb56fSmrgwith_gcc=$GCC_RC 197267e6fb56fSmrg 197277e6fb56fSmrg# An ERE matcher. 197287e6fb56fSmrgEGREP=$lt_EGREP 197297e6fb56fSmrg 197307e6fb56fSmrg# The linker used to build libraries. 197317e6fb56fSmrgLD=$lt_LD_RC 197327e6fb56fSmrg 197337e6fb56fSmrg# Whether we need hard or soft links. 197347e6fb56fSmrgLN_S=$lt_LN_S 197357e6fb56fSmrg 197367e6fb56fSmrg# A BSD-compatible nm program. 197377e6fb56fSmrgNM=$lt_NM 197387e6fb56fSmrg 197397e6fb56fSmrg# A symbol stripping program 197407e6fb56fSmrgSTRIP=$lt_STRIP 197417e6fb56fSmrg 197427e6fb56fSmrg# Used to examine libraries when file_magic_cmd begins "file" 197437e6fb56fSmrgMAGIC_CMD=$MAGIC_CMD 197447e6fb56fSmrg 197457e6fb56fSmrg# Used on cygwin: DLL creation program. 197467e6fb56fSmrgDLLTOOL="$DLLTOOL" 197477e6fb56fSmrg 197487e6fb56fSmrg# Used on cygwin: object dumper. 197497e6fb56fSmrgOBJDUMP="$OBJDUMP" 197507e6fb56fSmrg 197517e6fb56fSmrg# Used on cygwin: assembler. 197527e6fb56fSmrgAS="$AS" 197537e6fb56fSmrg 197547e6fb56fSmrg# The name of the directory that contains temporary libtool files. 197557e6fb56fSmrgobjdir=$objdir 197567e6fb56fSmrg 197577e6fb56fSmrg# How to create reloadable object files. 197587e6fb56fSmrgreload_flag=$lt_reload_flag 197597e6fb56fSmrgreload_cmds=$lt_reload_cmds 197607e6fb56fSmrg 197617e6fb56fSmrg# How to pass a linker flag through the compiler. 197627e6fb56fSmrgwl=$lt_lt_prog_compiler_wl_RC 197637e6fb56fSmrg 197647e6fb56fSmrg# Object file suffix (normally "o"). 197657e6fb56fSmrgobjext="$ac_objext" 197667e6fb56fSmrg 197677e6fb56fSmrg# Old archive suffix (normally "a"). 197687e6fb56fSmrglibext="$libext" 197697e6fb56fSmrg 197707e6fb56fSmrg# Shared library suffix (normally ".so"). 197717e6fb56fSmrgshrext_cmds='$shrext_cmds' 197727e6fb56fSmrg 197737e6fb56fSmrg# Executable file suffix (normally ""). 197747e6fb56fSmrgexeext="$exeext" 197757e6fb56fSmrg 197767e6fb56fSmrg# Additional compiler flags for building library objects. 197777e6fb56fSmrgpic_flag=$lt_lt_prog_compiler_pic_RC 197787e6fb56fSmrgpic_mode=$pic_mode 197797e6fb56fSmrg 197807e6fb56fSmrg# What is the maximum length of a command? 197817e6fb56fSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 197827e6fb56fSmrg 197837e6fb56fSmrg# Does compiler simultaneously support -c and -o options? 197847e6fb56fSmrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 197857e6fb56fSmrg 197867e6fb56fSmrg# Must we lock files when doing compilation? 197877e6fb56fSmrgneed_locks=$lt_need_locks 197887e6fb56fSmrg 197897e6fb56fSmrg# Do we need the lib prefix for modules? 197907e6fb56fSmrgneed_lib_prefix=$need_lib_prefix 197917e6fb56fSmrg 197927e6fb56fSmrg# Do we need a version for libraries? 197937e6fb56fSmrgneed_version=$need_version 197947e6fb56fSmrg 197957e6fb56fSmrg# Whether dlopen is supported. 197967e6fb56fSmrgdlopen_support=$enable_dlopen 197977e6fb56fSmrg 197987e6fb56fSmrg# Whether dlopen of programs is supported. 197997e6fb56fSmrgdlopen_self=$enable_dlopen_self 198007e6fb56fSmrg 198017e6fb56fSmrg# Whether dlopen of statically linked programs is supported. 198027e6fb56fSmrgdlopen_self_static=$enable_dlopen_self_static 198037e6fb56fSmrg 198047e6fb56fSmrg# Compiler flag to prevent dynamic linking. 198057e6fb56fSmrglink_static_flag=$lt_lt_prog_compiler_static_RC 198067e6fb56fSmrg 198077e6fb56fSmrg# Compiler flag to turn off builtin functions. 198087e6fb56fSmrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 198097e6fb56fSmrg 198107e6fb56fSmrg# Compiler flag to allow reflexive dlopens. 198117e6fb56fSmrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 198127e6fb56fSmrg 198137e6fb56fSmrg# Compiler flag to generate shared objects directly from archives. 198147e6fb56fSmrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 198157e6fb56fSmrg 198167e6fb56fSmrg# Compiler flag to generate thread-safe objects. 198177e6fb56fSmrgthread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 198187e6fb56fSmrg 198197e6fb56fSmrg# Library versioning type. 198207e6fb56fSmrgversion_type=$version_type 198217e6fb56fSmrg 198227e6fb56fSmrg# Format of library name prefix. 198237e6fb56fSmrglibname_spec=$lt_libname_spec 198247e6fb56fSmrg 198257e6fb56fSmrg# List of archive names. First name is the real one, the rest are links. 198267e6fb56fSmrg# The last name is the one that the linker finds with -lNAME. 198277e6fb56fSmrglibrary_names_spec=$lt_library_names_spec 198287e6fb56fSmrg 198297e6fb56fSmrg# The coded name of the library, if different from the real name. 198307e6fb56fSmrgsoname_spec=$lt_soname_spec 198317e6fb56fSmrg 198327e6fb56fSmrg# Commands used to build and install an old-style archive. 198337e6fb56fSmrgRANLIB=$lt_RANLIB 198347e6fb56fSmrgold_archive_cmds=$lt_old_archive_cmds_RC 198357e6fb56fSmrgold_postinstall_cmds=$lt_old_postinstall_cmds 198367e6fb56fSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 198377e6fb56fSmrg 198387e6fb56fSmrg# Create an old-style archive from a shared archive. 198397e6fb56fSmrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 198407e6fb56fSmrg 198417e6fb56fSmrg# Create a temporary old-style archive to link instead of a shared archive. 198427e6fb56fSmrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 198437e6fb56fSmrg 198447e6fb56fSmrg# Commands used to build and install a shared archive. 198457e6fb56fSmrgarchive_cmds=$lt_archive_cmds_RC 198467e6fb56fSmrgarchive_expsym_cmds=$lt_archive_expsym_cmds_RC 198477e6fb56fSmrgpostinstall_cmds=$lt_postinstall_cmds 198487e6fb56fSmrgpostuninstall_cmds=$lt_postuninstall_cmds 198497e6fb56fSmrg 198507e6fb56fSmrg# Commands used to build a loadable module (assumed same as above if empty) 198517e6fb56fSmrgmodule_cmds=$lt_module_cmds_RC 198527e6fb56fSmrgmodule_expsym_cmds=$lt_module_expsym_cmds_RC 198537e6fb56fSmrg 198547e6fb56fSmrg# Commands to strip libraries. 198557e6fb56fSmrgold_striplib=$lt_old_striplib 198567e6fb56fSmrgstriplib=$lt_striplib 198577e6fb56fSmrg 198587e6fb56fSmrg# Dependencies to place before the objects being linked to create a 198597e6fb56fSmrg# shared library. 198607e6fb56fSmrgpredep_objects=$lt_predep_objects_RC 198617e6fb56fSmrg 198627e6fb56fSmrg# Dependencies to place after the objects being linked to create a 198637e6fb56fSmrg# shared library. 198647e6fb56fSmrgpostdep_objects=$lt_postdep_objects_RC 198657e6fb56fSmrg 198667e6fb56fSmrg# Dependencies to place before the objects being linked to create a 198677e6fb56fSmrg# shared library. 198687e6fb56fSmrgpredeps=$lt_predeps_RC 198697e6fb56fSmrg 198707e6fb56fSmrg# Dependencies to place after the objects being linked to create a 198717e6fb56fSmrg# shared library. 198727e6fb56fSmrgpostdeps=$lt_postdeps_RC 198737e6fb56fSmrg 198747e6fb56fSmrg# The directories searched by this compiler when creating a shared 198757e6fb56fSmrg# library 198767e6fb56fSmrgcompiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 198777e6fb56fSmrg 198787e6fb56fSmrg# The library search path used internally by the compiler when linking 198797e6fb56fSmrg# a shared library. 198807e6fb56fSmrgcompiler_lib_search_path=$lt_compiler_lib_search_path_RC 198817e6fb56fSmrg 198827e6fb56fSmrg# Method to check whether dependent libraries are shared objects. 198837e6fb56fSmrgdeplibs_check_method=$lt_deplibs_check_method 198847e6fb56fSmrg 198857e6fb56fSmrg# Command to use when deplibs_check_method == file_magic. 198867e6fb56fSmrgfile_magic_cmd=$lt_file_magic_cmd 198877e6fb56fSmrg 198887e6fb56fSmrg# Flag that allows shared libraries with undefined symbols to be built. 198897e6fb56fSmrgallow_undefined_flag=$lt_allow_undefined_flag_RC 198907e6fb56fSmrg 198917e6fb56fSmrg# Flag that forces no undefined symbols. 198927e6fb56fSmrgno_undefined_flag=$lt_no_undefined_flag_RC 198937e6fb56fSmrg 198947e6fb56fSmrg# Commands used to finish a libtool library installation in a directory. 198957e6fb56fSmrgfinish_cmds=$lt_finish_cmds 198967e6fb56fSmrg 198977e6fb56fSmrg# Same as above, but a single script fragment to be evaled but not shown. 198987e6fb56fSmrgfinish_eval=$lt_finish_eval 198997e6fb56fSmrg 199007e6fb56fSmrg# Take the output of nm and produce a listing of raw symbols and C names. 199017e6fb56fSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 199027e6fb56fSmrg 199037e6fb56fSmrg# Transform the output of nm in a proper C declaration 199047e6fb56fSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 199057e6fb56fSmrg 199067e6fb56fSmrg# Transform the output of nm in a C name address pair 199077e6fb56fSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 199087e6fb56fSmrg 199097e6fb56fSmrg# This is the shared library runtime path variable. 199107e6fb56fSmrgrunpath_var=$runpath_var 199117e6fb56fSmrg 199127e6fb56fSmrg# This is the shared library path variable. 199137e6fb56fSmrgshlibpath_var=$shlibpath_var 199147e6fb56fSmrg 199157e6fb56fSmrg# Is shlibpath searched before the hard-coded library search path? 199167e6fb56fSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 199177e6fb56fSmrg 199187e6fb56fSmrg# How to hardcode a shared library path into an executable. 199197e6fb56fSmrghardcode_action=$hardcode_action_RC 199207e6fb56fSmrg 199217e6fb56fSmrg# Whether we should hardcode library paths into libraries. 199227e6fb56fSmrghardcode_into_libs=$hardcode_into_libs 199237e6fb56fSmrg 199247e6fb56fSmrg# Flag to hardcode \$libdir into a binary during linking. 199257e6fb56fSmrg# This must work even if \$libdir does not exist. 199267e6fb56fSmrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 199277e6fb56fSmrg 199287e6fb56fSmrg# If ld is used when linking, flag to hardcode \$libdir into 199297e6fb56fSmrg# a binary during linking. This must work even if \$libdir does 199307e6fb56fSmrg# not exist. 199317e6fb56fSmrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 199327e6fb56fSmrg 199337e6fb56fSmrg# Whether we need a single -rpath flag with a separated argument. 199347e6fb56fSmrghardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 199357e6fb56fSmrg 199367e6fb56fSmrg# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 199377e6fb56fSmrg# resulting binary. 199387e6fb56fSmrghardcode_direct=$hardcode_direct_RC 199397e6fb56fSmrg 199407e6fb56fSmrg# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 199417e6fb56fSmrg# resulting binary. 199427e6fb56fSmrghardcode_minus_L=$hardcode_minus_L_RC 199437e6fb56fSmrg 199447e6fb56fSmrg# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 199457e6fb56fSmrg# the resulting binary. 199467e6fb56fSmrghardcode_shlibpath_var=$hardcode_shlibpath_var_RC 199477e6fb56fSmrg 199487e6fb56fSmrg# Set to yes if building a shared library automatically hardcodes DIR into the library 199497e6fb56fSmrg# and all subsequent libraries and executables linked against it. 199507e6fb56fSmrghardcode_automatic=$hardcode_automatic_RC 199517e6fb56fSmrg 199527e6fb56fSmrg# Variables whose values should be saved in libtool wrapper scripts and 199537e6fb56fSmrg# restored at relink time. 199547e6fb56fSmrgvariables_saved_for_relink="$variables_saved_for_relink" 199557e6fb56fSmrg 199567e6fb56fSmrg# Whether libtool must link a program against all its dependency libraries. 199577e6fb56fSmrglink_all_deplibs=$link_all_deplibs_RC 199587e6fb56fSmrg 199597e6fb56fSmrg# Compile-time system search path for libraries 199607e6fb56fSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 199617e6fb56fSmrg 199627e6fb56fSmrg# Run-time system search path for libraries 199637e6fb56fSmrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 199647e6fb56fSmrg 199657e6fb56fSmrg# Fix the shell variable \$srcfile for the compiler. 199667e6fb56fSmrgfix_srcfile_path=$lt_fix_srcfile_path 199677e6fb56fSmrg 199687e6fb56fSmrg# Set to yes if exported symbols are required. 199697e6fb56fSmrgalways_export_symbols=$always_export_symbols_RC 199707e6fb56fSmrg 199717e6fb56fSmrg# The commands to list exported symbols. 199727e6fb56fSmrgexport_symbols_cmds=$lt_export_symbols_cmds_RC 199737e6fb56fSmrg 199747e6fb56fSmrg# The commands to extract the exported symbol list from a shared archive. 199757e6fb56fSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 199767e6fb56fSmrg 199777e6fb56fSmrg# Symbols that should not be listed in the preloaded symbols. 199787e6fb56fSmrgexclude_expsyms=$lt_exclude_expsyms_RC 199797e6fb56fSmrg 199807e6fb56fSmrg# Symbols that must always be exported. 199817e6fb56fSmrginclude_expsyms=$lt_include_expsyms_RC 199827e6fb56fSmrg 199837e6fb56fSmrg# ### END LIBTOOL TAG CONFIG: $tagname 199847e6fb56fSmrg 199857e6fb56fSmrg__EOF__ 199867e6fb56fSmrg 199877e6fb56fSmrg 199887e6fb56fSmrgelse 199897e6fb56fSmrg # If there is no Makefile yet, we rely on a make rule to execute 199907e6fb56fSmrg # `config.status --recheck' to rerun these tests and create the 199917e6fb56fSmrg # libtool script then. 199927e6fb56fSmrg ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 199937e6fb56fSmrg if test -f "$ltmain_in"; then 199947e6fb56fSmrg test -f Makefile && make "$ltmain" 199957e6fb56fSmrg fi 199967e6fb56fSmrgfi 199977e6fb56fSmrg 199987e6fb56fSmrg 199997e6fb56fSmrgac_ext=c 200007e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 200017e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 200027e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 200037e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 200047e6fb56fSmrg 200057e6fb56fSmrgCC="$lt_save_CC" 200067e6fb56fSmrg 200077e6fb56fSmrg ;; 200087e6fb56fSmrg 200097e6fb56fSmrg *) 200107e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 200117e6fb56fSmrg$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 200127e6fb56fSmrg { (exit 1); exit 1; }; } 200137e6fb56fSmrg ;; 200147e6fb56fSmrg esac 200157e6fb56fSmrg 200167e6fb56fSmrg # Append the new tag name to the list of available tags. 200177e6fb56fSmrg if test -n "$tagname" ; then 200187e6fb56fSmrg available_tags="$available_tags $tagname" 200197e6fb56fSmrg fi 200207e6fb56fSmrg fi 200217e6fb56fSmrg done 200227e6fb56fSmrg IFS="$lt_save_ifs" 200237e6fb56fSmrg 200247e6fb56fSmrg # Now substitute the updated list of available tags. 200257e6fb56fSmrg if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 200267e6fb56fSmrg mv "${ofile}T" "$ofile" 200277e6fb56fSmrg chmod +x "$ofile" 200287e6fb56fSmrg else 200297e6fb56fSmrg rm -f "${ofile}T" 200307e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 200317e6fb56fSmrg$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 200327e6fb56fSmrg { (exit 1); exit 1; }; } 200337e6fb56fSmrg fi 200347e6fb56fSmrgfi 200357e6fb56fSmrg 200367e6fb56fSmrg 200377e6fb56fSmrg 200387e6fb56fSmrg# This can be used to rebuild libtool when needed 200397e6fb56fSmrgLIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 200407e6fb56fSmrg 200417e6fb56fSmrg# Always use our own libtool. 200427e6fb56fSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 200437e6fb56fSmrg 200447e6fb56fSmrg# Prevent multiple expansion 200457e6fb56fSmrg 200467e6fb56fSmrg 200477e6fb56fSmrg 200487e6fb56fSmrg 200497e6fb56fSmrg 200507e6fb56fSmrg 200517e6fb56fSmrg 200527e6fb56fSmrg 200537e6fb56fSmrg 200547e6fb56fSmrg 200557e6fb56fSmrg 200567e6fb56fSmrg 200577e6fb56fSmrg 200587e6fb56fSmrg 200597e6fb56fSmrg 200607e6fb56fSmrg 200617e6fb56fSmrg 200627e6fb56fSmrg 200637e6fb56fSmrg 200647e6fb56fSmrg 200657e6fb56fSmrgac_ext=c 200667e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 200677e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 200687e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 200697e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 200707e6fb56fSmrgif test -n "$ac_tool_prefix"; then 200717e6fb56fSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 200727e6fb56fSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 200737e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 200747e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 200757e6fb56fSmrgif test "${ac_cv_prog_CC+set}" = set; then 200767e6fb56fSmrg $as_echo_n "(cached) " >&6 200777e6fb56fSmrgelse 200787e6fb56fSmrg if test -n "$CC"; then 200797e6fb56fSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 200807e6fb56fSmrgelse 200817e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200827e6fb56fSmrgfor as_dir in $PATH 200837e6fb56fSmrgdo 200847e6fb56fSmrg IFS=$as_save_IFS 200857e6fb56fSmrg test -z "$as_dir" && as_dir=. 200867e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 200877e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 200887e6fb56fSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 200897e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 200907e6fb56fSmrg break 2 200917e6fb56fSmrg fi 200927e6fb56fSmrgdone 200937e6fb56fSmrgdone 200947e6fb56fSmrgIFS=$as_save_IFS 200957e6fb56fSmrg 200967e6fb56fSmrgfi 200977e6fb56fSmrgfi 200987e6fb56fSmrgCC=$ac_cv_prog_CC 200997e6fb56fSmrgif test -n "$CC"; then 201007e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 201017e6fb56fSmrg$as_echo "$CC" >&6; } 201027e6fb56fSmrgelse 201037e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 201047e6fb56fSmrg$as_echo "no" >&6; } 201057e6fb56fSmrgfi 201067e6fb56fSmrg 201077e6fb56fSmrg 201087e6fb56fSmrgfi 201097e6fb56fSmrgif test -z "$ac_cv_prog_CC"; then 201107e6fb56fSmrg ac_ct_CC=$CC 201117e6fb56fSmrg # Extract the first word of "gcc", so it can be a program name with args. 201127e6fb56fSmrgset dummy gcc; ac_word=$2 201137e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 201147e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 201157e6fb56fSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 201167e6fb56fSmrg $as_echo_n "(cached) " >&6 201177e6fb56fSmrgelse 201187e6fb56fSmrg if test -n "$ac_ct_CC"; then 201197e6fb56fSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 201207e6fb56fSmrgelse 201217e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 201227e6fb56fSmrgfor as_dir in $PATH 201237e6fb56fSmrgdo 201247e6fb56fSmrg IFS=$as_save_IFS 201257e6fb56fSmrg test -z "$as_dir" && as_dir=. 201267e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 201277e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 201287e6fb56fSmrg ac_cv_prog_ac_ct_CC="gcc" 201297e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 201307e6fb56fSmrg break 2 201317e6fb56fSmrg fi 201327e6fb56fSmrgdone 201337e6fb56fSmrgdone 201347e6fb56fSmrgIFS=$as_save_IFS 201357e6fb56fSmrg 201367e6fb56fSmrgfi 201377e6fb56fSmrgfi 201387e6fb56fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 201397e6fb56fSmrgif test -n "$ac_ct_CC"; then 201407e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 201417e6fb56fSmrg$as_echo "$ac_ct_CC" >&6; } 201427e6fb56fSmrgelse 201437e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 201447e6fb56fSmrg$as_echo "no" >&6; } 201457e6fb56fSmrgfi 201467e6fb56fSmrg 201477e6fb56fSmrg if test "x$ac_ct_CC" = x; then 201487e6fb56fSmrg CC="" 201497e6fb56fSmrg else 201507e6fb56fSmrg case $cross_compiling:$ac_tool_warned in 201517e6fb56fSmrgyes:) 201527e6fb56fSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 201537e6fb56fSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 201547e6fb56fSmrgac_tool_warned=yes ;; 201557e6fb56fSmrgesac 201567e6fb56fSmrg CC=$ac_ct_CC 201577e6fb56fSmrg fi 201587e6fb56fSmrgelse 201597e6fb56fSmrg CC="$ac_cv_prog_CC" 201607e6fb56fSmrgfi 201617e6fb56fSmrg 201627e6fb56fSmrgif test -z "$CC"; then 201637e6fb56fSmrg if test -n "$ac_tool_prefix"; then 201647e6fb56fSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 201657e6fb56fSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 201667e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 201677e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 201687e6fb56fSmrgif test "${ac_cv_prog_CC+set}" = set; then 201697e6fb56fSmrg $as_echo_n "(cached) " >&6 201707e6fb56fSmrgelse 201717e6fb56fSmrg if test -n "$CC"; then 201727e6fb56fSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 201737e6fb56fSmrgelse 201747e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 201757e6fb56fSmrgfor as_dir in $PATH 201767e6fb56fSmrgdo 201777e6fb56fSmrg IFS=$as_save_IFS 201787e6fb56fSmrg test -z "$as_dir" && as_dir=. 201797e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 201807e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 201817e6fb56fSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 201827e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 201837e6fb56fSmrg break 2 201847e6fb56fSmrg fi 201857e6fb56fSmrgdone 201867e6fb56fSmrgdone 201877e6fb56fSmrgIFS=$as_save_IFS 201887e6fb56fSmrg 201897e6fb56fSmrgfi 201907e6fb56fSmrgfi 201917e6fb56fSmrgCC=$ac_cv_prog_CC 201927e6fb56fSmrgif test -n "$CC"; then 201937e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 201947e6fb56fSmrg$as_echo "$CC" >&6; } 201957e6fb56fSmrgelse 201967e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 201977e6fb56fSmrg$as_echo "no" >&6; } 201987e6fb56fSmrgfi 201997e6fb56fSmrg 202007e6fb56fSmrg 202017e6fb56fSmrg fi 202027e6fb56fSmrgfi 202037e6fb56fSmrgif test -z "$CC"; then 202047e6fb56fSmrg # Extract the first word of "cc", so it can be a program name with args. 202057e6fb56fSmrgset dummy cc; ac_word=$2 202067e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 202077e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 202087e6fb56fSmrgif test "${ac_cv_prog_CC+set}" = set; then 202097e6fb56fSmrg $as_echo_n "(cached) " >&6 202107e6fb56fSmrgelse 202117e6fb56fSmrg if test -n "$CC"; then 202127e6fb56fSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 202137e6fb56fSmrgelse 202147e6fb56fSmrg ac_prog_rejected=no 202157e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 202167e6fb56fSmrgfor as_dir in $PATH 202177e6fb56fSmrgdo 202187e6fb56fSmrg IFS=$as_save_IFS 202197e6fb56fSmrg test -z "$as_dir" && as_dir=. 202207e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 202217e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 202227e6fb56fSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 202237e6fb56fSmrg ac_prog_rejected=yes 202247e6fb56fSmrg continue 202257e6fb56fSmrg fi 202267e6fb56fSmrg ac_cv_prog_CC="cc" 202277e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 202287e6fb56fSmrg break 2 202297e6fb56fSmrg fi 202307e6fb56fSmrgdone 202317e6fb56fSmrgdone 202327e6fb56fSmrgIFS=$as_save_IFS 202337e6fb56fSmrg 202347e6fb56fSmrgif test $ac_prog_rejected = yes; then 202357e6fb56fSmrg # We found a bogon in the path, so make sure we never use it. 202367e6fb56fSmrg set dummy $ac_cv_prog_CC 202377e6fb56fSmrg shift 202387e6fb56fSmrg if test $# != 0; then 202397e6fb56fSmrg # We chose a different compiler from the bogus one. 202407e6fb56fSmrg # However, it has the same basename, so the bogon will be chosen 202417e6fb56fSmrg # first if we set CC to just the basename; use the full file name. 202427e6fb56fSmrg shift 202437e6fb56fSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 202447e6fb56fSmrg fi 202457e6fb56fSmrgfi 202467e6fb56fSmrgfi 202477e6fb56fSmrgfi 202487e6fb56fSmrgCC=$ac_cv_prog_CC 202497e6fb56fSmrgif test -n "$CC"; then 202507e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 202517e6fb56fSmrg$as_echo "$CC" >&6; } 202527e6fb56fSmrgelse 202537e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 202547e6fb56fSmrg$as_echo "no" >&6; } 202557e6fb56fSmrgfi 202567e6fb56fSmrg 202577e6fb56fSmrg 202587e6fb56fSmrgfi 202597e6fb56fSmrgif test -z "$CC"; then 202607e6fb56fSmrg if test -n "$ac_tool_prefix"; then 202617e6fb56fSmrg for ac_prog in cl.exe 202627e6fb56fSmrg do 202637e6fb56fSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 202647e6fb56fSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 202657e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 202667e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 202677e6fb56fSmrgif test "${ac_cv_prog_CC+set}" = set; then 202687e6fb56fSmrg $as_echo_n "(cached) " >&6 202697e6fb56fSmrgelse 202707e6fb56fSmrg if test -n "$CC"; then 202717e6fb56fSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 202727e6fb56fSmrgelse 202737e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 202747e6fb56fSmrgfor as_dir in $PATH 202757e6fb56fSmrgdo 202767e6fb56fSmrg IFS=$as_save_IFS 202777e6fb56fSmrg test -z "$as_dir" && as_dir=. 202787e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 202797e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 202807e6fb56fSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 202817e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 202827e6fb56fSmrg break 2 202837e6fb56fSmrg fi 202847e6fb56fSmrgdone 202857e6fb56fSmrgdone 202867e6fb56fSmrgIFS=$as_save_IFS 202877e6fb56fSmrg 202887e6fb56fSmrgfi 202897e6fb56fSmrgfi 202907e6fb56fSmrgCC=$ac_cv_prog_CC 202917e6fb56fSmrgif test -n "$CC"; then 202927e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 202937e6fb56fSmrg$as_echo "$CC" >&6; } 202947e6fb56fSmrgelse 202957e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 202967e6fb56fSmrg$as_echo "no" >&6; } 202977e6fb56fSmrgfi 202987e6fb56fSmrg 202997e6fb56fSmrg 203007e6fb56fSmrg test -n "$CC" && break 203017e6fb56fSmrg done 203027e6fb56fSmrgfi 203037e6fb56fSmrgif test -z "$CC"; then 203047e6fb56fSmrg ac_ct_CC=$CC 203057e6fb56fSmrg for ac_prog in cl.exe 203067e6fb56fSmrgdo 203077e6fb56fSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 203087e6fb56fSmrgset dummy $ac_prog; ac_word=$2 203097e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 203107e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 203117e6fb56fSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 203127e6fb56fSmrg $as_echo_n "(cached) " >&6 203137e6fb56fSmrgelse 203147e6fb56fSmrg if test -n "$ac_ct_CC"; then 203157e6fb56fSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 203167e6fb56fSmrgelse 203177e6fb56fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 203187e6fb56fSmrgfor as_dir in $PATH 203197e6fb56fSmrgdo 203207e6fb56fSmrg IFS=$as_save_IFS 203217e6fb56fSmrg test -z "$as_dir" && as_dir=. 203227e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 203237e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 203247e6fb56fSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 203257e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 203267e6fb56fSmrg break 2 203277e6fb56fSmrg fi 203287e6fb56fSmrgdone 203297e6fb56fSmrgdone 203307e6fb56fSmrgIFS=$as_save_IFS 203317e6fb56fSmrg 203327e6fb56fSmrgfi 203337e6fb56fSmrgfi 203347e6fb56fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 203357e6fb56fSmrgif test -n "$ac_ct_CC"; then 203367e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 203377e6fb56fSmrg$as_echo "$ac_ct_CC" >&6; } 203387e6fb56fSmrgelse 203397e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 203407e6fb56fSmrg$as_echo "no" >&6; } 203417e6fb56fSmrgfi 203427e6fb56fSmrg 203437e6fb56fSmrg 203447e6fb56fSmrg test -n "$ac_ct_CC" && break 203457e6fb56fSmrgdone 203467e6fb56fSmrg 203477e6fb56fSmrg if test "x$ac_ct_CC" = x; then 203487e6fb56fSmrg CC="" 203497e6fb56fSmrg else 203507e6fb56fSmrg case $cross_compiling:$ac_tool_warned in 203517e6fb56fSmrgyes:) 203527e6fb56fSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 203537e6fb56fSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 203547e6fb56fSmrgac_tool_warned=yes ;; 203557e6fb56fSmrgesac 203567e6fb56fSmrg CC=$ac_ct_CC 203577e6fb56fSmrg fi 203587e6fb56fSmrgfi 203597e6fb56fSmrg 203607e6fb56fSmrgfi 203617e6fb56fSmrg 203627e6fb56fSmrg 203637e6fb56fSmrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 203647e6fb56fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 203657e6fb56fSmrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 203667e6fb56fSmrgSee \`config.log' for more details." >&5 203677e6fb56fSmrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 203687e6fb56fSmrgSee \`config.log' for more details." >&2;} 203697e6fb56fSmrg { (exit 1); exit 1; }; }; } 203707e6fb56fSmrg 203717e6fb56fSmrg# Provide some information about the compiler. 203727e6fb56fSmrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 203737e6fb56fSmrgset X $ac_compile 203747e6fb56fSmrgac_compiler=$2 203757e6fb56fSmrg{ (ac_try="$ac_compiler --version >&5" 203767e6fb56fSmrgcase "(($ac_try" in 203777e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 203787e6fb56fSmrg *) ac_try_echo=$ac_try;; 203797e6fb56fSmrgesac 203807e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 203817e6fb56fSmrg$as_echo "$ac_try_echo") >&5 203827e6fb56fSmrg (eval "$ac_compiler --version >&5") 2>&5 203837e6fb56fSmrg ac_status=$? 203847e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 203857e6fb56fSmrg (exit $ac_status); } 203867e6fb56fSmrg{ (ac_try="$ac_compiler -v >&5" 203877e6fb56fSmrgcase "(($ac_try" in 203887e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 203897e6fb56fSmrg *) ac_try_echo=$ac_try;; 203907e6fb56fSmrgesac 203917e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 203927e6fb56fSmrg$as_echo "$ac_try_echo") >&5 203937e6fb56fSmrg (eval "$ac_compiler -v >&5") 2>&5 203947e6fb56fSmrg ac_status=$? 203957e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 203967e6fb56fSmrg (exit $ac_status); } 203977e6fb56fSmrg{ (ac_try="$ac_compiler -V >&5" 203987e6fb56fSmrgcase "(($ac_try" in 203997e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 204007e6fb56fSmrg *) ac_try_echo=$ac_try;; 204017e6fb56fSmrgesac 204027e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 204037e6fb56fSmrg$as_echo "$ac_try_echo") >&5 204047e6fb56fSmrg (eval "$ac_compiler -V >&5") 2>&5 204057e6fb56fSmrg ac_status=$? 204067e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 204077e6fb56fSmrg (exit $ac_status); } 204087e6fb56fSmrg 204097e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 204107e6fb56fSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 204117e6fb56fSmrgif test "${ac_cv_c_compiler_gnu+set}" = set; then 204127e6fb56fSmrg $as_echo_n "(cached) " >&6 204137e6fb56fSmrgelse 204147e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 204157e6fb56fSmrg/* confdefs.h. */ 204167e6fb56fSmrg_ACEOF 204177e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 204187e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 204197e6fb56fSmrg/* end confdefs.h. */ 204207e6fb56fSmrg 204217e6fb56fSmrgint 204227e6fb56fSmrgmain () 204237e6fb56fSmrg{ 204247e6fb56fSmrg#ifndef __GNUC__ 204257e6fb56fSmrg choke me 204267e6fb56fSmrg#endif 204277e6fb56fSmrg 204287e6fb56fSmrg ; 204297e6fb56fSmrg return 0; 204307e6fb56fSmrg} 204317e6fb56fSmrg_ACEOF 204327e6fb56fSmrgrm -f conftest.$ac_objext 204337e6fb56fSmrgif { (ac_try="$ac_compile" 204347e6fb56fSmrgcase "(($ac_try" in 204357e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 204367e6fb56fSmrg *) ac_try_echo=$ac_try;; 204377e6fb56fSmrgesac 204387e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 204397e6fb56fSmrg$as_echo "$ac_try_echo") >&5 204407e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 204417e6fb56fSmrg ac_status=$? 204427e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 204437e6fb56fSmrg rm -f conftest.er1 204447e6fb56fSmrg cat conftest.err >&5 204457e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 204467e6fb56fSmrg (exit $ac_status); } && { 204477e6fb56fSmrg test -z "$ac_c_werror_flag" || 204487e6fb56fSmrg test ! -s conftest.err 204497e6fb56fSmrg } && test -s conftest.$ac_objext; then 204507e6fb56fSmrg ac_compiler_gnu=yes 204517e6fb56fSmrgelse 204527e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 204537e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 204547e6fb56fSmrg 204557e6fb56fSmrg ac_compiler_gnu=no 204567e6fb56fSmrgfi 204577e6fb56fSmrg 204587e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 204597e6fb56fSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 204607e6fb56fSmrg 204617e6fb56fSmrgfi 204627e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 204637e6fb56fSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 204647e6fb56fSmrgif test $ac_compiler_gnu = yes; then 204657e6fb56fSmrg GCC=yes 204667e6fb56fSmrgelse 204677e6fb56fSmrg GCC= 204687e6fb56fSmrgfi 204697e6fb56fSmrgac_test_CFLAGS=${CFLAGS+set} 204707e6fb56fSmrgac_save_CFLAGS=$CFLAGS 204717e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 204727e6fb56fSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 204737e6fb56fSmrgif test "${ac_cv_prog_cc_g+set}" = set; then 204747e6fb56fSmrg $as_echo_n "(cached) " >&6 204757e6fb56fSmrgelse 204767e6fb56fSmrg ac_save_c_werror_flag=$ac_c_werror_flag 204777e6fb56fSmrg ac_c_werror_flag=yes 204787e6fb56fSmrg ac_cv_prog_cc_g=no 204797e6fb56fSmrg CFLAGS="-g" 204807e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 204817e6fb56fSmrg/* confdefs.h. */ 204827e6fb56fSmrg_ACEOF 204837e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 204847e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 204857e6fb56fSmrg/* end confdefs.h. */ 204867e6fb56fSmrg 204877e6fb56fSmrgint 204887e6fb56fSmrgmain () 204897e6fb56fSmrg{ 204907e6fb56fSmrg 204917e6fb56fSmrg ; 204927e6fb56fSmrg return 0; 204937e6fb56fSmrg} 204947e6fb56fSmrg_ACEOF 204957e6fb56fSmrgrm -f conftest.$ac_objext 204967e6fb56fSmrgif { (ac_try="$ac_compile" 204977e6fb56fSmrgcase "(($ac_try" in 204987e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 204997e6fb56fSmrg *) ac_try_echo=$ac_try;; 205007e6fb56fSmrgesac 205017e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 205027e6fb56fSmrg$as_echo "$ac_try_echo") >&5 205037e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 205047e6fb56fSmrg ac_status=$? 205057e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 205067e6fb56fSmrg rm -f conftest.er1 205077e6fb56fSmrg cat conftest.err >&5 205087e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 205097e6fb56fSmrg (exit $ac_status); } && { 205107e6fb56fSmrg test -z "$ac_c_werror_flag" || 205117e6fb56fSmrg test ! -s conftest.err 205127e6fb56fSmrg } && test -s conftest.$ac_objext; then 205137e6fb56fSmrg ac_cv_prog_cc_g=yes 205147e6fb56fSmrgelse 205157e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 205167e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 205177e6fb56fSmrg 205187e6fb56fSmrg CFLAGS="" 205197e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 205207e6fb56fSmrg/* confdefs.h. */ 205217e6fb56fSmrg_ACEOF 205227e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 205237e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 205247e6fb56fSmrg/* end confdefs.h. */ 205257e6fb56fSmrg 205267e6fb56fSmrgint 205277e6fb56fSmrgmain () 205287e6fb56fSmrg{ 205297e6fb56fSmrg 205307e6fb56fSmrg ; 205317e6fb56fSmrg return 0; 205327e6fb56fSmrg} 205337e6fb56fSmrg_ACEOF 205347e6fb56fSmrgrm -f conftest.$ac_objext 205357e6fb56fSmrgif { (ac_try="$ac_compile" 205367e6fb56fSmrgcase "(($ac_try" in 205377e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 205387e6fb56fSmrg *) ac_try_echo=$ac_try;; 205397e6fb56fSmrgesac 205407e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 205417e6fb56fSmrg$as_echo "$ac_try_echo") >&5 205427e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 205437e6fb56fSmrg ac_status=$? 205447e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 205457e6fb56fSmrg rm -f conftest.er1 205467e6fb56fSmrg cat conftest.err >&5 205477e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 205487e6fb56fSmrg (exit $ac_status); } && { 205497e6fb56fSmrg test -z "$ac_c_werror_flag" || 205507e6fb56fSmrg test ! -s conftest.err 205517e6fb56fSmrg } && test -s conftest.$ac_objext; then 205527e6fb56fSmrg : 205537e6fb56fSmrgelse 205547e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 205557e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 205567e6fb56fSmrg 205577e6fb56fSmrg ac_c_werror_flag=$ac_save_c_werror_flag 205587e6fb56fSmrg CFLAGS="-g" 205597e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 205607e6fb56fSmrg/* confdefs.h. */ 205617e6fb56fSmrg_ACEOF 205627e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 205637e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 205647e6fb56fSmrg/* end confdefs.h. */ 205657e6fb56fSmrg 205667e6fb56fSmrgint 205677e6fb56fSmrgmain () 205687e6fb56fSmrg{ 205697e6fb56fSmrg 205707e6fb56fSmrg ; 205717e6fb56fSmrg return 0; 205727e6fb56fSmrg} 205737e6fb56fSmrg_ACEOF 205747e6fb56fSmrgrm -f conftest.$ac_objext 205757e6fb56fSmrgif { (ac_try="$ac_compile" 205767e6fb56fSmrgcase "(($ac_try" in 205777e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 205787e6fb56fSmrg *) ac_try_echo=$ac_try;; 205797e6fb56fSmrgesac 205807e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 205817e6fb56fSmrg$as_echo "$ac_try_echo") >&5 205827e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 205837e6fb56fSmrg ac_status=$? 205847e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 205857e6fb56fSmrg rm -f conftest.er1 205867e6fb56fSmrg cat conftest.err >&5 205877e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 205887e6fb56fSmrg (exit $ac_status); } && { 205897e6fb56fSmrg test -z "$ac_c_werror_flag" || 205907e6fb56fSmrg test ! -s conftest.err 205917e6fb56fSmrg } && test -s conftest.$ac_objext; then 205927e6fb56fSmrg ac_cv_prog_cc_g=yes 205937e6fb56fSmrgelse 205947e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 205957e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 205967e6fb56fSmrg 205977e6fb56fSmrg 205987e6fb56fSmrgfi 205997e6fb56fSmrg 206007e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 206017e6fb56fSmrgfi 206027e6fb56fSmrg 206037e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 206047e6fb56fSmrgfi 206057e6fb56fSmrg 206067e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 206077e6fb56fSmrg ac_c_werror_flag=$ac_save_c_werror_flag 206087e6fb56fSmrgfi 206097e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 206107e6fb56fSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 206117e6fb56fSmrgif test "$ac_test_CFLAGS" = set; then 206127e6fb56fSmrg CFLAGS=$ac_save_CFLAGS 206137e6fb56fSmrgelif test $ac_cv_prog_cc_g = yes; then 206147e6fb56fSmrg if test "$GCC" = yes; then 206157e6fb56fSmrg CFLAGS="-g -O2" 206167e6fb56fSmrg else 206177e6fb56fSmrg CFLAGS="-g" 206187e6fb56fSmrg fi 206197e6fb56fSmrgelse 206207e6fb56fSmrg if test "$GCC" = yes; then 206217e6fb56fSmrg CFLAGS="-O2" 206227e6fb56fSmrg else 206237e6fb56fSmrg CFLAGS= 206247e6fb56fSmrg fi 206257e6fb56fSmrgfi 206267e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 206277e6fb56fSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 206287e6fb56fSmrgif test "${ac_cv_prog_cc_c89+set}" = set; then 206297e6fb56fSmrg $as_echo_n "(cached) " >&6 206307e6fb56fSmrgelse 206317e6fb56fSmrg ac_cv_prog_cc_c89=no 206327e6fb56fSmrgac_save_CC=$CC 206337e6fb56fSmrgcat >conftest.$ac_ext <<_ACEOF 206347e6fb56fSmrg/* confdefs.h. */ 206357e6fb56fSmrg_ACEOF 206367e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 206377e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 206387e6fb56fSmrg/* end confdefs.h. */ 206397e6fb56fSmrg#include <stdarg.h> 206407e6fb56fSmrg#include <stdio.h> 206417e6fb56fSmrg#include <sys/types.h> 206427e6fb56fSmrg#include <sys/stat.h> 206437e6fb56fSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 206447e6fb56fSmrgstruct buf { int x; }; 206457e6fb56fSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 206467e6fb56fSmrgstatic char *e (p, i) 206477e6fb56fSmrg char **p; 206487e6fb56fSmrg int i; 206497e6fb56fSmrg{ 206507e6fb56fSmrg return p[i]; 206517e6fb56fSmrg} 206527e6fb56fSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 206537e6fb56fSmrg{ 206547e6fb56fSmrg char *s; 206557e6fb56fSmrg va_list v; 206567e6fb56fSmrg va_start (v,p); 206577e6fb56fSmrg s = g (p, va_arg (v,int)); 206587e6fb56fSmrg va_end (v); 206597e6fb56fSmrg return s; 206607e6fb56fSmrg} 206617e6fb56fSmrg 206627e6fb56fSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 206637e6fb56fSmrg function prototypes and stuff, but not '\xHH' hex character constants. 206647e6fb56fSmrg These don't provoke an error unfortunately, instead are silently treated 206657e6fb56fSmrg as 'x'. The following induces an error, until -std is added to get 206667e6fb56fSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 206677e6fb56fSmrg array size at least. It's necessary to write '\x00'==0 to get something 206687e6fb56fSmrg that's true only with -std. */ 206697e6fb56fSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 206707e6fb56fSmrg 206717e6fb56fSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 206727e6fb56fSmrg inside strings and character constants. */ 206737e6fb56fSmrg#define FOO(x) 'x' 206747e6fb56fSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 206757e6fb56fSmrg 206767e6fb56fSmrgint test (int i, double x); 206777e6fb56fSmrgstruct s1 {int (*f) (int a);}; 206787e6fb56fSmrgstruct s2 {int (*f) (double a);}; 206797e6fb56fSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 206807e6fb56fSmrgint argc; 206817e6fb56fSmrgchar **argv; 206827e6fb56fSmrgint 206837e6fb56fSmrgmain () 206847e6fb56fSmrg{ 206857e6fb56fSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 206867e6fb56fSmrg ; 206877e6fb56fSmrg return 0; 206887e6fb56fSmrg} 206897e6fb56fSmrg_ACEOF 206907e6fb56fSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 206917e6fb56fSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 206927e6fb56fSmrgdo 206937e6fb56fSmrg CC="$ac_save_CC $ac_arg" 206947e6fb56fSmrg rm -f conftest.$ac_objext 206957e6fb56fSmrgif { (ac_try="$ac_compile" 206967e6fb56fSmrgcase "(($ac_try" in 206977e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 206987e6fb56fSmrg *) ac_try_echo=$ac_try;; 206997e6fb56fSmrgesac 207007e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 207017e6fb56fSmrg$as_echo "$ac_try_echo") >&5 207027e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 207037e6fb56fSmrg ac_status=$? 207047e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 207057e6fb56fSmrg rm -f conftest.er1 207067e6fb56fSmrg cat conftest.err >&5 207077e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 207087e6fb56fSmrg (exit $ac_status); } && { 207097e6fb56fSmrg test -z "$ac_c_werror_flag" || 207107e6fb56fSmrg test ! -s conftest.err 207117e6fb56fSmrg } && test -s conftest.$ac_objext; then 207127e6fb56fSmrg ac_cv_prog_cc_c89=$ac_arg 207137e6fb56fSmrgelse 207147e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 207157e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 207167e6fb56fSmrg 207177e6fb56fSmrg 207187e6fb56fSmrgfi 207197e6fb56fSmrg 207207e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext 207217e6fb56fSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 207227e6fb56fSmrgdone 207237e6fb56fSmrgrm -f conftest.$ac_ext 207247e6fb56fSmrgCC=$ac_save_CC 207257e6fb56fSmrg 207267e6fb56fSmrgfi 207277e6fb56fSmrg# AC_CACHE_VAL 207287e6fb56fSmrgcase "x$ac_cv_prog_cc_c89" in 207297e6fb56fSmrg x) 207307e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: none needed" >&5 207317e6fb56fSmrg$as_echo "none needed" >&6; } ;; 207327e6fb56fSmrg xno) 207337e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: unsupported" >&5 207347e6fb56fSmrg$as_echo "unsupported" >&6; } ;; 207357e6fb56fSmrg *) 207367e6fb56fSmrg CC="$CC $ac_cv_prog_cc_c89" 207377e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 207387e6fb56fSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 207397e6fb56fSmrgesac 207407e6fb56fSmrg 207417e6fb56fSmrg 207427e6fb56fSmrgac_ext=c 207437e6fb56fSmrgac_cpp='$CPP $CPPFLAGS' 207447e6fb56fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 207457e6fb56fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 207467e6fb56fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 207477e6fb56fSmrg 207487e6fb56fSmrgdepcc="$CC" am_compiler_list= 207497e6fb56fSmrg 207507e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 207517e6fb56fSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 207527e6fb56fSmrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 207537e6fb56fSmrg $as_echo_n "(cached) " >&6 207547e6fb56fSmrgelse 207557e6fb56fSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 207567e6fb56fSmrg # We make a subdir and do the tests there. Otherwise we can end up 207577e6fb56fSmrg # making bogus files that we don't know about and never remove. For 207587e6fb56fSmrg # instance it was reported that on HP-UX the gcc test will end up 207597e6fb56fSmrg # making a dummy file named `D' -- because `-MD' means `put the output 207607e6fb56fSmrg # in D'. 207617e6fb56fSmrg mkdir conftest.dir 207627e6fb56fSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 207637e6fb56fSmrg # using a relative directory. 207647e6fb56fSmrg cp "$am_depcomp" conftest.dir 207657e6fb56fSmrg cd conftest.dir 207667e6fb56fSmrg # We will build objects and dependencies in a subdirectory because 207677e6fb56fSmrg # it helps to detect inapplicable dependency modes. For instance 207687e6fb56fSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 207697e6fb56fSmrg # side effect of compilation, but ICC will put the dependencies in 207707e6fb56fSmrg # the current directory while Tru64 will put them in the object 207717e6fb56fSmrg # directory. 207727e6fb56fSmrg mkdir sub 207737e6fb56fSmrg 207747e6fb56fSmrg am_cv_CC_dependencies_compiler_type=none 207757e6fb56fSmrg if test "$am_compiler_list" = ""; then 207767e6fb56fSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 207777e6fb56fSmrg fi 207787e6fb56fSmrg am__universal=false 207797e6fb56fSmrg case " $depcc " in #( 207807e6fb56fSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 207817e6fb56fSmrg esac 207827e6fb56fSmrg 207837e6fb56fSmrg for depmode in $am_compiler_list; do 207847e6fb56fSmrg # Setup a source with many dependencies, because some compilers 207857e6fb56fSmrg # like to wrap large dependency lists on column 80 (with \), and 207867e6fb56fSmrg # we should not choose a depcomp mode which is confused by this. 207877e6fb56fSmrg # 207887e6fb56fSmrg # We need to recreate these files for each test, as the compiler may 207897e6fb56fSmrg # overwrite some of them when testing with obscure command lines. 207907e6fb56fSmrg # This happens at least with the AIX C compiler. 207917e6fb56fSmrg : > sub/conftest.c 207927e6fb56fSmrg for i in 1 2 3 4 5 6; do 207937e6fb56fSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 207947e6fb56fSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 207957e6fb56fSmrg # Solaris 8's {/usr,}/bin/sh. 207967e6fb56fSmrg touch sub/conftst$i.h 207977e6fb56fSmrg done 207987e6fb56fSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 207997e6fb56fSmrg 208007e6fb56fSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 208017e6fb56fSmrg # mode. It turns out that the SunPro C++ compiler does not properly 208027e6fb56fSmrg # handle `-M -o', and we need to detect this. Also, some Intel 208037e6fb56fSmrg # versions had trouble with output in subdirs 208047e6fb56fSmrg am__obj=sub/conftest.${OBJEXT-o} 208057e6fb56fSmrg am__minus_obj="-o $am__obj" 208067e6fb56fSmrg case $depmode in 208077e6fb56fSmrg gcc) 208087e6fb56fSmrg # This depmode causes a compiler race in universal mode. 208097e6fb56fSmrg test "$am__universal" = false || continue 208107e6fb56fSmrg ;; 208117e6fb56fSmrg nosideeffect) 208127e6fb56fSmrg # after this tag, mechanisms are not by side-effect, so they'll 208137e6fb56fSmrg # only be used when explicitly requested 208147e6fb56fSmrg if test "x$enable_dependency_tracking" = xyes; then 208157e6fb56fSmrg continue 208167e6fb56fSmrg else 208177e6fb56fSmrg break 208187e6fb56fSmrg fi 208197e6fb56fSmrg ;; 208207e6fb56fSmrg msvisualcpp | msvcmsys) 208217e6fb56fSmrg # This compiler won't grok `-c -o', but also, the minuso test has 208227e6fb56fSmrg # not run yet. These depmodes are late enough in the game, and 208237e6fb56fSmrg # so weak that their functioning should not be impacted. 208247e6fb56fSmrg am__obj=conftest.${OBJEXT-o} 208257e6fb56fSmrg am__minus_obj= 208267e6fb56fSmrg ;; 208277e6fb56fSmrg none) break ;; 208287e6fb56fSmrg esac 208297e6fb56fSmrg if depmode=$depmode \ 208307e6fb56fSmrg source=sub/conftest.c object=$am__obj \ 208317e6fb56fSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 208327e6fb56fSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 208337e6fb56fSmrg >/dev/null 2>conftest.err && 208347e6fb56fSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 208357e6fb56fSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 208367e6fb56fSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 208377e6fb56fSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 208387e6fb56fSmrg # icc doesn't choke on unknown options, it will just issue warnings 208397e6fb56fSmrg # or remarks (even with -Werror). So we grep stderr for any message 208407e6fb56fSmrg # that says an option was ignored or not supported. 208417e6fb56fSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 208427e6fb56fSmrg # icc: Command line warning: ignoring option '-M'; no argument required 208437e6fb56fSmrg # The diagnosis changed in icc 8.0: 208447e6fb56fSmrg # icc: Command line remark: option '-MP' not supported 208457e6fb56fSmrg if (grep 'ignoring option' conftest.err || 208467e6fb56fSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 208477e6fb56fSmrg am_cv_CC_dependencies_compiler_type=$depmode 208487e6fb56fSmrg break 208497e6fb56fSmrg fi 208507e6fb56fSmrg fi 208517e6fb56fSmrg done 208527e6fb56fSmrg 208537e6fb56fSmrg cd .. 208547e6fb56fSmrg rm -rf conftest.dir 208557e6fb56fSmrgelse 208567e6fb56fSmrg am_cv_CC_dependencies_compiler_type=none 208577e6fb56fSmrgfi 208587e6fb56fSmrg 208597e6fb56fSmrgfi 208607e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 208617e6fb56fSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 208627e6fb56fSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 208637e6fb56fSmrg 208647e6fb56fSmrg if 208657e6fb56fSmrg test "x$enable_dependency_tracking" != xno \ 208667e6fb56fSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 208677e6fb56fSmrg am__fastdepCC_TRUE= 208687e6fb56fSmrg am__fastdepCC_FALSE='#' 208697e6fb56fSmrgelse 208707e6fb56fSmrg am__fastdepCC_TRUE='#' 208717e6fb56fSmrg am__fastdepCC_FALSE= 208727e6fb56fSmrgfi 208737e6fb56fSmrg 208747e6fb56fSmrg 208757e6fb56fSmrg 208767e6fb56fSmrg 208777e6fb56fSmrg 208787e6fb56fSmrg 208797e6fb56fSmrg 208807e6fb56fSmrg# Check whether --with-xorg-module-dir was given. 208817e6fb56fSmrgif test "${with_xorg_module_dir+set}" = set; then 208827e6fb56fSmrg withval=$with_xorg_module_dir; moduledir="$withval" 208837e6fb56fSmrgelse 208847e6fb56fSmrg moduledir="$libdir/xorg/modules" 208857e6fb56fSmrgfi 208867e6fb56fSmrg 208877e6fb56fSmrg 208887e6fb56fSmrg# Check whether --enable-dri was given. 208897e6fb56fSmrgif test "${enable_dri+set}" = set; then 208907e6fb56fSmrg enableval=$enable_dri; DRI="$enableval" 208917e6fb56fSmrgelse 208927e6fb56fSmrg DRI=auto 208937e6fb56fSmrgfi 208947e6fb56fSmrg 208957e6fb56fSmrg 208967e6fb56fSmrg# Check whether --enable-debug was given. 208977e6fb56fSmrgif test "${enable_debug+set}" = set; then 208987e6fb56fSmrg enableval=$enable_debug; DEBUG="$enableval" 208997e6fb56fSmrgelse 209007e6fb56fSmrg DEBUG=no 209017e6fb56fSmrgfi 209027e6fb56fSmrg 209037e6fb56fSmrg 209047e6fb56fSmrg# Check whether --enable-xv-debug was given. 209057e6fb56fSmrgif test "${enable_xv_debug+set}" = set; then 209067e6fb56fSmrg enableval=$enable_xv_debug; XV_DEBUG="$enableval" 209077e6fb56fSmrgelse 209087e6fb56fSmrg XV_DEBUG=no 209097e6fb56fSmrgfi 209107e6fb56fSmrg 209117e6fb56fSmrg 209127e6fb56fSmrg# Checks for extensions 209137e6fb56fSmrg 209147e6fb56fSmrg SAVE_CFLAGS="$CFLAGS" 209157e6fb56fSmrg CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 209167e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 209177e6fb56fSmrg/* confdefs.h. */ 209187e6fb56fSmrg_ACEOF 209197e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 209207e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 209217e6fb56fSmrg/* end confdefs.h. */ 209227e6fb56fSmrg 209237e6fb56fSmrg#include "xorg-server.h" 209247e6fb56fSmrg#if !defined RANDR 209257e6fb56fSmrg#error RANDR not defined 209267e6fb56fSmrg#endif 209277e6fb56fSmrg 209287e6fb56fSmrgint 209297e6fb56fSmrgmain () 209307e6fb56fSmrg{ 209317e6fb56fSmrg 209327e6fb56fSmrg ; 209337e6fb56fSmrg return 0; 209347e6fb56fSmrg} 209357e6fb56fSmrg_ACEOF 209367e6fb56fSmrgrm -f conftest.$ac_objext 209377e6fb56fSmrgif { (ac_try="$ac_compile" 209387e6fb56fSmrgcase "(($ac_try" in 209397e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 209407e6fb56fSmrg *) ac_try_echo=$ac_try;; 209417e6fb56fSmrgesac 209427e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 209437e6fb56fSmrg$as_echo "$ac_try_echo") >&5 209447e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 209457e6fb56fSmrg ac_status=$? 209467e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 209477e6fb56fSmrg rm -f conftest.er1 209487e6fb56fSmrg cat conftest.err >&5 209497e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 209507e6fb56fSmrg (exit $ac_status); } && { 209517e6fb56fSmrg test -z "$ac_c_werror_flag" || 209527e6fb56fSmrg test ! -s conftest.err 209537e6fb56fSmrg } && test -s conftest.$ac_objext; then 209547e6fb56fSmrg _EXT_CHECK=yes 209557e6fb56fSmrgelse 209567e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 209577e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 209587e6fb56fSmrg 209597e6fb56fSmrg _EXT_CHECK=no 209607e6fb56fSmrgfi 209617e6fb56fSmrg 209627e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 209637e6fb56fSmrg CFLAGS="$SAVE_CFLAGS" 209647e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 209657e6fb56fSmrg$as_echo_n "checking if RANDR is defined... " >&6; } 209667e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 209677e6fb56fSmrg$as_echo "$_EXT_CHECK" >&6; } 209687e6fb56fSmrg if test "$_EXT_CHECK" != no; then 209697e6fb56fSmrg REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 209707e6fb56fSmrg fi 209717e6fb56fSmrg 209727e6fb56fSmrg 209737e6fb56fSmrg SAVE_CFLAGS="$CFLAGS" 209747e6fb56fSmrg CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 209757e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 209767e6fb56fSmrg/* confdefs.h. */ 209777e6fb56fSmrg_ACEOF 209787e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 209797e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 209807e6fb56fSmrg/* end confdefs.h. */ 209817e6fb56fSmrg 209827e6fb56fSmrg#include "xorg-server.h" 209837e6fb56fSmrg#if !defined RENDER 209847e6fb56fSmrg#error RENDER not defined 209857e6fb56fSmrg#endif 209867e6fb56fSmrg 209877e6fb56fSmrgint 209887e6fb56fSmrgmain () 209897e6fb56fSmrg{ 209907e6fb56fSmrg 209917e6fb56fSmrg ; 209927e6fb56fSmrg return 0; 209937e6fb56fSmrg} 209947e6fb56fSmrg_ACEOF 209957e6fb56fSmrgrm -f conftest.$ac_objext 209967e6fb56fSmrgif { (ac_try="$ac_compile" 209977e6fb56fSmrgcase "(($ac_try" in 209987e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 209997e6fb56fSmrg *) ac_try_echo=$ac_try;; 210007e6fb56fSmrgesac 210017e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 210027e6fb56fSmrg$as_echo "$ac_try_echo") >&5 210037e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 210047e6fb56fSmrg ac_status=$? 210057e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 210067e6fb56fSmrg rm -f conftest.er1 210077e6fb56fSmrg cat conftest.err >&5 210087e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 210097e6fb56fSmrg (exit $ac_status); } && { 210107e6fb56fSmrg test -z "$ac_c_werror_flag" || 210117e6fb56fSmrg test ! -s conftest.err 210127e6fb56fSmrg } && test -s conftest.$ac_objext; then 210137e6fb56fSmrg _EXT_CHECK=yes 210147e6fb56fSmrgelse 210157e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 210167e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 210177e6fb56fSmrg 210187e6fb56fSmrg _EXT_CHECK=no 210197e6fb56fSmrgfi 210207e6fb56fSmrg 210217e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 210227e6fb56fSmrg CFLAGS="$SAVE_CFLAGS" 210237e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 210247e6fb56fSmrg$as_echo_n "checking if RENDER is defined... " >&6; } 210257e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 210267e6fb56fSmrg$as_echo "$_EXT_CHECK" >&6; } 210277e6fb56fSmrg if test "$_EXT_CHECK" != no; then 210287e6fb56fSmrg REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 210297e6fb56fSmrg fi 210307e6fb56fSmrg 210317e6fb56fSmrg 210327e6fb56fSmrg SAVE_CFLAGS="$CFLAGS" 210337e6fb56fSmrg CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 210347e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 210357e6fb56fSmrg/* confdefs.h. */ 210367e6fb56fSmrg_ACEOF 210377e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 210387e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 210397e6fb56fSmrg/* end confdefs.h. */ 210407e6fb56fSmrg 210417e6fb56fSmrg#include "xorg-server.h" 210427e6fb56fSmrg#if !defined XV 210437e6fb56fSmrg#error XV not defined 210447e6fb56fSmrg#endif 210457e6fb56fSmrg 210467e6fb56fSmrgint 210477e6fb56fSmrgmain () 210487e6fb56fSmrg{ 210497e6fb56fSmrg 210507e6fb56fSmrg ; 210517e6fb56fSmrg return 0; 210527e6fb56fSmrg} 210537e6fb56fSmrg_ACEOF 210547e6fb56fSmrgrm -f conftest.$ac_objext 210557e6fb56fSmrgif { (ac_try="$ac_compile" 210567e6fb56fSmrgcase "(($ac_try" in 210577e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 210587e6fb56fSmrg *) ac_try_echo=$ac_try;; 210597e6fb56fSmrgesac 210607e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 210617e6fb56fSmrg$as_echo "$ac_try_echo") >&5 210627e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 210637e6fb56fSmrg ac_status=$? 210647e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 210657e6fb56fSmrg rm -f conftest.er1 210667e6fb56fSmrg cat conftest.err >&5 210677e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 210687e6fb56fSmrg (exit $ac_status); } && { 210697e6fb56fSmrg test -z "$ac_c_werror_flag" || 210707e6fb56fSmrg test ! -s conftest.err 210717e6fb56fSmrg } && test -s conftest.$ac_objext; then 210727e6fb56fSmrg _EXT_CHECK=yes 210737e6fb56fSmrgelse 210747e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 210757e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 210767e6fb56fSmrg 210777e6fb56fSmrg _EXT_CHECK=no 210787e6fb56fSmrgfi 210797e6fb56fSmrg 210807e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 210817e6fb56fSmrg CFLAGS="$SAVE_CFLAGS" 210827e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 210837e6fb56fSmrg$as_echo_n "checking if XV is defined... " >&6; } 210847e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 210857e6fb56fSmrg$as_echo "$_EXT_CHECK" >&6; } 210867e6fb56fSmrg if test "$_EXT_CHECK" != no; then 210877e6fb56fSmrg REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 210887e6fb56fSmrg fi 210897e6fb56fSmrg 210907e6fb56fSmrg 210917e6fb56fSmrg SAVE_CFLAGS="$CFLAGS" 210927e6fb56fSmrg CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 210937e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 210947e6fb56fSmrg/* confdefs.h. */ 210957e6fb56fSmrg_ACEOF 210967e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 210977e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 210987e6fb56fSmrg/* end confdefs.h. */ 210997e6fb56fSmrg 211007e6fb56fSmrg#include "xorg-server.h" 211017e6fb56fSmrg#if !defined XF86DRI 211027e6fb56fSmrg#error XF86DRI not defined 211037e6fb56fSmrg#endif 211047e6fb56fSmrg 211057e6fb56fSmrgint 211067e6fb56fSmrgmain () 211077e6fb56fSmrg{ 211087e6fb56fSmrg 211097e6fb56fSmrg ; 211107e6fb56fSmrg return 0; 211117e6fb56fSmrg} 211127e6fb56fSmrg_ACEOF 211137e6fb56fSmrgrm -f conftest.$ac_objext 211147e6fb56fSmrgif { (ac_try="$ac_compile" 211157e6fb56fSmrgcase "(($ac_try" in 211167e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 211177e6fb56fSmrg *) ac_try_echo=$ac_try;; 211187e6fb56fSmrgesac 211197e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 211207e6fb56fSmrg$as_echo "$ac_try_echo") >&5 211217e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 211227e6fb56fSmrg ac_status=$? 211237e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 211247e6fb56fSmrg rm -f conftest.er1 211257e6fb56fSmrg cat conftest.err >&5 211267e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 211277e6fb56fSmrg (exit $ac_status); } && { 211287e6fb56fSmrg test -z "$ac_c_werror_flag" || 211297e6fb56fSmrg test ! -s conftest.err 211307e6fb56fSmrg } && test -s conftest.$ac_objext; then 211317e6fb56fSmrg _EXT_CHECK=yes 211327e6fb56fSmrgelse 211337e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 211347e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 211357e6fb56fSmrg 211367e6fb56fSmrg _EXT_CHECK=no 211377e6fb56fSmrgfi 211387e6fb56fSmrg 211397e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 211407e6fb56fSmrg CFLAGS="$SAVE_CFLAGS" 211417e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking if XF86DRI is defined" >&5 211427e6fb56fSmrg$as_echo_n "checking if XF86DRI is defined... " >&6; } 211437e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 211447e6fb56fSmrg$as_echo "$_EXT_CHECK" >&6; } 211457e6fb56fSmrg if test "$_EXT_CHECK" != no; then 211467e6fb56fSmrg REQUIRED_MODULES="$REQUIRED_MODULES xextproto x11" 211477e6fb56fSmrg fi 211487e6fb56fSmrg 211497e6fb56fSmrg 211507e6fb56fSmrg SAVE_CFLAGS="$CFLAGS" 211517e6fb56fSmrg CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 211527e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 211537e6fb56fSmrg/* confdefs.h. */ 211547e6fb56fSmrg_ACEOF 211557e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 211567e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 211577e6fb56fSmrg/* end confdefs.h. */ 211587e6fb56fSmrg 211597e6fb56fSmrg#include "xorg-server.h" 211607e6fb56fSmrg#if !defined DPMSExtension 211617e6fb56fSmrg#error DPMSExtension not defined 211627e6fb56fSmrg#endif 211637e6fb56fSmrg 211647e6fb56fSmrgint 211657e6fb56fSmrgmain () 211667e6fb56fSmrg{ 211677e6fb56fSmrg 211687e6fb56fSmrg ; 211697e6fb56fSmrg return 0; 211707e6fb56fSmrg} 211717e6fb56fSmrg_ACEOF 211727e6fb56fSmrgrm -f conftest.$ac_objext 211737e6fb56fSmrgif { (ac_try="$ac_compile" 211747e6fb56fSmrgcase "(($ac_try" in 211757e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 211767e6fb56fSmrg *) ac_try_echo=$ac_try;; 211777e6fb56fSmrgesac 211787e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 211797e6fb56fSmrg$as_echo "$ac_try_echo") >&5 211807e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 211817e6fb56fSmrg ac_status=$? 211827e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 211837e6fb56fSmrg rm -f conftest.er1 211847e6fb56fSmrg cat conftest.err >&5 211857e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 211867e6fb56fSmrg (exit $ac_status); } && { 211877e6fb56fSmrg test -z "$ac_c_werror_flag" || 211887e6fb56fSmrg test ! -s conftest.err 211897e6fb56fSmrg } && test -s conftest.$ac_objext; then 211907e6fb56fSmrg _EXT_CHECK=yes 211917e6fb56fSmrgelse 211927e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 211937e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 211947e6fb56fSmrg 211957e6fb56fSmrg _EXT_CHECK=no 211967e6fb56fSmrgfi 211977e6fb56fSmrg 211987e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 211997e6fb56fSmrg CFLAGS="$SAVE_CFLAGS" 212007e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 212017e6fb56fSmrg$as_echo_n "checking if DPMSExtension is defined... " >&6; } 212027e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 212037e6fb56fSmrg$as_echo "$_EXT_CHECK" >&6; } 212047e6fb56fSmrg if test "$_EXT_CHECK" != no; then 212057e6fb56fSmrg REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 212067e6fb56fSmrg fi 212077e6fb56fSmrg 212087e6fb56fSmrg 212097e6fb56fSmrg# Checks for pkg-config packages 212107e6fb56fSmrg 212117e6fb56fSmrg 212127e6fb56fSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 212137e6fb56fSmrg if test -n "$ac_tool_prefix"; then 212147e6fb56fSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 212157e6fb56fSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 212167e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 212177e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 212187e6fb56fSmrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then 212197e6fb56fSmrg $as_echo_n "(cached) " >&6 212207e6fb56fSmrgelse 212217e6fb56fSmrg case $PKG_CONFIG in 212227e6fb56fSmrg [\\/]* | ?:[\\/]*) 212237e6fb56fSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 212247e6fb56fSmrg ;; 212257e6fb56fSmrg *) 212267e6fb56fSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 212277e6fb56fSmrgfor as_dir in $PATH 212287e6fb56fSmrgdo 212297e6fb56fSmrg IFS=$as_save_IFS 212307e6fb56fSmrg test -z "$as_dir" && as_dir=. 212317e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 212327e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 212337e6fb56fSmrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 212347e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 212357e6fb56fSmrg break 2 212367e6fb56fSmrg fi 212377e6fb56fSmrgdone 212387e6fb56fSmrgdone 212397e6fb56fSmrgIFS=$as_save_IFS 212407e6fb56fSmrg 212417e6fb56fSmrg ;; 212427e6fb56fSmrgesac 212437e6fb56fSmrgfi 212447e6fb56fSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 212457e6fb56fSmrgif test -n "$PKG_CONFIG"; then 212467e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 212477e6fb56fSmrg$as_echo "$PKG_CONFIG" >&6; } 212487e6fb56fSmrgelse 212497e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 212507e6fb56fSmrg$as_echo "no" >&6; } 212517e6fb56fSmrgfi 212527e6fb56fSmrg 212537e6fb56fSmrg 212547e6fb56fSmrgfi 212557e6fb56fSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 212567e6fb56fSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 212577e6fb56fSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 212587e6fb56fSmrgset dummy pkg-config; ac_word=$2 212597e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 212607e6fb56fSmrg$as_echo_n "checking for $ac_word... " >&6; } 212617e6fb56fSmrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 212627e6fb56fSmrg $as_echo_n "(cached) " >&6 212637e6fb56fSmrgelse 212647e6fb56fSmrg case $ac_pt_PKG_CONFIG in 212657e6fb56fSmrg [\\/]* | ?:[\\/]*) 212667e6fb56fSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 212677e6fb56fSmrg ;; 212687e6fb56fSmrg *) 212697e6fb56fSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 212707e6fb56fSmrgfor as_dir in $PATH 212717e6fb56fSmrgdo 212727e6fb56fSmrg IFS=$as_save_IFS 212737e6fb56fSmrg test -z "$as_dir" && as_dir=. 212747e6fb56fSmrg for ac_exec_ext in '' $ac_executable_extensions; do 212757e6fb56fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 212767e6fb56fSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 212777e6fb56fSmrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 212787e6fb56fSmrg break 2 212797e6fb56fSmrg fi 212807e6fb56fSmrgdone 212817e6fb56fSmrgdone 212827e6fb56fSmrgIFS=$as_save_IFS 212837e6fb56fSmrg 212847e6fb56fSmrg ;; 212857e6fb56fSmrgesac 212867e6fb56fSmrgfi 212877e6fb56fSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 212887e6fb56fSmrgif test -n "$ac_pt_PKG_CONFIG"; then 212897e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 212907e6fb56fSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 212917e6fb56fSmrgelse 212927e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 212937e6fb56fSmrg$as_echo "no" >&6; } 212947e6fb56fSmrgfi 212957e6fb56fSmrg 212967e6fb56fSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 212977e6fb56fSmrg PKG_CONFIG="" 212987e6fb56fSmrg else 212997e6fb56fSmrg case $cross_compiling:$ac_tool_warned in 213007e6fb56fSmrgyes:) 213017e6fb56fSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 213027e6fb56fSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 213037e6fb56fSmrgac_tool_warned=yes ;; 213047e6fb56fSmrgesac 213057e6fb56fSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 213067e6fb56fSmrg fi 213077e6fb56fSmrgelse 213087e6fb56fSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 213097e6fb56fSmrgfi 213107e6fb56fSmrg 213117e6fb56fSmrgfi 213127e6fb56fSmrgif test -n "$PKG_CONFIG"; then 213137e6fb56fSmrg _pkg_min_version=0.9.0 213147e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 213157e6fb56fSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 213167e6fb56fSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 213177e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: yes" >&5 213187e6fb56fSmrg$as_echo "yes" >&6; } 213197e6fb56fSmrg else 213207e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 213217e6fb56fSmrg$as_echo "no" >&6; } 213227e6fb56fSmrg PKG_CONFIG="" 213237e6fb56fSmrg fi 213247e6fb56fSmrg 213257e6fb56fSmrgfi 213267e6fb56fSmrg 213277e6fb56fSmrgpkg_failed=no 213287e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 213297e6fb56fSmrg$as_echo_n "checking for XORG... " >&6; } 213307e6fb56fSmrg 213317e6fb56fSmrgif test -n "$XORG_CFLAGS"; then 213327e6fb56fSmrg pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 213337e6fb56fSmrg elif test -n "$PKG_CONFIG"; then 213347e6fb56fSmrg if test -n "$PKG_CONFIG" && \ 213357e6fb56fSmrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto libdrm \$REQUIRED_MODULES\"") >&5 213367e6fb56fSmrg ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto libdrm $REQUIRED_MODULES") 2>&5 213377e6fb56fSmrg ac_status=$? 213387e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 213397e6fb56fSmrg (exit $ac_status); }; then 213407e6fb56fSmrg pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto libdrm $REQUIRED_MODULES" 2>/dev/null` 213417e6fb56fSmrgelse 213427e6fb56fSmrg pkg_failed=yes 213437e6fb56fSmrgfi 213447e6fb56fSmrg else 213457e6fb56fSmrg pkg_failed=untried 213467e6fb56fSmrgfi 213477e6fb56fSmrgif test -n "$XORG_LIBS"; then 213487e6fb56fSmrg pkg_cv_XORG_LIBS="$XORG_LIBS" 213497e6fb56fSmrg elif test -n "$PKG_CONFIG"; then 213507e6fb56fSmrg if test -n "$PKG_CONFIG" && \ 213517e6fb56fSmrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto libdrm \$REQUIRED_MODULES\"") >&5 213527e6fb56fSmrg ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto libdrm $REQUIRED_MODULES") 2>&5 213537e6fb56fSmrg ac_status=$? 213547e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 213557e6fb56fSmrg (exit $ac_status); }; then 213567e6fb56fSmrg pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto libdrm $REQUIRED_MODULES" 2>/dev/null` 213577e6fb56fSmrgelse 213587e6fb56fSmrg pkg_failed=yes 213597e6fb56fSmrgfi 213607e6fb56fSmrg else 213617e6fb56fSmrg pkg_failed=untried 213627e6fb56fSmrgfi 213637e6fb56fSmrg 213647e6fb56fSmrg 213657e6fb56fSmrg 213667e6fb56fSmrgif test $pkg_failed = yes; then 213677e6fb56fSmrg 213687e6fb56fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 213697e6fb56fSmrg _pkg_short_errors_supported=yes 213707e6fb56fSmrgelse 213717e6fb56fSmrg _pkg_short_errors_supported=no 213727e6fb56fSmrgfi 213737e6fb56fSmrg if test $_pkg_short_errors_supported = yes; then 213747e6fb56fSmrg XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server xproto fontsproto libdrm $REQUIRED_MODULES" 2>&1` 213757e6fb56fSmrg else 213767e6fb56fSmrg XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server xproto fontsproto libdrm $REQUIRED_MODULES" 2>&1` 213777e6fb56fSmrg fi 213787e6fb56fSmrg # Put the nasty error message in config.log where it belongs 213797e6fb56fSmrg echo "$XORG_PKG_ERRORS" >&5 213807e6fb56fSmrg 213817e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto fontsproto libdrm $REQUIRED_MODULES) were not met: 213827e6fb56fSmrg 213837e6fb56fSmrg$XORG_PKG_ERRORS 213847e6fb56fSmrg 213857e6fb56fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 213867e6fb56fSmrginstalled software in a non-standard prefix. 213877e6fb56fSmrg 213887e6fb56fSmrgAlternatively, you may set the environment variables XORG_CFLAGS 213897e6fb56fSmrgand XORG_LIBS to avoid the need to call pkg-config. 213907e6fb56fSmrgSee the pkg-config man page for more details. 213917e6fb56fSmrg" >&5 213927e6fb56fSmrg$as_echo "$as_me: error: Package requirements (xorg-server xproto fontsproto libdrm $REQUIRED_MODULES) were not met: 213937e6fb56fSmrg 213947e6fb56fSmrg$XORG_PKG_ERRORS 213957e6fb56fSmrg 213967e6fb56fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 213977e6fb56fSmrginstalled software in a non-standard prefix. 213987e6fb56fSmrg 213997e6fb56fSmrgAlternatively, you may set the environment variables XORG_CFLAGS 214007e6fb56fSmrgand XORG_LIBS to avoid the need to call pkg-config. 214017e6fb56fSmrgSee the pkg-config man page for more details. 214027e6fb56fSmrg" >&2;} 214037e6fb56fSmrg { (exit 1); exit 1; }; } 214047e6fb56fSmrgelif test $pkg_failed = untried; then 214057e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 214067e6fb56fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 214077e6fb56fSmrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 214087e6fb56fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 214097e6fb56fSmrgpath to pkg-config. 214107e6fb56fSmrg 214117e6fb56fSmrgAlternatively, you may set the environment variables XORG_CFLAGS 214127e6fb56fSmrgand XORG_LIBS to avoid the need to call pkg-config. 214137e6fb56fSmrgSee the pkg-config man page for more details. 214147e6fb56fSmrg 214157e6fb56fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 214167e6fb56fSmrgSee \`config.log' for more details." >&5 214177e6fb56fSmrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 214187e6fb56fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 214197e6fb56fSmrgpath to pkg-config. 214207e6fb56fSmrg 214217e6fb56fSmrgAlternatively, you may set the environment variables XORG_CFLAGS 214227e6fb56fSmrgand XORG_LIBS to avoid the need to call pkg-config. 214237e6fb56fSmrgSee the pkg-config man page for more details. 214247e6fb56fSmrg 214257e6fb56fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 214267e6fb56fSmrgSee \`config.log' for more details." >&2;} 214277e6fb56fSmrg { (exit 1); exit 1; }; }; } 214287e6fb56fSmrgelse 214297e6fb56fSmrg XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 214307e6fb56fSmrg XORG_LIBS=$pkg_cv_XORG_LIBS 214317e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: yes" >&5 214327e6fb56fSmrg$as_echo "yes" >&6; } 214337e6fb56fSmrg : 214347e6fb56fSmrgfi 214357e6fb56fSmrg 214367e6fb56fSmrgpkg_failed=no 214377e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for XEXT" >&5 214387e6fb56fSmrg$as_echo_n "checking for XEXT... " >&6; } 214397e6fb56fSmrg 214407e6fb56fSmrgif test -n "$XEXT_CFLAGS"; then 214417e6fb56fSmrg pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 214427e6fb56fSmrg elif test -n "$PKG_CONFIG"; then 214437e6fb56fSmrg if test -n "$PKG_CONFIG" && \ 214447e6fb56fSmrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5 214457e6fb56fSmrg ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 214467e6fb56fSmrg ac_status=$? 214477e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 214487e6fb56fSmrg (exit $ac_status); }; then 214497e6fb56fSmrg pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 214507e6fb56fSmrgelse 214517e6fb56fSmrg pkg_failed=yes 214527e6fb56fSmrgfi 214537e6fb56fSmrg else 214547e6fb56fSmrg pkg_failed=untried 214557e6fb56fSmrgfi 214567e6fb56fSmrgif test -n "$XEXT_LIBS"; then 214577e6fb56fSmrg pkg_cv_XEXT_LIBS="$XEXT_LIBS" 214587e6fb56fSmrg elif test -n "$PKG_CONFIG"; then 214597e6fb56fSmrg if test -n "$PKG_CONFIG" && \ 214607e6fb56fSmrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5 214617e6fb56fSmrg ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 214627e6fb56fSmrg ac_status=$? 214637e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 214647e6fb56fSmrg (exit $ac_status); }; then 214657e6fb56fSmrg pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 214667e6fb56fSmrgelse 214677e6fb56fSmrg pkg_failed=yes 214687e6fb56fSmrgfi 214697e6fb56fSmrg else 214707e6fb56fSmrg pkg_failed=untried 214717e6fb56fSmrgfi 214727e6fb56fSmrg 214737e6fb56fSmrg 214747e6fb56fSmrg 214757e6fb56fSmrgif test $pkg_failed = yes; then 214767e6fb56fSmrg 214777e6fb56fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 214787e6fb56fSmrg _pkg_short_errors_supported=yes 214797e6fb56fSmrgelse 214807e6fb56fSmrg _pkg_short_errors_supported=no 214817e6fb56fSmrgfi 214827e6fb56fSmrg if test $_pkg_short_errors_supported = yes; then 214837e6fb56fSmrg XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1` 214847e6fb56fSmrg else 214857e6fb56fSmrg XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1` 214867e6fb56fSmrg fi 214877e6fb56fSmrg # Put the nasty error message in config.log where it belongs 214887e6fb56fSmrg echo "$XEXT_PKG_ERRORS" >&5 214897e6fb56fSmrg 214907e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: no" >&5 214917e6fb56fSmrg$as_echo "no" >&6; } 214927e6fb56fSmrg HAVE_XEXTPROTO_71="no" 214937e6fb56fSmrgelif test $pkg_failed = untried; then 214947e6fb56fSmrg HAVE_XEXTPROTO_71="no" 214957e6fb56fSmrgelse 214967e6fb56fSmrg XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 214977e6fb56fSmrg XEXT_LIBS=$pkg_cv_XEXT_LIBS 214987e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: yes" >&5 214997e6fb56fSmrg$as_echo "yes" >&6; } 215007e6fb56fSmrg HAVE_XEXTPROTO_71="yes"; 215017e6fb56fSmrgcat >>confdefs.h <<\_ACEOF 215027e6fb56fSmrg#define HAVE_XEXTPROTO_71 1 215037e6fb56fSmrg_ACEOF 215047e6fb56fSmrg 215057e6fb56fSmrgfi 215067e6fb56fSmrg if test "$HAVE_XEXTPROTO_71" = "yes" ; then 215077e6fb56fSmrg HAVE_XEXTPROTO_71_TRUE= 215087e6fb56fSmrg HAVE_XEXTPROTO_71_FALSE='#' 215097e6fb56fSmrgelse 215107e6fb56fSmrg HAVE_XEXTPROTO_71_TRUE='#' 215117e6fb56fSmrg HAVE_XEXTPROTO_71_FALSE= 215127e6fb56fSmrgfi 215137e6fb56fSmrg 215147e6fb56fSmrgsdkdir=$(pkg-config --variable=sdkdir xorg-server) 215157e6fb56fSmrg 215167e6fb56fSmrg# Checks for libraries. 215177e6fb56fSmrg 215187e6fb56fSmrg# Checks for header files. 215197e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 215207e6fb56fSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 215217e6fb56fSmrgif test "${ac_cv_header_stdc+set}" = set; then 215227e6fb56fSmrg $as_echo_n "(cached) " >&6 215237e6fb56fSmrgelse 215247e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 215257e6fb56fSmrg/* confdefs.h. */ 215267e6fb56fSmrg_ACEOF 215277e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 215287e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 215297e6fb56fSmrg/* end confdefs.h. */ 215307e6fb56fSmrg#include <stdlib.h> 215317e6fb56fSmrg#include <stdarg.h> 215327e6fb56fSmrg#include <string.h> 215337e6fb56fSmrg#include <float.h> 215347e6fb56fSmrg 215357e6fb56fSmrgint 215367e6fb56fSmrgmain () 215377e6fb56fSmrg{ 215387e6fb56fSmrg 215397e6fb56fSmrg ; 215407e6fb56fSmrg return 0; 215417e6fb56fSmrg} 215427e6fb56fSmrg_ACEOF 215437e6fb56fSmrgrm -f conftest.$ac_objext 215447e6fb56fSmrgif { (ac_try="$ac_compile" 215457e6fb56fSmrgcase "(($ac_try" in 215467e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 215477e6fb56fSmrg *) ac_try_echo=$ac_try;; 215487e6fb56fSmrgesac 215497e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 215507e6fb56fSmrg$as_echo "$ac_try_echo") >&5 215517e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 215527e6fb56fSmrg ac_status=$? 215537e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 215547e6fb56fSmrg rm -f conftest.er1 215557e6fb56fSmrg cat conftest.err >&5 215567e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 215577e6fb56fSmrg (exit $ac_status); } && { 215587e6fb56fSmrg test -z "$ac_c_werror_flag" || 215597e6fb56fSmrg test ! -s conftest.err 215607e6fb56fSmrg } && test -s conftest.$ac_objext; then 215617e6fb56fSmrg ac_cv_header_stdc=yes 215627e6fb56fSmrgelse 215637e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 215647e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 215657e6fb56fSmrg 215667e6fb56fSmrg ac_cv_header_stdc=no 215677e6fb56fSmrgfi 215687e6fb56fSmrg 215697e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 215707e6fb56fSmrg 215717e6fb56fSmrgif test $ac_cv_header_stdc = yes; then 215727e6fb56fSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 215737e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 215747e6fb56fSmrg/* confdefs.h. */ 215757e6fb56fSmrg_ACEOF 215767e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 215777e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 215787e6fb56fSmrg/* end confdefs.h. */ 215797e6fb56fSmrg#include <string.h> 215807e6fb56fSmrg 215817e6fb56fSmrg_ACEOF 215827e6fb56fSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 215837e6fb56fSmrg $EGREP "memchr" >/dev/null 2>&1; then 215847e6fb56fSmrg : 215857e6fb56fSmrgelse 215867e6fb56fSmrg ac_cv_header_stdc=no 215877e6fb56fSmrgfi 215887e6fb56fSmrgrm -f conftest* 215897e6fb56fSmrg 215907e6fb56fSmrgfi 215917e6fb56fSmrg 215927e6fb56fSmrgif test $ac_cv_header_stdc = yes; then 215937e6fb56fSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 215947e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 215957e6fb56fSmrg/* confdefs.h. */ 215967e6fb56fSmrg_ACEOF 215977e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 215987e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 215997e6fb56fSmrg/* end confdefs.h. */ 216007e6fb56fSmrg#include <stdlib.h> 216017e6fb56fSmrg 216027e6fb56fSmrg_ACEOF 216037e6fb56fSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 216047e6fb56fSmrg $EGREP "free" >/dev/null 2>&1; then 216057e6fb56fSmrg : 216067e6fb56fSmrgelse 216077e6fb56fSmrg ac_cv_header_stdc=no 216087e6fb56fSmrgfi 216097e6fb56fSmrgrm -f conftest* 216107e6fb56fSmrg 216117e6fb56fSmrgfi 216127e6fb56fSmrg 216137e6fb56fSmrgif test $ac_cv_header_stdc = yes; then 216147e6fb56fSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 216157e6fb56fSmrg if test "$cross_compiling" = yes; then 216167e6fb56fSmrg : 216177e6fb56fSmrgelse 216187e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 216197e6fb56fSmrg/* confdefs.h. */ 216207e6fb56fSmrg_ACEOF 216217e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 216227e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 216237e6fb56fSmrg/* end confdefs.h. */ 216247e6fb56fSmrg#include <ctype.h> 216257e6fb56fSmrg#include <stdlib.h> 216267e6fb56fSmrg#if ((' ' & 0x0FF) == 0x020) 216277e6fb56fSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 216287e6fb56fSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 216297e6fb56fSmrg#else 216307e6fb56fSmrg# define ISLOWER(c) \ 216317e6fb56fSmrg (('a' <= (c) && (c) <= 'i') \ 216327e6fb56fSmrg || ('j' <= (c) && (c) <= 'r') \ 216337e6fb56fSmrg || ('s' <= (c) && (c) <= 'z')) 216347e6fb56fSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 216357e6fb56fSmrg#endif 216367e6fb56fSmrg 216377e6fb56fSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 216387e6fb56fSmrgint 216397e6fb56fSmrgmain () 216407e6fb56fSmrg{ 216417e6fb56fSmrg int i; 216427e6fb56fSmrg for (i = 0; i < 256; i++) 216437e6fb56fSmrg if (XOR (islower (i), ISLOWER (i)) 216447e6fb56fSmrg || toupper (i) != TOUPPER (i)) 216457e6fb56fSmrg return 2; 216467e6fb56fSmrg return 0; 216477e6fb56fSmrg} 216487e6fb56fSmrg_ACEOF 216497e6fb56fSmrgrm -f conftest$ac_exeext 216507e6fb56fSmrgif { (ac_try="$ac_link" 216517e6fb56fSmrgcase "(($ac_try" in 216527e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 216537e6fb56fSmrg *) ac_try_echo=$ac_try;; 216547e6fb56fSmrgesac 216557e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 216567e6fb56fSmrg$as_echo "$ac_try_echo") >&5 216577e6fb56fSmrg (eval "$ac_link") 2>&5 216587e6fb56fSmrg ac_status=$? 216597e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 216607e6fb56fSmrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 216617e6fb56fSmrg { (case "(($ac_try" in 216627e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 216637e6fb56fSmrg *) ac_try_echo=$ac_try;; 216647e6fb56fSmrgesac 216657e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 216667e6fb56fSmrg$as_echo "$ac_try_echo") >&5 216677e6fb56fSmrg (eval "$ac_try") 2>&5 216687e6fb56fSmrg ac_status=$? 216697e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 216707e6fb56fSmrg (exit $ac_status); }; }; then 216717e6fb56fSmrg : 216727e6fb56fSmrgelse 216737e6fb56fSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 216747e6fb56fSmrg$as_echo "$as_me: failed program was:" >&5 216757e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 216767e6fb56fSmrg 216777e6fb56fSmrg( exit $ac_status ) 216787e6fb56fSmrgac_cv_header_stdc=no 216797e6fb56fSmrgfi 216807e6fb56fSmrgrm -rf conftest.dSYM 216817e6fb56fSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 216827e6fb56fSmrgfi 216837e6fb56fSmrg 216847e6fb56fSmrg 216857e6fb56fSmrgfi 216867e6fb56fSmrgfi 216877e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 216887e6fb56fSmrg$as_echo "$ac_cv_header_stdc" >&6; } 216897e6fb56fSmrgif test $ac_cv_header_stdc = yes; then 216907e6fb56fSmrg 216917e6fb56fSmrgcat >>confdefs.h <<\_ACEOF 216927e6fb56fSmrg#define STDC_HEADERS 1 216937e6fb56fSmrg_ACEOF 216947e6fb56fSmrg 216957e6fb56fSmrgfi 216967e6fb56fSmrg 216977e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for xf86Modes.h" >&5 216987e6fb56fSmrg$as_echo_n "checking for xf86Modes.h... " >&6; } 216997e6fb56fSmrgif test "${ac_cv_header_xf86Modes_h+set}" = set; then 217007e6fb56fSmrg $as_echo_n "(cached) " >&6 217017e6fb56fSmrgelse 217027e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 217037e6fb56fSmrg/* confdefs.h. */ 217047e6fb56fSmrg_ACEOF 217057e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 217067e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 217077e6fb56fSmrg/* end confdefs.h. */ 217087e6fb56fSmrg#include "xorg-server.h" 217097e6fb56fSmrg 217107e6fb56fSmrg#include <xf86Modes.h> 217117e6fb56fSmrg_ACEOF 217127e6fb56fSmrgrm -f conftest.$ac_objext 217137e6fb56fSmrgif { (ac_try="$ac_compile" 217147e6fb56fSmrgcase "(($ac_try" in 217157e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 217167e6fb56fSmrg *) ac_try_echo=$ac_try;; 217177e6fb56fSmrgesac 217187e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 217197e6fb56fSmrg$as_echo "$ac_try_echo") >&5 217207e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 217217e6fb56fSmrg ac_status=$? 217227e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 217237e6fb56fSmrg rm -f conftest.er1 217247e6fb56fSmrg cat conftest.err >&5 217257e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 217267e6fb56fSmrg (exit $ac_status); } && { 217277e6fb56fSmrg test -z "$ac_c_werror_flag" || 217287e6fb56fSmrg test ! -s conftest.err 217297e6fb56fSmrg } && test -s conftest.$ac_objext; then 217307e6fb56fSmrg ac_cv_header_xf86Modes_h=yes 217317e6fb56fSmrgelse 217327e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 217337e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 217347e6fb56fSmrg 217357e6fb56fSmrg ac_cv_header_xf86Modes_h=no 217367e6fb56fSmrgfi 217377e6fb56fSmrg 217387e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 217397e6fb56fSmrgfi 217407e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf86Modes_h" >&5 217417e6fb56fSmrg$as_echo "$ac_cv_header_xf86Modes_h" >&6; } 217427e6fb56fSmrgif test "x$ac_cv_header_xf86Modes_h" = x""yes; then 217437e6fb56fSmrg XMODES=yes 217447e6fb56fSmrgelse 217457e6fb56fSmrg XMODES=no 217467e6fb56fSmrgfi 217477e6fb56fSmrg 217487e6fb56fSmrg 217497e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 217507e6fb56fSmrg$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 217517e6fb56fSmrgif test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 217527e6fb56fSmrg $as_echo_n "(cached) " >&6 217537e6fb56fSmrgelse 217547e6fb56fSmrg cat >conftest.$ac_ext <<_ACEOF 217557e6fb56fSmrg/* confdefs.h. */ 217567e6fb56fSmrg_ACEOF 217577e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 217587e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 217597e6fb56fSmrg/* end confdefs.h. */ 217607e6fb56fSmrg#include "xorg/xorg-server.h" 217617e6fb56fSmrg 217627e6fb56fSmrgint 217637e6fb56fSmrgmain () 217647e6fb56fSmrg{ 217657e6fb56fSmrg#ifndef XSERVER_LIBPCIACCESS 217667e6fb56fSmrg (void) XSERVER_LIBPCIACCESS; 217677e6fb56fSmrg#endif 217687e6fb56fSmrg 217697e6fb56fSmrg ; 217707e6fb56fSmrg return 0; 217717e6fb56fSmrg} 217727e6fb56fSmrg_ACEOF 217737e6fb56fSmrgrm -f conftest.$ac_objext 217747e6fb56fSmrgif { (ac_try="$ac_compile" 217757e6fb56fSmrgcase "(($ac_try" in 217767e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 217777e6fb56fSmrg *) ac_try_echo=$ac_try;; 217787e6fb56fSmrgesac 217797e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 217807e6fb56fSmrg$as_echo "$ac_try_echo") >&5 217817e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 217827e6fb56fSmrg ac_status=$? 217837e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 217847e6fb56fSmrg rm -f conftest.er1 217857e6fb56fSmrg cat conftest.err >&5 217867e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 217877e6fb56fSmrg (exit $ac_status); } && { 217887e6fb56fSmrg test -z "$ac_c_werror_flag" || 217897e6fb56fSmrg test ! -s conftest.err 217907e6fb56fSmrg } && test -s conftest.$ac_objext; then 217917e6fb56fSmrg ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 217927e6fb56fSmrgelse 217937e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 217947e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 217957e6fb56fSmrg 217967e6fb56fSmrg ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 217977e6fb56fSmrgfi 217987e6fb56fSmrg 217997e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 218007e6fb56fSmrgfi 218017e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 218027e6fb56fSmrg$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 218037e6fb56fSmrgif test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 218047e6fb56fSmrg XSERVER_LIBPCIACCESS=yes 218057e6fb56fSmrgelse 218067e6fb56fSmrg XSERVER_LIBPCIACCESS=no 218077e6fb56fSmrgfi 218087e6fb56fSmrg 218097e6fb56fSmrg 218107e6fb56fSmrgif test x$XSERVER_LIBPCIACCESS = xyes; then 218117e6fb56fSmrg 218127e6fb56fSmrgpkg_failed=no 218137e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 218147e6fb56fSmrg$as_echo_n "checking for PCIACCESS... " >&6; } 218157e6fb56fSmrg 218167e6fb56fSmrgif test -n "$PCIACCESS_CFLAGS"; then 218177e6fb56fSmrg pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 218187e6fb56fSmrg elif test -n "$PKG_CONFIG"; then 218197e6fb56fSmrg if test -n "$PKG_CONFIG" && \ 218207e6fb56fSmrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 218217e6fb56fSmrg ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 218227e6fb56fSmrg ac_status=$? 218237e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 218247e6fb56fSmrg (exit $ac_status); }; then 218257e6fb56fSmrg pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 218267e6fb56fSmrgelse 218277e6fb56fSmrg pkg_failed=yes 218287e6fb56fSmrgfi 218297e6fb56fSmrg else 218307e6fb56fSmrg pkg_failed=untried 218317e6fb56fSmrgfi 218327e6fb56fSmrgif test -n "$PCIACCESS_LIBS"; then 218337e6fb56fSmrg pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 218347e6fb56fSmrg elif test -n "$PKG_CONFIG"; then 218357e6fb56fSmrg if test -n "$PKG_CONFIG" && \ 218367e6fb56fSmrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 218377e6fb56fSmrg ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 218387e6fb56fSmrg ac_status=$? 218397e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 218407e6fb56fSmrg (exit $ac_status); }; then 218417e6fb56fSmrg pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 218427e6fb56fSmrgelse 218437e6fb56fSmrg pkg_failed=yes 218447e6fb56fSmrgfi 218457e6fb56fSmrg else 218467e6fb56fSmrg pkg_failed=untried 218477e6fb56fSmrgfi 218487e6fb56fSmrg 218497e6fb56fSmrg 218507e6fb56fSmrg 218517e6fb56fSmrgif test $pkg_failed = yes; then 218527e6fb56fSmrg 218537e6fb56fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 218547e6fb56fSmrg _pkg_short_errors_supported=yes 218557e6fb56fSmrgelse 218567e6fb56fSmrg _pkg_short_errors_supported=no 218577e6fb56fSmrgfi 218587e6fb56fSmrg if test $_pkg_short_errors_supported = yes; then 218597e6fb56fSmrg PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 218607e6fb56fSmrg else 218617e6fb56fSmrg PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 218627e6fb56fSmrg fi 218637e6fb56fSmrg # Put the nasty error message in config.log where it belongs 218647e6fb56fSmrg echo "$PCIACCESS_PKG_ERRORS" >&5 218657e6fb56fSmrg 218667e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 218677e6fb56fSmrg 218687e6fb56fSmrg$PCIACCESS_PKG_ERRORS 218697e6fb56fSmrg 218707e6fb56fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 218717e6fb56fSmrginstalled software in a non-standard prefix. 218727e6fb56fSmrg 218737e6fb56fSmrgAlternatively, you may set the environment variables PCIACCESS_CFLAGS 218747e6fb56fSmrgand PCIACCESS_LIBS to avoid the need to call pkg-config. 218757e6fb56fSmrgSee the pkg-config man page for more details. 218767e6fb56fSmrg" >&5 218777e6fb56fSmrg$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 218787e6fb56fSmrg 218797e6fb56fSmrg$PCIACCESS_PKG_ERRORS 218807e6fb56fSmrg 218817e6fb56fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 218827e6fb56fSmrginstalled software in a non-standard prefix. 218837e6fb56fSmrg 218847e6fb56fSmrgAlternatively, you may set the environment variables PCIACCESS_CFLAGS 218857e6fb56fSmrgand PCIACCESS_LIBS to avoid the need to call pkg-config. 218867e6fb56fSmrgSee the pkg-config man page for more details. 218877e6fb56fSmrg" >&2;} 218887e6fb56fSmrg { (exit 1); exit 1; }; } 218897e6fb56fSmrgelif test $pkg_failed = untried; then 218907e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 218917e6fb56fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 218927e6fb56fSmrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 218937e6fb56fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 218947e6fb56fSmrgpath to pkg-config. 218957e6fb56fSmrg 218967e6fb56fSmrgAlternatively, you may set the environment variables PCIACCESS_CFLAGS 218977e6fb56fSmrgand PCIACCESS_LIBS to avoid the need to call pkg-config. 218987e6fb56fSmrgSee the pkg-config man page for more details. 218997e6fb56fSmrg 219007e6fb56fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 219017e6fb56fSmrgSee \`config.log' for more details." >&5 219027e6fb56fSmrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 219037e6fb56fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 219047e6fb56fSmrgpath to pkg-config. 219057e6fb56fSmrg 219067e6fb56fSmrgAlternatively, you may set the environment variables PCIACCESS_CFLAGS 219077e6fb56fSmrgand PCIACCESS_LIBS to avoid the need to call pkg-config. 219087e6fb56fSmrgSee the pkg-config man page for more details. 219097e6fb56fSmrg 219107e6fb56fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 219117e6fb56fSmrgSee \`config.log' for more details." >&2;} 219127e6fb56fSmrg { (exit 1); exit 1; }; }; } 219137e6fb56fSmrgelse 219147e6fb56fSmrg PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 219157e6fb56fSmrg PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 219167e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: yes" >&5 219177e6fb56fSmrg$as_echo "yes" >&6; } 219187e6fb56fSmrg : 219197e6fb56fSmrgfi 219207e6fb56fSmrgfi 219217e6fb56fSmrg 219227e6fb56fSmrgif test "$DRI" != no; then 219237e6fb56fSmrg as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 219247e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5 219257e6fb56fSmrg$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; } 219267e6fb56fSmrgif { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 219277e6fb56fSmrg $as_echo_n "(cached) " >&6 219287e6fb56fSmrgelse 219297e6fb56fSmrg test "$cross_compiling" = yes && 219307e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 219317e6fb56fSmrg$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 219327e6fb56fSmrg { (exit 1); exit 1; }; } 219337e6fb56fSmrgif test -r "${sdkdir}/dri.h"; then 219347e6fb56fSmrg eval "$as_ac_File=yes" 219357e6fb56fSmrgelse 219367e6fb56fSmrg eval "$as_ac_File=no" 219377e6fb56fSmrgfi 219387e6fb56fSmrgfi 219397e6fb56fSmrgac_res=`eval 'as_val=${'$as_ac_File'} 219407e6fb56fSmrg $as_echo "$as_val"'` 219417e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 219427e6fb56fSmrg$as_echo "$ac_res" >&6; } 219437e6fb56fSmrgas_val=`eval 'as_val=${'$as_ac_File'} 219447e6fb56fSmrg $as_echo "$as_val"'` 219457e6fb56fSmrg if test "x$as_val" = x""yes; then 219467e6fb56fSmrg have_dri_h="yes" 219477e6fb56fSmrgelse 219487e6fb56fSmrg have_dri_h="no" 219497e6fb56fSmrgfi 219507e6fb56fSmrg 219517e6fb56fSmrg as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 219527e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5 219537e6fb56fSmrg$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; } 219547e6fb56fSmrgif { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 219557e6fb56fSmrg $as_echo_n "(cached) " >&6 219567e6fb56fSmrgelse 219577e6fb56fSmrg test "$cross_compiling" = yes && 219587e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 219597e6fb56fSmrg$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 219607e6fb56fSmrg { (exit 1); exit 1; }; } 219617e6fb56fSmrgif test -r "${sdkdir}/sarea.h"; then 219627e6fb56fSmrg eval "$as_ac_File=yes" 219637e6fb56fSmrgelse 219647e6fb56fSmrg eval "$as_ac_File=no" 219657e6fb56fSmrgfi 219667e6fb56fSmrgfi 219677e6fb56fSmrgac_res=`eval 'as_val=${'$as_ac_File'} 219687e6fb56fSmrg $as_echo "$as_val"'` 219697e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 219707e6fb56fSmrg$as_echo "$ac_res" >&6; } 219717e6fb56fSmrgas_val=`eval 'as_val=${'$as_ac_File'} 219727e6fb56fSmrg $as_echo "$as_val"'` 219737e6fb56fSmrg if test "x$as_val" = x""yes; then 219747e6fb56fSmrg have_sarea_h="yes" 219757e6fb56fSmrgelse 219767e6fb56fSmrg have_sarea_h="no" 219777e6fb56fSmrgfi 219787e6fb56fSmrg 219797e6fb56fSmrg as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 219807e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5 219817e6fb56fSmrg$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; } 219827e6fb56fSmrgif { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 219837e6fb56fSmrg $as_echo_n "(cached) " >&6 219847e6fb56fSmrgelse 219857e6fb56fSmrg test "$cross_compiling" = yes && 219867e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 219877e6fb56fSmrg$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 219887e6fb56fSmrg { (exit 1); exit 1; }; } 219897e6fb56fSmrgif test -r "${sdkdir}/dristruct.h"; then 219907e6fb56fSmrg eval "$as_ac_File=yes" 219917e6fb56fSmrgelse 219927e6fb56fSmrg eval "$as_ac_File=no" 219937e6fb56fSmrgfi 219947e6fb56fSmrgfi 219957e6fb56fSmrgac_res=`eval 'as_val=${'$as_ac_File'} 219967e6fb56fSmrg $as_echo "$as_val"'` 219977e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 219987e6fb56fSmrg$as_echo "$ac_res" >&6; } 219997e6fb56fSmrgas_val=`eval 'as_val=${'$as_ac_File'} 220007e6fb56fSmrg $as_echo "$as_val"'` 220017e6fb56fSmrg if test "x$as_val" = x""yes; then 220027e6fb56fSmrg have_dristruct_h="yes" 220037e6fb56fSmrgelse 220047e6fb56fSmrg have_dristruct_h="no" 220057e6fb56fSmrgfi 220067e6fb56fSmrg 220077e6fb56fSmrgfi 220087e6fb56fSmrg 220097e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5 220107e6fb56fSmrg$as_echo_n "checking whether to include DRI support... " >&6; } 220117e6fb56fSmrgif test x$DRI = xauto; then 220127e6fb56fSmrg if test "$have_dri_h" = yes -a \ 220137e6fb56fSmrg "$have_sarea_h" = yes -a \ 220147e6fb56fSmrg "$have_dristruct_h" = yes; then 220157e6fb56fSmrg DRI="yes" 220167e6fb56fSmrg else 220177e6fb56fSmrg DRI="no" 220187e6fb56fSmrg fi 220197e6fb56fSmrgfi 220207e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $DRI" >&5 220217e6fb56fSmrg$as_echo "$DRI" >&6; } 220227e6fb56fSmrg 220237e6fb56fSmrg if test x$DRI = xyes; then 220247e6fb56fSmrg DRI_TRUE= 220257e6fb56fSmrg DRI_FALSE='#' 220267e6fb56fSmrgelse 220277e6fb56fSmrg DRI_TRUE='#' 220287e6fb56fSmrg DRI_FALSE= 220297e6fb56fSmrgfi 220307e6fb56fSmrg 220317e6fb56fSmrgif test "$DRI" = yes; then 220327e6fb56fSmrg 220337e6fb56fSmrgpkg_failed=no 220347e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for DRI" >&5 220357e6fb56fSmrg$as_echo_n "checking for DRI... " >&6; } 220367e6fb56fSmrg 220377e6fb56fSmrgif test -n "$DRI_CFLAGS"; then 220387e6fb56fSmrg pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 220397e6fb56fSmrg elif test -n "$PKG_CONFIG"; then 220407e6fb56fSmrg if test -n "$PKG_CONFIG" && \ 220417e6fb56fSmrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm xf86driproto\"") >&5 220427e6fb56fSmrg ($PKG_CONFIG --exists --print-errors "libdrm xf86driproto") 2>&5 220437e6fb56fSmrg ac_status=$? 220447e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 220457e6fb56fSmrg (exit $ac_status); }; then 220467e6fb56fSmrg pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm xf86driproto" 2>/dev/null` 220477e6fb56fSmrgelse 220487e6fb56fSmrg pkg_failed=yes 220497e6fb56fSmrgfi 220507e6fb56fSmrg else 220517e6fb56fSmrg pkg_failed=untried 220527e6fb56fSmrgfi 220537e6fb56fSmrgif test -n "$DRI_LIBS"; then 220547e6fb56fSmrg pkg_cv_DRI_LIBS="$DRI_LIBS" 220557e6fb56fSmrg elif test -n "$PKG_CONFIG"; then 220567e6fb56fSmrg if test -n "$PKG_CONFIG" && \ 220577e6fb56fSmrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm xf86driproto\"") >&5 220587e6fb56fSmrg ($PKG_CONFIG --exists --print-errors "libdrm xf86driproto") 2>&5 220597e6fb56fSmrg ac_status=$? 220607e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 220617e6fb56fSmrg (exit $ac_status); }; then 220627e6fb56fSmrg pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm xf86driproto" 2>/dev/null` 220637e6fb56fSmrgelse 220647e6fb56fSmrg pkg_failed=yes 220657e6fb56fSmrgfi 220667e6fb56fSmrg else 220677e6fb56fSmrg pkg_failed=untried 220687e6fb56fSmrgfi 220697e6fb56fSmrg 220707e6fb56fSmrg 220717e6fb56fSmrg 220727e6fb56fSmrgif test $pkg_failed = yes; then 220737e6fb56fSmrg 220747e6fb56fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 220757e6fb56fSmrg _pkg_short_errors_supported=yes 220767e6fb56fSmrgelse 220777e6fb56fSmrg _pkg_short_errors_supported=no 220787e6fb56fSmrgfi 220797e6fb56fSmrg if test $_pkg_short_errors_supported = yes; then 220807e6fb56fSmrg DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm xf86driproto" 2>&1` 220817e6fb56fSmrg else 220827e6fb56fSmrg DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm xf86driproto" 2>&1` 220837e6fb56fSmrg fi 220847e6fb56fSmrg # Put the nasty error message in config.log where it belongs 220857e6fb56fSmrg echo "$DRI_PKG_ERRORS" >&5 220867e6fb56fSmrg 220877e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm xf86driproto) were not met: 220887e6fb56fSmrg 220897e6fb56fSmrg$DRI_PKG_ERRORS 220907e6fb56fSmrg 220917e6fb56fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 220927e6fb56fSmrginstalled software in a non-standard prefix. 220937e6fb56fSmrg 220947e6fb56fSmrgAlternatively, you may set the environment variables DRI_CFLAGS 220957e6fb56fSmrgand DRI_LIBS to avoid the need to call pkg-config. 220967e6fb56fSmrgSee the pkg-config man page for more details. 220977e6fb56fSmrg" >&5 220987e6fb56fSmrg$as_echo "$as_me: error: Package requirements (libdrm xf86driproto) were not met: 220997e6fb56fSmrg 221007e6fb56fSmrg$DRI_PKG_ERRORS 221017e6fb56fSmrg 221027e6fb56fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 221037e6fb56fSmrginstalled software in a non-standard prefix. 221047e6fb56fSmrg 221057e6fb56fSmrgAlternatively, you may set the environment variables DRI_CFLAGS 221067e6fb56fSmrgand DRI_LIBS to avoid the need to call pkg-config. 221077e6fb56fSmrgSee the pkg-config man page for more details. 221087e6fb56fSmrg" >&2;} 221097e6fb56fSmrg { (exit 1); exit 1; }; } 221107e6fb56fSmrgelif test $pkg_failed = untried; then 221117e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 221127e6fb56fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 221137e6fb56fSmrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 221147e6fb56fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 221157e6fb56fSmrgpath to pkg-config. 221167e6fb56fSmrg 221177e6fb56fSmrgAlternatively, you may set the environment variables DRI_CFLAGS 221187e6fb56fSmrgand DRI_LIBS to avoid the need to call pkg-config. 221197e6fb56fSmrgSee the pkg-config man page for more details. 221207e6fb56fSmrg 221217e6fb56fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 221227e6fb56fSmrgSee \`config.log' for more details." >&5 221237e6fb56fSmrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 221247e6fb56fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 221257e6fb56fSmrgpath to pkg-config. 221267e6fb56fSmrg 221277e6fb56fSmrgAlternatively, you may set the environment variables DRI_CFLAGS 221287e6fb56fSmrgand DRI_LIBS to avoid the need to call pkg-config. 221297e6fb56fSmrgSee the pkg-config man page for more details. 221307e6fb56fSmrg 221317e6fb56fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 221327e6fb56fSmrgSee \`config.log' for more details." >&2;} 221337e6fb56fSmrg { (exit 1); exit 1; }; }; } 221347e6fb56fSmrgelse 221357e6fb56fSmrg DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 221367e6fb56fSmrg DRI_LIBS=$pkg_cv_DRI_LIBS 221377e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: yes" >&5 221387e6fb56fSmrg$as_echo "yes" >&6; } 221397e6fb56fSmrg : 221407e6fb56fSmrgfi 221417e6fb56fSmrg 221427e6fb56fSmrgcat >>confdefs.h <<\_ACEOF 221437e6fb56fSmrg#define XF86DRI 1 221447e6fb56fSmrg_ACEOF 221457e6fb56fSmrg 221467e6fb56fSmrg 221477e6fb56fSmrgcat >>confdefs.h <<\_ACEOF 221487e6fb56fSmrg#define XF86DRI_DEVEL 1 221497e6fb56fSmrg_ACEOF 221507e6fb56fSmrg 221517e6fb56fSmrg case "$host_cpu" in 221527e6fb56fSmrg i*86) 221537e6fb56fSmrg XVMC=yes ;; 221547e6fb56fSmrg amd64*|x86_64*) 221557e6fb56fSmrg XVMC=yes ;; 221567e6fb56fSmrg *) 221577e6fb56fSmrg XVMC=no ;; 221587e6fb56fSmrg esac 221597e6fb56fSmrgelse 221607e6fb56fSmrg XVMC="no" 221617e6fb56fSmrgfi 221627e6fb56fSmrg 221637e6fb56fSmrgif test "x$XVMC" = xyes; then 221647e6fb56fSmrg 221657e6fb56fSmrg 221667e6fb56fSmrg 221677e6fb56fSmrg 221687e6fb56fSmrgfor ac_header in pthread.h sys/ioctl.h sys/time.h time.h 221697e6fb56fSmrgdo 221707e6fb56fSmrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 221717e6fb56fSmrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 221727e6fb56fSmrg { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 221737e6fb56fSmrg$as_echo_n "checking for $ac_header... " >&6; } 221747e6fb56fSmrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 221757e6fb56fSmrg $as_echo_n "(cached) " >&6 221767e6fb56fSmrgfi 221777e6fb56fSmrgac_res=`eval 'as_val=${'$as_ac_Header'} 221787e6fb56fSmrg $as_echo "$as_val"'` 221797e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 221807e6fb56fSmrg$as_echo "$ac_res" >&6; } 221817e6fb56fSmrgelse 221827e6fb56fSmrg # Is the header compilable? 221837e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 221847e6fb56fSmrg$as_echo_n "checking $ac_header usability... " >&6; } 221857e6fb56fSmrgcat >conftest.$ac_ext <<_ACEOF 221867e6fb56fSmrg/* confdefs.h. */ 221877e6fb56fSmrg_ACEOF 221887e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 221897e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 221907e6fb56fSmrg/* end confdefs.h. */ 221917e6fb56fSmrg$ac_includes_default 221927e6fb56fSmrg#include <$ac_header> 221937e6fb56fSmrg_ACEOF 221947e6fb56fSmrgrm -f conftest.$ac_objext 221957e6fb56fSmrgif { (ac_try="$ac_compile" 221967e6fb56fSmrgcase "(($ac_try" in 221977e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 221987e6fb56fSmrg *) ac_try_echo=$ac_try;; 221997e6fb56fSmrgesac 222007e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 222017e6fb56fSmrg$as_echo "$ac_try_echo") >&5 222027e6fb56fSmrg (eval "$ac_compile") 2>conftest.er1 222037e6fb56fSmrg ac_status=$? 222047e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 222057e6fb56fSmrg rm -f conftest.er1 222067e6fb56fSmrg cat conftest.err >&5 222077e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 222087e6fb56fSmrg (exit $ac_status); } && { 222097e6fb56fSmrg test -z "$ac_c_werror_flag" || 222107e6fb56fSmrg test ! -s conftest.err 222117e6fb56fSmrg } && test -s conftest.$ac_objext; then 222127e6fb56fSmrg ac_header_compiler=yes 222137e6fb56fSmrgelse 222147e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 222157e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 222167e6fb56fSmrg 222177e6fb56fSmrg ac_header_compiler=no 222187e6fb56fSmrgfi 222197e6fb56fSmrg 222207e6fb56fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 222217e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 222227e6fb56fSmrg$as_echo "$ac_header_compiler" >&6; } 222237e6fb56fSmrg 222247e6fb56fSmrg# Is the header present? 222257e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 222267e6fb56fSmrg$as_echo_n "checking $ac_header presence... " >&6; } 222277e6fb56fSmrgcat >conftest.$ac_ext <<_ACEOF 222287e6fb56fSmrg/* confdefs.h. */ 222297e6fb56fSmrg_ACEOF 222307e6fb56fSmrgcat confdefs.h >>conftest.$ac_ext 222317e6fb56fSmrgcat >>conftest.$ac_ext <<_ACEOF 222327e6fb56fSmrg/* end confdefs.h. */ 222337e6fb56fSmrg#include <$ac_header> 222347e6fb56fSmrg_ACEOF 222357e6fb56fSmrgif { (ac_try="$ac_cpp conftest.$ac_ext" 222367e6fb56fSmrgcase "(($ac_try" in 222377e6fb56fSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 222387e6fb56fSmrg *) ac_try_echo=$ac_try;; 222397e6fb56fSmrgesac 222407e6fb56fSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 222417e6fb56fSmrg$as_echo "$ac_try_echo") >&5 222427e6fb56fSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 222437e6fb56fSmrg ac_status=$? 222447e6fb56fSmrg grep -v '^ *+' conftest.er1 >conftest.err 222457e6fb56fSmrg rm -f conftest.er1 222467e6fb56fSmrg cat conftest.err >&5 222477e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 222487e6fb56fSmrg (exit $ac_status); } >/dev/null && { 222497e6fb56fSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 222507e6fb56fSmrg test ! -s conftest.err 222517e6fb56fSmrg }; then 222527e6fb56fSmrg ac_header_preproc=yes 222537e6fb56fSmrgelse 222547e6fb56fSmrg $as_echo "$as_me: failed program was:" >&5 222557e6fb56fSmrgsed 's/^/| /' conftest.$ac_ext >&5 222567e6fb56fSmrg 222577e6fb56fSmrg ac_header_preproc=no 222587e6fb56fSmrgfi 222597e6fb56fSmrg 222607e6fb56fSmrgrm -f conftest.err conftest.$ac_ext 222617e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 222627e6fb56fSmrg$as_echo "$ac_header_preproc" >&6; } 222637e6fb56fSmrg 222647e6fb56fSmrg# So? What about this header? 222657e6fb56fSmrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 222667e6fb56fSmrg yes:no: ) 222677e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 222687e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 222697e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 222707e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 222717e6fb56fSmrg ac_header_preproc=yes 222727e6fb56fSmrg ;; 222737e6fb56fSmrg no:yes:* ) 222747e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 222757e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 222767e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 222777e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 222787e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 222797e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 222807e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 222817e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 222827e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 222837e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 222847e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 222857e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 222867e6fb56fSmrg ( cat <<\_ASBOX 222877e6fb56fSmrg## ------------------------------------------------------ ## 222887e6fb56fSmrg## Report this to http://www.openchrome.org/trac/report/1 ## 222897e6fb56fSmrg## ------------------------------------------------------ ## 222907e6fb56fSmrg_ASBOX 222917e6fb56fSmrg ) | sed "s/^/$as_me: WARNING: /" >&2 222927e6fb56fSmrg ;; 222937e6fb56fSmrgesac 222947e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 222957e6fb56fSmrg$as_echo_n "checking for $ac_header... " >&6; } 222967e6fb56fSmrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 222977e6fb56fSmrg $as_echo_n "(cached) " >&6 222987e6fb56fSmrgelse 222997e6fb56fSmrg eval "$as_ac_Header=\$ac_header_preproc" 223007e6fb56fSmrgfi 223017e6fb56fSmrgac_res=`eval 'as_val=${'$as_ac_Header'} 223027e6fb56fSmrg $as_echo "$as_val"'` 223037e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 223047e6fb56fSmrg$as_echo "$ac_res" >&6; } 223057e6fb56fSmrg 223067e6fb56fSmrgfi 223077e6fb56fSmrgas_val=`eval 'as_val=${'$as_ac_Header'} 223087e6fb56fSmrg $as_echo "$as_val"'` 223097e6fb56fSmrg if test "x$as_val" = x""yes; then 223107e6fb56fSmrg cat >>confdefs.h <<_ACEOF 223117e6fb56fSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 223127e6fb56fSmrg_ACEOF 223137e6fb56fSmrg 223147e6fb56fSmrgelse 223157e6fb56fSmrg XVMC="no"; break 223167e6fb56fSmrgfi 223177e6fb56fSmrg 223187e6fb56fSmrgdone 223197e6fb56fSmrg 223207e6fb56fSmrg 223217e6fb56fSmrgpkg_failed=no 223227e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking for XVMC" >&5 223237e6fb56fSmrg$as_echo_n "checking for XVMC... " >&6; } 223247e6fb56fSmrg 223257e6fb56fSmrgif test -n "$XVMC_CFLAGS"; then 223267e6fb56fSmrg pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS" 223277e6fb56fSmrg elif test -n "$PKG_CONFIG"; then 223287e6fb56fSmrg if test -n "$PKG_CONFIG" && \ 223297e6fb56fSmrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xvmc\"") >&5 223307e6fb56fSmrg ($PKG_CONFIG --exists --print-errors "x11 xext xvmc") 2>&5 223317e6fb56fSmrg ac_status=$? 223327e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 223337e6fb56fSmrg (exit $ac_status); }; then 223347e6fb56fSmrg pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xvmc" 2>/dev/null` 223357e6fb56fSmrgelse 223367e6fb56fSmrg pkg_failed=yes 223377e6fb56fSmrgfi 223387e6fb56fSmrg else 223397e6fb56fSmrg pkg_failed=untried 223407e6fb56fSmrgfi 223417e6fb56fSmrgif test -n "$XVMC_LIBS"; then 223427e6fb56fSmrg pkg_cv_XVMC_LIBS="$XVMC_LIBS" 223437e6fb56fSmrg elif test -n "$PKG_CONFIG"; then 223447e6fb56fSmrg if test -n "$PKG_CONFIG" && \ 223457e6fb56fSmrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xvmc\"") >&5 223467e6fb56fSmrg ($PKG_CONFIG --exists --print-errors "x11 xext xvmc") 2>&5 223477e6fb56fSmrg ac_status=$? 223487e6fb56fSmrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 223497e6fb56fSmrg (exit $ac_status); }; then 223507e6fb56fSmrg pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 xext xvmc" 2>/dev/null` 223517e6fb56fSmrgelse 223527e6fb56fSmrg pkg_failed=yes 223537e6fb56fSmrgfi 223547e6fb56fSmrg else 223557e6fb56fSmrg pkg_failed=untried 223567e6fb56fSmrgfi 223577e6fb56fSmrg 223587e6fb56fSmrg 223597e6fb56fSmrg 223607e6fb56fSmrgif test $pkg_failed = yes; then 223617e6fb56fSmrg 223627e6fb56fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 223637e6fb56fSmrg _pkg_short_errors_supported=yes 223647e6fb56fSmrgelse 223657e6fb56fSmrg _pkg_short_errors_supported=no 223667e6fb56fSmrgfi 223677e6fb56fSmrg if test $_pkg_short_errors_supported = yes; then 223687e6fb56fSmrg XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xvmc" 2>&1` 223697e6fb56fSmrg else 223707e6fb56fSmrg XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xvmc" 2>&1` 223717e6fb56fSmrg fi 223727e6fb56fSmrg # Put the nasty error message in config.log where it belongs 223737e6fb56fSmrg echo "$XVMC_PKG_ERRORS" >&5 223747e6fb56fSmrg 223757e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xext xvmc) were not met: 223767e6fb56fSmrg 223777e6fb56fSmrg$XVMC_PKG_ERRORS 223787e6fb56fSmrg 223797e6fb56fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 223807e6fb56fSmrginstalled software in a non-standard prefix. 223817e6fb56fSmrg 223827e6fb56fSmrgAlternatively, you may set the environment variables XVMC_CFLAGS 223837e6fb56fSmrgand XVMC_LIBS to avoid the need to call pkg-config. 223847e6fb56fSmrgSee the pkg-config man page for more details. 223857e6fb56fSmrg" >&5 223867e6fb56fSmrg$as_echo "$as_me: error: Package requirements (x11 xext xvmc) were not met: 223877e6fb56fSmrg 223887e6fb56fSmrg$XVMC_PKG_ERRORS 223897e6fb56fSmrg 223907e6fb56fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 223917e6fb56fSmrginstalled software in a non-standard prefix. 223927e6fb56fSmrg 223937e6fb56fSmrgAlternatively, you may set the environment variables XVMC_CFLAGS 223947e6fb56fSmrgand XVMC_LIBS to avoid the need to call pkg-config. 223957e6fb56fSmrgSee the pkg-config man page for more details. 223967e6fb56fSmrg" >&2;} 223977e6fb56fSmrg { (exit 1); exit 1; }; } 223987e6fb56fSmrgelif test $pkg_failed = untried; then 223997e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 224007e6fb56fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 224017e6fb56fSmrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 224027e6fb56fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 224037e6fb56fSmrgpath to pkg-config. 224047e6fb56fSmrg 224057e6fb56fSmrgAlternatively, you may set the environment variables XVMC_CFLAGS 224067e6fb56fSmrgand XVMC_LIBS to avoid the need to call pkg-config. 224077e6fb56fSmrgSee the pkg-config man page for more details. 224087e6fb56fSmrg 224097e6fb56fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 224107e6fb56fSmrgSee \`config.log' for more details." >&5 224117e6fb56fSmrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 224127e6fb56fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 224137e6fb56fSmrgpath to pkg-config. 224147e6fb56fSmrg 224157e6fb56fSmrgAlternatively, you may set the environment variables XVMC_CFLAGS 224167e6fb56fSmrgand XVMC_LIBS to avoid the need to call pkg-config. 224177e6fb56fSmrgSee the pkg-config man page for more details. 224187e6fb56fSmrg 224197e6fb56fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 224207e6fb56fSmrgSee \`config.log' for more details." >&2;} 224217e6fb56fSmrg { (exit 1); exit 1; }; }; } 224227e6fb56fSmrgelse 224237e6fb56fSmrg XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS 224247e6fb56fSmrg XVMC_LIBS=$pkg_cv_XVMC_LIBS 224257e6fb56fSmrg { $as_echo "$as_me:$LINENO: result: yes" >&5 224267e6fb56fSmrg$as_echo "yes" >&6; } 224277e6fb56fSmrg : 224287e6fb56fSmrgfi 224297e6fb56fSmrgfi 224307e6fb56fSmrg 224317e6fb56fSmrg{ $as_echo "$as_me:$LINENO: checking whether to build XvMC driver support" >&5 224327e6fb56fSmrg$as_echo_n "checking whether to build XvMC driver support... " >&6; } 224337e6fb56fSmrg{ $as_echo "$as_me:$LINENO: result: $XVMC" >&5 224347e6fb56fSmrg$as_echo "$XVMC" >&6; } 224357e6fb56fSmrg 224367e6fb56fSmrg if test x$XVMC = xyes; then 224377e6fb56fSmrg XVMC_TRUE= 224387e6fb56fSmrg XVMC_FALSE='#' 224397e6fb56fSmrgelse 224407e6fb56fSmrg XVMC_TRUE='#' 224417e6fb56fSmrg XVMC_FALSE= 224427e6fb56fSmrgfi 224437e6fb56fSmrg 224447e6fb56fSmrg 224457e6fb56fSmrg# Check the ABI_VIDEODRV_VERSION 224467e6fb56fSmrgSAVE_CFLAGS="$CFLAGS" 224477e6fb56fSmrgCFLAGS="$CFLAGS $XORG_CFLAGS" 224487e6fb56fSmrg 224497e6fb56fSmrg if test x$XSERVER_LIBPCIACCESS = xyes; then 224507e6fb56fSmrg XSERVER_LIBPCIACCESS_TRUE= 224517e6fb56fSmrg XSERVER_LIBPCIACCESS_FALSE='#' 224527e6fb56fSmrgelse 224537e6fb56fSmrg XSERVER_LIBPCIACCESS_TRUE='#' 224547e6fb56fSmrg XSERVER_LIBPCIACCESS_FALSE= 224557e6fb56fSmrgfi 224567e6fb56fSmrg 224577e6fb56fSmrgif test "$XSERVER_LIBPCIACCESS" = yes; then 224587e6fb56fSmrg 224597e6fb56fSmrgcat >>confdefs.h <<\_ACEOF 224607e6fb56fSmrg#define XSERVER_LIBPCIACCESS 1 224617e6fb56fSmrg_ACEOF 224627e6fb56fSmrg 224637e6fb56fSmrgfi 224647e6fb56fSmrg 224657e6fb56fSmrg if test x$DEBUG = xyes; then 224667e6fb56fSmrg DEBUG_TRUE= 224677e6fb56fSmrg DEBUG_FALSE='#' 224687e6fb56fSmrgelse 224697e6fb56fSmrg DEBUG_TRUE='#' 224707e6fb56fSmrg DEBUG_FALSE= 224717e6fb56fSmrgfi 224727e6fb56fSmrg 224737e6fb56fSmrgif test "$DEBUG" = yes; then 224747e6fb56fSmrg 224757e6fb56fSmrgcat >>confdefs.h <<\_ACEOF 224767e6fb56fSmrg#define HAVE_DEBUG 1 224777e6fb56fSmrg_ACEOF 224787e6fb56fSmrg 224797e6fb56fSmrgfi 224807e6fb56fSmrg 224817e6fb56fSmrg if test x$XV_DEBUG = xyes; then 224827e6fb56fSmrg XV_DEBUG_TRUE= 224837e6fb56fSmrg XV_DEBUG_FALSE='#' 224847e6fb56fSmrgelse 224857e6fb56fSmrg XV_DEBUG_TRUE='#' 224867e6fb56fSmrg XV_DEBUG_FALSE= 224877e6fb56fSmrgfi 224887e6fb56fSmrg 224897e6fb56fSmrgif test "$XV_DEBUG" = yes; then 224907e6fb56fSmrg 224917e6fb56fSmrgcat >>confdefs.h <<\_ACEOF 224927e6fb56fSmrg#define XV_DEBUG 1 224937e6fb56fSmrg_ACEOF 224947e6fb56fSmrg 224957e6fb56fSmrgfi 224967e6fb56fSmrg 224977e6fb56fSmrg 224987e6fb56fSmrg 224997e6fb56fSmrg 225007e6fb56fSmrg 225017e6fb56fSmrgDRIVER_NAME=openchrome 225027e6fb56fSmrg 225037e6fb56fSmrg 225047e6fb56fSmrg 225057e6fb56fSmrgcat >>confdefs.h <<\_ACEOF 225067e6fb56fSmrg#define X_USE_LINEARFB 1 225077e6fb56fSmrg_ACEOF 225087e6fb56fSmrg 225097e6fb56fSmrg 225107e6fb56fSmrgcat >>confdefs.h <<\_ACEOF 225117e6fb56fSmrg#define X_USE_REGION_NULL 1 225127e6fb56fSmrg_ACEOF 225137e6fb56fSmrg 225147e6fb56fSmrg 225157e6fb56fSmrgcat >>confdefs.h <<\_ACEOF 225167e6fb56fSmrg#define X_HAVE_XAAGETROP 1 225177e6fb56fSmrg_ACEOF 225187e6fb56fSmrg 225197e6fb56fSmrg 225207e6fb56fSmrgcat >>confdefs.h <<\_ACEOF 225217e6fb56fSmrg#define X_NEED_I2CSTART 1 225227e6fb56fSmrg_ACEOF 225237e6fb56fSmrg 225247e6fb56fSmrg 225257e6fb56fSmrgDRIVER_MAN_SUFFIX="4" 225267e6fb56fSmrg 225277e6fb56fSmrg 225287e6fb56fSmrg 225297e6fb56fSmrg 225307e6fb56fSmrg# Check whether --with-release-version was given. 225317e6fb56fSmrgif test "${with_release_version+set}" = set; then 225327e6fb56fSmrg withval=$with_release_version; RELEASE_VERSION="$withval" 225337e6fb56fSmrgelse 225347e6fb56fSmrg RELEASE_VERSION="" 225357e6fb56fSmrgfi 225367e6fb56fSmrg 225377e6fb56fSmrg if test "x$RELEASE_VERSION" != "x"; then 225387e6fb56fSmrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 225397e6fb56fSmrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 225407e6fb56fSmrg { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 225417e6fb56fSmrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 225427e6fb56fSmrg fi 225437e6fb56fSmrg 225447e6fb56fSmrg 225457e6fb56fSmrgac_config_files="$ac_config_files Makefile libxvmc/Makefile man/Makefile src/Makefile" 225467e6fb56fSmrg 225477e6fb56fSmrgcat >confcache <<\_ACEOF 225487e6fb56fSmrg# This file is a shell script that caches the results of configure 225497e6fb56fSmrg# tests run on this system so they can be shared between configure 225507e6fb56fSmrg# scripts and configure runs, see configure's option --config-cache. 225517e6fb56fSmrg# It is not useful on other systems. If it contains results you don't 225527e6fb56fSmrg# want to keep, you may remove or edit it. 225537e6fb56fSmrg# 225547e6fb56fSmrg# config.status only pays attention to the cache file if you give it 225557e6fb56fSmrg# the --recheck option to rerun configure. 225567e6fb56fSmrg# 225577e6fb56fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 225587e6fb56fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 225597e6fb56fSmrg# following values. 225607e6fb56fSmrg 225617e6fb56fSmrg_ACEOF 225627e6fb56fSmrg 225637e6fb56fSmrg# The following way of writing the cache mishandles newlines in values, 225647e6fb56fSmrg# but we know of no workaround that is simple, portable, and efficient. 225657e6fb56fSmrg# So, we kill variables containing newlines. 225667e6fb56fSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 225677e6fb56fSmrg# and sets the high bit in the cache file unless we assign to the vars. 225687e6fb56fSmrg( 225697e6fb56fSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 225707e6fb56fSmrg eval ac_val=\$$ac_var 225717e6fb56fSmrg case $ac_val in #( 225727e6fb56fSmrg *${as_nl}*) 225737e6fb56fSmrg case $ac_var in #( 225747e6fb56fSmrg *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 225757e6fb56fSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 225767e6fb56fSmrg esac 225777e6fb56fSmrg case $ac_var in #( 225787e6fb56fSmrg _ | IFS | as_nl) ;; #( 225797e6fb56fSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 225807e6fb56fSmrg *) $as_unset $ac_var ;; 225817e6fb56fSmrg esac ;; 225827e6fb56fSmrg esac 225837e6fb56fSmrg done 225847e6fb56fSmrg 225857e6fb56fSmrg (set) 2>&1 | 225867e6fb56fSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 225877e6fb56fSmrg *${as_nl}ac_space=\ *) 225887e6fb56fSmrg # `set' does not quote correctly, so add quotes (double-quote 225897e6fb56fSmrg # substitution turns \\\\ into \\, and sed turns \\ into \). 225907e6fb56fSmrg sed -n \ 225917e6fb56fSmrg "s/'/'\\\\''/g; 225927e6fb56fSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 225937e6fb56fSmrg ;; #( 225947e6fb56fSmrg *) 225957e6fb56fSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 225967e6fb56fSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 225977e6fb56fSmrg ;; 225987e6fb56fSmrg esac | 225997e6fb56fSmrg sort 226007e6fb56fSmrg) | 226017e6fb56fSmrg sed ' 226027e6fb56fSmrg /^ac_cv_env_/b end 226037e6fb56fSmrg t clear 226047e6fb56fSmrg :clear 226057e6fb56fSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 226067e6fb56fSmrg t end 226077e6fb56fSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 226087e6fb56fSmrg :end' >>confcache 226097e6fb56fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 226107e6fb56fSmrg if test -w "$cache_file"; then 226117e6fb56fSmrg test "x$cache_file" != "x/dev/null" && 226127e6fb56fSmrg { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 226137e6fb56fSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 226147e6fb56fSmrg cat confcache >$cache_file 226157e6fb56fSmrg else 226167e6fb56fSmrg { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 226177e6fb56fSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 226187e6fb56fSmrg fi 226197e6fb56fSmrgfi 226207e6fb56fSmrgrm -f confcache 226217e6fb56fSmrg 226227e6fb56fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 226237e6fb56fSmrg# Let make expand exec_prefix. 226247e6fb56fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 226257e6fb56fSmrg 226267e6fb56fSmrgDEFS=-DHAVE_CONFIG_H 226277e6fb56fSmrg 226287e6fb56fSmrgac_libobjs= 226297e6fb56fSmrgac_ltlibobjs= 226307e6fb56fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 226317e6fb56fSmrg # 1. Remove the extension, and $U if already installed. 226327e6fb56fSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 226337e6fb56fSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 226347e6fb56fSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 226357e6fb56fSmrg # will be set to the directory where LIBOBJS objects are built. 226367e6fb56fSmrg ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 226377e6fb56fSmrg ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 226387e6fb56fSmrgdone 226397e6fb56fSmrgLIBOBJS=$ac_libobjs 226407e6fb56fSmrg 226417e6fb56fSmrgLTLIBOBJS=$ac_ltlibobjs 226427e6fb56fSmrg 226437e6fb56fSmrg 226447e6fb56fSmrg if test -n "$EXEEXT"; then 226457e6fb56fSmrg am__EXEEXT_TRUE= 226467e6fb56fSmrg am__EXEEXT_FALSE='#' 226477e6fb56fSmrgelse 226487e6fb56fSmrg am__EXEEXT_TRUE='#' 226497e6fb56fSmrg am__EXEEXT_FALSE= 226507e6fb56fSmrgfi 226517e6fb56fSmrg 226527e6fb56fSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 226537e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 226547e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&5 226557e6fb56fSmrg$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 226567e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&2;} 226577e6fb56fSmrg { (exit 1); exit 1; }; } 226587e6fb56fSmrgfi 226597e6fb56fSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 226607e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 226617e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&5 226627e6fb56fSmrg$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 226637e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&2;} 226647e6fb56fSmrg { (exit 1); exit 1; }; } 226657e6fb56fSmrgfi 226667e6fb56fSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 226677e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 226687e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&5 226697e6fb56fSmrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 226707e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&2;} 226717e6fb56fSmrg { (exit 1); exit 1; }; } 226727e6fb56fSmrgfi 226737e6fb56fSmrgif test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 226747e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 226757e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&5 226767e6fb56fSmrg$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 226777e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&2;} 226787e6fb56fSmrg { (exit 1); exit 1; }; } 226797e6fb56fSmrgfi 226807e6fb56fSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 226817e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 226827e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&5 226837e6fb56fSmrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 226847e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&2;} 226857e6fb56fSmrg { (exit 1); exit 1; }; } 226867e6fb56fSmrgfi 226877e6fb56fSmrgif test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 226887e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XEXTPROTO_71\" was never defined. 226897e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&5 226907e6fb56fSmrg$as_echo "$as_me: error: conditional \"HAVE_XEXTPROTO_71\" was never defined. 226917e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&2;} 226927e6fb56fSmrg { (exit 1); exit 1; }; } 226937e6fb56fSmrgfi 226947e6fb56fSmrgif test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 226957e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined. 226967e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&5 226977e6fb56fSmrg$as_echo "$as_me: error: conditional \"DRI\" was never defined. 226987e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&2;} 226997e6fb56fSmrg { (exit 1); exit 1; }; } 227007e6fb56fSmrgfi 227017e6fb56fSmrgif test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then 227027e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: conditional \"XVMC\" was never defined. 227037e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&5 227047e6fb56fSmrg$as_echo "$as_me: error: conditional \"XVMC\" was never defined. 227057e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&2;} 227067e6fb56fSmrg { (exit 1); exit 1; }; } 227077e6fb56fSmrgfi 227087e6fb56fSmrgif test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 227097e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 227107e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&5 227117e6fb56fSmrg$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 227127e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&2;} 227137e6fb56fSmrg { (exit 1); exit 1; }; } 227147e6fb56fSmrgfi 227157e6fb56fSmrgif test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 227167e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined. 227177e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&5 227187e6fb56fSmrg$as_echo "$as_me: error: conditional \"DEBUG\" was never defined. 227197e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&2;} 227207e6fb56fSmrg { (exit 1); exit 1; }; } 227217e6fb56fSmrgfi 227227e6fb56fSmrgif test -z "${XV_DEBUG_TRUE}" && test -z "${XV_DEBUG_FALSE}"; then 227237e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: conditional \"XV_DEBUG\" was never defined. 227247e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&5 227257e6fb56fSmrg$as_echo "$as_me: error: conditional \"XV_DEBUG\" was never defined. 227267e6fb56fSmrgUsually this means the macro was only invoked conditionally." >&2;} 227277e6fb56fSmrg { (exit 1); exit 1; }; } 227287e6fb56fSmrgfi 227297e6fb56fSmrg 227307e6fb56fSmrg: ${CONFIG_STATUS=./config.status} 227317e6fb56fSmrgac_write_fail=0 227327e6fb56fSmrgac_clean_files_save=$ac_clean_files 227337e6fb56fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 227347e6fb56fSmrg{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 227357e6fb56fSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 227367e6fb56fSmrgcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 227377e6fb56fSmrg#! $SHELL 227387e6fb56fSmrg# Generated by $as_me. 227397e6fb56fSmrg# Run this file to recreate the current configuration. 227407e6fb56fSmrg# Compiler output produced by configure, useful for debugging 227417e6fb56fSmrg# configure, is in config.log if it exists. 227427e6fb56fSmrg 227437e6fb56fSmrgdebug=false 227447e6fb56fSmrgac_cs_recheck=false 227457e6fb56fSmrgac_cs_silent=false 227467e6fb56fSmrgSHELL=\${CONFIG_SHELL-$SHELL} 227477e6fb56fSmrg_ACEOF 227487e6fb56fSmrg 227497e6fb56fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 227507e6fb56fSmrg## --------------------- ## 227517e6fb56fSmrg## M4sh Initialization. ## 227527e6fb56fSmrg## --------------------- ## 227537e6fb56fSmrg 227547e6fb56fSmrg# Be more Bourne compatible 227557e6fb56fSmrgDUALCASE=1; export DUALCASE # for MKS sh 227567e6fb56fSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 227577e6fb56fSmrg emulate sh 227587e6fb56fSmrg NULLCMD=: 227597e6fb56fSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 227607e6fb56fSmrg # is contrary to our usage. Disable this feature. 227617e6fb56fSmrg alias -g '${1+"$@"}'='"$@"' 227627e6fb56fSmrg setopt NO_GLOB_SUBST 227637e6fb56fSmrgelse 227647e6fb56fSmrg case `(set -o) 2>/dev/null` in 227657e6fb56fSmrg *posix*) set -o posix ;; 227667e6fb56fSmrgesac 227677e6fb56fSmrg 227687e6fb56fSmrgfi 227697e6fb56fSmrg 227707e6fb56fSmrg 227717e6fb56fSmrg 227727e6fb56fSmrg 227737e6fb56fSmrg# PATH needs CR 227747e6fb56fSmrg# Avoid depending upon Character Ranges. 227757e6fb56fSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 227767e6fb56fSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 227777e6fb56fSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 227787e6fb56fSmrgas_cr_digits='0123456789' 227797e6fb56fSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 227807e6fb56fSmrg 227817e6fb56fSmrgas_nl=' 227827e6fb56fSmrg' 227837e6fb56fSmrgexport as_nl 227847e6fb56fSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 227857e6fb56fSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 227867e6fb56fSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 227877e6fb56fSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 227887e6fb56fSmrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 227897e6fb56fSmrg as_echo='printf %s\n' 227907e6fb56fSmrg as_echo_n='printf %s' 227917e6fb56fSmrgelse 227927e6fb56fSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 227937e6fb56fSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 227947e6fb56fSmrg as_echo_n='/usr/ucb/echo -n' 227957e6fb56fSmrg else 227967e6fb56fSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 227977e6fb56fSmrg as_echo_n_body='eval 227987e6fb56fSmrg arg=$1; 227997e6fb56fSmrg case $arg in 228007e6fb56fSmrg *"$as_nl"*) 228017e6fb56fSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 228027e6fb56fSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 228037e6fb56fSmrg esac; 228047e6fb56fSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 228057e6fb56fSmrg ' 228067e6fb56fSmrg export as_echo_n_body 228077e6fb56fSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 228087e6fb56fSmrg fi 228097e6fb56fSmrg export as_echo_body 228107e6fb56fSmrg as_echo='sh -c $as_echo_body as_echo' 228117e6fb56fSmrgfi 228127e6fb56fSmrg 228137e6fb56fSmrg# The user is always right. 228147e6fb56fSmrgif test "${PATH_SEPARATOR+set}" != set; then 228157e6fb56fSmrg PATH_SEPARATOR=: 228167e6fb56fSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 228177e6fb56fSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 228187e6fb56fSmrg PATH_SEPARATOR=';' 228197e6fb56fSmrg } 228207e6fb56fSmrgfi 228217e6fb56fSmrg 228227e6fb56fSmrg# Support unset when possible. 228237e6fb56fSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 228247e6fb56fSmrg as_unset=unset 228257e6fb56fSmrgelse 228267e6fb56fSmrg as_unset=false 228277e6fb56fSmrgfi 228287e6fb56fSmrg 228297e6fb56fSmrg 228307e6fb56fSmrg# IFS 228317e6fb56fSmrg# We need space, tab and new line, in precisely that order. Quoting is 228327e6fb56fSmrg# there to prevent editors from complaining about space-tab. 228337e6fb56fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 228347e6fb56fSmrg# splitting by setting IFS to empty value.) 228357e6fb56fSmrgIFS=" "" $as_nl" 228367e6fb56fSmrg 228377e6fb56fSmrg# Find who we are. Look in the path if we contain no directory separator. 228387e6fb56fSmrgcase $0 in 228397e6fb56fSmrg *[\\/]* ) as_myself=$0 ;; 228407e6fb56fSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 228417e6fb56fSmrgfor as_dir in $PATH 228427e6fb56fSmrgdo 228437e6fb56fSmrg IFS=$as_save_IFS 228447e6fb56fSmrg test -z "$as_dir" && as_dir=. 228457e6fb56fSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 228467e6fb56fSmrgdone 228477e6fb56fSmrgIFS=$as_save_IFS 228487e6fb56fSmrg 228497e6fb56fSmrg ;; 228507e6fb56fSmrgesac 228517e6fb56fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 228527e6fb56fSmrg# in which case we are not to be found in the path. 228537e6fb56fSmrgif test "x$as_myself" = x; then 228547e6fb56fSmrg as_myself=$0 228557e6fb56fSmrgfi 228567e6fb56fSmrgif test ! -f "$as_myself"; then 228577e6fb56fSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 228587e6fb56fSmrg { (exit 1); exit 1; } 228597e6fb56fSmrgfi 228607e6fb56fSmrg 228617e6fb56fSmrg# Work around bugs in pre-3.0 UWIN ksh. 228627e6fb56fSmrgfor as_var in ENV MAIL MAILPATH 228637e6fb56fSmrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 228647e6fb56fSmrgdone 228657e6fb56fSmrgPS1='$ ' 228667e6fb56fSmrgPS2='> ' 228677e6fb56fSmrgPS4='+ ' 228687e6fb56fSmrg 228697e6fb56fSmrg# NLS nuisances. 228707e6fb56fSmrgLC_ALL=C 228717e6fb56fSmrgexport LC_ALL 228727e6fb56fSmrgLANGUAGE=C 228737e6fb56fSmrgexport LANGUAGE 228747e6fb56fSmrg 228757e6fb56fSmrg# Required to use basename. 228767e6fb56fSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 228777e6fb56fSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 228787e6fb56fSmrg as_expr=expr 228797e6fb56fSmrgelse 228807e6fb56fSmrg as_expr=false 228817e6fb56fSmrgfi 228827e6fb56fSmrg 228837e6fb56fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 228847e6fb56fSmrg as_basename=basename 228857e6fb56fSmrgelse 228867e6fb56fSmrg as_basename=false 228877e6fb56fSmrgfi 228887e6fb56fSmrg 228897e6fb56fSmrg 228907e6fb56fSmrg# Name of the executable. 228917e6fb56fSmrgas_me=`$as_basename -- "$0" || 228927e6fb56fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 228937e6fb56fSmrg X"$0" : 'X\(//\)$' \| \ 228947e6fb56fSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 228957e6fb56fSmrg$as_echo X/"$0" | 228967e6fb56fSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 228977e6fb56fSmrg s//\1/ 228987e6fb56fSmrg q 228997e6fb56fSmrg } 229007e6fb56fSmrg /^X\/\(\/\/\)$/{ 229017e6fb56fSmrg s//\1/ 229027e6fb56fSmrg q 229037e6fb56fSmrg } 229047e6fb56fSmrg /^X\/\(\/\).*/{ 229057e6fb56fSmrg s//\1/ 229067e6fb56fSmrg q 229077e6fb56fSmrg } 229087e6fb56fSmrg s/.*/./; q'` 229097e6fb56fSmrg 229107e6fb56fSmrg# CDPATH. 229117e6fb56fSmrg$as_unset CDPATH 229127e6fb56fSmrg 229137e6fb56fSmrg 229147e6fb56fSmrg 229157e6fb56fSmrg as_lineno_1=$LINENO 229167e6fb56fSmrg as_lineno_2=$LINENO 229177e6fb56fSmrg test "x$as_lineno_1" != "x$as_lineno_2" && 229187e6fb56fSmrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 229197e6fb56fSmrg 229207e6fb56fSmrg # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 229217e6fb56fSmrg # uniformly replaced by the line number. The first 'sed' inserts a 229227e6fb56fSmrg # line-number line after each line using $LINENO; the second 'sed' 229237e6fb56fSmrg # does the real work. The second script uses 'N' to pair each 229247e6fb56fSmrg # line-number line with the line containing $LINENO, and appends 229257e6fb56fSmrg # trailing '-' during substitution so that $LINENO is not a special 229267e6fb56fSmrg # case at line end. 229277e6fb56fSmrg # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 229287e6fb56fSmrg # scripts with optimization help from Paolo Bonzini. Blame Lee 229297e6fb56fSmrg # E. McMahon (1931-1989) for sed's syntax. :-) 229307e6fb56fSmrg sed -n ' 229317e6fb56fSmrg p 229327e6fb56fSmrg /[$]LINENO/= 229337e6fb56fSmrg ' <$as_myself | 229347e6fb56fSmrg sed ' 229357e6fb56fSmrg s/[$]LINENO.*/&-/ 229367e6fb56fSmrg t lineno 229377e6fb56fSmrg b 229387e6fb56fSmrg :lineno 229397e6fb56fSmrg N 229407e6fb56fSmrg :loop 229417e6fb56fSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 229427e6fb56fSmrg t loop 229437e6fb56fSmrg s/-\n.*// 229447e6fb56fSmrg ' >$as_me.lineno && 229457e6fb56fSmrg chmod +x "$as_me.lineno" || 229467e6fb56fSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 229477e6fb56fSmrg { (exit 1); exit 1; }; } 229487e6fb56fSmrg 229497e6fb56fSmrg # Don't try to exec as it changes $[0], causing all sort of problems 229507e6fb56fSmrg # (the dirname of $[0] is not the place where we might find the 229517e6fb56fSmrg # original and so on. Autoconf is especially sensitive to this). 229527e6fb56fSmrg . "./$as_me.lineno" 229537e6fb56fSmrg # Exit status is that of the last command. 229547e6fb56fSmrg exit 229557e6fb56fSmrg} 229567e6fb56fSmrg 229577e6fb56fSmrg 229587e6fb56fSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 229597e6fb56fSmrg as_dirname=dirname 229607e6fb56fSmrgelse 229617e6fb56fSmrg as_dirname=false 229627e6fb56fSmrgfi 229637e6fb56fSmrg 229647e6fb56fSmrgECHO_C= ECHO_N= ECHO_T= 229657e6fb56fSmrgcase `echo -n x` in 229667e6fb56fSmrg-n*) 229677e6fb56fSmrg case `echo 'x\c'` in 229687e6fb56fSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 229697e6fb56fSmrg *) ECHO_C='\c';; 229707e6fb56fSmrg esac;; 229717e6fb56fSmrg*) 229727e6fb56fSmrg ECHO_N='-n';; 229737e6fb56fSmrgesac 229747e6fb56fSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 229757e6fb56fSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 229767e6fb56fSmrg as_expr=expr 229777e6fb56fSmrgelse 229787e6fb56fSmrg as_expr=false 229797e6fb56fSmrgfi 229807e6fb56fSmrg 229817e6fb56fSmrgrm -f conf$$ conf$$.exe conf$$.file 229827e6fb56fSmrgif test -d conf$$.dir; then 229837e6fb56fSmrg rm -f conf$$.dir/conf$$.file 229847e6fb56fSmrgelse 229857e6fb56fSmrg rm -f conf$$.dir 229867e6fb56fSmrg mkdir conf$$.dir 2>/dev/null 229877e6fb56fSmrgfi 229887e6fb56fSmrgif (echo >conf$$.file) 2>/dev/null; then 229897e6fb56fSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 229907e6fb56fSmrg as_ln_s='ln -s' 229917e6fb56fSmrg # ... but there are two gotchas: 229927e6fb56fSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 229937e6fb56fSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 229947e6fb56fSmrg # In both cases, we have to default to `cp -p'. 229957e6fb56fSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 229967e6fb56fSmrg as_ln_s='cp -p' 229977e6fb56fSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 229987e6fb56fSmrg as_ln_s=ln 229997e6fb56fSmrg else 230007e6fb56fSmrg as_ln_s='cp -p' 230017e6fb56fSmrg fi 230027e6fb56fSmrgelse 230037e6fb56fSmrg as_ln_s='cp -p' 230047e6fb56fSmrgfi 230057e6fb56fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 230067e6fb56fSmrgrmdir conf$$.dir 2>/dev/null 230077e6fb56fSmrg 230087e6fb56fSmrgif mkdir -p . 2>/dev/null; then 230097e6fb56fSmrg as_mkdir_p=: 230107e6fb56fSmrgelse 230117e6fb56fSmrg test -d ./-p && rmdir ./-p 230127e6fb56fSmrg as_mkdir_p=false 230137e6fb56fSmrgfi 230147e6fb56fSmrg 230157e6fb56fSmrgif test -x / >/dev/null 2>&1; then 230167e6fb56fSmrg as_test_x='test -x' 230177e6fb56fSmrgelse 230187e6fb56fSmrg if ls -dL / >/dev/null 2>&1; then 230197e6fb56fSmrg as_ls_L_option=L 230207e6fb56fSmrg else 230217e6fb56fSmrg as_ls_L_option= 230227e6fb56fSmrg fi 230237e6fb56fSmrg as_test_x=' 230247e6fb56fSmrg eval sh -c '\'' 230257e6fb56fSmrg if test -d "$1"; then 230267e6fb56fSmrg test -d "$1/."; 230277e6fb56fSmrg else 230287e6fb56fSmrg case $1 in 230297e6fb56fSmrg -*)set "./$1";; 230307e6fb56fSmrg esac; 230317e6fb56fSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 230327e6fb56fSmrg ???[sx]*):;;*)false;;esac;fi 230337e6fb56fSmrg '\'' sh 230347e6fb56fSmrg ' 230357e6fb56fSmrgfi 230367e6fb56fSmrgas_executable_p=$as_test_x 230377e6fb56fSmrg 230387e6fb56fSmrg# Sed expression to map a string onto a valid CPP name. 230397e6fb56fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 230407e6fb56fSmrg 230417e6fb56fSmrg# Sed expression to map a string onto a valid variable name. 230427e6fb56fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 230437e6fb56fSmrg 230447e6fb56fSmrg 230457e6fb56fSmrgexec 6>&1 230467e6fb56fSmrg 230477e6fb56fSmrg# Save the log message, to keep $[0] and so on meaningful, and to 230487e6fb56fSmrg# report actual input values of CONFIG_FILES etc. instead of their 230497e6fb56fSmrg# values after options handling. 230507e6fb56fSmrgac_log=" 230517e6fb56fSmrgThis file was extended by xf86-video-openchrome $as_me 0.2.904, which was 230527e6fb56fSmrggenerated by GNU Autoconf 2.63. Invocation command line was 230537e6fb56fSmrg 230547e6fb56fSmrg CONFIG_FILES = $CONFIG_FILES 230557e6fb56fSmrg CONFIG_HEADERS = $CONFIG_HEADERS 230567e6fb56fSmrg CONFIG_LINKS = $CONFIG_LINKS 230577e6fb56fSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 230587e6fb56fSmrg $ $0 $@ 230597e6fb56fSmrg 230607e6fb56fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 230617e6fb56fSmrg" 230627e6fb56fSmrg 230637e6fb56fSmrg_ACEOF 230647e6fb56fSmrg 230657e6fb56fSmrgcase $ac_config_files in *" 230667e6fb56fSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 230677e6fb56fSmrgesac 230687e6fb56fSmrg 230697e6fb56fSmrgcase $ac_config_headers in *" 230707e6fb56fSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 230717e6fb56fSmrgesac 230727e6fb56fSmrg 230737e6fb56fSmrg 230747e6fb56fSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 230757e6fb56fSmrg# Files that config.status was made for. 230767e6fb56fSmrgconfig_files="$ac_config_files" 230777e6fb56fSmrgconfig_headers="$ac_config_headers" 230787e6fb56fSmrgconfig_commands="$ac_config_commands" 230797e6fb56fSmrg 230807e6fb56fSmrg_ACEOF 230817e6fb56fSmrg 230827e6fb56fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 230837e6fb56fSmrgac_cs_usage="\ 230847e6fb56fSmrg\`$as_me' instantiates files from templates according to the 230857e6fb56fSmrgcurrent configuration. 230867e6fb56fSmrg 230877e6fb56fSmrgUsage: $0 [OPTION]... [FILE]... 230887e6fb56fSmrg 230897e6fb56fSmrg -h, --help print this help, then exit 230907e6fb56fSmrg -V, --version print version number and configuration settings, then exit 230917e6fb56fSmrg -q, --quiet, --silent 230927e6fb56fSmrg do not print progress messages 230937e6fb56fSmrg -d, --debug don't remove temporary files 230947e6fb56fSmrg --recheck update $as_me by reconfiguring in the same conditions 230957e6fb56fSmrg --file=FILE[:TEMPLATE] 230967e6fb56fSmrg instantiate the configuration file FILE 230977e6fb56fSmrg --header=FILE[:TEMPLATE] 230987e6fb56fSmrg instantiate the configuration header FILE 230997e6fb56fSmrg 231007e6fb56fSmrgConfiguration files: 231017e6fb56fSmrg$config_files 231027e6fb56fSmrg 231037e6fb56fSmrgConfiguration headers: 231047e6fb56fSmrg$config_headers 231057e6fb56fSmrg 231067e6fb56fSmrgConfiguration commands: 231077e6fb56fSmrg$config_commands 231087e6fb56fSmrg 231097e6fb56fSmrgReport bugs to <bug-autoconf@gnu.org>." 231107e6fb56fSmrg 231117e6fb56fSmrg_ACEOF 231127e6fb56fSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 231137e6fb56fSmrgac_cs_version="\\ 231147e6fb56fSmrgxf86-video-openchrome config.status 0.2.904 231157e6fb56fSmrgconfigured by $0, generated by GNU Autoconf 2.63, 231167e6fb56fSmrg with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 231177e6fb56fSmrg 231187e6fb56fSmrgCopyright (C) 2008 Free Software Foundation, Inc. 231197e6fb56fSmrgThis config.status script is free software; the Free Software Foundation 231207e6fb56fSmrggives unlimited permission to copy, distribute and modify it." 231217e6fb56fSmrg 231227e6fb56fSmrgac_pwd='$ac_pwd' 231237e6fb56fSmrgsrcdir='$srcdir' 231247e6fb56fSmrgINSTALL='$INSTALL' 231257e6fb56fSmrgMKDIR_P='$MKDIR_P' 231267e6fb56fSmrgAWK='$AWK' 231277e6fb56fSmrgtest -n "\$AWK" || AWK=awk 231287e6fb56fSmrg_ACEOF 231297e6fb56fSmrg 231307e6fb56fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 231317e6fb56fSmrg# The default lists apply if the user does not specify any file. 231327e6fb56fSmrgac_need_defaults=: 231337e6fb56fSmrgwhile test $# != 0 231347e6fb56fSmrgdo 231357e6fb56fSmrg case $1 in 231367e6fb56fSmrg --*=*) 231377e6fb56fSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 231387e6fb56fSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 231397e6fb56fSmrg ac_shift=: 231407e6fb56fSmrg ;; 231417e6fb56fSmrg *) 231427e6fb56fSmrg ac_option=$1 231437e6fb56fSmrg ac_optarg=$2 231447e6fb56fSmrg ac_shift=shift 231457e6fb56fSmrg ;; 231467e6fb56fSmrg esac 231477e6fb56fSmrg 231487e6fb56fSmrg case $ac_option in 231497e6fb56fSmrg # Handling of the options. 231507e6fb56fSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 231517e6fb56fSmrg ac_cs_recheck=: ;; 231527e6fb56fSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 231537e6fb56fSmrg $as_echo "$ac_cs_version"; exit ;; 231547e6fb56fSmrg --debug | --debu | --deb | --de | --d | -d ) 231557e6fb56fSmrg debug=: ;; 231567e6fb56fSmrg --file | --fil | --fi | --f ) 231577e6fb56fSmrg $ac_shift 231587e6fb56fSmrg case $ac_optarg in 231597e6fb56fSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 231607e6fb56fSmrg esac 231617e6fb56fSmrg CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 231627e6fb56fSmrg ac_need_defaults=false;; 231637e6fb56fSmrg --header | --heade | --head | --hea ) 231647e6fb56fSmrg $ac_shift 231657e6fb56fSmrg case $ac_optarg in 231667e6fb56fSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 231677e6fb56fSmrg esac 231687e6fb56fSmrg CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 231697e6fb56fSmrg ac_need_defaults=false;; 231707e6fb56fSmrg --he | --h) 231717e6fb56fSmrg # Conflict between --help and --header 231727e6fb56fSmrg { $as_echo "$as_me: error: ambiguous option: $1 231737e6fb56fSmrgTry \`$0 --help' for more information." >&2 231747e6fb56fSmrg { (exit 1); exit 1; }; };; 231757e6fb56fSmrg --help | --hel | -h ) 231767e6fb56fSmrg $as_echo "$ac_cs_usage"; exit ;; 231777e6fb56fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 231787e6fb56fSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 231797e6fb56fSmrg ac_cs_silent=: ;; 231807e6fb56fSmrg 231817e6fb56fSmrg # This is an error. 231827e6fb56fSmrg -*) { $as_echo "$as_me: error: unrecognized option: $1 231837e6fb56fSmrgTry \`$0 --help' for more information." >&2 231847e6fb56fSmrg { (exit 1); exit 1; }; } ;; 231857e6fb56fSmrg 231867e6fb56fSmrg *) ac_config_targets="$ac_config_targets $1" 231877e6fb56fSmrg ac_need_defaults=false ;; 231887e6fb56fSmrg 231897e6fb56fSmrg esac 231907e6fb56fSmrg shift 231917e6fb56fSmrgdone 231927e6fb56fSmrg 231937e6fb56fSmrgac_configure_extra_args= 231947e6fb56fSmrg 231957e6fb56fSmrgif $ac_cs_silent; then 231967e6fb56fSmrg exec 6>/dev/null 231977e6fb56fSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 231987e6fb56fSmrgfi 231997e6fb56fSmrg 232007e6fb56fSmrg_ACEOF 232017e6fb56fSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 232027e6fb56fSmrgif \$ac_cs_recheck; then 232037e6fb56fSmrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 232047e6fb56fSmrg shift 232057e6fb56fSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 232067e6fb56fSmrg CONFIG_SHELL='$SHELL' 232077e6fb56fSmrg export CONFIG_SHELL 232087e6fb56fSmrg exec "\$@" 232097e6fb56fSmrgfi 232107e6fb56fSmrg 232117e6fb56fSmrg_ACEOF 232127e6fb56fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 232137e6fb56fSmrgexec 5>>config.log 232147e6fb56fSmrg{ 232157e6fb56fSmrg echo 232167e6fb56fSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 232177e6fb56fSmrg## Running $as_me. ## 232187e6fb56fSmrg_ASBOX 232197e6fb56fSmrg $as_echo "$ac_log" 232207e6fb56fSmrg} >&5 232217e6fb56fSmrg 232227e6fb56fSmrg_ACEOF 232237e6fb56fSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 232247e6fb56fSmrg# 232257e6fb56fSmrg# INIT-COMMANDS 232267e6fb56fSmrg# 232277e6fb56fSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 232287e6fb56fSmrg 232297e6fb56fSmrg_ACEOF 232307e6fb56fSmrg 232317e6fb56fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 232327e6fb56fSmrg 232337e6fb56fSmrg# Handling of arguments. 232347e6fb56fSmrgfor ac_config_target in $ac_config_targets 232357e6fb56fSmrgdo 232367e6fb56fSmrg case $ac_config_target in 232377e6fb56fSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 232387e6fb56fSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 232397e6fb56fSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 232407e6fb56fSmrg "libxvmc/Makefile") CONFIG_FILES="$CONFIG_FILES libxvmc/Makefile" ;; 232417e6fb56fSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 232427e6fb56fSmrg "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 232437e6fb56fSmrg 232447e6fb56fSmrg *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 232457e6fb56fSmrg$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 232467e6fb56fSmrg { (exit 1); exit 1; }; };; 232477e6fb56fSmrg esac 232487e6fb56fSmrgdone 232497e6fb56fSmrg 232507e6fb56fSmrg 232517e6fb56fSmrg# If the user did not use the arguments to specify the items to instantiate, 232527e6fb56fSmrg# then the envvar interface is used. Set only those that are not. 232537e6fb56fSmrg# We use the long form for the default assignment because of an extremely 232547e6fb56fSmrg# bizarre bug on SunOS 4.1.3. 232557e6fb56fSmrgif $ac_need_defaults; then 232567e6fb56fSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 232577e6fb56fSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 232587e6fb56fSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 232597e6fb56fSmrgfi 232607e6fb56fSmrg 232617e6fb56fSmrg# Have a temporary directory for convenience. Make it in the build tree 232627e6fb56fSmrg# simply because there is no reason against having it here, and in addition, 232637e6fb56fSmrg# creating and moving files from /tmp can sometimes cause problems. 232647e6fb56fSmrg# Hook for its removal unless debugging. 232657e6fb56fSmrg# Note that there is a small window in which the directory will not be cleaned: 232667e6fb56fSmrg# after its creation but before its name has been assigned to `$tmp'. 232677e6fb56fSmrg$debug || 232687e6fb56fSmrg{ 232697e6fb56fSmrg tmp= 232707e6fb56fSmrg trap 'exit_status=$? 232717e6fb56fSmrg { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 232727e6fb56fSmrg' 0 232737e6fb56fSmrg trap '{ (exit 1); exit 1; }' 1 2 13 15 232747e6fb56fSmrg} 232757e6fb56fSmrg# Create a (secure) tmp directory for tmp files. 232767e6fb56fSmrg 232777e6fb56fSmrg{ 232787e6fb56fSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 232797e6fb56fSmrg test -n "$tmp" && test -d "$tmp" 232807e6fb56fSmrg} || 232817e6fb56fSmrg{ 232827e6fb56fSmrg tmp=./conf$$-$RANDOM 232837e6fb56fSmrg (umask 077 && mkdir "$tmp") 232847e6fb56fSmrg} || 232857e6fb56fSmrg{ 232867e6fb56fSmrg $as_echo "$as_me: cannot create a temporary directory in ." >&2 232877e6fb56fSmrg { (exit 1); exit 1; } 232887e6fb56fSmrg} 232897e6fb56fSmrg 232907e6fb56fSmrg# Set up the scripts for CONFIG_FILES section. 232917e6fb56fSmrg# No need to generate them if there are no CONFIG_FILES. 232927e6fb56fSmrg# This happens for instance with `./config.status config.h'. 232937e6fb56fSmrgif test -n "$CONFIG_FILES"; then 232947e6fb56fSmrg 232957e6fb56fSmrg 232967e6fb56fSmrgac_cr=' 232977e6fb56fSmrg' 232987e6fb56fSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 232997e6fb56fSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 233007e6fb56fSmrg ac_cs_awk_cr='\\r' 233017e6fb56fSmrgelse 233027e6fb56fSmrg ac_cs_awk_cr=$ac_cr 233037e6fb56fSmrgfi 233047e6fb56fSmrg 233057e6fb56fSmrgecho 'BEGIN {' >"$tmp/subs1.awk" && 233067e6fb56fSmrg_ACEOF 233077e6fb56fSmrg 233087e6fb56fSmrg 233097e6fb56fSmrg{ 233107e6fb56fSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 233117e6fb56fSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 233127e6fb56fSmrg echo "_ACEOF" 233137e6fb56fSmrg} >conf$$subs.sh || 233147e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 233157e6fb56fSmrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 233167e6fb56fSmrg { (exit 1); exit 1; }; } 233177e6fb56fSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 233187e6fb56fSmrgac_delim='%!_!# ' 233197e6fb56fSmrgfor ac_last_try in false false false false false :; do 233207e6fb56fSmrg . ./conf$$subs.sh || 233217e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 233227e6fb56fSmrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 233237e6fb56fSmrg { (exit 1); exit 1; }; } 233247e6fb56fSmrg 233257e6fb56fSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 233267e6fb56fSmrg if test $ac_delim_n = $ac_delim_num; then 233277e6fb56fSmrg break 233287e6fb56fSmrg elif $ac_last_try; then 233297e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 233307e6fb56fSmrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 233317e6fb56fSmrg { (exit 1); exit 1; }; } 233327e6fb56fSmrg else 233337e6fb56fSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 233347e6fb56fSmrg fi 233357e6fb56fSmrgdone 233367e6fb56fSmrgrm -f conf$$subs.sh 233377e6fb56fSmrg 233387e6fb56fSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 233397e6fb56fSmrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK && 233407e6fb56fSmrg_ACEOF 233417e6fb56fSmrgsed -n ' 233427e6fb56fSmrgh 233437e6fb56fSmrgs/^/S["/; s/!.*/"]=/ 233447e6fb56fSmrgp 233457e6fb56fSmrgg 233467e6fb56fSmrgs/^[^!]*!// 233477e6fb56fSmrg:repl 233487e6fb56fSmrgt repl 233497e6fb56fSmrgs/'"$ac_delim"'$// 233507e6fb56fSmrgt delim 233517e6fb56fSmrg:nl 233527e6fb56fSmrgh 233537e6fb56fSmrgs/\(.\{148\}\).*/\1/ 233547e6fb56fSmrgt more1 233557e6fb56fSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 233567e6fb56fSmrgp 233577e6fb56fSmrgn 233587e6fb56fSmrgb repl 233597e6fb56fSmrg:more1 233607e6fb56fSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 233617e6fb56fSmrgp 233627e6fb56fSmrgg 233637e6fb56fSmrgs/.\{148\}// 233647e6fb56fSmrgt nl 233657e6fb56fSmrg:delim 233667e6fb56fSmrgh 233677e6fb56fSmrgs/\(.\{148\}\).*/\1/ 233687e6fb56fSmrgt more2 233697e6fb56fSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 233707e6fb56fSmrgp 233717e6fb56fSmrgb 233727e6fb56fSmrg:more2 233737e6fb56fSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 233747e6fb56fSmrgp 233757e6fb56fSmrgg 233767e6fb56fSmrgs/.\{148\}// 233777e6fb56fSmrgt delim 233787e6fb56fSmrg' <conf$$subs.awk | sed ' 233797e6fb56fSmrg/^[^""]/{ 233807e6fb56fSmrg N 233817e6fb56fSmrg s/\n// 233827e6fb56fSmrg} 233837e6fb56fSmrg' >>$CONFIG_STATUS || ac_write_fail=1 233847e6fb56fSmrgrm -f conf$$subs.awk 233857e6fb56fSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 233867e6fb56fSmrg_ACAWK 233877e6fb56fSmrgcat >>"\$tmp/subs1.awk" <<_ACAWK && 233887e6fb56fSmrg for (key in S) S_is_set[key] = 1 233897e6fb56fSmrg FS = "" 233907e6fb56fSmrg 233917e6fb56fSmrg} 233927e6fb56fSmrg{ 233937e6fb56fSmrg line = $ 0 233947e6fb56fSmrg nfields = split(line, field, "@") 233957e6fb56fSmrg substed = 0 233967e6fb56fSmrg len = length(field[1]) 233977e6fb56fSmrg for (i = 2; i < nfields; i++) { 233987e6fb56fSmrg key = field[i] 233997e6fb56fSmrg keylen = length(key) 234007e6fb56fSmrg if (S_is_set[key]) { 234017e6fb56fSmrg value = S[key] 234027e6fb56fSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 234037e6fb56fSmrg len += length(value) + length(field[++i]) 234047e6fb56fSmrg substed = 1 234057e6fb56fSmrg } else 234067e6fb56fSmrg len += 1 + keylen 234077e6fb56fSmrg } 234087e6fb56fSmrg 234097e6fb56fSmrg print line 234107e6fb56fSmrg} 234117e6fb56fSmrg 234127e6fb56fSmrg_ACAWK 234137e6fb56fSmrg_ACEOF 234147e6fb56fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 234157e6fb56fSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 234167e6fb56fSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 234177e6fb56fSmrgelse 234187e6fb56fSmrg cat 234197e6fb56fSmrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 234207e6fb56fSmrg || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 234217e6fb56fSmrg$as_echo "$as_me: error: could not setup config files machinery" >&2;} 234227e6fb56fSmrg { (exit 1); exit 1; }; } 234237e6fb56fSmrg_ACEOF 234247e6fb56fSmrg 234257e6fb56fSmrg# VPATH may cause trouble with some makes, so we remove $(srcdir), 234267e6fb56fSmrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 234277e6fb56fSmrg# trailing colons and then remove the whole line if VPATH becomes empty 234287e6fb56fSmrg# (actually we leave an empty line to preserve line numbers). 234297e6fb56fSmrgif test "x$srcdir" = x.; then 234307e6fb56fSmrg ac_vpsub='/^[ ]*VPATH[ ]*=/{ 234317e6fb56fSmrgs/:*\$(srcdir):*/:/ 234327e6fb56fSmrgs/:*\${srcdir}:*/:/ 234337e6fb56fSmrgs/:*@srcdir@:*/:/ 234347e6fb56fSmrgs/^\([^=]*=[ ]*\):*/\1/ 234357e6fb56fSmrgs/:*$// 234367e6fb56fSmrgs/^[^=]*=[ ]*$// 234377e6fb56fSmrg}' 234387e6fb56fSmrgfi 234397e6fb56fSmrg 234407e6fb56fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 234417e6fb56fSmrgfi # test -n "$CONFIG_FILES" 234427e6fb56fSmrg 234437e6fb56fSmrg# Set up the scripts for CONFIG_HEADERS section. 234447e6fb56fSmrg# No need to generate them if there are no CONFIG_HEADERS. 234457e6fb56fSmrg# This happens for instance with `./config.status Makefile'. 234467e6fb56fSmrgif test -n "$CONFIG_HEADERS"; then 234477e6fb56fSmrgcat >"$tmp/defines.awk" <<\_ACAWK || 234487e6fb56fSmrgBEGIN { 234497e6fb56fSmrg_ACEOF 234507e6fb56fSmrg 234517e6fb56fSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 234527e6fb56fSmrg# here-document in config.status, that substitutes the proper values into 234537e6fb56fSmrg# config.h.in to produce config.h. 234547e6fb56fSmrg 234557e6fb56fSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 234567e6fb56fSmrg# handling of long lines. 234577e6fb56fSmrgac_delim='%!_!# ' 234587e6fb56fSmrgfor ac_last_try in false false :; do 234597e6fb56fSmrg ac_t=`sed -n "/$ac_delim/p" confdefs.h` 234607e6fb56fSmrg if test -z "$ac_t"; then 234617e6fb56fSmrg break 234627e6fb56fSmrg elif $ac_last_try; then 234637e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 234647e6fb56fSmrg$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 234657e6fb56fSmrg { (exit 1); exit 1; }; } 234667e6fb56fSmrg else 234677e6fb56fSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 234687e6fb56fSmrg fi 234697e6fb56fSmrgdone 234707e6fb56fSmrg 234717e6fb56fSmrg# For the awk script, D is an array of macro values keyed by name, 234727e6fb56fSmrg# likewise P contains macro parameters if any. Preserve backslash 234737e6fb56fSmrg# newline sequences. 234747e6fb56fSmrg 234757e6fb56fSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 234767e6fb56fSmrgsed -n ' 234777e6fb56fSmrgs/.\{148\}/&'"$ac_delim"'/g 234787e6fb56fSmrgt rset 234797e6fb56fSmrg:rset 234807e6fb56fSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 234817e6fb56fSmrgt def 234827e6fb56fSmrgd 234837e6fb56fSmrg:def 234847e6fb56fSmrgs/\\$// 234857e6fb56fSmrgt bsnl 234867e6fb56fSmrgs/["\\]/\\&/g 234877e6fb56fSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 234887e6fb56fSmrgD["\1"]=" \3"/p 234897e6fb56fSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 234907e6fb56fSmrgd 234917e6fb56fSmrg:bsnl 234927e6fb56fSmrgs/["\\]/\\&/g 234937e6fb56fSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 234947e6fb56fSmrgD["\1"]=" \3\\\\\\n"\\/p 234957e6fb56fSmrgt cont 234967e6fb56fSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 234977e6fb56fSmrgt cont 234987e6fb56fSmrgd 234997e6fb56fSmrg:cont 235007e6fb56fSmrgn 235017e6fb56fSmrgs/.\{148\}/&'"$ac_delim"'/g 235027e6fb56fSmrgt clear 235037e6fb56fSmrg:clear 235047e6fb56fSmrgs/\\$// 235057e6fb56fSmrgt bsnlc 235067e6fb56fSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 235077e6fb56fSmrgd 235087e6fb56fSmrg:bsnlc 235097e6fb56fSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 235107e6fb56fSmrgb cont 235117e6fb56fSmrg' <confdefs.h | sed ' 235127e6fb56fSmrgs/'"$ac_delim"'/"\\\ 235137e6fb56fSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 235147e6fb56fSmrg 235157e6fb56fSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 235167e6fb56fSmrg for (key in D) D_is_set[key] = 1 235177e6fb56fSmrg FS = "" 235187e6fb56fSmrg} 235197e6fb56fSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 235207e6fb56fSmrg line = \$ 0 235217e6fb56fSmrg split(line, arg, " ") 235227e6fb56fSmrg if (arg[1] == "#") { 235237e6fb56fSmrg defundef = arg[2] 235247e6fb56fSmrg mac1 = arg[3] 235257e6fb56fSmrg } else { 235267e6fb56fSmrg defundef = substr(arg[1], 2) 235277e6fb56fSmrg mac1 = arg[2] 235287e6fb56fSmrg } 235297e6fb56fSmrg split(mac1, mac2, "(") #) 235307e6fb56fSmrg macro = mac2[1] 235317e6fb56fSmrg prefix = substr(line, 1, index(line, defundef) - 1) 235327e6fb56fSmrg if (D_is_set[macro]) { 235337e6fb56fSmrg # Preserve the white space surrounding the "#". 235347e6fb56fSmrg print prefix "define", macro P[macro] D[macro] 235357e6fb56fSmrg next 235367e6fb56fSmrg } else { 235377e6fb56fSmrg # Replace #undef with comments. This is necessary, for example, 235387e6fb56fSmrg # in the case of _POSIX_SOURCE, which is predefined and required 235397e6fb56fSmrg # on some systems where configure will not decide to define it. 235407e6fb56fSmrg if (defundef == "undef") { 235417e6fb56fSmrg print "/*", prefix defundef, macro, "*/" 235427e6fb56fSmrg next 235437e6fb56fSmrg } 235447e6fb56fSmrg } 235457e6fb56fSmrg} 235467e6fb56fSmrg{ print } 235477e6fb56fSmrg_ACAWK 235487e6fb56fSmrg_ACEOF 235497e6fb56fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 235507e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 235517e6fb56fSmrg$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 235527e6fb56fSmrg { (exit 1); exit 1; }; } 235537e6fb56fSmrgfi # test -n "$CONFIG_HEADERS" 235547e6fb56fSmrg 235557e6fb56fSmrg 235567e6fb56fSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 235577e6fb56fSmrgshift 235587e6fb56fSmrgfor ac_tag 235597e6fb56fSmrgdo 235607e6fb56fSmrg case $ac_tag in 235617e6fb56fSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 235627e6fb56fSmrg esac 235637e6fb56fSmrg case $ac_mode$ac_tag in 235647e6fb56fSmrg :[FHL]*:*);; 235657e6fb56fSmrg :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 235667e6fb56fSmrg$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 235677e6fb56fSmrg { (exit 1); exit 1; }; };; 235687e6fb56fSmrg :[FH]-) ac_tag=-:-;; 235697e6fb56fSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 235707e6fb56fSmrg esac 235717e6fb56fSmrg ac_save_IFS=$IFS 235727e6fb56fSmrg IFS=: 235737e6fb56fSmrg set x $ac_tag 235747e6fb56fSmrg IFS=$ac_save_IFS 235757e6fb56fSmrg shift 235767e6fb56fSmrg ac_file=$1 235777e6fb56fSmrg shift 235787e6fb56fSmrg 235797e6fb56fSmrg case $ac_mode in 235807e6fb56fSmrg :L) ac_source=$1;; 235817e6fb56fSmrg :[FH]) 235827e6fb56fSmrg ac_file_inputs= 235837e6fb56fSmrg for ac_f 235847e6fb56fSmrg do 235857e6fb56fSmrg case $ac_f in 235867e6fb56fSmrg -) ac_f="$tmp/stdin";; 235877e6fb56fSmrg *) # Look for the file first in the build tree, then in the source tree 235887e6fb56fSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 235897e6fb56fSmrg # because $ac_f cannot contain `:'. 235907e6fb56fSmrg test -f "$ac_f" || 235917e6fb56fSmrg case $ac_f in 235927e6fb56fSmrg [\\/$]*) false;; 235937e6fb56fSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 235947e6fb56fSmrg esac || 235957e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 235967e6fb56fSmrg$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 235977e6fb56fSmrg { (exit 1); exit 1; }; };; 235987e6fb56fSmrg esac 235997e6fb56fSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 236007e6fb56fSmrg ac_file_inputs="$ac_file_inputs '$ac_f'" 236017e6fb56fSmrg done 236027e6fb56fSmrg 236037e6fb56fSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 236047e6fb56fSmrg # use $as_me), people would be surprised to read: 236057e6fb56fSmrg # /* config.h. Generated by config.status. */ 236067e6fb56fSmrg configure_input='Generated from '` 236077e6fb56fSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 236087e6fb56fSmrg `' by configure.' 236097e6fb56fSmrg if test x"$ac_file" != x-; then 236107e6fb56fSmrg configure_input="$ac_file. $configure_input" 236117e6fb56fSmrg { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 236127e6fb56fSmrg$as_echo "$as_me: creating $ac_file" >&6;} 236137e6fb56fSmrg fi 236147e6fb56fSmrg # Neutralize special characters interpreted by sed in replacement strings. 236157e6fb56fSmrg case $configure_input in #( 236167e6fb56fSmrg *\&* | *\|* | *\\* ) 236177e6fb56fSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 236187e6fb56fSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 236197e6fb56fSmrg *) ac_sed_conf_input=$configure_input;; 236207e6fb56fSmrg esac 236217e6fb56fSmrg 236227e6fb56fSmrg case $ac_tag in 236237e6fb56fSmrg *:-:* | *:-) cat >"$tmp/stdin" \ 236247e6fb56fSmrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 236257e6fb56fSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 236267e6fb56fSmrg { (exit 1); exit 1; }; } ;; 236277e6fb56fSmrg esac 236287e6fb56fSmrg ;; 236297e6fb56fSmrg esac 236307e6fb56fSmrg 236317e6fb56fSmrg ac_dir=`$as_dirname -- "$ac_file" || 236327e6fb56fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 236337e6fb56fSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 236347e6fb56fSmrg X"$ac_file" : 'X\(//\)$' \| \ 236357e6fb56fSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 236367e6fb56fSmrg$as_echo X"$ac_file" | 236377e6fb56fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 236387e6fb56fSmrg s//\1/ 236397e6fb56fSmrg q 236407e6fb56fSmrg } 236417e6fb56fSmrg /^X\(\/\/\)[^/].*/{ 236427e6fb56fSmrg s//\1/ 236437e6fb56fSmrg q 236447e6fb56fSmrg } 236457e6fb56fSmrg /^X\(\/\/\)$/{ 236467e6fb56fSmrg s//\1/ 236477e6fb56fSmrg q 236487e6fb56fSmrg } 236497e6fb56fSmrg /^X\(\/\).*/{ 236507e6fb56fSmrg s//\1/ 236517e6fb56fSmrg q 236527e6fb56fSmrg } 236537e6fb56fSmrg s/.*/./; q'` 236547e6fb56fSmrg { as_dir="$ac_dir" 236557e6fb56fSmrg case $as_dir in #( 236567e6fb56fSmrg -*) as_dir=./$as_dir;; 236577e6fb56fSmrg esac 236587e6fb56fSmrg test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 236597e6fb56fSmrg as_dirs= 236607e6fb56fSmrg while :; do 236617e6fb56fSmrg case $as_dir in #( 236627e6fb56fSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 236637e6fb56fSmrg *) as_qdir=$as_dir;; 236647e6fb56fSmrg esac 236657e6fb56fSmrg as_dirs="'$as_qdir' $as_dirs" 236667e6fb56fSmrg as_dir=`$as_dirname -- "$as_dir" || 236677e6fb56fSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 236687e6fb56fSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 236697e6fb56fSmrg X"$as_dir" : 'X\(//\)$' \| \ 236707e6fb56fSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 236717e6fb56fSmrg$as_echo X"$as_dir" | 236727e6fb56fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 236737e6fb56fSmrg s//\1/ 236747e6fb56fSmrg q 236757e6fb56fSmrg } 236767e6fb56fSmrg /^X\(\/\/\)[^/].*/{ 236777e6fb56fSmrg s//\1/ 236787e6fb56fSmrg q 236797e6fb56fSmrg } 236807e6fb56fSmrg /^X\(\/\/\)$/{ 236817e6fb56fSmrg s//\1/ 236827e6fb56fSmrg q 236837e6fb56fSmrg } 236847e6fb56fSmrg /^X\(\/\).*/{ 236857e6fb56fSmrg s//\1/ 236867e6fb56fSmrg q 236877e6fb56fSmrg } 236887e6fb56fSmrg s/.*/./; q'` 236897e6fb56fSmrg test -d "$as_dir" && break 236907e6fb56fSmrg done 236917e6fb56fSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 236927e6fb56fSmrg } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 236937e6fb56fSmrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 236947e6fb56fSmrg { (exit 1); exit 1; }; }; } 236957e6fb56fSmrg ac_builddir=. 236967e6fb56fSmrg 236977e6fb56fSmrgcase "$ac_dir" in 236987e6fb56fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 236997e6fb56fSmrg*) 237007e6fb56fSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 237017e6fb56fSmrg # A ".." for each directory in $ac_dir_suffix. 237027e6fb56fSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 237037e6fb56fSmrg case $ac_top_builddir_sub in 237047e6fb56fSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 237057e6fb56fSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 237067e6fb56fSmrg esac ;; 237077e6fb56fSmrgesac 237087e6fb56fSmrgac_abs_top_builddir=$ac_pwd 237097e6fb56fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 237107e6fb56fSmrg# for backward compatibility: 237117e6fb56fSmrgac_top_builddir=$ac_top_build_prefix 237127e6fb56fSmrg 237137e6fb56fSmrgcase $srcdir in 237147e6fb56fSmrg .) # We are building in place. 237157e6fb56fSmrg ac_srcdir=. 237167e6fb56fSmrg ac_top_srcdir=$ac_top_builddir_sub 237177e6fb56fSmrg ac_abs_top_srcdir=$ac_pwd ;; 237187e6fb56fSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 237197e6fb56fSmrg ac_srcdir=$srcdir$ac_dir_suffix; 237207e6fb56fSmrg ac_top_srcdir=$srcdir 237217e6fb56fSmrg ac_abs_top_srcdir=$srcdir ;; 237227e6fb56fSmrg *) # Relative name. 237237e6fb56fSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 237247e6fb56fSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 237257e6fb56fSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 237267e6fb56fSmrgesac 237277e6fb56fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 237287e6fb56fSmrg 237297e6fb56fSmrg 237307e6fb56fSmrg case $ac_mode in 237317e6fb56fSmrg :F) 237327e6fb56fSmrg # 237337e6fb56fSmrg # CONFIG_FILE 237347e6fb56fSmrg # 237357e6fb56fSmrg 237367e6fb56fSmrg case $INSTALL in 237377e6fb56fSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 237387e6fb56fSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 237397e6fb56fSmrg esac 237407e6fb56fSmrg ac_MKDIR_P=$MKDIR_P 237417e6fb56fSmrg case $MKDIR_P in 237427e6fb56fSmrg [\\/$]* | ?:[\\/]* ) ;; 237437e6fb56fSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 237447e6fb56fSmrg esac 237457e6fb56fSmrg_ACEOF 237467e6fb56fSmrg 237477e6fb56fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 237487e6fb56fSmrg# If the template does not know about datarootdir, expand it. 237497e6fb56fSmrg# FIXME: This hack should be removed a few years after 2.60. 237507e6fb56fSmrgac_datarootdir_hack=; ac_datarootdir_seen= 237517e6fb56fSmrg 237527e6fb56fSmrgac_sed_dataroot=' 237537e6fb56fSmrg/datarootdir/ { 237547e6fb56fSmrg p 237557e6fb56fSmrg q 237567e6fb56fSmrg} 237577e6fb56fSmrg/@datadir@/p 237587e6fb56fSmrg/@docdir@/p 237597e6fb56fSmrg/@infodir@/p 237607e6fb56fSmrg/@localedir@/p 237617e6fb56fSmrg/@mandir@/p 237627e6fb56fSmrg' 237637e6fb56fSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 237647e6fb56fSmrg*datarootdir*) ac_datarootdir_seen=yes;; 237657e6fb56fSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 237667e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 237677e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 237687e6fb56fSmrg_ACEOF 237697e6fb56fSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 237707e6fb56fSmrg ac_datarootdir_hack=' 237717e6fb56fSmrg s&@datadir@&$datadir&g 237727e6fb56fSmrg s&@docdir@&$docdir&g 237737e6fb56fSmrg s&@infodir@&$infodir&g 237747e6fb56fSmrg s&@localedir@&$localedir&g 237757e6fb56fSmrg s&@mandir@&$mandir&g 237767e6fb56fSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 237777e6fb56fSmrgesac 237787e6fb56fSmrg_ACEOF 237797e6fb56fSmrg 237807e6fb56fSmrg# Neutralize VPATH when `$srcdir' = `.'. 237817e6fb56fSmrg# Shell code in configure.ac might set extrasub. 237827e6fb56fSmrg# FIXME: do we really want to maintain this feature? 237837e6fb56fSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 237847e6fb56fSmrgac_sed_extra="$ac_vpsub 237857e6fb56fSmrg$extrasub 237867e6fb56fSmrg_ACEOF 237877e6fb56fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 237887e6fb56fSmrg:t 237897e6fb56fSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 237907e6fb56fSmrgs|@configure_input@|$ac_sed_conf_input|;t t 237917e6fb56fSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 237927e6fb56fSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 237937e6fb56fSmrgs&@srcdir@&$ac_srcdir&;t t 237947e6fb56fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 237957e6fb56fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 237967e6fb56fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 237977e6fb56fSmrgs&@builddir@&$ac_builddir&;t t 237987e6fb56fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 237997e6fb56fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 238007e6fb56fSmrgs&@INSTALL@&$ac_INSTALL&;t t 238017e6fb56fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 238027e6fb56fSmrg$ac_datarootdir_hack 238037e6fb56fSmrg" 238047e6fb56fSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 238057e6fb56fSmrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 238067e6fb56fSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 238077e6fb56fSmrg { (exit 1); exit 1; }; } 238087e6fb56fSmrg 238097e6fb56fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 238107e6fb56fSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 238117e6fb56fSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 238127e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 238137e6fb56fSmrgwhich seems to be undefined. Please make sure it is defined." >&5 238147e6fb56fSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 238157e6fb56fSmrgwhich seems to be undefined. Please make sure it is defined." >&2;} 238167e6fb56fSmrg 238177e6fb56fSmrg rm -f "$tmp/stdin" 238187e6fb56fSmrg case $ac_file in 238197e6fb56fSmrg -) cat "$tmp/out" && rm -f "$tmp/out";; 238207e6fb56fSmrg *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 238217e6fb56fSmrg esac \ 238227e6fb56fSmrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 238237e6fb56fSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 238247e6fb56fSmrg { (exit 1); exit 1; }; } 238257e6fb56fSmrg ;; 238267e6fb56fSmrg :H) 238277e6fb56fSmrg # 238287e6fb56fSmrg # CONFIG_HEADER 238297e6fb56fSmrg # 238307e6fb56fSmrg if test x"$ac_file" != x-; then 238317e6fb56fSmrg { 238327e6fb56fSmrg $as_echo "/* $configure_input */" \ 238337e6fb56fSmrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 238347e6fb56fSmrg } >"$tmp/config.h" \ 238357e6fb56fSmrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 238367e6fb56fSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 238377e6fb56fSmrg { (exit 1); exit 1; }; } 238387e6fb56fSmrg if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 238397e6fb56fSmrg { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 238407e6fb56fSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 238417e6fb56fSmrg else 238427e6fb56fSmrg rm -f "$ac_file" 238437e6fb56fSmrg mv "$tmp/config.h" "$ac_file" \ 238447e6fb56fSmrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 238457e6fb56fSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 238467e6fb56fSmrg { (exit 1); exit 1; }; } 238477e6fb56fSmrg fi 238487e6fb56fSmrg else 238497e6fb56fSmrg $as_echo "/* $configure_input */" \ 238507e6fb56fSmrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 238517e6fb56fSmrg || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 238527e6fb56fSmrg$as_echo "$as_me: error: could not create -" >&2;} 238537e6fb56fSmrg { (exit 1); exit 1; }; } 238547e6fb56fSmrg fi 238557e6fb56fSmrg# Compute "$ac_file"'s index in $config_headers. 238567e6fb56fSmrg_am_arg="$ac_file" 238577e6fb56fSmrg_am_stamp_count=1 238587e6fb56fSmrgfor _am_header in $config_headers :; do 238597e6fb56fSmrg case $_am_header in 238607e6fb56fSmrg $_am_arg | $_am_arg:* ) 238617e6fb56fSmrg break ;; 238627e6fb56fSmrg * ) 238637e6fb56fSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 238647e6fb56fSmrg esac 238657e6fb56fSmrgdone 238667e6fb56fSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 238677e6fb56fSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 238687e6fb56fSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 238697e6fb56fSmrg X"$_am_arg" : 'X\(//\)$' \| \ 238707e6fb56fSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 238717e6fb56fSmrg$as_echo X"$_am_arg" | 238727e6fb56fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 238737e6fb56fSmrg s//\1/ 238747e6fb56fSmrg q 238757e6fb56fSmrg } 238767e6fb56fSmrg /^X\(\/\/\)[^/].*/{ 238777e6fb56fSmrg s//\1/ 238787e6fb56fSmrg q 238797e6fb56fSmrg } 238807e6fb56fSmrg /^X\(\/\/\)$/{ 238817e6fb56fSmrg s//\1/ 238827e6fb56fSmrg q 238837e6fb56fSmrg } 238847e6fb56fSmrg /^X\(\/\).*/{ 238857e6fb56fSmrg s//\1/ 238867e6fb56fSmrg q 238877e6fb56fSmrg } 238887e6fb56fSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 238897e6fb56fSmrg ;; 238907e6fb56fSmrg 238917e6fb56fSmrg :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 238927e6fb56fSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 238937e6fb56fSmrg ;; 238947e6fb56fSmrg esac 238957e6fb56fSmrg 238967e6fb56fSmrg 238977e6fb56fSmrg case $ac_file$ac_mode in 238987e6fb56fSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 238997e6fb56fSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 239007e6fb56fSmrg # are listed without --file. Let's play safe and only enable the eval 239017e6fb56fSmrg # if we detect the quoting. 239027e6fb56fSmrg case $CONFIG_FILES in 239037e6fb56fSmrg *\'*) eval set x "$CONFIG_FILES" ;; 239047e6fb56fSmrg *) set x $CONFIG_FILES ;; 239057e6fb56fSmrg esac 239067e6fb56fSmrg shift 239077e6fb56fSmrg for mf 239087e6fb56fSmrg do 239097e6fb56fSmrg # Strip MF so we end up with the name of the file. 239107e6fb56fSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 239117e6fb56fSmrg # Check whether this is an Automake generated Makefile or not. 239127e6fb56fSmrg # We used to match only the files named `Makefile.in', but 239137e6fb56fSmrg # some people rename them; so instead we look at the file content. 239147e6fb56fSmrg # Grep'ing the first line is not enough: some people post-process 239157e6fb56fSmrg # each Makefile.in and add a new line on top of each file to say so. 239167e6fb56fSmrg # Grep'ing the whole file is not good either: AIX grep has a line 239177e6fb56fSmrg # limit of 2048, but all sed's we know have understand at least 4000. 239187e6fb56fSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 239197e6fb56fSmrg dirpart=`$as_dirname -- "$mf" || 239207e6fb56fSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 239217e6fb56fSmrg X"$mf" : 'X\(//\)[^/]' \| \ 239227e6fb56fSmrg X"$mf" : 'X\(//\)$' \| \ 239237e6fb56fSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 239247e6fb56fSmrg$as_echo X"$mf" | 239257e6fb56fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 239267e6fb56fSmrg s//\1/ 239277e6fb56fSmrg q 239287e6fb56fSmrg } 239297e6fb56fSmrg /^X\(\/\/\)[^/].*/{ 239307e6fb56fSmrg s//\1/ 239317e6fb56fSmrg q 239327e6fb56fSmrg } 239337e6fb56fSmrg /^X\(\/\/\)$/{ 239347e6fb56fSmrg s//\1/ 239357e6fb56fSmrg q 239367e6fb56fSmrg } 239377e6fb56fSmrg /^X\(\/\).*/{ 239387e6fb56fSmrg s//\1/ 239397e6fb56fSmrg q 239407e6fb56fSmrg } 239417e6fb56fSmrg s/.*/./; q'` 239427e6fb56fSmrg else 239437e6fb56fSmrg continue 239447e6fb56fSmrg fi 239457e6fb56fSmrg # Extract the definition of DEPDIR, am__include, and am__quote 239467e6fb56fSmrg # from the Makefile without running `make'. 239477e6fb56fSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 239487e6fb56fSmrg test -z "$DEPDIR" && continue 239497e6fb56fSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 239507e6fb56fSmrg test -z "am__include" && continue 239517e6fb56fSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 239527e6fb56fSmrg # When using ansi2knr, U may be empty or an underscore; expand it 239537e6fb56fSmrg U=`sed -n 's/^U = //p' < "$mf"` 239547e6fb56fSmrg # Find all dependency output files, they are included files with 239557e6fb56fSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 239567e6fb56fSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 239577e6fb56fSmrg # expansion. 239587e6fb56fSmrg for file in `sed -n " 239597e6fb56fSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 239607e6fb56fSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 239617e6fb56fSmrg # Make sure the directory exists. 239627e6fb56fSmrg test -f "$dirpart/$file" && continue 239637e6fb56fSmrg fdir=`$as_dirname -- "$file" || 239647e6fb56fSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 239657e6fb56fSmrg X"$file" : 'X\(//\)[^/]' \| \ 239667e6fb56fSmrg X"$file" : 'X\(//\)$' \| \ 239677e6fb56fSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 239687e6fb56fSmrg$as_echo X"$file" | 239697e6fb56fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 239707e6fb56fSmrg s//\1/ 239717e6fb56fSmrg q 239727e6fb56fSmrg } 239737e6fb56fSmrg /^X\(\/\/\)[^/].*/{ 239747e6fb56fSmrg s//\1/ 239757e6fb56fSmrg q 239767e6fb56fSmrg } 239777e6fb56fSmrg /^X\(\/\/\)$/{ 239787e6fb56fSmrg s//\1/ 239797e6fb56fSmrg q 239807e6fb56fSmrg } 239817e6fb56fSmrg /^X\(\/\).*/{ 239827e6fb56fSmrg s//\1/ 239837e6fb56fSmrg q 239847e6fb56fSmrg } 239857e6fb56fSmrg s/.*/./; q'` 239867e6fb56fSmrg { as_dir=$dirpart/$fdir 239877e6fb56fSmrg case $as_dir in #( 239887e6fb56fSmrg -*) as_dir=./$as_dir;; 239897e6fb56fSmrg esac 239907e6fb56fSmrg test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 239917e6fb56fSmrg as_dirs= 239927e6fb56fSmrg while :; do 239937e6fb56fSmrg case $as_dir in #( 239947e6fb56fSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 239957e6fb56fSmrg *) as_qdir=$as_dir;; 239967e6fb56fSmrg esac 239977e6fb56fSmrg as_dirs="'$as_qdir' $as_dirs" 239987e6fb56fSmrg as_dir=`$as_dirname -- "$as_dir" || 239997e6fb56fSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 240007e6fb56fSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 240017e6fb56fSmrg X"$as_dir" : 'X\(//\)$' \| \ 240027e6fb56fSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 240037e6fb56fSmrg$as_echo X"$as_dir" | 240047e6fb56fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 240057e6fb56fSmrg s//\1/ 240067e6fb56fSmrg q 240077e6fb56fSmrg } 240087e6fb56fSmrg /^X\(\/\/\)[^/].*/{ 240097e6fb56fSmrg s//\1/ 240107e6fb56fSmrg q 240117e6fb56fSmrg } 240127e6fb56fSmrg /^X\(\/\/\)$/{ 240137e6fb56fSmrg s//\1/ 240147e6fb56fSmrg q 240157e6fb56fSmrg } 240167e6fb56fSmrg /^X\(\/\).*/{ 240177e6fb56fSmrg s//\1/ 240187e6fb56fSmrg q 240197e6fb56fSmrg } 240207e6fb56fSmrg s/.*/./; q'` 240217e6fb56fSmrg test -d "$as_dir" && break 240227e6fb56fSmrg done 240237e6fb56fSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 240247e6fb56fSmrg } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 240257e6fb56fSmrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 240267e6fb56fSmrg { (exit 1); exit 1; }; }; } 240277e6fb56fSmrg # echo "creating $dirpart/$file" 240287e6fb56fSmrg echo '# dummy' > "$dirpart/$file" 240297e6fb56fSmrg done 240307e6fb56fSmrg done 240317e6fb56fSmrg} 240327e6fb56fSmrg ;; 240337e6fb56fSmrg 240347e6fb56fSmrg esac 240357e6fb56fSmrgdone # for ac_tag 240367e6fb56fSmrg 240377e6fb56fSmrg 240387e6fb56fSmrg{ (exit 0); exit 0; } 240397e6fb56fSmrg_ACEOF 240407e6fb56fSmrgchmod +x $CONFIG_STATUS 240417e6fb56fSmrgac_clean_files=$ac_clean_files_save 240427e6fb56fSmrg 240437e6fb56fSmrgtest $ac_write_fail = 0 || 240447e6fb56fSmrg { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 240457e6fb56fSmrg$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 240467e6fb56fSmrg { (exit 1); exit 1; }; } 240477e6fb56fSmrg 240487e6fb56fSmrg 240497e6fb56fSmrg# configure is writing to config.log, and then calls config.status. 240507e6fb56fSmrg# config.status does its own redirection, appending to config.log. 240517e6fb56fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 240527e6fb56fSmrg# by configure, so config.status won't be able to write to it; its 240537e6fb56fSmrg# output is simply discarded. So we exec the FD to /dev/null, 240547e6fb56fSmrg# effectively closing config.log, so it can be properly (re)opened and 240557e6fb56fSmrg# appended to by config.status. When coming back to configure, we 240567e6fb56fSmrg# need to make the FD available again. 240577e6fb56fSmrgif test "$no_create" != yes; then 240587e6fb56fSmrg ac_cs_success=: 240597e6fb56fSmrg ac_config_status_args= 240607e6fb56fSmrg test "$silent" = yes && 240617e6fb56fSmrg ac_config_status_args="$ac_config_status_args --quiet" 240627e6fb56fSmrg exec 5>/dev/null 240637e6fb56fSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 240647e6fb56fSmrg exec 5>>config.log 240657e6fb56fSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 240667e6fb56fSmrg # would make configure fail if this is the last instruction. 240677e6fb56fSmrg $ac_cs_success || { (exit 1); exit 1; } 240687e6fb56fSmrgfi 240697e6fb56fSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 240707e6fb56fSmrg { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 240717e6fb56fSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 240727e6fb56fSmrgfi 24073 24074