toolkit/crashreporter/google-breakpad/configure

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rwxr-xr-x

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

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

mercurial