1*6a54128fSAndroid Build Coastguard Worker#! /bin/sh 2*6a54128fSAndroid Build Coastguard Worker# Guess values for system-dependent variables and create Makefiles. 3*6a54128fSAndroid Build Coastguard Worker# Generated by GNU Autoconf 2.71. 4*6a54128fSAndroid Build Coastguard Worker# 5*6a54128fSAndroid Build Coastguard Worker# 6*6a54128fSAndroid Build Coastguard Worker# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 7*6a54128fSAndroid Build Coastguard Worker# Inc. 8*6a54128fSAndroid Build Coastguard Worker# 9*6a54128fSAndroid Build Coastguard Worker# 10*6a54128fSAndroid Build Coastguard Worker# This configure script is free software; the Free Software Foundation 11*6a54128fSAndroid Build Coastguard Worker# gives unlimited permission to copy, distribute and modify it. 12*6a54128fSAndroid Build Coastguard Worker## -------------------- ## 13*6a54128fSAndroid Build Coastguard Worker## M4sh Initialization. ## 14*6a54128fSAndroid Build Coastguard Worker## -------------------- ## 15*6a54128fSAndroid Build Coastguard Worker 16*6a54128fSAndroid Build Coastguard Worker# Be more Bourne compatible 17*6a54128fSAndroid Build Coastguard WorkerDUALCASE=1; export DUALCASE # for MKS sh 18*6a54128fSAndroid Build Coastguard Workeras_nop=: 19*6a54128fSAndroid Build Coastguard Workerif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20*6a54128fSAndroid Build Coastguard Workerthen : 21*6a54128fSAndroid Build Coastguard Worker emulate sh 22*6a54128fSAndroid Build Coastguard Worker NULLCMD=: 23*6a54128fSAndroid Build Coastguard Worker # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24*6a54128fSAndroid Build Coastguard Worker # is contrary to our usage. Disable this feature. 25*6a54128fSAndroid Build Coastguard Worker alias -g '${1+"$@"}'='"$@"' 26*6a54128fSAndroid Build Coastguard Worker setopt NO_GLOB_SUBST 27*6a54128fSAndroid Build Coastguard Workerelse $as_nop 28*6a54128fSAndroid Build Coastguard Worker case `(set -o) 2>/dev/null` in #( 29*6a54128fSAndroid Build Coastguard Worker *posix*) : 30*6a54128fSAndroid Build Coastguard Worker set -o posix ;; #( 31*6a54128fSAndroid Build Coastguard Worker *) : 32*6a54128fSAndroid Build Coastguard Worker ;; 33*6a54128fSAndroid Build Coastguard Workeresac 34*6a54128fSAndroid Build Coastguard Workerfi 35*6a54128fSAndroid Build Coastguard Worker 36*6a54128fSAndroid Build Coastguard Worker 37*6a54128fSAndroid Build Coastguard Worker 38*6a54128fSAndroid Build Coastguard Worker# Reset variables that may have inherited troublesome values from 39*6a54128fSAndroid Build Coastguard Worker# the environment. 40*6a54128fSAndroid Build Coastguard Worker 41*6a54128fSAndroid Build Coastguard Worker# IFS needs to be set, to space, tab, and newline, in precisely that order. 42*6a54128fSAndroid Build Coastguard Worker# (If _AS_PATH_WALK were called with IFS unset, it would have the 43*6a54128fSAndroid Build Coastguard Worker# side effect of setting IFS to empty, thus disabling word splitting.) 44*6a54128fSAndroid Build Coastguard Worker# Quoting is to prevent editors from complaining about space-tab. 45*6a54128fSAndroid Build Coastguard Workeras_nl=' 46*6a54128fSAndroid Build Coastguard Worker' 47*6a54128fSAndroid Build Coastguard Workerexport as_nl 48*6a54128fSAndroid Build Coastguard WorkerIFS=" "" $as_nl" 49*6a54128fSAndroid Build Coastguard Worker 50*6a54128fSAndroid Build Coastguard WorkerPS1='$ ' 51*6a54128fSAndroid Build Coastguard WorkerPS2='> ' 52*6a54128fSAndroid Build Coastguard WorkerPS4='+ ' 53*6a54128fSAndroid Build Coastguard Worker 54*6a54128fSAndroid Build Coastguard Worker# Ensure predictable behavior from utilities with locale-dependent output. 55*6a54128fSAndroid Build Coastguard WorkerLC_ALL=C 56*6a54128fSAndroid Build Coastguard Workerexport LC_ALL 57*6a54128fSAndroid Build Coastguard WorkerLANGUAGE=C 58*6a54128fSAndroid Build Coastguard Workerexport LANGUAGE 59*6a54128fSAndroid Build Coastguard Worker 60*6a54128fSAndroid Build Coastguard Worker# We cannot yet rely on "unset" to work, but we need these variables 61*6a54128fSAndroid Build Coastguard Worker# to be unset--not just set to an empty or harmless value--now, to 62*6a54128fSAndroid Build Coastguard Worker# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 63*6a54128fSAndroid Build Coastguard Worker# also avoids known problems related to "unset" and subshell syntax 64*6a54128fSAndroid Build Coastguard Worker# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 65*6a54128fSAndroid Build Coastguard Workerfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 66*6a54128fSAndroid Build Coastguard Workerdo eval test \${$as_var+y} \ 67*6a54128fSAndroid Build Coastguard Worker && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 68*6a54128fSAndroid Build Coastguard Workerdone 69*6a54128fSAndroid Build Coastguard Worker 70*6a54128fSAndroid Build Coastguard Worker# Ensure that fds 0, 1, and 2 are open. 71*6a54128fSAndroid Build Coastguard Workerif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 72*6a54128fSAndroid Build Coastguard Workerif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 73*6a54128fSAndroid Build Coastguard Workerif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 74*6a54128fSAndroid Build Coastguard Worker 75*6a54128fSAndroid Build Coastguard Worker# The user is always right. 76*6a54128fSAndroid Build Coastguard Workerif ${PATH_SEPARATOR+false} :; then 77*6a54128fSAndroid Build Coastguard Worker PATH_SEPARATOR=: 78*6a54128fSAndroid Build Coastguard Worker (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79*6a54128fSAndroid Build Coastguard Worker (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80*6a54128fSAndroid Build Coastguard Worker PATH_SEPARATOR=';' 81*6a54128fSAndroid Build Coastguard Worker } 82*6a54128fSAndroid Build Coastguard Workerfi 83*6a54128fSAndroid Build Coastguard Worker 84*6a54128fSAndroid Build Coastguard Worker 85*6a54128fSAndroid Build Coastguard Worker# Find who we are. Look in the path if we contain no directory separator. 86*6a54128fSAndroid Build Coastguard Workeras_myself= 87*6a54128fSAndroid Build Coastguard Workercase $0 in #(( 88*6a54128fSAndroid Build Coastguard Worker *[\\/]* ) as_myself=$0 ;; 89*6a54128fSAndroid Build Coastguard Worker *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 90*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 91*6a54128fSAndroid Build Coastguard Workerdo 92*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 93*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 94*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 95*6a54128fSAndroid Build Coastguard Worker */) ;; 96*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 97*6a54128fSAndroid Build Coastguard Worker esac 98*6a54128fSAndroid Build Coastguard Worker test -r "$as_dir$0" && as_myself=$as_dir$0 && break 99*6a54128fSAndroid Build Coastguard Worker done 100*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 101*6a54128fSAndroid Build Coastguard Worker 102*6a54128fSAndroid Build Coastguard Worker ;; 103*6a54128fSAndroid Build Coastguard Workeresac 104*6a54128fSAndroid Build Coastguard Worker# We did not find ourselves, most probably we were run as `sh COMMAND' 105*6a54128fSAndroid Build Coastguard Worker# in which case we are not to be found in the path. 106*6a54128fSAndroid Build Coastguard Workerif test "x$as_myself" = x; then 107*6a54128fSAndroid Build Coastguard Worker as_myself=$0 108*6a54128fSAndroid Build Coastguard Workerfi 109*6a54128fSAndroid Build Coastguard Workerif test ! -f "$as_myself"; then 110*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111*6a54128fSAndroid Build Coastguard Worker exit 1 112*6a54128fSAndroid Build Coastguard Workerfi 113*6a54128fSAndroid Build Coastguard Worker 114*6a54128fSAndroid Build Coastguard Worker 115*6a54128fSAndroid Build Coastguard Worker# Use a proper internal environment variable to ensure we don't fall 116*6a54128fSAndroid Build Coastguard Worker # into an infinite loop, continuously re-executing ourselves. 117*6a54128fSAndroid Build Coastguard Worker if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 118*6a54128fSAndroid Build Coastguard Worker _as_can_reexec=no; export _as_can_reexec; 119*6a54128fSAndroid Build Coastguard Worker # We cannot yet assume a decent shell, so we have to provide a 120*6a54128fSAndroid Build Coastguard Worker# neutralization value for shells without unset; and this also 121*6a54128fSAndroid Build Coastguard Worker# works around shells that cannot unset nonexistent variables. 122*6a54128fSAndroid Build Coastguard Worker# Preserve -v and -x to the replacement shell. 123*6a54128fSAndroid Build Coastguard WorkerBASH_ENV=/dev/null 124*6a54128fSAndroid Build Coastguard WorkerENV=/dev/null 125*6a54128fSAndroid Build Coastguard Worker(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 126*6a54128fSAndroid Build Coastguard Workercase $- in # (((( 127*6a54128fSAndroid Build Coastguard Worker *v*x* | *x*v* ) as_opts=-vx ;; 128*6a54128fSAndroid Build Coastguard Worker *v* ) as_opts=-v ;; 129*6a54128fSAndroid Build Coastguard Worker *x* ) as_opts=-x ;; 130*6a54128fSAndroid Build Coastguard Worker * ) as_opts= ;; 131*6a54128fSAndroid Build Coastguard Workeresac 132*6a54128fSAndroid Build Coastguard Workerexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 133*6a54128fSAndroid Build Coastguard Worker# Admittedly, this is quite paranoid, since all the known shells bail 134*6a54128fSAndroid Build Coastguard Worker# out after a failed `exec'. 135*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 136*6a54128fSAndroid Build Coastguard Workerexit 255 137*6a54128fSAndroid Build Coastguard Worker fi 138*6a54128fSAndroid Build Coastguard Worker # We don't want this to propagate to other subprocesses. 139*6a54128fSAndroid Build Coastguard Worker { _as_can_reexec=; unset _as_can_reexec;} 140*6a54128fSAndroid Build Coastguard Workerif test "x$CONFIG_SHELL" = x; then 141*6a54128fSAndroid Build Coastguard Worker as_bourne_compatible="as_nop=: 142*6a54128fSAndroid Build Coastguard Workerif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 143*6a54128fSAndroid Build Coastguard Workerthen : 144*6a54128fSAndroid Build Coastguard Worker emulate sh 145*6a54128fSAndroid Build Coastguard Worker NULLCMD=: 146*6a54128fSAndroid Build Coastguard Worker # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 147*6a54128fSAndroid Build Coastguard Worker # is contrary to our usage. Disable this feature. 148*6a54128fSAndroid Build Coastguard Worker alias -g '\${1+\"\$@\"}'='\"\$@\"' 149*6a54128fSAndroid Build Coastguard Worker setopt NO_GLOB_SUBST 150*6a54128fSAndroid Build Coastguard Workerelse \$as_nop 151*6a54128fSAndroid Build Coastguard Worker case \`(set -o) 2>/dev/null\` in #( 152*6a54128fSAndroid Build Coastguard Worker *posix*) : 153*6a54128fSAndroid Build Coastguard Worker set -o posix ;; #( 154*6a54128fSAndroid Build Coastguard Worker *) : 155*6a54128fSAndroid Build Coastguard Worker ;; 156*6a54128fSAndroid Build Coastguard Workeresac 157*6a54128fSAndroid Build Coastguard Workerfi 158*6a54128fSAndroid Build Coastguard Worker" 159*6a54128fSAndroid Build Coastguard Worker as_required="as_fn_return () { (exit \$1); } 160*6a54128fSAndroid Build Coastguard Workeras_fn_success () { as_fn_return 0; } 161*6a54128fSAndroid Build Coastguard Workeras_fn_failure () { as_fn_return 1; } 162*6a54128fSAndroid Build Coastguard Workeras_fn_ret_success () { return 0; } 163*6a54128fSAndroid Build Coastguard Workeras_fn_ret_failure () { return 1; } 164*6a54128fSAndroid Build Coastguard Worker 165*6a54128fSAndroid Build Coastguard Workerexitcode=0 166*6a54128fSAndroid Build Coastguard Workeras_fn_success || { exitcode=1; echo as_fn_success failed.; } 167*6a54128fSAndroid Build Coastguard Workeras_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 168*6a54128fSAndroid Build Coastguard Workeras_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 169*6a54128fSAndroid Build Coastguard Workeras_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 170*6a54128fSAndroid Build Coastguard Workerif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 171*6a54128fSAndroid Build Coastguard Workerthen : 172*6a54128fSAndroid Build Coastguard Worker 173*6a54128fSAndroid Build Coastguard Workerelse \$as_nop 174*6a54128fSAndroid Build Coastguard Worker exitcode=1; echo positional parameters were not saved. 175*6a54128fSAndroid Build Coastguard Workerfi 176*6a54128fSAndroid Build Coastguard Workertest x\$exitcode = x0 || exit 1 177*6a54128fSAndroid Build Coastguard Workerblah=\$(echo \$(echo blah)) 178*6a54128fSAndroid Build Coastguard Workertest x\"\$blah\" = xblah || exit 1 179*6a54128fSAndroid Build Coastguard Workertest -x / || exit 1" 180*6a54128fSAndroid Build Coastguard Worker as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 181*6a54128fSAndroid Build Coastguard Worker as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 182*6a54128fSAndroid Build Coastguard Worker eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 183*6a54128fSAndroid Build Coastguard Worker test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 184*6a54128fSAndroid Build Coastguard Workertest \$(( 1 + 1 )) = 2 || exit 1" 185*6a54128fSAndroid Build Coastguard Worker if (eval "$as_required") 2>/dev/null 186*6a54128fSAndroid Build Coastguard Workerthen : 187*6a54128fSAndroid Build Coastguard Worker as_have_required=yes 188*6a54128fSAndroid Build Coastguard Workerelse $as_nop 189*6a54128fSAndroid Build Coastguard Worker as_have_required=no 190*6a54128fSAndroid Build Coastguard Workerfi 191*6a54128fSAndroid Build Coastguard Worker if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 192*6a54128fSAndroid Build Coastguard Workerthen : 193*6a54128fSAndroid Build Coastguard Worker 194*6a54128fSAndroid Build Coastguard Workerelse $as_nop 195*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 196*6a54128fSAndroid Build Coastguard Workeras_found=false 197*6a54128fSAndroid Build Coastguard Workerfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 198*6a54128fSAndroid Build Coastguard Workerdo 199*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 200*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 201*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 202*6a54128fSAndroid Build Coastguard Worker */) ;; 203*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 204*6a54128fSAndroid Build Coastguard Worker esac 205*6a54128fSAndroid Build Coastguard Worker as_found=: 206*6a54128fSAndroid Build Coastguard Worker case $as_dir in #( 207*6a54128fSAndroid Build Coastguard Worker /*) 208*6a54128fSAndroid Build Coastguard Worker for as_base in sh bash ksh sh5; do 209*6a54128fSAndroid Build Coastguard Worker # Try only shells that exist, to save several forks. 210*6a54128fSAndroid Build Coastguard Worker as_shell=$as_dir$as_base 211*6a54128fSAndroid Build Coastguard Worker if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 212*6a54128fSAndroid Build Coastguard Worker as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 213*6a54128fSAndroid Build Coastguard Workerthen : 214*6a54128fSAndroid Build Coastguard Worker CONFIG_SHELL=$as_shell as_have_required=yes 215*6a54128fSAndroid Build Coastguard Worker if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 216*6a54128fSAndroid Build Coastguard Workerthen : 217*6a54128fSAndroid Build Coastguard Worker break 2 218*6a54128fSAndroid Build Coastguard Workerfi 219*6a54128fSAndroid Build Coastguard Workerfi 220*6a54128fSAndroid Build Coastguard Worker done;; 221*6a54128fSAndroid Build Coastguard Worker esac 222*6a54128fSAndroid Build Coastguard Worker as_found=false 223*6a54128fSAndroid Build Coastguard Workerdone 224*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 225*6a54128fSAndroid Build Coastguard Workerif $as_found 226*6a54128fSAndroid Build Coastguard Workerthen : 227*6a54128fSAndroid Build Coastguard Worker 228*6a54128fSAndroid Build Coastguard Workerelse $as_nop 229*6a54128fSAndroid Build Coastguard Worker if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 230*6a54128fSAndroid Build Coastguard Worker as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 231*6a54128fSAndroid Build Coastguard Workerthen : 232*6a54128fSAndroid Build Coastguard Worker CONFIG_SHELL=$SHELL as_have_required=yes 233*6a54128fSAndroid Build Coastguard Workerfi 234*6a54128fSAndroid Build Coastguard Workerfi 235*6a54128fSAndroid Build Coastguard Worker 236*6a54128fSAndroid Build Coastguard Worker 237*6a54128fSAndroid Build Coastguard Worker if test "x$CONFIG_SHELL" != x 238*6a54128fSAndroid Build Coastguard Workerthen : 239*6a54128fSAndroid Build Coastguard Worker export CONFIG_SHELL 240*6a54128fSAndroid Build Coastguard Worker # We cannot yet assume a decent shell, so we have to provide a 241*6a54128fSAndroid Build Coastguard Worker# neutralization value for shells without unset; and this also 242*6a54128fSAndroid Build Coastguard Worker# works around shells that cannot unset nonexistent variables. 243*6a54128fSAndroid Build Coastguard Worker# Preserve -v and -x to the replacement shell. 244*6a54128fSAndroid Build Coastguard WorkerBASH_ENV=/dev/null 245*6a54128fSAndroid Build Coastguard WorkerENV=/dev/null 246*6a54128fSAndroid Build Coastguard Worker(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247*6a54128fSAndroid Build Coastguard Workercase $- in # (((( 248*6a54128fSAndroid Build Coastguard Worker *v*x* | *x*v* ) as_opts=-vx ;; 249*6a54128fSAndroid Build Coastguard Worker *v* ) as_opts=-v ;; 250*6a54128fSAndroid Build Coastguard Worker *x* ) as_opts=-x ;; 251*6a54128fSAndroid Build Coastguard Worker * ) as_opts= ;; 252*6a54128fSAndroid Build Coastguard Workeresac 253*6a54128fSAndroid Build Coastguard Workerexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254*6a54128fSAndroid Build Coastguard Worker# Admittedly, this is quite paranoid, since all the known shells bail 255*6a54128fSAndroid Build Coastguard Worker# out after a failed `exec'. 256*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 257*6a54128fSAndroid Build Coastguard Workerexit 255 258*6a54128fSAndroid Build Coastguard Workerfi 259*6a54128fSAndroid Build Coastguard Worker 260*6a54128fSAndroid Build Coastguard Worker if test x$as_have_required = xno 261*6a54128fSAndroid Build Coastguard Workerthen : 262*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$0: This script requires a shell more modern than all" 263*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$0: the shells that I found on your system." 264*6a54128fSAndroid Build Coastguard Worker if test ${ZSH_VERSION+y} ; then 265*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 266*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 267*6a54128fSAndroid Build Coastguard Worker else 268*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$0: Please tell [email protected] about your system, 269*6a54128fSAndroid Build Coastguard Worker$0: including any error possibly output before this 270*6a54128fSAndroid Build Coastguard Worker$0: message. Then install a modern shell, or manually run 271*6a54128fSAndroid Build Coastguard Worker$0: the script under such a shell if you do have one." 272*6a54128fSAndroid Build Coastguard Worker fi 273*6a54128fSAndroid Build Coastguard Worker exit 1 274*6a54128fSAndroid Build Coastguard Workerfi 275*6a54128fSAndroid Build Coastguard Workerfi 276*6a54128fSAndroid Build Coastguard Workerfi 277*6a54128fSAndroid Build Coastguard WorkerSHELL=${CONFIG_SHELL-/bin/sh} 278*6a54128fSAndroid Build Coastguard Workerexport SHELL 279*6a54128fSAndroid Build Coastguard Worker# Unset more variables known to interfere with behavior of common tools. 280*6a54128fSAndroid Build Coastguard WorkerCLICOLOR_FORCE= GREP_OPTIONS= 281*6a54128fSAndroid Build Coastguard Workerunset CLICOLOR_FORCE GREP_OPTIONS 282*6a54128fSAndroid Build Coastguard Worker 283*6a54128fSAndroid Build Coastguard Worker## --------------------- ## 284*6a54128fSAndroid Build Coastguard Worker## M4sh Shell Functions. ## 285*6a54128fSAndroid Build Coastguard Worker## --------------------- ## 286*6a54128fSAndroid Build Coastguard Worker# as_fn_unset VAR 287*6a54128fSAndroid Build Coastguard Worker# --------------- 288*6a54128fSAndroid Build Coastguard Worker# Portably unset VAR. 289*6a54128fSAndroid Build Coastguard Workeras_fn_unset () 290*6a54128fSAndroid Build Coastguard Worker{ 291*6a54128fSAndroid Build Coastguard Worker { eval $1=; unset $1;} 292*6a54128fSAndroid Build Coastguard Worker} 293*6a54128fSAndroid Build Coastguard Workeras_unset=as_fn_unset 294*6a54128fSAndroid Build Coastguard Worker 295*6a54128fSAndroid Build Coastguard Worker 296*6a54128fSAndroid Build Coastguard Worker# as_fn_set_status STATUS 297*6a54128fSAndroid Build Coastguard Worker# ----------------------- 298*6a54128fSAndroid Build Coastguard Worker# Set $? to STATUS, without forking. 299*6a54128fSAndroid Build Coastguard Workeras_fn_set_status () 300*6a54128fSAndroid Build Coastguard Worker{ 301*6a54128fSAndroid Build Coastguard Worker return $1 302*6a54128fSAndroid Build Coastguard Worker} # as_fn_set_status 303*6a54128fSAndroid Build Coastguard Worker 304*6a54128fSAndroid Build Coastguard Worker# as_fn_exit STATUS 305*6a54128fSAndroid Build Coastguard Worker# ----------------- 306*6a54128fSAndroid Build Coastguard Worker# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 307*6a54128fSAndroid Build Coastguard Workeras_fn_exit () 308*6a54128fSAndroid Build Coastguard Worker{ 309*6a54128fSAndroid Build Coastguard Worker set +e 310*6a54128fSAndroid Build Coastguard Worker as_fn_set_status $1 311*6a54128fSAndroid Build Coastguard Worker exit $1 312*6a54128fSAndroid Build Coastguard Worker} # as_fn_exit 313*6a54128fSAndroid Build Coastguard Worker# as_fn_nop 314*6a54128fSAndroid Build Coastguard Worker# --------- 315*6a54128fSAndroid Build Coastguard Worker# Do nothing but, unlike ":", preserve the value of $?. 316*6a54128fSAndroid Build Coastguard Workeras_fn_nop () 317*6a54128fSAndroid Build Coastguard Worker{ 318*6a54128fSAndroid Build Coastguard Worker return $? 319*6a54128fSAndroid Build Coastguard Worker} 320*6a54128fSAndroid Build Coastguard Workeras_nop=as_fn_nop 321*6a54128fSAndroid Build Coastguard Worker 322*6a54128fSAndroid Build Coastguard Worker# as_fn_mkdir_p 323*6a54128fSAndroid Build Coastguard Worker# ------------- 324*6a54128fSAndroid Build Coastguard Worker# Create "$as_dir" as a directory, including parents if necessary. 325*6a54128fSAndroid Build Coastguard Workeras_fn_mkdir_p () 326*6a54128fSAndroid Build Coastguard Worker{ 327*6a54128fSAndroid Build Coastguard Worker 328*6a54128fSAndroid Build Coastguard Worker case $as_dir in #( 329*6a54128fSAndroid Build Coastguard Worker -*) as_dir=./$as_dir;; 330*6a54128fSAndroid Build Coastguard Worker esac 331*6a54128fSAndroid Build Coastguard Worker test -d "$as_dir" || eval $as_mkdir_p || { 332*6a54128fSAndroid Build Coastguard Worker as_dirs= 333*6a54128fSAndroid Build Coastguard Worker while :; do 334*6a54128fSAndroid Build Coastguard Worker case $as_dir in #( 335*6a54128fSAndroid Build Coastguard Worker *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336*6a54128fSAndroid Build Coastguard Worker *) as_qdir=$as_dir;; 337*6a54128fSAndroid Build Coastguard Worker esac 338*6a54128fSAndroid Build Coastguard Worker as_dirs="'$as_qdir' $as_dirs" 339*6a54128fSAndroid Build Coastguard Worker as_dir=`$as_dirname -- "$as_dir" || 340*6a54128fSAndroid Build Coastguard Worker$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341*6a54128fSAndroid Build Coastguard Worker X"$as_dir" : 'X\(//\)[^/]' \| \ 342*6a54128fSAndroid Build Coastguard Worker X"$as_dir" : 'X\(//\)$' \| \ 343*6a54128fSAndroid Build Coastguard Worker X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" X"$as_dir" | 345*6a54128fSAndroid Build Coastguard Worker sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346*6a54128fSAndroid Build Coastguard Worker s//\1/ 347*6a54128fSAndroid Build Coastguard Worker q 348*6a54128fSAndroid Build Coastguard Worker } 349*6a54128fSAndroid Build Coastguard Worker /^X\(\/\/\)[^/].*/{ 350*6a54128fSAndroid Build Coastguard Worker s//\1/ 351*6a54128fSAndroid Build Coastguard Worker q 352*6a54128fSAndroid Build Coastguard Worker } 353*6a54128fSAndroid Build Coastguard Worker /^X\(\/\/\)$/{ 354*6a54128fSAndroid Build Coastguard Worker s//\1/ 355*6a54128fSAndroid Build Coastguard Worker q 356*6a54128fSAndroid Build Coastguard Worker } 357*6a54128fSAndroid Build Coastguard Worker /^X\(\/\).*/{ 358*6a54128fSAndroid Build Coastguard Worker s//\1/ 359*6a54128fSAndroid Build Coastguard Worker q 360*6a54128fSAndroid Build Coastguard Worker } 361*6a54128fSAndroid Build Coastguard Worker s/.*/./; q'` 362*6a54128fSAndroid Build Coastguard Worker test -d "$as_dir" && break 363*6a54128fSAndroid Build Coastguard Worker done 364*6a54128fSAndroid Build Coastguard Worker test -z "$as_dirs" || eval "mkdir $as_dirs" 365*6a54128fSAndroid Build Coastguard Worker } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366*6a54128fSAndroid Build Coastguard Worker 367*6a54128fSAndroid Build Coastguard Worker 368*6a54128fSAndroid Build Coastguard Worker} # as_fn_mkdir_p 369*6a54128fSAndroid Build Coastguard Worker 370*6a54128fSAndroid Build Coastguard Worker# as_fn_executable_p FILE 371*6a54128fSAndroid Build Coastguard Worker# ----------------------- 372*6a54128fSAndroid Build Coastguard Worker# Test if FILE is an executable regular file. 373*6a54128fSAndroid Build Coastguard Workeras_fn_executable_p () 374*6a54128fSAndroid Build Coastguard Worker{ 375*6a54128fSAndroid Build Coastguard Worker test -f "$1" && test -x "$1" 376*6a54128fSAndroid Build Coastguard Worker} # as_fn_executable_p 377*6a54128fSAndroid Build Coastguard Worker# as_fn_append VAR VALUE 378*6a54128fSAndroid Build Coastguard Worker# ---------------------- 379*6a54128fSAndroid Build Coastguard Worker# Append the text in VALUE to the end of the definition contained in VAR. Take 380*6a54128fSAndroid Build Coastguard Worker# advantage of any shell optimizations that allow amortized linear growth over 381*6a54128fSAndroid Build Coastguard Worker# repeated appends, instead of the typical quadratic growth present in naive 382*6a54128fSAndroid Build Coastguard Worker# implementations. 383*6a54128fSAndroid Build Coastguard Workerif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384*6a54128fSAndroid Build Coastguard Workerthen : 385*6a54128fSAndroid Build Coastguard Worker eval 'as_fn_append () 386*6a54128fSAndroid Build Coastguard Worker { 387*6a54128fSAndroid Build Coastguard Worker eval $1+=\$2 388*6a54128fSAndroid Build Coastguard Worker }' 389*6a54128fSAndroid Build Coastguard Workerelse $as_nop 390*6a54128fSAndroid Build Coastguard Worker as_fn_append () 391*6a54128fSAndroid Build Coastguard Worker { 392*6a54128fSAndroid Build Coastguard Worker eval $1=\$$1\$2 393*6a54128fSAndroid Build Coastguard Worker } 394*6a54128fSAndroid Build Coastguard Workerfi # as_fn_append 395*6a54128fSAndroid Build Coastguard Worker 396*6a54128fSAndroid Build Coastguard Worker# as_fn_arith ARG... 397*6a54128fSAndroid Build Coastguard Worker# ------------------ 398*6a54128fSAndroid Build Coastguard Worker# Perform arithmetic evaluation on the ARGs, and store the result in the 399*6a54128fSAndroid Build Coastguard Worker# global $as_val. Take advantage of shells that can avoid forks. The arguments 400*6a54128fSAndroid Build Coastguard Worker# must be portable across $(()) and expr. 401*6a54128fSAndroid Build Coastguard Workerif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 402*6a54128fSAndroid Build Coastguard Workerthen : 403*6a54128fSAndroid Build Coastguard Worker eval 'as_fn_arith () 404*6a54128fSAndroid Build Coastguard Worker { 405*6a54128fSAndroid Build Coastguard Worker as_val=$(( $* )) 406*6a54128fSAndroid Build Coastguard Worker }' 407*6a54128fSAndroid Build Coastguard Workerelse $as_nop 408*6a54128fSAndroid Build Coastguard Worker as_fn_arith () 409*6a54128fSAndroid Build Coastguard Worker { 410*6a54128fSAndroid Build Coastguard Worker as_val=`expr "$@" || test $? -eq 1` 411*6a54128fSAndroid Build Coastguard Worker } 412*6a54128fSAndroid Build Coastguard Workerfi # as_fn_arith 413*6a54128fSAndroid Build Coastguard Worker 414*6a54128fSAndroid Build Coastguard Worker# as_fn_nop 415*6a54128fSAndroid Build Coastguard Worker# --------- 416*6a54128fSAndroid Build Coastguard Worker# Do nothing but, unlike ":", preserve the value of $?. 417*6a54128fSAndroid Build Coastguard Workeras_fn_nop () 418*6a54128fSAndroid Build Coastguard Worker{ 419*6a54128fSAndroid Build Coastguard Worker return $? 420*6a54128fSAndroid Build Coastguard Worker} 421*6a54128fSAndroid Build Coastguard Workeras_nop=as_fn_nop 422*6a54128fSAndroid Build Coastguard Worker 423*6a54128fSAndroid Build Coastguard Worker# as_fn_error STATUS ERROR [LINENO LOG_FD] 424*6a54128fSAndroid Build Coastguard Worker# ---------------------------------------- 425*6a54128fSAndroid Build Coastguard Worker# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 426*6a54128fSAndroid Build Coastguard Worker# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 427*6a54128fSAndroid Build Coastguard Worker# script with STATUS, using 1 if that was 0. 428*6a54128fSAndroid Build Coastguard Workeras_fn_error () 429*6a54128fSAndroid Build Coastguard Worker{ 430*6a54128fSAndroid Build Coastguard Worker as_status=$1; test $as_status -eq 0 && as_status=1 431*6a54128fSAndroid Build Coastguard Worker if test "$4"; then 432*6a54128fSAndroid Build Coastguard Worker as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 433*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 434*6a54128fSAndroid Build Coastguard Worker fi 435*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me: error: $2" >&2 436*6a54128fSAndroid Build Coastguard Worker as_fn_exit $as_status 437*6a54128fSAndroid Build Coastguard Worker} # as_fn_error 438*6a54128fSAndroid Build Coastguard Worker 439*6a54128fSAndroid Build Coastguard Workerif expr a : '\(a\)' >/dev/null 2>&1 && 440*6a54128fSAndroid Build Coastguard Worker test "X`expr 00001 : '.*\(...\)'`" = X001; then 441*6a54128fSAndroid Build Coastguard Worker as_expr=expr 442*6a54128fSAndroid Build Coastguard Workerelse 443*6a54128fSAndroid Build Coastguard Worker as_expr=false 444*6a54128fSAndroid Build Coastguard Workerfi 445*6a54128fSAndroid Build Coastguard Worker 446*6a54128fSAndroid Build Coastguard Workerif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 447*6a54128fSAndroid Build Coastguard Worker as_basename=basename 448*6a54128fSAndroid Build Coastguard Workerelse 449*6a54128fSAndroid Build Coastguard Worker as_basename=false 450*6a54128fSAndroid Build Coastguard Workerfi 451*6a54128fSAndroid Build Coastguard Worker 452*6a54128fSAndroid Build Coastguard Workerif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 453*6a54128fSAndroid Build Coastguard Worker as_dirname=dirname 454*6a54128fSAndroid Build Coastguard Workerelse 455*6a54128fSAndroid Build Coastguard Worker as_dirname=false 456*6a54128fSAndroid Build Coastguard Workerfi 457*6a54128fSAndroid Build Coastguard Worker 458*6a54128fSAndroid Build Coastguard Workeras_me=`$as_basename -- "$0" || 459*6a54128fSAndroid Build Coastguard Worker$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 460*6a54128fSAndroid Build Coastguard Worker X"$0" : 'X\(//\)$' \| \ 461*6a54128fSAndroid Build Coastguard Worker X"$0" : 'X\(/\)' \| . 2>/dev/null || 462*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" X/"$0" | 463*6a54128fSAndroid Build Coastguard Worker sed '/^.*\/\([^/][^/]*\)\/*$/{ 464*6a54128fSAndroid Build Coastguard Worker s//\1/ 465*6a54128fSAndroid Build Coastguard Worker q 466*6a54128fSAndroid Build Coastguard Worker } 467*6a54128fSAndroid Build Coastguard Worker /^X\/\(\/\/\)$/{ 468*6a54128fSAndroid Build Coastguard Worker s//\1/ 469*6a54128fSAndroid Build Coastguard Worker q 470*6a54128fSAndroid Build Coastguard Worker } 471*6a54128fSAndroid Build Coastguard Worker /^X\/\(\/\).*/{ 472*6a54128fSAndroid Build Coastguard Worker s//\1/ 473*6a54128fSAndroid Build Coastguard Worker q 474*6a54128fSAndroid Build Coastguard Worker } 475*6a54128fSAndroid Build Coastguard Worker s/.*/./; q'` 476*6a54128fSAndroid Build Coastguard Worker 477*6a54128fSAndroid Build Coastguard Worker# Avoid depending upon Character Ranges. 478*6a54128fSAndroid Build Coastguard Workeras_cr_letters='abcdefghijklmnopqrstuvwxyz' 479*6a54128fSAndroid Build Coastguard Workeras_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 480*6a54128fSAndroid Build Coastguard Workeras_cr_Letters=$as_cr_letters$as_cr_LETTERS 481*6a54128fSAndroid Build Coastguard Workeras_cr_digits='0123456789' 482*6a54128fSAndroid Build Coastguard Workeras_cr_alnum=$as_cr_Letters$as_cr_digits 483*6a54128fSAndroid Build Coastguard Worker 484*6a54128fSAndroid Build Coastguard Worker 485*6a54128fSAndroid Build Coastguard Worker as_lineno_1=$LINENO as_lineno_1a=$LINENO 486*6a54128fSAndroid Build Coastguard Worker as_lineno_2=$LINENO as_lineno_2a=$LINENO 487*6a54128fSAndroid Build Coastguard Worker eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 488*6a54128fSAndroid Build Coastguard Worker test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 489*6a54128fSAndroid Build Coastguard Worker # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 490*6a54128fSAndroid Build Coastguard Worker sed -n ' 491*6a54128fSAndroid Build Coastguard Worker p 492*6a54128fSAndroid Build Coastguard Worker /[$]LINENO/= 493*6a54128fSAndroid Build Coastguard Worker ' <$as_myself | 494*6a54128fSAndroid Build Coastguard Worker sed ' 495*6a54128fSAndroid Build Coastguard Worker s/[$]LINENO.*/&-/ 496*6a54128fSAndroid Build Coastguard Worker t lineno 497*6a54128fSAndroid Build Coastguard Worker b 498*6a54128fSAndroid Build Coastguard Worker :lineno 499*6a54128fSAndroid Build Coastguard Worker N 500*6a54128fSAndroid Build Coastguard Worker :loop 501*6a54128fSAndroid Build Coastguard Worker s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 502*6a54128fSAndroid Build Coastguard Worker t loop 503*6a54128fSAndroid Build Coastguard Worker s/-\n.*// 504*6a54128fSAndroid Build Coastguard Worker ' >$as_me.lineno && 505*6a54128fSAndroid Build Coastguard Worker chmod +x "$as_me.lineno" || 506*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 507*6a54128fSAndroid Build Coastguard Worker 508*6a54128fSAndroid Build Coastguard Worker # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 509*6a54128fSAndroid Build Coastguard Worker # already done that, so ensure we don't try to do so again and fall 510*6a54128fSAndroid Build Coastguard Worker # in an infinite loop. This has already happened in practice. 511*6a54128fSAndroid Build Coastguard Worker _as_can_reexec=no; export _as_can_reexec 512*6a54128fSAndroid Build Coastguard Worker # Don't try to exec as it changes $[0], causing all sort of problems 513*6a54128fSAndroid Build Coastguard Worker # (the dirname of $[0] is not the place where we might find the 514*6a54128fSAndroid Build Coastguard Worker # original and so on. Autoconf is especially sensitive to this). 515*6a54128fSAndroid Build Coastguard Worker . "./$as_me.lineno" 516*6a54128fSAndroid Build Coastguard Worker # Exit status is that of the last command. 517*6a54128fSAndroid Build Coastguard Worker exit 518*6a54128fSAndroid Build Coastguard Worker} 519*6a54128fSAndroid Build Coastguard Worker 520*6a54128fSAndroid Build Coastguard Worker 521*6a54128fSAndroid Build Coastguard Worker# Determine whether it's possible to make 'echo' print without a newline. 522*6a54128fSAndroid Build Coastguard Worker# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 523*6a54128fSAndroid Build Coastguard Worker# for compatibility with existing Makefiles. 524*6a54128fSAndroid Build Coastguard WorkerECHO_C= ECHO_N= ECHO_T= 525*6a54128fSAndroid Build Coastguard Workercase `echo -n x` in #((((( 526*6a54128fSAndroid Build Coastguard Worker-n*) 527*6a54128fSAndroid Build Coastguard Worker case `echo 'xy\c'` in 528*6a54128fSAndroid Build Coastguard Worker *c*) ECHO_T=' ';; # ECHO_T is single tab character. 529*6a54128fSAndroid Build Coastguard Worker xy) ECHO_C='\c';; 530*6a54128fSAndroid Build Coastguard Worker *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 531*6a54128fSAndroid Build Coastguard Worker ECHO_T=' ';; 532*6a54128fSAndroid Build Coastguard Worker esac;; 533*6a54128fSAndroid Build Coastguard Worker*) 534*6a54128fSAndroid Build Coastguard Worker ECHO_N='-n';; 535*6a54128fSAndroid Build Coastguard Workeresac 536*6a54128fSAndroid Build Coastguard Worker 537*6a54128fSAndroid Build Coastguard Worker# For backward compatibility with old third-party macros, we provide 538*6a54128fSAndroid Build Coastguard Worker# the shell variables $as_echo and $as_echo_n. New code should use 539*6a54128fSAndroid Build Coastguard Worker# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 540*6a54128fSAndroid Build Coastguard Workeras_echo='printf %s\n' 541*6a54128fSAndroid Build Coastguard Workeras_echo_n='printf %s' 542*6a54128fSAndroid Build Coastguard Worker 543*6a54128fSAndroid Build Coastguard Worker 544*6a54128fSAndroid Build Coastguard Workerrm -f conf$$ conf$$.exe conf$$.file 545*6a54128fSAndroid Build Coastguard Workerif test -d conf$$.dir; then 546*6a54128fSAndroid Build Coastguard Worker rm -f conf$$.dir/conf$$.file 547*6a54128fSAndroid Build Coastguard Workerelse 548*6a54128fSAndroid Build Coastguard Worker rm -f conf$$.dir 549*6a54128fSAndroid Build Coastguard Worker mkdir conf$$.dir 2>/dev/null 550*6a54128fSAndroid Build Coastguard Workerfi 551*6a54128fSAndroid Build Coastguard Workerif (echo >conf$$.file) 2>/dev/null; then 552*6a54128fSAndroid Build Coastguard Worker if ln -s conf$$.file conf$$ 2>/dev/null; then 553*6a54128fSAndroid Build Coastguard Worker as_ln_s='ln -s' 554*6a54128fSAndroid Build Coastguard Worker # ... but there are two gotchas: 555*6a54128fSAndroid Build Coastguard Worker # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 556*6a54128fSAndroid Build Coastguard Worker # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 557*6a54128fSAndroid Build Coastguard Worker # In both cases, we have to default to `cp -pR'. 558*6a54128fSAndroid Build Coastguard Worker ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 559*6a54128fSAndroid Build Coastguard Worker as_ln_s='cp -pR' 560*6a54128fSAndroid Build Coastguard Worker elif ln conf$$.file conf$$ 2>/dev/null; then 561*6a54128fSAndroid Build Coastguard Worker as_ln_s=ln 562*6a54128fSAndroid Build Coastguard Worker else 563*6a54128fSAndroid Build Coastguard Worker as_ln_s='cp -pR' 564*6a54128fSAndroid Build Coastguard Worker fi 565*6a54128fSAndroid Build Coastguard Workerelse 566*6a54128fSAndroid Build Coastguard Worker as_ln_s='cp -pR' 567*6a54128fSAndroid Build Coastguard Workerfi 568*6a54128fSAndroid Build Coastguard Workerrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 569*6a54128fSAndroid Build Coastguard Workerrmdir conf$$.dir 2>/dev/null 570*6a54128fSAndroid Build Coastguard Worker 571*6a54128fSAndroid Build Coastguard Workerif mkdir -p . 2>/dev/null; then 572*6a54128fSAndroid Build Coastguard Worker as_mkdir_p='mkdir -p "$as_dir"' 573*6a54128fSAndroid Build Coastguard Workerelse 574*6a54128fSAndroid Build Coastguard Worker test -d ./-p && rmdir ./-p 575*6a54128fSAndroid Build Coastguard Worker as_mkdir_p=false 576*6a54128fSAndroid Build Coastguard Workerfi 577*6a54128fSAndroid Build Coastguard Worker 578*6a54128fSAndroid Build Coastguard Workeras_test_x='test -x' 579*6a54128fSAndroid Build Coastguard Workeras_executable_p=as_fn_executable_p 580*6a54128fSAndroid Build Coastguard Worker 581*6a54128fSAndroid Build Coastguard Worker# Sed expression to map a string onto a valid CPP name. 582*6a54128fSAndroid Build Coastguard Workeras_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 583*6a54128fSAndroid Build Coastguard Worker 584*6a54128fSAndroid Build Coastguard Worker# Sed expression to map a string onto a valid variable name. 585*6a54128fSAndroid Build Coastguard Workeras_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 586*6a54128fSAndroid Build Coastguard Worker 587*6a54128fSAndroid Build Coastguard Worker 588*6a54128fSAndroid Build Coastguard Workertest -n "$DJDIR" || exec 7<&0 </dev/null 589*6a54128fSAndroid Build Coastguard Workerexec 6>&1 590*6a54128fSAndroid Build Coastguard Worker 591*6a54128fSAndroid Build Coastguard Worker# Name of the host. 592*6a54128fSAndroid Build Coastguard Worker# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 593*6a54128fSAndroid Build Coastguard Worker# so uname gets run too. 594*6a54128fSAndroid Build Coastguard Workerac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 595*6a54128fSAndroid Build Coastguard Worker 596*6a54128fSAndroid Build Coastguard Worker# 597*6a54128fSAndroid Build Coastguard Worker# Initializations. 598*6a54128fSAndroid Build Coastguard Worker# 599*6a54128fSAndroid Build Coastguard Workerac_default_prefix=/usr/local 600*6a54128fSAndroid Build Coastguard Workerac_clean_files= 601*6a54128fSAndroid Build Coastguard Workerac_config_libobj_dir=. 602*6a54128fSAndroid Build Coastguard WorkerLIBOBJS= 603*6a54128fSAndroid Build Coastguard Workercross_compiling=no 604*6a54128fSAndroid Build Coastguard Workersubdirs= 605*6a54128fSAndroid Build Coastguard WorkerMFLAGS= 606*6a54128fSAndroid Build Coastguard WorkerMAKEFLAGS= 607*6a54128fSAndroid Build Coastguard Worker 608*6a54128fSAndroid Build Coastguard Worker# Identity of this package. 609*6a54128fSAndroid Build Coastguard WorkerPACKAGE_NAME='' 610*6a54128fSAndroid Build Coastguard WorkerPACKAGE_TARNAME='' 611*6a54128fSAndroid Build Coastguard WorkerPACKAGE_VERSION='' 612*6a54128fSAndroid Build Coastguard WorkerPACKAGE_STRING='' 613*6a54128fSAndroid Build Coastguard WorkerPACKAGE_BUGREPORT='' 614*6a54128fSAndroid Build Coastguard WorkerPACKAGE_URL='' 615*6a54128fSAndroid Build Coastguard Worker 616*6a54128fSAndroid Build Coastguard Workerac_unique_file="version.h" 617*6a54128fSAndroid Build Coastguard Worker# Factoring default headers for most tests. 618*6a54128fSAndroid Build Coastguard Workerac_includes_default="\ 619*6a54128fSAndroid Build Coastguard Worker#include <stddef.h> 620*6a54128fSAndroid Build Coastguard Worker#ifdef HAVE_STDIO_H 621*6a54128fSAndroid Build Coastguard Worker# include <stdio.h> 622*6a54128fSAndroid Build Coastguard Worker#endif 623*6a54128fSAndroid Build Coastguard Worker#ifdef HAVE_STDLIB_H 624*6a54128fSAndroid Build Coastguard Worker# include <stdlib.h> 625*6a54128fSAndroid Build Coastguard Worker#endif 626*6a54128fSAndroid Build Coastguard Worker#ifdef HAVE_STRING_H 627*6a54128fSAndroid Build Coastguard Worker# include <string.h> 628*6a54128fSAndroid Build Coastguard Worker#endif 629*6a54128fSAndroid Build Coastguard Worker#ifdef HAVE_INTTYPES_H 630*6a54128fSAndroid Build Coastguard Worker# include <inttypes.h> 631*6a54128fSAndroid Build Coastguard Worker#endif 632*6a54128fSAndroid Build Coastguard Worker#ifdef HAVE_STDINT_H 633*6a54128fSAndroid Build Coastguard Worker# include <stdint.h> 634*6a54128fSAndroid Build Coastguard Worker#endif 635*6a54128fSAndroid Build Coastguard Worker#ifdef HAVE_STRINGS_H 636*6a54128fSAndroid Build Coastguard Worker# include <strings.h> 637*6a54128fSAndroid Build Coastguard Worker#endif 638*6a54128fSAndroid Build Coastguard Worker#ifdef HAVE_SYS_TYPES_H 639*6a54128fSAndroid Build Coastguard Worker# include <sys/types.h> 640*6a54128fSAndroid Build Coastguard Worker#endif 641*6a54128fSAndroid Build Coastguard Worker#ifdef HAVE_SYS_STAT_H 642*6a54128fSAndroid Build Coastguard Worker# include <sys/stat.h> 643*6a54128fSAndroid Build Coastguard Worker#endif 644*6a54128fSAndroid Build Coastguard Worker#ifdef HAVE_UNISTD_H 645*6a54128fSAndroid Build Coastguard Worker# include <unistd.h> 646*6a54128fSAndroid Build Coastguard Worker#endif" 647*6a54128fSAndroid Build Coastguard Worker 648*6a54128fSAndroid Build Coastguard Workerac_header_c_list= 649*6a54128fSAndroid Build Coastguard Workergt_needs= 650*6a54128fSAndroid Build Coastguard Workerac_func_c_list= 651*6a54128fSAndroid Build Coastguard Workerac_subst_vars='LTLIBOBJS 652*6a54128fSAndroid Build Coastguard WorkerLIBOBJS 653*6a54128fSAndroid Build Coastguard WorkerOS_IO_FILE 654*6a54128fSAndroid Build Coastguard Workersystemd_system_unit_dir 655*6a54128fSAndroid Build Coastguard Workerhave_systemd 656*6a54128fSAndroid Build Coastguard Workersystemd_LIBS 657*6a54128fSAndroid Build Coastguard Workersystemd_CFLAGS 658*6a54128fSAndroid Build Coastguard Workercrond_dir 659*6a54128fSAndroid Build Coastguard Workerhave_crond 660*6a54128fSAndroid Build Coastguard Workerpkg_udev_rules_dir 661*6a54128fSAndroid Build Coastguard Workerhave_udev 662*6a54128fSAndroid Build Coastguard Workerudev_LIBS 663*6a54128fSAndroid Build Coastguard Workerudev_CFLAGS 664*6a54128fSAndroid Build Coastguard WorkerLDFLAGS_SHLIB 665*6a54128fSAndroid Build Coastguard WorkerCFLAGS_STLIB 666*6a54128fSAndroid Build Coastguard WorkerCFLAGS_SHLIB 667*6a54128fSAndroid Build Coastguard WorkerBUILD_LDFLAGS 668*6a54128fSAndroid Build Coastguard WorkerBUILD_CFLAGS 669*6a54128fSAndroid Build Coastguard WorkerINCLUDES 670*6a54128fSAndroid Build Coastguard WorkerDO_TEST_SUITE 671*6a54128fSAndroid Build Coastguard WorkerLDFLAGS_STATIC 672*6a54128fSAndroid Build Coastguard Workerroot_sysconfdir 673*6a54128fSAndroid Build Coastguard Workerroot_libdir 674*6a54128fSAndroid Build Coastguard Workerroot_sbindir 675*6a54128fSAndroid Build Coastguard Workerroot_bindir 676*6a54128fSAndroid Build Coastguard Workerroot_prefix 677*6a54128fSAndroid Build Coastguard WorkerE2SCRUB_CMT 678*6a54128fSAndroid Build Coastguard WorkerUNIX_CMT 679*6a54128fSAndroid Build Coastguard WorkerCYGWIN_CMT 680*6a54128fSAndroid Build Coastguard WorkerLINUX_CMT 681*6a54128fSAndroid Build Coastguard WorkerFUZZING_CMT 682*6a54128fSAndroid Build Coastguard Workerfuzzer_ldflags 683*6a54128fSAndroid Build Coastguard Workerfuzzer_cflags 684*6a54128fSAndroid Build Coastguard Workerhave_fuzzer 685*6a54128fSAndroid Build Coastguard Workerac_ct_CXX 686*6a54128fSAndroid Build Coastguard WorkerCXXFLAGS 687*6a54128fSAndroid Build Coastguard WorkerCXX 688*6a54128fSAndroid Build Coastguard Workerthreadsan_ldflags 689*6a54128fSAndroid Build Coastguard Workerthreadsan_cflags 690*6a54128fSAndroid Build Coastguard Workerhave_threadsan 691*6a54128fSAndroid Build Coastguard Workeraddrsan_ldflags 692*6a54128fSAndroid Build Coastguard Workeraddrsan_cflags 693*6a54128fSAndroid Build Coastguard Workerhave_addrsan 694*6a54128fSAndroid Build Coastguard Workerubsan_ldflags 695*6a54128fSAndroid Build Coastguard Workerubsan_cflags 696*6a54128fSAndroid Build Coastguard Workerhave_ubsan 697*6a54128fSAndroid Build Coastguard Workerlto_ldflags 698*6a54128fSAndroid Build Coastguard Workerlto_cflags 699*6a54128fSAndroid Build Coastguard Workerhave_lto 700*6a54128fSAndroid Build Coastguard Workergcc_ranlib 701*6a54128fSAndroid Build Coastguard Workergcc_ar 702*6a54128fSAndroid Build Coastguard WorkerUNI_DIFF_OPTS 703*6a54128fSAndroid Build Coastguard WorkerSEM_INIT_LIB 704*6a54128fSAndroid Build Coastguard WorkerFUSE_CMT 705*6a54128fSAndroid Build Coastguard WorkerFUSE_LIB 706*6a54128fSAndroid Build Coastguard WorkerCLOCK_GETTIME_LIB 707*6a54128fSAndroid Build Coastguard WorkerMAGIC_LIB 708*6a54128fSAndroid Build Coastguard WorkerSOCKET_LIB 709*6a54128fSAndroid Build Coastguard WorkerSIZEOF_TIME_T 710*6a54128fSAndroid Build Coastguard WorkerSIZEOF_OFF_T 711*6a54128fSAndroid Build Coastguard WorkerSIZEOF_LONG_LONG 712*6a54128fSAndroid Build Coastguard WorkerSIZEOF_LONG 713*6a54128fSAndroid Build Coastguard WorkerSIZEOF_INT 714*6a54128fSAndroid Build Coastguard WorkerSIZEOF_SHORT 715*6a54128fSAndroid Build Coastguard WorkerDD 716*6a54128fSAndroid Build Coastguard WorkerBUILD_CC 717*6a54128fSAndroid Build Coastguard WorkerMAKEINFO 718*6a54128fSAndroid Build Coastguard WorkerSTRIP 719*6a54128fSAndroid Build Coastguard WorkerRANLIB 720*6a54128fSAndroid Build Coastguard WorkerAR 721*6a54128fSAndroid Build Coastguard WorkerLDCONFIG 722*6a54128fSAndroid Build Coastguard WorkerPERL 723*6a54128fSAndroid Build Coastguard WorkerAWK 724*6a54128fSAndroid Build Coastguard WorkerCHMOD 725*6a54128fSAndroid Build Coastguard WorkerRM 726*6a54128fSAndroid Build Coastguard WorkerCP 727*6a54128fSAndroid Build Coastguard WorkerMV 728*6a54128fSAndroid Build Coastguard WorkerLN_S 729*6a54128fSAndroid Build Coastguard Workermkdir_p 730*6a54128fSAndroid Build Coastguard WorkerLN 731*6a54128fSAndroid Build Coastguard WorkerifNotGNUmake 732*6a54128fSAndroid Build Coastguard WorkerifGNUmake 733*6a54128fSAndroid Build Coastguard WorkerBINARY_TYPE 734*6a54128fSAndroid Build Coastguard WorkerPOSUB 735*6a54128fSAndroid Build Coastguard WorkerLTLIBINTL 736*6a54128fSAndroid Build Coastguard WorkerLIBINTL 737*6a54128fSAndroid Build Coastguard WorkerINTLLIBS 738*6a54128fSAndroid Build Coastguard WorkerLTLIBICONV 739*6a54128fSAndroid Build Coastguard WorkerLIBICONV 740*6a54128fSAndroid Build Coastguard WorkerINTL_MACOSX_LIBS 741*6a54128fSAndroid Build Coastguard WorkerXGETTEXT_EXTRA_OPTIONS 742*6a54128fSAndroid Build Coastguard WorkerMSGMERGE_FOR_MSGFMT_OPTION 743*6a54128fSAndroid Build Coastguard WorkerMSGMERGE 744*6a54128fSAndroid Build Coastguard WorkerXGETTEXT_015 745*6a54128fSAndroid Build Coastguard WorkerXGETTEXT 746*6a54128fSAndroid Build Coastguard WorkerGMSGFMT_015 747*6a54128fSAndroid Build Coastguard WorkerGMSGFMT 748*6a54128fSAndroid Build Coastguard WorkerMSGFMT 749*6a54128fSAndroid Build Coastguard WorkerGETTEXT_MACRO_VERSION 750*6a54128fSAndroid Build Coastguard WorkerUSE_NLS 751*6a54128fSAndroid Build Coastguard WorkerMKDIR_P 752*6a54128fSAndroid Build Coastguard WorkerINSTALL_DATA 753*6a54128fSAndroid Build Coastguard WorkerINSTALL_SCRIPT 754*6a54128fSAndroid Build Coastguard WorkerINSTALL_PROGRAM 755*6a54128fSAndroid Build Coastguard WorkerSET_MAKE 756*6a54128fSAndroid Build Coastguard WorkerVERSION 757*6a54128fSAndroid Build Coastguard WorkerPACKAGE 758*6a54128fSAndroid Build Coastguard WorkerGETTEXT_PACKAGE 759*6a54128fSAndroid Build Coastguard WorkerTDB_MAN_COMMENT 760*6a54128fSAndroid Build Coastguard WorkerTDB_CMT 761*6a54128fSAndroid Build Coastguard WorkerUUIDD_CMT 762*6a54128fSAndroid Build Coastguard WorkerPTHREAD_CFLAGS 763*6a54128fSAndroid Build Coastguard WorkerPTHREAD_LIBS 764*6a54128fSAndroid Build Coastguard WorkerPTHREAD_CXX 765*6a54128fSAndroid Build Coastguard WorkerPTHREAD_CC 766*6a54128fSAndroid Build Coastguard Workerax_pthread_config 767*6a54128fSAndroid Build Coastguard WorkerEGREP 768*6a54128fSAndroid Build Coastguard WorkerGREP 769*6a54128fSAndroid Build Coastguard WorkerSED 770*6a54128fSAndroid Build Coastguard WorkerE2INITRD_MAN 771*6a54128fSAndroid Build Coastguard WorkerE2INITRD_PROG 772*6a54128fSAndroid Build Coastguard WorkerFSCK_MAN 773*6a54128fSAndroid Build Coastguard WorkerFSCK_PROG 774*6a54128fSAndroid Build Coastguard WorkerDEFRAG_CMT 775*6a54128fSAndroid Build Coastguard WorkerRESIZER_CMT 776*6a54128fSAndroid Build Coastguard WorkerIMAGER_CMT 777*6a54128fSAndroid Build Coastguard WorkerDEBUGFS_CMT 778*6a54128fSAndroid Build Coastguard WorkerSUBSET_CMT 779*6a54128fSAndroid Build Coastguard WorkerALL_CMT 780*6a54128fSAndroid Build Coastguard WorkerBLKID_CMT 781*6a54128fSAndroid Build Coastguard WorkerDEPPROFILED_LIBBLKID 782*6a54128fSAndroid Build Coastguard WorkerPROFILED_LIBBLKID 783*6a54128fSAndroid Build Coastguard WorkerDEPSTATIC_LIBBLKID 784*6a54128fSAndroid Build Coastguard WorkerSTATIC_LIBBLKID 785*6a54128fSAndroid Build Coastguard WorkerDEPLIBBLKID 786*6a54128fSAndroid Build Coastguard WorkerLIBBLKID 787*6a54128fSAndroid Build Coastguard WorkerUUID_CMT 788*6a54128fSAndroid Build Coastguard WorkerDEPPROFILED_LIBUUID 789*6a54128fSAndroid Build Coastguard WorkerPROFILED_LIBUUID 790*6a54128fSAndroid Build Coastguard WorkerDEPSTATIC_LIBUUID 791*6a54128fSAndroid Build Coastguard WorkerSTATIC_LIBUUID 792*6a54128fSAndroid Build Coastguard WorkerDEPLIBUUID 793*6a54128fSAndroid Build Coastguard WorkerLIBUUID 794*6a54128fSAndroid Build Coastguard WorkerPKG_CONFIG_LIBDIR 795*6a54128fSAndroid Build Coastguard WorkerPKG_CONFIG_PATH 796*6a54128fSAndroid Build Coastguard WorkerPKG_CONFIG 797*6a54128fSAndroid Build Coastguard WorkerDEV_FEATURES_CMT 798*6a54128fSAndroid Build Coastguard WorkerTEST_IO_CMT 799*6a54128fSAndroid Build Coastguard WorkerPRIVATE_LIBS_CMT 800*6a54128fSAndroid Build Coastguard WorkerLDFLAG_DYNAMIC 801*6a54128fSAndroid Build Coastguard WorkerPROFILED_LIB_EXT 802*6a54128fSAndroid Build Coastguard WorkerSTATIC_LIB_EXT 803*6a54128fSAndroid Build Coastguard WorkerLIB_EXT 804*6a54128fSAndroid Build Coastguard WorkerPROFILE_CMT 805*6a54128fSAndroid Build Coastguard WorkerBSDLIB_CMT 806*6a54128fSAndroid Build Coastguard WorkerELF_CMT 807*6a54128fSAndroid Build Coastguard WorkerQ 808*6a54128fSAndroid Build Coastguard WorkerES 809*6a54128fSAndroid Build Coastguard WorkerE 810*6a54128fSAndroid Build Coastguard WorkerLINK_BUILD_FLAGS 811*6a54128fSAndroid Build Coastguard WorkerSYMLINK_RELATIVE 812*6a54128fSAndroid Build Coastguard WorkerLINK_INSTALL_FLAGS 813*6a54128fSAndroid Build Coastguard WorkerMAINTAINER_CMT 814*6a54128fSAndroid Build Coastguard WorkerCPP 815*6a54128fSAndroid Build Coastguard WorkerRDYNAMIC 816*6a54128fSAndroid Build Coastguard WorkerDLOPEN_LIB 817*6a54128fSAndroid Build Coastguard Workerhost_os 818*6a54128fSAndroid Build Coastguard Workerhost_vendor 819*6a54128fSAndroid Build Coastguard Workerhost_cpu 820*6a54128fSAndroid Build Coastguard Workerhost 821*6a54128fSAndroid Build Coastguard Workerbuild_os 822*6a54128fSAndroid Build Coastguard Workerbuild_vendor 823*6a54128fSAndroid Build Coastguard Workerbuild_cpu 824*6a54128fSAndroid Build Coastguard Workerbuild 825*6a54128fSAndroid Build Coastguard WorkerE2FSPROGS_DATE 826*6a54128fSAndroid Build Coastguard WorkerE2FSPROGS_PKGVER 827*6a54128fSAndroid Build Coastguard WorkerE2FSPROGS_VERSION 828*6a54128fSAndroid Build Coastguard WorkerE2FSPROGS_DAY 829*6a54128fSAndroid Build Coastguard WorkerE2FSPROGS_MONTH 830*6a54128fSAndroid Build Coastguard WorkerE2FSPROGS_YEAR 831*6a54128fSAndroid Build Coastguard WorkerOBJEXT 832*6a54128fSAndroid Build Coastguard WorkerEXEEXT 833*6a54128fSAndroid Build Coastguard Workerac_ct_CC 834*6a54128fSAndroid Build Coastguard WorkerCPPFLAGS 835*6a54128fSAndroid Build Coastguard WorkerLDFLAGS 836*6a54128fSAndroid Build Coastguard WorkerCFLAGS 837*6a54128fSAndroid Build Coastguard WorkerCC 838*6a54128fSAndroid Build Coastguard Workertarget_alias 839*6a54128fSAndroid Build Coastguard Workerhost_alias 840*6a54128fSAndroid Build Coastguard Workerbuild_alias 841*6a54128fSAndroid Build Coastguard WorkerLIBS 842*6a54128fSAndroid Build Coastguard WorkerECHO_T 843*6a54128fSAndroid Build Coastguard WorkerECHO_N 844*6a54128fSAndroid Build Coastguard WorkerECHO_C 845*6a54128fSAndroid Build Coastguard WorkerDEFS 846*6a54128fSAndroid Build Coastguard Workermandir 847*6a54128fSAndroid Build Coastguard Workerlocaledir 848*6a54128fSAndroid Build Coastguard Workerlibdir 849*6a54128fSAndroid Build Coastguard Workerpsdir 850*6a54128fSAndroid Build Coastguard Workerpdfdir 851*6a54128fSAndroid Build Coastguard Workerdvidir 852*6a54128fSAndroid Build Coastguard Workerhtmldir 853*6a54128fSAndroid Build Coastguard Workerinfodir 854*6a54128fSAndroid Build Coastguard Workerdocdir 855*6a54128fSAndroid Build Coastguard Workeroldincludedir 856*6a54128fSAndroid Build Coastguard Workerincludedir 857*6a54128fSAndroid Build Coastguard Workerrunstatedir 858*6a54128fSAndroid Build Coastguard Workerlocalstatedir 859*6a54128fSAndroid Build Coastguard Workersharedstatedir 860*6a54128fSAndroid Build Coastguard Workersysconfdir 861*6a54128fSAndroid Build Coastguard Workerdatadir 862*6a54128fSAndroid Build Coastguard Workerdatarootdir 863*6a54128fSAndroid Build Coastguard Workerlibexecdir 864*6a54128fSAndroid Build Coastguard Workersbindir 865*6a54128fSAndroid Build Coastguard Workerbindir 866*6a54128fSAndroid Build Coastguard Workerprogram_transform_name 867*6a54128fSAndroid Build Coastguard Workerprefix 868*6a54128fSAndroid Build Coastguard Workerexec_prefix 869*6a54128fSAndroid Build Coastguard WorkerPACKAGE_URL 870*6a54128fSAndroid Build Coastguard WorkerPACKAGE_BUGREPORT 871*6a54128fSAndroid Build Coastguard WorkerPACKAGE_STRING 872*6a54128fSAndroid Build Coastguard WorkerPACKAGE_VERSION 873*6a54128fSAndroid Build Coastguard WorkerPACKAGE_TARNAME 874*6a54128fSAndroid Build Coastguard WorkerPACKAGE_NAME 875*6a54128fSAndroid Build Coastguard WorkerPATH_SEPARATOR 876*6a54128fSAndroid Build Coastguard WorkerSHELL' 877*6a54128fSAndroid Build Coastguard Workerac_subst_files='MCONFIG 878*6a54128fSAndroid Build Coastguard WorkerMAKEFILE_ELF 879*6a54128fSAndroid Build Coastguard WorkerMAKEFILE_BSDLIB 880*6a54128fSAndroid Build Coastguard WorkerMAKEFILE_PROFILE 881*6a54128fSAndroid Build Coastguard WorkerMAKEFILE_LIBRARY 882*6a54128fSAndroid Build Coastguard WorkerASM_TYPES_HEADER 883*6a54128fSAndroid Build Coastguard WorkerPUBLIC_CONFIG_HEADER' 884*6a54128fSAndroid Build Coastguard Workerac_user_opts=' 885*6a54128fSAndroid Build Coastguard Workerenable_option_checking 886*6a54128fSAndroid Build Coastguard Workerwith_diet_libc 887*6a54128fSAndroid Build Coastguard Workerwith_cc 888*6a54128fSAndroid Build Coastguard Workerwith_ccopts 889*6a54128fSAndroid Build Coastguard Workerwith_ldopts 890*6a54128fSAndroid Build Coastguard Workerwith_root_prefix 891*6a54128fSAndroid Build Coastguard Workerenable_maintainer_mode 892*6a54128fSAndroid Build Coastguard Workerenable_symlink_install 893*6a54128fSAndroid Build Coastguard Workerenable_relative_symlinks 894*6a54128fSAndroid Build Coastguard Workerenable_symlink_relative_symlinks 895*6a54128fSAndroid Build Coastguard Workerenable_symlink_build 896*6a54128fSAndroid Build Coastguard Workerenable_verbose_makecmds 897*6a54128fSAndroid Build Coastguard Workerenable_elf_shlibs 898*6a54128fSAndroid Build Coastguard Workerenable_bsd_shlibs 899*6a54128fSAndroid Build Coastguard Workerenable_profile 900*6a54128fSAndroid Build Coastguard Workerenable_gcov 901*6a54128fSAndroid Build Coastguard Workerenable_hardening 902*6a54128fSAndroid Build Coastguard Workerenable_jbd_debug 903*6a54128fSAndroid Build Coastguard Workerenable_blkid_debug 904*6a54128fSAndroid Build Coastguard Workerenable_testio_debug 905*6a54128fSAndroid Build Coastguard Workerenable_developer_features 906*6a54128fSAndroid Build Coastguard Workerenable_libuuid 907*6a54128fSAndroid Build Coastguard Workerenable_libblkid 908*6a54128fSAndroid Build Coastguard Workerenable_subset 909*6a54128fSAndroid Build Coastguard Workerenable_backtrace 910*6a54128fSAndroid Build Coastguard Workerenable_debugfs 911*6a54128fSAndroid Build Coastguard Workerenable_imager 912*6a54128fSAndroid Build Coastguard Workerenable_resizer 913*6a54128fSAndroid Build Coastguard Workerenable_defrag 914*6a54128fSAndroid Build Coastguard Workerenable_fsck 915*6a54128fSAndroid Build Coastguard Workerenable_e2initrd_helper 916*6a54128fSAndroid Build Coastguard Workerenable_tls 917*6a54128fSAndroid Build Coastguard Workerwith_pthread 918*6a54128fSAndroid Build Coastguard Workerenable_uuidd 919*6a54128fSAndroid Build Coastguard Workerenable_mmp 920*6a54128fSAndroid Build Coastguard Workerenable_tdb 921*6a54128fSAndroid Build Coastguard Workerenable_bmap_stats 922*6a54128fSAndroid Build Coastguard Workerenable_bmap_stats_ops 923*6a54128fSAndroid Build Coastguard Workerenable_nls 924*6a54128fSAndroid Build Coastguard Workerwith_gnu_ld 925*6a54128fSAndroid Build Coastguard Workerenable_rpath 926*6a54128fSAndroid Build Coastguard Workerwith_libiconv_prefix 927*6a54128fSAndroid Build Coastguard Workerwith_libintl_prefix 928*6a54128fSAndroid Build Coastguard Workerenable_fuse2fs 929*6a54128fSAndroid Build Coastguard Workerenable_lto 930*6a54128fSAndroid Build Coastguard Workerenable_ubsan 931*6a54128fSAndroid Build Coastguard Workerenable_addrsan 932*6a54128fSAndroid Build Coastguard Workerenable_threadsan 933*6a54128fSAndroid Build Coastguard Workerenable_fuzzing 934*6a54128fSAndroid Build Coastguard Workerwith_multiarch 935*6a54128fSAndroid Build Coastguard Workerwith_udev_rules_dir 936*6a54128fSAndroid Build Coastguard Workerwith_crond_dir 937*6a54128fSAndroid Build Coastguard Workerwith_systemd_unit_dir 938*6a54128fSAndroid Build Coastguard Workerenable_largefile 939*6a54128fSAndroid Build Coastguard Worker' 940*6a54128fSAndroid Build Coastguard Worker ac_precious_vars='build_alias 941*6a54128fSAndroid Build Coastguard Workerhost_alias 942*6a54128fSAndroid Build Coastguard Workertarget_alias 943*6a54128fSAndroid Build Coastguard WorkerCC 944*6a54128fSAndroid Build Coastguard WorkerCFLAGS 945*6a54128fSAndroid Build Coastguard WorkerLDFLAGS 946*6a54128fSAndroid Build Coastguard WorkerLIBS 947*6a54128fSAndroid Build Coastguard WorkerCPPFLAGS 948*6a54128fSAndroid Build Coastguard WorkerCPP 949*6a54128fSAndroid Build Coastguard WorkerPKG_CONFIG 950*6a54128fSAndroid Build Coastguard WorkerPKG_CONFIG_PATH 951*6a54128fSAndroid Build Coastguard WorkerPKG_CONFIG_LIBDIR 952*6a54128fSAndroid Build Coastguard WorkerCXX 953*6a54128fSAndroid Build Coastguard WorkerCXXFLAGS 954*6a54128fSAndroid Build Coastguard WorkerCCC 955*6a54128fSAndroid Build Coastguard Workerudev_CFLAGS 956*6a54128fSAndroid Build Coastguard Workerudev_LIBS 957*6a54128fSAndroid Build Coastguard Workersystemd_CFLAGS 958*6a54128fSAndroid Build Coastguard Workersystemd_LIBS' 959*6a54128fSAndroid Build Coastguard Worker 960*6a54128fSAndroid Build Coastguard Worker 961*6a54128fSAndroid Build Coastguard Worker# Initialize some variables set by options. 962*6a54128fSAndroid Build Coastguard Workerac_init_help= 963*6a54128fSAndroid Build Coastguard Workerac_init_version=false 964*6a54128fSAndroid Build Coastguard Workerac_unrecognized_opts= 965*6a54128fSAndroid Build Coastguard Workerac_unrecognized_sep= 966*6a54128fSAndroid Build Coastguard Worker# The variables have the same names as the options, with 967*6a54128fSAndroid Build Coastguard Worker# dashes changed to underlines. 968*6a54128fSAndroid Build Coastguard Workercache_file=/dev/null 969*6a54128fSAndroid Build Coastguard Workerexec_prefix=NONE 970*6a54128fSAndroid Build Coastguard Workerno_create= 971*6a54128fSAndroid Build Coastguard Workerno_recursion= 972*6a54128fSAndroid Build Coastguard Workerprefix=NONE 973*6a54128fSAndroid Build Coastguard Workerprogram_prefix=NONE 974*6a54128fSAndroid Build Coastguard Workerprogram_suffix=NONE 975*6a54128fSAndroid Build Coastguard Workerprogram_transform_name=s,x,x, 976*6a54128fSAndroid Build Coastguard Workersilent= 977*6a54128fSAndroid Build Coastguard Workersite= 978*6a54128fSAndroid Build Coastguard Workersrcdir= 979*6a54128fSAndroid Build Coastguard Workerverbose= 980*6a54128fSAndroid Build Coastguard Workerx_includes=NONE 981*6a54128fSAndroid Build Coastguard Workerx_libraries=NONE 982*6a54128fSAndroid Build Coastguard Worker 983*6a54128fSAndroid Build Coastguard Worker# Installation directory options. 984*6a54128fSAndroid Build Coastguard Worker# These are left unexpanded so users can "make install exec_prefix=/foo" 985*6a54128fSAndroid Build Coastguard Worker# and all the variables that are supposed to be based on exec_prefix 986*6a54128fSAndroid Build Coastguard Worker# by default will actually change. 987*6a54128fSAndroid Build Coastguard Worker# Use braces instead of parens because sh, perl, etc. also accept them. 988*6a54128fSAndroid Build Coastguard Worker# (The list follows the same order as the GNU Coding Standards.) 989*6a54128fSAndroid Build Coastguard Workerbindir='${exec_prefix}/bin' 990*6a54128fSAndroid Build Coastguard Workersbindir='${exec_prefix}/sbin' 991*6a54128fSAndroid Build Coastguard Workerlibexecdir='${exec_prefix}/libexec' 992*6a54128fSAndroid Build Coastguard Workerdatarootdir='${prefix}/share' 993*6a54128fSAndroid Build Coastguard Workerdatadir='${datarootdir}' 994*6a54128fSAndroid Build Coastguard Workersysconfdir='${prefix}/etc' 995*6a54128fSAndroid Build Coastguard Workersharedstatedir='${prefix}/com' 996*6a54128fSAndroid Build Coastguard Workerlocalstatedir='${prefix}/var' 997*6a54128fSAndroid Build Coastguard Workerrunstatedir='${localstatedir}/run' 998*6a54128fSAndroid Build Coastguard Workerincludedir='${prefix}/include' 999*6a54128fSAndroid Build Coastguard Workeroldincludedir='/usr/include' 1000*6a54128fSAndroid Build Coastguard Workerdocdir='${datarootdir}/doc/${PACKAGE}' 1001*6a54128fSAndroid Build Coastguard Workerinfodir='${datarootdir}/info' 1002*6a54128fSAndroid Build Coastguard Workerhtmldir='${docdir}' 1003*6a54128fSAndroid Build Coastguard Workerdvidir='${docdir}' 1004*6a54128fSAndroid Build Coastguard Workerpdfdir='${docdir}' 1005*6a54128fSAndroid Build Coastguard Workerpsdir='${docdir}' 1006*6a54128fSAndroid Build Coastguard Workerlibdir='${exec_prefix}/lib' 1007*6a54128fSAndroid Build Coastguard Workerlocaledir='${datarootdir}/locale' 1008*6a54128fSAndroid Build Coastguard Workermandir='${datarootdir}/man' 1009*6a54128fSAndroid Build Coastguard Worker 1010*6a54128fSAndroid Build Coastguard Workerac_prev= 1011*6a54128fSAndroid Build Coastguard Workerac_dashdash= 1012*6a54128fSAndroid Build Coastguard Workerfor ac_option 1013*6a54128fSAndroid Build Coastguard Workerdo 1014*6a54128fSAndroid Build Coastguard Worker # If the previous option needs an argument, assign it. 1015*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_prev"; then 1016*6a54128fSAndroid Build Coastguard Worker eval $ac_prev=\$ac_option 1017*6a54128fSAndroid Build Coastguard Worker ac_prev= 1018*6a54128fSAndroid Build Coastguard Worker continue 1019*6a54128fSAndroid Build Coastguard Worker fi 1020*6a54128fSAndroid Build Coastguard Worker 1021*6a54128fSAndroid Build Coastguard Worker case $ac_option in 1022*6a54128fSAndroid Build Coastguard Worker *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1023*6a54128fSAndroid Build Coastguard Worker *=) ac_optarg= ;; 1024*6a54128fSAndroid Build Coastguard Worker *) ac_optarg=yes ;; 1025*6a54128fSAndroid Build Coastguard Worker esac 1026*6a54128fSAndroid Build Coastguard Worker 1027*6a54128fSAndroid Build Coastguard Worker case $ac_dashdash$ac_option in 1028*6a54128fSAndroid Build Coastguard Worker --) 1029*6a54128fSAndroid Build Coastguard Worker ac_dashdash=yes ;; 1030*6a54128fSAndroid Build Coastguard Worker 1031*6a54128fSAndroid Build Coastguard Worker -bindir | --bindir | --bindi | --bind | --bin | --bi) 1032*6a54128fSAndroid Build Coastguard Worker ac_prev=bindir ;; 1033*6a54128fSAndroid Build Coastguard Worker -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1034*6a54128fSAndroid Build Coastguard Worker bindir=$ac_optarg ;; 1035*6a54128fSAndroid Build Coastguard Worker 1036*6a54128fSAndroid Build Coastguard Worker -build | --build | --buil | --bui | --bu) 1037*6a54128fSAndroid Build Coastguard Worker ac_prev=build_alias ;; 1038*6a54128fSAndroid Build Coastguard Worker -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1039*6a54128fSAndroid Build Coastguard Worker build_alias=$ac_optarg ;; 1040*6a54128fSAndroid Build Coastguard Worker 1041*6a54128fSAndroid Build Coastguard Worker -cache-file | --cache-file | --cache-fil | --cache-fi \ 1042*6a54128fSAndroid Build Coastguard Worker | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1043*6a54128fSAndroid Build Coastguard Worker ac_prev=cache_file ;; 1044*6a54128fSAndroid Build Coastguard Worker -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1045*6a54128fSAndroid Build Coastguard Worker | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1046*6a54128fSAndroid Build Coastguard Worker cache_file=$ac_optarg ;; 1047*6a54128fSAndroid Build Coastguard Worker 1048*6a54128fSAndroid Build Coastguard Worker --config-cache | -C) 1049*6a54128fSAndroid Build Coastguard Worker cache_file=config.cache ;; 1050*6a54128fSAndroid Build Coastguard Worker 1051*6a54128fSAndroid Build Coastguard Worker -datadir | --datadir | --datadi | --datad) 1052*6a54128fSAndroid Build Coastguard Worker ac_prev=datadir ;; 1053*6a54128fSAndroid Build Coastguard Worker -datadir=* | --datadir=* | --datadi=* | --datad=*) 1054*6a54128fSAndroid Build Coastguard Worker datadir=$ac_optarg ;; 1055*6a54128fSAndroid Build Coastguard Worker 1056*6a54128fSAndroid Build Coastguard Worker -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1057*6a54128fSAndroid Build Coastguard Worker | --dataroo | --dataro | --datar) 1058*6a54128fSAndroid Build Coastguard Worker ac_prev=datarootdir ;; 1059*6a54128fSAndroid Build Coastguard Worker -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1060*6a54128fSAndroid Build Coastguard Worker | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1061*6a54128fSAndroid Build Coastguard Worker datarootdir=$ac_optarg ;; 1062*6a54128fSAndroid Build Coastguard Worker 1063*6a54128fSAndroid Build Coastguard Worker -disable-* | --disable-*) 1064*6a54128fSAndroid Build Coastguard Worker ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1065*6a54128fSAndroid Build Coastguard Worker # Reject names that are not valid shell variable names. 1066*6a54128fSAndroid Build Coastguard Worker expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1067*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "invalid feature name: \`$ac_useropt'" 1068*6a54128fSAndroid Build Coastguard Worker ac_useropt_orig=$ac_useropt 1069*6a54128fSAndroid Build Coastguard Worker ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1070*6a54128fSAndroid Build Coastguard Worker case $ac_user_opts in 1071*6a54128fSAndroid Build Coastguard Worker *" 1072*6a54128fSAndroid Build Coastguard Worker"enable_$ac_useropt" 1073*6a54128fSAndroid Build Coastguard Worker"*) ;; 1074*6a54128fSAndroid Build Coastguard Worker *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1075*6a54128fSAndroid Build Coastguard Worker ac_unrecognized_sep=', ';; 1076*6a54128fSAndroid Build Coastguard Worker esac 1077*6a54128fSAndroid Build Coastguard Worker eval enable_$ac_useropt=no ;; 1078*6a54128fSAndroid Build Coastguard Worker 1079*6a54128fSAndroid Build Coastguard Worker -docdir | --docdir | --docdi | --doc | --do) 1080*6a54128fSAndroid Build Coastguard Worker ac_prev=docdir ;; 1081*6a54128fSAndroid Build Coastguard Worker -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1082*6a54128fSAndroid Build Coastguard Worker docdir=$ac_optarg ;; 1083*6a54128fSAndroid Build Coastguard Worker 1084*6a54128fSAndroid Build Coastguard Worker -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1085*6a54128fSAndroid Build Coastguard Worker ac_prev=dvidir ;; 1086*6a54128fSAndroid Build Coastguard Worker -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1087*6a54128fSAndroid Build Coastguard Worker dvidir=$ac_optarg ;; 1088*6a54128fSAndroid Build Coastguard Worker 1089*6a54128fSAndroid Build Coastguard Worker -enable-* | --enable-*) 1090*6a54128fSAndroid Build Coastguard Worker ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1091*6a54128fSAndroid Build Coastguard Worker # Reject names that are not valid shell variable names. 1092*6a54128fSAndroid Build Coastguard Worker expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1093*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "invalid feature name: \`$ac_useropt'" 1094*6a54128fSAndroid Build Coastguard Worker ac_useropt_orig=$ac_useropt 1095*6a54128fSAndroid Build Coastguard Worker ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1096*6a54128fSAndroid Build Coastguard Worker case $ac_user_opts in 1097*6a54128fSAndroid Build Coastguard Worker *" 1098*6a54128fSAndroid Build Coastguard Worker"enable_$ac_useropt" 1099*6a54128fSAndroid Build Coastguard Worker"*) ;; 1100*6a54128fSAndroid Build Coastguard Worker *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1101*6a54128fSAndroid Build Coastguard Worker ac_unrecognized_sep=', ';; 1102*6a54128fSAndroid Build Coastguard Worker esac 1103*6a54128fSAndroid Build Coastguard Worker eval enable_$ac_useropt=\$ac_optarg ;; 1104*6a54128fSAndroid Build Coastguard Worker 1105*6a54128fSAndroid Build Coastguard Worker -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1106*6a54128fSAndroid Build Coastguard Worker | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1107*6a54128fSAndroid Build Coastguard Worker | --exec | --exe | --ex) 1108*6a54128fSAndroid Build Coastguard Worker ac_prev=exec_prefix ;; 1109*6a54128fSAndroid Build Coastguard Worker -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1110*6a54128fSAndroid Build Coastguard Worker | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1111*6a54128fSAndroid Build Coastguard Worker | --exec=* | --exe=* | --ex=*) 1112*6a54128fSAndroid Build Coastguard Worker exec_prefix=$ac_optarg ;; 1113*6a54128fSAndroid Build Coastguard Worker 1114*6a54128fSAndroid Build Coastguard Worker -gas | --gas | --ga | --g) 1115*6a54128fSAndroid Build Coastguard Worker # Obsolete; use --with-gas. 1116*6a54128fSAndroid Build Coastguard Worker with_gas=yes ;; 1117*6a54128fSAndroid Build Coastguard Worker 1118*6a54128fSAndroid Build Coastguard Worker -help | --help | --hel | --he | -h) 1119*6a54128fSAndroid Build Coastguard Worker ac_init_help=long ;; 1120*6a54128fSAndroid Build Coastguard Worker -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1121*6a54128fSAndroid Build Coastguard Worker ac_init_help=recursive ;; 1122*6a54128fSAndroid Build Coastguard Worker -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1123*6a54128fSAndroid Build Coastguard Worker ac_init_help=short ;; 1124*6a54128fSAndroid Build Coastguard Worker 1125*6a54128fSAndroid Build Coastguard Worker -host | --host | --hos | --ho) 1126*6a54128fSAndroid Build Coastguard Worker ac_prev=host_alias ;; 1127*6a54128fSAndroid Build Coastguard Worker -host=* | --host=* | --hos=* | --ho=*) 1128*6a54128fSAndroid Build Coastguard Worker host_alias=$ac_optarg ;; 1129*6a54128fSAndroid Build Coastguard Worker 1130*6a54128fSAndroid Build Coastguard Worker -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1131*6a54128fSAndroid Build Coastguard Worker ac_prev=htmldir ;; 1132*6a54128fSAndroid Build Coastguard Worker -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1133*6a54128fSAndroid Build Coastguard Worker | --ht=*) 1134*6a54128fSAndroid Build Coastguard Worker htmldir=$ac_optarg ;; 1135*6a54128fSAndroid Build Coastguard Worker 1136*6a54128fSAndroid Build Coastguard Worker -includedir | --includedir | --includedi | --included | --include \ 1137*6a54128fSAndroid Build Coastguard Worker | --includ | --inclu | --incl | --inc) 1138*6a54128fSAndroid Build Coastguard Worker ac_prev=includedir ;; 1139*6a54128fSAndroid Build Coastguard Worker -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1140*6a54128fSAndroid Build Coastguard Worker | --includ=* | --inclu=* | --incl=* | --inc=*) 1141*6a54128fSAndroid Build Coastguard Worker includedir=$ac_optarg ;; 1142*6a54128fSAndroid Build Coastguard Worker 1143*6a54128fSAndroid Build Coastguard Worker -infodir | --infodir | --infodi | --infod | --info | --inf) 1144*6a54128fSAndroid Build Coastguard Worker ac_prev=infodir ;; 1145*6a54128fSAndroid Build Coastguard Worker -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1146*6a54128fSAndroid Build Coastguard Worker infodir=$ac_optarg ;; 1147*6a54128fSAndroid Build Coastguard Worker 1148*6a54128fSAndroid Build Coastguard Worker -libdir | --libdir | --libdi | --libd) 1149*6a54128fSAndroid Build Coastguard Worker ac_prev=libdir ;; 1150*6a54128fSAndroid Build Coastguard Worker -libdir=* | --libdir=* | --libdi=* | --libd=*) 1151*6a54128fSAndroid Build Coastguard Worker libdir=$ac_optarg ;; 1152*6a54128fSAndroid Build Coastguard Worker 1153*6a54128fSAndroid Build Coastguard Worker -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1154*6a54128fSAndroid Build Coastguard Worker | --libexe | --libex | --libe) 1155*6a54128fSAndroid Build Coastguard Worker ac_prev=libexecdir ;; 1156*6a54128fSAndroid Build Coastguard Worker -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1157*6a54128fSAndroid Build Coastguard Worker | --libexe=* | --libex=* | --libe=*) 1158*6a54128fSAndroid Build Coastguard Worker libexecdir=$ac_optarg ;; 1159*6a54128fSAndroid Build Coastguard Worker 1160*6a54128fSAndroid Build Coastguard Worker -localedir | --localedir | --localedi | --localed | --locale) 1161*6a54128fSAndroid Build Coastguard Worker ac_prev=localedir ;; 1162*6a54128fSAndroid Build Coastguard Worker -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1163*6a54128fSAndroid Build Coastguard Worker localedir=$ac_optarg ;; 1164*6a54128fSAndroid Build Coastguard Worker 1165*6a54128fSAndroid Build Coastguard Worker -localstatedir | --localstatedir | --localstatedi | --localstated \ 1166*6a54128fSAndroid Build Coastguard Worker | --localstate | --localstat | --localsta | --localst | --locals) 1167*6a54128fSAndroid Build Coastguard Worker ac_prev=localstatedir ;; 1168*6a54128fSAndroid Build Coastguard Worker -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1169*6a54128fSAndroid Build Coastguard Worker | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1170*6a54128fSAndroid Build Coastguard Worker localstatedir=$ac_optarg ;; 1171*6a54128fSAndroid Build Coastguard Worker 1172*6a54128fSAndroid Build Coastguard Worker -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1173*6a54128fSAndroid Build Coastguard Worker ac_prev=mandir ;; 1174*6a54128fSAndroid Build Coastguard Worker -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1175*6a54128fSAndroid Build Coastguard Worker mandir=$ac_optarg ;; 1176*6a54128fSAndroid Build Coastguard Worker 1177*6a54128fSAndroid Build Coastguard Worker -nfp | --nfp | --nf) 1178*6a54128fSAndroid Build Coastguard Worker # Obsolete; use --without-fp. 1179*6a54128fSAndroid Build Coastguard Worker with_fp=no ;; 1180*6a54128fSAndroid Build Coastguard Worker 1181*6a54128fSAndroid Build Coastguard Worker -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1182*6a54128fSAndroid Build Coastguard Worker | --no-cr | --no-c | -n) 1183*6a54128fSAndroid Build Coastguard Worker no_create=yes ;; 1184*6a54128fSAndroid Build Coastguard Worker 1185*6a54128fSAndroid Build Coastguard Worker -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1186*6a54128fSAndroid Build Coastguard Worker | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1187*6a54128fSAndroid Build Coastguard Worker no_recursion=yes ;; 1188*6a54128fSAndroid Build Coastguard Worker 1189*6a54128fSAndroid Build Coastguard Worker -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1190*6a54128fSAndroid Build Coastguard Worker | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1191*6a54128fSAndroid Build Coastguard Worker | --oldin | --oldi | --old | --ol | --o) 1192*6a54128fSAndroid Build Coastguard Worker ac_prev=oldincludedir ;; 1193*6a54128fSAndroid Build Coastguard Worker -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1194*6a54128fSAndroid Build Coastguard Worker | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1195*6a54128fSAndroid Build Coastguard Worker | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1196*6a54128fSAndroid Build Coastguard Worker oldincludedir=$ac_optarg ;; 1197*6a54128fSAndroid Build Coastguard Worker 1198*6a54128fSAndroid Build Coastguard Worker -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1199*6a54128fSAndroid Build Coastguard Worker ac_prev=prefix ;; 1200*6a54128fSAndroid Build Coastguard Worker -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1201*6a54128fSAndroid Build Coastguard Worker prefix=$ac_optarg ;; 1202*6a54128fSAndroid Build Coastguard Worker 1203*6a54128fSAndroid Build Coastguard Worker -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1204*6a54128fSAndroid Build Coastguard Worker | --program-pre | --program-pr | --program-p) 1205*6a54128fSAndroid Build Coastguard Worker ac_prev=program_prefix ;; 1206*6a54128fSAndroid Build Coastguard Worker -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1207*6a54128fSAndroid Build Coastguard Worker | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1208*6a54128fSAndroid Build Coastguard Worker program_prefix=$ac_optarg ;; 1209*6a54128fSAndroid Build Coastguard Worker 1210*6a54128fSAndroid Build Coastguard Worker -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1211*6a54128fSAndroid Build Coastguard Worker | --program-suf | --program-su | --program-s) 1212*6a54128fSAndroid Build Coastguard Worker ac_prev=program_suffix ;; 1213*6a54128fSAndroid Build Coastguard Worker -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1214*6a54128fSAndroid Build Coastguard Worker | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1215*6a54128fSAndroid Build Coastguard Worker program_suffix=$ac_optarg ;; 1216*6a54128fSAndroid Build Coastguard Worker 1217*6a54128fSAndroid Build Coastguard Worker -program-transform-name | --program-transform-name \ 1218*6a54128fSAndroid Build Coastguard Worker | --program-transform-nam | --program-transform-na \ 1219*6a54128fSAndroid Build Coastguard Worker | --program-transform-n | --program-transform- \ 1220*6a54128fSAndroid Build Coastguard Worker | --program-transform | --program-transfor \ 1221*6a54128fSAndroid Build Coastguard Worker | --program-transfo | --program-transf \ 1222*6a54128fSAndroid Build Coastguard Worker | --program-trans | --program-tran \ 1223*6a54128fSAndroid Build Coastguard Worker | --progr-tra | --program-tr | --program-t) 1224*6a54128fSAndroid Build Coastguard Worker ac_prev=program_transform_name ;; 1225*6a54128fSAndroid Build Coastguard Worker -program-transform-name=* | --program-transform-name=* \ 1226*6a54128fSAndroid Build Coastguard Worker | --program-transform-nam=* | --program-transform-na=* \ 1227*6a54128fSAndroid Build Coastguard Worker | --program-transform-n=* | --program-transform-=* \ 1228*6a54128fSAndroid Build Coastguard Worker | --program-transform=* | --program-transfor=* \ 1229*6a54128fSAndroid Build Coastguard Worker | --program-transfo=* | --program-transf=* \ 1230*6a54128fSAndroid Build Coastguard Worker | --program-trans=* | --program-tran=* \ 1231*6a54128fSAndroid Build Coastguard Worker | --progr-tra=* | --program-tr=* | --program-t=*) 1232*6a54128fSAndroid Build Coastguard Worker program_transform_name=$ac_optarg ;; 1233*6a54128fSAndroid Build Coastguard Worker 1234*6a54128fSAndroid Build Coastguard Worker -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1235*6a54128fSAndroid Build Coastguard Worker ac_prev=pdfdir ;; 1236*6a54128fSAndroid Build Coastguard Worker -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1237*6a54128fSAndroid Build Coastguard Worker pdfdir=$ac_optarg ;; 1238*6a54128fSAndroid Build Coastguard Worker 1239*6a54128fSAndroid Build Coastguard Worker -psdir | --psdir | --psdi | --psd | --ps) 1240*6a54128fSAndroid Build Coastguard Worker ac_prev=psdir ;; 1241*6a54128fSAndroid Build Coastguard Worker -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1242*6a54128fSAndroid Build Coastguard Worker psdir=$ac_optarg ;; 1243*6a54128fSAndroid Build Coastguard Worker 1244*6a54128fSAndroid Build Coastguard Worker -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1245*6a54128fSAndroid Build Coastguard Worker | -silent | --silent | --silen | --sile | --sil) 1246*6a54128fSAndroid Build Coastguard Worker silent=yes ;; 1247*6a54128fSAndroid Build Coastguard Worker 1248*6a54128fSAndroid Build Coastguard Worker -runstatedir | --runstatedir | --runstatedi | --runstated \ 1249*6a54128fSAndroid Build Coastguard Worker | --runstate | --runstat | --runsta | --runst | --runs \ 1250*6a54128fSAndroid Build Coastguard Worker | --run | --ru | --r) 1251*6a54128fSAndroid Build Coastguard Worker ac_prev=runstatedir ;; 1252*6a54128fSAndroid Build Coastguard Worker -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1253*6a54128fSAndroid Build Coastguard Worker | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1254*6a54128fSAndroid Build Coastguard Worker | --run=* | --ru=* | --r=*) 1255*6a54128fSAndroid Build Coastguard Worker runstatedir=$ac_optarg ;; 1256*6a54128fSAndroid Build Coastguard Worker 1257*6a54128fSAndroid Build Coastguard Worker -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1258*6a54128fSAndroid Build Coastguard Worker ac_prev=sbindir ;; 1259*6a54128fSAndroid Build Coastguard Worker -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1260*6a54128fSAndroid Build Coastguard Worker | --sbi=* | --sb=*) 1261*6a54128fSAndroid Build Coastguard Worker sbindir=$ac_optarg ;; 1262*6a54128fSAndroid Build Coastguard Worker 1263*6a54128fSAndroid Build Coastguard Worker -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1264*6a54128fSAndroid Build Coastguard Worker | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1265*6a54128fSAndroid Build Coastguard Worker | --sharedst | --shareds | --shared | --share | --shar \ 1266*6a54128fSAndroid Build Coastguard Worker | --sha | --sh) 1267*6a54128fSAndroid Build Coastguard Worker ac_prev=sharedstatedir ;; 1268*6a54128fSAndroid Build Coastguard Worker -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1269*6a54128fSAndroid Build Coastguard Worker | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1270*6a54128fSAndroid Build Coastguard Worker | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1271*6a54128fSAndroid Build Coastguard Worker | --sha=* | --sh=*) 1272*6a54128fSAndroid Build Coastguard Worker sharedstatedir=$ac_optarg ;; 1273*6a54128fSAndroid Build Coastguard Worker 1274*6a54128fSAndroid Build Coastguard Worker -site | --site | --sit) 1275*6a54128fSAndroid Build Coastguard Worker ac_prev=site ;; 1276*6a54128fSAndroid Build Coastguard Worker -site=* | --site=* | --sit=*) 1277*6a54128fSAndroid Build Coastguard Worker site=$ac_optarg ;; 1278*6a54128fSAndroid Build Coastguard Worker 1279*6a54128fSAndroid Build Coastguard Worker -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1280*6a54128fSAndroid Build Coastguard Worker ac_prev=srcdir ;; 1281*6a54128fSAndroid Build Coastguard Worker -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1282*6a54128fSAndroid Build Coastguard Worker srcdir=$ac_optarg ;; 1283*6a54128fSAndroid Build Coastguard Worker 1284*6a54128fSAndroid Build Coastguard Worker -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1285*6a54128fSAndroid Build Coastguard Worker | --syscon | --sysco | --sysc | --sys | --sy) 1286*6a54128fSAndroid Build Coastguard Worker ac_prev=sysconfdir ;; 1287*6a54128fSAndroid Build Coastguard Worker -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1288*6a54128fSAndroid Build Coastguard Worker | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1289*6a54128fSAndroid Build Coastguard Worker sysconfdir=$ac_optarg ;; 1290*6a54128fSAndroid Build Coastguard Worker 1291*6a54128fSAndroid Build Coastguard Worker -target | --target | --targe | --targ | --tar | --ta | --t) 1292*6a54128fSAndroid Build Coastguard Worker ac_prev=target_alias ;; 1293*6a54128fSAndroid Build Coastguard Worker -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1294*6a54128fSAndroid Build Coastguard Worker target_alias=$ac_optarg ;; 1295*6a54128fSAndroid Build Coastguard Worker 1296*6a54128fSAndroid Build Coastguard Worker -v | -verbose | --verbose | --verbos | --verbo | --verb) 1297*6a54128fSAndroid Build Coastguard Worker verbose=yes ;; 1298*6a54128fSAndroid Build Coastguard Worker 1299*6a54128fSAndroid Build Coastguard Worker -version | --version | --versio | --versi | --vers | -V) 1300*6a54128fSAndroid Build Coastguard Worker ac_init_version=: ;; 1301*6a54128fSAndroid Build Coastguard Worker 1302*6a54128fSAndroid Build Coastguard Worker -with-* | --with-*) 1303*6a54128fSAndroid Build Coastguard Worker ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1304*6a54128fSAndroid Build Coastguard Worker # Reject names that are not valid shell variable names. 1305*6a54128fSAndroid Build Coastguard Worker expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1306*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "invalid package name: \`$ac_useropt'" 1307*6a54128fSAndroid Build Coastguard Worker ac_useropt_orig=$ac_useropt 1308*6a54128fSAndroid Build Coastguard Worker ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1309*6a54128fSAndroid Build Coastguard Worker case $ac_user_opts in 1310*6a54128fSAndroid Build Coastguard Worker *" 1311*6a54128fSAndroid Build Coastguard Worker"with_$ac_useropt" 1312*6a54128fSAndroid Build Coastguard Worker"*) ;; 1313*6a54128fSAndroid Build Coastguard Worker *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1314*6a54128fSAndroid Build Coastguard Worker ac_unrecognized_sep=', ';; 1315*6a54128fSAndroid Build Coastguard Worker esac 1316*6a54128fSAndroid Build Coastguard Worker eval with_$ac_useropt=\$ac_optarg ;; 1317*6a54128fSAndroid Build Coastguard Worker 1318*6a54128fSAndroid Build Coastguard Worker -without-* | --without-*) 1319*6a54128fSAndroid Build Coastguard Worker ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1320*6a54128fSAndroid Build Coastguard Worker # Reject names that are not valid shell variable names. 1321*6a54128fSAndroid Build Coastguard Worker expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1322*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "invalid package name: \`$ac_useropt'" 1323*6a54128fSAndroid Build Coastguard Worker ac_useropt_orig=$ac_useropt 1324*6a54128fSAndroid Build Coastguard Worker ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1325*6a54128fSAndroid Build Coastguard Worker case $ac_user_opts in 1326*6a54128fSAndroid Build Coastguard Worker *" 1327*6a54128fSAndroid Build Coastguard Worker"with_$ac_useropt" 1328*6a54128fSAndroid Build Coastguard Worker"*) ;; 1329*6a54128fSAndroid Build Coastguard Worker *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1330*6a54128fSAndroid Build Coastguard Worker ac_unrecognized_sep=', ';; 1331*6a54128fSAndroid Build Coastguard Worker esac 1332*6a54128fSAndroid Build Coastguard Worker eval with_$ac_useropt=no ;; 1333*6a54128fSAndroid Build Coastguard Worker 1334*6a54128fSAndroid Build Coastguard Worker --x) 1335*6a54128fSAndroid Build Coastguard Worker # Obsolete; use --with-x. 1336*6a54128fSAndroid Build Coastguard Worker with_x=yes ;; 1337*6a54128fSAndroid Build Coastguard Worker 1338*6a54128fSAndroid Build Coastguard Worker -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1339*6a54128fSAndroid Build Coastguard Worker | --x-incl | --x-inc | --x-in | --x-i) 1340*6a54128fSAndroid Build Coastguard Worker ac_prev=x_includes ;; 1341*6a54128fSAndroid Build Coastguard Worker -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1342*6a54128fSAndroid Build Coastguard Worker | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1343*6a54128fSAndroid Build Coastguard Worker x_includes=$ac_optarg ;; 1344*6a54128fSAndroid Build Coastguard Worker 1345*6a54128fSAndroid Build Coastguard Worker -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1346*6a54128fSAndroid Build Coastguard Worker | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1347*6a54128fSAndroid Build Coastguard Worker ac_prev=x_libraries ;; 1348*6a54128fSAndroid Build Coastguard Worker -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1349*6a54128fSAndroid Build Coastguard Worker | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1350*6a54128fSAndroid Build Coastguard Worker x_libraries=$ac_optarg ;; 1351*6a54128fSAndroid Build Coastguard Worker 1352*6a54128fSAndroid Build Coastguard Worker -*) as_fn_error $? "unrecognized option: \`$ac_option' 1353*6a54128fSAndroid Build Coastguard WorkerTry \`$0 --help' for more information" 1354*6a54128fSAndroid Build Coastguard Worker ;; 1355*6a54128fSAndroid Build Coastguard Worker 1356*6a54128fSAndroid Build Coastguard Worker *=*) 1357*6a54128fSAndroid Build Coastguard Worker ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1358*6a54128fSAndroid Build Coastguard Worker # Reject names that are not valid shell variable names. 1359*6a54128fSAndroid Build Coastguard Worker case $ac_envvar in #( 1360*6a54128fSAndroid Build Coastguard Worker '' | [0-9]* | *[!_$as_cr_alnum]* ) 1361*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1362*6a54128fSAndroid Build Coastguard Worker esac 1363*6a54128fSAndroid Build Coastguard Worker eval $ac_envvar=\$ac_optarg 1364*6a54128fSAndroid Build Coastguard Worker export $ac_envvar ;; 1365*6a54128fSAndroid Build Coastguard Worker 1366*6a54128fSAndroid Build Coastguard Worker *) 1367*6a54128fSAndroid Build Coastguard Worker # FIXME: should be removed in autoconf 3.0. 1368*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1369*6a54128fSAndroid Build Coastguard Worker expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1370*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1371*6a54128fSAndroid Build Coastguard Worker : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1372*6a54128fSAndroid Build Coastguard Worker ;; 1373*6a54128fSAndroid Build Coastguard Worker 1374*6a54128fSAndroid Build Coastguard Worker esac 1375*6a54128fSAndroid Build Coastguard Workerdone 1376*6a54128fSAndroid Build Coastguard Worker 1377*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_prev"; then 1378*6a54128fSAndroid Build Coastguard Worker ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1379*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "missing argument to $ac_option" 1380*6a54128fSAndroid Build Coastguard Workerfi 1381*6a54128fSAndroid Build Coastguard Worker 1382*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_unrecognized_opts"; then 1383*6a54128fSAndroid Build Coastguard Worker case $enable_option_checking in 1384*6a54128fSAndroid Build Coastguard Worker no) ;; 1385*6a54128fSAndroid Build Coastguard Worker fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1386*6a54128fSAndroid Build Coastguard Worker *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1387*6a54128fSAndroid Build Coastguard Worker esac 1388*6a54128fSAndroid Build Coastguard Workerfi 1389*6a54128fSAndroid Build Coastguard Worker 1390*6a54128fSAndroid Build Coastguard Worker# Check all directory arguments for consistency. 1391*6a54128fSAndroid Build Coastguard Workerfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1392*6a54128fSAndroid Build Coastguard Worker datadir sysconfdir sharedstatedir localstatedir includedir \ 1393*6a54128fSAndroid Build Coastguard Worker oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1394*6a54128fSAndroid Build Coastguard Worker libdir localedir mandir runstatedir 1395*6a54128fSAndroid Build Coastguard Workerdo 1396*6a54128fSAndroid Build Coastguard Worker eval ac_val=\$$ac_var 1397*6a54128fSAndroid Build Coastguard Worker # Remove trailing slashes. 1398*6a54128fSAndroid Build Coastguard Worker case $ac_val in 1399*6a54128fSAndroid Build Coastguard Worker */ ) 1400*6a54128fSAndroid Build Coastguard Worker ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1401*6a54128fSAndroid Build Coastguard Worker eval $ac_var=\$ac_val;; 1402*6a54128fSAndroid Build Coastguard Worker esac 1403*6a54128fSAndroid Build Coastguard Worker # Be sure to have absolute directory names. 1404*6a54128fSAndroid Build Coastguard Worker case $ac_val in 1405*6a54128fSAndroid Build Coastguard Worker [\\/$]* | ?:[\\/]* ) continue;; 1406*6a54128fSAndroid Build Coastguard Worker NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1407*6a54128fSAndroid Build Coastguard Worker esac 1408*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1409*6a54128fSAndroid Build Coastguard Workerdone 1410*6a54128fSAndroid Build Coastguard Worker 1411*6a54128fSAndroid Build Coastguard Worker# There might be people who depend on the old broken behavior: `$host' 1412*6a54128fSAndroid Build Coastguard Worker# used to hold the argument of --host etc. 1413*6a54128fSAndroid Build Coastguard Worker# FIXME: To remove some day. 1414*6a54128fSAndroid Build Coastguard Workerbuild=$build_alias 1415*6a54128fSAndroid Build Coastguard Workerhost=$host_alias 1416*6a54128fSAndroid Build Coastguard Workertarget=$target_alias 1417*6a54128fSAndroid Build Coastguard Worker 1418*6a54128fSAndroid Build Coastguard Worker# FIXME: To remove some day. 1419*6a54128fSAndroid Build Coastguard Workerif test "x$host_alias" != x; then 1420*6a54128fSAndroid Build Coastguard Worker if test "x$build_alias" = x; then 1421*6a54128fSAndroid Build Coastguard Worker cross_compiling=maybe 1422*6a54128fSAndroid Build Coastguard Worker elif test "x$build_alias" != "x$host_alias"; then 1423*6a54128fSAndroid Build Coastguard Worker cross_compiling=yes 1424*6a54128fSAndroid Build Coastguard Worker fi 1425*6a54128fSAndroid Build Coastguard Workerfi 1426*6a54128fSAndroid Build Coastguard Worker 1427*6a54128fSAndroid Build Coastguard Workerac_tool_prefix= 1428*6a54128fSAndroid Build Coastguard Workertest -n "$host_alias" && ac_tool_prefix=$host_alias- 1429*6a54128fSAndroid Build Coastguard Worker 1430*6a54128fSAndroid Build Coastguard Workertest "$silent" = yes && exec 6>/dev/null 1431*6a54128fSAndroid Build Coastguard Worker 1432*6a54128fSAndroid Build Coastguard Worker 1433*6a54128fSAndroid Build Coastguard Workerac_pwd=`pwd` && test -n "$ac_pwd" && 1434*6a54128fSAndroid Build Coastguard Workerac_ls_di=`ls -di .` && 1435*6a54128fSAndroid Build Coastguard Workerac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1436*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "working directory cannot be determined" 1437*6a54128fSAndroid Build Coastguard Workertest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1438*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "pwd does not report name of working directory" 1439*6a54128fSAndroid Build Coastguard Worker 1440*6a54128fSAndroid Build Coastguard Worker 1441*6a54128fSAndroid Build Coastguard Worker# Find the source files, if location was not specified. 1442*6a54128fSAndroid Build Coastguard Workerif test -z "$srcdir"; then 1443*6a54128fSAndroid Build Coastguard Worker ac_srcdir_defaulted=yes 1444*6a54128fSAndroid Build Coastguard Worker # Try the directory containing this script, then the parent directory. 1445*6a54128fSAndroid Build Coastguard Worker ac_confdir=`$as_dirname -- "$as_myself" || 1446*6a54128fSAndroid Build Coastguard Worker$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1447*6a54128fSAndroid Build Coastguard Worker X"$as_myself" : 'X\(//\)[^/]' \| \ 1448*6a54128fSAndroid Build Coastguard Worker X"$as_myself" : 'X\(//\)$' \| \ 1449*6a54128fSAndroid Build Coastguard Worker X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1450*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" X"$as_myself" | 1451*6a54128fSAndroid Build Coastguard Worker sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1452*6a54128fSAndroid Build Coastguard Worker s//\1/ 1453*6a54128fSAndroid Build Coastguard Worker q 1454*6a54128fSAndroid Build Coastguard Worker } 1455*6a54128fSAndroid Build Coastguard Worker /^X\(\/\/\)[^/].*/{ 1456*6a54128fSAndroid Build Coastguard Worker s//\1/ 1457*6a54128fSAndroid Build Coastguard Worker q 1458*6a54128fSAndroid Build Coastguard Worker } 1459*6a54128fSAndroid Build Coastguard Worker /^X\(\/\/\)$/{ 1460*6a54128fSAndroid Build Coastguard Worker s//\1/ 1461*6a54128fSAndroid Build Coastguard Worker q 1462*6a54128fSAndroid Build Coastguard Worker } 1463*6a54128fSAndroid Build Coastguard Worker /^X\(\/\).*/{ 1464*6a54128fSAndroid Build Coastguard Worker s//\1/ 1465*6a54128fSAndroid Build Coastguard Worker q 1466*6a54128fSAndroid Build Coastguard Worker } 1467*6a54128fSAndroid Build Coastguard Worker s/.*/./; q'` 1468*6a54128fSAndroid Build Coastguard Worker srcdir=$ac_confdir 1469*6a54128fSAndroid Build Coastguard Worker if test ! -r "$srcdir/$ac_unique_file"; then 1470*6a54128fSAndroid Build Coastguard Worker srcdir=.. 1471*6a54128fSAndroid Build Coastguard Worker fi 1472*6a54128fSAndroid Build Coastguard Workerelse 1473*6a54128fSAndroid Build Coastguard Worker ac_srcdir_defaulted=no 1474*6a54128fSAndroid Build Coastguard Workerfi 1475*6a54128fSAndroid Build Coastguard Workerif test ! -r "$srcdir/$ac_unique_file"; then 1476*6a54128fSAndroid Build Coastguard Worker test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1477*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1478*6a54128fSAndroid Build Coastguard Workerfi 1479*6a54128fSAndroid Build Coastguard Workerac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1480*6a54128fSAndroid Build Coastguard Workerac_abs_confdir=`( 1481*6a54128fSAndroid Build Coastguard Worker cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1482*6a54128fSAndroid Build Coastguard Worker pwd)` 1483*6a54128fSAndroid Build Coastguard Worker# When building in place, set srcdir=. 1484*6a54128fSAndroid Build Coastguard Workerif test "$ac_abs_confdir" = "$ac_pwd"; then 1485*6a54128fSAndroid Build Coastguard Worker srcdir=. 1486*6a54128fSAndroid Build Coastguard Workerfi 1487*6a54128fSAndroid Build Coastguard Worker# Remove unnecessary trailing slashes from srcdir. 1488*6a54128fSAndroid Build Coastguard Worker# Double slashes in file names in object file debugging info 1489*6a54128fSAndroid Build Coastguard Worker# mess up M-x gdb in Emacs. 1490*6a54128fSAndroid Build Coastguard Workercase $srcdir in 1491*6a54128fSAndroid Build Coastguard Worker*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1492*6a54128fSAndroid Build Coastguard Workeresac 1493*6a54128fSAndroid Build Coastguard Workerfor ac_var in $ac_precious_vars; do 1494*6a54128fSAndroid Build Coastguard Worker eval ac_env_${ac_var}_set=\${${ac_var}+set} 1495*6a54128fSAndroid Build Coastguard Worker eval ac_env_${ac_var}_value=\$${ac_var} 1496*6a54128fSAndroid Build Coastguard Worker eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1497*6a54128fSAndroid Build Coastguard Worker eval ac_cv_env_${ac_var}_value=\$${ac_var} 1498*6a54128fSAndroid Build Coastguard Workerdone 1499*6a54128fSAndroid Build Coastguard Worker 1500*6a54128fSAndroid Build Coastguard Worker# 1501*6a54128fSAndroid Build Coastguard Worker# Report the --help message. 1502*6a54128fSAndroid Build Coastguard Worker# 1503*6a54128fSAndroid Build Coastguard Workerif test "$ac_init_help" = "long"; then 1504*6a54128fSAndroid Build Coastguard Worker # Omit some internal or obsolete options to make the list less imposing. 1505*6a54128fSAndroid Build Coastguard Worker # This message is too long to be a string in the A/UX 3.1 sh. 1506*6a54128fSAndroid Build Coastguard Worker cat <<_ACEOF 1507*6a54128fSAndroid Build Coastguard Worker\`configure' configures this package to adapt to many kinds of systems. 1508*6a54128fSAndroid Build Coastguard Worker 1509*6a54128fSAndroid Build Coastguard WorkerUsage: $0 [OPTION]... [VAR=VALUE]... 1510*6a54128fSAndroid Build Coastguard Worker 1511*6a54128fSAndroid Build Coastguard WorkerTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1512*6a54128fSAndroid Build Coastguard WorkerVAR=VALUE. See below for descriptions of some of the useful variables. 1513*6a54128fSAndroid Build Coastguard Worker 1514*6a54128fSAndroid Build Coastguard WorkerDefaults for the options are specified in brackets. 1515*6a54128fSAndroid Build Coastguard Worker 1516*6a54128fSAndroid Build Coastguard WorkerConfiguration: 1517*6a54128fSAndroid Build Coastguard Worker -h, --help display this help and exit 1518*6a54128fSAndroid Build Coastguard Worker --help=short display options specific to this package 1519*6a54128fSAndroid Build Coastguard Worker --help=recursive display the short help of all the included packages 1520*6a54128fSAndroid Build Coastguard Worker -V, --version display version information and exit 1521*6a54128fSAndroid Build Coastguard Worker -q, --quiet, --silent do not print \`checking ...' messages 1522*6a54128fSAndroid Build Coastguard Worker --cache-file=FILE cache test results in FILE [disabled] 1523*6a54128fSAndroid Build Coastguard Worker -C, --config-cache alias for \`--cache-file=config.cache' 1524*6a54128fSAndroid Build Coastguard Worker -n, --no-create do not create output files 1525*6a54128fSAndroid Build Coastguard Worker --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1526*6a54128fSAndroid Build Coastguard Worker 1527*6a54128fSAndroid Build Coastguard WorkerInstallation directories: 1528*6a54128fSAndroid Build Coastguard Worker --prefix=PREFIX install architecture-independent files in PREFIX 1529*6a54128fSAndroid Build Coastguard Worker [$ac_default_prefix] 1530*6a54128fSAndroid Build Coastguard Worker --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1531*6a54128fSAndroid Build Coastguard Worker [PREFIX] 1532*6a54128fSAndroid Build Coastguard Worker 1533*6a54128fSAndroid Build Coastguard WorkerBy default, \`make install' will install all the files in 1534*6a54128fSAndroid Build Coastguard Worker\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1535*6a54128fSAndroid Build Coastguard Workeran installation prefix other than \`$ac_default_prefix' using \`--prefix', 1536*6a54128fSAndroid Build Coastguard Workerfor instance \`--prefix=\$HOME'. 1537*6a54128fSAndroid Build Coastguard Worker 1538*6a54128fSAndroid Build Coastguard WorkerFor better control, use the options below. 1539*6a54128fSAndroid Build Coastguard Worker 1540*6a54128fSAndroid Build Coastguard WorkerFine tuning of the installation directories: 1541*6a54128fSAndroid Build Coastguard Worker --bindir=DIR user executables [EPREFIX/bin] 1542*6a54128fSAndroid Build Coastguard Worker --sbindir=DIR system admin executables [EPREFIX/sbin] 1543*6a54128fSAndroid Build Coastguard Worker --libexecdir=DIR program executables [EPREFIX/libexec] 1544*6a54128fSAndroid Build Coastguard Worker --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1545*6a54128fSAndroid Build Coastguard Worker --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1546*6a54128fSAndroid Build Coastguard Worker --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1547*6a54128fSAndroid Build Coastguard Worker --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1548*6a54128fSAndroid Build Coastguard Worker --libdir=DIR object code libraries [EPREFIX/lib] 1549*6a54128fSAndroid Build Coastguard Worker --includedir=DIR C header files [PREFIX/include] 1550*6a54128fSAndroid Build Coastguard Worker --oldincludedir=DIR C header files for non-gcc [/usr/include] 1551*6a54128fSAndroid Build Coastguard Worker --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1552*6a54128fSAndroid Build Coastguard Worker --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1553*6a54128fSAndroid Build Coastguard Worker --infodir=DIR info documentation [DATAROOTDIR/info] 1554*6a54128fSAndroid Build Coastguard Worker --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1555*6a54128fSAndroid Build Coastguard Worker --mandir=DIR man documentation [DATAROOTDIR/man] 1556*6a54128fSAndroid Build Coastguard Worker --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1557*6a54128fSAndroid Build Coastguard Worker --htmldir=DIR html documentation [DOCDIR] 1558*6a54128fSAndroid Build Coastguard Worker --dvidir=DIR dvi documentation [DOCDIR] 1559*6a54128fSAndroid Build Coastguard Worker --pdfdir=DIR pdf documentation [DOCDIR] 1560*6a54128fSAndroid Build Coastguard Worker --psdir=DIR ps documentation [DOCDIR] 1561*6a54128fSAndroid Build Coastguard Worker_ACEOF 1562*6a54128fSAndroid Build Coastguard Worker 1563*6a54128fSAndroid Build Coastguard Worker cat <<\_ACEOF 1564*6a54128fSAndroid Build Coastguard Worker 1565*6a54128fSAndroid Build Coastguard WorkerSystem types: 1566*6a54128fSAndroid Build Coastguard Worker --build=BUILD configure for building on BUILD [guessed] 1567*6a54128fSAndroid Build Coastguard Worker --host=HOST cross-compile to build programs to run on HOST [BUILD] 1568*6a54128fSAndroid Build Coastguard Worker_ACEOF 1569*6a54128fSAndroid Build Coastguard Workerfi 1570*6a54128fSAndroid Build Coastguard Worker 1571*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_init_help"; then 1572*6a54128fSAndroid Build Coastguard Worker 1573*6a54128fSAndroid Build Coastguard Worker cat <<\_ACEOF 1574*6a54128fSAndroid Build Coastguard Worker 1575*6a54128fSAndroid Build Coastguard WorkerOptional Features: 1576*6a54128fSAndroid Build Coastguard Worker --disable-option-checking ignore unrecognized --enable/--with options 1577*6a54128fSAndroid Build Coastguard Worker --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1578*6a54128fSAndroid Build Coastguard Worker --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1579*6a54128fSAndroid Build Coastguard Worker --enable-maintainer-mode 1580*6a54128fSAndroid Build Coastguard Worker enable makefile rules useful for maintainers 1581*6a54128fSAndroid Build Coastguard Worker --enable-symlink-install 1582*6a54128fSAndroid Build Coastguard Worker use symlinks when installing instead of hard links 1583*6a54128fSAndroid Build Coastguard Worker --enable-relative-symlinks 1584*6a54128fSAndroid Build Coastguard Worker use relative symlinks when installing 1585*6a54128fSAndroid Build Coastguard Worker 1586*6a54128fSAndroid Build Coastguard Worker --enable-symlink-build use symlinks while building instead of hard links 1587*6a54128fSAndroid Build Coastguard Worker --enable-verbose-makecmds 1588*6a54128fSAndroid Build Coastguard Worker enable verbose make command output 1589*6a54128fSAndroid Build Coastguard Worker --enable-elf-shlibs select ELF shared libraries 1590*6a54128fSAndroid Build Coastguard Worker --enable-bsd-shlibs select BSD shared libraries 1591*6a54128fSAndroid Build Coastguard Worker --enable-profile build profiling libraries 1592*6a54128fSAndroid Build Coastguard Worker --enable-gcov build for coverage testing using gcov 1593*6a54128fSAndroid Build Coastguard Worker --enable-hardening build for coverage testing using gcov 1594*6a54128fSAndroid Build Coastguard Worker --enable-jbd-debug enable journal debugging 1595*6a54128fSAndroid Build Coastguard Worker --enable-blkid-debug enable blkid debugging 1596*6a54128fSAndroid Build Coastguard Worker --disable-testio-debug disable the use of the test I/O manager for 1597*6a54128fSAndroid Build Coastguard Worker debugging 1598*6a54128fSAndroid Build Coastguard Worker --enable-developer-features 1599*6a54128fSAndroid Build Coastguard Worker enable features for use by ext4 developers 1600*6a54128fSAndroid Build Coastguard Worker --enable-libuuid build and use private uuid library 1601*6a54128fSAndroid Build Coastguard Worker --enable-libblkid build and use private blkid library 1602*6a54128fSAndroid Build Coastguard Worker --enable-subset enable subset-only build 1603*6a54128fSAndroid Build Coastguard Worker --disable-backtrace disable use backtrace 1604*6a54128fSAndroid Build Coastguard Worker --disable-debugfs disable support of debugfs program 1605*6a54128fSAndroid Build Coastguard Worker --disable-imager disable support of e2image program 1606*6a54128fSAndroid Build Coastguard Worker --disable-resizer disable support of e2resize program 1607*6a54128fSAndroid Build Coastguard Worker --disable-defrag disable support of e4defrag program 1608*6a54128fSAndroid Build Coastguard Worker --enable-fsck build fsck wrapper program 1609*6a54128fSAndroid Build Coastguard Worker --enable-e2initrd-helper 1610*6a54128fSAndroid Build Coastguard Worker build e2initrd-helper program 1611*6a54128fSAndroid Build Coastguard Worker --disable-tls disable use of thread local support 1612*6a54128fSAndroid Build Coastguard Worker --disable-uuidd disable building the uuid daemon 1613*6a54128fSAndroid Build Coastguard Worker --disable-mmp disable support mmp, Multi Mount Protection 1614*6a54128fSAndroid Build Coastguard Worker --disable-tdb disable tdb support 1615*6a54128fSAndroid Build Coastguard Worker --disable-bmap-stats disable collection of bitmap stats 1616*6a54128fSAndroid Build Coastguard Worker --enable-bmap-stats-ops enable collection of additional bitmap stats 1617*6a54128fSAndroid Build Coastguard Worker --disable-nls do not use Native Language Support 1618*6a54128fSAndroid Build Coastguard Worker --disable-rpath do not hardcode runtime library paths 1619*6a54128fSAndroid Build Coastguard Worker --disable-fuse2fs do not build fuse2fs 1620*6a54128fSAndroid Build Coastguard Worker --enable-lto enable link time optimization 1621*6a54128fSAndroid Build Coastguard Worker --enable-ubsan enable undefined behavior sanitizer 1622*6a54128fSAndroid Build Coastguard Worker --enable-addrsan enable address sanitizer 1623*6a54128fSAndroid Build Coastguard Worker --enable-threadsan enable thread sanitizer 1624*6a54128fSAndroid Build Coastguard Worker --enable-fuzzing enable fuzzing sanitizer 1625*6a54128fSAndroid Build Coastguard Worker --disable-largefile omit support for large files 1626*6a54128fSAndroid Build Coastguard Worker 1627*6a54128fSAndroid Build Coastguard WorkerOptional Packages: 1628*6a54128fSAndroid Build Coastguard Worker --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1629*6a54128fSAndroid Build Coastguard Worker --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1630*6a54128fSAndroid Build Coastguard Worker --with-diet-libc use diet libc 1631*6a54128fSAndroid Build Coastguard Worker --with-cc no longer supported, use CC= instead 1632*6a54128fSAndroid Build Coastguard Worker --with-ccopts no longer supported, use CFLAGS= instead 1633*6a54128fSAndroid Build Coastguard Worker --with-ldopts no longer supported, use LDFLAGS= instead 1634*6a54128fSAndroid Build Coastguard Worker --with-root-prefix=PREFIX 1635*6a54128fSAndroid Build Coastguard Worker override prefix variable for files to be placed in 1636*6a54128fSAndroid Build Coastguard Worker the root 1637*6a54128fSAndroid Build Coastguard Worker --without-pthread disable use of pthread support 1638*6a54128fSAndroid Build Coastguard Worker --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1639*6a54128fSAndroid Build Coastguard Worker --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1640*6a54128fSAndroid Build Coastguard Worker --without-libiconv-prefix don't search for libiconv in includedir and libdir 1641*6a54128fSAndroid Build Coastguard Worker --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1642*6a54128fSAndroid Build Coastguard Worker --without-libintl-prefix don't search for libintl in includedir and libdir 1643*6a54128fSAndroid Build Coastguard Worker --with-multiarch=ARCH specify the multiarch triplet 1644*6a54128fSAndroid Build Coastguard Worker --with-udev-rules-dir[=DIR] 1645*6a54128fSAndroid Build Coastguard Worker Install udev rules into DIR. 1646*6a54128fSAndroid Build Coastguard Worker --with-crond-dir[=DIR] Install system crontabs into DIR. 1647*6a54128fSAndroid Build Coastguard Worker --with-systemd-unit-dir[=DIR] 1648*6a54128fSAndroid Build Coastguard Worker Install systemd system units into DIR. 1649*6a54128fSAndroid Build Coastguard Worker 1650*6a54128fSAndroid Build Coastguard WorkerSome influential environment variables: 1651*6a54128fSAndroid Build Coastguard Worker CC C compiler command 1652*6a54128fSAndroid Build Coastguard Worker CFLAGS C compiler flags 1653*6a54128fSAndroid Build Coastguard Worker LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1654*6a54128fSAndroid Build Coastguard Worker nonstandard directory <lib dir> 1655*6a54128fSAndroid Build Coastguard Worker LIBS libraries to pass to the linker, e.g. -l<library> 1656*6a54128fSAndroid Build Coastguard Worker CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1657*6a54128fSAndroid Build Coastguard Worker you have headers in a nonstandard directory <include dir> 1658*6a54128fSAndroid Build Coastguard Worker CPP C preprocessor 1659*6a54128fSAndroid Build Coastguard Worker PKG_CONFIG path to pkg-config utility 1660*6a54128fSAndroid Build Coastguard Worker PKG_CONFIG_PATH 1661*6a54128fSAndroid Build Coastguard Worker directories to add to pkg-config's search path 1662*6a54128fSAndroid Build Coastguard Worker PKG_CONFIG_LIBDIR 1663*6a54128fSAndroid Build Coastguard Worker path overriding pkg-config's built-in search path 1664*6a54128fSAndroid Build Coastguard Worker CXX C++ compiler command 1665*6a54128fSAndroid Build Coastguard Worker CXXFLAGS C++ compiler flags 1666*6a54128fSAndroid Build Coastguard Worker udev_CFLAGS C compiler flags for udev, overriding pkg-config 1667*6a54128fSAndroid Build Coastguard Worker udev_LIBS linker flags for udev, overriding pkg-config 1668*6a54128fSAndroid Build Coastguard Worker systemd_CFLAGS 1669*6a54128fSAndroid Build Coastguard Worker C compiler flags for systemd, overriding pkg-config 1670*6a54128fSAndroid Build Coastguard Worker systemd_LIBS 1671*6a54128fSAndroid Build Coastguard Worker linker flags for systemd, overriding pkg-config 1672*6a54128fSAndroid Build Coastguard Worker 1673*6a54128fSAndroid Build Coastguard WorkerUse these variables to override the choices made by `configure' or to help 1674*6a54128fSAndroid Build Coastguard Workerit to find libraries and programs with nonstandard names/locations. 1675*6a54128fSAndroid Build Coastguard Worker 1676*6a54128fSAndroid Build Coastguard WorkerReport bugs to the package provider. 1677*6a54128fSAndroid Build Coastguard Worker_ACEOF 1678*6a54128fSAndroid Build Coastguard Workerac_status=$? 1679*6a54128fSAndroid Build Coastguard Workerfi 1680*6a54128fSAndroid Build Coastguard Worker 1681*6a54128fSAndroid Build Coastguard Workerif test "$ac_init_help" = "recursive"; then 1682*6a54128fSAndroid Build Coastguard Worker # If there are subdirs, report their specific --help. 1683*6a54128fSAndroid Build Coastguard Worker for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1684*6a54128fSAndroid Build Coastguard Worker test -d "$ac_dir" || 1685*6a54128fSAndroid Build Coastguard Worker { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1686*6a54128fSAndroid Build Coastguard Worker continue 1687*6a54128fSAndroid Build Coastguard Worker ac_builddir=. 1688*6a54128fSAndroid Build Coastguard Worker 1689*6a54128fSAndroid Build Coastguard Workercase "$ac_dir" in 1690*6a54128fSAndroid Build Coastguard Worker.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1691*6a54128fSAndroid Build Coastguard Worker*) 1692*6a54128fSAndroid Build Coastguard Worker ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1693*6a54128fSAndroid Build Coastguard Worker # A ".." for each directory in $ac_dir_suffix. 1694*6a54128fSAndroid Build Coastguard Worker ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1695*6a54128fSAndroid Build Coastguard Worker case $ac_top_builddir_sub in 1696*6a54128fSAndroid Build Coastguard Worker "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1697*6a54128fSAndroid Build Coastguard Worker *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1698*6a54128fSAndroid Build Coastguard Worker esac ;; 1699*6a54128fSAndroid Build Coastguard Workeresac 1700*6a54128fSAndroid Build Coastguard Workerac_abs_top_builddir=$ac_pwd 1701*6a54128fSAndroid Build Coastguard Workerac_abs_builddir=$ac_pwd$ac_dir_suffix 1702*6a54128fSAndroid Build Coastguard Worker# for backward compatibility: 1703*6a54128fSAndroid Build Coastguard Workerac_top_builddir=$ac_top_build_prefix 1704*6a54128fSAndroid Build Coastguard Worker 1705*6a54128fSAndroid Build Coastguard Workercase $srcdir in 1706*6a54128fSAndroid Build Coastguard Worker .) # We are building in place. 1707*6a54128fSAndroid Build Coastguard Worker ac_srcdir=. 1708*6a54128fSAndroid Build Coastguard Worker ac_top_srcdir=$ac_top_builddir_sub 1709*6a54128fSAndroid Build Coastguard Worker ac_abs_top_srcdir=$ac_pwd ;; 1710*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]* ) # Absolute name. 1711*6a54128fSAndroid Build Coastguard Worker ac_srcdir=$srcdir$ac_dir_suffix; 1712*6a54128fSAndroid Build Coastguard Worker ac_top_srcdir=$srcdir 1713*6a54128fSAndroid Build Coastguard Worker ac_abs_top_srcdir=$srcdir ;; 1714*6a54128fSAndroid Build Coastguard Worker *) # Relative name. 1715*6a54128fSAndroid Build Coastguard Worker ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1716*6a54128fSAndroid Build Coastguard Worker ac_top_srcdir=$ac_top_build_prefix$srcdir 1717*6a54128fSAndroid Build Coastguard Worker ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1718*6a54128fSAndroid Build Coastguard Workeresac 1719*6a54128fSAndroid Build Coastguard Workerac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1720*6a54128fSAndroid Build Coastguard Worker 1721*6a54128fSAndroid Build Coastguard Worker cd "$ac_dir" || { ac_status=$?; continue; } 1722*6a54128fSAndroid Build Coastguard Worker # Check for configure.gnu first; this name is used for a wrapper for 1723*6a54128fSAndroid Build Coastguard Worker # Metaconfig's "Configure" on case-insensitive file systems. 1724*6a54128fSAndroid Build Coastguard Worker if test -f "$ac_srcdir/configure.gnu"; then 1725*6a54128fSAndroid Build Coastguard Worker echo && 1726*6a54128fSAndroid Build Coastguard Worker $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1727*6a54128fSAndroid Build Coastguard Worker elif test -f "$ac_srcdir/configure"; then 1728*6a54128fSAndroid Build Coastguard Worker echo && 1729*6a54128fSAndroid Build Coastguard Worker $SHELL "$ac_srcdir/configure" --help=recursive 1730*6a54128fSAndroid Build Coastguard Worker else 1731*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1732*6a54128fSAndroid Build Coastguard Worker fi || ac_status=$? 1733*6a54128fSAndroid Build Coastguard Worker cd "$ac_pwd" || { ac_status=$?; break; } 1734*6a54128fSAndroid Build Coastguard Worker done 1735*6a54128fSAndroid Build Coastguard Workerfi 1736*6a54128fSAndroid Build Coastguard Worker 1737*6a54128fSAndroid Build Coastguard Workertest -n "$ac_init_help" && exit $ac_status 1738*6a54128fSAndroid Build Coastguard Workerif $ac_init_version; then 1739*6a54128fSAndroid Build Coastguard Worker cat <<\_ACEOF 1740*6a54128fSAndroid Build Coastguard Workerconfigure 1741*6a54128fSAndroid Build Coastguard Workergenerated by GNU Autoconf 2.71 1742*6a54128fSAndroid Build Coastguard Worker 1743*6a54128fSAndroid Build Coastguard WorkerCopyright (C) 2021 Free Software Foundation, Inc. 1744*6a54128fSAndroid Build Coastguard WorkerThis configure script is free software; the Free Software Foundation 1745*6a54128fSAndroid Build Coastguard Workergives unlimited permission to copy, distribute and modify it. 1746*6a54128fSAndroid Build Coastguard Worker_ACEOF 1747*6a54128fSAndroid Build Coastguard Worker exit 1748*6a54128fSAndroid Build Coastguard Workerfi 1749*6a54128fSAndroid Build Coastguard Worker 1750*6a54128fSAndroid Build Coastguard Worker## ------------------------ ## 1751*6a54128fSAndroid Build Coastguard Worker## Autoconf initialization. ## 1752*6a54128fSAndroid Build Coastguard Worker## ------------------------ ## 1753*6a54128fSAndroid Build Coastguard Worker 1754*6a54128fSAndroid Build Coastguard Worker# ac_fn_c_try_compile LINENO 1755*6a54128fSAndroid Build Coastguard Worker# -------------------------- 1756*6a54128fSAndroid Build Coastguard Worker# Try to compile conftest.$ac_ext, and return whether this succeeded. 1757*6a54128fSAndroid Build Coastguard Workerac_fn_c_try_compile () 1758*6a54128fSAndroid Build Coastguard Worker{ 1759*6a54128fSAndroid Build Coastguard Worker as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1760*6a54128fSAndroid Build Coastguard Worker rm -f conftest.$ac_objext conftest.beam 1761*6a54128fSAndroid Build Coastguard Worker if { { ac_try="$ac_compile" 1762*6a54128fSAndroid Build Coastguard Workercase "(($ac_try" in 1763*6a54128fSAndroid Build Coastguard Worker *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1764*6a54128fSAndroid Build Coastguard Worker *) ac_try_echo=$ac_try;; 1765*6a54128fSAndroid Build Coastguard Workeresac 1766*6a54128fSAndroid Build Coastguard Workereval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1767*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_try_echo"; } >&5 1768*6a54128fSAndroid Build Coastguard Worker (eval "$ac_compile") 2>conftest.err 1769*6a54128fSAndroid Build Coastguard Worker ac_status=$? 1770*6a54128fSAndroid Build Coastguard Worker if test -s conftest.err; then 1771*6a54128fSAndroid Build Coastguard Worker grep -v '^ *+' conftest.err >conftest.er1 1772*6a54128fSAndroid Build Coastguard Worker cat conftest.er1 >&5 1773*6a54128fSAndroid Build Coastguard Worker mv -f conftest.er1 conftest.err 1774*6a54128fSAndroid Build Coastguard Worker fi 1775*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1776*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; } && { 1777*6a54128fSAndroid Build Coastguard Worker test -z "$ac_c_werror_flag" || 1778*6a54128fSAndroid Build Coastguard Worker test ! -s conftest.err 1779*6a54128fSAndroid Build Coastguard Worker } && test -s conftest.$ac_objext 1780*6a54128fSAndroid Build Coastguard Workerthen : 1781*6a54128fSAndroid Build Coastguard Worker ac_retval=0 1782*6a54128fSAndroid Build Coastguard Workerelse $as_nop 1783*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me: failed program was:" >&5 1784*6a54128fSAndroid Build Coastguard Workersed 's/^/| /' conftest.$ac_ext >&5 1785*6a54128fSAndroid Build Coastguard Worker 1786*6a54128fSAndroid Build Coastguard Worker ac_retval=1 1787*6a54128fSAndroid Build Coastguard Workerfi 1788*6a54128fSAndroid Build Coastguard Worker eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1789*6a54128fSAndroid Build Coastguard Worker as_fn_set_status $ac_retval 1790*6a54128fSAndroid Build Coastguard Worker 1791*6a54128fSAndroid Build Coastguard Worker} # ac_fn_c_try_compile 1792*6a54128fSAndroid Build Coastguard Worker 1793*6a54128fSAndroid Build Coastguard Worker# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1794*6a54128fSAndroid Build Coastguard Worker# ------------------------------------------------------- 1795*6a54128fSAndroid Build Coastguard Worker# Tests whether HEADER exists and can be compiled using the include files in 1796*6a54128fSAndroid Build Coastguard Worker# INCLUDES, setting the cache variable VAR accordingly. 1797*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile () 1798*6a54128fSAndroid Build Coastguard Worker{ 1799*6a54128fSAndroid Build Coastguard Worker as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1800*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1801*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $2... " >&6; } 1802*6a54128fSAndroid Build Coastguard Workerif eval test \${$3+y} 1803*6a54128fSAndroid Build Coastguard Workerthen : 1804*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 1805*6a54128fSAndroid Build Coastguard Workerelse $as_nop 1806*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1807*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 1808*6a54128fSAndroid Build Coastguard Worker$4 1809*6a54128fSAndroid Build Coastguard Worker#include <$2> 1810*6a54128fSAndroid Build Coastguard Worker_ACEOF 1811*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 1812*6a54128fSAndroid Build Coastguard Workerthen : 1813*6a54128fSAndroid Build Coastguard Worker eval "$3=yes" 1814*6a54128fSAndroid Build Coastguard Workerelse $as_nop 1815*6a54128fSAndroid Build Coastguard Worker eval "$3=no" 1816*6a54128fSAndroid Build Coastguard Workerfi 1817*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1818*6a54128fSAndroid Build Coastguard Workerfi 1819*6a54128fSAndroid Build Coastguard Workereval ac_res=\$$3 1820*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1821*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_res" >&6; } 1822*6a54128fSAndroid Build Coastguard Worker eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1823*6a54128fSAndroid Build Coastguard Worker 1824*6a54128fSAndroid Build Coastguard Worker} # ac_fn_c_check_header_compile 1825*6a54128fSAndroid Build Coastguard Worker 1826*6a54128fSAndroid Build Coastguard Worker# ac_fn_c_try_link LINENO 1827*6a54128fSAndroid Build Coastguard Worker# ----------------------- 1828*6a54128fSAndroid Build Coastguard Worker# Try to link conftest.$ac_ext, and return whether this succeeded. 1829*6a54128fSAndroid Build Coastguard Workerac_fn_c_try_link () 1830*6a54128fSAndroid Build Coastguard Worker{ 1831*6a54128fSAndroid Build Coastguard Worker as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1832*6a54128fSAndroid Build Coastguard Worker rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1833*6a54128fSAndroid Build Coastguard Worker if { { ac_try="$ac_link" 1834*6a54128fSAndroid Build Coastguard Workercase "(($ac_try" in 1835*6a54128fSAndroid Build Coastguard Worker *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1836*6a54128fSAndroid Build Coastguard Worker *) ac_try_echo=$ac_try;; 1837*6a54128fSAndroid Build Coastguard Workeresac 1838*6a54128fSAndroid Build Coastguard Workereval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1839*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_try_echo"; } >&5 1840*6a54128fSAndroid Build Coastguard Worker (eval "$ac_link") 2>conftest.err 1841*6a54128fSAndroid Build Coastguard Worker ac_status=$? 1842*6a54128fSAndroid Build Coastguard Worker if test -s conftest.err; then 1843*6a54128fSAndroid Build Coastguard Worker grep -v '^ *+' conftest.err >conftest.er1 1844*6a54128fSAndroid Build Coastguard Worker cat conftest.er1 >&5 1845*6a54128fSAndroid Build Coastguard Worker mv -f conftest.er1 conftest.err 1846*6a54128fSAndroid Build Coastguard Worker fi 1847*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1848*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; } && { 1849*6a54128fSAndroid Build Coastguard Worker test -z "$ac_c_werror_flag" || 1850*6a54128fSAndroid Build Coastguard Worker test ! -s conftest.err 1851*6a54128fSAndroid Build Coastguard Worker } && test -s conftest$ac_exeext && { 1852*6a54128fSAndroid Build Coastguard Worker test "$cross_compiling" = yes || 1853*6a54128fSAndroid Build Coastguard Worker test -x conftest$ac_exeext 1854*6a54128fSAndroid Build Coastguard Worker } 1855*6a54128fSAndroid Build Coastguard Workerthen : 1856*6a54128fSAndroid Build Coastguard Worker ac_retval=0 1857*6a54128fSAndroid Build Coastguard Workerelse $as_nop 1858*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me: failed program was:" >&5 1859*6a54128fSAndroid Build Coastguard Workersed 's/^/| /' conftest.$ac_ext >&5 1860*6a54128fSAndroid Build Coastguard Worker 1861*6a54128fSAndroid Build Coastguard Worker ac_retval=1 1862*6a54128fSAndroid Build Coastguard Workerfi 1863*6a54128fSAndroid Build Coastguard Worker # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1864*6a54128fSAndroid Build Coastguard Worker # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1865*6a54128fSAndroid Build Coastguard Worker # interfere with the next link command; also delete a directory that is 1866*6a54128fSAndroid Build Coastguard Worker # left behind by Apple's compiler. We do this before executing the actions. 1867*6a54128fSAndroid Build Coastguard Worker rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1868*6a54128fSAndroid Build Coastguard Worker eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1869*6a54128fSAndroid Build Coastguard Worker as_fn_set_status $ac_retval 1870*6a54128fSAndroid Build Coastguard Worker 1871*6a54128fSAndroid Build Coastguard Worker} # ac_fn_c_try_link 1872*6a54128fSAndroid Build Coastguard Worker 1873*6a54128fSAndroid Build Coastguard Worker# ac_fn_c_try_cpp LINENO 1874*6a54128fSAndroid Build Coastguard Worker# ---------------------- 1875*6a54128fSAndroid Build Coastguard Worker# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1876*6a54128fSAndroid Build Coastguard Workerac_fn_c_try_cpp () 1877*6a54128fSAndroid Build Coastguard Worker{ 1878*6a54128fSAndroid Build Coastguard Worker as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1879*6a54128fSAndroid Build Coastguard Worker if { { ac_try="$ac_cpp conftest.$ac_ext" 1880*6a54128fSAndroid Build Coastguard Workercase "(($ac_try" in 1881*6a54128fSAndroid Build Coastguard Worker *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1882*6a54128fSAndroid Build Coastguard Worker *) ac_try_echo=$ac_try;; 1883*6a54128fSAndroid Build Coastguard Workeresac 1884*6a54128fSAndroid Build Coastguard Workereval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1885*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_try_echo"; } >&5 1886*6a54128fSAndroid Build Coastguard Worker (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1887*6a54128fSAndroid Build Coastguard Worker ac_status=$? 1888*6a54128fSAndroid Build Coastguard Worker if test -s conftest.err; then 1889*6a54128fSAndroid Build Coastguard Worker grep -v '^ *+' conftest.err >conftest.er1 1890*6a54128fSAndroid Build Coastguard Worker cat conftest.er1 >&5 1891*6a54128fSAndroid Build Coastguard Worker mv -f conftest.er1 conftest.err 1892*6a54128fSAndroid Build Coastguard Worker fi 1893*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1894*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; } > conftest.i && { 1895*6a54128fSAndroid Build Coastguard Worker test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1896*6a54128fSAndroid Build Coastguard Worker test ! -s conftest.err 1897*6a54128fSAndroid Build Coastguard Worker } 1898*6a54128fSAndroid Build Coastguard Workerthen : 1899*6a54128fSAndroid Build Coastguard Worker ac_retval=0 1900*6a54128fSAndroid Build Coastguard Workerelse $as_nop 1901*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me: failed program was:" >&5 1902*6a54128fSAndroid Build Coastguard Workersed 's/^/| /' conftest.$ac_ext >&5 1903*6a54128fSAndroid Build Coastguard Worker 1904*6a54128fSAndroid Build Coastguard Worker ac_retval=1 1905*6a54128fSAndroid Build Coastguard Workerfi 1906*6a54128fSAndroid Build Coastguard Worker eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1907*6a54128fSAndroid Build Coastguard Worker as_fn_set_status $ac_retval 1908*6a54128fSAndroid Build Coastguard Worker 1909*6a54128fSAndroid Build Coastguard Worker} # ac_fn_c_try_cpp 1910*6a54128fSAndroid Build Coastguard Worker 1911*6a54128fSAndroid Build Coastguard Worker# ac_fn_c_try_run LINENO 1912*6a54128fSAndroid Build Coastguard Worker# ---------------------- 1913*6a54128fSAndroid Build Coastguard Worker# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1914*6a54128fSAndroid Build Coastguard Worker# executables *can* be run. 1915*6a54128fSAndroid Build Coastguard Workerac_fn_c_try_run () 1916*6a54128fSAndroid Build Coastguard Worker{ 1917*6a54128fSAndroid Build Coastguard Worker as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1918*6a54128fSAndroid Build Coastguard Worker if { { ac_try="$ac_link" 1919*6a54128fSAndroid Build Coastguard Workercase "(($ac_try" in 1920*6a54128fSAndroid Build Coastguard Worker *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1921*6a54128fSAndroid Build Coastguard Worker *) ac_try_echo=$ac_try;; 1922*6a54128fSAndroid Build Coastguard Workeresac 1923*6a54128fSAndroid Build Coastguard Workereval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1924*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_try_echo"; } >&5 1925*6a54128fSAndroid Build Coastguard Worker (eval "$ac_link") 2>&5 1926*6a54128fSAndroid Build Coastguard Worker ac_status=$? 1927*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1928*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1929*6a54128fSAndroid Build Coastguard Worker { { case "(($ac_try" in 1930*6a54128fSAndroid Build Coastguard Worker *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1931*6a54128fSAndroid Build Coastguard Worker *) ac_try_echo=$ac_try;; 1932*6a54128fSAndroid Build Coastguard Workeresac 1933*6a54128fSAndroid Build Coastguard Workereval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1934*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_try_echo"; } >&5 1935*6a54128fSAndroid Build Coastguard Worker (eval "$ac_try") 2>&5 1936*6a54128fSAndroid Build Coastguard Worker ac_status=$? 1937*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1938*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; }; } 1939*6a54128fSAndroid Build Coastguard Workerthen : 1940*6a54128fSAndroid Build Coastguard Worker ac_retval=0 1941*6a54128fSAndroid Build Coastguard Workerelse $as_nop 1942*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1943*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me: failed program was:" >&5 1944*6a54128fSAndroid Build Coastguard Workersed 's/^/| /' conftest.$ac_ext >&5 1945*6a54128fSAndroid Build Coastguard Worker 1946*6a54128fSAndroid Build Coastguard Worker ac_retval=$ac_status 1947*6a54128fSAndroid Build Coastguard Workerfi 1948*6a54128fSAndroid Build Coastguard Worker rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1949*6a54128fSAndroid Build Coastguard Worker eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1950*6a54128fSAndroid Build Coastguard Worker as_fn_set_status $ac_retval 1951*6a54128fSAndroid Build Coastguard Worker 1952*6a54128fSAndroid Build Coastguard Worker} # ac_fn_c_try_run 1953*6a54128fSAndroid Build Coastguard Worker 1954*6a54128fSAndroid Build Coastguard Worker# ac_fn_c_check_func LINENO FUNC VAR 1955*6a54128fSAndroid Build Coastguard Worker# ---------------------------------- 1956*6a54128fSAndroid Build Coastguard Worker# Tests whether FUNC exists, setting the cache variable VAR accordingly 1957*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func () 1958*6a54128fSAndroid Build Coastguard Worker{ 1959*6a54128fSAndroid Build Coastguard Worker as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1960*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1961*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $2... " >&6; } 1962*6a54128fSAndroid Build Coastguard Workerif eval test \${$3+y} 1963*6a54128fSAndroid Build Coastguard Workerthen : 1964*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 1965*6a54128fSAndroid Build Coastguard Workerelse $as_nop 1966*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1967*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 1968*6a54128fSAndroid Build Coastguard Worker/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1969*6a54128fSAndroid Build Coastguard Worker For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1970*6a54128fSAndroid Build Coastguard Worker#define $2 innocuous_$2 1971*6a54128fSAndroid Build Coastguard Worker 1972*6a54128fSAndroid Build Coastguard Worker/* System header to define __stub macros and hopefully few prototypes, 1973*6a54128fSAndroid Build Coastguard Worker which can conflict with char $2 (); below. */ 1974*6a54128fSAndroid Build Coastguard Worker 1975*6a54128fSAndroid Build Coastguard Worker#include <limits.h> 1976*6a54128fSAndroid Build Coastguard Worker#undef $2 1977*6a54128fSAndroid Build Coastguard Worker 1978*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 1979*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 1980*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 1981*6a54128fSAndroid Build Coastguard Worker#ifdef __cplusplus 1982*6a54128fSAndroid Build Coastguard Workerextern "C" 1983*6a54128fSAndroid Build Coastguard Worker#endif 1984*6a54128fSAndroid Build Coastguard Workerchar $2 (); 1985*6a54128fSAndroid Build Coastguard Worker/* The GNU C library defines this for functions which it implements 1986*6a54128fSAndroid Build Coastguard Worker to always fail with ENOSYS. Some functions are actually named 1987*6a54128fSAndroid Build Coastguard Worker something starting with __ and the normal name is an alias. */ 1988*6a54128fSAndroid Build Coastguard Worker#if defined __stub_$2 || defined __stub___$2 1989*6a54128fSAndroid Build Coastguard Workerchoke me 1990*6a54128fSAndroid Build Coastguard Worker#endif 1991*6a54128fSAndroid Build Coastguard Worker 1992*6a54128fSAndroid Build Coastguard Workerint 1993*6a54128fSAndroid Build Coastguard Workermain (void) 1994*6a54128fSAndroid Build Coastguard Worker{ 1995*6a54128fSAndroid Build Coastguard Workerreturn $2 (); 1996*6a54128fSAndroid Build Coastguard Worker ; 1997*6a54128fSAndroid Build Coastguard Worker return 0; 1998*6a54128fSAndroid Build Coastguard Worker} 1999*6a54128fSAndroid Build Coastguard Worker_ACEOF 2000*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 2001*6a54128fSAndroid Build Coastguard Workerthen : 2002*6a54128fSAndroid Build Coastguard Worker eval "$3=yes" 2003*6a54128fSAndroid Build Coastguard Workerelse $as_nop 2004*6a54128fSAndroid Build Coastguard Worker eval "$3=no" 2005*6a54128fSAndroid Build Coastguard Workerfi 2006*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 2007*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 2008*6a54128fSAndroid Build Coastguard Workerfi 2009*6a54128fSAndroid Build Coastguard Workereval ac_res=\$$3 2010*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2011*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_res" >&6; } 2012*6a54128fSAndroid Build Coastguard Worker eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2013*6a54128fSAndroid Build Coastguard Worker 2014*6a54128fSAndroid Build Coastguard Worker} # ac_fn_c_check_func 2015*6a54128fSAndroid Build Coastguard Worker 2016*6a54128fSAndroid Build Coastguard Worker# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2017*6a54128fSAndroid Build Coastguard Worker# ---------------------------------------------------- 2018*6a54128fSAndroid Build Coastguard Worker# Tries to find if the field MEMBER exists in type AGGR, after including 2019*6a54128fSAndroid Build Coastguard Worker# INCLUDES, setting cache variable VAR accordingly. 2020*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_member () 2021*6a54128fSAndroid Build Coastguard Worker{ 2022*6a54128fSAndroid Build Coastguard Worker as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2023*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2024*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $2.$3... " >&6; } 2025*6a54128fSAndroid Build Coastguard Workerif eval test \${$4+y} 2026*6a54128fSAndroid Build Coastguard Workerthen : 2027*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 2028*6a54128fSAndroid Build Coastguard Workerelse $as_nop 2029*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2030*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 2031*6a54128fSAndroid Build Coastguard Worker$5 2032*6a54128fSAndroid Build Coastguard Workerint 2033*6a54128fSAndroid Build Coastguard Workermain (void) 2034*6a54128fSAndroid Build Coastguard Worker{ 2035*6a54128fSAndroid Build Coastguard Workerstatic $2 ac_aggr; 2036*6a54128fSAndroid Build Coastguard Workerif (ac_aggr.$3) 2037*6a54128fSAndroid Build Coastguard Workerreturn 0; 2038*6a54128fSAndroid Build Coastguard Worker ; 2039*6a54128fSAndroid Build Coastguard Worker return 0; 2040*6a54128fSAndroid Build Coastguard Worker} 2041*6a54128fSAndroid Build Coastguard Worker_ACEOF 2042*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 2043*6a54128fSAndroid Build Coastguard Workerthen : 2044*6a54128fSAndroid Build Coastguard Worker eval "$4=yes" 2045*6a54128fSAndroid Build Coastguard Workerelse $as_nop 2046*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 2048*6a54128fSAndroid Build Coastguard Worker$5 2049*6a54128fSAndroid Build Coastguard Workerint 2050*6a54128fSAndroid Build Coastguard Workermain (void) 2051*6a54128fSAndroid Build Coastguard Worker{ 2052*6a54128fSAndroid Build Coastguard Workerstatic $2 ac_aggr; 2053*6a54128fSAndroid Build Coastguard Workerif (sizeof ac_aggr.$3) 2054*6a54128fSAndroid Build Coastguard Workerreturn 0; 2055*6a54128fSAndroid Build Coastguard Worker ; 2056*6a54128fSAndroid Build Coastguard Worker return 0; 2057*6a54128fSAndroid Build Coastguard Worker} 2058*6a54128fSAndroid Build Coastguard Worker_ACEOF 2059*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 2060*6a54128fSAndroid Build Coastguard Workerthen : 2061*6a54128fSAndroid Build Coastguard Worker eval "$4=yes" 2062*6a54128fSAndroid Build Coastguard Workerelse $as_nop 2063*6a54128fSAndroid Build Coastguard Worker eval "$4=no" 2064*6a54128fSAndroid Build Coastguard Workerfi 2065*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2066*6a54128fSAndroid Build Coastguard Workerfi 2067*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2068*6a54128fSAndroid Build Coastguard Workerfi 2069*6a54128fSAndroid Build Coastguard Workereval ac_res=\$$4 2070*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2071*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_res" >&6; } 2072*6a54128fSAndroid Build Coastguard Worker eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2073*6a54128fSAndroid Build Coastguard Worker 2074*6a54128fSAndroid Build Coastguard Worker} # ac_fn_c_check_member 2075*6a54128fSAndroid Build Coastguard Worker 2076*6a54128fSAndroid Build Coastguard Worker# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2077*6a54128fSAndroid Build Coastguard Worker# ------------------------------------------- 2078*6a54128fSAndroid Build Coastguard Worker# Tests whether TYPE exists after having included INCLUDES, setting cache 2079*6a54128fSAndroid Build Coastguard Worker# variable VAR accordingly. 2080*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_type () 2081*6a54128fSAndroid Build Coastguard Worker{ 2082*6a54128fSAndroid Build Coastguard Worker as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2083*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2084*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $2... " >&6; } 2085*6a54128fSAndroid Build Coastguard Workerif eval test \${$3+y} 2086*6a54128fSAndroid Build Coastguard Workerthen : 2087*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 2088*6a54128fSAndroid Build Coastguard Workerelse $as_nop 2089*6a54128fSAndroid Build Coastguard Worker eval "$3=no" 2090*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2091*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 2092*6a54128fSAndroid Build Coastguard Worker$4 2093*6a54128fSAndroid Build Coastguard Workerint 2094*6a54128fSAndroid Build Coastguard Workermain (void) 2095*6a54128fSAndroid Build Coastguard Worker{ 2096*6a54128fSAndroid Build Coastguard Workerif (sizeof ($2)) 2097*6a54128fSAndroid Build Coastguard Worker return 0; 2098*6a54128fSAndroid Build Coastguard Worker ; 2099*6a54128fSAndroid Build Coastguard Worker return 0; 2100*6a54128fSAndroid Build Coastguard Worker} 2101*6a54128fSAndroid Build Coastguard Worker_ACEOF 2102*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 2103*6a54128fSAndroid Build Coastguard Workerthen : 2104*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2105*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 2106*6a54128fSAndroid Build Coastguard Worker$4 2107*6a54128fSAndroid Build Coastguard Workerint 2108*6a54128fSAndroid Build Coastguard Workermain (void) 2109*6a54128fSAndroid Build Coastguard Worker{ 2110*6a54128fSAndroid Build Coastguard Workerif (sizeof (($2))) 2111*6a54128fSAndroid Build Coastguard Worker return 0; 2112*6a54128fSAndroid Build Coastguard Worker ; 2113*6a54128fSAndroid Build Coastguard Worker return 0; 2114*6a54128fSAndroid Build Coastguard Worker} 2115*6a54128fSAndroid Build Coastguard Worker_ACEOF 2116*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 2117*6a54128fSAndroid Build Coastguard Workerthen : 2118*6a54128fSAndroid Build Coastguard Worker 2119*6a54128fSAndroid Build Coastguard Workerelse $as_nop 2120*6a54128fSAndroid Build Coastguard Worker eval "$3=yes" 2121*6a54128fSAndroid Build Coastguard Workerfi 2122*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2123*6a54128fSAndroid Build Coastguard Workerfi 2124*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2125*6a54128fSAndroid Build Coastguard Workerfi 2126*6a54128fSAndroid Build Coastguard Workereval ac_res=\$$3 2127*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2128*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_res" >&6; } 2129*6a54128fSAndroid Build Coastguard Worker eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2130*6a54128fSAndroid Build Coastguard Worker 2131*6a54128fSAndroid Build Coastguard Worker} # ac_fn_c_check_type 2132*6a54128fSAndroid Build Coastguard Worker 2133*6a54128fSAndroid Build Coastguard Worker# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2134*6a54128fSAndroid Build Coastguard Worker# ------------------------------------------------------------------ 2135*6a54128fSAndroid Build Coastguard Worker# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2136*6a54128fSAndroid Build Coastguard Worker# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2137*6a54128fSAndroid Build Coastguard Workerac_fn_check_decl () 2138*6a54128fSAndroid Build Coastguard Worker{ 2139*6a54128fSAndroid Build Coastguard Worker as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2140*6a54128fSAndroid Build Coastguard Worker as_decl_name=`echo $2|sed 's/ *(.*//'` 2141*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2142*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether $as_decl_name is declared... " >&6; } 2143*6a54128fSAndroid Build Coastguard Workerif eval test \${$3+y} 2144*6a54128fSAndroid Build Coastguard Workerthen : 2145*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 2146*6a54128fSAndroid Build Coastguard Workerelse $as_nop 2147*6a54128fSAndroid Build Coastguard Worker as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2148*6a54128fSAndroid Build Coastguard Worker eval ac_save_FLAGS=\$$6 2149*6a54128fSAndroid Build Coastguard Worker as_fn_append $6 " $5" 2150*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2151*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 2152*6a54128fSAndroid Build Coastguard Worker$4 2153*6a54128fSAndroid Build Coastguard Workerint 2154*6a54128fSAndroid Build Coastguard Workermain (void) 2155*6a54128fSAndroid Build Coastguard Worker{ 2156*6a54128fSAndroid Build Coastguard Worker#ifndef $as_decl_name 2157*6a54128fSAndroid Build Coastguard Worker#ifdef __cplusplus 2158*6a54128fSAndroid Build Coastguard Worker (void) $as_decl_use; 2159*6a54128fSAndroid Build Coastguard Worker#else 2160*6a54128fSAndroid Build Coastguard Worker (void) $as_decl_name; 2161*6a54128fSAndroid Build Coastguard Worker#endif 2162*6a54128fSAndroid Build Coastguard Worker#endif 2163*6a54128fSAndroid Build Coastguard Worker 2164*6a54128fSAndroid Build Coastguard Worker ; 2165*6a54128fSAndroid Build Coastguard Worker return 0; 2166*6a54128fSAndroid Build Coastguard Worker} 2167*6a54128fSAndroid Build Coastguard Worker_ACEOF 2168*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 2169*6a54128fSAndroid Build Coastguard Workerthen : 2170*6a54128fSAndroid Build Coastguard Worker eval "$3=yes" 2171*6a54128fSAndroid Build Coastguard Workerelse $as_nop 2172*6a54128fSAndroid Build Coastguard Worker eval "$3=no" 2173*6a54128fSAndroid Build Coastguard Workerfi 2174*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2175*6a54128fSAndroid Build Coastguard Worker eval $6=\$ac_save_FLAGS 2176*6a54128fSAndroid Build Coastguard Worker 2177*6a54128fSAndroid Build Coastguard Workerfi 2178*6a54128fSAndroid Build Coastguard Workereval ac_res=\$$3 2179*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2180*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_res" >&6; } 2181*6a54128fSAndroid Build Coastguard Worker eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2182*6a54128fSAndroid Build Coastguard Worker 2183*6a54128fSAndroid Build Coastguard Worker} # ac_fn_check_decl 2184*6a54128fSAndroid Build Coastguard Worker 2185*6a54128fSAndroid Build Coastguard Worker# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2186*6a54128fSAndroid Build Coastguard Worker# -------------------------------------------- 2187*6a54128fSAndroid Build Coastguard Worker# Tries to find the compile-time value of EXPR in a program that includes 2188*6a54128fSAndroid Build Coastguard Worker# INCLUDES, setting VAR accordingly. Returns whether the value could be 2189*6a54128fSAndroid Build Coastguard Worker# computed 2190*6a54128fSAndroid Build Coastguard Workerac_fn_c_compute_int () 2191*6a54128fSAndroid Build Coastguard Worker{ 2192*6a54128fSAndroid Build Coastguard Worker as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2193*6a54128fSAndroid Build Coastguard Worker if test "$cross_compiling" = yes; then 2194*6a54128fSAndroid Build Coastguard Worker # Depending upon the size, compute the lo and hi bounds. 2195*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 2196*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 2197*6a54128fSAndroid Build Coastguard Worker$4 2198*6a54128fSAndroid Build Coastguard Workerint 2199*6a54128fSAndroid Build Coastguard Workermain (void) 2200*6a54128fSAndroid Build Coastguard Worker{ 2201*6a54128fSAndroid Build Coastguard Workerstatic int test_array [1 - 2 * !(($2) >= 0)]; 2202*6a54128fSAndroid Build Coastguard Workertest_array [0] = 0; 2203*6a54128fSAndroid Build Coastguard Workerreturn test_array [0]; 2204*6a54128fSAndroid Build Coastguard Worker 2205*6a54128fSAndroid Build Coastguard Worker ; 2206*6a54128fSAndroid Build Coastguard Worker return 0; 2207*6a54128fSAndroid Build Coastguard Worker} 2208*6a54128fSAndroid Build Coastguard Worker_ACEOF 2209*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 2210*6a54128fSAndroid Build Coastguard Workerthen : 2211*6a54128fSAndroid Build Coastguard Worker ac_lo=0 ac_mid=0 2212*6a54128fSAndroid Build Coastguard Worker while :; do 2213*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2214*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 2215*6a54128fSAndroid Build Coastguard Worker$4 2216*6a54128fSAndroid Build Coastguard Workerint 2217*6a54128fSAndroid Build Coastguard Workermain (void) 2218*6a54128fSAndroid Build Coastguard Worker{ 2219*6a54128fSAndroid Build Coastguard Workerstatic int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2220*6a54128fSAndroid Build Coastguard Workertest_array [0] = 0; 2221*6a54128fSAndroid Build Coastguard Workerreturn test_array [0]; 2222*6a54128fSAndroid Build Coastguard Worker 2223*6a54128fSAndroid Build Coastguard Worker ; 2224*6a54128fSAndroid Build Coastguard Worker return 0; 2225*6a54128fSAndroid Build Coastguard Worker} 2226*6a54128fSAndroid Build Coastguard Worker_ACEOF 2227*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 2228*6a54128fSAndroid Build Coastguard Workerthen : 2229*6a54128fSAndroid Build Coastguard Worker ac_hi=$ac_mid; break 2230*6a54128fSAndroid Build Coastguard Workerelse $as_nop 2231*6a54128fSAndroid Build Coastguard Worker as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2232*6a54128fSAndroid Build Coastguard Worker if test $ac_lo -le $ac_mid; then 2233*6a54128fSAndroid Build Coastguard Worker ac_lo= ac_hi= 2234*6a54128fSAndroid Build Coastguard Worker break 2235*6a54128fSAndroid Build Coastguard Worker fi 2236*6a54128fSAndroid Build Coastguard Worker as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2237*6a54128fSAndroid Build Coastguard Workerfi 2238*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2239*6a54128fSAndroid Build Coastguard Worker done 2240*6a54128fSAndroid Build Coastguard Workerelse $as_nop 2241*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2242*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 2243*6a54128fSAndroid Build Coastguard Worker$4 2244*6a54128fSAndroid Build Coastguard Workerint 2245*6a54128fSAndroid Build Coastguard Workermain (void) 2246*6a54128fSAndroid Build Coastguard Worker{ 2247*6a54128fSAndroid Build Coastguard Workerstatic int test_array [1 - 2 * !(($2) < 0)]; 2248*6a54128fSAndroid Build Coastguard Workertest_array [0] = 0; 2249*6a54128fSAndroid Build Coastguard Workerreturn test_array [0]; 2250*6a54128fSAndroid Build Coastguard Worker 2251*6a54128fSAndroid Build Coastguard Worker ; 2252*6a54128fSAndroid Build Coastguard Worker return 0; 2253*6a54128fSAndroid Build Coastguard Worker} 2254*6a54128fSAndroid Build Coastguard Worker_ACEOF 2255*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 2256*6a54128fSAndroid Build Coastguard Workerthen : 2257*6a54128fSAndroid Build Coastguard Worker ac_hi=-1 ac_mid=-1 2258*6a54128fSAndroid Build Coastguard Worker while :; do 2259*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2260*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 2261*6a54128fSAndroid Build Coastguard Worker$4 2262*6a54128fSAndroid Build Coastguard Workerint 2263*6a54128fSAndroid Build Coastguard Workermain (void) 2264*6a54128fSAndroid Build Coastguard Worker{ 2265*6a54128fSAndroid Build Coastguard Workerstatic int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2266*6a54128fSAndroid Build Coastguard Workertest_array [0] = 0; 2267*6a54128fSAndroid Build Coastguard Workerreturn test_array [0]; 2268*6a54128fSAndroid Build Coastguard Worker 2269*6a54128fSAndroid Build Coastguard Worker ; 2270*6a54128fSAndroid Build Coastguard Worker return 0; 2271*6a54128fSAndroid Build Coastguard Worker} 2272*6a54128fSAndroid Build Coastguard Worker_ACEOF 2273*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 2274*6a54128fSAndroid Build Coastguard Workerthen : 2275*6a54128fSAndroid Build Coastguard Worker ac_lo=$ac_mid; break 2276*6a54128fSAndroid Build Coastguard Workerelse $as_nop 2277*6a54128fSAndroid Build Coastguard Worker as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2278*6a54128fSAndroid Build Coastguard Worker if test $ac_mid -le $ac_hi; then 2279*6a54128fSAndroid Build Coastguard Worker ac_lo= ac_hi= 2280*6a54128fSAndroid Build Coastguard Worker break 2281*6a54128fSAndroid Build Coastguard Worker fi 2282*6a54128fSAndroid Build Coastguard Worker as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2283*6a54128fSAndroid Build Coastguard Workerfi 2284*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2285*6a54128fSAndroid Build Coastguard Worker done 2286*6a54128fSAndroid Build Coastguard Workerelse $as_nop 2287*6a54128fSAndroid Build Coastguard Worker ac_lo= ac_hi= 2288*6a54128fSAndroid Build Coastguard Workerfi 2289*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2290*6a54128fSAndroid Build Coastguard Workerfi 2291*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2292*6a54128fSAndroid Build Coastguard Worker# Binary search between lo and hi bounds. 2293*6a54128fSAndroid Build Coastguard Workerwhile test "x$ac_lo" != "x$ac_hi"; do 2294*6a54128fSAndroid Build Coastguard Worker as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2295*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2296*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 2297*6a54128fSAndroid Build Coastguard Worker$4 2298*6a54128fSAndroid Build Coastguard Workerint 2299*6a54128fSAndroid Build Coastguard Workermain (void) 2300*6a54128fSAndroid Build Coastguard Worker{ 2301*6a54128fSAndroid Build Coastguard Workerstatic int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2302*6a54128fSAndroid Build Coastguard Workertest_array [0] = 0; 2303*6a54128fSAndroid Build Coastguard Workerreturn test_array [0]; 2304*6a54128fSAndroid Build Coastguard Worker 2305*6a54128fSAndroid Build Coastguard Worker ; 2306*6a54128fSAndroid Build Coastguard Worker return 0; 2307*6a54128fSAndroid Build Coastguard Worker} 2308*6a54128fSAndroid Build Coastguard Worker_ACEOF 2309*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 2310*6a54128fSAndroid Build Coastguard Workerthen : 2311*6a54128fSAndroid Build Coastguard Worker ac_hi=$ac_mid 2312*6a54128fSAndroid Build Coastguard Workerelse $as_nop 2313*6a54128fSAndroid Build Coastguard Worker as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2314*6a54128fSAndroid Build Coastguard Workerfi 2315*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2316*6a54128fSAndroid Build Coastguard Workerdone 2317*6a54128fSAndroid Build Coastguard Workercase $ac_lo in #(( 2318*6a54128fSAndroid Build Coastguard Worker?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2319*6a54128fSAndroid Build Coastguard Worker'') ac_retval=1 ;; 2320*6a54128fSAndroid Build Coastguard Workeresac 2321*6a54128fSAndroid Build Coastguard Worker else 2322*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2323*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 2324*6a54128fSAndroid Build Coastguard Worker$4 2325*6a54128fSAndroid Build Coastguard Workerstatic long int longval (void) { return $2; } 2326*6a54128fSAndroid Build Coastguard Workerstatic unsigned long int ulongval (void) { return $2; } 2327*6a54128fSAndroid Build Coastguard Worker#include <stdio.h> 2328*6a54128fSAndroid Build Coastguard Worker#include <stdlib.h> 2329*6a54128fSAndroid Build Coastguard Workerint 2330*6a54128fSAndroid Build Coastguard Workermain (void) 2331*6a54128fSAndroid Build Coastguard Worker{ 2332*6a54128fSAndroid Build Coastguard Worker 2333*6a54128fSAndroid Build Coastguard Worker FILE *f = fopen ("conftest.val", "w"); 2334*6a54128fSAndroid Build Coastguard Worker if (! f) 2335*6a54128fSAndroid Build Coastguard Worker return 1; 2336*6a54128fSAndroid Build Coastguard Worker if (($2) < 0) 2337*6a54128fSAndroid Build Coastguard Worker { 2338*6a54128fSAndroid Build Coastguard Worker long int i = longval (); 2339*6a54128fSAndroid Build Coastguard Worker if (i != ($2)) 2340*6a54128fSAndroid Build Coastguard Worker return 1; 2341*6a54128fSAndroid Build Coastguard Worker fprintf (f, "%ld", i); 2342*6a54128fSAndroid Build Coastguard Worker } 2343*6a54128fSAndroid Build Coastguard Worker else 2344*6a54128fSAndroid Build Coastguard Worker { 2345*6a54128fSAndroid Build Coastguard Worker unsigned long int i = ulongval (); 2346*6a54128fSAndroid Build Coastguard Worker if (i != ($2)) 2347*6a54128fSAndroid Build Coastguard Worker return 1; 2348*6a54128fSAndroid Build Coastguard Worker fprintf (f, "%lu", i); 2349*6a54128fSAndroid Build Coastguard Worker } 2350*6a54128fSAndroid Build Coastguard Worker /* Do not output a trailing newline, as this causes \r\n confusion 2351*6a54128fSAndroid Build Coastguard Worker on some platforms. */ 2352*6a54128fSAndroid Build Coastguard Worker return ferror (f) || fclose (f) != 0; 2353*6a54128fSAndroid Build Coastguard Worker 2354*6a54128fSAndroid Build Coastguard Worker ; 2355*6a54128fSAndroid Build Coastguard Worker return 0; 2356*6a54128fSAndroid Build Coastguard Worker} 2357*6a54128fSAndroid Build Coastguard Worker_ACEOF 2358*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_run "$LINENO" 2359*6a54128fSAndroid Build Coastguard Workerthen : 2360*6a54128fSAndroid Build Coastguard Worker echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2361*6a54128fSAndroid Build Coastguard Workerelse $as_nop 2362*6a54128fSAndroid Build Coastguard Worker ac_retval=1 2363*6a54128fSAndroid Build Coastguard Workerfi 2364*6a54128fSAndroid Build Coastguard Workerrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2365*6a54128fSAndroid Build Coastguard Worker conftest.$ac_objext conftest.beam conftest.$ac_ext 2366*6a54128fSAndroid Build Coastguard Workerrm -f conftest.val 2367*6a54128fSAndroid Build Coastguard Worker 2368*6a54128fSAndroid Build Coastguard Worker fi 2369*6a54128fSAndroid Build Coastguard Worker eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2370*6a54128fSAndroid Build Coastguard Worker as_fn_set_status $ac_retval 2371*6a54128fSAndroid Build Coastguard Worker 2372*6a54128fSAndroid Build Coastguard Worker} # ac_fn_c_compute_int 2373*6a54128fSAndroid Build Coastguard Worker 2374*6a54128fSAndroid Build Coastguard Worker# ac_fn_cxx_try_compile LINENO 2375*6a54128fSAndroid Build Coastguard Worker# ---------------------------- 2376*6a54128fSAndroid Build Coastguard Worker# Try to compile conftest.$ac_ext, and return whether this succeeded. 2377*6a54128fSAndroid Build Coastguard Workerac_fn_cxx_try_compile () 2378*6a54128fSAndroid Build Coastguard Worker{ 2379*6a54128fSAndroid Build Coastguard Worker as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2380*6a54128fSAndroid Build Coastguard Worker rm -f conftest.$ac_objext conftest.beam 2381*6a54128fSAndroid Build Coastguard Worker if { { ac_try="$ac_compile" 2382*6a54128fSAndroid Build Coastguard Workercase "(($ac_try" in 2383*6a54128fSAndroid Build Coastguard Worker *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2384*6a54128fSAndroid Build Coastguard Worker *) ac_try_echo=$ac_try;; 2385*6a54128fSAndroid Build Coastguard Workeresac 2386*6a54128fSAndroid Build Coastguard Workereval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2387*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_try_echo"; } >&5 2388*6a54128fSAndroid Build Coastguard Worker (eval "$ac_compile") 2>conftest.err 2389*6a54128fSAndroid Build Coastguard Worker ac_status=$? 2390*6a54128fSAndroid Build Coastguard Worker if test -s conftest.err; then 2391*6a54128fSAndroid Build Coastguard Worker grep -v '^ *+' conftest.err >conftest.er1 2392*6a54128fSAndroid Build Coastguard Worker cat conftest.er1 >&5 2393*6a54128fSAndroid Build Coastguard Worker mv -f conftest.er1 conftest.err 2394*6a54128fSAndroid Build Coastguard Worker fi 2395*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2396*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; } && { 2397*6a54128fSAndroid Build Coastguard Worker test -z "$ac_cxx_werror_flag" || 2398*6a54128fSAndroid Build Coastguard Worker test ! -s conftest.err 2399*6a54128fSAndroid Build Coastguard Worker } && test -s conftest.$ac_objext 2400*6a54128fSAndroid Build Coastguard Workerthen : 2401*6a54128fSAndroid Build Coastguard Worker ac_retval=0 2402*6a54128fSAndroid Build Coastguard Workerelse $as_nop 2403*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me: failed program was:" >&5 2404*6a54128fSAndroid Build Coastguard Workersed 's/^/| /' conftest.$ac_ext >&5 2405*6a54128fSAndroid Build Coastguard Worker 2406*6a54128fSAndroid Build Coastguard Worker ac_retval=1 2407*6a54128fSAndroid Build Coastguard Workerfi 2408*6a54128fSAndroid Build Coastguard Worker eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2409*6a54128fSAndroid Build Coastguard Worker as_fn_set_status $ac_retval 2410*6a54128fSAndroid Build Coastguard Worker 2411*6a54128fSAndroid Build Coastguard Worker} # ac_fn_cxx_try_compile 2412*6a54128fSAndroid Build Coastguard Workerac_configure_args_raw= 2413*6a54128fSAndroid Build Coastguard Workerfor ac_arg 2414*6a54128fSAndroid Build Coastguard Workerdo 2415*6a54128fSAndroid Build Coastguard Worker case $ac_arg in 2416*6a54128fSAndroid Build Coastguard Worker *\'*) 2417*6a54128fSAndroid Build Coastguard Worker ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2418*6a54128fSAndroid Build Coastguard Worker esac 2419*6a54128fSAndroid Build Coastguard Worker as_fn_append ac_configure_args_raw " '$ac_arg'" 2420*6a54128fSAndroid Build Coastguard Workerdone 2421*6a54128fSAndroid Build Coastguard Worker 2422*6a54128fSAndroid Build Coastguard Workercase $ac_configure_args_raw in 2423*6a54128fSAndroid Build Coastguard Worker *$as_nl*) 2424*6a54128fSAndroid Build Coastguard Worker ac_safe_unquote= ;; 2425*6a54128fSAndroid Build Coastguard Worker *) 2426*6a54128fSAndroid Build Coastguard Worker ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2427*6a54128fSAndroid Build Coastguard Worker ac_unsafe_a="$ac_unsafe_z#~" 2428*6a54128fSAndroid Build Coastguard Worker ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2429*6a54128fSAndroid Build Coastguard Worker ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2430*6a54128fSAndroid Build Coastguard Workeresac 2431*6a54128fSAndroid Build Coastguard Worker 2432*6a54128fSAndroid Build Coastguard Workercat >config.log <<_ACEOF 2433*6a54128fSAndroid Build Coastguard WorkerThis file contains any messages produced by compilers while 2434*6a54128fSAndroid Build Coastguard Workerrunning configure, to aid debugging if configure makes a mistake. 2435*6a54128fSAndroid Build Coastguard Worker 2436*6a54128fSAndroid Build Coastguard WorkerIt was created by $as_me, which was 2437*6a54128fSAndroid Build Coastguard Workergenerated by GNU Autoconf 2.71. Invocation command line was 2438*6a54128fSAndroid Build Coastguard Worker 2439*6a54128fSAndroid Build Coastguard Worker $ $0$ac_configure_args_raw 2440*6a54128fSAndroid Build Coastguard Worker 2441*6a54128fSAndroid Build Coastguard Worker_ACEOF 2442*6a54128fSAndroid Build Coastguard Workerexec 5>>config.log 2443*6a54128fSAndroid Build Coastguard Worker{ 2444*6a54128fSAndroid Build Coastguard Workercat <<_ASUNAME 2445*6a54128fSAndroid Build Coastguard Worker## --------- ## 2446*6a54128fSAndroid Build Coastguard Worker## Platform. ## 2447*6a54128fSAndroid Build Coastguard Worker## --------- ## 2448*6a54128fSAndroid Build Coastguard Worker 2449*6a54128fSAndroid Build Coastguard Workerhostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2450*6a54128fSAndroid Build Coastguard Workeruname -m = `(uname -m) 2>/dev/null || echo unknown` 2451*6a54128fSAndroid Build Coastguard Workeruname -r = `(uname -r) 2>/dev/null || echo unknown` 2452*6a54128fSAndroid Build Coastguard Workeruname -s = `(uname -s) 2>/dev/null || echo unknown` 2453*6a54128fSAndroid Build Coastguard Workeruname -v = `(uname -v) 2>/dev/null || echo unknown` 2454*6a54128fSAndroid Build Coastguard Worker 2455*6a54128fSAndroid Build Coastguard Worker/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2456*6a54128fSAndroid Build Coastguard Worker/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2457*6a54128fSAndroid Build Coastguard Worker 2458*6a54128fSAndroid Build Coastguard Worker/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2459*6a54128fSAndroid Build Coastguard Worker/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2460*6a54128fSAndroid Build Coastguard Worker/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2461*6a54128fSAndroid Build Coastguard Worker/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2462*6a54128fSAndroid Build Coastguard Worker/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2463*6a54128fSAndroid Build Coastguard Worker/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2464*6a54128fSAndroid Build Coastguard Worker/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2465*6a54128fSAndroid Build Coastguard Worker 2466*6a54128fSAndroid Build Coastguard Worker_ASUNAME 2467*6a54128fSAndroid Build Coastguard Worker 2468*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2469*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 2470*6a54128fSAndroid Build Coastguard Workerdo 2471*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 2472*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 2473*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 2474*6a54128fSAndroid Build Coastguard Worker */) ;; 2475*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 2476*6a54128fSAndroid Build Coastguard Worker esac 2477*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "PATH: $as_dir" 2478*6a54128fSAndroid Build Coastguard Worker done 2479*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 2480*6a54128fSAndroid Build Coastguard Worker 2481*6a54128fSAndroid Build Coastguard Worker} >&5 2482*6a54128fSAndroid Build Coastguard Worker 2483*6a54128fSAndroid Build Coastguard Workercat >&5 <<_ACEOF 2484*6a54128fSAndroid Build Coastguard Worker 2485*6a54128fSAndroid Build Coastguard Worker 2486*6a54128fSAndroid Build Coastguard Worker## ----------- ## 2487*6a54128fSAndroid Build Coastguard Worker## Core tests. ## 2488*6a54128fSAndroid Build Coastguard Worker## ----------- ## 2489*6a54128fSAndroid Build Coastguard Worker 2490*6a54128fSAndroid Build Coastguard Worker_ACEOF 2491*6a54128fSAndroid Build Coastguard Worker 2492*6a54128fSAndroid Build Coastguard Worker 2493*6a54128fSAndroid Build Coastguard Worker# Keep a trace of the command line. 2494*6a54128fSAndroid Build Coastguard Worker# Strip out --no-create and --no-recursion so they do not pile up. 2495*6a54128fSAndroid Build Coastguard Worker# Strip out --silent because we don't want to record it for future runs. 2496*6a54128fSAndroid Build Coastguard Worker# Also quote any args containing shell meta-characters. 2497*6a54128fSAndroid Build Coastguard Worker# Make two passes to allow for proper duplicate-argument suppression. 2498*6a54128fSAndroid Build Coastguard Workerac_configure_args= 2499*6a54128fSAndroid Build Coastguard Workerac_configure_args0= 2500*6a54128fSAndroid Build Coastguard Workerac_configure_args1= 2501*6a54128fSAndroid Build Coastguard Workerac_must_keep_next=false 2502*6a54128fSAndroid Build Coastguard Workerfor ac_pass in 1 2 2503*6a54128fSAndroid Build Coastguard Workerdo 2504*6a54128fSAndroid Build Coastguard Worker for ac_arg 2505*6a54128fSAndroid Build Coastguard Worker do 2506*6a54128fSAndroid Build Coastguard Worker case $ac_arg in 2507*6a54128fSAndroid Build Coastguard Worker -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2508*6a54128fSAndroid Build Coastguard Worker -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2509*6a54128fSAndroid Build Coastguard Worker | -silent | --silent | --silen | --sile | --sil) 2510*6a54128fSAndroid Build Coastguard Worker continue ;; 2511*6a54128fSAndroid Build Coastguard Worker *\'*) 2512*6a54128fSAndroid Build Coastguard Worker ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2513*6a54128fSAndroid Build Coastguard Worker esac 2514*6a54128fSAndroid Build Coastguard Worker case $ac_pass in 2515*6a54128fSAndroid Build Coastguard Worker 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2516*6a54128fSAndroid Build Coastguard Worker 2) 2517*6a54128fSAndroid Build Coastguard Worker as_fn_append ac_configure_args1 " '$ac_arg'" 2518*6a54128fSAndroid Build Coastguard Worker if test $ac_must_keep_next = true; then 2519*6a54128fSAndroid Build Coastguard Worker ac_must_keep_next=false # Got value, back to normal. 2520*6a54128fSAndroid Build Coastguard Worker else 2521*6a54128fSAndroid Build Coastguard Worker case $ac_arg in 2522*6a54128fSAndroid Build Coastguard Worker *=* | --config-cache | -C | -disable-* | --disable-* \ 2523*6a54128fSAndroid Build Coastguard Worker | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2524*6a54128fSAndroid Build Coastguard Worker | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2525*6a54128fSAndroid Build Coastguard Worker | -with-* | --with-* | -without-* | --without-* | --x) 2526*6a54128fSAndroid Build Coastguard Worker case "$ac_configure_args0 " in 2527*6a54128fSAndroid Build Coastguard Worker "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2528*6a54128fSAndroid Build Coastguard Worker esac 2529*6a54128fSAndroid Build Coastguard Worker ;; 2530*6a54128fSAndroid Build Coastguard Worker -* ) ac_must_keep_next=true ;; 2531*6a54128fSAndroid Build Coastguard Worker esac 2532*6a54128fSAndroid Build Coastguard Worker fi 2533*6a54128fSAndroid Build Coastguard Worker as_fn_append ac_configure_args " '$ac_arg'" 2534*6a54128fSAndroid Build Coastguard Worker ;; 2535*6a54128fSAndroid Build Coastguard Worker esac 2536*6a54128fSAndroid Build Coastguard Worker done 2537*6a54128fSAndroid Build Coastguard Workerdone 2538*6a54128fSAndroid Build Coastguard Worker{ ac_configure_args0=; unset ac_configure_args0;} 2539*6a54128fSAndroid Build Coastguard Worker{ ac_configure_args1=; unset ac_configure_args1;} 2540*6a54128fSAndroid Build Coastguard Worker 2541*6a54128fSAndroid Build Coastguard Worker# When interrupted or exit'd, cleanup temporary files, and complete 2542*6a54128fSAndroid Build Coastguard Worker# config.log. We remove comments because anyway the quotes in there 2543*6a54128fSAndroid Build Coastguard Worker# would cause problems or look ugly. 2544*6a54128fSAndroid Build Coastguard Worker# WARNING: Use '\'' to represent an apostrophe within the trap. 2545*6a54128fSAndroid Build Coastguard Worker# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2546*6a54128fSAndroid Build Coastguard Workertrap 'exit_status=$? 2547*6a54128fSAndroid Build Coastguard Worker # Sanitize IFS. 2548*6a54128fSAndroid Build Coastguard Worker IFS=" "" $as_nl" 2549*6a54128fSAndroid Build Coastguard Worker # Save into config.log some information that might help in debugging. 2550*6a54128fSAndroid Build Coastguard Worker { 2551*6a54128fSAndroid Build Coastguard Worker echo 2552*6a54128fSAndroid Build Coastguard Worker 2553*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "## ---------------- ## 2554*6a54128fSAndroid Build Coastguard Worker## Cache variables. ## 2555*6a54128fSAndroid Build Coastguard Worker## ---------------- ##" 2556*6a54128fSAndroid Build Coastguard Worker echo 2557*6a54128fSAndroid Build Coastguard Worker # The following way of writing the cache mishandles newlines in values, 2558*6a54128fSAndroid Build Coastguard Worker( 2559*6a54128fSAndroid Build Coastguard Worker for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2560*6a54128fSAndroid Build Coastguard Worker eval ac_val=\$$ac_var 2561*6a54128fSAndroid Build Coastguard Worker case $ac_val in #( 2562*6a54128fSAndroid Build Coastguard Worker *${as_nl}*) 2563*6a54128fSAndroid Build Coastguard Worker case $ac_var in #( 2564*6a54128fSAndroid Build Coastguard Worker *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2565*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2566*6a54128fSAndroid Build Coastguard Worker esac 2567*6a54128fSAndroid Build Coastguard Worker case $ac_var in #( 2568*6a54128fSAndroid Build Coastguard Worker _ | IFS | as_nl) ;; #( 2569*6a54128fSAndroid Build Coastguard Worker BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2570*6a54128fSAndroid Build Coastguard Worker *) { eval $ac_var=; unset $ac_var;} ;; 2571*6a54128fSAndroid Build Coastguard Worker esac ;; 2572*6a54128fSAndroid Build Coastguard Worker esac 2573*6a54128fSAndroid Build Coastguard Worker done 2574*6a54128fSAndroid Build Coastguard Worker (set) 2>&1 | 2575*6a54128fSAndroid Build Coastguard Worker case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2576*6a54128fSAndroid Build Coastguard Worker *${as_nl}ac_space=\ *) 2577*6a54128fSAndroid Build Coastguard Worker sed -n \ 2578*6a54128fSAndroid Build Coastguard Worker "s/'\''/'\''\\\\'\'''\''/g; 2579*6a54128fSAndroid Build Coastguard Worker s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2580*6a54128fSAndroid Build Coastguard Worker ;; #( 2581*6a54128fSAndroid Build Coastguard Worker *) 2582*6a54128fSAndroid Build Coastguard Worker sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2583*6a54128fSAndroid Build Coastguard Worker ;; 2584*6a54128fSAndroid Build Coastguard Worker esac | 2585*6a54128fSAndroid Build Coastguard Worker sort 2586*6a54128fSAndroid Build Coastguard Worker) 2587*6a54128fSAndroid Build Coastguard Worker echo 2588*6a54128fSAndroid Build Coastguard Worker 2589*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "## ----------------- ## 2590*6a54128fSAndroid Build Coastguard Worker## Output variables. ## 2591*6a54128fSAndroid Build Coastguard Worker## ----------------- ##" 2592*6a54128fSAndroid Build Coastguard Worker echo 2593*6a54128fSAndroid Build Coastguard Worker for ac_var in $ac_subst_vars 2594*6a54128fSAndroid Build Coastguard Worker do 2595*6a54128fSAndroid Build Coastguard Worker eval ac_val=\$$ac_var 2596*6a54128fSAndroid Build Coastguard Worker case $ac_val in 2597*6a54128fSAndroid Build Coastguard Worker *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2598*6a54128fSAndroid Build Coastguard Worker esac 2599*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$ac_var='\''$ac_val'\''" 2600*6a54128fSAndroid Build Coastguard Worker done | sort 2601*6a54128fSAndroid Build Coastguard Worker echo 2602*6a54128fSAndroid Build Coastguard Worker 2603*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_subst_files"; then 2604*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "## ------------------- ## 2605*6a54128fSAndroid Build Coastguard Worker## File substitutions. ## 2606*6a54128fSAndroid Build Coastguard Worker## ------------------- ##" 2607*6a54128fSAndroid Build Coastguard Worker echo 2608*6a54128fSAndroid Build Coastguard Worker for ac_var in $ac_subst_files 2609*6a54128fSAndroid Build Coastguard Worker do 2610*6a54128fSAndroid Build Coastguard Worker eval ac_val=\$$ac_var 2611*6a54128fSAndroid Build Coastguard Worker case $ac_val in 2612*6a54128fSAndroid Build Coastguard Worker *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2613*6a54128fSAndroid Build Coastguard Worker esac 2614*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$ac_var='\''$ac_val'\''" 2615*6a54128fSAndroid Build Coastguard Worker done | sort 2616*6a54128fSAndroid Build Coastguard Worker echo 2617*6a54128fSAndroid Build Coastguard Worker fi 2618*6a54128fSAndroid Build Coastguard Worker 2619*6a54128fSAndroid Build Coastguard Worker if test -s confdefs.h; then 2620*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "## ----------- ## 2621*6a54128fSAndroid Build Coastguard Worker## confdefs.h. ## 2622*6a54128fSAndroid Build Coastguard Worker## ----------- ##" 2623*6a54128fSAndroid Build Coastguard Worker echo 2624*6a54128fSAndroid Build Coastguard Worker cat confdefs.h 2625*6a54128fSAndroid Build Coastguard Worker echo 2626*6a54128fSAndroid Build Coastguard Worker fi 2627*6a54128fSAndroid Build Coastguard Worker test "$ac_signal" != 0 && 2628*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me: caught signal $ac_signal" 2629*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me: exit $exit_status" 2630*6a54128fSAndroid Build Coastguard Worker } >&5 2631*6a54128fSAndroid Build Coastguard Worker rm -f core *.core core.conftest.* && 2632*6a54128fSAndroid Build Coastguard Worker rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2633*6a54128fSAndroid Build Coastguard Worker exit $exit_status 2634*6a54128fSAndroid Build Coastguard Worker' 0 2635*6a54128fSAndroid Build Coastguard Workerfor ac_signal in 1 2 13 15; do 2636*6a54128fSAndroid Build Coastguard Worker trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2637*6a54128fSAndroid Build Coastguard Workerdone 2638*6a54128fSAndroid Build Coastguard Workerac_signal=0 2639*6a54128fSAndroid Build Coastguard Worker 2640*6a54128fSAndroid Build Coastguard Worker# confdefs.h avoids OS command line length limits that DEFS can exceed. 2641*6a54128fSAndroid Build Coastguard Workerrm -f -r conftest* confdefs.h 2642*6a54128fSAndroid Build Coastguard Worker 2643*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "/* confdefs.h */" > confdefs.h 2644*6a54128fSAndroid Build Coastguard Worker 2645*6a54128fSAndroid Build Coastguard Worker# Predefined preprocessor variables. 2646*6a54128fSAndroid Build Coastguard Worker 2647*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2648*6a54128fSAndroid Build Coastguard Worker 2649*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2650*6a54128fSAndroid Build Coastguard Worker 2651*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2652*6a54128fSAndroid Build Coastguard Worker 2653*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2654*6a54128fSAndroid Build Coastguard Worker 2655*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2656*6a54128fSAndroid Build Coastguard Worker 2657*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2658*6a54128fSAndroid Build Coastguard Worker 2659*6a54128fSAndroid Build Coastguard Worker 2660*6a54128fSAndroid Build Coastguard Worker# Let the site file select an alternate cache file if it wants to. 2661*6a54128fSAndroid Build Coastguard Worker# Prefer an explicitly selected file to automatically selected ones. 2662*6a54128fSAndroid Build Coastguard Workerif test -n "$CONFIG_SITE"; then 2663*6a54128fSAndroid Build Coastguard Worker ac_site_files="$CONFIG_SITE" 2664*6a54128fSAndroid Build Coastguard Workerelif test "x$prefix" != xNONE; then 2665*6a54128fSAndroid Build Coastguard Worker ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2666*6a54128fSAndroid Build Coastguard Workerelse 2667*6a54128fSAndroid Build Coastguard Worker ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2668*6a54128fSAndroid Build Coastguard Workerfi 2669*6a54128fSAndroid Build Coastguard Worker 2670*6a54128fSAndroid Build Coastguard Workerfor ac_site_file in $ac_site_files 2671*6a54128fSAndroid Build Coastguard Workerdo 2672*6a54128fSAndroid Build Coastguard Worker case $ac_site_file in #( 2673*6a54128fSAndroid Build Coastguard Worker */*) : 2674*6a54128fSAndroid Build Coastguard Worker ;; #( 2675*6a54128fSAndroid Build Coastguard Worker *) : 2676*6a54128fSAndroid Build Coastguard Worker ac_site_file=./$ac_site_file ;; 2677*6a54128fSAndroid Build Coastguard Workeresac 2678*6a54128fSAndroid Build Coastguard Worker if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2679*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2680*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2681*6a54128fSAndroid Build Coastguard Worker sed 's/^/| /' "$ac_site_file" >&5 2682*6a54128fSAndroid Build Coastguard Worker . "$ac_site_file" \ 2683*6a54128fSAndroid Build Coastguard Worker || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2684*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2685*6a54128fSAndroid Build Coastguard Workeras_fn_error $? "failed to load site script $ac_site_file 2686*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 2687*6a54128fSAndroid Build Coastguard Worker fi 2688*6a54128fSAndroid Build Coastguard Workerdone 2689*6a54128fSAndroid Build Coastguard Worker 2690*6a54128fSAndroid Build Coastguard Workerif test -r "$cache_file"; then 2691*6a54128fSAndroid Build Coastguard Worker # Some versions of bash will fail to source /dev/null (special files 2692*6a54128fSAndroid Build Coastguard Worker # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2693*6a54128fSAndroid Build Coastguard Worker if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2694*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2695*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2696*6a54128fSAndroid Build Coastguard Worker case $cache_file in 2697*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]* ) . "$cache_file";; 2698*6a54128fSAndroid Build Coastguard Worker *) . "./$cache_file";; 2699*6a54128fSAndroid Build Coastguard Worker esac 2700*6a54128fSAndroid Build Coastguard Worker fi 2701*6a54128fSAndroid Build Coastguard Workerelse 2702*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2703*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2704*6a54128fSAndroid Build Coastguard Worker >$cache_file 2705*6a54128fSAndroid Build Coastguard Workerfi 2706*6a54128fSAndroid Build Coastguard Worker 2707*6a54128fSAndroid Build Coastguard Workeras_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2708*6a54128fSAndroid Build Coastguard Worker# Test code for whether the C compiler supports C89 (global declarations) 2709*6a54128fSAndroid Build Coastguard Workerac_c_conftest_c89_globals=' 2710*6a54128fSAndroid Build Coastguard Worker/* Does the compiler advertise C89 conformance? 2711*6a54128fSAndroid Build Coastguard Worker Do not test the value of __STDC__, because some compilers set it to 0 2712*6a54128fSAndroid Build Coastguard Worker while being otherwise adequately conformant. */ 2713*6a54128fSAndroid Build Coastguard Worker#if !defined __STDC__ 2714*6a54128fSAndroid Build Coastguard Worker# error "Compiler does not advertise C89 conformance" 2715*6a54128fSAndroid Build Coastguard Worker#endif 2716*6a54128fSAndroid Build Coastguard Worker 2717*6a54128fSAndroid Build Coastguard Worker#include <stddef.h> 2718*6a54128fSAndroid Build Coastguard Worker#include <stdarg.h> 2719*6a54128fSAndroid Build Coastguard Workerstruct stat; 2720*6a54128fSAndroid Build Coastguard Worker/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2721*6a54128fSAndroid Build Coastguard Workerstruct buf { int x; }; 2722*6a54128fSAndroid Build Coastguard Workerstruct buf * (*rcsopen) (struct buf *, struct stat *, int); 2723*6a54128fSAndroid Build Coastguard Workerstatic char *e (p, i) 2724*6a54128fSAndroid Build Coastguard Worker char **p; 2725*6a54128fSAndroid Build Coastguard Worker int i; 2726*6a54128fSAndroid Build Coastguard Worker{ 2727*6a54128fSAndroid Build Coastguard Worker return p[i]; 2728*6a54128fSAndroid Build Coastguard Worker} 2729*6a54128fSAndroid Build Coastguard Workerstatic char *f (char * (*g) (char **, int), char **p, ...) 2730*6a54128fSAndroid Build Coastguard Worker{ 2731*6a54128fSAndroid Build Coastguard Worker char *s; 2732*6a54128fSAndroid Build Coastguard Worker va_list v; 2733*6a54128fSAndroid Build Coastguard Worker va_start (v,p); 2734*6a54128fSAndroid Build Coastguard Worker s = g (p, va_arg (v,int)); 2735*6a54128fSAndroid Build Coastguard Worker va_end (v); 2736*6a54128fSAndroid Build Coastguard Worker return s; 2737*6a54128fSAndroid Build Coastguard Worker} 2738*6a54128fSAndroid Build Coastguard Worker 2739*6a54128fSAndroid Build Coastguard Worker/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2740*6a54128fSAndroid Build Coastguard Worker function prototypes and stuff, but not \xHH hex character constants. 2741*6a54128fSAndroid Build Coastguard Worker These do not provoke an error unfortunately, instead are silently treated 2742*6a54128fSAndroid Build Coastguard Worker as an "x". The following induces an error, until -std is added to get 2743*6a54128fSAndroid Build Coastguard Worker proper ANSI mode. Curiously \x00 != x always comes out true, for an 2744*6a54128fSAndroid Build Coastguard Worker array size at least. It is necessary to write \x00 == 0 to get something 2745*6a54128fSAndroid Build Coastguard Worker that is true only with -std. */ 2746*6a54128fSAndroid Build Coastguard Workerint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2747*6a54128fSAndroid Build Coastguard Worker 2748*6a54128fSAndroid Build Coastguard Worker/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2749*6a54128fSAndroid Build Coastguard Worker inside strings and character constants. */ 2750*6a54128fSAndroid Build Coastguard Worker#define FOO(x) '\''x'\'' 2751*6a54128fSAndroid Build Coastguard Workerint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2752*6a54128fSAndroid Build Coastguard Worker 2753*6a54128fSAndroid Build Coastguard Workerint test (int i, double x); 2754*6a54128fSAndroid Build Coastguard Workerstruct s1 {int (*f) (int a);}; 2755*6a54128fSAndroid Build Coastguard Workerstruct s2 {int (*f) (double a);}; 2756*6a54128fSAndroid Build Coastguard Workerint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2757*6a54128fSAndroid Build Coastguard Worker int, int);' 2758*6a54128fSAndroid Build Coastguard Worker 2759*6a54128fSAndroid Build Coastguard Worker# Test code for whether the C compiler supports C89 (body of main). 2760*6a54128fSAndroid Build Coastguard Workerac_c_conftest_c89_main=' 2761*6a54128fSAndroid Build Coastguard Workerok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2762*6a54128fSAndroid Build Coastguard Worker' 2763*6a54128fSAndroid Build Coastguard Worker 2764*6a54128fSAndroid Build Coastguard Worker# Test code for whether the C compiler supports C99 (global declarations) 2765*6a54128fSAndroid Build Coastguard Workerac_c_conftest_c99_globals=' 2766*6a54128fSAndroid Build Coastguard Worker// Does the compiler advertise C99 conformance? 2767*6a54128fSAndroid Build Coastguard Worker#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2768*6a54128fSAndroid Build Coastguard Worker# error "Compiler does not advertise C99 conformance" 2769*6a54128fSAndroid Build Coastguard Worker#endif 2770*6a54128fSAndroid Build Coastguard Worker 2771*6a54128fSAndroid Build Coastguard Worker#include <stdbool.h> 2772*6a54128fSAndroid Build Coastguard Workerextern int puts (const char *); 2773*6a54128fSAndroid Build Coastguard Workerextern int printf (const char *, ...); 2774*6a54128fSAndroid Build Coastguard Workerextern int dprintf (int, const char *, ...); 2775*6a54128fSAndroid Build Coastguard Workerextern void *malloc (size_t); 2776*6a54128fSAndroid Build Coastguard Worker 2777*6a54128fSAndroid Build Coastguard Worker// Check varargs macros. These examples are taken from C99 6.10.3.5. 2778*6a54128fSAndroid Build Coastguard Worker// dprintf is used instead of fprintf to avoid needing to declare 2779*6a54128fSAndroid Build Coastguard Worker// FILE and stderr. 2780*6a54128fSAndroid Build Coastguard Worker#define debug(...) dprintf (2, __VA_ARGS__) 2781*6a54128fSAndroid Build Coastguard Worker#define showlist(...) puts (#__VA_ARGS__) 2782*6a54128fSAndroid Build Coastguard Worker#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2783*6a54128fSAndroid Build Coastguard Workerstatic void 2784*6a54128fSAndroid Build Coastguard Workertest_varargs_macros (void) 2785*6a54128fSAndroid Build Coastguard Worker{ 2786*6a54128fSAndroid Build Coastguard Worker int x = 1234; 2787*6a54128fSAndroid Build Coastguard Worker int y = 5678; 2788*6a54128fSAndroid Build Coastguard Worker debug ("Flag"); 2789*6a54128fSAndroid Build Coastguard Worker debug ("X = %d\n", x); 2790*6a54128fSAndroid Build Coastguard Worker showlist (The first, second, and third items.); 2791*6a54128fSAndroid Build Coastguard Worker report (x>y, "x is %d but y is %d", x, y); 2792*6a54128fSAndroid Build Coastguard Worker} 2793*6a54128fSAndroid Build Coastguard Worker 2794*6a54128fSAndroid Build Coastguard Worker// Check long long types. 2795*6a54128fSAndroid Build Coastguard Worker#define BIG64 18446744073709551615ull 2796*6a54128fSAndroid Build Coastguard Worker#define BIG32 4294967295ul 2797*6a54128fSAndroid Build Coastguard Worker#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2798*6a54128fSAndroid Build Coastguard Worker#if !BIG_OK 2799*6a54128fSAndroid Build Coastguard Worker #error "your preprocessor is broken" 2800*6a54128fSAndroid Build Coastguard Worker#endif 2801*6a54128fSAndroid Build Coastguard Worker#if BIG_OK 2802*6a54128fSAndroid Build Coastguard Worker#else 2803*6a54128fSAndroid Build Coastguard Worker #error "your preprocessor is broken" 2804*6a54128fSAndroid Build Coastguard Worker#endif 2805*6a54128fSAndroid Build Coastguard Workerstatic long long int bignum = -9223372036854775807LL; 2806*6a54128fSAndroid Build Coastguard Workerstatic unsigned long long int ubignum = BIG64; 2807*6a54128fSAndroid Build Coastguard Worker 2808*6a54128fSAndroid Build Coastguard Workerstruct incomplete_array 2809*6a54128fSAndroid Build Coastguard Worker{ 2810*6a54128fSAndroid Build Coastguard Worker int datasize; 2811*6a54128fSAndroid Build Coastguard Worker double data[]; 2812*6a54128fSAndroid Build Coastguard Worker}; 2813*6a54128fSAndroid Build Coastguard Worker 2814*6a54128fSAndroid Build Coastguard Workerstruct named_init { 2815*6a54128fSAndroid Build Coastguard Worker int number; 2816*6a54128fSAndroid Build Coastguard Worker const wchar_t *name; 2817*6a54128fSAndroid Build Coastguard Worker double average; 2818*6a54128fSAndroid Build Coastguard Worker}; 2819*6a54128fSAndroid Build Coastguard Worker 2820*6a54128fSAndroid Build Coastguard Workertypedef const char *ccp; 2821*6a54128fSAndroid Build Coastguard Worker 2822*6a54128fSAndroid Build Coastguard Workerstatic inline int 2823*6a54128fSAndroid Build Coastguard Workertest_restrict (ccp restrict text) 2824*6a54128fSAndroid Build Coastguard Worker{ 2825*6a54128fSAndroid Build Coastguard Worker // See if C++-style comments work. 2826*6a54128fSAndroid Build Coastguard Worker // Iterate through items via the restricted pointer. 2827*6a54128fSAndroid Build Coastguard Worker // Also check for declarations in for loops. 2828*6a54128fSAndroid Build Coastguard Worker for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2829*6a54128fSAndroid Build Coastguard Worker continue; 2830*6a54128fSAndroid Build Coastguard Worker return 0; 2831*6a54128fSAndroid Build Coastguard Worker} 2832*6a54128fSAndroid Build Coastguard Worker 2833*6a54128fSAndroid Build Coastguard Worker// Check varargs and va_copy. 2834*6a54128fSAndroid Build Coastguard Workerstatic bool 2835*6a54128fSAndroid Build Coastguard Workertest_varargs (const char *format, ...) 2836*6a54128fSAndroid Build Coastguard Worker{ 2837*6a54128fSAndroid Build Coastguard Worker va_list args; 2838*6a54128fSAndroid Build Coastguard Worker va_start (args, format); 2839*6a54128fSAndroid Build Coastguard Worker va_list args_copy; 2840*6a54128fSAndroid Build Coastguard Worker va_copy (args_copy, args); 2841*6a54128fSAndroid Build Coastguard Worker 2842*6a54128fSAndroid Build Coastguard Worker const char *str = ""; 2843*6a54128fSAndroid Build Coastguard Worker int number = 0; 2844*6a54128fSAndroid Build Coastguard Worker float fnumber = 0; 2845*6a54128fSAndroid Build Coastguard Worker 2846*6a54128fSAndroid Build Coastguard Worker while (*format) 2847*6a54128fSAndroid Build Coastguard Worker { 2848*6a54128fSAndroid Build Coastguard Worker switch (*format++) 2849*6a54128fSAndroid Build Coastguard Worker { 2850*6a54128fSAndroid Build Coastguard Worker case '\''s'\'': // string 2851*6a54128fSAndroid Build Coastguard Worker str = va_arg (args_copy, const char *); 2852*6a54128fSAndroid Build Coastguard Worker break; 2853*6a54128fSAndroid Build Coastguard Worker case '\''d'\'': // int 2854*6a54128fSAndroid Build Coastguard Worker number = va_arg (args_copy, int); 2855*6a54128fSAndroid Build Coastguard Worker break; 2856*6a54128fSAndroid Build Coastguard Worker case '\''f'\'': // float 2857*6a54128fSAndroid Build Coastguard Worker fnumber = va_arg (args_copy, double); 2858*6a54128fSAndroid Build Coastguard Worker break; 2859*6a54128fSAndroid Build Coastguard Worker default: 2860*6a54128fSAndroid Build Coastguard Worker break; 2861*6a54128fSAndroid Build Coastguard Worker } 2862*6a54128fSAndroid Build Coastguard Worker } 2863*6a54128fSAndroid Build Coastguard Worker va_end (args_copy); 2864*6a54128fSAndroid Build Coastguard Worker va_end (args); 2865*6a54128fSAndroid Build Coastguard Worker 2866*6a54128fSAndroid Build Coastguard Worker return *str && number && fnumber; 2867*6a54128fSAndroid Build Coastguard Worker} 2868*6a54128fSAndroid Build Coastguard Worker' 2869*6a54128fSAndroid Build Coastguard Worker 2870*6a54128fSAndroid Build Coastguard Worker# Test code for whether the C compiler supports C99 (body of main). 2871*6a54128fSAndroid Build Coastguard Workerac_c_conftest_c99_main=' 2872*6a54128fSAndroid Build Coastguard Worker // Check bool. 2873*6a54128fSAndroid Build Coastguard Worker _Bool success = false; 2874*6a54128fSAndroid Build Coastguard Worker success |= (argc != 0); 2875*6a54128fSAndroid Build Coastguard Worker 2876*6a54128fSAndroid Build Coastguard Worker // Check restrict. 2877*6a54128fSAndroid Build Coastguard Worker if (test_restrict ("String literal") == 0) 2878*6a54128fSAndroid Build Coastguard Worker success = true; 2879*6a54128fSAndroid Build Coastguard Worker char *restrict newvar = "Another string"; 2880*6a54128fSAndroid Build Coastguard Worker 2881*6a54128fSAndroid Build Coastguard Worker // Check varargs. 2882*6a54128fSAndroid Build Coastguard Worker success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2883*6a54128fSAndroid Build Coastguard Worker test_varargs_macros (); 2884*6a54128fSAndroid Build Coastguard Worker 2885*6a54128fSAndroid Build Coastguard Worker // Check flexible array members. 2886*6a54128fSAndroid Build Coastguard Worker struct incomplete_array *ia = 2887*6a54128fSAndroid Build Coastguard Worker malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2888*6a54128fSAndroid Build Coastguard Worker ia->datasize = 10; 2889*6a54128fSAndroid Build Coastguard Worker for (int i = 0; i < ia->datasize; ++i) 2890*6a54128fSAndroid Build Coastguard Worker ia->data[i] = i * 1.234; 2891*6a54128fSAndroid Build Coastguard Worker 2892*6a54128fSAndroid Build Coastguard Worker // Check named initializers. 2893*6a54128fSAndroid Build Coastguard Worker struct named_init ni = { 2894*6a54128fSAndroid Build Coastguard Worker .number = 34, 2895*6a54128fSAndroid Build Coastguard Worker .name = L"Test wide string", 2896*6a54128fSAndroid Build Coastguard Worker .average = 543.34343, 2897*6a54128fSAndroid Build Coastguard Worker }; 2898*6a54128fSAndroid Build Coastguard Worker 2899*6a54128fSAndroid Build Coastguard Worker ni.number = 58; 2900*6a54128fSAndroid Build Coastguard Worker 2901*6a54128fSAndroid Build Coastguard Worker int dynamic_array[ni.number]; 2902*6a54128fSAndroid Build Coastguard Worker dynamic_array[0] = argv[0][0]; 2903*6a54128fSAndroid Build Coastguard Worker dynamic_array[ni.number - 1] = 543; 2904*6a54128fSAndroid Build Coastguard Worker 2905*6a54128fSAndroid Build Coastguard Worker // work around unused variable warnings 2906*6a54128fSAndroid Build Coastguard Worker ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2907*6a54128fSAndroid Build Coastguard Worker || dynamic_array[ni.number - 1] != 543); 2908*6a54128fSAndroid Build Coastguard Worker' 2909*6a54128fSAndroid Build Coastguard Worker 2910*6a54128fSAndroid Build Coastguard Worker# Test code for whether the C compiler supports C11 (global declarations) 2911*6a54128fSAndroid Build Coastguard Workerac_c_conftest_c11_globals=' 2912*6a54128fSAndroid Build Coastguard Worker// Does the compiler advertise C11 conformance? 2913*6a54128fSAndroid Build Coastguard Worker#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2914*6a54128fSAndroid Build Coastguard Worker# error "Compiler does not advertise C11 conformance" 2915*6a54128fSAndroid Build Coastguard Worker#endif 2916*6a54128fSAndroid Build Coastguard Worker 2917*6a54128fSAndroid Build Coastguard Worker// Check _Alignas. 2918*6a54128fSAndroid Build Coastguard Workerchar _Alignas (double) aligned_as_double; 2919*6a54128fSAndroid Build Coastguard Workerchar _Alignas (0) no_special_alignment; 2920*6a54128fSAndroid Build Coastguard Workerextern char aligned_as_int; 2921*6a54128fSAndroid Build Coastguard Workerchar _Alignas (0) _Alignas (int) aligned_as_int; 2922*6a54128fSAndroid Build Coastguard Worker 2923*6a54128fSAndroid Build Coastguard Worker// Check _Alignof. 2924*6a54128fSAndroid Build Coastguard Workerenum 2925*6a54128fSAndroid Build Coastguard Worker{ 2926*6a54128fSAndroid Build Coastguard Worker int_alignment = _Alignof (int), 2927*6a54128fSAndroid Build Coastguard Worker int_array_alignment = _Alignof (int[100]), 2928*6a54128fSAndroid Build Coastguard Worker char_alignment = _Alignof (char) 2929*6a54128fSAndroid Build Coastguard Worker}; 2930*6a54128fSAndroid Build Coastguard Worker_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2931*6a54128fSAndroid Build Coastguard Worker 2932*6a54128fSAndroid Build Coastguard Worker// Check _Noreturn. 2933*6a54128fSAndroid Build Coastguard Workerint _Noreturn does_not_return (void) { for (;;) continue; } 2934*6a54128fSAndroid Build Coastguard Worker 2935*6a54128fSAndroid Build Coastguard Worker// Check _Static_assert. 2936*6a54128fSAndroid Build Coastguard Workerstruct test_static_assert 2937*6a54128fSAndroid Build Coastguard Worker{ 2938*6a54128fSAndroid Build Coastguard Worker int x; 2939*6a54128fSAndroid Build Coastguard Worker _Static_assert (sizeof (int) <= sizeof (long int), 2940*6a54128fSAndroid Build Coastguard Worker "_Static_assert does not work in struct"); 2941*6a54128fSAndroid Build Coastguard Worker long int y; 2942*6a54128fSAndroid Build Coastguard Worker}; 2943*6a54128fSAndroid Build Coastguard Worker 2944*6a54128fSAndroid Build Coastguard Worker// Check UTF-8 literals. 2945*6a54128fSAndroid Build Coastguard Worker#define u8 syntax error! 2946*6a54128fSAndroid Build Coastguard Workerchar const utf8_literal[] = u8"happens to be ASCII" "another string"; 2947*6a54128fSAndroid Build Coastguard Worker 2948*6a54128fSAndroid Build Coastguard Worker// Check duplicate typedefs. 2949*6a54128fSAndroid Build Coastguard Workertypedef long *long_ptr; 2950*6a54128fSAndroid Build Coastguard Workertypedef long int *long_ptr; 2951*6a54128fSAndroid Build Coastguard Workertypedef long_ptr long_ptr; 2952*6a54128fSAndroid Build Coastguard Worker 2953*6a54128fSAndroid Build Coastguard Worker// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2954*6a54128fSAndroid Build Coastguard Workerstruct anonymous 2955*6a54128fSAndroid Build Coastguard Worker{ 2956*6a54128fSAndroid Build Coastguard Worker union { 2957*6a54128fSAndroid Build Coastguard Worker struct { int i; int j; }; 2958*6a54128fSAndroid Build Coastguard Worker struct { int k; long int l; } w; 2959*6a54128fSAndroid Build Coastguard Worker }; 2960*6a54128fSAndroid Build Coastguard Worker int m; 2961*6a54128fSAndroid Build Coastguard Worker} v1; 2962*6a54128fSAndroid Build Coastguard Worker' 2963*6a54128fSAndroid Build Coastguard Worker 2964*6a54128fSAndroid Build Coastguard Worker# Test code for whether the C compiler supports C11 (body of main). 2965*6a54128fSAndroid Build Coastguard Workerac_c_conftest_c11_main=' 2966*6a54128fSAndroid Build Coastguard Worker _Static_assert ((offsetof (struct anonymous, i) 2967*6a54128fSAndroid Build Coastguard Worker == offsetof (struct anonymous, w.k)), 2968*6a54128fSAndroid Build Coastguard Worker "Anonymous union alignment botch"); 2969*6a54128fSAndroid Build Coastguard Worker v1.i = 2; 2970*6a54128fSAndroid Build Coastguard Worker v1.w.k = 5; 2971*6a54128fSAndroid Build Coastguard Worker ok |= v1.i != 5; 2972*6a54128fSAndroid Build Coastguard Worker' 2973*6a54128fSAndroid Build Coastguard Worker 2974*6a54128fSAndroid Build Coastguard Worker# Test code for whether the C compiler supports C11 (complete). 2975*6a54128fSAndroid Build Coastguard Workerac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2976*6a54128fSAndroid Build Coastguard Worker${ac_c_conftest_c99_globals} 2977*6a54128fSAndroid Build Coastguard Worker${ac_c_conftest_c11_globals} 2978*6a54128fSAndroid Build Coastguard Worker 2979*6a54128fSAndroid Build Coastguard Workerint 2980*6a54128fSAndroid Build Coastguard Workermain (int argc, char **argv) 2981*6a54128fSAndroid Build Coastguard Worker{ 2982*6a54128fSAndroid Build Coastguard Worker int ok = 0; 2983*6a54128fSAndroid Build Coastguard Worker ${ac_c_conftest_c89_main} 2984*6a54128fSAndroid Build Coastguard Worker ${ac_c_conftest_c99_main} 2985*6a54128fSAndroid Build Coastguard Worker ${ac_c_conftest_c11_main} 2986*6a54128fSAndroid Build Coastguard Worker return ok; 2987*6a54128fSAndroid Build Coastguard Worker} 2988*6a54128fSAndroid Build Coastguard Worker" 2989*6a54128fSAndroid Build Coastguard Worker 2990*6a54128fSAndroid Build Coastguard Worker# Test code for whether the C compiler supports C99 (complete). 2991*6a54128fSAndroid Build Coastguard Workerac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2992*6a54128fSAndroid Build Coastguard Worker${ac_c_conftest_c99_globals} 2993*6a54128fSAndroid Build Coastguard Worker 2994*6a54128fSAndroid Build Coastguard Workerint 2995*6a54128fSAndroid Build Coastguard Workermain (int argc, char **argv) 2996*6a54128fSAndroid Build Coastguard Worker{ 2997*6a54128fSAndroid Build Coastguard Worker int ok = 0; 2998*6a54128fSAndroid Build Coastguard Worker ${ac_c_conftest_c89_main} 2999*6a54128fSAndroid Build Coastguard Worker ${ac_c_conftest_c99_main} 3000*6a54128fSAndroid Build Coastguard Worker return ok; 3001*6a54128fSAndroid Build Coastguard Worker} 3002*6a54128fSAndroid Build Coastguard Worker" 3003*6a54128fSAndroid Build Coastguard Worker 3004*6a54128fSAndroid Build Coastguard Worker# Test code for whether the C compiler supports C89 (complete). 3005*6a54128fSAndroid Build Coastguard Workerac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3006*6a54128fSAndroid Build Coastguard Worker 3007*6a54128fSAndroid Build Coastguard Workerint 3008*6a54128fSAndroid Build Coastguard Workermain (int argc, char **argv) 3009*6a54128fSAndroid Build Coastguard Worker{ 3010*6a54128fSAndroid Build Coastguard Worker int ok = 0; 3011*6a54128fSAndroid Build Coastguard Worker ${ac_c_conftest_c89_main} 3012*6a54128fSAndroid Build Coastguard Worker return ok; 3013*6a54128fSAndroid Build Coastguard Worker} 3014*6a54128fSAndroid Build Coastguard Worker" 3015*6a54128fSAndroid Build Coastguard Worker 3016*6a54128fSAndroid Build Coastguard Workeras_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3017*6a54128fSAndroid Build Coastguard Workeras_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3018*6a54128fSAndroid Build Coastguard Workeras_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3019*6a54128fSAndroid Build Coastguard Workeras_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3020*6a54128fSAndroid Build Coastguard Workeras_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3021*6a54128fSAndroid Build Coastguard Workeras_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3022*6a54128fSAndroid Build Coastguard Workeras_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3023*6a54128fSAndroid Build Coastguard Workeras_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3024*6a54128fSAndroid Build Coastguard Workeras_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 3025*6a54128fSAndroid Build Coastguard Workeras_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 3026*6a54128fSAndroid Build Coastguard Workergt_needs="$gt_needs " 3027*6a54128fSAndroid Build Coastguard Workeras_fn_append ac_func_c_list " vprintf HAVE_VPRINTF" 3028*6a54128fSAndroid Build Coastguard Worker# Test code for whether the C++ compiler supports C++98 (global declarations) 3029*6a54128fSAndroid Build Coastguard Workerac_cxx_conftest_cxx98_globals=' 3030*6a54128fSAndroid Build Coastguard Worker// Does the compiler advertise C++98 conformance? 3031*6a54128fSAndroid Build Coastguard Worker#if !defined __cplusplus || __cplusplus < 199711L 3032*6a54128fSAndroid Build Coastguard Worker# error "Compiler does not advertise C++98 conformance" 3033*6a54128fSAndroid Build Coastguard Worker#endif 3034*6a54128fSAndroid Build Coastguard Worker 3035*6a54128fSAndroid Build Coastguard Worker// These inclusions are to reject old compilers that 3036*6a54128fSAndroid Build Coastguard Worker// lack the unsuffixed header files. 3037*6a54128fSAndroid Build Coastguard Worker#include <cstdlib> 3038*6a54128fSAndroid Build Coastguard Worker#include <exception> 3039*6a54128fSAndroid Build Coastguard Worker 3040*6a54128fSAndroid Build Coastguard Worker// <cassert> and <cstring> are *not* freestanding headers in C++98. 3041*6a54128fSAndroid Build Coastguard Workerextern void assert (int); 3042*6a54128fSAndroid Build Coastguard Workernamespace std { 3043*6a54128fSAndroid Build Coastguard Worker extern int strcmp (const char *, const char *); 3044*6a54128fSAndroid Build Coastguard Worker} 3045*6a54128fSAndroid Build Coastguard Worker 3046*6a54128fSAndroid Build Coastguard Worker// Namespaces, exceptions, and templates were all added after "C++ 2.0". 3047*6a54128fSAndroid Build Coastguard Workerusing std::exception; 3048*6a54128fSAndroid Build Coastguard Workerusing std::strcmp; 3049*6a54128fSAndroid Build Coastguard Worker 3050*6a54128fSAndroid Build Coastguard Workernamespace { 3051*6a54128fSAndroid Build Coastguard Worker 3052*6a54128fSAndroid Build Coastguard Workervoid test_exception_syntax() 3053*6a54128fSAndroid Build Coastguard Worker{ 3054*6a54128fSAndroid Build Coastguard Worker try { 3055*6a54128fSAndroid Build Coastguard Worker throw "test"; 3056*6a54128fSAndroid Build Coastguard Worker } catch (const char *s) { 3057*6a54128fSAndroid Build Coastguard Worker // Extra parentheses suppress a warning when building autoconf itself, 3058*6a54128fSAndroid Build Coastguard Worker // due to lint rules shared with more typical C programs. 3059*6a54128fSAndroid Build Coastguard Worker assert (!(strcmp) (s, "test")); 3060*6a54128fSAndroid Build Coastguard Worker } 3061*6a54128fSAndroid Build Coastguard Worker} 3062*6a54128fSAndroid Build Coastguard Worker 3063*6a54128fSAndroid Build Coastguard Workertemplate <typename T> struct test_template 3064*6a54128fSAndroid Build Coastguard Worker{ 3065*6a54128fSAndroid Build Coastguard Worker T const val; 3066*6a54128fSAndroid Build Coastguard Worker explicit test_template(T t) : val(t) {} 3067*6a54128fSAndroid Build Coastguard Worker template <typename U> T add(U u) { return static_cast<T>(u) + val; } 3068*6a54128fSAndroid Build Coastguard Worker}; 3069*6a54128fSAndroid Build Coastguard Worker 3070*6a54128fSAndroid Build Coastguard Worker} // anonymous namespace 3071*6a54128fSAndroid Build Coastguard Worker' 3072*6a54128fSAndroid Build Coastguard Worker 3073*6a54128fSAndroid Build Coastguard Worker# Test code for whether the C++ compiler supports C++98 (body of main) 3074*6a54128fSAndroid Build Coastguard Workerac_cxx_conftest_cxx98_main=' 3075*6a54128fSAndroid Build Coastguard Worker assert (argc); 3076*6a54128fSAndroid Build Coastguard Worker assert (! argv[0]); 3077*6a54128fSAndroid Build Coastguard Worker{ 3078*6a54128fSAndroid Build Coastguard Worker test_exception_syntax (); 3079*6a54128fSAndroid Build Coastguard Worker test_template<double> tt (2.0); 3080*6a54128fSAndroid Build Coastguard Worker assert (tt.add (4) == 6.0); 3081*6a54128fSAndroid Build Coastguard Worker assert (true && !false); 3082*6a54128fSAndroid Build Coastguard Worker} 3083*6a54128fSAndroid Build Coastguard Worker' 3084*6a54128fSAndroid Build Coastguard Worker 3085*6a54128fSAndroid Build Coastguard Worker# Test code for whether the C++ compiler supports C++11 (global declarations) 3086*6a54128fSAndroid Build Coastguard Workerac_cxx_conftest_cxx11_globals=' 3087*6a54128fSAndroid Build Coastguard Worker// Does the compiler advertise C++ 2011 conformance? 3088*6a54128fSAndroid Build Coastguard Worker#if !defined __cplusplus || __cplusplus < 201103L 3089*6a54128fSAndroid Build Coastguard Worker# error "Compiler does not advertise C++11 conformance" 3090*6a54128fSAndroid Build Coastguard Worker#endif 3091*6a54128fSAndroid Build Coastguard Worker 3092*6a54128fSAndroid Build Coastguard Workernamespace cxx11test 3093*6a54128fSAndroid Build Coastguard Worker{ 3094*6a54128fSAndroid Build Coastguard Worker constexpr int get_val() { return 20; } 3095*6a54128fSAndroid Build Coastguard Worker 3096*6a54128fSAndroid Build Coastguard Worker struct testinit 3097*6a54128fSAndroid Build Coastguard Worker { 3098*6a54128fSAndroid Build Coastguard Worker int i; 3099*6a54128fSAndroid Build Coastguard Worker double d; 3100*6a54128fSAndroid Build Coastguard Worker }; 3101*6a54128fSAndroid Build Coastguard Worker 3102*6a54128fSAndroid Build Coastguard Worker class delegate 3103*6a54128fSAndroid Build Coastguard Worker { 3104*6a54128fSAndroid Build Coastguard Worker public: 3105*6a54128fSAndroid Build Coastguard Worker delegate(int n) : n(n) {} 3106*6a54128fSAndroid Build Coastguard Worker delegate(): delegate(2354) {} 3107*6a54128fSAndroid Build Coastguard Worker 3108*6a54128fSAndroid Build Coastguard Worker virtual int getval() { return this->n; }; 3109*6a54128fSAndroid Build Coastguard Worker protected: 3110*6a54128fSAndroid Build Coastguard Worker int n; 3111*6a54128fSAndroid Build Coastguard Worker }; 3112*6a54128fSAndroid Build Coastguard Worker 3113*6a54128fSAndroid Build Coastguard Worker class overridden : public delegate 3114*6a54128fSAndroid Build Coastguard Worker { 3115*6a54128fSAndroid Build Coastguard Worker public: 3116*6a54128fSAndroid Build Coastguard Worker overridden(int n): delegate(n) {} 3117*6a54128fSAndroid Build Coastguard Worker virtual int getval() override final { return this->n * 2; } 3118*6a54128fSAndroid Build Coastguard Worker }; 3119*6a54128fSAndroid Build Coastguard Worker 3120*6a54128fSAndroid Build Coastguard Worker class nocopy 3121*6a54128fSAndroid Build Coastguard Worker { 3122*6a54128fSAndroid Build Coastguard Worker public: 3123*6a54128fSAndroid Build Coastguard Worker nocopy(int i): i(i) {} 3124*6a54128fSAndroid Build Coastguard Worker nocopy() = default; 3125*6a54128fSAndroid Build Coastguard Worker nocopy(const nocopy&) = delete; 3126*6a54128fSAndroid Build Coastguard Worker nocopy & operator=(const nocopy&) = delete; 3127*6a54128fSAndroid Build Coastguard Worker private: 3128*6a54128fSAndroid Build Coastguard Worker int i; 3129*6a54128fSAndroid Build Coastguard Worker }; 3130*6a54128fSAndroid Build Coastguard Worker 3131*6a54128fSAndroid Build Coastguard Worker // for testing lambda expressions 3132*6a54128fSAndroid Build Coastguard Worker template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) 3133*6a54128fSAndroid Build Coastguard Worker { 3134*6a54128fSAndroid Build Coastguard Worker return f(v); 3135*6a54128fSAndroid Build Coastguard Worker } 3136*6a54128fSAndroid Build Coastguard Worker 3137*6a54128fSAndroid Build Coastguard Worker // for testing variadic templates and trailing return types 3138*6a54128fSAndroid Build Coastguard Worker template <typename V> auto sum(V first) -> V 3139*6a54128fSAndroid Build Coastguard Worker { 3140*6a54128fSAndroid Build Coastguard Worker return first; 3141*6a54128fSAndroid Build Coastguard Worker } 3142*6a54128fSAndroid Build Coastguard Worker template <typename V, typename... Args> auto sum(V first, Args... rest) -> V 3143*6a54128fSAndroid Build Coastguard Worker { 3144*6a54128fSAndroid Build Coastguard Worker return first + sum(rest...); 3145*6a54128fSAndroid Build Coastguard Worker } 3146*6a54128fSAndroid Build Coastguard Worker} 3147*6a54128fSAndroid Build Coastguard Worker' 3148*6a54128fSAndroid Build Coastguard Worker 3149*6a54128fSAndroid Build Coastguard Worker# Test code for whether the C++ compiler supports C++11 (body of main) 3150*6a54128fSAndroid Build Coastguard Workerac_cxx_conftest_cxx11_main=' 3151*6a54128fSAndroid Build Coastguard Worker{ 3152*6a54128fSAndroid Build Coastguard Worker // Test auto and decltype 3153*6a54128fSAndroid Build Coastguard Worker auto a1 = 6538; 3154*6a54128fSAndroid Build Coastguard Worker auto a2 = 48573953.4; 3155*6a54128fSAndroid Build Coastguard Worker auto a3 = "String literal"; 3156*6a54128fSAndroid Build Coastguard Worker 3157*6a54128fSAndroid Build Coastguard Worker int total = 0; 3158*6a54128fSAndroid Build Coastguard Worker for (auto i = a3; *i; ++i) { total += *i; } 3159*6a54128fSAndroid Build Coastguard Worker 3160*6a54128fSAndroid Build Coastguard Worker decltype(a2) a4 = 34895.034; 3161*6a54128fSAndroid Build Coastguard Worker} 3162*6a54128fSAndroid Build Coastguard Worker{ 3163*6a54128fSAndroid Build Coastguard Worker // Test constexpr 3164*6a54128fSAndroid Build Coastguard Worker short sa[cxx11test::get_val()] = { 0 }; 3165*6a54128fSAndroid Build Coastguard Worker} 3166*6a54128fSAndroid Build Coastguard Worker{ 3167*6a54128fSAndroid Build Coastguard Worker // Test initializer lists 3168*6a54128fSAndroid Build Coastguard Worker cxx11test::testinit il = { 4323, 435234.23544 }; 3169*6a54128fSAndroid Build Coastguard Worker} 3170*6a54128fSAndroid Build Coastguard Worker{ 3171*6a54128fSAndroid Build Coastguard Worker // Test range-based for 3172*6a54128fSAndroid Build Coastguard Worker int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 3173*6a54128fSAndroid Build Coastguard Worker 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 3174*6a54128fSAndroid Build Coastguard Worker for (auto &x : array) { x += 23; } 3175*6a54128fSAndroid Build Coastguard Worker} 3176*6a54128fSAndroid Build Coastguard Worker{ 3177*6a54128fSAndroid Build Coastguard Worker // Test lambda expressions 3178*6a54128fSAndroid Build Coastguard Worker using cxx11test::eval; 3179*6a54128fSAndroid Build Coastguard Worker assert (eval ([](int x) { return x*2; }, 21) == 42); 3180*6a54128fSAndroid Build Coastguard Worker double d = 2.0; 3181*6a54128fSAndroid Build Coastguard Worker assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); 3182*6a54128fSAndroid Build Coastguard Worker assert (d == 5.0); 3183*6a54128fSAndroid Build Coastguard Worker assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); 3184*6a54128fSAndroid Build Coastguard Worker assert (d == 5.0); 3185*6a54128fSAndroid Build Coastguard Worker} 3186*6a54128fSAndroid Build Coastguard Worker{ 3187*6a54128fSAndroid Build Coastguard Worker // Test use of variadic templates 3188*6a54128fSAndroid Build Coastguard Worker using cxx11test::sum; 3189*6a54128fSAndroid Build Coastguard Worker auto a = sum(1); 3190*6a54128fSAndroid Build Coastguard Worker auto b = sum(1, 2); 3191*6a54128fSAndroid Build Coastguard Worker auto c = sum(1.0, 2.0, 3.0); 3192*6a54128fSAndroid Build Coastguard Worker} 3193*6a54128fSAndroid Build Coastguard Worker{ 3194*6a54128fSAndroid Build Coastguard Worker // Test constructor delegation 3195*6a54128fSAndroid Build Coastguard Worker cxx11test::delegate d1; 3196*6a54128fSAndroid Build Coastguard Worker cxx11test::delegate d2(); 3197*6a54128fSAndroid Build Coastguard Worker cxx11test::delegate d3(45); 3198*6a54128fSAndroid Build Coastguard Worker} 3199*6a54128fSAndroid Build Coastguard Worker{ 3200*6a54128fSAndroid Build Coastguard Worker // Test override and final 3201*6a54128fSAndroid Build Coastguard Worker cxx11test::overridden o1(55464); 3202*6a54128fSAndroid Build Coastguard Worker} 3203*6a54128fSAndroid Build Coastguard Worker{ 3204*6a54128fSAndroid Build Coastguard Worker // Test nullptr 3205*6a54128fSAndroid Build Coastguard Worker char *c = nullptr; 3206*6a54128fSAndroid Build Coastguard Worker} 3207*6a54128fSAndroid Build Coastguard Worker{ 3208*6a54128fSAndroid Build Coastguard Worker // Test template brackets 3209*6a54128fSAndroid Build Coastguard Worker test_template<::test_template<int>> v(test_template<int>(12)); 3210*6a54128fSAndroid Build Coastguard Worker} 3211*6a54128fSAndroid Build Coastguard Worker{ 3212*6a54128fSAndroid Build Coastguard Worker // Unicode literals 3213*6a54128fSAndroid Build Coastguard Worker char const *utf8 = u8"UTF-8 string \u2500"; 3214*6a54128fSAndroid Build Coastguard Worker char16_t const *utf16 = u"UTF-8 string \u2500"; 3215*6a54128fSAndroid Build Coastguard Worker char32_t const *utf32 = U"UTF-32 string \u2500"; 3216*6a54128fSAndroid Build Coastguard Worker} 3217*6a54128fSAndroid Build Coastguard Worker' 3218*6a54128fSAndroid Build Coastguard Worker 3219*6a54128fSAndroid Build Coastguard Worker# Test code for whether the C compiler supports C++11 (complete). 3220*6a54128fSAndroid Build Coastguard Workerac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} 3221*6a54128fSAndroid Build Coastguard Worker${ac_cxx_conftest_cxx11_globals} 3222*6a54128fSAndroid Build Coastguard Worker 3223*6a54128fSAndroid Build Coastguard Workerint 3224*6a54128fSAndroid Build Coastguard Workermain (int argc, char **argv) 3225*6a54128fSAndroid Build Coastguard Worker{ 3226*6a54128fSAndroid Build Coastguard Worker int ok = 0; 3227*6a54128fSAndroid Build Coastguard Worker ${ac_cxx_conftest_cxx98_main} 3228*6a54128fSAndroid Build Coastguard Worker ${ac_cxx_conftest_cxx11_main} 3229*6a54128fSAndroid Build Coastguard Worker return ok; 3230*6a54128fSAndroid Build Coastguard Worker} 3231*6a54128fSAndroid Build Coastguard Worker" 3232*6a54128fSAndroid Build Coastguard Worker 3233*6a54128fSAndroid Build Coastguard Worker# Test code for whether the C compiler supports C++98 (complete). 3234*6a54128fSAndroid Build Coastguard Workerac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} 3235*6a54128fSAndroid Build Coastguard Workerint 3236*6a54128fSAndroid Build Coastguard Workermain (int argc, char **argv) 3237*6a54128fSAndroid Build Coastguard Worker{ 3238*6a54128fSAndroid Build Coastguard Worker int ok = 0; 3239*6a54128fSAndroid Build Coastguard Worker ${ac_cxx_conftest_cxx98_main} 3240*6a54128fSAndroid Build Coastguard Worker return ok; 3241*6a54128fSAndroid Build Coastguard Worker} 3242*6a54128fSAndroid Build Coastguard Worker" 3243*6a54128fSAndroid Build Coastguard Worker 3244*6a54128fSAndroid Build Coastguard Worker 3245*6a54128fSAndroid Build Coastguard Worker# Auxiliary files required by this configure script. 3246*6a54128fSAndroid Build Coastguard Workerac_aux_files="config.rpath install-sh config.guess config.sub" 3247*6a54128fSAndroid Build Coastguard Worker 3248*6a54128fSAndroid Build Coastguard Worker# Locations in which to look for auxiliary files. 3249*6a54128fSAndroid Build Coastguard Workerac_aux_dir_candidates="${srcdir}/config" 3250*6a54128fSAndroid Build Coastguard Worker 3251*6a54128fSAndroid Build Coastguard Worker# Search for a directory containing all of the required auxiliary files, 3252*6a54128fSAndroid Build Coastguard Worker# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3253*6a54128fSAndroid Build Coastguard Worker# If we don't find one directory that contains all the files we need, 3254*6a54128fSAndroid Build Coastguard Worker# we report the set of missing files from the *first* directory in 3255*6a54128fSAndroid Build Coastguard Worker# $ac_aux_dir_candidates and give up. 3256*6a54128fSAndroid Build Coastguard Workerac_missing_aux_files="" 3257*6a54128fSAndroid Build Coastguard Workerac_first_candidate=: 3258*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3259*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3260*6a54128fSAndroid Build Coastguard Workeras_found=false 3261*6a54128fSAndroid Build Coastguard Workerfor as_dir in $ac_aux_dir_candidates 3262*6a54128fSAndroid Build Coastguard Workerdo 3263*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 3264*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 3265*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 3266*6a54128fSAndroid Build Coastguard Worker */) ;; 3267*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 3268*6a54128fSAndroid Build Coastguard Worker esac 3269*6a54128fSAndroid Build Coastguard Worker as_found=: 3270*6a54128fSAndroid Build Coastguard Worker 3271*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3272*6a54128fSAndroid Build Coastguard Worker ac_aux_dir_found=yes 3273*6a54128fSAndroid Build Coastguard Worker ac_install_sh= 3274*6a54128fSAndroid Build Coastguard Worker for ac_aux in $ac_aux_files 3275*6a54128fSAndroid Build Coastguard Worker do 3276*6a54128fSAndroid Build Coastguard Worker # As a special case, if "install-sh" is required, that requirement 3277*6a54128fSAndroid Build Coastguard Worker # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3278*6a54128fSAndroid Build Coastguard Worker # and $ac_install_sh is set appropriately for whichever one is found. 3279*6a54128fSAndroid Build Coastguard Worker if test x"$ac_aux" = x"install-sh" 3280*6a54128fSAndroid Build Coastguard Worker then 3281*6a54128fSAndroid Build Coastguard Worker if test -f "${as_dir}install-sh"; then 3282*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3283*6a54128fSAndroid Build Coastguard Worker ac_install_sh="${as_dir}install-sh -c" 3284*6a54128fSAndroid Build Coastguard Worker elif test -f "${as_dir}install.sh"; then 3285*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3286*6a54128fSAndroid Build Coastguard Worker ac_install_sh="${as_dir}install.sh -c" 3287*6a54128fSAndroid Build Coastguard Worker elif test -f "${as_dir}shtool"; then 3288*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3289*6a54128fSAndroid Build Coastguard Worker ac_install_sh="${as_dir}shtool install -c" 3290*6a54128fSAndroid Build Coastguard Worker else 3291*6a54128fSAndroid Build Coastguard Worker ac_aux_dir_found=no 3292*6a54128fSAndroid Build Coastguard Worker if $ac_first_candidate; then 3293*6a54128fSAndroid Build Coastguard Worker ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3294*6a54128fSAndroid Build Coastguard Worker else 3295*6a54128fSAndroid Build Coastguard Worker break 3296*6a54128fSAndroid Build Coastguard Worker fi 3297*6a54128fSAndroid Build Coastguard Worker fi 3298*6a54128fSAndroid Build Coastguard Worker else 3299*6a54128fSAndroid Build Coastguard Worker if test -f "${as_dir}${ac_aux}"; then 3300*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3301*6a54128fSAndroid Build Coastguard Worker else 3302*6a54128fSAndroid Build Coastguard Worker ac_aux_dir_found=no 3303*6a54128fSAndroid Build Coastguard Worker if $ac_first_candidate; then 3304*6a54128fSAndroid Build Coastguard Worker ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3305*6a54128fSAndroid Build Coastguard Worker else 3306*6a54128fSAndroid Build Coastguard Worker break 3307*6a54128fSAndroid Build Coastguard Worker fi 3308*6a54128fSAndroid Build Coastguard Worker fi 3309*6a54128fSAndroid Build Coastguard Worker fi 3310*6a54128fSAndroid Build Coastguard Worker done 3311*6a54128fSAndroid Build Coastguard Worker if test "$ac_aux_dir_found" = yes; then 3312*6a54128fSAndroid Build Coastguard Worker ac_aux_dir="$as_dir" 3313*6a54128fSAndroid Build Coastguard Worker break 3314*6a54128fSAndroid Build Coastguard Worker fi 3315*6a54128fSAndroid Build Coastguard Worker ac_first_candidate=false 3316*6a54128fSAndroid Build Coastguard Worker 3317*6a54128fSAndroid Build Coastguard Worker as_found=false 3318*6a54128fSAndroid Build Coastguard Workerdone 3319*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 3320*6a54128fSAndroid Build Coastguard Workerif $as_found 3321*6a54128fSAndroid Build Coastguard Workerthen : 3322*6a54128fSAndroid Build Coastguard Worker 3323*6a54128fSAndroid Build Coastguard Workerelse $as_nop 3324*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3325*6a54128fSAndroid Build Coastguard Workerfi 3326*6a54128fSAndroid Build Coastguard Worker 3327*6a54128fSAndroid Build Coastguard Worker 3328*6a54128fSAndroid Build Coastguard Worker# These three variables are undocumented and unsupported, 3329*6a54128fSAndroid Build Coastguard Worker# and are intended to be withdrawn in a future Autoconf release. 3330*6a54128fSAndroid Build Coastguard Worker# They can cause serious problems if a builder's source tree is in a directory 3331*6a54128fSAndroid Build Coastguard Worker# whose full name contains unusual characters. 3332*6a54128fSAndroid Build Coastguard Workerif test -f "${ac_aux_dir}config.guess"; then 3333*6a54128fSAndroid Build Coastguard Worker ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3334*6a54128fSAndroid Build Coastguard Workerfi 3335*6a54128fSAndroid Build Coastguard Workerif test -f "${ac_aux_dir}config.sub"; then 3336*6a54128fSAndroid Build Coastguard Worker ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3337*6a54128fSAndroid Build Coastguard Workerfi 3338*6a54128fSAndroid Build Coastguard Workerif test -f "$ac_aux_dir/configure"; then 3339*6a54128fSAndroid Build Coastguard Worker ac_configure="$SHELL ${ac_aux_dir}configure" 3340*6a54128fSAndroid Build Coastguard Workerfi 3341*6a54128fSAndroid Build Coastguard Worker 3342*6a54128fSAndroid Build Coastguard Worker# Check that the precious variables saved in the cache have kept the same 3343*6a54128fSAndroid Build Coastguard Worker# value. 3344*6a54128fSAndroid Build Coastguard Workerac_cache_corrupted=false 3345*6a54128fSAndroid Build Coastguard Workerfor ac_var in $ac_precious_vars; do 3346*6a54128fSAndroid Build Coastguard Worker eval ac_old_set=\$ac_cv_env_${ac_var}_set 3347*6a54128fSAndroid Build Coastguard Worker eval ac_new_set=\$ac_env_${ac_var}_set 3348*6a54128fSAndroid Build Coastguard Worker eval ac_old_val=\$ac_cv_env_${ac_var}_value 3349*6a54128fSAndroid Build Coastguard Worker eval ac_new_val=\$ac_env_${ac_var}_value 3350*6a54128fSAndroid Build Coastguard Worker case $ac_old_set,$ac_new_set in 3351*6a54128fSAndroid Build Coastguard Worker set,) 3352*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3353*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3354*6a54128fSAndroid Build Coastguard Worker ac_cache_corrupted=: ;; 3355*6a54128fSAndroid Build Coastguard Worker ,set) 3356*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3357*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3358*6a54128fSAndroid Build Coastguard Worker ac_cache_corrupted=: ;; 3359*6a54128fSAndroid Build Coastguard Worker ,);; 3360*6a54128fSAndroid Build Coastguard Worker *) 3361*6a54128fSAndroid Build Coastguard Worker if test "x$ac_old_val" != "x$ac_new_val"; then 3362*6a54128fSAndroid Build Coastguard Worker # differences in whitespace do not lead to failure. 3363*6a54128fSAndroid Build Coastguard Worker ac_old_val_w=`echo x $ac_old_val` 3364*6a54128fSAndroid Build Coastguard Worker ac_new_val_w=`echo x $ac_new_val` 3365*6a54128fSAndroid Build Coastguard Worker if test "$ac_old_val_w" != "$ac_new_val_w"; then 3366*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3367*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3368*6a54128fSAndroid Build Coastguard Worker ac_cache_corrupted=: 3369*6a54128fSAndroid Build Coastguard Worker else 3370*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3371*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3372*6a54128fSAndroid Build Coastguard Worker eval $ac_var=\$ac_old_val 3373*6a54128fSAndroid Build Coastguard Worker fi 3374*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3375*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3376*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3377*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3378*6a54128fSAndroid Build Coastguard Worker fi;; 3379*6a54128fSAndroid Build Coastguard Worker esac 3380*6a54128fSAndroid Build Coastguard Worker # Pass precious variables to config.status. 3381*6a54128fSAndroid Build Coastguard Worker if test "$ac_new_set" = set; then 3382*6a54128fSAndroid Build Coastguard Worker case $ac_new_val in 3383*6a54128fSAndroid Build Coastguard Worker *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3384*6a54128fSAndroid Build Coastguard Worker *) ac_arg=$ac_var=$ac_new_val ;; 3385*6a54128fSAndroid Build Coastguard Worker esac 3386*6a54128fSAndroid Build Coastguard Worker case " $ac_configure_args " in 3387*6a54128fSAndroid Build Coastguard Worker *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3388*6a54128fSAndroid Build Coastguard Worker *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3389*6a54128fSAndroid Build Coastguard Worker esac 3390*6a54128fSAndroid Build Coastguard Worker fi 3391*6a54128fSAndroid Build Coastguard Workerdone 3392*6a54128fSAndroid Build Coastguard Workerif $ac_cache_corrupted; then 3393*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3394*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3395*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3396*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3397*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3398*6a54128fSAndroid Build Coastguard Worker and start over" "$LINENO" 5 3399*6a54128fSAndroid Build Coastguard Workerfi 3400*6a54128fSAndroid Build Coastguard Worker## -------------------- ## 3401*6a54128fSAndroid Build Coastguard Worker## Main body of script. ## 3402*6a54128fSAndroid Build Coastguard Worker## -------------------- ## 3403*6a54128fSAndroid Build Coastguard Worker 3404*6a54128fSAndroid Build Coastguard Workerac_ext=c 3405*6a54128fSAndroid Build Coastguard Workerac_cpp='$CPP $CPPFLAGS' 3406*6a54128fSAndroid Build Coastguard Workerac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3407*6a54128fSAndroid Build Coastguard Workerac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3408*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_c_compiler_gnu 3409*6a54128fSAndroid Build Coastguard Worker 3410*6a54128fSAndroid Build Coastguard Worker 3411*6a54128fSAndroid Build Coastguard Worker 3412*6a54128fSAndroid Build Coastguard Worker 3413*6a54128fSAndroid Build Coastguard Worker 3414*6a54128fSAndroid Build Coastguard Workerac_config_headers="$ac_config_headers lib/config.h" 3415*6a54128fSAndroid Build Coastguard Worker 3416*6a54128fSAndroid Build Coastguard Worker 3417*6a54128fSAndroid Build Coastguard Worker 3418*6a54128fSAndroid Build Coastguard Worker 3419*6a54128fSAndroid Build Coastguard Worker 3420*6a54128fSAndroid Build Coastguard Worker 3421*6a54128fSAndroid Build Coastguard Worker 3422*6a54128fSAndroid Build Coastguard Worker 3423*6a54128fSAndroid Build Coastguard Worker 3424*6a54128fSAndroid Build Coastguard Worker 3425*6a54128fSAndroid Build Coastguard Worker 3426*6a54128fSAndroid Build Coastguard Workerac_ext=c 3427*6a54128fSAndroid Build Coastguard Workerac_cpp='$CPP $CPPFLAGS' 3428*6a54128fSAndroid Build Coastguard Workerac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3429*6a54128fSAndroid Build Coastguard Workerac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3430*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_c_compiler_gnu 3431*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_tool_prefix"; then 3432*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3433*6a54128fSAndroid Build Coastguard Workerset dummy ${ac_tool_prefix}gcc; ac_word=$2 3434*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3435*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 3436*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_CC+y} 3437*6a54128fSAndroid Build Coastguard Workerthen : 3438*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 3439*6a54128fSAndroid Build Coastguard Workerelse $as_nop 3440*6a54128fSAndroid Build Coastguard Worker if test -n "$CC"; then 3441*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="$CC" # Let the user override the test. 3442*6a54128fSAndroid Build Coastguard Workerelse 3443*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3444*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 3445*6a54128fSAndroid Build Coastguard Workerdo 3446*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 3447*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 3448*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 3449*6a54128fSAndroid Build Coastguard Worker */) ;; 3450*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 3451*6a54128fSAndroid Build Coastguard Worker esac 3452*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 3453*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3454*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="${ac_tool_prefix}gcc" 3455*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3456*6a54128fSAndroid Build Coastguard Worker break 2 3457*6a54128fSAndroid Build Coastguard Worker fi 3458*6a54128fSAndroid Build Coastguard Workerdone 3459*6a54128fSAndroid Build Coastguard Worker done 3460*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 3461*6a54128fSAndroid Build Coastguard Worker 3462*6a54128fSAndroid Build Coastguard Workerfi 3463*6a54128fSAndroid Build Coastguard Workerfi 3464*6a54128fSAndroid Build Coastguard WorkerCC=$ac_cv_prog_CC 3465*6a54128fSAndroid Build Coastguard Workerif test -n "$CC"; then 3466*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3467*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$CC" >&6; } 3468*6a54128fSAndroid Build Coastguard Workerelse 3469*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3470*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 3471*6a54128fSAndroid Build Coastguard Workerfi 3472*6a54128fSAndroid Build Coastguard Worker 3473*6a54128fSAndroid Build Coastguard Worker 3474*6a54128fSAndroid Build Coastguard Workerfi 3475*6a54128fSAndroid Build Coastguard Workerif test -z "$ac_cv_prog_CC"; then 3476*6a54128fSAndroid Build Coastguard Worker ac_ct_CC=$CC 3477*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "gcc", so it can be a program name with args. 3478*6a54128fSAndroid Build Coastguard Workerset dummy gcc; ac_word=$2 3479*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3480*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 3481*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_ac_ct_CC+y} 3482*6a54128fSAndroid Build Coastguard Workerthen : 3483*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 3484*6a54128fSAndroid Build Coastguard Workerelse $as_nop 3485*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_ct_CC"; then 3486*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3487*6a54128fSAndroid Build Coastguard Workerelse 3488*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3489*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 3490*6a54128fSAndroid Build Coastguard Workerdo 3491*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 3492*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 3493*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 3494*6a54128fSAndroid Build Coastguard Worker */) ;; 3495*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 3496*6a54128fSAndroid Build Coastguard Worker esac 3497*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 3498*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3499*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_CC="gcc" 3500*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3501*6a54128fSAndroid Build Coastguard Worker break 2 3502*6a54128fSAndroid Build Coastguard Worker fi 3503*6a54128fSAndroid Build Coastguard Workerdone 3504*6a54128fSAndroid Build Coastguard Worker done 3505*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 3506*6a54128fSAndroid Build Coastguard Worker 3507*6a54128fSAndroid Build Coastguard Workerfi 3508*6a54128fSAndroid Build Coastguard Workerfi 3509*6a54128fSAndroid Build Coastguard Workerac_ct_CC=$ac_cv_prog_ac_ct_CC 3510*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_ct_CC"; then 3511*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3512*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_ct_CC" >&6; } 3513*6a54128fSAndroid Build Coastguard Workerelse 3514*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3515*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 3516*6a54128fSAndroid Build Coastguard Workerfi 3517*6a54128fSAndroid Build Coastguard Worker 3518*6a54128fSAndroid Build Coastguard Worker if test "x$ac_ct_CC" = x; then 3519*6a54128fSAndroid Build Coastguard Worker CC="" 3520*6a54128fSAndroid Build Coastguard Worker else 3521*6a54128fSAndroid Build Coastguard Worker case $cross_compiling:$ac_tool_warned in 3522*6a54128fSAndroid Build Coastguard Workeryes:) 3523*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3524*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3525*6a54128fSAndroid Build Coastguard Workerac_tool_warned=yes ;; 3526*6a54128fSAndroid Build Coastguard Workeresac 3527*6a54128fSAndroid Build Coastguard Worker CC=$ac_ct_CC 3528*6a54128fSAndroid Build Coastguard Worker fi 3529*6a54128fSAndroid Build Coastguard Workerelse 3530*6a54128fSAndroid Build Coastguard Worker CC="$ac_cv_prog_CC" 3531*6a54128fSAndroid Build Coastguard Workerfi 3532*6a54128fSAndroid Build Coastguard Worker 3533*6a54128fSAndroid Build Coastguard Workerif test -z "$CC"; then 3534*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_tool_prefix"; then 3535*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3536*6a54128fSAndroid Build Coastguard Workerset dummy ${ac_tool_prefix}cc; ac_word=$2 3537*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3538*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 3539*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_CC+y} 3540*6a54128fSAndroid Build Coastguard Workerthen : 3541*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 3542*6a54128fSAndroid Build Coastguard Workerelse $as_nop 3543*6a54128fSAndroid Build Coastguard Worker if test -n "$CC"; then 3544*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="$CC" # Let the user override the test. 3545*6a54128fSAndroid Build Coastguard Workerelse 3546*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3547*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 3548*6a54128fSAndroid Build Coastguard Workerdo 3549*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 3550*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 3551*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 3552*6a54128fSAndroid Build Coastguard Worker */) ;; 3553*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 3554*6a54128fSAndroid Build Coastguard Worker esac 3555*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 3556*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3557*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="${ac_tool_prefix}cc" 3558*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3559*6a54128fSAndroid Build Coastguard Worker break 2 3560*6a54128fSAndroid Build Coastguard Worker fi 3561*6a54128fSAndroid Build Coastguard Workerdone 3562*6a54128fSAndroid Build Coastguard Worker done 3563*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 3564*6a54128fSAndroid Build Coastguard Worker 3565*6a54128fSAndroid Build Coastguard Workerfi 3566*6a54128fSAndroid Build Coastguard Workerfi 3567*6a54128fSAndroid Build Coastguard WorkerCC=$ac_cv_prog_CC 3568*6a54128fSAndroid Build Coastguard Workerif test -n "$CC"; then 3569*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3570*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$CC" >&6; } 3571*6a54128fSAndroid Build Coastguard Workerelse 3572*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3573*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 3574*6a54128fSAndroid Build Coastguard Workerfi 3575*6a54128fSAndroid Build Coastguard Worker 3576*6a54128fSAndroid Build Coastguard Worker 3577*6a54128fSAndroid Build Coastguard Worker fi 3578*6a54128fSAndroid Build Coastguard Workerfi 3579*6a54128fSAndroid Build Coastguard Workerif test -z "$CC"; then 3580*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "cc", so it can be a program name with args. 3581*6a54128fSAndroid Build Coastguard Workerset dummy cc; ac_word=$2 3582*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3583*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 3584*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_CC+y} 3585*6a54128fSAndroid Build Coastguard Workerthen : 3586*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 3587*6a54128fSAndroid Build Coastguard Workerelse $as_nop 3588*6a54128fSAndroid Build Coastguard Worker if test -n "$CC"; then 3589*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="$CC" # Let the user override the test. 3590*6a54128fSAndroid Build Coastguard Workerelse 3591*6a54128fSAndroid Build Coastguard Worker ac_prog_rejected=no 3592*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3593*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 3594*6a54128fSAndroid Build Coastguard Workerdo 3595*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 3596*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 3597*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 3598*6a54128fSAndroid Build Coastguard Worker */) ;; 3599*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 3600*6a54128fSAndroid Build Coastguard Worker esac 3601*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 3602*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3603*6a54128fSAndroid Build Coastguard Worker if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3604*6a54128fSAndroid Build Coastguard Worker ac_prog_rejected=yes 3605*6a54128fSAndroid Build Coastguard Worker continue 3606*6a54128fSAndroid Build Coastguard Worker fi 3607*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="cc" 3608*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3609*6a54128fSAndroid Build Coastguard Worker break 2 3610*6a54128fSAndroid Build Coastguard Worker fi 3611*6a54128fSAndroid Build Coastguard Workerdone 3612*6a54128fSAndroid Build Coastguard Worker done 3613*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 3614*6a54128fSAndroid Build Coastguard Worker 3615*6a54128fSAndroid Build Coastguard Workerif test $ac_prog_rejected = yes; then 3616*6a54128fSAndroid Build Coastguard Worker # We found a bogon in the path, so make sure we never use it. 3617*6a54128fSAndroid Build Coastguard Worker set dummy $ac_cv_prog_CC 3618*6a54128fSAndroid Build Coastguard Worker shift 3619*6a54128fSAndroid Build Coastguard Worker if test $# != 0; then 3620*6a54128fSAndroid Build Coastguard Worker # We chose a different compiler from the bogus one. 3621*6a54128fSAndroid Build Coastguard Worker # However, it has the same basename, so the bogon will be chosen 3622*6a54128fSAndroid Build Coastguard Worker # first if we set CC to just the basename; use the full file name. 3623*6a54128fSAndroid Build Coastguard Worker shift 3624*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3625*6a54128fSAndroid Build Coastguard Worker fi 3626*6a54128fSAndroid Build Coastguard Workerfi 3627*6a54128fSAndroid Build Coastguard Workerfi 3628*6a54128fSAndroid Build Coastguard Workerfi 3629*6a54128fSAndroid Build Coastguard WorkerCC=$ac_cv_prog_CC 3630*6a54128fSAndroid Build Coastguard Workerif test -n "$CC"; then 3631*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3632*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$CC" >&6; } 3633*6a54128fSAndroid Build Coastguard Workerelse 3634*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3635*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 3636*6a54128fSAndroid Build Coastguard Workerfi 3637*6a54128fSAndroid Build Coastguard Worker 3638*6a54128fSAndroid Build Coastguard Worker 3639*6a54128fSAndroid Build Coastguard Workerfi 3640*6a54128fSAndroid Build Coastguard Workerif test -z "$CC"; then 3641*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_tool_prefix"; then 3642*6a54128fSAndroid Build Coastguard Worker for ac_prog in cl.exe 3643*6a54128fSAndroid Build Coastguard Worker do 3644*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3645*6a54128fSAndroid Build Coastguard Workerset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3646*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3647*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 3648*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_CC+y} 3649*6a54128fSAndroid Build Coastguard Workerthen : 3650*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 3651*6a54128fSAndroid Build Coastguard Workerelse $as_nop 3652*6a54128fSAndroid Build Coastguard Worker if test -n "$CC"; then 3653*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="$CC" # Let the user override the test. 3654*6a54128fSAndroid Build Coastguard Workerelse 3655*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3656*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 3657*6a54128fSAndroid Build Coastguard Workerdo 3658*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 3659*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 3660*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 3661*6a54128fSAndroid Build Coastguard Worker */) ;; 3662*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 3663*6a54128fSAndroid Build Coastguard Worker esac 3664*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 3665*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3666*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3667*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3668*6a54128fSAndroid Build Coastguard Worker break 2 3669*6a54128fSAndroid Build Coastguard Worker fi 3670*6a54128fSAndroid Build Coastguard Workerdone 3671*6a54128fSAndroid Build Coastguard Worker done 3672*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 3673*6a54128fSAndroid Build Coastguard Worker 3674*6a54128fSAndroid Build Coastguard Workerfi 3675*6a54128fSAndroid Build Coastguard Workerfi 3676*6a54128fSAndroid Build Coastguard WorkerCC=$ac_cv_prog_CC 3677*6a54128fSAndroid Build Coastguard Workerif test -n "$CC"; then 3678*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3679*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$CC" >&6; } 3680*6a54128fSAndroid Build Coastguard Workerelse 3681*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3682*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 3683*6a54128fSAndroid Build Coastguard Workerfi 3684*6a54128fSAndroid Build Coastguard Worker 3685*6a54128fSAndroid Build Coastguard Worker 3686*6a54128fSAndroid Build Coastguard Worker test -n "$CC" && break 3687*6a54128fSAndroid Build Coastguard Worker done 3688*6a54128fSAndroid Build Coastguard Workerfi 3689*6a54128fSAndroid Build Coastguard Workerif test -z "$CC"; then 3690*6a54128fSAndroid Build Coastguard Worker ac_ct_CC=$CC 3691*6a54128fSAndroid Build Coastguard Worker for ac_prog in cl.exe 3692*6a54128fSAndroid Build Coastguard Workerdo 3693*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "$ac_prog", so it can be a program name with args. 3694*6a54128fSAndroid Build Coastguard Workerset dummy $ac_prog; ac_word=$2 3695*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3696*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 3697*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_ac_ct_CC+y} 3698*6a54128fSAndroid Build Coastguard Workerthen : 3699*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 3700*6a54128fSAndroid Build Coastguard Workerelse $as_nop 3701*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_ct_CC"; then 3702*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3703*6a54128fSAndroid Build Coastguard Workerelse 3704*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3705*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 3706*6a54128fSAndroid Build Coastguard Workerdo 3707*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 3708*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 3709*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 3710*6a54128fSAndroid Build Coastguard Worker */) ;; 3711*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 3712*6a54128fSAndroid Build Coastguard Worker esac 3713*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 3714*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3715*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_CC="$ac_prog" 3716*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3717*6a54128fSAndroid Build Coastguard Worker break 2 3718*6a54128fSAndroid Build Coastguard Worker fi 3719*6a54128fSAndroid Build Coastguard Workerdone 3720*6a54128fSAndroid Build Coastguard Worker done 3721*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 3722*6a54128fSAndroid Build Coastguard Worker 3723*6a54128fSAndroid Build Coastguard Workerfi 3724*6a54128fSAndroid Build Coastguard Workerfi 3725*6a54128fSAndroid Build Coastguard Workerac_ct_CC=$ac_cv_prog_ac_ct_CC 3726*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_ct_CC"; then 3727*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3728*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_ct_CC" >&6; } 3729*6a54128fSAndroid Build Coastguard Workerelse 3730*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3731*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 3732*6a54128fSAndroid Build Coastguard Workerfi 3733*6a54128fSAndroid Build Coastguard Worker 3734*6a54128fSAndroid Build Coastguard Worker 3735*6a54128fSAndroid Build Coastguard Worker test -n "$ac_ct_CC" && break 3736*6a54128fSAndroid Build Coastguard Workerdone 3737*6a54128fSAndroid Build Coastguard Worker 3738*6a54128fSAndroid Build Coastguard Worker if test "x$ac_ct_CC" = x; then 3739*6a54128fSAndroid Build Coastguard Worker CC="" 3740*6a54128fSAndroid Build Coastguard Worker else 3741*6a54128fSAndroid Build Coastguard Worker case $cross_compiling:$ac_tool_warned in 3742*6a54128fSAndroid Build Coastguard Workeryes:) 3743*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3744*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3745*6a54128fSAndroid Build Coastguard Workerac_tool_warned=yes ;; 3746*6a54128fSAndroid Build Coastguard Workeresac 3747*6a54128fSAndroid Build Coastguard Worker CC=$ac_ct_CC 3748*6a54128fSAndroid Build Coastguard Worker fi 3749*6a54128fSAndroid Build Coastguard Workerfi 3750*6a54128fSAndroid Build Coastguard Worker 3751*6a54128fSAndroid Build Coastguard Workerfi 3752*6a54128fSAndroid Build Coastguard Workerif test -z "$CC"; then 3753*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_tool_prefix"; then 3754*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3755*6a54128fSAndroid Build Coastguard Workerset dummy ${ac_tool_prefix}clang; ac_word=$2 3756*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3757*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 3758*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_CC+y} 3759*6a54128fSAndroid Build Coastguard Workerthen : 3760*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 3761*6a54128fSAndroid Build Coastguard Workerelse $as_nop 3762*6a54128fSAndroid Build Coastguard Worker if test -n "$CC"; then 3763*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="$CC" # Let the user override the test. 3764*6a54128fSAndroid Build Coastguard Workerelse 3765*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3766*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 3767*6a54128fSAndroid Build Coastguard Workerdo 3768*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 3769*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 3770*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 3771*6a54128fSAndroid Build Coastguard Worker */) ;; 3772*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 3773*6a54128fSAndroid Build Coastguard Worker esac 3774*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 3775*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3776*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="${ac_tool_prefix}clang" 3777*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3778*6a54128fSAndroid Build Coastguard Worker break 2 3779*6a54128fSAndroid Build Coastguard Worker fi 3780*6a54128fSAndroid Build Coastguard Workerdone 3781*6a54128fSAndroid Build Coastguard Worker done 3782*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 3783*6a54128fSAndroid Build Coastguard Worker 3784*6a54128fSAndroid Build Coastguard Workerfi 3785*6a54128fSAndroid Build Coastguard Workerfi 3786*6a54128fSAndroid Build Coastguard WorkerCC=$ac_cv_prog_CC 3787*6a54128fSAndroid Build Coastguard Workerif test -n "$CC"; then 3788*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3789*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$CC" >&6; } 3790*6a54128fSAndroid Build Coastguard Workerelse 3791*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3792*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 3793*6a54128fSAndroid Build Coastguard Workerfi 3794*6a54128fSAndroid Build Coastguard Worker 3795*6a54128fSAndroid Build Coastguard Worker 3796*6a54128fSAndroid Build Coastguard Workerfi 3797*6a54128fSAndroid Build Coastguard Workerif test -z "$ac_cv_prog_CC"; then 3798*6a54128fSAndroid Build Coastguard Worker ac_ct_CC=$CC 3799*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "clang", so it can be a program name with args. 3800*6a54128fSAndroid Build Coastguard Workerset dummy clang; ac_word=$2 3801*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3802*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 3803*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_ac_ct_CC+y} 3804*6a54128fSAndroid Build Coastguard Workerthen : 3805*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 3806*6a54128fSAndroid Build Coastguard Workerelse $as_nop 3807*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_ct_CC"; then 3808*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3809*6a54128fSAndroid Build Coastguard Workerelse 3810*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3811*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 3812*6a54128fSAndroid Build Coastguard Workerdo 3813*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 3814*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 3815*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 3816*6a54128fSAndroid Build Coastguard Worker */) ;; 3817*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 3818*6a54128fSAndroid Build Coastguard Worker esac 3819*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 3820*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3821*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_CC="clang" 3822*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3823*6a54128fSAndroid Build Coastguard Worker break 2 3824*6a54128fSAndroid Build Coastguard Worker fi 3825*6a54128fSAndroid Build Coastguard Workerdone 3826*6a54128fSAndroid Build Coastguard Worker done 3827*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 3828*6a54128fSAndroid Build Coastguard Worker 3829*6a54128fSAndroid Build Coastguard Workerfi 3830*6a54128fSAndroid Build Coastguard Workerfi 3831*6a54128fSAndroid Build Coastguard Workerac_ct_CC=$ac_cv_prog_ac_ct_CC 3832*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_ct_CC"; then 3833*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3834*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_ct_CC" >&6; } 3835*6a54128fSAndroid Build Coastguard Workerelse 3836*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3837*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 3838*6a54128fSAndroid Build Coastguard Workerfi 3839*6a54128fSAndroid Build Coastguard Worker 3840*6a54128fSAndroid Build Coastguard Worker if test "x$ac_ct_CC" = x; then 3841*6a54128fSAndroid Build Coastguard Worker CC="" 3842*6a54128fSAndroid Build Coastguard Worker else 3843*6a54128fSAndroid Build Coastguard Worker case $cross_compiling:$ac_tool_warned in 3844*6a54128fSAndroid Build Coastguard Workeryes:) 3845*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3846*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3847*6a54128fSAndroid Build Coastguard Workerac_tool_warned=yes ;; 3848*6a54128fSAndroid Build Coastguard Workeresac 3849*6a54128fSAndroid Build Coastguard Worker CC=$ac_ct_CC 3850*6a54128fSAndroid Build Coastguard Worker fi 3851*6a54128fSAndroid Build Coastguard Workerelse 3852*6a54128fSAndroid Build Coastguard Worker CC="$ac_cv_prog_CC" 3853*6a54128fSAndroid Build Coastguard Workerfi 3854*6a54128fSAndroid Build Coastguard Worker 3855*6a54128fSAndroid Build Coastguard Workerfi 3856*6a54128fSAndroid Build Coastguard Worker 3857*6a54128fSAndroid Build Coastguard Worker 3858*6a54128fSAndroid Build Coastguard Workertest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3859*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3860*6a54128fSAndroid Build Coastguard Workeras_fn_error $? "no acceptable C compiler found in \$PATH 3861*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 3862*6a54128fSAndroid Build Coastguard Worker 3863*6a54128fSAndroid Build Coastguard Worker# Provide some information about the compiler. 3864*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3865*6a54128fSAndroid Build Coastguard Workerset X $ac_compile 3866*6a54128fSAndroid Build Coastguard Workerac_compiler=$2 3867*6a54128fSAndroid Build Coastguard Workerfor ac_option in --version -v -V -qversion -version; do 3868*6a54128fSAndroid Build Coastguard Worker { { ac_try="$ac_compiler $ac_option >&5" 3869*6a54128fSAndroid Build Coastguard Workercase "(($ac_try" in 3870*6a54128fSAndroid Build Coastguard Worker *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3871*6a54128fSAndroid Build Coastguard Worker *) ac_try_echo=$ac_try;; 3872*6a54128fSAndroid Build Coastguard Workeresac 3873*6a54128fSAndroid Build Coastguard Workereval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3874*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_try_echo"; } >&5 3875*6a54128fSAndroid Build Coastguard Worker (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3876*6a54128fSAndroid Build Coastguard Worker ac_status=$? 3877*6a54128fSAndroid Build Coastguard Worker if test -s conftest.err; then 3878*6a54128fSAndroid Build Coastguard Worker sed '10a\ 3879*6a54128fSAndroid Build Coastguard Worker... rest of stderr output deleted ... 3880*6a54128fSAndroid Build Coastguard Worker 10q' conftest.err >conftest.er1 3881*6a54128fSAndroid Build Coastguard Worker cat conftest.er1 >&5 3882*6a54128fSAndroid Build Coastguard Worker fi 3883*6a54128fSAndroid Build Coastguard Worker rm -f conftest.er1 conftest.err 3884*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3885*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; } 3886*6a54128fSAndroid Build Coastguard Workerdone 3887*6a54128fSAndroid Build Coastguard Worker 3888*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 3889*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 3890*6a54128fSAndroid Build Coastguard Worker 3891*6a54128fSAndroid Build Coastguard Workerint 3892*6a54128fSAndroid Build Coastguard Workermain (void) 3893*6a54128fSAndroid Build Coastguard Worker{ 3894*6a54128fSAndroid Build Coastguard Worker 3895*6a54128fSAndroid Build Coastguard Worker ; 3896*6a54128fSAndroid Build Coastguard Worker return 0; 3897*6a54128fSAndroid Build Coastguard Worker} 3898*6a54128fSAndroid Build Coastguard Worker_ACEOF 3899*6a54128fSAndroid Build Coastguard Workerac_clean_files_save=$ac_clean_files 3900*6a54128fSAndroid Build Coastguard Workerac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3901*6a54128fSAndroid Build Coastguard Worker# Try to create an executable without -o first, disregard a.out. 3902*6a54128fSAndroid Build Coastguard Worker# It will help us diagnose broken compilers, and finding out an intuition 3903*6a54128fSAndroid Build Coastguard Worker# of exeext. 3904*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3905*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether the C compiler works... " >&6; } 3906*6a54128fSAndroid Build Coastguard Workerac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3907*6a54128fSAndroid Build Coastguard Worker 3908*6a54128fSAndroid Build Coastguard Worker# The possible output files: 3909*6a54128fSAndroid Build Coastguard Workerac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3910*6a54128fSAndroid Build Coastguard Worker 3911*6a54128fSAndroid Build Coastguard Workerac_rmfiles= 3912*6a54128fSAndroid Build Coastguard Workerfor ac_file in $ac_files 3913*6a54128fSAndroid Build Coastguard Workerdo 3914*6a54128fSAndroid Build Coastguard Worker case $ac_file in 3915*6a54128fSAndroid Build Coastguard Worker *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3916*6a54128fSAndroid Build Coastguard Worker * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3917*6a54128fSAndroid Build Coastguard Worker esac 3918*6a54128fSAndroid Build Coastguard Workerdone 3919*6a54128fSAndroid Build Coastguard Workerrm -f $ac_rmfiles 3920*6a54128fSAndroid Build Coastguard Worker 3921*6a54128fSAndroid Build Coastguard Workerif { { ac_try="$ac_link_default" 3922*6a54128fSAndroid Build Coastguard Workercase "(($ac_try" in 3923*6a54128fSAndroid Build Coastguard Worker *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3924*6a54128fSAndroid Build Coastguard Worker *) ac_try_echo=$ac_try;; 3925*6a54128fSAndroid Build Coastguard Workeresac 3926*6a54128fSAndroid Build Coastguard Workereval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3927*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_try_echo"; } >&5 3928*6a54128fSAndroid Build Coastguard Worker (eval "$ac_link_default") 2>&5 3929*6a54128fSAndroid Build Coastguard Worker ac_status=$? 3930*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3931*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; } 3932*6a54128fSAndroid Build Coastguard Workerthen : 3933*6a54128fSAndroid Build Coastguard Worker # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3934*6a54128fSAndroid Build Coastguard Worker# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3935*6a54128fSAndroid Build Coastguard Worker# in a Makefile. We should not override ac_cv_exeext if it was cached, 3936*6a54128fSAndroid Build Coastguard Worker# so that the user can short-circuit this test for compilers unknown to 3937*6a54128fSAndroid Build Coastguard Worker# Autoconf. 3938*6a54128fSAndroid Build Coastguard Workerfor ac_file in $ac_files '' 3939*6a54128fSAndroid Build Coastguard Workerdo 3940*6a54128fSAndroid Build Coastguard Worker test -f "$ac_file" || continue 3941*6a54128fSAndroid Build Coastguard Worker case $ac_file in 3942*6a54128fSAndroid Build Coastguard Worker *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3943*6a54128fSAndroid Build Coastguard Worker ;; 3944*6a54128fSAndroid Build Coastguard Worker [ab].out ) 3945*6a54128fSAndroid Build Coastguard Worker # We found the default executable, but exeext='' is most 3946*6a54128fSAndroid Build Coastguard Worker # certainly right. 3947*6a54128fSAndroid Build Coastguard Worker break;; 3948*6a54128fSAndroid Build Coastguard Worker *.* ) 3949*6a54128fSAndroid Build Coastguard Worker if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3950*6a54128fSAndroid Build Coastguard Worker then :; else 3951*6a54128fSAndroid Build Coastguard Worker ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3952*6a54128fSAndroid Build Coastguard Worker fi 3953*6a54128fSAndroid Build Coastguard Worker # We set ac_cv_exeext here because the later test for it is not 3954*6a54128fSAndroid Build Coastguard Worker # safe: cross compilers may not add the suffix if given an `-o' 3955*6a54128fSAndroid Build Coastguard Worker # argument, so we may need to know it at that point already. 3956*6a54128fSAndroid Build Coastguard Worker # Even if this section looks crufty: it has the advantage of 3957*6a54128fSAndroid Build Coastguard Worker # actually working. 3958*6a54128fSAndroid Build Coastguard Worker break;; 3959*6a54128fSAndroid Build Coastguard Worker * ) 3960*6a54128fSAndroid Build Coastguard Worker break;; 3961*6a54128fSAndroid Build Coastguard Worker esac 3962*6a54128fSAndroid Build Coastguard Workerdone 3963*6a54128fSAndroid Build Coastguard Workertest "$ac_cv_exeext" = no && ac_cv_exeext= 3964*6a54128fSAndroid Build Coastguard Worker 3965*6a54128fSAndroid Build Coastguard Workerelse $as_nop 3966*6a54128fSAndroid Build Coastguard Worker ac_file='' 3967*6a54128fSAndroid Build Coastguard Workerfi 3968*6a54128fSAndroid Build Coastguard Workerif test -z "$ac_file" 3969*6a54128fSAndroid Build Coastguard Workerthen : 3970*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3971*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 3972*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: failed program was:" >&5 3973*6a54128fSAndroid Build Coastguard Workersed 's/^/| /' conftest.$ac_ext >&5 3974*6a54128fSAndroid Build Coastguard Worker 3975*6a54128fSAndroid Build Coastguard Worker{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3976*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3977*6a54128fSAndroid Build Coastguard Workeras_fn_error 77 "C compiler cannot create executables 3978*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 3979*6a54128fSAndroid Build Coastguard Workerelse $as_nop 3980*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3981*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "yes" >&6; } 3982*6a54128fSAndroid Build Coastguard Workerfi 3983*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3984*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for C compiler default output file name... " >&6; } 3985*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3986*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_file" >&6; } 3987*6a54128fSAndroid Build Coastguard Workerac_exeext=$ac_cv_exeext 3988*6a54128fSAndroid Build Coastguard Worker 3989*6a54128fSAndroid Build Coastguard Workerrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3990*6a54128fSAndroid Build Coastguard Workerac_clean_files=$ac_clean_files_save 3991*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3992*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for suffix of executables... " >&6; } 3993*6a54128fSAndroid Build Coastguard Workerif { { ac_try="$ac_link" 3994*6a54128fSAndroid Build Coastguard Workercase "(($ac_try" in 3995*6a54128fSAndroid Build Coastguard Worker *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3996*6a54128fSAndroid Build Coastguard Worker *) ac_try_echo=$ac_try;; 3997*6a54128fSAndroid Build Coastguard Workeresac 3998*6a54128fSAndroid Build Coastguard Workereval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3999*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_try_echo"; } >&5 4000*6a54128fSAndroid Build Coastguard Worker (eval "$ac_link") 2>&5 4001*6a54128fSAndroid Build Coastguard Worker ac_status=$? 4002*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4003*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; } 4004*6a54128fSAndroid Build Coastguard Workerthen : 4005*6a54128fSAndroid Build Coastguard Worker # If both `conftest.exe' and `conftest' are `present' (well, observable) 4006*6a54128fSAndroid Build Coastguard Worker# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4007*6a54128fSAndroid Build Coastguard Worker# work properly (i.e., refer to `conftest.exe'), while it won't with 4008*6a54128fSAndroid Build Coastguard Worker# `rm'. 4009*6a54128fSAndroid Build Coastguard Workerfor ac_file in conftest.exe conftest conftest.*; do 4010*6a54128fSAndroid Build Coastguard Worker test -f "$ac_file" || continue 4011*6a54128fSAndroid Build Coastguard Worker case $ac_file in 4012*6a54128fSAndroid Build Coastguard Worker *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4013*6a54128fSAndroid Build Coastguard Worker *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4014*6a54128fSAndroid Build Coastguard Worker break;; 4015*6a54128fSAndroid Build Coastguard Worker * ) break;; 4016*6a54128fSAndroid Build Coastguard Worker esac 4017*6a54128fSAndroid Build Coastguard Workerdone 4018*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4019*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4020*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4021*6a54128fSAndroid Build Coastguard Workeras_fn_error $? "cannot compute suffix of executables: cannot compile and link 4022*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 4023*6a54128fSAndroid Build Coastguard Workerfi 4024*6a54128fSAndroid Build Coastguard Workerrm -f conftest conftest$ac_cv_exeext 4025*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4026*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_exeext" >&6; } 4027*6a54128fSAndroid Build Coastguard Worker 4028*6a54128fSAndroid Build Coastguard Workerrm -f conftest.$ac_ext 4029*6a54128fSAndroid Build Coastguard WorkerEXEEXT=$ac_cv_exeext 4030*6a54128fSAndroid Build Coastguard Workerac_exeext=$EXEEXT 4031*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 4032*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 4033*6a54128fSAndroid Build Coastguard Worker#include <stdio.h> 4034*6a54128fSAndroid Build Coastguard Workerint 4035*6a54128fSAndroid Build Coastguard Workermain (void) 4036*6a54128fSAndroid Build Coastguard Worker{ 4037*6a54128fSAndroid Build Coastguard WorkerFILE *f = fopen ("conftest.out", "w"); 4038*6a54128fSAndroid Build Coastguard Worker return ferror (f) || fclose (f) != 0; 4039*6a54128fSAndroid Build Coastguard Worker 4040*6a54128fSAndroid Build Coastguard Worker ; 4041*6a54128fSAndroid Build Coastguard Worker return 0; 4042*6a54128fSAndroid Build Coastguard Worker} 4043*6a54128fSAndroid Build Coastguard Worker_ACEOF 4044*6a54128fSAndroid Build Coastguard Workerac_clean_files="$ac_clean_files conftest.out" 4045*6a54128fSAndroid Build Coastguard Worker# Check that the compiler produces executables we can run. If not, either 4046*6a54128fSAndroid Build Coastguard Worker# the compiler is broken, or we cross compile. 4047*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4048*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether we are cross compiling... " >&6; } 4049*6a54128fSAndroid Build Coastguard Workerif test "$cross_compiling" != yes; then 4050*6a54128fSAndroid Build Coastguard Worker { { ac_try="$ac_link" 4051*6a54128fSAndroid Build Coastguard Workercase "(($ac_try" in 4052*6a54128fSAndroid Build Coastguard Worker *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4053*6a54128fSAndroid Build Coastguard Worker *) ac_try_echo=$ac_try;; 4054*6a54128fSAndroid Build Coastguard Workeresac 4055*6a54128fSAndroid Build Coastguard Workereval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4056*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_try_echo"; } >&5 4057*6a54128fSAndroid Build Coastguard Worker (eval "$ac_link") 2>&5 4058*6a54128fSAndroid Build Coastguard Worker ac_status=$? 4059*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4060*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; } 4061*6a54128fSAndroid Build Coastguard Worker if { ac_try='./conftest$ac_cv_exeext' 4062*6a54128fSAndroid Build Coastguard Worker { { case "(($ac_try" in 4063*6a54128fSAndroid Build Coastguard Worker *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4064*6a54128fSAndroid Build Coastguard Worker *) ac_try_echo=$ac_try;; 4065*6a54128fSAndroid Build Coastguard Workeresac 4066*6a54128fSAndroid Build Coastguard Workereval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4067*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_try_echo"; } >&5 4068*6a54128fSAndroid Build Coastguard Worker (eval "$ac_try") 2>&5 4069*6a54128fSAndroid Build Coastguard Worker ac_status=$? 4070*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4071*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; }; }; then 4072*6a54128fSAndroid Build Coastguard Worker cross_compiling=no 4073*6a54128fSAndroid Build Coastguard Worker else 4074*6a54128fSAndroid Build Coastguard Worker if test "$cross_compiling" = maybe; then 4075*6a54128fSAndroid Build Coastguard Worker cross_compiling=yes 4076*6a54128fSAndroid Build Coastguard Worker else 4077*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4078*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4079*6a54128fSAndroid Build Coastguard Workeras_fn_error 77 "cannot run C compiled programs. 4080*6a54128fSAndroid Build Coastguard WorkerIf you meant to cross compile, use \`--host'. 4081*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 4082*6a54128fSAndroid Build Coastguard Worker fi 4083*6a54128fSAndroid Build Coastguard Worker fi 4084*6a54128fSAndroid Build Coastguard Workerfi 4085*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4086*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$cross_compiling" >&6; } 4087*6a54128fSAndroid Build Coastguard Worker 4088*6a54128fSAndroid Build Coastguard Workerrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4089*6a54128fSAndroid Build Coastguard Workerac_clean_files=$ac_clean_files_save 4090*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4091*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for suffix of object files... " >&6; } 4092*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_objext+y} 4093*6a54128fSAndroid Build Coastguard Workerthen : 4094*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 4095*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4096*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4097*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 4098*6a54128fSAndroid Build Coastguard Worker 4099*6a54128fSAndroid Build Coastguard Workerint 4100*6a54128fSAndroid Build Coastguard Workermain (void) 4101*6a54128fSAndroid Build Coastguard Worker{ 4102*6a54128fSAndroid Build Coastguard Worker 4103*6a54128fSAndroid Build Coastguard Worker ; 4104*6a54128fSAndroid Build Coastguard Worker return 0; 4105*6a54128fSAndroid Build Coastguard Worker} 4106*6a54128fSAndroid Build Coastguard Worker_ACEOF 4107*6a54128fSAndroid Build Coastguard Workerrm -f conftest.o conftest.obj 4108*6a54128fSAndroid Build Coastguard Workerif { { ac_try="$ac_compile" 4109*6a54128fSAndroid Build Coastguard Workercase "(($ac_try" in 4110*6a54128fSAndroid Build Coastguard Worker *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4111*6a54128fSAndroid Build Coastguard Worker *) ac_try_echo=$ac_try;; 4112*6a54128fSAndroid Build Coastguard Workeresac 4113*6a54128fSAndroid Build Coastguard Workereval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4114*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_try_echo"; } >&5 4115*6a54128fSAndroid Build Coastguard Worker (eval "$ac_compile") 2>&5 4116*6a54128fSAndroid Build Coastguard Worker ac_status=$? 4117*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4118*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; } 4119*6a54128fSAndroid Build Coastguard Workerthen : 4120*6a54128fSAndroid Build Coastguard Worker for ac_file in conftest.o conftest.obj conftest.*; do 4121*6a54128fSAndroid Build Coastguard Worker test -f "$ac_file" || continue; 4122*6a54128fSAndroid Build Coastguard Worker case $ac_file in 4123*6a54128fSAndroid Build Coastguard Worker *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4124*6a54128fSAndroid Build Coastguard Worker *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4125*6a54128fSAndroid Build Coastguard Worker break;; 4126*6a54128fSAndroid Build Coastguard Worker esac 4127*6a54128fSAndroid Build Coastguard Workerdone 4128*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4129*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me: failed program was:" >&5 4130*6a54128fSAndroid Build Coastguard Workersed 's/^/| /' conftest.$ac_ext >&5 4131*6a54128fSAndroid Build Coastguard Worker 4132*6a54128fSAndroid Build Coastguard Worker{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4133*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4134*6a54128fSAndroid Build Coastguard Workeras_fn_error $? "cannot compute suffix of object files: cannot compile 4135*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 4136*6a54128fSAndroid Build Coastguard Workerfi 4137*6a54128fSAndroid Build Coastguard Workerrm -f conftest.$ac_cv_objext conftest.$ac_ext 4138*6a54128fSAndroid Build Coastguard Workerfi 4139*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4140*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_objext" >&6; } 4141*6a54128fSAndroid Build Coastguard WorkerOBJEXT=$ac_cv_objext 4142*6a54128fSAndroid Build Coastguard Workerac_objext=$OBJEXT 4143*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4144*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether the compiler supports GNU C... " >&6; } 4145*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_c_compiler_gnu+y} 4146*6a54128fSAndroid Build Coastguard Workerthen : 4147*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 4148*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4149*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4150*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 4151*6a54128fSAndroid Build Coastguard Worker 4152*6a54128fSAndroid Build Coastguard Workerint 4153*6a54128fSAndroid Build Coastguard Workermain (void) 4154*6a54128fSAndroid Build Coastguard Worker{ 4155*6a54128fSAndroid Build Coastguard Worker#ifndef __GNUC__ 4156*6a54128fSAndroid Build Coastguard Worker choke me 4157*6a54128fSAndroid Build Coastguard Worker#endif 4158*6a54128fSAndroid Build Coastguard Worker 4159*6a54128fSAndroid Build Coastguard Worker ; 4160*6a54128fSAndroid Build Coastguard Worker return 0; 4161*6a54128fSAndroid Build Coastguard Worker} 4162*6a54128fSAndroid Build Coastguard Worker_ACEOF 4163*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 4164*6a54128fSAndroid Build Coastguard Workerthen : 4165*6a54128fSAndroid Build Coastguard Worker ac_compiler_gnu=yes 4166*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4167*6a54128fSAndroid Build Coastguard Worker ac_compiler_gnu=no 4168*6a54128fSAndroid Build Coastguard Workerfi 4169*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4170*6a54128fSAndroid Build Coastguard Workerac_cv_c_compiler_gnu=$ac_compiler_gnu 4171*6a54128fSAndroid Build Coastguard Worker 4172*6a54128fSAndroid Build Coastguard Workerfi 4173*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4174*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4175*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_c_compiler_gnu 4176*6a54128fSAndroid Build Coastguard Worker 4177*6a54128fSAndroid Build Coastguard Workerif test $ac_compiler_gnu = yes; then 4178*6a54128fSAndroid Build Coastguard Worker GCC=yes 4179*6a54128fSAndroid Build Coastguard Workerelse 4180*6a54128fSAndroid Build Coastguard Worker GCC= 4181*6a54128fSAndroid Build Coastguard Workerfi 4182*6a54128fSAndroid Build Coastguard Workerac_test_CFLAGS=${CFLAGS+y} 4183*6a54128fSAndroid Build Coastguard Workerac_save_CFLAGS=$CFLAGS 4184*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4185*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether $CC accepts -g... " >&6; } 4186*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_cc_g+y} 4187*6a54128fSAndroid Build Coastguard Workerthen : 4188*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 4189*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4190*6a54128fSAndroid Build Coastguard Worker ac_save_c_werror_flag=$ac_c_werror_flag 4191*6a54128fSAndroid Build Coastguard Worker ac_c_werror_flag=yes 4192*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_g=no 4193*6a54128fSAndroid Build Coastguard Worker CFLAGS="-g" 4194*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4195*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 4196*6a54128fSAndroid Build Coastguard Worker 4197*6a54128fSAndroid Build Coastguard Workerint 4198*6a54128fSAndroid Build Coastguard Workermain (void) 4199*6a54128fSAndroid Build Coastguard Worker{ 4200*6a54128fSAndroid Build Coastguard Worker 4201*6a54128fSAndroid Build Coastguard Worker ; 4202*6a54128fSAndroid Build Coastguard Worker return 0; 4203*6a54128fSAndroid Build Coastguard Worker} 4204*6a54128fSAndroid Build Coastguard Worker_ACEOF 4205*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 4206*6a54128fSAndroid Build Coastguard Workerthen : 4207*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_g=yes 4208*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4209*6a54128fSAndroid Build Coastguard Worker CFLAGS="" 4210*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4211*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 4212*6a54128fSAndroid Build Coastguard Worker 4213*6a54128fSAndroid Build Coastguard Workerint 4214*6a54128fSAndroid Build Coastguard Workermain (void) 4215*6a54128fSAndroid Build Coastguard Worker{ 4216*6a54128fSAndroid Build Coastguard Worker 4217*6a54128fSAndroid Build Coastguard Worker ; 4218*6a54128fSAndroid Build Coastguard Worker return 0; 4219*6a54128fSAndroid Build Coastguard Worker} 4220*6a54128fSAndroid Build Coastguard Worker_ACEOF 4221*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 4222*6a54128fSAndroid Build Coastguard Workerthen : 4223*6a54128fSAndroid Build Coastguard Worker 4224*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4225*6a54128fSAndroid Build Coastguard Worker ac_c_werror_flag=$ac_save_c_werror_flag 4226*6a54128fSAndroid Build Coastguard Worker CFLAGS="-g" 4227*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4228*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 4229*6a54128fSAndroid Build Coastguard Worker 4230*6a54128fSAndroid Build Coastguard Workerint 4231*6a54128fSAndroid Build Coastguard Workermain (void) 4232*6a54128fSAndroid Build Coastguard Worker{ 4233*6a54128fSAndroid Build Coastguard Worker 4234*6a54128fSAndroid Build Coastguard Worker ; 4235*6a54128fSAndroid Build Coastguard Worker return 0; 4236*6a54128fSAndroid Build Coastguard Worker} 4237*6a54128fSAndroid Build Coastguard Worker_ACEOF 4238*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 4239*6a54128fSAndroid Build Coastguard Workerthen : 4240*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_g=yes 4241*6a54128fSAndroid Build Coastguard Workerfi 4242*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4243*6a54128fSAndroid Build Coastguard Workerfi 4244*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4245*6a54128fSAndroid Build Coastguard Workerfi 4246*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4247*6a54128fSAndroid Build Coastguard Worker ac_c_werror_flag=$ac_save_c_werror_flag 4248*6a54128fSAndroid Build Coastguard Workerfi 4249*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4250*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4251*6a54128fSAndroid Build Coastguard Workerif test $ac_test_CFLAGS; then 4252*6a54128fSAndroid Build Coastguard Worker CFLAGS=$ac_save_CFLAGS 4253*6a54128fSAndroid Build Coastguard Workerelif test $ac_cv_prog_cc_g = yes; then 4254*6a54128fSAndroid Build Coastguard Worker if test "$GCC" = yes; then 4255*6a54128fSAndroid Build Coastguard Worker CFLAGS="-g -O2" 4256*6a54128fSAndroid Build Coastguard Worker else 4257*6a54128fSAndroid Build Coastguard Worker CFLAGS="-g" 4258*6a54128fSAndroid Build Coastguard Worker fi 4259*6a54128fSAndroid Build Coastguard Workerelse 4260*6a54128fSAndroid Build Coastguard Worker if test "$GCC" = yes; then 4261*6a54128fSAndroid Build Coastguard Worker CFLAGS="-O2" 4262*6a54128fSAndroid Build Coastguard Worker else 4263*6a54128fSAndroid Build Coastguard Worker CFLAGS= 4264*6a54128fSAndroid Build Coastguard Worker fi 4265*6a54128fSAndroid Build Coastguard Workerfi 4266*6a54128fSAndroid Build Coastguard Workerac_prog_cc_stdc=no 4267*6a54128fSAndroid Build Coastguard Workerif test x$ac_prog_cc_stdc = xno 4268*6a54128fSAndroid Build Coastguard Workerthen : 4269*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4270*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $CC option to enable C11 features... " >&6; } 4271*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_cc_c11+y} 4272*6a54128fSAndroid Build Coastguard Workerthen : 4273*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 4274*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4275*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_c11=no 4276*6a54128fSAndroid Build Coastguard Workerac_save_CC=$CC 4277*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 4279*6a54128fSAndroid Build Coastguard Worker$ac_c_conftest_c11_program 4280*6a54128fSAndroid Build Coastguard Worker_ACEOF 4281*6a54128fSAndroid Build Coastguard Workerfor ac_arg in '' -std=gnu11 4282*6a54128fSAndroid Build Coastguard Workerdo 4283*6a54128fSAndroid Build Coastguard Worker CC="$ac_save_CC $ac_arg" 4284*6a54128fSAndroid Build Coastguard Worker if ac_fn_c_try_compile "$LINENO" 4285*6a54128fSAndroid Build Coastguard Workerthen : 4286*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_c11=$ac_arg 4287*6a54128fSAndroid Build Coastguard Workerfi 4288*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam 4289*6a54128fSAndroid Build Coastguard Worker test "x$ac_cv_prog_cc_c11" != "xno" && break 4290*6a54128fSAndroid Build Coastguard Workerdone 4291*6a54128fSAndroid Build Coastguard Workerrm -f conftest.$ac_ext 4292*6a54128fSAndroid Build Coastguard WorkerCC=$ac_save_CC 4293*6a54128fSAndroid Build Coastguard Workerfi 4294*6a54128fSAndroid Build Coastguard Worker 4295*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_prog_cc_c11" = xno 4296*6a54128fSAndroid Build Coastguard Workerthen : 4297*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4298*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "unsupported" >&6; } 4299*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4300*6a54128fSAndroid Build Coastguard Worker if test "x$ac_cv_prog_cc_c11" = x 4301*6a54128fSAndroid Build Coastguard Workerthen : 4302*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4303*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "none needed" >&6; } 4304*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4305*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4306*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4307*6a54128fSAndroid Build Coastguard Worker CC="$CC $ac_cv_prog_cc_c11" 4308*6a54128fSAndroid Build Coastguard Workerfi 4309*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4310*6a54128fSAndroid Build Coastguard Worker ac_prog_cc_stdc=c11 4311*6a54128fSAndroid Build Coastguard Workerfi 4312*6a54128fSAndroid Build Coastguard Workerfi 4313*6a54128fSAndroid Build Coastguard Workerif test x$ac_prog_cc_stdc = xno 4314*6a54128fSAndroid Build Coastguard Workerthen : 4315*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4316*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $CC option to enable C99 features... " >&6; } 4317*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_cc_c99+y} 4318*6a54128fSAndroid Build Coastguard Workerthen : 4319*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 4320*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4321*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_c99=no 4322*6a54128fSAndroid Build Coastguard Workerac_save_CC=$CC 4323*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 4324*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 4325*6a54128fSAndroid Build Coastguard Worker$ac_c_conftest_c99_program 4326*6a54128fSAndroid Build Coastguard Worker_ACEOF 4327*6a54128fSAndroid Build Coastguard Workerfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4328*6a54128fSAndroid Build Coastguard Workerdo 4329*6a54128fSAndroid Build Coastguard Worker CC="$ac_save_CC $ac_arg" 4330*6a54128fSAndroid Build Coastguard Worker if ac_fn_c_try_compile "$LINENO" 4331*6a54128fSAndroid Build Coastguard Workerthen : 4332*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_c99=$ac_arg 4333*6a54128fSAndroid Build Coastguard Workerfi 4334*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam 4335*6a54128fSAndroid Build Coastguard Worker test "x$ac_cv_prog_cc_c99" != "xno" && break 4336*6a54128fSAndroid Build Coastguard Workerdone 4337*6a54128fSAndroid Build Coastguard Workerrm -f conftest.$ac_ext 4338*6a54128fSAndroid Build Coastguard WorkerCC=$ac_save_CC 4339*6a54128fSAndroid Build Coastguard Workerfi 4340*6a54128fSAndroid Build Coastguard Worker 4341*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_prog_cc_c99" = xno 4342*6a54128fSAndroid Build Coastguard Workerthen : 4343*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4344*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "unsupported" >&6; } 4345*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4346*6a54128fSAndroid Build Coastguard Worker if test "x$ac_cv_prog_cc_c99" = x 4347*6a54128fSAndroid Build Coastguard Workerthen : 4348*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4349*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "none needed" >&6; } 4350*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4351*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4352*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4353*6a54128fSAndroid Build Coastguard Worker CC="$CC $ac_cv_prog_cc_c99" 4354*6a54128fSAndroid Build Coastguard Workerfi 4355*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4356*6a54128fSAndroid Build Coastguard Worker ac_prog_cc_stdc=c99 4357*6a54128fSAndroid Build Coastguard Workerfi 4358*6a54128fSAndroid Build Coastguard Workerfi 4359*6a54128fSAndroid Build Coastguard Workerif test x$ac_prog_cc_stdc = xno 4360*6a54128fSAndroid Build Coastguard Workerthen : 4361*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4362*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $CC option to enable C89 features... " >&6; } 4363*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_cc_c89+y} 4364*6a54128fSAndroid Build Coastguard Workerthen : 4365*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 4366*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4367*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_c89=no 4368*6a54128fSAndroid Build Coastguard Workerac_save_CC=$CC 4369*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 4370*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 4371*6a54128fSAndroid Build Coastguard Worker$ac_c_conftest_c89_program 4372*6a54128fSAndroid Build Coastguard Worker_ACEOF 4373*6a54128fSAndroid Build Coastguard Workerfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4374*6a54128fSAndroid Build Coastguard Workerdo 4375*6a54128fSAndroid Build Coastguard Worker CC="$ac_save_CC $ac_arg" 4376*6a54128fSAndroid Build Coastguard Worker if ac_fn_c_try_compile "$LINENO" 4377*6a54128fSAndroid Build Coastguard Workerthen : 4378*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_c89=$ac_arg 4379*6a54128fSAndroid Build Coastguard Workerfi 4380*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam 4381*6a54128fSAndroid Build Coastguard Worker test "x$ac_cv_prog_cc_c89" != "xno" && break 4382*6a54128fSAndroid Build Coastguard Workerdone 4383*6a54128fSAndroid Build Coastguard Workerrm -f conftest.$ac_ext 4384*6a54128fSAndroid Build Coastguard WorkerCC=$ac_save_CC 4385*6a54128fSAndroid Build Coastguard Workerfi 4386*6a54128fSAndroid Build Coastguard Worker 4387*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_prog_cc_c89" = xno 4388*6a54128fSAndroid Build Coastguard Workerthen : 4389*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4390*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "unsupported" >&6; } 4391*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4392*6a54128fSAndroid Build Coastguard Worker if test "x$ac_cv_prog_cc_c89" = x 4393*6a54128fSAndroid Build Coastguard Workerthen : 4394*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4395*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "none needed" >&6; } 4396*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4397*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4398*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4399*6a54128fSAndroid Build Coastguard Worker CC="$CC $ac_cv_prog_cc_c89" 4400*6a54128fSAndroid Build Coastguard Workerfi 4401*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4402*6a54128fSAndroid Build Coastguard Worker ac_prog_cc_stdc=c89 4403*6a54128fSAndroid Build Coastguard Workerfi 4404*6a54128fSAndroid Build Coastguard Workerfi 4405*6a54128fSAndroid Build Coastguard Worker 4406*6a54128fSAndroid Build Coastguard Workerac_ext=c 4407*6a54128fSAndroid Build Coastguard Workerac_cpp='$CPP $CPPFLAGS' 4408*6a54128fSAndroid Build Coastguard Workerac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4409*6a54128fSAndroid Build Coastguard Workerac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4410*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_c_compiler_gnu 4411*6a54128fSAndroid Build Coastguard Worker 4412*6a54128fSAndroid Build Coastguard Worker 4413*6a54128fSAndroid Build Coastguard Workerac_header= ac_cache= 4414*6a54128fSAndroid Build Coastguard Workerfor ac_item in $ac_header_c_list 4415*6a54128fSAndroid Build Coastguard Workerdo 4416*6a54128fSAndroid Build Coastguard Worker if test $ac_cache; then 4417*6a54128fSAndroid Build Coastguard Worker ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4418*6a54128fSAndroid Build Coastguard Worker if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4419*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define $ac_item 1" >> confdefs.h 4420*6a54128fSAndroid Build Coastguard Worker fi 4421*6a54128fSAndroid Build Coastguard Worker ac_header= ac_cache= 4422*6a54128fSAndroid Build Coastguard Worker elif test $ac_header; then 4423*6a54128fSAndroid Build Coastguard Worker ac_cache=$ac_item 4424*6a54128fSAndroid Build Coastguard Worker else 4425*6a54128fSAndroid Build Coastguard Worker ac_header=$ac_item 4426*6a54128fSAndroid Build Coastguard Worker fi 4427*6a54128fSAndroid Build Coastguard Workerdone 4428*6a54128fSAndroid Build Coastguard Worker 4429*6a54128fSAndroid Build Coastguard Worker 4430*6a54128fSAndroid Build Coastguard Worker 4431*6a54128fSAndroid Build Coastguard Worker 4432*6a54128fSAndroid Build Coastguard Worker 4433*6a54128fSAndroid Build Coastguard Worker 4434*6a54128fSAndroid Build Coastguard Worker 4435*6a54128fSAndroid Build Coastguard Worker 4436*6a54128fSAndroid Build Coastguard Workerif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4437*6a54128fSAndroid Build Coastguard Workerthen : 4438*6a54128fSAndroid Build Coastguard Worker 4439*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4440*6a54128fSAndroid Build Coastguard Worker 4441*6a54128fSAndroid Build Coastguard Workerfi 4442*6a54128fSAndroid Build Coastguard Worker 4443*6a54128fSAndroid Build Coastguard Worker 4444*6a54128fSAndroid Build Coastguard Worker 4445*6a54128fSAndroid Build Coastguard Worker 4446*6a54128fSAndroid Build Coastguard Worker 4447*6a54128fSAndroid Build Coastguard Worker 4448*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4449*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4450*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_safe_to_define___extensions__+y} 4451*6a54128fSAndroid Build Coastguard Workerthen : 4452*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 4453*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4454*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4455*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 4456*6a54128fSAndroid Build Coastguard Worker 4457*6a54128fSAndroid Build Coastguard Worker# define __EXTENSIONS__ 1 4458*6a54128fSAndroid Build Coastguard Worker $ac_includes_default 4459*6a54128fSAndroid Build Coastguard Workerint 4460*6a54128fSAndroid Build Coastguard Workermain (void) 4461*6a54128fSAndroid Build Coastguard Worker{ 4462*6a54128fSAndroid Build Coastguard Worker 4463*6a54128fSAndroid Build Coastguard Worker ; 4464*6a54128fSAndroid Build Coastguard Worker return 0; 4465*6a54128fSAndroid Build Coastguard Worker} 4466*6a54128fSAndroid Build Coastguard Worker_ACEOF 4467*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 4468*6a54128fSAndroid Build Coastguard Workerthen : 4469*6a54128fSAndroid Build Coastguard Worker ac_cv_safe_to_define___extensions__=yes 4470*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4471*6a54128fSAndroid Build Coastguard Worker ac_cv_safe_to_define___extensions__=no 4472*6a54128fSAndroid Build Coastguard Workerfi 4473*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4474*6a54128fSAndroid Build Coastguard Workerfi 4475*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4476*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4477*6a54128fSAndroid Build Coastguard Worker 4478*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4479*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4480*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_should_define__xopen_source+y} 4481*6a54128fSAndroid Build Coastguard Workerthen : 4482*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 4483*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4484*6a54128fSAndroid Build Coastguard Worker ac_cv_should_define__xopen_source=no 4485*6a54128fSAndroid Build Coastguard Worker if test $ac_cv_header_wchar_h = yes 4486*6a54128fSAndroid Build Coastguard Workerthen : 4487*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4488*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 4489*6a54128fSAndroid Build Coastguard Worker 4490*6a54128fSAndroid Build Coastguard Worker #include <wchar.h> 4491*6a54128fSAndroid Build Coastguard Worker mbstate_t x; 4492*6a54128fSAndroid Build Coastguard Workerint 4493*6a54128fSAndroid Build Coastguard Workermain (void) 4494*6a54128fSAndroid Build Coastguard Worker{ 4495*6a54128fSAndroid Build Coastguard Worker 4496*6a54128fSAndroid Build Coastguard Worker ; 4497*6a54128fSAndroid Build Coastguard Worker return 0; 4498*6a54128fSAndroid Build Coastguard Worker} 4499*6a54128fSAndroid Build Coastguard Worker_ACEOF 4500*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 4501*6a54128fSAndroid Build Coastguard Workerthen : 4502*6a54128fSAndroid Build Coastguard Worker 4503*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4504*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4505*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 4506*6a54128fSAndroid Build Coastguard Worker 4507*6a54128fSAndroid Build Coastguard Worker #define _XOPEN_SOURCE 500 4508*6a54128fSAndroid Build Coastguard Worker #include <wchar.h> 4509*6a54128fSAndroid Build Coastguard Worker mbstate_t x; 4510*6a54128fSAndroid Build Coastguard Workerint 4511*6a54128fSAndroid Build Coastguard Workermain (void) 4512*6a54128fSAndroid Build Coastguard Worker{ 4513*6a54128fSAndroid Build Coastguard Worker 4514*6a54128fSAndroid Build Coastguard Worker ; 4515*6a54128fSAndroid Build Coastguard Worker return 0; 4516*6a54128fSAndroid Build Coastguard Worker} 4517*6a54128fSAndroid Build Coastguard Worker_ACEOF 4518*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 4519*6a54128fSAndroid Build Coastguard Workerthen : 4520*6a54128fSAndroid Build Coastguard Worker ac_cv_should_define__xopen_source=yes 4521*6a54128fSAndroid Build Coastguard Workerfi 4522*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4523*6a54128fSAndroid Build Coastguard Workerfi 4524*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4525*6a54128fSAndroid Build Coastguard Workerfi 4526*6a54128fSAndroid Build Coastguard Workerfi 4527*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4528*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4529*6a54128fSAndroid Build Coastguard Worker 4530*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4531*6a54128fSAndroid Build Coastguard Worker 4532*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4533*6a54128fSAndroid Build Coastguard Worker 4534*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4535*6a54128fSAndroid Build Coastguard Worker 4536*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4537*6a54128fSAndroid Build Coastguard Worker 4538*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4539*6a54128fSAndroid Build Coastguard Worker 4540*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4541*6a54128fSAndroid Build Coastguard Worker 4542*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4543*6a54128fSAndroid Build Coastguard Worker 4544*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4545*6a54128fSAndroid Build Coastguard Worker 4546*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4547*6a54128fSAndroid Build Coastguard Worker 4548*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4549*6a54128fSAndroid Build Coastguard Worker 4550*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4551*6a54128fSAndroid Build Coastguard Worker 4552*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4553*6a54128fSAndroid Build Coastguard Worker 4554*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4555*6a54128fSAndroid Build Coastguard Worker 4556*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4557*6a54128fSAndroid Build Coastguard Worker 4558*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4559*6a54128fSAndroid Build Coastguard Worker 4560*6a54128fSAndroid Build Coastguard Worker if test $ac_cv_header_minix_config_h = yes 4561*6a54128fSAndroid Build Coastguard Workerthen : 4562*6a54128fSAndroid Build Coastguard Worker MINIX=yes 4563*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define _MINIX 1" >>confdefs.h 4564*6a54128fSAndroid Build Coastguard Worker 4565*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4566*6a54128fSAndroid Build Coastguard Worker 4567*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4568*6a54128fSAndroid Build Coastguard Worker 4569*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4570*6a54128fSAndroid Build Coastguard Worker MINIX= 4571*6a54128fSAndroid Build Coastguard Workerfi 4572*6a54128fSAndroid Build Coastguard Worker if test $ac_cv_safe_to_define___extensions__ = yes 4573*6a54128fSAndroid Build Coastguard Workerthen : 4574*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4575*6a54128fSAndroid Build Coastguard Worker 4576*6a54128fSAndroid Build Coastguard Workerfi 4577*6a54128fSAndroid Build Coastguard Worker if test $ac_cv_should_define__xopen_source = yes 4578*6a54128fSAndroid Build Coastguard Workerthen : 4579*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4580*6a54128fSAndroid Build Coastguard Worker 4581*6a54128fSAndroid Build Coastguard Workerfi 4582*6a54128fSAndroid Build Coastguard Worker 4583*6a54128fSAndroid Build Coastguard WorkerMCONFIG=./MCONFIG 4584*6a54128fSAndroid Build Coastguard Worker 4585*6a54128fSAndroid Build Coastguard WorkerBINARY_TYPE=bin 4586*6a54128fSAndroid Build Coastguard WorkerE2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ 4587*6a54128fSAndroid Build Coastguard Worker | awk '{print $3}' | tr \" " " | awk '{print $1}'` 4588*6a54128fSAndroid Build Coastguard WorkerE2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ 4589*6a54128fSAndroid Build Coastguard Worker | tr \" " " | awk '{print $1}'` 4590*6a54128fSAndroid Build Coastguard WorkerE2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/') 4591*6a54128fSAndroid Build Coastguard WorkerMONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'` 4592*6a54128fSAndroid Build Coastguard WorkerYEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'` 4593*6a54128fSAndroid Build Coastguard Worker 4594*6a54128fSAndroid Build Coastguard Workerif expr $YEAR ">" 1900 > /dev/null ; then 4595*6a54128fSAndroid Build Coastguard Worker E2FSPROGS_YEAR=$YEAR 4596*6a54128fSAndroid Build Coastguard Workerelif expr $YEAR ">" 90 >/dev/null ; then 4597*6a54128fSAndroid Build Coastguard Worker E2FSPROGS_YEAR=19$YEAR 4598*6a54128fSAndroid Build Coastguard Workerelse 4599*6a54128fSAndroid Build Coastguard Worker E2FSPROGS_YEAR=20$YEAR 4600*6a54128fSAndroid Build Coastguard Workerfi 4601*6a54128fSAndroid Build Coastguard Worker 4602*6a54128fSAndroid Build Coastguard Workercase $MONTH in 4603*6a54128fSAndroid Build Coastguard WorkerJan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; 4604*6a54128fSAndroid Build Coastguard WorkerFeb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; 4605*6a54128fSAndroid Build Coastguard WorkerMar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; 4606*6a54128fSAndroid Build Coastguard WorkerApr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; 4607*6a54128fSAndroid Build Coastguard WorkerMay) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; 4608*6a54128fSAndroid Build Coastguard WorkerJun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; 4609*6a54128fSAndroid Build Coastguard WorkerJul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; 4610*6a54128fSAndroid Build Coastguard WorkerAug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; 4611*6a54128fSAndroid Build Coastguard WorkerSep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; 4612*6a54128fSAndroid Build Coastguard WorkerOct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; 4613*6a54128fSAndroid Build Coastguard WorkerNov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; 4614*6a54128fSAndroid Build Coastguard WorkerDec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; 4615*6a54128fSAndroid Build Coastguard Worker*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 4616*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; 4617*6a54128fSAndroid Build Coastguard Workeresac 4618*6a54128fSAndroid Build Coastguard Worker 4619*6a54128fSAndroid Build Coastguard Workerbase_ver=`echo $E2FSPROGS_VERSION | \ 4620*6a54128fSAndroid Build Coastguard Worker sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` 4621*6a54128fSAndroid Build Coastguard Worker 4622*6a54128fSAndroid Build Coastguard Workerdate_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} 4623*6a54128fSAndroid Build Coastguard Worker 4624*6a54128fSAndroid Build Coastguard Workercase $E2FSPROGS_VERSION in 4625*6a54128fSAndroid Build Coastguard Worker*-WIP|pre-*) 4626*6a54128fSAndroid Build Coastguard Worker E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec" 4627*6a54128fSAndroid Build Coastguard Worker ;; 4628*6a54128fSAndroid Build Coastguard Worker*) 4629*6a54128fSAndroid Build Coastguard Worker E2FSPROGS_PKGVER="$base_ver" 4630*6a54128fSAndroid Build Coastguard Worker ;; 4631*6a54128fSAndroid Build Coastguard Workeresac 4632*6a54128fSAndroid Build Coastguard Worker 4633*6a54128fSAndroid Build Coastguard Workerunset DATE MONTH YEAR base_ver pre_vers date_spec 4634*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 4635*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } 4636*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 4637*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } 4638*6a54128fSAndroid Build Coastguard Worker 4639*6a54128fSAndroid Build Coastguard Worker 4640*6a54128fSAndroid Build Coastguard Worker 4641*6a54128fSAndroid Build Coastguard Worker 4642*6a54128fSAndroid Build Coastguard Worker 4643*6a54128fSAndroid Build Coastguard Worker 4644*6a54128fSAndroid Build Coastguard WorkerWITH_DIET_LIBC= 4645*6a54128fSAndroid Build Coastguard Worker 4646*6a54128fSAndroid Build Coastguard Worker# Check whether --with-diet-libc was given. 4647*6a54128fSAndroid Build Coastguard Workerif test ${with_diet_libc+y} 4648*6a54128fSAndroid Build Coastguard Workerthen : 4649*6a54128fSAndroid Build Coastguard Worker withval=$with_diet_libc; CC="diet cc -nostdinc" 4650*6a54128fSAndroid Build Coastguard WorkerWITH_DIET_LIBC=yes 4651*6a54128fSAndroid Build Coastguard Workerif test -z "$LIBS" 4652*6a54128fSAndroid Build Coastguard Workerthen 4653*6a54128fSAndroid Build Coastguard Worker LIBS="-lcompat" 4654*6a54128fSAndroid Build Coastguard Workerelse 4655*6a54128fSAndroid Build Coastguard Worker LIBS="$LIBS -lcompat" 4656*6a54128fSAndroid Build Coastguard Workerfi 4657*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 4658*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "CC=$CC" >&6; } 4659*6a54128fSAndroid Build Coastguard Workerfi 4660*6a54128fSAndroid Build Coastguard Worker 4661*6a54128fSAndroid Build Coastguard Worker 4662*6a54128fSAndroid Build Coastguard Worker 4663*6a54128fSAndroid Build Coastguard Worker # Make sure we can run config.sub. 4664*6a54128fSAndroid Build Coastguard Worker$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4665*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4666*6a54128fSAndroid Build Coastguard Worker 4667*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4668*6a54128fSAndroid Build Coastguard Workerprintf %s "checking build system type... " >&6; } 4669*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_build+y} 4670*6a54128fSAndroid Build Coastguard Workerthen : 4671*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 4672*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4673*6a54128fSAndroid Build Coastguard Worker ac_build_alias=$build_alias 4674*6a54128fSAndroid Build Coastguard Workertest "x$ac_build_alias" = x && 4675*6a54128fSAndroid Build Coastguard Worker ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4676*6a54128fSAndroid Build Coastguard Workertest "x$ac_build_alias" = x && 4677*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4678*6a54128fSAndroid Build Coastguard Workerac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4679*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4680*6a54128fSAndroid Build Coastguard Worker 4681*6a54128fSAndroid Build Coastguard Workerfi 4682*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4683*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_build" >&6; } 4684*6a54128fSAndroid Build Coastguard Workercase $ac_cv_build in 4685*6a54128fSAndroid Build Coastguard Worker*-*-*) ;; 4686*6a54128fSAndroid Build Coastguard Worker*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4687*6a54128fSAndroid Build Coastguard Workeresac 4688*6a54128fSAndroid Build Coastguard Workerbuild=$ac_cv_build 4689*6a54128fSAndroid Build Coastguard Workerac_save_IFS=$IFS; IFS='-' 4690*6a54128fSAndroid Build Coastguard Workerset x $ac_cv_build 4691*6a54128fSAndroid Build Coastguard Workershift 4692*6a54128fSAndroid Build Coastguard Workerbuild_cpu=$1 4693*6a54128fSAndroid Build Coastguard Workerbuild_vendor=$2 4694*6a54128fSAndroid Build Coastguard Workershift; shift 4695*6a54128fSAndroid Build Coastguard Worker# Remember, the first character of IFS is used to create $*, 4696*6a54128fSAndroid Build Coastguard Worker# except with old shells: 4697*6a54128fSAndroid Build Coastguard Workerbuild_os=$* 4698*6a54128fSAndroid Build Coastguard WorkerIFS=$ac_save_IFS 4699*6a54128fSAndroid Build Coastguard Workercase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4700*6a54128fSAndroid Build Coastguard Worker 4701*6a54128fSAndroid Build Coastguard Worker 4702*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4703*6a54128fSAndroid Build Coastguard Workerprintf %s "checking host system type... " >&6; } 4704*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_host+y} 4705*6a54128fSAndroid Build Coastguard Workerthen : 4706*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 4707*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4708*6a54128fSAndroid Build Coastguard Worker if test "x$host_alias" = x; then 4709*6a54128fSAndroid Build Coastguard Worker ac_cv_host=$ac_cv_build 4710*6a54128fSAndroid Build Coastguard Workerelse 4711*6a54128fSAndroid Build Coastguard Worker ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4712*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4713*6a54128fSAndroid Build Coastguard Workerfi 4714*6a54128fSAndroid Build Coastguard Worker 4715*6a54128fSAndroid Build Coastguard Workerfi 4716*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4717*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_host" >&6; } 4718*6a54128fSAndroid Build Coastguard Workercase $ac_cv_host in 4719*6a54128fSAndroid Build Coastguard Worker*-*-*) ;; 4720*6a54128fSAndroid Build Coastguard Worker*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4721*6a54128fSAndroid Build Coastguard Workeresac 4722*6a54128fSAndroid Build Coastguard Workerhost=$ac_cv_host 4723*6a54128fSAndroid Build Coastguard Workerac_save_IFS=$IFS; IFS='-' 4724*6a54128fSAndroid Build Coastguard Workerset x $ac_cv_host 4725*6a54128fSAndroid Build Coastguard Workershift 4726*6a54128fSAndroid Build Coastguard Workerhost_cpu=$1 4727*6a54128fSAndroid Build Coastguard Workerhost_vendor=$2 4728*6a54128fSAndroid Build Coastguard Workershift; shift 4729*6a54128fSAndroid Build Coastguard Worker# Remember, the first character of IFS is used to create $*, 4730*6a54128fSAndroid Build Coastguard Worker# except with old shells: 4731*6a54128fSAndroid Build Coastguard Workerhost_os=$* 4732*6a54128fSAndroid Build Coastguard WorkerIFS=$ac_save_IFS 4733*6a54128fSAndroid Build Coastguard Workercase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4734*6a54128fSAndroid Build Coastguard Worker 4735*6a54128fSAndroid Build Coastguard Worker 4736*6a54128fSAndroid Build Coastguard WorkerDLOPEN_LIB='' 4737*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 4738*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for dlopen in -ldl... " >&6; } 4739*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_dl_dlopen+y} 4740*6a54128fSAndroid Build Coastguard Workerthen : 4741*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 4742*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4743*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 4744*6a54128fSAndroid Build Coastguard WorkerLIBS="-ldl $LIBS" 4745*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 4746*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 4747*6a54128fSAndroid Build Coastguard Worker 4748*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 4749*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 4750*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 4751*6a54128fSAndroid Build Coastguard Workerchar dlopen (); 4752*6a54128fSAndroid Build Coastguard Workerint 4753*6a54128fSAndroid Build Coastguard Workermain (void) 4754*6a54128fSAndroid Build Coastguard Worker{ 4755*6a54128fSAndroid Build Coastguard Workerreturn dlopen (); 4756*6a54128fSAndroid Build Coastguard Worker ; 4757*6a54128fSAndroid Build Coastguard Worker return 0; 4758*6a54128fSAndroid Build Coastguard Worker} 4759*6a54128fSAndroid Build Coastguard Worker_ACEOF 4760*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 4761*6a54128fSAndroid Build Coastguard Workerthen : 4762*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_dl_dlopen=yes 4763*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4764*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_dl_dlopen=no 4765*6a54128fSAndroid Build Coastguard Workerfi 4766*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 4767*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 4768*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 4769*6a54128fSAndroid Build Coastguard Workerfi 4770*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 4771*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 4772*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_dl_dlopen" = xyes 4773*6a54128fSAndroid Build Coastguard Workerthen : 4774*6a54128fSAndroid Build Coastguard Worker DLOPEN_LIB=-ldl 4775*6a54128fSAndroid Build Coastguard Workerfi 4776*6a54128fSAndroid Build Coastguard Worker 4777*6a54128fSAndroid Build Coastguard Worker 4778*6a54128fSAndroid Build Coastguard Worker 4779*6a54128fSAndroid Build Coastguard Worker# Check whether --with-cc was given. 4780*6a54128fSAndroid Build Coastguard Workerif test ${with_cc+y} 4781*6a54128fSAndroid Build Coastguard Workerthen : 4782*6a54128fSAndroid Build Coastguard Worker withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5 4783*6a54128fSAndroid Build Coastguard Workerfi 4784*6a54128fSAndroid Build Coastguard Worker 4785*6a54128fSAndroid Build Coastguard Worker 4786*6a54128fSAndroid Build Coastguard Worker# Check whether --with-ccopts was given. 4787*6a54128fSAndroid Build Coastguard Workerif test ${with_ccopts+y} 4788*6a54128fSAndroid Build Coastguard Workerthen : 4789*6a54128fSAndroid Build Coastguard Worker withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 4790*6a54128fSAndroid Build Coastguard Workerfi 4791*6a54128fSAndroid Build Coastguard Worker 4792*6a54128fSAndroid Build Coastguard Worker 4793*6a54128fSAndroid Build Coastguard Worker# Check whether --with-ldopts was given. 4794*6a54128fSAndroid Build Coastguard Workerif test ${with_ldopts+y} 4795*6a54128fSAndroid Build Coastguard Workerthen : 4796*6a54128fSAndroid Build Coastguard Worker withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 4797*6a54128fSAndroid Build Coastguard Workerfi 4798*6a54128fSAndroid Build Coastguard Worker 4799*6a54128fSAndroid Build Coastguard Workerac_ext=c 4800*6a54128fSAndroid Build Coastguard Workerac_cpp='$CPP $CPPFLAGS' 4801*6a54128fSAndroid Build Coastguard Workerac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4802*6a54128fSAndroid Build Coastguard Workerac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4803*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_c_compiler_gnu 4804*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_tool_prefix"; then 4805*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4806*6a54128fSAndroid Build Coastguard Workerset dummy ${ac_tool_prefix}gcc; ac_word=$2 4807*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4808*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 4809*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_CC+y} 4810*6a54128fSAndroid Build Coastguard Workerthen : 4811*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 4812*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4813*6a54128fSAndroid Build Coastguard Worker if test -n "$CC"; then 4814*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="$CC" # Let the user override the test. 4815*6a54128fSAndroid Build Coastguard Workerelse 4816*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4817*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 4818*6a54128fSAndroid Build Coastguard Workerdo 4819*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 4820*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 4821*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 4822*6a54128fSAndroid Build Coastguard Worker */) ;; 4823*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 4824*6a54128fSAndroid Build Coastguard Worker esac 4825*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 4826*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4827*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="${ac_tool_prefix}gcc" 4828*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4829*6a54128fSAndroid Build Coastguard Worker break 2 4830*6a54128fSAndroid Build Coastguard Worker fi 4831*6a54128fSAndroid Build Coastguard Workerdone 4832*6a54128fSAndroid Build Coastguard Worker done 4833*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 4834*6a54128fSAndroid Build Coastguard Worker 4835*6a54128fSAndroid Build Coastguard Workerfi 4836*6a54128fSAndroid Build Coastguard Workerfi 4837*6a54128fSAndroid Build Coastguard WorkerCC=$ac_cv_prog_CC 4838*6a54128fSAndroid Build Coastguard Workerif test -n "$CC"; then 4839*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4840*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$CC" >&6; } 4841*6a54128fSAndroid Build Coastguard Workerelse 4842*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4843*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 4844*6a54128fSAndroid Build Coastguard Workerfi 4845*6a54128fSAndroid Build Coastguard Worker 4846*6a54128fSAndroid Build Coastguard Worker 4847*6a54128fSAndroid Build Coastguard Workerfi 4848*6a54128fSAndroid Build Coastguard Workerif test -z "$ac_cv_prog_CC"; then 4849*6a54128fSAndroid Build Coastguard Worker ac_ct_CC=$CC 4850*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "gcc", so it can be a program name with args. 4851*6a54128fSAndroid Build Coastguard Workerset dummy gcc; ac_word=$2 4852*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4853*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 4854*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_ac_ct_CC+y} 4855*6a54128fSAndroid Build Coastguard Workerthen : 4856*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 4857*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4858*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_ct_CC"; then 4859*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4860*6a54128fSAndroid Build Coastguard Workerelse 4861*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4862*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 4863*6a54128fSAndroid Build Coastguard Workerdo 4864*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 4865*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 4866*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 4867*6a54128fSAndroid Build Coastguard Worker */) ;; 4868*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 4869*6a54128fSAndroid Build Coastguard Worker esac 4870*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 4871*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4872*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_CC="gcc" 4873*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4874*6a54128fSAndroid Build Coastguard Worker break 2 4875*6a54128fSAndroid Build Coastguard Worker fi 4876*6a54128fSAndroid Build Coastguard Workerdone 4877*6a54128fSAndroid Build Coastguard Worker done 4878*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 4879*6a54128fSAndroid Build Coastguard Worker 4880*6a54128fSAndroid Build Coastguard Workerfi 4881*6a54128fSAndroid Build Coastguard Workerfi 4882*6a54128fSAndroid Build Coastguard Workerac_ct_CC=$ac_cv_prog_ac_ct_CC 4883*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_ct_CC"; then 4884*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4885*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_ct_CC" >&6; } 4886*6a54128fSAndroid Build Coastguard Workerelse 4887*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4888*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 4889*6a54128fSAndroid Build Coastguard Workerfi 4890*6a54128fSAndroid Build Coastguard Worker 4891*6a54128fSAndroid Build Coastguard Worker if test "x$ac_ct_CC" = x; then 4892*6a54128fSAndroid Build Coastguard Worker CC="" 4893*6a54128fSAndroid Build Coastguard Worker else 4894*6a54128fSAndroid Build Coastguard Worker case $cross_compiling:$ac_tool_warned in 4895*6a54128fSAndroid Build Coastguard Workeryes:) 4896*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4897*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4898*6a54128fSAndroid Build Coastguard Workerac_tool_warned=yes ;; 4899*6a54128fSAndroid Build Coastguard Workeresac 4900*6a54128fSAndroid Build Coastguard Worker CC=$ac_ct_CC 4901*6a54128fSAndroid Build Coastguard Worker fi 4902*6a54128fSAndroid Build Coastguard Workerelse 4903*6a54128fSAndroid Build Coastguard Worker CC="$ac_cv_prog_CC" 4904*6a54128fSAndroid Build Coastguard Workerfi 4905*6a54128fSAndroid Build Coastguard Worker 4906*6a54128fSAndroid Build Coastguard Workerif test -z "$CC"; then 4907*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_tool_prefix"; then 4908*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4909*6a54128fSAndroid Build Coastguard Workerset dummy ${ac_tool_prefix}cc; ac_word=$2 4910*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4911*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 4912*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_CC+y} 4913*6a54128fSAndroid Build Coastguard Workerthen : 4914*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 4915*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4916*6a54128fSAndroid Build Coastguard Worker if test -n "$CC"; then 4917*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="$CC" # Let the user override the test. 4918*6a54128fSAndroid Build Coastguard Workerelse 4919*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4920*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 4921*6a54128fSAndroid Build Coastguard Workerdo 4922*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 4923*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 4924*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 4925*6a54128fSAndroid Build Coastguard Worker */) ;; 4926*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 4927*6a54128fSAndroid Build Coastguard Worker esac 4928*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 4929*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4930*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="${ac_tool_prefix}cc" 4931*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4932*6a54128fSAndroid Build Coastguard Worker break 2 4933*6a54128fSAndroid Build Coastguard Worker fi 4934*6a54128fSAndroid Build Coastguard Workerdone 4935*6a54128fSAndroid Build Coastguard Worker done 4936*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 4937*6a54128fSAndroid Build Coastguard Worker 4938*6a54128fSAndroid Build Coastguard Workerfi 4939*6a54128fSAndroid Build Coastguard Workerfi 4940*6a54128fSAndroid Build Coastguard WorkerCC=$ac_cv_prog_CC 4941*6a54128fSAndroid Build Coastguard Workerif test -n "$CC"; then 4942*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4943*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$CC" >&6; } 4944*6a54128fSAndroid Build Coastguard Workerelse 4945*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4946*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 4947*6a54128fSAndroid Build Coastguard Workerfi 4948*6a54128fSAndroid Build Coastguard Worker 4949*6a54128fSAndroid Build Coastguard Worker 4950*6a54128fSAndroid Build Coastguard Worker fi 4951*6a54128fSAndroid Build Coastguard Workerfi 4952*6a54128fSAndroid Build Coastguard Workerif test -z "$CC"; then 4953*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "cc", so it can be a program name with args. 4954*6a54128fSAndroid Build Coastguard Workerset dummy cc; ac_word=$2 4955*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4956*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 4957*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_CC+y} 4958*6a54128fSAndroid Build Coastguard Workerthen : 4959*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 4960*6a54128fSAndroid Build Coastguard Workerelse $as_nop 4961*6a54128fSAndroid Build Coastguard Worker if test -n "$CC"; then 4962*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="$CC" # Let the user override the test. 4963*6a54128fSAndroid Build Coastguard Workerelse 4964*6a54128fSAndroid Build Coastguard Worker ac_prog_rejected=no 4965*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4966*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 4967*6a54128fSAndroid Build Coastguard Workerdo 4968*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 4969*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 4970*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 4971*6a54128fSAndroid Build Coastguard Worker */) ;; 4972*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 4973*6a54128fSAndroid Build Coastguard Worker esac 4974*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 4975*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4976*6a54128fSAndroid Build Coastguard Worker if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4977*6a54128fSAndroid Build Coastguard Worker ac_prog_rejected=yes 4978*6a54128fSAndroid Build Coastguard Worker continue 4979*6a54128fSAndroid Build Coastguard Worker fi 4980*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="cc" 4981*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4982*6a54128fSAndroid Build Coastguard Worker break 2 4983*6a54128fSAndroid Build Coastguard Worker fi 4984*6a54128fSAndroid Build Coastguard Workerdone 4985*6a54128fSAndroid Build Coastguard Worker done 4986*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 4987*6a54128fSAndroid Build Coastguard Worker 4988*6a54128fSAndroid Build Coastguard Workerif test $ac_prog_rejected = yes; then 4989*6a54128fSAndroid Build Coastguard Worker # We found a bogon in the path, so make sure we never use it. 4990*6a54128fSAndroid Build Coastguard Worker set dummy $ac_cv_prog_CC 4991*6a54128fSAndroid Build Coastguard Worker shift 4992*6a54128fSAndroid Build Coastguard Worker if test $# != 0; then 4993*6a54128fSAndroid Build Coastguard Worker # We chose a different compiler from the bogus one. 4994*6a54128fSAndroid Build Coastguard Worker # However, it has the same basename, so the bogon will be chosen 4995*6a54128fSAndroid Build Coastguard Worker # first if we set CC to just the basename; use the full file name. 4996*6a54128fSAndroid Build Coastguard Worker shift 4997*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4998*6a54128fSAndroid Build Coastguard Worker fi 4999*6a54128fSAndroid Build Coastguard Workerfi 5000*6a54128fSAndroid Build Coastguard Workerfi 5001*6a54128fSAndroid Build Coastguard Workerfi 5002*6a54128fSAndroid Build Coastguard WorkerCC=$ac_cv_prog_CC 5003*6a54128fSAndroid Build Coastguard Workerif test -n "$CC"; then 5004*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5005*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$CC" >&6; } 5006*6a54128fSAndroid Build Coastguard Workerelse 5007*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5008*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 5009*6a54128fSAndroid Build Coastguard Workerfi 5010*6a54128fSAndroid Build Coastguard Worker 5011*6a54128fSAndroid Build Coastguard Worker 5012*6a54128fSAndroid Build Coastguard Workerfi 5013*6a54128fSAndroid Build Coastguard Workerif test -z "$CC"; then 5014*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_tool_prefix"; then 5015*6a54128fSAndroid Build Coastguard Worker for ac_prog in cl.exe 5016*6a54128fSAndroid Build Coastguard Worker do 5017*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5018*6a54128fSAndroid Build Coastguard Workerset dummy $ac_tool_prefix$ac_prog; ac_word=$2 5019*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5020*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 5021*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_CC+y} 5022*6a54128fSAndroid Build Coastguard Workerthen : 5023*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 5024*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5025*6a54128fSAndroid Build Coastguard Worker if test -n "$CC"; then 5026*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="$CC" # Let the user override the test. 5027*6a54128fSAndroid Build Coastguard Workerelse 5028*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5029*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 5030*6a54128fSAndroid Build Coastguard Workerdo 5031*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 5032*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 5033*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 5034*6a54128fSAndroid Build Coastguard Worker */) ;; 5035*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 5036*6a54128fSAndroid Build Coastguard Worker esac 5037*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 5038*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5039*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5040*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5041*6a54128fSAndroid Build Coastguard Worker break 2 5042*6a54128fSAndroid Build Coastguard Worker fi 5043*6a54128fSAndroid Build Coastguard Workerdone 5044*6a54128fSAndroid Build Coastguard Worker done 5045*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 5046*6a54128fSAndroid Build Coastguard Worker 5047*6a54128fSAndroid Build Coastguard Workerfi 5048*6a54128fSAndroid Build Coastguard Workerfi 5049*6a54128fSAndroid Build Coastguard WorkerCC=$ac_cv_prog_CC 5050*6a54128fSAndroid Build Coastguard Workerif test -n "$CC"; then 5051*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5052*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$CC" >&6; } 5053*6a54128fSAndroid Build Coastguard Workerelse 5054*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5055*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 5056*6a54128fSAndroid Build Coastguard Workerfi 5057*6a54128fSAndroid Build Coastguard Worker 5058*6a54128fSAndroid Build Coastguard Worker 5059*6a54128fSAndroid Build Coastguard Worker test -n "$CC" && break 5060*6a54128fSAndroid Build Coastguard Worker done 5061*6a54128fSAndroid Build Coastguard Workerfi 5062*6a54128fSAndroid Build Coastguard Workerif test -z "$CC"; then 5063*6a54128fSAndroid Build Coastguard Worker ac_ct_CC=$CC 5064*6a54128fSAndroid Build Coastguard Worker for ac_prog in cl.exe 5065*6a54128fSAndroid Build Coastguard Workerdo 5066*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "$ac_prog", so it can be a program name with args. 5067*6a54128fSAndroid Build Coastguard Workerset dummy $ac_prog; ac_word=$2 5068*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5069*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 5070*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_ac_ct_CC+y} 5071*6a54128fSAndroid Build Coastguard Workerthen : 5072*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 5073*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5074*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_ct_CC"; then 5075*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5076*6a54128fSAndroid Build Coastguard Workerelse 5077*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5078*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 5079*6a54128fSAndroid Build Coastguard Workerdo 5080*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 5081*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 5082*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 5083*6a54128fSAndroid Build Coastguard Worker */) ;; 5084*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 5085*6a54128fSAndroid Build Coastguard Worker esac 5086*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 5087*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5088*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_CC="$ac_prog" 5089*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5090*6a54128fSAndroid Build Coastguard Worker break 2 5091*6a54128fSAndroid Build Coastguard Worker fi 5092*6a54128fSAndroid Build Coastguard Workerdone 5093*6a54128fSAndroid Build Coastguard Worker done 5094*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 5095*6a54128fSAndroid Build Coastguard Worker 5096*6a54128fSAndroid Build Coastguard Workerfi 5097*6a54128fSAndroid Build Coastguard Workerfi 5098*6a54128fSAndroid Build Coastguard Workerac_ct_CC=$ac_cv_prog_ac_ct_CC 5099*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_ct_CC"; then 5100*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5101*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_ct_CC" >&6; } 5102*6a54128fSAndroid Build Coastguard Workerelse 5103*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5104*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 5105*6a54128fSAndroid Build Coastguard Workerfi 5106*6a54128fSAndroid Build Coastguard Worker 5107*6a54128fSAndroid Build Coastguard Worker 5108*6a54128fSAndroid Build Coastguard Worker test -n "$ac_ct_CC" && break 5109*6a54128fSAndroid Build Coastguard Workerdone 5110*6a54128fSAndroid Build Coastguard Worker 5111*6a54128fSAndroid Build Coastguard Worker if test "x$ac_ct_CC" = x; then 5112*6a54128fSAndroid Build Coastguard Worker CC="" 5113*6a54128fSAndroid Build Coastguard Worker else 5114*6a54128fSAndroid Build Coastguard Worker case $cross_compiling:$ac_tool_warned in 5115*6a54128fSAndroid Build Coastguard Workeryes:) 5116*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5117*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5118*6a54128fSAndroid Build Coastguard Workerac_tool_warned=yes ;; 5119*6a54128fSAndroid Build Coastguard Workeresac 5120*6a54128fSAndroid Build Coastguard Worker CC=$ac_ct_CC 5121*6a54128fSAndroid Build Coastguard Worker fi 5122*6a54128fSAndroid Build Coastguard Workerfi 5123*6a54128fSAndroid Build Coastguard Worker 5124*6a54128fSAndroid Build Coastguard Workerfi 5125*6a54128fSAndroid Build Coastguard Workerif test -z "$CC"; then 5126*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_tool_prefix"; then 5127*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 5128*6a54128fSAndroid Build Coastguard Workerset dummy ${ac_tool_prefix}clang; ac_word=$2 5129*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5130*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 5131*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_CC+y} 5132*6a54128fSAndroid Build Coastguard Workerthen : 5133*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 5134*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5135*6a54128fSAndroid Build Coastguard Worker if test -n "$CC"; then 5136*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="$CC" # Let the user override the test. 5137*6a54128fSAndroid Build Coastguard Workerelse 5138*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5139*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 5140*6a54128fSAndroid Build Coastguard Workerdo 5141*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 5142*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 5143*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 5144*6a54128fSAndroid Build Coastguard Worker */) ;; 5145*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 5146*6a54128fSAndroid Build Coastguard Worker esac 5147*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 5148*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5149*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CC="${ac_tool_prefix}clang" 5150*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5151*6a54128fSAndroid Build Coastguard Worker break 2 5152*6a54128fSAndroid Build Coastguard Worker fi 5153*6a54128fSAndroid Build Coastguard Workerdone 5154*6a54128fSAndroid Build Coastguard Worker done 5155*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 5156*6a54128fSAndroid Build Coastguard Worker 5157*6a54128fSAndroid Build Coastguard Workerfi 5158*6a54128fSAndroid Build Coastguard Workerfi 5159*6a54128fSAndroid Build Coastguard WorkerCC=$ac_cv_prog_CC 5160*6a54128fSAndroid Build Coastguard Workerif test -n "$CC"; then 5161*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5162*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$CC" >&6; } 5163*6a54128fSAndroid Build Coastguard Workerelse 5164*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5165*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 5166*6a54128fSAndroid Build Coastguard Workerfi 5167*6a54128fSAndroid Build Coastguard Worker 5168*6a54128fSAndroid Build Coastguard Worker 5169*6a54128fSAndroid Build Coastguard Workerfi 5170*6a54128fSAndroid Build Coastguard Workerif test -z "$ac_cv_prog_CC"; then 5171*6a54128fSAndroid Build Coastguard Worker ac_ct_CC=$CC 5172*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "clang", so it can be a program name with args. 5173*6a54128fSAndroid Build Coastguard Workerset dummy clang; ac_word=$2 5174*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5175*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 5176*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_ac_ct_CC+y} 5177*6a54128fSAndroid Build Coastguard Workerthen : 5178*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 5179*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5180*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_ct_CC"; then 5181*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5182*6a54128fSAndroid Build Coastguard Workerelse 5183*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5184*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 5185*6a54128fSAndroid Build Coastguard Workerdo 5186*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 5187*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 5188*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 5189*6a54128fSAndroid Build Coastguard Worker */) ;; 5190*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 5191*6a54128fSAndroid Build Coastguard Worker esac 5192*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 5193*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5194*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_CC="clang" 5195*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5196*6a54128fSAndroid Build Coastguard Worker break 2 5197*6a54128fSAndroid Build Coastguard Worker fi 5198*6a54128fSAndroid Build Coastguard Workerdone 5199*6a54128fSAndroid Build Coastguard Worker done 5200*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 5201*6a54128fSAndroid Build Coastguard Worker 5202*6a54128fSAndroid Build Coastguard Workerfi 5203*6a54128fSAndroid Build Coastguard Workerfi 5204*6a54128fSAndroid Build Coastguard Workerac_ct_CC=$ac_cv_prog_ac_ct_CC 5205*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_ct_CC"; then 5206*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5207*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_ct_CC" >&6; } 5208*6a54128fSAndroid Build Coastguard Workerelse 5209*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5210*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 5211*6a54128fSAndroid Build Coastguard Workerfi 5212*6a54128fSAndroid Build Coastguard Worker 5213*6a54128fSAndroid Build Coastguard Worker if test "x$ac_ct_CC" = x; then 5214*6a54128fSAndroid Build Coastguard Worker CC="" 5215*6a54128fSAndroid Build Coastguard Worker else 5216*6a54128fSAndroid Build Coastguard Worker case $cross_compiling:$ac_tool_warned in 5217*6a54128fSAndroid Build Coastguard Workeryes:) 5218*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5219*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5220*6a54128fSAndroid Build Coastguard Workerac_tool_warned=yes ;; 5221*6a54128fSAndroid Build Coastguard Workeresac 5222*6a54128fSAndroid Build Coastguard Worker CC=$ac_ct_CC 5223*6a54128fSAndroid Build Coastguard Worker fi 5224*6a54128fSAndroid Build Coastguard Workerelse 5225*6a54128fSAndroid Build Coastguard Worker CC="$ac_cv_prog_CC" 5226*6a54128fSAndroid Build Coastguard Workerfi 5227*6a54128fSAndroid Build Coastguard Worker 5228*6a54128fSAndroid Build Coastguard Workerfi 5229*6a54128fSAndroid Build Coastguard Worker 5230*6a54128fSAndroid Build Coastguard Worker 5231*6a54128fSAndroid Build Coastguard Workertest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5232*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5233*6a54128fSAndroid Build Coastguard Workeras_fn_error $? "no acceptable C compiler found in \$PATH 5234*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 5235*6a54128fSAndroid Build Coastguard Worker 5236*6a54128fSAndroid Build Coastguard Worker# Provide some information about the compiler. 5237*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5238*6a54128fSAndroid Build Coastguard Workerset X $ac_compile 5239*6a54128fSAndroid Build Coastguard Workerac_compiler=$2 5240*6a54128fSAndroid Build Coastguard Workerfor ac_option in --version -v -V -qversion -version; do 5241*6a54128fSAndroid Build Coastguard Worker { { ac_try="$ac_compiler $ac_option >&5" 5242*6a54128fSAndroid Build Coastguard Workercase "(($ac_try" in 5243*6a54128fSAndroid Build Coastguard Worker *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5244*6a54128fSAndroid Build Coastguard Worker *) ac_try_echo=$ac_try;; 5245*6a54128fSAndroid Build Coastguard Workeresac 5246*6a54128fSAndroid Build Coastguard Workereval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5247*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_try_echo"; } >&5 5248*6a54128fSAndroid Build Coastguard Worker (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5249*6a54128fSAndroid Build Coastguard Worker ac_status=$? 5250*6a54128fSAndroid Build Coastguard Worker if test -s conftest.err; then 5251*6a54128fSAndroid Build Coastguard Worker sed '10a\ 5252*6a54128fSAndroid Build Coastguard Worker... rest of stderr output deleted ... 5253*6a54128fSAndroid Build Coastguard Worker 10q' conftest.err >conftest.er1 5254*6a54128fSAndroid Build Coastguard Worker cat conftest.er1 >&5 5255*6a54128fSAndroid Build Coastguard Worker fi 5256*6a54128fSAndroid Build Coastguard Worker rm -f conftest.er1 conftest.err 5257*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5258*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; } 5259*6a54128fSAndroid Build Coastguard Workerdone 5260*6a54128fSAndroid Build Coastguard Worker 5261*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5262*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether the compiler supports GNU C... " >&6; } 5263*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_c_compiler_gnu+y} 5264*6a54128fSAndroid Build Coastguard Workerthen : 5265*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 5266*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5267*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5268*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 5269*6a54128fSAndroid Build Coastguard Worker 5270*6a54128fSAndroid Build Coastguard Workerint 5271*6a54128fSAndroid Build Coastguard Workermain (void) 5272*6a54128fSAndroid Build Coastguard Worker{ 5273*6a54128fSAndroid Build Coastguard Worker#ifndef __GNUC__ 5274*6a54128fSAndroid Build Coastguard Worker choke me 5275*6a54128fSAndroid Build Coastguard Worker#endif 5276*6a54128fSAndroid Build Coastguard Worker 5277*6a54128fSAndroid Build Coastguard Worker ; 5278*6a54128fSAndroid Build Coastguard Worker return 0; 5279*6a54128fSAndroid Build Coastguard Worker} 5280*6a54128fSAndroid Build Coastguard Worker_ACEOF 5281*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 5282*6a54128fSAndroid Build Coastguard Workerthen : 5283*6a54128fSAndroid Build Coastguard Worker ac_compiler_gnu=yes 5284*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5285*6a54128fSAndroid Build Coastguard Worker ac_compiler_gnu=no 5286*6a54128fSAndroid Build Coastguard Workerfi 5287*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5288*6a54128fSAndroid Build Coastguard Workerac_cv_c_compiler_gnu=$ac_compiler_gnu 5289*6a54128fSAndroid Build Coastguard Worker 5290*6a54128fSAndroid Build Coastguard Workerfi 5291*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5292*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5293*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_c_compiler_gnu 5294*6a54128fSAndroid Build Coastguard Worker 5295*6a54128fSAndroid Build Coastguard Workerif test $ac_compiler_gnu = yes; then 5296*6a54128fSAndroid Build Coastguard Worker GCC=yes 5297*6a54128fSAndroid Build Coastguard Workerelse 5298*6a54128fSAndroid Build Coastguard Worker GCC= 5299*6a54128fSAndroid Build Coastguard Workerfi 5300*6a54128fSAndroid Build Coastguard Workerac_test_CFLAGS=${CFLAGS+y} 5301*6a54128fSAndroid Build Coastguard Workerac_save_CFLAGS=$CFLAGS 5302*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5303*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether $CC accepts -g... " >&6; } 5304*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_cc_g+y} 5305*6a54128fSAndroid Build Coastguard Workerthen : 5306*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 5307*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5308*6a54128fSAndroid Build Coastguard Worker ac_save_c_werror_flag=$ac_c_werror_flag 5309*6a54128fSAndroid Build Coastguard Worker ac_c_werror_flag=yes 5310*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_g=no 5311*6a54128fSAndroid Build Coastguard Worker CFLAGS="-g" 5312*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5313*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 5314*6a54128fSAndroid Build Coastguard Worker 5315*6a54128fSAndroid Build Coastguard Workerint 5316*6a54128fSAndroid Build Coastguard Workermain (void) 5317*6a54128fSAndroid Build Coastguard Worker{ 5318*6a54128fSAndroid Build Coastguard Worker 5319*6a54128fSAndroid Build Coastguard Worker ; 5320*6a54128fSAndroid Build Coastguard Worker return 0; 5321*6a54128fSAndroid Build Coastguard Worker} 5322*6a54128fSAndroid Build Coastguard Worker_ACEOF 5323*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 5324*6a54128fSAndroid Build Coastguard Workerthen : 5325*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_g=yes 5326*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5327*6a54128fSAndroid Build Coastguard Worker CFLAGS="" 5328*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5329*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 5330*6a54128fSAndroid Build Coastguard Worker 5331*6a54128fSAndroid Build Coastguard Workerint 5332*6a54128fSAndroid Build Coastguard Workermain (void) 5333*6a54128fSAndroid Build Coastguard Worker{ 5334*6a54128fSAndroid Build Coastguard Worker 5335*6a54128fSAndroid Build Coastguard Worker ; 5336*6a54128fSAndroid Build Coastguard Worker return 0; 5337*6a54128fSAndroid Build Coastguard Worker} 5338*6a54128fSAndroid Build Coastguard Worker_ACEOF 5339*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 5340*6a54128fSAndroid Build Coastguard Workerthen : 5341*6a54128fSAndroid Build Coastguard Worker 5342*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5343*6a54128fSAndroid Build Coastguard Worker ac_c_werror_flag=$ac_save_c_werror_flag 5344*6a54128fSAndroid Build Coastguard Worker CFLAGS="-g" 5345*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5346*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 5347*6a54128fSAndroid Build Coastguard Worker 5348*6a54128fSAndroid Build Coastguard Workerint 5349*6a54128fSAndroid Build Coastguard Workermain (void) 5350*6a54128fSAndroid Build Coastguard Worker{ 5351*6a54128fSAndroid Build Coastguard Worker 5352*6a54128fSAndroid Build Coastguard Worker ; 5353*6a54128fSAndroid Build Coastguard Worker return 0; 5354*6a54128fSAndroid Build Coastguard Worker} 5355*6a54128fSAndroid Build Coastguard Worker_ACEOF 5356*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 5357*6a54128fSAndroid Build Coastguard Workerthen : 5358*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_g=yes 5359*6a54128fSAndroid Build Coastguard Workerfi 5360*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5361*6a54128fSAndroid Build Coastguard Workerfi 5362*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5363*6a54128fSAndroid Build Coastguard Workerfi 5364*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5365*6a54128fSAndroid Build Coastguard Worker ac_c_werror_flag=$ac_save_c_werror_flag 5366*6a54128fSAndroid Build Coastguard Workerfi 5367*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5368*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5369*6a54128fSAndroid Build Coastguard Workerif test $ac_test_CFLAGS; then 5370*6a54128fSAndroid Build Coastguard Worker CFLAGS=$ac_save_CFLAGS 5371*6a54128fSAndroid Build Coastguard Workerelif test $ac_cv_prog_cc_g = yes; then 5372*6a54128fSAndroid Build Coastguard Worker if test "$GCC" = yes; then 5373*6a54128fSAndroid Build Coastguard Worker CFLAGS="-g -O2" 5374*6a54128fSAndroid Build Coastguard Worker else 5375*6a54128fSAndroid Build Coastguard Worker CFLAGS="-g" 5376*6a54128fSAndroid Build Coastguard Worker fi 5377*6a54128fSAndroid Build Coastguard Workerelse 5378*6a54128fSAndroid Build Coastguard Worker if test "$GCC" = yes; then 5379*6a54128fSAndroid Build Coastguard Worker CFLAGS="-O2" 5380*6a54128fSAndroid Build Coastguard Worker else 5381*6a54128fSAndroid Build Coastguard Worker CFLAGS= 5382*6a54128fSAndroid Build Coastguard Worker fi 5383*6a54128fSAndroid Build Coastguard Workerfi 5384*6a54128fSAndroid Build Coastguard Workerac_prog_cc_stdc=no 5385*6a54128fSAndroid Build Coastguard Workerif test x$ac_prog_cc_stdc = xno 5386*6a54128fSAndroid Build Coastguard Workerthen : 5387*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5388*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $CC option to enable C11 features... " >&6; } 5389*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_cc_c11+y} 5390*6a54128fSAndroid Build Coastguard Workerthen : 5391*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 5392*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5393*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_c11=no 5394*6a54128fSAndroid Build Coastguard Workerac_save_CC=$CC 5395*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 5396*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 5397*6a54128fSAndroid Build Coastguard Worker$ac_c_conftest_c11_program 5398*6a54128fSAndroid Build Coastguard Worker_ACEOF 5399*6a54128fSAndroid Build Coastguard Workerfor ac_arg in '' -std=gnu11 5400*6a54128fSAndroid Build Coastguard Workerdo 5401*6a54128fSAndroid Build Coastguard Worker CC="$ac_save_CC $ac_arg" 5402*6a54128fSAndroid Build Coastguard Worker if ac_fn_c_try_compile "$LINENO" 5403*6a54128fSAndroid Build Coastguard Workerthen : 5404*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_c11=$ac_arg 5405*6a54128fSAndroid Build Coastguard Workerfi 5406*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam 5407*6a54128fSAndroid Build Coastguard Worker test "x$ac_cv_prog_cc_c11" != "xno" && break 5408*6a54128fSAndroid Build Coastguard Workerdone 5409*6a54128fSAndroid Build Coastguard Workerrm -f conftest.$ac_ext 5410*6a54128fSAndroid Build Coastguard WorkerCC=$ac_save_CC 5411*6a54128fSAndroid Build Coastguard Workerfi 5412*6a54128fSAndroid Build Coastguard Worker 5413*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_prog_cc_c11" = xno 5414*6a54128fSAndroid Build Coastguard Workerthen : 5415*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5416*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "unsupported" >&6; } 5417*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5418*6a54128fSAndroid Build Coastguard Worker if test "x$ac_cv_prog_cc_c11" = x 5419*6a54128fSAndroid Build Coastguard Workerthen : 5420*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5421*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "none needed" >&6; } 5422*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5423*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5424*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5425*6a54128fSAndroid Build Coastguard Worker CC="$CC $ac_cv_prog_cc_c11" 5426*6a54128fSAndroid Build Coastguard Workerfi 5427*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5428*6a54128fSAndroid Build Coastguard Worker ac_prog_cc_stdc=c11 5429*6a54128fSAndroid Build Coastguard Workerfi 5430*6a54128fSAndroid Build Coastguard Workerfi 5431*6a54128fSAndroid Build Coastguard Workerif test x$ac_prog_cc_stdc = xno 5432*6a54128fSAndroid Build Coastguard Workerthen : 5433*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5434*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $CC option to enable C99 features... " >&6; } 5435*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_cc_c99+y} 5436*6a54128fSAndroid Build Coastguard Workerthen : 5437*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 5438*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5439*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_c99=no 5440*6a54128fSAndroid Build Coastguard Workerac_save_CC=$CC 5441*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 5442*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 5443*6a54128fSAndroid Build Coastguard Worker$ac_c_conftest_c99_program 5444*6a54128fSAndroid Build Coastguard Worker_ACEOF 5445*6a54128fSAndroid Build Coastguard Workerfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5446*6a54128fSAndroid Build Coastguard Workerdo 5447*6a54128fSAndroid Build Coastguard Worker CC="$ac_save_CC $ac_arg" 5448*6a54128fSAndroid Build Coastguard Worker if ac_fn_c_try_compile "$LINENO" 5449*6a54128fSAndroid Build Coastguard Workerthen : 5450*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_c99=$ac_arg 5451*6a54128fSAndroid Build Coastguard Workerfi 5452*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam 5453*6a54128fSAndroid Build Coastguard Worker test "x$ac_cv_prog_cc_c99" != "xno" && break 5454*6a54128fSAndroid Build Coastguard Workerdone 5455*6a54128fSAndroid Build Coastguard Workerrm -f conftest.$ac_ext 5456*6a54128fSAndroid Build Coastguard WorkerCC=$ac_save_CC 5457*6a54128fSAndroid Build Coastguard Workerfi 5458*6a54128fSAndroid Build Coastguard Worker 5459*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_prog_cc_c99" = xno 5460*6a54128fSAndroid Build Coastguard Workerthen : 5461*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5462*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "unsupported" >&6; } 5463*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5464*6a54128fSAndroid Build Coastguard Worker if test "x$ac_cv_prog_cc_c99" = x 5465*6a54128fSAndroid Build Coastguard Workerthen : 5466*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5467*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "none needed" >&6; } 5468*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5469*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5470*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5471*6a54128fSAndroid Build Coastguard Worker CC="$CC $ac_cv_prog_cc_c99" 5472*6a54128fSAndroid Build Coastguard Workerfi 5473*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5474*6a54128fSAndroid Build Coastguard Worker ac_prog_cc_stdc=c99 5475*6a54128fSAndroid Build Coastguard Workerfi 5476*6a54128fSAndroid Build Coastguard Workerfi 5477*6a54128fSAndroid Build Coastguard Workerif test x$ac_prog_cc_stdc = xno 5478*6a54128fSAndroid Build Coastguard Workerthen : 5479*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5480*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $CC option to enable C89 features... " >&6; } 5481*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_cc_c89+y} 5482*6a54128fSAndroid Build Coastguard Workerthen : 5483*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 5484*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5485*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_c89=no 5486*6a54128fSAndroid Build Coastguard Workerac_save_CC=$CC 5487*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 5488*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 5489*6a54128fSAndroid Build Coastguard Worker$ac_c_conftest_c89_program 5490*6a54128fSAndroid Build Coastguard Worker_ACEOF 5491*6a54128fSAndroid Build Coastguard Workerfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5492*6a54128fSAndroid Build Coastguard Workerdo 5493*6a54128fSAndroid Build Coastguard Worker CC="$ac_save_CC $ac_arg" 5494*6a54128fSAndroid Build Coastguard Worker if ac_fn_c_try_compile "$LINENO" 5495*6a54128fSAndroid Build Coastguard Workerthen : 5496*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_c89=$ac_arg 5497*6a54128fSAndroid Build Coastguard Workerfi 5498*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam 5499*6a54128fSAndroid Build Coastguard Worker test "x$ac_cv_prog_cc_c89" != "xno" && break 5500*6a54128fSAndroid Build Coastguard Workerdone 5501*6a54128fSAndroid Build Coastguard Workerrm -f conftest.$ac_ext 5502*6a54128fSAndroid Build Coastguard WorkerCC=$ac_save_CC 5503*6a54128fSAndroid Build Coastguard Workerfi 5504*6a54128fSAndroid Build Coastguard Worker 5505*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_prog_cc_c89" = xno 5506*6a54128fSAndroid Build Coastguard Workerthen : 5507*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5508*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "unsupported" >&6; } 5509*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5510*6a54128fSAndroid Build Coastguard Worker if test "x$ac_cv_prog_cc_c89" = x 5511*6a54128fSAndroid Build Coastguard Workerthen : 5512*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5513*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "none needed" >&6; } 5514*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5515*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5516*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5517*6a54128fSAndroid Build Coastguard Worker CC="$CC $ac_cv_prog_cc_c89" 5518*6a54128fSAndroid Build Coastguard Workerfi 5519*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5520*6a54128fSAndroid Build Coastguard Worker ac_prog_cc_stdc=c89 5521*6a54128fSAndroid Build Coastguard Workerfi 5522*6a54128fSAndroid Build Coastguard Workerfi 5523*6a54128fSAndroid Build Coastguard Worker 5524*6a54128fSAndroid Build Coastguard Workerac_ext=c 5525*6a54128fSAndroid Build Coastguard Workerac_cpp='$CPP $CPPFLAGS' 5526*6a54128fSAndroid Build Coastguard Workerac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5527*6a54128fSAndroid Build Coastguard Workerac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5528*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_c_compiler_gnu 5529*6a54128fSAndroid Build Coastguard Worker 5530*6a54128fSAndroid Build Coastguard Workerif test "$GCC" = yes; then 5531*6a54128fSAndroid Build Coastguard Worker RDYNAMIC="-rdynamic" 5532*6a54128fSAndroid Build Coastguard Worker 5533*6a54128fSAndroid Build Coastguard Workerfi 5534*6a54128fSAndroid Build Coastguard Workerac_ext=c 5535*6a54128fSAndroid Build Coastguard Workerac_cpp='$CPP $CPPFLAGS' 5536*6a54128fSAndroid Build Coastguard Workerac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5537*6a54128fSAndroid Build Coastguard Workerac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5538*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_c_compiler_gnu 5539*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5540*6a54128fSAndroid Build Coastguard Workerprintf %s "checking how to run the C preprocessor... " >&6; } 5541*6a54128fSAndroid Build Coastguard Worker# On Suns, sometimes $CPP names a directory. 5542*6a54128fSAndroid Build Coastguard Workerif test -n "$CPP" && test -d "$CPP"; then 5543*6a54128fSAndroid Build Coastguard Worker CPP= 5544*6a54128fSAndroid Build Coastguard Workerfi 5545*6a54128fSAndroid Build Coastguard Workerif test -z "$CPP"; then 5546*6a54128fSAndroid Build Coastguard Worker if test ${ac_cv_prog_CPP+y} 5547*6a54128fSAndroid Build Coastguard Workerthen : 5548*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 5549*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5550*6a54128fSAndroid Build Coastguard Worker # Double quotes because $CC needs to be expanded 5551*6a54128fSAndroid Build Coastguard Worker for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5552*6a54128fSAndroid Build Coastguard Worker do 5553*6a54128fSAndroid Build Coastguard Worker ac_preproc_ok=false 5554*6a54128fSAndroid Build Coastguard Workerfor ac_c_preproc_warn_flag in '' yes 5555*6a54128fSAndroid Build Coastguard Workerdo 5556*6a54128fSAndroid Build Coastguard Worker # Use a header file that comes with gcc, so configuring glibc 5557*6a54128fSAndroid Build Coastguard Worker # with a fresh cross-compiler works. 5558*6a54128fSAndroid Build Coastguard Worker # On the NeXT, cc -E runs the code through the compiler's parser, 5559*6a54128fSAndroid Build Coastguard Worker # not just through cpp. "Syntax error" is here to catch this case. 5560*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5561*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 5562*6a54128fSAndroid Build Coastguard Worker#include <limits.h> 5563*6a54128fSAndroid Build Coastguard Worker Syntax error 5564*6a54128fSAndroid Build Coastguard Worker_ACEOF 5565*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_cpp "$LINENO" 5566*6a54128fSAndroid Build Coastguard Workerthen : 5567*6a54128fSAndroid Build Coastguard Worker 5568*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5569*6a54128fSAndroid Build Coastguard Worker # Broken: fails on valid input. 5570*6a54128fSAndroid Build Coastguard Workercontinue 5571*6a54128fSAndroid Build Coastguard Workerfi 5572*6a54128fSAndroid Build Coastguard Workerrm -f conftest.err conftest.i conftest.$ac_ext 5573*6a54128fSAndroid Build Coastguard Worker 5574*6a54128fSAndroid Build Coastguard Worker # OK, works on sane cases. Now check whether nonexistent headers 5575*6a54128fSAndroid Build Coastguard Worker # can be detected and how. 5576*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5577*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 5578*6a54128fSAndroid Build Coastguard Worker#include <ac_nonexistent.h> 5579*6a54128fSAndroid Build Coastguard Worker_ACEOF 5580*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_cpp "$LINENO" 5581*6a54128fSAndroid Build Coastguard Workerthen : 5582*6a54128fSAndroid Build Coastguard Worker # Broken: success on invalid input. 5583*6a54128fSAndroid Build Coastguard Workercontinue 5584*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5585*6a54128fSAndroid Build Coastguard Worker # Passes both tests. 5586*6a54128fSAndroid Build Coastguard Workerac_preproc_ok=: 5587*6a54128fSAndroid Build Coastguard Workerbreak 5588*6a54128fSAndroid Build Coastguard Workerfi 5589*6a54128fSAndroid Build Coastguard Workerrm -f conftest.err conftest.i conftest.$ac_ext 5590*6a54128fSAndroid Build Coastguard Worker 5591*6a54128fSAndroid Build Coastguard Workerdone 5592*6a54128fSAndroid Build Coastguard Worker# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5593*6a54128fSAndroid Build Coastguard Workerrm -f conftest.i conftest.err conftest.$ac_ext 5594*6a54128fSAndroid Build Coastguard Workerif $ac_preproc_ok 5595*6a54128fSAndroid Build Coastguard Workerthen : 5596*6a54128fSAndroid Build Coastguard Worker break 5597*6a54128fSAndroid Build Coastguard Workerfi 5598*6a54128fSAndroid Build Coastguard Worker 5599*6a54128fSAndroid Build Coastguard Worker done 5600*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CPP=$CPP 5601*6a54128fSAndroid Build Coastguard Worker 5602*6a54128fSAndroid Build Coastguard Workerfi 5603*6a54128fSAndroid Build Coastguard Worker CPP=$ac_cv_prog_CPP 5604*6a54128fSAndroid Build Coastguard Workerelse 5605*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CPP=$CPP 5606*6a54128fSAndroid Build Coastguard Workerfi 5607*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5608*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$CPP" >&6; } 5609*6a54128fSAndroid Build Coastguard Workerac_preproc_ok=false 5610*6a54128fSAndroid Build Coastguard Workerfor ac_c_preproc_warn_flag in '' yes 5611*6a54128fSAndroid Build Coastguard Workerdo 5612*6a54128fSAndroid Build Coastguard Worker # Use a header file that comes with gcc, so configuring glibc 5613*6a54128fSAndroid Build Coastguard Worker # with a fresh cross-compiler works. 5614*6a54128fSAndroid Build Coastguard Worker # On the NeXT, cc -E runs the code through the compiler's parser, 5615*6a54128fSAndroid Build Coastguard Worker # not just through cpp. "Syntax error" is here to catch this case. 5616*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5617*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 5618*6a54128fSAndroid Build Coastguard Worker#include <limits.h> 5619*6a54128fSAndroid Build Coastguard Worker Syntax error 5620*6a54128fSAndroid Build Coastguard Worker_ACEOF 5621*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_cpp "$LINENO" 5622*6a54128fSAndroid Build Coastguard Workerthen : 5623*6a54128fSAndroid Build Coastguard Worker 5624*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5625*6a54128fSAndroid Build Coastguard Worker # Broken: fails on valid input. 5626*6a54128fSAndroid Build Coastguard Workercontinue 5627*6a54128fSAndroid Build Coastguard Workerfi 5628*6a54128fSAndroid Build Coastguard Workerrm -f conftest.err conftest.i conftest.$ac_ext 5629*6a54128fSAndroid Build Coastguard Worker 5630*6a54128fSAndroid Build Coastguard Worker # OK, works on sane cases. Now check whether nonexistent headers 5631*6a54128fSAndroid Build Coastguard Worker # can be detected and how. 5632*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5633*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 5634*6a54128fSAndroid Build Coastguard Worker#include <ac_nonexistent.h> 5635*6a54128fSAndroid Build Coastguard Worker_ACEOF 5636*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_cpp "$LINENO" 5637*6a54128fSAndroid Build Coastguard Workerthen : 5638*6a54128fSAndroid Build Coastguard Worker # Broken: success on invalid input. 5639*6a54128fSAndroid Build Coastguard Workercontinue 5640*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5641*6a54128fSAndroid Build Coastguard Worker # Passes both tests. 5642*6a54128fSAndroid Build Coastguard Workerac_preproc_ok=: 5643*6a54128fSAndroid Build Coastguard Workerbreak 5644*6a54128fSAndroid Build Coastguard Workerfi 5645*6a54128fSAndroid Build Coastguard Workerrm -f conftest.err conftest.i conftest.$ac_ext 5646*6a54128fSAndroid Build Coastguard Worker 5647*6a54128fSAndroid Build Coastguard Workerdone 5648*6a54128fSAndroid Build Coastguard Worker# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5649*6a54128fSAndroid Build Coastguard Workerrm -f conftest.i conftest.err conftest.$ac_ext 5650*6a54128fSAndroid Build Coastguard Workerif $ac_preproc_ok 5651*6a54128fSAndroid Build Coastguard Workerthen : 5652*6a54128fSAndroid Build Coastguard Worker 5653*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5654*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5655*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5656*6a54128fSAndroid Build Coastguard Workeras_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5657*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 5658*6a54128fSAndroid Build Coastguard Workerfi 5659*6a54128fSAndroid Build Coastguard Worker 5660*6a54128fSAndroid Build Coastguard Workerac_ext=c 5661*6a54128fSAndroid Build Coastguard Workerac_cpp='$CPP $CPPFLAGS' 5662*6a54128fSAndroid Build Coastguard Workerac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5663*6a54128fSAndroid Build Coastguard Workerac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5664*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_c_compiler_gnu 5665*6a54128fSAndroid Build Coastguard Worker 5666*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 5667*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for additional special compiler flags... " >&6; } 5668*6a54128fSAndroid Build Coastguard Workerif test "$GCC" = yes 5669*6a54128fSAndroid Build Coastguard Workerthen 5670*6a54128fSAndroid Build Coastguard Worker case "$host_cpu" in 5671*6a54128fSAndroid Build Coastguard Worker alpha) addcflags="-mieee" ;; 5672*6a54128fSAndroid Build Coastguard Worker esac 5673*6a54128fSAndroid Build Coastguard Workerfi 5674*6a54128fSAndroid Build Coastguard Workerif test "x$addcflags" != x 5675*6a54128fSAndroid Build Coastguard Workerthen 5676*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 5677*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$addcflags" >&6; } 5678*6a54128fSAndroid Build Coastguard Worker CFLAGS="$addcflags $CFLAGS" 5679*6a54128fSAndroid Build Coastguard Workerelse 5680*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 5681*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "(none)" >&6; } 5682*6a54128fSAndroid Build Coastguard Workerfi 5683*6a54128fSAndroid Build Coastguard WorkerLIB_EXT=.a 5684*6a54128fSAndroid Build Coastguard WorkerSTATIC_LIB_EXT=.a 5685*6a54128fSAndroid Build Coastguard WorkerPROFILED_LIB_EXT=.a 5686*6a54128fSAndroid Build Coastguard Worker 5687*6a54128fSAndroid Build Coastguard Worker# Check whether --with-root-prefix was given. 5688*6a54128fSAndroid Build Coastguard Workerif test ${with_root_prefix+y} 5689*6a54128fSAndroid Build Coastguard Workerthen : 5690*6a54128fSAndroid Build Coastguard Worker withval=$with_root_prefix; root_prefix=$withval 5691*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5692*6a54128fSAndroid Build Coastguard Worker root_prefix=NONE 5693*6a54128fSAndroid Build Coastguard Workerfi 5694*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-maintainer-mode was given. 5695*6a54128fSAndroid Build Coastguard Workerif test ${enable_maintainer_mode+y} 5696*6a54128fSAndroid Build Coastguard Workerthen : 5697*6a54128fSAndroid Build Coastguard Worker enableval=$enable_maintainer_mode; if test "$enableval" = "no" 5698*6a54128fSAndroid Build Coastguard Workerthen 5699*6a54128fSAndroid Build Coastguard Worker MAINTAINER_CMT=# 5700*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 5701*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling maintainer mode" >&6; } 5702*6a54128fSAndroid Build Coastguard Workerelse 5703*6a54128fSAndroid Build Coastguard Worker MAINTAINER_CMT= 5704*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 5705*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling maintainer mode" >&6; } 5706*6a54128fSAndroid Build Coastguard Workerfi 5707*6a54128fSAndroid Build Coastguard Worker 5708*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5709*6a54128fSAndroid Build Coastguard Worker MAINTAINER_CMT=# 5710*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 5711*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling maintainer mode by default" >&6; } 5712*6a54128fSAndroid Build Coastguard Worker 5713*6a54128fSAndroid Build Coastguard Workerfi 5714*6a54128fSAndroid Build Coastguard Worker 5715*6a54128fSAndroid Build Coastguard Worker 5716*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-symlink-install was given. 5717*6a54128fSAndroid Build Coastguard Workerif test ${enable_symlink_install+y} 5718*6a54128fSAndroid Build Coastguard Workerthen : 5719*6a54128fSAndroid Build Coastguard Worker enableval=$enable_symlink_install; if test "$enableval" = "no" 5720*6a54128fSAndroid Build Coastguard Workerthen 5721*6a54128fSAndroid Build Coastguard Worker LINK_INSTALL_FLAGS=-f 5722*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 5723*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling symlinks for install" >&6; } 5724*6a54128fSAndroid Build Coastguard Workerelse 5725*6a54128fSAndroid Build Coastguard Worker LINK_INSTALL_FLAGS=-sf 5726*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 5727*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling symlinks for install" >&6; } 5728*6a54128fSAndroid Build Coastguard Workerfi 5729*6a54128fSAndroid Build Coastguard Worker 5730*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5731*6a54128fSAndroid Build Coastguard Worker LINK_INSTALL_FLAGS=-f 5732*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 5733*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling symlinks for install by default" >&6; } 5734*6a54128fSAndroid Build Coastguard Worker 5735*6a54128fSAndroid Build Coastguard Workerfi 5736*6a54128fSAndroid Build Coastguard Worker 5737*6a54128fSAndroid Build Coastguard Worker 5738*6a54128fSAndroid Build Coastguard Workerrelative_symlink_defined= 5739*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-relative-symlinks was given. 5740*6a54128fSAndroid Build Coastguard Workerif test ${enable_relative_symlinks+y} 5741*6a54128fSAndroid Build Coastguard Workerthen : 5742*6a54128fSAndroid Build Coastguard Worker enableval=$enable_relative_symlinks; if test "$enableval" = "no" 5743*6a54128fSAndroid Build Coastguard Workerthen 5744*6a54128fSAndroid Build Coastguard Worker SYMLINK_RELATIVE= 5745*6a54128fSAndroid Build Coastguard Worker relative_symlink_defined=yes 5746*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 5747*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling relative symlinks for install" >&6; } 5748*6a54128fSAndroid Build Coastguard Workerelse 5749*6a54128fSAndroid Build Coastguard Worker SYMLINK_RELATIVE=--relative 5750*6a54128fSAndroid Build Coastguard Worker relative_symlink_defined=yes 5751*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 5752*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling relative symlinks for install" >&6; } 5753*6a54128fSAndroid Build Coastguard Workerfi 5754*6a54128fSAndroid Build Coastguard Workerfi 5755*6a54128fSAndroid Build Coastguard Worker 5756*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-symlink-relative-symlinks was given. 5757*6a54128fSAndroid Build Coastguard Workerif test ${enable_symlink_relative_symlinks+y} 5758*6a54128fSAndroid Build Coastguard Workerthen : 5759*6a54128fSAndroid Build Coastguard Worker enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" 5760*6a54128fSAndroid Build Coastguard Workerthen 5761*6a54128fSAndroid Build Coastguard Worker SYMLINK_RELATIVE=yes 5762*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 5763*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling relative symlinks for install" >&6; } 5764*6a54128fSAndroid Build Coastguard Workerelse 5765*6a54128fSAndroid Build Coastguard Worker SYMLINK_RELATIVE=--relative 5766*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 5767*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling relative symlinks for install" >&6; } 5768*6a54128fSAndroid Build Coastguard Workerfi 5769*6a54128fSAndroid Build Coastguard Worker 5770*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5771*6a54128fSAndroid Build Coastguard Worker if test -z "$relative_symlink_defined" 5772*6a54128fSAndroid Build Coastguard Workerthen 5773*6a54128fSAndroid Build Coastguard Worker SYMLINK_RELATIVE= 5774*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 5775*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling relative symlinks for install by default" >&6; } 5776*6a54128fSAndroid Build Coastguard Workerfi 5777*6a54128fSAndroid Build Coastguard Worker 5778*6a54128fSAndroid Build Coastguard Workerfi 5779*6a54128fSAndroid Build Coastguard Worker 5780*6a54128fSAndroid Build Coastguard Worker 5781*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-symlink-build was given. 5782*6a54128fSAndroid Build Coastguard Workerif test ${enable_symlink_build+y} 5783*6a54128fSAndroid Build Coastguard Workerthen : 5784*6a54128fSAndroid Build Coastguard Worker enableval=$enable_symlink_build; if test "$enableval" = "no" 5785*6a54128fSAndroid Build Coastguard Workerthen 5786*6a54128fSAndroid Build Coastguard Worker LINK_BUILD_FLAGS= 5787*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 5788*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling symlinks for build" >&6; } 5789*6a54128fSAndroid Build Coastguard Workerelse 5790*6a54128fSAndroid Build Coastguard Worker LINK_BUILD_FLAGS=-s 5791*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 5792*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling symlinks for build" >&6; } 5793*6a54128fSAndroid Build Coastguard Workerfi 5794*6a54128fSAndroid Build Coastguard Worker 5795*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5796*6a54128fSAndroid Build Coastguard Worker LINK_BUILD_FLAGS= 5797*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 5798*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling symlinks for build by default" >&6; } 5799*6a54128fSAndroid Build Coastguard Worker 5800*6a54128fSAndroid Build Coastguard Workerfi 5801*6a54128fSAndroid Build Coastguard Worker 5802*6a54128fSAndroid Build Coastguard Worker 5803*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-verbose-makecmds was given. 5804*6a54128fSAndroid Build Coastguard Workerif test ${enable_verbose_makecmds+y} 5805*6a54128fSAndroid Build Coastguard Workerthen : 5806*6a54128fSAndroid Build Coastguard Worker enableval=$enable_verbose_makecmds; if test "$enableval" = "no" 5807*6a54128fSAndroid Build Coastguard Workerthen 5808*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 5809*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling verbose make commands" >&6; } 5810*6a54128fSAndroid Build Coastguard Worker E=@echo 5811*6a54128fSAndroid Build Coastguard Worker ES=echo 5812*6a54128fSAndroid Build Coastguard Worker Q=@ 5813*6a54128fSAndroid Build Coastguard Workerelse 5814*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 5815*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling verbose make commands" >&6; } 5816*6a54128fSAndroid Build Coastguard Worker E=@\\# 5817*6a54128fSAndroid Build Coastguard Worker ES=\\# 5818*6a54128fSAndroid Build Coastguard Worker Q= 5819*6a54128fSAndroid Build Coastguard Workerfi 5820*6a54128fSAndroid Build Coastguard Worker 5821*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5822*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 5823*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling verbose make commands" >&6; } 5824*6a54128fSAndroid Build Coastguard WorkerE=@echo 5825*6a54128fSAndroid Build Coastguard WorkerES=echo 5826*6a54128fSAndroid Build Coastguard WorkerQ=@ 5827*6a54128fSAndroid Build Coastguard Worker 5828*6a54128fSAndroid Build Coastguard Workerfi 5829*6a54128fSAndroid Build Coastguard Worker 5830*6a54128fSAndroid Build Coastguard Worker 5831*6a54128fSAndroid Build Coastguard Worker 5832*6a54128fSAndroid Build Coastguard Worker 5833*6a54128fSAndroid Build Coastguard WorkerE2_PKG_CONFIG_STATIC=--static 5834*6a54128fSAndroid Build Coastguard WorkerLDFLAG_DYNAMIC= 5835*6a54128fSAndroid Build Coastguard WorkerPRIVATE_LIBS_CMT= 5836*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-elf-shlibs was given. 5837*6a54128fSAndroid Build Coastguard Workerif test ${enable_elf_shlibs+y} 5838*6a54128fSAndroid Build Coastguard Workerthen : 5839*6a54128fSAndroid Build Coastguard Worker enableval=$enable_elf_shlibs; if test "$enableval" = "no" 5840*6a54128fSAndroid Build Coastguard Workerthen 5841*6a54128fSAndroid Build Coastguard Worker ELF_CMT=# 5842*6a54128fSAndroid Build Coastguard Worker MAKEFILE_ELF=/dev/null 5843*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 5844*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling ELF shared libraries" >&6; } 5845*6a54128fSAndroid Build Coastguard Workerelse 5846*6a54128fSAndroid Build Coastguard Worker E2_PKG_CONFIG_STATIC= 5847*6a54128fSAndroid Build Coastguard Worker ELF_CMT= 5848*6a54128fSAndroid Build Coastguard Worker MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib 5849*6a54128fSAndroid Build Coastguard Worker case "$host_os" in 5850*6a54128fSAndroid Build Coastguard Worker solaris2.*) 5851*6a54128fSAndroid Build Coastguard Worker MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib 5852*6a54128fSAndroid Build Coastguard Worker ;; 5853*6a54128fSAndroid Build Coastguard Worker esac 5854*6a54128fSAndroid Build Coastguard Worker BINARY_TYPE=elfbin 5855*6a54128fSAndroid Build Coastguard Worker LIB_EXT=.so 5856*6a54128fSAndroid Build Coastguard Worker PRIVATE_LIBS_CMT=# 5857*6a54128fSAndroid Build Coastguard Worker LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' 5858*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 5859*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling ELF shared libraries" >&6; } 5860*6a54128fSAndroid Build Coastguard Workerfi 5861*6a54128fSAndroid Build Coastguard Worker 5862*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5863*6a54128fSAndroid Build Coastguard Worker MAKEFILE_ELF=/dev/null 5864*6a54128fSAndroid Build Coastguard WorkerELF_CMT=# 5865*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 5866*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling ELF shared libraries by default" >&6; } 5867*6a54128fSAndroid Build Coastguard Worker 5868*6a54128fSAndroid Build Coastguard Workerfi 5869*6a54128fSAndroid Build Coastguard Worker 5870*6a54128fSAndroid Build Coastguard Worker 5871*6a54128fSAndroid Build Coastguard Worker 5872*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-bsd-shlibs was given. 5873*6a54128fSAndroid Build Coastguard Workerif test ${enable_bsd_shlibs+y} 5874*6a54128fSAndroid Build Coastguard Workerthen : 5875*6a54128fSAndroid Build Coastguard Worker enableval=$enable_bsd_shlibs; if test "$enableval" = "no" 5876*6a54128fSAndroid Build Coastguard Workerthen 5877*6a54128fSAndroid Build Coastguard Worker BSDLIB_CMT=# 5878*6a54128fSAndroid Build Coastguard Worker MAKEFILE_BSDLIB=/dev/null 5879*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 5880*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling BSD shared libraries" >&6; } 5881*6a54128fSAndroid Build Coastguard Workerelse 5882*6a54128fSAndroid Build Coastguard Worker E2_PKG_CONFIG_STATIC= 5883*6a54128fSAndroid Build Coastguard Worker BSDLIB_CMT= 5884*6a54128fSAndroid Build Coastguard Worker MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib 5885*6a54128fSAndroid Build Coastguard Worker LIB_EXT=.so 5886*6a54128fSAndroid Build Coastguard Worker case "$host_os" in 5887*6a54128fSAndroid Build Coastguard Worker darwin*) 5888*6a54128fSAndroid Build Coastguard Worker MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib 5889*6a54128fSAndroid Build Coastguard Worker LIB_EXT=.dylib 5890*6a54128fSAndroid Build Coastguard Worker ;; 5891*6a54128fSAndroid Build Coastguard Worker esac 5892*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 5893*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling BSD shared libraries" >&6; } 5894*6a54128fSAndroid Build Coastguard Workerfi 5895*6a54128fSAndroid Build Coastguard Worker 5896*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5897*6a54128fSAndroid Build Coastguard Worker MAKEFILE_BSDLIB=/dev/null 5898*6a54128fSAndroid Build Coastguard WorkerBSDLIB_CMT=# 5899*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 5900*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling BSD shared libraries by default" >&6; } 5901*6a54128fSAndroid Build Coastguard Worker 5902*6a54128fSAndroid Build Coastguard Workerfi 5903*6a54128fSAndroid Build Coastguard Worker 5904*6a54128fSAndroid Build Coastguard Worker 5905*6a54128fSAndroid Build Coastguard Worker 5906*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-profile was given. 5907*6a54128fSAndroid Build Coastguard Workerif test ${enable_profile+y} 5908*6a54128fSAndroid Build Coastguard Workerthen : 5909*6a54128fSAndroid Build Coastguard Worker enableval=$enable_profile; if test "$enableval" = "no" 5910*6a54128fSAndroid Build Coastguard Workerthen 5911*6a54128fSAndroid Build Coastguard Worker PROFILE_CMT=# 5912*6a54128fSAndroid Build Coastguard Worker MAKEFILE_PROFILE=/dev/null 5913*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 5914*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling profiling libraries" >&6; } 5915*6a54128fSAndroid Build Coastguard Workerelse 5916*6a54128fSAndroid Build Coastguard Worker PROFILE_CMT= 5917*6a54128fSAndroid Build Coastguard Worker MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile 5918*6a54128fSAndroid Build Coastguard Worker PROFILED_LIB_EXT=_p.a 5919*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 5920*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Building profiling libraries" >&6; } 5921*6a54128fSAndroid Build Coastguard Workerfi 5922*6a54128fSAndroid Build Coastguard Worker 5923*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5924*6a54128fSAndroid Build Coastguard Worker PROFILE_CMT=# 5925*6a54128fSAndroid Build Coastguard WorkerMAKEFILE_PROFILE=/dev/null 5926*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 5927*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling profiling libraries by default" >&6; } 5928*6a54128fSAndroid Build Coastguard Worker 5929*6a54128fSAndroid Build Coastguard Workerfi 5930*6a54128fSAndroid Build Coastguard Worker 5931*6a54128fSAndroid Build Coastguard Worker 5932*6a54128fSAndroid Build Coastguard Worker 5933*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-gcov was given. 5934*6a54128fSAndroid Build Coastguard Workerif test ${enable_gcov+y} 5935*6a54128fSAndroid Build Coastguard Workerthen : 5936*6a54128fSAndroid Build Coastguard Worker enableval=$enable_gcov; if test "$enableval" = "yes" 5937*6a54128fSAndroid Build Coastguard Workerthen 5938*6a54128fSAndroid Build Coastguard Worker CFLAGS="-g -fprofile-arcs -ftest-coverage" 5939*6a54128fSAndroid Build Coastguard Worker LDFLAGS="-fprofile-arcs -ftest-coverage" 5940*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5 5941*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling gcov support" >&6; } 5942*6a54128fSAndroid Build Coastguard Workerfi 5943*6a54128fSAndroid Build Coastguard Worker 5944*6a54128fSAndroid Build Coastguard Workerfi 5945*6a54128fSAndroid Build Coastguard Worker 5946*6a54128fSAndroid Build Coastguard WorkerCFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}" 5947*6a54128fSAndroid Build Coastguard WorkerCFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}" 5948*6a54128fSAndroid Build Coastguard WorkerLDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} 5949*6a54128fSAndroid Build Coastguard WorkerLDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS} 5950*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-hardening was given. 5951*6a54128fSAndroid Build Coastguard Workerif test ${enable_hardening+y} 5952*6a54128fSAndroid Build Coastguard Workerthen : 5953*6a54128fSAndroid Build Coastguard Worker enableval=$enable_hardening; if test "$enableval" = "yes" 5954*6a54128fSAndroid Build Coastguard Workerthen 5955*6a54128fSAndroid Build Coastguard Worker HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong" 5956*6a54128fSAndroid Build Coastguard Worker HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now" 5957*6a54128fSAndroid Build Coastguard Worker CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE" 5958*6a54128fSAndroid Build Coastguard Worker CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS" 5959*6a54128fSAndroid Build Coastguard Worker CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE" 5960*6a54128fSAndroid Build Coastguard Worker LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie" 5961*6a54128fSAndroid Build Coastguard Worker LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS" 5962*6a54128fSAndroid Build Coastguard Worker LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS" 5963*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5 5964*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling hardening support" >&6; } 5965*6a54128fSAndroid Build Coastguard Workerfi 5966*6a54128fSAndroid Build Coastguard Worker 5967*6a54128fSAndroid Build Coastguard Workerfi 5968*6a54128fSAndroid Build Coastguard Worker 5969*6a54128fSAndroid Build Coastguard Worker 5970*6a54128fSAndroid Build Coastguard Worker 5971*6a54128fSAndroid Build Coastguard Worker 5972*6a54128fSAndroid Build Coastguard Worker 5973*6a54128fSAndroid Build Coastguard Worker 5974*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-jbd-debug was given. 5975*6a54128fSAndroid Build Coastguard Workerif test ${enable_jbd_debug+y} 5976*6a54128fSAndroid Build Coastguard Workerthen : 5977*6a54128fSAndroid Build Coastguard Worker enableval=$enable_jbd_debug; if test "$enableval" = "no" 5978*6a54128fSAndroid Build Coastguard Workerthen 5979*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 5980*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling journal debugging" >&6; } 5981*6a54128fSAndroid Build Coastguard Workerelse 5982*6a54128fSAndroid Build Coastguard Worker 5983*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h 5984*6a54128fSAndroid Build Coastguard Worker 5985*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 5986*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling journal debugging" >&6; } 5987*6a54128fSAndroid Build Coastguard Workerfi 5988*6a54128fSAndroid Build Coastguard Worker 5989*6a54128fSAndroid Build Coastguard Workerelse $as_nop 5990*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 5991*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling journal debugging by default" >&6; } 5992*6a54128fSAndroid Build Coastguard Worker 5993*6a54128fSAndroid Build Coastguard Workerfi 5994*6a54128fSAndroid Build Coastguard Worker 5995*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-blkid-debug was given. 5996*6a54128fSAndroid Build Coastguard Workerif test ${enable_blkid_debug+y} 5997*6a54128fSAndroid Build Coastguard Workerthen : 5998*6a54128fSAndroid Build Coastguard Worker enableval=$enable_blkid_debug; if test "$enableval" = "no" 5999*6a54128fSAndroid Build Coastguard Workerthen 6000*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 6001*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling blkid debugging" >&6; } 6002*6a54128fSAndroid Build Coastguard Workerelse 6003*6a54128fSAndroid Build Coastguard Worker 6004*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h 6005*6a54128fSAndroid Build Coastguard Worker 6006*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 6007*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling blkid debugging" >&6; } 6008*6a54128fSAndroid Build Coastguard Workerfi 6009*6a54128fSAndroid Build Coastguard Worker 6010*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6011*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 6012*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling blkid debugging by default" >&6; } 6013*6a54128fSAndroid Build Coastguard Worker 6014*6a54128fSAndroid Build Coastguard Workerfi 6015*6a54128fSAndroid Build Coastguard Worker 6016*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-testio-debug was given. 6017*6a54128fSAndroid Build Coastguard Workerif test ${enable_testio_debug+y} 6018*6a54128fSAndroid Build Coastguard Workerthen : 6019*6a54128fSAndroid Build Coastguard Worker enableval=$enable_testio_debug; 6020*6a54128fSAndroid Build Coastguard Workerif test "$enableval" = "no" 6021*6a54128fSAndroid Build Coastguard Workerthen 6022*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 6023*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling testio debugging" >&6; } 6024*6a54128fSAndroid Build Coastguard Worker TEST_IO_CMT="#" 6025*6a54128fSAndroid Build Coastguard Workerelse 6026*6a54128fSAndroid Build Coastguard Worker TEST_IO_CMT= 6027*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h 6028*6a54128fSAndroid Build Coastguard Worker 6029*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 6030*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling testio debugging" >&6; } 6031*6a54128fSAndroid Build Coastguard Workerfi 6032*6a54128fSAndroid Build Coastguard Worker 6033*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6034*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 6035*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling testio debugging by default" >&6; } 6036*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h 6037*6a54128fSAndroid Build Coastguard Worker 6038*6a54128fSAndroid Build Coastguard WorkerTEST_IO_CMT= 6039*6a54128fSAndroid Build Coastguard Worker 6040*6a54128fSAndroid Build Coastguard Workerfi 6041*6a54128fSAndroid Build Coastguard Worker 6042*6a54128fSAndroid Build Coastguard Worker 6043*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-developer-features was given. 6044*6a54128fSAndroid Build Coastguard Workerif test ${enable_developer_features+y} 6045*6a54128fSAndroid Build Coastguard Workerthen : 6046*6a54128fSAndroid Build Coastguard Worker enableval=$enable_developer_features; 6047*6a54128fSAndroid Build Coastguard Workerif test "$enableval" = "yes" 6048*6a54128fSAndroid Build Coastguard Workerthen 6049*6a54128fSAndroid Build Coastguard Worker DEV_FEATURES_CMT= 6050*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h 6051*6a54128fSAndroid Build Coastguard Worker 6052*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5 6053*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling ext4 developer features" >&6; } 6054*6a54128fSAndroid Build Coastguard Workerelse 6055*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5 6056*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling ext4 developer features" >&6; } 6057*6a54128fSAndroid Build Coastguard Worker DEV_FEATURES_CMT="#" 6058*6a54128fSAndroid Build Coastguard Workerfi 6059*6a54128fSAndroid Build Coastguard Worker 6060*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6061*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5 6062*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling ext4 developer features by default" >&6; } 6063*6a54128fSAndroid Build Coastguard WorkerDEV_FEATURES_CMT= 6064*6a54128fSAndroid Build Coastguard Worker 6065*6a54128fSAndroid Build Coastguard Workerfi 6066*6a54128fSAndroid Build Coastguard Worker 6067*6a54128fSAndroid Build Coastguard Worker 6068*6a54128fSAndroid Build Coastguard Worker 6069*6a54128fSAndroid Build Coastguard Worker 6070*6a54128fSAndroid Build Coastguard Worker 6071*6a54128fSAndroid Build Coastguard Worker 6072*6a54128fSAndroid Build Coastguard Worker 6073*6a54128fSAndroid Build Coastguard Worker 6074*6a54128fSAndroid Build Coastguard Worker 6075*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 6076*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_tool_prefix"; then 6077*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 6078*6a54128fSAndroid Build Coastguard Workerset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 6079*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6080*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 6081*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_PKG_CONFIG+y} 6082*6a54128fSAndroid Build Coastguard Workerthen : 6083*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 6084*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6085*6a54128fSAndroid Build Coastguard Worker case $PKG_CONFIG in 6086*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 6087*6a54128fSAndroid Build Coastguard Worker ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6088*6a54128fSAndroid Build Coastguard Worker ;; 6089*6a54128fSAndroid Build Coastguard Worker *) 6090*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6091*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 6092*6a54128fSAndroid Build Coastguard Workerdo 6093*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 6094*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 6095*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 6096*6a54128fSAndroid Build Coastguard Worker */) ;; 6097*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 6098*6a54128fSAndroid Build Coastguard Worker esac 6099*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 6100*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6101*6a54128fSAndroid Build Coastguard Worker ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6102*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6103*6a54128fSAndroid Build Coastguard Worker break 2 6104*6a54128fSAndroid Build Coastguard Worker fi 6105*6a54128fSAndroid Build Coastguard Workerdone 6106*6a54128fSAndroid Build Coastguard Worker done 6107*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 6108*6a54128fSAndroid Build Coastguard Worker 6109*6a54128fSAndroid Build Coastguard Worker ;; 6110*6a54128fSAndroid Build Coastguard Workeresac 6111*6a54128fSAndroid Build Coastguard Workerfi 6112*6a54128fSAndroid Build Coastguard WorkerPKG_CONFIG=$ac_cv_path_PKG_CONFIG 6113*6a54128fSAndroid Build Coastguard Workerif test -n "$PKG_CONFIG"; then 6114*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6115*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$PKG_CONFIG" >&6; } 6116*6a54128fSAndroid Build Coastguard Workerelse 6117*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6118*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 6119*6a54128fSAndroid Build Coastguard Workerfi 6120*6a54128fSAndroid Build Coastguard Worker 6121*6a54128fSAndroid Build Coastguard Worker 6122*6a54128fSAndroid Build Coastguard Workerfi 6123*6a54128fSAndroid Build Coastguard Workerif test -z "$ac_cv_path_PKG_CONFIG"; then 6124*6a54128fSAndroid Build Coastguard Worker ac_pt_PKG_CONFIG=$PKG_CONFIG 6125*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "pkg-config", so it can be a program name with args. 6126*6a54128fSAndroid Build Coastguard Workerset dummy pkg-config; ac_word=$2 6127*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6128*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 6129*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 6130*6a54128fSAndroid Build Coastguard Workerthen : 6131*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 6132*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6133*6a54128fSAndroid Build Coastguard Worker case $ac_pt_PKG_CONFIG in 6134*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 6135*6a54128fSAndroid Build Coastguard Worker ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6136*6a54128fSAndroid Build Coastguard Worker ;; 6137*6a54128fSAndroid Build Coastguard Worker *) 6138*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6139*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 6140*6a54128fSAndroid Build Coastguard Workerdo 6141*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 6142*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 6143*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 6144*6a54128fSAndroid Build Coastguard Worker */) ;; 6145*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 6146*6a54128fSAndroid Build Coastguard Worker esac 6147*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 6148*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6149*6a54128fSAndroid Build Coastguard Worker ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6150*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6151*6a54128fSAndroid Build Coastguard Worker break 2 6152*6a54128fSAndroid Build Coastguard Worker fi 6153*6a54128fSAndroid Build Coastguard Workerdone 6154*6a54128fSAndroid Build Coastguard Worker done 6155*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 6156*6a54128fSAndroid Build Coastguard Worker 6157*6a54128fSAndroid Build Coastguard Worker ;; 6158*6a54128fSAndroid Build Coastguard Workeresac 6159*6a54128fSAndroid Build Coastguard Workerfi 6160*6a54128fSAndroid Build Coastguard Workerac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6161*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_pt_PKG_CONFIG"; then 6162*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6163*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 6164*6a54128fSAndroid Build Coastguard Workerelse 6165*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6166*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 6167*6a54128fSAndroid Build Coastguard Workerfi 6168*6a54128fSAndroid Build Coastguard Worker 6169*6a54128fSAndroid Build Coastguard Worker if test "x$ac_pt_PKG_CONFIG" = x; then 6170*6a54128fSAndroid Build Coastguard Worker PKG_CONFIG="" 6171*6a54128fSAndroid Build Coastguard Worker else 6172*6a54128fSAndroid Build Coastguard Worker case $cross_compiling:$ac_tool_warned in 6173*6a54128fSAndroid Build Coastguard Workeryes:) 6174*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6175*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6176*6a54128fSAndroid Build Coastguard Workerac_tool_warned=yes ;; 6177*6a54128fSAndroid Build Coastguard Workeresac 6178*6a54128fSAndroid Build Coastguard Worker PKG_CONFIG=$ac_pt_PKG_CONFIG 6179*6a54128fSAndroid Build Coastguard Worker fi 6180*6a54128fSAndroid Build Coastguard Workerelse 6181*6a54128fSAndroid Build Coastguard Worker PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6182*6a54128fSAndroid Build Coastguard Workerfi 6183*6a54128fSAndroid Build Coastguard Worker 6184*6a54128fSAndroid Build Coastguard Workerfi 6185*6a54128fSAndroid Build Coastguard Workerif test -n "$PKG_CONFIG"; then 6186*6a54128fSAndroid Build Coastguard Worker _pkg_min_version=0.9.0 6187*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 6188*6a54128fSAndroid Build Coastguard Workerprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 6189*6a54128fSAndroid Build Coastguard Worker if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6190*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6191*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "yes" >&6; } 6192*6a54128fSAndroid Build Coastguard Worker else 6193*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6194*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 6195*6a54128fSAndroid Build Coastguard Worker PKG_CONFIG="" 6196*6a54128fSAndroid Build Coastguard Worker fi 6197*6a54128fSAndroid Build Coastguard Workerfi 6198*6a54128fSAndroid Build Coastguard WorkerLIBUUID= 6199*6a54128fSAndroid Build Coastguard WorkerDEPLIBUUID= 6200*6a54128fSAndroid Build Coastguard WorkerSTATIC_LIBUUID= 6201*6a54128fSAndroid Build Coastguard WorkerDEPSTATIC_LIBUUID= 6202*6a54128fSAndroid Build Coastguard WorkerPROFILED_LIBUUID= 6203*6a54128fSAndroid Build Coastguard WorkerDEPPROFILED_LIBUUID= 6204*6a54128fSAndroid Build Coastguard WorkerUUID_CMT= 6205*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-libuuid was given. 6206*6a54128fSAndroid Build Coastguard Workerif test ${enable_libuuid+y} 6207*6a54128fSAndroid Build Coastguard Workerthen : 6208*6a54128fSAndroid Build Coastguard Worker enableval=$enable_libuuid; if test "$enableval" = "no" 6209*6a54128fSAndroid Build Coastguard Workerthen 6210*6a54128fSAndroid Build Coastguard Worker if test -z "$PKG_CONFIG"; then 6211*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 6212*6a54128fSAndroid Build Coastguard Worker fi 6213*6a54128fSAndroid Build Coastguard Worker 6214*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 6215*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for uuid_generate in -luuid... " >&6; } 6216*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_uuid_uuid_generate+y} 6217*6a54128fSAndroid Build Coastguard Workerthen : 6218*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 6219*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6220*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 6221*6a54128fSAndroid Build Coastguard WorkerLIBS="-luuid $LIBS" 6222*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 6224*6a54128fSAndroid Build Coastguard Worker 6225*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 6226*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 6227*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 6228*6a54128fSAndroid Build Coastguard Workerchar uuid_generate (); 6229*6a54128fSAndroid Build Coastguard Workerint 6230*6a54128fSAndroid Build Coastguard Workermain (void) 6231*6a54128fSAndroid Build Coastguard Worker{ 6232*6a54128fSAndroid Build Coastguard Workerreturn uuid_generate (); 6233*6a54128fSAndroid Build Coastguard Worker ; 6234*6a54128fSAndroid Build Coastguard Worker return 0; 6235*6a54128fSAndroid Build Coastguard Worker} 6236*6a54128fSAndroid Build Coastguard Worker_ACEOF 6237*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 6238*6a54128fSAndroid Build Coastguard Workerthen : 6239*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_uuid_uuid_generate=yes 6240*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6241*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_uuid_uuid_generate=no 6242*6a54128fSAndroid Build Coastguard Workerfi 6243*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6244*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 6245*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 6246*6a54128fSAndroid Build Coastguard Workerfi 6247*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 6248*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; } 6249*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_uuid_uuid_generate" = xyes 6250*6a54128fSAndroid Build Coastguard Workerthen : 6251*6a54128fSAndroid Build Coastguard Worker LIBUUID=`$PKG_CONFIG --libs uuid`; 6252*6a54128fSAndroid Build Coastguard Worker STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` 6253*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6254*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "external uuid library not found" "$LINENO" 5 6255*6a54128fSAndroid Build Coastguard Workerfi 6256*6a54128fSAndroid Build Coastguard Worker 6257*6a54128fSAndroid Build Coastguard Worker PROFILED_LIBUUID=$LIBUUID 6258*6a54128fSAndroid Build Coastguard Worker UUID_CMT=# 6259*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 6260*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling private uuid library" >&6; } 6261*6a54128fSAndroid Build Coastguard Workerelse 6262*6a54128fSAndroid Build Coastguard Worker LIBUUID='$(LIB)/libuuid'$LIB_EXT 6263*6a54128fSAndroid Build Coastguard Worker DEPLIBUUID=$LIBUUID 6264*6a54128fSAndroid Build Coastguard Worker STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT 6265*6a54128fSAndroid Build Coastguard Worker DEPSTATIC_LIBUUID=$STATIC_LIBUUID 6266*6a54128fSAndroid Build Coastguard Worker PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT 6267*6a54128fSAndroid Build Coastguard Worker DEPPROFILED_LIBUUID=$PROFILED_LIBUUID 6268*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 6269*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling private uuid library" >&6; } 6270*6a54128fSAndroid Build Coastguard Workerfi 6271*6a54128fSAndroid Build Coastguard Worker 6272*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6273*6a54128fSAndroid Build Coastguard Worker if test -n "$PKG_CONFIG"; then 6274*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 6275*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for uuid_generate in -luuid... " >&6; } 6276*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_uuid_uuid_generate+y} 6277*6a54128fSAndroid Build Coastguard Workerthen : 6278*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 6279*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6280*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 6281*6a54128fSAndroid Build Coastguard WorkerLIBS="-luuid $LIBS" 6282*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 6283*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 6284*6a54128fSAndroid Build Coastguard Worker 6285*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 6286*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 6287*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 6288*6a54128fSAndroid Build Coastguard Workerchar uuid_generate (); 6289*6a54128fSAndroid Build Coastguard Workerint 6290*6a54128fSAndroid Build Coastguard Workermain (void) 6291*6a54128fSAndroid Build Coastguard Worker{ 6292*6a54128fSAndroid Build Coastguard Workerreturn uuid_generate (); 6293*6a54128fSAndroid Build Coastguard Worker ; 6294*6a54128fSAndroid Build Coastguard Worker return 0; 6295*6a54128fSAndroid Build Coastguard Worker} 6296*6a54128fSAndroid Build Coastguard Worker_ACEOF 6297*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 6298*6a54128fSAndroid Build Coastguard Workerthen : 6299*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_uuid_uuid_generate=yes 6300*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6301*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_uuid_uuid_generate=no 6302*6a54128fSAndroid Build Coastguard Workerfi 6303*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6304*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 6305*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 6306*6a54128fSAndroid Build Coastguard Workerfi 6307*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 6308*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; } 6309*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_uuid_uuid_generate" = xyes 6310*6a54128fSAndroid Build Coastguard Workerthen : 6311*6a54128fSAndroid Build Coastguard Worker LIBUUID=`$PKG_CONFIG --libs uuid`; 6312*6a54128fSAndroid Build Coastguard Worker STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` 6313*6a54128fSAndroid Build Coastguard Workerfi 6314*6a54128fSAndroid Build Coastguard Worker 6315*6a54128fSAndroid Build Coastguard Workerfi 6316*6a54128fSAndroid Build Coastguard Workerif test -n "$LIBUUID"; then 6317*6a54128fSAndroid Build Coastguard Worker PROFILED_LIBUUID=$LIBUUID 6318*6a54128fSAndroid Build Coastguard Worker UUID_CMT=# 6319*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5 6320*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Using system uuid by default" >&6; } 6321*6a54128fSAndroid Build Coastguard Workerelse 6322*6a54128fSAndroid Build Coastguard Worker LIBUUID='$(LIB)/libuuid'$LIB_EXT 6323*6a54128fSAndroid Build Coastguard Worker DEPLIBUUID=$LIBUUID 6324*6a54128fSAndroid Build Coastguard Worker STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT 6325*6a54128fSAndroid Build Coastguard Worker DEPSTATIC_LIBUUID=$STATIC_LIBUUID 6326*6a54128fSAndroid Build Coastguard Worker PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT 6327*6a54128fSAndroid Build Coastguard Worker DEPPROFILED_LIBUUID=$PROFILED_LIBUUID 6328*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 6329*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling private uuid library by default" >&6; } 6330*6a54128fSAndroid Build Coastguard Workerfi 6331*6a54128fSAndroid Build Coastguard Worker 6332*6a54128fSAndroid Build Coastguard Workerfi 6333*6a54128fSAndroid Build Coastguard Worker 6334*6a54128fSAndroid Build Coastguard Worker 6335*6a54128fSAndroid Build Coastguard Worker 6336*6a54128fSAndroid Build Coastguard Worker 6337*6a54128fSAndroid Build Coastguard Worker 6338*6a54128fSAndroid Build Coastguard Worker 6339*6a54128fSAndroid Build Coastguard Worker 6340*6a54128fSAndroid Build Coastguard Worker 6341*6a54128fSAndroid Build Coastguard Worker 6342*6a54128fSAndroid Build Coastguard Worker 6343*6a54128fSAndroid Build Coastguard Worker 6344*6a54128fSAndroid Build Coastguard Worker 6345*6a54128fSAndroid Build Coastguard Worker 6346*6a54128fSAndroid Build Coastguard Worker 6347*6a54128fSAndroid Build Coastguard Worker 6348*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 6349*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_tool_prefix"; then 6350*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 6351*6a54128fSAndroid Build Coastguard Workerset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 6352*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6353*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 6354*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_PKG_CONFIG+y} 6355*6a54128fSAndroid Build Coastguard Workerthen : 6356*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 6357*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6358*6a54128fSAndroid Build Coastguard Worker case $PKG_CONFIG in 6359*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 6360*6a54128fSAndroid Build Coastguard Worker ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6361*6a54128fSAndroid Build Coastguard Worker ;; 6362*6a54128fSAndroid Build Coastguard Worker *) 6363*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6364*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 6365*6a54128fSAndroid Build Coastguard Workerdo 6366*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 6367*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 6368*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 6369*6a54128fSAndroid Build Coastguard Worker */) ;; 6370*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 6371*6a54128fSAndroid Build Coastguard Worker esac 6372*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 6373*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6374*6a54128fSAndroid Build Coastguard Worker ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6375*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6376*6a54128fSAndroid Build Coastguard Worker break 2 6377*6a54128fSAndroid Build Coastguard Worker fi 6378*6a54128fSAndroid Build Coastguard Workerdone 6379*6a54128fSAndroid Build Coastguard Worker done 6380*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 6381*6a54128fSAndroid Build Coastguard Worker 6382*6a54128fSAndroid Build Coastguard Worker ;; 6383*6a54128fSAndroid Build Coastguard Workeresac 6384*6a54128fSAndroid Build Coastguard Workerfi 6385*6a54128fSAndroid Build Coastguard WorkerPKG_CONFIG=$ac_cv_path_PKG_CONFIG 6386*6a54128fSAndroid Build Coastguard Workerif test -n "$PKG_CONFIG"; then 6387*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6388*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$PKG_CONFIG" >&6; } 6389*6a54128fSAndroid Build Coastguard Workerelse 6390*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6391*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 6392*6a54128fSAndroid Build Coastguard Workerfi 6393*6a54128fSAndroid Build Coastguard Worker 6394*6a54128fSAndroid Build Coastguard Worker 6395*6a54128fSAndroid Build Coastguard Workerfi 6396*6a54128fSAndroid Build Coastguard Workerif test -z "$ac_cv_path_PKG_CONFIG"; then 6397*6a54128fSAndroid Build Coastguard Worker ac_pt_PKG_CONFIG=$PKG_CONFIG 6398*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "pkg-config", so it can be a program name with args. 6399*6a54128fSAndroid Build Coastguard Workerset dummy pkg-config; ac_word=$2 6400*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6401*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 6402*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 6403*6a54128fSAndroid Build Coastguard Workerthen : 6404*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 6405*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6406*6a54128fSAndroid Build Coastguard Worker case $ac_pt_PKG_CONFIG in 6407*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 6408*6a54128fSAndroid Build Coastguard Worker ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6409*6a54128fSAndroid Build Coastguard Worker ;; 6410*6a54128fSAndroid Build Coastguard Worker *) 6411*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6412*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 6413*6a54128fSAndroid Build Coastguard Workerdo 6414*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 6415*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 6416*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 6417*6a54128fSAndroid Build Coastguard Worker */) ;; 6418*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 6419*6a54128fSAndroid Build Coastguard Worker esac 6420*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 6421*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6422*6a54128fSAndroid Build Coastguard Worker ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6423*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6424*6a54128fSAndroid Build Coastguard Worker break 2 6425*6a54128fSAndroid Build Coastguard Worker fi 6426*6a54128fSAndroid Build Coastguard Workerdone 6427*6a54128fSAndroid Build Coastguard Worker done 6428*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 6429*6a54128fSAndroid Build Coastguard Worker 6430*6a54128fSAndroid Build Coastguard Worker ;; 6431*6a54128fSAndroid Build Coastguard Workeresac 6432*6a54128fSAndroid Build Coastguard Workerfi 6433*6a54128fSAndroid Build Coastguard Workerac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6434*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_pt_PKG_CONFIG"; then 6435*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6436*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 6437*6a54128fSAndroid Build Coastguard Workerelse 6438*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6439*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 6440*6a54128fSAndroid Build Coastguard Workerfi 6441*6a54128fSAndroid Build Coastguard Worker 6442*6a54128fSAndroid Build Coastguard Worker if test "x$ac_pt_PKG_CONFIG" = x; then 6443*6a54128fSAndroid Build Coastguard Worker PKG_CONFIG="" 6444*6a54128fSAndroid Build Coastguard Worker else 6445*6a54128fSAndroid Build Coastguard Worker case $cross_compiling:$ac_tool_warned in 6446*6a54128fSAndroid Build Coastguard Workeryes:) 6447*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6448*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6449*6a54128fSAndroid Build Coastguard Workerac_tool_warned=yes ;; 6450*6a54128fSAndroid Build Coastguard Workeresac 6451*6a54128fSAndroid Build Coastguard Worker PKG_CONFIG=$ac_pt_PKG_CONFIG 6452*6a54128fSAndroid Build Coastguard Worker fi 6453*6a54128fSAndroid Build Coastguard Workerelse 6454*6a54128fSAndroid Build Coastguard Worker PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6455*6a54128fSAndroid Build Coastguard Workerfi 6456*6a54128fSAndroid Build Coastguard Worker 6457*6a54128fSAndroid Build Coastguard Workerfi 6458*6a54128fSAndroid Build Coastguard Workerif test -n "$PKG_CONFIG"; then 6459*6a54128fSAndroid Build Coastguard Worker _pkg_min_version=0.9.0 6460*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 6461*6a54128fSAndroid Build Coastguard Workerprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 6462*6a54128fSAndroid Build Coastguard Worker if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6463*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6464*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "yes" >&6; } 6465*6a54128fSAndroid Build Coastguard Worker else 6466*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6467*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 6468*6a54128fSAndroid Build Coastguard Worker PKG_CONFIG="" 6469*6a54128fSAndroid Build Coastguard Worker fi 6470*6a54128fSAndroid Build Coastguard Workerfi 6471*6a54128fSAndroid Build Coastguard WorkerLIBBLKID= 6472*6a54128fSAndroid Build Coastguard WorkerDEPLIBBLKID= 6473*6a54128fSAndroid Build Coastguard WorkerSTATIC_LIBBLKID= 6474*6a54128fSAndroid Build Coastguard WorkerDEPSTATIC_LIBBLKID= 6475*6a54128fSAndroid Build Coastguard WorkerPROFILED_LIBBLKID= 6476*6a54128fSAndroid Build Coastguard WorkerDEPPROFILED_LIBBLKID= 6477*6a54128fSAndroid Build Coastguard WorkerBLKID_CMT= 6478*6a54128fSAndroid Build Coastguard Worker 6479*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-libblkid was given. 6480*6a54128fSAndroid Build Coastguard Workerif test ${enable_libblkid+y} 6481*6a54128fSAndroid Build Coastguard Workerthen : 6482*6a54128fSAndroid Build Coastguard Worker enableval=$enable_libblkid; if test "$enableval" = "no" 6483*6a54128fSAndroid Build Coastguard Workerthen 6484*6a54128fSAndroid Build Coastguard Worker if test -z "$PKG_CONFIG"; then 6485*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 6486*6a54128fSAndroid Build Coastguard Worker fi 6487*6a54128fSAndroid Build Coastguard Worker 6488*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 6489*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for blkid_get_cache in -lblkid... " >&6; } 6490*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_blkid_blkid_get_cache+y} 6491*6a54128fSAndroid Build Coastguard Workerthen : 6492*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 6493*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6494*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 6495*6a54128fSAndroid Build Coastguard WorkerLIBS="-lblkid -luuid $LIBS" 6496*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 6497*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 6498*6a54128fSAndroid Build Coastguard Worker 6499*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 6500*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 6501*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 6502*6a54128fSAndroid Build Coastguard Workerchar blkid_get_cache (); 6503*6a54128fSAndroid Build Coastguard Workerint 6504*6a54128fSAndroid Build Coastguard Workermain (void) 6505*6a54128fSAndroid Build Coastguard Worker{ 6506*6a54128fSAndroid Build Coastguard Workerreturn blkid_get_cache (); 6507*6a54128fSAndroid Build Coastguard Worker ; 6508*6a54128fSAndroid Build Coastguard Worker return 0; 6509*6a54128fSAndroid Build Coastguard Worker} 6510*6a54128fSAndroid Build Coastguard Worker_ACEOF 6511*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 6512*6a54128fSAndroid Build Coastguard Workerthen : 6513*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_blkid_blkid_get_cache=yes 6514*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6515*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_blkid_blkid_get_cache=no 6516*6a54128fSAndroid Build Coastguard Workerfi 6517*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6518*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 6519*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 6520*6a54128fSAndroid Build Coastguard Workerfi 6521*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 6522*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; } 6523*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes 6524*6a54128fSAndroid Build Coastguard Workerthen : 6525*6a54128fSAndroid Build Coastguard Worker LIBBLKID=`$PKG_CONFIG --libs blkid`; 6526*6a54128fSAndroid Build Coastguard Worker STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` 6527*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6528*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "external blkid library not found" "$LINENO" 5 6529*6a54128fSAndroid Build Coastguard Workerfi 6530*6a54128fSAndroid Build Coastguard Worker 6531*6a54128fSAndroid Build Coastguard Worker BLKID_CMT=# 6532*6a54128fSAndroid Build Coastguard Worker PROFILED_LIBBLKID=$LIBBLKID 6533*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 6534*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling private blkid library" >&6; } 6535*6a54128fSAndroid Build Coastguard Workerelse 6536*6a54128fSAndroid Build Coastguard Worker LIBBLKID='$(LIB)/libblkid'$LIB_EXT 6537*6a54128fSAndroid Build Coastguard Worker DEPLIBBLKID=$LIBBLKID 6538*6a54128fSAndroid Build Coastguard Worker STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT 6539*6a54128fSAndroid Build Coastguard Worker DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID 6540*6a54128fSAndroid Build Coastguard Worker PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT 6541*6a54128fSAndroid Build Coastguard Worker DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID 6542*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h 6543*6a54128fSAndroid Build Coastguard Worker 6544*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 6545*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling private blkid library" >&6; } 6546*6a54128fSAndroid Build Coastguard Workerfi 6547*6a54128fSAndroid Build Coastguard Worker 6548*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6549*6a54128fSAndroid Build Coastguard Worker if test -n "$PKG_CONFIG"; then 6550*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 6551*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for blkid_get_cache in -lblkid... " >&6; } 6552*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_blkid_blkid_get_cache+y} 6553*6a54128fSAndroid Build Coastguard Workerthen : 6554*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 6555*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6556*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 6557*6a54128fSAndroid Build Coastguard WorkerLIBS="-lblkid $LIBS" 6558*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 6560*6a54128fSAndroid Build Coastguard Worker 6561*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 6562*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 6563*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 6564*6a54128fSAndroid Build Coastguard Workerchar blkid_get_cache (); 6565*6a54128fSAndroid Build Coastguard Workerint 6566*6a54128fSAndroid Build Coastguard Workermain (void) 6567*6a54128fSAndroid Build Coastguard Worker{ 6568*6a54128fSAndroid Build Coastguard Workerreturn blkid_get_cache (); 6569*6a54128fSAndroid Build Coastguard Worker ; 6570*6a54128fSAndroid Build Coastguard Worker return 0; 6571*6a54128fSAndroid Build Coastguard Worker} 6572*6a54128fSAndroid Build Coastguard Worker_ACEOF 6573*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 6574*6a54128fSAndroid Build Coastguard Workerthen : 6575*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_blkid_blkid_get_cache=yes 6576*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6577*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_blkid_blkid_get_cache=no 6578*6a54128fSAndroid Build Coastguard Workerfi 6579*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6580*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 6581*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 6582*6a54128fSAndroid Build Coastguard Workerfi 6583*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 6584*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; } 6585*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes 6586*6a54128fSAndroid Build Coastguard Workerthen : 6587*6a54128fSAndroid Build Coastguard Worker LIBBLKID=`$PKG_CONFIG --libs blkid`; 6588*6a54128fSAndroid Build Coastguard Worker STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` 6589*6a54128fSAndroid Build Coastguard Workerfi 6590*6a54128fSAndroid Build Coastguard Worker 6591*6a54128fSAndroid Build Coastguard Workerfi 6592*6a54128fSAndroid Build Coastguard Workerif test -n "$LIBBLKID"; then 6593*6a54128fSAndroid Build Coastguard Worker BLKID_CMT=# 6594*6a54128fSAndroid Build Coastguard Worker PROFILED_LIBBLKID=$LIBBLKID 6595*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5 6596*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Using system blkid library by default" >&6; } 6597*6a54128fSAndroid Build Coastguard Workerelse 6598*6a54128fSAndroid Build Coastguard Worker LIBBLKID='$(LIB)/libblkid'$LIB_EXT 6599*6a54128fSAndroid Build Coastguard Worker DEPLIBBLKID=$LIBBLKID 6600*6a54128fSAndroid Build Coastguard Worker STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT 6601*6a54128fSAndroid Build Coastguard Worker DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID 6602*6a54128fSAndroid Build Coastguard Worker PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT 6603*6a54128fSAndroid Build Coastguard Worker DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID 6604*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h 6605*6a54128fSAndroid Build Coastguard Worker 6606*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 6607*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling private blkid library by default" >&6; } 6608*6a54128fSAndroid Build Coastguard Workerfi 6609*6a54128fSAndroid Build Coastguard Worker 6610*6a54128fSAndroid Build Coastguard Workerfi 6611*6a54128fSAndroid Build Coastguard Worker 6612*6a54128fSAndroid Build Coastguard Worker 6613*6a54128fSAndroid Build Coastguard Worker 6614*6a54128fSAndroid Build Coastguard Worker 6615*6a54128fSAndroid Build Coastguard Worker 6616*6a54128fSAndroid Build Coastguard Worker 6617*6a54128fSAndroid Build Coastguard Worker 6618*6a54128fSAndroid Build Coastguard Worker 6619*6a54128fSAndroid Build Coastguard WorkerALL_CMT= 6620*6a54128fSAndroid Build Coastguard WorkerSUBSET_CMT= 6621*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-subset was given. 6622*6a54128fSAndroid Build Coastguard Workerif test ${enable_subset+y} 6623*6a54128fSAndroid Build Coastguard Workerthen : 6624*6a54128fSAndroid Build Coastguard Worker enableval=$enable_subset; if test "$enableval" = "no" 6625*6a54128fSAndroid Build Coastguard Workerthen 6626*6a54128fSAndroid Build Coastguard Worker SUBSET_CMT=# 6627*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5 6628*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling subset-only build" >&6; } 6629*6a54128fSAndroid Build Coastguard Workerelse 6630*6a54128fSAndroid Build Coastguard Worker ALL_CMT=# 6631*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5 6632*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling subset-only-build" >&6; } 6633*6a54128fSAndroid Build Coastguard Workerfi 6634*6a54128fSAndroid Build Coastguard Worker 6635*6a54128fSAndroid Build Coastguard Workerfi 6636*6a54128fSAndroid Build Coastguard Worker 6637*6a54128fSAndroid Build Coastguard Worker 6638*6a54128fSAndroid Build Coastguard Worker 6639*6a54128fSAndroid Build Coastguard Worker 6640*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-backtrace was given. 6641*6a54128fSAndroid Build Coastguard Workerif test ${enable_backtrace+y} 6642*6a54128fSAndroid Build Coastguard Workerthen : 6643*6a54128fSAndroid Build Coastguard Worker enableval=$enable_backtrace; if test "$enableval" = "no" 6644*6a54128fSAndroid Build Coastguard Workerthen 6645*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 6646*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling use of backtrace" >&6; } 6647*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h 6648*6a54128fSAndroid Build Coastguard Worker 6649*6a54128fSAndroid Build Coastguard Workerelse 6650*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 6651*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling use of backtrace" >&6; } 6652*6a54128fSAndroid Build Coastguard Workerfi 6653*6a54128fSAndroid Build Coastguard Worker 6654*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6655*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 6656*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling use of backtrace by default" >&6; } 6657*6a54128fSAndroid Build Coastguard Worker 6658*6a54128fSAndroid Build Coastguard Workerfi 6659*6a54128fSAndroid Build Coastguard Worker 6660*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-debugfs was given. 6661*6a54128fSAndroid Build Coastguard Workerif test ${enable_debugfs+y} 6662*6a54128fSAndroid Build Coastguard Workerthen : 6663*6a54128fSAndroid Build Coastguard Worker enableval=$enable_debugfs; if test "$enableval" = "no" 6664*6a54128fSAndroid Build Coastguard Workerthen 6665*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 6666*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling debugfs support" >&6; } 6667*6a54128fSAndroid Build Coastguard Worker DEBUGFS_CMT="#" 6668*6a54128fSAndroid Build Coastguard Workerelse 6669*6a54128fSAndroid Build Coastguard Worker DEBUGFS_CMT= 6670*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 6671*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling debugfs support" >&6; } 6672*6a54128fSAndroid Build Coastguard Workerfi 6673*6a54128fSAndroid Build Coastguard Worker 6674*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6675*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 6676*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling debugfs support by default" >&6; } 6677*6a54128fSAndroid Build Coastguard WorkerDEBUGFS_CMT= 6678*6a54128fSAndroid Build Coastguard Worker 6679*6a54128fSAndroid Build Coastguard Workerfi 6680*6a54128fSAndroid Build Coastguard Worker 6681*6a54128fSAndroid Build Coastguard Worker 6682*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-imager was given. 6683*6a54128fSAndroid Build Coastguard Workerif test ${enable_imager+y} 6684*6a54128fSAndroid Build Coastguard Workerthen : 6685*6a54128fSAndroid Build Coastguard Worker enableval=$enable_imager; if test "$enableval" = "no" 6686*6a54128fSAndroid Build Coastguard Workerthen 6687*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 6688*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling e2image support" >&6; } 6689*6a54128fSAndroid Build Coastguard Worker IMAGER_CMT="#" 6690*6a54128fSAndroid Build Coastguard Workerelse 6691*6a54128fSAndroid Build Coastguard Worker IMAGER_CMT= 6692*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 6693*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling e2image support" >&6; } 6694*6a54128fSAndroid Build Coastguard Workerfi 6695*6a54128fSAndroid Build Coastguard Worker 6696*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6697*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 6698*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling e2image support by default" >&6; } 6699*6a54128fSAndroid Build Coastguard WorkerIMAGER_CMT= 6700*6a54128fSAndroid Build Coastguard Worker 6701*6a54128fSAndroid Build Coastguard Workerfi 6702*6a54128fSAndroid Build Coastguard Worker 6703*6a54128fSAndroid Build Coastguard Worker 6704*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-resizer was given. 6705*6a54128fSAndroid Build Coastguard Workerif test ${enable_resizer+y} 6706*6a54128fSAndroid Build Coastguard Workerthen : 6707*6a54128fSAndroid Build Coastguard Worker enableval=$enable_resizer; if test "$enableval" = "no" 6708*6a54128fSAndroid Build Coastguard Workerthen 6709*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 6710*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling e2resize support" >&6; } 6711*6a54128fSAndroid Build Coastguard Worker RESIZER_CMT="#" 6712*6a54128fSAndroid Build Coastguard Workerelse 6713*6a54128fSAndroid Build Coastguard Worker RESIZER_CMT= 6714*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 6715*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling e2resize support" >&6; } 6716*6a54128fSAndroid Build Coastguard Workerfi 6717*6a54128fSAndroid Build Coastguard Worker 6718*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6719*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 6720*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling e2resize support by default" >&6; } 6721*6a54128fSAndroid Build Coastguard WorkerRESIZER_CMT= 6722*6a54128fSAndroid Build Coastguard Worker 6723*6a54128fSAndroid Build Coastguard Workerfi 6724*6a54128fSAndroid Build Coastguard Worker 6725*6a54128fSAndroid Build Coastguard Worker 6726*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-defrag was given. 6727*6a54128fSAndroid Build Coastguard Workerif test ${enable_defrag+y} 6728*6a54128fSAndroid Build Coastguard Workerthen : 6729*6a54128fSAndroid Build Coastguard Worker enableval=$enable_defrag; if test "$enableval" = "no" 6730*6a54128fSAndroid Build Coastguard Workerthen 6731*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 6732*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling e4defrag support" >&6; } 6733*6a54128fSAndroid Build Coastguard Worker DEFRAG_CMT="#" 6734*6a54128fSAndroid Build Coastguard Workerelse 6735*6a54128fSAndroid Build Coastguard Worker DEFRAG_CMT= 6736*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 6737*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling e4defrag support" >&6; } 6738*6a54128fSAndroid Build Coastguard Workerfi 6739*6a54128fSAndroid Build Coastguard Worker 6740*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6741*6a54128fSAndroid Build Coastguard Worker if test -z "$WITH_DIET_LIBC" 6742*6a54128fSAndroid Build Coastguard Workerthen 6743*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 6744*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling e4defrag support by default" >&6; } 6745*6a54128fSAndroid Build Coastguard Worker DEFRAG_CMT= 6746*6a54128fSAndroid Build Coastguard Workerelse 6747*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5 6748*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling e4defrag support by default" >&6; } 6749*6a54128fSAndroid Build Coastguard Worker DEFRAG_CMT="#" 6750*6a54128fSAndroid Build Coastguard Workerfi 6751*6a54128fSAndroid Build Coastguard Worker 6752*6a54128fSAndroid Build Coastguard Workerfi 6753*6a54128fSAndroid Build Coastguard Worker 6754*6a54128fSAndroid Build Coastguard Worker 6755*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-fsck was given. 6756*6a54128fSAndroid Build Coastguard Workerif test ${enable_fsck+y} 6757*6a54128fSAndroid Build Coastguard Workerthen : 6758*6a54128fSAndroid Build Coastguard Worker enableval=$enable_fsck; if test "$enableval" = "no" 6759*6a54128fSAndroid Build Coastguard Workerthen 6760*6a54128fSAndroid Build Coastguard Worker FSCK_PROG='' FSCK_MAN='' 6761*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 6762*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Not building fsck wrapper" >&6; } 6763*6a54128fSAndroid Build Coastguard Workerelse 6764*6a54128fSAndroid Build Coastguard Worker FSCK_PROG=fsck FSCK_MAN=fsck.8 6765*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 6766*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Building fsck wrapper" >&6; } 6767*6a54128fSAndroid Build Coastguard Workerfi 6768*6a54128fSAndroid Build Coastguard Worker 6769*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6770*6a54128fSAndroid Build Coastguard Worker case "$host_os" in 6771*6a54128fSAndroid Build Coastguard Worker gnu*) 6772*6a54128fSAndroid Build Coastguard Worker FSCK_PROG='' FSCK_MAN='' 6773*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 6774*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Not building fsck wrapper by default" >&6; } 6775*6a54128fSAndroid Build Coastguard Worker ;; 6776*6a54128fSAndroid Build Coastguard Worker *) 6777*6a54128fSAndroid Build Coastguard Worker FSCK_PROG=fsck FSCK_MAN=fsck.8 6778*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 6779*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Building fsck wrapper by default" >&6; } 6780*6a54128fSAndroid Build Coastguard Workeresac 6781*6a54128fSAndroid Build Coastguard Worker 6782*6a54128fSAndroid Build Coastguard Workerfi 6783*6a54128fSAndroid Build Coastguard Worker 6784*6a54128fSAndroid Build Coastguard Worker 6785*6a54128fSAndroid Build Coastguard Worker 6786*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-e2initrd-helper was given. 6787*6a54128fSAndroid Build Coastguard Workerif test ${enable_e2initrd_helper+y} 6788*6a54128fSAndroid Build Coastguard Workerthen : 6789*6a54128fSAndroid Build Coastguard Worker enableval=$enable_e2initrd_helper; if test "$enableval" = "no" 6790*6a54128fSAndroid Build Coastguard Workerthen 6791*6a54128fSAndroid Build Coastguard Worker E2INITRD_PROG='' E2INITRD_MAN='' 6792*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 6793*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Not building e2initrd helper" >&6; } 6794*6a54128fSAndroid Build Coastguard Workerelse 6795*6a54128fSAndroid Build Coastguard Worker E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 6796*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 6797*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Building e2initrd helper" >&6; } 6798*6a54128fSAndroid Build Coastguard Workerfi 6799*6a54128fSAndroid Build Coastguard Worker 6800*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6801*6a54128fSAndroid Build Coastguard Worker E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 6802*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 6803*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Building e2initrd helper by default" >&6; } 6804*6a54128fSAndroid Build Coastguard Worker 6805*6a54128fSAndroid Build Coastguard Workerfi 6806*6a54128fSAndroid Build Coastguard Worker 6807*6a54128fSAndroid Build Coastguard Worker 6808*6a54128fSAndroid Build Coastguard Worker 6809*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-tls was given. 6810*6a54128fSAndroid Build Coastguard Workerif test ${enable_tls+y} 6811*6a54128fSAndroid Build Coastguard Workerthen : 6812*6a54128fSAndroid Build Coastguard Worker enableval=$enable_tls; if test "$enableval" = "no" 6813*6a54128fSAndroid Build Coastguard Workerthen 6814*6a54128fSAndroid Build Coastguard Worker try_tls="" 6815*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 6816*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling thread local support" >&6; } 6817*6a54128fSAndroid Build Coastguard Workerelse 6818*6a54128fSAndroid Build Coastguard Worker try_tls="yes" 6819*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 6820*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling thread local support" >&6; } 6821*6a54128fSAndroid Build Coastguard Workerfi 6822*6a54128fSAndroid Build Coastguard Worker 6823*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6824*6a54128fSAndroid Build Coastguard Worker if test -n "$WITH_DIET_LIBC" 6825*6a54128fSAndroid Build Coastguard Workerthen 6826*6a54128fSAndroid Build Coastguard Worker try_tls="" 6827*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 6828*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Diet libc does not support thread local support" >&6; } 6829*6a54128fSAndroid Build Coastguard Workerelse 6830*6a54128fSAndroid Build Coastguard Worker try_tls="yes" 6831*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 6832*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Try using thread local support by default" >&6; } 6833*6a54128fSAndroid Build Coastguard Workerfi 6834*6a54128fSAndroid Build Coastguard Worker 6835*6a54128fSAndroid Build Coastguard Workerfi 6836*6a54128fSAndroid Build Coastguard Worker 6837*6a54128fSAndroid Build Coastguard Workerif test "$try_tls" = "yes" 6838*6a54128fSAndroid Build Coastguard Workerthen 6839*6a54128fSAndroid Build Coastguard Worker 6840*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 6841*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for thread local storage (TLS) class... " >&6; } 6842*6a54128fSAndroid Build Coastguard Worker if test ${ac_cv_tls+y} 6843*6a54128fSAndroid Build Coastguard Workerthen : 6844*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 6845*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6846*6a54128fSAndroid Build Coastguard Worker 6847*6a54128fSAndroid Build Coastguard Worker ax_tls_keywords="__thread __declspec(thread) none" 6848*6a54128fSAndroid Build Coastguard Worker for ax_tls_keyword in $ax_tls_keywords; do 6849*6a54128fSAndroid Build Coastguard Worker case $ax_tls_keyword in 6850*6a54128fSAndroid Build Coastguard Worker none) ac_cv_tls=none ; break ;; 6851*6a54128fSAndroid Build Coastguard Worker *) 6852*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6853*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 6854*6a54128fSAndroid Build Coastguard Worker#include <stdlib.h> 6855*6a54128fSAndroid Build Coastguard Worker static void 6856*6a54128fSAndroid Build Coastguard Worker foo(void) { 6857*6a54128fSAndroid Build Coastguard Worker static $ax_tls_keyword int bar; 6858*6a54128fSAndroid Build Coastguard Worker exit(1); 6859*6a54128fSAndroid Build Coastguard Worker } 6860*6a54128fSAndroid Build Coastguard Workerint 6861*6a54128fSAndroid Build Coastguard Workermain (void) 6862*6a54128fSAndroid Build Coastguard Worker{ 6863*6a54128fSAndroid Build Coastguard Worker 6864*6a54128fSAndroid Build Coastguard Worker ; 6865*6a54128fSAndroid Build Coastguard Worker return 0; 6866*6a54128fSAndroid Build Coastguard Worker} 6867*6a54128fSAndroid Build Coastguard Worker_ACEOF 6868*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 6869*6a54128fSAndroid Build Coastguard Workerthen : 6870*6a54128fSAndroid Build Coastguard Worker ac_cv_tls=$ax_tls_keyword ; break 6871*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6872*6a54128fSAndroid Build Coastguard Worker ac_cv_tls=none 6873*6a54128fSAndroid Build Coastguard Worker 6874*6a54128fSAndroid Build Coastguard Workerfi 6875*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6876*6a54128fSAndroid Build Coastguard Worker esac 6877*6a54128fSAndroid Build Coastguard Worker done 6878*6a54128fSAndroid Build Coastguard Worker 6879*6a54128fSAndroid Build Coastguard Workerfi 6880*6a54128fSAndroid Build Coastguard Worker 6881*6a54128fSAndroid Build Coastguard Worker 6882*6a54128fSAndroid Build Coastguard Worker if test "$ac_cv_tls" != "none"; then 6883*6a54128fSAndroid Build Coastguard Worker 6884*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h 6885*6a54128fSAndroid Build Coastguard Worker 6886*6a54128fSAndroid Build Coastguard Worker fi 6887*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 6888*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_tls" >&6; } 6889*6a54128fSAndroid Build Coastguard Worker 6890*6a54128fSAndroid Build Coastguard Workerfi 6891*6a54128fSAndroid Build Coastguard Worker 6892*6a54128fSAndroid Build Coastguard Worker# Check whether --with-pthread was given. 6893*6a54128fSAndroid Build Coastguard Workerif test ${with_pthread+y} 6894*6a54128fSAndroid Build Coastguard Workerthen : 6895*6a54128fSAndroid Build Coastguard Worker withval=$with_pthread; if test "$withval" = "no" 6896*6a54128fSAndroid Build Coastguard Workerthen 6897*6a54128fSAndroid Build Coastguard Worker try_pthread="" 6898*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5 6899*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling pthread support" >&6; } 6900*6a54128fSAndroid Build Coastguard Workerelse 6901*6a54128fSAndroid Build Coastguard Worker try_pthread="yes" 6902*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5 6903*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Testing for pthread support" >&6; } 6904*6a54128fSAndroid Build Coastguard Workerfi 6905*6a54128fSAndroid Build Coastguard Worker 6906*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6907*6a54128fSAndroid Build Coastguard Worker try_pthread="yes" 6908*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5 6909*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Try testing for pthread support by default" >&6; } 6910*6a54128fSAndroid Build Coastguard Worker 6911*6a54128fSAndroid Build Coastguard Workerfi 6912*6a54128fSAndroid Build Coastguard Worker 6913*6a54128fSAndroid Build Coastguard Workerif test "$try_pthread" = "yes" 6914*6a54128fSAndroid Build Coastguard Workerthen 6915*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6916*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for a sed that does not truncate output... " >&6; } 6917*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_SED+y} 6918*6a54128fSAndroid Build Coastguard Workerthen : 6919*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 6920*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6921*6a54128fSAndroid Build Coastguard Worker ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6922*6a54128fSAndroid Build Coastguard Worker for ac_i in 1 2 3 4 5 6 7; do 6923*6a54128fSAndroid Build Coastguard Worker ac_script="$ac_script$as_nl$ac_script" 6924*6a54128fSAndroid Build Coastguard Worker done 6925*6a54128fSAndroid Build Coastguard Worker echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6926*6a54128fSAndroid Build Coastguard Worker { ac_script=; unset ac_script;} 6927*6a54128fSAndroid Build Coastguard Worker if test -z "$SED"; then 6928*6a54128fSAndroid Build Coastguard Worker ac_path_SED_found=false 6929*6a54128fSAndroid Build Coastguard Worker # Loop through the user's path and test for each of PROGNAME-LIST 6930*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6931*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 6932*6a54128fSAndroid Build Coastguard Workerdo 6933*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 6934*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 6935*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 6936*6a54128fSAndroid Build Coastguard Worker */) ;; 6937*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 6938*6a54128fSAndroid Build Coastguard Worker esac 6939*6a54128fSAndroid Build Coastguard Worker for ac_prog in sed gsed 6940*6a54128fSAndroid Build Coastguard Worker do 6941*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 6942*6a54128fSAndroid Build Coastguard Worker ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 6943*6a54128fSAndroid Build Coastguard Worker as_fn_executable_p "$ac_path_SED" || continue 6944*6a54128fSAndroid Build Coastguard Worker# Check for GNU ac_path_SED and select it if it is found. 6945*6a54128fSAndroid Build Coastguard Worker # Check for GNU $ac_path_SED 6946*6a54128fSAndroid Build Coastguard Workercase `"$ac_path_SED" --version 2>&1` in 6947*6a54128fSAndroid Build Coastguard Worker*GNU*) 6948*6a54128fSAndroid Build Coastguard Worker ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6949*6a54128fSAndroid Build Coastguard Worker*) 6950*6a54128fSAndroid Build Coastguard Worker ac_count=0 6951*6a54128fSAndroid Build Coastguard Worker printf %s 0123456789 >"conftest.in" 6952*6a54128fSAndroid Build Coastguard Worker while : 6953*6a54128fSAndroid Build Coastguard Worker do 6954*6a54128fSAndroid Build Coastguard Worker cat "conftest.in" "conftest.in" >"conftest.tmp" 6955*6a54128fSAndroid Build Coastguard Worker mv "conftest.tmp" "conftest.in" 6956*6a54128fSAndroid Build Coastguard Worker cp "conftest.in" "conftest.nl" 6957*6a54128fSAndroid Build Coastguard Worker printf "%s\n" '' >> "conftest.nl" 6958*6a54128fSAndroid Build Coastguard Worker "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6959*6a54128fSAndroid Build Coastguard Worker diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6960*6a54128fSAndroid Build Coastguard Worker as_fn_arith $ac_count + 1 && ac_count=$as_val 6961*6a54128fSAndroid Build Coastguard Worker if test $ac_count -gt ${ac_path_SED_max-0}; then 6962*6a54128fSAndroid Build Coastguard Worker # Best one so far, save it but keep looking for a better one 6963*6a54128fSAndroid Build Coastguard Worker ac_cv_path_SED="$ac_path_SED" 6964*6a54128fSAndroid Build Coastguard Worker ac_path_SED_max=$ac_count 6965*6a54128fSAndroid Build Coastguard Worker fi 6966*6a54128fSAndroid Build Coastguard Worker # 10*(2^10) chars as input seems more than enough 6967*6a54128fSAndroid Build Coastguard Worker test $ac_count -gt 10 && break 6968*6a54128fSAndroid Build Coastguard Worker done 6969*6a54128fSAndroid Build Coastguard Worker rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6970*6a54128fSAndroid Build Coastguard Workeresac 6971*6a54128fSAndroid Build Coastguard Worker 6972*6a54128fSAndroid Build Coastguard Worker $ac_path_SED_found && break 3 6973*6a54128fSAndroid Build Coastguard Worker done 6974*6a54128fSAndroid Build Coastguard Worker done 6975*6a54128fSAndroid Build Coastguard Worker done 6976*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 6977*6a54128fSAndroid Build Coastguard Worker if test -z "$ac_cv_path_SED"; then 6978*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6979*6a54128fSAndroid Build Coastguard Worker fi 6980*6a54128fSAndroid Build Coastguard Workerelse 6981*6a54128fSAndroid Build Coastguard Worker ac_cv_path_SED=$SED 6982*6a54128fSAndroid Build Coastguard Workerfi 6983*6a54128fSAndroid Build Coastguard Worker 6984*6a54128fSAndroid Build Coastguard Workerfi 6985*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6986*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_path_SED" >&6; } 6987*6a54128fSAndroid Build Coastguard Worker SED="$ac_cv_path_SED" 6988*6a54128fSAndroid Build Coastguard Worker rm -f conftest.sed 6989*6a54128fSAndroid Build Coastguard Worker 6990*6a54128fSAndroid Build Coastguard Worker 6991*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6992*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for grep that handles long lines and -e... " >&6; } 6993*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_GREP+y} 6994*6a54128fSAndroid Build Coastguard Workerthen : 6995*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 6996*6a54128fSAndroid Build Coastguard Workerelse $as_nop 6997*6a54128fSAndroid Build Coastguard Worker if test -z "$GREP"; then 6998*6a54128fSAndroid Build Coastguard Worker ac_path_GREP_found=false 6999*6a54128fSAndroid Build Coastguard Worker # Loop through the user's path and test for each of PROGNAME-LIST 7000*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7001*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7002*6a54128fSAndroid Build Coastguard Workerdo 7003*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 7004*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 7005*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 7006*6a54128fSAndroid Build Coastguard Worker */) ;; 7007*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 7008*6a54128fSAndroid Build Coastguard Worker esac 7009*6a54128fSAndroid Build Coastguard Worker for ac_prog in grep ggrep 7010*6a54128fSAndroid Build Coastguard Worker do 7011*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 7012*6a54128fSAndroid Build Coastguard Worker ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 7013*6a54128fSAndroid Build Coastguard Worker as_fn_executable_p "$ac_path_GREP" || continue 7014*6a54128fSAndroid Build Coastguard Worker# Check for GNU ac_path_GREP and select it if it is found. 7015*6a54128fSAndroid Build Coastguard Worker # Check for GNU $ac_path_GREP 7016*6a54128fSAndroid Build Coastguard Workercase `"$ac_path_GREP" --version 2>&1` in 7017*6a54128fSAndroid Build Coastguard Worker*GNU*) 7018*6a54128fSAndroid Build Coastguard Worker ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7019*6a54128fSAndroid Build Coastguard Worker*) 7020*6a54128fSAndroid Build Coastguard Worker ac_count=0 7021*6a54128fSAndroid Build Coastguard Worker printf %s 0123456789 >"conftest.in" 7022*6a54128fSAndroid Build Coastguard Worker while : 7023*6a54128fSAndroid Build Coastguard Worker do 7024*6a54128fSAndroid Build Coastguard Worker cat "conftest.in" "conftest.in" >"conftest.tmp" 7025*6a54128fSAndroid Build Coastguard Worker mv "conftest.tmp" "conftest.in" 7026*6a54128fSAndroid Build Coastguard Worker cp "conftest.in" "conftest.nl" 7027*6a54128fSAndroid Build Coastguard Worker printf "%s\n" 'GREP' >> "conftest.nl" 7028*6a54128fSAndroid Build Coastguard Worker "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7029*6a54128fSAndroid Build Coastguard Worker diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7030*6a54128fSAndroid Build Coastguard Worker as_fn_arith $ac_count + 1 && ac_count=$as_val 7031*6a54128fSAndroid Build Coastguard Worker if test $ac_count -gt ${ac_path_GREP_max-0}; then 7032*6a54128fSAndroid Build Coastguard Worker # Best one so far, save it but keep looking for a better one 7033*6a54128fSAndroid Build Coastguard Worker ac_cv_path_GREP="$ac_path_GREP" 7034*6a54128fSAndroid Build Coastguard Worker ac_path_GREP_max=$ac_count 7035*6a54128fSAndroid Build Coastguard Worker fi 7036*6a54128fSAndroid Build Coastguard Worker # 10*(2^10) chars as input seems more than enough 7037*6a54128fSAndroid Build Coastguard Worker test $ac_count -gt 10 && break 7038*6a54128fSAndroid Build Coastguard Worker done 7039*6a54128fSAndroid Build Coastguard Worker rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7040*6a54128fSAndroid Build Coastguard Workeresac 7041*6a54128fSAndroid Build Coastguard Worker 7042*6a54128fSAndroid Build Coastguard Worker $ac_path_GREP_found && break 3 7043*6a54128fSAndroid Build Coastguard Worker done 7044*6a54128fSAndroid Build Coastguard Worker done 7045*6a54128fSAndroid Build Coastguard Worker done 7046*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 7047*6a54128fSAndroid Build Coastguard Worker if test -z "$ac_cv_path_GREP"; then 7048*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7049*6a54128fSAndroid Build Coastguard Worker fi 7050*6a54128fSAndroid Build Coastguard Workerelse 7051*6a54128fSAndroid Build Coastguard Worker ac_cv_path_GREP=$GREP 7052*6a54128fSAndroid Build Coastguard Workerfi 7053*6a54128fSAndroid Build Coastguard Worker 7054*6a54128fSAndroid Build Coastguard Workerfi 7055*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7056*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_path_GREP" >&6; } 7057*6a54128fSAndroid Build Coastguard Worker GREP="$ac_cv_path_GREP" 7058*6a54128fSAndroid Build Coastguard Worker 7059*6a54128fSAndroid Build Coastguard Worker 7060*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7061*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for egrep... " >&6; } 7062*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_EGREP+y} 7063*6a54128fSAndroid Build Coastguard Workerthen : 7064*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 7065*6a54128fSAndroid Build Coastguard Workerelse $as_nop 7066*6a54128fSAndroid Build Coastguard Worker if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7067*6a54128fSAndroid Build Coastguard Worker then ac_cv_path_EGREP="$GREP -E" 7068*6a54128fSAndroid Build Coastguard Worker else 7069*6a54128fSAndroid Build Coastguard Worker if test -z "$EGREP"; then 7070*6a54128fSAndroid Build Coastguard Worker ac_path_EGREP_found=false 7071*6a54128fSAndroid Build Coastguard Worker # Loop through the user's path and test for each of PROGNAME-LIST 7072*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7073*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7074*6a54128fSAndroid Build Coastguard Workerdo 7075*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 7076*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 7077*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 7078*6a54128fSAndroid Build Coastguard Worker */) ;; 7079*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 7080*6a54128fSAndroid Build Coastguard Worker esac 7081*6a54128fSAndroid Build Coastguard Worker for ac_prog in egrep 7082*6a54128fSAndroid Build Coastguard Worker do 7083*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 7084*6a54128fSAndroid Build Coastguard Worker ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 7085*6a54128fSAndroid Build Coastguard Worker as_fn_executable_p "$ac_path_EGREP" || continue 7086*6a54128fSAndroid Build Coastguard Worker# Check for GNU ac_path_EGREP and select it if it is found. 7087*6a54128fSAndroid Build Coastguard Worker # Check for GNU $ac_path_EGREP 7088*6a54128fSAndroid Build Coastguard Workercase `"$ac_path_EGREP" --version 2>&1` in 7089*6a54128fSAndroid Build Coastguard Worker*GNU*) 7090*6a54128fSAndroid Build Coastguard Worker ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7091*6a54128fSAndroid Build Coastguard Worker*) 7092*6a54128fSAndroid Build Coastguard Worker ac_count=0 7093*6a54128fSAndroid Build Coastguard Worker printf %s 0123456789 >"conftest.in" 7094*6a54128fSAndroid Build Coastguard Worker while : 7095*6a54128fSAndroid Build Coastguard Worker do 7096*6a54128fSAndroid Build Coastguard Worker cat "conftest.in" "conftest.in" >"conftest.tmp" 7097*6a54128fSAndroid Build Coastguard Worker mv "conftest.tmp" "conftest.in" 7098*6a54128fSAndroid Build Coastguard Worker cp "conftest.in" "conftest.nl" 7099*6a54128fSAndroid Build Coastguard Worker printf "%s\n" 'EGREP' >> "conftest.nl" 7100*6a54128fSAndroid Build Coastguard Worker "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7101*6a54128fSAndroid Build Coastguard Worker diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7102*6a54128fSAndroid Build Coastguard Worker as_fn_arith $ac_count + 1 && ac_count=$as_val 7103*6a54128fSAndroid Build Coastguard Worker if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7104*6a54128fSAndroid Build Coastguard Worker # Best one so far, save it but keep looking for a better one 7105*6a54128fSAndroid Build Coastguard Worker ac_cv_path_EGREP="$ac_path_EGREP" 7106*6a54128fSAndroid Build Coastguard Worker ac_path_EGREP_max=$ac_count 7107*6a54128fSAndroid Build Coastguard Worker fi 7108*6a54128fSAndroid Build Coastguard Worker # 10*(2^10) chars as input seems more than enough 7109*6a54128fSAndroid Build Coastguard Worker test $ac_count -gt 10 && break 7110*6a54128fSAndroid Build Coastguard Worker done 7111*6a54128fSAndroid Build Coastguard Worker rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7112*6a54128fSAndroid Build Coastguard Workeresac 7113*6a54128fSAndroid Build Coastguard Worker 7114*6a54128fSAndroid Build Coastguard Worker $ac_path_EGREP_found && break 3 7115*6a54128fSAndroid Build Coastguard Worker done 7116*6a54128fSAndroid Build Coastguard Worker done 7117*6a54128fSAndroid Build Coastguard Worker done 7118*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 7119*6a54128fSAndroid Build Coastguard Worker if test -z "$ac_cv_path_EGREP"; then 7120*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7121*6a54128fSAndroid Build Coastguard Worker fi 7122*6a54128fSAndroid Build Coastguard Workerelse 7123*6a54128fSAndroid Build Coastguard Worker ac_cv_path_EGREP=$EGREP 7124*6a54128fSAndroid Build Coastguard Workerfi 7125*6a54128fSAndroid Build Coastguard Worker 7126*6a54128fSAndroid Build Coastguard Worker fi 7127*6a54128fSAndroid Build Coastguard Workerfi 7128*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7129*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_path_EGREP" >&6; } 7130*6a54128fSAndroid Build Coastguard Worker EGREP="$ac_cv_path_EGREP" 7131*6a54128fSAndroid Build Coastguard Worker 7132*6a54128fSAndroid Build Coastguard Worker 7133*6a54128fSAndroid Build Coastguard Worker 7134*6a54128fSAndroid Build Coastguard Worker 7135*6a54128fSAndroid Build Coastguard Worker 7136*6a54128fSAndroid Build Coastguard Worker 7137*6a54128fSAndroid Build Coastguard Workerac_ext=c 7138*6a54128fSAndroid Build Coastguard Workerac_cpp='$CPP $CPPFLAGS' 7139*6a54128fSAndroid Build Coastguard Workerac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7140*6a54128fSAndroid Build Coastguard Workerac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7141*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_c_compiler_gnu 7142*6a54128fSAndroid Build Coastguard Worker 7143*6a54128fSAndroid Build Coastguard Workerax_pthread_ok=no 7144*6a54128fSAndroid Build Coastguard Worker 7145*6a54128fSAndroid Build Coastguard Worker# We used to check for pthread.h first, but this fails if pthread.h 7146*6a54128fSAndroid Build Coastguard Worker# requires special compiler flags (e.g. on Tru64 or Sequent). 7147*6a54128fSAndroid Build Coastguard Worker# It gets checked for in the link test anyway. 7148*6a54128fSAndroid Build Coastguard Worker 7149*6a54128fSAndroid Build Coastguard Worker# First of all, check if the user has set any of the PTHREAD_LIBS, 7150*6a54128fSAndroid Build Coastguard Worker# etcetera environment variables, and if threads linking works using 7151*6a54128fSAndroid Build Coastguard Worker# them: 7152*6a54128fSAndroid Build Coastguard Workerif test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 7153*6a54128fSAndroid Build Coastguard Worker ax_pthread_save_CC="$CC" 7154*6a54128fSAndroid Build Coastguard Worker ax_pthread_save_CFLAGS="$CFLAGS" 7155*6a54128fSAndroid Build Coastguard Worker ax_pthread_save_LIBS="$LIBS" 7156*6a54128fSAndroid Build Coastguard Worker if test "x$PTHREAD_CC" != "x" 7157*6a54128fSAndroid Build Coastguard Workerthen : 7158*6a54128fSAndroid Build Coastguard Worker CC="$PTHREAD_CC" 7159*6a54128fSAndroid Build Coastguard Workerfi 7160*6a54128fSAndroid Build Coastguard Worker if test "x$PTHREAD_CXX" != "x" 7161*6a54128fSAndroid Build Coastguard Workerthen : 7162*6a54128fSAndroid Build Coastguard Worker CXX="$PTHREAD_CXX" 7163*6a54128fSAndroid Build Coastguard Workerfi 7164*6a54128fSAndroid Build Coastguard Worker CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 7165*6a54128fSAndroid Build Coastguard Worker LIBS="$PTHREAD_LIBS $LIBS" 7166*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 7167*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 7168*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7169*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 7170*6a54128fSAndroid Build Coastguard Worker 7171*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 7172*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 7173*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 7174*6a54128fSAndroid Build Coastguard Workerchar pthread_join (); 7175*6a54128fSAndroid Build Coastguard Workerint 7176*6a54128fSAndroid Build Coastguard Workermain (void) 7177*6a54128fSAndroid Build Coastguard Worker{ 7178*6a54128fSAndroid Build Coastguard Workerreturn pthread_join (); 7179*6a54128fSAndroid Build Coastguard Worker ; 7180*6a54128fSAndroid Build Coastguard Worker return 0; 7181*6a54128fSAndroid Build Coastguard Worker} 7182*6a54128fSAndroid Build Coastguard Worker_ACEOF 7183*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 7184*6a54128fSAndroid Build Coastguard Workerthen : 7185*6a54128fSAndroid Build Coastguard Worker ax_pthread_ok=yes 7186*6a54128fSAndroid Build Coastguard Workerfi 7187*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7188*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 7189*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 7190*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ax_pthread_ok" >&6; } 7191*6a54128fSAndroid Build Coastguard Worker if test "x$ax_pthread_ok" = "xno"; then 7192*6a54128fSAndroid Build Coastguard Worker PTHREAD_LIBS="" 7193*6a54128fSAndroid Build Coastguard Worker PTHREAD_CFLAGS="" 7194*6a54128fSAndroid Build Coastguard Worker fi 7195*6a54128fSAndroid Build Coastguard Worker CC="$ax_pthread_save_CC" 7196*6a54128fSAndroid Build Coastguard Worker CFLAGS="$ax_pthread_save_CFLAGS" 7197*6a54128fSAndroid Build Coastguard Worker LIBS="$ax_pthread_save_LIBS" 7198*6a54128fSAndroid Build Coastguard Workerfi 7199*6a54128fSAndroid Build Coastguard Worker 7200*6a54128fSAndroid Build Coastguard Worker# We must check for the threads library under a number of different 7201*6a54128fSAndroid Build Coastguard Worker# names; the ordering is very important because some systems 7202*6a54128fSAndroid Build Coastguard Worker# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 7203*6a54128fSAndroid Build Coastguard Worker# libraries is broken (non-POSIX). 7204*6a54128fSAndroid Build Coastguard Worker 7205*6a54128fSAndroid Build Coastguard Worker# Create a list of thread flags to try. Items with a "," contain both 7206*6a54128fSAndroid Build Coastguard Worker# C compiler flags (before ",") and linker flags (after ","). Other items 7207*6a54128fSAndroid Build Coastguard Worker# starting with a "-" are C compiler flags, and remaining items are 7208*6a54128fSAndroid Build Coastguard Worker# library names, except for "none" which indicates that we try without 7209*6a54128fSAndroid Build Coastguard Worker# any flags at all, and "pthread-config" which is a program returning 7210*6a54128fSAndroid Build Coastguard Worker# the flags for the Pth emulation library. 7211*6a54128fSAndroid Build Coastguard Worker 7212*6a54128fSAndroid Build Coastguard Workerax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 7213*6a54128fSAndroid Build Coastguard Worker 7214*6a54128fSAndroid Build Coastguard Worker# The ordering *is* (sometimes) important. Some notes on the 7215*6a54128fSAndroid Build Coastguard Worker# individual items follow: 7216*6a54128fSAndroid Build Coastguard Worker 7217*6a54128fSAndroid Build Coastguard Worker# pthreads: AIX (must check this before -lpthread) 7218*6a54128fSAndroid Build Coastguard Worker# none: in case threads are in libc; should be tried before -Kthread and 7219*6a54128fSAndroid Build Coastguard Worker# other compiler flags to prevent continual compiler warnings 7220*6a54128fSAndroid Build Coastguard Worker# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 7221*6a54128fSAndroid Build Coastguard Worker# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 7222*6a54128fSAndroid Build Coastguard Worker# (Note: HP C rejects this with "bad form for `-t' option") 7223*6a54128fSAndroid Build Coastguard Worker# -pthreads: Solaris/gcc (Note: HP C also rejects) 7224*6a54128fSAndroid Build Coastguard Worker# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 7225*6a54128fSAndroid Build Coastguard Worker# doesn't hurt to check since this sometimes defines pthreads and 7226*6a54128fSAndroid Build Coastguard Worker# -D_REENTRANT too), HP C (must be checked before -lpthread, which 7227*6a54128fSAndroid Build Coastguard Worker# is present but should not be used directly; and before -mthreads, 7228*6a54128fSAndroid Build Coastguard Worker# because the compiler interprets this as "-mt" + "-hreads") 7229*6a54128fSAndroid Build Coastguard Worker# -mthreads: Mingw32/gcc, Lynx/gcc 7230*6a54128fSAndroid Build Coastguard Worker# pthread: Linux, etcetera 7231*6a54128fSAndroid Build Coastguard Worker# --thread-safe: KAI C++ 7232*6a54128fSAndroid Build Coastguard Worker# pthread-config: use pthread-config program (for GNU Pth library) 7233*6a54128fSAndroid Build Coastguard Worker 7234*6a54128fSAndroid Build Coastguard Workercase $host_os in 7235*6a54128fSAndroid Build Coastguard Worker 7236*6a54128fSAndroid Build Coastguard Worker freebsd*) 7237*6a54128fSAndroid Build Coastguard Worker 7238*6a54128fSAndroid Build Coastguard Worker # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 7239*6a54128fSAndroid Build Coastguard Worker # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 7240*6a54128fSAndroid Build Coastguard Worker 7241*6a54128fSAndroid Build Coastguard Worker ax_pthread_flags="-kthread lthread $ax_pthread_flags" 7242*6a54128fSAndroid Build Coastguard Worker ;; 7243*6a54128fSAndroid Build Coastguard Worker 7244*6a54128fSAndroid Build Coastguard Worker hpux*) 7245*6a54128fSAndroid Build Coastguard Worker 7246*6a54128fSAndroid Build Coastguard Worker # From the cc(1) man page: "[-mt] Sets various -D flags to enable 7247*6a54128fSAndroid Build Coastguard Worker # multi-threading and also sets -lpthread." 7248*6a54128fSAndroid Build Coastguard Worker 7249*6a54128fSAndroid Build Coastguard Worker ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 7250*6a54128fSAndroid Build Coastguard Worker ;; 7251*6a54128fSAndroid Build Coastguard Worker 7252*6a54128fSAndroid Build Coastguard Worker openedition*) 7253*6a54128fSAndroid Build Coastguard Worker 7254*6a54128fSAndroid Build Coastguard Worker # IBM z/OS requires a feature-test macro to be defined in order to 7255*6a54128fSAndroid Build Coastguard Worker # enable POSIX threads at all, so give the user a hint if this is 7256*6a54128fSAndroid Build Coastguard Worker # not set. (We don't define these ourselves, as they can affect 7257*6a54128fSAndroid Build Coastguard Worker # other portions of the system API in unpredictable ways.) 7258*6a54128fSAndroid Build Coastguard Worker 7259*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7260*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 7261*6a54128fSAndroid Build Coastguard Worker 7262*6a54128fSAndroid Build Coastguard Worker# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 7263*6a54128fSAndroid Build Coastguard Worker AX_PTHREAD_ZOS_MISSING 7264*6a54128fSAndroid Build Coastguard Worker# endif 7265*6a54128fSAndroid Build Coastguard Worker 7266*6a54128fSAndroid Build Coastguard Worker_ACEOF 7267*6a54128fSAndroid Build Coastguard Workerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7268*6a54128fSAndroid Build Coastguard Worker $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 7269*6a54128fSAndroid Build Coastguard Workerthen : 7270*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 7271*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 7272*6a54128fSAndroid Build Coastguard Workerfi 7273*6a54128fSAndroid Build Coastguard Workerrm -rf conftest* 7274*6a54128fSAndroid Build Coastguard Worker 7275*6a54128fSAndroid Build Coastguard Worker ;; 7276*6a54128fSAndroid Build Coastguard Worker 7277*6a54128fSAndroid Build Coastguard Worker solaris*) 7278*6a54128fSAndroid Build Coastguard Worker 7279*6a54128fSAndroid Build Coastguard Worker # On Solaris (at least, for some versions), libc contains stubbed 7280*6a54128fSAndroid Build Coastguard Worker # (non-functional) versions of the pthreads routines, so link-based 7281*6a54128fSAndroid Build Coastguard Worker # tests will erroneously succeed. (N.B.: The stubs are missing 7282*6a54128fSAndroid Build Coastguard Worker # pthread_cleanup_push, or rather a function called by this macro, 7283*6a54128fSAndroid Build Coastguard Worker # so we could check for that, but who knows whether they'll stub 7284*6a54128fSAndroid Build Coastguard Worker # that too in a future libc.) So we'll check first for the 7285*6a54128fSAndroid Build Coastguard Worker # standard Solaris way of linking pthreads (-mt -lpthread). 7286*6a54128fSAndroid Build Coastguard Worker 7287*6a54128fSAndroid Build Coastguard Worker ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" 7288*6a54128fSAndroid Build Coastguard Worker ;; 7289*6a54128fSAndroid Build Coastguard Workeresac 7290*6a54128fSAndroid Build Coastguard Worker 7291*6a54128fSAndroid Build Coastguard Worker# Are we compiling with Clang? 7292*6a54128fSAndroid Build Coastguard Worker 7293*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 7294*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether $CC is Clang... " >&6; } 7295*6a54128fSAndroid Build Coastguard Workerif test ${ax_cv_PTHREAD_CLANG+y} 7296*6a54128fSAndroid Build Coastguard Workerthen : 7297*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 7298*6a54128fSAndroid Build Coastguard Workerelse $as_nop 7299*6a54128fSAndroid Build Coastguard Worker ax_cv_PTHREAD_CLANG=no 7300*6a54128fSAndroid Build Coastguard Worker # Note that Autoconf sets GCC=yes for Clang as well as GCC 7301*6a54128fSAndroid Build Coastguard Worker if test "x$GCC" = "xyes"; then 7302*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7303*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 7304*6a54128fSAndroid Build Coastguard Worker/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 7305*6a54128fSAndroid Build Coastguard Worker# if defined(__clang__) && defined(__llvm__) 7306*6a54128fSAndroid Build Coastguard Worker AX_PTHREAD_CC_IS_CLANG 7307*6a54128fSAndroid Build Coastguard Worker# endif 7308*6a54128fSAndroid Build Coastguard Worker 7309*6a54128fSAndroid Build Coastguard Worker_ACEOF 7310*6a54128fSAndroid Build Coastguard Workerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7311*6a54128fSAndroid Build Coastguard Worker $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 7312*6a54128fSAndroid Build Coastguard Workerthen : 7313*6a54128fSAndroid Build Coastguard Worker ax_cv_PTHREAD_CLANG=yes 7314*6a54128fSAndroid Build Coastguard Workerfi 7315*6a54128fSAndroid Build Coastguard Workerrm -rf conftest* 7316*6a54128fSAndroid Build Coastguard Worker 7317*6a54128fSAndroid Build Coastguard Worker fi 7318*6a54128fSAndroid Build Coastguard Worker 7319*6a54128fSAndroid Build Coastguard Workerfi 7320*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 7321*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } 7322*6a54128fSAndroid Build Coastguard Workerax_pthread_clang="$ax_cv_PTHREAD_CLANG" 7323*6a54128fSAndroid Build Coastguard Worker 7324*6a54128fSAndroid Build Coastguard Worker 7325*6a54128fSAndroid Build Coastguard Worker# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 7326*6a54128fSAndroid Build Coastguard Worker 7327*6a54128fSAndroid Build Coastguard Worker# Note that for GCC and Clang -pthread generally implies -lpthread, 7328*6a54128fSAndroid Build Coastguard Worker# except when -nostdlib is passed. 7329*6a54128fSAndroid Build Coastguard Worker# This is problematic using libtool to build C++ shared libraries with pthread: 7330*6a54128fSAndroid Build Coastguard Worker# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 7331*6a54128fSAndroid Build Coastguard Worker# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 7332*6a54128fSAndroid Build Coastguard Worker# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 7333*6a54128fSAndroid Build Coastguard Worker# To solve this, first try -pthread together with -lpthread for GCC 7334*6a54128fSAndroid Build Coastguard Worker 7335*6a54128fSAndroid Build Coastguard Workerif test "x$GCC" = "xyes" 7336*6a54128fSAndroid Build Coastguard Workerthen : 7337*6a54128fSAndroid Build Coastguard Worker ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" 7338*6a54128fSAndroid Build Coastguard Workerfi 7339*6a54128fSAndroid Build Coastguard Worker 7340*6a54128fSAndroid Build Coastguard Worker# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first 7341*6a54128fSAndroid Build Coastguard Worker 7342*6a54128fSAndroid Build Coastguard Workerif test "x$ax_pthread_clang" = "xyes" 7343*6a54128fSAndroid Build Coastguard Workerthen : 7344*6a54128fSAndroid Build Coastguard Worker ax_pthread_flags="-pthread,-lpthread -pthread" 7345*6a54128fSAndroid Build Coastguard Workerfi 7346*6a54128fSAndroid Build Coastguard Worker 7347*6a54128fSAndroid Build Coastguard Worker 7348*6a54128fSAndroid Build Coastguard Worker# The presence of a feature test macro requesting re-entrant function 7349*6a54128fSAndroid Build Coastguard Worker# definitions is, on some systems, a strong hint that pthreads support is 7350*6a54128fSAndroid Build Coastguard Worker# correctly enabled 7351*6a54128fSAndroid Build Coastguard Worker 7352*6a54128fSAndroid Build Coastguard Workercase $host_os in 7353*6a54128fSAndroid Build Coastguard Worker darwin* | hpux* | linux* | osf* | solaris*) 7354*6a54128fSAndroid Build Coastguard Worker ax_pthread_check_macro="_REENTRANT" 7355*6a54128fSAndroid Build Coastguard Worker ;; 7356*6a54128fSAndroid Build Coastguard Worker 7357*6a54128fSAndroid Build Coastguard Worker aix*) 7358*6a54128fSAndroid Build Coastguard Worker ax_pthread_check_macro="_THREAD_SAFE" 7359*6a54128fSAndroid Build Coastguard Worker ;; 7360*6a54128fSAndroid Build Coastguard Worker 7361*6a54128fSAndroid Build Coastguard Worker *) 7362*6a54128fSAndroid Build Coastguard Worker ax_pthread_check_macro="--" 7363*6a54128fSAndroid Build Coastguard Worker ;; 7364*6a54128fSAndroid Build Coastguard Workeresac 7365*6a54128fSAndroid Build Coastguard Workerif test "x$ax_pthread_check_macro" = "x--" 7366*6a54128fSAndroid Build Coastguard Workerthen : 7367*6a54128fSAndroid Build Coastguard Worker ax_pthread_check_cond=0 7368*6a54128fSAndroid Build Coastguard Workerelse $as_nop 7369*6a54128fSAndroid Build Coastguard Worker ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 7370*6a54128fSAndroid Build Coastguard Workerfi 7371*6a54128fSAndroid Build Coastguard Worker 7372*6a54128fSAndroid Build Coastguard Worker 7373*6a54128fSAndroid Build Coastguard Workerif test "x$ax_pthread_ok" = "xno"; then 7374*6a54128fSAndroid Build Coastguard Workerfor ax_pthread_try_flag in $ax_pthread_flags; do 7375*6a54128fSAndroid Build Coastguard Worker 7376*6a54128fSAndroid Build Coastguard Worker case $ax_pthread_try_flag in 7377*6a54128fSAndroid Build Coastguard Worker none) 7378*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 7379*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether pthreads work without any flags... " >&6; } 7380*6a54128fSAndroid Build Coastguard Worker ;; 7381*6a54128fSAndroid Build Coastguard Worker 7382*6a54128fSAndroid Build Coastguard Worker *,*) 7383*6a54128fSAndroid Build Coastguard Worker PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` 7384*6a54128fSAndroid Build Coastguard Worker PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` 7385*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 7386*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } 7387*6a54128fSAndroid Build Coastguard Worker ;; 7388*6a54128fSAndroid Build Coastguard Worker 7389*6a54128fSAndroid Build Coastguard Worker -*) 7390*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 7391*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 7392*6a54128fSAndroid Build Coastguard Worker PTHREAD_CFLAGS="$ax_pthread_try_flag" 7393*6a54128fSAndroid Build Coastguard Worker ;; 7394*6a54128fSAndroid Build Coastguard Worker 7395*6a54128fSAndroid Build Coastguard Worker pthread-config) 7396*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "pthread-config", so it can be a program name with args. 7397*6a54128fSAndroid Build Coastguard Workerset dummy pthread-config; ac_word=$2 7398*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7399*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 7400*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_ax_pthread_config+y} 7401*6a54128fSAndroid Build Coastguard Workerthen : 7402*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 7403*6a54128fSAndroid Build Coastguard Workerelse $as_nop 7404*6a54128fSAndroid Build Coastguard Worker if test -n "$ax_pthread_config"; then 7405*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 7406*6a54128fSAndroid Build Coastguard Workerelse 7407*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7408*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 7409*6a54128fSAndroid Build Coastguard Workerdo 7410*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 7411*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 7412*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 7413*6a54128fSAndroid Build Coastguard Worker */) ;; 7414*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 7415*6a54128fSAndroid Build Coastguard Worker esac 7416*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 7417*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7418*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ax_pthread_config="yes" 7419*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7420*6a54128fSAndroid Build Coastguard Worker break 2 7421*6a54128fSAndroid Build Coastguard Worker fi 7422*6a54128fSAndroid Build Coastguard Workerdone 7423*6a54128fSAndroid Build Coastguard Worker done 7424*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 7425*6a54128fSAndroid Build Coastguard Worker 7426*6a54128fSAndroid Build Coastguard Worker test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 7427*6a54128fSAndroid Build Coastguard Workerfi 7428*6a54128fSAndroid Build Coastguard Workerfi 7429*6a54128fSAndroid Build Coastguard Workerax_pthread_config=$ac_cv_prog_ax_pthread_config 7430*6a54128fSAndroid Build Coastguard Workerif test -n "$ax_pthread_config"; then 7431*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 7432*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ax_pthread_config" >&6; } 7433*6a54128fSAndroid Build Coastguard Workerelse 7434*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7435*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 7436*6a54128fSAndroid Build Coastguard Workerfi 7437*6a54128fSAndroid Build Coastguard Worker 7438*6a54128fSAndroid Build Coastguard Worker 7439*6a54128fSAndroid Build Coastguard Worker if test "x$ax_pthread_config" = "xno" 7440*6a54128fSAndroid Build Coastguard Workerthen : 7441*6a54128fSAndroid Build Coastguard Worker continue 7442*6a54128fSAndroid Build Coastguard Workerfi 7443*6a54128fSAndroid Build Coastguard Worker PTHREAD_CFLAGS="`pthread-config --cflags`" 7444*6a54128fSAndroid Build Coastguard Worker PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 7445*6a54128fSAndroid Build Coastguard Worker ;; 7446*6a54128fSAndroid Build Coastguard Worker 7447*6a54128fSAndroid Build Coastguard Worker *) 7448*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 7449*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 7450*6a54128fSAndroid Build Coastguard Worker PTHREAD_LIBS="-l$ax_pthread_try_flag" 7451*6a54128fSAndroid Build Coastguard Worker ;; 7452*6a54128fSAndroid Build Coastguard Worker esac 7453*6a54128fSAndroid Build Coastguard Worker 7454*6a54128fSAndroid Build Coastguard Worker ax_pthread_save_CFLAGS="$CFLAGS" 7455*6a54128fSAndroid Build Coastguard Worker ax_pthread_save_LIBS="$LIBS" 7456*6a54128fSAndroid Build Coastguard Worker CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 7457*6a54128fSAndroid Build Coastguard Worker LIBS="$PTHREAD_LIBS $LIBS" 7458*6a54128fSAndroid Build Coastguard Worker 7459*6a54128fSAndroid Build Coastguard Worker # Check for various functions. We must include pthread.h, 7460*6a54128fSAndroid Build Coastguard Worker # since some functions may be macros. (On the Sequent, we 7461*6a54128fSAndroid Build Coastguard Worker # need a special flag -Kthread to make this header compile.) 7462*6a54128fSAndroid Build Coastguard Worker # We check for pthread_join because it is in -lpthread on IRIX 7463*6a54128fSAndroid Build Coastguard Worker # while pthread_create is in libc. We check for pthread_attr_init 7464*6a54128fSAndroid Build Coastguard Worker # due to DEC craziness with -lpthreads. We check for 7465*6a54128fSAndroid Build Coastguard Worker # pthread_cleanup_push because it is one of the few pthread 7466*6a54128fSAndroid Build Coastguard Worker # functions on Solaris that doesn't have a non-functional libc stub. 7467*6a54128fSAndroid Build Coastguard Worker # We try pthread_create on general principles. 7468*6a54128fSAndroid Build Coastguard Worker 7469*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7470*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 7471*6a54128fSAndroid Build Coastguard Worker#include <pthread.h> 7472*6a54128fSAndroid Build Coastguard Worker# if $ax_pthread_check_cond 7473*6a54128fSAndroid Build Coastguard Worker# error "$ax_pthread_check_macro must be defined" 7474*6a54128fSAndroid Build Coastguard Worker# endif 7475*6a54128fSAndroid Build Coastguard Worker static void *some_global = NULL; 7476*6a54128fSAndroid Build Coastguard Worker static void routine(void *a) 7477*6a54128fSAndroid Build Coastguard Worker { 7478*6a54128fSAndroid Build Coastguard Worker /* To avoid any unused-parameter or 7479*6a54128fSAndroid Build Coastguard Worker unused-but-set-parameter warning. */ 7480*6a54128fSAndroid Build Coastguard Worker some_global = a; 7481*6a54128fSAndroid Build Coastguard Worker } 7482*6a54128fSAndroid Build Coastguard Worker static void *start_routine(void *a) { return a; } 7483*6a54128fSAndroid Build Coastguard Workerint 7484*6a54128fSAndroid Build Coastguard Workermain (void) 7485*6a54128fSAndroid Build Coastguard Worker{ 7486*6a54128fSAndroid Build Coastguard Workerpthread_t th; pthread_attr_t attr; 7487*6a54128fSAndroid Build Coastguard Worker pthread_create(&th, 0, start_routine, 0); 7488*6a54128fSAndroid Build Coastguard Worker pthread_join(th, 0); 7489*6a54128fSAndroid Build Coastguard Worker pthread_attr_init(&attr); 7490*6a54128fSAndroid Build Coastguard Worker pthread_cleanup_push(routine, 0); 7491*6a54128fSAndroid Build Coastguard Worker pthread_cleanup_pop(0) /* ; */ 7492*6a54128fSAndroid Build Coastguard Worker ; 7493*6a54128fSAndroid Build Coastguard Worker return 0; 7494*6a54128fSAndroid Build Coastguard Worker} 7495*6a54128fSAndroid Build Coastguard Worker_ACEOF 7496*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 7497*6a54128fSAndroid Build Coastguard Workerthen : 7498*6a54128fSAndroid Build Coastguard Worker ax_pthread_ok=yes 7499*6a54128fSAndroid Build Coastguard Workerfi 7500*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7501*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 7502*6a54128fSAndroid Build Coastguard Worker 7503*6a54128fSAndroid Build Coastguard Worker CFLAGS="$ax_pthread_save_CFLAGS" 7504*6a54128fSAndroid Build Coastguard Worker LIBS="$ax_pthread_save_LIBS" 7505*6a54128fSAndroid Build Coastguard Worker 7506*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 7507*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ax_pthread_ok" >&6; } 7508*6a54128fSAndroid Build Coastguard Worker if test "x$ax_pthread_ok" = "xyes" 7509*6a54128fSAndroid Build Coastguard Workerthen : 7510*6a54128fSAndroid Build Coastguard Worker break 7511*6a54128fSAndroid Build Coastguard Workerfi 7512*6a54128fSAndroid Build Coastguard Worker 7513*6a54128fSAndroid Build Coastguard Worker PTHREAD_LIBS="" 7514*6a54128fSAndroid Build Coastguard Worker PTHREAD_CFLAGS="" 7515*6a54128fSAndroid Build Coastguard Workerdone 7516*6a54128fSAndroid Build Coastguard Workerfi 7517*6a54128fSAndroid Build Coastguard Worker 7518*6a54128fSAndroid Build Coastguard Worker 7519*6a54128fSAndroid Build Coastguard Worker# Clang needs special handling, because older versions handle the -pthread 7520*6a54128fSAndroid Build Coastguard Worker# option in a rather... idiosyncratic way 7521*6a54128fSAndroid Build Coastguard Worker 7522*6a54128fSAndroid Build Coastguard Workerif test "x$ax_pthread_clang" = "xyes"; then 7523*6a54128fSAndroid Build Coastguard Worker 7524*6a54128fSAndroid Build Coastguard Worker # Clang takes -pthread; it has never supported any other flag 7525*6a54128fSAndroid Build Coastguard Worker 7526*6a54128fSAndroid Build Coastguard Worker # (Note 1: This will need to be revisited if a system that Clang 7527*6a54128fSAndroid Build Coastguard Worker # supports has POSIX threads in a separate library. This tends not 7528*6a54128fSAndroid Build Coastguard Worker # to be the way of modern systems, but it's conceivable.) 7529*6a54128fSAndroid Build Coastguard Worker 7530*6a54128fSAndroid Build Coastguard Worker # (Note 2: On some systems, notably Darwin, -pthread is not needed 7531*6a54128fSAndroid Build Coastguard Worker # to get POSIX threads support; the API is always present and 7532*6a54128fSAndroid Build Coastguard Worker # active. We could reasonably leave PTHREAD_CFLAGS empty. But 7533*6a54128fSAndroid Build Coastguard Worker # -pthread does define _REENTRANT, and while the Darwin headers 7534*6a54128fSAndroid Build Coastguard Worker # ignore this macro, third-party headers might not.) 7535*6a54128fSAndroid Build Coastguard Worker 7536*6a54128fSAndroid Build Coastguard Worker # However, older versions of Clang make a point of warning the user 7537*6a54128fSAndroid Build Coastguard Worker # that, in an invocation where only linking and no compilation is 7538*6a54128fSAndroid Build Coastguard Worker # taking place, the -pthread option has no effect ("argument unused 7539*6a54128fSAndroid Build Coastguard Worker # during compilation"). They expect -pthread to be passed in only 7540*6a54128fSAndroid Build Coastguard Worker # when source code is being compiled. 7541*6a54128fSAndroid Build Coastguard Worker # 7542*6a54128fSAndroid Build Coastguard Worker # Problem is, this is at odds with the way Automake and most other 7543*6a54128fSAndroid Build Coastguard Worker # C build frameworks function, which is that the same flags used in 7544*6a54128fSAndroid Build Coastguard Worker # compilation (CFLAGS) are also used in linking. Many systems 7545*6a54128fSAndroid Build Coastguard Worker # supported by AX_PTHREAD require exactly this for POSIX threads 7546*6a54128fSAndroid Build Coastguard Worker # support, and in fact it is often not straightforward to specify a 7547*6a54128fSAndroid Build Coastguard Worker # flag that is used only in the compilation phase and not in 7548*6a54128fSAndroid Build Coastguard Worker # linking. Such a scenario is extremely rare in practice. 7549*6a54128fSAndroid Build Coastguard Worker # 7550*6a54128fSAndroid Build Coastguard Worker # Even though use of the -pthread flag in linking would only print 7551*6a54128fSAndroid Build Coastguard Worker # a warning, this can be a nuisance for well-run software projects 7552*6a54128fSAndroid Build Coastguard Worker # that build with -Werror. So if the active version of Clang has 7553*6a54128fSAndroid Build Coastguard Worker # this misfeature, we search for an option to squash it. 7554*6a54128fSAndroid Build Coastguard Worker 7555*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 7556*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 7557*6a54128fSAndroid Build Coastguard Workerif test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} 7558*6a54128fSAndroid Build Coastguard Workerthen : 7559*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 7560*6a54128fSAndroid Build Coastguard Workerelse $as_nop 7561*6a54128fSAndroid Build Coastguard Worker ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 7562*6a54128fSAndroid Build Coastguard Worker # Create an alternate version of $ac_link that compiles and 7563*6a54128fSAndroid Build Coastguard Worker # links in two steps (.c -> .o, .o -> exe) instead of one 7564*6a54128fSAndroid Build Coastguard Worker # (.c -> exe), because the warning occurs only in the second 7565*6a54128fSAndroid Build Coastguard Worker # step 7566*6a54128fSAndroid Build Coastguard Worker ax_pthread_save_ac_link="$ac_link" 7567*6a54128fSAndroid Build Coastguard Worker ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 7568*6a54128fSAndroid Build Coastguard Worker ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"` 7569*6a54128fSAndroid Build Coastguard Worker ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 7570*6a54128fSAndroid Build Coastguard Worker ax_pthread_save_CFLAGS="$CFLAGS" 7571*6a54128fSAndroid Build Coastguard Worker for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 7572*6a54128fSAndroid Build Coastguard Worker if test "x$ax_pthread_try" = "xunknown" 7573*6a54128fSAndroid Build Coastguard Workerthen : 7574*6a54128fSAndroid Build Coastguard Worker break 7575*6a54128fSAndroid Build Coastguard Workerfi 7576*6a54128fSAndroid Build Coastguard Worker CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 7577*6a54128fSAndroid Build Coastguard Worker ac_link="$ax_pthread_save_ac_link" 7578*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7579*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 7580*6a54128fSAndroid Build Coastguard Workerint main(void){return 0;} 7581*6a54128fSAndroid Build Coastguard Worker_ACEOF 7582*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 7583*6a54128fSAndroid Build Coastguard Workerthen : 7584*6a54128fSAndroid Build Coastguard Worker ac_link="$ax_pthread_2step_ac_link" 7585*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7586*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 7587*6a54128fSAndroid Build Coastguard Workerint main(void){return 0;} 7588*6a54128fSAndroid Build Coastguard Worker_ACEOF 7589*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 7590*6a54128fSAndroid Build Coastguard Workerthen : 7591*6a54128fSAndroid Build Coastguard Worker break 7592*6a54128fSAndroid Build Coastguard Workerfi 7593*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7594*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 7595*6a54128fSAndroid Build Coastguard Worker 7596*6a54128fSAndroid Build Coastguard Workerfi 7597*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7598*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 7599*6a54128fSAndroid Build Coastguard Worker done 7600*6a54128fSAndroid Build Coastguard Worker ac_link="$ax_pthread_save_ac_link" 7601*6a54128fSAndroid Build Coastguard Worker CFLAGS="$ax_pthread_save_CFLAGS" 7602*6a54128fSAndroid Build Coastguard Worker if test "x$ax_pthread_try" = "x" 7603*6a54128fSAndroid Build Coastguard Workerthen : 7604*6a54128fSAndroid Build Coastguard Worker ax_pthread_try=no 7605*6a54128fSAndroid Build Coastguard Workerfi 7606*6a54128fSAndroid Build Coastguard Worker ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 7607*6a54128fSAndroid Build Coastguard Worker 7608*6a54128fSAndroid Build Coastguard Workerfi 7609*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 7610*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 7611*6a54128fSAndroid Build Coastguard Worker 7612*6a54128fSAndroid Build Coastguard Worker case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 7613*6a54128fSAndroid Build Coastguard Worker no | unknown) ;; 7614*6a54128fSAndroid Build Coastguard Worker *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 7615*6a54128fSAndroid Build Coastguard Worker esac 7616*6a54128fSAndroid Build Coastguard Worker 7617*6a54128fSAndroid Build Coastguard Workerfi # $ax_pthread_clang = yes 7618*6a54128fSAndroid Build Coastguard Worker 7619*6a54128fSAndroid Build Coastguard Worker 7620*6a54128fSAndroid Build Coastguard Worker 7621*6a54128fSAndroid Build Coastguard Worker# Various other checks: 7622*6a54128fSAndroid Build Coastguard Workerif test "x$ax_pthread_ok" = "xyes"; then 7623*6a54128fSAndroid Build Coastguard Worker ax_pthread_save_CFLAGS="$CFLAGS" 7624*6a54128fSAndroid Build Coastguard Worker ax_pthread_save_LIBS="$LIBS" 7625*6a54128fSAndroid Build Coastguard Worker CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 7626*6a54128fSAndroid Build Coastguard Worker LIBS="$PTHREAD_LIBS $LIBS" 7627*6a54128fSAndroid Build Coastguard Worker 7628*6a54128fSAndroid Build Coastguard Worker # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 7629*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 7630*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for joinable pthread attribute... " >&6; } 7631*6a54128fSAndroid Build Coastguard Workerif test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} 7632*6a54128fSAndroid Build Coastguard Workerthen : 7633*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 7634*6a54128fSAndroid Build Coastguard Workerelse $as_nop 7635*6a54128fSAndroid Build Coastguard Worker ax_cv_PTHREAD_JOINABLE_ATTR=unknown 7636*6a54128fSAndroid Build Coastguard Worker for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 7637*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7638*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 7639*6a54128fSAndroid Build Coastguard Worker#include <pthread.h> 7640*6a54128fSAndroid Build Coastguard Workerint 7641*6a54128fSAndroid Build Coastguard Workermain (void) 7642*6a54128fSAndroid Build Coastguard Worker{ 7643*6a54128fSAndroid Build Coastguard Workerint attr = $ax_pthread_attr; return attr /* ; */ 7644*6a54128fSAndroid Build Coastguard Worker ; 7645*6a54128fSAndroid Build Coastguard Worker return 0; 7646*6a54128fSAndroid Build Coastguard Worker} 7647*6a54128fSAndroid Build Coastguard Worker_ACEOF 7648*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 7649*6a54128fSAndroid Build Coastguard Workerthen : 7650*6a54128fSAndroid Build Coastguard Worker ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 7651*6a54128fSAndroid Build Coastguard Workerfi 7652*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7653*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 7654*6a54128fSAndroid Build Coastguard Worker done 7655*6a54128fSAndroid Build Coastguard Worker 7656*6a54128fSAndroid Build Coastguard Workerfi 7657*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 7658*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 7659*6a54128fSAndroid Build Coastguard Worker if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 7660*6a54128fSAndroid Build Coastguard Worker test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 7661*6a54128fSAndroid Build Coastguard Worker test "x$ax_pthread_joinable_attr_defined" != "xyes" 7662*6a54128fSAndroid Build Coastguard Workerthen : 7663*6a54128fSAndroid Build Coastguard Worker 7664*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h 7665*6a54128fSAndroid Build Coastguard Worker 7666*6a54128fSAndroid Build Coastguard Worker ax_pthread_joinable_attr_defined=yes 7667*6a54128fSAndroid Build Coastguard Worker 7668*6a54128fSAndroid Build Coastguard Workerfi 7669*6a54128fSAndroid Build Coastguard Worker 7670*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 7671*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether more special flags are required for pthreads... " >&6; } 7672*6a54128fSAndroid Build Coastguard Workerif test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} 7673*6a54128fSAndroid Build Coastguard Workerthen : 7674*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 7675*6a54128fSAndroid Build Coastguard Workerelse $as_nop 7676*6a54128fSAndroid Build Coastguard Worker ax_cv_PTHREAD_SPECIAL_FLAGS=no 7677*6a54128fSAndroid Build Coastguard Worker case $host_os in 7678*6a54128fSAndroid Build Coastguard Worker solaris*) 7679*6a54128fSAndroid Build Coastguard Worker ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 7680*6a54128fSAndroid Build Coastguard Worker ;; 7681*6a54128fSAndroid Build Coastguard Worker esac 7682*6a54128fSAndroid Build Coastguard Worker 7683*6a54128fSAndroid Build Coastguard Workerfi 7684*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 7685*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 7686*6a54128fSAndroid Build Coastguard Worker if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 7687*6a54128fSAndroid Build Coastguard Worker test "x$ax_pthread_special_flags_added" != "xyes" 7688*6a54128fSAndroid Build Coastguard Workerthen : 7689*6a54128fSAndroid Build Coastguard Worker PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 7690*6a54128fSAndroid Build Coastguard Worker ax_pthread_special_flags_added=yes 7691*6a54128fSAndroid Build Coastguard Workerfi 7692*6a54128fSAndroid Build Coastguard Worker 7693*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 7694*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 7695*6a54128fSAndroid Build Coastguard Workerif test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 7696*6a54128fSAndroid Build Coastguard Workerthen : 7697*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 7698*6a54128fSAndroid Build Coastguard Workerelse $as_nop 7699*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7700*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 7701*6a54128fSAndroid Build Coastguard Worker#include <pthread.h> 7702*6a54128fSAndroid Build Coastguard Workerint 7703*6a54128fSAndroid Build Coastguard Workermain (void) 7704*6a54128fSAndroid Build Coastguard Worker{ 7705*6a54128fSAndroid Build Coastguard Workerint i = PTHREAD_PRIO_INHERIT; 7706*6a54128fSAndroid Build Coastguard Worker return i; 7707*6a54128fSAndroid Build Coastguard Worker ; 7708*6a54128fSAndroid Build Coastguard Worker return 0; 7709*6a54128fSAndroid Build Coastguard Worker} 7710*6a54128fSAndroid Build Coastguard Worker_ACEOF 7711*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 7712*6a54128fSAndroid Build Coastguard Workerthen : 7713*6a54128fSAndroid Build Coastguard Worker ax_cv_PTHREAD_PRIO_INHERIT=yes 7714*6a54128fSAndroid Build Coastguard Workerelse $as_nop 7715*6a54128fSAndroid Build Coastguard Worker ax_cv_PTHREAD_PRIO_INHERIT=no 7716*6a54128fSAndroid Build Coastguard Workerfi 7717*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7718*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 7719*6a54128fSAndroid Build Coastguard Worker 7720*6a54128fSAndroid Build Coastguard Workerfi 7721*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 7722*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 7723*6a54128fSAndroid Build Coastguard Worker if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 7724*6a54128fSAndroid Build Coastguard Worker test "x$ax_pthread_prio_inherit_defined" != "xyes" 7725*6a54128fSAndroid Build Coastguard Workerthen : 7726*6a54128fSAndroid Build Coastguard Worker 7727*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 7728*6a54128fSAndroid Build Coastguard Worker 7729*6a54128fSAndroid Build Coastguard Worker ax_pthread_prio_inherit_defined=yes 7730*6a54128fSAndroid Build Coastguard Worker 7731*6a54128fSAndroid Build Coastguard Workerfi 7732*6a54128fSAndroid Build Coastguard Worker 7733*6a54128fSAndroid Build Coastguard Worker CFLAGS="$ax_pthread_save_CFLAGS" 7734*6a54128fSAndroid Build Coastguard Worker LIBS="$ax_pthread_save_LIBS" 7735*6a54128fSAndroid Build Coastguard Worker 7736*6a54128fSAndroid Build Coastguard Worker # More AIX lossage: compile with *_r variant 7737*6a54128fSAndroid Build Coastguard Worker if test "x$GCC" != "xyes"; then 7738*6a54128fSAndroid Build Coastguard Worker case $host_os in 7739*6a54128fSAndroid Build Coastguard Worker aix*) 7740*6a54128fSAndroid Build Coastguard Worker case "x/$CC" in #( 7741*6a54128fSAndroid Build Coastguard Worker x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 7742*6a54128fSAndroid Build Coastguard Worker #handle absolute path differently from PATH based program lookup 7743*6a54128fSAndroid Build Coastguard Worker case "x$CC" in #( 7744*6a54128fSAndroid Build Coastguard Worker x/*) : 7745*6a54128fSAndroid Build Coastguard Worker 7746*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p ${CC}_r 7747*6a54128fSAndroid Build Coastguard Workerthen : 7748*6a54128fSAndroid Build Coastguard Worker PTHREAD_CC="${CC}_r" 7749*6a54128fSAndroid Build Coastguard Workerfi 7750*6a54128fSAndroid Build Coastguard Worker if test "x${CXX}" != "x" 7751*6a54128fSAndroid Build Coastguard Workerthen : 7752*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p ${CXX}_r 7753*6a54128fSAndroid Build Coastguard Workerthen : 7754*6a54128fSAndroid Build Coastguard Worker PTHREAD_CXX="${CXX}_r" 7755*6a54128fSAndroid Build Coastguard Workerfi 7756*6a54128fSAndroid Build Coastguard Workerfi 7757*6a54128fSAndroid Build Coastguard Worker ;; #( 7758*6a54128fSAndroid Build Coastguard Worker *) : 7759*6a54128fSAndroid Build Coastguard Worker 7760*6a54128fSAndroid Build Coastguard Worker for ac_prog in ${CC}_r 7761*6a54128fSAndroid Build Coastguard Workerdo 7762*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "$ac_prog", so it can be a program name with args. 7763*6a54128fSAndroid Build Coastguard Workerset dummy $ac_prog; ac_word=$2 7764*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7765*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 7766*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_PTHREAD_CC+y} 7767*6a54128fSAndroid Build Coastguard Workerthen : 7768*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 7769*6a54128fSAndroid Build Coastguard Workerelse $as_nop 7770*6a54128fSAndroid Build Coastguard Worker if test -n "$PTHREAD_CC"; then 7771*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 7772*6a54128fSAndroid Build Coastguard Workerelse 7773*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7774*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 7775*6a54128fSAndroid Build Coastguard Workerdo 7776*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 7777*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 7778*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 7779*6a54128fSAndroid Build Coastguard Worker */) ;; 7780*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 7781*6a54128fSAndroid Build Coastguard Worker esac 7782*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 7783*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7784*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_PTHREAD_CC="$ac_prog" 7785*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7786*6a54128fSAndroid Build Coastguard Worker break 2 7787*6a54128fSAndroid Build Coastguard Worker fi 7788*6a54128fSAndroid Build Coastguard Workerdone 7789*6a54128fSAndroid Build Coastguard Worker done 7790*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 7791*6a54128fSAndroid Build Coastguard Worker 7792*6a54128fSAndroid Build Coastguard Workerfi 7793*6a54128fSAndroid Build Coastguard Workerfi 7794*6a54128fSAndroid Build Coastguard WorkerPTHREAD_CC=$ac_cv_prog_PTHREAD_CC 7795*6a54128fSAndroid Build Coastguard Workerif test -n "$PTHREAD_CC"; then 7796*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 7797*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$PTHREAD_CC" >&6; } 7798*6a54128fSAndroid Build Coastguard Workerelse 7799*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7800*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 7801*6a54128fSAndroid Build Coastguard Workerfi 7802*6a54128fSAndroid Build Coastguard Worker 7803*6a54128fSAndroid Build Coastguard Worker 7804*6a54128fSAndroid Build Coastguard Worker test -n "$PTHREAD_CC" && break 7805*6a54128fSAndroid Build Coastguard Workerdone 7806*6a54128fSAndroid Build Coastguard Workertest -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 7807*6a54128fSAndroid Build Coastguard Worker 7808*6a54128fSAndroid Build Coastguard Worker if test "x${CXX}" != "x" 7809*6a54128fSAndroid Build Coastguard Workerthen : 7810*6a54128fSAndroid Build Coastguard Worker for ac_prog in ${CXX}_r 7811*6a54128fSAndroid Build Coastguard Workerdo 7812*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "$ac_prog", so it can be a program name with args. 7813*6a54128fSAndroid Build Coastguard Workerset dummy $ac_prog; ac_word=$2 7814*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7815*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 7816*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_PTHREAD_CXX+y} 7817*6a54128fSAndroid Build Coastguard Workerthen : 7818*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 7819*6a54128fSAndroid Build Coastguard Workerelse $as_nop 7820*6a54128fSAndroid Build Coastguard Worker if test -n "$PTHREAD_CXX"; then 7821*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. 7822*6a54128fSAndroid Build Coastguard Workerelse 7823*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7824*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 7825*6a54128fSAndroid Build Coastguard Workerdo 7826*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 7827*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 7828*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 7829*6a54128fSAndroid Build Coastguard Worker */) ;; 7830*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 7831*6a54128fSAndroid Build Coastguard Worker esac 7832*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 7833*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7834*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_PTHREAD_CXX="$ac_prog" 7835*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7836*6a54128fSAndroid Build Coastguard Worker break 2 7837*6a54128fSAndroid Build Coastguard Worker fi 7838*6a54128fSAndroid Build Coastguard Workerdone 7839*6a54128fSAndroid Build Coastguard Worker done 7840*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 7841*6a54128fSAndroid Build Coastguard Worker 7842*6a54128fSAndroid Build Coastguard Workerfi 7843*6a54128fSAndroid Build Coastguard Workerfi 7844*6a54128fSAndroid Build Coastguard WorkerPTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX 7845*6a54128fSAndroid Build Coastguard Workerif test -n "$PTHREAD_CXX"; then 7846*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 7847*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$PTHREAD_CXX" >&6; } 7848*6a54128fSAndroid Build Coastguard Workerelse 7849*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7850*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 7851*6a54128fSAndroid Build Coastguard Workerfi 7852*6a54128fSAndroid Build Coastguard Worker 7853*6a54128fSAndroid Build Coastguard Worker 7854*6a54128fSAndroid Build Coastguard Worker test -n "$PTHREAD_CXX" && break 7855*6a54128fSAndroid Build Coastguard Workerdone 7856*6a54128fSAndroid Build Coastguard Workertest -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 7857*6a54128fSAndroid Build Coastguard Worker 7858*6a54128fSAndroid Build Coastguard Workerfi 7859*6a54128fSAndroid Build Coastguard Worker 7860*6a54128fSAndroid Build Coastguard Worker ;; 7861*6a54128fSAndroid Build Coastguard Workeresac 7862*6a54128fSAndroid Build Coastguard Worker ;; #( 7863*6a54128fSAndroid Build Coastguard Worker *) : 7864*6a54128fSAndroid Build Coastguard Worker ;; 7865*6a54128fSAndroid Build Coastguard Workeresac 7866*6a54128fSAndroid Build Coastguard Worker ;; 7867*6a54128fSAndroid Build Coastguard Worker esac 7868*6a54128fSAndroid Build Coastguard Worker fi 7869*6a54128fSAndroid Build Coastguard Workerfi 7870*6a54128fSAndroid Build Coastguard Worker 7871*6a54128fSAndroid Build Coastguard Workertest -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 7872*6a54128fSAndroid Build Coastguard Workertest -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 7873*6a54128fSAndroid Build Coastguard Worker 7874*6a54128fSAndroid Build Coastguard Worker 7875*6a54128fSAndroid Build Coastguard Worker 7876*6a54128fSAndroid Build Coastguard Worker 7877*6a54128fSAndroid Build Coastguard Worker 7878*6a54128fSAndroid Build Coastguard Worker 7879*6a54128fSAndroid Build Coastguard Worker# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 7880*6a54128fSAndroid Build Coastguard Workerif test "x$ax_pthread_ok" = "xyes"; then 7881*6a54128fSAndroid Build Coastguard Worker 7882*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 7883*6a54128fSAndroid Build Coastguard Worker 7884*6a54128fSAndroid Build Coastguard Worker : 7885*6a54128fSAndroid Build Coastguard Workerelse 7886*6a54128fSAndroid Build Coastguard Worker ax_pthread_ok=no 7887*6a54128fSAndroid Build Coastguard Worker 7888*6a54128fSAndroid Build Coastguard Workerfi 7889*6a54128fSAndroid Build Coastguard Workerac_ext=c 7890*6a54128fSAndroid Build Coastguard Workerac_cpp='$CPP $CPPFLAGS' 7891*6a54128fSAndroid Build Coastguard Workerac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7892*6a54128fSAndroid Build Coastguard Workerac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7893*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_c_compiler_gnu 7894*6a54128fSAndroid Build Coastguard Worker 7895*6a54128fSAndroid Build Coastguard Worker 7896*6a54128fSAndroid Build Coastguard Workerelse 7897*6a54128fSAndroid Build Coastguard Workertest -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 7898*6a54128fSAndroid Build Coastguard Worker 7899*6a54128fSAndroid Build Coastguard Workerfi 7900*6a54128fSAndroid Build Coastguard Worker 7901*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-uuidd was given. 7902*6a54128fSAndroid Build Coastguard Workerif test ${enable_uuidd+y} 7903*6a54128fSAndroid Build Coastguard Workerthen : 7904*6a54128fSAndroid Build Coastguard Worker enableval=$enable_uuidd; if test "$enableval" = "no" 7905*6a54128fSAndroid Build Coastguard Workerthen 7906*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 7907*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Not building uuidd" >&6; } 7908*6a54128fSAndroid Build Coastguard Worker UUIDD_CMT="#" 7909*6a54128fSAndroid Build Coastguard Workerelse 7910*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h 7911*6a54128fSAndroid Build Coastguard Worker 7912*6a54128fSAndroid Build Coastguard Worker UUIDD_CMT="" 7913*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 7914*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Building uuidd" >&6; } 7915*6a54128fSAndroid Build Coastguard Workerfi 7916*6a54128fSAndroid Build Coastguard Worker 7917*6a54128fSAndroid Build Coastguard Workerelse $as_nop 7918*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h 7919*6a54128fSAndroid Build Coastguard Worker 7920*6a54128fSAndroid Build Coastguard Workerif test -z "$UUID_CMT" 7921*6a54128fSAndroid Build Coastguard Workerthen 7922*6a54128fSAndroid Build Coastguard Worker UUIDD_CMT="" 7923*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 7924*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Building uuidd by default" >&6; } 7925*6a54128fSAndroid Build Coastguard Workerelse 7926*6a54128fSAndroid Build Coastguard Worker UUIDD_CMT="#" 7927*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5 7928*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling uuidd by default" >&6; } 7929*6a54128fSAndroid Build Coastguard Workerfi 7930*6a54128fSAndroid Build Coastguard Worker 7931*6a54128fSAndroid Build Coastguard Workerfi 7932*6a54128fSAndroid Build Coastguard Worker 7933*6a54128fSAndroid Build Coastguard Worker 7934*6a54128fSAndroid Build Coastguard Worker 7935*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-mmp was given. 7936*6a54128fSAndroid Build Coastguard Workerif test ${enable_mmp+y} 7937*6a54128fSAndroid Build Coastguard Workerthen : 7938*6a54128fSAndroid Build Coastguard Worker enableval=$enable_mmp; if test "$enableval" = "no" 7939*6a54128fSAndroid Build Coastguard Workerthen 7940*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5 7941*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling mmp support" >&6; } 7942*6a54128fSAndroid Build Coastguard Workerelse 7943*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5 7944*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling mmp support" >&6; } 7945*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h 7946*6a54128fSAndroid Build Coastguard Worker 7947*6a54128fSAndroid Build Coastguard Workerfi 7948*6a54128fSAndroid Build Coastguard Worker 7949*6a54128fSAndroid Build Coastguard Workerelse $as_nop 7950*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 7951*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling mmp support by default" >&6; } 7952*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h 7953*6a54128fSAndroid Build Coastguard Worker 7954*6a54128fSAndroid Build Coastguard Worker 7955*6a54128fSAndroid Build Coastguard Workerfi 7956*6a54128fSAndroid Build Coastguard Worker 7957*6a54128fSAndroid Build Coastguard Worker 7958*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-tdb was given. 7959*6a54128fSAndroid Build Coastguard Workerif test ${enable_tdb+y} 7960*6a54128fSAndroid Build Coastguard Workerthen : 7961*6a54128fSAndroid Build Coastguard Worker enableval=$enable_tdb; 7962*6a54128fSAndroid Build Coastguard Workerif test "$enableval" = "no" 7963*6a54128fSAndroid Build Coastguard Workerthen 7964*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5 7965*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling tdb support" >&6; } 7966*6a54128fSAndroid Build Coastguard Worker CONFIG_TDB=0 7967*6a54128fSAndroid Build Coastguard Workerelse 7968*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5 7969*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling tdb support" >&6; } 7970*6a54128fSAndroid Build Coastguard Worker CONFIG_TDB=1 7971*6a54128fSAndroid Build Coastguard Workerfi 7972*6a54128fSAndroid Build Coastguard Worker 7973*6a54128fSAndroid Build Coastguard Worker 7974*6a54128fSAndroid Build Coastguard Workerelse $as_nop 7975*6a54128fSAndroid Build Coastguard Worker 7976*6a54128fSAndroid Build Coastguard Workercase "$host_os" in 7977*6a54128fSAndroid Build Coastguard Workermingw*) 7978*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5 7979*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling tdb support by default" >&6; } 7980*6a54128fSAndroid Build Coastguard Worker CONFIG_TDB=0 7981*6a54128fSAndroid Build Coastguard Worker ;; 7982*6a54128fSAndroid Build Coastguard Worker*) 7983*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5 7984*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling tdb support by default" >&6; } 7985*6a54128fSAndroid Build Coastguard Worker CONFIG_TDB=1 7986*6a54128fSAndroid Build Coastguard Worker ;; 7987*6a54128fSAndroid Build Coastguard Workeresac 7988*6a54128fSAndroid Build Coastguard Worker 7989*6a54128fSAndroid Build Coastguard Worker 7990*6a54128fSAndroid Build Coastguard Workerfi 7991*6a54128fSAndroid Build Coastguard Worker 7992*6a54128fSAndroid Build Coastguard Workerif test "$CONFIG_TDB" = "1" 7993*6a54128fSAndroid Build Coastguard Workerthen 7994*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h 7995*6a54128fSAndroid Build Coastguard Worker 7996*6a54128fSAndroid Build Coastguard Worker TDB_CMT="" 7997*6a54128fSAndroid Build Coastguard Worker TDB_MAN_COMMENT="" 7998*6a54128fSAndroid Build Coastguard Workerelse 7999*6a54128fSAndroid Build Coastguard Worker TDB_CMT="#" 8000*6a54128fSAndroid Build Coastguard Worker TDB_MAN_COMMENT='.\"' 8001*6a54128fSAndroid Build Coastguard Workerfi 8002*6a54128fSAndroid Build Coastguard Worker 8003*6a54128fSAndroid Build Coastguard Worker 8004*6a54128fSAndroid Build Coastguard Worker 8005*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-bmap-stats was given. 8006*6a54128fSAndroid Build Coastguard Workerif test ${enable_bmap_stats+y} 8007*6a54128fSAndroid Build Coastguard Workerthen : 8008*6a54128fSAndroid Build Coastguard Worker enableval=$enable_bmap_stats; if test "$enableval" = "no" 8009*6a54128fSAndroid Build Coastguard Workerthen 8010*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5 8011*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling bitmap statistics support" >&6; } 8012*6a54128fSAndroid Build Coastguard Workerelse 8013*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5 8014*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling bitmap statistics support" >&6; } 8015*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h 8016*6a54128fSAndroid Build Coastguard Worker 8017*6a54128fSAndroid Build Coastguard Workerfi 8018*6a54128fSAndroid Build Coastguard Worker 8019*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8020*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5 8021*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling bitmap statistics support by default" >&6; } 8022*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h 8023*6a54128fSAndroid Build Coastguard Worker 8024*6a54128fSAndroid Build Coastguard Worker 8025*6a54128fSAndroid Build Coastguard Workerfi 8026*6a54128fSAndroid Build Coastguard Worker 8027*6a54128fSAndroid Build Coastguard Worker 8028*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-bmap-stats-ops was given. 8029*6a54128fSAndroid Build Coastguard Workerif test ${enable_bmap_stats_ops+y} 8030*6a54128fSAndroid Build Coastguard Workerthen : 8031*6a54128fSAndroid Build Coastguard Worker enableval=$enable_bmap_stats_ops; if test "$enableval" = "no" 8032*6a54128fSAndroid Build Coastguard Workerthen 8033*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5 8034*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling additional bitmap statistics" >&6; } 8035*6a54128fSAndroid Build Coastguard Workerelse 8036*6a54128fSAndroid Build Coastguard Worker if test "x${enable_bmap_stats}" = "xno" 8037*6a54128fSAndroid Build Coastguard Workerthen : 8038*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8039*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 8040*6a54128fSAndroid Build Coastguard Workeras_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats 8041*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 8042*6a54128fSAndroid Build Coastguard Workerfi 8043*6a54128fSAndroid Build Coastguard Worker 8044*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5 8045*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling additional bitmap statistics" >&6; } 8046*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h 8047*6a54128fSAndroid Build Coastguard Worker 8048*6a54128fSAndroid Build Coastguard Workerfi 8049*6a54128fSAndroid Build Coastguard Worker 8050*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8051*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5 8052*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling additional bitmap statistics by default" >&6; } 8053*6a54128fSAndroid Build Coastguard Worker 8054*6a54128fSAndroid Build Coastguard Workerfi 8055*6a54128fSAndroid Build Coastguard Worker 8056*6a54128fSAndroid Build Coastguard WorkerMAKEFILE_LIBRARY=$srcdir/lib/Makefile.library 8057*6a54128fSAndroid Build Coastguard Worker 8058*6a54128fSAndroid Build Coastguard WorkerGETTEXT_PACKAGE=e2fsprogs 8059*6a54128fSAndroid Build Coastguard WorkerPACKAGE=e2fsprogs 8060*6a54128fSAndroid Build Coastguard WorkerVERSION="$E2FSPROGS_VERSION" 8061*6a54128fSAndroid Build Coastguard WorkerVERSION=0.14.1 8062*6a54128fSAndroid Build Coastguard Worker 8063*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 8064*6a54128fSAndroid Build Coastguard Worker 8065*6a54128fSAndroid Build Coastguard Worker 8066*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 8067*6a54128fSAndroid Build Coastguard Worker 8068*6a54128fSAndroid Build Coastguard Worker 8069*6a54128fSAndroid Build Coastguard Worker 8070*6a54128fSAndroid Build Coastguard Worker 8071*6a54128fSAndroid Build Coastguard Worker 8072*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 8073*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 8074*6a54128fSAndroid Build Coastguard Workerset x ${MAKE-make} 8075*6a54128fSAndroid Build Coastguard Workerac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 8076*6a54128fSAndroid Build Coastguard Workerif eval test \${ac_cv_prog_make_${ac_make}_set+y} 8077*6a54128fSAndroid Build Coastguard Workerthen : 8078*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 8079*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8080*6a54128fSAndroid Build Coastguard Worker cat >conftest.make <<\_ACEOF 8081*6a54128fSAndroid Build Coastguard WorkerSHELL = /bin/sh 8082*6a54128fSAndroid Build Coastguard Workerall: 8083*6a54128fSAndroid Build Coastguard Worker @echo '@@@%%%=$(MAKE)=@@@%%%' 8084*6a54128fSAndroid Build Coastguard Worker_ACEOF 8085*6a54128fSAndroid Build Coastguard Worker# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8086*6a54128fSAndroid Build Coastguard Workercase `${MAKE-make} -f conftest.make 2>/dev/null` in 8087*6a54128fSAndroid Build Coastguard Worker *@@@%%%=?*=@@@%%%*) 8088*6a54128fSAndroid Build Coastguard Worker eval ac_cv_prog_make_${ac_make}_set=yes;; 8089*6a54128fSAndroid Build Coastguard Worker *) 8090*6a54128fSAndroid Build Coastguard Worker eval ac_cv_prog_make_${ac_make}_set=no;; 8091*6a54128fSAndroid Build Coastguard Workeresac 8092*6a54128fSAndroid Build Coastguard Workerrm -f conftest.make 8093*6a54128fSAndroid Build Coastguard Workerfi 8094*6a54128fSAndroid Build Coastguard Workerif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 8095*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8096*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "yes" >&6; } 8097*6a54128fSAndroid Build Coastguard Worker SET_MAKE= 8098*6a54128fSAndroid Build Coastguard Workerelse 8099*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8100*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 8101*6a54128fSAndroid Build Coastguard Worker SET_MAKE="MAKE=${MAKE-make}" 8102*6a54128fSAndroid Build Coastguard Workerfi 8103*6a54128fSAndroid Build Coastguard Worker 8104*6a54128fSAndroid Build Coastguard Worker 8105*6a54128fSAndroid Build Coastguard Worker # Find a good install program. We prefer a C program (faster), 8106*6a54128fSAndroid Build Coastguard Worker# so one script is as good as another. But avoid the broken or 8107*6a54128fSAndroid Build Coastguard Worker# incompatible versions: 8108*6a54128fSAndroid Build Coastguard Worker# SysV /etc/install, /usr/sbin/install 8109*6a54128fSAndroid Build Coastguard Worker# SunOS /usr/etc/install 8110*6a54128fSAndroid Build Coastguard Worker# IRIX /sbin/install 8111*6a54128fSAndroid Build Coastguard Worker# AIX /bin/install 8112*6a54128fSAndroid Build Coastguard Worker# AmigaOS /C/install, which installs bootblocks on floppy discs 8113*6a54128fSAndroid Build Coastguard Worker# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 8114*6a54128fSAndroid Build Coastguard Worker# AFS /usr/afsws/bin/install, which mishandles nonexistent args 8115*6a54128fSAndroid Build Coastguard Worker# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 8116*6a54128fSAndroid Build Coastguard Worker# OS/2's system install, which has a completely different semantic 8117*6a54128fSAndroid Build Coastguard Worker# ./install, which can be erroneously created by make from ./install.sh. 8118*6a54128fSAndroid Build Coastguard Worker# Reject install programs that cannot install multiple files. 8119*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 8120*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for a BSD-compatible install... " >&6; } 8121*6a54128fSAndroid Build Coastguard Workerif test -z "$INSTALL"; then 8122*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_install+y} 8123*6a54128fSAndroid Build Coastguard Workerthen : 8124*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 8125*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8126*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8127*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 8128*6a54128fSAndroid Build Coastguard Workerdo 8129*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 8130*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 8131*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 8132*6a54128fSAndroid Build Coastguard Worker */) ;; 8133*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 8134*6a54128fSAndroid Build Coastguard Worker esac 8135*6a54128fSAndroid Build Coastguard Worker # Account for fact that we put trailing slashes in our PATH walk. 8136*6a54128fSAndroid Build Coastguard Workercase $as_dir in #(( 8137*6a54128fSAndroid Build Coastguard Worker ./ | /[cC]/* | \ 8138*6a54128fSAndroid Build Coastguard Worker /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 8139*6a54128fSAndroid Build Coastguard Worker ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 8140*6a54128fSAndroid Build Coastguard Worker /usr/ucb/* ) ;; 8141*6a54128fSAndroid Build Coastguard Worker *) 8142*6a54128fSAndroid Build Coastguard Worker # OSF1 and SCO ODT 3.0 have their own names for install. 8143*6a54128fSAndroid Build Coastguard Worker # Don't use installbsd from OSF since it installs stuff as root 8144*6a54128fSAndroid Build Coastguard Worker # by default. 8145*6a54128fSAndroid Build Coastguard Worker for ac_prog in ginstall scoinst install; do 8146*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 8147*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 8148*6a54128fSAndroid Build Coastguard Worker if test $ac_prog = install && 8149*6a54128fSAndroid Build Coastguard Worker grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8150*6a54128fSAndroid Build Coastguard Worker # AIX install. It has an incompatible calling convention. 8151*6a54128fSAndroid Build Coastguard Worker : 8152*6a54128fSAndroid Build Coastguard Worker elif test $ac_prog = install && 8153*6a54128fSAndroid Build Coastguard Worker grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8154*6a54128fSAndroid Build Coastguard Worker # program-specific install script used by HP pwplus--don't use. 8155*6a54128fSAndroid Build Coastguard Worker : 8156*6a54128fSAndroid Build Coastguard Worker else 8157*6a54128fSAndroid Build Coastguard Worker rm -rf conftest.one conftest.two conftest.dir 8158*6a54128fSAndroid Build Coastguard Worker echo one > conftest.one 8159*6a54128fSAndroid Build Coastguard Worker echo two > conftest.two 8160*6a54128fSAndroid Build Coastguard Worker mkdir conftest.dir 8161*6a54128fSAndroid Build Coastguard Worker if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 8162*6a54128fSAndroid Build Coastguard Worker test -s conftest.one && test -s conftest.two && 8163*6a54128fSAndroid Build Coastguard Worker test -s conftest.dir/conftest.one && 8164*6a54128fSAndroid Build Coastguard Worker test -s conftest.dir/conftest.two 8165*6a54128fSAndroid Build Coastguard Worker then 8166*6a54128fSAndroid Build Coastguard Worker ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 8167*6a54128fSAndroid Build Coastguard Worker break 3 8168*6a54128fSAndroid Build Coastguard Worker fi 8169*6a54128fSAndroid Build Coastguard Worker fi 8170*6a54128fSAndroid Build Coastguard Worker fi 8171*6a54128fSAndroid Build Coastguard Worker done 8172*6a54128fSAndroid Build Coastguard Worker done 8173*6a54128fSAndroid Build Coastguard Worker ;; 8174*6a54128fSAndroid Build Coastguard Workeresac 8175*6a54128fSAndroid Build Coastguard Worker 8176*6a54128fSAndroid Build Coastguard Worker done 8177*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 8178*6a54128fSAndroid Build Coastguard Worker 8179*6a54128fSAndroid Build Coastguard Workerrm -rf conftest.one conftest.two conftest.dir 8180*6a54128fSAndroid Build Coastguard Worker 8181*6a54128fSAndroid Build Coastguard Workerfi 8182*6a54128fSAndroid Build Coastguard Worker if test ${ac_cv_path_install+y}; then 8183*6a54128fSAndroid Build Coastguard Worker INSTALL=$ac_cv_path_install 8184*6a54128fSAndroid Build Coastguard Worker else 8185*6a54128fSAndroid Build Coastguard Worker # As a last resort, use the slow shell script. Don't cache a 8186*6a54128fSAndroid Build Coastguard Worker # value for INSTALL within a source directory, because that will 8187*6a54128fSAndroid Build Coastguard Worker # break other packages using the cache if that directory is 8188*6a54128fSAndroid Build Coastguard Worker # removed, or if the value is a relative name. 8189*6a54128fSAndroid Build Coastguard Worker INSTALL=$ac_install_sh 8190*6a54128fSAndroid Build Coastguard Worker fi 8191*6a54128fSAndroid Build Coastguard Workerfi 8192*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 8193*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$INSTALL" >&6; } 8194*6a54128fSAndroid Build Coastguard Worker 8195*6a54128fSAndroid Build Coastguard Worker# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 8196*6a54128fSAndroid Build Coastguard Worker# It thinks the first close brace ends the variable substitution. 8197*6a54128fSAndroid Build Coastguard Workertest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 8198*6a54128fSAndroid Build Coastguard Worker 8199*6a54128fSAndroid Build Coastguard Workertest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 8200*6a54128fSAndroid Build Coastguard Worker 8201*6a54128fSAndroid Build Coastguard Workertest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 8202*6a54128fSAndroid Build Coastguard Worker 8203*6a54128fSAndroid Build Coastguard Worker 8204*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 8205*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for a race-free mkdir -p... " >&6; } 8206*6a54128fSAndroid Build Coastguard Workerif test -z "$MKDIR_P"; then 8207*6a54128fSAndroid Build Coastguard Worker if test ${ac_cv_path_mkdir+y} 8208*6a54128fSAndroid Build Coastguard Workerthen : 8209*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 8210*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8211*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8212*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 8213*6a54128fSAndroid Build Coastguard Workerdo 8214*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 8215*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 8216*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 8217*6a54128fSAndroid Build Coastguard Worker */) ;; 8218*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 8219*6a54128fSAndroid Build Coastguard Worker esac 8220*6a54128fSAndroid Build Coastguard Worker for ac_prog in mkdir gmkdir; do 8221*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 8222*6a54128fSAndroid Build Coastguard Worker as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 8223*6a54128fSAndroid Build Coastguard Worker case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 8224*6a54128fSAndroid Build Coastguard Worker 'mkdir ('*'coreutils) '* | \ 8225*6a54128fSAndroid Build Coastguard Worker 'BusyBox '* | \ 8226*6a54128fSAndroid Build Coastguard Worker 'mkdir (fileutils) '4.1*) 8227*6a54128fSAndroid Build Coastguard Worker ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 8228*6a54128fSAndroid Build Coastguard Worker break 3;; 8229*6a54128fSAndroid Build Coastguard Worker esac 8230*6a54128fSAndroid Build Coastguard Worker done 8231*6a54128fSAndroid Build Coastguard Worker done 8232*6a54128fSAndroid Build Coastguard Worker done 8233*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 8234*6a54128fSAndroid Build Coastguard Worker 8235*6a54128fSAndroid Build Coastguard Workerfi 8236*6a54128fSAndroid Build Coastguard Worker 8237*6a54128fSAndroid Build Coastguard Worker test -d ./--version && rmdir ./--version 8238*6a54128fSAndroid Build Coastguard Worker if test ${ac_cv_path_mkdir+y}; then 8239*6a54128fSAndroid Build Coastguard Worker MKDIR_P="$ac_cv_path_mkdir -p" 8240*6a54128fSAndroid Build Coastguard Worker else 8241*6a54128fSAndroid Build Coastguard Worker # As a last resort, use the slow shell script. Don't cache a 8242*6a54128fSAndroid Build Coastguard Worker # value for MKDIR_P within a source directory, because that will 8243*6a54128fSAndroid Build Coastguard Worker # break other packages using the cache if that directory is 8244*6a54128fSAndroid Build Coastguard Worker # removed, or if the value is a relative name. 8245*6a54128fSAndroid Build Coastguard Worker MKDIR_P="$ac_install_sh -d" 8246*6a54128fSAndroid Build Coastguard Worker fi 8247*6a54128fSAndroid Build Coastguard Workerfi 8248*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 8249*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$MKDIR_P" >&6; } 8250*6a54128fSAndroid Build Coastguard Worker 8251*6a54128fSAndroid Build Coastguard Worker 8252*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 8253*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether NLS is requested... " >&6; } 8254*6a54128fSAndroid Build Coastguard Worker # Check whether --enable-nls was given. 8255*6a54128fSAndroid Build Coastguard Workerif test ${enable_nls+y} 8256*6a54128fSAndroid Build Coastguard Workerthen : 8257*6a54128fSAndroid Build Coastguard Worker enableval=$enable_nls; USE_NLS=$enableval 8258*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8259*6a54128fSAndroid Build Coastguard Worker USE_NLS=yes 8260*6a54128fSAndroid Build Coastguard Workerfi 8261*6a54128fSAndroid Build Coastguard Worker 8262*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 8263*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$USE_NLS" >&6; } 8264*6a54128fSAndroid Build Coastguard Worker 8265*6a54128fSAndroid Build Coastguard Worker 8266*6a54128fSAndroid Build Coastguard Worker 8267*6a54128fSAndroid Build Coastguard Worker 8268*6a54128fSAndroid Build Coastguard Worker GETTEXT_MACRO_VERSION=0.20 8269*6a54128fSAndroid Build Coastguard Worker 8270*6a54128fSAndroid Build Coastguard Worker 8271*6a54128fSAndroid Build Coastguard Worker 8272*6a54128fSAndroid Build Coastguard Worker 8273*6a54128fSAndroid Build Coastguard Worker# Prepare PATH_SEPARATOR. 8274*6a54128fSAndroid Build Coastguard Worker# The user is always right. 8275*6a54128fSAndroid Build Coastguard Workerif test "${PATH_SEPARATOR+set}" != set; then 8276*6a54128fSAndroid Build Coastguard Worker # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 8277*6a54128fSAndroid Build Coastguard Worker # contains only /bin. Note that ksh looks also at the FPATH variable, 8278*6a54128fSAndroid Build Coastguard Worker # so we have to set that as well for the test. 8279*6a54128fSAndroid Build Coastguard Worker PATH_SEPARATOR=: 8280*6a54128fSAndroid Build Coastguard Worker (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 8281*6a54128fSAndroid Build Coastguard Worker && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 8282*6a54128fSAndroid Build Coastguard Worker || PATH_SEPARATOR=';' 8283*6a54128fSAndroid Build Coastguard Worker } 8284*6a54128fSAndroid Build Coastguard Workerfi 8285*6a54128fSAndroid Build Coastguard Worker 8286*6a54128fSAndroid Build Coastguard Worker# Find out how to test for executable files. Don't use a zero-byte file, 8287*6a54128fSAndroid Build Coastguard Worker# as systems may use methods other than mode bits to determine executability. 8288*6a54128fSAndroid Build Coastguard Workercat >conf$$.file <<_ASEOF 8289*6a54128fSAndroid Build Coastguard Worker#! /bin/sh 8290*6a54128fSAndroid Build Coastguard Workerexit 0 8291*6a54128fSAndroid Build Coastguard Worker_ASEOF 8292*6a54128fSAndroid Build Coastguard Workerchmod +x conf$$.file 8293*6a54128fSAndroid Build Coastguard Workerif test -x conf$$.file >/dev/null 2>&1; then 8294*6a54128fSAndroid Build Coastguard Worker ac_executable_p="test -x" 8295*6a54128fSAndroid Build Coastguard Workerelse 8296*6a54128fSAndroid Build Coastguard Worker ac_executable_p="test -f" 8297*6a54128fSAndroid Build Coastguard Workerfi 8298*6a54128fSAndroid Build Coastguard Workerrm -f conf$$.file 8299*6a54128fSAndroid Build Coastguard Worker 8300*6a54128fSAndroid Build Coastguard Worker# Extract the first word of "msgfmt", so it can be a program name with args. 8301*6a54128fSAndroid Build Coastguard Workerset dummy msgfmt; ac_word=$2 8302*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8303*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 8304*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_MSGFMT+y} 8305*6a54128fSAndroid Build Coastguard Workerthen : 8306*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 8307*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8308*6a54128fSAndroid Build Coastguard Worker case "$MSGFMT" in 8309*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 8310*6a54128fSAndroid Build Coastguard Worker ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 8311*6a54128fSAndroid Build Coastguard Worker ;; 8312*6a54128fSAndroid Build Coastguard Worker *) 8313*6a54128fSAndroid Build Coastguard Worker ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 8314*6a54128fSAndroid Build Coastguard Worker for ac_dir in $PATH; do 8315*6a54128fSAndroid Build Coastguard Worker IFS="$ac_save_IFS" 8316*6a54128fSAndroid Build Coastguard Worker test -z "$ac_dir" && ac_dir=. 8317*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 8318*6a54128fSAndroid Build Coastguard Worker if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 8319*6a54128fSAndroid Build Coastguard Worker echo "$as_me: trying $ac_dir/$ac_word..." >&5 8320*6a54128fSAndroid Build Coastguard Worker if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 8321*6a54128fSAndroid Build Coastguard Worker (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 8322*6a54128fSAndroid Build Coastguard Worker ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 8323*6a54128fSAndroid Build Coastguard Worker break 2 8324*6a54128fSAndroid Build Coastguard Worker fi 8325*6a54128fSAndroid Build Coastguard Worker fi 8326*6a54128fSAndroid Build Coastguard Worker done 8327*6a54128fSAndroid Build Coastguard Worker done 8328*6a54128fSAndroid Build Coastguard Worker IFS="$ac_save_IFS" 8329*6a54128fSAndroid Build Coastguard Worker test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 8330*6a54128fSAndroid Build Coastguard Worker ;; 8331*6a54128fSAndroid Build Coastguard Workeresac 8332*6a54128fSAndroid Build Coastguard Workerfi 8333*6a54128fSAndroid Build Coastguard WorkerMSGFMT="$ac_cv_path_MSGFMT" 8334*6a54128fSAndroid Build Coastguard Workerif test "$MSGFMT" != ":"; then 8335*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 8336*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$MSGFMT" >&6; } 8337*6a54128fSAndroid Build Coastguard Workerelse 8338*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8339*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 8340*6a54128fSAndroid Build Coastguard Workerfi 8341*6a54128fSAndroid Build Coastguard Worker 8342*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "gmsgfmt", so it can be a program name with args. 8343*6a54128fSAndroid Build Coastguard Workerset dummy gmsgfmt; ac_word=$2 8344*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8345*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 8346*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_GMSGFMT+y} 8347*6a54128fSAndroid Build Coastguard Workerthen : 8348*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 8349*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8350*6a54128fSAndroid Build Coastguard Worker case $GMSGFMT in 8351*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 8352*6a54128fSAndroid Build Coastguard Worker ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 8353*6a54128fSAndroid Build Coastguard Worker ;; 8354*6a54128fSAndroid Build Coastguard Worker *) 8355*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8356*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 8357*6a54128fSAndroid Build Coastguard Workerdo 8358*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 8359*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 8360*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 8361*6a54128fSAndroid Build Coastguard Worker */) ;; 8362*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 8363*6a54128fSAndroid Build Coastguard Worker esac 8364*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 8365*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8366*6a54128fSAndroid Build Coastguard Worker ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext" 8367*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8368*6a54128fSAndroid Build Coastguard Worker break 2 8369*6a54128fSAndroid Build Coastguard Worker fi 8370*6a54128fSAndroid Build Coastguard Workerdone 8371*6a54128fSAndroid Build Coastguard Worker done 8372*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 8373*6a54128fSAndroid Build Coastguard Worker 8374*6a54128fSAndroid Build Coastguard Worker test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 8375*6a54128fSAndroid Build Coastguard Worker ;; 8376*6a54128fSAndroid Build Coastguard Workeresac 8377*6a54128fSAndroid Build Coastguard Workerfi 8378*6a54128fSAndroid Build Coastguard WorkerGMSGFMT=$ac_cv_path_GMSGFMT 8379*6a54128fSAndroid Build Coastguard Workerif test -n "$GMSGFMT"; then 8380*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 8381*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$GMSGFMT" >&6; } 8382*6a54128fSAndroid Build Coastguard Workerelse 8383*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8384*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 8385*6a54128fSAndroid Build Coastguard Workerfi 8386*6a54128fSAndroid Build Coastguard Worker 8387*6a54128fSAndroid Build Coastguard Worker 8388*6a54128fSAndroid Build Coastguard Worker 8389*6a54128fSAndroid Build Coastguard Worker case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 8390*6a54128fSAndroid Build Coastguard Worker '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 8391*6a54128fSAndroid Build Coastguard Worker *) GMSGFMT_015=$GMSGFMT ;; 8392*6a54128fSAndroid Build Coastguard Worker esac 8393*6a54128fSAndroid Build Coastguard Worker 8394*6a54128fSAndroid Build Coastguard Worker 8395*6a54128fSAndroid Build Coastguard Worker 8396*6a54128fSAndroid Build Coastguard Worker# Prepare PATH_SEPARATOR. 8397*6a54128fSAndroid Build Coastguard Worker# The user is always right. 8398*6a54128fSAndroid Build Coastguard Workerif test "${PATH_SEPARATOR+set}" != set; then 8399*6a54128fSAndroid Build Coastguard Worker # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 8400*6a54128fSAndroid Build Coastguard Worker # contains only /bin. Note that ksh looks also at the FPATH variable, 8401*6a54128fSAndroid Build Coastguard Worker # so we have to set that as well for the test. 8402*6a54128fSAndroid Build Coastguard Worker PATH_SEPARATOR=: 8403*6a54128fSAndroid Build Coastguard Worker (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 8404*6a54128fSAndroid Build Coastguard Worker && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 8405*6a54128fSAndroid Build Coastguard Worker || PATH_SEPARATOR=';' 8406*6a54128fSAndroid Build Coastguard Worker } 8407*6a54128fSAndroid Build Coastguard Workerfi 8408*6a54128fSAndroid Build Coastguard Worker 8409*6a54128fSAndroid Build Coastguard Worker# Find out how to test for executable files. Don't use a zero-byte file, 8410*6a54128fSAndroid Build Coastguard Worker# as systems may use methods other than mode bits to determine executability. 8411*6a54128fSAndroid Build Coastguard Workercat >conf$$.file <<_ASEOF 8412*6a54128fSAndroid Build Coastguard Worker#! /bin/sh 8413*6a54128fSAndroid Build Coastguard Workerexit 0 8414*6a54128fSAndroid Build Coastguard Worker_ASEOF 8415*6a54128fSAndroid Build Coastguard Workerchmod +x conf$$.file 8416*6a54128fSAndroid Build Coastguard Workerif test -x conf$$.file >/dev/null 2>&1; then 8417*6a54128fSAndroid Build Coastguard Worker ac_executable_p="test -x" 8418*6a54128fSAndroid Build Coastguard Workerelse 8419*6a54128fSAndroid Build Coastguard Worker ac_executable_p="test -f" 8420*6a54128fSAndroid Build Coastguard Workerfi 8421*6a54128fSAndroid Build Coastguard Workerrm -f conf$$.file 8422*6a54128fSAndroid Build Coastguard Worker 8423*6a54128fSAndroid Build Coastguard Worker# Extract the first word of "xgettext", so it can be a program name with args. 8424*6a54128fSAndroid Build Coastguard Workerset dummy xgettext; ac_word=$2 8425*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8426*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 8427*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_XGETTEXT+y} 8428*6a54128fSAndroid Build Coastguard Workerthen : 8429*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 8430*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8431*6a54128fSAndroid Build Coastguard Worker case "$XGETTEXT" in 8432*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 8433*6a54128fSAndroid Build Coastguard Worker ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 8434*6a54128fSAndroid Build Coastguard Worker ;; 8435*6a54128fSAndroid Build Coastguard Worker *) 8436*6a54128fSAndroid Build Coastguard Worker ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 8437*6a54128fSAndroid Build Coastguard Worker for ac_dir in $PATH; do 8438*6a54128fSAndroid Build Coastguard Worker IFS="$ac_save_IFS" 8439*6a54128fSAndroid Build Coastguard Worker test -z "$ac_dir" && ac_dir=. 8440*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 8441*6a54128fSAndroid Build Coastguard Worker if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 8442*6a54128fSAndroid Build Coastguard Worker echo "$as_me: trying $ac_dir/$ac_word..." >&5 8443*6a54128fSAndroid Build Coastguard Worker if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 8444*6a54128fSAndroid Build Coastguard Worker (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 8445*6a54128fSAndroid Build Coastguard Worker ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 8446*6a54128fSAndroid Build Coastguard Worker break 2 8447*6a54128fSAndroid Build Coastguard Worker fi 8448*6a54128fSAndroid Build Coastguard Worker fi 8449*6a54128fSAndroid Build Coastguard Worker done 8450*6a54128fSAndroid Build Coastguard Worker done 8451*6a54128fSAndroid Build Coastguard Worker IFS="$ac_save_IFS" 8452*6a54128fSAndroid Build Coastguard Worker test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 8453*6a54128fSAndroid Build Coastguard Worker ;; 8454*6a54128fSAndroid Build Coastguard Workeresac 8455*6a54128fSAndroid Build Coastguard Workerfi 8456*6a54128fSAndroid Build Coastguard WorkerXGETTEXT="$ac_cv_path_XGETTEXT" 8457*6a54128fSAndroid Build Coastguard Workerif test "$XGETTEXT" != ":"; then 8458*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 8459*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$XGETTEXT" >&6; } 8460*6a54128fSAndroid Build Coastguard Workerelse 8461*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8462*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 8463*6a54128fSAndroid Build Coastguard Workerfi 8464*6a54128fSAndroid Build Coastguard Worker 8465*6a54128fSAndroid Build Coastguard Worker rm -f messages.po 8466*6a54128fSAndroid Build Coastguard Worker 8467*6a54128fSAndroid Build Coastguard Worker case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 8468*6a54128fSAndroid Build Coastguard Worker '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 8469*6a54128fSAndroid Build Coastguard Worker *) XGETTEXT_015=$XGETTEXT ;; 8470*6a54128fSAndroid Build Coastguard Worker esac 8471*6a54128fSAndroid Build Coastguard Worker 8472*6a54128fSAndroid Build Coastguard Worker 8473*6a54128fSAndroid Build Coastguard Worker 8474*6a54128fSAndroid Build Coastguard Worker# Prepare PATH_SEPARATOR. 8475*6a54128fSAndroid Build Coastguard Worker# The user is always right. 8476*6a54128fSAndroid Build Coastguard Workerif test "${PATH_SEPARATOR+set}" != set; then 8477*6a54128fSAndroid Build Coastguard Worker # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 8478*6a54128fSAndroid Build Coastguard Worker # contains only /bin. Note that ksh looks also at the FPATH variable, 8479*6a54128fSAndroid Build Coastguard Worker # so we have to set that as well for the test. 8480*6a54128fSAndroid Build Coastguard Worker PATH_SEPARATOR=: 8481*6a54128fSAndroid Build Coastguard Worker (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 8482*6a54128fSAndroid Build Coastguard Worker && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 8483*6a54128fSAndroid Build Coastguard Worker || PATH_SEPARATOR=';' 8484*6a54128fSAndroid Build Coastguard Worker } 8485*6a54128fSAndroid Build Coastguard Workerfi 8486*6a54128fSAndroid Build Coastguard Worker 8487*6a54128fSAndroid Build Coastguard Worker# Find out how to test for executable files. Don't use a zero-byte file, 8488*6a54128fSAndroid Build Coastguard Worker# as systems may use methods other than mode bits to determine executability. 8489*6a54128fSAndroid Build Coastguard Workercat >conf$$.file <<_ASEOF 8490*6a54128fSAndroid Build Coastguard Worker#! /bin/sh 8491*6a54128fSAndroid Build Coastguard Workerexit 0 8492*6a54128fSAndroid Build Coastguard Worker_ASEOF 8493*6a54128fSAndroid Build Coastguard Workerchmod +x conf$$.file 8494*6a54128fSAndroid Build Coastguard Workerif test -x conf$$.file >/dev/null 2>&1; then 8495*6a54128fSAndroid Build Coastguard Worker ac_executable_p="test -x" 8496*6a54128fSAndroid Build Coastguard Workerelse 8497*6a54128fSAndroid Build Coastguard Worker ac_executable_p="test -f" 8498*6a54128fSAndroid Build Coastguard Workerfi 8499*6a54128fSAndroid Build Coastguard Workerrm -f conf$$.file 8500*6a54128fSAndroid Build Coastguard Worker 8501*6a54128fSAndroid Build Coastguard Worker# Extract the first word of "msgmerge", so it can be a program name with args. 8502*6a54128fSAndroid Build Coastguard Workerset dummy msgmerge; ac_word=$2 8503*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8504*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 8505*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_MSGMERGE+y} 8506*6a54128fSAndroid Build Coastguard Workerthen : 8507*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 8508*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8509*6a54128fSAndroid Build Coastguard Worker case "$MSGMERGE" in 8510*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 8511*6a54128fSAndroid Build Coastguard Worker ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 8512*6a54128fSAndroid Build Coastguard Worker ;; 8513*6a54128fSAndroid Build Coastguard Worker *) 8514*6a54128fSAndroid Build Coastguard Worker ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 8515*6a54128fSAndroid Build Coastguard Worker for ac_dir in $PATH; do 8516*6a54128fSAndroid Build Coastguard Worker IFS="$ac_save_IFS" 8517*6a54128fSAndroid Build Coastguard Worker test -z "$ac_dir" && ac_dir=. 8518*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 8519*6a54128fSAndroid Build Coastguard Worker if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 8520*6a54128fSAndroid Build Coastguard Worker echo "$as_me: trying $ac_dir/$ac_word..." >&5 8521*6a54128fSAndroid Build Coastguard Worker if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 8522*6a54128fSAndroid Build Coastguard Worker ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 8523*6a54128fSAndroid Build Coastguard Worker break 2 8524*6a54128fSAndroid Build Coastguard Worker fi 8525*6a54128fSAndroid Build Coastguard Worker fi 8526*6a54128fSAndroid Build Coastguard Worker done 8527*6a54128fSAndroid Build Coastguard Worker done 8528*6a54128fSAndroid Build Coastguard Worker IFS="$ac_save_IFS" 8529*6a54128fSAndroid Build Coastguard Worker test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 8530*6a54128fSAndroid Build Coastguard Worker ;; 8531*6a54128fSAndroid Build Coastguard Workeresac 8532*6a54128fSAndroid Build Coastguard Workerfi 8533*6a54128fSAndroid Build Coastguard WorkerMSGMERGE="$ac_cv_path_MSGMERGE" 8534*6a54128fSAndroid Build Coastguard Workerif test "$MSGMERGE" != ":"; then 8535*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 8536*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$MSGMERGE" >&6; } 8537*6a54128fSAndroid Build Coastguard Workerelse 8538*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8539*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 8540*6a54128fSAndroid Build Coastguard Workerfi 8541*6a54128fSAndroid Build Coastguard Worker 8542*6a54128fSAndroid Build Coastguard Worker 8543*6a54128fSAndroid Build Coastguard Worker if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then 8544*6a54128fSAndroid Build Coastguard Worker MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt' 8545*6a54128fSAndroid Build Coastguard Worker else 8546*6a54128fSAndroid Build Coastguard Worker if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then 8547*6a54128fSAndroid Build Coastguard Worker MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet' 8548*6a54128fSAndroid Build Coastguard Worker else 8549*6a54128fSAndroid Build Coastguard Worker MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet' 8550*6a54128fSAndroid Build Coastguard Worker fi 8551*6a54128fSAndroid Build Coastguard Worker fi 8552*6a54128fSAndroid Build Coastguard Worker 8553*6a54128fSAndroid Build Coastguard Worker 8554*6a54128fSAndroid Build Coastguard Worker test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 8555*6a54128fSAndroid Build Coastguard Worker 8556*6a54128fSAndroid Build Coastguard Worker 8557*6a54128fSAndroid Build Coastguard Worker ac_config_commands="$ac_config_commands po-directories" 8558*6a54128fSAndroid Build Coastguard Worker 8559*6a54128fSAndroid Build Coastguard Worker 8560*6a54128fSAndroid Build Coastguard Worker 8561*6a54128fSAndroid Build Coastguard Worker if test "X$prefix" = "XNONE"; then 8562*6a54128fSAndroid Build Coastguard Worker acl_final_prefix="$ac_default_prefix" 8563*6a54128fSAndroid Build Coastguard Worker else 8564*6a54128fSAndroid Build Coastguard Worker acl_final_prefix="$prefix" 8565*6a54128fSAndroid Build Coastguard Worker fi 8566*6a54128fSAndroid Build Coastguard Worker if test "X$exec_prefix" = "XNONE"; then 8567*6a54128fSAndroid Build Coastguard Worker acl_final_exec_prefix='${prefix}' 8568*6a54128fSAndroid Build Coastguard Worker else 8569*6a54128fSAndroid Build Coastguard Worker acl_final_exec_prefix="$exec_prefix" 8570*6a54128fSAndroid Build Coastguard Worker fi 8571*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 8572*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 8573*6a54128fSAndroid Build Coastguard Worker eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 8574*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 8575*6a54128fSAndroid Build Coastguard Worker 8576*6a54128fSAndroid Build Coastguard Worker 8577*6a54128fSAndroid Build Coastguard Worker 8578*6a54128fSAndroid Build Coastguard Worker# Check whether --with-gnu-ld was given. 8579*6a54128fSAndroid Build Coastguard Workerif test ${with_gnu_ld+y} 8580*6a54128fSAndroid Build Coastguard Workerthen : 8581*6a54128fSAndroid Build Coastguard Worker withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 8582*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8583*6a54128fSAndroid Build Coastguard Worker with_gnu_ld=no 8584*6a54128fSAndroid Build Coastguard Workerfi 8585*6a54128fSAndroid Build Coastguard Worker 8586*6a54128fSAndroid Build Coastguard Worker# Prepare PATH_SEPARATOR. 8587*6a54128fSAndroid Build Coastguard Worker# The user is always right. 8588*6a54128fSAndroid Build Coastguard Workerif test "${PATH_SEPARATOR+set}" != set; then 8589*6a54128fSAndroid Build Coastguard Worker # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 8590*6a54128fSAndroid Build Coastguard Worker # contains only /bin. Note that ksh looks also at the FPATH variable, 8591*6a54128fSAndroid Build Coastguard Worker # so we have to set that as well for the test. 8592*6a54128fSAndroid Build Coastguard Worker PATH_SEPARATOR=: 8593*6a54128fSAndroid Build Coastguard Worker (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 8594*6a54128fSAndroid Build Coastguard Worker && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 8595*6a54128fSAndroid Build Coastguard Worker || PATH_SEPARATOR=';' 8596*6a54128fSAndroid Build Coastguard Worker } 8597*6a54128fSAndroid Build Coastguard Workerfi 8598*6a54128fSAndroid Build Coastguard Worker 8599*6a54128fSAndroid Build Coastguard Workerif test -n "$LD"; then 8600*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 8601*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for ld... " >&6; } 8602*6a54128fSAndroid Build Coastguard Workerelif test "$GCC" = yes; then 8603*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8604*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for ld used by $CC... " >&6; } 8605*6a54128fSAndroid Build Coastguard Workerelif test "$with_gnu_ld" = yes; then 8606*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8607*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for GNU ld... " >&6; } 8608*6a54128fSAndroid Build Coastguard Workerelse 8609*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8610*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for non-GNU ld... " >&6; } 8611*6a54128fSAndroid Build Coastguard Workerfi 8612*6a54128fSAndroid Build Coastguard Workerif test -n "$LD"; then 8613*6a54128fSAndroid Build Coastguard Worker # Let the user override the test with a path. 8614*6a54128fSAndroid Build Coastguard Worker : 8615*6a54128fSAndroid Build Coastguard Workerelse 8616*6a54128fSAndroid Build Coastguard Worker if test ${acl_cv_path_LD+y} 8617*6a54128fSAndroid Build Coastguard Workerthen : 8618*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 8619*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8620*6a54128fSAndroid Build Coastguard Worker 8621*6a54128fSAndroid Build Coastguard Worker acl_cv_path_LD= # Final result of this test 8622*6a54128fSAndroid Build Coastguard Worker ac_prog=ld # Program to search in $PATH 8623*6a54128fSAndroid Build Coastguard Worker if test "$GCC" = yes; then 8624*6a54128fSAndroid Build Coastguard Worker # Check if gcc -print-prog-name=ld gives a path. 8625*6a54128fSAndroid Build Coastguard Worker case $host in 8626*6a54128fSAndroid Build Coastguard Worker *-*-mingw*) 8627*6a54128fSAndroid Build Coastguard Worker # gcc leaves a trailing carriage return which upsets mingw 8628*6a54128fSAndroid Build Coastguard Worker acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8629*6a54128fSAndroid Build Coastguard Worker *) 8630*6a54128fSAndroid Build Coastguard Worker acl_output=`($CC -print-prog-name=ld) 2>&5` ;; 8631*6a54128fSAndroid Build Coastguard Worker esac 8632*6a54128fSAndroid Build Coastguard Worker case $acl_output in 8633*6a54128fSAndroid Build Coastguard Worker # Accept absolute paths. 8634*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 8635*6a54128fSAndroid Build Coastguard Worker re_direlt='/[^/][^/]*/\.\./' 8636*6a54128fSAndroid Build Coastguard Worker # Canonicalize the pathname of ld 8637*6a54128fSAndroid Build Coastguard Worker acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` 8638*6a54128fSAndroid Build Coastguard Worker while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do 8639*6a54128fSAndroid Build Coastguard Worker acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` 8640*6a54128fSAndroid Build Coastguard Worker done 8641*6a54128fSAndroid Build Coastguard Worker # Got the pathname. No search in PATH is needed. 8642*6a54128fSAndroid Build Coastguard Worker acl_cv_path_LD="$acl_output" 8643*6a54128fSAndroid Build Coastguard Worker ac_prog= 8644*6a54128fSAndroid Build Coastguard Worker ;; 8645*6a54128fSAndroid Build Coastguard Worker "") 8646*6a54128fSAndroid Build Coastguard Worker # If it fails, then pretend we aren't using GCC. 8647*6a54128fSAndroid Build Coastguard Worker ;; 8648*6a54128fSAndroid Build Coastguard Worker *) 8649*6a54128fSAndroid Build Coastguard Worker # If it is relative, then search for the first ld in PATH. 8650*6a54128fSAndroid Build Coastguard Worker with_gnu_ld=unknown 8651*6a54128fSAndroid Build Coastguard Worker ;; 8652*6a54128fSAndroid Build Coastguard Worker esac 8653*6a54128fSAndroid Build Coastguard Worker fi 8654*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_prog"; then 8655*6a54128fSAndroid Build Coastguard Worker # Search for $ac_prog in $PATH. 8656*6a54128fSAndroid Build Coastguard Worker acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8657*6a54128fSAndroid Build Coastguard Worker for ac_dir in $PATH; do 8658*6a54128fSAndroid Build Coastguard Worker IFS="$acl_save_ifs" 8659*6a54128fSAndroid Build Coastguard Worker test -z "$ac_dir" && ac_dir=. 8660*6a54128fSAndroid Build Coastguard Worker if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8661*6a54128fSAndroid Build Coastguard Worker acl_cv_path_LD="$ac_dir/$ac_prog" 8662*6a54128fSAndroid Build Coastguard Worker # Check to see if the program is GNU ld. I'd rather use --version, 8663*6a54128fSAndroid Build Coastguard Worker # but apparently some variants of GNU ld only accept -v. 8664*6a54128fSAndroid Build Coastguard Worker # Break only if it was the GNU/non-GNU ld that we prefer. 8665*6a54128fSAndroid Build Coastguard Worker case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 8666*6a54128fSAndroid Build Coastguard Worker *GNU* | *'with BFD'*) 8667*6a54128fSAndroid Build Coastguard Worker test "$with_gnu_ld" != no && break 8668*6a54128fSAndroid Build Coastguard Worker ;; 8669*6a54128fSAndroid Build Coastguard Worker *) 8670*6a54128fSAndroid Build Coastguard Worker test "$with_gnu_ld" != yes && break 8671*6a54128fSAndroid Build Coastguard Worker ;; 8672*6a54128fSAndroid Build Coastguard Worker esac 8673*6a54128fSAndroid Build Coastguard Worker fi 8674*6a54128fSAndroid Build Coastguard Worker done 8675*6a54128fSAndroid Build Coastguard Worker IFS="$acl_save_ifs" 8676*6a54128fSAndroid Build Coastguard Worker fi 8677*6a54128fSAndroid Build Coastguard Worker case $host in 8678*6a54128fSAndroid Build Coastguard Worker *-*-aix*) 8679*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8680*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 8681*6a54128fSAndroid Build Coastguard Worker#if defined __powerpc64__ || defined _ARCH_PPC64 8682*6a54128fSAndroid Build Coastguard Worker int ok; 8683*6a54128fSAndroid Build Coastguard Worker #else 8684*6a54128fSAndroid Build Coastguard Worker error fail 8685*6a54128fSAndroid Build Coastguard Worker #endif 8686*6a54128fSAndroid Build Coastguard Worker 8687*6a54128fSAndroid Build Coastguard Worker_ACEOF 8688*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 8689*6a54128fSAndroid Build Coastguard Workerthen : 8690*6a54128fSAndroid Build Coastguard Worker # The compiler produces 64-bit code. Add option '-b64' so that the 8691*6a54128fSAndroid Build Coastguard Worker # linker groks 64-bit object files. 8692*6a54128fSAndroid Build Coastguard Worker case "$acl_cv_path_LD " in 8693*6a54128fSAndroid Build Coastguard Worker *" -b64 "*) ;; 8694*6a54128fSAndroid Build Coastguard Worker *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;; 8695*6a54128fSAndroid Build Coastguard Worker esac 8696*6a54128fSAndroid Build Coastguard Worker 8697*6a54128fSAndroid Build Coastguard Workerfi 8698*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8699*6a54128fSAndroid Build Coastguard Worker ;; 8700*6a54128fSAndroid Build Coastguard Worker sparc64-*-netbsd*) 8701*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8702*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 8703*6a54128fSAndroid Build Coastguard Worker#if defined __sparcv9 || defined __arch64__ 8704*6a54128fSAndroid Build Coastguard Worker int ok; 8705*6a54128fSAndroid Build Coastguard Worker #else 8706*6a54128fSAndroid Build Coastguard Worker error fail 8707*6a54128fSAndroid Build Coastguard Worker #endif 8708*6a54128fSAndroid Build Coastguard Worker 8709*6a54128fSAndroid Build Coastguard Worker_ACEOF 8710*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 8711*6a54128fSAndroid Build Coastguard Workerthen : 8712*6a54128fSAndroid Build Coastguard Worker 8713*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8714*6a54128fSAndroid Build Coastguard Worker # The compiler produces 32-bit code. Add option '-m elf32_sparc' 8715*6a54128fSAndroid Build Coastguard Worker # so that the linker groks 32-bit object files. 8716*6a54128fSAndroid Build Coastguard Worker case "$acl_cv_path_LD " in 8717*6a54128fSAndroid Build Coastguard Worker *" -m elf32_sparc "*) ;; 8718*6a54128fSAndroid Build Coastguard Worker *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;; 8719*6a54128fSAndroid Build Coastguard Worker esac 8720*6a54128fSAndroid Build Coastguard Worker 8721*6a54128fSAndroid Build Coastguard Workerfi 8722*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8723*6a54128fSAndroid Build Coastguard Worker ;; 8724*6a54128fSAndroid Build Coastguard Worker esac 8725*6a54128fSAndroid Build Coastguard Worker 8726*6a54128fSAndroid Build Coastguard Workerfi 8727*6a54128fSAndroid Build Coastguard Worker 8728*6a54128fSAndroid Build Coastguard Worker LD="$acl_cv_path_LD" 8729*6a54128fSAndroid Build Coastguard Workerfi 8730*6a54128fSAndroid Build Coastguard Workerif test -n "$LD"; then 8731*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8732*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$LD" >&6; } 8733*6a54128fSAndroid Build Coastguard Workerelse 8734*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8735*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 8736*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8737*6a54128fSAndroid Build Coastguard Workerfi 8738*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8739*6a54128fSAndroid Build Coastguard Workerprintf %s "checking if the linker ($LD) is GNU ld... " >&6; } 8740*6a54128fSAndroid Build Coastguard Workerif test ${acl_cv_prog_gnu_ld+y} 8741*6a54128fSAndroid Build Coastguard Workerthen : 8742*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 8743*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8744*6a54128fSAndroid Build Coastguard Worker # I'd rather use --version here, but apparently some GNU lds only accept -v. 8745*6a54128fSAndroid Build Coastguard Workercase `$LD -v 2>&1 </dev/null` in 8746*6a54128fSAndroid Build Coastguard Worker*GNU* | *'with BFD'*) 8747*6a54128fSAndroid Build Coastguard Worker acl_cv_prog_gnu_ld=yes 8748*6a54128fSAndroid Build Coastguard Worker ;; 8749*6a54128fSAndroid Build Coastguard Worker*) 8750*6a54128fSAndroid Build Coastguard Worker acl_cv_prog_gnu_ld=no 8751*6a54128fSAndroid Build Coastguard Worker ;; 8752*6a54128fSAndroid Build Coastguard Workeresac 8753*6a54128fSAndroid Build Coastguard Workerfi 8754*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 8755*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } 8756*6a54128fSAndroid Build Coastguard Workerwith_gnu_ld=$acl_cv_prog_gnu_ld 8757*6a54128fSAndroid Build Coastguard Worker 8758*6a54128fSAndroid Build Coastguard Worker 8759*6a54128fSAndroid Build Coastguard Worker 8760*6a54128fSAndroid Build Coastguard Worker 8761*6a54128fSAndroid Build Coastguard Worker 8762*6a54128fSAndroid Build Coastguard Worker 8763*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 8764*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for shared library run path origin... " >&6; } 8765*6a54128fSAndroid Build Coastguard Workerif test ${acl_cv_rpath+y} 8766*6a54128fSAndroid Build Coastguard Workerthen : 8767*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 8768*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8769*6a54128fSAndroid Build Coastguard Worker 8770*6a54128fSAndroid Build Coastguard Worker CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 8771*6a54128fSAndroid Build Coastguard Worker ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 8772*6a54128fSAndroid Build Coastguard Worker . ./conftest.sh 8773*6a54128fSAndroid Build Coastguard Worker rm -f ./conftest.sh 8774*6a54128fSAndroid Build Coastguard Worker acl_cv_rpath=done 8775*6a54128fSAndroid Build Coastguard Worker 8776*6a54128fSAndroid Build Coastguard Workerfi 8777*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 8778*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$acl_cv_rpath" >&6; } 8779*6a54128fSAndroid Build Coastguard Worker wl="$acl_cv_wl" 8780*6a54128fSAndroid Build Coastguard Worker acl_libext="$acl_cv_libext" 8781*6a54128fSAndroid Build Coastguard Worker acl_shlibext="$acl_cv_shlibext" 8782*6a54128fSAndroid Build Coastguard Worker acl_libname_spec="$acl_cv_libname_spec" 8783*6a54128fSAndroid Build Coastguard Worker acl_library_names_spec="$acl_cv_library_names_spec" 8784*6a54128fSAndroid Build Coastguard Worker acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 8785*6a54128fSAndroid Build Coastguard Worker acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 8786*6a54128fSAndroid Build Coastguard Worker acl_hardcode_direct="$acl_cv_hardcode_direct" 8787*6a54128fSAndroid Build Coastguard Worker acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 8788*6a54128fSAndroid Build Coastguard Worker # Check whether --enable-rpath was given. 8789*6a54128fSAndroid Build Coastguard Workerif test ${enable_rpath+y} 8790*6a54128fSAndroid Build Coastguard Workerthen : 8791*6a54128fSAndroid Build Coastguard Worker enableval=$enable_rpath; : 8792*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8793*6a54128fSAndroid Build Coastguard Worker enable_rpath=yes 8794*6a54128fSAndroid Build Coastguard Workerfi 8795*6a54128fSAndroid Build Coastguard Worker 8796*6a54128fSAndroid Build Coastguard Worker 8797*6a54128fSAndroid Build Coastguard Worker 8798*6a54128fSAndroid Build Coastguard Worker 8799*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 8800*6a54128fSAndroid Build Coastguard Workerprintf %s "checking 32-bit host C ABI... " >&6; } 8801*6a54128fSAndroid Build Coastguard Workerif test ${gl_cv_host_cpu_c_abi_32bit+y} 8802*6a54128fSAndroid Build Coastguard Workerthen : 8803*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 8804*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8805*6a54128fSAndroid Build Coastguard Worker if test -n "$gl_cv_host_cpu_c_abi"; then 8806*6a54128fSAndroid Build Coastguard Worker case "$gl_cv_host_cpu_c_abi" in 8807*6a54128fSAndroid Build Coastguard Worker i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) 8808*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=yes ;; 8809*6a54128fSAndroid Build Coastguard Worker x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) 8810*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=no ;; 8811*6a54128fSAndroid Build Coastguard Worker *) 8812*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=unknown ;; 8813*6a54128fSAndroid Build Coastguard Worker esac 8814*6a54128fSAndroid Build Coastguard Worker else 8815*6a54128fSAndroid Build Coastguard Worker case "$host_cpu" in 8816*6a54128fSAndroid Build Coastguard Worker 8817*6a54128fSAndroid Build Coastguard Worker # CPUs that only support a 32-bit ABI. 8818*6a54128fSAndroid Build Coastguard Worker arc \ 8819*6a54128fSAndroid Build Coastguard Worker | bfin \ 8820*6a54128fSAndroid Build Coastguard Worker | cris* \ 8821*6a54128fSAndroid Build Coastguard Worker | csky \ 8822*6a54128fSAndroid Build Coastguard Worker | epiphany \ 8823*6a54128fSAndroid Build Coastguard Worker | ft32 \ 8824*6a54128fSAndroid Build Coastguard Worker | h8300 \ 8825*6a54128fSAndroid Build Coastguard Worker | m68k \ 8826*6a54128fSAndroid Build Coastguard Worker | microblaze | microblazeel \ 8827*6a54128fSAndroid Build Coastguard Worker | nds32 | nds32le | nds32be \ 8828*6a54128fSAndroid Build Coastguard Worker | nios2 | nios2eb | nios2el \ 8829*6a54128fSAndroid Build Coastguard Worker | or1k* \ 8830*6a54128fSAndroid Build Coastguard Worker | or32 \ 8831*6a54128fSAndroid Build Coastguard Worker | sh | sh1234 | sh1234elb \ 8832*6a54128fSAndroid Build Coastguard Worker | tic6x \ 8833*6a54128fSAndroid Build Coastguard Worker | xtensa* ) 8834*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=yes 8835*6a54128fSAndroid Build Coastguard Worker ;; 8836*6a54128fSAndroid Build Coastguard Worker 8837*6a54128fSAndroid Build Coastguard Worker # CPUs that only support a 64-bit ABI. 8838*6a54128fSAndroid Build Coastguard Worker alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ 8839*6a54128fSAndroid Build Coastguard Worker | mmix ) 8840*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=no 8841*6a54128fSAndroid Build Coastguard Worker ;; 8842*6a54128fSAndroid Build Coastguard Worker 8843*6a54128fSAndroid Build Coastguard Worker i[34567]86 ) 8844*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=yes 8845*6a54128fSAndroid Build Coastguard Worker ;; 8846*6a54128fSAndroid Build Coastguard Worker 8847*6a54128fSAndroid Build Coastguard Worker x86_64 ) 8848*6a54128fSAndroid Build Coastguard Worker # On x86_64 systems, the C compiler may be generating code in one of 8849*6a54128fSAndroid Build Coastguard Worker # these ABIs: 8850*6a54128fSAndroid Build Coastguard Worker # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. 8851*6a54128fSAndroid Build Coastguard Worker # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 8852*6a54128fSAndroid Build Coastguard Worker # with native Windows (mingw, MSVC). 8853*6a54128fSAndroid Build Coastguard Worker # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. 8854*6a54128fSAndroid Build Coastguard Worker # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. 8855*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8856*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 8857*6a54128fSAndroid Build Coastguard Worker#if (defined __x86_64__ || defined __amd64__ \ 8858*6a54128fSAndroid Build Coastguard Worker || defined _M_X64 || defined _M_AMD64) \ 8859*6a54128fSAndroid Build Coastguard Worker && !(defined __ILP32__ || defined _ILP32) 8860*6a54128fSAndroid Build Coastguard Worker int ok; 8861*6a54128fSAndroid Build Coastguard Worker #else 8862*6a54128fSAndroid Build Coastguard Worker error fail 8863*6a54128fSAndroid Build Coastguard Worker #endif 8864*6a54128fSAndroid Build Coastguard Worker 8865*6a54128fSAndroid Build Coastguard Worker_ACEOF 8866*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 8867*6a54128fSAndroid Build Coastguard Workerthen : 8868*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=no 8869*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8870*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=yes 8871*6a54128fSAndroid Build Coastguard Workerfi 8872*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8873*6a54128fSAndroid Build Coastguard Worker ;; 8874*6a54128fSAndroid Build Coastguard Worker 8875*6a54128fSAndroid Build Coastguard Worker arm* | aarch64 ) 8876*6a54128fSAndroid Build Coastguard Worker # Assume arm with EABI. 8877*6a54128fSAndroid Build Coastguard Worker # On arm64 systems, the C compiler may be generating code in one of 8878*6a54128fSAndroid Build Coastguard Worker # these ABIs: 8879*6a54128fSAndroid Build Coastguard Worker # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. 8880*6a54128fSAndroid Build Coastguard Worker # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. 8881*6a54128fSAndroid Build Coastguard Worker # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. 8882*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8883*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 8884*6a54128fSAndroid Build Coastguard Worker#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) 8885*6a54128fSAndroid Build Coastguard Worker int ok; 8886*6a54128fSAndroid Build Coastguard Worker #else 8887*6a54128fSAndroid Build Coastguard Worker error fail 8888*6a54128fSAndroid Build Coastguard Worker #endif 8889*6a54128fSAndroid Build Coastguard Worker 8890*6a54128fSAndroid Build Coastguard Worker_ACEOF 8891*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 8892*6a54128fSAndroid Build Coastguard Workerthen : 8893*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=no 8894*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8895*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=yes 8896*6a54128fSAndroid Build Coastguard Workerfi 8897*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8898*6a54128fSAndroid Build Coastguard Worker ;; 8899*6a54128fSAndroid Build Coastguard Worker 8900*6a54128fSAndroid Build Coastguard Worker hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) 8901*6a54128fSAndroid Build Coastguard Worker # On hppa, the C compiler may be generating 32-bit code or 64-bit 8902*6a54128fSAndroid Build Coastguard Worker # code. In the latter case, it defines _LP64 and __LP64__. 8903*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8904*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 8905*6a54128fSAndroid Build Coastguard Worker#ifdef __LP64__ 8906*6a54128fSAndroid Build Coastguard Worker int ok; 8907*6a54128fSAndroid Build Coastguard Worker #else 8908*6a54128fSAndroid Build Coastguard Worker error fail 8909*6a54128fSAndroid Build Coastguard Worker #endif 8910*6a54128fSAndroid Build Coastguard Worker 8911*6a54128fSAndroid Build Coastguard Worker_ACEOF 8912*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 8913*6a54128fSAndroid Build Coastguard Workerthen : 8914*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=no 8915*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8916*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=yes 8917*6a54128fSAndroid Build Coastguard Workerfi 8918*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8919*6a54128fSAndroid Build Coastguard Worker ;; 8920*6a54128fSAndroid Build Coastguard Worker 8921*6a54128fSAndroid Build Coastguard Worker ia64* ) 8922*6a54128fSAndroid Build Coastguard Worker # On ia64 on HP-UX, the C compiler may be generating 64-bit code or 8923*6a54128fSAndroid Build Coastguard Worker # 32-bit code. In the latter case, it defines _ILP32. 8924*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8925*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 8926*6a54128fSAndroid Build Coastguard Worker#ifdef _ILP32 8927*6a54128fSAndroid Build Coastguard Worker int ok; 8928*6a54128fSAndroid Build Coastguard Worker #else 8929*6a54128fSAndroid Build Coastguard Worker error fail 8930*6a54128fSAndroid Build Coastguard Worker #endif 8931*6a54128fSAndroid Build Coastguard Worker 8932*6a54128fSAndroid Build Coastguard Worker_ACEOF 8933*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 8934*6a54128fSAndroid Build Coastguard Workerthen : 8935*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=yes 8936*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8937*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=no 8938*6a54128fSAndroid Build Coastguard Workerfi 8939*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8940*6a54128fSAndroid Build Coastguard Worker ;; 8941*6a54128fSAndroid Build Coastguard Worker 8942*6a54128fSAndroid Build Coastguard Worker mips* ) 8943*6a54128fSAndroid Build Coastguard Worker # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this 8944*6a54128fSAndroid Build Coastguard Worker # at 32. 8945*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8946*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 8947*6a54128fSAndroid Build Coastguard Worker#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) 8948*6a54128fSAndroid Build Coastguard Worker int ok; 8949*6a54128fSAndroid Build Coastguard Worker #else 8950*6a54128fSAndroid Build Coastguard Worker error fail 8951*6a54128fSAndroid Build Coastguard Worker #endif 8952*6a54128fSAndroid Build Coastguard Worker 8953*6a54128fSAndroid Build Coastguard Worker_ACEOF 8954*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 8955*6a54128fSAndroid Build Coastguard Workerthen : 8956*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=no 8957*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8958*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=yes 8959*6a54128fSAndroid Build Coastguard Workerfi 8960*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8961*6a54128fSAndroid Build Coastguard Worker ;; 8962*6a54128fSAndroid Build Coastguard Worker 8963*6a54128fSAndroid Build Coastguard Worker powerpc* ) 8964*6a54128fSAndroid Build Coastguard Worker # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. 8965*6a54128fSAndroid Build Coastguard Worker # No need to distinguish them here; the caller may distinguish 8966*6a54128fSAndroid Build Coastguard Worker # them based on the OS. 8967*6a54128fSAndroid Build Coastguard Worker # On powerpc64 systems, the C compiler may still be generating 8968*6a54128fSAndroid Build Coastguard Worker # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may 8969*6a54128fSAndroid Build Coastguard Worker # be generating 64-bit code. 8970*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8971*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 8972*6a54128fSAndroid Build Coastguard Worker#if defined __powerpc64__ || defined _ARCH_PPC64 8973*6a54128fSAndroid Build Coastguard Worker int ok; 8974*6a54128fSAndroid Build Coastguard Worker #else 8975*6a54128fSAndroid Build Coastguard Worker error fail 8976*6a54128fSAndroid Build Coastguard Worker #endif 8977*6a54128fSAndroid Build Coastguard Worker 8978*6a54128fSAndroid Build Coastguard Worker_ACEOF 8979*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 8980*6a54128fSAndroid Build Coastguard Workerthen : 8981*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=no 8982*6a54128fSAndroid Build Coastguard Workerelse $as_nop 8983*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=yes 8984*6a54128fSAndroid Build Coastguard Workerfi 8985*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8986*6a54128fSAndroid Build Coastguard Worker ;; 8987*6a54128fSAndroid Build Coastguard Worker 8988*6a54128fSAndroid Build Coastguard Worker rs6000 ) 8989*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=yes 8990*6a54128fSAndroid Build Coastguard Worker ;; 8991*6a54128fSAndroid Build Coastguard Worker 8992*6a54128fSAndroid Build Coastguard Worker riscv32 | riscv64 ) 8993*6a54128fSAndroid Build Coastguard Worker # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. 8994*6a54128fSAndroid Build Coastguard Worker # Size of 'long' and 'void *': 8995*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8996*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 8997*6a54128fSAndroid Build Coastguard Worker#if defined __LP64__ 8998*6a54128fSAndroid Build Coastguard Worker int ok; 8999*6a54128fSAndroid Build Coastguard Worker #else 9000*6a54128fSAndroid Build Coastguard Worker error fail 9001*6a54128fSAndroid Build Coastguard Worker #endif 9002*6a54128fSAndroid Build Coastguard Worker 9003*6a54128fSAndroid Build Coastguard Worker_ACEOF 9004*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 9005*6a54128fSAndroid Build Coastguard Workerthen : 9006*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=no 9007*6a54128fSAndroid Build Coastguard Workerelse $as_nop 9008*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=yes 9009*6a54128fSAndroid Build Coastguard Workerfi 9010*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9011*6a54128fSAndroid Build Coastguard Worker ;; 9012*6a54128fSAndroid Build Coastguard Worker 9013*6a54128fSAndroid Build Coastguard Worker s390* ) 9014*6a54128fSAndroid Build Coastguard Worker # On s390x, the C compiler may be generating 64-bit (= s390x) code 9015*6a54128fSAndroid Build Coastguard Worker # or 31-bit (= s390) code. 9016*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9017*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 9018*6a54128fSAndroid Build Coastguard Worker#if defined __LP64__ || defined __s390x__ 9019*6a54128fSAndroid Build Coastguard Worker int ok; 9020*6a54128fSAndroid Build Coastguard Worker #else 9021*6a54128fSAndroid Build Coastguard Worker error fail 9022*6a54128fSAndroid Build Coastguard Worker #endif 9023*6a54128fSAndroid Build Coastguard Worker 9024*6a54128fSAndroid Build Coastguard Worker_ACEOF 9025*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 9026*6a54128fSAndroid Build Coastguard Workerthen : 9027*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=no 9028*6a54128fSAndroid Build Coastguard Workerelse $as_nop 9029*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=yes 9030*6a54128fSAndroid Build Coastguard Workerfi 9031*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9032*6a54128fSAndroid Build Coastguard Worker ;; 9033*6a54128fSAndroid Build Coastguard Worker 9034*6a54128fSAndroid Build Coastguard Worker sparc | sparc64 ) 9035*6a54128fSAndroid Build Coastguard Worker # UltraSPARCs running Linux have `uname -m` = "sparc64", but the 9036*6a54128fSAndroid Build Coastguard Worker # C compiler still generates 32-bit code. 9037*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9038*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 9039*6a54128fSAndroid Build Coastguard Worker#if defined __sparcv9 || defined __arch64__ 9040*6a54128fSAndroid Build Coastguard Worker int ok; 9041*6a54128fSAndroid Build Coastguard Worker #else 9042*6a54128fSAndroid Build Coastguard Worker error fail 9043*6a54128fSAndroid Build Coastguard Worker #endif 9044*6a54128fSAndroid Build Coastguard Worker 9045*6a54128fSAndroid Build Coastguard Worker_ACEOF 9046*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 9047*6a54128fSAndroid Build Coastguard Workerthen : 9048*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=no 9049*6a54128fSAndroid Build Coastguard Workerelse $as_nop 9050*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=yes 9051*6a54128fSAndroid Build Coastguard Workerfi 9052*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9053*6a54128fSAndroid Build Coastguard Worker ;; 9054*6a54128fSAndroid Build Coastguard Worker 9055*6a54128fSAndroid Build Coastguard Worker *) 9056*6a54128fSAndroid Build Coastguard Worker gl_cv_host_cpu_c_abi_32bit=unknown 9057*6a54128fSAndroid Build Coastguard Worker ;; 9058*6a54128fSAndroid Build Coastguard Worker esac 9059*6a54128fSAndroid Build Coastguard Worker fi 9060*6a54128fSAndroid Build Coastguard Worker 9061*6a54128fSAndroid Build Coastguard Workerfi 9062*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 9063*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; } 9064*6a54128fSAndroid Build Coastguard Worker 9065*6a54128fSAndroid Build Coastguard Worker HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" 9066*6a54128fSAndroid Build Coastguard Worker 9067*6a54128fSAndroid Build Coastguard Worker 9068*6a54128fSAndroid Build Coastguard Worker 9069*6a54128fSAndroid Build Coastguard Worker 9070*6a54128fSAndroid Build Coastguard Worker 9071*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 9072*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for ELF binary format... " >&6; } 9073*6a54128fSAndroid Build Coastguard Workerif test ${gl_cv_elf+y} 9074*6a54128fSAndroid Build Coastguard Workerthen : 9075*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 9076*6a54128fSAndroid Build Coastguard Workerelse $as_nop 9077*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9078*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 9079*6a54128fSAndroid Build Coastguard Worker#ifdef __ELF__ 9080*6a54128fSAndroid Build Coastguard Worker Extensible Linking Format 9081*6a54128fSAndroid Build Coastguard Worker #endif 9082*6a54128fSAndroid Build Coastguard Worker 9083*6a54128fSAndroid Build Coastguard Worker_ACEOF 9084*6a54128fSAndroid Build Coastguard Workerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9085*6a54128fSAndroid Build Coastguard Worker $EGREP "Extensible Linking Format" >/dev/null 2>&1 9086*6a54128fSAndroid Build Coastguard Workerthen : 9087*6a54128fSAndroid Build Coastguard Worker gl_cv_elf=yes 9088*6a54128fSAndroid Build Coastguard Workerelse $as_nop 9089*6a54128fSAndroid Build Coastguard Worker gl_cv_elf=no 9090*6a54128fSAndroid Build Coastguard Workerfi 9091*6a54128fSAndroid Build Coastguard Workerrm -rf conftest* 9092*6a54128fSAndroid Build Coastguard Worker 9093*6a54128fSAndroid Build Coastguard Worker 9094*6a54128fSAndroid Build Coastguard Workerfi 9095*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 9096*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$gl_cv_elf" >&6; } 9097*6a54128fSAndroid Build Coastguard Worker if test $gl_cv_elf; then 9098*6a54128fSAndroid Build Coastguard Worker # Extract the ELF class of a file (5th byte) in decimal. 9099*6a54128fSAndroid Build Coastguard Worker # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header 9100*6a54128fSAndroid Build Coastguard Worker if od -A x < /dev/null >/dev/null 2>/dev/null; then 9101*6a54128fSAndroid Build Coastguard Worker # Use POSIX od. 9102*6a54128fSAndroid Build Coastguard Worker func_elfclass () 9103*6a54128fSAndroid Build Coastguard Worker { 9104*6a54128fSAndroid Build Coastguard Worker od -A n -t d1 -j 4 -N 1 9105*6a54128fSAndroid Build Coastguard Worker } 9106*6a54128fSAndroid Build Coastguard Worker else 9107*6a54128fSAndroid Build Coastguard Worker # Use BSD hexdump. 9108*6a54128fSAndroid Build Coastguard Worker func_elfclass () 9109*6a54128fSAndroid Build Coastguard Worker { 9110*6a54128fSAndroid Build Coastguard Worker dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' 9111*6a54128fSAndroid Build Coastguard Worker echo 9112*6a54128fSAndroid Build Coastguard Worker } 9113*6a54128fSAndroid Build Coastguard Worker fi 9114*6a54128fSAndroid Build Coastguard Worker case $HOST_CPU_C_ABI_32BIT in 9115*6a54128fSAndroid Build Coastguard Worker yes) 9116*6a54128fSAndroid Build Coastguard Worker # 32-bit ABI. 9117*6a54128fSAndroid Build Coastguard Worker acl_is_expected_elfclass () 9118*6a54128fSAndroid Build Coastguard Worker { 9119*6a54128fSAndroid Build Coastguard Worker test "`func_elfclass | sed -e 's/[ ]//g'`" = 1 9120*6a54128fSAndroid Build Coastguard Worker } 9121*6a54128fSAndroid Build Coastguard Worker ;; 9122*6a54128fSAndroid Build Coastguard Worker no) 9123*6a54128fSAndroid Build Coastguard Worker # 64-bit ABI. 9124*6a54128fSAndroid Build Coastguard Worker acl_is_expected_elfclass () 9125*6a54128fSAndroid Build Coastguard Worker { 9126*6a54128fSAndroid Build Coastguard Worker test "`func_elfclass | sed -e 's/[ ]//g'`" = 2 9127*6a54128fSAndroid Build Coastguard Worker } 9128*6a54128fSAndroid Build Coastguard Worker ;; 9129*6a54128fSAndroid Build Coastguard Worker *) 9130*6a54128fSAndroid Build Coastguard Worker # Unknown. 9131*6a54128fSAndroid Build Coastguard Worker acl_is_expected_elfclass () 9132*6a54128fSAndroid Build Coastguard Worker { 9133*6a54128fSAndroid Build Coastguard Worker : 9134*6a54128fSAndroid Build Coastguard Worker } 9135*6a54128fSAndroid Build Coastguard Worker ;; 9136*6a54128fSAndroid Build Coastguard Worker esac 9137*6a54128fSAndroid Build Coastguard Worker else 9138*6a54128fSAndroid Build Coastguard Worker acl_is_expected_elfclass () 9139*6a54128fSAndroid Build Coastguard Worker { 9140*6a54128fSAndroid Build Coastguard Worker : 9141*6a54128fSAndroid Build Coastguard Worker } 9142*6a54128fSAndroid Build Coastguard Worker fi 9143*6a54128fSAndroid Build Coastguard Worker 9144*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 9145*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for the common suffixes of directories in the library search path... " >&6; } 9146*6a54128fSAndroid Build Coastguard Workerif test ${acl_cv_libdirstems+y} 9147*6a54128fSAndroid Build Coastguard Workerthen : 9148*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 9149*6a54128fSAndroid Build Coastguard Workerelse $as_nop 9150*6a54128fSAndroid Build Coastguard Worker acl_libdirstem=lib 9151*6a54128fSAndroid Build Coastguard Worker acl_libdirstem2= 9152*6a54128fSAndroid Build Coastguard Worker acl_libdirstem3= 9153*6a54128fSAndroid Build Coastguard Worker case "$host_os" in 9154*6a54128fSAndroid Build Coastguard Worker solaris*) 9155*6a54128fSAndroid Build Coastguard Worker if test $HOST_CPU_C_ABI_32BIT = no; then 9156*6a54128fSAndroid Build Coastguard Worker acl_libdirstem2=lib/64 9157*6a54128fSAndroid Build Coastguard Worker case "$host_cpu" in 9158*6a54128fSAndroid Build Coastguard Worker sparc*) acl_libdirstem3=lib/sparcv9 ;; 9159*6a54128fSAndroid Build Coastguard Worker i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; 9160*6a54128fSAndroid Build Coastguard Worker esac 9161*6a54128fSAndroid Build Coastguard Worker fi 9162*6a54128fSAndroid Build Coastguard Worker ;; 9163*6a54128fSAndroid Build Coastguard Worker *) 9164*6a54128fSAndroid Build Coastguard Worker searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ 9165*6a54128fSAndroid Build Coastguard Worker | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 9166*6a54128fSAndroid Build Coastguard Worker if test $HOST_CPU_C_ABI_32BIT != no; then 9167*6a54128fSAndroid Build Coastguard Worker # 32-bit or unknown ABI. 9168*6a54128fSAndroid Build Coastguard Worker if test -d /usr/lib32; then 9169*6a54128fSAndroid Build Coastguard Worker acl_libdirstem2=lib32 9170*6a54128fSAndroid Build Coastguard Worker fi 9171*6a54128fSAndroid Build Coastguard Worker fi 9172*6a54128fSAndroid Build Coastguard Worker if test $HOST_CPU_C_ABI_32BIT != yes; then 9173*6a54128fSAndroid Build Coastguard Worker # 64-bit or unknown ABI. 9174*6a54128fSAndroid Build Coastguard Worker if test -d /usr/lib64; then 9175*6a54128fSAndroid Build Coastguard Worker acl_libdirstem3=lib64 9176*6a54128fSAndroid Build Coastguard Worker fi 9177*6a54128fSAndroid Build Coastguard Worker fi 9178*6a54128fSAndroid Build Coastguard Worker if test -n "$searchpath"; then 9179*6a54128fSAndroid Build Coastguard Worker acl_save_IFS="${IFS= }"; IFS=":" 9180*6a54128fSAndroid Build Coastguard Worker for searchdir in $searchpath; do 9181*6a54128fSAndroid Build Coastguard Worker if test -d "$searchdir"; then 9182*6a54128fSAndroid Build Coastguard Worker case "$searchdir" in 9183*6a54128fSAndroid Build Coastguard Worker */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; 9184*6a54128fSAndroid Build Coastguard Worker */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; 9185*6a54128fSAndroid Build Coastguard Worker */../ | */.. ) 9186*6a54128fSAndroid Build Coastguard Worker # Better ignore directories of this form. They are misleading. 9187*6a54128fSAndroid Build Coastguard Worker ;; 9188*6a54128fSAndroid Build Coastguard Worker *) searchdir=`cd "$searchdir" && pwd` 9189*6a54128fSAndroid Build Coastguard Worker case "$searchdir" in 9190*6a54128fSAndroid Build Coastguard Worker */lib32 ) acl_libdirstem2=lib32 ;; 9191*6a54128fSAndroid Build Coastguard Worker */lib64 ) acl_libdirstem3=lib64 ;; 9192*6a54128fSAndroid Build Coastguard Worker esac ;; 9193*6a54128fSAndroid Build Coastguard Worker esac 9194*6a54128fSAndroid Build Coastguard Worker fi 9195*6a54128fSAndroid Build Coastguard Worker done 9196*6a54128fSAndroid Build Coastguard Worker IFS="$acl_save_IFS" 9197*6a54128fSAndroid Build Coastguard Worker if test $HOST_CPU_C_ABI_32BIT = yes; then 9198*6a54128fSAndroid Build Coastguard Worker # 32-bit ABI. 9199*6a54128fSAndroid Build Coastguard Worker acl_libdirstem3= 9200*6a54128fSAndroid Build Coastguard Worker fi 9201*6a54128fSAndroid Build Coastguard Worker if test $HOST_CPU_C_ABI_32BIT = no; then 9202*6a54128fSAndroid Build Coastguard Worker # 64-bit ABI. 9203*6a54128fSAndroid Build Coastguard Worker acl_libdirstem2= 9204*6a54128fSAndroid Build Coastguard Worker fi 9205*6a54128fSAndroid Build Coastguard Worker fi 9206*6a54128fSAndroid Build Coastguard Worker ;; 9207*6a54128fSAndroid Build Coastguard Worker esac 9208*6a54128fSAndroid Build Coastguard Worker test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 9209*6a54128fSAndroid Build Coastguard Worker test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" 9210*6a54128fSAndroid Build Coastguard Worker acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" 9211*6a54128fSAndroid Build Coastguard Worker 9212*6a54128fSAndroid Build Coastguard Workerfi 9213*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 9214*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$acl_cv_libdirstems" >&6; } 9215*6a54128fSAndroid Build Coastguard Worker acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` 9216*6a54128fSAndroid Build Coastguard Worker acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` 9217*6a54128fSAndroid Build Coastguard Worker acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` 9218*6a54128fSAndroid Build Coastguard Worker 9219*6a54128fSAndroid Build Coastguard Worker 9220*6a54128fSAndroid Build Coastguard Worker 9221*6a54128fSAndroid Build Coastguard Worker 9222*6a54128fSAndroid Build Coastguard Worker 9223*6a54128fSAndroid Build Coastguard Worker 9224*6a54128fSAndroid Build Coastguard Worker 9225*6a54128fSAndroid Build Coastguard Worker 9226*6a54128fSAndroid Build Coastguard Worker 9227*6a54128fSAndroid Build Coastguard Worker 9228*6a54128fSAndroid Build Coastguard Worker 9229*6a54128fSAndroid Build Coastguard Worker use_additional=yes 9230*6a54128fSAndroid Build Coastguard Worker 9231*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 9232*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 9233*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 9234*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 9235*6a54128fSAndroid Build Coastguard Worker 9236*6a54128fSAndroid Build Coastguard Worker eval additional_includedir=\"$includedir\" 9237*6a54128fSAndroid Build Coastguard Worker eval additional_libdir=\"$libdir\" 9238*6a54128fSAndroid Build Coastguard Worker eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 9239*6a54128fSAndroid Build Coastguard Worker eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 9240*6a54128fSAndroid Build Coastguard Worker 9241*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 9242*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 9243*6a54128fSAndroid Build Coastguard Worker 9244*6a54128fSAndroid Build Coastguard Worker 9245*6a54128fSAndroid Build Coastguard Worker# Check whether --with-libiconv-prefix was given. 9246*6a54128fSAndroid Build Coastguard Workerif test ${with_libiconv_prefix+y} 9247*6a54128fSAndroid Build Coastguard Workerthen : 9248*6a54128fSAndroid Build Coastguard Worker withval=$with_libiconv_prefix; 9249*6a54128fSAndroid Build Coastguard Worker if test "X$withval" = "Xno"; then 9250*6a54128fSAndroid Build Coastguard Worker use_additional=no 9251*6a54128fSAndroid Build Coastguard Worker else 9252*6a54128fSAndroid Build Coastguard Worker if test "X$withval" = "X"; then 9253*6a54128fSAndroid Build Coastguard Worker 9254*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 9255*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 9256*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 9257*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 9258*6a54128fSAndroid Build Coastguard Worker 9259*6a54128fSAndroid Build Coastguard Worker eval additional_includedir=\"$includedir\" 9260*6a54128fSAndroid Build Coastguard Worker eval additional_libdir=\"$libdir\" 9261*6a54128fSAndroid Build Coastguard Worker eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 9262*6a54128fSAndroid Build Coastguard Worker eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 9263*6a54128fSAndroid Build Coastguard Worker 9264*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 9265*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 9266*6a54128fSAndroid Build Coastguard Worker 9267*6a54128fSAndroid Build Coastguard Worker else 9268*6a54128fSAndroid Build Coastguard Worker additional_includedir="$withval/include" 9269*6a54128fSAndroid Build Coastguard Worker additional_libdir="$withval/$acl_libdirstem" 9270*6a54128fSAndroid Build Coastguard Worker additional_libdir2="$withval/$acl_libdirstem2" 9271*6a54128fSAndroid Build Coastguard Worker additional_libdir3="$withval/$acl_libdirstem3" 9272*6a54128fSAndroid Build Coastguard Worker fi 9273*6a54128fSAndroid Build Coastguard Worker fi 9274*6a54128fSAndroid Build Coastguard Worker 9275*6a54128fSAndroid Build Coastguard Workerfi 9276*6a54128fSAndroid Build Coastguard Worker 9277*6a54128fSAndroid Build Coastguard Worker if test "X$additional_libdir2" = "X$additional_libdir"; then 9278*6a54128fSAndroid Build Coastguard Worker additional_libdir2= 9279*6a54128fSAndroid Build Coastguard Worker fi 9280*6a54128fSAndroid Build Coastguard Worker if test "X$additional_libdir3" = "X$additional_libdir"; then 9281*6a54128fSAndroid Build Coastguard Worker additional_libdir3= 9282*6a54128fSAndroid Build Coastguard Worker fi 9283*6a54128fSAndroid Build Coastguard Worker LIBICONV= 9284*6a54128fSAndroid Build Coastguard Worker LTLIBICONV= 9285*6a54128fSAndroid Build Coastguard Worker INCICONV= 9286*6a54128fSAndroid Build Coastguard Worker LIBICONV_PREFIX= 9287*6a54128fSAndroid Build Coastguard Worker HAVE_LIBICONV= 9288*6a54128fSAndroid Build Coastguard Worker rpathdirs= 9289*6a54128fSAndroid Build Coastguard Worker ltrpathdirs= 9290*6a54128fSAndroid Build Coastguard Worker names_already_handled= 9291*6a54128fSAndroid Build Coastguard Worker names_next_round='iconv ' 9292*6a54128fSAndroid Build Coastguard Worker while test -n "$names_next_round"; do 9293*6a54128fSAndroid Build Coastguard Worker names_this_round="$names_next_round" 9294*6a54128fSAndroid Build Coastguard Worker names_next_round= 9295*6a54128fSAndroid Build Coastguard Worker for name in $names_this_round; do 9296*6a54128fSAndroid Build Coastguard Worker already_handled= 9297*6a54128fSAndroid Build Coastguard Worker for n in $names_already_handled; do 9298*6a54128fSAndroid Build Coastguard Worker if test "$n" = "$name"; then 9299*6a54128fSAndroid Build Coastguard Worker already_handled=yes 9300*6a54128fSAndroid Build Coastguard Worker break 9301*6a54128fSAndroid Build Coastguard Worker fi 9302*6a54128fSAndroid Build Coastguard Worker done 9303*6a54128fSAndroid Build Coastguard Worker if test -z "$already_handled"; then 9304*6a54128fSAndroid Build Coastguard Worker names_already_handled="$names_already_handled $name" 9305*6a54128fSAndroid Build Coastguard Worker uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 9306*6a54128fSAndroid Build Coastguard Worker eval value=\"\$HAVE_LIB$uppername\" 9307*6a54128fSAndroid Build Coastguard Worker if test -n "$value"; then 9308*6a54128fSAndroid Build Coastguard Worker if test "$value" = yes; then 9309*6a54128fSAndroid Build Coastguard Worker eval value=\"\$LIB$uppername\" 9310*6a54128fSAndroid Build Coastguard Worker test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 9311*6a54128fSAndroid Build Coastguard Worker eval value=\"\$LTLIB$uppername\" 9312*6a54128fSAndroid Build Coastguard Worker test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 9313*6a54128fSAndroid Build Coastguard Worker else 9314*6a54128fSAndroid Build Coastguard Worker : 9315*6a54128fSAndroid Build Coastguard Worker fi 9316*6a54128fSAndroid Build Coastguard Worker else 9317*6a54128fSAndroid Build Coastguard Worker found_dir= 9318*6a54128fSAndroid Build Coastguard Worker found_la= 9319*6a54128fSAndroid Build Coastguard Worker found_so= 9320*6a54128fSAndroid Build Coastguard Worker found_a= 9321*6a54128fSAndroid Build Coastguard Worker eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 9322*6a54128fSAndroid Build Coastguard Worker if test -n "$acl_shlibext"; then 9323*6a54128fSAndroid Build Coastguard Worker shrext=".$acl_shlibext" # typically: shrext=.so 9324*6a54128fSAndroid Build Coastguard Worker else 9325*6a54128fSAndroid Build Coastguard Worker shrext= 9326*6a54128fSAndroid Build Coastguard Worker fi 9327*6a54128fSAndroid Build Coastguard Worker if test $use_additional = yes; then 9328*6a54128fSAndroid Build Coastguard Worker for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do 9329*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" = "X"; then 9330*6a54128fSAndroid Build Coastguard Worker eval dir=\$$additional_libdir_variable 9331*6a54128fSAndroid Build Coastguard Worker if test -n "$dir"; then 9332*6a54128fSAndroid Build Coastguard Worker if test -n "$acl_shlibext"; then 9333*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 9334*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 9335*6a54128fSAndroid Build Coastguard Worker found_so="$dir/$libname$shrext" 9336*6a54128fSAndroid Build Coastguard Worker else 9337*6a54128fSAndroid Build Coastguard Worker if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 9338*6a54128fSAndroid Build Coastguard Worker ver=`(cd "$dir" && \ 9339*6a54128fSAndroid Build Coastguard Worker for f in "$libname$shrext".*; do echo "$f"; done \ 9340*6a54128fSAndroid Build Coastguard Worker | sed -e "s,^$libname$shrext\\\\.,," \ 9341*6a54128fSAndroid Build Coastguard Worker | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 9342*6a54128fSAndroid Build Coastguard Worker | sed 1q ) 2>/dev/null` 9343*6a54128fSAndroid Build Coastguard Worker if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 9344*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 9345*6a54128fSAndroid Build Coastguard Worker found_so="$dir/$libname$shrext.$ver" 9346*6a54128fSAndroid Build Coastguard Worker fi 9347*6a54128fSAndroid Build Coastguard Worker else 9348*6a54128fSAndroid Build Coastguard Worker eval library_names=\"$acl_library_names_spec\" 9349*6a54128fSAndroid Build Coastguard Worker for f in $library_names; do 9350*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 9351*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 9352*6a54128fSAndroid Build Coastguard Worker found_so="$dir/$f" 9353*6a54128fSAndroid Build Coastguard Worker break 9354*6a54128fSAndroid Build Coastguard Worker fi 9355*6a54128fSAndroid Build Coastguard Worker done 9356*6a54128fSAndroid Build Coastguard Worker fi 9357*6a54128fSAndroid Build Coastguard Worker fi 9358*6a54128fSAndroid Build Coastguard Worker fi 9359*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" = "X"; then 9360*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 9361*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 9362*6a54128fSAndroid Build Coastguard Worker found_a="$dir/$libname.$acl_libext" 9363*6a54128fSAndroid Build Coastguard Worker fi 9364*6a54128fSAndroid Build Coastguard Worker fi 9365*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" != "X"; then 9366*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$libname.la"; then 9367*6a54128fSAndroid Build Coastguard Worker found_la="$dir/$libname.la" 9368*6a54128fSAndroid Build Coastguard Worker fi 9369*6a54128fSAndroid Build Coastguard Worker fi 9370*6a54128fSAndroid Build Coastguard Worker fi 9371*6a54128fSAndroid Build Coastguard Worker fi 9372*6a54128fSAndroid Build Coastguard Worker done 9373*6a54128fSAndroid Build Coastguard Worker fi 9374*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" = "X"; then 9375*6a54128fSAndroid Build Coastguard Worker for x in $LDFLAGS $LTLIBICONV; do 9376*6a54128fSAndroid Build Coastguard Worker 9377*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 9378*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 9379*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 9380*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 9381*6a54128fSAndroid Build Coastguard Worker eval x=\"$x\" 9382*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 9383*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 9384*6a54128fSAndroid Build Coastguard Worker 9385*6a54128fSAndroid Build Coastguard Worker case "$x" in 9386*6a54128fSAndroid Build Coastguard Worker -L*) 9387*6a54128fSAndroid Build Coastguard Worker dir=`echo "X$x" | sed -e 's/^X-L//'` 9388*6a54128fSAndroid Build Coastguard Worker if test -n "$acl_shlibext"; then 9389*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 9390*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 9391*6a54128fSAndroid Build Coastguard Worker found_so="$dir/$libname$shrext" 9392*6a54128fSAndroid Build Coastguard Worker else 9393*6a54128fSAndroid Build Coastguard Worker if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 9394*6a54128fSAndroid Build Coastguard Worker ver=`(cd "$dir" && \ 9395*6a54128fSAndroid Build Coastguard Worker for f in "$libname$shrext".*; do echo "$f"; done \ 9396*6a54128fSAndroid Build Coastguard Worker | sed -e "s,^$libname$shrext\\\\.,," \ 9397*6a54128fSAndroid Build Coastguard Worker | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 9398*6a54128fSAndroid Build Coastguard Worker | sed 1q ) 2>/dev/null` 9399*6a54128fSAndroid Build Coastguard Worker if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 9400*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 9401*6a54128fSAndroid Build Coastguard Worker found_so="$dir/$libname$shrext.$ver" 9402*6a54128fSAndroid Build Coastguard Worker fi 9403*6a54128fSAndroid Build Coastguard Worker else 9404*6a54128fSAndroid Build Coastguard Worker eval library_names=\"$acl_library_names_spec\" 9405*6a54128fSAndroid Build Coastguard Worker for f in $library_names; do 9406*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 9407*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 9408*6a54128fSAndroid Build Coastguard Worker found_so="$dir/$f" 9409*6a54128fSAndroid Build Coastguard Worker break 9410*6a54128fSAndroid Build Coastguard Worker fi 9411*6a54128fSAndroid Build Coastguard Worker done 9412*6a54128fSAndroid Build Coastguard Worker fi 9413*6a54128fSAndroid Build Coastguard Worker fi 9414*6a54128fSAndroid Build Coastguard Worker fi 9415*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" = "X"; then 9416*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 9417*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 9418*6a54128fSAndroid Build Coastguard Worker found_a="$dir/$libname.$acl_libext" 9419*6a54128fSAndroid Build Coastguard Worker fi 9420*6a54128fSAndroid Build Coastguard Worker fi 9421*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" != "X"; then 9422*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$libname.la"; then 9423*6a54128fSAndroid Build Coastguard Worker found_la="$dir/$libname.la" 9424*6a54128fSAndroid Build Coastguard Worker fi 9425*6a54128fSAndroid Build Coastguard Worker fi 9426*6a54128fSAndroid Build Coastguard Worker ;; 9427*6a54128fSAndroid Build Coastguard Worker esac 9428*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" != "X"; then 9429*6a54128fSAndroid Build Coastguard Worker break 9430*6a54128fSAndroid Build Coastguard Worker fi 9431*6a54128fSAndroid Build Coastguard Worker done 9432*6a54128fSAndroid Build Coastguard Worker fi 9433*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" != "X"; then 9434*6a54128fSAndroid Build Coastguard Worker LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 9435*6a54128fSAndroid Build Coastguard Worker if test "X$found_so" != "X"; then 9436*6a54128fSAndroid Build Coastguard Worker if test "$enable_rpath" = no \ 9437*6a54128fSAndroid Build Coastguard Worker || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 9438*6a54128fSAndroid Build Coastguard Worker || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ 9439*6a54128fSAndroid Build Coastguard Worker || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then 9440*6a54128fSAndroid Build Coastguard Worker LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9441*6a54128fSAndroid Build Coastguard Worker else 9442*6a54128fSAndroid Build Coastguard Worker haveit= 9443*6a54128fSAndroid Build Coastguard Worker for x in $ltrpathdirs; do 9444*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X$found_dir"; then 9445*6a54128fSAndroid Build Coastguard Worker haveit=yes 9446*6a54128fSAndroid Build Coastguard Worker break 9447*6a54128fSAndroid Build Coastguard Worker fi 9448*6a54128fSAndroid Build Coastguard Worker done 9449*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 9450*6a54128fSAndroid Build Coastguard Worker ltrpathdirs="$ltrpathdirs $found_dir" 9451*6a54128fSAndroid Build Coastguard Worker fi 9452*6a54128fSAndroid Build Coastguard Worker if test "$acl_hardcode_direct" = yes; then 9453*6a54128fSAndroid Build Coastguard Worker LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9454*6a54128fSAndroid Build Coastguard Worker else 9455*6a54128fSAndroid Build Coastguard Worker if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 9456*6a54128fSAndroid Build Coastguard Worker LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9457*6a54128fSAndroid Build Coastguard Worker haveit= 9458*6a54128fSAndroid Build Coastguard Worker for x in $rpathdirs; do 9459*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X$found_dir"; then 9460*6a54128fSAndroid Build Coastguard Worker haveit=yes 9461*6a54128fSAndroid Build Coastguard Worker break 9462*6a54128fSAndroid Build Coastguard Worker fi 9463*6a54128fSAndroid Build Coastguard Worker done 9464*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 9465*6a54128fSAndroid Build Coastguard Worker rpathdirs="$rpathdirs $found_dir" 9466*6a54128fSAndroid Build Coastguard Worker fi 9467*6a54128fSAndroid Build Coastguard Worker else 9468*6a54128fSAndroid Build Coastguard Worker haveit= 9469*6a54128fSAndroid Build Coastguard Worker for x in $LDFLAGS $LIBICONV; do 9470*6a54128fSAndroid Build Coastguard Worker 9471*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 9472*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 9473*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 9474*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 9475*6a54128fSAndroid Build Coastguard Worker eval x=\"$x\" 9476*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 9477*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 9478*6a54128fSAndroid Build Coastguard Worker 9479*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X-L$found_dir"; then 9480*6a54128fSAndroid Build Coastguard Worker haveit=yes 9481*6a54128fSAndroid Build Coastguard Worker break 9482*6a54128fSAndroid Build Coastguard Worker fi 9483*6a54128fSAndroid Build Coastguard Worker done 9484*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 9485*6a54128fSAndroid Build Coastguard Worker LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 9486*6a54128fSAndroid Build Coastguard Worker fi 9487*6a54128fSAndroid Build Coastguard Worker if test "$acl_hardcode_minus_L" != no; then 9488*6a54128fSAndroid Build Coastguard Worker LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9489*6a54128fSAndroid Build Coastguard Worker else 9490*6a54128fSAndroid Build Coastguard Worker LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 9491*6a54128fSAndroid Build Coastguard Worker fi 9492*6a54128fSAndroid Build Coastguard Worker fi 9493*6a54128fSAndroid Build Coastguard Worker fi 9494*6a54128fSAndroid Build Coastguard Worker fi 9495*6a54128fSAndroid Build Coastguard Worker else 9496*6a54128fSAndroid Build Coastguard Worker if test "X$found_a" != "X"; then 9497*6a54128fSAndroid Build Coastguard Worker LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 9498*6a54128fSAndroid Build Coastguard Worker else 9499*6a54128fSAndroid Build Coastguard Worker LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 9500*6a54128fSAndroid Build Coastguard Worker fi 9501*6a54128fSAndroid Build Coastguard Worker fi 9502*6a54128fSAndroid Build Coastguard Worker additional_includedir= 9503*6a54128fSAndroid Build Coastguard Worker case "$found_dir" in 9504*6a54128fSAndroid Build Coastguard Worker */$acl_libdirstem | */$acl_libdirstem/) 9505*6a54128fSAndroid Build Coastguard Worker basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 9506*6a54128fSAndroid Build Coastguard Worker if test "$name" = 'iconv'; then 9507*6a54128fSAndroid Build Coastguard Worker LIBICONV_PREFIX="$basedir" 9508*6a54128fSAndroid Build Coastguard Worker fi 9509*6a54128fSAndroid Build Coastguard Worker additional_includedir="$basedir/include" 9510*6a54128fSAndroid Build Coastguard Worker ;; 9511*6a54128fSAndroid Build Coastguard Worker */$acl_libdirstem2 | */$acl_libdirstem2/) 9512*6a54128fSAndroid Build Coastguard Worker basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 9513*6a54128fSAndroid Build Coastguard Worker if test "$name" = 'iconv'; then 9514*6a54128fSAndroid Build Coastguard Worker LIBICONV_PREFIX="$basedir" 9515*6a54128fSAndroid Build Coastguard Worker fi 9516*6a54128fSAndroid Build Coastguard Worker additional_includedir="$basedir/include" 9517*6a54128fSAndroid Build Coastguard Worker ;; 9518*6a54128fSAndroid Build Coastguard Worker */$acl_libdirstem3 | */$acl_libdirstem3/) 9519*6a54128fSAndroid Build Coastguard Worker basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` 9520*6a54128fSAndroid Build Coastguard Worker if test "$name" = 'iconv'; then 9521*6a54128fSAndroid Build Coastguard Worker LIBICONV_PREFIX="$basedir" 9522*6a54128fSAndroid Build Coastguard Worker fi 9523*6a54128fSAndroid Build Coastguard Worker additional_includedir="$basedir/include" 9524*6a54128fSAndroid Build Coastguard Worker ;; 9525*6a54128fSAndroid Build Coastguard Worker esac 9526*6a54128fSAndroid Build Coastguard Worker if test "X$additional_includedir" != "X"; then 9527*6a54128fSAndroid Build Coastguard Worker if test "X$additional_includedir" != "X/usr/include"; then 9528*6a54128fSAndroid Build Coastguard Worker haveit= 9529*6a54128fSAndroid Build Coastguard Worker if test "X$additional_includedir" = "X/usr/local/include"; then 9530*6a54128fSAndroid Build Coastguard Worker if test -n "$GCC"; then 9531*6a54128fSAndroid Build Coastguard Worker case $host_os in 9532*6a54128fSAndroid Build Coastguard Worker linux* | gnu* | k*bsd*-gnu) haveit=yes;; 9533*6a54128fSAndroid Build Coastguard Worker esac 9534*6a54128fSAndroid Build Coastguard Worker fi 9535*6a54128fSAndroid Build Coastguard Worker fi 9536*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 9537*6a54128fSAndroid Build Coastguard Worker for x in $CPPFLAGS $INCICONV; do 9538*6a54128fSAndroid Build Coastguard Worker 9539*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 9540*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 9541*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 9542*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 9543*6a54128fSAndroid Build Coastguard Worker eval x=\"$x\" 9544*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 9545*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 9546*6a54128fSAndroid Build Coastguard Worker 9547*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X-I$additional_includedir"; then 9548*6a54128fSAndroid Build Coastguard Worker haveit=yes 9549*6a54128fSAndroid Build Coastguard Worker break 9550*6a54128fSAndroid Build Coastguard Worker fi 9551*6a54128fSAndroid Build Coastguard Worker done 9552*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 9553*6a54128fSAndroid Build Coastguard Worker if test -d "$additional_includedir"; then 9554*6a54128fSAndroid Build Coastguard Worker INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 9555*6a54128fSAndroid Build Coastguard Worker fi 9556*6a54128fSAndroid Build Coastguard Worker fi 9557*6a54128fSAndroid Build Coastguard Worker fi 9558*6a54128fSAndroid Build Coastguard Worker fi 9559*6a54128fSAndroid Build Coastguard Worker fi 9560*6a54128fSAndroid Build Coastguard Worker if test -n "$found_la"; then 9561*6a54128fSAndroid Build Coastguard Worker save_libdir="$libdir" 9562*6a54128fSAndroid Build Coastguard Worker case "$found_la" in 9563*6a54128fSAndroid Build Coastguard Worker */* | *\\*) . "$found_la" ;; 9564*6a54128fSAndroid Build Coastguard Worker *) . "./$found_la" ;; 9565*6a54128fSAndroid Build Coastguard Worker esac 9566*6a54128fSAndroid Build Coastguard Worker libdir="$save_libdir" 9567*6a54128fSAndroid Build Coastguard Worker for dep in $dependency_libs; do 9568*6a54128fSAndroid Build Coastguard Worker case "$dep" in 9569*6a54128fSAndroid Build Coastguard Worker -L*) 9570*6a54128fSAndroid Build Coastguard Worker dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 9571*6a54128fSAndroid Build Coastguard Worker if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ 9572*6a54128fSAndroid Build Coastguard Worker && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ 9573*6a54128fSAndroid Build Coastguard Worker && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then 9574*6a54128fSAndroid Build Coastguard Worker haveit= 9575*6a54128fSAndroid Build Coastguard Worker if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ 9576*6a54128fSAndroid Build Coastguard Worker || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ 9577*6a54128fSAndroid Build Coastguard Worker || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then 9578*6a54128fSAndroid Build Coastguard Worker if test -n "$GCC"; then 9579*6a54128fSAndroid Build Coastguard Worker case $host_os in 9580*6a54128fSAndroid Build Coastguard Worker linux* | gnu* | k*bsd*-gnu) haveit=yes;; 9581*6a54128fSAndroid Build Coastguard Worker esac 9582*6a54128fSAndroid Build Coastguard Worker fi 9583*6a54128fSAndroid Build Coastguard Worker fi 9584*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 9585*6a54128fSAndroid Build Coastguard Worker haveit= 9586*6a54128fSAndroid Build Coastguard Worker for x in $LDFLAGS $LIBICONV; do 9587*6a54128fSAndroid Build Coastguard Worker 9588*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 9589*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 9590*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 9591*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 9592*6a54128fSAndroid Build Coastguard Worker eval x=\"$x\" 9593*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 9594*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 9595*6a54128fSAndroid Build Coastguard Worker 9596*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X-L$dependency_libdir"; then 9597*6a54128fSAndroid Build Coastguard Worker haveit=yes 9598*6a54128fSAndroid Build Coastguard Worker break 9599*6a54128fSAndroid Build Coastguard Worker fi 9600*6a54128fSAndroid Build Coastguard Worker done 9601*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 9602*6a54128fSAndroid Build Coastguard Worker if test -d "$dependency_libdir"; then 9603*6a54128fSAndroid Build Coastguard Worker LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir" 9604*6a54128fSAndroid Build Coastguard Worker fi 9605*6a54128fSAndroid Build Coastguard Worker fi 9606*6a54128fSAndroid Build Coastguard Worker haveit= 9607*6a54128fSAndroid Build Coastguard Worker for x in $LDFLAGS $LTLIBICONV; do 9608*6a54128fSAndroid Build Coastguard Worker 9609*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 9610*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 9611*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 9612*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 9613*6a54128fSAndroid Build Coastguard Worker eval x=\"$x\" 9614*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 9615*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 9616*6a54128fSAndroid Build Coastguard Worker 9617*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X-L$dependency_libdir"; then 9618*6a54128fSAndroid Build Coastguard Worker haveit=yes 9619*6a54128fSAndroid Build Coastguard Worker break 9620*6a54128fSAndroid Build Coastguard Worker fi 9621*6a54128fSAndroid Build Coastguard Worker done 9622*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 9623*6a54128fSAndroid Build Coastguard Worker if test -d "$dependency_libdir"; then 9624*6a54128fSAndroid Build Coastguard Worker LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir" 9625*6a54128fSAndroid Build Coastguard Worker fi 9626*6a54128fSAndroid Build Coastguard Worker fi 9627*6a54128fSAndroid Build Coastguard Worker fi 9628*6a54128fSAndroid Build Coastguard Worker fi 9629*6a54128fSAndroid Build Coastguard Worker ;; 9630*6a54128fSAndroid Build Coastguard Worker -R*) 9631*6a54128fSAndroid Build Coastguard Worker dir=`echo "X$dep" | sed -e 's/^X-R//'` 9632*6a54128fSAndroid Build Coastguard Worker if test "$enable_rpath" != no; then 9633*6a54128fSAndroid Build Coastguard Worker haveit= 9634*6a54128fSAndroid Build Coastguard Worker for x in $rpathdirs; do 9635*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X$dir"; then 9636*6a54128fSAndroid Build Coastguard Worker haveit=yes 9637*6a54128fSAndroid Build Coastguard Worker break 9638*6a54128fSAndroid Build Coastguard Worker fi 9639*6a54128fSAndroid Build Coastguard Worker done 9640*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 9641*6a54128fSAndroid Build Coastguard Worker rpathdirs="$rpathdirs $dir" 9642*6a54128fSAndroid Build Coastguard Worker fi 9643*6a54128fSAndroid Build Coastguard Worker haveit= 9644*6a54128fSAndroid Build Coastguard Worker for x in $ltrpathdirs; do 9645*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X$dir"; then 9646*6a54128fSAndroid Build Coastguard Worker haveit=yes 9647*6a54128fSAndroid Build Coastguard Worker break 9648*6a54128fSAndroid Build Coastguard Worker fi 9649*6a54128fSAndroid Build Coastguard Worker done 9650*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 9651*6a54128fSAndroid Build Coastguard Worker ltrpathdirs="$ltrpathdirs $dir" 9652*6a54128fSAndroid Build Coastguard Worker fi 9653*6a54128fSAndroid Build Coastguard Worker fi 9654*6a54128fSAndroid Build Coastguard Worker ;; 9655*6a54128fSAndroid Build Coastguard Worker -l*) 9656*6a54128fSAndroid Build Coastguard Worker names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 9657*6a54128fSAndroid Build Coastguard Worker ;; 9658*6a54128fSAndroid Build Coastguard Worker *.la) 9659*6a54128fSAndroid Build Coastguard Worker names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 9660*6a54128fSAndroid Build Coastguard Worker ;; 9661*6a54128fSAndroid Build Coastguard Worker *) 9662*6a54128fSAndroid Build Coastguard Worker LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 9663*6a54128fSAndroid Build Coastguard Worker LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 9664*6a54128fSAndroid Build Coastguard Worker ;; 9665*6a54128fSAndroid Build Coastguard Worker esac 9666*6a54128fSAndroid Build Coastguard Worker done 9667*6a54128fSAndroid Build Coastguard Worker fi 9668*6a54128fSAndroid Build Coastguard Worker else 9669*6a54128fSAndroid Build Coastguard Worker LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 9670*6a54128fSAndroid Build Coastguard Worker LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 9671*6a54128fSAndroid Build Coastguard Worker fi 9672*6a54128fSAndroid Build Coastguard Worker fi 9673*6a54128fSAndroid Build Coastguard Worker fi 9674*6a54128fSAndroid Build Coastguard Worker done 9675*6a54128fSAndroid Build Coastguard Worker done 9676*6a54128fSAndroid Build Coastguard Worker if test "X$rpathdirs" != "X"; then 9677*6a54128fSAndroid Build Coastguard Worker if test -n "$acl_hardcode_libdir_separator"; then 9678*6a54128fSAndroid Build Coastguard Worker alldirs= 9679*6a54128fSAndroid Build Coastguard Worker for found_dir in $rpathdirs; do 9680*6a54128fSAndroid Build Coastguard Worker alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 9681*6a54128fSAndroid Build Coastguard Worker done 9682*6a54128fSAndroid Build Coastguard Worker acl_save_libdir="$libdir" 9683*6a54128fSAndroid Build Coastguard Worker libdir="$alldirs" 9684*6a54128fSAndroid Build Coastguard Worker eval flag=\"$acl_hardcode_libdir_flag_spec\" 9685*6a54128fSAndroid Build Coastguard Worker libdir="$acl_save_libdir" 9686*6a54128fSAndroid Build Coastguard Worker LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 9687*6a54128fSAndroid Build Coastguard Worker else 9688*6a54128fSAndroid Build Coastguard Worker for found_dir in $rpathdirs; do 9689*6a54128fSAndroid Build Coastguard Worker acl_save_libdir="$libdir" 9690*6a54128fSAndroid Build Coastguard Worker libdir="$found_dir" 9691*6a54128fSAndroid Build Coastguard Worker eval flag=\"$acl_hardcode_libdir_flag_spec\" 9692*6a54128fSAndroid Build Coastguard Worker libdir="$acl_save_libdir" 9693*6a54128fSAndroid Build Coastguard Worker LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 9694*6a54128fSAndroid Build Coastguard Worker done 9695*6a54128fSAndroid Build Coastguard Worker fi 9696*6a54128fSAndroid Build Coastguard Worker fi 9697*6a54128fSAndroid Build Coastguard Worker if test "X$ltrpathdirs" != "X"; then 9698*6a54128fSAndroid Build Coastguard Worker for found_dir in $ltrpathdirs; do 9699*6a54128fSAndroid Build Coastguard Worker LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 9700*6a54128fSAndroid Build Coastguard Worker done 9701*6a54128fSAndroid Build Coastguard Worker fi 9702*6a54128fSAndroid Build Coastguard Worker 9703*6a54128fSAndroid Build Coastguard Worker 9704*6a54128fSAndroid Build Coastguard Worker 9705*6a54128fSAndroid Build Coastguard Worker 9706*6a54128fSAndroid Build Coastguard Worker 9707*6a54128fSAndroid Build Coastguard Worker 9708*6a54128fSAndroid Build Coastguard Worker 9709*6a54128fSAndroid Build Coastguard Worker 9710*6a54128fSAndroid Build Coastguard Worker 9711*6a54128fSAndroid Build Coastguard Worker 9712*6a54128fSAndroid Build Coastguard Worker 9713*6a54128fSAndroid Build Coastguard Worker 9714*6a54128fSAndroid Build Coastguard Worker 9715*6a54128fSAndroid Build Coastguard Worker 9716*6a54128fSAndroid Build Coastguard Worker 9717*6a54128fSAndroid Build Coastguard Worker 9718*6a54128fSAndroid Build Coastguard Worker 9719*6a54128fSAndroid Build Coastguard Worker 9720*6a54128fSAndroid Build Coastguard Worker 9721*6a54128fSAndroid Build Coastguard Worker 9722*6a54128fSAndroid Build Coastguard Worker 9723*6a54128fSAndroid Build Coastguard Worker 9724*6a54128fSAndroid Build Coastguard Worker 9725*6a54128fSAndroid Build Coastguard Worker 9726*6a54128fSAndroid Build Coastguard Worker 9727*6a54128fSAndroid Build Coastguard Worker 9728*6a54128fSAndroid Build Coastguard Worker 9729*6a54128fSAndroid Build Coastguard Worker 9730*6a54128fSAndroid Build Coastguard Worker 9731*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 9732*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for CFPreferencesCopyAppValue... " >&6; } 9733*6a54128fSAndroid Build Coastguard Workerif test ${gt_cv_func_CFPreferencesCopyAppValue+y} 9734*6a54128fSAndroid Build Coastguard Workerthen : 9735*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 9736*6a54128fSAndroid Build Coastguard Workerelse $as_nop 9737*6a54128fSAndroid Build Coastguard Worker gt_save_LIBS="$LIBS" 9738*6a54128fSAndroid Build Coastguard Worker LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 9739*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9740*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 9741*6a54128fSAndroid Build Coastguard Worker#include <CoreFoundation/CFPreferences.h> 9742*6a54128fSAndroid Build Coastguard Workerint 9743*6a54128fSAndroid Build Coastguard Workermain (void) 9744*6a54128fSAndroid Build Coastguard Worker{ 9745*6a54128fSAndroid Build Coastguard WorkerCFPreferencesCopyAppValue(NULL, NULL) 9746*6a54128fSAndroid Build Coastguard Worker ; 9747*6a54128fSAndroid Build Coastguard Worker return 0; 9748*6a54128fSAndroid Build Coastguard Worker} 9749*6a54128fSAndroid Build Coastguard Worker_ACEOF 9750*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 9751*6a54128fSAndroid Build Coastguard Workerthen : 9752*6a54128fSAndroid Build Coastguard Worker gt_cv_func_CFPreferencesCopyAppValue=yes 9753*6a54128fSAndroid Build Coastguard Workerelse $as_nop 9754*6a54128fSAndroid Build Coastguard Worker gt_cv_func_CFPreferencesCopyAppValue=no 9755*6a54128fSAndroid Build Coastguard Workerfi 9756*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9757*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 9758*6a54128fSAndroid Build Coastguard Worker LIBS="$gt_save_LIBS" 9759*6a54128fSAndroid Build Coastguard Workerfi 9760*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 9761*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 9762*6a54128fSAndroid Build Coastguard Worker if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 9763*6a54128fSAndroid Build Coastguard Worker 9764*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 9765*6a54128fSAndroid Build Coastguard Worker 9766*6a54128fSAndroid Build Coastguard Worker fi 9767*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 9768*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; } 9769*6a54128fSAndroid Build Coastguard Workerif test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y} 9770*6a54128fSAndroid Build Coastguard Workerthen : 9771*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 9772*6a54128fSAndroid Build Coastguard Workerelse $as_nop 9773*6a54128fSAndroid Build Coastguard Worker gt_save_LIBS="$LIBS" 9774*6a54128fSAndroid Build Coastguard Worker LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 9775*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9776*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 9777*6a54128fSAndroid Build Coastguard Worker#include <CoreFoundation/CFLocale.h> 9778*6a54128fSAndroid Build Coastguard Workerint 9779*6a54128fSAndroid Build Coastguard Workermain (void) 9780*6a54128fSAndroid Build Coastguard Worker{ 9781*6a54128fSAndroid Build Coastguard WorkerCFLocaleCopyPreferredLanguages(); 9782*6a54128fSAndroid Build Coastguard Worker ; 9783*6a54128fSAndroid Build Coastguard Worker return 0; 9784*6a54128fSAndroid Build Coastguard Worker} 9785*6a54128fSAndroid Build Coastguard Worker_ACEOF 9786*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 9787*6a54128fSAndroid Build Coastguard Workerthen : 9788*6a54128fSAndroid Build Coastguard Worker gt_cv_func_CFLocaleCopyPreferredLanguages=yes 9789*6a54128fSAndroid Build Coastguard Workerelse $as_nop 9790*6a54128fSAndroid Build Coastguard Worker gt_cv_func_CFLocaleCopyPreferredLanguages=no 9791*6a54128fSAndroid Build Coastguard Workerfi 9792*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9793*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 9794*6a54128fSAndroid Build Coastguard Worker LIBS="$gt_save_LIBS" 9795*6a54128fSAndroid Build Coastguard Workerfi 9796*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 9797*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 9798*6a54128fSAndroid Build Coastguard Worker if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 9799*6a54128fSAndroid Build Coastguard Worker 9800*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 9801*6a54128fSAndroid Build Coastguard Worker 9802*6a54128fSAndroid Build Coastguard Worker fi 9803*6a54128fSAndroid Build Coastguard Worker INTL_MACOSX_LIBS= 9804*6a54128fSAndroid Build Coastguard Worker if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 9805*6a54128fSAndroid Build Coastguard Worker || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 9806*6a54128fSAndroid Build Coastguard Worker INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 9807*6a54128fSAndroid Build Coastguard Worker fi 9808*6a54128fSAndroid Build Coastguard Worker 9809*6a54128fSAndroid Build Coastguard Worker 9810*6a54128fSAndroid Build Coastguard Worker 9811*6a54128fSAndroid Build Coastguard Worker 9812*6a54128fSAndroid Build Coastguard Worker 9813*6a54128fSAndroid Build Coastguard Worker 9814*6a54128fSAndroid Build Coastguard Worker LIBINTL= 9815*6a54128fSAndroid Build Coastguard Worker LTLIBINTL= 9816*6a54128fSAndroid Build Coastguard Worker POSUB= 9817*6a54128fSAndroid Build Coastguard Worker 9818*6a54128fSAndroid Build Coastguard Worker case " $gt_needs " in 9819*6a54128fSAndroid Build Coastguard Worker *" need-formatstring-macros "*) gt_api_version=3 ;; 9820*6a54128fSAndroid Build Coastguard Worker *" need-ngettext "*) gt_api_version=2 ;; 9821*6a54128fSAndroid Build Coastguard Worker *) gt_api_version=1 ;; 9822*6a54128fSAndroid Build Coastguard Worker esac 9823*6a54128fSAndroid Build Coastguard Worker gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 9824*6a54128fSAndroid Build Coastguard Worker gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 9825*6a54128fSAndroid Build Coastguard Worker 9826*6a54128fSAndroid Build Coastguard Worker if test "$USE_NLS" = "yes"; then 9827*6a54128fSAndroid Build Coastguard Worker gt_use_preinstalled_gnugettext=no 9828*6a54128fSAndroid Build Coastguard Worker 9829*6a54128fSAndroid Build Coastguard Worker 9830*6a54128fSAndroid Build Coastguard Worker if test $gt_api_version -ge 3; then 9831*6a54128fSAndroid Build Coastguard Worker gt_revision_test_code=' 9832*6a54128fSAndroid Build Coastguard Worker#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 9833*6a54128fSAndroid Build Coastguard Worker#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 9834*6a54128fSAndroid Build Coastguard Worker#endif 9835*6a54128fSAndroid Build Coastguard Workertypedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 9836*6a54128fSAndroid Build Coastguard Worker' 9837*6a54128fSAndroid Build Coastguard Worker else 9838*6a54128fSAndroid Build Coastguard Worker gt_revision_test_code= 9839*6a54128fSAndroid Build Coastguard Worker fi 9840*6a54128fSAndroid Build Coastguard Worker if test $gt_api_version -ge 2; then 9841*6a54128fSAndroid Build Coastguard Worker gt_expression_test_code=' + * ngettext ("", "", 0)' 9842*6a54128fSAndroid Build Coastguard Worker else 9843*6a54128fSAndroid Build Coastguard Worker gt_expression_test_code= 9844*6a54128fSAndroid Build Coastguard Worker fi 9845*6a54128fSAndroid Build Coastguard Worker 9846*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 9847*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for GNU gettext in libc... " >&6; } 9848*6a54128fSAndroid Build Coastguard Workerif eval test \${$gt_func_gnugettext_libc+y} 9849*6a54128fSAndroid Build Coastguard Workerthen : 9850*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 9851*6a54128fSAndroid Build Coastguard Workerelse $as_nop 9852*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9853*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 9854*6a54128fSAndroid Build Coastguard Worker 9855*6a54128fSAndroid Build Coastguard Worker#include <libintl.h> 9856*6a54128fSAndroid Build Coastguard Worker#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 9857*6a54128fSAndroid Build Coastguard Workerextern int _nl_msg_cat_cntr; 9858*6a54128fSAndroid Build Coastguard Workerextern int *_nl_domain_bindings; 9859*6a54128fSAndroid Build Coastguard Worker#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 9860*6a54128fSAndroid Build Coastguard Worker#else 9861*6a54128fSAndroid Build Coastguard Worker#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 9862*6a54128fSAndroid Build Coastguard Worker#endif 9863*6a54128fSAndroid Build Coastguard Worker$gt_revision_test_code 9864*6a54128fSAndroid Build Coastguard Worker 9865*6a54128fSAndroid Build Coastguard Workerint 9866*6a54128fSAndroid Build Coastguard Workermain (void) 9867*6a54128fSAndroid Build Coastguard Worker{ 9868*6a54128fSAndroid Build Coastguard Worker 9869*6a54128fSAndroid Build Coastguard Workerbindtextdomain ("", ""); 9870*6a54128fSAndroid Build Coastguard Workerreturn * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 9871*6a54128fSAndroid Build Coastguard Worker 9872*6a54128fSAndroid Build Coastguard Worker ; 9873*6a54128fSAndroid Build Coastguard Worker return 0; 9874*6a54128fSAndroid Build Coastguard Worker} 9875*6a54128fSAndroid Build Coastguard Worker_ACEOF 9876*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 9877*6a54128fSAndroid Build Coastguard Workerthen : 9878*6a54128fSAndroid Build Coastguard Worker eval "$gt_func_gnugettext_libc=yes" 9879*6a54128fSAndroid Build Coastguard Workerelse $as_nop 9880*6a54128fSAndroid Build Coastguard Worker eval "$gt_func_gnugettext_libc=no" 9881*6a54128fSAndroid Build Coastguard Workerfi 9882*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9883*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 9884*6a54128fSAndroid Build Coastguard Workerfi 9885*6a54128fSAndroid Build Coastguard Workereval ac_res=\$$gt_func_gnugettext_libc 9886*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9887*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_res" >&6; } 9888*6a54128fSAndroid Build Coastguard Worker 9889*6a54128fSAndroid Build Coastguard Worker if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 9890*6a54128fSAndroid Build Coastguard Worker 9891*6a54128fSAndroid Build Coastguard Worker 9892*6a54128fSAndroid Build Coastguard Worker 9893*6a54128fSAndroid Build Coastguard Worker 9894*6a54128fSAndroid Build Coastguard Worker 9895*6a54128fSAndroid Build Coastguard Worker am_save_CPPFLAGS="$CPPFLAGS" 9896*6a54128fSAndroid Build Coastguard Worker 9897*6a54128fSAndroid Build Coastguard Worker for element in $INCICONV; do 9898*6a54128fSAndroid Build Coastguard Worker haveit= 9899*6a54128fSAndroid Build Coastguard Worker for x in $CPPFLAGS; do 9900*6a54128fSAndroid Build Coastguard Worker 9901*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 9902*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 9903*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 9904*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 9905*6a54128fSAndroid Build Coastguard Worker eval x=\"$x\" 9906*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 9907*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 9908*6a54128fSAndroid Build Coastguard Worker 9909*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X$element"; then 9910*6a54128fSAndroid Build Coastguard Worker haveit=yes 9911*6a54128fSAndroid Build Coastguard Worker break 9912*6a54128fSAndroid Build Coastguard Worker fi 9913*6a54128fSAndroid Build Coastguard Worker done 9914*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 9915*6a54128fSAndroid Build Coastguard Worker CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 9916*6a54128fSAndroid Build Coastguard Worker fi 9917*6a54128fSAndroid Build Coastguard Worker done 9918*6a54128fSAndroid Build Coastguard Worker 9919*6a54128fSAndroid Build Coastguard Worker 9920*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 9921*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for iconv... " >&6; } 9922*6a54128fSAndroid Build Coastguard Workerif test ${am_cv_func_iconv+y} 9923*6a54128fSAndroid Build Coastguard Workerthen : 9924*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 9925*6a54128fSAndroid Build Coastguard Workerelse $as_nop 9926*6a54128fSAndroid Build Coastguard Worker 9927*6a54128fSAndroid Build Coastguard Worker am_cv_func_iconv="no, consider installing GNU libiconv" 9928*6a54128fSAndroid Build Coastguard Worker am_cv_lib_iconv=no 9929*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9930*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 9931*6a54128fSAndroid Build Coastguard Worker 9932*6a54128fSAndroid Build Coastguard Worker#include <stdlib.h> 9933*6a54128fSAndroid Build Coastguard Worker#include <iconv.h> 9934*6a54128fSAndroid Build Coastguard Worker 9935*6a54128fSAndroid Build Coastguard Workerint 9936*6a54128fSAndroid Build Coastguard Workermain (void) 9937*6a54128fSAndroid Build Coastguard Worker{ 9938*6a54128fSAndroid Build Coastguard Workericonv_t cd = iconv_open("",""); 9939*6a54128fSAndroid Build Coastguard Worker iconv(cd,NULL,NULL,NULL,NULL); 9940*6a54128fSAndroid Build Coastguard Worker iconv_close(cd); 9941*6a54128fSAndroid Build Coastguard Worker ; 9942*6a54128fSAndroid Build Coastguard Worker return 0; 9943*6a54128fSAndroid Build Coastguard Worker} 9944*6a54128fSAndroid Build Coastguard Worker_ACEOF 9945*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 9946*6a54128fSAndroid Build Coastguard Workerthen : 9947*6a54128fSAndroid Build Coastguard Worker am_cv_func_iconv=yes 9948*6a54128fSAndroid Build Coastguard Workerfi 9949*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9950*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 9951*6a54128fSAndroid Build Coastguard Worker if test "$am_cv_func_iconv" != yes; then 9952*6a54128fSAndroid Build Coastguard Worker am_save_LIBS="$LIBS" 9953*6a54128fSAndroid Build Coastguard Worker LIBS="$LIBS $LIBICONV" 9954*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9955*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 9956*6a54128fSAndroid Build Coastguard Worker 9957*6a54128fSAndroid Build Coastguard Worker#include <stdlib.h> 9958*6a54128fSAndroid Build Coastguard Worker#include <iconv.h> 9959*6a54128fSAndroid Build Coastguard Worker 9960*6a54128fSAndroid Build Coastguard Workerint 9961*6a54128fSAndroid Build Coastguard Workermain (void) 9962*6a54128fSAndroid Build Coastguard Worker{ 9963*6a54128fSAndroid Build Coastguard Workericonv_t cd = iconv_open("",""); 9964*6a54128fSAndroid Build Coastguard Worker iconv(cd,NULL,NULL,NULL,NULL); 9965*6a54128fSAndroid Build Coastguard Worker iconv_close(cd); 9966*6a54128fSAndroid Build Coastguard Worker ; 9967*6a54128fSAndroid Build Coastguard Worker return 0; 9968*6a54128fSAndroid Build Coastguard Worker} 9969*6a54128fSAndroid Build Coastguard Worker_ACEOF 9970*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 9971*6a54128fSAndroid Build Coastguard Workerthen : 9972*6a54128fSAndroid Build Coastguard Worker am_cv_lib_iconv=yes 9973*6a54128fSAndroid Build Coastguard Worker am_cv_func_iconv=yes 9974*6a54128fSAndroid Build Coastguard Workerfi 9975*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9976*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 9977*6a54128fSAndroid Build Coastguard Worker LIBS="$am_save_LIBS" 9978*6a54128fSAndroid Build Coastguard Worker fi 9979*6a54128fSAndroid Build Coastguard Worker 9980*6a54128fSAndroid Build Coastguard Workerfi 9981*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 9982*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$am_cv_func_iconv" >&6; } 9983*6a54128fSAndroid Build Coastguard Worker if test "$am_cv_func_iconv" = yes; then 9984*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 9985*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for working iconv... " >&6; } 9986*6a54128fSAndroid Build Coastguard Workerif test ${am_cv_func_iconv_works+y} 9987*6a54128fSAndroid Build Coastguard Workerthen : 9988*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 9989*6a54128fSAndroid Build Coastguard Workerelse $as_nop 9990*6a54128fSAndroid Build Coastguard Worker 9991*6a54128fSAndroid Build Coastguard Worker am_save_LIBS="$LIBS" 9992*6a54128fSAndroid Build Coastguard Worker if test $am_cv_lib_iconv = yes; then 9993*6a54128fSAndroid Build Coastguard Worker LIBS="$LIBS $LIBICONV" 9994*6a54128fSAndroid Build Coastguard Worker fi 9995*6a54128fSAndroid Build Coastguard Worker am_cv_func_iconv_works=no 9996*6a54128fSAndroid Build Coastguard Worker for ac_iconv_const in '' 'const'; do 9997*6a54128fSAndroid Build Coastguard Worker if test "$cross_compiling" = yes 9998*6a54128fSAndroid Build Coastguard Workerthen : 9999*6a54128fSAndroid Build Coastguard Worker case "$host_os" in 10000*6a54128fSAndroid Build Coastguard Worker aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 10001*6a54128fSAndroid Build Coastguard Worker *) am_cv_func_iconv_works="guessing yes" ;; 10002*6a54128fSAndroid Build Coastguard Worker esac 10003*6a54128fSAndroid Build Coastguard Workerelse $as_nop 10004*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10005*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 10006*6a54128fSAndroid Build Coastguard Worker 10007*6a54128fSAndroid Build Coastguard Worker#include <iconv.h> 10008*6a54128fSAndroid Build Coastguard Worker#include <string.h> 10009*6a54128fSAndroid Build Coastguard Worker 10010*6a54128fSAndroid Build Coastguard Worker#ifndef ICONV_CONST 10011*6a54128fSAndroid Build Coastguard Worker# define ICONV_CONST $ac_iconv_const 10012*6a54128fSAndroid Build Coastguard Worker#endif 10013*6a54128fSAndroid Build Coastguard Worker 10014*6a54128fSAndroid Build Coastguard Workerint 10015*6a54128fSAndroid Build Coastguard Workermain (void) 10016*6a54128fSAndroid Build Coastguard Worker{ 10017*6a54128fSAndroid Build Coastguard Workerint result = 0; 10018*6a54128fSAndroid Build Coastguard Worker /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 10019*6a54128fSAndroid Build Coastguard Worker returns. */ 10020*6a54128fSAndroid Build Coastguard Worker { 10021*6a54128fSAndroid Build Coastguard Worker iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 10022*6a54128fSAndroid Build Coastguard Worker if (cd_utf8_to_88591 != (iconv_t)(-1)) 10023*6a54128fSAndroid Build Coastguard Worker { 10024*6a54128fSAndroid Build Coastguard Worker static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 10025*6a54128fSAndroid Build Coastguard Worker char buf[10]; 10026*6a54128fSAndroid Build Coastguard Worker ICONV_CONST char *inptr = input; 10027*6a54128fSAndroid Build Coastguard Worker size_t inbytesleft = strlen (input); 10028*6a54128fSAndroid Build Coastguard Worker char *outptr = buf; 10029*6a54128fSAndroid Build Coastguard Worker size_t outbytesleft = sizeof (buf); 10030*6a54128fSAndroid Build Coastguard Worker size_t res = iconv (cd_utf8_to_88591, 10031*6a54128fSAndroid Build Coastguard Worker &inptr, &inbytesleft, 10032*6a54128fSAndroid Build Coastguard Worker &outptr, &outbytesleft); 10033*6a54128fSAndroid Build Coastguard Worker if (res == 0) 10034*6a54128fSAndroid Build Coastguard Worker result |= 1; 10035*6a54128fSAndroid Build Coastguard Worker iconv_close (cd_utf8_to_88591); 10036*6a54128fSAndroid Build Coastguard Worker } 10037*6a54128fSAndroid Build Coastguard Worker } 10038*6a54128fSAndroid Build Coastguard Worker /* Test against Solaris 10 bug: Failures are not distinguishable from 10039*6a54128fSAndroid Build Coastguard Worker successful returns. */ 10040*6a54128fSAndroid Build Coastguard Worker { 10041*6a54128fSAndroid Build Coastguard Worker iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 10042*6a54128fSAndroid Build Coastguard Worker if (cd_ascii_to_88591 != (iconv_t)(-1)) 10043*6a54128fSAndroid Build Coastguard Worker { 10044*6a54128fSAndroid Build Coastguard Worker static ICONV_CONST char input[] = "\263"; 10045*6a54128fSAndroid Build Coastguard Worker char buf[10]; 10046*6a54128fSAndroid Build Coastguard Worker ICONV_CONST char *inptr = input; 10047*6a54128fSAndroid Build Coastguard Worker size_t inbytesleft = strlen (input); 10048*6a54128fSAndroid Build Coastguard Worker char *outptr = buf; 10049*6a54128fSAndroid Build Coastguard Worker size_t outbytesleft = sizeof (buf); 10050*6a54128fSAndroid Build Coastguard Worker size_t res = iconv (cd_ascii_to_88591, 10051*6a54128fSAndroid Build Coastguard Worker &inptr, &inbytesleft, 10052*6a54128fSAndroid Build Coastguard Worker &outptr, &outbytesleft); 10053*6a54128fSAndroid Build Coastguard Worker if (res == 0) 10054*6a54128fSAndroid Build Coastguard Worker result |= 2; 10055*6a54128fSAndroid Build Coastguard Worker iconv_close (cd_ascii_to_88591); 10056*6a54128fSAndroid Build Coastguard Worker } 10057*6a54128fSAndroid Build Coastguard Worker } 10058*6a54128fSAndroid Build Coastguard Worker /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 10059*6a54128fSAndroid Build Coastguard Worker { 10060*6a54128fSAndroid Build Coastguard Worker iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 10061*6a54128fSAndroid Build Coastguard Worker if (cd_88591_to_utf8 != (iconv_t)(-1)) 10062*6a54128fSAndroid Build Coastguard Worker { 10063*6a54128fSAndroid Build Coastguard Worker static ICONV_CONST char input[] = "\304"; 10064*6a54128fSAndroid Build Coastguard Worker static char buf[2] = { (char)0xDE, (char)0xAD }; 10065*6a54128fSAndroid Build Coastguard Worker ICONV_CONST char *inptr = input; 10066*6a54128fSAndroid Build Coastguard Worker size_t inbytesleft = 1; 10067*6a54128fSAndroid Build Coastguard Worker char *outptr = buf; 10068*6a54128fSAndroid Build Coastguard Worker size_t outbytesleft = 1; 10069*6a54128fSAndroid Build Coastguard Worker size_t res = iconv (cd_88591_to_utf8, 10070*6a54128fSAndroid Build Coastguard Worker &inptr, &inbytesleft, 10071*6a54128fSAndroid Build Coastguard Worker &outptr, &outbytesleft); 10072*6a54128fSAndroid Build Coastguard Worker if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 10073*6a54128fSAndroid Build Coastguard Worker result |= 4; 10074*6a54128fSAndroid Build Coastguard Worker iconv_close (cd_88591_to_utf8); 10075*6a54128fSAndroid Build Coastguard Worker } 10076*6a54128fSAndroid Build Coastguard Worker } 10077*6a54128fSAndroid Build Coastguard Worker#if 0 /* This bug could be worked around by the caller. */ 10078*6a54128fSAndroid Build Coastguard Worker /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 10079*6a54128fSAndroid Build Coastguard Worker { 10080*6a54128fSAndroid Build Coastguard Worker iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 10081*6a54128fSAndroid Build Coastguard Worker if (cd_88591_to_utf8 != (iconv_t)(-1)) 10082*6a54128fSAndroid Build Coastguard Worker { 10083*6a54128fSAndroid Build Coastguard Worker static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 10084*6a54128fSAndroid Build Coastguard Worker char buf[50]; 10085*6a54128fSAndroid Build Coastguard Worker ICONV_CONST char *inptr = input; 10086*6a54128fSAndroid Build Coastguard Worker size_t inbytesleft = strlen (input); 10087*6a54128fSAndroid Build Coastguard Worker char *outptr = buf; 10088*6a54128fSAndroid Build Coastguard Worker size_t outbytesleft = sizeof (buf); 10089*6a54128fSAndroid Build Coastguard Worker size_t res = iconv (cd_88591_to_utf8, 10090*6a54128fSAndroid Build Coastguard Worker &inptr, &inbytesleft, 10091*6a54128fSAndroid Build Coastguard Worker &outptr, &outbytesleft); 10092*6a54128fSAndroid Build Coastguard Worker if ((int)res > 0) 10093*6a54128fSAndroid Build Coastguard Worker result |= 8; 10094*6a54128fSAndroid Build Coastguard Worker iconv_close (cd_88591_to_utf8); 10095*6a54128fSAndroid Build Coastguard Worker } 10096*6a54128fSAndroid Build Coastguard Worker } 10097*6a54128fSAndroid Build Coastguard Worker#endif 10098*6a54128fSAndroid Build Coastguard Worker /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 10099*6a54128fSAndroid Build Coastguard Worker provided. */ 10100*6a54128fSAndroid Build Coastguard Worker { 10101*6a54128fSAndroid Build Coastguard Worker /* Try standardized names. */ 10102*6a54128fSAndroid Build Coastguard Worker iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 10103*6a54128fSAndroid Build Coastguard Worker /* Try IRIX, OSF/1 names. */ 10104*6a54128fSAndroid Build Coastguard Worker iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 10105*6a54128fSAndroid Build Coastguard Worker /* Try AIX names. */ 10106*6a54128fSAndroid Build Coastguard Worker iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 10107*6a54128fSAndroid Build Coastguard Worker /* Try HP-UX names. */ 10108*6a54128fSAndroid Build Coastguard Worker iconv_t cd4 = iconv_open ("utf8", "eucJP"); 10109*6a54128fSAndroid Build Coastguard Worker if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 10110*6a54128fSAndroid Build Coastguard Worker && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 10111*6a54128fSAndroid Build Coastguard Worker result |= 16; 10112*6a54128fSAndroid Build Coastguard Worker if (cd1 != (iconv_t)(-1)) 10113*6a54128fSAndroid Build Coastguard Worker iconv_close (cd1); 10114*6a54128fSAndroid Build Coastguard Worker if (cd2 != (iconv_t)(-1)) 10115*6a54128fSAndroid Build Coastguard Worker iconv_close (cd2); 10116*6a54128fSAndroid Build Coastguard Worker if (cd3 != (iconv_t)(-1)) 10117*6a54128fSAndroid Build Coastguard Worker iconv_close (cd3); 10118*6a54128fSAndroid Build Coastguard Worker if (cd4 != (iconv_t)(-1)) 10119*6a54128fSAndroid Build Coastguard Worker iconv_close (cd4); 10120*6a54128fSAndroid Build Coastguard Worker } 10121*6a54128fSAndroid Build Coastguard Worker return result; 10122*6a54128fSAndroid Build Coastguard Worker 10123*6a54128fSAndroid Build Coastguard Worker ; 10124*6a54128fSAndroid Build Coastguard Worker return 0; 10125*6a54128fSAndroid Build Coastguard Worker} 10126*6a54128fSAndroid Build Coastguard Worker_ACEOF 10127*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_run "$LINENO" 10128*6a54128fSAndroid Build Coastguard Workerthen : 10129*6a54128fSAndroid Build Coastguard Worker am_cv_func_iconv_works=yes 10130*6a54128fSAndroid Build Coastguard Workerfi 10131*6a54128fSAndroid Build Coastguard Workerrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10132*6a54128fSAndroid Build Coastguard Worker conftest.$ac_objext conftest.beam conftest.$ac_ext 10133*6a54128fSAndroid Build Coastguard Workerfi 10134*6a54128fSAndroid Build Coastguard Worker 10135*6a54128fSAndroid Build Coastguard Worker test "$am_cv_func_iconv_works" = no || break 10136*6a54128fSAndroid Build Coastguard Worker done 10137*6a54128fSAndroid Build Coastguard Worker LIBS="$am_save_LIBS" 10138*6a54128fSAndroid Build Coastguard Worker 10139*6a54128fSAndroid Build Coastguard Workerfi 10140*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 10141*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$am_cv_func_iconv_works" >&6; } 10142*6a54128fSAndroid Build Coastguard Worker case "$am_cv_func_iconv_works" in 10143*6a54128fSAndroid Build Coastguard Worker *no) am_func_iconv=no am_cv_lib_iconv=no ;; 10144*6a54128fSAndroid Build Coastguard Worker *) am_func_iconv=yes ;; 10145*6a54128fSAndroid Build Coastguard Worker esac 10146*6a54128fSAndroid Build Coastguard Worker else 10147*6a54128fSAndroid Build Coastguard Worker am_func_iconv=no am_cv_lib_iconv=no 10148*6a54128fSAndroid Build Coastguard Worker fi 10149*6a54128fSAndroid Build Coastguard Worker if test "$am_func_iconv" = yes; then 10150*6a54128fSAndroid Build Coastguard Worker 10151*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h 10152*6a54128fSAndroid Build Coastguard Worker 10153*6a54128fSAndroid Build Coastguard Worker fi 10154*6a54128fSAndroid Build Coastguard Worker if test "$am_cv_lib_iconv" = yes; then 10155*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 10156*6a54128fSAndroid Build Coastguard Workerprintf %s "checking how to link with libiconv... " >&6; } 10157*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 10158*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$LIBICONV" >&6; } 10159*6a54128fSAndroid Build Coastguard Worker else 10160*6a54128fSAndroid Build Coastguard Worker CPPFLAGS="$am_save_CPPFLAGS" 10161*6a54128fSAndroid Build Coastguard Worker LIBICONV= 10162*6a54128fSAndroid Build Coastguard Worker LTLIBICONV= 10163*6a54128fSAndroid Build Coastguard Worker fi 10164*6a54128fSAndroid Build Coastguard Worker 10165*6a54128fSAndroid Build Coastguard Worker 10166*6a54128fSAndroid Build Coastguard Worker 10167*6a54128fSAndroid Build Coastguard Worker 10168*6a54128fSAndroid Build Coastguard Worker 10169*6a54128fSAndroid Build Coastguard Worker 10170*6a54128fSAndroid Build Coastguard Worker 10171*6a54128fSAndroid Build Coastguard Worker 10172*6a54128fSAndroid Build Coastguard Worker 10173*6a54128fSAndroid Build Coastguard Worker 10174*6a54128fSAndroid Build Coastguard Worker use_additional=yes 10175*6a54128fSAndroid Build Coastguard Worker 10176*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 10177*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 10178*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 10179*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 10180*6a54128fSAndroid Build Coastguard Worker 10181*6a54128fSAndroid Build Coastguard Worker eval additional_includedir=\"$includedir\" 10182*6a54128fSAndroid Build Coastguard Worker eval additional_libdir=\"$libdir\" 10183*6a54128fSAndroid Build Coastguard Worker eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 10184*6a54128fSAndroid Build Coastguard Worker eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 10185*6a54128fSAndroid Build Coastguard Worker 10186*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 10187*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 10188*6a54128fSAndroid Build Coastguard Worker 10189*6a54128fSAndroid Build Coastguard Worker 10190*6a54128fSAndroid Build Coastguard Worker# Check whether --with-libintl-prefix was given. 10191*6a54128fSAndroid Build Coastguard Workerif test ${with_libintl_prefix+y} 10192*6a54128fSAndroid Build Coastguard Workerthen : 10193*6a54128fSAndroid Build Coastguard Worker withval=$with_libintl_prefix; 10194*6a54128fSAndroid Build Coastguard Worker if test "X$withval" = "Xno"; then 10195*6a54128fSAndroid Build Coastguard Worker use_additional=no 10196*6a54128fSAndroid Build Coastguard Worker else 10197*6a54128fSAndroid Build Coastguard Worker if test "X$withval" = "X"; then 10198*6a54128fSAndroid Build Coastguard Worker 10199*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 10200*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 10201*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 10202*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 10203*6a54128fSAndroid Build Coastguard Worker 10204*6a54128fSAndroid Build Coastguard Worker eval additional_includedir=\"$includedir\" 10205*6a54128fSAndroid Build Coastguard Worker eval additional_libdir=\"$libdir\" 10206*6a54128fSAndroid Build Coastguard Worker eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 10207*6a54128fSAndroid Build Coastguard Worker eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 10208*6a54128fSAndroid Build Coastguard Worker 10209*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 10210*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 10211*6a54128fSAndroid Build Coastguard Worker 10212*6a54128fSAndroid Build Coastguard Worker else 10213*6a54128fSAndroid Build Coastguard Worker additional_includedir="$withval/include" 10214*6a54128fSAndroid Build Coastguard Worker additional_libdir="$withval/$acl_libdirstem" 10215*6a54128fSAndroid Build Coastguard Worker additional_libdir2="$withval/$acl_libdirstem2" 10216*6a54128fSAndroid Build Coastguard Worker additional_libdir3="$withval/$acl_libdirstem3" 10217*6a54128fSAndroid Build Coastguard Worker fi 10218*6a54128fSAndroid Build Coastguard Worker fi 10219*6a54128fSAndroid Build Coastguard Worker 10220*6a54128fSAndroid Build Coastguard Workerfi 10221*6a54128fSAndroid Build Coastguard Worker 10222*6a54128fSAndroid Build Coastguard Worker if test "X$additional_libdir2" = "X$additional_libdir"; then 10223*6a54128fSAndroid Build Coastguard Worker additional_libdir2= 10224*6a54128fSAndroid Build Coastguard Worker fi 10225*6a54128fSAndroid Build Coastguard Worker if test "X$additional_libdir3" = "X$additional_libdir"; then 10226*6a54128fSAndroid Build Coastguard Worker additional_libdir3= 10227*6a54128fSAndroid Build Coastguard Worker fi 10228*6a54128fSAndroid Build Coastguard Worker LIBINTL= 10229*6a54128fSAndroid Build Coastguard Worker LTLIBINTL= 10230*6a54128fSAndroid Build Coastguard Worker INCINTL= 10231*6a54128fSAndroid Build Coastguard Worker LIBINTL_PREFIX= 10232*6a54128fSAndroid Build Coastguard Worker HAVE_LIBINTL= 10233*6a54128fSAndroid Build Coastguard Worker rpathdirs= 10234*6a54128fSAndroid Build Coastguard Worker ltrpathdirs= 10235*6a54128fSAndroid Build Coastguard Worker names_already_handled= 10236*6a54128fSAndroid Build Coastguard Worker names_next_round='intl ' 10237*6a54128fSAndroid Build Coastguard Worker while test -n "$names_next_round"; do 10238*6a54128fSAndroid Build Coastguard Worker names_this_round="$names_next_round" 10239*6a54128fSAndroid Build Coastguard Worker names_next_round= 10240*6a54128fSAndroid Build Coastguard Worker for name in $names_this_round; do 10241*6a54128fSAndroid Build Coastguard Worker already_handled= 10242*6a54128fSAndroid Build Coastguard Worker for n in $names_already_handled; do 10243*6a54128fSAndroid Build Coastguard Worker if test "$n" = "$name"; then 10244*6a54128fSAndroid Build Coastguard Worker already_handled=yes 10245*6a54128fSAndroid Build Coastguard Worker break 10246*6a54128fSAndroid Build Coastguard Worker fi 10247*6a54128fSAndroid Build Coastguard Worker done 10248*6a54128fSAndroid Build Coastguard Worker if test -z "$already_handled"; then 10249*6a54128fSAndroid Build Coastguard Worker names_already_handled="$names_already_handled $name" 10250*6a54128fSAndroid Build Coastguard Worker uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 10251*6a54128fSAndroid Build Coastguard Worker eval value=\"\$HAVE_LIB$uppername\" 10252*6a54128fSAndroid Build Coastguard Worker if test -n "$value"; then 10253*6a54128fSAndroid Build Coastguard Worker if test "$value" = yes; then 10254*6a54128fSAndroid Build Coastguard Worker eval value=\"\$LIB$uppername\" 10255*6a54128fSAndroid Build Coastguard Worker test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 10256*6a54128fSAndroid Build Coastguard Worker eval value=\"\$LTLIB$uppername\" 10257*6a54128fSAndroid Build Coastguard Worker test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 10258*6a54128fSAndroid Build Coastguard Worker else 10259*6a54128fSAndroid Build Coastguard Worker : 10260*6a54128fSAndroid Build Coastguard Worker fi 10261*6a54128fSAndroid Build Coastguard Worker else 10262*6a54128fSAndroid Build Coastguard Worker found_dir= 10263*6a54128fSAndroid Build Coastguard Worker found_la= 10264*6a54128fSAndroid Build Coastguard Worker found_so= 10265*6a54128fSAndroid Build Coastguard Worker found_a= 10266*6a54128fSAndroid Build Coastguard Worker eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 10267*6a54128fSAndroid Build Coastguard Worker if test -n "$acl_shlibext"; then 10268*6a54128fSAndroid Build Coastguard Worker shrext=".$acl_shlibext" # typically: shrext=.so 10269*6a54128fSAndroid Build Coastguard Worker else 10270*6a54128fSAndroid Build Coastguard Worker shrext= 10271*6a54128fSAndroid Build Coastguard Worker fi 10272*6a54128fSAndroid Build Coastguard Worker if test $use_additional = yes; then 10273*6a54128fSAndroid Build Coastguard Worker for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do 10274*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" = "X"; then 10275*6a54128fSAndroid Build Coastguard Worker eval dir=\$$additional_libdir_variable 10276*6a54128fSAndroid Build Coastguard Worker if test -n "$dir"; then 10277*6a54128fSAndroid Build Coastguard Worker if test -n "$acl_shlibext"; then 10278*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 10279*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 10280*6a54128fSAndroid Build Coastguard Worker found_so="$dir/$libname$shrext" 10281*6a54128fSAndroid Build Coastguard Worker else 10282*6a54128fSAndroid Build Coastguard Worker if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 10283*6a54128fSAndroid Build Coastguard Worker ver=`(cd "$dir" && \ 10284*6a54128fSAndroid Build Coastguard Worker for f in "$libname$shrext".*; do echo "$f"; done \ 10285*6a54128fSAndroid Build Coastguard Worker | sed -e "s,^$libname$shrext\\\\.,," \ 10286*6a54128fSAndroid Build Coastguard Worker | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 10287*6a54128fSAndroid Build Coastguard Worker | sed 1q ) 2>/dev/null` 10288*6a54128fSAndroid Build Coastguard Worker if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 10289*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 10290*6a54128fSAndroid Build Coastguard Worker found_so="$dir/$libname$shrext.$ver" 10291*6a54128fSAndroid Build Coastguard Worker fi 10292*6a54128fSAndroid Build Coastguard Worker else 10293*6a54128fSAndroid Build Coastguard Worker eval library_names=\"$acl_library_names_spec\" 10294*6a54128fSAndroid Build Coastguard Worker for f in $library_names; do 10295*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 10296*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 10297*6a54128fSAndroid Build Coastguard Worker found_so="$dir/$f" 10298*6a54128fSAndroid Build Coastguard Worker break 10299*6a54128fSAndroid Build Coastguard Worker fi 10300*6a54128fSAndroid Build Coastguard Worker done 10301*6a54128fSAndroid Build Coastguard Worker fi 10302*6a54128fSAndroid Build Coastguard Worker fi 10303*6a54128fSAndroid Build Coastguard Worker fi 10304*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" = "X"; then 10305*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 10306*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 10307*6a54128fSAndroid Build Coastguard Worker found_a="$dir/$libname.$acl_libext" 10308*6a54128fSAndroid Build Coastguard Worker fi 10309*6a54128fSAndroid Build Coastguard Worker fi 10310*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" != "X"; then 10311*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$libname.la"; then 10312*6a54128fSAndroid Build Coastguard Worker found_la="$dir/$libname.la" 10313*6a54128fSAndroid Build Coastguard Worker fi 10314*6a54128fSAndroid Build Coastguard Worker fi 10315*6a54128fSAndroid Build Coastguard Worker fi 10316*6a54128fSAndroid Build Coastguard Worker fi 10317*6a54128fSAndroid Build Coastguard Worker done 10318*6a54128fSAndroid Build Coastguard Worker fi 10319*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" = "X"; then 10320*6a54128fSAndroid Build Coastguard Worker for x in $LDFLAGS $LTLIBINTL; do 10321*6a54128fSAndroid Build Coastguard Worker 10322*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 10323*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 10324*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 10325*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 10326*6a54128fSAndroid Build Coastguard Worker eval x=\"$x\" 10327*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 10328*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 10329*6a54128fSAndroid Build Coastguard Worker 10330*6a54128fSAndroid Build Coastguard Worker case "$x" in 10331*6a54128fSAndroid Build Coastguard Worker -L*) 10332*6a54128fSAndroid Build Coastguard Worker dir=`echo "X$x" | sed -e 's/^X-L//'` 10333*6a54128fSAndroid Build Coastguard Worker if test -n "$acl_shlibext"; then 10334*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 10335*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 10336*6a54128fSAndroid Build Coastguard Worker found_so="$dir/$libname$shrext" 10337*6a54128fSAndroid Build Coastguard Worker else 10338*6a54128fSAndroid Build Coastguard Worker if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 10339*6a54128fSAndroid Build Coastguard Worker ver=`(cd "$dir" && \ 10340*6a54128fSAndroid Build Coastguard Worker for f in "$libname$shrext".*; do echo "$f"; done \ 10341*6a54128fSAndroid Build Coastguard Worker | sed -e "s,^$libname$shrext\\\\.,," \ 10342*6a54128fSAndroid Build Coastguard Worker | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 10343*6a54128fSAndroid Build Coastguard Worker | sed 1q ) 2>/dev/null` 10344*6a54128fSAndroid Build Coastguard Worker if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 10345*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 10346*6a54128fSAndroid Build Coastguard Worker found_so="$dir/$libname$shrext.$ver" 10347*6a54128fSAndroid Build Coastguard Worker fi 10348*6a54128fSAndroid Build Coastguard Worker else 10349*6a54128fSAndroid Build Coastguard Worker eval library_names=\"$acl_library_names_spec\" 10350*6a54128fSAndroid Build Coastguard Worker for f in $library_names; do 10351*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 10352*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 10353*6a54128fSAndroid Build Coastguard Worker found_so="$dir/$f" 10354*6a54128fSAndroid Build Coastguard Worker break 10355*6a54128fSAndroid Build Coastguard Worker fi 10356*6a54128fSAndroid Build Coastguard Worker done 10357*6a54128fSAndroid Build Coastguard Worker fi 10358*6a54128fSAndroid Build Coastguard Worker fi 10359*6a54128fSAndroid Build Coastguard Worker fi 10360*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" = "X"; then 10361*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 10362*6a54128fSAndroid Build Coastguard Worker found_dir="$dir" 10363*6a54128fSAndroid Build Coastguard Worker found_a="$dir/$libname.$acl_libext" 10364*6a54128fSAndroid Build Coastguard Worker fi 10365*6a54128fSAndroid Build Coastguard Worker fi 10366*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" != "X"; then 10367*6a54128fSAndroid Build Coastguard Worker if test -f "$dir/$libname.la"; then 10368*6a54128fSAndroid Build Coastguard Worker found_la="$dir/$libname.la" 10369*6a54128fSAndroid Build Coastguard Worker fi 10370*6a54128fSAndroid Build Coastguard Worker fi 10371*6a54128fSAndroid Build Coastguard Worker ;; 10372*6a54128fSAndroid Build Coastguard Worker esac 10373*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" != "X"; then 10374*6a54128fSAndroid Build Coastguard Worker break 10375*6a54128fSAndroid Build Coastguard Worker fi 10376*6a54128fSAndroid Build Coastguard Worker done 10377*6a54128fSAndroid Build Coastguard Worker fi 10378*6a54128fSAndroid Build Coastguard Worker if test "X$found_dir" != "X"; then 10379*6a54128fSAndroid Build Coastguard Worker LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 10380*6a54128fSAndroid Build Coastguard Worker if test "X$found_so" != "X"; then 10381*6a54128fSAndroid Build Coastguard Worker if test "$enable_rpath" = no \ 10382*6a54128fSAndroid Build Coastguard Worker || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 10383*6a54128fSAndroid Build Coastguard Worker || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ 10384*6a54128fSAndroid Build Coastguard Worker || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then 10385*6a54128fSAndroid Build Coastguard Worker LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10386*6a54128fSAndroid Build Coastguard Worker else 10387*6a54128fSAndroid Build Coastguard Worker haveit= 10388*6a54128fSAndroid Build Coastguard Worker for x in $ltrpathdirs; do 10389*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X$found_dir"; then 10390*6a54128fSAndroid Build Coastguard Worker haveit=yes 10391*6a54128fSAndroid Build Coastguard Worker break 10392*6a54128fSAndroid Build Coastguard Worker fi 10393*6a54128fSAndroid Build Coastguard Worker done 10394*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 10395*6a54128fSAndroid Build Coastguard Worker ltrpathdirs="$ltrpathdirs $found_dir" 10396*6a54128fSAndroid Build Coastguard Worker fi 10397*6a54128fSAndroid Build Coastguard Worker if test "$acl_hardcode_direct" = yes; then 10398*6a54128fSAndroid Build Coastguard Worker LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10399*6a54128fSAndroid Build Coastguard Worker else 10400*6a54128fSAndroid Build Coastguard Worker if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 10401*6a54128fSAndroid Build Coastguard Worker LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10402*6a54128fSAndroid Build Coastguard Worker haveit= 10403*6a54128fSAndroid Build Coastguard Worker for x in $rpathdirs; do 10404*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X$found_dir"; then 10405*6a54128fSAndroid Build Coastguard Worker haveit=yes 10406*6a54128fSAndroid Build Coastguard Worker break 10407*6a54128fSAndroid Build Coastguard Worker fi 10408*6a54128fSAndroid Build Coastguard Worker done 10409*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 10410*6a54128fSAndroid Build Coastguard Worker rpathdirs="$rpathdirs $found_dir" 10411*6a54128fSAndroid Build Coastguard Worker fi 10412*6a54128fSAndroid Build Coastguard Worker else 10413*6a54128fSAndroid Build Coastguard Worker haveit= 10414*6a54128fSAndroid Build Coastguard Worker for x in $LDFLAGS $LIBINTL; do 10415*6a54128fSAndroid Build Coastguard Worker 10416*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 10417*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 10418*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 10419*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 10420*6a54128fSAndroid Build Coastguard Worker eval x=\"$x\" 10421*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 10422*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 10423*6a54128fSAndroid Build Coastguard Worker 10424*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X-L$found_dir"; then 10425*6a54128fSAndroid Build Coastguard Worker haveit=yes 10426*6a54128fSAndroid Build Coastguard Worker break 10427*6a54128fSAndroid Build Coastguard Worker fi 10428*6a54128fSAndroid Build Coastguard Worker done 10429*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 10430*6a54128fSAndroid Build Coastguard Worker LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 10431*6a54128fSAndroid Build Coastguard Worker fi 10432*6a54128fSAndroid Build Coastguard Worker if test "$acl_hardcode_minus_L" != no; then 10433*6a54128fSAndroid Build Coastguard Worker LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10434*6a54128fSAndroid Build Coastguard Worker else 10435*6a54128fSAndroid Build Coastguard Worker LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 10436*6a54128fSAndroid Build Coastguard Worker fi 10437*6a54128fSAndroid Build Coastguard Worker fi 10438*6a54128fSAndroid Build Coastguard Worker fi 10439*6a54128fSAndroid Build Coastguard Worker fi 10440*6a54128fSAndroid Build Coastguard Worker else 10441*6a54128fSAndroid Build Coastguard Worker if test "X$found_a" != "X"; then 10442*6a54128fSAndroid Build Coastguard Worker LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 10443*6a54128fSAndroid Build Coastguard Worker else 10444*6a54128fSAndroid Build Coastguard Worker LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 10445*6a54128fSAndroid Build Coastguard Worker fi 10446*6a54128fSAndroid Build Coastguard Worker fi 10447*6a54128fSAndroid Build Coastguard Worker additional_includedir= 10448*6a54128fSAndroid Build Coastguard Worker case "$found_dir" in 10449*6a54128fSAndroid Build Coastguard Worker */$acl_libdirstem | */$acl_libdirstem/) 10450*6a54128fSAndroid Build Coastguard Worker basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 10451*6a54128fSAndroid Build Coastguard Worker if test "$name" = 'intl'; then 10452*6a54128fSAndroid Build Coastguard Worker LIBINTL_PREFIX="$basedir" 10453*6a54128fSAndroid Build Coastguard Worker fi 10454*6a54128fSAndroid Build Coastguard Worker additional_includedir="$basedir/include" 10455*6a54128fSAndroid Build Coastguard Worker ;; 10456*6a54128fSAndroid Build Coastguard Worker */$acl_libdirstem2 | */$acl_libdirstem2/) 10457*6a54128fSAndroid Build Coastguard Worker basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 10458*6a54128fSAndroid Build Coastguard Worker if test "$name" = 'intl'; then 10459*6a54128fSAndroid Build Coastguard Worker LIBINTL_PREFIX="$basedir" 10460*6a54128fSAndroid Build Coastguard Worker fi 10461*6a54128fSAndroid Build Coastguard Worker additional_includedir="$basedir/include" 10462*6a54128fSAndroid Build Coastguard Worker ;; 10463*6a54128fSAndroid Build Coastguard Worker */$acl_libdirstem3 | */$acl_libdirstem3/) 10464*6a54128fSAndroid Build Coastguard Worker basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` 10465*6a54128fSAndroid Build Coastguard Worker if test "$name" = 'intl'; then 10466*6a54128fSAndroid Build Coastguard Worker LIBINTL_PREFIX="$basedir" 10467*6a54128fSAndroid Build Coastguard Worker fi 10468*6a54128fSAndroid Build Coastguard Worker additional_includedir="$basedir/include" 10469*6a54128fSAndroid Build Coastguard Worker ;; 10470*6a54128fSAndroid Build Coastguard Worker esac 10471*6a54128fSAndroid Build Coastguard Worker if test "X$additional_includedir" != "X"; then 10472*6a54128fSAndroid Build Coastguard Worker if test "X$additional_includedir" != "X/usr/include"; then 10473*6a54128fSAndroid Build Coastguard Worker haveit= 10474*6a54128fSAndroid Build Coastguard Worker if test "X$additional_includedir" = "X/usr/local/include"; then 10475*6a54128fSAndroid Build Coastguard Worker if test -n "$GCC"; then 10476*6a54128fSAndroid Build Coastguard Worker case $host_os in 10477*6a54128fSAndroid Build Coastguard Worker linux* | gnu* | k*bsd*-gnu) haveit=yes;; 10478*6a54128fSAndroid Build Coastguard Worker esac 10479*6a54128fSAndroid Build Coastguard Worker fi 10480*6a54128fSAndroid Build Coastguard Worker fi 10481*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 10482*6a54128fSAndroid Build Coastguard Worker for x in $CPPFLAGS $INCINTL; do 10483*6a54128fSAndroid Build Coastguard Worker 10484*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 10485*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 10486*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 10487*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 10488*6a54128fSAndroid Build Coastguard Worker eval x=\"$x\" 10489*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 10490*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 10491*6a54128fSAndroid Build Coastguard Worker 10492*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X-I$additional_includedir"; then 10493*6a54128fSAndroid Build Coastguard Worker haveit=yes 10494*6a54128fSAndroid Build Coastguard Worker break 10495*6a54128fSAndroid Build Coastguard Worker fi 10496*6a54128fSAndroid Build Coastguard Worker done 10497*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 10498*6a54128fSAndroid Build Coastguard Worker if test -d "$additional_includedir"; then 10499*6a54128fSAndroid Build Coastguard Worker INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 10500*6a54128fSAndroid Build Coastguard Worker fi 10501*6a54128fSAndroid Build Coastguard Worker fi 10502*6a54128fSAndroid Build Coastguard Worker fi 10503*6a54128fSAndroid Build Coastguard Worker fi 10504*6a54128fSAndroid Build Coastguard Worker fi 10505*6a54128fSAndroid Build Coastguard Worker if test -n "$found_la"; then 10506*6a54128fSAndroid Build Coastguard Worker save_libdir="$libdir" 10507*6a54128fSAndroid Build Coastguard Worker case "$found_la" in 10508*6a54128fSAndroid Build Coastguard Worker */* | *\\*) . "$found_la" ;; 10509*6a54128fSAndroid Build Coastguard Worker *) . "./$found_la" ;; 10510*6a54128fSAndroid Build Coastguard Worker esac 10511*6a54128fSAndroid Build Coastguard Worker libdir="$save_libdir" 10512*6a54128fSAndroid Build Coastguard Worker for dep in $dependency_libs; do 10513*6a54128fSAndroid Build Coastguard Worker case "$dep" in 10514*6a54128fSAndroid Build Coastguard Worker -L*) 10515*6a54128fSAndroid Build Coastguard Worker dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 10516*6a54128fSAndroid Build Coastguard Worker if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ 10517*6a54128fSAndroid Build Coastguard Worker && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ 10518*6a54128fSAndroid Build Coastguard Worker && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then 10519*6a54128fSAndroid Build Coastguard Worker haveit= 10520*6a54128fSAndroid Build Coastguard Worker if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ 10521*6a54128fSAndroid Build Coastguard Worker || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ 10522*6a54128fSAndroid Build Coastguard Worker || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then 10523*6a54128fSAndroid Build Coastguard Worker if test -n "$GCC"; then 10524*6a54128fSAndroid Build Coastguard Worker case $host_os in 10525*6a54128fSAndroid Build Coastguard Worker linux* | gnu* | k*bsd*-gnu) haveit=yes;; 10526*6a54128fSAndroid Build Coastguard Worker esac 10527*6a54128fSAndroid Build Coastguard Worker fi 10528*6a54128fSAndroid Build Coastguard Worker fi 10529*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 10530*6a54128fSAndroid Build Coastguard Worker haveit= 10531*6a54128fSAndroid Build Coastguard Worker for x in $LDFLAGS $LIBINTL; do 10532*6a54128fSAndroid Build Coastguard Worker 10533*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 10534*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 10535*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 10536*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 10537*6a54128fSAndroid Build Coastguard Worker eval x=\"$x\" 10538*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 10539*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 10540*6a54128fSAndroid Build Coastguard Worker 10541*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X-L$dependency_libdir"; then 10542*6a54128fSAndroid Build Coastguard Worker haveit=yes 10543*6a54128fSAndroid Build Coastguard Worker break 10544*6a54128fSAndroid Build Coastguard Worker fi 10545*6a54128fSAndroid Build Coastguard Worker done 10546*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 10547*6a54128fSAndroid Build Coastguard Worker if test -d "$dependency_libdir"; then 10548*6a54128fSAndroid Build Coastguard Worker LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir" 10549*6a54128fSAndroid Build Coastguard Worker fi 10550*6a54128fSAndroid Build Coastguard Worker fi 10551*6a54128fSAndroid Build Coastguard Worker haveit= 10552*6a54128fSAndroid Build Coastguard Worker for x in $LDFLAGS $LTLIBINTL; do 10553*6a54128fSAndroid Build Coastguard Worker 10554*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 10555*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 10556*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 10557*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 10558*6a54128fSAndroid Build Coastguard Worker eval x=\"$x\" 10559*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 10560*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 10561*6a54128fSAndroid Build Coastguard Worker 10562*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X-L$dependency_libdir"; then 10563*6a54128fSAndroid Build Coastguard Worker haveit=yes 10564*6a54128fSAndroid Build Coastguard Worker break 10565*6a54128fSAndroid Build Coastguard Worker fi 10566*6a54128fSAndroid Build Coastguard Worker done 10567*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 10568*6a54128fSAndroid Build Coastguard Worker if test -d "$dependency_libdir"; then 10569*6a54128fSAndroid Build Coastguard Worker LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir" 10570*6a54128fSAndroid Build Coastguard Worker fi 10571*6a54128fSAndroid Build Coastguard Worker fi 10572*6a54128fSAndroid Build Coastguard Worker fi 10573*6a54128fSAndroid Build Coastguard Worker fi 10574*6a54128fSAndroid Build Coastguard Worker ;; 10575*6a54128fSAndroid Build Coastguard Worker -R*) 10576*6a54128fSAndroid Build Coastguard Worker dir=`echo "X$dep" | sed -e 's/^X-R//'` 10577*6a54128fSAndroid Build Coastguard Worker if test "$enable_rpath" != no; then 10578*6a54128fSAndroid Build Coastguard Worker haveit= 10579*6a54128fSAndroid Build Coastguard Worker for x in $rpathdirs; do 10580*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X$dir"; then 10581*6a54128fSAndroid Build Coastguard Worker haveit=yes 10582*6a54128fSAndroid Build Coastguard Worker break 10583*6a54128fSAndroid Build Coastguard Worker fi 10584*6a54128fSAndroid Build Coastguard Worker done 10585*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 10586*6a54128fSAndroid Build Coastguard Worker rpathdirs="$rpathdirs $dir" 10587*6a54128fSAndroid Build Coastguard Worker fi 10588*6a54128fSAndroid Build Coastguard Worker haveit= 10589*6a54128fSAndroid Build Coastguard Worker for x in $ltrpathdirs; do 10590*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X$dir"; then 10591*6a54128fSAndroid Build Coastguard Worker haveit=yes 10592*6a54128fSAndroid Build Coastguard Worker break 10593*6a54128fSAndroid Build Coastguard Worker fi 10594*6a54128fSAndroid Build Coastguard Worker done 10595*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 10596*6a54128fSAndroid Build Coastguard Worker ltrpathdirs="$ltrpathdirs $dir" 10597*6a54128fSAndroid Build Coastguard Worker fi 10598*6a54128fSAndroid Build Coastguard Worker fi 10599*6a54128fSAndroid Build Coastguard Worker ;; 10600*6a54128fSAndroid Build Coastguard Worker -l*) 10601*6a54128fSAndroid Build Coastguard Worker names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 10602*6a54128fSAndroid Build Coastguard Worker ;; 10603*6a54128fSAndroid Build Coastguard Worker *.la) 10604*6a54128fSAndroid Build Coastguard Worker names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 10605*6a54128fSAndroid Build Coastguard Worker ;; 10606*6a54128fSAndroid Build Coastguard Worker *) 10607*6a54128fSAndroid Build Coastguard Worker LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 10608*6a54128fSAndroid Build Coastguard Worker LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 10609*6a54128fSAndroid Build Coastguard Worker ;; 10610*6a54128fSAndroid Build Coastguard Worker esac 10611*6a54128fSAndroid Build Coastguard Worker done 10612*6a54128fSAndroid Build Coastguard Worker fi 10613*6a54128fSAndroid Build Coastguard Worker else 10614*6a54128fSAndroid Build Coastguard Worker LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 10615*6a54128fSAndroid Build Coastguard Worker LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 10616*6a54128fSAndroid Build Coastguard Worker fi 10617*6a54128fSAndroid Build Coastguard Worker fi 10618*6a54128fSAndroid Build Coastguard Worker fi 10619*6a54128fSAndroid Build Coastguard Worker done 10620*6a54128fSAndroid Build Coastguard Worker done 10621*6a54128fSAndroid Build Coastguard Worker if test "X$rpathdirs" != "X"; then 10622*6a54128fSAndroid Build Coastguard Worker if test -n "$acl_hardcode_libdir_separator"; then 10623*6a54128fSAndroid Build Coastguard Worker alldirs= 10624*6a54128fSAndroid Build Coastguard Worker for found_dir in $rpathdirs; do 10625*6a54128fSAndroid Build Coastguard Worker alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 10626*6a54128fSAndroid Build Coastguard Worker done 10627*6a54128fSAndroid Build Coastguard Worker acl_save_libdir="$libdir" 10628*6a54128fSAndroid Build Coastguard Worker libdir="$alldirs" 10629*6a54128fSAndroid Build Coastguard Worker eval flag=\"$acl_hardcode_libdir_flag_spec\" 10630*6a54128fSAndroid Build Coastguard Worker libdir="$acl_save_libdir" 10631*6a54128fSAndroid Build Coastguard Worker LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 10632*6a54128fSAndroid Build Coastguard Worker else 10633*6a54128fSAndroid Build Coastguard Worker for found_dir in $rpathdirs; do 10634*6a54128fSAndroid Build Coastguard Worker acl_save_libdir="$libdir" 10635*6a54128fSAndroid Build Coastguard Worker libdir="$found_dir" 10636*6a54128fSAndroid Build Coastguard Worker eval flag=\"$acl_hardcode_libdir_flag_spec\" 10637*6a54128fSAndroid Build Coastguard Worker libdir="$acl_save_libdir" 10638*6a54128fSAndroid Build Coastguard Worker LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 10639*6a54128fSAndroid Build Coastguard Worker done 10640*6a54128fSAndroid Build Coastguard Worker fi 10641*6a54128fSAndroid Build Coastguard Worker fi 10642*6a54128fSAndroid Build Coastguard Worker if test "X$ltrpathdirs" != "X"; then 10643*6a54128fSAndroid Build Coastguard Worker for found_dir in $ltrpathdirs; do 10644*6a54128fSAndroid Build Coastguard Worker LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 10645*6a54128fSAndroid Build Coastguard Worker done 10646*6a54128fSAndroid Build Coastguard Worker fi 10647*6a54128fSAndroid Build Coastguard Worker 10648*6a54128fSAndroid Build Coastguard Worker 10649*6a54128fSAndroid Build Coastguard Worker 10650*6a54128fSAndroid Build Coastguard Worker 10651*6a54128fSAndroid Build Coastguard Worker 10652*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 10653*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for GNU gettext in libintl... " >&6; } 10654*6a54128fSAndroid Build Coastguard Workerif eval test \${$gt_func_gnugettext_libintl+y} 10655*6a54128fSAndroid Build Coastguard Workerthen : 10656*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 10657*6a54128fSAndroid Build Coastguard Workerelse $as_nop 10658*6a54128fSAndroid Build Coastguard Worker gt_save_CPPFLAGS="$CPPFLAGS" 10659*6a54128fSAndroid Build Coastguard Worker CPPFLAGS="$CPPFLAGS $INCINTL" 10660*6a54128fSAndroid Build Coastguard Worker gt_save_LIBS="$LIBS" 10661*6a54128fSAndroid Build Coastguard Worker LIBS="$LIBS $LIBINTL" 10662*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10663*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 10664*6a54128fSAndroid Build Coastguard Worker 10665*6a54128fSAndroid Build Coastguard Worker#include <libintl.h> 10666*6a54128fSAndroid Build Coastguard Worker#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 10667*6a54128fSAndroid Build Coastguard Workerextern int _nl_msg_cat_cntr; 10668*6a54128fSAndroid Build Coastguard Workerextern 10669*6a54128fSAndroid Build Coastguard Worker#ifdef __cplusplus 10670*6a54128fSAndroid Build Coastguard Worker"C" 10671*6a54128fSAndroid Build Coastguard Worker#endif 10672*6a54128fSAndroid Build Coastguard Workerconst char *_nl_expand_alias (const char *); 10673*6a54128fSAndroid Build Coastguard Worker#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 10674*6a54128fSAndroid Build Coastguard Worker#else 10675*6a54128fSAndroid Build Coastguard Worker#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 10676*6a54128fSAndroid Build Coastguard Worker#endif 10677*6a54128fSAndroid Build Coastguard Worker$gt_revision_test_code 10678*6a54128fSAndroid Build Coastguard Worker 10679*6a54128fSAndroid Build Coastguard Workerint 10680*6a54128fSAndroid Build Coastguard Workermain (void) 10681*6a54128fSAndroid Build Coastguard Worker{ 10682*6a54128fSAndroid Build Coastguard Worker 10683*6a54128fSAndroid Build Coastguard Workerbindtextdomain ("", ""); 10684*6a54128fSAndroid Build Coastguard Workerreturn * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 10685*6a54128fSAndroid Build Coastguard Worker 10686*6a54128fSAndroid Build Coastguard Worker ; 10687*6a54128fSAndroid Build Coastguard Worker return 0; 10688*6a54128fSAndroid Build Coastguard Worker} 10689*6a54128fSAndroid Build Coastguard Worker_ACEOF 10690*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 10691*6a54128fSAndroid Build Coastguard Workerthen : 10692*6a54128fSAndroid Build Coastguard Worker eval "$gt_func_gnugettext_libintl=yes" 10693*6a54128fSAndroid Build Coastguard Workerelse $as_nop 10694*6a54128fSAndroid Build Coastguard Worker eval "$gt_func_gnugettext_libintl=no" 10695*6a54128fSAndroid Build Coastguard Workerfi 10696*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10697*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 10698*6a54128fSAndroid Build Coastguard Worker if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 10699*6a54128fSAndroid Build Coastguard Worker LIBS="$LIBS $LIBICONV" 10700*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10701*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 10702*6a54128fSAndroid Build Coastguard Worker 10703*6a54128fSAndroid Build Coastguard Worker#include <libintl.h> 10704*6a54128fSAndroid Build Coastguard Worker#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 10705*6a54128fSAndroid Build Coastguard Workerextern int _nl_msg_cat_cntr; 10706*6a54128fSAndroid Build Coastguard Workerextern 10707*6a54128fSAndroid Build Coastguard Worker#ifdef __cplusplus 10708*6a54128fSAndroid Build Coastguard Worker"C" 10709*6a54128fSAndroid Build Coastguard Worker#endif 10710*6a54128fSAndroid Build Coastguard Workerconst char *_nl_expand_alias (const char *); 10711*6a54128fSAndroid Build Coastguard Worker#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 10712*6a54128fSAndroid Build Coastguard Worker#else 10713*6a54128fSAndroid Build Coastguard Worker#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 10714*6a54128fSAndroid Build Coastguard Worker#endif 10715*6a54128fSAndroid Build Coastguard Worker$gt_revision_test_code 10716*6a54128fSAndroid Build Coastguard Worker 10717*6a54128fSAndroid Build Coastguard Workerint 10718*6a54128fSAndroid Build Coastguard Workermain (void) 10719*6a54128fSAndroid Build Coastguard Worker{ 10720*6a54128fSAndroid Build Coastguard Worker 10721*6a54128fSAndroid Build Coastguard Workerbindtextdomain ("", ""); 10722*6a54128fSAndroid Build Coastguard Workerreturn * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 10723*6a54128fSAndroid Build Coastguard Worker 10724*6a54128fSAndroid Build Coastguard Worker ; 10725*6a54128fSAndroid Build Coastguard Worker return 0; 10726*6a54128fSAndroid Build Coastguard Worker} 10727*6a54128fSAndroid Build Coastguard Worker_ACEOF 10728*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 10729*6a54128fSAndroid Build Coastguard Workerthen : 10730*6a54128fSAndroid Build Coastguard Worker LIBINTL="$LIBINTL $LIBICONV" 10731*6a54128fSAndroid Build Coastguard Worker LTLIBINTL="$LTLIBINTL $LTLIBICONV" 10732*6a54128fSAndroid Build Coastguard Worker eval "$gt_func_gnugettext_libintl=yes" 10733*6a54128fSAndroid Build Coastguard Worker 10734*6a54128fSAndroid Build Coastguard Workerfi 10735*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10736*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 10737*6a54128fSAndroid Build Coastguard Worker fi 10738*6a54128fSAndroid Build Coastguard Worker CPPFLAGS="$gt_save_CPPFLAGS" 10739*6a54128fSAndroid Build Coastguard Worker LIBS="$gt_save_LIBS" 10740*6a54128fSAndroid Build Coastguard Workerfi 10741*6a54128fSAndroid Build Coastguard Workereval ac_res=\$$gt_func_gnugettext_libintl 10742*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10743*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_res" >&6; } 10744*6a54128fSAndroid Build Coastguard Worker fi 10745*6a54128fSAndroid Build Coastguard Worker 10746*6a54128fSAndroid Build Coastguard Worker if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 10747*6a54128fSAndroid Build Coastguard Worker || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 10748*6a54128fSAndroid Build Coastguard Worker && test "$PACKAGE" != gettext-runtime \ 10749*6a54128fSAndroid Build Coastguard Worker && test "$PACKAGE" != gettext-tools; }; then 10750*6a54128fSAndroid Build Coastguard Worker gt_use_preinstalled_gnugettext=yes 10751*6a54128fSAndroid Build Coastguard Worker else 10752*6a54128fSAndroid Build Coastguard Worker LIBINTL= 10753*6a54128fSAndroid Build Coastguard Worker LTLIBINTL= 10754*6a54128fSAndroid Build Coastguard Worker INCINTL= 10755*6a54128fSAndroid Build Coastguard Worker fi 10756*6a54128fSAndroid Build Coastguard Worker 10757*6a54128fSAndroid Build Coastguard Worker 10758*6a54128fSAndroid Build Coastguard Worker 10759*6a54128fSAndroid Build Coastguard Worker if test -n "$INTL_MACOSX_LIBS"; then 10760*6a54128fSAndroid Build Coastguard Worker if test "$gt_use_preinstalled_gnugettext" = "yes" \ 10761*6a54128fSAndroid Build Coastguard Worker || test "$nls_cv_use_gnu_gettext" = "yes"; then 10762*6a54128fSAndroid Build Coastguard Worker LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 10763*6a54128fSAndroid Build Coastguard Worker LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 10764*6a54128fSAndroid Build Coastguard Worker fi 10765*6a54128fSAndroid Build Coastguard Worker fi 10766*6a54128fSAndroid Build Coastguard Worker 10767*6a54128fSAndroid Build Coastguard Worker if test "$gt_use_preinstalled_gnugettext" = "yes" \ 10768*6a54128fSAndroid Build Coastguard Worker || test "$nls_cv_use_gnu_gettext" = "yes"; then 10769*6a54128fSAndroid Build Coastguard Worker 10770*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h 10771*6a54128fSAndroid Build Coastguard Worker 10772*6a54128fSAndroid Build Coastguard Worker else 10773*6a54128fSAndroid Build Coastguard Worker USE_NLS=no 10774*6a54128fSAndroid Build Coastguard Worker fi 10775*6a54128fSAndroid Build Coastguard Worker fi 10776*6a54128fSAndroid Build Coastguard Worker 10777*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 10778*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether to use NLS... " >&6; } 10779*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 10780*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$USE_NLS" >&6; } 10781*6a54128fSAndroid Build Coastguard Worker if test "$USE_NLS" = "yes"; then 10782*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 10783*6a54128fSAndroid Build Coastguard Workerprintf %s "checking where the gettext function comes from... " >&6; } 10784*6a54128fSAndroid Build Coastguard Worker if test "$gt_use_preinstalled_gnugettext" = "yes"; then 10785*6a54128fSAndroid Build Coastguard Worker if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 10786*6a54128fSAndroid Build Coastguard Worker gt_source="external libintl" 10787*6a54128fSAndroid Build Coastguard Worker else 10788*6a54128fSAndroid Build Coastguard Worker gt_source="libc" 10789*6a54128fSAndroid Build Coastguard Worker fi 10790*6a54128fSAndroid Build Coastguard Worker else 10791*6a54128fSAndroid Build Coastguard Worker gt_source="included intl directory" 10792*6a54128fSAndroid Build Coastguard Worker fi 10793*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 10794*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$gt_source" >&6; } 10795*6a54128fSAndroid Build Coastguard Worker fi 10796*6a54128fSAndroid Build Coastguard Worker 10797*6a54128fSAndroid Build Coastguard Worker if test "$USE_NLS" = "yes"; then 10798*6a54128fSAndroid Build Coastguard Worker 10799*6a54128fSAndroid Build Coastguard Worker if test "$gt_use_preinstalled_gnugettext" = "yes"; then 10800*6a54128fSAndroid Build Coastguard Worker if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 10801*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 10802*6a54128fSAndroid Build Coastguard Workerprintf %s "checking how to link with libintl... " >&6; } 10803*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 10804*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$LIBINTL" >&6; } 10805*6a54128fSAndroid Build Coastguard Worker 10806*6a54128fSAndroid Build Coastguard Worker for element in $INCINTL; do 10807*6a54128fSAndroid Build Coastguard Worker haveit= 10808*6a54128fSAndroid Build Coastguard Worker for x in $CPPFLAGS; do 10809*6a54128fSAndroid Build Coastguard Worker 10810*6a54128fSAndroid Build Coastguard Worker acl_save_prefix="$prefix" 10811*6a54128fSAndroid Build Coastguard Worker prefix="$acl_final_prefix" 10812*6a54128fSAndroid Build Coastguard Worker acl_save_exec_prefix="$exec_prefix" 10813*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_final_exec_prefix" 10814*6a54128fSAndroid Build Coastguard Worker eval x=\"$x\" 10815*6a54128fSAndroid Build Coastguard Worker exec_prefix="$acl_save_exec_prefix" 10816*6a54128fSAndroid Build Coastguard Worker prefix="$acl_save_prefix" 10817*6a54128fSAndroid Build Coastguard Worker 10818*6a54128fSAndroid Build Coastguard Worker if test "X$x" = "X$element"; then 10819*6a54128fSAndroid Build Coastguard Worker haveit=yes 10820*6a54128fSAndroid Build Coastguard Worker break 10821*6a54128fSAndroid Build Coastguard Worker fi 10822*6a54128fSAndroid Build Coastguard Worker done 10823*6a54128fSAndroid Build Coastguard Worker if test -z "$haveit"; then 10824*6a54128fSAndroid Build Coastguard Worker CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 10825*6a54128fSAndroid Build Coastguard Worker fi 10826*6a54128fSAndroid Build Coastguard Worker done 10827*6a54128fSAndroid Build Coastguard Worker 10828*6a54128fSAndroid Build Coastguard Worker fi 10829*6a54128fSAndroid Build Coastguard Worker 10830*6a54128fSAndroid Build Coastguard Worker 10831*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h 10832*6a54128fSAndroid Build Coastguard Worker 10833*6a54128fSAndroid Build Coastguard Worker 10834*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h 10835*6a54128fSAndroid Build Coastguard Worker 10836*6a54128fSAndroid Build Coastguard Worker fi 10837*6a54128fSAndroid Build Coastguard Worker 10838*6a54128fSAndroid Build Coastguard Worker POSUB=po 10839*6a54128fSAndroid Build Coastguard Worker fi 10840*6a54128fSAndroid Build Coastguard Worker 10841*6a54128fSAndroid Build Coastguard Worker 10842*6a54128fSAndroid Build Coastguard Worker 10843*6a54128fSAndroid Build Coastguard Worker INTLLIBS="$LIBINTL" 10844*6a54128fSAndroid Build Coastguard Worker 10845*6a54128fSAndroid Build Coastguard Worker 10846*6a54128fSAndroid Build Coastguard Worker 10847*6a54128fSAndroid Build Coastguard Worker 10848*6a54128fSAndroid Build Coastguard Worker 10849*6a54128fSAndroid Build Coastguard Worker 10850*6a54128fSAndroid Build Coastguard Worker 10851*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 10852*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 10853*6a54128fSAndroid Build Coastguard Workerset x ${MAKE-make} 10854*6a54128fSAndroid Build Coastguard Workerac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 10855*6a54128fSAndroid Build Coastguard Workerif eval test \${ac_cv_prog_make_${ac_make}_set+y} 10856*6a54128fSAndroid Build Coastguard Workerthen : 10857*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 10858*6a54128fSAndroid Build Coastguard Workerelse $as_nop 10859*6a54128fSAndroid Build Coastguard Worker cat >conftest.make <<\_ACEOF 10860*6a54128fSAndroid Build Coastguard WorkerSHELL = /bin/sh 10861*6a54128fSAndroid Build Coastguard Workerall: 10862*6a54128fSAndroid Build Coastguard Worker @echo '@@@%%%=$(MAKE)=@@@%%%' 10863*6a54128fSAndroid Build Coastguard Worker_ACEOF 10864*6a54128fSAndroid Build Coastguard Worker# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 10865*6a54128fSAndroid Build Coastguard Workercase `${MAKE-make} -f conftest.make 2>/dev/null` in 10866*6a54128fSAndroid Build Coastguard Worker *@@@%%%=?*=@@@%%%*) 10867*6a54128fSAndroid Build Coastguard Worker eval ac_cv_prog_make_${ac_make}_set=yes;; 10868*6a54128fSAndroid Build Coastguard Worker *) 10869*6a54128fSAndroid Build Coastguard Worker eval ac_cv_prog_make_${ac_make}_set=no;; 10870*6a54128fSAndroid Build Coastguard Workeresac 10871*6a54128fSAndroid Build Coastguard Workerrm -f conftest.make 10872*6a54128fSAndroid Build Coastguard Workerfi 10873*6a54128fSAndroid Build Coastguard Workerif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 10874*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10875*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "yes" >&6; } 10876*6a54128fSAndroid Build Coastguard Worker SET_MAKE= 10877*6a54128fSAndroid Build Coastguard Workerelse 10878*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10879*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 10880*6a54128fSAndroid Build Coastguard Worker SET_MAKE="MAKE=${MAKE-make}" 10881*6a54128fSAndroid Build Coastguard Workerfi 10882*6a54128fSAndroid Build Coastguard Worker 10883*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 10884*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for GNU make... " >&6; } 10885*6a54128fSAndroid Build Coastguard Workerif test ${_cv_gnu_make_command+y} 10886*6a54128fSAndroid Build Coastguard Workerthen : 10887*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 10888*6a54128fSAndroid Build Coastguard Workerelse $as_nop 10889*6a54128fSAndroid Build Coastguard Worker _cv_gnu_make_command='' ; 10890*6a54128fSAndroid Build Coastguard Worker if test -n "$FORCE_NATIVE_MAKE" ; then 10891*6a54128fSAndroid Build Coastguard Worker MAKES="make" 10892*6a54128fSAndroid Build Coastguard Worker else 10893*6a54128fSAndroid Build Coastguard Worker MAKES="make gmake gnumake" 10894*6a54128fSAndroid Build Coastguard Worker fi 10895*6a54128fSAndroid Build Coastguard Worker for a in "$MAKE" $MAKES ; do 10896*6a54128fSAndroid Build Coastguard Worker if test -z "$a" ; then continue ; fi ; 10897*6a54128fSAndroid Build Coastguard Worker if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then 10898*6a54128fSAndroid Build Coastguard Worker _cv_gnu_make_command=$a ; 10899*6a54128fSAndroid Build Coastguard Worker break; 10900*6a54128fSAndroid Build Coastguard Worker fi 10901*6a54128fSAndroid Build Coastguard Worker done ; 10902*6a54128fSAndroid Build Coastguard Worker 10903*6a54128fSAndroid Build Coastguard Workerfi 10904*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 10905*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$_cv_gnu_make_command" >&6; } ; 10906*6a54128fSAndroid Build Coastguard Worker if test "x$_cv_gnu_make_command" != "x" ; then 10907*6a54128fSAndroid Build Coastguard Worker ifGNUmake='' ; 10908*6a54128fSAndroid Build Coastguard Worker ifNotGNUmake='#' ; 10909*6a54128fSAndroid Build Coastguard Worker else 10910*6a54128fSAndroid Build Coastguard Worker ifGNUmake='#' ; 10911*6a54128fSAndroid Build Coastguard Worker ifNotGNUmake='' ; 10912*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 10913*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "\"Not found\"" >&6; }; 10914*6a54128fSAndroid Build Coastguard Worker fi 10915*6a54128fSAndroid Build Coastguard Worker 10916*6a54128fSAndroid Build Coastguard Worker 10917*6a54128fSAndroid Build Coastguard Worker 10918*6a54128fSAndroid Build Coastguard Worker# Extract the first word of "ln", so it can be a program name with args. 10919*6a54128fSAndroid Build Coastguard Workerset dummy ln; ac_word=$2 10920*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10921*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 10922*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_LN+y} 10923*6a54128fSAndroid Build Coastguard Workerthen : 10924*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 10925*6a54128fSAndroid Build Coastguard Workerelse $as_nop 10926*6a54128fSAndroid Build Coastguard Worker case $LN in 10927*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 10928*6a54128fSAndroid Build Coastguard Worker ac_cv_path_LN="$LN" # Let the user override the test with a path. 10929*6a54128fSAndroid Build Coastguard Worker ;; 10930*6a54128fSAndroid Build Coastguard Worker *) 10931*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10932*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 10933*6a54128fSAndroid Build Coastguard Workerdo 10934*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 10935*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 10936*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 10937*6a54128fSAndroid Build Coastguard Worker */) ;; 10938*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 10939*6a54128fSAndroid Build Coastguard Worker esac 10940*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 10941*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10942*6a54128fSAndroid Build Coastguard Worker ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext" 10943*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10944*6a54128fSAndroid Build Coastguard Worker break 2 10945*6a54128fSAndroid Build Coastguard Worker fi 10946*6a54128fSAndroid Build Coastguard Workerdone 10947*6a54128fSAndroid Build Coastguard Worker done 10948*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 10949*6a54128fSAndroid Build Coastguard Worker 10950*6a54128fSAndroid Build Coastguard Worker test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 10951*6a54128fSAndroid Build Coastguard Worker ;; 10952*6a54128fSAndroid Build Coastguard Workeresac 10953*6a54128fSAndroid Build Coastguard Workerfi 10954*6a54128fSAndroid Build Coastguard WorkerLN=$ac_cv_path_LN 10955*6a54128fSAndroid Build Coastguard Workerif test -n "$LN"; then 10956*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 10957*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$LN" >&6; } 10958*6a54128fSAndroid Build Coastguard Workerelse 10959*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10960*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 10961*6a54128fSAndroid Build Coastguard Workerfi 10962*6a54128fSAndroid Build Coastguard Worker 10963*6a54128fSAndroid Build Coastguard Worker 10964*6a54128fSAndroid Build Coastguard Worker 10965*6a54128fSAndroid Build Coastguard Workermkdir_p=$MKDIR_P 10966*6a54128fSAndroid Build Coastguard Worker 10967*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 10968*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether ln -s works... " >&6; } 10969*6a54128fSAndroid Build Coastguard WorkerLN_S=$as_ln_s 10970*6a54128fSAndroid Build Coastguard Workerif test "$LN_S" = "ln -s"; then 10971*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10972*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "yes" >&6; } 10973*6a54128fSAndroid Build Coastguard Workerelse 10974*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 10975*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no, using $LN_S" >&6; } 10976*6a54128fSAndroid Build Coastguard Workerfi 10977*6a54128fSAndroid Build Coastguard Worker 10978*6a54128fSAndroid Build Coastguard Worker# Extract the first word of "mv", so it can be a program name with args. 10979*6a54128fSAndroid Build Coastguard Workerset dummy mv; ac_word=$2 10980*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10981*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 10982*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_MV+y} 10983*6a54128fSAndroid Build Coastguard Workerthen : 10984*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 10985*6a54128fSAndroid Build Coastguard Workerelse $as_nop 10986*6a54128fSAndroid Build Coastguard Worker case $MV in 10987*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 10988*6a54128fSAndroid Build Coastguard Worker ac_cv_path_MV="$MV" # Let the user override the test with a path. 10989*6a54128fSAndroid Build Coastguard Worker ;; 10990*6a54128fSAndroid Build Coastguard Worker *) 10991*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10992*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 10993*6a54128fSAndroid Build Coastguard Workerdo 10994*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 10995*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 10996*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 10997*6a54128fSAndroid Build Coastguard Worker */) ;; 10998*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 10999*6a54128fSAndroid Build Coastguard Worker esac 11000*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11001*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11002*6a54128fSAndroid Build Coastguard Worker ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext" 11003*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11004*6a54128fSAndroid Build Coastguard Worker break 2 11005*6a54128fSAndroid Build Coastguard Worker fi 11006*6a54128fSAndroid Build Coastguard Workerdone 11007*6a54128fSAndroid Build Coastguard Worker done 11008*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11009*6a54128fSAndroid Build Coastguard Worker 11010*6a54128fSAndroid Build Coastguard Worker test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 11011*6a54128fSAndroid Build Coastguard Worker ;; 11012*6a54128fSAndroid Build Coastguard Workeresac 11013*6a54128fSAndroid Build Coastguard Workerfi 11014*6a54128fSAndroid Build Coastguard WorkerMV=$ac_cv_path_MV 11015*6a54128fSAndroid Build Coastguard Workerif test -n "$MV"; then 11016*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 11017*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$MV" >&6; } 11018*6a54128fSAndroid Build Coastguard Workerelse 11019*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11020*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11021*6a54128fSAndroid Build Coastguard Workerfi 11022*6a54128fSAndroid Build Coastguard Worker 11023*6a54128fSAndroid Build Coastguard Worker 11024*6a54128fSAndroid Build Coastguard Worker# Extract the first word of "cp", so it can be a program name with args. 11025*6a54128fSAndroid Build Coastguard Workerset dummy cp; ac_word=$2 11026*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11027*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 11028*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_CP+y} 11029*6a54128fSAndroid Build Coastguard Workerthen : 11030*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11031*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11032*6a54128fSAndroid Build Coastguard Worker case $CP in 11033*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 11034*6a54128fSAndroid Build Coastguard Worker ac_cv_path_CP="$CP" # Let the user override the test with a path. 11035*6a54128fSAndroid Build Coastguard Worker ;; 11036*6a54128fSAndroid Build Coastguard Worker *) 11037*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11038*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 11039*6a54128fSAndroid Build Coastguard Workerdo 11040*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11041*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11042*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11043*6a54128fSAndroid Build Coastguard Worker */) ;; 11044*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11045*6a54128fSAndroid Build Coastguard Worker esac 11046*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11047*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11048*6a54128fSAndroid Build Coastguard Worker ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext" 11049*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11050*6a54128fSAndroid Build Coastguard Worker break 2 11051*6a54128fSAndroid Build Coastguard Worker fi 11052*6a54128fSAndroid Build Coastguard Workerdone 11053*6a54128fSAndroid Build Coastguard Worker done 11054*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11055*6a54128fSAndroid Build Coastguard Worker 11056*6a54128fSAndroid Build Coastguard Worker test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 11057*6a54128fSAndroid Build Coastguard Worker ;; 11058*6a54128fSAndroid Build Coastguard Workeresac 11059*6a54128fSAndroid Build Coastguard Workerfi 11060*6a54128fSAndroid Build Coastguard WorkerCP=$ac_cv_path_CP 11061*6a54128fSAndroid Build Coastguard Workerif test -n "$CP"; then 11062*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 11063*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$CP" >&6; } 11064*6a54128fSAndroid Build Coastguard Workerelse 11065*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11066*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11067*6a54128fSAndroid Build Coastguard Workerfi 11068*6a54128fSAndroid Build Coastguard Worker 11069*6a54128fSAndroid Build Coastguard Worker 11070*6a54128fSAndroid Build Coastguard Worker# Extract the first word of "rm", so it can be a program name with args. 11071*6a54128fSAndroid Build Coastguard Workerset dummy rm; ac_word=$2 11072*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11073*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 11074*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_RM+y} 11075*6a54128fSAndroid Build Coastguard Workerthen : 11076*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11077*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11078*6a54128fSAndroid Build Coastguard Worker case $RM in 11079*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 11080*6a54128fSAndroid Build Coastguard Worker ac_cv_path_RM="$RM" # Let the user override the test with a path. 11081*6a54128fSAndroid Build Coastguard Worker ;; 11082*6a54128fSAndroid Build Coastguard Worker *) 11083*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11084*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 11085*6a54128fSAndroid Build Coastguard Workerdo 11086*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11087*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11088*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11089*6a54128fSAndroid Build Coastguard Worker */) ;; 11090*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11091*6a54128fSAndroid Build Coastguard Worker esac 11092*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11093*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11094*6a54128fSAndroid Build Coastguard Worker ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext" 11095*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11096*6a54128fSAndroid Build Coastguard Worker break 2 11097*6a54128fSAndroid Build Coastguard Worker fi 11098*6a54128fSAndroid Build Coastguard Workerdone 11099*6a54128fSAndroid Build Coastguard Worker done 11100*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11101*6a54128fSAndroid Build Coastguard Worker 11102*6a54128fSAndroid Build Coastguard Worker test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 11103*6a54128fSAndroid Build Coastguard Worker ;; 11104*6a54128fSAndroid Build Coastguard Workeresac 11105*6a54128fSAndroid Build Coastguard Workerfi 11106*6a54128fSAndroid Build Coastguard WorkerRM=$ac_cv_path_RM 11107*6a54128fSAndroid Build Coastguard Workerif test -n "$RM"; then 11108*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 11109*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$RM" >&6; } 11110*6a54128fSAndroid Build Coastguard Workerelse 11111*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11112*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11113*6a54128fSAndroid Build Coastguard Workerfi 11114*6a54128fSAndroid Build Coastguard Worker 11115*6a54128fSAndroid Build Coastguard Worker 11116*6a54128fSAndroid Build Coastguard Worker# Extract the first word of "chmod", so it can be a program name with args. 11117*6a54128fSAndroid Build Coastguard Workerset dummy chmod; ac_word=$2 11118*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11119*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 11120*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_CHMOD+y} 11121*6a54128fSAndroid Build Coastguard Workerthen : 11122*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11123*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11124*6a54128fSAndroid Build Coastguard Worker case $CHMOD in 11125*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 11126*6a54128fSAndroid Build Coastguard Worker ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 11127*6a54128fSAndroid Build Coastguard Worker ;; 11128*6a54128fSAndroid Build Coastguard Worker *) 11129*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11130*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 11131*6a54128fSAndroid Build Coastguard Workerdo 11132*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11133*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11134*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11135*6a54128fSAndroid Build Coastguard Worker */) ;; 11136*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11137*6a54128fSAndroid Build Coastguard Worker esac 11138*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11139*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11140*6a54128fSAndroid Build Coastguard Worker ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext" 11141*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11142*6a54128fSAndroid Build Coastguard Worker break 2 11143*6a54128fSAndroid Build Coastguard Worker fi 11144*6a54128fSAndroid Build Coastguard Workerdone 11145*6a54128fSAndroid Build Coastguard Worker done 11146*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11147*6a54128fSAndroid Build Coastguard Worker 11148*6a54128fSAndroid Build Coastguard Worker test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" 11149*6a54128fSAndroid Build Coastguard Worker ;; 11150*6a54128fSAndroid Build Coastguard Workeresac 11151*6a54128fSAndroid Build Coastguard Workerfi 11152*6a54128fSAndroid Build Coastguard WorkerCHMOD=$ac_cv_path_CHMOD 11153*6a54128fSAndroid Build Coastguard Workerif test -n "$CHMOD"; then 11154*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 11155*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$CHMOD" >&6; } 11156*6a54128fSAndroid Build Coastguard Workerelse 11157*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11158*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11159*6a54128fSAndroid Build Coastguard Workerfi 11160*6a54128fSAndroid Build Coastguard Worker 11161*6a54128fSAndroid Build Coastguard Worker 11162*6a54128fSAndroid Build Coastguard Workerfor ac_prog in gawk mawk nawk awk 11163*6a54128fSAndroid Build Coastguard Workerdo 11164*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "$ac_prog", so it can be a program name with args. 11165*6a54128fSAndroid Build Coastguard Workerset dummy $ac_prog; ac_word=$2 11166*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11167*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 11168*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_AWK+y} 11169*6a54128fSAndroid Build Coastguard Workerthen : 11170*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11171*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11172*6a54128fSAndroid Build Coastguard Worker if test -n "$AWK"; then 11173*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_AWK="$AWK" # Let the user override the test. 11174*6a54128fSAndroid Build Coastguard Workerelse 11175*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11176*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 11177*6a54128fSAndroid Build Coastguard Workerdo 11178*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11179*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11180*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11181*6a54128fSAndroid Build Coastguard Worker */) ;; 11182*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11183*6a54128fSAndroid Build Coastguard Worker esac 11184*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11185*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11186*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_AWK="$ac_prog" 11187*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11188*6a54128fSAndroid Build Coastguard Worker break 2 11189*6a54128fSAndroid Build Coastguard Worker fi 11190*6a54128fSAndroid Build Coastguard Workerdone 11191*6a54128fSAndroid Build Coastguard Worker done 11192*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11193*6a54128fSAndroid Build Coastguard Worker 11194*6a54128fSAndroid Build Coastguard Workerfi 11195*6a54128fSAndroid Build Coastguard Workerfi 11196*6a54128fSAndroid Build Coastguard WorkerAWK=$ac_cv_prog_AWK 11197*6a54128fSAndroid Build Coastguard Workerif test -n "$AWK"; then 11198*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11199*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$AWK" >&6; } 11200*6a54128fSAndroid Build Coastguard Workerelse 11201*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11202*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11203*6a54128fSAndroid Build Coastguard Workerfi 11204*6a54128fSAndroid Build Coastguard Worker 11205*6a54128fSAndroid Build Coastguard Worker 11206*6a54128fSAndroid Build Coastguard Worker test -n "$AWK" && break 11207*6a54128fSAndroid Build Coastguard Workerdone 11208*6a54128fSAndroid Build Coastguard Worker 11209*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11210*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for egrep... " >&6; } 11211*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_EGREP+y} 11212*6a54128fSAndroid Build Coastguard Workerthen : 11213*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11214*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11215*6a54128fSAndroid Build Coastguard Worker if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11216*6a54128fSAndroid Build Coastguard Worker then ac_cv_path_EGREP="$GREP -E" 11217*6a54128fSAndroid Build Coastguard Worker else 11218*6a54128fSAndroid Build Coastguard Worker if test -z "$EGREP"; then 11219*6a54128fSAndroid Build Coastguard Worker ac_path_EGREP_found=false 11220*6a54128fSAndroid Build Coastguard Worker # Loop through the user's path and test for each of PROGNAME-LIST 11221*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11222*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11223*6a54128fSAndroid Build Coastguard Workerdo 11224*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11225*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11226*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11227*6a54128fSAndroid Build Coastguard Worker */) ;; 11228*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11229*6a54128fSAndroid Build Coastguard Worker esac 11230*6a54128fSAndroid Build Coastguard Worker for ac_prog in egrep 11231*6a54128fSAndroid Build Coastguard Worker do 11232*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11233*6a54128fSAndroid Build Coastguard Worker ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11234*6a54128fSAndroid Build Coastguard Worker as_fn_executable_p "$ac_path_EGREP" || continue 11235*6a54128fSAndroid Build Coastguard Worker# Check for GNU ac_path_EGREP and select it if it is found. 11236*6a54128fSAndroid Build Coastguard Worker # Check for GNU $ac_path_EGREP 11237*6a54128fSAndroid Build Coastguard Workercase `"$ac_path_EGREP" --version 2>&1` in 11238*6a54128fSAndroid Build Coastguard Worker*GNU*) 11239*6a54128fSAndroid Build Coastguard Worker ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11240*6a54128fSAndroid Build Coastguard Worker*) 11241*6a54128fSAndroid Build Coastguard Worker ac_count=0 11242*6a54128fSAndroid Build Coastguard Worker printf %s 0123456789 >"conftest.in" 11243*6a54128fSAndroid Build Coastguard Worker while : 11244*6a54128fSAndroid Build Coastguard Worker do 11245*6a54128fSAndroid Build Coastguard Worker cat "conftest.in" "conftest.in" >"conftest.tmp" 11246*6a54128fSAndroid Build Coastguard Worker mv "conftest.tmp" "conftest.in" 11247*6a54128fSAndroid Build Coastguard Worker cp "conftest.in" "conftest.nl" 11248*6a54128fSAndroid Build Coastguard Worker printf "%s\n" 'EGREP' >> "conftest.nl" 11249*6a54128fSAndroid Build Coastguard Worker "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11250*6a54128fSAndroid Build Coastguard Worker diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11251*6a54128fSAndroid Build Coastguard Worker as_fn_arith $ac_count + 1 && ac_count=$as_val 11252*6a54128fSAndroid Build Coastguard Worker if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11253*6a54128fSAndroid Build Coastguard Worker # Best one so far, save it but keep looking for a better one 11254*6a54128fSAndroid Build Coastguard Worker ac_cv_path_EGREP="$ac_path_EGREP" 11255*6a54128fSAndroid Build Coastguard Worker ac_path_EGREP_max=$ac_count 11256*6a54128fSAndroid Build Coastguard Worker fi 11257*6a54128fSAndroid Build Coastguard Worker # 10*(2^10) chars as input seems more than enough 11258*6a54128fSAndroid Build Coastguard Worker test $ac_count -gt 10 && break 11259*6a54128fSAndroid Build Coastguard Worker done 11260*6a54128fSAndroid Build Coastguard Worker rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11261*6a54128fSAndroid Build Coastguard Workeresac 11262*6a54128fSAndroid Build Coastguard Worker 11263*6a54128fSAndroid Build Coastguard Worker $ac_path_EGREP_found && break 3 11264*6a54128fSAndroid Build Coastguard Worker done 11265*6a54128fSAndroid Build Coastguard Worker done 11266*6a54128fSAndroid Build Coastguard Worker done 11267*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11268*6a54128fSAndroid Build Coastguard Worker if test -z "$ac_cv_path_EGREP"; then 11269*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11270*6a54128fSAndroid Build Coastguard Worker fi 11271*6a54128fSAndroid Build Coastguard Workerelse 11272*6a54128fSAndroid Build Coastguard Worker ac_cv_path_EGREP=$EGREP 11273*6a54128fSAndroid Build Coastguard Workerfi 11274*6a54128fSAndroid Build Coastguard Worker 11275*6a54128fSAndroid Build Coastguard Worker fi 11276*6a54128fSAndroid Build Coastguard Workerfi 11277*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11278*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_path_EGREP" >&6; } 11279*6a54128fSAndroid Build Coastguard Worker EGREP="$ac_cv_path_EGREP" 11280*6a54128fSAndroid Build Coastguard Worker 11281*6a54128fSAndroid Build Coastguard Worker 11282*6a54128fSAndroid Build Coastguard Worker# Extract the first word of "sed", so it can be a program name with args. 11283*6a54128fSAndroid Build Coastguard Workerset dummy sed; ac_word=$2 11284*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11285*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 11286*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_SED+y} 11287*6a54128fSAndroid Build Coastguard Workerthen : 11288*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11289*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11290*6a54128fSAndroid Build Coastguard Worker case $SED in 11291*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 11292*6a54128fSAndroid Build Coastguard Worker ac_cv_path_SED="$SED" # Let the user override the test with a path. 11293*6a54128fSAndroid Build Coastguard Worker ;; 11294*6a54128fSAndroid Build Coastguard Worker *) 11295*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11296*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 11297*6a54128fSAndroid Build Coastguard Workerdo 11298*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11299*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11300*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11301*6a54128fSAndroid Build Coastguard Worker */) ;; 11302*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11303*6a54128fSAndroid Build Coastguard Worker esac 11304*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11305*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11306*6a54128fSAndroid Build Coastguard Worker ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext" 11307*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11308*6a54128fSAndroid Build Coastguard Worker break 2 11309*6a54128fSAndroid Build Coastguard Worker fi 11310*6a54128fSAndroid Build Coastguard Workerdone 11311*6a54128fSAndroid Build Coastguard Worker done 11312*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11313*6a54128fSAndroid Build Coastguard Worker 11314*6a54128fSAndroid Build Coastguard Worker test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 11315*6a54128fSAndroid Build Coastguard Worker ;; 11316*6a54128fSAndroid Build Coastguard Workeresac 11317*6a54128fSAndroid Build Coastguard Workerfi 11318*6a54128fSAndroid Build Coastguard WorkerSED=$ac_cv_path_SED 11319*6a54128fSAndroid Build Coastguard Workerif test -n "$SED"; then 11320*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 11321*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$SED" >&6; } 11322*6a54128fSAndroid Build Coastguard Workerelse 11323*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11324*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11325*6a54128fSAndroid Build Coastguard Workerfi 11326*6a54128fSAndroid Build Coastguard Worker 11327*6a54128fSAndroid Build Coastguard Worker 11328*6a54128fSAndroid Build Coastguard Worker# Extract the first word of "perl", so it can be a program name with args. 11329*6a54128fSAndroid Build Coastguard Workerset dummy perl; ac_word=$2 11330*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11331*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 11332*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_PERL+y} 11333*6a54128fSAndroid Build Coastguard Workerthen : 11334*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11335*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11336*6a54128fSAndroid Build Coastguard Worker case $PERL in 11337*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 11338*6a54128fSAndroid Build Coastguard Worker ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 11339*6a54128fSAndroid Build Coastguard Worker ;; 11340*6a54128fSAndroid Build Coastguard Worker *) 11341*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11342*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 11343*6a54128fSAndroid Build Coastguard Workerdo 11344*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11345*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11346*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11347*6a54128fSAndroid Build Coastguard Worker */) ;; 11348*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11349*6a54128fSAndroid Build Coastguard Worker esac 11350*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11351*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11352*6a54128fSAndroid Build Coastguard Worker ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 11353*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11354*6a54128fSAndroid Build Coastguard Worker break 2 11355*6a54128fSAndroid Build Coastguard Worker fi 11356*6a54128fSAndroid Build Coastguard Workerdone 11357*6a54128fSAndroid Build Coastguard Worker done 11358*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11359*6a54128fSAndroid Build Coastguard Worker 11360*6a54128fSAndroid Build Coastguard Worker test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" 11361*6a54128fSAndroid Build Coastguard Worker ;; 11362*6a54128fSAndroid Build Coastguard Workeresac 11363*6a54128fSAndroid Build Coastguard Workerfi 11364*6a54128fSAndroid Build Coastguard WorkerPERL=$ac_cv_path_PERL 11365*6a54128fSAndroid Build Coastguard Workerif test -n "$PERL"; then 11366*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 11367*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$PERL" >&6; } 11368*6a54128fSAndroid Build Coastguard Workerelse 11369*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11370*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11371*6a54128fSAndroid Build Coastguard Workerfi 11372*6a54128fSAndroid Build Coastguard Worker 11373*6a54128fSAndroid Build Coastguard Worker 11374*6a54128fSAndroid Build Coastguard Worker# Extract the first word of "ldconfig", so it can be a program name with args. 11375*6a54128fSAndroid Build Coastguard Workerset dummy ldconfig; ac_word=$2 11376*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11377*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 11378*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_LDCONFIG+y} 11379*6a54128fSAndroid Build Coastguard Workerthen : 11380*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11381*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11382*6a54128fSAndroid Build Coastguard Worker case $LDCONFIG in 11383*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 11384*6a54128fSAndroid Build Coastguard Worker ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. 11385*6a54128fSAndroid Build Coastguard Worker ;; 11386*6a54128fSAndroid Build Coastguard Worker *) 11387*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11388*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 11389*6a54128fSAndroid Build Coastguard Workerdo 11390*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11391*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11392*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11393*6a54128fSAndroid Build Coastguard Worker */) ;; 11394*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11395*6a54128fSAndroid Build Coastguard Worker esac 11396*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11397*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11398*6a54128fSAndroid Build Coastguard Worker ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext" 11399*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11400*6a54128fSAndroid Build Coastguard Worker break 2 11401*6a54128fSAndroid Build Coastguard Worker fi 11402*6a54128fSAndroid Build Coastguard Workerdone 11403*6a54128fSAndroid Build Coastguard Worker done 11404*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11405*6a54128fSAndroid Build Coastguard Worker 11406*6a54128fSAndroid Build Coastguard Worker test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" 11407*6a54128fSAndroid Build Coastguard Worker ;; 11408*6a54128fSAndroid Build Coastguard Workeresac 11409*6a54128fSAndroid Build Coastguard Workerfi 11410*6a54128fSAndroid Build Coastguard WorkerLDCONFIG=$ac_cv_path_LDCONFIG 11411*6a54128fSAndroid Build Coastguard Workerif test -n "$LDCONFIG"; then 11412*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 11413*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$LDCONFIG" >&6; } 11414*6a54128fSAndroid Build Coastguard Workerelse 11415*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11416*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11417*6a54128fSAndroid Build Coastguard Workerfi 11418*6a54128fSAndroid Build Coastguard Worker 11419*6a54128fSAndroid Build Coastguard Worker 11420*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_tool_prefix"; then 11421*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 11422*6a54128fSAndroid Build Coastguard Workerset dummy ${ac_tool_prefix}ar; ac_word=$2 11423*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11424*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 11425*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_AR+y} 11426*6a54128fSAndroid Build Coastguard Workerthen : 11427*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11428*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11429*6a54128fSAndroid Build Coastguard Worker if test -n "$AR"; then 11430*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_AR="$AR" # Let the user override the test. 11431*6a54128fSAndroid Build Coastguard Workerelse 11432*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11433*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 11434*6a54128fSAndroid Build Coastguard Workerdo 11435*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11436*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11437*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11438*6a54128fSAndroid Build Coastguard Worker */) ;; 11439*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11440*6a54128fSAndroid Build Coastguard Worker esac 11441*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11442*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11443*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_AR="${ac_tool_prefix}ar" 11444*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11445*6a54128fSAndroid Build Coastguard Worker break 2 11446*6a54128fSAndroid Build Coastguard Worker fi 11447*6a54128fSAndroid Build Coastguard Workerdone 11448*6a54128fSAndroid Build Coastguard Worker done 11449*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11450*6a54128fSAndroid Build Coastguard Worker 11451*6a54128fSAndroid Build Coastguard Workerfi 11452*6a54128fSAndroid Build Coastguard Workerfi 11453*6a54128fSAndroid Build Coastguard WorkerAR=$ac_cv_prog_AR 11454*6a54128fSAndroid Build Coastguard Workerif test -n "$AR"; then 11455*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 11456*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$AR" >&6; } 11457*6a54128fSAndroid Build Coastguard Workerelse 11458*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11459*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11460*6a54128fSAndroid Build Coastguard Workerfi 11461*6a54128fSAndroid Build Coastguard Worker 11462*6a54128fSAndroid Build Coastguard Worker 11463*6a54128fSAndroid Build Coastguard Workerfi 11464*6a54128fSAndroid Build Coastguard Workerif test -z "$ac_cv_prog_AR"; then 11465*6a54128fSAndroid Build Coastguard Worker ac_ct_AR=$AR 11466*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "ar", so it can be a program name with args. 11467*6a54128fSAndroid Build Coastguard Workerset dummy ar; ac_word=$2 11468*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11469*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 11470*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_ac_ct_AR+y} 11471*6a54128fSAndroid Build Coastguard Workerthen : 11472*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11473*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11474*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_ct_AR"; then 11475*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 11476*6a54128fSAndroid Build Coastguard Workerelse 11477*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11478*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 11479*6a54128fSAndroid Build Coastguard Workerdo 11480*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11481*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11482*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11483*6a54128fSAndroid Build Coastguard Worker */) ;; 11484*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11485*6a54128fSAndroid Build Coastguard Worker esac 11486*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11487*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11488*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_AR="ar" 11489*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11490*6a54128fSAndroid Build Coastguard Worker break 2 11491*6a54128fSAndroid Build Coastguard Worker fi 11492*6a54128fSAndroid Build Coastguard Workerdone 11493*6a54128fSAndroid Build Coastguard Worker done 11494*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11495*6a54128fSAndroid Build Coastguard Worker 11496*6a54128fSAndroid Build Coastguard Workerfi 11497*6a54128fSAndroid Build Coastguard Workerfi 11498*6a54128fSAndroid Build Coastguard Workerac_ct_AR=$ac_cv_prog_ac_ct_AR 11499*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_ct_AR"; then 11500*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 11501*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_ct_AR" >&6; } 11502*6a54128fSAndroid Build Coastguard Workerelse 11503*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11504*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11505*6a54128fSAndroid Build Coastguard Workerfi 11506*6a54128fSAndroid Build Coastguard Worker 11507*6a54128fSAndroid Build Coastguard Worker if test "x$ac_ct_AR" = x; then 11508*6a54128fSAndroid Build Coastguard Worker AR="ar" 11509*6a54128fSAndroid Build Coastguard Worker else 11510*6a54128fSAndroid Build Coastguard Worker case $cross_compiling:$ac_tool_warned in 11511*6a54128fSAndroid Build Coastguard Workeryes:) 11512*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11513*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11514*6a54128fSAndroid Build Coastguard Workerac_tool_warned=yes ;; 11515*6a54128fSAndroid Build Coastguard Workeresac 11516*6a54128fSAndroid Build Coastguard Worker AR=$ac_ct_AR 11517*6a54128fSAndroid Build Coastguard Worker fi 11518*6a54128fSAndroid Build Coastguard Workerelse 11519*6a54128fSAndroid Build Coastguard Worker AR="$ac_cv_prog_AR" 11520*6a54128fSAndroid Build Coastguard Workerfi 11521*6a54128fSAndroid Build Coastguard Worker 11522*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_tool_prefix"; then 11523*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 11524*6a54128fSAndroid Build Coastguard Workerset dummy ${ac_tool_prefix}ranlib; ac_word=$2 11525*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11526*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 11527*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_RANLIB+y} 11528*6a54128fSAndroid Build Coastguard Workerthen : 11529*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11530*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11531*6a54128fSAndroid Build Coastguard Worker if test -n "$RANLIB"; then 11532*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 11533*6a54128fSAndroid Build Coastguard Workerelse 11534*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11535*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 11536*6a54128fSAndroid Build Coastguard Workerdo 11537*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11538*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11539*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11540*6a54128fSAndroid Build Coastguard Worker */) ;; 11541*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11542*6a54128fSAndroid Build Coastguard Worker esac 11543*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11544*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11545*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 11546*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11547*6a54128fSAndroid Build Coastguard Worker break 2 11548*6a54128fSAndroid Build Coastguard Worker fi 11549*6a54128fSAndroid Build Coastguard Workerdone 11550*6a54128fSAndroid Build Coastguard Worker done 11551*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11552*6a54128fSAndroid Build Coastguard Worker 11553*6a54128fSAndroid Build Coastguard Workerfi 11554*6a54128fSAndroid Build Coastguard Workerfi 11555*6a54128fSAndroid Build Coastguard WorkerRANLIB=$ac_cv_prog_RANLIB 11556*6a54128fSAndroid Build Coastguard Workerif test -n "$RANLIB"; then 11557*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 11558*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$RANLIB" >&6; } 11559*6a54128fSAndroid Build Coastguard Workerelse 11560*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11561*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11562*6a54128fSAndroid Build Coastguard Workerfi 11563*6a54128fSAndroid Build Coastguard Worker 11564*6a54128fSAndroid Build Coastguard Worker 11565*6a54128fSAndroid Build Coastguard Workerfi 11566*6a54128fSAndroid Build Coastguard Workerif test -z "$ac_cv_prog_RANLIB"; then 11567*6a54128fSAndroid Build Coastguard Worker ac_ct_RANLIB=$RANLIB 11568*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "ranlib", so it can be a program name with args. 11569*6a54128fSAndroid Build Coastguard Workerset dummy ranlib; ac_word=$2 11570*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11571*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 11572*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_ac_ct_RANLIB+y} 11573*6a54128fSAndroid Build Coastguard Workerthen : 11574*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11575*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11576*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_ct_RANLIB"; then 11577*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 11578*6a54128fSAndroid Build Coastguard Workerelse 11579*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11580*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 11581*6a54128fSAndroid Build Coastguard Workerdo 11582*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11583*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11584*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11585*6a54128fSAndroid Build Coastguard Worker */) ;; 11586*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11587*6a54128fSAndroid Build Coastguard Worker esac 11588*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11589*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11590*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_RANLIB="ranlib" 11591*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11592*6a54128fSAndroid Build Coastguard Worker break 2 11593*6a54128fSAndroid Build Coastguard Worker fi 11594*6a54128fSAndroid Build Coastguard Workerdone 11595*6a54128fSAndroid Build Coastguard Worker done 11596*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11597*6a54128fSAndroid Build Coastguard Worker 11598*6a54128fSAndroid Build Coastguard Workerfi 11599*6a54128fSAndroid Build Coastguard Workerfi 11600*6a54128fSAndroid Build Coastguard Workerac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 11601*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_ct_RANLIB"; then 11602*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 11603*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_ct_RANLIB" >&6; } 11604*6a54128fSAndroid Build Coastguard Workerelse 11605*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11606*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11607*6a54128fSAndroid Build Coastguard Workerfi 11608*6a54128fSAndroid Build Coastguard Worker 11609*6a54128fSAndroid Build Coastguard Worker if test "x$ac_ct_RANLIB" = x; then 11610*6a54128fSAndroid Build Coastguard Worker RANLIB=":" 11611*6a54128fSAndroid Build Coastguard Worker else 11612*6a54128fSAndroid Build Coastguard Worker case $cross_compiling:$ac_tool_warned in 11613*6a54128fSAndroid Build Coastguard Workeryes:) 11614*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11615*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11616*6a54128fSAndroid Build Coastguard Workerac_tool_warned=yes ;; 11617*6a54128fSAndroid Build Coastguard Workeresac 11618*6a54128fSAndroid Build Coastguard Worker RANLIB=$ac_ct_RANLIB 11619*6a54128fSAndroid Build Coastguard Worker fi 11620*6a54128fSAndroid Build Coastguard Workerelse 11621*6a54128fSAndroid Build Coastguard Worker RANLIB="$ac_cv_prog_RANLIB" 11622*6a54128fSAndroid Build Coastguard Workerfi 11623*6a54128fSAndroid Build Coastguard Worker 11624*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_tool_prefix"; then 11625*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 11626*6a54128fSAndroid Build Coastguard Workerset dummy ${ac_tool_prefix}strip; ac_word=$2 11627*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11628*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 11629*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_STRIP+y} 11630*6a54128fSAndroid Build Coastguard Workerthen : 11631*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11632*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11633*6a54128fSAndroid Build Coastguard Worker if test -n "$STRIP"; then 11634*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 11635*6a54128fSAndroid Build Coastguard Workerelse 11636*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11637*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 11638*6a54128fSAndroid Build Coastguard Workerdo 11639*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11640*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11641*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11642*6a54128fSAndroid Build Coastguard Worker */) ;; 11643*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11644*6a54128fSAndroid Build Coastguard Worker esac 11645*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11646*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11647*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_STRIP="${ac_tool_prefix}strip" 11648*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11649*6a54128fSAndroid Build Coastguard Worker break 2 11650*6a54128fSAndroid Build Coastguard Worker fi 11651*6a54128fSAndroid Build Coastguard Workerdone 11652*6a54128fSAndroid Build Coastguard Worker done 11653*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11654*6a54128fSAndroid Build Coastguard Worker 11655*6a54128fSAndroid Build Coastguard Workerfi 11656*6a54128fSAndroid Build Coastguard Workerfi 11657*6a54128fSAndroid Build Coastguard WorkerSTRIP=$ac_cv_prog_STRIP 11658*6a54128fSAndroid Build Coastguard Workerif test -n "$STRIP"; then 11659*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 11660*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$STRIP" >&6; } 11661*6a54128fSAndroid Build Coastguard Workerelse 11662*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11663*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11664*6a54128fSAndroid Build Coastguard Workerfi 11665*6a54128fSAndroid Build Coastguard Worker 11666*6a54128fSAndroid Build Coastguard Worker 11667*6a54128fSAndroid Build Coastguard Workerfi 11668*6a54128fSAndroid Build Coastguard Workerif test -z "$ac_cv_prog_STRIP"; then 11669*6a54128fSAndroid Build Coastguard Worker ac_ct_STRIP=$STRIP 11670*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "strip", so it can be a program name with args. 11671*6a54128fSAndroid Build Coastguard Workerset dummy strip; ac_word=$2 11672*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11673*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 11674*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_ac_ct_STRIP+y} 11675*6a54128fSAndroid Build Coastguard Workerthen : 11676*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11677*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11678*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_ct_STRIP"; then 11679*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 11680*6a54128fSAndroid Build Coastguard Workerelse 11681*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11682*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 11683*6a54128fSAndroid Build Coastguard Workerdo 11684*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11685*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11686*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11687*6a54128fSAndroid Build Coastguard Worker */) ;; 11688*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11689*6a54128fSAndroid Build Coastguard Worker esac 11690*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11691*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11692*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_STRIP="strip" 11693*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11694*6a54128fSAndroid Build Coastguard Worker break 2 11695*6a54128fSAndroid Build Coastguard Worker fi 11696*6a54128fSAndroid Build Coastguard Workerdone 11697*6a54128fSAndroid Build Coastguard Worker done 11698*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11699*6a54128fSAndroid Build Coastguard Worker 11700*6a54128fSAndroid Build Coastguard Workerfi 11701*6a54128fSAndroid Build Coastguard Workerfi 11702*6a54128fSAndroid Build Coastguard Workerac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 11703*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_ct_STRIP"; then 11704*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 11705*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_ct_STRIP" >&6; } 11706*6a54128fSAndroid Build Coastguard Workerelse 11707*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11708*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11709*6a54128fSAndroid Build Coastguard Workerfi 11710*6a54128fSAndroid Build Coastguard Worker 11711*6a54128fSAndroid Build Coastguard Worker if test "x$ac_ct_STRIP" = x; then 11712*6a54128fSAndroid Build Coastguard Worker STRIP=":" 11713*6a54128fSAndroid Build Coastguard Worker else 11714*6a54128fSAndroid Build Coastguard Worker case $cross_compiling:$ac_tool_warned in 11715*6a54128fSAndroid Build Coastguard Workeryes:) 11716*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11717*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11718*6a54128fSAndroid Build Coastguard Workerac_tool_warned=yes ;; 11719*6a54128fSAndroid Build Coastguard Workeresac 11720*6a54128fSAndroid Build Coastguard Worker STRIP=$ac_ct_STRIP 11721*6a54128fSAndroid Build Coastguard Worker fi 11722*6a54128fSAndroid Build Coastguard Workerelse 11723*6a54128fSAndroid Build Coastguard Worker STRIP="$ac_cv_prog_STRIP" 11724*6a54128fSAndroid Build Coastguard Workerfi 11725*6a54128fSAndroid Build Coastguard Worker 11726*6a54128fSAndroid Build Coastguard Worker# Extract the first word of "makeinfo", so it can be a program name with args. 11727*6a54128fSAndroid Build Coastguard Workerset dummy makeinfo; ac_word=$2 11728*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11729*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 11730*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_MAKEINFO+y} 11731*6a54128fSAndroid Build Coastguard Workerthen : 11732*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11733*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11734*6a54128fSAndroid Build Coastguard Worker if test -n "$MAKEINFO"; then 11735*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 11736*6a54128fSAndroid Build Coastguard Workerelse 11737*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11738*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 11739*6a54128fSAndroid Build Coastguard Workerdo 11740*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11741*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11742*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11743*6a54128fSAndroid Build Coastguard Worker */) ;; 11744*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11745*6a54128fSAndroid Build Coastguard Worker esac 11746*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11747*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11748*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_MAKEINFO="makeinfo" 11749*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11750*6a54128fSAndroid Build Coastguard Worker break 2 11751*6a54128fSAndroid Build Coastguard Worker fi 11752*6a54128fSAndroid Build Coastguard Workerdone 11753*6a54128fSAndroid Build Coastguard Worker done 11754*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11755*6a54128fSAndroid Build Coastguard Worker 11756*6a54128fSAndroid Build Coastguard Workerfi 11757*6a54128fSAndroid Build Coastguard Workerfi 11758*6a54128fSAndroid Build Coastguard WorkerMAKEINFO=$ac_cv_prog_MAKEINFO 11759*6a54128fSAndroid Build Coastguard Workerif test -n "$MAKEINFO"; then 11760*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 11761*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$MAKEINFO" >&6; } 11762*6a54128fSAndroid Build Coastguard Workerelse 11763*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11764*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11765*6a54128fSAndroid Build Coastguard Workerfi 11766*6a54128fSAndroid Build Coastguard Worker 11767*6a54128fSAndroid Build Coastguard Worker 11768*6a54128fSAndroid Build Coastguard Workerif test "_$MAKEINFO" = "_"; then 11769*6a54128fSAndroid Build Coastguard Worker MAKEINFO="echo Makeinfo is missing. Info documentation will not be built." 11770*6a54128fSAndroid Build Coastguard Workerelse 11771*6a54128fSAndroid Build Coastguard Worker case "$MAKEINFO" in 11772*6a54128fSAndroid Build Coastguard Worker */missing.*) 11773*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 11774*6a54128fSAndroid Build Coastguard Worker*** Makeinfo is missing. Info documentation will not be built." >&5 11775*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: 11776*6a54128fSAndroid Build Coastguard Worker*** Makeinfo is missing. Info documentation will not be built." >&2;} 11777*6a54128fSAndroid Build Coastguard Worker ;; 11778*6a54128fSAndroid Build Coastguard Worker *) 11779*6a54128fSAndroid Build Coastguard Worker ;; 11780*6a54128fSAndroid Build Coastguard Worker esac 11781*6a54128fSAndroid Build Coastguard Workerfi 11782*6a54128fSAndroid Build Coastguard Worker 11783*6a54128fSAndroid Build Coastguard Worker 11784*6a54128fSAndroid Build Coastguard Worker# See if we need a separate native compiler. 11785*6a54128fSAndroid Build Coastguard Workerif test $cross_compiling = no; then 11786*6a54128fSAndroid Build Coastguard Worker BUILD_CC="$CC" 11787*6a54128fSAndroid Build Coastguard Worker 11788*6a54128fSAndroid Build Coastguard Workerelse 11789*6a54128fSAndroid Build Coastguard Worker for ac_prog in gcc cc 11790*6a54128fSAndroid Build Coastguard Workerdo 11791*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "$ac_prog", so it can be a program name with args. 11792*6a54128fSAndroid Build Coastguard Workerset dummy $ac_prog; ac_word=$2 11793*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11794*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 11795*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_BUILD_CC+y} 11796*6a54128fSAndroid Build Coastguard Workerthen : 11797*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 11798*6a54128fSAndroid Build Coastguard Workerelse $as_nop 11799*6a54128fSAndroid Build Coastguard Worker if test -n "$BUILD_CC"; then 11800*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 11801*6a54128fSAndroid Build Coastguard Workerelse 11802*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11803*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 11804*6a54128fSAndroid Build Coastguard Workerdo 11805*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 11806*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 11807*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 11808*6a54128fSAndroid Build Coastguard Worker */) ;; 11809*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 11810*6a54128fSAndroid Build Coastguard Worker esac 11811*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 11812*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11813*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_BUILD_CC="$ac_prog" 11814*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11815*6a54128fSAndroid Build Coastguard Worker break 2 11816*6a54128fSAndroid Build Coastguard Worker fi 11817*6a54128fSAndroid Build Coastguard Workerdone 11818*6a54128fSAndroid Build Coastguard Worker done 11819*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 11820*6a54128fSAndroid Build Coastguard Worker 11821*6a54128fSAndroid Build Coastguard Workerfi 11822*6a54128fSAndroid Build Coastguard Workerfi 11823*6a54128fSAndroid Build Coastguard WorkerBUILD_CC=$ac_cv_prog_BUILD_CC 11824*6a54128fSAndroid Build Coastguard Workerif test -n "$BUILD_CC"; then 11825*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 11826*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$BUILD_CC" >&6; } 11827*6a54128fSAndroid Build Coastguard Workerelse 11828*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11829*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 11830*6a54128fSAndroid Build Coastguard Workerfi 11831*6a54128fSAndroid Build Coastguard Worker 11832*6a54128fSAndroid Build Coastguard Worker 11833*6a54128fSAndroid Build Coastguard Worker test -n "$BUILD_CC" && break 11834*6a54128fSAndroid Build Coastguard Workerdone 11835*6a54128fSAndroid Build Coastguard Worker 11836*6a54128fSAndroid Build Coastguard Workerfi 11837*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" 11838*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_dirent_h" = xyes 11839*6a54128fSAndroid Build Coastguard Workerthen : 11840*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h 11841*6a54128fSAndroid Build Coastguard Worker 11842*6a54128fSAndroid Build Coastguard Workerfi 11843*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 11844*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_errno_h" = xyes 11845*6a54128fSAndroid Build Coastguard Workerthen : 11846*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h 11847*6a54128fSAndroid Build Coastguard Worker 11848*6a54128fSAndroid Build Coastguard Workerfi 11849*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 11850*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_execinfo_h" = xyes 11851*6a54128fSAndroid Build Coastguard Workerthen : 11852*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h 11853*6a54128fSAndroid Build Coastguard Worker 11854*6a54128fSAndroid Build Coastguard Workerfi 11855*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 11856*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_getopt_h" = xyes 11857*6a54128fSAndroid Build Coastguard Workerthen : 11858*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 11859*6a54128fSAndroid Build Coastguard Worker 11860*6a54128fSAndroid Build Coastguard Workerfi 11861*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 11862*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_malloc_h" = xyes 11863*6a54128fSAndroid Build Coastguard Workerthen : 11864*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h 11865*6a54128fSAndroid Build Coastguard Worker 11866*6a54128fSAndroid Build Coastguard Workerfi 11867*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default" 11868*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_mntent_h" = xyes 11869*6a54128fSAndroid Build Coastguard Workerthen : 11870*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h 11871*6a54128fSAndroid Build Coastguard Worker 11872*6a54128fSAndroid Build Coastguard Workerfi 11873*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default" 11874*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_paths_h" = xyes 11875*6a54128fSAndroid Build Coastguard Workerthen : 11876*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h 11877*6a54128fSAndroid Build Coastguard Worker 11878*6a54128fSAndroid Build Coastguard Workerfi 11879*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 11880*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_pthread_h" = xyes 11881*6a54128fSAndroid Build Coastguard Workerthen : 11882*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h 11883*6a54128fSAndroid Build Coastguard Worker 11884*6a54128fSAndroid Build Coastguard Workerfi 11885*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" 11886*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_semaphore_h" = xyes 11887*6a54128fSAndroid Build Coastguard Workerthen : 11888*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h 11889*6a54128fSAndroid Build Coastguard Worker 11890*6a54128fSAndroid Build Coastguard Workerfi 11891*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 11892*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_setjmp_h" = xyes 11893*6a54128fSAndroid Build Coastguard Workerthen : 11894*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h 11895*6a54128fSAndroid Build Coastguard Worker 11896*6a54128fSAndroid Build Coastguard Workerfi 11897*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 11898*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_signal_h" = xyes 11899*6a54128fSAndroid Build Coastguard Workerthen : 11900*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h 11901*6a54128fSAndroid Build Coastguard Worker 11902*6a54128fSAndroid Build Coastguard Workerfi 11903*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 11904*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_stdarg_h" = xyes 11905*6a54128fSAndroid Build Coastguard Workerthen : 11906*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h 11907*6a54128fSAndroid Build Coastguard Worker 11908*6a54128fSAndroid Build Coastguard Workerfi 11909*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 11910*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_stdint_h" = xyes 11911*6a54128fSAndroid Build Coastguard Workerthen : 11912*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 11913*6a54128fSAndroid Build Coastguard Worker 11914*6a54128fSAndroid Build Coastguard Workerfi 11915*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 11916*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_stdlib_h" = xyes 11917*6a54128fSAndroid Build Coastguard Workerthen : 11918*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h 11919*6a54128fSAndroid Build Coastguard Worker 11920*6a54128fSAndroid Build Coastguard Workerfi 11921*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 11922*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_termios_h" = xyes 11923*6a54128fSAndroid Build Coastguard Workerthen : 11924*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h 11925*6a54128fSAndroid Build Coastguard Worker 11926*6a54128fSAndroid Build Coastguard Workerfi 11927*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default" 11928*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_termio_h" = xyes 11929*6a54128fSAndroid Build Coastguard Workerthen : 11930*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h 11931*6a54128fSAndroid Build Coastguard Worker 11932*6a54128fSAndroid Build Coastguard Workerfi 11933*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 11934*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_unistd_h" = xyes 11935*6a54128fSAndroid Build Coastguard Workerthen : 11936*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 11937*6a54128fSAndroid Build Coastguard Worker 11938*6a54128fSAndroid Build Coastguard Workerfi 11939*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" 11940*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_utime_h" = xyes 11941*6a54128fSAndroid Build Coastguard Workerthen : 11942*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h 11943*6a54128fSAndroid Build Coastguard Worker 11944*6a54128fSAndroid Build Coastguard Workerfi 11945*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" 11946*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_attr_xattr_h" = xyes 11947*6a54128fSAndroid Build Coastguard Workerthen : 11948*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h 11949*6a54128fSAndroid Build Coastguard Worker 11950*6a54128fSAndroid Build Coastguard Workerfi 11951*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default" 11952*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_linux_falloc_h" = xyes 11953*6a54128fSAndroid Build Coastguard Workerthen : 11954*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h 11955*6a54128fSAndroid Build Coastguard Worker 11956*6a54128fSAndroid Build Coastguard Workerfi 11957*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default" 11958*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_linux_fd_h" = xyes 11959*6a54128fSAndroid Build Coastguard Workerthen : 11960*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h 11961*6a54128fSAndroid Build Coastguard Worker 11962*6a54128fSAndroid Build Coastguard Workerfi 11963*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default" 11964*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_linux_fsmap_h" = xyes 11965*6a54128fSAndroid Build Coastguard Workerthen : 11966*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h 11967*6a54128fSAndroid Build Coastguard Worker 11968*6a54128fSAndroid Build Coastguard Workerfi 11969*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default" 11970*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_linux_major_h" = xyes 11971*6a54128fSAndroid Build Coastguard Workerthen : 11972*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h 11973*6a54128fSAndroid Build Coastguard Worker 11974*6a54128fSAndroid Build Coastguard Workerfi 11975*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default" 11976*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_linux_loop_h" = xyes 11977*6a54128fSAndroid Build Coastguard Workerthen : 11978*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h 11979*6a54128fSAndroid Build Coastguard Worker 11980*6a54128fSAndroid Build Coastguard Workerfi 11981*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default" 11982*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_linux_types_h" = xyes 11983*6a54128fSAndroid Build Coastguard Workerthen : 11984*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h 11985*6a54128fSAndroid Build Coastguard Worker 11986*6a54128fSAndroid Build Coastguard Workerfi 11987*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default" 11988*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_net_if_dl_h" = xyes 11989*6a54128fSAndroid Build Coastguard Workerthen : 11990*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h 11991*6a54128fSAndroid Build Coastguard Worker 11992*6a54128fSAndroid Build Coastguard Workerfi 11993*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 11994*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_netinet_in_h" = xyes 11995*6a54128fSAndroid Build Coastguard Workerthen : 11996*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 11997*6a54128fSAndroid Build Coastguard Worker 11998*6a54128fSAndroid Build Coastguard Workerfi 11999*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default" 12000*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_acl_h" = xyes 12001*6a54128fSAndroid Build Coastguard Workerthen : 12002*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h 12003*6a54128fSAndroid Build Coastguard Worker 12004*6a54128fSAndroid Build Coastguard Workerfi 12005*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default" 12006*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_disklabel_h" = xyes 12007*6a54128fSAndroid Build Coastguard Workerthen : 12008*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h 12009*6a54128fSAndroid Build Coastguard Worker 12010*6a54128fSAndroid Build Coastguard Workerfi 12011*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default" 12012*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_disk_h" = xyes 12013*6a54128fSAndroid Build Coastguard Workerthen : 12014*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h 12015*6a54128fSAndroid Build Coastguard Worker 12016*6a54128fSAndroid Build Coastguard Workerfi 12017*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default" 12018*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_file_h" = xyes 12019*6a54128fSAndroid Build Coastguard Workerthen : 12020*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h 12021*6a54128fSAndroid Build Coastguard Worker 12022*6a54128fSAndroid Build Coastguard Workerfi 12023*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 12024*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_ioctl_h" = xyes 12025*6a54128fSAndroid Build Coastguard Workerthen : 12026*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 12027*6a54128fSAndroid Build Coastguard Worker 12028*6a54128fSAndroid Build Coastguard Workerfi 12029*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default" 12030*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_key_h" = xyes 12031*6a54128fSAndroid Build Coastguard Workerthen : 12032*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h 12033*6a54128fSAndroid Build Coastguard Worker 12034*6a54128fSAndroid Build Coastguard Workerfi 12035*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 12036*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_mkdev_h" = xyes 12037*6a54128fSAndroid Build Coastguard Workerthen : 12038*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h 12039*6a54128fSAndroid Build Coastguard Worker 12040*6a54128fSAndroid Build Coastguard Workerfi 12041*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 12042*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_mman_h" = xyes 12043*6a54128fSAndroid Build Coastguard Workerthen : 12044*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 12045*6a54128fSAndroid Build Coastguard Worker 12046*6a54128fSAndroid Build Coastguard Workerfi 12047*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" 12048*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_mount_h" = xyes 12049*6a54128fSAndroid Build Coastguard Workerthen : 12050*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h 12051*6a54128fSAndroid Build Coastguard Worker 12052*6a54128fSAndroid Build Coastguard Workerfi 12053*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" 12054*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_prctl_h" = xyes 12055*6a54128fSAndroid Build Coastguard Workerthen : 12056*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h 12057*6a54128fSAndroid Build Coastguard Worker 12058*6a54128fSAndroid Build Coastguard Workerfi 12059*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default" 12060*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_random_h" = xyes 12061*6a54128fSAndroid Build Coastguard Workerthen : 12062*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h 12063*6a54128fSAndroid Build Coastguard Worker 12064*6a54128fSAndroid Build Coastguard Workerfi 12065*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" 12066*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_resource_h" = xyes 12067*6a54128fSAndroid Build Coastguard Workerthen : 12068*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h 12069*6a54128fSAndroid Build Coastguard Worker 12070*6a54128fSAndroid Build Coastguard Workerfi 12071*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 12072*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_select_h" = xyes 12073*6a54128fSAndroid Build Coastguard Workerthen : 12074*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 12075*6a54128fSAndroid Build Coastguard Worker 12076*6a54128fSAndroid Build Coastguard Workerfi 12077*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 12078*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_socket_h" = xyes 12079*6a54128fSAndroid Build Coastguard Workerthen : 12080*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 12081*6a54128fSAndroid Build Coastguard Worker 12082*6a54128fSAndroid Build Coastguard Workerfi 12083*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" 12084*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_sockio_h" = xyes 12085*6a54128fSAndroid Build Coastguard Workerthen : 12086*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h 12087*6a54128fSAndroid Build Coastguard Worker 12088*6a54128fSAndroid Build Coastguard Workerfi 12089*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 12090*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_stat_h" = xyes 12091*6a54128fSAndroid Build Coastguard Workerthen : 12092*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 12093*6a54128fSAndroid Build Coastguard Worker 12094*6a54128fSAndroid Build Coastguard Workerfi 12095*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" 12096*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_syscall_h" = xyes 12097*6a54128fSAndroid Build Coastguard Workerthen : 12098*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h 12099*6a54128fSAndroid Build Coastguard Worker 12100*6a54128fSAndroid Build Coastguard Workerfi 12101*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 12102*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_sysmacros_h" = xyes 12103*6a54128fSAndroid Build Coastguard Workerthen : 12104*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h 12105*6a54128fSAndroid Build Coastguard Worker 12106*6a54128fSAndroid Build Coastguard Workerfi 12107*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 12108*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_time_h" = xyes 12109*6a54128fSAndroid Build Coastguard Workerthen : 12110*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 12111*6a54128fSAndroid Build Coastguard Worker 12112*6a54128fSAndroid Build Coastguard Workerfi 12113*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 12114*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_types_h" = xyes 12115*6a54128fSAndroid Build Coastguard Workerthen : 12116*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 12117*6a54128fSAndroid Build Coastguard Worker 12118*6a54128fSAndroid Build Coastguard Workerfi 12119*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 12120*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_un_h" = xyes 12121*6a54128fSAndroid Build Coastguard Workerthen : 12122*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h 12123*6a54128fSAndroid Build Coastguard Worker 12124*6a54128fSAndroid Build Coastguard Workerfi 12125*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 12126*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_wait_h" = xyes 12127*6a54128fSAndroid Build Coastguard Workerthen : 12128*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 12129*6a54128fSAndroid Build Coastguard Worker 12130*6a54128fSAndroid Build Coastguard Workerfi 12131*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default" 12132*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_sys_xattr_h" = xyes 12133*6a54128fSAndroid Build Coastguard Workerthen : 12134*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h 12135*6a54128fSAndroid Build Coastguard Worker 12136*6a54128fSAndroid Build Coastguard Workerfi 12137*6a54128fSAndroid Build Coastguard Worker 12138*6a54128fSAndroid Build Coastguard Workercase "$host_os" in 12139*6a54128fSAndroid Build Coastguard Workermingw*) 12140*6a54128fSAndroid Build Coastguard Worker # The above checks only detect system headers, not the headers in 12141*6a54128fSAndroid Build Coastguard Worker # ./include/mingw/, so explicitly define them to be available. 12142*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h 12143*6a54128fSAndroid Build Coastguard Worker 12144*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 12145*6a54128fSAndroid Build Coastguard Worker 12146*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h 12147*6a54128fSAndroid Build Coastguard Worker 12148*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 12149*6a54128fSAndroid Build Coastguard Worker 12150*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 12151*6a54128fSAndroid Build Coastguard Worker 12152*6a54128fSAndroid Build Coastguard Worker ;; 12153*6a54128fSAndroid Build Coastguard Workeresac 12154*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5 12155*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; } 12156*6a54128fSAndroid Build Coastguard WorkerDD= 12157*6a54128fSAndroid Build Coastguard Workerfor i in dd gdd ; do 12158*6a54128fSAndroid Build Coastguard Worker if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then 12159*6a54128fSAndroid Build Coastguard Worker DD=$i 12160*6a54128fSAndroid Build Coastguard Worker break 12161*6a54128fSAndroid Build Coastguard Worker fi 12162*6a54128fSAndroid Build Coastguard Workerdone 12163*6a54128fSAndroid Build Coastguard Workerif test -n "$DD" ; then 12164*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5 12165*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$DD" >&6; } 12166*6a54128fSAndroid Build Coastguard Workerelse 12167*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5 12168*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "not found, using dd" >&6; } 12169*6a54128fSAndroid Build Coastguard Worker DD=dd 12170*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5 12171*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;} 12172*6a54128fSAndroid Build Coastguard Workerfi 12173*6a54128fSAndroid Build Coastguard Worker 12174*6a54128fSAndroid Build Coastguard Worker 12175*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 12176*6a54128fSAndroid Build Coastguard Worker#if HAVE_SYS_TYPES_H 12177*6a54128fSAndroid Build Coastguard Worker#include <sys/types.h> 12178*6a54128fSAndroid Build Coastguard Worker#endif 12179*6a54128fSAndroid Build Coastguard Worker#if HAVE_SYS_SOCKET 12180*6a54128fSAndroid Build Coastguard Worker#include <sys/socket.h> 12181*6a54128fSAndroid Build Coastguard Worker#endif 12182*6a54128fSAndroid Build Coastguard Worker 12183*6a54128fSAndroid Build Coastguard Worker" 12184*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_net_if_h" = xyes 12185*6a54128fSAndroid Build Coastguard Workerthen : 12186*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 12187*6a54128fSAndroid Build Coastguard Worker 12188*6a54128fSAndroid Build Coastguard Workerfi 12189*6a54128fSAndroid Build Coastguard Worker 12190*6a54128fSAndroid Build Coastguard Workerac_func= 12191*6a54128fSAndroid Build Coastguard Workerfor ac_item in $ac_func_c_list 12192*6a54128fSAndroid Build Coastguard Workerdo 12193*6a54128fSAndroid Build Coastguard Worker if test $ac_func; then 12194*6a54128fSAndroid Build Coastguard Worker ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 12195*6a54128fSAndroid Build Coastguard Worker if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 12196*6a54128fSAndroid Build Coastguard Worker echo "#define $ac_item 1" >> confdefs.h 12197*6a54128fSAndroid Build Coastguard Worker fi 12198*6a54128fSAndroid Build Coastguard Worker ac_func= 12199*6a54128fSAndroid Build Coastguard Worker else 12200*6a54128fSAndroid Build Coastguard Worker ac_func=$ac_item 12201*6a54128fSAndroid Build Coastguard Worker fi 12202*6a54128fSAndroid Build Coastguard Workerdone 12203*6a54128fSAndroid Build Coastguard Worker 12204*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_vprintf" = xno 12205*6a54128fSAndroid Build Coastguard Workerthen : 12206*6a54128fSAndroid Build Coastguard Worker ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 12207*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func__doprnt" = xyes 12208*6a54128fSAndroid Build Coastguard Workerthen : 12209*6a54128fSAndroid Build Coastguard Worker 12210*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h 12211*6a54128fSAndroid Build Coastguard Worker 12212*6a54128fSAndroid Build Coastguard Workerfi 12213*6a54128fSAndroid Build Coastguard Worker 12214*6a54128fSAndroid Build Coastguard Workerfi 12215*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> 12216*6a54128fSAndroid Build Coastguard Worker" 12217*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_member_struct_dirent_d_reclen" = xyes 12218*6a54128fSAndroid Build Coastguard Workerthen : 12219*6a54128fSAndroid Build Coastguard Worker 12220*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h 12221*6a54128fSAndroid Build Coastguard Worker 12222*6a54128fSAndroid Build Coastguard Workerfi 12223*6a54128fSAndroid Build Coastguard Worker 12224*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" 12225*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_member_struct_stat_st_atim" = xyes 12226*6a54128fSAndroid Build Coastguard Workerthen : 12227*6a54128fSAndroid Build Coastguard Worker 12228*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h 12229*6a54128fSAndroid Build Coastguard Worker 12230*6a54128fSAndroid Build Coastguard Worker 12231*6a54128fSAndroid Build Coastguard Workerfi 12232*6a54128fSAndroid Build Coastguard Worker 12233*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> 12234*6a54128fSAndroid Build Coastguard Worker" 12235*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_type_ssize_t" = xyes 12236*6a54128fSAndroid Build Coastguard Workerthen : 12237*6a54128fSAndroid Build Coastguard Worker 12238*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h 12239*6a54128fSAndroid Build Coastguard Worker 12240*6a54128fSAndroid Build Coastguard Workerfi 12241*6a54128fSAndroid Build Coastguard Worker 12242*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12243*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12244*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_c_undeclared_builtin_options+y} 12245*6a54128fSAndroid Build Coastguard Workerthen : 12246*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 12247*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12248*6a54128fSAndroid Build Coastguard Worker ac_save_CFLAGS=$CFLAGS 12249*6a54128fSAndroid Build Coastguard Worker ac_cv_c_undeclared_builtin_options='cannot detect' 12250*6a54128fSAndroid Build Coastguard Worker for ac_arg in '' -fno-builtin; do 12251*6a54128fSAndroid Build Coastguard Worker CFLAGS="$ac_save_CFLAGS $ac_arg" 12252*6a54128fSAndroid Build Coastguard Worker # This test program should *not* compile successfully. 12253*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12254*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 12255*6a54128fSAndroid Build Coastguard Worker 12256*6a54128fSAndroid Build Coastguard Workerint 12257*6a54128fSAndroid Build Coastguard Workermain (void) 12258*6a54128fSAndroid Build Coastguard Worker{ 12259*6a54128fSAndroid Build Coastguard Worker(void) strchr; 12260*6a54128fSAndroid Build Coastguard Worker ; 12261*6a54128fSAndroid Build Coastguard Worker return 0; 12262*6a54128fSAndroid Build Coastguard Worker} 12263*6a54128fSAndroid Build Coastguard Worker_ACEOF 12264*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 12265*6a54128fSAndroid Build Coastguard Workerthen : 12266*6a54128fSAndroid Build Coastguard Worker 12267*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12268*6a54128fSAndroid Build Coastguard Worker # This test program should compile successfully. 12269*6a54128fSAndroid Build Coastguard Worker # No library function is consistently available on 12270*6a54128fSAndroid Build Coastguard Worker # freestanding implementations, so test against a dummy 12271*6a54128fSAndroid Build Coastguard Worker # declaration. Include always-available headers on the 12272*6a54128fSAndroid Build Coastguard Worker # off chance that they somehow elicit warnings. 12273*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12274*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 12275*6a54128fSAndroid Build Coastguard Worker#include <float.h> 12276*6a54128fSAndroid Build Coastguard Worker#include <limits.h> 12277*6a54128fSAndroid Build Coastguard Worker#include <stdarg.h> 12278*6a54128fSAndroid Build Coastguard Worker#include <stddef.h> 12279*6a54128fSAndroid Build Coastguard Workerextern void ac_decl (int, char *); 12280*6a54128fSAndroid Build Coastguard Worker 12281*6a54128fSAndroid Build Coastguard Workerint 12282*6a54128fSAndroid Build Coastguard Workermain (void) 12283*6a54128fSAndroid Build Coastguard Worker{ 12284*6a54128fSAndroid Build Coastguard Worker(void) ac_decl (0, (char *) 0); 12285*6a54128fSAndroid Build Coastguard Worker (void) ac_decl; 12286*6a54128fSAndroid Build Coastguard Worker 12287*6a54128fSAndroid Build Coastguard Worker ; 12288*6a54128fSAndroid Build Coastguard Worker return 0; 12289*6a54128fSAndroid Build Coastguard Worker} 12290*6a54128fSAndroid Build Coastguard Worker_ACEOF 12291*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 12292*6a54128fSAndroid Build Coastguard Workerthen : 12293*6a54128fSAndroid Build Coastguard Worker if test x"$ac_arg" = x 12294*6a54128fSAndroid Build Coastguard Workerthen : 12295*6a54128fSAndroid Build Coastguard Worker ac_cv_c_undeclared_builtin_options='none needed' 12296*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12297*6a54128fSAndroid Build Coastguard Worker ac_cv_c_undeclared_builtin_options=$ac_arg 12298*6a54128fSAndroid Build Coastguard Workerfi 12299*6a54128fSAndroid Build Coastguard Worker break 12300*6a54128fSAndroid Build Coastguard Workerfi 12301*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12302*6a54128fSAndroid Build Coastguard Workerfi 12303*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12304*6a54128fSAndroid Build Coastguard Worker done 12305*6a54128fSAndroid Build Coastguard Worker CFLAGS=$ac_save_CFLAGS 12306*6a54128fSAndroid Build Coastguard Worker 12307*6a54128fSAndroid Build Coastguard Workerfi 12308*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12309*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12310*6a54128fSAndroid Build Coastguard Worker case $ac_cv_c_undeclared_builtin_options in #( 12311*6a54128fSAndroid Build Coastguard Worker 'cannot detect') : 12312*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12313*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12314*6a54128fSAndroid Build Coastguard Workeras_fn_error $? "cannot make $CC report undeclared builtins 12315*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } ;; #( 12316*6a54128fSAndroid Build Coastguard Worker 'none needed') : 12317*6a54128fSAndroid Build Coastguard Worker ac_c_undeclared_builtin_options='' ;; #( 12318*6a54128fSAndroid Build Coastguard Worker *) : 12319*6a54128fSAndroid Build Coastguard Worker ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12320*6a54128fSAndroid Build Coastguard Workeresac 12321*6a54128fSAndroid Build Coastguard Worker 12322*6a54128fSAndroid Build Coastguard Workerac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> 12323*6a54128fSAndroid Build Coastguard Worker" "$ac_c_undeclared_builtin_options" "CFLAGS" 12324*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_have_decl_llseek" = xyes 12325*6a54128fSAndroid Build Coastguard Workerthen : 12326*6a54128fSAndroid Build Coastguard Worker 12327*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h 12328*6a54128fSAndroid Build Coastguard Worker 12329*6a54128fSAndroid Build Coastguard Workerfi 12330*6a54128fSAndroid Build Coastguard Workerac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE 12331*6a54128fSAndroid Build Coastguard Worker #define _LARGEFILE64_SOURCE 12332*6a54128fSAndroid Build Coastguard Worker #include <unistd.h> 12333*6a54128fSAndroid Build Coastguard Worker" "$ac_c_undeclared_builtin_options" "CFLAGS" 12334*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_have_decl_lseek64" = xyes 12335*6a54128fSAndroid Build Coastguard Workerthen : 12336*6a54128fSAndroid Build Coastguard Worker 12337*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h 12338*6a54128fSAndroid Build Coastguard Worker 12339*6a54128fSAndroid Build Coastguard Workerfi 12340*6a54128fSAndroid Build Coastguard Worker# The cast to long int works around a bug in the HP C Compiler 12341*6a54128fSAndroid Build Coastguard Worker# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12342*6a54128fSAndroid Build Coastguard Worker# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12343*6a54128fSAndroid Build Coastguard Worker# This bug is HP SR number 8606223364. 12344*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 12345*6a54128fSAndroid Build Coastguard Workerprintf %s "checking size of short... " >&6; } 12346*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_sizeof_short+y} 12347*6a54128fSAndroid Build Coastguard Workerthen : 12348*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 12349*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12350*6a54128fSAndroid Build Coastguard Worker if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" 12351*6a54128fSAndroid Build Coastguard Workerthen : 12352*6a54128fSAndroid Build Coastguard Worker 12353*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12354*6a54128fSAndroid Build Coastguard Worker if test "$ac_cv_type_short" = yes; then 12355*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12356*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12357*6a54128fSAndroid Build Coastguard Workeras_fn_error 77 "cannot compute sizeof (short) 12358*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 12359*6a54128fSAndroid Build Coastguard Worker else 12360*6a54128fSAndroid Build Coastguard Worker ac_cv_sizeof_short=0 12361*6a54128fSAndroid Build Coastguard Worker fi 12362*6a54128fSAndroid Build Coastguard Workerfi 12363*6a54128fSAndroid Build Coastguard Worker 12364*6a54128fSAndroid Build Coastguard Workerfi 12365*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 12366*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_sizeof_short" >&6; } 12367*6a54128fSAndroid Build Coastguard Worker 12368*6a54128fSAndroid Build Coastguard Worker 12369*6a54128fSAndroid Build Coastguard Worker 12370*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h 12371*6a54128fSAndroid Build Coastguard Worker 12372*6a54128fSAndroid Build Coastguard Worker 12373*6a54128fSAndroid Build Coastguard Worker# The cast to long int works around a bug in the HP C Compiler 12374*6a54128fSAndroid Build Coastguard Worker# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12375*6a54128fSAndroid Build Coastguard Worker# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12376*6a54128fSAndroid Build Coastguard Worker# This bug is HP SR number 8606223364. 12377*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 12378*6a54128fSAndroid Build Coastguard Workerprintf %s "checking size of int... " >&6; } 12379*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_sizeof_int+y} 12380*6a54128fSAndroid Build Coastguard Workerthen : 12381*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 12382*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12383*6a54128fSAndroid Build Coastguard Worker if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" 12384*6a54128fSAndroid Build Coastguard Workerthen : 12385*6a54128fSAndroid Build Coastguard Worker 12386*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12387*6a54128fSAndroid Build Coastguard Worker if test "$ac_cv_type_int" = yes; then 12388*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12389*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12390*6a54128fSAndroid Build Coastguard Workeras_fn_error 77 "cannot compute sizeof (int) 12391*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 12392*6a54128fSAndroid Build Coastguard Worker else 12393*6a54128fSAndroid Build Coastguard Worker ac_cv_sizeof_int=0 12394*6a54128fSAndroid Build Coastguard Worker fi 12395*6a54128fSAndroid Build Coastguard Workerfi 12396*6a54128fSAndroid Build Coastguard Worker 12397*6a54128fSAndroid Build Coastguard Workerfi 12398*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 12399*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_sizeof_int" >&6; } 12400*6a54128fSAndroid Build Coastguard Worker 12401*6a54128fSAndroid Build Coastguard Worker 12402*6a54128fSAndroid Build Coastguard Worker 12403*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h 12404*6a54128fSAndroid Build Coastguard Worker 12405*6a54128fSAndroid Build Coastguard Worker 12406*6a54128fSAndroid Build Coastguard Worker# The cast to long int works around a bug in the HP C Compiler 12407*6a54128fSAndroid Build Coastguard Worker# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12408*6a54128fSAndroid Build Coastguard Worker# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12409*6a54128fSAndroid Build Coastguard Worker# This bug is HP SR number 8606223364. 12410*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 12411*6a54128fSAndroid Build Coastguard Workerprintf %s "checking size of long... " >&6; } 12412*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_sizeof_long+y} 12413*6a54128fSAndroid Build Coastguard Workerthen : 12414*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 12415*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12416*6a54128fSAndroid Build Coastguard Worker if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" 12417*6a54128fSAndroid Build Coastguard Workerthen : 12418*6a54128fSAndroid Build Coastguard Worker 12419*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12420*6a54128fSAndroid Build Coastguard Worker if test "$ac_cv_type_long" = yes; then 12421*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12422*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12423*6a54128fSAndroid Build Coastguard Workeras_fn_error 77 "cannot compute sizeof (long) 12424*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 12425*6a54128fSAndroid Build Coastguard Worker else 12426*6a54128fSAndroid Build Coastguard Worker ac_cv_sizeof_long=0 12427*6a54128fSAndroid Build Coastguard Worker fi 12428*6a54128fSAndroid Build Coastguard Workerfi 12429*6a54128fSAndroid Build Coastguard Worker 12430*6a54128fSAndroid Build Coastguard Workerfi 12431*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 12432*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_sizeof_long" >&6; } 12433*6a54128fSAndroid Build Coastguard Worker 12434*6a54128fSAndroid Build Coastguard Worker 12435*6a54128fSAndroid Build Coastguard Worker 12436*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h 12437*6a54128fSAndroid Build Coastguard Worker 12438*6a54128fSAndroid Build Coastguard Worker 12439*6a54128fSAndroid Build Coastguard Worker# The cast to long int works around a bug in the HP C Compiler 12440*6a54128fSAndroid Build Coastguard Worker# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12441*6a54128fSAndroid Build Coastguard Worker# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12442*6a54128fSAndroid Build Coastguard Worker# This bug is HP SR number 8606223364. 12443*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 12444*6a54128fSAndroid Build Coastguard Workerprintf %s "checking size of long long... " >&6; } 12445*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_sizeof_long_long+y} 12446*6a54128fSAndroid Build Coastguard Workerthen : 12447*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 12448*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12449*6a54128fSAndroid Build Coastguard Worker if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" 12450*6a54128fSAndroid Build Coastguard Workerthen : 12451*6a54128fSAndroid Build Coastguard Worker 12452*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12453*6a54128fSAndroid Build Coastguard Worker if test "$ac_cv_type_long_long" = yes; then 12454*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12455*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12456*6a54128fSAndroid Build Coastguard Workeras_fn_error 77 "cannot compute sizeof (long long) 12457*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 12458*6a54128fSAndroid Build Coastguard Worker else 12459*6a54128fSAndroid Build Coastguard Worker ac_cv_sizeof_long_long=0 12460*6a54128fSAndroid Build Coastguard Worker fi 12461*6a54128fSAndroid Build Coastguard Workerfi 12462*6a54128fSAndroid Build Coastguard Worker 12463*6a54128fSAndroid Build Coastguard Workerfi 12464*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 12465*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_sizeof_long_long" >&6; } 12466*6a54128fSAndroid Build Coastguard Worker 12467*6a54128fSAndroid Build Coastguard Worker 12468*6a54128fSAndroid Build Coastguard Worker 12469*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h 12470*6a54128fSAndroid Build Coastguard Worker 12471*6a54128fSAndroid Build Coastguard Worker 12472*6a54128fSAndroid Build Coastguard Worker# The cast to long int works around a bug in the HP C Compiler 12473*6a54128fSAndroid Build Coastguard Worker# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12474*6a54128fSAndroid Build Coastguard Worker# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12475*6a54128fSAndroid Build Coastguard Worker# This bug is HP SR number 8606223364. 12476*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 12477*6a54128fSAndroid Build Coastguard Workerprintf %s "checking size of off_t... " >&6; } 12478*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_sizeof_off_t+y} 12479*6a54128fSAndroid Build Coastguard Workerthen : 12480*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 12481*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12482*6a54128fSAndroid Build Coastguard Worker if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" 12483*6a54128fSAndroid Build Coastguard Workerthen : 12484*6a54128fSAndroid Build Coastguard Worker 12485*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12486*6a54128fSAndroid Build Coastguard Worker if test "$ac_cv_type_off_t" = yes; then 12487*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12488*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12489*6a54128fSAndroid Build Coastguard Workeras_fn_error 77 "cannot compute sizeof (off_t) 12490*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 12491*6a54128fSAndroid Build Coastguard Worker else 12492*6a54128fSAndroid Build Coastguard Worker ac_cv_sizeof_off_t=0 12493*6a54128fSAndroid Build Coastguard Worker fi 12494*6a54128fSAndroid Build Coastguard Workerfi 12495*6a54128fSAndroid Build Coastguard Worker 12496*6a54128fSAndroid Build Coastguard Workerfi 12497*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 12498*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_sizeof_off_t" >&6; } 12499*6a54128fSAndroid Build Coastguard Worker 12500*6a54128fSAndroid Build Coastguard Worker 12501*6a54128fSAndroid Build Coastguard Worker 12502*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h 12503*6a54128fSAndroid Build Coastguard Worker 12504*6a54128fSAndroid Build Coastguard Worker 12505*6a54128fSAndroid Build Coastguard Worker# The cast to long int works around a bug in the HP C Compiler 12506*6a54128fSAndroid Build Coastguard Worker# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12507*6a54128fSAndroid Build Coastguard Worker# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12508*6a54128fSAndroid Build Coastguard Worker# This bug is HP SR number 8606223364. 12509*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 12510*6a54128fSAndroid Build Coastguard Workerprintf %s "checking size of time_t... " >&6; } 12511*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_sizeof_time_t+y} 12512*6a54128fSAndroid Build Coastguard Workerthen : 12513*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 12514*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12515*6a54128fSAndroid Build Coastguard Worker if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default" 12516*6a54128fSAndroid Build Coastguard Workerthen : 12517*6a54128fSAndroid Build Coastguard Worker 12518*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12519*6a54128fSAndroid Build Coastguard Worker if test "$ac_cv_type_time_t" = yes; then 12520*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12521*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12522*6a54128fSAndroid Build Coastguard Workeras_fn_error 77 "cannot compute sizeof (time_t) 12523*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 12524*6a54128fSAndroid Build Coastguard Worker else 12525*6a54128fSAndroid Build Coastguard Worker ac_cv_sizeof_time_t=0 12526*6a54128fSAndroid Build Coastguard Worker fi 12527*6a54128fSAndroid Build Coastguard Workerfi 12528*6a54128fSAndroid Build Coastguard Worker 12529*6a54128fSAndroid Build Coastguard Workerfi 12530*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 12531*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_sizeof_time_t" >&6; } 12532*6a54128fSAndroid Build Coastguard Worker 12533*6a54128fSAndroid Build Coastguard Worker 12534*6a54128fSAndroid Build Coastguard Worker 12535*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h 12536*6a54128fSAndroid Build Coastguard Worker 12537*6a54128fSAndroid Build Coastguard Worker 12538*6a54128fSAndroid Build Coastguard WorkerSIZEOF_SHORT=$ac_cv_sizeof_short 12539*6a54128fSAndroid Build Coastguard WorkerSIZEOF_INT=$ac_cv_sizeof_int 12540*6a54128fSAndroid Build Coastguard WorkerSIZEOF_LONG=$ac_cv_sizeof_long 12541*6a54128fSAndroid Build Coastguard WorkerSIZEOF_LONG_LONG=$ac_cv_sizeof_long_long 12542*6a54128fSAndroid Build Coastguard WorkerSIZEOF_OFF_T=$ac_cv_sizeof_off_t 12543*6a54128fSAndroid Build Coastguard WorkerSIZEOF_TIME_T=$ac_cv_sizeof_time_t 12544*6a54128fSAndroid Build Coastguard Worker 12545*6a54128fSAndroid Build Coastguard Worker 12546*6a54128fSAndroid Build Coastguard Worker 12547*6a54128fSAndroid Build Coastguard Worker 12548*6a54128fSAndroid Build Coastguard Worker 12549*6a54128fSAndroid Build Coastguard Worker 12550*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 12551*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether byte ordering is bigendian... " >&6; } 12552*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_c_bigendian+y} 12553*6a54128fSAndroid Build Coastguard Workerthen : 12554*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 12555*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12556*6a54128fSAndroid Build Coastguard Worker ac_cv_c_bigendian=unknown 12557*6a54128fSAndroid Build Coastguard Worker # See if we're dealing with a universal compiler. 12558*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12559*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 12560*6a54128fSAndroid Build Coastguard Worker#ifndef __APPLE_CC__ 12561*6a54128fSAndroid Build Coastguard Worker not a universal capable compiler 12562*6a54128fSAndroid Build Coastguard Worker #endif 12563*6a54128fSAndroid Build Coastguard Worker typedef int dummy; 12564*6a54128fSAndroid Build Coastguard Worker 12565*6a54128fSAndroid Build Coastguard Worker_ACEOF 12566*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 12567*6a54128fSAndroid Build Coastguard Workerthen : 12568*6a54128fSAndroid Build Coastguard Worker 12569*6a54128fSAndroid Build Coastguard Worker # Check for potential -arch flags. It is not universal unless 12570*6a54128fSAndroid Build Coastguard Worker # there are at least two -arch flags with different values. 12571*6a54128fSAndroid Build Coastguard Worker ac_arch= 12572*6a54128fSAndroid Build Coastguard Worker ac_prev= 12573*6a54128fSAndroid Build Coastguard Worker for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 12574*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_prev"; then 12575*6a54128fSAndroid Build Coastguard Worker case $ac_word in 12576*6a54128fSAndroid Build Coastguard Worker i?86 | x86_64 | ppc | ppc64) 12577*6a54128fSAndroid Build Coastguard Worker if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 12578*6a54128fSAndroid Build Coastguard Worker ac_arch=$ac_word 12579*6a54128fSAndroid Build Coastguard Worker else 12580*6a54128fSAndroid Build Coastguard Worker ac_cv_c_bigendian=universal 12581*6a54128fSAndroid Build Coastguard Worker break 12582*6a54128fSAndroid Build Coastguard Worker fi 12583*6a54128fSAndroid Build Coastguard Worker ;; 12584*6a54128fSAndroid Build Coastguard Worker esac 12585*6a54128fSAndroid Build Coastguard Worker ac_prev= 12586*6a54128fSAndroid Build Coastguard Worker elif test "x$ac_word" = "x-arch"; then 12587*6a54128fSAndroid Build Coastguard Worker ac_prev=arch 12588*6a54128fSAndroid Build Coastguard Worker fi 12589*6a54128fSAndroid Build Coastguard Worker done 12590*6a54128fSAndroid Build Coastguard Workerfi 12591*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12592*6a54128fSAndroid Build Coastguard Worker if test $ac_cv_c_bigendian = unknown; then 12593*6a54128fSAndroid Build Coastguard Worker # See if sys/param.h defines the BYTE_ORDER macro. 12594*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12595*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 12596*6a54128fSAndroid Build Coastguard Worker#include <sys/types.h> 12597*6a54128fSAndroid Build Coastguard Worker #include <sys/param.h> 12598*6a54128fSAndroid Build Coastguard Worker 12599*6a54128fSAndroid Build Coastguard Workerint 12600*6a54128fSAndroid Build Coastguard Workermain (void) 12601*6a54128fSAndroid Build Coastguard Worker{ 12602*6a54128fSAndroid Build Coastguard Worker#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 12603*6a54128fSAndroid Build Coastguard Worker && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 12604*6a54128fSAndroid Build Coastguard Worker && LITTLE_ENDIAN) 12605*6a54128fSAndroid Build Coastguard Worker bogus endian macros 12606*6a54128fSAndroid Build Coastguard Worker #endif 12607*6a54128fSAndroid Build Coastguard Worker 12608*6a54128fSAndroid Build Coastguard Worker ; 12609*6a54128fSAndroid Build Coastguard Worker return 0; 12610*6a54128fSAndroid Build Coastguard Worker} 12611*6a54128fSAndroid Build Coastguard Worker_ACEOF 12612*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 12613*6a54128fSAndroid Build Coastguard Workerthen : 12614*6a54128fSAndroid Build Coastguard Worker # It does; now see whether it defined to BIG_ENDIAN or not. 12615*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12616*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 12617*6a54128fSAndroid Build Coastguard Worker#include <sys/types.h> 12618*6a54128fSAndroid Build Coastguard Worker #include <sys/param.h> 12619*6a54128fSAndroid Build Coastguard Worker 12620*6a54128fSAndroid Build Coastguard Workerint 12621*6a54128fSAndroid Build Coastguard Workermain (void) 12622*6a54128fSAndroid Build Coastguard Worker{ 12623*6a54128fSAndroid Build Coastguard Worker#if BYTE_ORDER != BIG_ENDIAN 12624*6a54128fSAndroid Build Coastguard Worker not big endian 12625*6a54128fSAndroid Build Coastguard Worker #endif 12626*6a54128fSAndroid Build Coastguard Worker 12627*6a54128fSAndroid Build Coastguard Worker ; 12628*6a54128fSAndroid Build Coastguard Worker return 0; 12629*6a54128fSAndroid Build Coastguard Worker} 12630*6a54128fSAndroid Build Coastguard Worker_ACEOF 12631*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 12632*6a54128fSAndroid Build Coastguard Workerthen : 12633*6a54128fSAndroid Build Coastguard Worker ac_cv_c_bigendian=yes 12634*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12635*6a54128fSAndroid Build Coastguard Worker ac_cv_c_bigendian=no 12636*6a54128fSAndroid Build Coastguard Workerfi 12637*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12638*6a54128fSAndroid Build Coastguard Workerfi 12639*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12640*6a54128fSAndroid Build Coastguard Worker fi 12641*6a54128fSAndroid Build Coastguard Worker if test $ac_cv_c_bigendian = unknown; then 12642*6a54128fSAndroid Build Coastguard Worker # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 12643*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12644*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 12645*6a54128fSAndroid Build Coastguard Worker#include <limits.h> 12646*6a54128fSAndroid Build Coastguard Worker 12647*6a54128fSAndroid Build Coastguard Workerint 12648*6a54128fSAndroid Build Coastguard Workermain (void) 12649*6a54128fSAndroid Build Coastguard Worker{ 12650*6a54128fSAndroid Build Coastguard Worker#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 12651*6a54128fSAndroid Build Coastguard Worker bogus endian macros 12652*6a54128fSAndroid Build Coastguard Worker #endif 12653*6a54128fSAndroid Build Coastguard Worker 12654*6a54128fSAndroid Build Coastguard Worker ; 12655*6a54128fSAndroid Build Coastguard Worker return 0; 12656*6a54128fSAndroid Build Coastguard Worker} 12657*6a54128fSAndroid Build Coastguard Worker_ACEOF 12658*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 12659*6a54128fSAndroid Build Coastguard Workerthen : 12660*6a54128fSAndroid Build Coastguard Worker # It does; now see whether it defined to _BIG_ENDIAN or not. 12661*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12662*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 12663*6a54128fSAndroid Build Coastguard Worker#include <limits.h> 12664*6a54128fSAndroid Build Coastguard Worker 12665*6a54128fSAndroid Build Coastguard Workerint 12666*6a54128fSAndroid Build Coastguard Workermain (void) 12667*6a54128fSAndroid Build Coastguard Worker{ 12668*6a54128fSAndroid Build Coastguard Worker#ifndef _BIG_ENDIAN 12669*6a54128fSAndroid Build Coastguard Worker not big endian 12670*6a54128fSAndroid Build Coastguard Worker #endif 12671*6a54128fSAndroid Build Coastguard Worker 12672*6a54128fSAndroid Build Coastguard Worker ; 12673*6a54128fSAndroid Build Coastguard Worker return 0; 12674*6a54128fSAndroid Build Coastguard Worker} 12675*6a54128fSAndroid Build Coastguard Worker_ACEOF 12676*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 12677*6a54128fSAndroid Build Coastguard Workerthen : 12678*6a54128fSAndroid Build Coastguard Worker ac_cv_c_bigendian=yes 12679*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12680*6a54128fSAndroid Build Coastguard Worker ac_cv_c_bigendian=no 12681*6a54128fSAndroid Build Coastguard Workerfi 12682*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12683*6a54128fSAndroid Build Coastguard Workerfi 12684*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12685*6a54128fSAndroid Build Coastguard Worker fi 12686*6a54128fSAndroid Build Coastguard Worker if test $ac_cv_c_bigendian = unknown; then 12687*6a54128fSAndroid Build Coastguard Worker # Compile a test program. 12688*6a54128fSAndroid Build Coastguard Worker if test "$cross_compiling" = yes 12689*6a54128fSAndroid Build Coastguard Workerthen : 12690*6a54128fSAndroid Build Coastguard Worker # Try to guess by grepping values from an object file. 12691*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12692*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 12693*6a54128fSAndroid Build Coastguard Workerunsigned short int ascii_mm[] = 12694*6a54128fSAndroid Build Coastguard Worker { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 12695*6a54128fSAndroid Build Coastguard Worker unsigned short int ascii_ii[] = 12696*6a54128fSAndroid Build Coastguard Worker { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 12697*6a54128fSAndroid Build Coastguard Worker int use_ascii (int i) { 12698*6a54128fSAndroid Build Coastguard Worker return ascii_mm[i] + ascii_ii[i]; 12699*6a54128fSAndroid Build Coastguard Worker } 12700*6a54128fSAndroid Build Coastguard Worker unsigned short int ebcdic_ii[] = 12701*6a54128fSAndroid Build Coastguard Worker { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 12702*6a54128fSAndroid Build Coastguard Worker unsigned short int ebcdic_mm[] = 12703*6a54128fSAndroid Build Coastguard Worker { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 12704*6a54128fSAndroid Build Coastguard Worker int use_ebcdic (int i) { 12705*6a54128fSAndroid Build Coastguard Worker return ebcdic_mm[i] + ebcdic_ii[i]; 12706*6a54128fSAndroid Build Coastguard Worker } 12707*6a54128fSAndroid Build Coastguard Worker extern int foo; 12708*6a54128fSAndroid Build Coastguard Worker 12709*6a54128fSAndroid Build Coastguard Workerint 12710*6a54128fSAndroid Build Coastguard Workermain (void) 12711*6a54128fSAndroid Build Coastguard Worker{ 12712*6a54128fSAndroid Build Coastguard Workerreturn use_ascii (foo) == use_ebcdic (foo); 12713*6a54128fSAndroid Build Coastguard Worker ; 12714*6a54128fSAndroid Build Coastguard Worker return 0; 12715*6a54128fSAndroid Build Coastguard Worker} 12716*6a54128fSAndroid Build Coastguard Worker_ACEOF 12717*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 12718*6a54128fSAndroid Build Coastguard Workerthen : 12719*6a54128fSAndroid Build Coastguard Worker if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 12720*6a54128fSAndroid Build Coastguard Worker ac_cv_c_bigendian=yes 12721*6a54128fSAndroid Build Coastguard Worker fi 12722*6a54128fSAndroid Build Coastguard Worker if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 12723*6a54128fSAndroid Build Coastguard Worker if test "$ac_cv_c_bigendian" = unknown; then 12724*6a54128fSAndroid Build Coastguard Worker ac_cv_c_bigendian=no 12725*6a54128fSAndroid Build Coastguard Worker else 12726*6a54128fSAndroid Build Coastguard Worker # finding both strings is unlikely to happen, but who knows? 12727*6a54128fSAndroid Build Coastguard Worker ac_cv_c_bigendian=unknown 12728*6a54128fSAndroid Build Coastguard Worker fi 12729*6a54128fSAndroid Build Coastguard Worker fi 12730*6a54128fSAndroid Build Coastguard Workerfi 12731*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12732*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12733*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12734*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 12735*6a54128fSAndroid Build Coastguard Worker$ac_includes_default 12736*6a54128fSAndroid Build Coastguard Workerint 12737*6a54128fSAndroid Build Coastguard Workermain (void) 12738*6a54128fSAndroid Build Coastguard Worker{ 12739*6a54128fSAndroid Build Coastguard Worker 12740*6a54128fSAndroid Build Coastguard Worker /* Are we little or big endian? From Harbison&Steele. */ 12741*6a54128fSAndroid Build Coastguard Worker union 12742*6a54128fSAndroid Build Coastguard Worker { 12743*6a54128fSAndroid Build Coastguard Worker long int l; 12744*6a54128fSAndroid Build Coastguard Worker char c[sizeof (long int)]; 12745*6a54128fSAndroid Build Coastguard Worker } u; 12746*6a54128fSAndroid Build Coastguard Worker u.l = 1; 12747*6a54128fSAndroid Build Coastguard Worker return u.c[sizeof (long int) - 1] == 1; 12748*6a54128fSAndroid Build Coastguard Worker 12749*6a54128fSAndroid Build Coastguard Worker ; 12750*6a54128fSAndroid Build Coastguard Worker return 0; 12751*6a54128fSAndroid Build Coastguard Worker} 12752*6a54128fSAndroid Build Coastguard Worker_ACEOF 12753*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_run "$LINENO" 12754*6a54128fSAndroid Build Coastguard Workerthen : 12755*6a54128fSAndroid Build Coastguard Worker ac_cv_c_bigendian=no 12756*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12757*6a54128fSAndroid Build Coastguard Worker ac_cv_c_bigendian=yes 12758*6a54128fSAndroid Build Coastguard Workerfi 12759*6a54128fSAndroid Build Coastguard Workerrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12760*6a54128fSAndroid Build Coastguard Worker conftest.$ac_objext conftest.beam conftest.$ac_ext 12761*6a54128fSAndroid Build Coastguard Workerfi 12762*6a54128fSAndroid Build Coastguard Worker 12763*6a54128fSAndroid Build Coastguard Worker fi 12764*6a54128fSAndroid Build Coastguard Workerfi 12765*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 12766*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_c_bigendian" >&6; } 12767*6a54128fSAndroid Build Coastguard Worker case $ac_cv_c_bigendian in #( 12768*6a54128fSAndroid Build Coastguard Worker yes) 12769*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 12770*6a54128fSAndroid Build Coastguard Worker;; #( 12771*6a54128fSAndroid Build Coastguard Worker no) 12772*6a54128fSAndroid Build Coastguard Worker ;; #( 12773*6a54128fSAndroid Build Coastguard Worker universal) 12774*6a54128fSAndroid Build Coastguard Worker 12775*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 12776*6a54128fSAndroid Build Coastguard Worker 12777*6a54128fSAndroid Build Coastguard Worker ;; #( 12778*6a54128fSAndroid Build Coastguard Worker *) 12779*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "unknown endianness 12780*6a54128fSAndroid Build Coastguard Worker presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 12781*6a54128fSAndroid Build Coastguard Worker esac 12782*6a54128fSAndroid Build Coastguard Worker 12783*6a54128fSAndroid Build Coastguard Workerif test $cross_compiling = no; then 12784*6a54128fSAndroid Build Coastguard Worker BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh 12785*6a54128fSAndroid Build Coastguard Workerelse 12786*6a54128fSAndroid Build Coastguard Worker CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh 12787*6a54128fSAndroid Build Coastguard Workerfi 12788*6a54128fSAndroid Build Coastguard WorkerASM_TYPES_HEADER=./asm_types.h 12789*6a54128fSAndroid Build Coastguard Worker 12790*6a54128fSAndroid Build Coastguard Workerecho "/* These defines are needed for the public ext2fs.h header file */" \ 12791*6a54128fSAndroid Build Coastguard Worker > public_config.h 12792*6a54128fSAndroid Build Coastguard Workerif grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then 12793*6a54128fSAndroid Build Coastguard Worker uniq tmp_config.$$ >> public_config.h 12794*6a54128fSAndroid Build Coastguard Workerelse 12795*6a54128fSAndroid Build Coastguard Worker echo "#undef HAVE_SYS_TYPES_H" >> public_config.h 12796*6a54128fSAndroid Build Coastguard Workerfi 12797*6a54128fSAndroid Build Coastguard Workerif grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then 12798*6a54128fSAndroid Build Coastguard Worker uniq tmp_config.$$ >> public_config.h 12799*6a54128fSAndroid Build Coastguard Workerelse 12800*6a54128fSAndroid Build Coastguard Worker echo "#undef WORDS_BIGENDIAN" >> public_config.h 12801*6a54128fSAndroid Build Coastguard Workerfi 12802*6a54128fSAndroid Build Coastguard Workerrm -f tmp_config.$$ 12803*6a54128fSAndroid Build Coastguard WorkerPUBLIC_CONFIG_HEADER=./public_config.h 12804*6a54128fSAndroid Build Coastguard Worker 12805*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 12806*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_inttypes_h" = xyes 12807*6a54128fSAndroid Build Coastguard Workerthen : 12808*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h 12809*6a54128fSAndroid Build Coastguard Worker 12810*6a54128fSAndroid Build Coastguard Workerfi 12811*6a54128fSAndroid Build Coastguard Worker 12812*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 12813*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_type_intptr_t" = xyes 12814*6a54128fSAndroid Build Coastguard Workerthen : 12815*6a54128fSAndroid Build Coastguard Worker 12816*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h 12817*6a54128fSAndroid Build Coastguard Worker 12818*6a54128fSAndroid Build Coastguard Worker 12819*6a54128fSAndroid Build Coastguard Workerfi 12820*6a54128fSAndroid Build Coastguard Worker 12821*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 12822*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether struct stat has a st_flags field... " >&6; } 12823*6a54128fSAndroid Build Coastguard Workerif test ${e2fsprogs_cv_struct_st_flags+y} 12824*6a54128fSAndroid Build Coastguard Workerthen : 12825*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 12826*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12827*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12828*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 12829*6a54128fSAndroid Build Coastguard Worker#include <sys/stat.h> 12830*6a54128fSAndroid Build Coastguard Workerint 12831*6a54128fSAndroid Build Coastguard Workermain (void) 12832*6a54128fSAndroid Build Coastguard Worker{ 12833*6a54128fSAndroid Build Coastguard Workerstruct stat stat; stat.st_flags = 0; 12834*6a54128fSAndroid Build Coastguard Worker ; 12835*6a54128fSAndroid Build Coastguard Worker return 0; 12836*6a54128fSAndroid Build Coastguard Worker} 12837*6a54128fSAndroid Build Coastguard Worker_ACEOF 12838*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 12839*6a54128fSAndroid Build Coastguard Workerthen : 12840*6a54128fSAndroid Build Coastguard Worker e2fsprogs_cv_struct_st_flags=yes 12841*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12842*6a54128fSAndroid Build Coastguard Worker e2fsprogs_cv_struct_st_flags=no 12843*6a54128fSAndroid Build Coastguard Workerfi 12844*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12845*6a54128fSAndroid Build Coastguard Workerfi 12846*6a54128fSAndroid Build Coastguard Worker 12847*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 12848*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; } 12849*6a54128fSAndroid Build Coastguard Workerif test "$e2fsprogs_cv_struct_st_flags" = yes; then 12850*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 12851*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether st_flags field is useful... " >&6; } 12852*6a54128fSAndroid Build Coastguard Worker if test ${e2fsprogs_cv_struct_st_flags_immut+y} 12853*6a54128fSAndroid Build Coastguard Workerthen : 12854*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 12855*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12856*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12857*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 12858*6a54128fSAndroid Build Coastguard Worker#include <sys/stat.h> 12859*6a54128fSAndroid Build Coastguard Workerint 12860*6a54128fSAndroid Build Coastguard Workermain (void) 12861*6a54128fSAndroid Build Coastguard Worker{ 12862*6a54128fSAndroid Build Coastguard Workerstruct stat stat; stat.st_flags |= UF_IMMUTABLE; 12863*6a54128fSAndroid Build Coastguard Worker ; 12864*6a54128fSAndroid Build Coastguard Worker return 0; 12865*6a54128fSAndroid Build Coastguard Worker} 12866*6a54128fSAndroid Build Coastguard Worker_ACEOF 12867*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 12868*6a54128fSAndroid Build Coastguard Workerthen : 12869*6a54128fSAndroid Build Coastguard Worker e2fsprogs_cv_struct_st_flags_immut=yes 12870*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12871*6a54128fSAndroid Build Coastguard Worker e2fsprogs_cv_struct_st_flags_immut=no 12872*6a54128fSAndroid Build Coastguard Workerfi 12873*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12874*6a54128fSAndroid Build Coastguard Workerfi 12875*6a54128fSAndroid Build Coastguard Worker 12876*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 12877*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; } 12878*6a54128fSAndroid Build Coastguard Worker if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then 12879*6a54128fSAndroid Build Coastguard Worker 12880*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h 12881*6a54128fSAndroid Build Coastguard Worker 12882*6a54128fSAndroid Build Coastguard Worker fi 12883*6a54128fSAndroid Build Coastguard Workerfi 12884*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> 12885*6a54128fSAndroid Build Coastguard Worker #include <sys/socket.h> 12886*6a54128fSAndroid Build Coastguard Worker" 12887*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes 12888*6a54128fSAndroid Build Coastguard Workerthen : 12889*6a54128fSAndroid Build Coastguard Worker 12890*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h 12891*6a54128fSAndroid Build Coastguard Worker 12892*6a54128fSAndroid Build Coastguard Workerfi 12893*6a54128fSAndroid Build Coastguard Worker 12894*6a54128fSAndroid Build Coastguard Workerif test -n "$BLKID_CMT"; then 12895*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5 12896*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; } 12897*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_blkid_blkid_probe_get_topology+y} 12898*6a54128fSAndroid Build Coastguard Workerthen : 12899*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 12900*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12901*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 12902*6a54128fSAndroid Build Coastguard WorkerLIBS="-lblkid $LIBS" 12903*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 12904*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 12905*6a54128fSAndroid Build Coastguard Worker 12906*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 12907*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 12908*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 12909*6a54128fSAndroid Build Coastguard Workerchar blkid_probe_get_topology (); 12910*6a54128fSAndroid Build Coastguard Workerint 12911*6a54128fSAndroid Build Coastguard Workermain (void) 12912*6a54128fSAndroid Build Coastguard Worker{ 12913*6a54128fSAndroid Build Coastguard Workerreturn blkid_probe_get_topology (); 12914*6a54128fSAndroid Build Coastguard Worker ; 12915*6a54128fSAndroid Build Coastguard Worker return 0; 12916*6a54128fSAndroid Build Coastguard Worker} 12917*6a54128fSAndroid Build Coastguard Worker_ACEOF 12918*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 12919*6a54128fSAndroid Build Coastguard Workerthen : 12920*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_blkid_blkid_probe_get_topology=yes 12921*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12922*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_blkid_blkid_probe_get_topology=no 12923*6a54128fSAndroid Build Coastguard Workerfi 12924*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 12925*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 12926*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 12927*6a54128fSAndroid Build Coastguard Workerfi 12928*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5 12929*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; } 12930*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes 12931*6a54128fSAndroid Build Coastguard Workerthen : 12932*6a54128fSAndroid Build Coastguard Worker 12933*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h 12934*6a54128fSAndroid Build Coastguard Worker 12935*6a54128fSAndroid Build Coastguard Workerfi 12936*6a54128fSAndroid Build Coastguard Worker 12937*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5 12938*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; } 12939*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_blkid_blkid_topology_get_dax+y} 12940*6a54128fSAndroid Build Coastguard Workerthen : 12941*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 12942*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12943*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 12944*6a54128fSAndroid Build Coastguard WorkerLIBS="-lblkid $LIBS" 12945*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 12946*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 12947*6a54128fSAndroid Build Coastguard Worker 12948*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 12949*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 12950*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 12951*6a54128fSAndroid Build Coastguard Workerchar blkid_topology_get_dax (); 12952*6a54128fSAndroid Build Coastguard Workerint 12953*6a54128fSAndroid Build Coastguard Workermain (void) 12954*6a54128fSAndroid Build Coastguard Worker{ 12955*6a54128fSAndroid Build Coastguard Workerreturn blkid_topology_get_dax (); 12956*6a54128fSAndroid Build Coastguard Worker ; 12957*6a54128fSAndroid Build Coastguard Worker return 0; 12958*6a54128fSAndroid Build Coastguard Worker} 12959*6a54128fSAndroid Build Coastguard Worker_ACEOF 12960*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 12961*6a54128fSAndroid Build Coastguard Workerthen : 12962*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_blkid_blkid_topology_get_dax=yes 12963*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12964*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_blkid_blkid_topology_get_dax=no 12965*6a54128fSAndroid Build Coastguard Workerfi 12966*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 12967*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 12968*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 12969*6a54128fSAndroid Build Coastguard Workerfi 12970*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5 12971*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; } 12972*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes 12973*6a54128fSAndroid Build Coastguard Workerthen : 12974*6a54128fSAndroid Build Coastguard Worker 12975*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h 12976*6a54128fSAndroid Build Coastguard Worker 12977*6a54128fSAndroid Build Coastguard Workerfi 12978*6a54128fSAndroid Build Coastguard Worker 12979*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5 12980*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; } 12981*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y} 12982*6a54128fSAndroid Build Coastguard Workerthen : 12983*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 12984*6a54128fSAndroid Build Coastguard Workerelse $as_nop 12985*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 12986*6a54128fSAndroid Build Coastguard WorkerLIBS="-lblkid $LIBS" 12987*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 12988*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 12989*6a54128fSAndroid Build Coastguard Worker 12990*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 12991*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 12992*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 12993*6a54128fSAndroid Build Coastguard Workerchar blkid_probe_enable_partitions (); 12994*6a54128fSAndroid Build Coastguard Workerint 12995*6a54128fSAndroid Build Coastguard Workermain (void) 12996*6a54128fSAndroid Build Coastguard Worker{ 12997*6a54128fSAndroid Build Coastguard Workerreturn blkid_probe_enable_partitions (); 12998*6a54128fSAndroid Build Coastguard Worker ; 12999*6a54128fSAndroid Build Coastguard Worker return 0; 13000*6a54128fSAndroid Build Coastguard Worker} 13001*6a54128fSAndroid Build Coastguard Worker_ACEOF 13002*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 13003*6a54128fSAndroid Build Coastguard Workerthen : 13004*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_blkid_blkid_probe_enable_partitions=yes 13005*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13006*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_blkid_blkid_probe_enable_partitions=no 13007*6a54128fSAndroid Build Coastguard Workerfi 13008*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 13009*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 13010*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 13011*6a54128fSAndroid Build Coastguard Workerfi 13012*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5 13013*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; } 13014*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes 13015*6a54128fSAndroid Build Coastguard Workerthen : 13016*6a54128fSAndroid Build Coastguard Worker 13017*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h 13018*6a54128fSAndroid Build Coastguard Worker 13019*6a54128fSAndroid Build Coastguard Workerfi 13020*6a54128fSAndroid Build Coastguard Worker 13021*6a54128fSAndroid Build Coastguard Workerfi 13022*6a54128fSAndroid Build Coastguard Workerif test -n "$DLOPEN_LIB" ; then 13023*6a54128fSAndroid Build Coastguard Worker ac_cv_func_dlopen=yes 13024*6a54128fSAndroid Build Coastguard Workerfi 13025*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv" 13026*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func___secure_getenv" = xyes 13027*6a54128fSAndroid Build Coastguard Workerthen : 13028*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h 13029*6a54128fSAndroid Build Coastguard Worker 13030*6a54128fSAndroid Build Coastguard Workerfi 13031*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key" 13032*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_add_key" = xyes 13033*6a54128fSAndroid Build Coastguard Workerthen : 13034*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h 13035*6a54128fSAndroid Build Coastguard Worker 13036*6a54128fSAndroid Build Coastguard Workerfi 13037*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace" 13038*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_backtrace" = xyes 13039*6a54128fSAndroid Build Coastguard Workerthen : 13040*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h 13041*6a54128fSAndroid Build Coastguard Worker 13042*6a54128fSAndroid Build Coastguard Workerfi 13043*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" 13044*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_chflags" = xyes 13045*6a54128fSAndroid Build Coastguard Workerthen : 13046*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h 13047*6a54128fSAndroid Build Coastguard Worker 13048*6a54128fSAndroid Build Coastguard Workerfi 13049*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13050*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_dlopen" = xyes 13051*6a54128fSAndroid Build Coastguard Workerthen : 13052*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h 13053*6a54128fSAndroid Build Coastguard Worker 13054*6a54128fSAndroid Build Coastguard Workerfi 13055*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64" 13056*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_fadvise64" = xyes 13057*6a54128fSAndroid Build Coastguard Workerthen : 13058*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h 13059*6a54128fSAndroid Build Coastguard Worker 13060*6a54128fSAndroid Build Coastguard Workerfi 13061*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate" 13062*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_fallocate" = xyes 13063*6a54128fSAndroid Build Coastguard Workerthen : 13064*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h 13065*6a54128fSAndroid Build Coastguard Worker 13066*6a54128fSAndroid Build Coastguard Workerfi 13067*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64" 13068*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_fallocate64" = xyes 13069*6a54128fSAndroid Build Coastguard Workerthen : 13070*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h 13071*6a54128fSAndroid Build Coastguard Worker 13072*6a54128fSAndroid Build Coastguard Workerfi 13073*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" 13074*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_fchown" = xyes 13075*6a54128fSAndroid Build Coastguard Workerthen : 13076*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h 13077*6a54128fSAndroid Build Coastguard Worker 13078*6a54128fSAndroid Build Coastguard Workerfi 13079*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" 13080*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_fcntl" = xyes 13081*6a54128fSAndroid Build Coastguard Workerthen : 13082*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h 13083*6a54128fSAndroid Build Coastguard Worker 13084*6a54128fSAndroid Build Coastguard Workerfi 13085*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync" 13086*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_fdatasync" = xyes 13087*6a54128fSAndroid Build Coastguard Workerthen : 13088*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h 13089*6a54128fSAndroid Build Coastguard Worker 13090*6a54128fSAndroid Build Coastguard Workerfi 13091*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64" 13092*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_fstat64" = xyes 13093*6a54128fSAndroid Build Coastguard Workerthen : 13094*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h 13095*6a54128fSAndroid Build Coastguard Worker 13096*6a54128fSAndroid Build Coastguard Workerfi 13097*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync" 13098*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_fsync" = xyes 13099*6a54128fSAndroid Build Coastguard Workerthen : 13100*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h 13101*6a54128fSAndroid Build Coastguard Worker 13102*6a54128fSAndroid Build Coastguard Workerfi 13103*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64" 13104*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_ftruncate64" = xyes 13105*6a54128fSAndroid Build Coastguard Workerthen : 13106*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h 13107*6a54128fSAndroid Build Coastguard Worker 13108*6a54128fSAndroid Build Coastguard Workerfi 13109*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes" 13110*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_futimes" = xyes 13111*6a54128fSAndroid Build Coastguard Workerthen : 13112*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h 13113*6a54128fSAndroid Build Coastguard Worker 13114*6a54128fSAndroid Build Coastguard Workerfi 13115*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" 13116*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_getcwd" = xyes 13117*6a54128fSAndroid Build Coastguard Workerthen : 13118*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h 13119*6a54128fSAndroid Build Coastguard Worker 13120*6a54128fSAndroid Build Coastguard Workerfi 13121*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize" 13122*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_getdtablesize" = xyes 13123*6a54128fSAndroid Build Coastguard Workerthen : 13124*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h 13125*6a54128fSAndroid Build Coastguard Worker 13126*6a54128fSAndroid Build Coastguard Workerfi 13127*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 13128*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_getentropy" = xyes 13129*6a54128fSAndroid Build Coastguard Workerthen : 13130*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h 13131*6a54128fSAndroid Build Coastguard Worker 13132*6a54128fSAndroid Build Coastguard Workerfi 13133*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 13134*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_gethostname" = xyes 13135*6a54128fSAndroid Build Coastguard Workerthen : 13136*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h 13137*6a54128fSAndroid Build Coastguard Worker 13138*6a54128fSAndroid Build Coastguard Workerfi 13139*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo" 13140*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_getmntinfo" = xyes 13141*6a54128fSAndroid Build Coastguard Workerthen : 13142*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h 13143*6a54128fSAndroid Build Coastguard Worker 13144*6a54128fSAndroid Build Coastguard Workerfi 13145*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" 13146*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_getpwuid_r" = xyes 13147*6a54128fSAndroid Build Coastguard Workerthen : 13148*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h 13149*6a54128fSAndroid Build Coastguard Worker 13150*6a54128fSAndroid Build Coastguard Workerfi 13151*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom" 13152*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_getrandom" = xyes 13153*6a54128fSAndroid Build Coastguard Workerthen : 13154*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h 13155*6a54128fSAndroid Build Coastguard Worker 13156*6a54128fSAndroid Build Coastguard Workerfi 13157*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" 13158*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_getrlimit" = xyes 13159*6a54128fSAndroid Build Coastguard Workerthen : 13160*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h 13161*6a54128fSAndroid Build Coastguard Worker 13162*6a54128fSAndroid Build Coastguard Workerfi 13163*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" 13164*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_getrusage" = xyes 13165*6a54128fSAndroid Build Coastguard Workerthen : 13166*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h 13167*6a54128fSAndroid Build Coastguard Worker 13168*6a54128fSAndroid Build Coastguard Workerfi 13169*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48" 13170*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_jrand48" = xyes 13171*6a54128fSAndroid Build Coastguard Workerthen : 13172*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h 13173*6a54128fSAndroid Build Coastguard Worker 13174*6a54128fSAndroid Build Coastguard Workerfi 13175*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl" 13176*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_keyctl" = xyes 13177*6a54128fSAndroid Build Coastguard Workerthen : 13178*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h 13179*6a54128fSAndroid Build Coastguard Worker 13180*6a54128fSAndroid Build Coastguard Workerfi 13181*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr" 13182*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_llistxattr" = xyes 13183*6a54128fSAndroid Build Coastguard Workerthen : 13184*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h 13185*6a54128fSAndroid Build Coastguard Worker 13186*6a54128fSAndroid Build Coastguard Workerfi 13187*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek" 13188*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_llseek" = xyes 13189*6a54128fSAndroid Build Coastguard Workerthen : 13190*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h 13191*6a54128fSAndroid Build Coastguard Worker 13192*6a54128fSAndroid Build Coastguard Workerfi 13193*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64" 13194*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_lseek64" = xyes 13195*6a54128fSAndroid Build Coastguard Workerthen : 13196*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h 13197*6a54128fSAndroid Build Coastguard Worker 13198*6a54128fSAndroid Build Coastguard Workerfi 13199*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo" 13200*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_mallinfo" = xyes 13201*6a54128fSAndroid Build Coastguard Workerthen : 13202*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h 13203*6a54128fSAndroid Build Coastguard Worker 13204*6a54128fSAndroid Build Coastguard Workerfi 13205*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2" 13206*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_mallinfo2" = xyes 13207*6a54128fSAndroid Build Coastguard Workerthen : 13208*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h 13209*6a54128fSAndroid Build Coastguard Worker 13210*6a54128fSAndroid Build Coastguard Workerfi 13211*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs" 13212*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_mbstowcs" = xyes 13213*6a54128fSAndroid Build Coastguard Workerthen : 13214*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h 13215*6a54128fSAndroid Build Coastguard Worker 13216*6a54128fSAndroid Build Coastguard Workerfi 13217*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign" 13218*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_memalign" = xyes 13219*6a54128fSAndroid Build Coastguard Workerthen : 13220*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h 13221*6a54128fSAndroid Build Coastguard Worker 13222*6a54128fSAndroid Build Coastguard Workerfi 13223*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy" 13224*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_mempcpy" = xyes 13225*6a54128fSAndroid Build Coastguard Workerthen : 13226*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h 13227*6a54128fSAndroid Build Coastguard Worker 13228*6a54128fSAndroid Build Coastguard Workerfi 13229*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 13230*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_mmap" = xyes 13231*6a54128fSAndroid Build Coastguard Workerthen : 13232*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 13233*6a54128fSAndroid Build Coastguard Worker 13234*6a54128fSAndroid Build Coastguard Workerfi 13235*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync" 13236*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_msync" = xyes 13237*6a54128fSAndroid Build Coastguard Workerthen : 13238*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h 13239*6a54128fSAndroid Build Coastguard Worker 13240*6a54128fSAndroid Build Coastguard Workerfi 13241*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 13242*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_nanosleep" = xyes 13243*6a54128fSAndroid Build Coastguard Workerthen : 13244*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h 13245*6a54128fSAndroid Build Coastguard Worker 13246*6a54128fSAndroid Build Coastguard Workerfi 13247*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64" 13248*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_open64" = xyes 13249*6a54128fSAndroid Build Coastguard Workerthen : 13250*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h 13251*6a54128fSAndroid Build Coastguard Worker 13252*6a54128fSAndroid Build Coastguard Workerfi 13253*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf" 13254*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_pathconf" = xyes 13255*6a54128fSAndroid Build Coastguard Workerthen : 13256*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h 13257*6a54128fSAndroid Build Coastguard Worker 13258*6a54128fSAndroid Build Coastguard Workerfi 13259*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise" 13260*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_posix_fadvise" = xyes 13261*6a54128fSAndroid Build Coastguard Workerthen : 13262*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h 13263*6a54128fSAndroid Build Coastguard Worker 13264*6a54128fSAndroid Build Coastguard Workerfi 13265*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64" 13266*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_posix_fadvise64" = xyes 13267*6a54128fSAndroid Build Coastguard Workerthen : 13268*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h 13269*6a54128fSAndroid Build Coastguard Worker 13270*6a54128fSAndroid Build Coastguard Workerfi 13271*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign" 13272*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_posix_memalign" = xyes 13273*6a54128fSAndroid Build Coastguard Workerthen : 13274*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h 13275*6a54128fSAndroid Build Coastguard Worker 13276*6a54128fSAndroid Build Coastguard Workerfi 13277*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl" 13278*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_prctl" = xyes 13279*6a54128fSAndroid Build Coastguard Workerthen : 13280*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h 13281*6a54128fSAndroid Build Coastguard Worker 13282*6a54128fSAndroid Build Coastguard Workerfi 13283*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 13284*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_pread" = xyes 13285*6a54128fSAndroid Build Coastguard Workerthen : 13286*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h 13287*6a54128fSAndroid Build Coastguard Worker 13288*6a54128fSAndroid Build Coastguard Workerfi 13289*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite" 13290*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_pwrite" = xyes 13291*6a54128fSAndroid Build Coastguard Workerthen : 13292*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h 13293*6a54128fSAndroid Build Coastguard Worker 13294*6a54128fSAndroid Build Coastguard Workerfi 13295*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64" 13296*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_pread64" = xyes 13297*6a54128fSAndroid Build Coastguard Workerthen : 13298*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h 13299*6a54128fSAndroid Build Coastguard Worker 13300*6a54128fSAndroid Build Coastguard Workerfi 13301*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64" 13302*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_pwrite64" = xyes 13303*6a54128fSAndroid Build Coastguard Workerthen : 13304*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h 13305*6a54128fSAndroid Build Coastguard Worker 13306*6a54128fSAndroid Build Coastguard Workerfi 13307*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r" 13308*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_qsort_r" = xyes 13309*6a54128fSAndroid Build Coastguard Workerthen : 13310*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h 13311*6a54128fSAndroid Build Coastguard Worker 13312*6a54128fSAndroid Build Coastguard Workerfi 13313*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv" 13314*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_secure_getenv" = xyes 13315*6a54128fSAndroid Build Coastguard Workerthen : 13316*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h 13317*6a54128fSAndroid Build Coastguard Worker 13318*6a54128fSAndroid Build Coastguard Workerfi 13319*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent" 13320*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_setmntent" = xyes 13321*6a54128fSAndroid Build Coastguard Workerthen : 13322*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h 13323*6a54128fSAndroid Build Coastguard Worker 13324*6a54128fSAndroid Build Coastguard Workerfi 13325*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 13326*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_setresgid" = xyes 13327*6a54128fSAndroid Build Coastguard Workerthen : 13328*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h 13329*6a54128fSAndroid Build Coastguard Worker 13330*6a54128fSAndroid Build Coastguard Workerfi 13331*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 13332*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_setresuid" = xyes 13333*6a54128fSAndroid Build Coastguard Workerthen : 13334*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h 13335*6a54128fSAndroid Build Coastguard Worker 13336*6a54128fSAndroid Build Coastguard Workerfi 13337*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 13338*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_snprintf" = xyes 13339*6a54128fSAndroid Build Coastguard Workerthen : 13340*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 13341*6a54128fSAndroid Build Coastguard Worker 13342*6a54128fSAndroid Build Coastguard Workerfi 13343*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom" 13344*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_srandom" = xyes 13345*6a54128fSAndroid Build Coastguard Workerthen : 13346*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h 13347*6a54128fSAndroid Build Coastguard Worker 13348*6a54128fSAndroid Build Coastguard Workerfi 13349*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy" 13350*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_stpcpy" = xyes 13351*6a54128fSAndroid Build Coastguard Workerthen : 13352*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h 13353*6a54128fSAndroid Build Coastguard Worker 13354*6a54128fSAndroid Build Coastguard Workerfi 13355*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 13356*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_strcasecmp" = xyes 13357*6a54128fSAndroid Build Coastguard Workerthen : 13358*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 13359*6a54128fSAndroid Build Coastguard Worker 13360*6a54128fSAndroid Build Coastguard Workerfi 13361*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 13362*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_strdup" = xyes 13363*6a54128fSAndroid Build Coastguard Workerthen : 13364*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 13365*6a54128fSAndroid Build Coastguard Worker 13366*6a54128fSAndroid Build Coastguard Workerfi 13367*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" 13368*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_strnlen" = xyes 13369*6a54128fSAndroid Build Coastguard Workerthen : 13370*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h 13371*6a54128fSAndroid Build Coastguard Worker 13372*6a54128fSAndroid Build Coastguard Workerfi 13373*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 13374*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_strptime" = xyes 13375*6a54128fSAndroid Build Coastguard Workerthen : 13376*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h 13377*6a54128fSAndroid Build Coastguard Worker 13378*6a54128fSAndroid Build Coastguard Workerfi 13379*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 13380*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_strtoull" = xyes 13381*6a54128fSAndroid Build Coastguard Workerthen : 13382*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h 13383*6a54128fSAndroid Build Coastguard Worker 13384*6a54128fSAndroid Build Coastguard Workerfi 13385*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range" 13386*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_sync_file_range" = xyes 13387*6a54128fSAndroid Build Coastguard Workerthen : 13388*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h 13389*6a54128fSAndroid Build Coastguard Worker 13390*6a54128fSAndroid Build Coastguard Workerfi 13391*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 13392*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_sysconf" = xyes 13393*6a54128fSAndroid Build Coastguard Workerthen : 13394*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h 13395*6a54128fSAndroid Build Coastguard Worker 13396*6a54128fSAndroid Build Coastguard Workerfi 13397*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" 13398*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_usleep" = xyes 13399*6a54128fSAndroid Build Coastguard Workerthen : 13400*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h 13401*6a54128fSAndroid Build Coastguard Worker 13402*6a54128fSAndroid Build Coastguard Workerfi 13403*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime" 13404*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_utime" = xyes 13405*6a54128fSAndroid Build Coastguard Workerthen : 13406*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h 13407*6a54128fSAndroid Build Coastguard Worker 13408*6a54128fSAndroid Build Coastguard Workerfi 13409*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" 13410*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_utimes" = xyes 13411*6a54128fSAndroid Build Coastguard Workerthen : 13412*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h 13413*6a54128fSAndroid Build Coastguard Worker 13414*6a54128fSAndroid Build Coastguard Workerfi 13415*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc" 13416*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_valloc" = xyes 13417*6a54128fSAndroid Build Coastguard Workerthen : 13418*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h 13419*6a54128fSAndroid Build Coastguard Worker 13420*6a54128fSAndroid Build Coastguard Workerfi 13421*6a54128fSAndroid Build Coastguard Worker 13422*6a54128fSAndroid Build Coastguard WorkerSOCKET_LIB='' 13423*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 13424*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for socket in -lsocket... " >&6; } 13425*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_socket_socket+y} 13426*6a54128fSAndroid Build Coastguard Workerthen : 13427*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 13428*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13429*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 13430*6a54128fSAndroid Build Coastguard WorkerLIBS="-lsocket $LIBS" 13431*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 13432*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 13433*6a54128fSAndroid Build Coastguard Worker 13434*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 13435*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 13436*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 13437*6a54128fSAndroid Build Coastguard Workerchar socket (); 13438*6a54128fSAndroid Build Coastguard Workerint 13439*6a54128fSAndroid Build Coastguard Workermain (void) 13440*6a54128fSAndroid Build Coastguard Worker{ 13441*6a54128fSAndroid Build Coastguard Workerreturn socket (); 13442*6a54128fSAndroid Build Coastguard Worker ; 13443*6a54128fSAndroid Build Coastguard Worker return 0; 13444*6a54128fSAndroid Build Coastguard Worker} 13445*6a54128fSAndroid Build Coastguard Worker_ACEOF 13446*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 13447*6a54128fSAndroid Build Coastguard Workerthen : 13448*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_socket_socket=yes 13449*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13450*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_socket_socket=no 13451*6a54128fSAndroid Build Coastguard Workerfi 13452*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 13453*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 13454*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 13455*6a54128fSAndroid Build Coastguard Workerfi 13456*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 13457*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_socket_socket" >&6; } 13458*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_socket_socket" = xyes 13459*6a54128fSAndroid Build Coastguard Workerthen : 13460*6a54128fSAndroid Build Coastguard Worker SOCKET_LIB=-lsocket 13461*6a54128fSAndroid Build Coastguard Workerfi 13462*6a54128fSAndroid Build Coastguard Worker 13463*6a54128fSAndroid Build Coastguard Worker 13464*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5 13465*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for magic_file in -lmagic... " >&6; } 13466*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_magic_magic_file+y} 13467*6a54128fSAndroid Build Coastguard Workerthen : 13468*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 13469*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13470*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 13471*6a54128fSAndroid Build Coastguard WorkerLIBS="-lmagic $LIBS" 13472*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 13473*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 13474*6a54128fSAndroid Build Coastguard Worker 13475*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 13476*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 13477*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 13478*6a54128fSAndroid Build Coastguard Workerchar magic_file (); 13479*6a54128fSAndroid Build Coastguard Workerint 13480*6a54128fSAndroid Build Coastguard Workermain (void) 13481*6a54128fSAndroid Build Coastguard Worker{ 13482*6a54128fSAndroid Build Coastguard Workerreturn magic_file (); 13483*6a54128fSAndroid Build Coastguard Worker ; 13484*6a54128fSAndroid Build Coastguard Worker return 0; 13485*6a54128fSAndroid Build Coastguard Worker} 13486*6a54128fSAndroid Build Coastguard Worker_ACEOF 13487*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 13488*6a54128fSAndroid Build Coastguard Workerthen : 13489*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_magic_magic_file=yes 13490*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13491*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_magic_magic_file=no 13492*6a54128fSAndroid Build Coastguard Workerfi 13493*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 13494*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 13495*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 13496*6a54128fSAndroid Build Coastguard Workerfi 13497*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5 13498*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; } 13499*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_magic_magic_file" = xyes 13500*6a54128fSAndroid Build Coastguard Workerthen : 13501*6a54128fSAndroid Build Coastguard Worker MAGIC_LIB=-lmagic 13502*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" 13503*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_header_magic_h" = xyes 13504*6a54128fSAndroid Build Coastguard Workerthen : 13505*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h 13506*6a54128fSAndroid Build Coastguard Worker 13507*6a54128fSAndroid Build Coastguard Workerfi 13508*6a54128fSAndroid Build Coastguard Worker 13509*6a54128fSAndroid Build Coastguard Workerfi 13510*6a54128fSAndroid Build Coastguard Worker 13511*6a54128fSAndroid Build Coastguard Workerif test "$ac_cv_func_dlopen" = yes ; then 13512*6a54128fSAndroid Build Coastguard Worker MAGIC_LIB=$DLOPEN_LIB 13513*6a54128fSAndroid Build Coastguard Workerfi 13514*6a54128fSAndroid Build Coastguard Worker 13515*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 13516*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for clock_gettime in -lrt... " >&6; } 13517*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_rt_clock_gettime+y} 13518*6a54128fSAndroid Build Coastguard Workerthen : 13519*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 13520*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13521*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 13522*6a54128fSAndroid Build Coastguard WorkerLIBS="-lrt $LIBS" 13523*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 13524*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 13525*6a54128fSAndroid Build Coastguard Worker 13526*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 13527*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 13528*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 13529*6a54128fSAndroid Build Coastguard Workerchar clock_gettime (); 13530*6a54128fSAndroid Build Coastguard Workerint 13531*6a54128fSAndroid Build Coastguard Workermain (void) 13532*6a54128fSAndroid Build Coastguard Worker{ 13533*6a54128fSAndroid Build Coastguard Workerreturn clock_gettime (); 13534*6a54128fSAndroid Build Coastguard Worker ; 13535*6a54128fSAndroid Build Coastguard Worker return 0; 13536*6a54128fSAndroid Build Coastguard Worker} 13537*6a54128fSAndroid Build Coastguard Worker_ACEOF 13538*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 13539*6a54128fSAndroid Build Coastguard Workerthen : 13540*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_rt_clock_gettime=yes 13541*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13542*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_rt_clock_gettime=no 13543*6a54128fSAndroid Build Coastguard Workerfi 13544*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 13545*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 13546*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 13547*6a54128fSAndroid Build Coastguard Workerfi 13548*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 13549*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } 13550*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_rt_clock_gettime" = xyes 13551*6a54128fSAndroid Build Coastguard Workerthen : 13552*6a54128fSAndroid Build Coastguard Worker CLOCK_GETTIME_LIB=-lrt 13553*6a54128fSAndroid Build Coastguard Workerfi 13554*6a54128fSAndroid Build Coastguard Worker 13555*6a54128fSAndroid Build Coastguard Worker 13556*6a54128fSAndroid Build Coastguard WorkerFUSE_CMT= 13557*6a54128fSAndroid Build Coastguard WorkerFUSE_LIB= 13558*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-fuse2fs was given. 13559*6a54128fSAndroid Build Coastguard Workerif test ${enable_fuse2fs+y} 13560*6a54128fSAndroid Build Coastguard Workerthen : 13561*6a54128fSAndroid Build Coastguard Worker enableval=$enable_fuse2fs; if test "$enableval" = "no" 13562*6a54128fSAndroid Build Coastguard Workerthen 13563*6a54128fSAndroid Build Coastguard Worker FUSE_CMT="#" 13564*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5 13565*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Disabling fuse2fs" >&6; } 13566*6a54128fSAndroid Build Coastguard Workerelse 13567*6a54128fSAndroid Build Coastguard Worker for ac_header in pthread.h fuse.h 13568*6a54128fSAndroid Build Coastguard Workerdo : 13569*6a54128fSAndroid Build Coastguard Worker as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 13570*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 13571*6a54128fSAndroid Build Coastguard Worker#define FUSE_USE_VERSION 29 13572*6a54128fSAndroid Build Coastguard Worker" 13573*6a54128fSAndroid Build Coastguard Workerif eval test \"x\$"$as_ac_Header"\" = x"yes" 13574*6a54128fSAndroid Build Coastguard Workerthen : 13575*6a54128fSAndroid Build Coastguard Worker cat >>confdefs.h <<_ACEOF 13576*6a54128fSAndroid Build Coastguard Worker#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 13577*6a54128fSAndroid Build Coastguard Worker_ACEOF 13578*6a54128fSAndroid Build Coastguard Worker 13579*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13580*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13581*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13582*6a54128fSAndroid Build Coastguard Workeras_fn_error $? "Cannot find fuse2fs headers. 13583*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 13584*6a54128fSAndroid Build Coastguard Workerfi 13585*6a54128fSAndroid Build Coastguard Worker 13586*6a54128fSAndroid Build Coastguard Workerdone 13587*6a54128fSAndroid Build Coastguard Worker 13588*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13589*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 13590*6a54128fSAndroid Build Coastguard Worker#define FUSE_USE_VERSION 29 13591*6a54128fSAndroid Build Coastguard Worker#ifdef __linux__ 13592*6a54128fSAndroid Build Coastguard Worker#include <linux/fs.h> 13593*6a54128fSAndroid Build Coastguard Worker#include <linux/falloc.h> 13594*6a54128fSAndroid Build Coastguard Worker#include <linux/xattr.h> 13595*6a54128fSAndroid Build Coastguard Worker#endif 13596*6a54128fSAndroid Build Coastguard Worker 13597*6a54128fSAndroid Build Coastguard Workerint 13598*6a54128fSAndroid Build Coastguard Workermain (void) 13599*6a54128fSAndroid Build Coastguard Worker{ 13600*6a54128fSAndroid Build Coastguard Worker 13601*6a54128fSAndroid Build Coastguard Worker ; 13602*6a54128fSAndroid Build Coastguard Worker return 0; 13603*6a54128fSAndroid Build Coastguard Worker} 13604*6a54128fSAndroid Build Coastguard Worker_ACEOF 13605*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_cpp "$LINENO" 13606*6a54128fSAndroid Build Coastguard Workerthen : 13607*6a54128fSAndroid Build Coastguard Worker 13608*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13609*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13610*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13611*6a54128fSAndroid Build Coastguard Workeras_fn_error $? "Cannot find fuse2fs Linux headers. 13612*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 13613*6a54128fSAndroid Build Coastguard Workerfi 13614*6a54128fSAndroid Build Coastguard Workerrm -f conftest.err conftest.i conftest.$ac_ext 13615*6a54128fSAndroid Build Coastguard Worker 13616*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 13617*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for fuse_main in -losxfuse... " >&6; } 13618*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_osxfuse_fuse_main+y} 13619*6a54128fSAndroid Build Coastguard Workerthen : 13620*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 13621*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13622*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 13623*6a54128fSAndroid Build Coastguard WorkerLIBS="-losxfuse $LIBS" 13624*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 13625*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 13626*6a54128fSAndroid Build Coastguard Worker 13627*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 13628*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 13629*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 13630*6a54128fSAndroid Build Coastguard Workerchar fuse_main (); 13631*6a54128fSAndroid Build Coastguard Workerint 13632*6a54128fSAndroid Build Coastguard Workermain (void) 13633*6a54128fSAndroid Build Coastguard Worker{ 13634*6a54128fSAndroid Build Coastguard Workerreturn fuse_main (); 13635*6a54128fSAndroid Build Coastguard Worker ; 13636*6a54128fSAndroid Build Coastguard Worker return 0; 13637*6a54128fSAndroid Build Coastguard Worker} 13638*6a54128fSAndroid Build Coastguard Worker_ACEOF 13639*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 13640*6a54128fSAndroid Build Coastguard Workerthen : 13641*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_osxfuse_fuse_main=yes 13642*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13643*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_osxfuse_fuse_main=no 13644*6a54128fSAndroid Build Coastguard Workerfi 13645*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 13646*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 13647*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 13648*6a54128fSAndroid Build Coastguard Workerfi 13649*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 13650*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; } 13651*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_osxfuse_fuse_main" = xyes 13652*6a54128fSAndroid Build Coastguard Workerthen : 13653*6a54128fSAndroid Build Coastguard Worker FUSE_LIB=-losxfuse 13654*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13655*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 13656*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for fuse_main in -lfuse... " >&6; } 13657*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_fuse_fuse_main+y} 13658*6a54128fSAndroid Build Coastguard Workerthen : 13659*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 13660*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13661*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 13662*6a54128fSAndroid Build Coastguard WorkerLIBS="-lfuse $LIBS" 13663*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 13664*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 13665*6a54128fSAndroid Build Coastguard Worker 13666*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 13667*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 13668*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 13669*6a54128fSAndroid Build Coastguard Workerchar fuse_main (); 13670*6a54128fSAndroid Build Coastguard Workerint 13671*6a54128fSAndroid Build Coastguard Workermain (void) 13672*6a54128fSAndroid Build Coastguard Worker{ 13673*6a54128fSAndroid Build Coastguard Workerreturn fuse_main (); 13674*6a54128fSAndroid Build Coastguard Worker ; 13675*6a54128fSAndroid Build Coastguard Worker return 0; 13676*6a54128fSAndroid Build Coastguard Worker} 13677*6a54128fSAndroid Build Coastguard Worker_ACEOF 13678*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 13679*6a54128fSAndroid Build Coastguard Workerthen : 13680*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_fuse_fuse_main=yes 13681*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13682*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_fuse_fuse_main=no 13683*6a54128fSAndroid Build Coastguard Workerfi 13684*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 13685*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 13686*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 13687*6a54128fSAndroid Build Coastguard Workerfi 13688*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 13689*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; } 13690*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_fuse_fuse_main" = xyes 13691*6a54128fSAndroid Build Coastguard Workerthen : 13692*6a54128fSAndroid Build Coastguard Worker FUSE_LIB=-lfuse 13693*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13694*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13695*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13696*6a54128fSAndroid Build Coastguard Workeras_fn_error $? "Cannot find fuse library. 13697*6a54128fSAndroid Build Coastguard WorkerSee \`config.log' for more details" "$LINENO" 5; } 13698*6a54128fSAndroid Build Coastguard Workerfi 13699*6a54128fSAndroid Build Coastguard Worker 13700*6a54128fSAndroid Build Coastguard Workerfi 13701*6a54128fSAndroid Build Coastguard Worker 13702*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5 13703*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling fuse2fs" >&6; } 13704*6a54128fSAndroid Build Coastguard Workerfi 13705*6a54128fSAndroid Build Coastguard Worker 13706*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13707*6a54128fSAndroid Build Coastguard Worker for ac_header in pthread.h fuse.h 13708*6a54128fSAndroid Build Coastguard Workerdo : 13709*6a54128fSAndroid Build Coastguard Worker as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 13710*6a54128fSAndroid Build Coastguard Workerac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 13711*6a54128fSAndroid Build Coastguard Worker#define FUSE_USE_VERSION 29 13712*6a54128fSAndroid Build Coastguard Worker#ifdef __linux__ 13713*6a54128fSAndroid Build Coastguard Worker# include <linux/fs.h> 13714*6a54128fSAndroid Build Coastguard Worker# include <linux/falloc.h> 13715*6a54128fSAndroid Build Coastguard Worker# include <linux/xattr.h> 13716*6a54128fSAndroid Build Coastguard Worker#endif 13717*6a54128fSAndroid Build Coastguard Worker" 13718*6a54128fSAndroid Build Coastguard Workerif eval test \"x\$"$as_ac_Header"\" = x"yes" 13719*6a54128fSAndroid Build Coastguard Workerthen : 13720*6a54128fSAndroid Build Coastguard Worker cat >>confdefs.h <<_ACEOF 13721*6a54128fSAndroid Build Coastguard Worker#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 13722*6a54128fSAndroid Build Coastguard Worker_ACEOF 13723*6a54128fSAndroid Build Coastguard Worker 13724*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13725*6a54128fSAndroid Build Coastguard Worker FUSE_CMT="#" 13726*6a54128fSAndroid Build Coastguard Workerfi 13727*6a54128fSAndroid Build Coastguard Worker 13728*6a54128fSAndroid Build Coastguard Workerdone 13729*6a54128fSAndroid Build Coastguard Workerif test -z "$FUSE_CMT" 13730*6a54128fSAndroid Build Coastguard Workerthen 13731*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 13732*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for fuse_main in -losxfuse... " >&6; } 13733*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_osxfuse_fuse_main+y} 13734*6a54128fSAndroid Build Coastguard Workerthen : 13735*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 13736*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13737*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 13738*6a54128fSAndroid Build Coastguard WorkerLIBS="-losxfuse $LIBS" 13739*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 13740*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 13741*6a54128fSAndroid Build Coastguard Worker 13742*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 13743*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 13744*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 13745*6a54128fSAndroid Build Coastguard Workerchar fuse_main (); 13746*6a54128fSAndroid Build Coastguard Workerint 13747*6a54128fSAndroid Build Coastguard Workermain (void) 13748*6a54128fSAndroid Build Coastguard Worker{ 13749*6a54128fSAndroid Build Coastguard Workerreturn fuse_main (); 13750*6a54128fSAndroid Build Coastguard Worker ; 13751*6a54128fSAndroid Build Coastguard Worker return 0; 13752*6a54128fSAndroid Build Coastguard Worker} 13753*6a54128fSAndroid Build Coastguard Worker_ACEOF 13754*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 13755*6a54128fSAndroid Build Coastguard Workerthen : 13756*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_osxfuse_fuse_main=yes 13757*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13758*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_osxfuse_fuse_main=no 13759*6a54128fSAndroid Build Coastguard Workerfi 13760*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 13761*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 13762*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 13763*6a54128fSAndroid Build Coastguard Workerfi 13764*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 13765*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; } 13766*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_osxfuse_fuse_main" = xyes 13767*6a54128fSAndroid Build Coastguard Workerthen : 13768*6a54128fSAndroid Build Coastguard Worker FUSE_LIB=-losxfuse 13769*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13770*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 13771*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for fuse_main in -lfuse... " >&6; } 13772*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_fuse_fuse_main+y} 13773*6a54128fSAndroid Build Coastguard Workerthen : 13774*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 13775*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13776*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 13777*6a54128fSAndroid Build Coastguard WorkerLIBS="-lfuse $LIBS" 13778*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 13779*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 13780*6a54128fSAndroid Build Coastguard Worker 13781*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 13782*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 13783*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 13784*6a54128fSAndroid Build Coastguard Workerchar fuse_main (); 13785*6a54128fSAndroid Build Coastguard Workerint 13786*6a54128fSAndroid Build Coastguard Workermain (void) 13787*6a54128fSAndroid Build Coastguard Worker{ 13788*6a54128fSAndroid Build Coastguard Workerreturn fuse_main (); 13789*6a54128fSAndroid Build Coastguard Worker ; 13790*6a54128fSAndroid Build Coastguard Worker return 0; 13791*6a54128fSAndroid Build Coastguard Worker} 13792*6a54128fSAndroid Build Coastguard Worker_ACEOF 13793*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 13794*6a54128fSAndroid Build Coastguard Workerthen : 13795*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_fuse_fuse_main=yes 13796*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13797*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_fuse_fuse_main=no 13798*6a54128fSAndroid Build Coastguard Workerfi 13799*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 13800*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 13801*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 13802*6a54128fSAndroid Build Coastguard Workerfi 13803*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 13804*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; } 13805*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_fuse_fuse_main" = xyes 13806*6a54128fSAndroid Build Coastguard Workerthen : 13807*6a54128fSAndroid Build Coastguard Worker FUSE_LIB=-lfuse 13808*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13809*6a54128fSAndroid Build Coastguard Worker FUSE_CMT="#" 13810*6a54128fSAndroid Build Coastguard Workerfi 13811*6a54128fSAndroid Build Coastguard Worker 13812*6a54128fSAndroid Build Coastguard Workerfi 13813*6a54128fSAndroid Build Coastguard Worker 13814*6a54128fSAndroid Build Coastguard Workerfi 13815*6a54128fSAndroid Build Coastguard Workerif test -z "$FUSE_CMT" 13816*6a54128fSAndroid Build Coastguard Workerthen 13817*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5 13818*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Enabling fuse2fs by default." >&6; } 13819*6a54128fSAndroid Build Coastguard Workerfi 13820*6a54128fSAndroid Build Coastguard Worker 13821*6a54128fSAndroid Build Coastguard Workerfi 13822*6a54128fSAndroid Build Coastguard Worker 13823*6a54128fSAndroid Build Coastguard Worker 13824*6a54128fSAndroid Build Coastguard Worker 13825*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 13826*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for optreset... " >&6; } 13827*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_have_optreset+y} 13828*6a54128fSAndroid Build Coastguard Workerthen : 13829*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 13830*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13831*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13832*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 13833*6a54128fSAndroid Build Coastguard Worker#include <unistd.h> 13834*6a54128fSAndroid Build Coastguard Worker 13835*6a54128fSAndroid Build Coastguard Worker_ACEOF 13836*6a54128fSAndroid Build Coastguard Workerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13837*6a54128fSAndroid Build Coastguard Worker $EGREP "optreset" >/dev/null 2>&1 13838*6a54128fSAndroid Build Coastguard Workerthen : 13839*6a54128fSAndroid Build Coastguard Worker ac_cv_have_optreset=yes 13840*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13841*6a54128fSAndroid Build Coastguard Worker ac_cv_have_optreset=no 13842*6a54128fSAndroid Build Coastguard Workerfi 13843*6a54128fSAndroid Build Coastguard Workerrm -rf conftest* 13844*6a54128fSAndroid Build Coastguard Worker 13845*6a54128fSAndroid Build Coastguard Workerfi 13846*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 13847*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_have_optreset" >&6; } 13848*6a54128fSAndroid Build Coastguard Workerif test $ac_cv_have_optreset = yes; then 13849*6a54128fSAndroid Build Coastguard Worker 13850*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h 13851*6a54128fSAndroid Build Coastguard Worker 13852*6a54128fSAndroid Build Coastguard Workerfi 13853*6a54128fSAndroid Build Coastguard Worker 13854*6a54128fSAndroid Build Coastguard WorkerSEM_INIT_LIB='' 13855*6a54128fSAndroid Build Coastguard Workerecho GL_THREADS_API: ${gl_threads_api} 13856*6a54128fSAndroid Build Coastguard Workerif test "${gl_threads_api}" != none 13857*6a54128fSAndroid Build Coastguard Workerthen 13858*6a54128fSAndroid Build Coastguard Worker ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" 13859*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_func_sem_init" = xyes 13860*6a54128fSAndroid Build Coastguard Workerthen : 13861*6a54128fSAndroid Build Coastguard Worker 13862*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13863*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 13864*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for sem_init in -lpthread... " >&6; } 13865*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_pthread_sem_init+y} 13866*6a54128fSAndroid Build Coastguard Workerthen : 13867*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 13868*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13869*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 13870*6a54128fSAndroid Build Coastguard WorkerLIBS="-lpthread $LIBS" 13871*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 13872*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 13873*6a54128fSAndroid Build Coastguard Worker 13874*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 13875*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 13876*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 13877*6a54128fSAndroid Build Coastguard Workerchar sem_init (); 13878*6a54128fSAndroid Build Coastguard Workerint 13879*6a54128fSAndroid Build Coastguard Workermain (void) 13880*6a54128fSAndroid Build Coastguard Worker{ 13881*6a54128fSAndroid Build Coastguard Workerreturn sem_init (); 13882*6a54128fSAndroid Build Coastguard Worker ; 13883*6a54128fSAndroid Build Coastguard Worker return 0; 13884*6a54128fSAndroid Build Coastguard Worker} 13885*6a54128fSAndroid Build Coastguard Worker_ACEOF 13886*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 13887*6a54128fSAndroid Build Coastguard Workerthen : 13888*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_pthread_sem_init=yes 13889*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13890*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_pthread_sem_init=no 13891*6a54128fSAndroid Build Coastguard Workerfi 13892*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 13893*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 13894*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 13895*6a54128fSAndroid Build Coastguard Workerfi 13896*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 13897*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; } 13898*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_pthread_sem_init" = xyes 13899*6a54128fSAndroid Build Coastguard Workerthen : 13900*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h 13901*6a54128fSAndroid Build Coastguard Worker 13902*6a54128fSAndroid Build Coastguard Worker SEM_INIT_LIB=-lpthread 13903*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13904*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 13905*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for sem_init in -lrt... " >&6; } 13906*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_rt_sem_init+y} 13907*6a54128fSAndroid Build Coastguard Workerthen : 13908*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 13909*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13910*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 13911*6a54128fSAndroid Build Coastguard WorkerLIBS="-lrt $LIBS" 13912*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 13913*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 13914*6a54128fSAndroid Build Coastguard Worker 13915*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 13916*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 13917*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 13918*6a54128fSAndroid Build Coastguard Workerchar sem_init (); 13919*6a54128fSAndroid Build Coastguard Workerint 13920*6a54128fSAndroid Build Coastguard Workermain (void) 13921*6a54128fSAndroid Build Coastguard Worker{ 13922*6a54128fSAndroid Build Coastguard Workerreturn sem_init (); 13923*6a54128fSAndroid Build Coastguard Worker ; 13924*6a54128fSAndroid Build Coastguard Worker return 0; 13925*6a54128fSAndroid Build Coastguard Worker} 13926*6a54128fSAndroid Build Coastguard Worker_ACEOF 13927*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 13928*6a54128fSAndroid Build Coastguard Workerthen : 13929*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_rt_sem_init=yes 13930*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13931*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_rt_sem_init=no 13932*6a54128fSAndroid Build Coastguard Workerfi 13933*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 13934*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 13935*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 13936*6a54128fSAndroid Build Coastguard Workerfi 13937*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 13938*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; } 13939*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_rt_sem_init" = xyes 13940*6a54128fSAndroid Build Coastguard Workerthen : 13941*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h 13942*6a54128fSAndroid Build Coastguard Worker 13943*6a54128fSAndroid Build Coastguard Worker SEM_INIT_LIB=-lrt 13944*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13945*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 13946*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for sem_init in -lposix4... " >&6; } 13947*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_lib_posix4_sem_init+y} 13948*6a54128fSAndroid Build Coastguard Workerthen : 13949*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 13950*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13951*6a54128fSAndroid Build Coastguard Worker ac_check_lib_save_LIBS=$LIBS 13952*6a54128fSAndroid Build Coastguard WorkerLIBS="-lposix4 $LIBS" 13953*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 13954*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 13955*6a54128fSAndroid Build Coastguard Worker 13956*6a54128fSAndroid Build Coastguard Worker/* Override any GCC internal prototype to avoid an error. 13957*6a54128fSAndroid Build Coastguard Worker Use char because int might match the return type of a GCC 13958*6a54128fSAndroid Build Coastguard Worker builtin and then its argument prototype would still apply. */ 13959*6a54128fSAndroid Build Coastguard Workerchar sem_init (); 13960*6a54128fSAndroid Build Coastguard Workerint 13961*6a54128fSAndroid Build Coastguard Workermain (void) 13962*6a54128fSAndroid Build Coastguard Worker{ 13963*6a54128fSAndroid Build Coastguard Workerreturn sem_init (); 13964*6a54128fSAndroid Build Coastguard Worker ; 13965*6a54128fSAndroid Build Coastguard Worker return 0; 13966*6a54128fSAndroid Build Coastguard Worker} 13967*6a54128fSAndroid Build Coastguard Worker_ACEOF 13968*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 13969*6a54128fSAndroid Build Coastguard Workerthen : 13970*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_posix4_sem_init=yes 13971*6a54128fSAndroid Build Coastguard Workerelse $as_nop 13972*6a54128fSAndroid Build Coastguard Worker ac_cv_lib_posix4_sem_init=no 13973*6a54128fSAndroid Build Coastguard Workerfi 13974*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 13975*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 13976*6a54128fSAndroid Build Coastguard WorkerLIBS=$ac_check_lib_save_LIBS 13977*6a54128fSAndroid Build Coastguard Workerfi 13978*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 13979*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; } 13980*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_lib_posix4_sem_init" = xyes 13981*6a54128fSAndroid Build Coastguard Workerthen : 13982*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h 13983*6a54128fSAndroid Build Coastguard Worker 13984*6a54128fSAndroid Build Coastguard Worker SEM_INIT_LIB=-lposix4 13985*6a54128fSAndroid Build Coastguard Workerfi 13986*6a54128fSAndroid Build Coastguard Worker 13987*6a54128fSAndroid Build Coastguard Workerfi 13988*6a54128fSAndroid Build Coastguard Worker 13989*6a54128fSAndroid Build Coastguard Workerfi 13990*6a54128fSAndroid Build Coastguard Worker 13991*6a54128fSAndroid Build Coastguard Workerfi 13992*6a54128fSAndroid Build Coastguard Workerfi 13993*6a54128fSAndroid Build Coastguard Worker 13994*6a54128fSAndroid Build Coastguard Workerif test "$ac_cv_func_qsort_r" != no 13995*6a54128fSAndroid Build Coastguard Workerthen : 13996*6a54128fSAndroid Build Coastguard Worker 13997*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5 13998*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether qsort_r is GNU version... " >&6; } 13999*6a54128fSAndroid Build Coastguard Workerif test ${e2_cv_gnu_qsort_r+y} 14000*6a54128fSAndroid Build Coastguard Workerthen : 14001*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 14002*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14003*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14004*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14005*6a54128fSAndroid Build Coastguard Worker 14006*6a54128fSAndroid Build Coastguard Worker#include <stdlib.h> 14007*6a54128fSAndroid Build Coastguard Workervoid (qsort_r)(void *base, size_t nmemb, size_t size, 14008*6a54128fSAndroid Build Coastguard Worker int (*compar)(const void *, const void *, void *), 14009*6a54128fSAndroid Build Coastguard Worker void *arg); 14010*6a54128fSAndroid Build Coastguard Worker 14011*6a54128fSAndroid Build Coastguard Workerint 14012*6a54128fSAndroid Build Coastguard Workermain (void) 14013*6a54128fSAndroid Build Coastguard Worker{ 14014*6a54128fSAndroid Build Coastguard Worker 14015*6a54128fSAndroid Build Coastguard Worker ; 14016*6a54128fSAndroid Build Coastguard Worker return 0; 14017*6a54128fSAndroid Build Coastguard Worker} 14018*6a54128fSAndroid Build Coastguard Worker_ACEOF 14019*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 14020*6a54128fSAndroid Build Coastguard Workerthen : 14021*6a54128fSAndroid Build Coastguard Worker e2_cv_gnu_qsort_r=yes 14022*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14023*6a54128fSAndroid Build Coastguard Worker e2_cv_gnu_qsort_r=no 14024*6a54128fSAndroid Build Coastguard Workerfi 14025*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14026*6a54128fSAndroid Build Coastguard Worker 14027*6a54128fSAndroid Build Coastguard Workerfi 14028*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5 14029*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$e2_cv_gnu_qsort_r" >&6; } 14030*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5 14031*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether qsort_r is BSD version... " >&6; } 14032*6a54128fSAndroid Build Coastguard Workerif test ${e2_cv_bsd_qsort_r+y} 14033*6a54128fSAndroid Build Coastguard Workerthen : 14034*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 14035*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14036*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14037*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14038*6a54128fSAndroid Build Coastguard Worker 14039*6a54128fSAndroid Build Coastguard Worker#include <stdlib.h> 14040*6a54128fSAndroid Build Coastguard Workervoid (qsort_r)(void *base, size_t nmemb, size_t size, 14041*6a54128fSAndroid Build Coastguard Worker void *arg, int (*compar)(void *, const void *, const void *)); 14042*6a54128fSAndroid Build Coastguard Worker 14043*6a54128fSAndroid Build Coastguard Workerint 14044*6a54128fSAndroid Build Coastguard Workermain (void) 14045*6a54128fSAndroid Build Coastguard Worker{ 14046*6a54128fSAndroid Build Coastguard Worker 14047*6a54128fSAndroid Build Coastguard Worker ; 14048*6a54128fSAndroid Build Coastguard Worker return 0; 14049*6a54128fSAndroid Build Coastguard Worker} 14050*6a54128fSAndroid Build Coastguard Worker_ACEOF 14051*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 14052*6a54128fSAndroid Build Coastguard Workerthen : 14053*6a54128fSAndroid Build Coastguard Worker e2_cv_bsd_qsort_r=yes 14054*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14055*6a54128fSAndroid Build Coastguard Worker e2_cv_bsd_qsort_r=no 14056*6a54128fSAndroid Build Coastguard Workerfi 14057*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14058*6a54128fSAndroid Build Coastguard Worker 14059*6a54128fSAndroid Build Coastguard Workerfi 14060*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5 14061*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$e2_cv_bsd_qsort_r" >&6; } 14062*6a54128fSAndroid Build Coastguard Worker case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #( 14063*6a54128fSAndroid Build Coastguard Worker yes:no) : 14064*6a54128fSAndroid Build Coastguard Worker 14065*6a54128fSAndroid Build Coastguard Worker 14066*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h 14067*6a54128fSAndroid Build Coastguard Worker 14068*6a54128fSAndroid Build Coastguard Worker ;; #( 14069*6a54128fSAndroid Build Coastguard Worker no:yes) : 14070*6a54128fSAndroid Build Coastguard Worker 14071*6a54128fSAndroid Build Coastguard Worker 14072*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h 14073*6a54128fSAndroid Build Coastguard Worker 14074*6a54128fSAndroid Build Coastguard Worker ;; #( 14075*6a54128fSAndroid Build Coastguard Worker *) : 14076*6a54128fSAndroid Build Coastguard Worker ;; 14077*6a54128fSAndroid Build Coastguard Workeresac 14078*6a54128fSAndroid Build Coastguard Worker 14079*6a54128fSAndroid Build Coastguard Workerfi 14080*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 14081*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for unified diff option... " >&6; } 14082*6a54128fSAndroid Build Coastguard Workerif diff -u $0 $0 > /dev/null 2>&1 ; then 14083*6a54128fSAndroid Build Coastguard Worker UNI_DIFF_OPTS=-u 14084*6a54128fSAndroid Build Coastguard Workerelse 14085*6a54128fSAndroid Build Coastguard Worker UNI_DIFF_OPTS=-c 14086*6a54128fSAndroid Build Coastguard Workerfi 14087*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 14088*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$UNI_DIFF_OPTS" >&6; } 14089*6a54128fSAndroid Build Coastguard Worker 14090*6a54128fSAndroid Build Coastguard Workercase "$host_os" in 14091*6a54128fSAndroid Build Coastguard Workerlinux*) 14092*6a54128fSAndroid Build Coastguard Worker 14093*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h 14094*6a54128fSAndroid Build Coastguard Worker 14095*6a54128fSAndroid Build Coastguard Worker ;; 14096*6a54128fSAndroid Build Coastguard Workeresac 14097*6a54128fSAndroid Build Coastguard Worker 14098*6a54128fSAndroid Build Coastguard Worker printf %s "checking for mount 'nosuid' option... " 14099*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14100*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14101*6a54128fSAndroid Build Coastguard Worker#include <sys/mount.h> 14102*6a54128fSAndroid Build Coastguard Workerint 14103*6a54128fSAndroid Build Coastguard Workermain (void) 14104*6a54128fSAndroid Build Coastguard Worker{ 14105*6a54128fSAndroid Build Coastguard Workervoid *temp = (void *)(MS_NOSUID); (void) temp; 14106*6a54128fSAndroid Build Coastguard Worker ; 14107*6a54128fSAndroid Build Coastguard Worker return 0; 14108*6a54128fSAndroid Build Coastguard Worker} 14109*6a54128fSAndroid Build Coastguard Worker_ACEOF 14110*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 14111*6a54128fSAndroid Build Coastguard Workerthen : 14112*6a54128fSAndroid Build Coastguard Worker 14113*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h 14114*6a54128fSAndroid Build Coastguard Worker 14115*6a54128fSAndroid Build Coastguard Worker ac_cv_mount_nosuid=yes 14116*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "yes" 14117*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14118*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14119*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14120*6a54128fSAndroid Build Coastguard Worker#include <sys/mount.h> 14121*6a54128fSAndroid Build Coastguard Workerint 14122*6a54128fSAndroid Build Coastguard Workermain (void) 14123*6a54128fSAndroid Build Coastguard Worker{ 14124*6a54128fSAndroid Build Coastguard Workervoid *temp = (void *)(MNT_NOSUID); (void) temp; 14125*6a54128fSAndroid Build Coastguard Worker ; 14126*6a54128fSAndroid Build Coastguard Worker return 0; 14127*6a54128fSAndroid Build Coastguard Worker} 14128*6a54128fSAndroid Build Coastguard Worker_ACEOF 14129*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 14130*6a54128fSAndroid Build Coastguard Workerthen : 14131*6a54128fSAndroid Build Coastguard Worker 14132*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h 14133*6a54128fSAndroid Build Coastguard Worker 14134*6a54128fSAndroid Build Coastguard Worker ac_cv_mount_nosuid=yes 14135*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "yes" 14136*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14137*6a54128fSAndroid Build Coastguard Worker ac_cv_mount_nosuid=no 14138*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "no" 14139*6a54128fSAndroid Build Coastguard Worker 14140*6a54128fSAndroid Build Coastguard Workerfi 14141*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14142*6a54128fSAndroid Build Coastguard Worker 14143*6a54128fSAndroid Build Coastguard Workerfi 14144*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14145*6a54128fSAndroid Build Coastguard Worker 14146*6a54128fSAndroid Build Coastguard Worker 14147*6a54128fSAndroid Build Coastguard Worker printf %s "checking for mount 'nodev' option... " 14148*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14149*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14150*6a54128fSAndroid Build Coastguard Worker#include <sys/mount.h> 14151*6a54128fSAndroid Build Coastguard Workerint 14152*6a54128fSAndroid Build Coastguard Workermain (void) 14153*6a54128fSAndroid Build Coastguard Worker{ 14154*6a54128fSAndroid Build Coastguard Workervoid *temp = (void *)(MS_NODEV); (void) temp; 14155*6a54128fSAndroid Build Coastguard Worker ; 14156*6a54128fSAndroid Build Coastguard Worker return 0; 14157*6a54128fSAndroid Build Coastguard Worker} 14158*6a54128fSAndroid Build Coastguard Worker_ACEOF 14159*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 14160*6a54128fSAndroid Build Coastguard Workerthen : 14161*6a54128fSAndroid Build Coastguard Worker 14162*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h 14163*6a54128fSAndroid Build Coastguard Worker 14164*6a54128fSAndroid Build Coastguard Worker ac_cv_mount_nodev=yes 14165*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "yes" 14166*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14167*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14168*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14169*6a54128fSAndroid Build Coastguard Worker#include <sys/mount.h> 14170*6a54128fSAndroid Build Coastguard Workerint 14171*6a54128fSAndroid Build Coastguard Workermain (void) 14172*6a54128fSAndroid Build Coastguard Worker{ 14173*6a54128fSAndroid Build Coastguard Workervoid *temp = (void *)(MNT_NODEV); (void) temp; 14174*6a54128fSAndroid Build Coastguard Worker ; 14175*6a54128fSAndroid Build Coastguard Worker return 0; 14176*6a54128fSAndroid Build Coastguard Worker} 14177*6a54128fSAndroid Build Coastguard Worker_ACEOF 14178*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 14179*6a54128fSAndroid Build Coastguard Workerthen : 14180*6a54128fSAndroid Build Coastguard Worker 14181*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h 14182*6a54128fSAndroid Build Coastguard Worker 14183*6a54128fSAndroid Build Coastguard Worker ac_cv_mount_nodev=yes 14184*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "yes" 14185*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14186*6a54128fSAndroid Build Coastguard Worker ac_cv_mount_nodev=no 14187*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "no" 14188*6a54128fSAndroid Build Coastguard Worker 14189*6a54128fSAndroid Build Coastguard Workerfi 14190*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14191*6a54128fSAndroid Build Coastguard Worker 14192*6a54128fSAndroid Build Coastguard Workerfi 14193*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14194*6a54128fSAndroid Build Coastguard Worker 14195*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-lto was given. 14196*6a54128fSAndroid Build Coastguard Workerif test ${enable_lto+y} 14197*6a54128fSAndroid Build Coastguard Workerthen : 14198*6a54128fSAndroid Build Coastguard Worker enableval=$enable_lto; 14199*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14200*6a54128fSAndroid Build Coastguard Worker enable_lto=no 14201*6a54128fSAndroid Build Coastguard Workerfi 14202*6a54128fSAndroid Build Coastguard Worker 14203*6a54128fSAndroid Build Coastguard Workerif test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then 14204*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5 14205*6a54128fSAndroid Build Coastguard Workerprintf %s "checking if C compiler supports LTO... " >&6; } 14206*6a54128fSAndroid Build Coastguard Worker OLD_CFLAGS="$CFLAGS" 14207*6a54128fSAndroid Build Coastguard Worker OLD_LDFLAGS="$LDFLAGS" 14208*6a54128fSAndroid Build Coastguard Worker LTO_FLAGS="-g -flto -ffat-lto-objects" 14209*6a54128fSAndroid Build Coastguard Worker CFLAGS="$CFLAGS $LTO_FLAGS" 14210*6a54128fSAndroid Build Coastguard Worker LDFLAGS="$LDFLAGS $LTO_FLAGS" 14211*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14212*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14213*6a54128fSAndroid Build Coastguard Worker 14214*6a54128fSAndroid Build Coastguard Workerint 14215*6a54128fSAndroid Build Coastguard Workermain (void) 14216*6a54128fSAndroid Build Coastguard Worker{ 14217*6a54128fSAndroid Build Coastguard Worker 14218*6a54128fSAndroid Build Coastguard Worker ; 14219*6a54128fSAndroid Build Coastguard Worker return 0; 14220*6a54128fSAndroid Build Coastguard Worker} 14221*6a54128fSAndroid Build Coastguard Worker_ACEOF 14222*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 14223*6a54128fSAndroid Build Coastguard Workerthen : 14224*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14225*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "yes" >&6; } 14226*6a54128fSAndroid Build Coastguard Worker lto_cflags=$LTO_FLAGS 14227*6a54128fSAndroid Build Coastguard Worker lto_ldflags=$LTO_FLAGS 14228*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "gcc-ar", so it can be a program name with args. 14229*6a54128fSAndroid Build Coastguard Workerset dummy gcc-ar; ac_word=$2 14230*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14231*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 14232*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_gcc_ar+y} 14233*6a54128fSAndroid Build Coastguard Workerthen : 14234*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 14235*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14236*6a54128fSAndroid Build Coastguard Worker case $gcc_ar in 14237*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 14238*6a54128fSAndroid Build Coastguard Worker ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path. 14239*6a54128fSAndroid Build Coastguard Worker ;; 14240*6a54128fSAndroid Build Coastguard Worker *) 14241*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14242*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 14243*6a54128fSAndroid Build Coastguard Workerdo 14244*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 14245*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 14246*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 14247*6a54128fSAndroid Build Coastguard Worker */) ;; 14248*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 14249*6a54128fSAndroid Build Coastguard Worker esac 14250*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 14251*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14252*6a54128fSAndroid Build Coastguard Worker ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext" 14253*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14254*6a54128fSAndroid Build Coastguard Worker break 2 14255*6a54128fSAndroid Build Coastguard Worker fi 14256*6a54128fSAndroid Build Coastguard Workerdone 14257*6a54128fSAndroid Build Coastguard Worker done 14258*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 14259*6a54128fSAndroid Build Coastguard Worker 14260*6a54128fSAndroid Build Coastguard Worker ;; 14261*6a54128fSAndroid Build Coastguard Workeresac 14262*6a54128fSAndroid Build Coastguard Workerfi 14263*6a54128fSAndroid Build Coastguard Workergcc_ar=$ac_cv_path_gcc_ar 14264*6a54128fSAndroid Build Coastguard Workerif test -n "$gcc_ar"; then 14265*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5 14266*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$gcc_ar" >&6; } 14267*6a54128fSAndroid Build Coastguard Workerelse 14268*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14269*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 14270*6a54128fSAndroid Build Coastguard Workerfi 14271*6a54128fSAndroid Build Coastguard Worker 14272*6a54128fSAndroid Build Coastguard Worker 14273*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "gcc-ranlib", so it can be a program name with args. 14274*6a54128fSAndroid Build Coastguard Workerset dummy gcc-ranlib; ac_word=$2 14275*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14276*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 14277*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_path_gcc_ranlib+y} 14278*6a54128fSAndroid Build Coastguard Workerthen : 14279*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 14280*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14281*6a54128fSAndroid Build Coastguard Worker case $gcc_ranlib in 14282*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]*) 14283*6a54128fSAndroid Build Coastguard Worker ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path. 14284*6a54128fSAndroid Build Coastguard Worker ;; 14285*6a54128fSAndroid Build Coastguard Worker *) 14286*6a54128fSAndroid Build Coastguard Worker as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14287*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 14288*6a54128fSAndroid Build Coastguard Workerdo 14289*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 14290*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 14291*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 14292*6a54128fSAndroid Build Coastguard Worker */) ;; 14293*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 14294*6a54128fSAndroid Build Coastguard Worker esac 14295*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 14296*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14297*6a54128fSAndroid Build Coastguard Worker ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext" 14298*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14299*6a54128fSAndroid Build Coastguard Worker break 2 14300*6a54128fSAndroid Build Coastguard Worker fi 14301*6a54128fSAndroid Build Coastguard Workerdone 14302*6a54128fSAndroid Build Coastguard Worker done 14303*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 14304*6a54128fSAndroid Build Coastguard Worker 14305*6a54128fSAndroid Build Coastguard Worker ;; 14306*6a54128fSAndroid Build Coastguard Workeresac 14307*6a54128fSAndroid Build Coastguard Workerfi 14308*6a54128fSAndroid Build Coastguard Workergcc_ranlib=$ac_cv_path_gcc_ranlib 14309*6a54128fSAndroid Build Coastguard Workerif test -n "$gcc_ranlib"; then 14310*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5 14311*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$gcc_ranlib" >&6; } 14312*6a54128fSAndroid Build Coastguard Workerelse 14313*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14314*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 14315*6a54128fSAndroid Build Coastguard Workerfi 14316*6a54128fSAndroid Build Coastguard Worker 14317*6a54128fSAndroid Build Coastguard Worker 14318*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14319*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14320*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 14321*6a54128fSAndroid Build Coastguard Workerfi 14322*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 14323*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 14324*6a54128fSAndroid Build Coastguard Worker if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then 14325*6a54128fSAndroid Build Coastguard Worker have_lto=yes 14326*6a54128fSAndroid Build Coastguard Worker AR="${gcc_ar}" 14327*6a54128fSAndroid Build Coastguard Worker RANLIB="${gcc_ranlib}" 14328*6a54128fSAndroid Build Coastguard Worker fi 14329*6a54128fSAndroid Build Coastguard Worker CFLAGS="${OLD_CFLAGS}" 14330*6a54128fSAndroid Build Coastguard Worker LDFLAGS="${OLD_LDFLAGS}" 14331*6a54128fSAndroid Build Coastguard Worker 14332*6a54128fSAndroid Build Coastguard Worker 14333*6a54128fSAndroid Build Coastguard Worker 14334*6a54128fSAndroid Build Coastguard Workerfi 14335*6a54128fSAndroid Build Coastguard Workerif test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then 14336*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "LTO not supported by compiler." "$LINENO" 5 14337*6a54128fSAndroid Build Coastguard Workerfi 14338*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-ubsan was given. 14339*6a54128fSAndroid Build Coastguard Workerif test ${enable_ubsan+y} 14340*6a54128fSAndroid Build Coastguard Workerthen : 14341*6a54128fSAndroid Build Coastguard Worker enableval=$enable_ubsan; 14342*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14343*6a54128fSAndroid Build Coastguard Worker enable_ubsan=no 14344*6a54128fSAndroid Build Coastguard Workerfi 14345*6a54128fSAndroid Build Coastguard Worker 14346*6a54128fSAndroid Build Coastguard Workerif test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then 14347*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5 14348*6a54128fSAndroid Build Coastguard Workerprintf %s "checking if C compiler supports UBSAN... " >&6; } 14349*6a54128fSAndroid Build Coastguard Worker OLD_CFLAGS="$CFLAGS" 14350*6a54128fSAndroid Build Coastguard Worker OLD_LDFLAGS="$LDFLAGS" 14351*6a54128fSAndroid Build Coastguard Worker UBSAN_FLAGS="-fsanitize=undefined" 14352*6a54128fSAndroid Build Coastguard Worker CFLAGS="$CFLAGS $UBSAN_FLAGS" 14353*6a54128fSAndroid Build Coastguard Worker LDFLAGS="$LDFLAGS $UBSAN_FLAGS" 14354*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14355*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14356*6a54128fSAndroid Build Coastguard Worker 14357*6a54128fSAndroid Build Coastguard Workerint 14358*6a54128fSAndroid Build Coastguard Workermain (void) 14359*6a54128fSAndroid Build Coastguard Worker{ 14360*6a54128fSAndroid Build Coastguard Worker 14361*6a54128fSAndroid Build Coastguard Worker ; 14362*6a54128fSAndroid Build Coastguard Worker return 0; 14363*6a54128fSAndroid Build Coastguard Worker} 14364*6a54128fSAndroid Build Coastguard Worker_ACEOF 14365*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 14366*6a54128fSAndroid Build Coastguard Workerthen : 14367*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14368*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "yes" >&6; } 14369*6a54128fSAndroid Build Coastguard Worker ubsan_cflags=$UBSAN_FLAGS 14370*6a54128fSAndroid Build Coastguard Worker ubsan_ldflags=$UBSAN_FLAGS 14371*6a54128fSAndroid Build Coastguard Worker have_ubsan=yes 14372*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14373*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14374*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 14375*6a54128fSAndroid Build Coastguard Workerfi 14376*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 14377*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 14378*6a54128fSAndroid Build Coastguard Worker CFLAGS="${OLD_CFLAGS}" 14379*6a54128fSAndroid Build Coastguard Worker LDFLAGS="${OLD_LDFLAGS}" 14380*6a54128fSAndroid Build Coastguard Worker 14381*6a54128fSAndroid Build Coastguard Worker 14382*6a54128fSAndroid Build Coastguard Worker 14383*6a54128fSAndroid Build Coastguard Workerfi 14384*6a54128fSAndroid Build Coastguard Workerif test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then 14385*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5 14386*6a54128fSAndroid Build Coastguard Workerfi 14387*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-addrsan was given. 14388*6a54128fSAndroid Build Coastguard Workerif test ${enable_addrsan+y} 14389*6a54128fSAndroid Build Coastguard Workerthen : 14390*6a54128fSAndroid Build Coastguard Worker enableval=$enable_addrsan; 14391*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14392*6a54128fSAndroid Build Coastguard Worker enable_addrsan=no 14393*6a54128fSAndroid Build Coastguard Workerfi 14394*6a54128fSAndroid Build Coastguard Worker 14395*6a54128fSAndroid Build Coastguard Workerif test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then 14396*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5 14397*6a54128fSAndroid Build Coastguard Workerprintf %s "checking if C compiler supports ADDRSAN... " >&6; } 14398*6a54128fSAndroid Build Coastguard Worker OLD_CFLAGS="$CFLAGS" 14399*6a54128fSAndroid Build Coastguard Worker OLD_LDFLAGS="$LDFLAGS" 14400*6a54128fSAndroid Build Coastguard Worker ADDRSAN_FLAGS="-fsanitize=address" 14401*6a54128fSAndroid Build Coastguard Worker CFLAGS="$CFLAGS $ADDRSAN_FLAGS" 14402*6a54128fSAndroid Build Coastguard Worker LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS" 14403*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14404*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14405*6a54128fSAndroid Build Coastguard Worker 14406*6a54128fSAndroid Build Coastguard Workerint 14407*6a54128fSAndroid Build Coastguard Workermain (void) 14408*6a54128fSAndroid Build Coastguard Worker{ 14409*6a54128fSAndroid Build Coastguard Worker 14410*6a54128fSAndroid Build Coastguard Worker ; 14411*6a54128fSAndroid Build Coastguard Worker return 0; 14412*6a54128fSAndroid Build Coastguard Worker} 14413*6a54128fSAndroid Build Coastguard Worker_ACEOF 14414*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 14415*6a54128fSAndroid Build Coastguard Workerthen : 14416*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14417*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "yes" >&6; } 14418*6a54128fSAndroid Build Coastguard Worker addrsan_cflags=$ADDRSAN_FLAGS 14419*6a54128fSAndroid Build Coastguard Worker addrsan_ldflags=$ADDRSAN_FLAGS 14420*6a54128fSAndroid Build Coastguard Worker have_addrsan=yes 14421*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14422*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14423*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 14424*6a54128fSAndroid Build Coastguard Workerfi 14425*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 14426*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 14427*6a54128fSAndroid Build Coastguard Worker CFLAGS="${OLD_CFLAGS}" 14428*6a54128fSAndroid Build Coastguard Worker LDFLAGS="${OLD_LDFLAGS}" 14429*6a54128fSAndroid Build Coastguard Worker 14430*6a54128fSAndroid Build Coastguard Worker 14431*6a54128fSAndroid Build Coastguard Worker 14432*6a54128fSAndroid Build Coastguard Workerfi 14433*6a54128fSAndroid Build Coastguard Workerif test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then 14434*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5 14435*6a54128fSAndroid Build Coastguard Workerfi 14436*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-threadsan was given. 14437*6a54128fSAndroid Build Coastguard Workerif test ${enable_threadsan+y} 14438*6a54128fSAndroid Build Coastguard Workerthen : 14439*6a54128fSAndroid Build Coastguard Worker enableval=$enable_threadsan; 14440*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14441*6a54128fSAndroid Build Coastguard Worker enable_threadsan=no 14442*6a54128fSAndroid Build Coastguard Workerfi 14443*6a54128fSAndroid Build Coastguard Worker 14444*6a54128fSAndroid Build Coastguard Workerif test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then 14445*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5 14446*6a54128fSAndroid Build Coastguard Workerprintf %s "checking if C compiler supports THREADSAN... " >&6; } 14447*6a54128fSAndroid Build Coastguard Worker OLD_CFLAGS="$CFLAGS" 14448*6a54128fSAndroid Build Coastguard Worker OLD_LDFLAGS="$LDFLAGS" 14449*6a54128fSAndroid Build Coastguard Worker THREADSAN_FLAGS="-fsanitize=thread" 14450*6a54128fSAndroid Build Coastguard Worker CFLAGS="$CFLAGS $THREADSAN_FLAGS" 14451*6a54128fSAndroid Build Coastguard Worker LDFLAGS="$LDFLAGS $THREADSAN_FLAGS" 14452*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14453*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14454*6a54128fSAndroid Build Coastguard Worker 14455*6a54128fSAndroid Build Coastguard Workerint 14456*6a54128fSAndroid Build Coastguard Workermain (void) 14457*6a54128fSAndroid Build Coastguard Worker{ 14458*6a54128fSAndroid Build Coastguard Worker 14459*6a54128fSAndroid Build Coastguard Worker ; 14460*6a54128fSAndroid Build Coastguard Worker return 0; 14461*6a54128fSAndroid Build Coastguard Worker} 14462*6a54128fSAndroid Build Coastguard Worker_ACEOF 14463*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 14464*6a54128fSAndroid Build Coastguard Workerthen : 14465*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14466*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "yes" >&6; } 14467*6a54128fSAndroid Build Coastguard Worker threadsan_cflags=$THREADSAN_FLAGS 14468*6a54128fSAndroid Build Coastguard Worker threadsan_ldflags=$THREADSAN_FLAGS 14469*6a54128fSAndroid Build Coastguard Worker have_threadsan=yes 14470*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14471*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14472*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 14473*6a54128fSAndroid Build Coastguard Workerfi 14474*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 14475*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 14476*6a54128fSAndroid Build Coastguard Worker CFLAGS="${OLD_CFLAGS}" 14477*6a54128fSAndroid Build Coastguard Worker LDFLAGS="${OLD_LDFLAGS}" 14478*6a54128fSAndroid Build Coastguard Worker 14479*6a54128fSAndroid Build Coastguard Worker 14480*6a54128fSAndroid Build Coastguard Worker 14481*6a54128fSAndroid Build Coastguard Workerfi 14482*6a54128fSAndroid Build Coastguard Workerif test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then 14483*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5 14484*6a54128fSAndroid Build Coastguard Workerfi 14485*6a54128fSAndroid Build Coastguard Workerif test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then 14486*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5 14487*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;} 14488*6a54128fSAndroid Build Coastguard Workerfi 14489*6a54128fSAndroid Build Coastguard WorkerFUZZING_CMT="#" 14490*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-fuzzing was given. 14491*6a54128fSAndroid Build Coastguard Workerif test ${enable_fuzzing+y} 14492*6a54128fSAndroid Build Coastguard Workerthen : 14493*6a54128fSAndroid Build Coastguard Worker enableval=$enable_fuzzing; 14494*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14495*6a54128fSAndroid Build Coastguard Worker enable_fuzzing=no 14496*6a54128fSAndroid Build Coastguard Workerfi 14497*6a54128fSAndroid Build Coastguard Worker 14498*6a54128fSAndroid Build Coastguard Workerif test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then 14499*6a54128fSAndroid Build Coastguard Worker 14500*6a54128fSAndroid Build Coastguard Worker 14501*6a54128fSAndroid Build Coastguard Worker 14502*6a54128fSAndroid Build Coastguard Worker 14503*6a54128fSAndroid Build Coastguard Worker 14504*6a54128fSAndroid Build Coastguard Worker 14505*6a54128fSAndroid Build Coastguard Workerac_ext=cpp 14506*6a54128fSAndroid Build Coastguard Workerac_cpp='$CXXCPP $CPPFLAGS' 14507*6a54128fSAndroid Build Coastguard Workerac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14508*6a54128fSAndroid Build Coastguard Workerac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14509*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14510*6a54128fSAndroid Build Coastguard Workerif test -z "$CXX"; then 14511*6a54128fSAndroid Build Coastguard Worker if test -n "$CCC"; then 14512*6a54128fSAndroid Build Coastguard Worker CXX=$CCC 14513*6a54128fSAndroid Build Coastguard Worker else 14514*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_tool_prefix"; then 14515*6a54128fSAndroid Build Coastguard Worker for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 14516*6a54128fSAndroid Build Coastguard Worker do 14517*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 14518*6a54128fSAndroid Build Coastguard Workerset dummy $ac_tool_prefix$ac_prog; ac_word=$2 14519*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14520*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 14521*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_CXX+y} 14522*6a54128fSAndroid Build Coastguard Workerthen : 14523*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 14524*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14525*6a54128fSAndroid Build Coastguard Worker if test -n "$CXX"; then 14526*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CXX="$CXX" # Let the user override the test. 14527*6a54128fSAndroid Build Coastguard Workerelse 14528*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14529*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 14530*6a54128fSAndroid Build Coastguard Workerdo 14531*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 14532*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 14533*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 14534*6a54128fSAndroid Build Coastguard Worker */) ;; 14535*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 14536*6a54128fSAndroid Build Coastguard Worker esac 14537*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 14538*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14539*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 14540*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14541*6a54128fSAndroid Build Coastguard Worker break 2 14542*6a54128fSAndroid Build Coastguard Worker fi 14543*6a54128fSAndroid Build Coastguard Workerdone 14544*6a54128fSAndroid Build Coastguard Worker done 14545*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 14546*6a54128fSAndroid Build Coastguard Worker 14547*6a54128fSAndroid Build Coastguard Workerfi 14548*6a54128fSAndroid Build Coastguard Workerfi 14549*6a54128fSAndroid Build Coastguard WorkerCXX=$ac_cv_prog_CXX 14550*6a54128fSAndroid Build Coastguard Workerif test -n "$CXX"; then 14551*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 14552*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$CXX" >&6; } 14553*6a54128fSAndroid Build Coastguard Workerelse 14554*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14555*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 14556*6a54128fSAndroid Build Coastguard Workerfi 14557*6a54128fSAndroid Build Coastguard Worker 14558*6a54128fSAndroid Build Coastguard Worker 14559*6a54128fSAndroid Build Coastguard Worker test -n "$CXX" && break 14560*6a54128fSAndroid Build Coastguard Worker done 14561*6a54128fSAndroid Build Coastguard Workerfi 14562*6a54128fSAndroid Build Coastguard Workerif test -z "$CXX"; then 14563*6a54128fSAndroid Build Coastguard Worker ac_ct_CXX=$CXX 14564*6a54128fSAndroid Build Coastguard Worker for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 14565*6a54128fSAndroid Build Coastguard Workerdo 14566*6a54128fSAndroid Build Coastguard Worker # Extract the first word of "$ac_prog", so it can be a program name with args. 14567*6a54128fSAndroid Build Coastguard Workerset dummy $ac_prog; ac_word=$2 14568*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14569*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $ac_word... " >&6; } 14570*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_ac_ct_CXX+y} 14571*6a54128fSAndroid Build Coastguard Workerthen : 14572*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 14573*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14574*6a54128fSAndroid Build Coastguard Worker if test -n "$ac_ct_CXX"; then 14575*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 14576*6a54128fSAndroid Build Coastguard Workerelse 14577*6a54128fSAndroid Build Coastguard Workeras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14578*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 14579*6a54128fSAndroid Build Coastguard Workerdo 14580*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 14581*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 14582*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 14583*6a54128fSAndroid Build Coastguard Worker */) ;; 14584*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 14585*6a54128fSAndroid Build Coastguard Worker esac 14586*6a54128fSAndroid Build Coastguard Worker for ac_exec_ext in '' $ac_executable_extensions; do 14587*6a54128fSAndroid Build Coastguard Worker if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14588*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_ac_ct_CXX="$ac_prog" 14589*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14590*6a54128fSAndroid Build Coastguard Worker break 2 14591*6a54128fSAndroid Build Coastguard Worker fi 14592*6a54128fSAndroid Build Coastguard Workerdone 14593*6a54128fSAndroid Build Coastguard Worker done 14594*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 14595*6a54128fSAndroid Build Coastguard Worker 14596*6a54128fSAndroid Build Coastguard Workerfi 14597*6a54128fSAndroid Build Coastguard Workerfi 14598*6a54128fSAndroid Build Coastguard Workerac_ct_CXX=$ac_cv_prog_ac_ct_CXX 14599*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_ct_CXX"; then 14600*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 14601*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_ct_CXX" >&6; } 14602*6a54128fSAndroid Build Coastguard Workerelse 14603*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14604*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 14605*6a54128fSAndroid Build Coastguard Workerfi 14606*6a54128fSAndroid Build Coastguard Worker 14607*6a54128fSAndroid Build Coastguard Worker 14608*6a54128fSAndroid Build Coastguard Worker test -n "$ac_ct_CXX" && break 14609*6a54128fSAndroid Build Coastguard Workerdone 14610*6a54128fSAndroid Build Coastguard Worker 14611*6a54128fSAndroid Build Coastguard Worker if test "x$ac_ct_CXX" = x; then 14612*6a54128fSAndroid Build Coastguard Worker CXX="g++" 14613*6a54128fSAndroid Build Coastguard Worker else 14614*6a54128fSAndroid Build Coastguard Worker case $cross_compiling:$ac_tool_warned in 14615*6a54128fSAndroid Build Coastguard Workeryes:) 14616*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14617*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14618*6a54128fSAndroid Build Coastguard Workerac_tool_warned=yes ;; 14619*6a54128fSAndroid Build Coastguard Workeresac 14620*6a54128fSAndroid Build Coastguard Worker CXX=$ac_ct_CXX 14621*6a54128fSAndroid Build Coastguard Worker fi 14622*6a54128fSAndroid Build Coastguard Workerfi 14623*6a54128fSAndroid Build Coastguard Worker 14624*6a54128fSAndroid Build Coastguard Worker fi 14625*6a54128fSAndroid Build Coastguard Workerfi 14626*6a54128fSAndroid Build Coastguard Worker# Provide some information about the compiler. 14627*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 14628*6a54128fSAndroid Build Coastguard Workerset X $ac_compile 14629*6a54128fSAndroid Build Coastguard Workerac_compiler=$2 14630*6a54128fSAndroid Build Coastguard Workerfor ac_option in --version -v -V -qversion; do 14631*6a54128fSAndroid Build Coastguard Worker { { ac_try="$ac_compiler $ac_option >&5" 14632*6a54128fSAndroid Build Coastguard Workercase "(($ac_try" in 14633*6a54128fSAndroid Build Coastguard Worker *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14634*6a54128fSAndroid Build Coastguard Worker *) ac_try_echo=$ac_try;; 14635*6a54128fSAndroid Build Coastguard Workeresac 14636*6a54128fSAndroid Build Coastguard Workereval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 14637*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_try_echo"; } >&5 14638*6a54128fSAndroid Build Coastguard Worker (eval "$ac_compiler $ac_option >&5") 2>conftest.err 14639*6a54128fSAndroid Build Coastguard Worker ac_status=$? 14640*6a54128fSAndroid Build Coastguard Worker if test -s conftest.err; then 14641*6a54128fSAndroid Build Coastguard Worker sed '10a\ 14642*6a54128fSAndroid Build Coastguard Worker... rest of stderr output deleted ... 14643*6a54128fSAndroid Build Coastguard Worker 10q' conftest.err >conftest.er1 14644*6a54128fSAndroid Build Coastguard Worker cat conftest.er1 >&5 14645*6a54128fSAndroid Build Coastguard Worker fi 14646*6a54128fSAndroid Build Coastguard Worker rm -f conftest.er1 conftest.err 14647*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14648*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; } 14649*6a54128fSAndroid Build Coastguard Workerdone 14650*6a54128fSAndroid Build Coastguard Worker 14651*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 14652*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether the compiler supports GNU C++... " >&6; } 14653*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_cxx_compiler_gnu+y} 14654*6a54128fSAndroid Build Coastguard Workerthen : 14655*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 14656*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14657*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14658*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14659*6a54128fSAndroid Build Coastguard Worker 14660*6a54128fSAndroid Build Coastguard Workerint 14661*6a54128fSAndroid Build Coastguard Workermain (void) 14662*6a54128fSAndroid Build Coastguard Worker{ 14663*6a54128fSAndroid Build Coastguard Worker#ifndef __GNUC__ 14664*6a54128fSAndroid Build Coastguard Worker choke me 14665*6a54128fSAndroid Build Coastguard Worker#endif 14666*6a54128fSAndroid Build Coastguard Worker 14667*6a54128fSAndroid Build Coastguard Worker ; 14668*6a54128fSAndroid Build Coastguard Worker return 0; 14669*6a54128fSAndroid Build Coastguard Worker} 14670*6a54128fSAndroid Build Coastguard Worker_ACEOF 14671*6a54128fSAndroid Build Coastguard Workerif ac_fn_cxx_try_compile "$LINENO" 14672*6a54128fSAndroid Build Coastguard Workerthen : 14673*6a54128fSAndroid Build Coastguard Worker ac_compiler_gnu=yes 14674*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14675*6a54128fSAndroid Build Coastguard Worker ac_compiler_gnu=no 14676*6a54128fSAndroid Build Coastguard Workerfi 14677*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14678*6a54128fSAndroid Build Coastguard Workerac_cv_cxx_compiler_gnu=$ac_compiler_gnu 14679*6a54128fSAndroid Build Coastguard Worker 14680*6a54128fSAndroid Build Coastguard Workerfi 14681*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 14682*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } 14683*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14684*6a54128fSAndroid Build Coastguard Worker 14685*6a54128fSAndroid Build Coastguard Workerif test $ac_compiler_gnu = yes; then 14686*6a54128fSAndroid Build Coastguard Worker GXX=yes 14687*6a54128fSAndroid Build Coastguard Workerelse 14688*6a54128fSAndroid Build Coastguard Worker GXX= 14689*6a54128fSAndroid Build Coastguard Workerfi 14690*6a54128fSAndroid Build Coastguard Workerac_test_CXXFLAGS=${CXXFLAGS+y} 14691*6a54128fSAndroid Build Coastguard Workerac_save_CXXFLAGS=$CXXFLAGS 14692*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 14693*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether $CXX accepts -g... " >&6; } 14694*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_cxx_g+y} 14695*6a54128fSAndroid Build Coastguard Workerthen : 14696*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 14697*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14698*6a54128fSAndroid Build Coastguard Worker ac_save_cxx_werror_flag=$ac_cxx_werror_flag 14699*6a54128fSAndroid Build Coastguard Worker ac_cxx_werror_flag=yes 14700*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cxx_g=no 14701*6a54128fSAndroid Build Coastguard Worker CXXFLAGS="-g" 14702*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14703*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14704*6a54128fSAndroid Build Coastguard Worker 14705*6a54128fSAndroid Build Coastguard Workerint 14706*6a54128fSAndroid Build Coastguard Workermain (void) 14707*6a54128fSAndroid Build Coastguard Worker{ 14708*6a54128fSAndroid Build Coastguard Worker 14709*6a54128fSAndroid Build Coastguard Worker ; 14710*6a54128fSAndroid Build Coastguard Worker return 0; 14711*6a54128fSAndroid Build Coastguard Worker} 14712*6a54128fSAndroid Build Coastguard Worker_ACEOF 14713*6a54128fSAndroid Build Coastguard Workerif ac_fn_cxx_try_compile "$LINENO" 14714*6a54128fSAndroid Build Coastguard Workerthen : 14715*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cxx_g=yes 14716*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14717*6a54128fSAndroid Build Coastguard Worker CXXFLAGS="" 14718*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14719*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14720*6a54128fSAndroid Build Coastguard Worker 14721*6a54128fSAndroid Build Coastguard Workerint 14722*6a54128fSAndroid Build Coastguard Workermain (void) 14723*6a54128fSAndroid Build Coastguard Worker{ 14724*6a54128fSAndroid Build Coastguard Worker 14725*6a54128fSAndroid Build Coastguard Worker ; 14726*6a54128fSAndroid Build Coastguard Worker return 0; 14727*6a54128fSAndroid Build Coastguard Worker} 14728*6a54128fSAndroid Build Coastguard Worker_ACEOF 14729*6a54128fSAndroid Build Coastguard Workerif ac_fn_cxx_try_compile "$LINENO" 14730*6a54128fSAndroid Build Coastguard Workerthen : 14731*6a54128fSAndroid Build Coastguard Worker 14732*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14733*6a54128fSAndroid Build Coastguard Worker ac_cxx_werror_flag=$ac_save_cxx_werror_flag 14734*6a54128fSAndroid Build Coastguard Worker CXXFLAGS="-g" 14735*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14736*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14737*6a54128fSAndroid Build Coastguard Worker 14738*6a54128fSAndroid Build Coastguard Workerint 14739*6a54128fSAndroid Build Coastguard Workermain (void) 14740*6a54128fSAndroid Build Coastguard Worker{ 14741*6a54128fSAndroid Build Coastguard Worker 14742*6a54128fSAndroid Build Coastguard Worker ; 14743*6a54128fSAndroid Build Coastguard Worker return 0; 14744*6a54128fSAndroid Build Coastguard Worker} 14745*6a54128fSAndroid Build Coastguard Worker_ACEOF 14746*6a54128fSAndroid Build Coastguard Workerif ac_fn_cxx_try_compile "$LINENO" 14747*6a54128fSAndroid Build Coastguard Workerthen : 14748*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cxx_g=yes 14749*6a54128fSAndroid Build Coastguard Workerfi 14750*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14751*6a54128fSAndroid Build Coastguard Workerfi 14752*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14753*6a54128fSAndroid Build Coastguard Workerfi 14754*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14755*6a54128fSAndroid Build Coastguard Worker ac_cxx_werror_flag=$ac_save_cxx_werror_flag 14756*6a54128fSAndroid Build Coastguard Workerfi 14757*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 14758*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_prog_cxx_g" >&6; } 14759*6a54128fSAndroid Build Coastguard Workerif test $ac_test_CXXFLAGS; then 14760*6a54128fSAndroid Build Coastguard Worker CXXFLAGS=$ac_save_CXXFLAGS 14761*6a54128fSAndroid Build Coastguard Workerelif test $ac_cv_prog_cxx_g = yes; then 14762*6a54128fSAndroid Build Coastguard Worker if test "$GXX" = yes; then 14763*6a54128fSAndroid Build Coastguard Worker CXXFLAGS="-g -O2" 14764*6a54128fSAndroid Build Coastguard Worker else 14765*6a54128fSAndroid Build Coastguard Worker CXXFLAGS="-g" 14766*6a54128fSAndroid Build Coastguard Worker fi 14767*6a54128fSAndroid Build Coastguard Workerelse 14768*6a54128fSAndroid Build Coastguard Worker if test "$GXX" = yes; then 14769*6a54128fSAndroid Build Coastguard Worker CXXFLAGS="-O2" 14770*6a54128fSAndroid Build Coastguard Worker else 14771*6a54128fSAndroid Build Coastguard Worker CXXFLAGS= 14772*6a54128fSAndroid Build Coastguard Worker fi 14773*6a54128fSAndroid Build Coastguard Workerfi 14774*6a54128fSAndroid Build Coastguard Workerac_prog_cxx_stdcxx=no 14775*6a54128fSAndroid Build Coastguard Workerif test x$ac_prog_cxx_stdcxx = xno 14776*6a54128fSAndroid Build Coastguard Workerthen : 14777*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 14778*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $CXX option to enable C++11 features... " >&6; } 14779*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_cxx_cxx11+y} 14780*6a54128fSAndroid Build Coastguard Workerthen : 14781*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 14782*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14783*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cxx_cxx11=no 14784*6a54128fSAndroid Build Coastguard Workerac_save_CXX=$CXX 14785*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 14786*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14787*6a54128fSAndroid Build Coastguard Worker$ac_cxx_conftest_cxx11_program 14788*6a54128fSAndroid Build Coastguard Worker_ACEOF 14789*6a54128fSAndroid Build Coastguard Workerfor ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA 14790*6a54128fSAndroid Build Coastguard Workerdo 14791*6a54128fSAndroid Build Coastguard Worker CXX="$ac_save_CXX $ac_arg" 14792*6a54128fSAndroid Build Coastguard Worker if ac_fn_cxx_try_compile "$LINENO" 14793*6a54128fSAndroid Build Coastguard Workerthen : 14794*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cxx_cxx11=$ac_arg 14795*6a54128fSAndroid Build Coastguard Workerfi 14796*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam 14797*6a54128fSAndroid Build Coastguard Worker test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 14798*6a54128fSAndroid Build Coastguard Workerdone 14799*6a54128fSAndroid Build Coastguard Workerrm -f conftest.$ac_ext 14800*6a54128fSAndroid Build Coastguard WorkerCXX=$ac_save_CXX 14801*6a54128fSAndroid Build Coastguard Workerfi 14802*6a54128fSAndroid Build Coastguard Worker 14803*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_prog_cxx_cxx11" = xno 14804*6a54128fSAndroid Build Coastguard Workerthen : 14805*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 14806*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "unsupported" >&6; } 14807*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14808*6a54128fSAndroid Build Coastguard Worker if test "x$ac_cv_prog_cxx_cxx11" = x 14809*6a54128fSAndroid Build Coastguard Workerthen : 14810*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 14811*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "none needed" >&6; } 14812*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14813*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 14814*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } 14815*6a54128fSAndroid Build Coastguard Worker CXX="$CXX $ac_cv_prog_cxx_cxx11" 14816*6a54128fSAndroid Build Coastguard Workerfi 14817*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 14818*6a54128fSAndroid Build Coastguard Worker ac_prog_cxx_stdcxx=cxx11 14819*6a54128fSAndroid Build Coastguard Workerfi 14820*6a54128fSAndroid Build Coastguard Workerfi 14821*6a54128fSAndroid Build Coastguard Workerif test x$ac_prog_cxx_stdcxx = xno 14822*6a54128fSAndroid Build Coastguard Workerthen : 14823*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 14824*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for $CXX option to enable C++98 features... " >&6; } 14825*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_prog_cxx_cxx98+y} 14826*6a54128fSAndroid Build Coastguard Workerthen : 14827*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 14828*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14829*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cxx_cxx98=no 14830*6a54128fSAndroid Build Coastguard Workerac_save_CXX=$CXX 14831*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 14832*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14833*6a54128fSAndroid Build Coastguard Worker$ac_cxx_conftest_cxx98_program 14834*6a54128fSAndroid Build Coastguard Worker_ACEOF 14835*6a54128fSAndroid Build Coastguard Workerfor ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 14836*6a54128fSAndroid Build Coastguard Workerdo 14837*6a54128fSAndroid Build Coastguard Worker CXX="$ac_save_CXX $ac_arg" 14838*6a54128fSAndroid Build Coastguard Worker if ac_fn_cxx_try_compile "$LINENO" 14839*6a54128fSAndroid Build Coastguard Workerthen : 14840*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cxx_cxx98=$ac_arg 14841*6a54128fSAndroid Build Coastguard Workerfi 14842*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam 14843*6a54128fSAndroid Build Coastguard Worker test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 14844*6a54128fSAndroid Build Coastguard Workerdone 14845*6a54128fSAndroid Build Coastguard Workerrm -f conftest.$ac_ext 14846*6a54128fSAndroid Build Coastguard WorkerCXX=$ac_save_CXX 14847*6a54128fSAndroid Build Coastguard Workerfi 14848*6a54128fSAndroid Build Coastguard Worker 14849*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cv_prog_cxx_cxx98" = xno 14850*6a54128fSAndroid Build Coastguard Workerthen : 14851*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 14852*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "unsupported" >&6; } 14853*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14854*6a54128fSAndroid Build Coastguard Worker if test "x$ac_cv_prog_cxx_cxx98" = x 14855*6a54128fSAndroid Build Coastguard Workerthen : 14856*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 14857*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "none needed" >&6; } 14858*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14859*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 14860*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } 14861*6a54128fSAndroid Build Coastguard Worker CXX="$CXX $ac_cv_prog_cxx_cxx98" 14862*6a54128fSAndroid Build Coastguard Workerfi 14863*6a54128fSAndroid Build Coastguard Worker ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 14864*6a54128fSAndroid Build Coastguard Worker ac_prog_cxx_stdcxx=cxx98 14865*6a54128fSAndroid Build Coastguard Workerfi 14866*6a54128fSAndroid Build Coastguard Workerfi 14867*6a54128fSAndroid Build Coastguard Worker 14868*6a54128fSAndroid Build Coastguard Workerac_ext=c 14869*6a54128fSAndroid Build Coastguard Workerac_cpp='$CPP $CPPFLAGS' 14870*6a54128fSAndroid Build Coastguard Workerac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14871*6a54128fSAndroid Build Coastguard Workerac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14872*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_c_compiler_gnu 14873*6a54128fSAndroid Build Coastguard Worker 14874*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5 14875*6a54128fSAndroid Build Coastguard Workerprintf %s "checking if C compiler supports fuzzing sanitizer... " >&6; } 14876*6a54128fSAndroid Build Coastguard Worker ac_ext=cpp 14877*6a54128fSAndroid Build Coastguard Workerac_cpp='$CXXCPP $CPPFLAGS' 14878*6a54128fSAndroid Build Coastguard Workerac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14879*6a54128fSAndroid Build Coastguard Workerac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14880*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14881*6a54128fSAndroid Build Coastguard Worker 14882*6a54128fSAndroid Build Coastguard Worker OLD_CXXFLAGS="$CXXFLAGS" 14883*6a54128fSAndroid Build Coastguard Worker OLD_LDFLAGS="$LDFLAGS" 14884*6a54128fSAndroid Build Coastguard Worker FUZZER_FLAGS="-fsanitize=fuzzer" 14885*6a54128fSAndroid Build Coastguard Worker CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS" 14886*6a54128fSAndroid Build Coastguard Worker LDFLAGS="$LDFLAGS $FUZZER_FLAGS" 14887*6a54128fSAndroid Build Coastguard Worker 14888*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 14889*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 14890*6a54128fSAndroid Build Coastguard Worker 14891*6a54128fSAndroid Build Coastguard Worker #include <stddef.h> 14892*6a54128fSAndroid Build Coastguard Worker #include <stdint.h> 14893*6a54128fSAndroid Build Coastguard Worker 14894*6a54128fSAndroid Build Coastguard Workerint 14895*6a54128fSAndroid Build Coastguard Workermain (void) 14896*6a54128fSAndroid Build Coastguard Worker{ 14897*6a54128fSAndroid Build Coastguard Worker return 0; 14898*6a54128fSAndroid Build Coastguard Worker ; 14899*6a54128fSAndroid Build Coastguard Worker return 0; 14900*6a54128fSAndroid Build Coastguard Worker} 14901*6a54128fSAndroid Build Coastguard Worker_ACEOF 14902*6a54128fSAndroid Build Coastguard Workerif ac_fn_cxx_try_compile "$LINENO" 14903*6a54128fSAndroid Build Coastguard Workerthen : 14904*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14905*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "yes" >&6; } 14906*6a54128fSAndroid Build Coastguard Worker fuzzer_cflags=$FUZZER_FLAGS 14907*6a54128fSAndroid Build Coastguard Worker fuzzer_ldflags=$FUZZER_FLAGS 14908*6a54128fSAndroid Build Coastguard Worker FUZZING_CMT= 14909*6a54128fSAndroid Build Coastguard Worker have_fuzzer=yes 14910*6a54128fSAndroid Build Coastguard Workerelse $as_nop 14911*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14912*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 14913*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "fuzzing requested but not available" "$LINENO" 5 14914*6a54128fSAndroid Build Coastguard Workerfi 14915*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14916*6a54128fSAndroid Build Coastguard Worker CXXFLAGS="${OLD_CXXFLAGS}" 14917*6a54128fSAndroid Build Coastguard Worker LDFLAGS="${OLD_LDFLAGS}" 14918*6a54128fSAndroid Build Coastguard Worker ac_ext=c 14919*6a54128fSAndroid Build Coastguard Workerac_cpp='$CPP $CPPFLAGS' 14920*6a54128fSAndroid Build Coastguard Workerac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14921*6a54128fSAndroid Build Coastguard Workerac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14922*6a54128fSAndroid Build Coastguard Workerac_compiler_gnu=$ac_cv_c_compiler_gnu 14923*6a54128fSAndroid Build Coastguard Worker 14924*6a54128fSAndroid Build Coastguard Worker 14925*6a54128fSAndroid Build Coastguard Worker 14926*6a54128fSAndroid Build Coastguard Worker 14927*6a54128fSAndroid Build Coastguard Workerfi 14928*6a54128fSAndroid Build Coastguard Workerif test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then 14929*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5 14930*6a54128fSAndroid Build Coastguard Workerfi 14931*6a54128fSAndroid Build Coastguard Worker 14932*6a54128fSAndroid Build Coastguard WorkerLINUX_CMT="#" 14933*6a54128fSAndroid Build Coastguard WorkerCYGWIN_CMT="#" 14934*6a54128fSAndroid Build Coastguard WorkerUNIX_CMT= 14935*6a54128fSAndroid Build Coastguard Workercase "$host_os" in 14936*6a54128fSAndroid Build Coastguard Workerlinux*) 14937*6a54128fSAndroid Build Coastguard Worker LINUX_CMT= 14938*6a54128fSAndroid Build Coastguard Worker ;; 14939*6a54128fSAndroid Build Coastguard Workercygwin) 14940*6a54128fSAndroid Build Coastguard Worker CYGWIN_CMT= 14941*6a54128fSAndroid Build Coastguard Worker UNIX_CMT="#" 14942*6a54128fSAndroid Build Coastguard Worker ;; 14943*6a54128fSAndroid Build Coastguard Workeresac 14944*6a54128fSAndroid Build Coastguard Worker 14945*6a54128fSAndroid Build Coastguard Worker 14946*6a54128fSAndroid Build Coastguard Worker 14947*6a54128fSAndroid Build Coastguard WorkerE2SCRUB_CMT="$LINUX_CMT" 14948*6a54128fSAndroid Build Coastguard Worker 14949*6a54128fSAndroid Build Coastguard Workercase "$host_os" in 14950*6a54128fSAndroid Build Coastguard Workerlinux* | gnu* | k*bsd*-gnu) 14951*6a54128fSAndroid Build Coastguard Worker if test "$prefix" = NONE -a "$root_prefix" = NONE ; then 14952*6a54128fSAndroid Build Coastguard Worker root_prefix=""; 14953*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 14954*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; } 14955*6a54128fSAndroid Build Coastguard Worker fi 14956*6a54128fSAndroid Build Coastguard Worker ;; 14957*6a54128fSAndroid Build Coastguard Workeresac 14958*6a54128fSAndroid Build Coastguard Workercase "$host_os" in 14959*6a54128fSAndroid Build Coastguard Workerlinux* | gnu* | k*bsd*-gnu) 14960*6a54128fSAndroid Build Coastguard Worker if test "$prefix" = NONE ; then 14961*6a54128fSAndroid Build Coastguard Worker prefix="/usr"; 14962*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 14963*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; } 14964*6a54128fSAndroid Build Coastguard Worker if test "$mandir" = '${prefix}/man' ; then 14965*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 14966*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "...and mandir defaults to /usr/share/man" >&6; } 14967*6a54128fSAndroid Build Coastguard Worker mandir=/usr/share/man 14968*6a54128fSAndroid Build Coastguard Worker fi 14969*6a54128fSAndroid Build Coastguard Worker fi 14970*6a54128fSAndroid Build Coastguard Worker;; 14971*6a54128fSAndroid Build Coastguard Workeresac 14972*6a54128fSAndroid Build Coastguard Workerif test "$root_prefix" = NONE ; then 14973*6a54128fSAndroid Build Coastguard Worker if test "$prefix" = NONE ; then 14974*6a54128fSAndroid Build Coastguard Worker root_prefix="$ac_default_prefix" 14975*6a54128fSAndroid Build Coastguard Worker else 14976*6a54128fSAndroid Build Coastguard Worker root_prefix="$prefix" 14977*6a54128fSAndroid Build Coastguard Worker fi 14978*6a54128fSAndroid Build Coastguard Worker root_bindir=$bindir 14979*6a54128fSAndroid Build Coastguard Worker root_sbindir=$sbindir 14980*6a54128fSAndroid Build Coastguard Worker root_libdir=$libdir 14981*6a54128fSAndroid Build Coastguard Worker root_sysconfdir=$sysconfdir 14982*6a54128fSAndroid Build Coastguard Workerelse 14983*6a54128fSAndroid Build Coastguard Worker root_bindir='${root_prefix}/bin' 14984*6a54128fSAndroid Build Coastguard Worker root_sbindir='${root_prefix}/sbin' 14985*6a54128fSAndroid Build Coastguard Worker root_libdir='${root_prefix}/lib' 14986*6a54128fSAndroid Build Coastguard Worker root_sysconfdir='${root_prefix}/etc' 14987*6a54128fSAndroid Build Coastguard Workerfi 14988*6a54128fSAndroid Build Coastguard Workerif test "$bindir" != '${exec_prefix}/bin'; then 14989*6a54128fSAndroid Build Coastguard Worker root_bindir=$bindir 14990*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 14991*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Setting root_bindir to $root_bindir" >&6; } 14992*6a54128fSAndroid Build Coastguard Workerfi 14993*6a54128fSAndroid Build Coastguard Workerif test "$sbindir" != '${exec_prefix}/sbin'; then 14994*6a54128fSAndroid Build Coastguard Worker root_sbindir=$sbindir 14995*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 14996*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; } 14997*6a54128fSAndroid Build Coastguard Workerfi 14998*6a54128fSAndroid Build Coastguard Workerif test "$libdir" != '${exec_prefix}/lib'; then 14999*6a54128fSAndroid Build Coastguard Worker root_libdir=$libdir 15000*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 15001*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Setting root_libdir to $root_libdir" >&6; } 15002*6a54128fSAndroid Build Coastguard Workerfi 15003*6a54128fSAndroid Build Coastguard Workerif test "$sysconfdir" != '${prefix}/etc'; then 15004*6a54128fSAndroid Build Coastguard Worker root_sysconfdir=$sysconfdir 15005*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 15006*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; } 15007*6a54128fSAndroid Build Coastguard Workerfi 15008*6a54128fSAndroid Build Coastguard Worker 15009*6a54128fSAndroid Build Coastguard Worker 15010*6a54128fSAndroid Build Coastguard Worker 15011*6a54128fSAndroid Build Coastguard Worker 15012*6a54128fSAndroid Build Coastguard Worker 15013*6a54128fSAndroid Build Coastguard Worker 15014*6a54128fSAndroid Build Coastguard Worker# Check whether --with-multiarch was given. 15015*6a54128fSAndroid Build Coastguard Workerif test ${with_multiarch+y} 15016*6a54128fSAndroid Build Coastguard Workerthen : 15017*6a54128fSAndroid Build Coastguard Worker withval=$with_multiarch; if test "$withval" = "lib64"; then 15018*6a54128fSAndroid Build Coastguard Worker libdir=/usr/lib64 15019*6a54128fSAndroid Build Coastguard Worker root_libdir=/lib64 15020*6a54128fSAndroid Build Coastguard Workerelse 15021*6a54128fSAndroid Build Coastguard Worker libdir=$libdir/$withval 15022*6a54128fSAndroid Build Coastguard Worker root_libdir=$root_libdir/$withval 15023*6a54128fSAndroid Build Coastguard Workerfi 15024*6a54128fSAndroid Build Coastguard Worker 15025*6a54128fSAndroid Build Coastguard Workerfi 15026*6a54128fSAndroid Build Coastguard Worker 15027*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 15028*6a54128fSAndroid Build Coastguard Workerprintf %s "checking whether we can link with -static... " >&6; } 15029*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_e2fsprogs_use_static+y} 15030*6a54128fSAndroid Build Coastguard Workerthen : 15031*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 15032*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15033*6a54128fSAndroid Build Coastguard Worker SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static" 15034*6a54128fSAndroid Build Coastguard Workercat confdefs.h - <<_ACEOF >conftest.$ac_ext 15035*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 15036*6a54128fSAndroid Build Coastguard Worker#include <stdio.h> 15037*6a54128fSAndroid Build Coastguard Workerint 15038*6a54128fSAndroid Build Coastguard Workermain (void) 15039*6a54128fSAndroid Build Coastguard Worker{ 15040*6a54128fSAndroid Build Coastguard Workerfflush(stdout); 15041*6a54128fSAndroid Build Coastguard Worker ; 15042*6a54128fSAndroid Build Coastguard Worker return 0; 15043*6a54128fSAndroid Build Coastguard Worker} 15044*6a54128fSAndroid Build Coastguard Worker_ACEOF 15045*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_link "$LINENO" 15046*6a54128fSAndroid Build Coastguard Workerthen : 15047*6a54128fSAndroid Build Coastguard Worker ac_cv_e2fsprogs_use_static=yes 15048*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15049*6a54128fSAndroid Build Coastguard Worker ac_cv_e2fsprogs_use_static=no 15050*6a54128fSAndroid Build Coastguard Workerfi 15051*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam \ 15052*6a54128fSAndroid Build Coastguard Worker conftest$ac_exeext conftest.$ac_ext 15053*6a54128fSAndroid Build Coastguard WorkerLDFLAGS=$SAVE_LDFLAGS 15054*6a54128fSAndroid Build Coastguard Workerfi 15055*6a54128fSAndroid Build Coastguard Worker 15056*6a54128fSAndroid Build Coastguard Workercase "$host_os" in 15057*6a54128fSAndroid Build Coastguard Workersolaris2.*) 15058*6a54128fSAndroid Build Coastguard Worker ac_cv_e2fsprogs_use_static=no 15059*6a54128fSAndroid Build Coastguard Worker;; 15060*6a54128fSAndroid Build Coastguard Workeresac 15061*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 15062*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; } 15063*6a54128fSAndroid Build Coastguard Workerif test $ac_cv_e2fsprogs_use_static = yes; then 15064*6a54128fSAndroid Build Coastguard Worker LDFLAGS_STATIC="$LDFLAGS_STATIC -static" 15065*6a54128fSAndroid Build Coastguard Workerfi 15066*6a54128fSAndroid Build Coastguard Worker 15067*6a54128fSAndroid Build Coastguard Workercase "$host_os" in 15068*6a54128fSAndroid Build Coastguard Workerdarwin*) 15069*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 15070*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; } 15071*6a54128fSAndroid Build Coastguard Worker 15072*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h 15073*6a54128fSAndroid Build Coastguard Worker 15074*6a54128fSAndroid Build Coastguard Worker ;; 15075*6a54128fSAndroid Build Coastguard Workeresac 15076*6a54128fSAndroid Build Coastguard Workerif test "$cross_compiling" = yes ; then 15077*6a54128fSAndroid Build Coastguard Worker DO_TEST_SUITE= 15078*6a54128fSAndroid Build Coastguard Workerelse 15079*6a54128fSAndroid Build Coastguard Worker DO_TEST_SUITE=check 15080*6a54128fSAndroid Build Coastguard Workerfi 15081*6a54128fSAndroid Build Coastguard Worker 15082*6a54128fSAndroid Build Coastguard WorkerINCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' 15083*6a54128fSAndroid Build Coastguard Workerif test -n "$CPPFLAGS" ; then 15084*6a54128fSAndroid Build Coastguard Worker INCLUDES="$INCLUDES $CPPFLAGS" 15085*6a54128fSAndroid Build Coastguard Workerfi 15086*6a54128fSAndroid Build Coastguard Workerif test "$USE_INCLUDED_LIBINTL" = "yes" ; then 15087*6a54128fSAndroid Build Coastguard Worker INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' 15088*6a54128fSAndroid Build Coastguard Workerfi 15089*6a54128fSAndroid Build Coastguard Workerif test -n "$WITH_DIET_LIBC" ; then 15090*6a54128fSAndroid Build Coastguard Worker INCLUDES="$INCLUDES -D_REENTRANT" 15091*6a54128fSAndroid Build Coastguard Workerfi 15092*6a54128fSAndroid Build Coastguard Workercase "$host_os" in 15093*6a54128fSAndroid Build Coastguard Workermingw*) 15094*6a54128fSAndroid Build Coastguard Worker INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw' 15095*6a54128fSAndroid Build Coastguard Worker ;; 15096*6a54128fSAndroid Build Coastguard Workeresac 15097*6a54128fSAndroid Build Coastguard Worker 15098*6a54128fSAndroid Build Coastguard Workerif test $cross_compiling = no; then 15099*6a54128fSAndroid Build Coastguard Worker BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" 15100*6a54128fSAndroid Build Coastguard Worker BUILD_LDFLAGS="$LDFLAGS" 15101*6a54128fSAndroid Build Coastguard Workerfi 15102*6a54128fSAndroid Build Coastguard Worker 15103*6a54128fSAndroid Build Coastguard Worker 15104*6a54128fSAndroid Build Coastguard WorkerCFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS} 15105*6a54128fSAndroid Build Coastguard WorkerCFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS} 15106*6a54128fSAndroid Build Coastguard WorkerLDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} 15107*6a54128fSAndroid Build Coastguard Worker 15108*6a54128fSAndroid Build Coastguard Worker 15109*6a54128fSAndroid Build Coastguard Worker 15110*6a54128fSAndroid Build Coastguard Worker 15111*6a54128fSAndroid Build Coastguard Worker 15112*6a54128fSAndroid Build Coastguard Worker# Check whether --with-udev_rules_dir was given. 15113*6a54128fSAndroid Build Coastguard Workerif test ${with_udev_rules_dir+y} 15114*6a54128fSAndroid Build Coastguard Workerthen : 15115*6a54128fSAndroid Build Coastguard Worker withval=$with_udev_rules_dir; 15116*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15117*6a54128fSAndroid Build Coastguard Worker with_udev_rules_dir=yes 15118*6a54128fSAndroid Build Coastguard Workerfi 15119*6a54128fSAndroid Build Coastguard Worker 15120*6a54128fSAndroid Build Coastguard Workerif test "x${with_udev_rules_dir}" != "xno" 15121*6a54128fSAndroid Build Coastguard Workerthen : 15122*6a54128fSAndroid Build Coastguard Worker 15123*6a54128fSAndroid Build Coastguard Worker if test "x${with_udev_rules_dir}" = "xyes" 15124*6a54128fSAndroid Build Coastguard Workerthen : 15125*6a54128fSAndroid Build Coastguard Worker 15126*6a54128fSAndroid Build Coastguard Worker 15127*6a54128fSAndroid Build Coastguard Workerpkg_failed=no 15128*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5 15129*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for udev... " >&6; } 15130*6a54128fSAndroid Build Coastguard Worker 15131*6a54128fSAndroid Build Coastguard Workerif test -n "$udev_CFLAGS"; then 15132*6a54128fSAndroid Build Coastguard Worker pkg_cv_udev_CFLAGS="$udev_CFLAGS" 15133*6a54128fSAndroid Build Coastguard Worker elif test -n "$PKG_CONFIG"; then 15134*6a54128fSAndroid Build Coastguard Worker if test -n "$PKG_CONFIG" && \ 15135*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5 15136*6a54128fSAndroid Build Coastguard Worker ($PKG_CONFIG --exists --print-errors "udev") 2>&5 15137*6a54128fSAndroid Build Coastguard Worker ac_status=$? 15138*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15139*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; }; then 15140*6a54128fSAndroid Build Coastguard Worker pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null` 15141*6a54128fSAndroid Build Coastguard Worker test "x$?" != "x0" && pkg_failed=yes 15142*6a54128fSAndroid Build Coastguard Workerelse 15143*6a54128fSAndroid Build Coastguard Worker pkg_failed=yes 15144*6a54128fSAndroid Build Coastguard Workerfi 15145*6a54128fSAndroid Build Coastguard Worker else 15146*6a54128fSAndroid Build Coastguard Worker pkg_failed=untried 15147*6a54128fSAndroid Build Coastguard Workerfi 15148*6a54128fSAndroid Build Coastguard Workerif test -n "$udev_LIBS"; then 15149*6a54128fSAndroid Build Coastguard Worker pkg_cv_udev_LIBS="$udev_LIBS" 15150*6a54128fSAndroid Build Coastguard Worker elif test -n "$PKG_CONFIG"; then 15151*6a54128fSAndroid Build Coastguard Worker if test -n "$PKG_CONFIG" && \ 15152*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5 15153*6a54128fSAndroid Build Coastguard Worker ($PKG_CONFIG --exists --print-errors "udev") 2>&5 15154*6a54128fSAndroid Build Coastguard Worker ac_status=$? 15155*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15156*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; }; then 15157*6a54128fSAndroid Build Coastguard Worker pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null` 15158*6a54128fSAndroid Build Coastguard Worker test "x$?" != "x0" && pkg_failed=yes 15159*6a54128fSAndroid Build Coastguard Workerelse 15160*6a54128fSAndroid Build Coastguard Worker pkg_failed=yes 15161*6a54128fSAndroid Build Coastguard Workerfi 15162*6a54128fSAndroid Build Coastguard Worker else 15163*6a54128fSAndroid Build Coastguard Worker pkg_failed=untried 15164*6a54128fSAndroid Build Coastguard Workerfi 15165*6a54128fSAndroid Build Coastguard Worker 15166*6a54128fSAndroid Build Coastguard Worker 15167*6a54128fSAndroid Build Coastguard Worker 15168*6a54128fSAndroid Build Coastguard Workerif test $pkg_failed = yes; then 15169*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15170*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 15171*6a54128fSAndroid Build Coastguard Worker 15172*6a54128fSAndroid Build Coastguard Workerif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15173*6a54128fSAndroid Build Coastguard Worker _pkg_short_errors_supported=yes 15174*6a54128fSAndroid Build Coastguard Workerelse 15175*6a54128fSAndroid Build Coastguard Worker _pkg_short_errors_supported=no 15176*6a54128fSAndroid Build Coastguard Workerfi 15177*6a54128fSAndroid Build Coastguard Worker if test $_pkg_short_errors_supported = yes; then 15178*6a54128fSAndroid Build Coastguard Worker udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1` 15179*6a54128fSAndroid Build Coastguard Worker else 15180*6a54128fSAndroid Build Coastguard Worker udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1` 15181*6a54128fSAndroid Build Coastguard Worker fi 15182*6a54128fSAndroid Build Coastguard Worker # Put the nasty error message in config.log where it belongs 15183*6a54128fSAndroid Build Coastguard Worker echo "$udev_PKG_ERRORS" >&5 15184*6a54128fSAndroid Build Coastguard Worker 15185*6a54128fSAndroid Build Coastguard Worker 15186*6a54128fSAndroid Build Coastguard Worker with_udev_rules_dir="" 15187*6a54128fSAndroid Build Coastguard Worker 15188*6a54128fSAndroid Build Coastguard Workerelif test $pkg_failed = untried; then 15189*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15190*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 15191*6a54128fSAndroid Build Coastguard Worker 15192*6a54128fSAndroid Build Coastguard Worker with_udev_rules_dir="" 15193*6a54128fSAndroid Build Coastguard Worker 15194*6a54128fSAndroid Build Coastguard Workerelse 15195*6a54128fSAndroid Build Coastguard Worker udev_CFLAGS=$pkg_cv_udev_CFLAGS 15196*6a54128fSAndroid Build Coastguard Worker udev_LIBS=$pkg_cv_udev_LIBS 15197*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15198*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "yes" >&6; } 15199*6a54128fSAndroid Build Coastguard Worker 15200*6a54128fSAndroid Build Coastguard Worker with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d" 15201*6a54128fSAndroid Build Coastguard Worker 15202*6a54128fSAndroid Build Coastguard Workerfi 15203*6a54128fSAndroid Build Coastguard Worker 15204*6a54128fSAndroid Build Coastguard Workerfi 15205*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5 15206*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for udev rules dir... " >&6; } 15207*6a54128fSAndroid Build Coastguard Worker pkg_udev_rules_dir="${with_udev_rules_dir}" 15208*6a54128fSAndroid Build Coastguard Worker if test -n "${pkg_udev_rules_dir}" 15209*6a54128fSAndroid Build Coastguard Workerthen : 15210*6a54128fSAndroid Build Coastguard Worker 15211*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5 15212*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "${pkg_udev_rules_dir}" >&6; } 15213*6a54128fSAndroid Build Coastguard Worker have_udev="yes" 15214*6a54128fSAndroid Build Coastguard Worker 15215*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15216*6a54128fSAndroid Build Coastguard Worker 15217*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15218*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 15219*6a54128fSAndroid Build Coastguard Worker have_udev="no" 15220*6a54128fSAndroid Build Coastguard Worker 15221*6a54128fSAndroid Build Coastguard Workerfi 15222*6a54128fSAndroid Build Coastguard Worker 15223*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15224*6a54128fSAndroid Build Coastguard Worker 15225*6a54128fSAndroid Build Coastguard Worker have_udev="disabled" 15226*6a54128fSAndroid Build Coastguard Worker 15227*6a54128fSAndroid Build Coastguard Workerfi 15228*6a54128fSAndroid Build Coastguard Worker 15229*6a54128fSAndroid Build Coastguard Worker 15230*6a54128fSAndroid Build Coastguard Worker 15231*6a54128fSAndroid Build Coastguard Worker 15232*6a54128fSAndroid Build Coastguard Worker# Check whether --with-crond_dir was given. 15233*6a54128fSAndroid Build Coastguard Workerif test ${with_crond_dir+y} 15234*6a54128fSAndroid Build Coastguard Workerthen : 15235*6a54128fSAndroid Build Coastguard Worker withval=$with_crond_dir; 15236*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15237*6a54128fSAndroid Build Coastguard Worker with_crond_dir=yes 15238*6a54128fSAndroid Build Coastguard Workerfi 15239*6a54128fSAndroid Build Coastguard Worker 15240*6a54128fSAndroid Build Coastguard Workerif test "x${with_crond_dir}" != "xno" 15241*6a54128fSAndroid Build Coastguard Workerthen : 15242*6a54128fSAndroid Build Coastguard Worker 15243*6a54128fSAndroid Build Coastguard Worker if test "x${with_crond_dir}" = "xyes" 15244*6a54128fSAndroid Build Coastguard Workerthen : 15245*6a54128fSAndroid Build Coastguard Worker 15246*6a54128fSAndroid Build Coastguard Worker if test -d "/etc/cron.d" 15247*6a54128fSAndroid Build Coastguard Workerthen : 15248*6a54128fSAndroid Build Coastguard Worker with_crond_dir="/etc/cron.d" 15249*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15250*6a54128fSAndroid Build Coastguard Worker have_crond="no"; with_crond_dir="" 15251*6a54128fSAndroid Build Coastguard Workerfi 15252*6a54128fSAndroid Build Coastguard Worker 15253*6a54128fSAndroid Build Coastguard Workerfi 15254*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5 15255*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for system crontab dir... " >&6; } 15256*6a54128fSAndroid Build Coastguard Worker crond_dir="${with_crond_dir}" 15257*6a54128fSAndroid Build Coastguard Worker if test -n "${crond_dir}" 15258*6a54128fSAndroid Build Coastguard Workerthen : 15259*6a54128fSAndroid Build Coastguard Worker 15260*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5 15261*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "${crond_dir}" >&6; } 15262*6a54128fSAndroid Build Coastguard Worker have_crond="yes" 15263*6a54128fSAndroid Build Coastguard Worker 15264*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15265*6a54128fSAndroid Build Coastguard Worker 15266*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15267*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 15268*6a54128fSAndroid Build Coastguard Worker have_crond="no" 15269*6a54128fSAndroid Build Coastguard Worker 15270*6a54128fSAndroid Build Coastguard Workerfi 15271*6a54128fSAndroid Build Coastguard Worker 15272*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15273*6a54128fSAndroid Build Coastguard Worker 15274*6a54128fSAndroid Build Coastguard Worker have_crond="disabled" 15275*6a54128fSAndroid Build Coastguard Worker 15276*6a54128fSAndroid Build Coastguard Workerfi 15277*6a54128fSAndroid Build Coastguard Worker 15278*6a54128fSAndroid Build Coastguard Worker 15279*6a54128fSAndroid Build Coastguard Worker 15280*6a54128fSAndroid Build Coastguard Worker 15281*6a54128fSAndroid Build Coastguard Worker# Check whether --with-systemd_unit_dir was given. 15282*6a54128fSAndroid Build Coastguard Workerif test ${with_systemd_unit_dir+y} 15283*6a54128fSAndroid Build Coastguard Workerthen : 15284*6a54128fSAndroid Build Coastguard Worker withval=$with_systemd_unit_dir; 15285*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15286*6a54128fSAndroid Build Coastguard Worker with_systemd_unit_dir=yes 15287*6a54128fSAndroid Build Coastguard Workerfi 15288*6a54128fSAndroid Build Coastguard Worker 15289*6a54128fSAndroid Build Coastguard Workerif test "x${with_systemd_unit_dir}" != "xno" 15290*6a54128fSAndroid Build Coastguard Workerthen : 15291*6a54128fSAndroid Build Coastguard Worker 15292*6a54128fSAndroid Build Coastguard Worker if test "x${with_systemd_unit_dir}" = "xyes" 15293*6a54128fSAndroid Build Coastguard Workerthen : 15294*6a54128fSAndroid Build Coastguard Worker 15295*6a54128fSAndroid Build Coastguard Worker 15296*6a54128fSAndroid Build Coastguard Workerpkg_failed=no 15297*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5 15298*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for systemd... " >&6; } 15299*6a54128fSAndroid Build Coastguard Worker 15300*6a54128fSAndroid Build Coastguard Workerif test -n "$systemd_CFLAGS"; then 15301*6a54128fSAndroid Build Coastguard Worker pkg_cv_systemd_CFLAGS="$systemd_CFLAGS" 15302*6a54128fSAndroid Build Coastguard Worker elif test -n "$PKG_CONFIG"; then 15303*6a54128fSAndroid Build Coastguard Worker if test -n "$PKG_CONFIG" && \ 15304*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 15305*6a54128fSAndroid Build Coastguard Worker ($PKG_CONFIG --exists --print-errors "systemd") 2>&5 15306*6a54128fSAndroid Build Coastguard Worker ac_status=$? 15307*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15308*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; }; then 15309*6a54128fSAndroid Build Coastguard Worker pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null` 15310*6a54128fSAndroid Build Coastguard Worker test "x$?" != "x0" && pkg_failed=yes 15311*6a54128fSAndroid Build Coastguard Workerelse 15312*6a54128fSAndroid Build Coastguard Worker pkg_failed=yes 15313*6a54128fSAndroid Build Coastguard Workerfi 15314*6a54128fSAndroid Build Coastguard Worker else 15315*6a54128fSAndroid Build Coastguard Worker pkg_failed=untried 15316*6a54128fSAndroid Build Coastguard Workerfi 15317*6a54128fSAndroid Build Coastguard Workerif test -n "$systemd_LIBS"; then 15318*6a54128fSAndroid Build Coastguard Worker pkg_cv_systemd_LIBS="$systemd_LIBS" 15319*6a54128fSAndroid Build Coastguard Worker elif test -n "$PKG_CONFIG"; then 15320*6a54128fSAndroid Build Coastguard Worker if test -n "$PKG_CONFIG" && \ 15321*6a54128fSAndroid Build Coastguard Worker { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 15322*6a54128fSAndroid Build Coastguard Worker ($PKG_CONFIG --exists --print-errors "systemd") 2>&5 15323*6a54128fSAndroid Build Coastguard Worker ac_status=$? 15324*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15325*6a54128fSAndroid Build Coastguard Worker test $ac_status = 0; }; then 15326*6a54128fSAndroid Build Coastguard Worker pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null` 15327*6a54128fSAndroid Build Coastguard Worker test "x$?" != "x0" && pkg_failed=yes 15328*6a54128fSAndroid Build Coastguard Workerelse 15329*6a54128fSAndroid Build Coastguard Worker pkg_failed=yes 15330*6a54128fSAndroid Build Coastguard Workerfi 15331*6a54128fSAndroid Build Coastguard Worker else 15332*6a54128fSAndroid Build Coastguard Worker pkg_failed=untried 15333*6a54128fSAndroid Build Coastguard Workerfi 15334*6a54128fSAndroid Build Coastguard Worker 15335*6a54128fSAndroid Build Coastguard Worker 15336*6a54128fSAndroid Build Coastguard Worker 15337*6a54128fSAndroid Build Coastguard Workerif test $pkg_failed = yes; then 15338*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15339*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 15340*6a54128fSAndroid Build Coastguard Worker 15341*6a54128fSAndroid Build Coastguard Workerif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15342*6a54128fSAndroid Build Coastguard Worker _pkg_short_errors_supported=yes 15343*6a54128fSAndroid Build Coastguard Workerelse 15344*6a54128fSAndroid Build Coastguard Worker _pkg_short_errors_supported=no 15345*6a54128fSAndroid Build Coastguard Workerfi 15346*6a54128fSAndroid Build Coastguard Worker if test $_pkg_short_errors_supported = yes; then 15347*6a54128fSAndroid Build Coastguard Worker systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1` 15348*6a54128fSAndroid Build Coastguard Worker else 15349*6a54128fSAndroid Build Coastguard Worker systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1` 15350*6a54128fSAndroid Build Coastguard Worker fi 15351*6a54128fSAndroid Build Coastguard Worker # Put the nasty error message in config.log where it belongs 15352*6a54128fSAndroid Build Coastguard Worker echo "$systemd_PKG_ERRORS" >&5 15353*6a54128fSAndroid Build Coastguard Worker 15354*6a54128fSAndroid Build Coastguard Worker 15355*6a54128fSAndroid Build Coastguard Worker with_systemd_unit_dir="" 15356*6a54128fSAndroid Build Coastguard Worker 15357*6a54128fSAndroid Build Coastguard Workerelif test $pkg_failed = untried; then 15358*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15359*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 15360*6a54128fSAndroid Build Coastguard Worker 15361*6a54128fSAndroid Build Coastguard Worker with_systemd_unit_dir="" 15362*6a54128fSAndroid Build Coastguard Worker 15363*6a54128fSAndroid Build Coastguard Workerelse 15364*6a54128fSAndroid Build Coastguard Worker systemd_CFLAGS=$pkg_cv_systemd_CFLAGS 15365*6a54128fSAndroid Build Coastguard Worker systemd_LIBS=$pkg_cv_systemd_LIBS 15366*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15367*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "yes" >&6; } 15368*6a54128fSAndroid Build Coastguard Worker 15369*6a54128fSAndroid Build Coastguard Worker with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)" 15370*6a54128fSAndroid Build Coastguard Worker 15371*6a54128fSAndroid Build Coastguard Workerfi 15372*6a54128fSAndroid Build Coastguard Worker 15373*6a54128fSAndroid Build Coastguard Worker 15374*6a54128fSAndroid Build Coastguard Workerfi 15375*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5 15376*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for systemd system unit dir... " >&6; } 15377*6a54128fSAndroid Build Coastguard Worker systemd_system_unit_dir="${with_systemd_unit_dir}" 15378*6a54128fSAndroid Build Coastguard Worker if test -n "${systemd_system_unit_dir}" 15379*6a54128fSAndroid Build Coastguard Workerthen : 15380*6a54128fSAndroid Build Coastguard Worker 15381*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5 15382*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "${systemd_system_unit_dir}" >&6; } 15383*6a54128fSAndroid Build Coastguard Worker have_systemd="yes" 15384*6a54128fSAndroid Build Coastguard Worker 15385*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15386*6a54128fSAndroid Build Coastguard Worker 15387*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15388*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "no" >&6; } 15389*6a54128fSAndroid Build Coastguard Worker have_systemd="no" 15390*6a54128fSAndroid Build Coastguard Worker 15391*6a54128fSAndroid Build Coastguard Workerfi 15392*6a54128fSAndroid Build Coastguard Worker 15393*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15394*6a54128fSAndroid Build Coastguard Worker 15395*6a54128fSAndroid Build Coastguard Worker have_systemd="disabled" 15396*6a54128fSAndroid Build Coastguard Worker 15397*6a54128fSAndroid Build Coastguard Workerfi 15398*6a54128fSAndroid Build Coastguard Worker 15399*6a54128fSAndroid Build Coastguard Worker 15400*6a54128fSAndroid Build Coastguard WorkerOS_IO_FILE="" 15401*6a54128fSAndroid Build Coastguard Workercase "$host_os" in 15402*6a54128fSAndroid Build Coastguard Worker mingw*) 15403*6a54128fSAndroid Build Coastguard Worker OS_IO_FILE=windows_io 15404*6a54128fSAndroid Build Coastguard Worker ;; 15405*6a54128fSAndroid Build Coastguard Worker *) 15406*6a54128fSAndroid Build Coastguard Worker OS_IO_FILE=unix_io 15407*6a54128fSAndroid Build Coastguard Worker ;; 15408*6a54128fSAndroid Build Coastguard Workeresac 15409*6a54128fSAndroid Build Coastguard Worker 15410*6a54128fSAndroid Build Coastguard Worker 15411*6a54128fSAndroid Build Coastguard Worker# Check whether --enable-largefile was given. 15412*6a54128fSAndroid Build Coastguard Workerif test ${enable_largefile+y} 15413*6a54128fSAndroid Build Coastguard Workerthen : 15414*6a54128fSAndroid Build Coastguard Worker enableval=$enable_largefile; 15415*6a54128fSAndroid Build Coastguard Workerfi 15416*6a54128fSAndroid Build Coastguard Worker 15417*6a54128fSAndroid Build Coastguard Workerif test "$enable_largefile" != no; then 15418*6a54128fSAndroid Build Coastguard Worker 15419*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 15420*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for special C compiler options needed for large files... " >&6; } 15421*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_sys_largefile_CC+y} 15422*6a54128fSAndroid Build Coastguard Workerthen : 15423*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 15424*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15425*6a54128fSAndroid Build Coastguard Worker ac_cv_sys_largefile_CC=no 15426*6a54128fSAndroid Build Coastguard Worker if test "$GCC" != yes; then 15427*6a54128fSAndroid Build Coastguard Worker ac_save_CC=$CC 15428*6a54128fSAndroid Build Coastguard Worker while :; do 15429*6a54128fSAndroid Build Coastguard Worker # IRIX 6.2 and later do not support large files by default, 15430*6a54128fSAndroid Build Coastguard Worker # so use the C compiler's -n32 option if that helps. 15431*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15432*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 15433*6a54128fSAndroid Build Coastguard Worker#include <sys/types.h> 15434*6a54128fSAndroid Build Coastguard Worker /* Check that off_t can represent 2**63 - 1 correctly. 15435*6a54128fSAndroid Build Coastguard Worker We can't simply define LARGE_OFF_T to be 9223372036854775807, 15436*6a54128fSAndroid Build Coastguard Worker since some C++ compilers masquerading as C compilers 15437*6a54128fSAndroid Build Coastguard Worker incorrectly reject 9223372036854775807. */ 15438*6a54128fSAndroid Build Coastguard Worker#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 15439*6a54128fSAndroid Build Coastguard Worker int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15440*6a54128fSAndroid Build Coastguard Worker && LARGE_OFF_T % 2147483647 == 1) 15441*6a54128fSAndroid Build Coastguard Worker ? 1 : -1]; 15442*6a54128fSAndroid Build Coastguard Workerint 15443*6a54128fSAndroid Build Coastguard Workermain (void) 15444*6a54128fSAndroid Build Coastguard Worker{ 15445*6a54128fSAndroid Build Coastguard Worker 15446*6a54128fSAndroid Build Coastguard Worker ; 15447*6a54128fSAndroid Build Coastguard Worker return 0; 15448*6a54128fSAndroid Build Coastguard Worker} 15449*6a54128fSAndroid Build Coastguard Worker_ACEOF 15450*6a54128fSAndroid Build Coastguard Worker if ac_fn_c_try_compile "$LINENO" 15451*6a54128fSAndroid Build Coastguard Workerthen : 15452*6a54128fSAndroid Build Coastguard Worker break 15453*6a54128fSAndroid Build Coastguard Workerfi 15454*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam 15455*6a54128fSAndroid Build Coastguard Worker CC="$CC -n32" 15456*6a54128fSAndroid Build Coastguard Worker if ac_fn_c_try_compile "$LINENO" 15457*6a54128fSAndroid Build Coastguard Workerthen : 15458*6a54128fSAndroid Build Coastguard Worker ac_cv_sys_largefile_CC=' -n32'; break 15459*6a54128fSAndroid Build Coastguard Workerfi 15460*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam 15461*6a54128fSAndroid Build Coastguard Worker break 15462*6a54128fSAndroid Build Coastguard Worker done 15463*6a54128fSAndroid Build Coastguard Worker CC=$ac_save_CC 15464*6a54128fSAndroid Build Coastguard Worker rm -f conftest.$ac_ext 15465*6a54128fSAndroid Build Coastguard Worker fi 15466*6a54128fSAndroid Build Coastguard Workerfi 15467*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 15468*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 15469*6a54128fSAndroid Build Coastguard Worker if test "$ac_cv_sys_largefile_CC" != no; then 15470*6a54128fSAndroid Build Coastguard Worker CC=$CC$ac_cv_sys_largefile_CC 15471*6a54128fSAndroid Build Coastguard Worker fi 15472*6a54128fSAndroid Build Coastguard Worker 15473*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 15474*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 15475*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_sys_file_offset_bits+y} 15476*6a54128fSAndroid Build Coastguard Workerthen : 15477*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 15478*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15479*6a54128fSAndroid Build Coastguard Worker while :; do 15480*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15481*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 15482*6a54128fSAndroid Build Coastguard Worker#include <sys/types.h> 15483*6a54128fSAndroid Build Coastguard Worker /* Check that off_t can represent 2**63 - 1 correctly. 15484*6a54128fSAndroid Build Coastguard Worker We can't simply define LARGE_OFF_T to be 9223372036854775807, 15485*6a54128fSAndroid Build Coastguard Worker since some C++ compilers masquerading as C compilers 15486*6a54128fSAndroid Build Coastguard Worker incorrectly reject 9223372036854775807. */ 15487*6a54128fSAndroid Build Coastguard Worker#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 15488*6a54128fSAndroid Build Coastguard Worker int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15489*6a54128fSAndroid Build Coastguard Worker && LARGE_OFF_T % 2147483647 == 1) 15490*6a54128fSAndroid Build Coastguard Worker ? 1 : -1]; 15491*6a54128fSAndroid Build Coastguard Workerint 15492*6a54128fSAndroid Build Coastguard Workermain (void) 15493*6a54128fSAndroid Build Coastguard Worker{ 15494*6a54128fSAndroid Build Coastguard Worker 15495*6a54128fSAndroid Build Coastguard Worker ; 15496*6a54128fSAndroid Build Coastguard Worker return 0; 15497*6a54128fSAndroid Build Coastguard Worker} 15498*6a54128fSAndroid Build Coastguard Worker_ACEOF 15499*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 15500*6a54128fSAndroid Build Coastguard Workerthen : 15501*6a54128fSAndroid Build Coastguard Worker ac_cv_sys_file_offset_bits=no; break 15502*6a54128fSAndroid Build Coastguard Workerfi 15503*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15504*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15505*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 15506*6a54128fSAndroid Build Coastguard Worker#define _FILE_OFFSET_BITS 64 15507*6a54128fSAndroid Build Coastguard Worker#include <sys/types.h> 15508*6a54128fSAndroid Build Coastguard Worker /* Check that off_t can represent 2**63 - 1 correctly. 15509*6a54128fSAndroid Build Coastguard Worker We can't simply define LARGE_OFF_T to be 9223372036854775807, 15510*6a54128fSAndroid Build Coastguard Worker since some C++ compilers masquerading as C compilers 15511*6a54128fSAndroid Build Coastguard Worker incorrectly reject 9223372036854775807. */ 15512*6a54128fSAndroid Build Coastguard Worker#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 15513*6a54128fSAndroid Build Coastguard Worker int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15514*6a54128fSAndroid Build Coastguard Worker && LARGE_OFF_T % 2147483647 == 1) 15515*6a54128fSAndroid Build Coastguard Worker ? 1 : -1]; 15516*6a54128fSAndroid Build Coastguard Workerint 15517*6a54128fSAndroid Build Coastguard Workermain (void) 15518*6a54128fSAndroid Build Coastguard Worker{ 15519*6a54128fSAndroid Build Coastguard Worker 15520*6a54128fSAndroid Build Coastguard Worker ; 15521*6a54128fSAndroid Build Coastguard Worker return 0; 15522*6a54128fSAndroid Build Coastguard Worker} 15523*6a54128fSAndroid Build Coastguard Worker_ACEOF 15524*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 15525*6a54128fSAndroid Build Coastguard Workerthen : 15526*6a54128fSAndroid Build Coastguard Worker ac_cv_sys_file_offset_bits=64; break 15527*6a54128fSAndroid Build Coastguard Workerfi 15528*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15529*6a54128fSAndroid Build Coastguard Worker ac_cv_sys_file_offset_bits=unknown 15530*6a54128fSAndroid Build Coastguard Worker break 15531*6a54128fSAndroid Build Coastguard Workerdone 15532*6a54128fSAndroid Build Coastguard Workerfi 15533*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 15534*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 15535*6a54128fSAndroid Build Coastguard Workercase $ac_cv_sys_file_offset_bits in #( 15536*6a54128fSAndroid Build Coastguard Worker no | unknown) ;; 15537*6a54128fSAndroid Build Coastguard Worker *) 15538*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 15539*6a54128fSAndroid Build Coastguard Worker;; 15540*6a54128fSAndroid Build Coastguard Workeresac 15541*6a54128fSAndroid Build Coastguard Workerrm -rf conftest* 15542*6a54128fSAndroid Build Coastguard Worker if test $ac_cv_sys_file_offset_bits = unknown; then 15543*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 15544*6a54128fSAndroid Build Coastguard Workerprintf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 15545*6a54128fSAndroid Build Coastguard Workerif test ${ac_cv_sys_large_files+y} 15546*6a54128fSAndroid Build Coastguard Workerthen : 15547*6a54128fSAndroid Build Coastguard Worker printf %s "(cached) " >&6 15548*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15549*6a54128fSAndroid Build Coastguard Worker while :; do 15550*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15551*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 15552*6a54128fSAndroid Build Coastguard Worker#include <sys/types.h> 15553*6a54128fSAndroid Build Coastguard Worker /* Check that off_t can represent 2**63 - 1 correctly. 15554*6a54128fSAndroid Build Coastguard Worker We can't simply define LARGE_OFF_T to be 9223372036854775807, 15555*6a54128fSAndroid Build Coastguard Worker since some C++ compilers masquerading as C compilers 15556*6a54128fSAndroid Build Coastguard Worker incorrectly reject 9223372036854775807. */ 15557*6a54128fSAndroid Build Coastguard Worker#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 15558*6a54128fSAndroid Build Coastguard Worker int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15559*6a54128fSAndroid Build Coastguard Worker && LARGE_OFF_T % 2147483647 == 1) 15560*6a54128fSAndroid Build Coastguard Worker ? 1 : -1]; 15561*6a54128fSAndroid Build Coastguard Workerint 15562*6a54128fSAndroid Build Coastguard Workermain (void) 15563*6a54128fSAndroid Build Coastguard Worker{ 15564*6a54128fSAndroid Build Coastguard Worker 15565*6a54128fSAndroid Build Coastguard Worker ; 15566*6a54128fSAndroid Build Coastguard Worker return 0; 15567*6a54128fSAndroid Build Coastguard Worker} 15568*6a54128fSAndroid Build Coastguard Worker_ACEOF 15569*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 15570*6a54128fSAndroid Build Coastguard Workerthen : 15571*6a54128fSAndroid Build Coastguard Worker ac_cv_sys_large_files=no; break 15572*6a54128fSAndroid Build Coastguard Workerfi 15573*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15574*6a54128fSAndroid Build Coastguard Worker cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15575*6a54128fSAndroid Build Coastguard Worker/* end confdefs.h. */ 15576*6a54128fSAndroid Build Coastguard Worker#define _LARGE_FILES 1 15577*6a54128fSAndroid Build Coastguard Worker#include <sys/types.h> 15578*6a54128fSAndroid Build Coastguard Worker /* Check that off_t can represent 2**63 - 1 correctly. 15579*6a54128fSAndroid Build Coastguard Worker We can't simply define LARGE_OFF_T to be 9223372036854775807, 15580*6a54128fSAndroid Build Coastguard Worker since some C++ compilers masquerading as C compilers 15581*6a54128fSAndroid Build Coastguard Worker incorrectly reject 9223372036854775807. */ 15582*6a54128fSAndroid Build Coastguard Worker#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 15583*6a54128fSAndroid Build Coastguard Worker int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15584*6a54128fSAndroid Build Coastguard Worker && LARGE_OFF_T % 2147483647 == 1) 15585*6a54128fSAndroid Build Coastguard Worker ? 1 : -1]; 15586*6a54128fSAndroid Build Coastguard Workerint 15587*6a54128fSAndroid Build Coastguard Workermain (void) 15588*6a54128fSAndroid Build Coastguard Worker{ 15589*6a54128fSAndroid Build Coastguard Worker 15590*6a54128fSAndroid Build Coastguard Worker ; 15591*6a54128fSAndroid Build Coastguard Worker return 0; 15592*6a54128fSAndroid Build Coastguard Worker} 15593*6a54128fSAndroid Build Coastguard Worker_ACEOF 15594*6a54128fSAndroid Build Coastguard Workerif ac_fn_c_try_compile "$LINENO" 15595*6a54128fSAndroid Build Coastguard Workerthen : 15596*6a54128fSAndroid Build Coastguard Worker ac_cv_sys_large_files=1; break 15597*6a54128fSAndroid Build Coastguard Workerfi 15598*6a54128fSAndroid Build Coastguard Workerrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15599*6a54128fSAndroid Build Coastguard Worker ac_cv_sys_large_files=unknown 15600*6a54128fSAndroid Build Coastguard Worker break 15601*6a54128fSAndroid Build Coastguard Workerdone 15602*6a54128fSAndroid Build Coastguard Workerfi 15603*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 15604*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$ac_cv_sys_large_files" >&6; } 15605*6a54128fSAndroid Build Coastguard Workercase $ac_cv_sys_large_files in #( 15606*6a54128fSAndroid Build Coastguard Worker no | unknown) ;; 15607*6a54128fSAndroid Build Coastguard Worker *) 15608*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 15609*6a54128fSAndroid Build Coastguard Worker;; 15610*6a54128fSAndroid Build Coastguard Workeresac 15611*6a54128fSAndroid Build Coastguard Workerrm -rf conftest* 15612*6a54128fSAndroid Build Coastguard Worker fi 15613*6a54128fSAndroid Build Coastguard Workerfi 15614*6a54128fSAndroid Build Coastguard Worker 15615*6a54128fSAndroid Build Coastguard Worker 15616*6a54128fSAndroid Build Coastguard Workertest -d lib || mkdir lib 15617*6a54128fSAndroid Build Coastguard Workertest -d include || mkdir include 15618*6a54128fSAndroid Build Coastguard Workertest -d include/linux || mkdir include/linux 15619*6a54128fSAndroid Build Coastguard Workertest -d include/asm || mkdir include/asm 15620*6a54128fSAndroid Build Coastguard Workerif test -z "$UUID_CMT" ; then 15621*6a54128fSAndroid Build Coastguard Worker uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \ 15622*6a54128fSAndroid Build Coastguard Worker lib/uuid/uuid_types.h" 15623*6a54128fSAndroid Build Coastguard Workerfi 15624*6a54128fSAndroid Build Coastguard Workerif test -z "$BLKID_CMT" ; then 15625*6a54128fSAndroid Build Coastguard Worker blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \ 15626*6a54128fSAndroid Build Coastguard Worker lib/blkid/blkid_types.h" 15627*6a54128fSAndroid Build Coastguard Workerfi 15628*6a54128fSAndroid Build Coastguard Workerfor i in MCONFIG Makefile \ 15629*6a54128fSAndroid Build Coastguard Worker util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ 15630*6a54128fSAndroid Build Coastguard Worker lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ 15631*6a54128fSAndroid Build Coastguard Worker lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ 15632*6a54128fSAndroid Build Coastguard Worker $uuid_out_list $blkid_out_list lib/support/Makefile \ 15633*6a54128fSAndroid Build Coastguard Worker lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \ 15634*6a54128fSAndroid Build Coastguard Worker misc/Makefile ext2ed/Makefile e2fsck/Makefile \ 15635*6a54128fSAndroid Build Coastguard Worker debugfs/Makefile tests/Makefile tests/progs/Makefile \ 15636*6a54128fSAndroid Build Coastguard Worker tests/fuzz/Makefile resize/Makefile doc/Makefile \ 15637*6a54128fSAndroid Build Coastguard Worker po/Makefile.in scrub/Makefile; do 15638*6a54128fSAndroid Build Coastguard Worker if test -d `dirname ${srcdir}/$i` ; then 15639*6a54128fSAndroid Build Coastguard Worker outlist="$outlist $i" 15640*6a54128fSAndroid Build Coastguard Worker fi 15641*6a54128fSAndroid Build Coastguard Workerdone 15642*6a54128fSAndroid Build Coastguard Workerac_config_files="$ac_config_files $outlist" 15643*6a54128fSAndroid Build Coastguard Worker 15644*6a54128fSAndroid Build Coastguard Workercat >confcache <<\_ACEOF 15645*6a54128fSAndroid Build Coastguard Worker# This file is a shell script that caches the results of configure 15646*6a54128fSAndroid Build Coastguard Worker# tests run on this system so they can be shared between configure 15647*6a54128fSAndroid Build Coastguard Worker# scripts and configure runs, see configure's option --config-cache. 15648*6a54128fSAndroid Build Coastguard Worker# It is not useful on other systems. If it contains results you don't 15649*6a54128fSAndroid Build Coastguard Worker# want to keep, you may remove or edit it. 15650*6a54128fSAndroid Build Coastguard Worker# 15651*6a54128fSAndroid Build Coastguard Worker# config.status only pays attention to the cache file if you give it 15652*6a54128fSAndroid Build Coastguard Worker# the --recheck option to rerun configure. 15653*6a54128fSAndroid Build Coastguard Worker# 15654*6a54128fSAndroid Build Coastguard Worker# `ac_cv_env_foo' variables (set or unset) will be overridden when 15655*6a54128fSAndroid Build Coastguard Worker# loading this file, other *unset* `ac_cv_foo' will be assigned the 15656*6a54128fSAndroid Build Coastguard Worker# following values. 15657*6a54128fSAndroid Build Coastguard Worker 15658*6a54128fSAndroid Build Coastguard Worker_ACEOF 15659*6a54128fSAndroid Build Coastguard Worker 15660*6a54128fSAndroid Build Coastguard Worker# The following way of writing the cache mishandles newlines in values, 15661*6a54128fSAndroid Build Coastguard Worker# but we know of no workaround that is simple, portable, and efficient. 15662*6a54128fSAndroid Build Coastguard Worker# So, we kill variables containing newlines. 15663*6a54128fSAndroid Build Coastguard Worker# Ultrix sh set writes to stderr and can't be redirected directly, 15664*6a54128fSAndroid Build Coastguard Worker# and sets the high bit in the cache file unless we assign to the vars. 15665*6a54128fSAndroid Build Coastguard Worker( 15666*6a54128fSAndroid Build Coastguard Worker for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15667*6a54128fSAndroid Build Coastguard Worker eval ac_val=\$$ac_var 15668*6a54128fSAndroid Build Coastguard Worker case $ac_val in #( 15669*6a54128fSAndroid Build Coastguard Worker *${as_nl}*) 15670*6a54128fSAndroid Build Coastguard Worker case $ac_var in #( 15671*6a54128fSAndroid Build Coastguard Worker *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15672*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15673*6a54128fSAndroid Build Coastguard Worker esac 15674*6a54128fSAndroid Build Coastguard Worker case $ac_var in #( 15675*6a54128fSAndroid Build Coastguard Worker _ | IFS | as_nl) ;; #( 15676*6a54128fSAndroid Build Coastguard Worker BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15677*6a54128fSAndroid Build Coastguard Worker *) { eval $ac_var=; unset $ac_var;} ;; 15678*6a54128fSAndroid Build Coastguard Worker esac ;; 15679*6a54128fSAndroid Build Coastguard Worker esac 15680*6a54128fSAndroid Build Coastguard Worker done 15681*6a54128fSAndroid Build Coastguard Worker 15682*6a54128fSAndroid Build Coastguard Worker (set) 2>&1 | 15683*6a54128fSAndroid Build Coastguard Worker case $as_nl`(ac_space=' '; set) 2>&1` in #( 15684*6a54128fSAndroid Build Coastguard Worker *${as_nl}ac_space=\ *) 15685*6a54128fSAndroid Build Coastguard Worker # `set' does not quote correctly, so add quotes: double-quote 15686*6a54128fSAndroid Build Coastguard Worker # substitution turns \\\\ into \\, and sed turns \\ into \. 15687*6a54128fSAndroid Build Coastguard Worker sed -n \ 15688*6a54128fSAndroid Build Coastguard Worker "s/'/'\\\\''/g; 15689*6a54128fSAndroid Build Coastguard Worker s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15690*6a54128fSAndroid Build Coastguard Worker ;; #( 15691*6a54128fSAndroid Build Coastguard Worker *) 15692*6a54128fSAndroid Build Coastguard Worker # `set' quotes correctly as required by POSIX, so do not add quotes. 15693*6a54128fSAndroid Build Coastguard Worker sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15694*6a54128fSAndroid Build Coastguard Worker ;; 15695*6a54128fSAndroid Build Coastguard Worker esac | 15696*6a54128fSAndroid Build Coastguard Worker sort 15697*6a54128fSAndroid Build Coastguard Worker) | 15698*6a54128fSAndroid Build Coastguard Worker sed ' 15699*6a54128fSAndroid Build Coastguard Worker /^ac_cv_env_/b end 15700*6a54128fSAndroid Build Coastguard Worker t clear 15701*6a54128fSAndroid Build Coastguard Worker :clear 15702*6a54128fSAndroid Build Coastguard Worker s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 15703*6a54128fSAndroid Build Coastguard Worker t end 15704*6a54128fSAndroid Build Coastguard Worker s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15705*6a54128fSAndroid Build Coastguard Worker :end' >>confcache 15706*6a54128fSAndroid Build Coastguard Workerif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15707*6a54128fSAndroid Build Coastguard Worker if test -w "$cache_file"; then 15708*6a54128fSAndroid Build Coastguard Worker if test "x$cache_file" != "x/dev/null"; then 15709*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15710*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: updating cache $cache_file" >&6;} 15711*6a54128fSAndroid Build Coastguard Worker if test ! -f "$cache_file" || test -h "$cache_file"; then 15712*6a54128fSAndroid Build Coastguard Worker cat confcache >"$cache_file" 15713*6a54128fSAndroid Build Coastguard Worker else 15714*6a54128fSAndroid Build Coastguard Worker case $cache_file in #( 15715*6a54128fSAndroid Build Coastguard Worker */* | ?:*) 15716*6a54128fSAndroid Build Coastguard Worker mv -f confcache "$cache_file"$$ && 15717*6a54128fSAndroid Build Coastguard Worker mv -f "$cache_file"$$ "$cache_file" ;; #( 15718*6a54128fSAndroid Build Coastguard Worker *) 15719*6a54128fSAndroid Build Coastguard Worker mv -f confcache "$cache_file" ;; 15720*6a54128fSAndroid Build Coastguard Worker esac 15721*6a54128fSAndroid Build Coastguard Worker fi 15722*6a54128fSAndroid Build Coastguard Worker fi 15723*6a54128fSAndroid Build Coastguard Worker else 15724*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15725*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 15726*6a54128fSAndroid Build Coastguard Worker fi 15727*6a54128fSAndroid Build Coastguard Workerfi 15728*6a54128fSAndroid Build Coastguard Workerrm -f confcache 15729*6a54128fSAndroid Build Coastguard Worker 15730*6a54128fSAndroid Build Coastguard Workertest "x$prefix" = xNONE && prefix=$ac_default_prefix 15731*6a54128fSAndroid Build Coastguard Worker# Let make expand exec_prefix. 15732*6a54128fSAndroid Build Coastguard Workertest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15733*6a54128fSAndroid Build Coastguard Worker 15734*6a54128fSAndroid Build Coastguard WorkerDEFS=-DHAVE_CONFIG_H 15735*6a54128fSAndroid Build Coastguard Worker 15736*6a54128fSAndroid Build Coastguard Workerac_libobjs= 15737*6a54128fSAndroid Build Coastguard Workerac_ltlibobjs= 15738*6a54128fSAndroid Build Coastguard WorkerU= 15739*6a54128fSAndroid Build Coastguard Workerfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15740*6a54128fSAndroid Build Coastguard Worker # 1. Remove the extension, and $U if already installed. 15741*6a54128fSAndroid Build Coastguard Worker ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15742*6a54128fSAndroid Build Coastguard Worker ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 15743*6a54128fSAndroid Build Coastguard Worker # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15744*6a54128fSAndroid Build Coastguard Worker # will be set to the directory where LIBOBJS objects are built. 15745*6a54128fSAndroid Build Coastguard Worker as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15746*6a54128fSAndroid Build Coastguard Worker as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15747*6a54128fSAndroid Build Coastguard Workerdone 15748*6a54128fSAndroid Build Coastguard WorkerLIBOBJS=$ac_libobjs 15749*6a54128fSAndroid Build Coastguard Worker 15750*6a54128fSAndroid Build Coastguard WorkerLTLIBOBJS=$ac_ltlibobjs 15751*6a54128fSAndroid Build Coastguard Worker 15752*6a54128fSAndroid Build Coastguard Worker 15753*6a54128fSAndroid Build Coastguard Worker 15754*6a54128fSAndroid Build Coastguard Worker 15755*6a54128fSAndroid Build Coastguard Worker: "${CONFIG_STATUS=./config.status}" 15756*6a54128fSAndroid Build Coastguard Workerac_write_fail=0 15757*6a54128fSAndroid Build Coastguard Workerac_clean_files_save=$ac_clean_files 15758*6a54128fSAndroid Build Coastguard Workerac_clean_files="$ac_clean_files $CONFIG_STATUS" 15759*6a54128fSAndroid Build Coastguard Worker{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15760*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 15761*6a54128fSAndroid Build Coastguard Workeras_write_fail=0 15762*6a54128fSAndroid Build Coastguard Workercat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15763*6a54128fSAndroid Build Coastguard Worker#! $SHELL 15764*6a54128fSAndroid Build Coastguard Worker# Generated by $as_me. 15765*6a54128fSAndroid Build Coastguard Worker# Run this file to recreate the current configuration. 15766*6a54128fSAndroid Build Coastguard Worker# Compiler output produced by configure, useful for debugging 15767*6a54128fSAndroid Build Coastguard Worker# configure, is in config.log if it exists. 15768*6a54128fSAndroid Build Coastguard Worker 15769*6a54128fSAndroid Build Coastguard Workerdebug=false 15770*6a54128fSAndroid Build Coastguard Workerac_cs_recheck=false 15771*6a54128fSAndroid Build Coastguard Workerac_cs_silent=false 15772*6a54128fSAndroid Build Coastguard Worker 15773*6a54128fSAndroid Build Coastguard WorkerSHELL=\${CONFIG_SHELL-$SHELL} 15774*6a54128fSAndroid Build Coastguard Workerexport SHELL 15775*6a54128fSAndroid Build Coastguard Worker_ASEOF 15776*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15777*6a54128fSAndroid Build Coastguard Worker## -------------------- ## 15778*6a54128fSAndroid Build Coastguard Worker## M4sh Initialization. ## 15779*6a54128fSAndroid Build Coastguard Worker## -------------------- ## 15780*6a54128fSAndroid Build Coastguard Worker 15781*6a54128fSAndroid Build Coastguard Worker# Be more Bourne compatible 15782*6a54128fSAndroid Build Coastguard WorkerDUALCASE=1; export DUALCASE # for MKS sh 15783*6a54128fSAndroid Build Coastguard Workeras_nop=: 15784*6a54128fSAndroid Build Coastguard Workerif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 15785*6a54128fSAndroid Build Coastguard Workerthen : 15786*6a54128fSAndroid Build Coastguard Worker emulate sh 15787*6a54128fSAndroid Build Coastguard Worker NULLCMD=: 15788*6a54128fSAndroid Build Coastguard Worker # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15789*6a54128fSAndroid Build Coastguard Worker # is contrary to our usage. Disable this feature. 15790*6a54128fSAndroid Build Coastguard Worker alias -g '${1+"$@"}'='"$@"' 15791*6a54128fSAndroid Build Coastguard Worker setopt NO_GLOB_SUBST 15792*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15793*6a54128fSAndroid Build Coastguard Worker case `(set -o) 2>/dev/null` in #( 15794*6a54128fSAndroid Build Coastguard Worker *posix*) : 15795*6a54128fSAndroid Build Coastguard Worker set -o posix ;; #( 15796*6a54128fSAndroid Build Coastguard Worker *) : 15797*6a54128fSAndroid Build Coastguard Worker ;; 15798*6a54128fSAndroid Build Coastguard Workeresac 15799*6a54128fSAndroid Build Coastguard Workerfi 15800*6a54128fSAndroid Build Coastguard Worker 15801*6a54128fSAndroid Build Coastguard Worker 15802*6a54128fSAndroid Build Coastguard Worker 15803*6a54128fSAndroid Build Coastguard Worker# Reset variables that may have inherited troublesome values from 15804*6a54128fSAndroid Build Coastguard Worker# the environment. 15805*6a54128fSAndroid Build Coastguard Worker 15806*6a54128fSAndroid Build Coastguard Worker# IFS needs to be set, to space, tab, and newline, in precisely that order. 15807*6a54128fSAndroid Build Coastguard Worker# (If _AS_PATH_WALK were called with IFS unset, it would have the 15808*6a54128fSAndroid Build Coastguard Worker# side effect of setting IFS to empty, thus disabling word splitting.) 15809*6a54128fSAndroid Build Coastguard Worker# Quoting is to prevent editors from complaining about space-tab. 15810*6a54128fSAndroid Build Coastguard Workeras_nl=' 15811*6a54128fSAndroid Build Coastguard Worker' 15812*6a54128fSAndroid Build Coastguard Workerexport as_nl 15813*6a54128fSAndroid Build Coastguard WorkerIFS=" "" $as_nl" 15814*6a54128fSAndroid Build Coastguard Worker 15815*6a54128fSAndroid Build Coastguard WorkerPS1='$ ' 15816*6a54128fSAndroid Build Coastguard WorkerPS2='> ' 15817*6a54128fSAndroid Build Coastguard WorkerPS4='+ ' 15818*6a54128fSAndroid Build Coastguard Worker 15819*6a54128fSAndroid Build Coastguard Worker# Ensure predictable behavior from utilities with locale-dependent output. 15820*6a54128fSAndroid Build Coastguard WorkerLC_ALL=C 15821*6a54128fSAndroid Build Coastguard Workerexport LC_ALL 15822*6a54128fSAndroid Build Coastguard WorkerLANGUAGE=C 15823*6a54128fSAndroid Build Coastguard Workerexport LANGUAGE 15824*6a54128fSAndroid Build Coastguard Worker 15825*6a54128fSAndroid Build Coastguard Worker# We cannot yet rely on "unset" to work, but we need these variables 15826*6a54128fSAndroid Build Coastguard Worker# to be unset--not just set to an empty or harmless value--now, to 15827*6a54128fSAndroid Build Coastguard Worker# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 15828*6a54128fSAndroid Build Coastguard Worker# also avoids known problems related to "unset" and subshell syntax 15829*6a54128fSAndroid Build Coastguard Worker# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 15830*6a54128fSAndroid Build Coastguard Workerfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 15831*6a54128fSAndroid Build Coastguard Workerdo eval test \${$as_var+y} \ 15832*6a54128fSAndroid Build Coastguard Worker && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15833*6a54128fSAndroid Build Coastguard Workerdone 15834*6a54128fSAndroid Build Coastguard Worker 15835*6a54128fSAndroid Build Coastguard Worker# Ensure that fds 0, 1, and 2 are open. 15836*6a54128fSAndroid Build Coastguard Workerif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 15837*6a54128fSAndroid Build Coastguard Workerif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 15838*6a54128fSAndroid Build Coastguard Workerif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 15839*6a54128fSAndroid Build Coastguard Worker 15840*6a54128fSAndroid Build Coastguard Worker# The user is always right. 15841*6a54128fSAndroid Build Coastguard Workerif ${PATH_SEPARATOR+false} :; then 15842*6a54128fSAndroid Build Coastguard Worker PATH_SEPARATOR=: 15843*6a54128fSAndroid Build Coastguard Worker (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15844*6a54128fSAndroid Build Coastguard Worker (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15845*6a54128fSAndroid Build Coastguard Worker PATH_SEPARATOR=';' 15846*6a54128fSAndroid Build Coastguard Worker } 15847*6a54128fSAndroid Build Coastguard Workerfi 15848*6a54128fSAndroid Build Coastguard Worker 15849*6a54128fSAndroid Build Coastguard Worker 15850*6a54128fSAndroid Build Coastguard Worker# Find who we are. Look in the path if we contain no directory separator. 15851*6a54128fSAndroid Build Coastguard Workeras_myself= 15852*6a54128fSAndroid Build Coastguard Workercase $0 in #(( 15853*6a54128fSAndroid Build Coastguard Worker *[\\/]* ) as_myself=$0 ;; 15854*6a54128fSAndroid Build Coastguard Worker *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15855*6a54128fSAndroid Build Coastguard Workerfor as_dir in $PATH 15856*6a54128fSAndroid Build Coastguard Workerdo 15857*6a54128fSAndroid Build Coastguard Worker IFS=$as_save_IFS 15858*6a54128fSAndroid Build Coastguard Worker case $as_dir in #((( 15859*6a54128fSAndroid Build Coastguard Worker '') as_dir=./ ;; 15860*6a54128fSAndroid Build Coastguard Worker */) ;; 15861*6a54128fSAndroid Build Coastguard Worker *) as_dir=$as_dir/ ;; 15862*6a54128fSAndroid Build Coastguard Worker esac 15863*6a54128fSAndroid Build Coastguard Worker test -r "$as_dir$0" && as_myself=$as_dir$0 && break 15864*6a54128fSAndroid Build Coastguard Worker done 15865*6a54128fSAndroid Build Coastguard WorkerIFS=$as_save_IFS 15866*6a54128fSAndroid Build Coastguard Worker 15867*6a54128fSAndroid Build Coastguard Worker ;; 15868*6a54128fSAndroid Build Coastguard Workeresac 15869*6a54128fSAndroid Build Coastguard Worker# We did not find ourselves, most probably we were run as `sh COMMAND' 15870*6a54128fSAndroid Build Coastguard Worker# in which case we are not to be found in the path. 15871*6a54128fSAndroid Build Coastguard Workerif test "x$as_myself" = x; then 15872*6a54128fSAndroid Build Coastguard Worker as_myself=$0 15873*6a54128fSAndroid Build Coastguard Workerfi 15874*6a54128fSAndroid Build Coastguard Workerif test ! -f "$as_myself"; then 15875*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15876*6a54128fSAndroid Build Coastguard Worker exit 1 15877*6a54128fSAndroid Build Coastguard Workerfi 15878*6a54128fSAndroid Build Coastguard Worker 15879*6a54128fSAndroid Build Coastguard Worker 15880*6a54128fSAndroid Build Coastguard Worker 15881*6a54128fSAndroid Build Coastguard Worker# as_fn_error STATUS ERROR [LINENO LOG_FD] 15882*6a54128fSAndroid Build Coastguard Worker# ---------------------------------------- 15883*6a54128fSAndroid Build Coastguard Worker# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15884*6a54128fSAndroid Build Coastguard Worker# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15885*6a54128fSAndroid Build Coastguard Worker# script with STATUS, using 1 if that was 0. 15886*6a54128fSAndroid Build Coastguard Workeras_fn_error () 15887*6a54128fSAndroid Build Coastguard Worker{ 15888*6a54128fSAndroid Build Coastguard Worker as_status=$1; test $as_status -eq 0 && as_status=1 15889*6a54128fSAndroid Build Coastguard Worker if test "$4"; then 15890*6a54128fSAndroid Build Coastguard Worker as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15891*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15892*6a54128fSAndroid Build Coastguard Worker fi 15893*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$as_me: error: $2" >&2 15894*6a54128fSAndroid Build Coastguard Worker as_fn_exit $as_status 15895*6a54128fSAndroid Build Coastguard Worker} # as_fn_error 15896*6a54128fSAndroid Build Coastguard Worker 15897*6a54128fSAndroid Build Coastguard Worker 15898*6a54128fSAndroid Build Coastguard Worker 15899*6a54128fSAndroid Build Coastguard Worker# as_fn_set_status STATUS 15900*6a54128fSAndroid Build Coastguard Worker# ----------------------- 15901*6a54128fSAndroid Build Coastguard Worker# Set $? to STATUS, without forking. 15902*6a54128fSAndroid Build Coastguard Workeras_fn_set_status () 15903*6a54128fSAndroid Build Coastguard Worker{ 15904*6a54128fSAndroid Build Coastguard Worker return $1 15905*6a54128fSAndroid Build Coastguard Worker} # as_fn_set_status 15906*6a54128fSAndroid Build Coastguard Worker 15907*6a54128fSAndroid Build Coastguard Worker# as_fn_exit STATUS 15908*6a54128fSAndroid Build Coastguard Worker# ----------------- 15909*6a54128fSAndroid Build Coastguard Worker# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15910*6a54128fSAndroid Build Coastguard Workeras_fn_exit () 15911*6a54128fSAndroid Build Coastguard Worker{ 15912*6a54128fSAndroid Build Coastguard Worker set +e 15913*6a54128fSAndroid Build Coastguard Worker as_fn_set_status $1 15914*6a54128fSAndroid Build Coastguard Worker exit $1 15915*6a54128fSAndroid Build Coastguard Worker} # as_fn_exit 15916*6a54128fSAndroid Build Coastguard Worker 15917*6a54128fSAndroid Build Coastguard Worker# as_fn_unset VAR 15918*6a54128fSAndroid Build Coastguard Worker# --------------- 15919*6a54128fSAndroid Build Coastguard Worker# Portably unset VAR. 15920*6a54128fSAndroid Build Coastguard Workeras_fn_unset () 15921*6a54128fSAndroid Build Coastguard Worker{ 15922*6a54128fSAndroid Build Coastguard Worker { eval $1=; unset $1;} 15923*6a54128fSAndroid Build Coastguard Worker} 15924*6a54128fSAndroid Build Coastguard Workeras_unset=as_fn_unset 15925*6a54128fSAndroid Build Coastguard Worker 15926*6a54128fSAndroid Build Coastguard Worker# as_fn_append VAR VALUE 15927*6a54128fSAndroid Build Coastguard Worker# ---------------------- 15928*6a54128fSAndroid Build Coastguard Worker# Append the text in VALUE to the end of the definition contained in VAR. Take 15929*6a54128fSAndroid Build Coastguard Worker# advantage of any shell optimizations that allow amortized linear growth over 15930*6a54128fSAndroid Build Coastguard Worker# repeated appends, instead of the typical quadratic growth present in naive 15931*6a54128fSAndroid Build Coastguard Worker# implementations. 15932*6a54128fSAndroid Build Coastguard Workerif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 15933*6a54128fSAndroid Build Coastguard Workerthen : 15934*6a54128fSAndroid Build Coastguard Worker eval 'as_fn_append () 15935*6a54128fSAndroid Build Coastguard Worker { 15936*6a54128fSAndroid Build Coastguard Worker eval $1+=\$2 15937*6a54128fSAndroid Build Coastguard Worker }' 15938*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15939*6a54128fSAndroid Build Coastguard Worker as_fn_append () 15940*6a54128fSAndroid Build Coastguard Worker { 15941*6a54128fSAndroid Build Coastguard Worker eval $1=\$$1\$2 15942*6a54128fSAndroid Build Coastguard Worker } 15943*6a54128fSAndroid Build Coastguard Workerfi # as_fn_append 15944*6a54128fSAndroid Build Coastguard Worker 15945*6a54128fSAndroid Build Coastguard Worker# as_fn_arith ARG... 15946*6a54128fSAndroid Build Coastguard Worker# ------------------ 15947*6a54128fSAndroid Build Coastguard Worker# Perform arithmetic evaluation on the ARGs, and store the result in the 15948*6a54128fSAndroid Build Coastguard Worker# global $as_val. Take advantage of shells that can avoid forks. The arguments 15949*6a54128fSAndroid Build Coastguard Worker# must be portable across $(()) and expr. 15950*6a54128fSAndroid Build Coastguard Workerif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 15951*6a54128fSAndroid Build Coastguard Workerthen : 15952*6a54128fSAndroid Build Coastguard Worker eval 'as_fn_arith () 15953*6a54128fSAndroid Build Coastguard Worker { 15954*6a54128fSAndroid Build Coastguard Worker as_val=$(( $* )) 15955*6a54128fSAndroid Build Coastguard Worker }' 15956*6a54128fSAndroid Build Coastguard Workerelse $as_nop 15957*6a54128fSAndroid Build Coastguard Worker as_fn_arith () 15958*6a54128fSAndroid Build Coastguard Worker { 15959*6a54128fSAndroid Build Coastguard Worker as_val=`expr "$@" || test $? -eq 1` 15960*6a54128fSAndroid Build Coastguard Worker } 15961*6a54128fSAndroid Build Coastguard Workerfi # as_fn_arith 15962*6a54128fSAndroid Build Coastguard Worker 15963*6a54128fSAndroid Build Coastguard Worker 15964*6a54128fSAndroid Build Coastguard Workerif expr a : '\(a\)' >/dev/null 2>&1 && 15965*6a54128fSAndroid Build Coastguard Worker test "X`expr 00001 : '.*\(...\)'`" = X001; then 15966*6a54128fSAndroid Build Coastguard Worker as_expr=expr 15967*6a54128fSAndroid Build Coastguard Workerelse 15968*6a54128fSAndroid Build Coastguard Worker as_expr=false 15969*6a54128fSAndroid Build Coastguard Workerfi 15970*6a54128fSAndroid Build Coastguard Worker 15971*6a54128fSAndroid Build Coastguard Workerif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15972*6a54128fSAndroid Build Coastguard Worker as_basename=basename 15973*6a54128fSAndroid Build Coastguard Workerelse 15974*6a54128fSAndroid Build Coastguard Worker as_basename=false 15975*6a54128fSAndroid Build Coastguard Workerfi 15976*6a54128fSAndroid Build Coastguard Worker 15977*6a54128fSAndroid Build Coastguard Workerif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15978*6a54128fSAndroid Build Coastguard Worker as_dirname=dirname 15979*6a54128fSAndroid Build Coastguard Workerelse 15980*6a54128fSAndroid Build Coastguard Worker as_dirname=false 15981*6a54128fSAndroid Build Coastguard Workerfi 15982*6a54128fSAndroid Build Coastguard Worker 15983*6a54128fSAndroid Build Coastguard Workeras_me=`$as_basename -- "$0" || 15984*6a54128fSAndroid Build Coastguard Worker$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15985*6a54128fSAndroid Build Coastguard Worker X"$0" : 'X\(//\)$' \| \ 15986*6a54128fSAndroid Build Coastguard Worker X"$0" : 'X\(/\)' \| . 2>/dev/null || 15987*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" X/"$0" | 15988*6a54128fSAndroid Build Coastguard Worker sed '/^.*\/\([^/][^/]*\)\/*$/{ 15989*6a54128fSAndroid Build Coastguard Worker s//\1/ 15990*6a54128fSAndroid Build Coastguard Worker q 15991*6a54128fSAndroid Build Coastguard Worker } 15992*6a54128fSAndroid Build Coastguard Worker /^X\/\(\/\/\)$/{ 15993*6a54128fSAndroid Build Coastguard Worker s//\1/ 15994*6a54128fSAndroid Build Coastguard Worker q 15995*6a54128fSAndroid Build Coastguard Worker } 15996*6a54128fSAndroid Build Coastguard Worker /^X\/\(\/\).*/{ 15997*6a54128fSAndroid Build Coastguard Worker s//\1/ 15998*6a54128fSAndroid Build Coastguard Worker q 15999*6a54128fSAndroid Build Coastguard Worker } 16000*6a54128fSAndroid Build Coastguard Worker s/.*/./; q'` 16001*6a54128fSAndroid Build Coastguard Worker 16002*6a54128fSAndroid Build Coastguard Worker# Avoid depending upon Character Ranges. 16003*6a54128fSAndroid Build Coastguard Workeras_cr_letters='abcdefghijklmnopqrstuvwxyz' 16004*6a54128fSAndroid Build Coastguard Workeras_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16005*6a54128fSAndroid Build Coastguard Workeras_cr_Letters=$as_cr_letters$as_cr_LETTERS 16006*6a54128fSAndroid Build Coastguard Workeras_cr_digits='0123456789' 16007*6a54128fSAndroid Build Coastguard Workeras_cr_alnum=$as_cr_Letters$as_cr_digits 16008*6a54128fSAndroid Build Coastguard Worker 16009*6a54128fSAndroid Build Coastguard Worker 16010*6a54128fSAndroid Build Coastguard Worker# Determine whether it's possible to make 'echo' print without a newline. 16011*6a54128fSAndroid Build Coastguard Worker# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 16012*6a54128fSAndroid Build Coastguard Worker# for compatibility with existing Makefiles. 16013*6a54128fSAndroid Build Coastguard WorkerECHO_C= ECHO_N= ECHO_T= 16014*6a54128fSAndroid Build Coastguard Workercase `echo -n x` in #((((( 16015*6a54128fSAndroid Build Coastguard Worker-n*) 16016*6a54128fSAndroid Build Coastguard Worker case `echo 'xy\c'` in 16017*6a54128fSAndroid Build Coastguard Worker *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16018*6a54128fSAndroid Build Coastguard Worker xy) ECHO_C='\c';; 16019*6a54128fSAndroid Build Coastguard Worker *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16020*6a54128fSAndroid Build Coastguard Worker ECHO_T=' ';; 16021*6a54128fSAndroid Build Coastguard Worker esac;; 16022*6a54128fSAndroid Build Coastguard Worker*) 16023*6a54128fSAndroid Build Coastguard Worker ECHO_N='-n';; 16024*6a54128fSAndroid Build Coastguard Workeresac 16025*6a54128fSAndroid Build Coastguard Worker 16026*6a54128fSAndroid Build Coastguard Worker# For backward compatibility with old third-party macros, we provide 16027*6a54128fSAndroid Build Coastguard Worker# the shell variables $as_echo and $as_echo_n. New code should use 16028*6a54128fSAndroid Build Coastguard Worker# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 16029*6a54128fSAndroid Build Coastguard Workeras_echo='printf %s\n' 16030*6a54128fSAndroid Build Coastguard Workeras_echo_n='printf %s' 16031*6a54128fSAndroid Build Coastguard Worker 16032*6a54128fSAndroid Build Coastguard Workerrm -f conf$$ conf$$.exe conf$$.file 16033*6a54128fSAndroid Build Coastguard Workerif test -d conf$$.dir; then 16034*6a54128fSAndroid Build Coastguard Worker rm -f conf$$.dir/conf$$.file 16035*6a54128fSAndroid Build Coastguard Workerelse 16036*6a54128fSAndroid Build Coastguard Worker rm -f conf$$.dir 16037*6a54128fSAndroid Build Coastguard Worker mkdir conf$$.dir 2>/dev/null 16038*6a54128fSAndroid Build Coastguard Workerfi 16039*6a54128fSAndroid Build Coastguard Workerif (echo >conf$$.file) 2>/dev/null; then 16040*6a54128fSAndroid Build Coastguard Worker if ln -s conf$$.file conf$$ 2>/dev/null; then 16041*6a54128fSAndroid Build Coastguard Worker as_ln_s='ln -s' 16042*6a54128fSAndroid Build Coastguard Worker # ... but there are two gotchas: 16043*6a54128fSAndroid Build Coastguard Worker # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16044*6a54128fSAndroid Build Coastguard Worker # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16045*6a54128fSAndroid Build Coastguard Worker # In both cases, we have to default to `cp -pR'. 16046*6a54128fSAndroid Build Coastguard Worker ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16047*6a54128fSAndroid Build Coastguard Worker as_ln_s='cp -pR' 16048*6a54128fSAndroid Build Coastguard Worker elif ln conf$$.file conf$$ 2>/dev/null; then 16049*6a54128fSAndroid Build Coastguard Worker as_ln_s=ln 16050*6a54128fSAndroid Build Coastguard Worker else 16051*6a54128fSAndroid Build Coastguard Worker as_ln_s='cp -pR' 16052*6a54128fSAndroid Build Coastguard Worker fi 16053*6a54128fSAndroid Build Coastguard Workerelse 16054*6a54128fSAndroid Build Coastguard Worker as_ln_s='cp -pR' 16055*6a54128fSAndroid Build Coastguard Workerfi 16056*6a54128fSAndroid Build Coastguard Workerrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16057*6a54128fSAndroid Build Coastguard Workerrmdir conf$$.dir 2>/dev/null 16058*6a54128fSAndroid Build Coastguard Worker 16059*6a54128fSAndroid Build Coastguard Worker 16060*6a54128fSAndroid Build Coastguard Worker# as_fn_mkdir_p 16061*6a54128fSAndroid Build Coastguard Worker# ------------- 16062*6a54128fSAndroid Build Coastguard Worker# Create "$as_dir" as a directory, including parents if necessary. 16063*6a54128fSAndroid Build Coastguard Workeras_fn_mkdir_p () 16064*6a54128fSAndroid Build Coastguard Worker{ 16065*6a54128fSAndroid Build Coastguard Worker 16066*6a54128fSAndroid Build Coastguard Worker case $as_dir in #( 16067*6a54128fSAndroid Build Coastguard Worker -*) as_dir=./$as_dir;; 16068*6a54128fSAndroid Build Coastguard Worker esac 16069*6a54128fSAndroid Build Coastguard Worker test -d "$as_dir" || eval $as_mkdir_p || { 16070*6a54128fSAndroid Build Coastguard Worker as_dirs= 16071*6a54128fSAndroid Build Coastguard Worker while :; do 16072*6a54128fSAndroid Build Coastguard Worker case $as_dir in #( 16073*6a54128fSAndroid Build Coastguard Worker *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16074*6a54128fSAndroid Build Coastguard Worker *) as_qdir=$as_dir;; 16075*6a54128fSAndroid Build Coastguard Worker esac 16076*6a54128fSAndroid Build Coastguard Worker as_dirs="'$as_qdir' $as_dirs" 16077*6a54128fSAndroid Build Coastguard Worker as_dir=`$as_dirname -- "$as_dir" || 16078*6a54128fSAndroid Build Coastguard Worker$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16079*6a54128fSAndroid Build Coastguard Worker X"$as_dir" : 'X\(//\)[^/]' \| \ 16080*6a54128fSAndroid Build Coastguard Worker X"$as_dir" : 'X\(//\)$' \| \ 16081*6a54128fSAndroid Build Coastguard Worker X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16082*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" X"$as_dir" | 16083*6a54128fSAndroid Build Coastguard Worker sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16084*6a54128fSAndroid Build Coastguard Worker s//\1/ 16085*6a54128fSAndroid Build Coastguard Worker q 16086*6a54128fSAndroid Build Coastguard Worker } 16087*6a54128fSAndroid Build Coastguard Worker /^X\(\/\/\)[^/].*/{ 16088*6a54128fSAndroid Build Coastguard Worker s//\1/ 16089*6a54128fSAndroid Build Coastguard Worker q 16090*6a54128fSAndroid Build Coastguard Worker } 16091*6a54128fSAndroid Build Coastguard Worker /^X\(\/\/\)$/{ 16092*6a54128fSAndroid Build Coastguard Worker s//\1/ 16093*6a54128fSAndroid Build Coastguard Worker q 16094*6a54128fSAndroid Build Coastguard Worker } 16095*6a54128fSAndroid Build Coastguard Worker /^X\(\/\).*/{ 16096*6a54128fSAndroid Build Coastguard Worker s//\1/ 16097*6a54128fSAndroid Build Coastguard Worker q 16098*6a54128fSAndroid Build Coastguard Worker } 16099*6a54128fSAndroid Build Coastguard Worker s/.*/./; q'` 16100*6a54128fSAndroid Build Coastguard Worker test -d "$as_dir" && break 16101*6a54128fSAndroid Build Coastguard Worker done 16102*6a54128fSAndroid Build Coastguard Worker test -z "$as_dirs" || eval "mkdir $as_dirs" 16103*6a54128fSAndroid Build Coastguard Worker } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16104*6a54128fSAndroid Build Coastguard Worker 16105*6a54128fSAndroid Build Coastguard Worker 16106*6a54128fSAndroid Build Coastguard Worker} # as_fn_mkdir_p 16107*6a54128fSAndroid Build Coastguard Workerif mkdir -p . 2>/dev/null; then 16108*6a54128fSAndroid Build Coastguard Worker as_mkdir_p='mkdir -p "$as_dir"' 16109*6a54128fSAndroid Build Coastguard Workerelse 16110*6a54128fSAndroid Build Coastguard Worker test -d ./-p && rmdir ./-p 16111*6a54128fSAndroid Build Coastguard Worker as_mkdir_p=false 16112*6a54128fSAndroid Build Coastguard Workerfi 16113*6a54128fSAndroid Build Coastguard Worker 16114*6a54128fSAndroid Build Coastguard Worker 16115*6a54128fSAndroid Build Coastguard Worker# as_fn_executable_p FILE 16116*6a54128fSAndroid Build Coastguard Worker# ----------------------- 16117*6a54128fSAndroid Build Coastguard Worker# Test if FILE is an executable regular file. 16118*6a54128fSAndroid Build Coastguard Workeras_fn_executable_p () 16119*6a54128fSAndroid Build Coastguard Worker{ 16120*6a54128fSAndroid Build Coastguard Worker test -f "$1" && test -x "$1" 16121*6a54128fSAndroid Build Coastguard Worker} # as_fn_executable_p 16122*6a54128fSAndroid Build Coastguard Workeras_test_x='test -x' 16123*6a54128fSAndroid Build Coastguard Workeras_executable_p=as_fn_executable_p 16124*6a54128fSAndroid Build Coastguard Worker 16125*6a54128fSAndroid Build Coastguard Worker# Sed expression to map a string onto a valid CPP name. 16126*6a54128fSAndroid Build Coastguard Workeras_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16127*6a54128fSAndroid Build Coastguard Worker 16128*6a54128fSAndroid Build Coastguard Worker# Sed expression to map a string onto a valid variable name. 16129*6a54128fSAndroid Build Coastguard Workeras_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16130*6a54128fSAndroid Build Coastguard Worker 16131*6a54128fSAndroid Build Coastguard Worker 16132*6a54128fSAndroid Build Coastguard Workerexec 6>&1 16133*6a54128fSAndroid Build Coastguard Worker## ----------------------------------- ## 16134*6a54128fSAndroid Build Coastguard Worker## Main body of $CONFIG_STATUS script. ## 16135*6a54128fSAndroid Build Coastguard Worker## ----------------------------------- ## 16136*6a54128fSAndroid Build Coastguard Worker_ASEOF 16137*6a54128fSAndroid Build Coastguard Workertest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16138*6a54128fSAndroid Build Coastguard Worker 16139*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16140*6a54128fSAndroid Build Coastguard Worker# Save the log message, to keep $0 and so on meaningful, and to 16141*6a54128fSAndroid Build Coastguard Worker# report actual input values of CONFIG_FILES etc. instead of their 16142*6a54128fSAndroid Build Coastguard Worker# values after options handling. 16143*6a54128fSAndroid Build Coastguard Workerac_log=" 16144*6a54128fSAndroid Build Coastguard WorkerThis file was extended by $as_me, which was 16145*6a54128fSAndroid Build Coastguard Workergenerated by GNU Autoconf 2.71. Invocation command line was 16146*6a54128fSAndroid Build Coastguard Worker 16147*6a54128fSAndroid Build Coastguard Worker CONFIG_FILES = $CONFIG_FILES 16148*6a54128fSAndroid Build Coastguard Worker CONFIG_HEADERS = $CONFIG_HEADERS 16149*6a54128fSAndroid Build Coastguard Worker CONFIG_LINKS = $CONFIG_LINKS 16150*6a54128fSAndroid Build Coastguard Worker CONFIG_COMMANDS = $CONFIG_COMMANDS 16151*6a54128fSAndroid Build Coastguard Worker $ $0 $@ 16152*6a54128fSAndroid Build Coastguard Worker 16153*6a54128fSAndroid Build Coastguard Workeron `(hostname || uname -n) 2>/dev/null | sed 1q` 16154*6a54128fSAndroid Build Coastguard Worker" 16155*6a54128fSAndroid Build Coastguard Worker 16156*6a54128fSAndroid Build Coastguard Worker_ACEOF 16157*6a54128fSAndroid Build Coastguard Worker 16158*6a54128fSAndroid Build Coastguard Workercase $ac_config_files in *" 16159*6a54128fSAndroid Build Coastguard Worker"*) set x $ac_config_files; shift; ac_config_files=$*;; 16160*6a54128fSAndroid Build Coastguard Workeresac 16161*6a54128fSAndroid Build Coastguard Worker 16162*6a54128fSAndroid Build Coastguard Workercase $ac_config_headers in *" 16163*6a54128fSAndroid Build Coastguard Worker"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16164*6a54128fSAndroid Build Coastguard Workeresac 16165*6a54128fSAndroid Build Coastguard Worker 16166*6a54128fSAndroid Build Coastguard Worker 16167*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16168*6a54128fSAndroid Build Coastguard Worker# Files that config.status was made for. 16169*6a54128fSAndroid Build Coastguard Workerconfig_files="$ac_config_files" 16170*6a54128fSAndroid Build Coastguard Workerconfig_headers="$ac_config_headers" 16171*6a54128fSAndroid Build Coastguard Workerconfig_commands="$ac_config_commands" 16172*6a54128fSAndroid Build Coastguard Worker 16173*6a54128fSAndroid Build Coastguard Worker_ACEOF 16174*6a54128fSAndroid Build Coastguard Worker 16175*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16176*6a54128fSAndroid Build Coastguard Workerac_cs_usage="\ 16177*6a54128fSAndroid Build Coastguard Worker\`$as_me' instantiates files and other configuration actions 16178*6a54128fSAndroid Build Coastguard Workerfrom templates according to the current configuration. Unless the files 16179*6a54128fSAndroid Build Coastguard Workerand actions are specified as TAGs, all are instantiated by default. 16180*6a54128fSAndroid Build Coastguard Worker 16181*6a54128fSAndroid Build Coastguard WorkerUsage: $0 [OPTION]... [TAG]... 16182*6a54128fSAndroid Build Coastguard Worker 16183*6a54128fSAndroid Build Coastguard Worker -h, --help print this help, then exit 16184*6a54128fSAndroid Build Coastguard Worker -V, --version print version number and configuration settings, then exit 16185*6a54128fSAndroid Build Coastguard Worker --config print configuration, then exit 16186*6a54128fSAndroid Build Coastguard Worker -q, --quiet, --silent 16187*6a54128fSAndroid Build Coastguard Worker do not print progress messages 16188*6a54128fSAndroid Build Coastguard Worker -d, --debug don't remove temporary files 16189*6a54128fSAndroid Build Coastguard Worker --recheck update $as_me by reconfiguring in the same conditions 16190*6a54128fSAndroid Build Coastguard Worker --file=FILE[:TEMPLATE] 16191*6a54128fSAndroid Build Coastguard Worker instantiate the configuration file FILE 16192*6a54128fSAndroid Build Coastguard Worker --header=FILE[:TEMPLATE] 16193*6a54128fSAndroid Build Coastguard Worker instantiate the configuration header FILE 16194*6a54128fSAndroid Build Coastguard Worker 16195*6a54128fSAndroid Build Coastguard WorkerConfiguration files: 16196*6a54128fSAndroid Build Coastguard Worker$config_files 16197*6a54128fSAndroid Build Coastguard Worker 16198*6a54128fSAndroid Build Coastguard WorkerConfiguration headers: 16199*6a54128fSAndroid Build Coastguard Worker$config_headers 16200*6a54128fSAndroid Build Coastguard Worker 16201*6a54128fSAndroid Build Coastguard WorkerConfiguration commands: 16202*6a54128fSAndroid Build Coastguard Worker$config_commands 16203*6a54128fSAndroid Build Coastguard Worker 16204*6a54128fSAndroid Build Coastguard WorkerReport bugs to the package provider." 16205*6a54128fSAndroid Build Coastguard Worker 16206*6a54128fSAndroid Build Coastguard Worker_ACEOF 16207*6a54128fSAndroid Build Coastguard Workerac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 16208*6a54128fSAndroid Build Coastguard Workerac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 16209*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16210*6a54128fSAndroid Build Coastguard Workerac_cs_config='$ac_cs_config_escaped' 16211*6a54128fSAndroid Build Coastguard Workerac_cs_version="\\ 16212*6a54128fSAndroid Build Coastguard Workerconfig.status 16213*6a54128fSAndroid Build Coastguard Workerconfigured by $0, generated by GNU Autoconf 2.71, 16214*6a54128fSAndroid Build Coastguard Worker with options \\"\$ac_cs_config\\" 16215*6a54128fSAndroid Build Coastguard Worker 16216*6a54128fSAndroid Build Coastguard WorkerCopyright (C) 2021 Free Software Foundation, Inc. 16217*6a54128fSAndroid Build Coastguard WorkerThis config.status script is free software; the Free Software Foundation 16218*6a54128fSAndroid Build Coastguard Workergives unlimited permission to copy, distribute and modify it." 16219*6a54128fSAndroid Build Coastguard Worker 16220*6a54128fSAndroid Build Coastguard Workerac_pwd='$ac_pwd' 16221*6a54128fSAndroid Build Coastguard Workersrcdir='$srcdir' 16222*6a54128fSAndroid Build Coastguard WorkerINSTALL='$INSTALL' 16223*6a54128fSAndroid Build Coastguard WorkerMKDIR_P='$MKDIR_P' 16224*6a54128fSAndroid Build Coastguard WorkerAWK='$AWK' 16225*6a54128fSAndroid Build Coastguard Workertest -n "\$AWK" || AWK=awk 16226*6a54128fSAndroid Build Coastguard Worker_ACEOF 16227*6a54128fSAndroid Build Coastguard Worker 16228*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16229*6a54128fSAndroid Build Coastguard Worker# The default lists apply if the user does not specify any file. 16230*6a54128fSAndroid Build Coastguard Workerac_need_defaults=: 16231*6a54128fSAndroid Build Coastguard Workerwhile test $# != 0 16232*6a54128fSAndroid Build Coastguard Workerdo 16233*6a54128fSAndroid Build Coastguard Worker case $1 in 16234*6a54128fSAndroid Build Coastguard Worker --*=?*) 16235*6a54128fSAndroid Build Coastguard Worker ac_option=`expr "X$1" : 'X\([^=]*\)='` 16236*6a54128fSAndroid Build Coastguard Worker ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16237*6a54128fSAndroid Build Coastguard Worker ac_shift=: 16238*6a54128fSAndroid Build Coastguard Worker ;; 16239*6a54128fSAndroid Build Coastguard Worker --*=) 16240*6a54128fSAndroid Build Coastguard Worker ac_option=`expr "X$1" : 'X\([^=]*\)='` 16241*6a54128fSAndroid Build Coastguard Worker ac_optarg= 16242*6a54128fSAndroid Build Coastguard Worker ac_shift=: 16243*6a54128fSAndroid Build Coastguard Worker ;; 16244*6a54128fSAndroid Build Coastguard Worker *) 16245*6a54128fSAndroid Build Coastguard Worker ac_option=$1 16246*6a54128fSAndroid Build Coastguard Worker ac_optarg=$2 16247*6a54128fSAndroid Build Coastguard Worker ac_shift=shift 16248*6a54128fSAndroid Build Coastguard Worker ;; 16249*6a54128fSAndroid Build Coastguard Worker esac 16250*6a54128fSAndroid Build Coastguard Worker 16251*6a54128fSAndroid Build Coastguard Worker case $ac_option in 16252*6a54128fSAndroid Build Coastguard Worker # Handling of the options. 16253*6a54128fSAndroid Build Coastguard Worker -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16254*6a54128fSAndroid Build Coastguard Worker ac_cs_recheck=: ;; 16255*6a54128fSAndroid Build Coastguard Worker --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16256*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$ac_cs_version"; exit ;; 16257*6a54128fSAndroid Build Coastguard Worker --config | --confi | --conf | --con | --co | --c ) 16258*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$ac_cs_config"; exit ;; 16259*6a54128fSAndroid Build Coastguard Worker --debug | --debu | --deb | --de | --d | -d ) 16260*6a54128fSAndroid Build Coastguard Worker debug=: ;; 16261*6a54128fSAndroid Build Coastguard Worker --file | --fil | --fi | --f ) 16262*6a54128fSAndroid Build Coastguard Worker $ac_shift 16263*6a54128fSAndroid Build Coastguard Worker case $ac_optarg in 16264*6a54128fSAndroid Build Coastguard Worker *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16265*6a54128fSAndroid Build Coastguard Worker '') as_fn_error $? "missing file argument" ;; 16266*6a54128fSAndroid Build Coastguard Worker esac 16267*6a54128fSAndroid Build Coastguard Worker as_fn_append CONFIG_FILES " '$ac_optarg'" 16268*6a54128fSAndroid Build Coastguard Worker ac_need_defaults=false;; 16269*6a54128fSAndroid Build Coastguard Worker --header | --heade | --head | --hea ) 16270*6a54128fSAndroid Build Coastguard Worker $ac_shift 16271*6a54128fSAndroid Build Coastguard Worker case $ac_optarg in 16272*6a54128fSAndroid Build Coastguard Worker *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16273*6a54128fSAndroid Build Coastguard Worker esac 16274*6a54128fSAndroid Build Coastguard Worker as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16275*6a54128fSAndroid Build Coastguard Worker ac_need_defaults=false;; 16276*6a54128fSAndroid Build Coastguard Worker --he | --h) 16277*6a54128fSAndroid Build Coastguard Worker # Conflict between --help and --header 16278*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "ambiguous option: \`$1' 16279*6a54128fSAndroid Build Coastguard WorkerTry \`$0 --help' for more information.";; 16280*6a54128fSAndroid Build Coastguard Worker --help | --hel | -h ) 16281*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$ac_cs_usage"; exit ;; 16282*6a54128fSAndroid Build Coastguard Worker -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16283*6a54128fSAndroid Build Coastguard Worker | -silent | --silent | --silen | --sile | --sil | --si | --s) 16284*6a54128fSAndroid Build Coastguard Worker ac_cs_silent=: ;; 16285*6a54128fSAndroid Build Coastguard Worker 16286*6a54128fSAndroid Build Coastguard Worker # This is an error. 16287*6a54128fSAndroid Build Coastguard Worker -*) as_fn_error $? "unrecognized option: \`$1' 16288*6a54128fSAndroid Build Coastguard WorkerTry \`$0 --help' for more information." ;; 16289*6a54128fSAndroid Build Coastguard Worker 16290*6a54128fSAndroid Build Coastguard Worker *) as_fn_append ac_config_targets " $1" 16291*6a54128fSAndroid Build Coastguard Worker ac_need_defaults=false ;; 16292*6a54128fSAndroid Build Coastguard Worker 16293*6a54128fSAndroid Build Coastguard Worker esac 16294*6a54128fSAndroid Build Coastguard Worker shift 16295*6a54128fSAndroid Build Coastguard Workerdone 16296*6a54128fSAndroid Build Coastguard Worker 16297*6a54128fSAndroid Build Coastguard Workerac_configure_extra_args= 16298*6a54128fSAndroid Build Coastguard Worker 16299*6a54128fSAndroid Build Coastguard Workerif $ac_cs_silent; then 16300*6a54128fSAndroid Build Coastguard Worker exec 6>/dev/null 16301*6a54128fSAndroid Build Coastguard Worker ac_configure_extra_args="$ac_configure_extra_args --silent" 16302*6a54128fSAndroid Build Coastguard Workerfi 16303*6a54128fSAndroid Build Coastguard Worker 16304*6a54128fSAndroid Build Coastguard Worker_ACEOF 16305*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16306*6a54128fSAndroid Build Coastguard Workerif \$ac_cs_recheck; then 16307*6a54128fSAndroid Build Coastguard Worker set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16308*6a54128fSAndroid Build Coastguard Worker shift 16309*6a54128fSAndroid Build Coastguard Worker \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 16310*6a54128fSAndroid Build Coastguard Worker CONFIG_SHELL='$SHELL' 16311*6a54128fSAndroid Build Coastguard Worker export CONFIG_SHELL 16312*6a54128fSAndroid Build Coastguard Worker exec "\$@" 16313*6a54128fSAndroid Build Coastguard Workerfi 16314*6a54128fSAndroid Build Coastguard Worker 16315*6a54128fSAndroid Build Coastguard Worker_ACEOF 16316*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16317*6a54128fSAndroid Build Coastguard Workerexec 5>>config.log 16318*6a54128fSAndroid Build Coastguard Worker{ 16319*6a54128fSAndroid Build Coastguard Worker echo 16320*6a54128fSAndroid Build Coastguard Worker sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16321*6a54128fSAndroid Build Coastguard Worker## Running $as_me. ## 16322*6a54128fSAndroid Build Coastguard Worker_ASBOX 16323*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$ac_log" 16324*6a54128fSAndroid Build Coastguard Worker} >&5 16325*6a54128fSAndroid Build Coastguard Worker 16326*6a54128fSAndroid Build Coastguard Worker_ACEOF 16327*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16328*6a54128fSAndroid Build Coastguard Worker# 16329*6a54128fSAndroid Build Coastguard Worker# INIT-COMMANDS 16330*6a54128fSAndroid Build Coastguard Worker# 16331*6a54128fSAndroid Build Coastguard Worker# Capture the value of obsolete ALL_LINGUAS because we need it to compute 16332*6a54128fSAndroid Build Coastguard Worker # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. 16333*6a54128fSAndroid Build Coastguard Worker OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS" 16334*6a54128fSAndroid Build Coastguard Worker # Capture the value of LINGUAS because we need it to compute CATALOGS. 16335*6a54128fSAndroid Build Coastguard Worker LINGUAS="${LINGUAS-%UNSET%}" 16336*6a54128fSAndroid Build Coastguard Worker 16337*6a54128fSAndroid Build Coastguard Worker 16338*6a54128fSAndroid Build Coastguard Worker_ACEOF 16339*6a54128fSAndroid Build Coastguard Worker 16340*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16341*6a54128fSAndroid Build Coastguard Worker 16342*6a54128fSAndroid Build Coastguard Worker# Handling of arguments. 16343*6a54128fSAndroid Build Coastguard Workerfor ac_config_target in $ac_config_targets 16344*6a54128fSAndroid Build Coastguard Workerdo 16345*6a54128fSAndroid Build Coastguard Worker case $ac_config_target in 16346*6a54128fSAndroid Build Coastguard Worker "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; 16347*6a54128fSAndroid Build Coastguard Worker "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 16348*6a54128fSAndroid Build Coastguard Worker "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; 16349*6a54128fSAndroid Build Coastguard Worker 16350*6a54128fSAndroid Build Coastguard Worker *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16351*6a54128fSAndroid Build Coastguard Worker esac 16352*6a54128fSAndroid Build Coastguard Workerdone 16353*6a54128fSAndroid Build Coastguard Worker 16354*6a54128fSAndroid Build Coastguard Worker 16355*6a54128fSAndroid Build Coastguard Worker# If the user did not use the arguments to specify the items to instantiate, 16356*6a54128fSAndroid Build Coastguard Worker# then the envvar interface is used. Set only those that are not. 16357*6a54128fSAndroid Build Coastguard Worker# We use the long form for the default assignment because of an extremely 16358*6a54128fSAndroid Build Coastguard Worker# bizarre bug on SunOS 4.1.3. 16359*6a54128fSAndroid Build Coastguard Workerif $ac_need_defaults; then 16360*6a54128fSAndroid Build Coastguard Worker test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 16361*6a54128fSAndroid Build Coastguard Worker test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 16362*6a54128fSAndroid Build Coastguard Worker test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 16363*6a54128fSAndroid Build Coastguard Workerfi 16364*6a54128fSAndroid Build Coastguard Worker 16365*6a54128fSAndroid Build Coastguard Worker# Have a temporary directory for convenience. Make it in the build tree 16366*6a54128fSAndroid Build Coastguard Worker# simply because there is no reason against having it here, and in addition, 16367*6a54128fSAndroid Build Coastguard Worker# creating and moving files from /tmp can sometimes cause problems. 16368*6a54128fSAndroid Build Coastguard Worker# Hook for its removal unless debugging. 16369*6a54128fSAndroid Build Coastguard Worker# Note that there is a small window in which the directory will not be cleaned: 16370*6a54128fSAndroid Build Coastguard Worker# after its creation but before its name has been assigned to `$tmp'. 16371*6a54128fSAndroid Build Coastguard Worker$debug || 16372*6a54128fSAndroid Build Coastguard Worker{ 16373*6a54128fSAndroid Build Coastguard Worker tmp= ac_tmp= 16374*6a54128fSAndroid Build Coastguard Worker trap 'exit_status=$? 16375*6a54128fSAndroid Build Coastguard Worker : "${ac_tmp:=$tmp}" 16376*6a54128fSAndroid Build Coastguard Worker { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16377*6a54128fSAndroid Build Coastguard Worker' 0 16378*6a54128fSAndroid Build Coastguard Worker trap 'as_fn_exit 1' 1 2 13 15 16379*6a54128fSAndroid Build Coastguard Worker} 16380*6a54128fSAndroid Build Coastguard Worker# Create a (secure) tmp directory for tmp files. 16381*6a54128fSAndroid Build Coastguard Worker 16382*6a54128fSAndroid Build Coastguard Worker{ 16383*6a54128fSAndroid Build Coastguard Worker tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16384*6a54128fSAndroid Build Coastguard Worker test -d "$tmp" 16385*6a54128fSAndroid Build Coastguard Worker} || 16386*6a54128fSAndroid Build Coastguard Worker{ 16387*6a54128fSAndroid Build Coastguard Worker tmp=./conf$$-$RANDOM 16388*6a54128fSAndroid Build Coastguard Worker (umask 077 && mkdir "$tmp") 16389*6a54128fSAndroid Build Coastguard Worker} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16390*6a54128fSAndroid Build Coastguard Workerac_tmp=$tmp 16391*6a54128fSAndroid Build Coastguard Worker 16392*6a54128fSAndroid Build Coastguard Worker# Set up the scripts for CONFIG_FILES section. 16393*6a54128fSAndroid Build Coastguard Worker# No need to generate them if there are no CONFIG_FILES. 16394*6a54128fSAndroid Build Coastguard Worker# This happens for instance with `./config.status config.h'. 16395*6a54128fSAndroid Build Coastguard Workerif test -n "$CONFIG_FILES"; then 16396*6a54128fSAndroid Build Coastguard Worker 16397*6a54128fSAndroid Build Coastguard Workerif $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 16398*6a54128fSAndroid Build Coastguard Worker ac_cs_awk_getline=: 16399*6a54128fSAndroid Build Coastguard Worker ac_cs_awk_pipe_init= 16400*6a54128fSAndroid Build Coastguard Worker ac_cs_awk_read_file=' 16401*6a54128fSAndroid Build Coastguard Worker while ((getline aline < (F[key])) > 0) 16402*6a54128fSAndroid Build Coastguard Worker print(aline) 16403*6a54128fSAndroid Build Coastguard Worker close(F[key])' 16404*6a54128fSAndroid Build Coastguard Worker ac_cs_awk_pipe_fini= 16405*6a54128fSAndroid Build Coastguard Workerelse 16406*6a54128fSAndroid Build Coastguard Worker ac_cs_awk_getline=false 16407*6a54128fSAndroid Build Coastguard Worker ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 16408*6a54128fSAndroid Build Coastguard Worker ac_cs_awk_read_file=' 16409*6a54128fSAndroid Build Coastguard Worker print "|#_!!_#|" 16410*6a54128fSAndroid Build Coastguard Worker print "cat " F[key] " &&" 16411*6a54128fSAndroid Build Coastguard Worker '$ac_cs_awk_pipe_init 16412*6a54128fSAndroid Build Coastguard Worker # The final `:' finishes the AND list. 16413*6a54128fSAndroid Build Coastguard Worker ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 16414*6a54128fSAndroid Build Coastguard Workerfi 16415*6a54128fSAndroid Build Coastguard Workerac_cr=`echo X | tr X '\015'` 16416*6a54128fSAndroid Build Coastguard Worker# On cygwin, bash can eat \r inside `` if the user requested igncr. 16417*6a54128fSAndroid Build Coastguard Worker# But we know of no other shell where ac_cr would be empty at this 16418*6a54128fSAndroid Build Coastguard Worker# point, so we can use a bashism as a fallback. 16419*6a54128fSAndroid Build Coastguard Workerif test "x$ac_cr" = x; then 16420*6a54128fSAndroid Build Coastguard Worker eval ac_cr=\$\'\\r\' 16421*6a54128fSAndroid Build Coastguard Workerfi 16422*6a54128fSAndroid Build Coastguard Workerac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16423*6a54128fSAndroid Build Coastguard Workerif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16424*6a54128fSAndroid Build Coastguard Worker ac_cs_awk_cr='\\r' 16425*6a54128fSAndroid Build Coastguard Workerelse 16426*6a54128fSAndroid Build Coastguard Worker ac_cs_awk_cr=$ac_cr 16427*6a54128fSAndroid Build Coastguard Workerfi 16428*6a54128fSAndroid Build Coastguard Worker 16429*6a54128fSAndroid Build Coastguard Workerecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 16430*6a54128fSAndroid Build Coastguard Worker_ACEOF 16431*6a54128fSAndroid Build Coastguard Worker 16432*6a54128fSAndroid Build Coastguard Worker# Create commands to substitute file output variables. 16433*6a54128fSAndroid Build Coastguard Worker{ 16434*6a54128fSAndroid Build Coastguard Worker echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 16435*6a54128fSAndroid Build Coastguard Worker echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 16436*6a54128fSAndroid Build Coastguard Worker echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 16437*6a54128fSAndroid Build Coastguard Worker echo "_ACAWK" && 16438*6a54128fSAndroid Build Coastguard Worker echo "_ACEOF" 16439*6a54128fSAndroid Build Coastguard Worker} >conf$$files.sh && 16440*6a54128fSAndroid Build Coastguard Worker. ./conf$$files.sh || 16441*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16442*6a54128fSAndroid Build Coastguard Workerrm -f conf$$files.sh 16443*6a54128fSAndroid Build Coastguard Worker 16444*6a54128fSAndroid Build Coastguard Worker{ 16445*6a54128fSAndroid Build Coastguard Worker echo "cat >conf$$subs.awk <<_ACEOF" && 16446*6a54128fSAndroid Build Coastguard Worker echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16447*6a54128fSAndroid Build Coastguard Worker echo "_ACEOF" 16448*6a54128fSAndroid Build Coastguard Worker} >conf$$subs.sh || 16449*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16450*6a54128fSAndroid Build Coastguard Workerac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16451*6a54128fSAndroid Build Coastguard Workerac_delim='%!_!# ' 16452*6a54128fSAndroid Build Coastguard Workerfor ac_last_try in false false false false false :; do 16453*6a54128fSAndroid Build Coastguard Worker . ./conf$$subs.sh || 16454*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16455*6a54128fSAndroid Build Coastguard Worker 16456*6a54128fSAndroid Build Coastguard Worker ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16457*6a54128fSAndroid Build Coastguard Worker if test $ac_delim_n = $ac_delim_num; then 16458*6a54128fSAndroid Build Coastguard Worker break 16459*6a54128fSAndroid Build Coastguard Worker elif $ac_last_try; then 16460*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16461*6a54128fSAndroid Build Coastguard Worker else 16462*6a54128fSAndroid Build Coastguard Worker ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16463*6a54128fSAndroid Build Coastguard Worker fi 16464*6a54128fSAndroid Build Coastguard Workerdone 16465*6a54128fSAndroid Build Coastguard Workerrm -f conf$$subs.sh 16466*6a54128fSAndroid Build Coastguard Worker 16467*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16468*6a54128fSAndroid Build Coastguard Workercat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16469*6a54128fSAndroid Build Coastguard Worker_ACEOF 16470*6a54128fSAndroid Build Coastguard Workersed -n ' 16471*6a54128fSAndroid Build Coastguard Workerh 16472*6a54128fSAndroid Build Coastguard Workers/^/S["/; s/!.*/"]=/ 16473*6a54128fSAndroid Build Coastguard Workerp 16474*6a54128fSAndroid Build Coastguard Workerg 16475*6a54128fSAndroid Build Coastguard Workers/^[^!]*!// 16476*6a54128fSAndroid Build Coastguard Worker:repl 16477*6a54128fSAndroid Build Coastguard Workert repl 16478*6a54128fSAndroid Build Coastguard Workers/'"$ac_delim"'$// 16479*6a54128fSAndroid Build Coastguard Workert delim 16480*6a54128fSAndroid Build Coastguard Worker:nl 16481*6a54128fSAndroid Build Coastguard Workerh 16482*6a54128fSAndroid Build Coastguard Workers/\(.\{148\}\)..*/\1/ 16483*6a54128fSAndroid Build Coastguard Workert more1 16484*6a54128fSAndroid Build Coastguard Workers/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16485*6a54128fSAndroid Build Coastguard Workerp 16486*6a54128fSAndroid Build Coastguard Workern 16487*6a54128fSAndroid Build Coastguard Workerb repl 16488*6a54128fSAndroid Build Coastguard Worker:more1 16489*6a54128fSAndroid Build Coastguard Workers/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16490*6a54128fSAndroid Build Coastguard Workerp 16491*6a54128fSAndroid Build Coastguard Workerg 16492*6a54128fSAndroid Build Coastguard Workers/.\{148\}// 16493*6a54128fSAndroid Build Coastguard Workert nl 16494*6a54128fSAndroid Build Coastguard Worker:delim 16495*6a54128fSAndroid Build Coastguard Workerh 16496*6a54128fSAndroid Build Coastguard Workers/\(.\{148\}\)..*/\1/ 16497*6a54128fSAndroid Build Coastguard Workert more2 16498*6a54128fSAndroid Build Coastguard Workers/["\\]/\\&/g; s/^/"/; s/$/"/ 16499*6a54128fSAndroid Build Coastguard Workerp 16500*6a54128fSAndroid Build Coastguard Workerb 16501*6a54128fSAndroid Build Coastguard Worker:more2 16502*6a54128fSAndroid Build Coastguard Workers/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16503*6a54128fSAndroid Build Coastguard Workerp 16504*6a54128fSAndroid Build Coastguard Workerg 16505*6a54128fSAndroid Build Coastguard Workers/.\{148\}// 16506*6a54128fSAndroid Build Coastguard Workert delim 16507*6a54128fSAndroid Build Coastguard Worker' <conf$$subs.awk | sed ' 16508*6a54128fSAndroid Build Coastguard Worker/^[^""]/{ 16509*6a54128fSAndroid Build Coastguard Worker N 16510*6a54128fSAndroid Build Coastguard Worker s/\n// 16511*6a54128fSAndroid Build Coastguard Worker} 16512*6a54128fSAndroid Build Coastguard Worker' >>$CONFIG_STATUS || ac_write_fail=1 16513*6a54128fSAndroid Build Coastguard Workerrm -f conf$$subs.awk 16514*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16515*6a54128fSAndroid Build Coastguard Worker_ACAWK 16516*6a54128fSAndroid Build Coastguard Workercat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16517*6a54128fSAndroid Build Coastguard Worker for (key in S) S_is_set[key] = 1 16518*6a54128fSAndroid Build Coastguard Worker FS = "" 16519*6a54128fSAndroid Build Coastguard Worker \$ac_cs_awk_pipe_init 16520*6a54128fSAndroid Build Coastguard Worker} 16521*6a54128fSAndroid Build Coastguard Worker{ 16522*6a54128fSAndroid Build Coastguard Worker line = $ 0 16523*6a54128fSAndroid Build Coastguard Worker nfields = split(line, field, "@") 16524*6a54128fSAndroid Build Coastguard Worker substed = 0 16525*6a54128fSAndroid Build Coastguard Worker len = length(field[1]) 16526*6a54128fSAndroid Build Coastguard Worker for (i = 2; i < nfields; i++) { 16527*6a54128fSAndroid Build Coastguard Worker key = field[i] 16528*6a54128fSAndroid Build Coastguard Worker keylen = length(key) 16529*6a54128fSAndroid Build Coastguard Worker if (S_is_set[key]) { 16530*6a54128fSAndroid Build Coastguard Worker value = S[key] 16531*6a54128fSAndroid Build Coastguard Worker line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16532*6a54128fSAndroid Build Coastguard Worker len += length(value) + length(field[++i]) 16533*6a54128fSAndroid Build Coastguard Worker substed = 1 16534*6a54128fSAndroid Build Coastguard Worker } else 16535*6a54128fSAndroid Build Coastguard Worker len += 1 + keylen 16536*6a54128fSAndroid Build Coastguard Worker } 16537*6a54128fSAndroid Build Coastguard Worker if (nfields == 3 && !substed) { 16538*6a54128fSAndroid Build Coastguard Worker key = field[2] 16539*6a54128fSAndroid Build Coastguard Worker if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 16540*6a54128fSAndroid Build Coastguard Worker \$ac_cs_awk_read_file 16541*6a54128fSAndroid Build Coastguard Worker next 16542*6a54128fSAndroid Build Coastguard Worker } 16543*6a54128fSAndroid Build Coastguard Worker } 16544*6a54128fSAndroid Build Coastguard Worker print line 16545*6a54128fSAndroid Build Coastguard Worker} 16546*6a54128fSAndroid Build Coastguard Worker\$ac_cs_awk_pipe_fini 16547*6a54128fSAndroid Build Coastguard Worker_ACAWK 16548*6a54128fSAndroid Build Coastguard Worker_ACEOF 16549*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16550*6a54128fSAndroid Build Coastguard Workerif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16551*6a54128fSAndroid Build Coastguard Worker sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16552*6a54128fSAndroid Build Coastguard Workerelse 16553*6a54128fSAndroid Build Coastguard Worker cat 16554*6a54128fSAndroid Build Coastguard Workerfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16555*6a54128fSAndroid Build Coastguard Worker || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16556*6a54128fSAndroid Build Coastguard Worker_ACEOF 16557*6a54128fSAndroid Build Coastguard Worker 16558*6a54128fSAndroid Build Coastguard Worker# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16559*6a54128fSAndroid Build Coastguard Worker# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16560*6a54128fSAndroid Build Coastguard Worker# trailing colons and then remove the whole line if VPATH becomes empty 16561*6a54128fSAndroid Build Coastguard Worker# (actually we leave an empty line to preserve line numbers). 16562*6a54128fSAndroid Build Coastguard Workerif test "x$srcdir" = x.; then 16563*6a54128fSAndroid Build Coastguard Worker ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16564*6a54128fSAndroid Build Coastguard Workerh 16565*6a54128fSAndroid Build Coastguard Workers/// 16566*6a54128fSAndroid Build Coastguard Workers/^/:/ 16567*6a54128fSAndroid Build Coastguard Workers/[ ]*$/:/ 16568*6a54128fSAndroid Build Coastguard Workers/:\$(srcdir):/:/g 16569*6a54128fSAndroid Build Coastguard Workers/:\${srcdir}:/:/g 16570*6a54128fSAndroid Build Coastguard Workers/:@srcdir@:/:/g 16571*6a54128fSAndroid Build Coastguard Workers/^:*// 16572*6a54128fSAndroid Build Coastguard Workers/:*$// 16573*6a54128fSAndroid Build Coastguard Workerx 16574*6a54128fSAndroid Build Coastguard Workers/\(=[ ]*\).*/\1/ 16575*6a54128fSAndroid Build Coastguard WorkerG 16576*6a54128fSAndroid Build Coastguard Workers/\n// 16577*6a54128fSAndroid Build Coastguard Workers/^[^=]*=[ ]*$// 16578*6a54128fSAndroid Build Coastguard Worker}' 16579*6a54128fSAndroid Build Coastguard Workerfi 16580*6a54128fSAndroid Build Coastguard Worker 16581*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16582*6a54128fSAndroid Build Coastguard Workerfi # test -n "$CONFIG_FILES" 16583*6a54128fSAndroid Build Coastguard Worker 16584*6a54128fSAndroid Build Coastguard Worker# Set up the scripts for CONFIG_HEADERS section. 16585*6a54128fSAndroid Build Coastguard Worker# No need to generate them if there are no CONFIG_HEADERS. 16586*6a54128fSAndroid Build Coastguard Worker# This happens for instance with `./config.status Makefile'. 16587*6a54128fSAndroid Build Coastguard Workerif test -n "$CONFIG_HEADERS"; then 16588*6a54128fSAndroid Build Coastguard Workercat >"$ac_tmp/defines.awk" <<\_ACAWK || 16589*6a54128fSAndroid Build Coastguard WorkerBEGIN { 16590*6a54128fSAndroid Build Coastguard Worker_ACEOF 16591*6a54128fSAndroid Build Coastguard Worker 16592*6a54128fSAndroid Build Coastguard Worker# Transform confdefs.h into an awk script `defines.awk', embedded as 16593*6a54128fSAndroid Build Coastguard Worker# here-document in config.status, that substitutes the proper values into 16594*6a54128fSAndroid Build Coastguard Worker# config.h.in to produce config.h. 16595*6a54128fSAndroid Build Coastguard Worker 16596*6a54128fSAndroid Build Coastguard Worker# Create a delimiter string that does not exist in confdefs.h, to ease 16597*6a54128fSAndroid Build Coastguard Worker# handling of long lines. 16598*6a54128fSAndroid Build Coastguard Workerac_delim='%!_!# ' 16599*6a54128fSAndroid Build Coastguard Workerfor ac_last_try in false false :; do 16600*6a54128fSAndroid Build Coastguard Worker ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16601*6a54128fSAndroid Build Coastguard Worker if test -z "$ac_tt"; then 16602*6a54128fSAndroid Build Coastguard Worker break 16603*6a54128fSAndroid Build Coastguard Worker elif $ac_last_try; then 16604*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16605*6a54128fSAndroid Build Coastguard Worker else 16606*6a54128fSAndroid Build Coastguard Worker ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16607*6a54128fSAndroid Build Coastguard Worker fi 16608*6a54128fSAndroid Build Coastguard Workerdone 16609*6a54128fSAndroid Build Coastguard Worker 16610*6a54128fSAndroid Build Coastguard Worker# For the awk script, D is an array of macro values keyed by name, 16611*6a54128fSAndroid Build Coastguard Worker# likewise P contains macro parameters if any. Preserve backslash 16612*6a54128fSAndroid Build Coastguard Worker# newline sequences. 16613*6a54128fSAndroid Build Coastguard Worker 16614*6a54128fSAndroid Build Coastguard Workerac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16615*6a54128fSAndroid Build Coastguard Workersed -n ' 16616*6a54128fSAndroid Build Coastguard Workers/.\{148\}/&'"$ac_delim"'/g 16617*6a54128fSAndroid Build Coastguard Workert rset 16618*6a54128fSAndroid Build Coastguard Worker:rset 16619*6a54128fSAndroid Build Coastguard Workers/^[ ]*#[ ]*define[ ][ ]*/ / 16620*6a54128fSAndroid Build Coastguard Workert def 16621*6a54128fSAndroid Build Coastguard Workerd 16622*6a54128fSAndroid Build Coastguard Worker:def 16623*6a54128fSAndroid Build Coastguard Workers/\\$// 16624*6a54128fSAndroid Build Coastguard Workert bsnl 16625*6a54128fSAndroid Build Coastguard Workers/["\\]/\\&/g 16626*6a54128fSAndroid Build Coastguard Workers/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16627*6a54128fSAndroid Build Coastguard WorkerD["\1"]=" \3"/p 16628*6a54128fSAndroid Build Coastguard Workers/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16629*6a54128fSAndroid Build Coastguard Workerd 16630*6a54128fSAndroid Build Coastguard Worker:bsnl 16631*6a54128fSAndroid Build Coastguard Workers/["\\]/\\&/g 16632*6a54128fSAndroid Build Coastguard Workers/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16633*6a54128fSAndroid Build Coastguard WorkerD["\1"]=" \3\\\\\\n"\\/p 16634*6a54128fSAndroid Build Coastguard Workert cont 16635*6a54128fSAndroid Build Coastguard Workers/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16636*6a54128fSAndroid Build Coastguard Workert cont 16637*6a54128fSAndroid Build Coastguard Workerd 16638*6a54128fSAndroid Build Coastguard Worker:cont 16639*6a54128fSAndroid Build Coastguard Workern 16640*6a54128fSAndroid Build Coastguard Workers/.\{148\}/&'"$ac_delim"'/g 16641*6a54128fSAndroid Build Coastguard Workert clear 16642*6a54128fSAndroid Build Coastguard Worker:clear 16643*6a54128fSAndroid Build Coastguard Workers/\\$// 16644*6a54128fSAndroid Build Coastguard Workert bsnlc 16645*6a54128fSAndroid Build Coastguard Workers/["\\]/\\&/g; s/^/"/; s/$/"/p 16646*6a54128fSAndroid Build Coastguard Workerd 16647*6a54128fSAndroid Build Coastguard Worker:bsnlc 16648*6a54128fSAndroid Build Coastguard Workers/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16649*6a54128fSAndroid Build Coastguard Workerb cont 16650*6a54128fSAndroid Build Coastguard Worker' <confdefs.h | sed ' 16651*6a54128fSAndroid Build Coastguard Workers/'"$ac_delim"'/"\\\ 16652*6a54128fSAndroid Build Coastguard Worker"/g' >>$CONFIG_STATUS || ac_write_fail=1 16653*6a54128fSAndroid Build Coastguard Worker 16654*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16655*6a54128fSAndroid Build Coastguard Worker for (key in D) D_is_set[key] = 1 16656*6a54128fSAndroid Build Coastguard Worker FS = "" 16657*6a54128fSAndroid Build Coastguard Worker} 16658*6a54128fSAndroid Build Coastguard Worker/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16659*6a54128fSAndroid Build Coastguard Worker line = \$ 0 16660*6a54128fSAndroid Build Coastguard Worker split(line, arg, " ") 16661*6a54128fSAndroid Build Coastguard Worker if (arg[1] == "#") { 16662*6a54128fSAndroid Build Coastguard Worker defundef = arg[2] 16663*6a54128fSAndroid Build Coastguard Worker mac1 = arg[3] 16664*6a54128fSAndroid Build Coastguard Worker } else { 16665*6a54128fSAndroid Build Coastguard Worker defundef = substr(arg[1], 2) 16666*6a54128fSAndroid Build Coastguard Worker mac1 = arg[2] 16667*6a54128fSAndroid Build Coastguard Worker } 16668*6a54128fSAndroid Build Coastguard Worker split(mac1, mac2, "(") #) 16669*6a54128fSAndroid Build Coastguard Worker macro = mac2[1] 16670*6a54128fSAndroid Build Coastguard Worker prefix = substr(line, 1, index(line, defundef) - 1) 16671*6a54128fSAndroid Build Coastguard Worker if (D_is_set[macro]) { 16672*6a54128fSAndroid Build Coastguard Worker # Preserve the white space surrounding the "#". 16673*6a54128fSAndroid Build Coastguard Worker print prefix "define", macro P[macro] D[macro] 16674*6a54128fSAndroid Build Coastguard Worker next 16675*6a54128fSAndroid Build Coastguard Worker } else { 16676*6a54128fSAndroid Build Coastguard Worker # Replace #undef with comments. This is necessary, for example, 16677*6a54128fSAndroid Build Coastguard Worker # in the case of _POSIX_SOURCE, which is predefined and required 16678*6a54128fSAndroid Build Coastguard Worker # on some systems where configure will not decide to define it. 16679*6a54128fSAndroid Build Coastguard Worker if (defundef == "undef") { 16680*6a54128fSAndroid Build Coastguard Worker print "/*", prefix defundef, macro, "*/" 16681*6a54128fSAndroid Build Coastguard Worker next 16682*6a54128fSAndroid Build Coastguard Worker } 16683*6a54128fSAndroid Build Coastguard Worker } 16684*6a54128fSAndroid Build Coastguard Worker} 16685*6a54128fSAndroid Build Coastguard Worker{ print } 16686*6a54128fSAndroid Build Coastguard Worker_ACAWK 16687*6a54128fSAndroid Build Coastguard Worker_ACEOF 16688*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16689*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16690*6a54128fSAndroid Build Coastguard Workerfi # test -n "$CONFIG_HEADERS" 16691*6a54128fSAndroid Build Coastguard Worker 16692*6a54128fSAndroid Build Coastguard Worker 16693*6a54128fSAndroid Build Coastguard Workereval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16694*6a54128fSAndroid Build Coastguard Workershift 16695*6a54128fSAndroid Build Coastguard Workerfor ac_tag 16696*6a54128fSAndroid Build Coastguard Workerdo 16697*6a54128fSAndroid Build Coastguard Worker case $ac_tag in 16698*6a54128fSAndroid Build Coastguard Worker :[FHLC]) ac_mode=$ac_tag; continue;; 16699*6a54128fSAndroid Build Coastguard Worker esac 16700*6a54128fSAndroid Build Coastguard Worker case $ac_mode$ac_tag in 16701*6a54128fSAndroid Build Coastguard Worker :[FHL]*:*);; 16702*6a54128fSAndroid Build Coastguard Worker :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16703*6a54128fSAndroid Build Coastguard Worker :[FH]-) ac_tag=-:-;; 16704*6a54128fSAndroid Build Coastguard Worker :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16705*6a54128fSAndroid Build Coastguard Worker esac 16706*6a54128fSAndroid Build Coastguard Worker ac_save_IFS=$IFS 16707*6a54128fSAndroid Build Coastguard Worker IFS=: 16708*6a54128fSAndroid Build Coastguard Worker set x $ac_tag 16709*6a54128fSAndroid Build Coastguard Worker IFS=$ac_save_IFS 16710*6a54128fSAndroid Build Coastguard Worker shift 16711*6a54128fSAndroid Build Coastguard Worker ac_file=$1 16712*6a54128fSAndroid Build Coastguard Worker shift 16713*6a54128fSAndroid Build Coastguard Worker 16714*6a54128fSAndroid Build Coastguard Worker case $ac_mode in 16715*6a54128fSAndroid Build Coastguard Worker :L) ac_source=$1;; 16716*6a54128fSAndroid Build Coastguard Worker :[FH]) 16717*6a54128fSAndroid Build Coastguard Worker ac_file_inputs= 16718*6a54128fSAndroid Build Coastguard Worker for ac_f 16719*6a54128fSAndroid Build Coastguard Worker do 16720*6a54128fSAndroid Build Coastguard Worker case $ac_f in 16721*6a54128fSAndroid Build Coastguard Worker -) ac_f="$ac_tmp/stdin";; 16722*6a54128fSAndroid Build Coastguard Worker *) # Look for the file first in the build tree, then in the source tree 16723*6a54128fSAndroid Build Coastguard Worker # (if the path is not absolute). The absolute path cannot be DOS-style, 16724*6a54128fSAndroid Build Coastguard Worker # because $ac_f cannot contain `:'. 16725*6a54128fSAndroid Build Coastguard Worker test -f "$ac_f" || 16726*6a54128fSAndroid Build Coastguard Worker case $ac_f in 16727*6a54128fSAndroid Build Coastguard Worker [\\/$]*) false;; 16728*6a54128fSAndroid Build Coastguard Worker *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16729*6a54128fSAndroid Build Coastguard Worker esac || 16730*6a54128fSAndroid Build Coastguard Worker as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16731*6a54128fSAndroid Build Coastguard Worker esac 16732*6a54128fSAndroid Build Coastguard Worker case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16733*6a54128fSAndroid Build Coastguard Worker as_fn_append ac_file_inputs " '$ac_f'" 16734*6a54128fSAndroid Build Coastguard Worker done 16735*6a54128fSAndroid Build Coastguard Worker 16736*6a54128fSAndroid Build Coastguard Worker # Let's still pretend it is `configure' which instantiates (i.e., don't 16737*6a54128fSAndroid Build Coastguard Worker # use $as_me), people would be surprised to read: 16738*6a54128fSAndroid Build Coastguard Worker # /* config.h. Generated by config.status. */ 16739*6a54128fSAndroid Build Coastguard Worker configure_input='Generated from '` 16740*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16741*6a54128fSAndroid Build Coastguard Worker `' by configure.' 16742*6a54128fSAndroid Build Coastguard Worker if test x"$ac_file" != x-; then 16743*6a54128fSAndroid Build Coastguard Worker configure_input="$ac_file. $configure_input" 16744*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16745*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: creating $ac_file" >&6;} 16746*6a54128fSAndroid Build Coastguard Worker fi 16747*6a54128fSAndroid Build Coastguard Worker # Neutralize special characters interpreted by sed in replacement strings. 16748*6a54128fSAndroid Build Coastguard Worker case $configure_input in #( 16749*6a54128fSAndroid Build Coastguard Worker *\&* | *\|* | *\\* ) 16750*6a54128fSAndroid Build Coastguard Worker ac_sed_conf_input=`printf "%s\n" "$configure_input" | 16751*6a54128fSAndroid Build Coastguard Worker sed 's/[\\\\&|]/\\\\&/g'`;; #( 16752*6a54128fSAndroid Build Coastguard Worker *) ac_sed_conf_input=$configure_input;; 16753*6a54128fSAndroid Build Coastguard Worker esac 16754*6a54128fSAndroid Build Coastguard Worker 16755*6a54128fSAndroid Build Coastguard Worker case $ac_tag in 16756*6a54128fSAndroid Build Coastguard Worker *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16757*6a54128fSAndroid Build Coastguard Worker || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16758*6a54128fSAndroid Build Coastguard Worker esac 16759*6a54128fSAndroid Build Coastguard Worker ;; 16760*6a54128fSAndroid Build Coastguard Worker esac 16761*6a54128fSAndroid Build Coastguard Worker 16762*6a54128fSAndroid Build Coastguard Worker ac_dir=`$as_dirname -- "$ac_file" || 16763*6a54128fSAndroid Build Coastguard Worker$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16764*6a54128fSAndroid Build Coastguard Worker X"$ac_file" : 'X\(//\)[^/]' \| \ 16765*6a54128fSAndroid Build Coastguard Worker X"$ac_file" : 'X\(//\)$' \| \ 16766*6a54128fSAndroid Build Coastguard Worker X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16767*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" X"$ac_file" | 16768*6a54128fSAndroid Build Coastguard Worker sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16769*6a54128fSAndroid Build Coastguard Worker s//\1/ 16770*6a54128fSAndroid Build Coastguard Worker q 16771*6a54128fSAndroid Build Coastguard Worker } 16772*6a54128fSAndroid Build Coastguard Worker /^X\(\/\/\)[^/].*/{ 16773*6a54128fSAndroid Build Coastguard Worker s//\1/ 16774*6a54128fSAndroid Build Coastguard Worker q 16775*6a54128fSAndroid Build Coastguard Worker } 16776*6a54128fSAndroid Build Coastguard Worker /^X\(\/\/\)$/{ 16777*6a54128fSAndroid Build Coastguard Worker s//\1/ 16778*6a54128fSAndroid Build Coastguard Worker q 16779*6a54128fSAndroid Build Coastguard Worker } 16780*6a54128fSAndroid Build Coastguard Worker /^X\(\/\).*/{ 16781*6a54128fSAndroid Build Coastguard Worker s//\1/ 16782*6a54128fSAndroid Build Coastguard Worker q 16783*6a54128fSAndroid Build Coastguard Worker } 16784*6a54128fSAndroid Build Coastguard Worker s/.*/./; q'` 16785*6a54128fSAndroid Build Coastguard Worker as_dir="$ac_dir"; as_fn_mkdir_p 16786*6a54128fSAndroid Build Coastguard Worker ac_builddir=. 16787*6a54128fSAndroid Build Coastguard Worker 16788*6a54128fSAndroid Build Coastguard Workercase "$ac_dir" in 16789*6a54128fSAndroid Build Coastguard Worker.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16790*6a54128fSAndroid Build Coastguard Worker*) 16791*6a54128fSAndroid Build Coastguard Worker ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 16792*6a54128fSAndroid Build Coastguard Worker # A ".." for each directory in $ac_dir_suffix. 16793*6a54128fSAndroid Build Coastguard Worker ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16794*6a54128fSAndroid Build Coastguard Worker case $ac_top_builddir_sub in 16795*6a54128fSAndroid Build Coastguard Worker "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16796*6a54128fSAndroid Build Coastguard Worker *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16797*6a54128fSAndroid Build Coastguard Worker esac ;; 16798*6a54128fSAndroid Build Coastguard Workeresac 16799*6a54128fSAndroid Build Coastguard Workerac_abs_top_builddir=$ac_pwd 16800*6a54128fSAndroid Build Coastguard Workerac_abs_builddir=$ac_pwd$ac_dir_suffix 16801*6a54128fSAndroid Build Coastguard Worker# for backward compatibility: 16802*6a54128fSAndroid Build Coastguard Workerac_top_builddir=$ac_top_build_prefix 16803*6a54128fSAndroid Build Coastguard Worker 16804*6a54128fSAndroid Build Coastguard Workercase $srcdir in 16805*6a54128fSAndroid Build Coastguard Worker .) # We are building in place. 16806*6a54128fSAndroid Build Coastguard Worker ac_srcdir=. 16807*6a54128fSAndroid Build Coastguard Worker ac_top_srcdir=$ac_top_builddir_sub 16808*6a54128fSAndroid Build Coastguard Worker ac_abs_top_srcdir=$ac_pwd ;; 16809*6a54128fSAndroid Build Coastguard Worker [\\/]* | ?:[\\/]* ) # Absolute name. 16810*6a54128fSAndroid Build Coastguard Worker ac_srcdir=$srcdir$ac_dir_suffix; 16811*6a54128fSAndroid Build Coastguard Worker ac_top_srcdir=$srcdir 16812*6a54128fSAndroid Build Coastguard Worker ac_abs_top_srcdir=$srcdir ;; 16813*6a54128fSAndroid Build Coastguard Worker *) # Relative name. 16814*6a54128fSAndroid Build Coastguard Worker ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16815*6a54128fSAndroid Build Coastguard Worker ac_top_srcdir=$ac_top_build_prefix$srcdir 16816*6a54128fSAndroid Build Coastguard Worker ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16817*6a54128fSAndroid Build Coastguard Workeresac 16818*6a54128fSAndroid Build Coastguard Workerac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16819*6a54128fSAndroid Build Coastguard Worker 16820*6a54128fSAndroid Build Coastguard Worker 16821*6a54128fSAndroid Build Coastguard Worker case $ac_mode in 16822*6a54128fSAndroid Build Coastguard Worker :F) 16823*6a54128fSAndroid Build Coastguard Worker # 16824*6a54128fSAndroid Build Coastguard Worker # CONFIG_FILE 16825*6a54128fSAndroid Build Coastguard Worker # 16826*6a54128fSAndroid Build Coastguard Worker 16827*6a54128fSAndroid Build Coastguard Worker case $INSTALL in 16828*6a54128fSAndroid Build Coastguard Worker [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16829*6a54128fSAndroid Build Coastguard Worker *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16830*6a54128fSAndroid Build Coastguard Worker esac 16831*6a54128fSAndroid Build Coastguard Worker ac_MKDIR_P=$MKDIR_P 16832*6a54128fSAndroid Build Coastguard Worker case $MKDIR_P in 16833*6a54128fSAndroid Build Coastguard Worker [\\/$]* | ?:[\\/]* ) ;; 16834*6a54128fSAndroid Build Coastguard Worker */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16835*6a54128fSAndroid Build Coastguard Worker esac 16836*6a54128fSAndroid Build Coastguard Worker_ACEOF 16837*6a54128fSAndroid Build Coastguard Worker 16838*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16839*6a54128fSAndroid Build Coastguard Worker# If the template does not know about datarootdir, expand it. 16840*6a54128fSAndroid Build Coastguard Worker# FIXME: This hack should be removed a few years after 2.60. 16841*6a54128fSAndroid Build Coastguard Workerac_datarootdir_hack=; ac_datarootdir_seen= 16842*6a54128fSAndroid Build Coastguard Workerac_sed_dataroot=' 16843*6a54128fSAndroid Build Coastguard Worker/datarootdir/ { 16844*6a54128fSAndroid Build Coastguard Worker p 16845*6a54128fSAndroid Build Coastguard Worker q 16846*6a54128fSAndroid Build Coastguard Worker} 16847*6a54128fSAndroid Build Coastguard Worker/@datadir@/p 16848*6a54128fSAndroid Build Coastguard Worker/@docdir@/p 16849*6a54128fSAndroid Build Coastguard Worker/@infodir@/p 16850*6a54128fSAndroid Build Coastguard Worker/@localedir@/p 16851*6a54128fSAndroid Build Coastguard Worker/@mandir@/p' 16852*6a54128fSAndroid Build Coastguard Workercase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16853*6a54128fSAndroid Build Coastguard Worker*datarootdir*) ac_datarootdir_seen=yes;; 16854*6a54128fSAndroid Build Coastguard Worker*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16855*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16856*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16857*6a54128fSAndroid Build Coastguard Worker_ACEOF 16858*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16859*6a54128fSAndroid Build Coastguard Worker ac_datarootdir_hack=' 16860*6a54128fSAndroid Build Coastguard Worker s&@datadir@&$datadir&g 16861*6a54128fSAndroid Build Coastguard Worker s&@docdir@&$docdir&g 16862*6a54128fSAndroid Build Coastguard Worker s&@infodir@&$infodir&g 16863*6a54128fSAndroid Build Coastguard Worker s&@localedir@&$localedir&g 16864*6a54128fSAndroid Build Coastguard Worker s&@mandir@&$mandir&g 16865*6a54128fSAndroid Build Coastguard Worker s&\\\${datarootdir}&$datarootdir&g' ;; 16866*6a54128fSAndroid Build Coastguard Workeresac 16867*6a54128fSAndroid Build Coastguard Worker_ACEOF 16868*6a54128fSAndroid Build Coastguard Worker 16869*6a54128fSAndroid Build Coastguard Worker# Neutralize VPATH when `$srcdir' = `.'. 16870*6a54128fSAndroid Build Coastguard Worker# Shell code in configure.ac might set extrasub. 16871*6a54128fSAndroid Build Coastguard Worker# FIXME: do we really want to maintain this feature? 16872*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16873*6a54128fSAndroid Build Coastguard Workerac_sed_extra="$ac_vpsub 16874*6a54128fSAndroid Build Coastguard Worker$extrasub 16875*6a54128fSAndroid Build Coastguard Worker_ACEOF 16876*6a54128fSAndroid Build Coastguard Workercat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16877*6a54128fSAndroid Build Coastguard Worker:t 16878*6a54128fSAndroid Build Coastguard Worker/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16879*6a54128fSAndroid Build Coastguard Workers|@configure_input@|$ac_sed_conf_input|;t t 16880*6a54128fSAndroid Build Coastguard Workers&@top_builddir@&$ac_top_builddir_sub&;t t 16881*6a54128fSAndroid Build Coastguard Workers&@top_build_prefix@&$ac_top_build_prefix&;t t 16882*6a54128fSAndroid Build Coastguard Workers&@srcdir@&$ac_srcdir&;t t 16883*6a54128fSAndroid Build Coastguard Workers&@abs_srcdir@&$ac_abs_srcdir&;t t 16884*6a54128fSAndroid Build Coastguard Workers&@top_srcdir@&$ac_top_srcdir&;t t 16885*6a54128fSAndroid Build Coastguard Workers&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16886*6a54128fSAndroid Build Coastguard Workers&@builddir@&$ac_builddir&;t t 16887*6a54128fSAndroid Build Coastguard Workers&@abs_builddir@&$ac_abs_builddir&;t t 16888*6a54128fSAndroid Build Coastguard Workers&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16889*6a54128fSAndroid Build Coastguard Workers&@INSTALL@&$ac_INSTALL&;t t 16890*6a54128fSAndroid Build Coastguard Workers&@MKDIR_P@&$ac_MKDIR_P&;t t 16891*6a54128fSAndroid Build Coastguard Worker$ac_datarootdir_hack 16892*6a54128fSAndroid Build Coastguard Worker" 16893*6a54128fSAndroid Build Coastguard Workereval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 16894*6a54128fSAndroid Build Coastguard Workerif $ac_cs_awk_getline; then 16895*6a54128fSAndroid Build Coastguard Worker $AWK -f "$ac_tmp/subs.awk" 16896*6a54128fSAndroid Build Coastguard Workerelse 16897*6a54128fSAndroid Build Coastguard Worker $AWK -f "$ac_tmp/subs.awk" | $SHELL 16898*6a54128fSAndroid Build Coastguard Workerfi \ 16899*6a54128fSAndroid Build Coastguard Worker >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16900*6a54128fSAndroid Build Coastguard Worker 16901*6a54128fSAndroid Build Coastguard Workertest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16902*6a54128fSAndroid Build Coastguard Worker { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16903*6a54128fSAndroid Build Coastguard Worker { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16904*6a54128fSAndroid Build Coastguard Worker "$ac_tmp/out"`; test -z "$ac_out"; } && 16905*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16906*6a54128fSAndroid Build Coastguard Workerwhich seems to be undefined. Please make sure it is defined" >&5 16907*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16908*6a54128fSAndroid Build Coastguard Workerwhich seems to be undefined. Please make sure it is defined" >&2;} 16909*6a54128fSAndroid Build Coastguard Worker 16910*6a54128fSAndroid Build Coastguard Worker rm -f "$ac_tmp/stdin" 16911*6a54128fSAndroid Build Coastguard Worker case $ac_file in 16912*6a54128fSAndroid Build Coastguard Worker -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16913*6a54128fSAndroid Build Coastguard Worker *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16914*6a54128fSAndroid Build Coastguard Worker esac \ 16915*6a54128fSAndroid Build Coastguard Worker || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16916*6a54128fSAndroid Build Coastguard Worker ;; 16917*6a54128fSAndroid Build Coastguard Worker :H) 16918*6a54128fSAndroid Build Coastguard Worker # 16919*6a54128fSAndroid Build Coastguard Worker # CONFIG_HEADER 16920*6a54128fSAndroid Build Coastguard Worker # 16921*6a54128fSAndroid Build Coastguard Worker if test x"$ac_file" != x-; then 16922*6a54128fSAndroid Build Coastguard Worker { 16923*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "/* $configure_input */" >&1 \ 16924*6a54128fSAndroid Build Coastguard Worker && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16925*6a54128fSAndroid Build Coastguard Worker } >"$ac_tmp/config.h" \ 16926*6a54128fSAndroid Build Coastguard Worker || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16927*6a54128fSAndroid Build Coastguard Worker if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16928*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16929*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 16930*6a54128fSAndroid Build Coastguard Worker else 16931*6a54128fSAndroid Build Coastguard Worker rm -f "$ac_file" 16932*6a54128fSAndroid Build Coastguard Worker mv "$ac_tmp/config.h" "$ac_file" \ 16933*6a54128fSAndroid Build Coastguard Worker || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16934*6a54128fSAndroid Build Coastguard Worker fi 16935*6a54128fSAndroid Build Coastguard Worker else 16936*6a54128fSAndroid Build Coastguard Worker printf "%s\n" "/* $configure_input */" >&1 \ 16937*6a54128fSAndroid Build Coastguard Worker && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16938*6a54128fSAndroid Build Coastguard Worker || as_fn_error $? "could not create -" "$LINENO" 5 16939*6a54128fSAndroid Build Coastguard Worker fi 16940*6a54128fSAndroid Build Coastguard Worker ;; 16941*6a54128fSAndroid Build Coastguard Worker 16942*6a54128fSAndroid Build Coastguard Worker :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16943*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: executing $ac_file commands" >&6;} 16944*6a54128fSAndroid Build Coastguard Worker ;; 16945*6a54128fSAndroid Build Coastguard Worker esac 16946*6a54128fSAndroid Build Coastguard Worker 16947*6a54128fSAndroid Build Coastguard Worker 16948*6a54128fSAndroid Build Coastguard Worker case $ac_file$ac_mode in 16949*6a54128fSAndroid Build Coastguard Worker "po-directories":C) 16950*6a54128fSAndroid Build Coastguard Worker for ac_file in $CONFIG_FILES; do 16951*6a54128fSAndroid Build Coastguard Worker # Support "outfile[:infile[:infile...]]" 16952*6a54128fSAndroid Build Coastguard Worker case "$ac_file" in 16953*6a54128fSAndroid Build Coastguard Worker *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 16954*6a54128fSAndroid Build Coastguard Worker esac 16955*6a54128fSAndroid Build Coastguard Worker # PO directories have a Makefile.in generated from Makefile.in.in. 16956*6a54128fSAndroid Build Coastguard Worker case "$ac_file" in */Makefile.in) 16957*6a54128fSAndroid Build Coastguard Worker # Adjust a relative srcdir. 16958*6a54128fSAndroid Build Coastguard Worker ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 16959*6a54128fSAndroid Build Coastguard Worker ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 16960*6a54128fSAndroid Build Coastguard Worker ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 16961*6a54128fSAndroid Build Coastguard Worker # In autoconf-2.13 it is called $ac_given_srcdir. 16962*6a54128fSAndroid Build Coastguard Worker # In autoconf-2.50 it is called $srcdir. 16963*6a54128fSAndroid Build Coastguard Worker test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 16964*6a54128fSAndroid Build Coastguard Worker case "$ac_given_srcdir" in 16965*6a54128fSAndroid Build Coastguard Worker .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 16966*6a54128fSAndroid Build Coastguard Worker /*) top_srcdir="$ac_given_srcdir" ;; 16967*6a54128fSAndroid Build Coastguard Worker *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 16968*6a54128fSAndroid Build Coastguard Worker esac 16969*6a54128fSAndroid Build Coastguard Worker # Treat a directory as a PO directory if and only if it has a 16970*6a54128fSAndroid Build Coastguard Worker # POTFILES.in file. This allows packages to have multiple PO 16971*6a54128fSAndroid Build Coastguard Worker # directories under different names or in different locations. 16972*6a54128fSAndroid Build Coastguard Worker if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 16973*6a54128fSAndroid Build Coastguard Worker rm -f "$ac_dir/POTFILES" 16974*6a54128fSAndroid Build Coastguard Worker test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 16975*6a54128fSAndroid Build Coastguard Worker gt_tab=`printf '\t'` 16976*6a54128fSAndroid Build Coastguard Worker cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 16977*6a54128fSAndroid Build Coastguard Worker POMAKEFILEDEPS="POTFILES.in" 16978*6a54128fSAndroid Build Coastguard Worker # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 16979*6a54128fSAndroid Build Coastguard Worker # on $ac_dir but don't depend on user-specified configuration 16980*6a54128fSAndroid Build Coastguard Worker # parameters. 16981*6a54128fSAndroid Build Coastguard Worker if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 16982*6a54128fSAndroid Build Coastguard Worker # The LINGUAS file contains the set of available languages. 16983*6a54128fSAndroid Build Coastguard Worker if test -n "$OBSOLETE_ALL_LINGUAS"; then 16984*6a54128fSAndroid Build Coastguard Worker test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 16985*6a54128fSAndroid Build Coastguard Worker fi 16986*6a54128fSAndroid Build Coastguard Worker ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 16987*6a54128fSAndroid Build Coastguard Worker POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 16988*6a54128fSAndroid Build Coastguard Worker else 16989*6a54128fSAndroid Build Coastguard Worker # The set of available languages was given in configure.in. 16990*6a54128fSAndroid Build Coastguard Worker ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS 16991*6a54128fSAndroid Build Coastguard Worker fi 16992*6a54128fSAndroid Build Coastguard Worker # Compute POFILES 16993*6a54128fSAndroid Build Coastguard Worker # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 16994*6a54128fSAndroid Build Coastguard Worker # Compute UPDATEPOFILES 16995*6a54128fSAndroid Build Coastguard Worker # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 16996*6a54128fSAndroid Build Coastguard Worker # Compute DUMMYPOFILES 16997*6a54128fSAndroid Build Coastguard Worker # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 16998*6a54128fSAndroid Build Coastguard Worker # Compute GMOFILES 16999*6a54128fSAndroid Build Coastguard Worker # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 17000*6a54128fSAndroid Build Coastguard Worker case "$ac_given_srcdir" in 17001*6a54128fSAndroid Build Coastguard Worker .) srcdirpre= ;; 17002*6a54128fSAndroid Build Coastguard Worker *) srcdirpre='$(srcdir)/' ;; 17003*6a54128fSAndroid Build Coastguard Worker esac 17004*6a54128fSAndroid Build Coastguard Worker POFILES= 17005*6a54128fSAndroid Build Coastguard Worker UPDATEPOFILES= 17006*6a54128fSAndroid Build Coastguard Worker DUMMYPOFILES= 17007*6a54128fSAndroid Build Coastguard Worker GMOFILES= 17008*6a54128fSAndroid Build Coastguard Worker for lang in $ALL_LINGUAS; do 17009*6a54128fSAndroid Build Coastguard Worker POFILES="$POFILES $srcdirpre$lang.po" 17010*6a54128fSAndroid Build Coastguard Worker UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 17011*6a54128fSAndroid Build Coastguard Worker DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 17012*6a54128fSAndroid Build Coastguard Worker GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 17013*6a54128fSAndroid Build Coastguard Worker done 17014*6a54128fSAndroid Build Coastguard Worker # CATALOGS depends on both $ac_dir and the user's LINGUAS 17015*6a54128fSAndroid Build Coastguard Worker # environment variable. 17016*6a54128fSAndroid Build Coastguard Worker INST_LINGUAS= 17017*6a54128fSAndroid Build Coastguard Worker if test -n "$ALL_LINGUAS"; then 17018*6a54128fSAndroid Build Coastguard Worker for presentlang in $ALL_LINGUAS; do 17019*6a54128fSAndroid Build Coastguard Worker useit=no 17020*6a54128fSAndroid Build Coastguard Worker if test "%UNSET%" != "$LINGUAS"; then 17021*6a54128fSAndroid Build Coastguard Worker desiredlanguages="$LINGUAS" 17022*6a54128fSAndroid Build Coastguard Worker else 17023*6a54128fSAndroid Build Coastguard Worker desiredlanguages="$ALL_LINGUAS" 17024*6a54128fSAndroid Build Coastguard Worker fi 17025*6a54128fSAndroid Build Coastguard Worker for desiredlang in $desiredlanguages; do 17026*6a54128fSAndroid Build Coastguard Worker # Use the presentlang catalog if desiredlang is 17027*6a54128fSAndroid Build Coastguard Worker # a. equal to presentlang, or 17028*6a54128fSAndroid Build Coastguard Worker # b. a variant of presentlang (because in this case, 17029*6a54128fSAndroid Build Coastguard Worker # presentlang can be used as a fallback for messages 17030*6a54128fSAndroid Build Coastguard Worker # which are not translated in the desiredlang catalog). 17031*6a54128fSAndroid Build Coastguard Worker case "$desiredlang" in 17032*6a54128fSAndroid Build Coastguard Worker "$presentlang"*) useit=yes;; 17033*6a54128fSAndroid Build Coastguard Worker esac 17034*6a54128fSAndroid Build Coastguard Worker done 17035*6a54128fSAndroid Build Coastguard Worker if test $useit = yes; then 17036*6a54128fSAndroid Build Coastguard Worker INST_LINGUAS="$INST_LINGUAS $presentlang" 17037*6a54128fSAndroid Build Coastguard Worker fi 17038*6a54128fSAndroid Build Coastguard Worker done 17039*6a54128fSAndroid Build Coastguard Worker fi 17040*6a54128fSAndroid Build Coastguard Worker CATALOGS= 17041*6a54128fSAndroid Build Coastguard Worker if test -n "$INST_LINGUAS"; then 17042*6a54128fSAndroid Build Coastguard Worker for lang in $INST_LINGUAS; do 17043*6a54128fSAndroid Build Coastguard Worker CATALOGS="$CATALOGS $lang.gmo" 17044*6a54128fSAndroid Build Coastguard Worker done 17045*6a54128fSAndroid Build Coastguard Worker fi 17046*6a54128fSAndroid Build Coastguard Worker test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 17047*6a54128fSAndroid Build Coastguard Worker sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 17048*6a54128fSAndroid Build Coastguard Worker for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 17049*6a54128fSAndroid Build Coastguard Worker if test -f "$f"; then 17050*6a54128fSAndroid Build Coastguard Worker case "$f" in 17051*6a54128fSAndroid Build Coastguard Worker *.orig | *.bak | *~) ;; 17052*6a54128fSAndroid Build Coastguard Worker *) cat "$f" >> "$ac_dir/Makefile" ;; 17053*6a54128fSAndroid Build Coastguard Worker esac 17054*6a54128fSAndroid Build Coastguard Worker fi 17055*6a54128fSAndroid Build Coastguard Worker done 17056*6a54128fSAndroid Build Coastguard Worker fi 17057*6a54128fSAndroid Build Coastguard Worker ;; 17058*6a54128fSAndroid Build Coastguard Worker esac 17059*6a54128fSAndroid Build Coastguard Worker done ;; 17060*6a54128fSAndroid Build Coastguard Worker 17061*6a54128fSAndroid Build Coastguard Worker esac 17062*6a54128fSAndroid Build Coastguard Workerdone # for ac_tag 17063*6a54128fSAndroid Build Coastguard Worker 17064*6a54128fSAndroid Build Coastguard Worker 17065*6a54128fSAndroid Build Coastguard Workeras_fn_exit 0 17066*6a54128fSAndroid Build Coastguard Worker_ACEOF 17067*6a54128fSAndroid Build Coastguard Workerac_clean_files=$ac_clean_files_save 17068*6a54128fSAndroid Build Coastguard Worker 17069*6a54128fSAndroid Build Coastguard Workertest $ac_write_fail = 0 || 17070*6a54128fSAndroid Build Coastguard Worker as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17071*6a54128fSAndroid Build Coastguard Worker 17072*6a54128fSAndroid Build Coastguard Worker 17073*6a54128fSAndroid Build Coastguard Worker# configure is writing to config.log, and then calls config.status. 17074*6a54128fSAndroid Build Coastguard Worker# config.status does its own redirection, appending to config.log. 17075*6a54128fSAndroid Build Coastguard Worker# Unfortunately, on DOS this fails, as config.log is still kept open 17076*6a54128fSAndroid Build Coastguard Worker# by configure, so config.status won't be able to write to it; its 17077*6a54128fSAndroid Build Coastguard Worker# output is simply discarded. So we exec the FD to /dev/null, 17078*6a54128fSAndroid Build Coastguard Worker# effectively closing config.log, so it can be properly (re)opened and 17079*6a54128fSAndroid Build Coastguard Worker# appended to by config.status. When coming back to configure, we 17080*6a54128fSAndroid Build Coastguard Worker# need to make the FD available again. 17081*6a54128fSAndroid Build Coastguard Workerif test "$no_create" != yes; then 17082*6a54128fSAndroid Build Coastguard Worker ac_cs_success=: 17083*6a54128fSAndroid Build Coastguard Worker ac_config_status_args= 17084*6a54128fSAndroid Build Coastguard Worker test "$silent" = yes && 17085*6a54128fSAndroid Build Coastguard Worker ac_config_status_args="$ac_config_status_args --quiet" 17086*6a54128fSAndroid Build Coastguard Worker exec 5>/dev/null 17087*6a54128fSAndroid Build Coastguard Worker $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17088*6a54128fSAndroid Build Coastguard Worker exec 5>>config.log 17089*6a54128fSAndroid Build Coastguard Worker # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17090*6a54128fSAndroid Build Coastguard Worker # would make configure fail if this is the last instruction. 17091*6a54128fSAndroid Build Coastguard Worker $ac_cs_success || as_fn_exit 1 17092*6a54128fSAndroid Build Coastguard Workerfi 17093*6a54128fSAndroid Build Coastguard Workerif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17094*6a54128fSAndroid Build Coastguard Worker { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17095*6a54128fSAndroid Build Coastguard Workerprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17096*6a54128fSAndroid Build Coastguard Workerfi 17097*6a54128fSAndroid Build Coastguard Worker 17098*6a54128fSAndroid Build Coastguard Workerif test -f util/gen-tarball; then chmod +x util/gen-tarball; fi 17099*6a54128fSAndroid Build Coastguard Worker 17100