| 1 |
#! /bin/sh |
| 2 |
# Guess values for system-dependent variables and create Makefiles. |
| 3 |
# Generated by GNU Autoconf 2.72 for phonesim 2.1. |
| 4 |
# |
| 5 |
# |
| 6 |
# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, |
| 7 |
# Inc. |
| 8 |
# |
| 9 |
# |
| 10 |
# This configure script is free software; the Free Software Foundation |
| 11 |
# gives unlimited permission to copy, distribute and modify it. |
| 12 |
## -------------------- ## |
| 13 |
## M4sh Initialization. ## |
| 14 |
## -------------------- ## |
| 15 |
|
| 16 |
# Be more Bourne compatible |
| 17 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 18 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 19 |
then : |
| 20 |
emulate sh |
| 21 |
NULLCMD=: |
| 22 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 |
# is contrary to our usage. Disable this feature. |
| 24 |
alias -g '${1+"$@"}'='"$@"' |
| 25 |
setopt NO_GLOB_SUBST |
| 26 |
else case e in #( |
| 27 |
e) case `(set -o) 2>/dev/null` in #( |
| 28 |
*posix*) : |
| 29 |
set -o posix ;; #( |
| 30 |
*) : |
| 31 |
;; |
| 32 |
esac ;; |
| 33 |
esac |
| 34 |
fi |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
# Reset variables that may have inherited troublesome values from |
| 39 |
# the environment. |
| 40 |
|
| 41 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 42 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 43 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
| 44 |
# Quoting is to prevent editors from complaining about space-tab. |
| 45 |
as_nl=' |
| 46 |
' |
| 47 |
export as_nl |
| 48 |
IFS=" "" $as_nl" |
| 49 |
|
| 50 |
PS1='$ ' |
| 51 |
PS2='> ' |
| 52 |
PS4='+ ' |
| 53 |
|
| 54 |
# Ensure predictable behavior from utilities with locale-dependent output. |
| 55 |
LC_ALL=C |
| 56 |
export LC_ALL |
| 57 |
LANGUAGE=C |
| 58 |
export LANGUAGE |
| 59 |
|
| 60 |
# We cannot yet rely on "unset" to work, but we need these variables |
| 61 |
# to be unset--not just set to an empty or harmless value--now, to |
| 62 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 63 |
# also avoids known problems related to "unset" and subshell syntax |
| 64 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 65 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 66 |
do eval test \${$as_var+y} \ |
| 67 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 68 |
done |
| 69 |
|
| 70 |
# Ensure that fds 0, 1, and 2 are open. |
| 71 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 72 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 73 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 74 |
|
| 75 |
# The user is always right. |
| 76 |
if ${PATH_SEPARATOR+false} :; then |
| 77 |
PATH_SEPARATOR=: |
| 78 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 79 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 80 |
PATH_SEPARATOR=';' |
| 81 |
} |
| 82 |
fi |
| 83 |
|
| 84 |
|
| 85 |
# Find who we are. Look in the path if we contain no directory separator. |
| 86 |
as_myself= |
| 87 |
case $0 in #(( |
| 88 |
*[\\/]* ) as_myself=$0 ;; |
| 89 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 90 |
for as_dir in $PATH |
| 91 |
do |
| 92 |
IFS=$as_save_IFS |
| 93 |
case $as_dir in #((( |
| 94 |
'') as_dir=./ ;; |
| 95 |
*/) ;; |
| 96 |
*) as_dir=$as_dir/ ;; |
| 97 |
esac |
| 98 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 99 |
done |
| 100 |
IFS=$as_save_IFS |
| 101 |
|
| 102 |
;; |
| 103 |
esac |
| 104 |
# We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 105 |
# in which case we are not to be found in the path. |
| 106 |
if test "x$as_myself" = x; then |
| 107 |
as_myself=$0 |
| 108 |
fi |
| 109 |
if test ! -f "$as_myself"; then |
| 110 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 111 |
exit 1 |
| 112 |
fi |
| 113 |
|
| 114 |
|
| 115 |
# Use a proper internal environment variable to ensure we don't fall |
| 116 |
# into an infinite loop, continuously re-executing ourselves. |
| 117 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 118 |
_as_can_reexec=no; export _as_can_reexec; |
| 119 |
# We cannot yet assume a decent shell, so we have to provide a |
| 120 |
# neutralization value for shells without unset; and this also |
| 121 |
# works around shells that cannot unset nonexistent variables. |
| 122 |
# Preserve -v and -x to the replacement shell. |
| 123 |
BASH_ENV=/dev/null |
| 124 |
ENV=/dev/null |
| 125 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 126 |
case $- in # (((( |
| 127 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 128 |
*v* ) as_opts=-v ;; |
| 129 |
*x* ) as_opts=-x ;; |
| 130 |
* ) as_opts= ;; |
| 131 |
esac |
| 132 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 133 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 134 |
# out after a failed 'exec'. |
| 135 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 136 |
exit 255 |
| 137 |
fi |
| 138 |
# We don't want this to propagate to other subprocesses. |
| 139 |
{ _as_can_reexec=; unset _as_can_reexec;} |
| 140 |
if test "x$CONFIG_SHELL" = x; then |
| 141 |
as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 142 |
then : |
| 143 |
emulate sh |
| 144 |
NULLCMD=: |
| 145 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 146 |
# is contrary to our usage. Disable this feature. |
| 147 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 148 |
setopt NO_GLOB_SUBST |
| 149 |
else case e in #( |
| 150 |
e) case \`(set -o) 2>/dev/null\` in #( |
| 151 |
*posix*) : |
| 152 |
set -o posix ;; #( |
| 153 |
*) : |
| 154 |
;; |
| 155 |
esac ;; |
| 156 |
esac |
| 157 |
fi |
| 158 |
" |
| 159 |
as_required="as_fn_return () { (exit \$1); } |
| 160 |
as_fn_success () { as_fn_return 0; } |
| 161 |
as_fn_failure () { as_fn_return 1; } |
| 162 |
as_fn_ret_success () { return 0; } |
| 163 |
as_fn_ret_failure () { return 1; } |
| 164 |
|
| 165 |
exitcode=0 |
| 166 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 167 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 168 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 169 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 170 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
| 171 |
then : |
| 172 |
|
| 173 |
else case e in #( |
| 174 |
e) exitcode=1; echo positional parameters were not saved. ;; |
| 175 |
esac |
| 176 |
fi |
| 177 |
test x\$exitcode = x0 || exit 1 |
| 178 |
blah=\$(echo \$(echo blah)) |
| 179 |
test x\"\$blah\" = xblah || exit 1 |
| 180 |
test -x / || exit 1" |
| 181 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 182 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 183 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 184 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
| 185 |
if (eval "$as_required") 2>/dev/null |
| 186 |
then : |
| 187 |
as_have_required=yes |
| 188 |
else case e in #( |
| 189 |
e) as_have_required=no ;; |
| 190 |
esac |
| 191 |
fi |
| 192 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 193 |
then : |
| 194 |
|
| 195 |
else case e in #( |
| 196 |
e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 197 |
as_found=false |
| 198 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 199 |
do |
| 200 |
IFS=$as_save_IFS |
| 201 |
case $as_dir in #((( |
| 202 |
'') as_dir=./ ;; |
| 203 |
*/) ;; |
| 204 |
*) as_dir=$as_dir/ ;; |
| 205 |
esac |
| 206 |
as_found=: |
| 207 |
case $as_dir in #( |
| 208 |
/*) |
| 209 |
for as_base in sh bash ksh sh5; do |
| 210 |
# Try only shells that exist, to save several forks. |
| 211 |
as_shell=$as_dir$as_base |
| 212 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 213 |
as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 214 |
then : |
| 215 |
CONFIG_SHELL=$as_shell as_have_required=yes |
| 216 |
if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 217 |
then : |
| 218 |
break 2 |
| 219 |
fi |
| 220 |
fi |
| 221 |
done;; |
| 222 |
esac |
| 223 |
as_found=false |
| 224 |
done |
| 225 |
IFS=$as_save_IFS |
| 226 |
if $as_found |
| 227 |
then : |
| 228 |
|
| 229 |
else case e in #( |
| 230 |
e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 231 |
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 232 |
then : |
| 233 |
CONFIG_SHELL=$SHELL as_have_required=yes |
| 234 |
fi ;; |
| 235 |
esac |
| 236 |
fi |
| 237 |
|
| 238 |
|
| 239 |
if test "x$CONFIG_SHELL" != x |
| 240 |
then : |
| 241 |
export CONFIG_SHELL |
| 242 |
# We cannot yet assume a decent shell, so we have to provide a |
| 243 |
# neutralization value for shells without unset; and this also |
| 244 |
# works around shells that cannot unset nonexistent variables. |
| 245 |
# Preserve -v and -x to the replacement shell. |
| 246 |
BASH_ENV=/dev/null |
| 247 |
ENV=/dev/null |
| 248 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 249 |
case $- in # (((( |
| 250 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 251 |
*v* ) as_opts=-v ;; |
| 252 |
*x* ) as_opts=-x ;; |
| 253 |
* ) as_opts= ;; |
| 254 |
esac |
| 255 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 256 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 257 |
# out after a failed 'exec'. |
| 258 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 259 |
exit 255 |
| 260 |
fi |
| 261 |
|
| 262 |
if test x$as_have_required = xno |
| 263 |
then : |
| 264 |
printf "%s\n" "$0: This script requires a shell more modern than all" |
| 265 |
printf "%s\n" "$0: the shells that I found on your system." |
| 266 |
if test ${ZSH_VERSION+y} ; then |
| 267 |
printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 268 |
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 269 |
else |
| 270 |
printf "%s\n" "$0: Please tell [email protected] about your system, |
| 271 |
$0: including any error possibly output before this |
| 272 |
$0: message. Then install a modern shell, or manually run |
| 273 |
$0: the script under such a shell if you do have one." |
| 274 |
fi |
| 275 |
exit 1 |
| 276 |
fi ;; |
| 277 |
esac |
| 278 |
fi |
| 279 |
fi |
| 280 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 281 |
export SHELL |
| 282 |
# Unset more variables known to interfere with behavior of common tools. |
| 283 |
CLICOLOR_FORCE= GREP_OPTIONS= |
| 284 |
unset CLICOLOR_FORCE GREP_OPTIONS |
| 285 |
|
| 286 |
## --------------------- ## |
| 287 |
## M4sh Shell Functions. ## |
| 288 |
## --------------------- ## |
| 289 |
# as_fn_unset VAR |
| 290 |
# --------------- |
| 291 |
# Portably unset VAR. |
| 292 |
as_fn_unset () |
| 293 |
{ |
| 294 |
{ eval $1=; unset $1;} |
| 295 |
} |
| 296 |
as_unset=as_fn_unset |
| 297 |
|
| 298 |
|
| 299 |
# as_fn_set_status STATUS |
| 300 |
# ----------------------- |
| 301 |
# Set $? to STATUS, without forking. |
| 302 |
as_fn_set_status () |
| 303 |
{ |
| 304 |
return $1 |
| 305 |
} # as_fn_set_status |
| 306 |
|
| 307 |
# as_fn_exit STATUS |
| 308 |
# ----------------- |
| 309 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 310 |
as_fn_exit () |
| 311 |
{ |
| 312 |
set +e |
| 313 |
as_fn_set_status $1 |
| 314 |
exit $1 |
| 315 |
} # as_fn_exit |
| 316 |
|
| 317 |
# as_fn_mkdir_p |
| 318 |
# ------------- |
| 319 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 320 |
as_fn_mkdir_p () |
| 321 |
{ |
| 322 |
|
| 323 |
case $as_dir in #( |
| 324 |
-*) as_dir=./$as_dir;; |
| 325 |
esac |
| 326 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 327 |
as_dirs= |
| 328 |
while :; do |
| 329 |
case $as_dir in #( |
| 330 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 331 |
*) as_qdir=$as_dir;; |
| 332 |
esac |
| 333 |
as_dirs="'$as_qdir' $as_dirs" |
| 334 |
as_dir=`$as_dirname -- "$as_dir" || |
| 335 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 336 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 337 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 338 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 339 |
printf "%s\n" X"$as_dir" | |
| 340 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 341 |
s//\1/ |
| 342 |
q |
| 343 |
} |
| 344 |
/^X\(\/\/\)[^/].*/{ |
| 345 |
s//\1/ |
| 346 |
q |
| 347 |
} |
| 348 |
/^X\(\/\/\)$/{ |
| 349 |
s//\1/ |
| 350 |
q |
| 351 |
} |
| 352 |
/^X\(\/\).*/{ |
| 353 |
s//\1/ |
| 354 |
q |
| 355 |
} |
| 356 |
s/.*/./; q'` |
| 357 |
test -d "$as_dir" && break |
| 358 |
done |
| 359 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 360 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 361 |
|
| 362 |
|
| 363 |
} # as_fn_mkdir_p |
| 364 |
|
| 365 |
# as_fn_executable_p FILE |
| 366 |
# ----------------------- |
| 367 |
# Test if FILE is an executable regular file. |
| 368 |
as_fn_executable_p () |
| 369 |
{ |
| 370 |
test -f "$1" && test -x "$1" |
| 371 |
} # as_fn_executable_p |
| 372 |
# as_fn_append VAR VALUE |
| 373 |
# ---------------------- |
| 374 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 375 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 376 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 377 |
# implementations. |
| 378 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 379 |
then : |
| 380 |
eval 'as_fn_append () |
| 381 |
{ |
| 382 |
eval $1+=\$2 |
| 383 |
}' |
| 384 |
else case e in #( |
| 385 |
e) as_fn_append () |
| 386 |
{ |
| 387 |
eval $1=\$$1\$2 |
| 388 |
} ;; |
| 389 |
esac |
| 390 |
fi # as_fn_append |
| 391 |
|
| 392 |
# as_fn_arith ARG... |
| 393 |
# ------------------ |
| 394 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 395 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 396 |
# must be portable across $(()) and expr. |
| 397 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 398 |
then : |
| 399 |
eval 'as_fn_arith () |
| 400 |
{ |
| 401 |
as_val=$(( $* )) |
| 402 |
}' |
| 403 |
else case e in #( |
| 404 |
e) as_fn_arith () |
| 405 |
{ |
| 406 |
as_val=`expr "$@" || test $? -eq 1` |
| 407 |
} ;; |
| 408 |
esac |
| 409 |
fi # as_fn_arith |
| 410 |
|
| 411 |
|
| 412 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 413 |
# ---------------------------------------- |
| 414 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 415 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 416 |
# script with STATUS, using 1 if that was 0. |
| 417 |
as_fn_error () |
| 418 |
{ |
| 419 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 420 |
if test "$4"; then |
| 421 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 422 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 423 |
fi |
| 424 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 425 |
as_fn_exit $as_status |
| 426 |
} # as_fn_error |
| 427 |
|
| 428 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 429 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 430 |
as_expr=expr |
| 431 |
else |
| 432 |
as_expr=false |
| 433 |
fi |
| 434 |
|
| 435 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 436 |
as_basename=basename |
| 437 |
else |
| 438 |
as_basename=false |
| 439 |
fi |
| 440 |
|
| 441 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 442 |
as_dirname=dirname |
| 443 |
else |
| 444 |
as_dirname=false |
| 445 |
fi |
| 446 |
|
| 447 |
as_me=`$as_basename -- "$0" || |
| 448 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 449 |
X"$0" : 'X\(//\)$' \| \ |
| 450 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 451 |
printf "%s\n" X/"$0" | |
| 452 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 453 |
s//\1/ |
| 454 |
q |
| 455 |
} |
| 456 |
/^X\/\(\/\/\)$/{ |
| 457 |
s//\1/ |
| 458 |
q |
| 459 |
} |
| 460 |
/^X\/\(\/\).*/{ |
| 461 |
s//\1/ |
| 462 |
q |
| 463 |
} |
| 464 |
s/.*/./; q'` |
| 465 |
|
| 466 |
# Avoid depending upon Character Ranges. |
| 467 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 468 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 469 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 470 |
as_cr_digits='0123456789' |
| 471 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 472 |
|
| 473 |
|
| 474 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 475 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 476 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 477 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 478 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 479 |
sed -n ' |
| 480 |
p |
| 481 |
/[$]LINENO/= |
| 482 |
' <$as_myself | |
| 483 |
sed ' |
| 484 |
t clear |
| 485 |
:clear |
| 486 |
s/[$]LINENO.*/&-/ |
| 487 |
t lineno |
| 488 |
b |
| 489 |
:lineno |
| 490 |
N |
| 491 |
:loop |
| 492 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 493 |
t loop |
| 494 |
s/-\n.*// |
| 495 |
' >$as_me.lineno && |
| 496 |
chmod +x "$as_me.lineno" || |
| 497 |
{ printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 498 |
|
| 499 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 500 |
# already done that, so ensure we don't try to do so again and fall |
| 501 |
# in an infinite loop. This has already happened in practice. |
| 502 |
_as_can_reexec=no; export _as_can_reexec |
| 503 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 504 |
# (the dirname of $[0] is not the place where we might find the |
| 505 |
# original and so on. Autoconf is especially sensitive to this). |
| 506 |
. "./$as_me.lineno" |
| 507 |
# Exit status is that of the last command. |
| 508 |
exit |
| 509 |
} |
| 510 |
|
| 511 |
|
| 512 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 513 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 514 |
# for compatibility with existing Makefiles. |
| 515 |
ECHO_C= ECHO_N= ECHO_T= |
| 516 |
case `echo -n x` in #((((( |
| 517 |
-n*) |
| 518 |
case `echo 'xy\c'` in |
| 519 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 520 |
xy) ECHO_C='\c';; |
| 521 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 522 |
ECHO_T=' ';; |
| 523 |
esac;; |
| 524 |
*) |
| 525 |
ECHO_N='-n';; |
| 526 |
esac |
| 527 |
|
| 528 |
# For backward compatibility with old third-party macros, we provide |
| 529 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 530 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 531 |
as_echo='printf %s\n' |
| 532 |
as_echo_n='printf %s' |
| 533 |
|
| 534 |
rm -f conf$$ conf$$.exe conf$$.file |
| 535 |
if test -d conf$$.dir; then |
| 536 |
rm -f conf$$.dir/conf$$.file |
| 537 |
else |
| 538 |
rm -f conf$$.dir |
| 539 |
mkdir conf$$.dir 2>/dev/null |
| 540 |
fi |
| 541 |
if (echo >conf$$.file) 2>/dev/null; then |
| 542 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 543 |
as_ln_s='ln -s' |
| 544 |
# ... but there are two gotchas: |
| 545 |
# 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 546 |
# 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 547 |
# In both cases, we have to default to 'cp -pR'. |
| 548 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 549 |
as_ln_s='cp -pR' |
| 550 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 551 |
as_ln_s=ln |
| 552 |
else |
| 553 |
as_ln_s='cp -pR' |
| 554 |
fi |
| 555 |
else |
| 556 |
as_ln_s='cp -pR' |
| 557 |
fi |
| 558 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 559 |
rmdir conf$$.dir 2>/dev/null |
| 560 |
|
| 561 |
if mkdir -p . 2>/dev/null; then |
| 562 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 563 |
else |
| 564 |
test -d ./-p && rmdir ./-p |
| 565 |
as_mkdir_p=false |
| 566 |
fi |
| 567 |
|
| 568 |
as_test_x='test -x' |
| 569 |
as_executable_p=as_fn_executable_p |
| 570 |
|
| 571 |
# Sed expression to map a string onto a valid CPP name. |
| 572 |
as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 573 |
as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 574 |
|
| 575 |
# Sed expression to map a string onto a valid variable name. |
| 576 |
as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 577 |
as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 578 |
|
| 579 |
|
| 580 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
| 581 |
exec 6>&1 |
| 582 |
|
| 583 |
# Name of the host. |
| 584 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 585 |
# so uname gets run too. |
| 586 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 587 |
|
| 588 |
# |
| 589 |
# Initializations. |
| 590 |
# |
| 591 |
ac_default_prefix=/usr/local |
| 592 |
ac_clean_files= |
| 593 |
ac_config_libobj_dir=. |
| 594 |
LIBOBJS= |
| 595 |
cross_compiling=no |
| 596 |
subdirs= |
| 597 |
MFLAGS= |
| 598 |
MAKEFLAGS= |
| 599 |
|
| 600 |
# Identity of this package. |
| 601 |
PACKAGE_NAME='phonesim' |
| 602 |
PACKAGE_TARNAME='phonesim' |
| 603 |
PACKAGE_VERSION='2.1' |
| 604 |
PACKAGE_STRING='phonesim 2.1' |
| 605 |
PACKAGE_BUGREPORT='' |
| 606 |
PACKAGE_URL='' |
| 607 |
|
| 608 |
ac_default_prefix=/usr/local |
| 609 |
ac_subst_vars='am__EXEEXT_FALSE |
| 610 |
am__EXEEXT_TRUE |
| 611 |
LTLIBOBJS |
| 612 |
LIBOBJS |
| 613 |
UIC |
| 614 |
MOC |
| 615 |
QMAKE_PATH_HOST_BINS |
| 616 |
QT_LIBS |
| 617 |
QT_CFLAGS |
| 618 |
am__fastdepCXX_FALSE |
| 619 |
am__fastdepCXX_TRUE |
| 620 |
CXXDEPMODE |
| 621 |
ac_ct_CXX |
| 622 |
CXXFLAGS |
| 623 |
CXX |
| 624 |
am__fastdepCC_FALSE |
| 625 |
am__fastdepCC_TRUE |
| 626 |
CCDEPMODE |
| 627 |
am__nodep |
| 628 |
AMDEPBACKSLASH |
| 629 |
AMDEP_FALSE |
| 630 |
AMDEP_TRUE |
| 631 |
am__include |
| 632 |
DEPDIR |
| 633 |
OBJEXT |
| 634 |
EXEEXT |
| 635 |
ac_ct_CC |
| 636 |
CPPFLAGS |
| 637 |
LDFLAGS |
| 638 |
CFLAGS |
| 639 |
CC |
| 640 |
PKG_CONFIG_LIBDIR |
| 641 |
PKG_CONFIG_PATH |
| 642 |
PKG_CONFIG |
| 643 |
MAINT |
| 644 |
MAINTAINER_MODE_FALSE |
| 645 |
MAINTAINER_MODE_TRUE |
| 646 |
am__xargs_n |
| 647 |
am__rm_f_notfound |
| 648 |
AM_BACKSLASH |
| 649 |
AM_DEFAULT_VERBOSITY |
| 650 |
AM_DEFAULT_V |
| 651 |
AM_V |
| 652 |
CSCOPE |
| 653 |
ETAGS |
| 654 |
CTAGS |
| 655 |
am__untar |
| 656 |
am__tar |
| 657 |
AMTAR |
| 658 |
am__leading_dot |
| 659 |
SET_MAKE |
| 660 |
AWK |
| 661 |
mkdir_p |
| 662 |
MKDIR_P |
| 663 |
INSTALL_STRIP_PROGRAM |
| 664 |
STRIP |
| 665 |
install_sh |
| 666 |
MAKEINFO |
| 667 |
AUTOHEADER |
| 668 |
AUTOMAKE |
| 669 |
AUTOCONF |
| 670 |
ACLOCAL |
| 671 |
VERSION |
| 672 |
PACKAGE |
| 673 |
CYGPATH_W |
| 674 |
am__isrc |
| 675 |
INSTALL_DATA |
| 676 |
INSTALL_SCRIPT |
| 677 |
INSTALL_PROGRAM |
| 678 |
target_alias |
| 679 |
host_alias |
| 680 |
build_alias |
| 681 |
LIBS |
| 682 |
ECHO_T |
| 683 |
ECHO_N |
| 684 |
ECHO_C |
| 685 |
DEFS |
| 686 |
mandir |
| 687 |
localedir |
| 688 |
libdir |
| 689 |
psdir |
| 690 |
pdfdir |
| 691 |
dvidir |
| 692 |
htmldir |
| 693 |
infodir |
| 694 |
docdir |
| 695 |
oldincludedir |
| 696 |
includedir |
| 697 |
runstatedir |
| 698 |
localstatedir |
| 699 |
sharedstatedir |
| 700 |
sysconfdir |
| 701 |
datadir |
| 702 |
datarootdir |
| 703 |
libexecdir |
| 704 |
sbindir |
| 705 |
bindir |
| 706 |
program_transform_name |
| 707 |
prefix |
| 708 |
exec_prefix |
| 709 |
PACKAGE_URL |
| 710 |
PACKAGE_BUGREPORT |
| 711 |
PACKAGE_STRING |
| 712 |
PACKAGE_VERSION |
| 713 |
PACKAGE_TARNAME |
| 714 |
PACKAGE_NAME |
| 715 |
PATH_SEPARATOR |
| 716 |
SHELL |
| 717 |
am__quote' |
| 718 |
ac_subst_files='' |
| 719 |
ac_user_opts=' |
| 720 |
enable_option_checking |
| 721 |
enable_silent_rules |
| 722 |
enable_maintainer_mode |
| 723 |
enable_dependency_tracking |
| 724 |
enable_optimization |
| 725 |
' |
| 726 |
ac_precious_vars='build_alias |
| 727 |
host_alias |
| 728 |
target_alias |
| 729 |
PKG_CONFIG |
| 730 |
PKG_CONFIG_PATH |
| 731 |
PKG_CONFIG_LIBDIR |
| 732 |
CC |
| 733 |
CFLAGS |
| 734 |
LDFLAGS |
| 735 |
LIBS |
| 736 |
CPPFLAGS |
| 737 |
CXX |
| 738 |
CXXFLAGS |
| 739 |
CCC |
| 740 |
QT_CFLAGS |
| 741 |
QT_LIBS |
| 742 |
QMAKE_PATH_HOST_BINS' |
| 743 |
|
| 744 |
|
| 745 |
# Initialize some variables set by options. |
| 746 |
ac_init_help= |
| 747 |
ac_init_version=false |
| 748 |
ac_unrecognized_opts= |
| 749 |
ac_unrecognized_sep= |
| 750 |
# The variables have the same names as the options, with |
| 751 |
# dashes changed to underlines. |
| 752 |
cache_file=/dev/null |
| 753 |
exec_prefix=NONE |
| 754 |
no_create= |
| 755 |
no_recursion= |
| 756 |
prefix=NONE |
| 757 |
program_prefix=NONE |
| 758 |
program_suffix=NONE |
| 759 |
program_transform_name=s,x,x, |
| 760 |
silent= |
| 761 |
site= |
| 762 |
srcdir= |
| 763 |
verbose= |
| 764 |
x_includes=NONE |
| 765 |
x_libraries=NONE |
| 766 |
|
| 767 |
# Installation directory options. |
| 768 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 769 |
# and all the variables that are supposed to be based on exec_prefix |
| 770 |
# by default will actually change. |
| 771 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 772 |
# (The list follows the same order as the GNU Coding Standards.) |
| 773 |
bindir='${exec_prefix}/bin' |
| 774 |
sbindir='${exec_prefix}/sbin' |
| 775 |
libexecdir='${exec_prefix}/libexec' |
| 776 |
datarootdir='${prefix}/share' |
| 777 |
datadir='${datarootdir}' |
| 778 |
sysconfdir='${prefix}/etc' |
| 779 |
sharedstatedir='${prefix}/com' |
| 780 |
localstatedir='${prefix}/var' |
| 781 |
runstatedir='${localstatedir}/run' |
| 782 |
includedir='${prefix}/include' |
| 783 |
oldincludedir='/usr/include' |
| 784 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 785 |
infodir='${datarootdir}/info' |
| 786 |
htmldir='${docdir}' |
| 787 |
dvidir='${docdir}' |
| 788 |
pdfdir='${docdir}' |
| 789 |
psdir='${docdir}' |
| 790 |
libdir='${exec_prefix}/lib' |
| 791 |
localedir='${datarootdir}/locale' |
| 792 |
mandir='${datarootdir}/man' |
| 793 |
|
| 794 |
ac_prev= |
| 795 |
ac_dashdash= |
| 796 |
for ac_option |
| 797 |
do |
| 798 |
# If the previous option needs an argument, assign it. |
| 799 |
if test -n "$ac_prev"; then |
| 800 |
eval $ac_prev=\$ac_option |
| 801 |
ac_prev= |
| 802 |
continue |
| 803 |
fi |
| 804 |
|
| 805 |
case $ac_option in |
| 806 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 807 |
*=) ac_optarg= ;; |
| 808 |
*) ac_optarg=yes ;; |
| 809 |
esac |
| 810 |
|
| 811 |
case $ac_dashdash$ac_option in |
| 812 |
--) |
| 813 |
ac_dashdash=yes ;; |
| 814 |
|
| 815 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 816 |
ac_prev=bindir ;; |
| 817 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 818 |
bindir=$ac_optarg ;; |
| 819 |
|
| 820 |
-build | --build | --buil | --bui | --bu) |
| 821 |
ac_prev=build_alias ;; |
| 822 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 823 |
build_alias=$ac_optarg ;; |
| 824 |
|
| 825 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 826 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 827 |
ac_prev=cache_file ;; |
| 828 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 829 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 830 |
cache_file=$ac_optarg ;; |
| 831 |
|
| 832 |
--config-cache | -C) |
| 833 |
cache_file=config.cache ;; |
| 834 |
|
| 835 |
-datadir | --datadir | --datadi | --datad) |
| 836 |
ac_prev=datadir ;; |
| 837 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 838 |
datadir=$ac_optarg ;; |
| 839 |
|
| 840 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 841 |
| --dataroo | --dataro | --datar) |
| 842 |
ac_prev=datarootdir ;; |
| 843 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 844 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 845 |
datarootdir=$ac_optarg ;; |
| 846 |
|
| 847 |
-disable-* | --disable-*) |
| 848 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 849 |
# Reject names that are not valid shell variable names. |
| 850 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 851 |
as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 852 |
ac_useropt_orig=$ac_useropt |
| 853 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 854 |
case $ac_user_opts in |
| 855 |
*" |
| 856 |
"enable_$ac_useropt" |
| 857 |
"*) ;; |
| 858 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 859 |
ac_unrecognized_sep=', ';; |
| 860 |
esac |
| 861 |
eval enable_$ac_useropt=no ;; |
| 862 |
|
| 863 |
-docdir | --docdir | --docdi | --doc | --do) |
| 864 |
ac_prev=docdir ;; |
| 865 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 866 |
docdir=$ac_optarg ;; |
| 867 |
|
| 868 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 869 |
ac_prev=dvidir ;; |
| 870 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 871 |
dvidir=$ac_optarg ;; |
| 872 |
|
| 873 |
-enable-* | --enable-*) |
| 874 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 875 |
# Reject names that are not valid shell variable names. |
| 876 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 877 |
as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 878 |
ac_useropt_orig=$ac_useropt |
| 879 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 880 |
case $ac_user_opts in |
| 881 |
*" |
| 882 |
"enable_$ac_useropt" |
| 883 |
"*) ;; |
| 884 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 885 |
ac_unrecognized_sep=', ';; |
| 886 |
esac |
| 887 |
eval enable_$ac_useropt=\$ac_optarg ;; |
| 888 |
|
| 889 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 890 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 891 |
| --exec | --exe | --ex) |
| 892 |
ac_prev=exec_prefix ;; |
| 893 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 894 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 895 |
| --exec=* | --exe=* | --ex=*) |
| 896 |
exec_prefix=$ac_optarg ;; |
| 897 |
|
| 898 |
-gas | --gas | --ga | --g) |
| 899 |
# Obsolete; use --with-gas. |
| 900 |
with_gas=yes ;; |
| 901 |
|
| 902 |
-help | --help | --hel | --he | -h) |
| 903 |
ac_init_help=long ;; |
| 904 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 905 |
ac_init_help=recursive ;; |
| 906 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 907 |
ac_init_help=short ;; |
| 908 |
|
| 909 |
-host | --host | --hos | --ho) |
| 910 |
ac_prev=host_alias ;; |
| 911 |
-host=* | --host=* | --hos=* | --ho=*) |
| 912 |
host_alias=$ac_optarg ;; |
| 913 |
|
| 914 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 915 |
ac_prev=htmldir ;; |
| 916 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 917 |
| --ht=*) |
| 918 |
htmldir=$ac_optarg ;; |
| 919 |
|
| 920 |
-includedir | --includedir | --includedi | --included | --include \ |
| 921 |
| --includ | --inclu | --incl | --inc) |
| 922 |
ac_prev=includedir ;; |
| 923 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 924 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 925 |
includedir=$ac_optarg ;; |
| 926 |
|
| 927 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 928 |
ac_prev=infodir ;; |
| 929 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 930 |
infodir=$ac_optarg ;; |
| 931 |
|
| 932 |
-libdir | --libdir | --libdi | --libd) |
| 933 |
ac_prev=libdir ;; |
| 934 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 935 |
libdir=$ac_optarg ;; |
| 936 |
|
| 937 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 938 |
| --libexe | --libex | --libe) |
| 939 |
ac_prev=libexecdir ;; |
| 940 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 941 |
| --libexe=* | --libex=* | --libe=*) |
| 942 |
libexecdir=$ac_optarg ;; |
| 943 |
|
| 944 |
-localedir | --localedir | --localedi | --localed | --locale) |
| 945 |
ac_prev=localedir ;; |
| 946 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 947 |
localedir=$ac_optarg ;; |
| 948 |
|
| 949 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 950 |
| --localstate | --localstat | --localsta | --localst | --locals) |
| 951 |
ac_prev=localstatedir ;; |
| 952 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 953 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 954 |
localstatedir=$ac_optarg ;; |
| 955 |
|
| 956 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 957 |
ac_prev=mandir ;; |
| 958 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 959 |
mandir=$ac_optarg ;; |
| 960 |
|
| 961 |
-nfp | --nfp | --nf) |
| 962 |
# Obsolete; use --without-fp. |
| 963 |
with_fp=no ;; |
| 964 |
|
| 965 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 966 |
| --no-cr | --no-c | -n) |
| 967 |
no_create=yes ;; |
| 968 |
|
| 969 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 970 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 971 |
no_recursion=yes ;; |
| 972 |
|
| 973 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 974 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 975 |
| --oldin | --oldi | --old | --ol | --o) |
| 976 |
ac_prev=oldincludedir ;; |
| 977 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 978 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 979 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 980 |
oldincludedir=$ac_optarg ;; |
| 981 |
|
| 982 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 983 |
ac_prev=prefix ;; |
| 984 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 985 |
prefix=$ac_optarg ;; |
| 986 |
|
| 987 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 988 |
| --program-pre | --program-pr | --program-p) |
| 989 |
ac_prev=program_prefix ;; |
| 990 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 991 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 992 |
program_prefix=$ac_optarg ;; |
| 993 |
|
| 994 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 995 |
| --program-suf | --program-su | --program-s) |
| 996 |
ac_prev=program_suffix ;; |
| 997 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 998 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 999 |
program_suffix=$ac_optarg ;; |
| 1000 |
|
| 1001 |
-program-transform-name | --program-transform-name \ |
| 1002 |
| --program-transform-nam | --program-transform-na \ |
| 1003 |
| --program-transform-n | --program-transform- \ |
| 1004 |
| --program-transform | --program-transfor \ |
| 1005 |
| --program-transfo | --program-transf \ |
| 1006 |
| --program-trans | --program-tran \ |
| 1007 |
| --progr-tra | --program-tr | --program-t) |
| 1008 |
ac_prev=program_transform_name ;; |
| 1009 |
-program-transform-name=* | --program-transform-name=* \ |
| 1010 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 1011 |
| --program-transform-n=* | --program-transform-=* \ |
| 1012 |
| --program-transform=* | --program-transfor=* \ |
| 1013 |
| --program-transfo=* | --program-transf=* \ |
| 1014 |
| --program-trans=* | --program-tran=* \ |
| 1015 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 1016 |
program_transform_name=$ac_optarg ;; |
| 1017 |
|
| 1018 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1019 |
ac_prev=pdfdir ;; |
| 1020 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1021 |
pdfdir=$ac_optarg ;; |
| 1022 |
|
| 1023 |
-psdir | --psdir | --psdi | --psd | --ps) |
| 1024 |
ac_prev=psdir ;; |
| 1025 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1026 |
psdir=$ac_optarg ;; |
| 1027 |
|
| 1028 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1029 |
| -silent | --silent | --silen | --sile | --sil) |
| 1030 |
silent=yes ;; |
| 1031 |
|
| 1032 |
-runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1033 |
| --runstate | --runstat | --runsta | --runst | --runs \ |
| 1034 |
| --run | --ru | --r) |
| 1035 |
ac_prev=runstatedir ;; |
| 1036 |
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1037 |
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1038 |
| --run=* | --ru=* | --r=*) |
| 1039 |
runstatedir=$ac_optarg ;; |
| 1040 |
|
| 1041 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1042 |
ac_prev=sbindir ;; |
| 1043 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1044 |
| --sbi=* | --sb=*) |
| 1045 |
sbindir=$ac_optarg ;; |
| 1046 |
|
| 1047 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1048 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1049 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 1050 |
| --sha | --sh) |
| 1051 |
ac_prev=sharedstatedir ;; |
| 1052 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1053 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1054 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1055 |
| --sha=* | --sh=*) |
| 1056 |
sharedstatedir=$ac_optarg ;; |
| 1057 |
|
| 1058 |
-site | --site | --sit) |
| 1059 |
ac_prev=site ;; |
| 1060 |
-site=* | --site=* | --sit=*) |
| 1061 |
site=$ac_optarg ;; |
| 1062 |
|
| 1063 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1064 |
ac_prev=srcdir ;; |
| 1065 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1066 |
srcdir=$ac_optarg ;; |
| 1067 |
|
| 1068 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1069 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 1070 |
ac_prev=sysconfdir ;; |
| 1071 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1072 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1073 |
sysconfdir=$ac_optarg ;; |
| 1074 |
|
| 1075 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 1076 |
ac_prev=target_alias ;; |
| 1077 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1078 |
target_alias=$ac_optarg ;; |
| 1079 |
|
| 1080 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1081 |
verbose=yes ;; |
| 1082 |
|
| 1083 |
-version | --version | --versio | --versi | --vers | -V) |
| 1084 |
ac_init_version=: ;; |
| 1085 |
|
| 1086 |
-with-* | --with-*) |
| 1087 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1088 |
# Reject names that are not valid shell variable names. |
| 1089 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1090 |
as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1091 |
ac_useropt_orig=$ac_useropt |
| 1092 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1093 |
case $ac_user_opts in |
| 1094 |
*" |
| 1095 |
"with_$ac_useropt" |
| 1096 |
"*) ;; |
| 1097 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1098 |
ac_unrecognized_sep=', ';; |
| 1099 |
esac |
| 1100 |
eval with_$ac_useropt=\$ac_optarg ;; |
| 1101 |
|
| 1102 |
-without-* | --without-*) |
| 1103 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1104 |
# Reject names that are not valid shell variable names. |
| 1105 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1106 |
as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1107 |
ac_useropt_orig=$ac_useropt |
| 1108 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1109 |
case $ac_user_opts in |
| 1110 |
*" |
| 1111 |
"with_$ac_useropt" |
| 1112 |
"*) ;; |
| 1113 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1114 |
ac_unrecognized_sep=', ';; |
| 1115 |
esac |
| 1116 |
eval with_$ac_useropt=no ;; |
| 1117 |
|
| 1118 |
--x) |
| 1119 |
# Obsolete; use --with-x. |
| 1120 |
with_x=yes ;; |
| 1121 |
|
| 1122 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1123 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 1124 |
ac_prev=x_includes ;; |
| 1125 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1126 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1127 |
x_includes=$ac_optarg ;; |
| 1128 |
|
| 1129 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1130 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1131 |
ac_prev=x_libraries ;; |
| 1132 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1133 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1134 |
x_libraries=$ac_optarg ;; |
| 1135 |
|
| 1136 |
-*) as_fn_error $? "unrecognized option: '$ac_option' |
| 1137 |
Try '$0 --help' for more information" |
| 1138 |
;; |
| 1139 |
|
| 1140 |
*=*) |
| 1141 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1142 |
# Reject names that are not valid shell variable names. |
| 1143 |
case $ac_envvar in #( |
| 1144 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1145 |
as_fn_error $? "invalid variable name: '$ac_envvar'" ;; |
| 1146 |
esac |
| 1147 |
eval $ac_envvar=\$ac_optarg |
| 1148 |
export $ac_envvar ;; |
| 1149 |
|
| 1150 |
*) |
| 1151 |
# FIXME: should be removed in autoconf 3.0. |
| 1152 |
printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1153 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1154 |
printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1155 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1156 |
;; |
| 1157 |
|
| 1158 |
esac |
| 1159 |
done |
| 1160 |
|
| 1161 |
if test -n "$ac_prev"; then |
| 1162 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1163 |
as_fn_error $? "missing argument to $ac_option" |
| 1164 |
fi |
| 1165 |
|
| 1166 |
if test -n "$ac_unrecognized_opts"; then |
| 1167 |
case $enable_option_checking in |
| 1168 |
no) ;; |
| 1169 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1170 |
*) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1171 |
esac |
| 1172 |
fi |
| 1173 |
|
| 1174 |
# Check all directory arguments for consistency. |
| 1175 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1176 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1177 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1178 |
libdir localedir mandir runstatedir |
| 1179 |
do |
| 1180 |
eval ac_val=\$$ac_var |
| 1181 |
# Remove trailing slashes. |
| 1182 |
case $ac_val in |
| 1183 |
*/ ) |
| 1184 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1185 |
eval $ac_var=\$ac_val;; |
| 1186 |
esac |
| 1187 |
# Be sure to have absolute directory names. |
| 1188 |
case $ac_val in |
| 1189 |
[\\/$]* | ?:[\\/]* ) continue;; |
| 1190 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1191 |
esac |
| 1192 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1193 |
done |
| 1194 |
|
| 1195 |
# There might be people who depend on the old broken behavior: '$host' |
| 1196 |
# used to hold the argument of --host etc. |
| 1197 |
# FIXME: To remove some day. |
| 1198 |
build=$build_alias |
| 1199 |
host=$host_alias |
| 1200 |
target=$target_alias |
| 1201 |
|
| 1202 |
# FIXME: To remove some day. |
| 1203 |
if test "x$host_alias" != x; then |
| 1204 |
if test "x$build_alias" = x; then |
| 1205 |
cross_compiling=maybe |
| 1206 |
elif test "x$build_alias" != "x$host_alias"; then |
| 1207 |
cross_compiling=yes |
| 1208 |
fi |
| 1209 |
fi |
| 1210 |
|
| 1211 |
ac_tool_prefix= |
| 1212 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1213 |
|
| 1214 |
test "$silent" = yes && exec 6>/dev/null |
| 1215 |
|
| 1216 |
|
| 1217 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1218 |
ac_ls_di=`ls -di .` && |
| 1219 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1220 |
as_fn_error $? "working directory cannot be determined" |
| 1221 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1222 |
as_fn_error $? "pwd does not report name of working directory" |
| 1223 |
|
| 1224 |
|
| 1225 |
# Find the source files, if location was not specified. |
| 1226 |
if test -z "$srcdir"; then |
| 1227 |
ac_srcdir_defaulted=yes |
| 1228 |
# Try the directory containing this script, then the parent directory. |
| 1229 |
ac_confdir=`$as_dirname -- "$as_myself" || |
| 1230 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1231 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1232 |
X"$as_myself" : 'X\(//\)$' \| \ |
| 1233 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1234 |
printf "%s\n" X"$as_myself" | |
| 1235 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1236 |
s//\1/ |
| 1237 |
q |
| 1238 |
} |
| 1239 |
/^X\(\/\/\)[^/].*/{ |
| 1240 |
s//\1/ |
| 1241 |
q |
| 1242 |
} |
| 1243 |
/^X\(\/\/\)$/{ |
| 1244 |
s//\1/ |
| 1245 |
q |
| 1246 |
} |
| 1247 |
/^X\(\/\).*/{ |
| 1248 |
s//\1/ |
| 1249 |
q |
| 1250 |
} |
| 1251 |
s/.*/./; q'` |
| 1252 |
srcdir=$ac_confdir |
| 1253 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1254 |
srcdir=.. |
| 1255 |
fi |
| 1256 |
else |
| 1257 |
ac_srcdir_defaulted=no |
| 1258 |
fi |
| 1259 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1260 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1261 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1262 |
fi |
| 1263 |
ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" |
| 1264 |
ac_abs_confdir=`( |
| 1265 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1266 |
pwd)` |
| 1267 |
# When building in place, set srcdir=. |
| 1268 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1269 |
srcdir=. |
| 1270 |
fi |
| 1271 |
# Remove unnecessary trailing slashes from srcdir. |
| 1272 |
# Double slashes in file names in object file debugging info |
| 1273 |
# mess up M-x gdb in Emacs. |
| 1274 |
case $srcdir in |
| 1275 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1276 |
esac |
| 1277 |
for ac_var in $ac_precious_vars; do |
| 1278 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1279 |
eval ac_env_${ac_var}_value=\$${ac_var} |
| 1280 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1281 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1282 |
done |
| 1283 |
|
| 1284 |
# |
| 1285 |
# Report the --help message. |
| 1286 |
# |
| 1287 |
if test "$ac_init_help" = "long"; then |
| 1288 |
# Omit some internal or obsolete options to make the list less imposing. |
| 1289 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1290 |
cat <<_ACEOF |
| 1291 |
'configure' configures phonesim 2.1 to adapt to many kinds of systems. |
| 1292 |
|
| 1293 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1294 |
|
| 1295 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1296 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1297 |
|
| 1298 |
Defaults for the options are specified in brackets. |
| 1299 |
|
| 1300 |
Configuration: |
| 1301 |
-h, --help display this help and exit |
| 1302 |
--help=short display options specific to this package |
| 1303 |
--help=recursive display the short help of all the included packages |
| 1304 |
-V, --version display version information and exit |
| 1305 |
-q, --quiet, --silent do not print 'checking ...' messages |
| 1306 |
--cache-file=FILE cache test results in FILE [disabled] |
| 1307 |
-C, --config-cache alias for '--cache-file=config.cache' |
| 1308 |
-n, --no-create do not create output files |
| 1309 |
--srcdir=DIR find the sources in DIR [configure dir or '..'] |
| 1310 |
|
| 1311 |
Installation directories: |
| 1312 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 1313 |
[$ac_default_prefix] |
| 1314 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1315 |
[PREFIX] |
| 1316 |
|
| 1317 |
By default, 'make install' will install all the files in |
| 1318 |
'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify |
| 1319 |
an installation prefix other than '$ac_default_prefix' using '--prefix', |
| 1320 |
for instance '--prefix=\$HOME'. |
| 1321 |
|
| 1322 |
For better control, use the options below. |
| 1323 |
|
| 1324 |
Fine tuning of the installation directories: |
| 1325 |
--bindir=DIR user executables [EPREFIX/bin] |
| 1326 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1327 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 1328 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1329 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1330 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1331 |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1332 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 1333 |
--includedir=DIR C header files [PREFIX/include] |
| 1334 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1335 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1336 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1337 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
| 1338 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1339 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
| 1340 |
--docdir=DIR documentation root [DATAROOTDIR/doc/phonesim] |
| 1341 |
--htmldir=DIR html documentation [DOCDIR] |
| 1342 |
--dvidir=DIR dvi documentation [DOCDIR] |
| 1343 |
--pdfdir=DIR pdf documentation [DOCDIR] |
| 1344 |
--psdir=DIR ps documentation [DOCDIR] |
| 1345 |
_ACEOF |
| 1346 |
|
| 1347 |
cat <<\_ACEOF |
| 1348 |
|
| 1349 |
Program names: |
| 1350 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| 1351 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| 1352 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1353 |
_ACEOF |
| 1354 |
fi |
| 1355 |
|
| 1356 |
if test -n "$ac_init_help"; then |
| 1357 |
case $ac_init_help in |
| 1358 |
short | recursive ) echo "Configuration of phonesim 2.1:";; |
| 1359 |
esac |
| 1360 |
cat <<\_ACEOF |
| 1361 |
|
| 1362 |
Optional Features: |
| 1363 |
--disable-option-checking ignore unrecognized --enable/--with options |
| 1364 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1365 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1366 |
--enable-silent-rules less verbose build output (undo: "make V=1") |
| 1367 |
--disable-silent-rules verbose build output (undo: "make V=0") |
| 1368 |
--enable-maintainer-mode |
| 1369 |
enable make rules and dependencies not useful (and |
| 1370 |
sometimes confusing) to the casual installer |
| 1371 |
--enable-dependency-tracking |
| 1372 |
do not reject slow dependency extractors |
| 1373 |
--disable-dependency-tracking |
| 1374 |
speeds up one-time build |
| 1375 |
--disable-optimization disable code optimization through compiler |
| 1376 |
|
| 1377 |
Some influential environment variables: |
| 1378 |
PKG_CONFIG path to pkg-config utility |
| 1379 |
PKG_CONFIG_PATH |
| 1380 |
directories to add to pkg-config's search path |
| 1381 |
PKG_CONFIG_LIBDIR |
| 1382 |
path overriding pkg-config's built-in search path |
| 1383 |
CC C compiler command |
| 1384 |
CFLAGS C compiler flags |
| 1385 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1386 |
nonstandard directory <lib dir> |
| 1387 |
LIBS libraries to pass to the linker, e.g. -l<library> |
| 1388 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1389 |
you have headers in a nonstandard directory <include dir> |
| 1390 |
CXX C++ compiler command |
| 1391 |
CXXFLAGS C++ compiler flags |
| 1392 |
QT_CFLAGS C compiler flags for QT, overriding pkg-config |
| 1393 |
QT_LIBS linker flags for QT, overriding pkg-config |
| 1394 |
QMAKE_PATH_HOST_BINS |
| 1395 |
value of host_bins for Qt5Core, overriding pkg-config |
| 1396 |
|
| 1397 |
Use these variables to override the choices made by 'configure' or to help |
| 1398 |
it to find libraries and programs with nonstandard names/locations. |
| 1399 |
|
| 1400 |
Report bugs to the package provider. |
| 1401 |
_ACEOF |
| 1402 |
ac_status=$? |
| 1403 |
fi |
| 1404 |
|
| 1405 |
if test "$ac_init_help" = "recursive"; then |
| 1406 |
# If there are subdirs, report their specific --help. |
| 1407 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1408 |
test -d "$ac_dir" || |
| 1409 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1410 |
continue |
| 1411 |
ac_builddir=. |
| 1412 |
|
| 1413 |
case "$ac_dir" in |
| 1414 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1415 |
*) |
| 1416 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1417 |
# A ".." for each directory in $ac_dir_suffix. |
| 1418 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1419 |
case $ac_top_builddir_sub in |
| 1420 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1421 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1422 |
esac ;; |
| 1423 |
esac |
| 1424 |
ac_abs_top_builddir=$ac_pwd |
| 1425 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1426 |
# for backward compatibility: |
| 1427 |
ac_top_builddir=$ac_top_build_prefix |
| 1428 |
|
| 1429 |
case $srcdir in |
| 1430 |
.) # We are building in place. |
| 1431 |
ac_srcdir=. |
| 1432 |
ac_top_srcdir=$ac_top_builddir_sub |
| 1433 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 1434 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 1435 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 1436 |
ac_top_srcdir=$srcdir |
| 1437 |
ac_abs_top_srcdir=$srcdir ;; |
| 1438 |
*) # Relative name. |
| 1439 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1440 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1441 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1442 |
esac |
| 1443 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1444 |
|
| 1445 |
cd "$ac_dir" || { ac_status=$?; continue; } |
| 1446 |
# Check for configure.gnu first; this name is used for a wrapper for |
| 1447 |
# Metaconfig's "Configure" on case-insensitive file systems. |
| 1448 |
if test -f "$ac_srcdir/configure.gnu"; then |
| 1449 |
echo && |
| 1450 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1451 |
elif test -f "$ac_srcdir/configure"; then |
| 1452 |
echo && |
| 1453 |
$SHELL "$ac_srcdir/configure" --help=recursive |
| 1454 |
else |
| 1455 |
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1456 |
fi || ac_status=$? |
| 1457 |
cd "$ac_pwd" || { ac_status=$?; break; } |
| 1458 |
done |
| 1459 |
fi |
| 1460 |
|
| 1461 |
test -n "$ac_init_help" && exit $ac_status |
| 1462 |
if $ac_init_version; then |
| 1463 |
cat <<\_ACEOF |
| 1464 |
phonesim configure 2.1 |
| 1465 |
generated by GNU Autoconf 2.72 |
| 1466 |
|
| 1467 |
Copyright (C) 2023 Free Software Foundation, Inc. |
| 1468 |
This configure script is free software; the Free Software Foundation |
| 1469 |
gives unlimited permission to copy, distribute and modify it. |
| 1470 |
_ACEOF |
| 1471 |
exit |
| 1472 |
fi |
| 1473 |
|
| 1474 |
## ------------------------ ## |
| 1475 |
## Autoconf initialization. ## |
| 1476 |
## ------------------------ ## |
| 1477 |
|
| 1478 |
# ac_fn_c_try_compile LINENO |
| 1479 |
# -------------------------- |
| 1480 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1481 |
ac_fn_c_try_compile () |
| 1482 |
{ |
| 1483 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1484 |
rm -f conftest.$ac_objext conftest.beam |
| 1485 |
if { { ac_try="$ac_compile" |
| 1486 |
case "(($ac_try" in |
| 1487 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1488 |
*) ac_try_echo=$ac_try;; |
| 1489 |
esac |
| 1490 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1491 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1492 |
(eval "$ac_compile") 2>conftest.err |
| 1493 |
ac_status=$? |
| 1494 |
if test -s conftest.err; then |
| 1495 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1496 |
cat conftest.er1 >&5 |
| 1497 |
mv -f conftest.er1 conftest.err |
| 1498 |
fi |
| 1499 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1500 |
test $ac_status = 0; } && { |
| 1501 |
test -z "$ac_c_werror_flag" || |
| 1502 |
test ! -s conftest.err |
| 1503 |
} && test -s conftest.$ac_objext |
| 1504 |
then : |
| 1505 |
ac_retval=0 |
| 1506 |
else case e in #( |
| 1507 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1508 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1509 |
|
| 1510 |
ac_retval=1 ;; |
| 1511 |
esac |
| 1512 |
fi |
| 1513 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1514 |
as_fn_set_status $ac_retval |
| 1515 |
|
| 1516 |
} # ac_fn_c_try_compile |
| 1517 |
|
| 1518 |
# ac_fn_cxx_try_compile LINENO |
| 1519 |
# ---------------------------- |
| 1520 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1521 |
ac_fn_cxx_try_compile () |
| 1522 |
{ |
| 1523 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1524 |
rm -f conftest.$ac_objext conftest.beam |
| 1525 |
if { { ac_try="$ac_compile" |
| 1526 |
case "(($ac_try" in |
| 1527 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1528 |
*) ac_try_echo=$ac_try;; |
| 1529 |
esac |
| 1530 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1531 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1532 |
(eval "$ac_compile") 2>conftest.err |
| 1533 |
ac_status=$? |
| 1534 |
if test -s conftest.err; then |
| 1535 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1536 |
cat conftest.er1 >&5 |
| 1537 |
mv -f conftest.er1 conftest.err |
| 1538 |
fi |
| 1539 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1540 |
test $ac_status = 0; } && { |
| 1541 |
test -z "$ac_cxx_werror_flag" || |
| 1542 |
test ! -s conftest.err |
| 1543 |
} && test -s conftest.$ac_objext |
| 1544 |
then : |
| 1545 |
ac_retval=0 |
| 1546 |
else case e in #( |
| 1547 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1548 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1549 |
|
| 1550 |
ac_retval=1 ;; |
| 1551 |
esac |
| 1552 |
fi |
| 1553 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1554 |
as_fn_set_status $ac_retval |
| 1555 |
|
| 1556 |
} # ac_fn_cxx_try_compile |
| 1557 |
ac_configure_args_raw= |
| 1558 |
for ac_arg |
| 1559 |
do |
| 1560 |
case $ac_arg in |
| 1561 |
*\'*) |
| 1562 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1563 |
esac |
| 1564 |
as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 1565 |
done |
| 1566 |
|
| 1567 |
case $ac_configure_args_raw in |
| 1568 |
*$as_nl*) |
| 1569 |
ac_safe_unquote= ;; |
| 1570 |
*) |
| 1571 |
ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 1572 |
ac_unsafe_a="$ac_unsafe_z#~" |
| 1573 |
ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 1574 |
ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 1575 |
esac |
| 1576 |
|
| 1577 |
cat >config.log <<_ACEOF |
| 1578 |
This file contains any messages produced by compilers while |
| 1579 |
running configure, to aid debugging if configure makes a mistake. |
| 1580 |
|
| 1581 |
It was created by phonesim $as_me 2.1, which was |
| 1582 |
generated by GNU Autoconf 2.72. Invocation command line was |
| 1583 |
|
| 1584 |
$ $0$ac_configure_args_raw |
| 1585 |
|
| 1586 |
_ACEOF |
| 1587 |
exec 5>>config.log |
| 1588 |
{ |
| 1589 |
cat <<_ASUNAME |
| 1590 |
## --------- ## |
| 1591 |
## Platform. ## |
| 1592 |
## --------- ## |
| 1593 |
|
| 1594 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1595 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1596 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1597 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1598 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1599 |
|
| 1600 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1601 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1602 |
|
| 1603 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1604 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1605 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1606 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1607 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1608 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1609 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1610 |
|
| 1611 |
_ASUNAME |
| 1612 |
|
| 1613 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1614 |
for as_dir in $PATH |
| 1615 |
do |
| 1616 |
IFS=$as_save_IFS |
| 1617 |
case $as_dir in #((( |
| 1618 |
'') as_dir=./ ;; |
| 1619 |
*/) ;; |
| 1620 |
*) as_dir=$as_dir/ ;; |
| 1621 |
esac |
| 1622 |
printf "%s\n" "PATH: $as_dir" |
| 1623 |
done |
| 1624 |
IFS=$as_save_IFS |
| 1625 |
|
| 1626 |
} >&5 |
| 1627 |
|
| 1628 |
cat >&5 <<_ACEOF |
| 1629 |
|
| 1630 |
|
| 1631 |
## ----------- ## |
| 1632 |
## Core tests. ## |
| 1633 |
## ----------- ## |
| 1634 |
|
| 1635 |
_ACEOF |
| 1636 |
|
| 1637 |
|
| 1638 |
# Keep a trace of the command line. |
| 1639 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 1640 |
# Strip out --silent because we don't want to record it for future runs. |
| 1641 |
# Also quote any args containing shell meta-characters. |
| 1642 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 1643 |
ac_configure_args= |
| 1644 |
ac_configure_args0= |
| 1645 |
ac_configure_args1= |
| 1646 |
ac_must_keep_next=false |
| 1647 |
for ac_pass in 1 2 |
| 1648 |
do |
| 1649 |
for ac_arg |
| 1650 |
do |
| 1651 |
case $ac_arg in |
| 1652 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1653 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1654 |
| -silent | --silent | --silen | --sile | --sil) |
| 1655 |
continue ;; |
| 1656 |
*\'*) |
| 1657 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1658 |
esac |
| 1659 |
case $ac_pass in |
| 1660 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1661 |
2) |
| 1662 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1663 |
if test $ac_must_keep_next = true; then |
| 1664 |
ac_must_keep_next=false # Got value, back to normal. |
| 1665 |
else |
| 1666 |
case $ac_arg in |
| 1667 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1668 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1669 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1670 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 1671 |
case "$ac_configure_args0 " in |
| 1672 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1673 |
esac |
| 1674 |
;; |
| 1675 |
-* ) ac_must_keep_next=true ;; |
| 1676 |
esac |
| 1677 |
fi |
| 1678 |
as_fn_append ac_configure_args " '$ac_arg'" |
| 1679 |
;; |
| 1680 |
esac |
| 1681 |
done |
| 1682 |
done |
| 1683 |
{ ac_configure_args0=; unset ac_configure_args0;} |
| 1684 |
{ ac_configure_args1=; unset ac_configure_args1;} |
| 1685 |
|
| 1686 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 1687 |
# config.log. We remove comments because anyway the quotes in there |
| 1688 |
# would cause problems or look ugly. |
| 1689 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1690 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1691 |
trap 'exit_status=$? |
| 1692 |
# Sanitize IFS. |
| 1693 |
IFS=" "" $as_nl" |
| 1694 |
# Save into config.log some information that might help in debugging. |
| 1695 |
{ |
| 1696 |
echo |
| 1697 |
|
| 1698 |
printf "%s\n" "## ---------------- ## |
| 1699 |
## Cache variables. ## |
| 1700 |
## ---------------- ##" |
| 1701 |
echo |
| 1702 |
# The following way of writing the cache mishandles newlines in values, |
| 1703 |
( |
| 1704 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1705 |
eval ac_val=\$$ac_var |
| 1706 |
case $ac_val in #( |
| 1707 |
*${as_nl}*) |
| 1708 |
case $ac_var in #( |
| 1709 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1710 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1711 |
esac |
| 1712 |
case $ac_var in #( |
| 1713 |
_ | IFS | as_nl) ;; #( |
| 1714 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1715 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 1716 |
esac ;; |
| 1717 |
esac |
| 1718 |
done |
| 1719 |
(set) 2>&1 | |
| 1720 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1721 |
*${as_nl}ac_space=\ *) |
| 1722 |
sed -n \ |
| 1723 |
"s/'\''/'\''\\\\'\'''\''/g; |
| 1724 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1725 |
;; #( |
| 1726 |
*) |
| 1727 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1728 |
;; |
| 1729 |
esac | |
| 1730 |
sort |
| 1731 |
) |
| 1732 |
echo |
| 1733 |
|
| 1734 |
printf "%s\n" "## ----------------- ## |
| 1735 |
## Output variables. ## |
| 1736 |
## ----------------- ##" |
| 1737 |
echo |
| 1738 |
for ac_var in $ac_subst_vars |
| 1739 |
do |
| 1740 |
eval ac_val=\$$ac_var |
| 1741 |
case $ac_val in |
| 1742 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1743 |
esac |
| 1744 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 1745 |
done | sort |
| 1746 |
echo |
| 1747 |
|
| 1748 |
if test -n "$ac_subst_files"; then |
| 1749 |
printf "%s\n" "## ------------------- ## |
| 1750 |
## File substitutions. ## |
| 1751 |
## ------------------- ##" |
| 1752 |
echo |
| 1753 |
for ac_var in $ac_subst_files |
| 1754 |
do |
| 1755 |
eval ac_val=\$$ac_var |
| 1756 |
case $ac_val in |
| 1757 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1758 |
esac |
| 1759 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 1760 |
done | sort |
| 1761 |
echo |
| 1762 |
fi |
| 1763 |
|
| 1764 |
if test -s confdefs.h; then |
| 1765 |
printf "%s\n" "## ----------- ## |
| 1766 |
## confdefs.h. ## |
| 1767 |
## ----------- ##" |
| 1768 |
echo |
| 1769 |
cat confdefs.h |
| 1770 |
echo |
| 1771 |
fi |
| 1772 |
test "$ac_signal" != 0 && |
| 1773 |
printf "%s\n" "$as_me: caught signal $ac_signal" |
| 1774 |
printf "%s\n" "$as_me: exit $exit_status" |
| 1775 |
} >&5 |
| 1776 |
rm -f core *.core core.conftest.* && |
| 1777 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1778 |
exit $exit_status |
| 1779 |
' 0 |
| 1780 |
for ac_signal in 1 2 13 15; do |
| 1781 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 1782 |
done |
| 1783 |
ac_signal=0 |
| 1784 |
|
| 1785 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1786 |
rm -f -r conftest* confdefs.h |
| 1787 |
|
| 1788 |
printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 1789 |
|
| 1790 |
# Predefined preprocessor variables. |
| 1791 |
|
| 1792 |
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 1793 |
|
| 1794 |
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 1795 |
|
| 1796 |
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 1797 |
|
| 1798 |
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 1799 |
|
| 1800 |
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 1801 |
|
| 1802 |
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 1803 |
|
| 1804 |
|
| 1805 |
# Let the site file select an alternate cache file if it wants to. |
| 1806 |
# Prefer an explicitly selected file to automatically selected ones. |
| 1807 |
if test -n "$CONFIG_SITE"; then |
| 1808 |
ac_site_files="$CONFIG_SITE" |
| 1809 |
elif test "x$prefix" != xNONE; then |
| 1810 |
ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 1811 |
else |
| 1812 |
ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1813 |
fi |
| 1814 |
|
| 1815 |
for ac_site_file in $ac_site_files |
| 1816 |
do |
| 1817 |
case $ac_site_file in #( |
| 1818 |
*/*) : |
| 1819 |
;; #( |
| 1820 |
*) : |
| 1821 |
ac_site_file=./$ac_site_file ;; |
| 1822 |
esac |
| 1823 |
if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 1824 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 1825 |
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 1826 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 1827 |
. "$ac_site_file" \ |
| 1828 |
|| { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 1829 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 1830 |
as_fn_error $? "failed to load site script $ac_site_file |
| 1831 |
See 'config.log' for more details" "$LINENO" 5; } |
| 1832 |
fi |
| 1833 |
done |
| 1834 |
|
| 1835 |
if test -r "$cache_file"; then |
| 1836 |
# Some versions of bash will fail to source /dev/null (special files |
| 1837 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 1838 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 1839 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 1840 |
printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 1841 |
case $cache_file in |
| 1842 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1843 |
*) . "./$cache_file";; |
| 1844 |
esac |
| 1845 |
fi |
| 1846 |
else |
| 1847 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 1848 |
printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 1849 |
>$cache_file |
| 1850 |
fi |
| 1851 |
|
| 1852 |
# Test code for whether the C compiler supports C89 (global declarations) |
| 1853 |
ac_c_conftest_c89_globals=' |
| 1854 |
/* Does the compiler advertise C89 conformance? |
| 1855 |
Do not test the value of __STDC__, because some compilers set it to 0 |
| 1856 |
while being otherwise adequately conformant. */ |
| 1857 |
#if !defined __STDC__ |
| 1858 |
# error "Compiler does not advertise C89 conformance" |
| 1859 |
#endif |
| 1860 |
|
| 1861 |
#include <stddef.h> |
| 1862 |
#include <stdarg.h> |
| 1863 |
struct stat; |
| 1864 |
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 1865 |
struct buf { int x; }; |
| 1866 |
struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 1867 |
static char *e (char **p, int i) |
| 1868 |
{ |
| 1869 |
return p[i]; |
| 1870 |
} |
| 1871 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 1872 |
{ |
| 1873 |
char *s; |
| 1874 |
va_list v; |
| 1875 |
va_start (v,p); |
| 1876 |
s = g (p, va_arg (v,int)); |
| 1877 |
va_end (v); |
| 1878 |
return s; |
| 1879 |
} |
| 1880 |
|
| 1881 |
/* C89 style stringification. */ |
| 1882 |
#define noexpand_stringify(a) #a |
| 1883 |
const char *stringified = noexpand_stringify(arbitrary+token=sequence); |
| 1884 |
|
| 1885 |
/* C89 style token pasting. Exercises some of the corner cases that |
| 1886 |
e.g. old MSVC gets wrong, but not very hard. */ |
| 1887 |
#define noexpand_concat(a,b) a##b |
| 1888 |
#define expand_concat(a,b) noexpand_concat(a,b) |
| 1889 |
extern int vA; |
| 1890 |
extern int vbee; |
| 1891 |
#define aye A |
| 1892 |
#define bee B |
| 1893 |
int *pvA = &expand_concat(v,aye); |
| 1894 |
int *pvbee = &noexpand_concat(v,bee); |
| 1895 |
|
| 1896 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 1897 |
function prototypes and stuff, but not \xHH hex character constants. |
| 1898 |
These do not provoke an error unfortunately, instead are silently treated |
| 1899 |
as an "x". The following induces an error, until -std is added to get |
| 1900 |
proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 1901 |
array size at least. It is necessary to write \x00 == 0 to get something |
| 1902 |
that is true only with -std. */ |
| 1903 |
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 1904 |
|
| 1905 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 1906 |
inside strings and character constants. */ |
| 1907 |
#define FOO(x) '\''x'\'' |
| 1908 |
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 1909 |
|
| 1910 |
int test (int i, double x); |
| 1911 |
struct s1 {int (*f) (int a);}; |
| 1912 |
struct s2 {int (*f) (double a);}; |
| 1913 |
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 1914 |
int, int);' |
| 1915 |
|
| 1916 |
# Test code for whether the C compiler supports C89 (body of main). |
| 1917 |
ac_c_conftest_c89_main=' |
| 1918 |
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 1919 |
' |
| 1920 |
|
| 1921 |
# Test code for whether the C compiler supports C99 (global declarations) |
| 1922 |
ac_c_conftest_c99_globals=' |
| 1923 |
/* Does the compiler advertise C99 conformance? */ |
| 1924 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 1925 |
# error "Compiler does not advertise C99 conformance" |
| 1926 |
#endif |
| 1927 |
|
| 1928 |
// See if C++-style comments work. |
| 1929 |
|
| 1930 |
#include <stdbool.h> |
| 1931 |
extern int puts (const char *); |
| 1932 |
extern int printf (const char *, ...); |
| 1933 |
extern int dprintf (int, const char *, ...); |
| 1934 |
extern void *malloc (size_t); |
| 1935 |
extern void free (void *); |
| 1936 |
|
| 1937 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 1938 |
// dprintf is used instead of fprintf to avoid needing to declare |
| 1939 |
// FILE and stderr. |
| 1940 |
#define debug(...) dprintf (2, __VA_ARGS__) |
| 1941 |
#define showlist(...) puts (#__VA_ARGS__) |
| 1942 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 1943 |
static void |
| 1944 |
test_varargs_macros (void) |
| 1945 |
{ |
| 1946 |
int x = 1234; |
| 1947 |
int y = 5678; |
| 1948 |
debug ("Flag"); |
| 1949 |
debug ("X = %d\n", x); |
| 1950 |
showlist (The first, second, and third items.); |
| 1951 |
report (x>y, "x is %d but y is %d", x, y); |
| 1952 |
} |
| 1953 |
|
| 1954 |
// Check long long types. |
| 1955 |
#define BIG64 18446744073709551615ull |
| 1956 |
#define BIG32 4294967295ul |
| 1957 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 1958 |
#if !BIG_OK |
| 1959 |
#error "your preprocessor is broken" |
| 1960 |
#endif |
| 1961 |
#if BIG_OK |
| 1962 |
#else |
| 1963 |
#error "your preprocessor is broken" |
| 1964 |
#endif |
| 1965 |
static long long int bignum = -9223372036854775807LL; |
| 1966 |
static unsigned long long int ubignum = BIG64; |
| 1967 |
|
| 1968 |
struct incomplete_array |
| 1969 |
{ |
| 1970 |
int datasize; |
| 1971 |
double data[]; |
| 1972 |
}; |
| 1973 |
|
| 1974 |
struct named_init { |
| 1975 |
int number; |
| 1976 |
const wchar_t *name; |
| 1977 |
double average; |
| 1978 |
}; |
| 1979 |
|
| 1980 |
typedef const char *ccp; |
| 1981 |
|
| 1982 |
static inline int |
| 1983 |
test_restrict (ccp restrict text) |
| 1984 |
{ |
| 1985 |
// Iterate through items via the restricted pointer. |
| 1986 |
// Also check for declarations in for loops. |
| 1987 |
for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 1988 |
continue; |
| 1989 |
return 0; |
| 1990 |
} |
| 1991 |
|
| 1992 |
// Check varargs and va_copy. |
| 1993 |
static bool |
| 1994 |
test_varargs (const char *format, ...) |
| 1995 |
{ |
| 1996 |
va_list args; |
| 1997 |
va_start (args, format); |
| 1998 |
va_list args_copy; |
| 1999 |
va_copy (args_copy, args); |
| 2000 |
|
| 2001 |
const char *str = ""; |
| 2002 |
int number = 0; |
| 2003 |
float fnumber = 0; |
| 2004 |
|
| 2005 |
while (*format) |
| 2006 |
{ |
| 2007 |
switch (*format++) |
| 2008 |
{ |
| 2009 |
case '\''s'\'': // string |
| 2010 |
str = va_arg (args_copy, const char *); |
| 2011 |
break; |
| 2012 |
case '\''d'\'': // int |
| 2013 |
number = va_arg (args_copy, int); |
| 2014 |
break; |
| 2015 |
case '\''f'\'': // float |
| 2016 |
fnumber = va_arg (args_copy, double); |
| 2017 |
break; |
| 2018 |
default: |
| 2019 |
break; |
| 2020 |
} |
| 2021 |
} |
| 2022 |
va_end (args_copy); |
| 2023 |
va_end (args); |
| 2024 |
|
| 2025 |
return *str && number && fnumber; |
| 2026 |
} |
| 2027 |
' |
| 2028 |
|
| 2029 |
# Test code for whether the C compiler supports C99 (body of main). |
| 2030 |
ac_c_conftest_c99_main=' |
| 2031 |
// Check bool. |
| 2032 |
_Bool success = false; |
| 2033 |
success |= (argc != 0); |
| 2034 |
|
| 2035 |
// Check restrict. |
| 2036 |
if (test_restrict ("String literal") == 0) |
| 2037 |
success = true; |
| 2038 |
char *restrict newvar = "Another string"; |
| 2039 |
|
| 2040 |
// Check varargs. |
| 2041 |
success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 2042 |
test_varargs_macros (); |
| 2043 |
|
| 2044 |
// Check flexible array members. |
| 2045 |
struct incomplete_array *ia = |
| 2046 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2047 |
ia->datasize = 10; |
| 2048 |
for (int i = 0; i < ia->datasize; ++i) |
| 2049 |
ia->data[i] = i * 1.234; |
| 2050 |
// Work around memory leak warnings. |
| 2051 |
free (ia); |
| 2052 |
|
| 2053 |
// Check named initializers. |
| 2054 |
struct named_init ni = { |
| 2055 |
.number = 34, |
| 2056 |
.name = L"Test wide string", |
| 2057 |
.average = 543.34343, |
| 2058 |
}; |
| 2059 |
|
| 2060 |
ni.number = 58; |
| 2061 |
|
| 2062 |
int dynamic_array[ni.number]; |
| 2063 |
dynamic_array[0] = argv[0][0]; |
| 2064 |
dynamic_array[ni.number - 1] = 543; |
| 2065 |
|
| 2066 |
// work around unused variable warnings |
| 2067 |
ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2068 |
|| dynamic_array[ni.number - 1] != 543); |
| 2069 |
' |
| 2070 |
|
| 2071 |
# Test code for whether the C compiler supports C11 (global declarations) |
| 2072 |
ac_c_conftest_c11_globals=' |
| 2073 |
/* Does the compiler advertise C11 conformance? */ |
| 2074 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 2075 |
# error "Compiler does not advertise C11 conformance" |
| 2076 |
#endif |
| 2077 |
|
| 2078 |
// Check _Alignas. |
| 2079 |
char _Alignas (double) aligned_as_double; |
| 2080 |
char _Alignas (0) no_special_alignment; |
| 2081 |
extern char aligned_as_int; |
| 2082 |
char _Alignas (0) _Alignas (int) aligned_as_int; |
| 2083 |
|
| 2084 |
// Check _Alignof. |
| 2085 |
enum |
| 2086 |
{ |
| 2087 |
int_alignment = _Alignof (int), |
| 2088 |
int_array_alignment = _Alignof (int[100]), |
| 2089 |
char_alignment = _Alignof (char) |
| 2090 |
}; |
| 2091 |
_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 2092 |
|
| 2093 |
// Check _Noreturn. |
| 2094 |
int _Noreturn does_not_return (void) { for (;;) continue; } |
| 2095 |
|
| 2096 |
// Check _Static_assert. |
| 2097 |
struct test_static_assert |
| 2098 |
{ |
| 2099 |
int x; |
| 2100 |
_Static_assert (sizeof (int) <= sizeof (long int), |
| 2101 |
"_Static_assert does not work in struct"); |
| 2102 |
long int y; |
| 2103 |
}; |
| 2104 |
|
| 2105 |
// Check UTF-8 literals. |
| 2106 |
#define u8 syntax error! |
| 2107 |
char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 2108 |
|
| 2109 |
// Check duplicate typedefs. |
| 2110 |
typedef long *long_ptr; |
| 2111 |
typedef long int *long_ptr; |
| 2112 |
typedef long_ptr long_ptr; |
| 2113 |
|
| 2114 |
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 2115 |
struct anonymous |
| 2116 |
{ |
| 2117 |
union { |
| 2118 |
struct { int i; int j; }; |
| 2119 |
struct { int k; long int l; } w; |
| 2120 |
}; |
| 2121 |
int m; |
| 2122 |
} v1; |
| 2123 |
' |
| 2124 |
|
| 2125 |
# Test code for whether the C compiler supports C11 (body of main). |
| 2126 |
ac_c_conftest_c11_main=' |
| 2127 |
_Static_assert ((offsetof (struct anonymous, i) |
| 2128 |
== offsetof (struct anonymous, w.k)), |
| 2129 |
"Anonymous union alignment botch"); |
| 2130 |
v1.i = 2; |
| 2131 |
v1.w.k = 5; |
| 2132 |
ok |= v1.i != 5; |
| 2133 |
' |
| 2134 |
|
| 2135 |
# Test code for whether the C compiler supports C11 (complete). |
| 2136 |
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 2137 |
${ac_c_conftest_c99_globals} |
| 2138 |
${ac_c_conftest_c11_globals} |
| 2139 |
|
| 2140 |
int |
| 2141 |
main (int argc, char **argv) |
| 2142 |
{ |
| 2143 |
int ok = 0; |
| 2144 |
${ac_c_conftest_c89_main} |
| 2145 |
${ac_c_conftest_c99_main} |
| 2146 |
${ac_c_conftest_c11_main} |
| 2147 |
return ok; |
| 2148 |
} |
| 2149 |
" |
| 2150 |
|
| 2151 |
# Test code for whether the C compiler supports C99 (complete). |
| 2152 |
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 2153 |
${ac_c_conftest_c99_globals} |
| 2154 |
|
| 2155 |
int |
| 2156 |
main (int argc, char **argv) |
| 2157 |
{ |
| 2158 |
int ok = 0; |
| 2159 |
${ac_c_conftest_c89_main} |
| 2160 |
${ac_c_conftest_c99_main} |
| 2161 |
return ok; |
| 2162 |
} |
| 2163 |
" |
| 2164 |
|
| 2165 |
# Test code for whether the C compiler supports C89 (complete). |
| 2166 |
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 2167 |
|
| 2168 |
int |
| 2169 |
main (int argc, char **argv) |
| 2170 |
{ |
| 2171 |
int ok = 0; |
| 2172 |
${ac_c_conftest_c89_main} |
| 2173 |
return ok; |
| 2174 |
} |
| 2175 |
" |
| 2176 |
|
| 2177 |
# Test code for whether the C++ compiler supports C++98 (global declarations) |
| 2178 |
ac_cxx_conftest_cxx98_globals=' |
| 2179 |
// Does the compiler advertise C++98 conformance? |
| 2180 |
#if !defined __cplusplus || __cplusplus < 199711L |
| 2181 |
# error "Compiler does not advertise C++98 conformance" |
| 2182 |
#endif |
| 2183 |
|
| 2184 |
// These inclusions are to reject old compilers that |
| 2185 |
// lack the unsuffixed header files. |
| 2186 |
#include <cstdlib> |
| 2187 |
#include <exception> |
| 2188 |
|
| 2189 |
// <cassert> and <cstring> are *not* freestanding headers in C++98. |
| 2190 |
extern void assert (int); |
| 2191 |
namespace std { |
| 2192 |
extern int strcmp (const char *, const char *); |
| 2193 |
} |
| 2194 |
|
| 2195 |
// Namespaces, exceptions, and templates were all added after "C++ 2.0". |
| 2196 |
using std::exception; |
| 2197 |
using std::strcmp; |
| 2198 |
|
| 2199 |
namespace { |
| 2200 |
|
| 2201 |
void test_exception_syntax() |
| 2202 |
{ |
| 2203 |
try { |
| 2204 |
throw "test"; |
| 2205 |
} catch (const char *s) { |
| 2206 |
// Extra parentheses suppress a warning when building autoconf itself, |
| 2207 |
// due to lint rules shared with more typical C programs. |
| 2208 |
assert (!(strcmp) (s, "test")); |
| 2209 |
} |
| 2210 |
} |
| 2211 |
|
| 2212 |
template <typename T> struct test_template |
| 2213 |
{ |
| 2214 |
T const val; |
| 2215 |
explicit test_template(T t) : val(t) {} |
| 2216 |
template <typename U> T add(U u) { return static_cast<T>(u) + val; } |
| 2217 |
}; |
| 2218 |
|
| 2219 |
} // anonymous namespace |
| 2220 |
' |
| 2221 |
|
| 2222 |
# Test code for whether the C++ compiler supports C++98 (body of main) |
| 2223 |
ac_cxx_conftest_cxx98_main=' |
| 2224 |
assert (argc); |
| 2225 |
assert (! argv[0]); |
| 2226 |
{ |
| 2227 |
test_exception_syntax (); |
| 2228 |
test_template<double> tt (2.0); |
| 2229 |
assert (tt.add (4) == 6.0); |
| 2230 |
assert (true && !false); |
| 2231 |
} |
| 2232 |
' |
| 2233 |
|
| 2234 |
# Test code for whether the C++ compiler supports C++11 (global declarations) |
| 2235 |
ac_cxx_conftest_cxx11_globals=' |
| 2236 |
// Does the compiler advertise C++ 2011 conformance? |
| 2237 |
#if !defined __cplusplus || __cplusplus < 201103L |
| 2238 |
# error "Compiler does not advertise C++11 conformance" |
| 2239 |
#endif |
| 2240 |
|
| 2241 |
namespace cxx11test |
| 2242 |
{ |
| 2243 |
constexpr int get_val() { return 20; } |
| 2244 |
|
| 2245 |
struct testinit |
| 2246 |
{ |
| 2247 |
int i; |
| 2248 |
double d; |
| 2249 |
}; |
| 2250 |
|
| 2251 |
class delegate |
| 2252 |
{ |
| 2253 |
public: |
| 2254 |
delegate(int n) : n(n) {} |
| 2255 |
delegate(): delegate(2354) {} |
| 2256 |
|
| 2257 |
virtual int getval() { return this->n; }; |
| 2258 |
protected: |
| 2259 |
int n; |
| 2260 |
}; |
| 2261 |
|
| 2262 |
class overridden : public delegate |
| 2263 |
{ |
| 2264 |
public: |
| 2265 |
overridden(int n): delegate(n) {} |
| 2266 |
virtual int getval() override final { return this->n * 2; } |
| 2267 |
}; |
| 2268 |
|
| 2269 |
class nocopy |
| 2270 |
{ |
| 2271 |
public: |
| 2272 |
nocopy(int i): i(i) {} |
| 2273 |
nocopy() = default; |
| 2274 |
nocopy(const nocopy&) = delete; |
| 2275 |
nocopy & operator=(const nocopy&) = delete; |
| 2276 |
private: |
| 2277 |
int i; |
| 2278 |
}; |
| 2279 |
|
| 2280 |
// for testing lambda expressions |
| 2281 |
template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) |
| 2282 |
{ |
| 2283 |
return f(v); |
| 2284 |
} |
| 2285 |
|
| 2286 |
// for testing variadic templates and trailing return types |
| 2287 |
template <typename V> auto sum(V first) -> V |
| 2288 |
{ |
| 2289 |
return first; |
| 2290 |
} |
| 2291 |
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V |
| 2292 |
{ |
| 2293 |
return first + sum(rest...); |
| 2294 |
} |
| 2295 |
} |
| 2296 |
' |
| 2297 |
|
| 2298 |
# Test code for whether the C++ compiler supports C++11 (body of main) |
| 2299 |
ac_cxx_conftest_cxx11_main=' |
| 2300 |
{ |
| 2301 |
// Test auto and decltype |
| 2302 |
auto a1 = 6538; |
| 2303 |
auto a2 = 48573953.4; |
| 2304 |
auto a3 = "String literal"; |
| 2305 |
|
| 2306 |
int total = 0; |
| 2307 |
for (auto i = a3; *i; ++i) { total += *i; } |
| 2308 |
|
| 2309 |
decltype(a2) a4 = 34895.034; |
| 2310 |
} |
| 2311 |
{ |
| 2312 |
// Test constexpr |
| 2313 |
short sa[cxx11test::get_val()] = { 0 }; |
| 2314 |
} |
| 2315 |
{ |
| 2316 |
// Test initializer lists |
| 2317 |
cxx11test::testinit il = { 4323, 435234.23544 }; |
| 2318 |
} |
| 2319 |
{ |
| 2320 |
// Test range-based for |
| 2321 |
int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, |
| 2322 |
14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; |
| 2323 |
for (auto &x : array) { x += 23; } |
| 2324 |
} |
| 2325 |
{ |
| 2326 |
// Test lambda expressions |
| 2327 |
using cxx11test::eval; |
| 2328 |
assert (eval ([](int x) { return x*2; }, 21) == 42); |
| 2329 |
double d = 2.0; |
| 2330 |
assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); |
| 2331 |
assert (d == 5.0); |
| 2332 |
assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); |
| 2333 |
assert (d == 5.0); |
| 2334 |
} |
| 2335 |
{ |
| 2336 |
// Test use of variadic templates |
| 2337 |
using cxx11test::sum; |
| 2338 |
auto a = sum(1); |
| 2339 |
auto b = sum(1, 2); |
| 2340 |
auto c = sum(1.0, 2.0, 3.0); |
| 2341 |
} |
| 2342 |
{ |
| 2343 |
// Test constructor delegation |
| 2344 |
cxx11test::delegate d1; |
| 2345 |
cxx11test::delegate d2(); |
| 2346 |
cxx11test::delegate d3(45); |
| 2347 |
} |
| 2348 |
{ |
| 2349 |
// Test override and final |
| 2350 |
cxx11test::overridden o1(55464); |
| 2351 |
} |
| 2352 |
{ |
| 2353 |
// Test nullptr |
| 2354 |
char *c = nullptr; |
| 2355 |
} |
| 2356 |
{ |
| 2357 |
// Test template brackets |
| 2358 |
test_template<::test_template<int>> v(test_template<int>(12)); |
| 2359 |
} |
| 2360 |
{ |
| 2361 |
// Unicode literals |
| 2362 |
char const *utf8 = u8"UTF-8 string \u2500"; |
| 2363 |
char16_t const *utf16 = u"UTF-8 string \u2500"; |
| 2364 |
char32_t const *utf32 = U"UTF-32 string \u2500"; |
| 2365 |
} |
| 2366 |
' |
| 2367 |
|
| 2368 |
# Test code for whether the C compiler supports C++11 (complete). |
| 2369 |
ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} |
| 2370 |
${ac_cxx_conftest_cxx11_globals} |
| 2371 |
|
| 2372 |
int |
| 2373 |
main (int argc, char **argv) |
| 2374 |
{ |
| 2375 |
int ok = 0; |
| 2376 |
${ac_cxx_conftest_cxx98_main} |
| 2377 |
${ac_cxx_conftest_cxx11_main} |
| 2378 |
return ok; |
| 2379 |
} |
| 2380 |
" |
| 2381 |
|
| 2382 |
# Test code for whether the C compiler supports C++98 (complete). |
| 2383 |
ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} |
| 2384 |
int |
| 2385 |
main (int argc, char **argv) |
| 2386 |
{ |
| 2387 |
int ok = 0; |
| 2388 |
${ac_cxx_conftest_cxx98_main} |
| 2389 |
return ok; |
| 2390 |
} |
| 2391 |
" |
| 2392 |
|
| 2393 |
|
| 2394 |
# Auxiliary files required by this configure script. |
| 2395 |
ac_aux_files="compile missing install-sh" |
| 2396 |
|
| 2397 |
# Locations in which to look for auxiliary files. |
| 2398 |
ac_aux_dir_candidates="${srcdir}/build-aux" |
| 2399 |
|
| 2400 |
# Search for a directory containing all of the required auxiliary files, |
| 2401 |
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 2402 |
# If we don't find one directory that contains all the files we need, |
| 2403 |
# we report the set of missing files from the *first* directory in |
| 2404 |
# $ac_aux_dir_candidates and give up. |
| 2405 |
ac_missing_aux_files="" |
| 2406 |
ac_first_candidate=: |
| 2407 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 2408 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2409 |
as_found=false |
| 2410 |
for as_dir in $ac_aux_dir_candidates |
| 2411 |
do |
| 2412 |
IFS=$as_save_IFS |
| 2413 |
case $as_dir in #((( |
| 2414 |
'') as_dir=./ ;; |
| 2415 |
*/) ;; |
| 2416 |
*) as_dir=$as_dir/ ;; |
| 2417 |
esac |
| 2418 |
as_found=: |
| 2419 |
|
| 2420 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 2421 |
ac_aux_dir_found=yes |
| 2422 |
ac_install_sh= |
| 2423 |
for ac_aux in $ac_aux_files |
| 2424 |
do |
| 2425 |
# As a special case, if "install-sh" is required, that requirement |
| 2426 |
# can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 2427 |
# and $ac_install_sh is set appropriately for whichever one is found. |
| 2428 |
if test x"$ac_aux" = x"install-sh" |
| 2429 |
then |
| 2430 |
if test -f "${as_dir}install-sh"; then |
| 2431 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 2432 |
ac_install_sh="${as_dir}install-sh -c" |
| 2433 |
elif test -f "${as_dir}install.sh"; then |
| 2434 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 2435 |
ac_install_sh="${as_dir}install.sh -c" |
| 2436 |
elif test -f "${as_dir}shtool"; then |
| 2437 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 2438 |
ac_install_sh="${as_dir}shtool install -c" |
| 2439 |
else |
| 2440 |
ac_aux_dir_found=no |
| 2441 |
if $ac_first_candidate; then |
| 2442 |
ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 2443 |
else |
| 2444 |
break |
| 2445 |
fi |
| 2446 |
fi |
| 2447 |
else |
| 2448 |
if test -f "${as_dir}${ac_aux}"; then |
| 2449 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 2450 |
else |
| 2451 |
ac_aux_dir_found=no |
| 2452 |
if $ac_first_candidate; then |
| 2453 |
ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 2454 |
else |
| 2455 |
break |
| 2456 |
fi |
| 2457 |
fi |
| 2458 |
fi |
| 2459 |
done |
| 2460 |
if test "$ac_aux_dir_found" = yes; then |
| 2461 |
ac_aux_dir="$as_dir" |
| 2462 |
break |
| 2463 |
fi |
| 2464 |
ac_first_candidate=false |
| 2465 |
|
| 2466 |
as_found=false |
| 2467 |
done |
| 2468 |
IFS=$as_save_IFS |
| 2469 |
if $as_found |
| 2470 |
then : |
| 2471 |
|
| 2472 |
else case e in #( |
| 2473 |
e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; |
| 2474 |
esac |
| 2475 |
fi |
| 2476 |
|
| 2477 |
|
| 2478 |
# These three variables are undocumented and unsupported, |
| 2479 |
# and are intended to be withdrawn in a future Autoconf release. |
| 2480 |
# They can cause serious problems if a builder's source tree is in a directory |
| 2481 |
# whose full name contains unusual characters. |
| 2482 |
if test -f "${ac_aux_dir}config.guess"; then |
| 2483 |
ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 2484 |
fi |
| 2485 |
if test -f "${ac_aux_dir}config.sub"; then |
| 2486 |
ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 2487 |
fi |
| 2488 |
if test -f "$ac_aux_dir/configure"; then |
| 2489 |
ac_configure="$SHELL ${ac_aux_dir}configure" |
| 2490 |
fi |
| 2491 |
|
| 2492 |
# Check that the precious variables saved in the cache have kept the same |
| 2493 |
# value. |
| 2494 |
ac_cache_corrupted=false |
| 2495 |
for ac_var in $ac_precious_vars; do |
| 2496 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2497 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 2498 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2499 |
eval ac_new_val=\$ac_env_${ac_var}_value |
| 2500 |
case $ac_old_set,$ac_new_set in |
| 2501 |
set,) |
| 2502 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 |
| 2503 |
printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} |
| 2504 |
ac_cache_corrupted=: ;; |
| 2505 |
,set) |
| 2506 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 |
| 2507 |
printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} |
| 2508 |
ac_cache_corrupted=: ;; |
| 2509 |
,);; |
| 2510 |
*) |
| 2511 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2512 |
# differences in whitespace do not lead to failure. |
| 2513 |
ac_old_val_w=`echo x $ac_old_val` |
| 2514 |
ac_new_val_w=`echo x $ac_new_val` |
| 2515 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2516 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 |
| 2517 |
printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} |
| 2518 |
ac_cache_corrupted=: |
| 2519 |
else |
| 2520 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 |
| 2521 |
printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} |
| 2522 |
eval $ac_var=\$ac_old_val |
| 2523 |
fi |
| 2524 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 |
| 2525 |
printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} |
| 2526 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 |
| 2527 |
printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} |
| 2528 |
fi;; |
| 2529 |
esac |
| 2530 |
# Pass precious variables to config.status. |
| 2531 |
if test "$ac_new_set" = set; then |
| 2532 |
case $ac_new_val in |
| 2533 |
*\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2534 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 2535 |
esac |
| 2536 |
case " $ac_configure_args " in |
| 2537 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2538 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2539 |
esac |
| 2540 |
fi |
| 2541 |
done |
| 2542 |
if $ac_cache_corrupted; then |
| 2543 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2544 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2545 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2546 |
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2547 |
as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' |
| 2548 |
and start over" "$LINENO" 5 |
| 2549 |
fi |
| 2550 |
## -------------------- ## |
| 2551 |
## Main body of script. ## |
| 2552 |
## -------------------- ## |
| 2553 |
|
| 2554 |
ac_ext=c |
| 2555 |
ac_cpp='$CPP $CPPFLAGS' |
| 2556 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2557 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2558 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2559 |
|
| 2560 |
|
| 2561 |
|
| 2562 |
|
| 2563 |
|
| 2564 |
|
| 2565 |
am__api_version='1.18' |
| 2566 |
|
| 2567 |
|
| 2568 |
|
| 2569 |
# Find a good install program. We prefer a C program (faster), |
| 2570 |
# so one script is as good as another. But avoid the broken or |
| 2571 |
# incompatible versions: |
| 2572 |
# SysV /etc/install, /usr/sbin/install |
| 2573 |
# SunOS /usr/etc/install |
| 2574 |
# IRIX /sbin/install |
| 2575 |
# AIX /bin/install |
| 2576 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2577 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2578 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2579 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2580 |
# OS/2's system install, which has a completely different semantic |
| 2581 |
# ./install, which can be erroneously created by make from ./install.sh. |
| 2582 |
# Reject install programs that cannot install multiple files. |
| 2583 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2584 |
printf %s "checking for a BSD-compatible install... " >&6; } |
| 2585 |
if test -z "$INSTALL"; then |
| 2586 |
if test ${ac_cv_path_install+y} |
| 2587 |
then : |
| 2588 |
printf %s "(cached) " >&6 |
| 2589 |
else case e in #( |
| 2590 |
e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2591 |
for as_dir in $PATH |
| 2592 |
do |
| 2593 |
IFS=$as_save_IFS |
| 2594 |
case $as_dir in #((( |
| 2595 |
'') as_dir=./ ;; |
| 2596 |
*/) ;; |
| 2597 |
*) as_dir=$as_dir/ ;; |
| 2598 |
esac |
| 2599 |
# Account for fact that we put trailing slashes in our PATH walk. |
| 2600 |
case $as_dir in #(( |
| 2601 |
./ | /[cC]/* | \ |
| 2602 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2603 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 2604 |
/usr/ucb/* ) ;; |
| 2605 |
*) |
| 2606 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 2607 |
# Don't use installbsd from OSF since it installs stuff as root |
| 2608 |
# by default. |
| 2609 |
for ac_prog in ginstall scoinst install; do |
| 2610 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2611 |
if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
| 2612 |
if test $ac_prog = install && |
| 2613 |
grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2614 |
# AIX install. It has an incompatible calling convention. |
| 2615 |
: |
| 2616 |
elif test $ac_prog = install && |
| 2617 |
grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2618 |
# program-specific install script used by HP pwplus--don't use. |
| 2619 |
: |
| 2620 |
else |
| 2621 |
rm -rf conftest.one conftest.two conftest.dir |
| 2622 |
echo one > conftest.one |
| 2623 |
echo two > conftest.two |
| 2624 |
mkdir conftest.dir |
| 2625 |
if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
| 2626 |
test -s conftest.one && test -s conftest.two && |
| 2627 |
test -s conftest.dir/conftest.one && |
| 2628 |
test -s conftest.dir/conftest.two |
| 2629 |
then |
| 2630 |
ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
| 2631 |
break 3 |
| 2632 |
fi |
| 2633 |
fi |
| 2634 |
fi |
| 2635 |
done |
| 2636 |
done |
| 2637 |
;; |
| 2638 |
esac |
| 2639 |
|
| 2640 |
done |
| 2641 |
IFS=$as_save_IFS |
| 2642 |
|
| 2643 |
rm -rf conftest.one conftest.two conftest.dir |
| 2644 |
;; |
| 2645 |
esac |
| 2646 |
fi |
| 2647 |
if test ${ac_cv_path_install+y}; then |
| 2648 |
INSTALL=$ac_cv_path_install |
| 2649 |
else |
| 2650 |
# As a last resort, use the slow shell script. Don't cache a |
| 2651 |
# value for INSTALL within a source directory, because that will |
| 2652 |
# break other packages using the cache if that directory is |
| 2653 |
# removed, or if the value is a relative name. |
| 2654 |
INSTALL=$ac_install_sh |
| 2655 |
fi |
| 2656 |
fi |
| 2657 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2658 |
printf "%s\n" "$INSTALL" >&6; } |
| 2659 |
|
| 2660 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2661 |
# It thinks the first close brace ends the variable substitution. |
| 2662 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2663 |
|
| 2664 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2665 |
|
| 2666 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2667 |
|
| 2668 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 |
| 2669 |
printf %s "checking whether sleep supports fractional seconds... " >&6; } |
| 2670 |
if test ${am_cv_sleep_fractional_seconds+y} |
| 2671 |
then : |
| 2672 |
printf %s "(cached) " >&6 |
| 2673 |
else case e in #( |
| 2674 |
e) if sleep 0.001 2>/dev/null |
| 2675 |
then : |
| 2676 |
am_cv_sleep_fractional_seconds=yes |
| 2677 |
else case e in #( |
| 2678 |
e) am_cv_sleep_fractional_seconds=no ;; |
| 2679 |
esac |
| 2680 |
fi |
| 2681 |
;; |
| 2682 |
esac |
| 2683 |
fi |
| 2684 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 |
| 2685 |
printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } |
| 2686 |
|
| 2687 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 |
| 2688 |
printf %s "checking filesystem timestamp resolution... " >&6; } |
| 2689 |
if test ${am_cv_filesystem_timestamp_resolution+y} |
| 2690 |
then : |
| 2691 |
printf %s "(cached) " >&6 |
| 2692 |
else case e in #( |
| 2693 |
e) # Default to the worst case. |
| 2694 |
am_cv_filesystem_timestamp_resolution=2 |
| 2695 |
|
| 2696 |
# Only try to go finer than 1 sec if sleep can do it. |
| 2697 |
# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, |
| 2698 |
# - 1 sec is not much of a win compared to 2 sec, and |
| 2699 |
# - it takes 2 seconds to perform the test whether 1 sec works. |
| 2700 |
# |
| 2701 |
# Instead, just use the default 2s on platforms that have 1s resolution, |
| 2702 |
# accept the extra 1s delay when using $sleep in the Automake tests, in |
| 2703 |
# exchange for not incurring the 2s delay for running the test for all |
| 2704 |
# packages. |
| 2705 |
# |
| 2706 |
am_try_resolutions= |
| 2707 |
if test "$am_cv_sleep_fractional_seconds" = yes; then |
| 2708 |
# Even a millisecond often causes a bunch of false positives, |
| 2709 |
# so just try a hundredth of a second. The time saved between .001 and |
| 2710 |
# .01 is not terribly consequential. |
| 2711 |
am_try_resolutions="0.01 0.1 $am_try_resolutions" |
| 2712 |
fi |
| 2713 |
|
| 2714 |
# In order to catch current-generation FAT out, we must *modify* files |
| 2715 |
# that already exist; the *creation* timestamp is finer. Use names |
| 2716 |
# that make ls -t sort them differently when they have equal |
| 2717 |
# timestamps than when they have distinct timestamps, keeping |
| 2718 |
# in mind that ls -t prints the *newest* file first. |
| 2719 |
rm -f conftest.ts? |
| 2720 |
: > conftest.ts1 |
| 2721 |
: > conftest.ts2 |
| 2722 |
: > conftest.ts3 |
| 2723 |
|
| 2724 |
# Make sure ls -t actually works. Do 'set' in a subshell so we don't |
| 2725 |
# clobber the current shell's arguments. (Outer-level square brackets |
| 2726 |
# are removed by m4; they're present so that m4 does not expand |
| 2727 |
# <dollar><star>; be careful, easy to get confused.) |
| 2728 |
if ( |
| 2729 |
set X `ls -t conftest.ts[12]` && |
| 2730 |
{ |
| 2731 |
test "$*" != "X conftest.ts1 conftest.ts2" || |
| 2732 |
test "$*" != "X conftest.ts2 conftest.ts1"; |
| 2733 |
} |
| 2734 |
); then :; else |
| 2735 |
# If neither matched, then we have a broken ls. This can happen |
| 2736 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2737 |
# broken ls alias from the environment. This has actually |
| 2738 |
# happened. Such a system could not be considered "sane". |
| 2739 |
printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 |
| 2740 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2741 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2742 |
as_fn_error $? "ls -t produces unexpected output. |
| 2743 |
Make sure there is not a broken ls alias in your environment. |
| 2744 |
See 'config.log' for more details" "$LINENO" 5; } |
| 2745 |
fi |
| 2746 |
|
| 2747 |
for am_try_res in $am_try_resolutions; do |
| 2748 |
# Any one fine-grained sleep might happen to cross the boundary |
| 2749 |
# between two values of a coarser actual resolution, but if we do |
| 2750 |
# two fine-grained sleeps in a row, at least one of them will fall |
| 2751 |
# entirely within a coarse interval. |
| 2752 |
echo alpha > conftest.ts1 |
| 2753 |
sleep $am_try_res |
| 2754 |
echo beta > conftest.ts2 |
| 2755 |
sleep $am_try_res |
| 2756 |
echo gamma > conftest.ts3 |
| 2757 |
|
| 2758 |
# We assume that 'ls -t' will make use of high-resolution |
| 2759 |
# timestamps if the operating system supports them at all. |
| 2760 |
if (set X `ls -t conftest.ts?` && |
| 2761 |
test "$2" = conftest.ts3 && |
| 2762 |
test "$3" = conftest.ts2 && |
| 2763 |
test "$4" = conftest.ts1); then |
| 2764 |
# |
| 2765 |
# Ok, ls -t worked. If we're at a resolution of 1 second, we're done, |
| 2766 |
# because we don't need to test make. |
| 2767 |
make_ok=true |
| 2768 |
if test $am_try_res != 1; then |
| 2769 |
# But if we've succeeded so far with a subsecond resolution, we |
| 2770 |
# have one more thing to check: make. It can happen that |
| 2771 |
# everything else supports the subsecond mtimes, but make doesn't; |
| 2772 |
# notably on macOS, which ships make 3.81 from 2006 (the last one |
| 2773 |
# released under GPLv2). https://bugs.gnu.org/68808 |
| 2774 |
# |
| 2775 |
# We test $MAKE if it is defined in the environment, else "make". |
| 2776 |
# It might get overridden later, but our hope is that in practice |
| 2777 |
# it does not matter: it is the system "make" which is (by far) |
| 2778 |
# the most likely to be broken, whereas if the user overrides it, |
| 2779 |
# probably they did so with a better, or at least not worse, make. |
| 2780 |
# https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html |
| 2781 |
# |
| 2782 |
# Create a Makefile (real tab character here): |
| 2783 |
rm -f conftest.mk |
| 2784 |
echo 'conftest.ts1: conftest.ts2' >conftest.mk |
| 2785 |
echo ' touch conftest.ts2' >>conftest.mk |
| 2786 |
# |
| 2787 |
# Now, running |
| 2788 |
# touch conftest.ts1; touch conftest.ts2; make |
| 2789 |
# should touch ts1 because ts2 is newer. This could happen by luck, |
| 2790 |
# but most often, it will fail if make's support is insufficient. So |
| 2791 |
# test for several consecutive successes. |
| 2792 |
# |
| 2793 |
# (We reuse conftest.ts[12] because we still want to modify existing |
| 2794 |
# files, not create new ones, per above.) |
| 2795 |
n=0 |
| 2796 |
make=${MAKE-make} |
| 2797 |
until test $n -eq 3; do |
| 2798 |
echo one > conftest.ts1 |
| 2799 |
sleep $am_try_res |
| 2800 |
echo two > conftest.ts2 # ts2 should now be newer than ts1 |
| 2801 |
if $make -f conftest.mk | grep 'up to date' >/dev/null; then |
| 2802 |
make_ok=false |
| 2803 |
break # out of $n loop |
| 2804 |
fi |
| 2805 |
n=`expr $n + 1` |
| 2806 |
done |
| 2807 |
fi |
| 2808 |
# |
| 2809 |
if $make_ok; then |
| 2810 |
# Everything we know to check worked out, so call this resolution good. |
| 2811 |
am_cv_filesystem_timestamp_resolution=$am_try_res |
| 2812 |
break # out of $am_try_res loop |
| 2813 |
fi |
| 2814 |
# Otherwise, we'll go on to check the next resolution. |
| 2815 |
fi |
| 2816 |
done |
| 2817 |
rm -f conftest.ts? |
| 2818 |
# (end _am_filesystem_timestamp_resolution) |
| 2819 |
;; |
| 2820 |
esac |
| 2821 |
fi |
| 2822 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 |
| 2823 |
printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } |
| 2824 |
|
| 2825 |
# This check should not be cached, as it may vary across builds of |
| 2826 |
# different projects. |
| 2827 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2828 |
printf %s "checking whether build environment is sane... " >&6; } |
| 2829 |
# Reject unsafe characters in $srcdir or the absolute working directory |
| 2830 |
# name. Accept space and tab only in the latter. |
| 2831 |
am_lf=' |
| 2832 |
' |
| 2833 |
case `pwd` in |
| 2834 |
*[\\\"\#\$\&\'\`$am_lf]*) |
| 2835 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2836 |
printf "%s\n" "no" >&6; } |
| 2837 |
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 2838 |
esac |
| 2839 |
case $srcdir in |
| 2840 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2841 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2842 |
printf "%s\n" "no" >&6; } |
| 2843 |
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 2844 |
esac |
| 2845 |
|
| 2846 |
# Do 'set' in a subshell so we don't clobber the current shell's |
| 2847 |
# arguments. Must try -L first in case configure is actually a |
| 2848 |
# symlink; some systems play weird games with the mod time of symlinks |
| 2849 |
# (eg FreeBSD returns the mod time of the symlink's containing |
| 2850 |
# directory). |
| 2851 |
am_build_env_is_sane=no |
| 2852 |
am_has_slept=no |
| 2853 |
rm -f conftest.file |
| 2854 |
for am_try in 1 2; do |
| 2855 |
echo "timestamp, slept: $am_has_slept" > conftest.file |
| 2856 |
if ( |
| 2857 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2858 |
if test "$*" = "X"; then |
| 2859 |
# -L didn't work. |
| 2860 |
set X `ls -t "$srcdir/configure" conftest.file` |
| 2861 |
fi |
| 2862 |
test "$2" = conftest.file |
| 2863 |
); then |
| 2864 |
am_build_env_is_sane=yes |
| 2865 |
break |
| 2866 |
fi |
| 2867 |
# Just in case. |
| 2868 |
sleep "$am_cv_filesystem_timestamp_resolution" |
| 2869 |
am_has_slept=yes |
| 2870 |
done |
| 2871 |
|
| 2872 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 |
| 2873 |
printf "%s\n" "$am_build_env_is_sane" >&6; } |
| 2874 |
if test "$am_build_env_is_sane" = no; then |
| 2875 |
as_fn_error $? "newly created file is older than distributed files! |
| 2876 |
Check your system clock" "$LINENO" 5 |
| 2877 |
fi |
| 2878 |
|
| 2879 |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
| 2880 |
# generated files are strictly newer. |
| 2881 |
am_sleep_pid= |
| 2882 |
if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 |
| 2883 |
then : |
| 2884 |
|
| 2885 |
else case e in #( |
| 2886 |
e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & |
| 2887 |
am_sleep_pid=$! |
| 2888 |
;; |
| 2889 |
esac |
| 2890 |
fi |
| 2891 |
|
| 2892 |
rm -f conftest.file |
| 2893 |
|
| 2894 |
test "$program_prefix" != NONE && |
| 2895 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2896 |
# Use a double $ so make ignores it. |
| 2897 |
test "$program_suffix" != NONE && |
| 2898 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2899 |
# Double any \ or $. |
| 2900 |
# By default was 's,x,x', remove it if useless. |
| 2901 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2902 |
program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` |
| 2903 |
|
| 2904 |
|
| 2905 |
# Expand $ac_aux_dir to an absolute path. |
| 2906 |
am_aux_dir=`cd "$ac_aux_dir" && pwd` |
| 2907 |
|
| 2908 |
|
| 2909 |
if test x"${MISSING+set}" != xset; then |
| 2910 |
MISSING="\${SHELL} '$am_aux_dir/missing'" |
| 2911 |
fi |
| 2912 |
# Use eval to expand $SHELL |
| 2913 |
if eval "$MISSING --is-lightweight"; then |
| 2914 |
am_missing_run="$MISSING " |
| 2915 |
else |
| 2916 |
am_missing_run= |
| 2917 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2918 |
printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 2919 |
fi |
| 2920 |
|
| 2921 |
if test x"${install_sh+set}" != xset; then |
| 2922 |
case $am_aux_dir in |
| 2923 |
*\ * | *\ *) |
| 2924 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2925 |
*) |
| 2926 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2927 |
esac |
| 2928 |
fi |
| 2929 |
|
| 2930 |
# Installed binaries are usually stripped using 'strip' when the user |
| 2931 |
# run "make install-strip". However 'strip' might not be the right |
| 2932 |
# tool to use in cross-compilation environments, therefore Automake |
| 2933 |
# will honor the 'STRIP' environment variable to overrule this program. |
| 2934 |
if test "$cross_compiling" != no; then |
| 2935 |
if test -n "$ac_tool_prefix"; then |
| 2936 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2937 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2938 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2939 |
printf %s "checking for $ac_word... " >&6; } |
| 2940 |
if test ${ac_cv_prog_STRIP+y} |
| 2941 |
then : |
| 2942 |
printf %s "(cached) " >&6 |
| 2943 |
else case e in #( |
| 2944 |
e) if test -n "$STRIP"; then |
| 2945 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2946 |
else |
| 2947 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2948 |
for as_dir in $PATH |
| 2949 |
do |
| 2950 |
IFS=$as_save_IFS |
| 2951 |
case $as_dir in #((( |
| 2952 |
'') as_dir=./ ;; |
| 2953 |
*/) ;; |
| 2954 |
*) as_dir=$as_dir/ ;; |
| 2955 |
esac |
| 2956 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2957 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2958 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2959 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2960 |
break 2 |
| 2961 |
fi |
| 2962 |
done |
| 2963 |
done |
| 2964 |
IFS=$as_save_IFS |
| 2965 |
|
| 2966 |
fi ;; |
| 2967 |
esac |
| 2968 |
fi |
| 2969 |
STRIP=$ac_cv_prog_STRIP |
| 2970 |
if test -n "$STRIP"; then |
| 2971 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2972 |
printf "%s\n" "$STRIP" >&6; } |
| 2973 |
else |
| 2974 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2975 |
printf "%s\n" "no" >&6; } |
| 2976 |
fi |
| 2977 |
|
| 2978 |
|
| 2979 |
fi |
| 2980 |
if test -z "$ac_cv_prog_STRIP"; then |
| 2981 |
ac_ct_STRIP=$STRIP |
| 2982 |
# Extract the first word of "strip", so it can be a program name with args. |
| 2983 |
set dummy strip; ac_word=$2 |
| 2984 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2985 |
printf %s "checking for $ac_word... " >&6; } |
| 2986 |
if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 2987 |
then : |
| 2988 |
printf %s "(cached) " >&6 |
| 2989 |
else case e in #( |
| 2990 |
e) if test -n "$ac_ct_STRIP"; then |
| 2991 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2992 |
else |
| 2993 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2994 |
for as_dir in $PATH |
| 2995 |
do |
| 2996 |
IFS=$as_save_IFS |
| 2997 |
case $as_dir in #((( |
| 2998 |
'') as_dir=./ ;; |
| 2999 |
*/) ;; |
| 3000 |
*) as_dir=$as_dir/ ;; |
| 3001 |
esac |
| 3002 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3003 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3004 |
ac_cv_prog_ac_ct_STRIP="strip" |
| 3005 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3006 |
break 2 |
| 3007 |
fi |
| 3008 |
done |
| 3009 |
done |
| 3010 |
IFS=$as_save_IFS |
| 3011 |
|
| 3012 |
fi ;; |
| 3013 |
esac |
| 3014 |
fi |
| 3015 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3016 |
if test -n "$ac_ct_STRIP"; then |
| 3017 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3018 |
printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 3019 |
else |
| 3020 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3021 |
printf "%s\n" "no" >&6; } |
| 3022 |
fi |
| 3023 |
|
| 3024 |
if test "x$ac_ct_STRIP" = x; then |
| 3025 |
STRIP=":" |
| 3026 |
else |
| 3027 |
case $cross_compiling:$ac_tool_warned in |
| 3028 |
yes:) |
| 3029 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3030 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3031 |
ac_tool_warned=yes ;; |
| 3032 |
esac |
| 3033 |
STRIP=$ac_ct_STRIP |
| 3034 |
fi |
| 3035 |
else |
| 3036 |
STRIP="$ac_cv_prog_STRIP" |
| 3037 |
fi |
| 3038 |
|
| 3039 |
fi |
| 3040 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3041 |
|
| 3042 |
|
| 3043 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 |
| 3044 |
printf %s "checking for a race-free mkdir -p... " >&6; } |
| 3045 |
if test -z "$MKDIR_P"; then |
| 3046 |
if test ${ac_cv_path_mkdir+y} |
| 3047 |
then : |
| 3048 |
printf %s "(cached) " >&6 |
| 3049 |
else case e in #( |
| 3050 |
e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3051 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3052 |
do |
| 3053 |
IFS=$as_save_IFS |
| 3054 |
case $as_dir in #((( |
| 3055 |
'') as_dir=./ ;; |
| 3056 |
*/) ;; |
| 3057 |
*) as_dir=$as_dir/ ;; |
| 3058 |
esac |
| 3059 |
for ac_prog in mkdir gmkdir; do |
| 3060 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3061 |
as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
| 3062 |
case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3063 |
'mkdir ('*'coreutils) '* | \ |
| 3064 |
*'BusyBox '* | \ |
| 3065 |
'mkdir (fileutils) '4.1*) |
| 3066 |
ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
| 3067 |
break 3;; |
| 3068 |
esac |
| 3069 |
done |
| 3070 |
done |
| 3071 |
done |
| 3072 |
IFS=$as_save_IFS |
| 3073 |
;; |
| 3074 |
esac |
| 3075 |
fi |
| 3076 |
|
| 3077 |
test -d ./--version && rmdir ./--version |
| 3078 |
if test ${ac_cv_path_mkdir+y}; then |
| 3079 |
MKDIR_P="$ac_cv_path_mkdir -p" |
| 3080 |
else |
| 3081 |
# As a last resort, use plain mkdir -p, |
| 3082 |
# in the hope it doesn't have the bugs of ancient mkdir. |
| 3083 |
MKDIR_P='mkdir -p' |
| 3084 |
fi |
| 3085 |
fi |
| 3086 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3087 |
printf "%s\n" "$MKDIR_P" >&6; } |
| 3088 |
|
| 3089 |
for ac_prog in gawk mawk nawk awk |
| 3090 |
do |
| 3091 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3092 |
set dummy $ac_prog; ac_word=$2 |
| 3093 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3094 |
printf %s "checking for $ac_word... " >&6; } |
| 3095 |
if test ${ac_cv_prog_AWK+y} |
| 3096 |
then : |
| 3097 |
printf %s "(cached) " >&6 |
| 3098 |
else case e in #( |
| 3099 |
e) if test -n "$AWK"; then |
| 3100 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3101 |
else |
| 3102 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3103 |
for as_dir in $PATH |
| 3104 |
do |
| 3105 |
IFS=$as_save_IFS |
| 3106 |
case $as_dir in #((( |
| 3107 |
'') as_dir=./ ;; |
| 3108 |
*/) ;; |
| 3109 |
*) as_dir=$as_dir/ ;; |
| 3110 |
esac |
| 3111 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3112 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3113 |
ac_cv_prog_AWK="$ac_prog" |
| 3114 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3115 |
break 2 |
| 3116 |
fi |
| 3117 |
done |
| 3118 |
done |
| 3119 |
IFS=$as_save_IFS |
| 3120 |
|
| 3121 |
fi ;; |
| 3122 |
esac |
| 3123 |
fi |
| 3124 |
AWK=$ac_cv_prog_AWK |
| 3125 |
if test -n "$AWK"; then |
| 3126 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3127 |
printf "%s\n" "$AWK" >&6; } |
| 3128 |
else |
| 3129 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3130 |
printf "%s\n" "no" >&6; } |
| 3131 |
fi |
| 3132 |
|
| 3133 |
|
| 3134 |
test -n "$AWK" && break |
| 3135 |
done |
| 3136 |
|
| 3137 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3138 |
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3139 |
set x ${MAKE-make} |
| 3140 |
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3141 |
if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
| 3142 |
then : |
| 3143 |
printf %s "(cached) " >&6 |
| 3144 |
else case e in #( |
| 3145 |
e) cat >conftest.make <<\_ACEOF |
| 3146 |
SHELL = /bin/sh |
| 3147 |
all: |
| 3148 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3149 |
_ACEOF |
| 3150 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 3151 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3152 |
*@@@%%%=?*=@@@%%%*) |
| 3153 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3154 |
*) |
| 3155 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3156 |
esac |
| 3157 |
rm -f conftest.make ;; |
| 3158 |
esac |
| 3159 |
fi |
| 3160 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3161 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3162 |
printf "%s\n" "yes" >&6; } |
| 3163 |
SET_MAKE= |
| 3164 |
else |
| 3165 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3166 |
printf "%s\n" "no" >&6; } |
| 3167 |
SET_MAKE="MAKE=${MAKE-make}" |
| 3168 |
fi |
| 3169 |
|
| 3170 |
rm -rf .tst 2>/dev/null |
| 3171 |
mkdir .tst 2>/dev/null |
| 3172 |
if test -d .tst; then |
| 3173 |
am__leading_dot=. |
| 3174 |
else |
| 3175 |
am__leading_dot=_ |
| 3176 |
fi |
| 3177 |
rmdir .tst 2>/dev/null |
| 3178 |
|
| 3179 |
AM_DEFAULT_VERBOSITY=1 |
| 3180 |
# Check whether --enable-silent-rules was given. |
| 3181 |
if test ${enable_silent_rules+y} |
| 3182 |
then : |
| 3183 |
enableval=$enable_silent_rules; |
| 3184 |
fi |
| 3185 |
|
| 3186 |
am_make=${MAKE-make} |
| 3187 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 3188 |
printf %s "checking whether $am_make supports nested variables... " >&6; } |
| 3189 |
if test ${am_cv_make_support_nested_variables+y} |
| 3190 |
then : |
| 3191 |
printf %s "(cached) " >&6 |
| 3192 |
else case e in #( |
| 3193 |
e) if printf "%s\n" 'TRUE=$(BAR$(V)) |
| 3194 |
BAR0=false |
| 3195 |
BAR1=true |
| 3196 |
V=1 |
| 3197 |
am__doit: |
| 3198 |
@$(TRUE) |
| 3199 |
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 3200 |
am_cv_make_support_nested_variables=yes |
| 3201 |
else |
| 3202 |
am_cv_make_support_nested_variables=no |
| 3203 |
fi ;; |
| 3204 |
esac |
| 3205 |
fi |
| 3206 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 3207 |
printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } |
| 3208 |
AM_BACKSLASH='\' |
| 3209 |
|
| 3210 |
am__rm_f_notfound= |
| 3211 |
if (rm -f && rm -fr && rm -rf) 2>/dev/null |
| 3212 |
then : |
| 3213 |
|
| 3214 |
else case e in #( |
| 3215 |
e) am__rm_f_notfound='""' ;; |
| 3216 |
esac |
| 3217 |
fi |
| 3218 |
|
| 3219 |
|
| 3220 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 |
| 3221 |
printf %s "checking xargs -n works... " >&6; } |
| 3222 |
if test ${am_cv_xargs_n_works+y} |
| 3223 |
then : |
| 3224 |
printf %s "(cached) " >&6 |
| 3225 |
else case e in #( |
| 3226 |
e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 |
| 3227 |
3" |
| 3228 |
then : |
| 3229 |
am_cv_xargs_n_works=yes |
| 3230 |
else case e in #( |
| 3231 |
e) am_cv_xargs_n_works=no ;; |
| 3232 |
esac |
| 3233 |
fi ;; |
| 3234 |
esac |
| 3235 |
fi |
| 3236 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 |
| 3237 |
printf "%s\n" "$am_cv_xargs_n_works" >&6; } |
| 3238 |
if test "$am_cv_xargs_n_works" = yes |
| 3239 |
then : |
| 3240 |
am__xargs_n='xargs -n' |
| 3241 |
else case e in #( |
| 3242 |
e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' |
| 3243 |
;; |
| 3244 |
esac |
| 3245 |
fi |
| 3246 |
|
| 3247 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3248 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3249 |
# is not polluted with repeated "-I." |
| 3250 |
am__isrc=' -I$(srcdir)' |
| 3251 |
# test to see if srcdir already configured |
| 3252 |
if test -f $srcdir/config.status; then |
| 3253 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 3254 |
fi |
| 3255 |
fi |
| 3256 |
|
| 3257 |
# test whether we have cygpath |
| 3258 |
if test -z "$CYGPATH_W"; then |
| 3259 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3260 |
CYGPATH_W='cygpath -w' |
| 3261 |
else |
| 3262 |
CYGPATH_W=echo |
| 3263 |
fi |
| 3264 |
fi |
| 3265 |
|
| 3266 |
|
| 3267 |
# Define the identity of the package. |
| 3268 |
PACKAGE='phonesim' |
| 3269 |
VERSION='2.1' |
| 3270 |
|
| 3271 |
|
| 3272 |
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h |
| 3273 |
|
| 3274 |
|
| 3275 |
printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h |
| 3276 |
|
| 3277 |
# Some tools Automake needs. |
| 3278 |
|
| 3279 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3280 |
|
| 3281 |
|
| 3282 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3283 |
|
| 3284 |
|
| 3285 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3286 |
|
| 3287 |
|
| 3288 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3289 |
|
| 3290 |
|
| 3291 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3292 |
|
| 3293 |
# For better backward compatibility. To be removed once Automake 1.9.x |
| 3294 |
# dies out for good. For more background, see: |
| 3295 |
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 3296 |
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 3297 |
mkdir_p='$(MKDIR_P)' |
| 3298 |
|
| 3299 |
# We need awk for the "check" target (and possibly the TAP driver). The |
| 3300 |
# system "awk" is bad on some platforms. |
| 3301 |
# Always define AMTAR for backward compatibility. Yes, it's still used |
| 3302 |
# in the wild :-( We should find a proper way to deprecate it ... |
| 3303 |
AMTAR='$${TAR-tar}' |
| 3304 |
|
| 3305 |
|
| 3306 |
# We'll loop over all known methods to create a tar archive until one works. |
| 3307 |
_am_tools='gnutar pax cpio none' |
| 3308 |
|
| 3309 |
|
| 3310 |
|
| 3311 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 |
| 3312 |
printf %s "checking how to create a pax tar archive... " >&6; } |
| 3313 |
|
| 3314 |
# Go ahead even if we have the value already cached. We do so because we |
| 3315 |
# need to set the values for the 'am__tar' and 'am__untar' variables. |
| 3316 |
_am_tools=${am_cv_prog_tar_pax-$_am_tools} |
| 3317 |
|
| 3318 |
for _am_tool in $_am_tools; do |
| 3319 |
case $_am_tool in |
| 3320 |
gnutar) |
| 3321 |
for _am_tar in tar gnutar gtar; do |
| 3322 |
{ echo "$as_me:$LINENO: $_am_tar --version" >&5 |
| 3323 |
($_am_tar --version) >&5 2>&5 |
| 3324 |
ac_status=$? |
| 3325 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3326 |
(exit $ac_status); } && break |
| 3327 |
done |
| 3328 |
am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' |
| 3329 |
am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' |
| 3330 |
am__untar="$_am_tar -xf -" |
| 3331 |
;; |
| 3332 |
plaintar) |
| 3333 |
# Must skip GNU tar: if it does not support --format= it doesn't create |
| 3334 |
# ustar tarball either. |
| 3335 |
(tar --version) >/dev/null 2>&1 && continue |
| 3336 |
am__tar='tar chf - "$$tardir"' |
| 3337 |
am__tar_='tar chf - "$tardir"' |
| 3338 |
am__untar='tar xf -' |
| 3339 |
;; |
| 3340 |
pax) |
| 3341 |
am__tar='pax -L -x pax -w "$$tardir"' |
| 3342 |
am__tar_='pax -L -x pax -w "$tardir"' |
| 3343 |
am__untar='pax -r' |
| 3344 |
;; |
| 3345 |
cpio) |
| 3346 |
am__tar='find "$$tardir" -print | cpio -o -H pax -L' |
| 3347 |
am__tar_='find "$tardir" -print | cpio -o -H pax -L' |
| 3348 |
am__untar='cpio -i -H pax -d' |
| 3349 |
;; |
| 3350 |
none) |
| 3351 |
am__tar=false |
| 3352 |
am__tar_=false |
| 3353 |
am__untar=false |
| 3354 |
;; |
| 3355 |
esac |
| 3356 |
|
| 3357 |
# If the value was cached, stop now. We just wanted to have am__tar |
| 3358 |
# and am__untar set. |
| 3359 |
test -n "${am_cv_prog_tar_pax}" && break |
| 3360 |
|
| 3361 |
# tar/untar a dummy directory, and stop if the command works. |
| 3362 |
rm -rf conftest.dir |
| 3363 |
mkdir conftest.dir |
| 3364 |
echo GrepMe > conftest.dir/file |
| 3365 |
{ echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
| 3366 |
(tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 3367 |
ac_status=$? |
| 3368 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3369 |
(exit $ac_status); } |
| 3370 |
rm -rf conftest.dir |
| 3371 |
if test -s conftest.tar; then |
| 3372 |
{ echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
| 3373 |
($am__untar <conftest.tar) >&5 2>&5 |
| 3374 |
ac_status=$? |
| 3375 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3376 |
(exit $ac_status); } |
| 3377 |
{ echo "$as_me:$LINENO: cat conftest.dir/file" >&5 |
| 3378 |
(cat conftest.dir/file) >&5 2>&5 |
| 3379 |
ac_status=$? |
| 3380 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3381 |
(exit $ac_status); } |
| 3382 |
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 3383 |
fi |
| 3384 |
done |
| 3385 |
rm -rf conftest.dir |
| 3386 |
|
| 3387 |
if test ${am_cv_prog_tar_pax+y} |
| 3388 |
then : |
| 3389 |
printf %s "(cached) " >&6 |
| 3390 |
else case e in #( |
| 3391 |
e) am_cv_prog_tar_pax=$_am_tool ;; |
| 3392 |
esac |
| 3393 |
fi |
| 3394 |
|
| 3395 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 |
| 3396 |
printf "%s\n" "$am_cv_prog_tar_pax" >&6; } |
| 3397 |
|
| 3398 |
|
| 3399 |
|
| 3400 |
|
| 3401 |
|
| 3402 |
# Variables for tags utilities; see am/tags.am |
| 3403 |
if test -z "$CTAGS"; then |
| 3404 |
CTAGS=ctags |
| 3405 |
fi |
| 3406 |
|
| 3407 |
if test -z "$ETAGS"; then |
| 3408 |
ETAGS=etags |
| 3409 |
fi |
| 3410 |
|
| 3411 |
if test -z "$CSCOPE"; then |
| 3412 |
CSCOPE=cscope |
| 3413 |
fi |
| 3414 |
|
| 3415 |
|
| 3416 |
|
| 3417 |
|
| 3418 |
|
| 3419 |
|
| 3420 |
|
| 3421 |
|
| 3422 |
|
| 3423 |
AM_DEFAULT_VERBOSITY=0 |
| 3424 |
|
| 3425 |
|
| 3426 |
|
| 3427 |
|
| 3428 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 3429 |
printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 3430 |
# Check whether --enable-maintainer-mode was given. |
| 3431 |
if test ${enable_maintainer_mode+y} |
| 3432 |
then : |
| 3433 |
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 3434 |
else case e in #( |
| 3435 |
e) USE_MAINTAINER_MODE=no ;; |
| 3436 |
esac |
| 3437 |
fi |
| 3438 |
|
| 3439 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 3440 |
printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } |
| 3441 |
if test $USE_MAINTAINER_MODE = yes; then |
| 3442 |
MAINTAINER_MODE_TRUE= |
| 3443 |
MAINTAINER_MODE_FALSE='#' |
| 3444 |
else |
| 3445 |
MAINTAINER_MODE_TRUE='#' |
| 3446 |
MAINTAINER_MODE_FALSE= |
| 3447 |
fi |
| 3448 |
|
| 3449 |
MAINT=$MAINTAINER_MODE_TRUE |
| 3450 |
|
| 3451 |
|
| 3452 |
|
| 3453 |
|
| 3454 |
|
| 3455 |
|
| 3456 |
|
| 3457 |
|
| 3458 |
|
| 3459 |
|
| 3460 |
|
| 3461 |
|
| 3462 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 3463 |
if test -n "$ac_tool_prefix"; then |
| 3464 |
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 3465 |
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 3466 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3467 |
printf %s "checking for $ac_word... " >&6; } |
| 3468 |
if test ${ac_cv_path_PKG_CONFIG+y} |
| 3469 |
then : |
| 3470 |
printf %s "(cached) " >&6 |
| 3471 |
else case e in #( |
| 3472 |
e) case $PKG_CONFIG in |
| 3473 |
[\\/]* | ?:[\\/]*) |
| 3474 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 3475 |
;; |
| 3476 |
*) |
| 3477 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3478 |
for as_dir in $PATH |
| 3479 |
do |
| 3480 |
IFS=$as_save_IFS |
| 3481 |
case $as_dir in #((( |
| 3482 |
'') as_dir=./ ;; |
| 3483 |
*/) ;; |
| 3484 |
*) as_dir=$as_dir/ ;; |
| 3485 |
esac |
| 3486 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3487 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3488 |
ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 3489 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3490 |
break 2 |
| 3491 |
fi |
| 3492 |
done |
| 3493 |
done |
| 3494 |
IFS=$as_save_IFS |
| 3495 |
|
| 3496 |
;; |
| 3497 |
esac ;; |
| 3498 |
esac |
| 3499 |
fi |
| 3500 |
PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 3501 |
if test -n "$PKG_CONFIG"; then |
| 3502 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 3503 |
printf "%s\n" "$PKG_CONFIG" >&6; } |
| 3504 |
else |
| 3505 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3506 |
printf "%s\n" "no" >&6; } |
| 3507 |
fi |
| 3508 |
|
| 3509 |
|
| 3510 |
fi |
| 3511 |
if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 3512 |
ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 3513 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
| 3514 |
set dummy pkg-config; ac_word=$2 |
| 3515 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3516 |
printf %s "checking for $ac_word... " >&6; } |
| 3517 |
if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} |
| 3518 |
then : |
| 3519 |
printf %s "(cached) " >&6 |
| 3520 |
else case e in #( |
| 3521 |
e) case $ac_pt_PKG_CONFIG in |
| 3522 |
[\\/]* | ?:[\\/]*) |
| 3523 |
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 3524 |
;; |
| 3525 |
*) |
| 3526 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3527 |
for as_dir in $PATH |
| 3528 |
do |
| 3529 |
IFS=$as_save_IFS |
| 3530 |
case $as_dir in #((( |
| 3531 |
'') as_dir=./ ;; |
| 3532 |
*/) ;; |
| 3533 |
*) as_dir=$as_dir/ ;; |
| 3534 |
esac |
| 3535 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3536 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3537 |
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 3538 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3539 |
break 2 |
| 3540 |
fi |
| 3541 |
done |
| 3542 |
done |
| 3543 |
IFS=$as_save_IFS |
| 3544 |
|
| 3545 |
;; |
| 3546 |
esac ;; |
| 3547 |
esac |
| 3548 |
fi |
| 3549 |
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 3550 |
if test -n "$ac_pt_PKG_CONFIG"; then |
| 3551 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 3552 |
printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } |
| 3553 |
else |
| 3554 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3555 |
printf "%s\n" "no" >&6; } |
| 3556 |
fi |
| 3557 |
|
| 3558 |
if test "x$ac_pt_PKG_CONFIG" = x; then |
| 3559 |
PKG_CONFIG="" |
| 3560 |
else |
| 3561 |
case $cross_compiling:$ac_tool_warned in |
| 3562 |
yes:) |
| 3563 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3564 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3565 |
ac_tool_warned=yes ;; |
| 3566 |
esac |
| 3567 |
PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 3568 |
fi |
| 3569 |
else |
| 3570 |
PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 3571 |
fi |
| 3572 |
|
| 3573 |
fi |
| 3574 |
if test -n "$PKG_CONFIG"; then |
| 3575 |
_pkg_min_version=0.9.0 |
| 3576 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 3577 |
printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 3578 |
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 3579 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3580 |
printf "%s\n" "yes" >&6; } |
| 3581 |
else |
| 3582 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3583 |
printf "%s\n" "no" >&6; } |
| 3584 |
PKG_CONFIG="" |
| 3585 |
fi |
| 3586 |
fi |
| 3587 |
if test -z "$PKG_CONFIG"; then |
| 3588 |
as_fn_error $? "pkg-config not found" "$LINENO" 5 |
| 3589 |
fi |
| 3590 |
|
| 3591 |
|
| 3592 |
|
| 3593 |
|
| 3594 |
|
| 3595 |
|
| 3596 |
|
| 3597 |
|
| 3598 |
|
| 3599 |
|
| 3600 |
ac_ext=c |
| 3601 |
ac_cpp='$CPP $CPPFLAGS' |
| 3602 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3603 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3604 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3605 |
if test -n "$ac_tool_prefix"; then |
| 3606 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3607 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3608 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3609 |
printf %s "checking for $ac_word... " >&6; } |
| 3610 |
if test ${ac_cv_prog_CC+y} |
| 3611 |
then : |
| 3612 |
printf %s "(cached) " >&6 |
| 3613 |
else case e in #( |
| 3614 |
e) if test -n "$CC"; then |
| 3615 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3616 |
else |
| 3617 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3618 |
for as_dir in $PATH |
| 3619 |
do |
| 3620 |
IFS=$as_save_IFS |
| 3621 |
case $as_dir in #((( |
| 3622 |
'') as_dir=./ ;; |
| 3623 |
*/) ;; |
| 3624 |
*) as_dir=$as_dir/ ;; |
| 3625 |
esac |
| 3626 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3627 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3628 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3629 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3630 |
break 2 |
| 3631 |
fi |
| 3632 |
done |
| 3633 |
done |
| 3634 |
IFS=$as_save_IFS |
| 3635 |
|
| 3636 |
fi ;; |
| 3637 |
esac |
| 3638 |
fi |
| 3639 |
CC=$ac_cv_prog_CC |
| 3640 |
if test -n "$CC"; then |
| 3641 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3642 |
printf "%s\n" "$CC" >&6; } |
| 3643 |
else |
| 3644 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3645 |
printf "%s\n" "no" >&6; } |
| 3646 |
fi |
| 3647 |
|
| 3648 |
|
| 3649 |
fi |
| 3650 |
if test -z "$ac_cv_prog_CC"; then |
| 3651 |
ac_ct_CC=$CC |
| 3652 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 3653 |
set dummy gcc; ac_word=$2 |
| 3654 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3655 |
printf %s "checking for $ac_word... " >&6; } |
| 3656 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 3657 |
then : |
| 3658 |
printf %s "(cached) " >&6 |
| 3659 |
else case e in #( |
| 3660 |
e) if test -n "$ac_ct_CC"; then |
| 3661 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3662 |
else |
| 3663 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3664 |
for as_dir in $PATH |
| 3665 |
do |
| 3666 |
IFS=$as_save_IFS |
| 3667 |
case $as_dir in #((( |
| 3668 |
'') as_dir=./ ;; |
| 3669 |
*/) ;; |
| 3670 |
*) as_dir=$as_dir/ ;; |
| 3671 |
esac |
| 3672 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3673 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3674 |
ac_cv_prog_ac_ct_CC="gcc" |
| 3675 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3676 |
break 2 |
| 3677 |
fi |
| 3678 |
done |
| 3679 |
done |
| 3680 |
IFS=$as_save_IFS |
| 3681 |
|
| 3682 |
fi ;; |
| 3683 |
esac |
| 3684 |
fi |
| 3685 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3686 |
if test -n "$ac_ct_CC"; then |
| 3687 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3688 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 3689 |
else |
| 3690 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3691 |
printf "%s\n" "no" >&6; } |
| 3692 |
fi |
| 3693 |
|
| 3694 |
if test "x$ac_ct_CC" = x; then |
| 3695 |
CC="" |
| 3696 |
else |
| 3697 |
case $cross_compiling:$ac_tool_warned in |
| 3698 |
yes:) |
| 3699 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3700 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3701 |
ac_tool_warned=yes ;; |
| 3702 |
esac |
| 3703 |
CC=$ac_ct_CC |
| 3704 |
fi |
| 3705 |
else |
| 3706 |
CC="$ac_cv_prog_CC" |
| 3707 |
fi |
| 3708 |
|
| 3709 |
if test -z "$CC"; then |
| 3710 |
if test -n "$ac_tool_prefix"; then |
| 3711 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3712 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3713 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3714 |
printf %s "checking for $ac_word... " >&6; } |
| 3715 |
if test ${ac_cv_prog_CC+y} |
| 3716 |
then : |
| 3717 |
printf %s "(cached) " >&6 |
| 3718 |
else case e in #( |
| 3719 |
e) if test -n "$CC"; then |
| 3720 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3721 |
else |
| 3722 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3723 |
for as_dir in $PATH |
| 3724 |
do |
| 3725 |
IFS=$as_save_IFS |
| 3726 |
case $as_dir in #((( |
| 3727 |
'') as_dir=./ ;; |
| 3728 |
*/) ;; |
| 3729 |
*) as_dir=$as_dir/ ;; |
| 3730 |
esac |
| 3731 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3732 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3733 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3734 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3735 |
break 2 |
| 3736 |
fi |
| 3737 |
done |
| 3738 |
done |
| 3739 |
IFS=$as_save_IFS |
| 3740 |
|
| 3741 |
fi ;; |
| 3742 |
esac |
| 3743 |
fi |
| 3744 |
CC=$ac_cv_prog_CC |
| 3745 |
if test -n "$CC"; then |
| 3746 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3747 |
printf "%s\n" "$CC" >&6; } |
| 3748 |
else |
| 3749 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3750 |
printf "%s\n" "no" >&6; } |
| 3751 |
fi |
| 3752 |
|
| 3753 |
|
| 3754 |
fi |
| 3755 |
fi |
| 3756 |
if test -z "$CC"; then |
| 3757 |
# Extract the first word of "cc", so it can be a program name with args. |
| 3758 |
set dummy cc; ac_word=$2 |
| 3759 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3760 |
printf %s "checking for $ac_word... " >&6; } |
| 3761 |
if test ${ac_cv_prog_CC+y} |
| 3762 |
then : |
| 3763 |
printf %s "(cached) " >&6 |
| 3764 |
else case e in #( |
| 3765 |
e) if test -n "$CC"; then |
| 3766 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3767 |
else |
| 3768 |
ac_prog_rejected=no |
| 3769 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3770 |
for as_dir in $PATH |
| 3771 |
do |
| 3772 |
IFS=$as_save_IFS |
| 3773 |
case $as_dir in #((( |
| 3774 |
'') as_dir=./ ;; |
| 3775 |
*/) ;; |
| 3776 |
*) as_dir=$as_dir/ ;; |
| 3777 |
esac |
| 3778 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3779 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3780 |
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3781 |
ac_prog_rejected=yes |
| 3782 |
continue |
| 3783 |
fi |
| 3784 |
ac_cv_prog_CC="cc" |
| 3785 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3786 |
break 2 |
| 3787 |
fi |
| 3788 |
done |
| 3789 |
done |
| 3790 |
IFS=$as_save_IFS |
| 3791 |
|
| 3792 |
if test $ac_prog_rejected = yes; then |
| 3793 |
# We found a bogon in the path, so make sure we never use it. |
| 3794 |
set dummy $ac_cv_prog_CC |
| 3795 |
shift |
| 3796 |
if test $# != 0; then |
| 3797 |
# We chose a different compiler from the bogus one. |
| 3798 |
# However, it has the same basename, so the bogon will be chosen |
| 3799 |
# first if we set CC to just the basename; use the full file name. |
| 3800 |
shift |
| 3801 |
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 3802 |
fi |
| 3803 |
fi |
| 3804 |
fi ;; |
| 3805 |
esac |
| 3806 |
fi |
| 3807 |
CC=$ac_cv_prog_CC |
| 3808 |
if test -n "$CC"; then |
| 3809 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3810 |
printf "%s\n" "$CC" >&6; } |
| 3811 |
else |
| 3812 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3813 |
printf "%s\n" "no" >&6; } |
| 3814 |
fi |
| 3815 |
|
| 3816 |
|
| 3817 |
fi |
| 3818 |
if test -z "$CC"; then |
| 3819 |
if test -n "$ac_tool_prefix"; then |
| 3820 |
for ac_prog in cl.exe |
| 3821 |
do |
| 3822 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3823 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3824 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3825 |
printf %s "checking for $ac_word... " >&6; } |
| 3826 |
if test ${ac_cv_prog_CC+y} |
| 3827 |
then : |
| 3828 |
printf %s "(cached) " >&6 |
| 3829 |
else case e in #( |
| 3830 |
e) if test -n "$CC"; then |
| 3831 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3832 |
else |
| 3833 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3834 |
for as_dir in $PATH |
| 3835 |
do |
| 3836 |
IFS=$as_save_IFS |
| 3837 |
case $as_dir in #((( |
| 3838 |
'') as_dir=./ ;; |
| 3839 |
*/) ;; |
| 3840 |
*) as_dir=$as_dir/ ;; |
| 3841 |
esac |
| 3842 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3843 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3844 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3845 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3846 |
break 2 |
| 3847 |
fi |
| 3848 |
done |
| 3849 |
done |
| 3850 |
IFS=$as_save_IFS |
| 3851 |
|
| 3852 |
fi ;; |
| 3853 |
esac |
| 3854 |
fi |
| 3855 |
CC=$ac_cv_prog_CC |
| 3856 |
if test -n "$CC"; then |
| 3857 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3858 |
printf "%s\n" "$CC" >&6; } |
| 3859 |
else |
| 3860 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3861 |
printf "%s\n" "no" >&6; } |
| 3862 |
fi |
| 3863 |
|
| 3864 |
|
| 3865 |
test -n "$CC" && break |
| 3866 |
done |
| 3867 |
fi |
| 3868 |
if test -z "$CC"; then |
| 3869 |
ac_ct_CC=$CC |
| 3870 |
for ac_prog in cl.exe |
| 3871 |
do |
| 3872 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3873 |
set dummy $ac_prog; ac_word=$2 |
| 3874 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3875 |
printf %s "checking for $ac_word... " >&6; } |
| 3876 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 3877 |
then : |
| 3878 |
printf %s "(cached) " >&6 |
| 3879 |
else case e in #( |
| 3880 |
e) if test -n "$ac_ct_CC"; then |
| 3881 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3882 |
else |
| 3883 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3884 |
for as_dir in $PATH |
| 3885 |
do |
| 3886 |
IFS=$as_save_IFS |
| 3887 |
case $as_dir in #((( |
| 3888 |
'') as_dir=./ ;; |
| 3889 |
*/) ;; |
| 3890 |
*) as_dir=$as_dir/ ;; |
| 3891 |
esac |
| 3892 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3893 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3894 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3895 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3896 |
break 2 |
| 3897 |
fi |
| 3898 |
done |
| 3899 |
done |
| 3900 |
IFS=$as_save_IFS |
| 3901 |
|
| 3902 |
fi ;; |
| 3903 |
esac |
| 3904 |
fi |
| 3905 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3906 |
if test -n "$ac_ct_CC"; then |
| 3907 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3908 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 3909 |
else |
| 3910 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3911 |
printf "%s\n" "no" >&6; } |
| 3912 |
fi |
| 3913 |
|
| 3914 |
|
| 3915 |
test -n "$ac_ct_CC" && break |
| 3916 |
done |
| 3917 |
|
| 3918 |
if test "x$ac_ct_CC" = x; then |
| 3919 |
CC="" |
| 3920 |
else |
| 3921 |
case $cross_compiling:$ac_tool_warned in |
| 3922 |
yes:) |
| 3923 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3924 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3925 |
ac_tool_warned=yes ;; |
| 3926 |
esac |
| 3927 |
CC=$ac_ct_CC |
| 3928 |
fi |
| 3929 |
fi |
| 3930 |
|
| 3931 |
fi |
| 3932 |
if test -z "$CC"; then |
| 3933 |
if test -n "$ac_tool_prefix"; then |
| 3934 |
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 3935 |
set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 3936 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3937 |
printf %s "checking for $ac_word... " >&6; } |
| 3938 |
if test ${ac_cv_prog_CC+y} |
| 3939 |
then : |
| 3940 |
printf %s "(cached) " >&6 |
| 3941 |
else case e in #( |
| 3942 |
e) if test -n "$CC"; then |
| 3943 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3944 |
else |
| 3945 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3946 |
for as_dir in $PATH |
| 3947 |
do |
| 3948 |
IFS=$as_save_IFS |
| 3949 |
case $as_dir in #((( |
| 3950 |
'') as_dir=./ ;; |
| 3951 |
*/) ;; |
| 3952 |
*) as_dir=$as_dir/ ;; |
| 3953 |
esac |
| 3954 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3955 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3956 |
ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 3957 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3958 |
break 2 |
| 3959 |
fi |
| 3960 |
done |
| 3961 |
done |
| 3962 |
IFS=$as_save_IFS |
| 3963 |
|
| 3964 |
fi ;; |
| 3965 |
esac |
| 3966 |
fi |
| 3967 |
CC=$ac_cv_prog_CC |
| 3968 |
if test -n "$CC"; then |
| 3969 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3970 |
printf "%s\n" "$CC" >&6; } |
| 3971 |
else |
| 3972 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3973 |
printf "%s\n" "no" >&6; } |
| 3974 |
fi |
| 3975 |
|
| 3976 |
|
| 3977 |
fi |
| 3978 |
if test -z "$ac_cv_prog_CC"; then |
| 3979 |
ac_ct_CC=$CC |
| 3980 |
# Extract the first word of "clang", so it can be a program name with args. |
| 3981 |
set dummy clang; ac_word=$2 |
| 3982 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3983 |
printf %s "checking for $ac_word... " >&6; } |
| 3984 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 3985 |
then : |
| 3986 |
printf %s "(cached) " >&6 |
| 3987 |
else case e in #( |
| 3988 |
e) if test -n "$ac_ct_CC"; then |
| 3989 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3990 |
else |
| 3991 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3992 |
for as_dir in $PATH |
| 3993 |
do |
| 3994 |
IFS=$as_save_IFS |
| 3995 |
case $as_dir in #((( |
| 3996 |
'') as_dir=./ ;; |
| 3997 |
*/) ;; |
| 3998 |
*) as_dir=$as_dir/ ;; |
| 3999 |
esac |
| 4000 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4001 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4002 |
ac_cv_prog_ac_ct_CC="clang" |
| 4003 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4004 |
break 2 |
| 4005 |
fi |
| 4006 |
done |
| 4007 |
done |
| 4008 |
IFS=$as_save_IFS |
| 4009 |
|
| 4010 |
fi ;; |
| 4011 |
esac |
| 4012 |
fi |
| 4013 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4014 |
if test -n "$ac_ct_CC"; then |
| 4015 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4016 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 4017 |
else |
| 4018 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4019 |
printf "%s\n" "no" >&6; } |
| 4020 |
fi |
| 4021 |
|
| 4022 |
if test "x$ac_ct_CC" = x; then |
| 4023 |
CC="" |
| 4024 |
else |
| 4025 |
case $cross_compiling:$ac_tool_warned in |
| 4026 |
yes:) |
| 4027 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4028 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4029 |
ac_tool_warned=yes ;; |
| 4030 |
esac |
| 4031 |
CC=$ac_ct_CC |
| 4032 |
fi |
| 4033 |
else |
| 4034 |
CC="$ac_cv_prog_CC" |
| 4035 |
fi |
| 4036 |
|
| 4037 |
fi |
| 4038 |
|
| 4039 |
|
| 4040 |
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4041 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4042 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4043 |
See 'config.log' for more details" "$LINENO" 5; } |
| 4044 |
|
| 4045 |
# Provide some information about the compiler. |
| 4046 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4047 |
set X $ac_compile |
| 4048 |
ac_compiler=$2 |
| 4049 |
for ac_option in --version -v -V -qversion -version; do |
| 4050 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 4051 |
case "(($ac_try" in |
| 4052 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4053 |
*) ac_try_echo=$ac_try;; |
| 4054 |
esac |
| 4055 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4056 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4057 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4058 |
ac_status=$? |
| 4059 |
if test -s conftest.err; then |
| 4060 |
sed '10a\ |
| 4061 |
... rest of stderr output deleted ... |
| 4062 |
10q' conftest.err >conftest.er1 |
| 4063 |
cat conftest.er1 >&5 |
| 4064 |
fi |
| 4065 |
rm -f conftest.er1 conftest.err |
| 4066 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4067 |
test $ac_status = 0; } |
| 4068 |
done |
| 4069 |
|
| 4070 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4071 |
/* end confdefs.h. */ |
| 4072 |
|
| 4073 |
int |
| 4074 |
main (void) |
| 4075 |
{ |
| 4076 |
|
| 4077 |
; |
| 4078 |
return 0; |
| 4079 |
} |
| 4080 |
_ACEOF |
| 4081 |
ac_clean_files_save=$ac_clean_files |
| 4082 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 4083 |
# Try to create an executable without -o first, disregard a.out. |
| 4084 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 4085 |
# of exeext. |
| 4086 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4087 |
printf %s "checking whether the C compiler works... " >&6; } |
| 4088 |
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4089 |
|
| 4090 |
# The possible output files: |
| 4091 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4092 |
|
| 4093 |
ac_rmfiles= |
| 4094 |
for ac_file in $ac_files |
| 4095 |
do |
| 4096 |
case $ac_file in |
| 4097 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4098 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4099 |
esac |
| 4100 |
done |
| 4101 |
rm -f $ac_rmfiles |
| 4102 |
|
| 4103 |
if { { ac_try="$ac_link_default" |
| 4104 |
case "(($ac_try" in |
| 4105 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4106 |
*) ac_try_echo=$ac_try;; |
| 4107 |
esac |
| 4108 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4109 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4110 |
(eval "$ac_link_default") 2>&5 |
| 4111 |
ac_status=$? |
| 4112 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4113 |
test $ac_status = 0; } |
| 4114 |
then : |
| 4115 |
# Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. |
| 4116 |
# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' |
| 4117 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4118 |
# so that the user can short-circuit this test for compilers unknown to |
| 4119 |
# Autoconf. |
| 4120 |
for ac_file in $ac_files '' |
| 4121 |
do |
| 4122 |
test -f "$ac_file" || continue |
| 4123 |
case $ac_file in |
| 4124 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4125 |
;; |
| 4126 |
[ab].out ) |
| 4127 |
# We found the default executable, but exeext='' is most |
| 4128 |
# certainly right. |
| 4129 |
break;; |
| 4130 |
*.* ) |
| 4131 |
if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 4132 |
then :; else |
| 4133 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4134 |
fi |
| 4135 |
# We set ac_cv_exeext here because the later test for it is not |
| 4136 |
# safe: cross compilers may not add the suffix if given an '-o' |
| 4137 |
# argument, so we may need to know it at that point already. |
| 4138 |
# Even if this section looks crufty: it has the advantage of |
| 4139 |
# actually working. |
| 4140 |
break;; |
| 4141 |
* ) |
| 4142 |
break;; |
| 4143 |
esac |
| 4144 |
done |
| 4145 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4146 |
|
| 4147 |
else case e in #( |
| 4148 |
e) ac_file='' ;; |
| 4149 |
esac |
| 4150 |
fi |
| 4151 |
if test -z "$ac_file" |
| 4152 |
then : |
| 4153 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4154 |
printf "%s\n" "no" >&6; } |
| 4155 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 4156 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4157 |
|
| 4158 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4159 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4160 |
as_fn_error 77 "C compiler cannot create executables |
| 4161 |
See 'config.log' for more details" "$LINENO" 5; } |
| 4162 |
else case e in #( |
| 4163 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4164 |
printf "%s\n" "yes" >&6; } ;; |
| 4165 |
esac |
| 4166 |
fi |
| 4167 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4168 |
printf %s "checking for C compiler default output file name... " >&6; } |
| 4169 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4170 |
printf "%s\n" "$ac_file" >&6; } |
| 4171 |
ac_exeext=$ac_cv_exeext |
| 4172 |
|
| 4173 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 4174 |
ac_clean_files=$ac_clean_files_save |
| 4175 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4176 |
printf %s "checking for suffix of executables... " >&6; } |
| 4177 |
if { { ac_try="$ac_link" |
| 4178 |
case "(($ac_try" in |
| 4179 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4180 |
*) ac_try_echo=$ac_try;; |
| 4181 |
esac |
| 4182 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4183 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4184 |
(eval "$ac_link") 2>&5 |
| 4185 |
ac_status=$? |
| 4186 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4187 |
test $ac_status = 0; } |
| 4188 |
then : |
| 4189 |
# If both 'conftest.exe' and 'conftest' are 'present' (well, observable) |
| 4190 |
# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will |
| 4191 |
# work properly (i.e., refer to 'conftest.exe'), while it won't with |
| 4192 |
# 'rm'. |
| 4193 |
for ac_file in conftest.exe conftest conftest.*; do |
| 4194 |
test -f "$ac_file" || continue |
| 4195 |
case $ac_file in |
| 4196 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4197 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4198 |
break;; |
| 4199 |
* ) break;; |
| 4200 |
esac |
| 4201 |
done |
| 4202 |
else case e in #( |
| 4203 |
e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4204 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4205 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 4206 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 4207 |
esac |
| 4208 |
fi |
| 4209 |
rm -f conftest conftest$ac_cv_exeext |
| 4210 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4211 |
printf "%s\n" "$ac_cv_exeext" >&6; } |
| 4212 |
|
| 4213 |
rm -f conftest.$ac_ext |
| 4214 |
EXEEXT=$ac_cv_exeext |
| 4215 |
ac_exeext=$EXEEXT |
| 4216 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4217 |
/* end confdefs.h. */ |
| 4218 |
#include <stdio.h> |
| 4219 |
int |
| 4220 |
main (void) |
| 4221 |
{ |
| 4222 |
FILE *f = fopen ("conftest.out", "w"); |
| 4223 |
if (!f) |
| 4224 |
return 1; |
| 4225 |
return ferror (f) || fclose (f) != 0; |
| 4226 |
|
| 4227 |
; |
| 4228 |
return 0; |
| 4229 |
} |
| 4230 |
_ACEOF |
| 4231 |
ac_clean_files="$ac_clean_files conftest.out" |
| 4232 |
# Check that the compiler produces executables we can run. If not, either |
| 4233 |
# the compiler is broken, or we cross compile. |
| 4234 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4235 |
printf %s "checking whether we are cross compiling... " >&6; } |
| 4236 |
if test "$cross_compiling" != yes; then |
| 4237 |
{ { ac_try="$ac_link" |
| 4238 |
case "(($ac_try" in |
| 4239 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4240 |
*) ac_try_echo=$ac_try;; |
| 4241 |
esac |
| 4242 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4243 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4244 |
(eval "$ac_link") 2>&5 |
| 4245 |
ac_status=$? |
| 4246 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4247 |
test $ac_status = 0; } |
| 4248 |
if { ac_try='./conftest$ac_cv_exeext' |
| 4249 |
{ { case "(($ac_try" in |
| 4250 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4251 |
*) ac_try_echo=$ac_try;; |
| 4252 |
esac |
| 4253 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4254 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4255 |
(eval "$ac_try") 2>&5 |
| 4256 |
ac_status=$? |
| 4257 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4258 |
test $ac_status = 0; }; }; then |
| 4259 |
cross_compiling=no |
| 4260 |
else |
| 4261 |
if test "$cross_compiling" = maybe; then |
| 4262 |
cross_compiling=yes |
| 4263 |
else |
| 4264 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4265 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4266 |
as_fn_error 77 "cannot run C compiled programs. |
| 4267 |
If you meant to cross compile, use '--host'. |
| 4268 |
See 'config.log' for more details" "$LINENO" 5; } |
| 4269 |
fi |
| 4270 |
fi |
| 4271 |
fi |
| 4272 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4273 |
printf "%s\n" "$cross_compiling" >&6; } |
| 4274 |
|
| 4275 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext \ |
| 4276 |
conftest.o conftest.obj conftest.out |
| 4277 |
ac_clean_files=$ac_clean_files_save |
| 4278 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4279 |
printf %s "checking for suffix of object files... " >&6; } |
| 4280 |
if test ${ac_cv_objext+y} |
| 4281 |
then : |
| 4282 |
printf %s "(cached) " >&6 |
| 4283 |
else case e in #( |
| 4284 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4285 |
/* end confdefs.h. */ |
| 4286 |
|
| 4287 |
int |
| 4288 |
main (void) |
| 4289 |
{ |
| 4290 |
|
| 4291 |
; |
| 4292 |
return 0; |
| 4293 |
} |
| 4294 |
_ACEOF |
| 4295 |
rm -f conftest.o conftest.obj |
| 4296 |
if { { ac_try="$ac_compile" |
| 4297 |
case "(($ac_try" in |
| 4298 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4299 |
*) ac_try_echo=$ac_try;; |
| 4300 |
esac |
| 4301 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4302 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4303 |
(eval "$ac_compile") 2>&5 |
| 4304 |
ac_status=$? |
| 4305 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4306 |
test $ac_status = 0; } |
| 4307 |
then : |
| 4308 |
for ac_file in conftest.o conftest.obj conftest.*; do |
| 4309 |
test -f "$ac_file" || continue; |
| 4310 |
case $ac_file in |
| 4311 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4312 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4313 |
break;; |
| 4314 |
esac |
| 4315 |
done |
| 4316 |
else case e in #( |
| 4317 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 4318 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4319 |
|
| 4320 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4321 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4322 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 4323 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 4324 |
esac |
| 4325 |
fi |
| 4326 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; |
| 4327 |
esac |
| 4328 |
fi |
| 4329 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4330 |
printf "%s\n" "$ac_cv_objext" >&6; } |
| 4331 |
OBJEXT=$ac_cv_objext |
| 4332 |
ac_objext=$OBJEXT |
| 4333 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 4334 |
printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 4335 |
if test ${ac_cv_c_compiler_gnu+y} |
| 4336 |
then : |
| 4337 |
printf %s "(cached) " >&6 |
| 4338 |
else case e in #( |
| 4339 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4340 |
/* end confdefs.h. */ |
| 4341 |
|
| 4342 |
int |
| 4343 |
main (void) |
| 4344 |
{ |
| 4345 |
#ifndef __GNUC__ |
| 4346 |
choke me |
| 4347 |
#endif |
| 4348 |
|
| 4349 |
; |
| 4350 |
return 0; |
| 4351 |
} |
| 4352 |
_ACEOF |
| 4353 |
if ac_fn_c_try_compile "$LINENO" |
| 4354 |
then : |
| 4355 |
ac_compiler_gnu=yes |
| 4356 |
else case e in #( |
| 4357 |
e) ac_compiler_gnu=no ;; |
| 4358 |
esac |
| 4359 |
fi |
| 4360 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4361 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4362 |
;; |
| 4363 |
esac |
| 4364 |
fi |
| 4365 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4366 |
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 4367 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4368 |
|
| 4369 |
if test $ac_compiler_gnu = yes; then |
| 4370 |
GCC=yes |
| 4371 |
else |
| 4372 |
GCC= |
| 4373 |
fi |
| 4374 |
ac_test_CFLAGS=${CFLAGS+y} |
| 4375 |
ac_save_CFLAGS=$CFLAGS |
| 4376 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4377 |
printf %s "checking whether $CC accepts -g... " >&6; } |
| 4378 |
if test ${ac_cv_prog_cc_g+y} |
| 4379 |
then : |
| 4380 |
printf %s "(cached) " >&6 |
| 4381 |
else case e in #( |
| 4382 |
e) ac_save_c_werror_flag=$ac_c_werror_flag |
| 4383 |
ac_c_werror_flag=yes |
| 4384 |
ac_cv_prog_cc_g=no |
| 4385 |
CFLAGS="-g" |
| 4386 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4387 |
/* end confdefs.h. */ |
| 4388 |
|
| 4389 |
int |
| 4390 |
main (void) |
| 4391 |
{ |
| 4392 |
|
| 4393 |
; |
| 4394 |
return 0; |
| 4395 |
} |
| 4396 |
_ACEOF |
| 4397 |
if ac_fn_c_try_compile "$LINENO" |
| 4398 |
then : |
| 4399 |
ac_cv_prog_cc_g=yes |
| 4400 |
else case e in #( |
| 4401 |
e) CFLAGS="" |
| 4402 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4403 |
/* end confdefs.h. */ |
| 4404 |
|
| 4405 |
int |
| 4406 |
main (void) |
| 4407 |
{ |
| 4408 |
|
| 4409 |
; |
| 4410 |
return 0; |
| 4411 |
} |
| 4412 |
_ACEOF |
| 4413 |
if ac_fn_c_try_compile "$LINENO" |
| 4414 |
then : |
| 4415 |
|
| 4416 |
else case e in #( |
| 4417 |
e) ac_c_werror_flag=$ac_save_c_werror_flag |
| 4418 |
CFLAGS="-g" |
| 4419 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4420 |
/* end confdefs.h. */ |
| 4421 |
|
| 4422 |
int |
| 4423 |
main (void) |
| 4424 |
{ |
| 4425 |
|
| 4426 |
; |
| 4427 |
return 0; |
| 4428 |
} |
| 4429 |
_ACEOF |
| 4430 |
if ac_fn_c_try_compile "$LINENO" |
| 4431 |
then : |
| 4432 |
ac_cv_prog_cc_g=yes |
| 4433 |
fi |
| 4434 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 4435 |
esac |
| 4436 |
fi |
| 4437 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 4438 |
esac |
| 4439 |
fi |
| 4440 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4441 |
ac_c_werror_flag=$ac_save_c_werror_flag ;; |
| 4442 |
esac |
| 4443 |
fi |
| 4444 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4445 |
printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 4446 |
if test $ac_test_CFLAGS; then |
| 4447 |
CFLAGS=$ac_save_CFLAGS |
| 4448 |
elif test $ac_cv_prog_cc_g = yes; then |
| 4449 |
if test "$GCC" = yes; then |
| 4450 |
CFLAGS="-g -O2" |
| 4451 |
else |
| 4452 |
CFLAGS="-g" |
| 4453 |
fi |
| 4454 |
else |
| 4455 |
if test "$GCC" = yes; then |
| 4456 |
CFLAGS="-O2" |
| 4457 |
else |
| 4458 |
CFLAGS= |
| 4459 |
fi |
| 4460 |
fi |
| 4461 |
ac_prog_cc_stdc=no |
| 4462 |
if test x$ac_prog_cc_stdc = xno |
| 4463 |
then : |
| 4464 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 4465 |
printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 4466 |
if test ${ac_cv_prog_cc_c11+y} |
| 4467 |
then : |
| 4468 |
printf %s "(cached) " >&6 |
| 4469 |
else case e in #( |
| 4470 |
e) ac_cv_prog_cc_c11=no |
| 4471 |
ac_save_CC=$CC |
| 4472 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4473 |
/* end confdefs.h. */ |
| 4474 |
$ac_c_conftest_c11_program |
| 4475 |
_ACEOF |
| 4476 |
for ac_arg in '' -std=gnu11 |
| 4477 |
do |
| 4478 |
CC="$ac_save_CC $ac_arg" |
| 4479 |
if ac_fn_c_try_compile "$LINENO" |
| 4480 |
then : |
| 4481 |
ac_cv_prog_cc_c11=$ac_arg |
| 4482 |
fi |
| 4483 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4484 |
test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 4485 |
done |
| 4486 |
rm -f conftest.$ac_ext |
| 4487 |
CC=$ac_save_CC ;; |
| 4488 |
esac |
| 4489 |
fi |
| 4490 |
|
| 4491 |
if test "x$ac_cv_prog_cc_c11" = xno |
| 4492 |
then : |
| 4493 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4494 |
printf "%s\n" "unsupported" >&6; } |
| 4495 |
else case e in #( |
| 4496 |
e) if test "x$ac_cv_prog_cc_c11" = x |
| 4497 |
then : |
| 4498 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4499 |
printf "%s\n" "none needed" >&6; } |
| 4500 |
else case e in #( |
| 4501 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 4502 |
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 4503 |
CC="$CC $ac_cv_prog_cc_c11" ;; |
| 4504 |
esac |
| 4505 |
fi |
| 4506 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 4507 |
ac_prog_cc_stdc=c11 ;; |
| 4508 |
esac |
| 4509 |
fi |
| 4510 |
fi |
| 4511 |
if test x$ac_prog_cc_stdc = xno |
| 4512 |
then : |
| 4513 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 4514 |
printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 4515 |
if test ${ac_cv_prog_cc_c99+y} |
| 4516 |
then : |
| 4517 |
printf %s "(cached) " >&6 |
| 4518 |
else case e in #( |
| 4519 |
e) ac_cv_prog_cc_c99=no |
| 4520 |
ac_save_CC=$CC |
| 4521 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4522 |
/* end confdefs.h. */ |
| 4523 |
$ac_c_conftest_c99_program |
| 4524 |
_ACEOF |
| 4525 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 4526 |
do |
| 4527 |
CC="$ac_save_CC $ac_arg" |
| 4528 |
if ac_fn_c_try_compile "$LINENO" |
| 4529 |
then : |
| 4530 |
ac_cv_prog_cc_c99=$ac_arg |
| 4531 |
fi |
| 4532 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4533 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 4534 |
done |
| 4535 |
rm -f conftest.$ac_ext |
| 4536 |
CC=$ac_save_CC ;; |
| 4537 |
esac |
| 4538 |
fi |
| 4539 |
|
| 4540 |
if test "x$ac_cv_prog_cc_c99" = xno |
| 4541 |
then : |
| 4542 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4543 |
printf "%s\n" "unsupported" >&6; } |
| 4544 |
else case e in #( |
| 4545 |
e) if test "x$ac_cv_prog_cc_c99" = x |
| 4546 |
then : |
| 4547 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4548 |
printf "%s\n" "none needed" >&6; } |
| 4549 |
else case e in #( |
| 4550 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 4551 |
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 4552 |
CC="$CC $ac_cv_prog_cc_c99" ;; |
| 4553 |
esac |
| 4554 |
fi |
| 4555 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 4556 |
ac_prog_cc_stdc=c99 ;; |
| 4557 |
esac |
| 4558 |
fi |
| 4559 |
fi |
| 4560 |
if test x$ac_prog_cc_stdc = xno |
| 4561 |
then : |
| 4562 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 4563 |
printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 4564 |
if test ${ac_cv_prog_cc_c89+y} |
| 4565 |
then : |
| 4566 |
printf %s "(cached) " >&6 |
| 4567 |
else case e in #( |
| 4568 |
e) ac_cv_prog_cc_c89=no |
| 4569 |
ac_save_CC=$CC |
| 4570 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4571 |
/* end confdefs.h. */ |
| 4572 |
$ac_c_conftest_c89_program |
| 4573 |
_ACEOF |
| 4574 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4575 |
do |
| 4576 |
CC="$ac_save_CC $ac_arg" |
| 4577 |
if ac_fn_c_try_compile "$LINENO" |
| 4578 |
then : |
| 4579 |
ac_cv_prog_cc_c89=$ac_arg |
| 4580 |
fi |
| 4581 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4582 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4583 |
done |
| 4584 |
rm -f conftest.$ac_ext |
| 4585 |
CC=$ac_save_CC ;; |
| 4586 |
esac |
| 4587 |
fi |
| 4588 |
|
| 4589 |
if test "x$ac_cv_prog_cc_c89" = xno |
| 4590 |
then : |
| 4591 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4592 |
printf "%s\n" "unsupported" >&6; } |
| 4593 |
else case e in #( |
| 4594 |
e) if test "x$ac_cv_prog_cc_c89" = x |
| 4595 |
then : |
| 4596 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4597 |
printf "%s\n" "none needed" >&6; } |
| 4598 |
else case e in #( |
| 4599 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4600 |
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 4601 |
CC="$CC $ac_cv_prog_cc_c89" ;; |
| 4602 |
esac |
| 4603 |
fi |
| 4604 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 4605 |
ac_prog_cc_stdc=c89 ;; |
| 4606 |
esac |
| 4607 |
fi |
| 4608 |
fi |
| 4609 |
|
| 4610 |
ac_ext=c |
| 4611 |
ac_cpp='$CPP $CPPFLAGS' |
| 4612 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4613 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4614 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4615 |
|
| 4616 |
|
| 4617 |
ac_ext=c |
| 4618 |
ac_cpp='$CPP $CPPFLAGS' |
| 4619 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4620 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4621 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4622 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 4623 |
printf %s "checking whether $CC understands -c and -o together... " >&6; } |
| 4624 |
if test ${am_cv_prog_cc_c_o+y} |
| 4625 |
then : |
| 4626 |
printf %s "(cached) " >&6 |
| 4627 |
else case e in #( |
| 4628 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4629 |
/* end confdefs.h. */ |
| 4630 |
|
| 4631 |
int |
| 4632 |
main (void) |
| 4633 |
{ |
| 4634 |
|
| 4635 |
; |
| 4636 |
return 0; |
| 4637 |
} |
| 4638 |
_ACEOF |
| 4639 |
# Make sure it works both with $CC and with simple cc. |
| 4640 |
# Following AC_PROG_CC_C_O, we do the test twice because some |
| 4641 |
# compilers refuse to overwrite an existing .o file with -o, |
| 4642 |
# though they will create one. |
| 4643 |
am_cv_prog_cc_c_o=yes |
| 4644 |
for am_i in 1 2; do |
| 4645 |
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 4646 |
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 4647 |
ac_status=$? |
| 4648 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4649 |
(exit $ac_status); } \ |
| 4650 |
&& test -f conftest2.$ac_objext; then |
| 4651 |
: OK |
| 4652 |
else |
| 4653 |
am_cv_prog_cc_c_o=no |
| 4654 |
break |
| 4655 |
fi |
| 4656 |
done |
| 4657 |
# aligned with autoconf, so not including core; see bug#72225. |
| 4658 |
rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ |
| 4659 |
conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ |
| 4660 |
conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM |
| 4661 |
unset am_i ;; |
| 4662 |
esac |
| 4663 |
fi |
| 4664 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 4665 |
printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } |
| 4666 |
if test "$am_cv_prog_cc_c_o" != yes; then |
| 4667 |
# Losing compiler, so override with the script. |
| 4668 |
# FIXME: It is wrong to rewrite CC. |
| 4669 |
# But if we don't then we get into trouble of one sort or another. |
| 4670 |
# A longer-term fix would be to have automake use am__CC in this case, |
| 4671 |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 4672 |
CC="$am_aux_dir/compile $CC" |
| 4673 |
fi |
| 4674 |
ac_ext=c |
| 4675 |
ac_cpp='$CPP $CPPFLAGS' |
| 4676 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4677 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4678 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4679 |
|
| 4680 |
DEPDIR="${am__leading_dot}deps" |
| 4681 |
|
| 4682 |
ac_config_commands="$ac_config_commands depfiles" |
| 4683 |
|
| 4684 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
| 4685 |
printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } |
| 4686 |
cat > confinc.mk << 'END' |
| 4687 |
am__doit: |
| 4688 |
@echo this is the am__doit target >confinc.out |
| 4689 |
.PHONY: am__doit |
| 4690 |
END |
| 4691 |
am__include="#" |
| 4692 |
am__quote= |
| 4693 |
# BSD make does it like this. |
| 4694 |
echo '.include "confinc.mk" # ignored' > confmf.BSD |
| 4695 |
# Other make implementations (GNU, Solaris 10, AIX) do it like this. |
| 4696 |
echo 'include confinc.mk # ignored' > confmf.GNU |
| 4697 |
_am_result=no |
| 4698 |
for s in GNU BSD; do |
| 4699 |
{ echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 |
| 4700 |
(${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 |
| 4701 |
ac_status=$? |
| 4702 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4703 |
(exit $ac_status); } |
| 4704 |
case $?:`cat confinc.out 2>/dev/null` in #( |
| 4705 |
'0:this is the am__doit target') : |
| 4706 |
case $s in #( |
| 4707 |
BSD) : |
| 4708 |
am__include='.include' am__quote='"' ;; #( |
| 4709 |
*) : |
| 4710 |
am__include='include' am__quote='' ;; |
| 4711 |
esac ;; #( |
| 4712 |
*) : |
| 4713 |
;; |
| 4714 |
esac |
| 4715 |
if test "$am__include" != "#"; then |
| 4716 |
_am_result="yes ($s style)" |
| 4717 |
break |
| 4718 |
fi |
| 4719 |
done |
| 4720 |
rm -f confinc.* confmf.* |
| 4721 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
| 4722 |
printf "%s\n" "${_am_result}" >&6; } |
| 4723 |
|
| 4724 |
# Check whether --enable-dependency-tracking was given. |
| 4725 |
if test ${enable_dependency_tracking+y} |
| 4726 |
then : |
| 4727 |
enableval=$enable_dependency_tracking; |
| 4728 |
fi |
| 4729 |
|
| 4730 |
if test "x$enable_dependency_tracking" != xno; then |
| 4731 |
am_depcomp="$ac_aux_dir/depcomp" |
| 4732 |
AMDEPBACKSLASH='\' |
| 4733 |
am__nodep='_no' |
| 4734 |
fi |
| 4735 |
if test "x$enable_dependency_tracking" != xno; then |
| 4736 |
AMDEP_TRUE= |
| 4737 |
AMDEP_FALSE='#' |
| 4738 |
else |
| 4739 |
AMDEP_TRUE='#' |
| 4740 |
AMDEP_FALSE= |
| 4741 |
fi |
| 4742 |
|
| 4743 |
|
| 4744 |
|
| 4745 |
depcc="$CC" am_compiler_list= |
| 4746 |
|
| 4747 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4748 |
printf %s "checking dependency style of $depcc... " >&6; } |
| 4749 |
if test ${am_cv_CC_dependencies_compiler_type+y} |
| 4750 |
then : |
| 4751 |
printf %s "(cached) " >&6 |
| 4752 |
else case e in #( |
| 4753 |
e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4754 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 4755 |
# making bogus files that we don't know about and never remove. For |
| 4756 |
# instance it was reported that on HP-UX the gcc test will end up |
| 4757 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
| 4758 |
# in D". |
| 4759 |
rm -rf conftest.dir |
| 4760 |
mkdir conftest.dir |
| 4761 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 4762 |
# using a relative directory. |
| 4763 |
cp "$am_depcomp" conftest.dir |
| 4764 |
cd conftest.dir |
| 4765 |
# We will build objects and dependencies in a subdirectory because |
| 4766 |
# it helps to detect inapplicable dependency modes. For instance |
| 4767 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 4768 |
# side effect of compilation, but ICC will put the dependencies in |
| 4769 |
# the current directory while Tru64 will put them in the object |
| 4770 |
# directory. |
| 4771 |
mkdir sub |
| 4772 |
|
| 4773 |
am_cv_CC_dependencies_compiler_type=none |
| 4774 |
if test "$am_compiler_list" = ""; then |
| 4775 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4776 |
fi |
| 4777 |
am__universal=false |
| 4778 |
case " $depcc " in #( |
| 4779 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4780 |
esac |
| 4781 |
|
| 4782 |
for depmode in $am_compiler_list; do |
| 4783 |
# Setup a source with many dependencies, because some compilers |
| 4784 |
# like to wrap large dependency lists on column 80 (with \), and |
| 4785 |
# we should not choose a depcomp mode which is confused by this. |
| 4786 |
# |
| 4787 |
# We need to recreate these files for each test, as the compiler may |
| 4788 |
# overwrite some of them when testing with obscure command lines. |
| 4789 |
# This happens at least with the AIX C compiler. |
| 4790 |
: > sub/conftest.c |
| 4791 |
for i in 1 2 3 4 5 6; do |
| 4792 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4793 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4794 |
# Solaris 10 /bin/sh. |
| 4795 |
echo '/* dummy */' > sub/conftst$i.h |
| 4796 |
done |
| 4797 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4798 |
|
| 4799 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 4800 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 4801 |
# handle '-M -o', and we need to detect this. Also, some Intel |
| 4802 |
# versions had trouble with output in subdirs. |
| 4803 |
am__obj=sub/conftest.${OBJEXT-o} |
| 4804 |
am__minus_obj="-o $am__obj" |
| 4805 |
case $depmode in |
| 4806 |
gcc) |
| 4807 |
# This depmode causes a compiler race in universal mode. |
| 4808 |
test "$am__universal" = false || continue |
| 4809 |
;; |
| 4810 |
nosideeffect) |
| 4811 |
# After this tag, mechanisms are not by side-effect, so they'll |
| 4812 |
# only be used when explicitly requested. |
| 4813 |
if test "x$enable_dependency_tracking" = xyes; then |
| 4814 |
continue |
| 4815 |
else |
| 4816 |
break |
| 4817 |
fi |
| 4818 |
;; |
| 4819 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 4820 |
# This compiler won't grok '-c -o', but also, the minuso test has |
| 4821 |
# not run yet. These depmodes are late enough in the game, and |
| 4822 |
# so weak that their functioning should not be impacted. |
| 4823 |
am__obj=conftest.${OBJEXT-o} |
| 4824 |
am__minus_obj= |
| 4825 |
;; |
| 4826 |
none) break ;; |
| 4827 |
esac |
| 4828 |
if depmode=$depmode \ |
| 4829 |
source=sub/conftest.c object=$am__obj \ |
| 4830 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4831 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4832 |
>/dev/null 2>conftest.err && |
| 4833 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4834 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4835 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4836 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4837 |
# icc doesn't choke on unknown options, it will just issue warnings |
| 4838 |
# or remarks (even with -Werror). So we grep stderr for any message |
| 4839 |
# that says an option was ignored or not supported. |
| 4840 |
# When given -MP, icc 7.0 and 7.1 complain thus: |
| 4841 |
# icc: Command line warning: ignoring option '-M'; no argument required |
| 4842 |
# The diagnosis changed in icc 8.0: |
| 4843 |
# icc: Command line remark: option '-MP' not supported |
| 4844 |
if (grep 'ignoring option' conftest.err || |
| 4845 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4846 |
am_cv_CC_dependencies_compiler_type=$depmode |
| 4847 |
break |
| 4848 |
fi |
| 4849 |
fi |
| 4850 |
done |
| 4851 |
|
| 4852 |
cd .. |
| 4853 |
rm -rf conftest.dir |
| 4854 |
else |
| 4855 |
am_cv_CC_dependencies_compiler_type=none |
| 4856 |
fi |
| 4857 |
;; |
| 4858 |
esac |
| 4859 |
fi |
| 4860 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4861 |
printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4862 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4863 |
|
| 4864 |
if |
| 4865 |
test "x$enable_dependency_tracking" != xno \ |
| 4866 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4867 |
am__fastdepCC_TRUE= |
| 4868 |
am__fastdepCC_FALSE='#' |
| 4869 |
else |
| 4870 |
am__fastdepCC_TRUE='#' |
| 4871 |
am__fastdepCC_FALSE= |
| 4872 |
fi |
| 4873 |
|
| 4874 |
|
| 4875 |
|
| 4876 |
|
| 4877 |
|
| 4878 |
|
| 4879 |
|
| 4880 |
|
| 4881 |
ac_ext=cpp |
| 4882 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 4883 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4884 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4885 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4886 |
if test -z "$CXX"; then |
| 4887 |
if test -n "$CCC"; then |
| 4888 |
CXX=$CCC |
| 4889 |
else |
| 4890 |
if test -n "$ac_tool_prefix"; then |
| 4891 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
| 4892 |
do |
| 4893 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4894 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4895 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4896 |
printf %s "checking for $ac_word... " >&6; } |
| 4897 |
if test ${ac_cv_prog_CXX+y} |
| 4898 |
then : |
| 4899 |
printf %s "(cached) " >&6 |
| 4900 |
else case e in #( |
| 4901 |
e) if test -n "$CXX"; then |
| 4902 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4903 |
else |
| 4904 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4905 |
for as_dir in $PATH |
| 4906 |
do |
| 4907 |
IFS=$as_save_IFS |
| 4908 |
case $as_dir in #((( |
| 4909 |
'') as_dir=./ ;; |
| 4910 |
*/) ;; |
| 4911 |
*) as_dir=$as_dir/ ;; |
| 4912 |
esac |
| 4913 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4914 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4915 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 4916 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4917 |
break 2 |
| 4918 |
fi |
| 4919 |
done |
| 4920 |
done |
| 4921 |
IFS=$as_save_IFS |
| 4922 |
|
| 4923 |
fi ;; |
| 4924 |
esac |
| 4925 |
fi |
| 4926 |
CXX=$ac_cv_prog_CXX |
| 4927 |
if test -n "$CXX"; then |
| 4928 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4929 |
printf "%s\n" "$CXX" >&6; } |
| 4930 |
else |
| 4931 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4932 |
printf "%s\n" "no" >&6; } |
| 4933 |
fi |
| 4934 |
|
| 4935 |
|
| 4936 |
test -n "$CXX" && break |
| 4937 |
done |
| 4938 |
fi |
| 4939 |
if test -z "$CXX"; then |
| 4940 |
ac_ct_CXX=$CXX |
| 4941 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
| 4942 |
do |
| 4943 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4944 |
set dummy $ac_prog; ac_word=$2 |
| 4945 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4946 |
printf %s "checking for $ac_word... " >&6; } |
| 4947 |
if test ${ac_cv_prog_ac_ct_CXX+y} |
| 4948 |
then : |
| 4949 |
printf %s "(cached) " >&6 |
| 4950 |
else case e in #( |
| 4951 |
e) if test -n "$ac_ct_CXX"; then |
| 4952 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4953 |
else |
| 4954 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4955 |
for as_dir in $PATH |
| 4956 |
do |
| 4957 |
IFS=$as_save_IFS |
| 4958 |
case $as_dir in #((( |
| 4959 |
'') as_dir=./ ;; |
| 4960 |
*/) ;; |
| 4961 |
*) as_dir=$as_dir/ ;; |
| 4962 |
esac |
| 4963 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4964 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4965 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 4966 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4967 |
break 2 |
| 4968 |
fi |
| 4969 |
done |
| 4970 |
done |
| 4971 |
IFS=$as_save_IFS |
| 4972 |
|
| 4973 |
fi ;; |
| 4974 |
esac |
| 4975 |
fi |
| 4976 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4977 |
if test -n "$ac_ct_CXX"; then |
| 4978 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4979 |
printf "%s\n" "$ac_ct_CXX" >&6; } |
| 4980 |
else |
| 4981 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4982 |
printf "%s\n" "no" >&6; } |
| 4983 |
fi |
| 4984 |
|
| 4985 |
|
| 4986 |
test -n "$ac_ct_CXX" && break |
| 4987 |
done |
| 4988 |
|
| 4989 |
if test "x$ac_ct_CXX" = x; then |
| 4990 |
CXX="g++" |
| 4991 |
else |
| 4992 |
case $cross_compiling:$ac_tool_warned in |
| 4993 |
yes:) |
| 4994 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4995 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4996 |
ac_tool_warned=yes ;; |
| 4997 |
esac |
| 4998 |
CXX=$ac_ct_CXX |
| 4999 |
fi |
| 5000 |
fi |
| 5001 |
|
| 5002 |
fi |
| 5003 |
fi |
| 5004 |
# Provide some information about the compiler. |
| 5005 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 5006 |
set X $ac_compile |
| 5007 |
ac_compiler=$2 |
| 5008 |
for ac_option in --version -v -V -qversion; do |
| 5009 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 5010 |
case "(($ac_try" in |
| 5011 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5012 |
*) ac_try_echo=$ac_try;; |
| 5013 |
esac |
| 5014 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5015 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 5016 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 5017 |
ac_status=$? |
| 5018 |
if test -s conftest.err; then |
| 5019 |
sed '10a\ |
| 5020 |
... rest of stderr output deleted ... |
| 5021 |
10q' conftest.err >conftest.er1 |
| 5022 |
cat conftest.er1 >&5 |
| 5023 |
fi |
| 5024 |
rm -f conftest.er1 conftest.err |
| 5025 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5026 |
test $ac_status = 0; } |
| 5027 |
done |
| 5028 |
|
| 5029 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 |
| 5030 |
printf %s "checking whether the compiler supports GNU C++... " >&6; } |
| 5031 |
if test ${ac_cv_cxx_compiler_gnu+y} |
| 5032 |
then : |
| 5033 |
printf %s "(cached) " >&6 |
| 5034 |
else case e in #( |
| 5035 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5036 |
/* end confdefs.h. */ |
| 5037 |
|
| 5038 |
int |
| 5039 |
main (void) |
| 5040 |
{ |
| 5041 |
#ifndef __GNUC__ |
| 5042 |
choke me |
| 5043 |
#endif |
| 5044 |
|
| 5045 |
; |
| 5046 |
return 0; |
| 5047 |
} |
| 5048 |
_ACEOF |
| 5049 |
if ac_fn_cxx_try_compile "$LINENO" |
| 5050 |
then : |
| 5051 |
ac_compiler_gnu=yes |
| 5052 |
else case e in #( |
| 5053 |
e) ac_compiler_gnu=no ;; |
| 5054 |
esac |
| 5055 |
fi |
| 5056 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5057 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5058 |
;; |
| 5059 |
esac |
| 5060 |
fi |
| 5061 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5062 |
printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } |
| 5063 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5064 |
|
| 5065 |
if test $ac_compiler_gnu = yes; then |
| 5066 |
GXX=yes |
| 5067 |
else |
| 5068 |
GXX= |
| 5069 |
fi |
| 5070 |
ac_test_CXXFLAGS=${CXXFLAGS+y} |
| 5071 |
ac_save_CXXFLAGS=$CXXFLAGS |
| 5072 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 5073 |
printf %s "checking whether $CXX accepts -g... " >&6; } |
| 5074 |
if test ${ac_cv_prog_cxx_g+y} |
| 5075 |
then : |
| 5076 |
printf %s "(cached) " >&6 |
| 5077 |
else case e in #( |
| 5078 |
e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5079 |
ac_cxx_werror_flag=yes |
| 5080 |
ac_cv_prog_cxx_g=no |
| 5081 |
CXXFLAGS="-g" |
| 5082 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5083 |
/* end confdefs.h. */ |
| 5084 |
|
| 5085 |
int |
| 5086 |
main (void) |
| 5087 |
{ |
| 5088 |
|
| 5089 |
; |
| 5090 |
return 0; |
| 5091 |
} |
| 5092 |
_ACEOF |
| 5093 |
if ac_fn_cxx_try_compile "$LINENO" |
| 5094 |
then : |
| 5095 |
ac_cv_prog_cxx_g=yes |
| 5096 |
else case e in #( |
| 5097 |
e) CXXFLAGS="" |
| 5098 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5099 |
/* end confdefs.h. */ |
| 5100 |
|
| 5101 |
int |
| 5102 |
main (void) |
| 5103 |
{ |
| 5104 |
|
| 5105 |
; |
| 5106 |
return 0; |
| 5107 |
} |
| 5108 |
_ACEOF |
| 5109 |
if ac_fn_cxx_try_compile "$LINENO" |
| 5110 |
then : |
| 5111 |
|
| 5112 |
else case e in #( |
| 5113 |
e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5114 |
CXXFLAGS="-g" |
| 5115 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5116 |
/* end confdefs.h. */ |
| 5117 |
|
| 5118 |
int |
| 5119 |
main (void) |
| 5120 |
{ |
| 5121 |
|
| 5122 |
; |
| 5123 |
return 0; |
| 5124 |
} |
| 5125 |
_ACEOF |
| 5126 |
if ac_fn_cxx_try_compile "$LINENO" |
| 5127 |
then : |
| 5128 |
ac_cv_prog_cxx_g=yes |
| 5129 |
fi |
| 5130 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 5131 |
esac |
| 5132 |
fi |
| 5133 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 5134 |
esac |
| 5135 |
fi |
| 5136 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5137 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; |
| 5138 |
esac |
| 5139 |
fi |
| 5140 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 5141 |
printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } |
| 5142 |
if test $ac_test_CXXFLAGS; then |
| 5143 |
CXXFLAGS=$ac_save_CXXFLAGS |
| 5144 |
elif test $ac_cv_prog_cxx_g = yes; then |
| 5145 |
if test "$GXX" = yes; then |
| 5146 |
CXXFLAGS="-g -O2" |
| 5147 |
else |
| 5148 |
CXXFLAGS="-g" |
| 5149 |
fi |
| 5150 |
else |
| 5151 |
if test "$GXX" = yes; then |
| 5152 |
CXXFLAGS="-O2" |
| 5153 |
else |
| 5154 |
CXXFLAGS= |
| 5155 |
fi |
| 5156 |
fi |
| 5157 |
ac_prog_cxx_stdcxx=no |
| 5158 |
if test x$ac_prog_cxx_stdcxx = xno |
| 5159 |
then : |
| 5160 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
| 5161 |
printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
| 5162 |
if test ${ac_cv_prog_cxx_cxx11+y} |
| 5163 |
then : |
| 5164 |
printf %s "(cached) " >&6 |
| 5165 |
else case e in #( |
| 5166 |
e) ac_cv_prog_cxx_cxx11=no |
| 5167 |
ac_save_CXX=$CXX |
| 5168 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5169 |
/* end confdefs.h. */ |
| 5170 |
$ac_cxx_conftest_cxx11_program |
| 5171 |
_ACEOF |
| 5172 |
for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA |
| 5173 |
do |
| 5174 |
CXX="$ac_save_CXX $ac_arg" |
| 5175 |
if ac_fn_cxx_try_compile "$LINENO" |
| 5176 |
then : |
| 5177 |
ac_cv_prog_cxx_cxx11=$ac_arg |
| 5178 |
fi |
| 5179 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5180 |
test "x$ac_cv_prog_cxx_cxx11" != "xno" && break |
| 5181 |
done |
| 5182 |
rm -f conftest.$ac_ext |
| 5183 |
CXX=$ac_save_CXX ;; |
| 5184 |
esac |
| 5185 |
fi |
| 5186 |
|
| 5187 |
if test "x$ac_cv_prog_cxx_cxx11" = xno |
| 5188 |
then : |
| 5189 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5190 |
printf "%s\n" "unsupported" >&6; } |
| 5191 |
else case e in #( |
| 5192 |
e) if test "x$ac_cv_prog_cxx_cxx11" = x |
| 5193 |
then : |
| 5194 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5195 |
printf "%s\n" "none needed" >&6; } |
| 5196 |
else case e in #( |
| 5197 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 |
| 5198 |
printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } |
| 5199 |
CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; |
| 5200 |
esac |
| 5201 |
fi |
| 5202 |
ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 |
| 5203 |
ac_prog_cxx_stdcxx=cxx11 ;; |
| 5204 |
esac |
| 5205 |
fi |
| 5206 |
fi |
| 5207 |
if test x$ac_prog_cxx_stdcxx = xno |
| 5208 |
then : |
| 5209 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
| 5210 |
printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
| 5211 |
if test ${ac_cv_prog_cxx_cxx98+y} |
| 5212 |
then : |
| 5213 |
printf %s "(cached) " >&6 |
| 5214 |
else case e in #( |
| 5215 |
e) ac_cv_prog_cxx_cxx98=no |
| 5216 |
ac_save_CXX=$CXX |
| 5217 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5218 |
/* end confdefs.h. */ |
| 5219 |
$ac_cxx_conftest_cxx98_program |
| 5220 |
_ACEOF |
| 5221 |
for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA |
| 5222 |
do |
| 5223 |
CXX="$ac_save_CXX $ac_arg" |
| 5224 |
if ac_fn_cxx_try_compile "$LINENO" |
| 5225 |
then : |
| 5226 |
ac_cv_prog_cxx_cxx98=$ac_arg |
| 5227 |
fi |
| 5228 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5229 |
test "x$ac_cv_prog_cxx_cxx98" != "xno" && break |
| 5230 |
done |
| 5231 |
rm -f conftest.$ac_ext |
| 5232 |
CXX=$ac_save_CXX ;; |
| 5233 |
esac |
| 5234 |
fi |
| 5235 |
|
| 5236 |
if test "x$ac_cv_prog_cxx_cxx98" = xno |
| 5237 |
then : |
| 5238 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5239 |
printf "%s\n" "unsupported" >&6; } |
| 5240 |
else case e in #( |
| 5241 |
e) if test "x$ac_cv_prog_cxx_cxx98" = x |
| 5242 |
then : |
| 5243 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5244 |
printf "%s\n" "none needed" >&6; } |
| 5245 |
else case e in #( |
| 5246 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 |
| 5247 |
printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } |
| 5248 |
CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; |
| 5249 |
esac |
| 5250 |
fi |
| 5251 |
ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 |
| 5252 |
ac_prog_cxx_stdcxx=cxx98 ;; |
| 5253 |
esac |
| 5254 |
fi |
| 5255 |
fi |
| 5256 |
|
| 5257 |
ac_ext=c |
| 5258 |
ac_cpp='$CPP $CPPFLAGS' |
| 5259 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5260 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5261 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5262 |
|
| 5263 |
depcc="$CXX" am_compiler_list= |
| 5264 |
|
| 5265 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5266 |
printf %s "checking dependency style of $depcc... " >&6; } |
| 5267 |
if test ${am_cv_CXX_dependencies_compiler_type+y} |
| 5268 |
then : |
| 5269 |
printf %s "(cached) " >&6 |
| 5270 |
else case e in #( |
| 5271 |
e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5272 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 5273 |
# making bogus files that we don't know about and never remove. For |
| 5274 |
# instance it was reported that on HP-UX the gcc test will end up |
| 5275 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
| 5276 |
# in D". |
| 5277 |
rm -rf conftest.dir |
| 5278 |
mkdir conftest.dir |
| 5279 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 5280 |
# using a relative directory. |
| 5281 |
cp "$am_depcomp" conftest.dir |
| 5282 |
cd conftest.dir |
| 5283 |
# We will build objects and dependencies in a subdirectory because |
| 5284 |
# it helps to detect inapplicable dependency modes. For instance |
| 5285 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 5286 |
# side effect of compilation, but ICC will put the dependencies in |
| 5287 |
# the current directory while Tru64 will put them in the object |
| 5288 |
# directory. |
| 5289 |
mkdir sub |
| 5290 |
|
| 5291 |
am_cv_CXX_dependencies_compiler_type=none |
| 5292 |
if test "$am_compiler_list" = ""; then |
| 5293 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5294 |
fi |
| 5295 |
am__universal=false |
| 5296 |
case " $depcc " in #( |
| 5297 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5298 |
esac |
| 5299 |
|
| 5300 |
for depmode in $am_compiler_list; do |
| 5301 |
# Setup a source with many dependencies, because some compilers |
| 5302 |
# like to wrap large dependency lists on column 80 (with \), and |
| 5303 |
# we should not choose a depcomp mode which is confused by this. |
| 5304 |
# |
| 5305 |
# We need to recreate these files for each test, as the compiler may |
| 5306 |
# overwrite some of them when testing with obscure command lines. |
| 5307 |
# This happens at least with the AIX C compiler. |
| 5308 |
: > sub/conftest.c |
| 5309 |
for i in 1 2 3 4 5 6; do |
| 5310 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5311 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 5312 |
# Solaris 10 /bin/sh. |
| 5313 |
echo '/* dummy */' > sub/conftst$i.h |
| 5314 |
done |
| 5315 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5316 |
|
| 5317 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 5318 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 5319 |
# handle '-M -o', and we need to detect this. Also, some Intel |
| 5320 |
# versions had trouble with output in subdirs. |
| 5321 |
am__obj=sub/conftest.${OBJEXT-o} |
| 5322 |
am__minus_obj="-o $am__obj" |
| 5323 |
case $depmode in |
| 5324 |
gcc) |
| 5325 |
# This depmode causes a compiler race in universal mode. |
| 5326 |
test "$am__universal" = false || continue |
| 5327 |
;; |
| 5328 |
nosideeffect) |
| 5329 |
# After this tag, mechanisms are not by side-effect, so they'll |
| 5330 |
# only be used when explicitly requested. |
| 5331 |
if test "x$enable_dependency_tracking" = xyes; then |
| 5332 |
continue |
| 5333 |
else |
| 5334 |
break |
| 5335 |
fi |
| 5336 |
;; |
| 5337 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 5338 |
# This compiler won't grok '-c -o', but also, the minuso test has |
| 5339 |
# not run yet. These depmodes are late enough in the game, and |
| 5340 |
# so weak that their functioning should not be impacted. |
| 5341 |
am__obj=conftest.${OBJEXT-o} |
| 5342 |
am__minus_obj= |
| 5343 |
;; |
| 5344 |
none) break ;; |
| 5345 |
esac |
| 5346 |
if depmode=$depmode \ |
| 5347 |
source=sub/conftest.c object=$am__obj \ |
| 5348 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5349 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5350 |
>/dev/null 2>conftest.err && |
| 5351 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5352 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5353 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5354 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5355 |
# icc doesn't choke on unknown options, it will just issue warnings |
| 5356 |
# or remarks (even with -Werror). So we grep stderr for any message |
| 5357 |
# that says an option was ignored or not supported. |
| 5358 |
# When given -MP, icc 7.0 and 7.1 complain thus: |
| 5359 |
# icc: Command line warning: ignoring option '-M'; no argument required |
| 5360 |
# The diagnosis changed in icc 8.0: |
| 5361 |
# icc: Command line remark: option '-MP' not supported |
| 5362 |
if (grep 'ignoring option' conftest.err || |
| 5363 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5364 |
am_cv_CXX_dependencies_compiler_type=$depmode |
| 5365 |
break |
| 5366 |
fi |
| 5367 |
fi |
| 5368 |
done |
| 5369 |
|
| 5370 |
cd .. |
| 5371 |
rm -rf conftest.dir |
| 5372 |
else |
| 5373 |
am_cv_CXX_dependencies_compiler_type=none |
| 5374 |
fi |
| 5375 |
;; |
| 5376 |
esac |
| 5377 |
fi |
| 5378 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 5379 |
printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 5380 |
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 5381 |
|
| 5382 |
if |
| 5383 |
test "x$enable_dependency_tracking" != xno \ |
| 5384 |
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 5385 |
am__fastdepCXX_TRUE= |
| 5386 |
am__fastdepCXX_FALSE='#' |
| 5387 |
else |
| 5388 |
am__fastdepCXX_TRUE='#' |
| 5389 |
am__fastdepCXX_FALSE= |
| 5390 |
fi |
| 5391 |
|
| 5392 |
|
| 5393 |
|
| 5394 |
|
| 5395 |
# Check whether --enable-optimization was given. |
| 5396 |
if test ${enable_optimization+y} |
| 5397 |
then : |
| 5398 |
enableval=$enable_optimization; |
| 5399 |
if (test "${enableval}" = "no"); then |
| 5400 |
CXXFLAGS="$CXXFLAGS -O0" |
| 5401 |
fi |
| 5402 |
|
| 5403 |
fi |
| 5404 |
|
| 5405 |
|
| 5406 |
|
| 5407 |
pkg_failed=no |
| 5408 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5Core Qt5Gui Qt5Xml Qt5Network Qt5Qml Qt5DBus Qt5Widgets >= 5.10" >&5 |
| 5409 |
printf %s "checking for Qt5Core Qt5Gui Qt5Xml Qt5Network Qt5Qml Qt5DBus Qt5Widgets >= 5.10... " >&6; } |
| 5410 |
|
| 5411 |
if test -n "$QT_CFLAGS"; then |
| 5412 |
pkg_cv_QT_CFLAGS="$QT_CFLAGS" |
| 5413 |
elif test -n "$PKG_CONFIG"; then |
| 5414 |
if test -n "$PKG_CONFIG" && \ |
| 5415 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core Qt5Gui Qt5Xml Qt5Network Qt5Qml Qt5DBus Qt5Widgets >= 5.10\""; } >&5 |
| 5416 |
($PKG_CONFIG --exists --print-errors "Qt5Core Qt5Gui Qt5Xml Qt5Network Qt5Qml Qt5DBus Qt5Widgets >= 5.10") 2>&5 |
| 5417 |
ac_status=$? |
| 5418 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5419 |
test $ac_status = 0; }; then |
| 5420 |
pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core Qt5Gui Qt5Xml Qt5Network Qt5Qml Qt5DBus Qt5Widgets >= 5.10" 2>/dev/null` |
| 5421 |
test "x$?" != "x0" && pkg_failed=yes |
| 5422 |
else |
| 5423 |
pkg_failed=yes |
| 5424 |
fi |
| 5425 |
else |
| 5426 |
pkg_failed=untried |
| 5427 |
fi |
| 5428 |
if test -n "$QT_LIBS"; then |
| 5429 |
pkg_cv_QT_LIBS="$QT_LIBS" |
| 5430 |
elif test -n "$PKG_CONFIG"; then |
| 5431 |
if test -n "$PKG_CONFIG" && \ |
| 5432 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core Qt5Gui Qt5Xml Qt5Network Qt5Qml Qt5DBus Qt5Widgets >= 5.10\""; } >&5 |
| 5433 |
($PKG_CONFIG --exists --print-errors "Qt5Core Qt5Gui Qt5Xml Qt5Network Qt5Qml Qt5DBus Qt5Widgets >= 5.10") 2>&5 |
| 5434 |
ac_status=$? |
| 5435 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5436 |
test $ac_status = 0; }; then |
| 5437 |
pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "Qt5Core Qt5Gui Qt5Xml Qt5Network Qt5Qml Qt5DBus Qt5Widgets >= 5.10" 2>/dev/null` |
| 5438 |
test "x$?" != "x0" && pkg_failed=yes |
| 5439 |
else |
| 5440 |
pkg_failed=yes |
| 5441 |
fi |
| 5442 |
else |
| 5443 |
pkg_failed=untried |
| 5444 |
fi |
| 5445 |
|
| 5446 |
|
| 5447 |
|
| 5448 |
if test $pkg_failed = yes; then |
| 5449 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5450 |
printf "%s\n" "no" >&6; } |
| 5451 |
|
| 5452 |
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 5453 |
_pkg_short_errors_supported=yes |
| 5454 |
else |
| 5455 |
_pkg_short_errors_supported=no |
| 5456 |
fi |
| 5457 |
if test $_pkg_short_errors_supported = yes; then |
| 5458 |
QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Core Qt5Gui Qt5Xml Qt5Network Qt5Qml Qt5DBus Qt5Widgets >= 5.10" 2>&1` |
| 5459 |
else |
| 5460 |
QT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Core Qt5Gui Qt5Xml Qt5Network Qt5Qml Qt5DBus Qt5Widgets >= 5.10" 2>&1` |
| 5461 |
fi |
| 5462 |
# Put the nasty error message in config.log where it belongs |
| 5463 |
echo "$QT_PKG_ERRORS" >&5 |
| 5464 |
|
| 5465 |
as_fn_error $? "Qt5 is required" "$LINENO" 5 |
| 5466 |
elif test $pkg_failed = untried; then |
| 5467 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5468 |
printf "%s\n" "no" >&6; } |
| 5469 |
as_fn_error $? "Qt5 is required" "$LINENO" 5 |
| 5470 |
else |
| 5471 |
QT_CFLAGS=$pkg_cv_QT_CFLAGS |
| 5472 |
QT_LIBS=$pkg_cv_QT_LIBS |
| 5473 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5474 |
printf "%s\n" "yes" >&6; } |
| 5475 |
dummy=yes |
| 5476 |
fi |
| 5477 |
|
| 5478 |
# Needed for qOverload |
| 5479 |
CXXFLAGS="$CXXFLAGS --std=gnu++14" |
| 5480 |
|
| 5481 |
|
| 5482 |
|
| 5483 |
|
| 5484 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5 host_bins" >&5 |
| 5485 |
printf %s "checking for Qt5 host_bins... " >&6; } |
| 5486 |
|
| 5487 |
if test -n "$QMAKE_PATH_HOST_BINS"; then |
| 5488 |
pkg_cv_QMAKE_PATH_HOST_BINS="$QMAKE_PATH_HOST_BINS" |
| 5489 |
elif test -n "$PKG_CONFIG"; then |
| 5490 |
if test -n "$PKG_CONFIG" && \ |
| 5491 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core\""; } >&5 |
| 5492 |
($PKG_CONFIG --exists --print-errors "Qt5Core") 2>&5 |
| 5493 |
ac_status=$? |
| 5494 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5495 |
test $ac_status = 0; }; then |
| 5496 |
pkg_cv_QMAKE_PATH_HOST_BINS=`$PKG_CONFIG --variable="host_bins" "Qt5Core" 2>/dev/null` |
| 5497 |
test "x$?" != "x0" && pkg_failed=yes |
| 5498 |
else |
| 5499 |
pkg_failed=yes |
| 5500 |
fi |
| 5501 |
else |
| 5502 |
pkg_failed=untried |
| 5503 |
fi |
| 5504 |
QMAKE_PATH_HOST_BINS=$pkg_cv_QMAKE_PATH_HOST_BINS |
| 5505 |
|
| 5506 |
if test "x$QMAKE_PATH_HOST_BINS" = x"" |
| 5507 |
then : |
| 5508 |
|
| 5509 |
fi |
| 5510 |
|
| 5511 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QMAKE_PATH_HOST_BINS" >&5 |
| 5512 |
printf "%s\n" "$QMAKE_PATH_HOST_BINS" >&6; } |
| 5513 |
|
| 5514 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for moc" >&5 |
| 5515 |
printf %s "checking for moc... " >&6; } |
| 5516 |
MOC="$QMAKE_PATH_HOST_BINS/moc" |
| 5517 |
|
| 5518 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5 |
| 5519 |
printf "%s\n" "$MOC" >&6; } |
| 5520 |
|
| 5521 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uic" >&5 |
| 5522 |
printf %s "checking for uic... " >&6; } |
| 5523 |
UIC="$QMAKE_PATH_HOST_BINS/uic" |
| 5524 |
|
| 5525 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5 |
| 5526 |
printf "%s\n" "$UIC" >&6; } |
| 5527 |
|
| 5528 |
ac_config_files="$ac_config_files Makefile" |
| 5529 |
|
| 5530 |
|
| 5531 |
cat >confcache <<\_ACEOF |
| 5532 |
# This file is a shell script that caches the results of configure |
| 5533 |
# tests run on this system so they can be shared between configure |
| 5534 |
# scripts and configure runs, see configure's option --config-cache. |
| 5535 |
# It is not useful on other systems. If it contains results you don't |
| 5536 |
# want to keep, you may remove or edit it. |
| 5537 |
# |
| 5538 |
# config.status only pays attention to the cache file if you give it |
| 5539 |
# the --recheck option to rerun configure. |
| 5540 |
# |
| 5541 |
# 'ac_cv_env_foo' variables (set or unset) will be overridden when |
| 5542 |
# loading this file, other *unset* 'ac_cv_foo' will be assigned the |
| 5543 |
# following values. |
| 5544 |
|
| 5545 |
_ACEOF |
| 5546 |
|
| 5547 |
# The following way of writing the cache mishandles newlines in values, |
| 5548 |
# but we know of no workaround that is simple, portable, and efficient. |
| 5549 |
# So, we kill variables containing newlines. |
| 5550 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 5551 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 5552 |
( |
| 5553 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 5554 |
eval ac_val=\$$ac_var |
| 5555 |
case $ac_val in #( |
| 5556 |
*${as_nl}*) |
| 5557 |
case $ac_var in #( |
| 5558 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 5559 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 5560 |
esac |
| 5561 |
case $ac_var in #( |
| 5562 |
_ | IFS | as_nl) ;; #( |
| 5563 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 5564 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 5565 |
esac ;; |
| 5566 |
esac |
| 5567 |
done |
| 5568 |
|
| 5569 |
(set) 2>&1 | |
| 5570 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 5571 |
*${as_nl}ac_space=\ *) |
| 5572 |
# 'set' does not quote correctly, so add quotes: double-quote |
| 5573 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
| 5574 |
sed -n \ |
| 5575 |
"s/'/'\\\\''/g; |
| 5576 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 5577 |
;; #( |
| 5578 |
*) |
| 5579 |
# 'set' quotes correctly as required by POSIX, so do not add quotes. |
| 5580 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 5581 |
;; |
| 5582 |
esac | |
| 5583 |
sort |
| 5584 |
) | |
| 5585 |
sed ' |
| 5586 |
/^ac_cv_env_/b end |
| 5587 |
t clear |
| 5588 |
:clear |
| 5589 |
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 5590 |
t end |
| 5591 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 5592 |
:end' >>confcache |
| 5593 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 5594 |
if test -w "$cache_file"; then |
| 5595 |
if test "x$cache_file" != "x/dev/null"; then |
| 5596 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 5597 |
printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 5598 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 5599 |
cat confcache >"$cache_file" |
| 5600 |
else |
| 5601 |
case $cache_file in #( |
| 5602 |
*/* | ?:*) |
| 5603 |
mv -f confcache "$cache_file"$$ && |
| 5604 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 5605 |
*) |
| 5606 |
mv -f confcache "$cache_file" ;; |
| 5607 |
esac |
| 5608 |
fi |
| 5609 |
fi |
| 5610 |
else |
| 5611 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 5612 |
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 5613 |
fi |
| 5614 |
fi |
| 5615 |
rm -f confcache |
| 5616 |
|
| 5617 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5618 |
# Let make expand exec_prefix. |
| 5619 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 5620 |
|
| 5621 |
# Transform confdefs.h into DEFS. |
| 5622 |
# Protect against shell expansion while executing Makefile rules. |
| 5623 |
# Protect against Makefile macro expansion. |
| 5624 |
# |
| 5625 |
# If the first sed substitution is executed (which looks for macros that |
| 5626 |
# take arguments), then branch to the quote section. Otherwise, |
| 5627 |
# look for a macro that doesn't take arguments. |
| 5628 |
ac_script=' |
| 5629 |
:mline |
| 5630 |
/\\$/{ |
| 5631 |
N |
| 5632 |
s,\\\n,, |
| 5633 |
b mline |
| 5634 |
} |
| 5635 |
t clear |
| 5636 |
:clear |
| 5637 |
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
| 5638 |
t quote |
| 5639 |
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
| 5640 |
t quote |
| 5641 |
b any |
| 5642 |
:quote |
| 5643 |
s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 5644 |
s/\$/$$/g |
| 5645 |
H |
| 5646 |
:any |
| 5647 |
${ |
| 5648 |
g |
| 5649 |
s/^\n// |
| 5650 |
s/\n/ /g |
| 5651 |
p |
| 5652 |
} |
| 5653 |
' |
| 5654 |
DEFS=`sed -n "$ac_script" confdefs.h` |
| 5655 |
|
| 5656 |
|
| 5657 |
ac_libobjs= |
| 5658 |
ac_ltlibobjs= |
| 5659 |
U= |
| 5660 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 5661 |
# 1. Remove the extension, and $U if already installed. |
| 5662 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 5663 |
ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 5664 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 5665 |
# will be set to the directory where LIBOBJS objects are built. |
| 5666 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 5667 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 5668 |
done |
| 5669 |
LIBOBJS=$ac_libobjs |
| 5670 |
|
| 5671 |
LTLIBOBJS=$ac_ltlibobjs |
| 5672 |
|
| 5673 |
|
| 5674 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 5675 |
printf %s "checking that generated files are newer than configure... " >&6; } |
| 5676 |
if test -n "$am_sleep_pid"; then |
| 5677 |
# Hide warnings about reused PIDs. |
| 5678 |
wait $am_sleep_pid 2>/dev/null |
| 5679 |
fi |
| 5680 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 5681 |
printf "%s\n" "done" >&6; } |
| 5682 |
case $enable_silent_rules in # ((( |
| 5683 |
yes) AM_DEFAULT_VERBOSITY=0;; |
| 5684 |
no) AM_DEFAULT_VERBOSITY=1;; |
| 5685 |
esac |
| 5686 |
if test $am_cv_make_support_nested_variables = yes; then |
| 5687 |
AM_V='$(V)' |
| 5688 |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 5689 |
else |
| 5690 |
AM_V=$AM_DEFAULT_VERBOSITY |
| 5691 |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 5692 |
fi |
| 5693 |
|
| 5694 |
if test -n "$EXEEXT"; then |
| 5695 |
am__EXEEXT_TRUE= |
| 5696 |
am__EXEEXT_FALSE='#' |
| 5697 |
else |
| 5698 |
am__EXEEXT_TRUE='#' |
| 5699 |
am__EXEEXT_FALSE= |
| 5700 |
fi |
| 5701 |
|
| 5702 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 5703 |
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 5704 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5705 |
fi |
| 5706 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 5707 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 5708 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5709 |
fi |
| 5710 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 5711 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 5712 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5713 |
fi |
| 5714 |
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 5715 |
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| 5716 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5717 |
fi |
| 5718 |
|
| 5719 |
: "${CONFIG_STATUS=./config.status}" |
| 5720 |
ac_write_fail=0 |
| 5721 |
ac_clean_files_save=$ac_clean_files |
| 5722 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 5723 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 5724 |
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 5725 |
as_write_fail=0 |
| 5726 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 5727 |
#! $SHELL |
| 5728 |
# Generated by $as_me. |
| 5729 |
# Run this file to recreate the current configuration. |
| 5730 |
# Compiler output produced by configure, useful for debugging |
| 5731 |
# configure, is in config.log if it exists. |
| 5732 |
|
| 5733 |
debug=false |
| 5734 |
ac_cs_recheck=false |
| 5735 |
ac_cs_silent=false |
| 5736 |
|
| 5737 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 5738 |
export SHELL |
| 5739 |
_ASEOF |
| 5740 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 5741 |
## -------------------- ## |
| 5742 |
## M4sh Initialization. ## |
| 5743 |
## -------------------- ## |
| 5744 |
|
| 5745 |
# Be more Bourne compatible |
| 5746 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 5747 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 5748 |
then : |
| 5749 |
emulate sh |
| 5750 |
NULLCMD=: |
| 5751 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 5752 |
# is contrary to our usage. Disable this feature. |
| 5753 |
alias -g '${1+"$@"}'='"$@"' |
| 5754 |
setopt NO_GLOB_SUBST |
| 5755 |
else case e in #( |
| 5756 |
e) case `(set -o) 2>/dev/null` in #( |
| 5757 |
*posix*) : |
| 5758 |
set -o posix ;; #( |
| 5759 |
*) : |
| 5760 |
;; |
| 5761 |
esac ;; |
| 5762 |
esac |
| 5763 |
fi |
| 5764 |
|
| 5765 |
|
| 5766 |
|
| 5767 |
# Reset variables that may have inherited troublesome values from |
| 5768 |
# the environment. |
| 5769 |
|
| 5770 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 5771 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 5772 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
| 5773 |
# Quoting is to prevent editors from complaining about space-tab. |
| 5774 |
as_nl=' |
| 5775 |
' |
| 5776 |
export as_nl |
| 5777 |
IFS=" "" $as_nl" |
| 5778 |
|
| 5779 |
PS1='$ ' |
| 5780 |
PS2='> ' |
| 5781 |
PS4='+ ' |
| 5782 |
|
| 5783 |
# Ensure predictable behavior from utilities with locale-dependent output. |
| 5784 |
LC_ALL=C |
| 5785 |
export LC_ALL |
| 5786 |
LANGUAGE=C |
| 5787 |
export LANGUAGE |
| 5788 |
|
| 5789 |
# We cannot yet rely on "unset" to work, but we need these variables |
| 5790 |
# to be unset--not just set to an empty or harmless value--now, to |
| 5791 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 5792 |
# also avoids known problems related to "unset" and subshell syntax |
| 5793 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 5794 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 5795 |
do eval test \${$as_var+y} \ |
| 5796 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 5797 |
done |
| 5798 |
|
| 5799 |
# Ensure that fds 0, 1, and 2 are open. |
| 5800 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 5801 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 5802 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 5803 |
|
| 5804 |
# The user is always right. |
| 5805 |
if ${PATH_SEPARATOR+false} :; then |
| 5806 |
PATH_SEPARATOR=: |
| 5807 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 5808 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 5809 |
PATH_SEPARATOR=';' |
| 5810 |
} |
| 5811 |
fi |
| 5812 |
|
| 5813 |
|
| 5814 |
# Find who we are. Look in the path if we contain no directory separator. |
| 5815 |
as_myself= |
| 5816 |
case $0 in #(( |
| 5817 |
*[\\/]* ) as_myself=$0 ;; |
| 5818 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5819 |
for as_dir in $PATH |
| 5820 |
do |
| 5821 |
IFS=$as_save_IFS |
| 5822 |
case $as_dir in #((( |
| 5823 |
'') as_dir=./ ;; |
| 5824 |
*/) ;; |
| 5825 |
*) as_dir=$as_dir/ ;; |
| 5826 |
esac |
| 5827 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 5828 |
done |
| 5829 |
IFS=$as_save_IFS |
| 5830 |
|
| 5831 |
;; |
| 5832 |
esac |
| 5833 |
# We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 5834 |
# in which case we are not to be found in the path. |
| 5835 |
if test "x$as_myself" = x; then |
| 5836 |
as_myself=$0 |
| 5837 |
fi |
| 5838 |
if test ! -f "$as_myself"; then |
| 5839 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 5840 |
exit 1 |
| 5841 |
fi |
| 5842 |
|
| 5843 |
|
| 5844 |
|
| 5845 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 5846 |
# ---------------------------------------- |
| 5847 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 5848 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 5849 |
# script with STATUS, using 1 if that was 0. |
| 5850 |
as_fn_error () |
| 5851 |
{ |
| 5852 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 5853 |
if test "$4"; then |
| 5854 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 5855 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 5856 |
fi |
| 5857 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 5858 |
as_fn_exit $as_status |
| 5859 |
} # as_fn_error |
| 5860 |
|
| 5861 |
|
| 5862 |
# as_fn_set_status STATUS |
| 5863 |
# ----------------------- |
| 5864 |
# Set $? to STATUS, without forking. |
| 5865 |
as_fn_set_status () |
| 5866 |
{ |
| 5867 |
return $1 |
| 5868 |
} # as_fn_set_status |
| 5869 |
|
| 5870 |
# as_fn_exit STATUS |
| 5871 |
# ----------------- |
| 5872 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 5873 |
as_fn_exit () |
| 5874 |
{ |
| 5875 |
set +e |
| 5876 |
as_fn_set_status $1 |
| 5877 |
exit $1 |
| 5878 |
} # as_fn_exit |
| 5879 |
|
| 5880 |
# as_fn_unset VAR |
| 5881 |
# --------------- |
| 5882 |
# Portably unset VAR. |
| 5883 |
as_fn_unset () |
| 5884 |
{ |
| 5885 |
{ eval $1=; unset $1;} |
| 5886 |
} |
| 5887 |
as_unset=as_fn_unset |
| 5888 |
|
| 5889 |
# as_fn_append VAR VALUE |
| 5890 |
# ---------------------- |
| 5891 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 5892 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 5893 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 5894 |
# implementations. |
| 5895 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 5896 |
then : |
| 5897 |
eval 'as_fn_append () |
| 5898 |
{ |
| 5899 |
eval $1+=\$2 |
| 5900 |
}' |
| 5901 |
else case e in #( |
| 5902 |
e) as_fn_append () |
| 5903 |
{ |
| 5904 |
eval $1=\$$1\$2 |
| 5905 |
} ;; |
| 5906 |
esac |
| 5907 |
fi # as_fn_append |
| 5908 |
|
| 5909 |
# as_fn_arith ARG... |
| 5910 |
# ------------------ |
| 5911 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 5912 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 5913 |
# must be portable across $(()) and expr. |
| 5914 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 5915 |
then : |
| 5916 |
eval 'as_fn_arith () |
| 5917 |
{ |
| 5918 |
as_val=$(( $* )) |
| 5919 |
}' |
| 5920 |
else case e in #( |
| 5921 |
e) as_fn_arith () |
| 5922 |
{ |
| 5923 |
as_val=`expr "$@" || test $? -eq 1` |
| 5924 |
} ;; |
| 5925 |
esac |
| 5926 |
fi # as_fn_arith |
| 5927 |
|
| 5928 |
|
| 5929 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 5930 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 5931 |
as_expr=expr |
| 5932 |
else |
| 5933 |
as_expr=false |
| 5934 |
fi |
| 5935 |
|
| 5936 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 5937 |
as_basename=basename |
| 5938 |
else |
| 5939 |
as_basename=false |
| 5940 |
fi |
| 5941 |
|
| 5942 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 5943 |
as_dirname=dirname |
| 5944 |
else |
| 5945 |
as_dirname=false |
| 5946 |
fi |
| 5947 |
|
| 5948 |
as_me=`$as_basename -- "$0" || |
| 5949 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 5950 |
X"$0" : 'X\(//\)$' \| \ |
| 5951 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 5952 |
printf "%s\n" X/"$0" | |
| 5953 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 5954 |
s//\1/ |
| 5955 |
q |
| 5956 |
} |
| 5957 |
/^X\/\(\/\/\)$/{ |
| 5958 |
s//\1/ |
| 5959 |
q |
| 5960 |
} |
| 5961 |
/^X\/\(\/\).*/{ |
| 5962 |
s//\1/ |
| 5963 |
q |
| 5964 |
} |
| 5965 |
s/.*/./; q'` |
| 5966 |
|
| 5967 |
# Avoid depending upon Character Ranges. |
| 5968 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 5969 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 5970 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 5971 |
as_cr_digits='0123456789' |
| 5972 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 5973 |
|
| 5974 |
|
| 5975 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 5976 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 5977 |
# for compatibility with existing Makefiles. |
| 5978 |
ECHO_C= ECHO_N= ECHO_T= |
| 5979 |
case `echo -n x` in #((((( |
| 5980 |
-n*) |
| 5981 |
case `echo 'xy\c'` in |
| 5982 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 5983 |
xy) ECHO_C='\c';; |
| 5984 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 5985 |
ECHO_T=' ';; |
| 5986 |
esac;; |
| 5987 |
*) |
| 5988 |
ECHO_N='-n';; |
| 5989 |
esac |
| 5990 |
|
| 5991 |
# For backward compatibility with old third-party macros, we provide |
| 5992 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 5993 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 5994 |
as_echo='printf %s\n' |
| 5995 |
as_echo_n='printf %s' |
| 5996 |
|
| 5997 |
rm -f conf$$ conf$$.exe conf$$.file |
| 5998 |
if test -d conf$$.dir; then |
| 5999 |
rm -f conf$$.dir/conf$$.file |
| 6000 |
else |
| 6001 |
rm -f conf$$.dir |
| 6002 |
mkdir conf$$.dir 2>/dev/null |
| 6003 |
fi |
| 6004 |
if (echo >conf$$.file) 2>/dev/null; then |
| 6005 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 6006 |
as_ln_s='ln -s' |
| 6007 |
# ... but there are two gotchas: |
| 6008 |
# 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 6009 |
# 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 6010 |
# In both cases, we have to default to 'cp -pR'. |
| 6011 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 6012 |
as_ln_s='cp -pR' |
| 6013 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 6014 |
as_ln_s=ln |
| 6015 |
else |
| 6016 |
as_ln_s='cp -pR' |
| 6017 |
fi |
| 6018 |
else |
| 6019 |
as_ln_s='cp -pR' |
| 6020 |
fi |
| 6021 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 6022 |
rmdir conf$$.dir 2>/dev/null |
| 6023 |
|
| 6024 |
|
| 6025 |
# as_fn_mkdir_p |
| 6026 |
# ------------- |
| 6027 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 6028 |
as_fn_mkdir_p () |
| 6029 |
{ |
| 6030 |
|
| 6031 |
case $as_dir in #( |
| 6032 |
-*) as_dir=./$as_dir;; |
| 6033 |
esac |
| 6034 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 6035 |
as_dirs= |
| 6036 |
while :; do |
| 6037 |
case $as_dir in #( |
| 6038 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 6039 |
*) as_qdir=$as_dir;; |
| 6040 |
esac |
| 6041 |
as_dirs="'$as_qdir' $as_dirs" |
| 6042 |
as_dir=`$as_dirname -- "$as_dir" || |
| 6043 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6044 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6045 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 6046 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 6047 |
printf "%s\n" X"$as_dir" | |
| 6048 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6049 |
s//\1/ |
| 6050 |
q |
| 6051 |
} |
| 6052 |
/^X\(\/\/\)[^/].*/{ |
| 6053 |
s//\1/ |
| 6054 |
q |
| 6055 |
} |
| 6056 |
/^X\(\/\/\)$/{ |
| 6057 |
s//\1/ |
| 6058 |
q |
| 6059 |
} |
| 6060 |
/^X\(\/\).*/{ |
| 6061 |
s//\1/ |
| 6062 |
q |
| 6063 |
} |
| 6064 |
s/.*/./; q'` |
| 6065 |
test -d "$as_dir" && break |
| 6066 |
done |
| 6067 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 6068 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 6069 |
|
| 6070 |
|
| 6071 |
} # as_fn_mkdir_p |
| 6072 |
if mkdir -p . 2>/dev/null; then |
| 6073 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 6074 |
else |
| 6075 |
test -d ./-p && rmdir ./-p |
| 6076 |
as_mkdir_p=false |
| 6077 |
fi |
| 6078 |
|
| 6079 |
|
| 6080 |
# as_fn_executable_p FILE |
| 6081 |
# ----------------------- |
| 6082 |
# Test if FILE is an executable regular file. |
| 6083 |
as_fn_executable_p () |
| 6084 |
{ |
| 6085 |
test -f "$1" && test -x "$1" |
| 6086 |
} # as_fn_executable_p |
| 6087 |
as_test_x='test -x' |
| 6088 |
as_executable_p=as_fn_executable_p |
| 6089 |
|
| 6090 |
# Sed expression to map a string onto a valid CPP name. |
| 6091 |
as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 6092 |
as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 6093 |
|
| 6094 |
# Sed expression to map a string onto a valid variable name. |
| 6095 |
as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 6096 |
as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 6097 |
|
| 6098 |
|
| 6099 |
exec 6>&1 |
| 6100 |
## ----------------------------------- ## |
| 6101 |
## Main body of $CONFIG_STATUS script. ## |
| 6102 |
## ----------------------------------- ## |
| 6103 |
_ASEOF |
| 6104 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 6105 |
|
| 6106 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6107 |
# Save the log message, to keep $0 and so on meaningful, and to |
| 6108 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 6109 |
# values after options handling. |
| 6110 |
ac_log=" |
| 6111 |
This file was extended by phonesim $as_me 2.1, which was |
| 6112 |
generated by GNU Autoconf 2.72. Invocation command line was |
| 6113 |
|
| 6114 |
CONFIG_FILES = $CONFIG_FILES |
| 6115 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 6116 |
CONFIG_LINKS = $CONFIG_LINKS |
| 6117 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 6118 |
$ $0 $@ |
| 6119 |
|
| 6120 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 6121 |
" |
| 6122 |
|
| 6123 |
_ACEOF |
| 6124 |
|
| 6125 |
case $ac_config_files in *" |
| 6126 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 6127 |
esac |
| 6128 |
|
| 6129 |
|
| 6130 |
|
| 6131 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6132 |
# Files that config.status was made for. |
| 6133 |
config_files="$ac_config_files" |
| 6134 |
config_commands="$ac_config_commands" |
| 6135 |
|
| 6136 |
_ACEOF |
| 6137 |
|
| 6138 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6139 |
ac_cs_usage="\ |
| 6140 |
'$as_me' instantiates files and other configuration actions |
| 6141 |
from templates according to the current configuration. Unless the files |
| 6142 |
and actions are specified as TAGs, all are instantiated by default. |
| 6143 |
|
| 6144 |
Usage: $0 [OPTION]... [TAG]... |
| 6145 |
|
| 6146 |
-h, --help print this help, then exit |
| 6147 |
-V, --version print version number and configuration settings, then exit |
| 6148 |
--config print configuration, then exit |
| 6149 |
-q, --quiet, --silent |
| 6150 |
do not print progress messages |
| 6151 |
-d, --debug don't remove temporary files |
| 6152 |
--recheck update $as_me by reconfiguring in the same conditions |
| 6153 |
--file=FILE[:TEMPLATE] |
| 6154 |
instantiate the configuration file FILE |
| 6155 |
|
| 6156 |
Configuration files: |
| 6157 |
$config_files |
| 6158 |
|
| 6159 |
Configuration commands: |
| 6160 |
$config_commands |
| 6161 |
|
| 6162 |
Report bugs to the package provider." |
| 6163 |
|
| 6164 |
_ACEOF |
| 6165 |
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 6166 |
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 6167 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6168 |
ac_cs_config='$ac_cs_config_escaped' |
| 6169 |
ac_cs_version="\\ |
| 6170 |
phonesim config.status 2.1 |
| 6171 |
configured by $0, generated by GNU Autoconf 2.72, |
| 6172 |
with options \\"\$ac_cs_config\\" |
| 6173 |
|
| 6174 |
Copyright (C) 2023 Free Software Foundation, Inc. |
| 6175 |
This config.status script is free software; the Free Software Foundation |
| 6176 |
gives unlimited permission to copy, distribute and modify it." |
| 6177 |
|
| 6178 |
ac_pwd='$ac_pwd' |
| 6179 |
srcdir='$srcdir' |
| 6180 |
INSTALL='$INSTALL' |
| 6181 |
MKDIR_P='$MKDIR_P' |
| 6182 |
AWK='$AWK' |
| 6183 |
test -n "\$AWK" || AWK=awk |
| 6184 |
_ACEOF |
| 6185 |
|
| 6186 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6187 |
# The default lists apply if the user does not specify any file. |
| 6188 |
ac_need_defaults=: |
| 6189 |
while test $# != 0 |
| 6190 |
do |
| 6191 |
case $1 in |
| 6192 |
--*=?*) |
| 6193 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 6194 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 6195 |
ac_shift=: |
| 6196 |
;; |
| 6197 |
--*=) |
| 6198 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 6199 |
ac_optarg= |
| 6200 |
ac_shift=: |
| 6201 |
;; |
| 6202 |
*) |
| 6203 |
ac_option=$1 |
| 6204 |
ac_optarg=$2 |
| 6205 |
ac_shift=shift |
| 6206 |
;; |
| 6207 |
esac |
| 6208 |
|
| 6209 |
case $ac_option in |
| 6210 |
# Handling of the options. |
| 6211 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 6212 |
ac_cs_recheck=: ;; |
| 6213 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 6214 |
printf "%s\n" "$ac_cs_version"; exit ;; |
| 6215 |
--config | --confi | --conf | --con | --co | --c ) |
| 6216 |
printf "%s\n" "$ac_cs_config"; exit ;; |
| 6217 |
--debug | --debu | --deb | --de | --d | -d ) |
| 6218 |
debug=: ;; |
| 6219 |
--file | --fil | --fi | --f ) |
| 6220 |
$ac_shift |
| 6221 |
case $ac_optarg in |
| 6222 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6223 |
'') as_fn_error $? "missing file argument" ;; |
| 6224 |
esac |
| 6225 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 6226 |
ac_need_defaults=false;; |
| 6227 |
--he | --h | --help | --hel | -h ) |
| 6228 |
printf "%s\n" "$ac_cs_usage"; exit ;; |
| 6229 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 6230 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 6231 |
ac_cs_silent=: ;; |
| 6232 |
|
| 6233 |
# This is an error. |
| 6234 |
-*) as_fn_error $? "unrecognized option: '$1' |
| 6235 |
Try '$0 --help' for more information." ;; |
| 6236 |
|
| 6237 |
*) as_fn_append ac_config_targets " $1" |
| 6238 |
ac_need_defaults=false ;; |
| 6239 |
|
| 6240 |
esac |
| 6241 |
shift |
| 6242 |
done |
| 6243 |
|
| 6244 |
ac_configure_extra_args= |
| 6245 |
|
| 6246 |
if $ac_cs_silent; then |
| 6247 |
exec 6>/dev/null |
| 6248 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 6249 |
fi |
| 6250 |
|
| 6251 |
_ACEOF |
| 6252 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6253 |
if \$ac_cs_recheck; then |
| 6254 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 6255 |
shift |
| 6256 |
\printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 6257 |
CONFIG_SHELL='$SHELL' |
| 6258 |
export CONFIG_SHELL |
| 6259 |
exec "\$@" |
| 6260 |
fi |
| 6261 |
|
| 6262 |
_ACEOF |
| 6263 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6264 |
exec 5>>config.log |
| 6265 |
{ |
| 6266 |
echo |
| 6267 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 6268 |
## Running $as_me. ## |
| 6269 |
_ASBOX |
| 6270 |
printf "%s\n" "$ac_log" |
| 6271 |
} >&5 |
| 6272 |
|
| 6273 |
_ACEOF |
| 6274 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6275 |
# |
| 6276 |
# INIT-COMMANDS |
| 6277 |
# |
| 6278 |
AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" |
| 6279 |
|
| 6280 |
_ACEOF |
| 6281 |
|
| 6282 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6283 |
|
| 6284 |
# Handling of arguments. |
| 6285 |
for ac_config_target in $ac_config_targets |
| 6286 |
do |
| 6287 |
case $ac_config_target in |
| 6288 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 6289 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 6290 |
|
| 6291 |
*) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; |
| 6292 |
esac |
| 6293 |
done |
| 6294 |
|
| 6295 |
|
| 6296 |
# If the user did not use the arguments to specify the items to instantiate, |
| 6297 |
# then the envvar interface is used. Set only those that are not. |
| 6298 |
# We use the long form for the default assignment because of an extremely |
| 6299 |
# bizarre bug on SunOS 4.1.3. |
| 6300 |
if $ac_need_defaults; then |
| 6301 |
test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 6302 |
test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands |
| 6303 |
fi |
| 6304 |
|
| 6305 |
# Have a temporary directory for convenience. Make it in the build tree |
| 6306 |
# simply because there is no reason against having it here, and in addition, |
| 6307 |
# creating and moving files from /tmp can sometimes cause problems. |
| 6308 |
# Hook for its removal unless debugging. |
| 6309 |
# Note that there is a small window in which the directory will not be cleaned: |
| 6310 |
# after its creation but before its name has been assigned to '$tmp'. |
| 6311 |
$debug || |
| 6312 |
{ |
| 6313 |
tmp= ac_tmp= |
| 6314 |
trap 'exit_status=$? |
| 6315 |
: "${ac_tmp:=$tmp}" |
| 6316 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 6317 |
' 0 |
| 6318 |
trap 'as_fn_exit 1' 1 2 13 15 |
| 6319 |
} |
| 6320 |
# Create a (secure) tmp directory for tmp files. |
| 6321 |
|
| 6322 |
{ |
| 6323 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 6324 |
test -d "$tmp" |
| 6325 |
} || |
| 6326 |
{ |
| 6327 |
tmp=./conf$$-$RANDOM |
| 6328 |
(umask 077 && mkdir "$tmp") |
| 6329 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 6330 |
ac_tmp=$tmp |
| 6331 |
|
| 6332 |
# Set up the scripts for CONFIG_FILES section. |
| 6333 |
# No need to generate them if there are no CONFIG_FILES. |
| 6334 |
# This happens for instance with './config.status config.h'. |
| 6335 |
if test -n "$CONFIG_FILES"; then |
| 6336 |
|
| 6337 |
|
| 6338 |
ac_cr=`echo X | tr X '\015'` |
| 6339 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 6340 |
# But we know of no other shell where ac_cr would be empty at this |
| 6341 |
# point, so we can use a bashism as a fallback. |
| 6342 |
if test "x$ac_cr" = x; then |
| 6343 |
eval ac_cr=\$\'\\r\' |
| 6344 |
fi |
| 6345 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 6346 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 6347 |
ac_cs_awk_cr='\\r' |
| 6348 |
else |
| 6349 |
ac_cs_awk_cr=$ac_cr |
| 6350 |
fi |
| 6351 |
|
| 6352 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 6353 |
_ACEOF |
| 6354 |
|
| 6355 |
|
| 6356 |
{ |
| 6357 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
| 6358 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 6359 |
echo "_ACEOF" |
| 6360 |
} >conf$$subs.sh || |
| 6361 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6362 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 6363 |
ac_delim='%!_!# ' |
| 6364 |
for ac_last_try in false false false false false :; do |
| 6365 |
. ./conf$$subs.sh || |
| 6366 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6367 |
|
| 6368 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 6369 |
if test $ac_delim_n = $ac_delim_num; then |
| 6370 |
break |
| 6371 |
elif $ac_last_try; then |
| 6372 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6373 |
else |
| 6374 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 6375 |
fi |
| 6376 |
done |
| 6377 |
rm -f conf$$subs.sh |
| 6378 |
|
| 6379 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6380 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 6381 |
_ACEOF |
| 6382 |
sed -n ' |
| 6383 |
h |
| 6384 |
s/^/S["/; s/!.*/"]=/ |
| 6385 |
p |
| 6386 |
g |
| 6387 |
s/^[^!]*!// |
| 6388 |
:repl |
| 6389 |
t repl |
| 6390 |
s/'"$ac_delim"'$// |
| 6391 |
t delim |
| 6392 |
:nl |
| 6393 |
h |
| 6394 |
s/\(.\{148\}\)..*/\1/ |
| 6395 |
t more1 |
| 6396 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 6397 |
p |
| 6398 |
n |
| 6399 |
b repl |
| 6400 |
:more1 |
| 6401 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6402 |
p |
| 6403 |
g |
| 6404 |
s/.\{148\}// |
| 6405 |
t nl |
| 6406 |
:delim |
| 6407 |
h |
| 6408 |
s/\(.\{148\}\)..*/\1/ |
| 6409 |
t more2 |
| 6410 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 6411 |
p |
| 6412 |
b |
| 6413 |
:more2 |
| 6414 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6415 |
p |
| 6416 |
g |
| 6417 |
s/.\{148\}// |
| 6418 |
t delim |
| 6419 |
' <conf$$subs.awk | sed ' |
| 6420 |
/^[^""]/{ |
| 6421 |
N |
| 6422 |
s/\n// |
| 6423 |
} |
| 6424 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6425 |
rm -f conf$$subs.awk |
| 6426 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6427 |
_ACAWK |
| 6428 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 6429 |
for (key in S) S_is_set[key] = 1 |
| 6430 |
FS = "" |
| 6431 |
|
| 6432 |
} |
| 6433 |
{ |
| 6434 |
line = $ 0 |
| 6435 |
nfields = split(line, field, "@") |
| 6436 |
substed = 0 |
| 6437 |
len = length(field[1]) |
| 6438 |
for (i = 2; i < nfields; i++) { |
| 6439 |
key = field[i] |
| 6440 |
keylen = length(key) |
| 6441 |
if (S_is_set[key]) { |
| 6442 |
value = S[key] |
| 6443 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 6444 |
len += length(value) + length(field[++i]) |
| 6445 |
substed = 1 |
| 6446 |
} else |
| 6447 |
len += 1 + keylen |
| 6448 |
} |
| 6449 |
|
| 6450 |
print line |
| 6451 |
} |
| 6452 |
|
| 6453 |
_ACAWK |
| 6454 |
_ACEOF |
| 6455 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6456 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 6457 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 6458 |
else |
| 6459 |
cat |
| 6460 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 6461 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 6462 |
_ACEOF |
| 6463 |
|
| 6464 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 6465 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 6466 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 6467 |
# (actually we leave an empty line to preserve line numbers). |
| 6468 |
if test "x$srcdir" = x.; then |
| 6469 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 6470 |
h |
| 6471 |
s/// |
| 6472 |
s/^/:/ |
| 6473 |
s/[ ]*$/:/ |
| 6474 |
s/:\$(srcdir):/:/g |
| 6475 |
s/:\${srcdir}:/:/g |
| 6476 |
s/:@srcdir@:/:/g |
| 6477 |
s/^:*// |
| 6478 |
s/:*$// |
| 6479 |
x |
| 6480 |
s/\(=[ ]*\).*/\1/ |
| 6481 |
G |
| 6482 |
s/\n// |
| 6483 |
s/^[^=]*=[ ]*$// |
| 6484 |
}' |
| 6485 |
fi |
| 6486 |
|
| 6487 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6488 |
fi # test -n "$CONFIG_FILES" |
| 6489 |
|
| 6490 |
|
| 6491 |
eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
| 6492 |
shift |
| 6493 |
for ac_tag |
| 6494 |
do |
| 6495 |
case $ac_tag in |
| 6496 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
| 6497 |
esac |
| 6498 |
case $ac_mode$ac_tag in |
| 6499 |
:[FHL]*:*);; |
| 6500 |
:L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; |
| 6501 |
:[FH]-) ac_tag=-:-;; |
| 6502 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 6503 |
esac |
| 6504 |
ac_save_IFS=$IFS |
| 6505 |
IFS=: |
| 6506 |
set x $ac_tag |
| 6507 |
IFS=$ac_save_IFS |
| 6508 |
shift |
| 6509 |
ac_file=$1 |
| 6510 |
shift |
| 6511 |
|
| 6512 |
case $ac_mode in |
| 6513 |
:L) ac_source=$1;; |
| 6514 |
:[FH]) |
| 6515 |
ac_file_inputs= |
| 6516 |
for ac_f |
| 6517 |
do |
| 6518 |
case $ac_f in |
| 6519 |
-) ac_f="$ac_tmp/stdin";; |
| 6520 |
*) # Look for the file first in the build tree, then in the source tree |
| 6521 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
| 6522 |
# because $ac_f cannot contain ':'. |
| 6523 |
test -f "$ac_f" || |
| 6524 |
case $ac_f in |
| 6525 |
[\\/$]*) false;; |
| 6526 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 6527 |
esac || |
| 6528 |
as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; |
| 6529 |
esac |
| 6530 |
case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 6531 |
as_fn_append ac_file_inputs " '$ac_f'" |
| 6532 |
done |
| 6533 |
|
| 6534 |
# Let's still pretend it is 'configure' which instantiates (i.e., don't |
| 6535 |
# use $as_me), people would be surprised to read: |
| 6536 |
# /* config.h. Generated by config.status. */ |
| 6537 |
configure_input='Generated from '` |
| 6538 |
printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 6539 |
`' by configure.' |
| 6540 |
if test x"$ac_file" != x-; then |
| 6541 |
configure_input="$ac_file. $configure_input" |
| 6542 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 6543 |
printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 6544 |
fi |
| 6545 |
# Neutralize special characters interpreted by sed in replacement strings. |
| 6546 |
case $configure_input in #( |
| 6547 |
*\&* | *\|* | *\\* ) |
| 6548 |
ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 6549 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 6550 |
*) ac_sed_conf_input=$configure_input;; |
| 6551 |
esac |
| 6552 |
|
| 6553 |
case $ac_tag in |
| 6554 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 6555 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 6556 |
esac |
| 6557 |
;; |
| 6558 |
esac |
| 6559 |
|
| 6560 |
ac_dir=`$as_dirname -- "$ac_file" || |
| 6561 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6562 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6563 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 6564 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 6565 |
printf "%s\n" X"$ac_file" | |
| 6566 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6567 |
s//\1/ |
| 6568 |
q |
| 6569 |
} |
| 6570 |
/^X\(\/\/\)[^/].*/{ |
| 6571 |
s//\1/ |
| 6572 |
q |
| 6573 |
} |
| 6574 |
/^X\(\/\/\)$/{ |
| 6575 |
s//\1/ |
| 6576 |
q |
| 6577 |
} |
| 6578 |
/^X\(\/\).*/{ |
| 6579 |
s//\1/ |
| 6580 |
q |
| 6581 |
} |
| 6582 |
s/.*/./; q'` |
| 6583 |
as_dir="$ac_dir"; as_fn_mkdir_p |
| 6584 |
ac_builddir=. |
| 6585 |
|
| 6586 |
case "$ac_dir" in |
| 6587 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6588 |
*) |
| 6589 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 6590 |
# A ".." for each directory in $ac_dir_suffix. |
| 6591 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 6592 |
case $ac_top_builddir_sub in |
| 6593 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6594 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 6595 |
esac ;; |
| 6596 |
esac |
| 6597 |
ac_abs_top_builddir=$ac_pwd |
| 6598 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 6599 |
# for backward compatibility: |
| 6600 |
ac_top_builddir=$ac_top_build_prefix |
| 6601 |
|
| 6602 |
case $srcdir in |
| 6603 |
.) # We are building in place. |
| 6604 |
ac_srcdir=. |
| 6605 |
ac_top_srcdir=$ac_top_builddir_sub |
| 6606 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 6607 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 6608 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 6609 |
ac_top_srcdir=$srcdir |
| 6610 |
ac_abs_top_srcdir=$srcdir ;; |
| 6611 |
*) # Relative name. |
| 6612 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 6613 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 6614 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 6615 |
esac |
| 6616 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 6617 |
|
| 6618 |
|
| 6619 |
case $ac_mode in |
| 6620 |
:F) |
| 6621 |
# |
| 6622 |
# CONFIG_FILE |
| 6623 |
# |
| 6624 |
|
| 6625 |
case $INSTALL in |
| 6626 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 6627 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 6628 |
esac |
| 6629 |
ac_MKDIR_P=$MKDIR_P |
| 6630 |
case $MKDIR_P in |
| 6631 |
[\\/$]* | ?:[\\/]* ) ;; |
| 6632 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 6633 |
esac |
| 6634 |
_ACEOF |
| 6635 |
|
| 6636 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6637 |
# If the template does not know about datarootdir, expand it. |
| 6638 |
# FIXME: This hack should be removed a few years after 2.60. |
| 6639 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
| 6640 |
ac_sed_dataroot=' |
| 6641 |
/datarootdir/ { |
| 6642 |
p |
| 6643 |
q |
| 6644 |
} |
| 6645 |
/@datadir@/p |
| 6646 |
/@docdir@/p |
| 6647 |
/@infodir@/p |
| 6648 |
/@localedir@/p |
| 6649 |
/@mandir@/p' |
| 6650 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 6651 |
*datarootdir*) ac_datarootdir_seen=yes;; |
| 6652 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 6653 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 6654 |
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 6655 |
_ACEOF |
| 6656 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6657 |
ac_datarootdir_hack=' |
| 6658 |
s&@datadir@&$datadir&g |
| 6659 |
s&@docdir@&$docdir&g |
| 6660 |
s&@infodir@&$infodir&g |
| 6661 |
s&@localedir@&$localedir&g |
| 6662 |
s&@mandir@&$mandir&g |
| 6663 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
| 6664 |
esac |
| 6665 |
_ACEOF |
| 6666 |
|
| 6667 |
# Neutralize VPATH when '$srcdir' = '.'. |
| 6668 |
# Shell code in configure.ac might set extrasub. |
| 6669 |
# FIXME: do we really want to maintain this feature? |
| 6670 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6671 |
ac_sed_extra="$ac_vpsub |
| 6672 |
$extrasub |
| 6673 |
_ACEOF |
| 6674 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6675 |
:t |
| 6676 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 6677 |
s|@configure_input@|$ac_sed_conf_input|;t t |
| 6678 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 6679 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 6680 |
s&@srcdir@&$ac_srcdir&;t t |
| 6681 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 6682 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
| 6683 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 6684 |
s&@builddir@&$ac_builddir&;t t |
| 6685 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
| 6686 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 6687 |
s&@INSTALL@&$ac_INSTALL&;t t |
| 6688 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 6689 |
$ac_datarootdir_hack |
| 6690 |
" |
| 6691 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 6692 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6693 |
|
| 6694 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 6695 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 6696 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 6697 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
| 6698 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 6699 |
which seems to be undefined. Please make sure it is defined" >&5 |
| 6700 |
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 6701 |
which seems to be undefined. Please make sure it is defined" >&2;} |
| 6702 |
|
| 6703 |
rm -f "$ac_tmp/stdin" |
| 6704 |
case $ac_file in |
| 6705 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 6706 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 6707 |
esac \ |
| 6708 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6709 |
;; |
| 6710 |
|
| 6711 |
|
| 6712 |
:C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 6713 |
printf "%s\n" "$as_me: executing $ac_file commands" >&6;} |
| 6714 |
;; |
| 6715 |
esac |
| 6716 |
|
| 6717 |
|
| 6718 |
case $ac_file$ac_mode in |
| 6719 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 6720 |
# Older Autoconf quotes --file arguments for eval, but not when files |
| 6721 |
# are listed without --file. Let's play safe and only enable the eval |
| 6722 |
# if we detect the quoting. |
| 6723 |
# TODO: see whether this extra hack can be removed once we start |
| 6724 |
# requiring Autoconf 2.70 or later. |
| 6725 |
case $CONFIG_FILES in #( |
| 6726 |
*\'*) : |
| 6727 |
eval set x "$CONFIG_FILES" ;; #( |
| 6728 |
*) : |
| 6729 |
set x $CONFIG_FILES ;; #( |
| 6730 |
*) : |
| 6731 |
;; |
| 6732 |
esac |
| 6733 |
shift |
| 6734 |
# Used to flag and report bootstrapping failures. |
| 6735 |
am_rc=0 |
| 6736 |
for am_mf |
| 6737 |
do |
| 6738 |
# Strip MF so we end up with the name of the file. |
| 6739 |
am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` |
| 6740 |
# Check whether this is an Automake generated Makefile which includes |
| 6741 |
# dependency-tracking related rules and includes. |
| 6742 |
# Grep'ing the whole file directly is not great: AIX grep has a line |
| 6743 |
# limit of 2048, but all sed's we know have understand at least 4000. |
| 6744 |
sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
| 6745 |
|| continue |
| 6746 |
am_dirpart=`$as_dirname -- "$am_mf" || |
| 6747 |
$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6748 |
X"$am_mf" : 'X\(//\)[^/]' \| \ |
| 6749 |
X"$am_mf" : 'X\(//\)$' \| \ |
| 6750 |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 6751 |
printf "%s\n" X"$am_mf" | |
| 6752 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6753 |
s//\1/ |
| 6754 |
q |
| 6755 |
} |
| 6756 |
/^X\(\/\/\)[^/].*/{ |
| 6757 |
s//\1/ |
| 6758 |
q |
| 6759 |
} |
| 6760 |
/^X\(\/\/\)$/{ |
| 6761 |
s//\1/ |
| 6762 |
q |
| 6763 |
} |
| 6764 |
/^X\(\/\).*/{ |
| 6765 |
s//\1/ |
| 6766 |
q |
| 6767 |
} |
| 6768 |
s/.*/./; q'` |
| 6769 |
am_filepart=`$as_basename -- "$am_mf" || |
| 6770 |
$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
| 6771 |
X"$am_mf" : 'X\(//\)$' \| \ |
| 6772 |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 6773 |
printf "%s\n" X/"$am_mf" | |
| 6774 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 6775 |
s//\1/ |
| 6776 |
q |
| 6777 |
} |
| 6778 |
/^X\/\(\/\/\)$/{ |
| 6779 |
s//\1/ |
| 6780 |
q |
| 6781 |
} |
| 6782 |
/^X\/\(\/\).*/{ |
| 6783 |
s//\1/ |
| 6784 |
q |
| 6785 |
} |
| 6786 |
s/.*/./; q'` |
| 6787 |
{ echo "$as_me:$LINENO: cd "$am_dirpart" \ |
| 6788 |
&& sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 6789 |
| $MAKE -f - am--depfiles" >&5 |
| 6790 |
(cd "$am_dirpart" \ |
| 6791 |
&& sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 6792 |
| $MAKE -f - am--depfiles) >&5 2>&5 |
| 6793 |
ac_status=$? |
| 6794 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6795 |
(exit $ac_status); } || am_rc=$? |
| 6796 |
done |
| 6797 |
if test $am_rc -ne 0; then |
| 6798 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 6799 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 6800 |
as_fn_error $? "Something went wrong bootstrapping makefile fragments |
| 6801 |
for automatic dependency tracking. If GNU make was not used, consider |
| 6802 |
re-running the configure script with MAKE=\"gmake\" (or whatever is |
| 6803 |
necessary). You can also try re-running configure with the |
| 6804 |
'--disable-dependency-tracking' option to at least be able to build |
| 6805 |
the package (albeit without support for automatic dependency tracking). |
| 6806 |
See 'config.log' for more details" "$LINENO" 5; } |
| 6807 |
fi |
| 6808 |
{ am_dirpart=; unset am_dirpart;} |
| 6809 |
{ am_filepart=; unset am_filepart;} |
| 6810 |
{ am_mf=; unset am_mf;} |
| 6811 |
{ am_rc=; unset am_rc;} |
| 6812 |
rm -f conftest-deps.mk |
| 6813 |
} |
| 6814 |
;; |
| 6815 |
|
| 6816 |
esac |
| 6817 |
done # for ac_tag |
| 6818 |
|
| 6819 |
|
| 6820 |
as_fn_exit 0 |
| 6821 |
_ACEOF |
| 6822 |
ac_clean_files=$ac_clean_files_save |
| 6823 |
|
| 6824 |
test $ac_write_fail = 0 || |
| 6825 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 6826 |
|
| 6827 |
|
| 6828 |
# configure is writing to config.log, and then calls config.status. |
| 6829 |
# config.status does its own redirection, appending to config.log. |
| 6830 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 6831 |
# by configure, so config.status won't be able to write to it; its |
| 6832 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 6833 |
# effectively closing config.log, so it can be properly (re)opened and |
| 6834 |
# appended to by config.status. When coming back to configure, we |
| 6835 |
# need to make the FD available again. |
| 6836 |
if test "$no_create" != yes; then |
| 6837 |
ac_cs_success=: |
| 6838 |
ac_config_status_args= |
| 6839 |
test "$silent" = yes && |
| 6840 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 6841 |
exec 5>/dev/null |
| 6842 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 6843 |
exec 5>>config.log |
| 6844 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 6845 |
# would make configure fail if this is the last instruction. |
| 6846 |
$ac_cs_success || as_fn_exit 1 |
| 6847 |
fi |
| 6848 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 6849 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 6850 |
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 6851 |
fi |
| 6852 |
|
| 6853 |
|