bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for breakpad 0.1. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4 | # |
thestig@chromium.org | 43e6db7 | 2010-11-08 19:49:41 +0000 | [diff] [blame] | 5 | # Report bugs to <google-breakpad-dev@googlegroups.com>. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6 | # |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7 | # |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 9 | # |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
| 26 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 32 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 33 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 34 | |
| 35 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in #( |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 81 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 82 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 92 | as_myself= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 93 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 102 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 103 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 114 | fi |
| 115 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 118 | # suppresses any "Segmentation fault" message there. '((' could |
| 119 | # trigger a bug in pdksh 5.2.14. |
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 | do eval test x\${$as_var+set} = xset \ |
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 133 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 137 | # Use a proper internal environment variable to ensure we don't fall |
| 138 | # into an infinite loop, continuously re-executing ourselves. |
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 | _as_can_reexec=no; export _as_can_reexec; |
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
| 142 | # neutralization value for shells without unset; and this also |
| 143 | # works around shells that cannot unset nonexistent variables. |
| 144 | # Preserve -v and -x to the replacement shell. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 156 | # out after a failed `exec'. |
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 162 | if test "x$CONFIG_SHELL" = x; then |
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 | emulate sh |
| 165 | NULLCMD=: |
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 | # is contrary to our usage. Disable this feature. |
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 | setopt NO_GLOB_SUBST |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 201 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 202 | if (eval "$as_required") 2>/dev/null; then : |
| 203 | as_have_required=yes |
| 204 | else |
| 205 | as_have_required=no |
| 206 | fi |
| 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 208 | |
| 209 | else |
| 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 211 | as_found=false |
| 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 213 | do |
| 214 | IFS=$as_save_IFS |
| 215 | test -z "$as_dir" && as_dir=. |
| 216 | as_found=: |
| 217 | case $as_dir in #( |
| 218 | /*) |
| 219 | for as_base in sh bash ksh sh5; do |
| 220 | # Try only shells that exist, to save several forks. |
| 221 | as_shell=$as_dir/$as_base |
| 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 226 | break 2 |
| 227 | fi |
| 228 | fi |
| 229 | done;; |
| 230 | esac |
| 231 | as_found=false |
| 232 | done |
| 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 235 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 236 | fi; } |
| 237 | IFS=$as_save_IFS |
| 238 | |
| 239 | |
| 240 | if test "x$CONFIG_SHELL" != x; then : |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 241 | export CONFIG_SHELL |
| 242 | # We cannot yet assume a decent shell, so we have to provide a |
| 243 | # neutralization value for shells without unset; and this also |
| 244 | # works around shells that cannot unset nonexistent variables. |
| 245 | # Preserve -v and -x to the replacement shell. |
| 246 | BASH_ENV=/dev/null |
| 247 | ENV=/dev/null |
| 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 249 | case $- in # (((( |
| 250 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 251 | *v* ) as_opts=-v ;; |
| 252 | *x* ) as_opts=-x ;; |
| 253 | * ) as_opts= ;; |
| 254 | esac |
| 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 256 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 257 | # out after a failed `exec'. |
| 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 259 | exit 255 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 260 | fi |
| 261 | |
| 262 | if test x$as_have_required = xno; then : |
| 263 | $as_echo "$0: This script requires a shell more modern than all" |
| 264 | $as_echo "$0: the shells that I found on your system." |
| 265 | if test x${ZSH_VERSION+set} = xset ; then |
| 266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 268 | else |
| 269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 270 | $0: google-breakpad-dev@googlegroups.com about your system, |
| 271 | $0: including any error possibly output before this |
| 272 | $0: message. Then install a modern shell, or manually run |
| 273 | $0: the script under such a shell if you do have one." |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 274 | fi |
| 275 | exit 1 |
| 276 | fi |
| 277 | fi |
| 278 | fi |
| 279 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 280 | export SHELL |
| 281 | # Unset more variables known to interfere with behavior of common tools. |
| 282 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 283 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 284 | |
| 285 | ## --------------------- ## |
| 286 | ## M4sh Shell Functions. ## |
| 287 | ## --------------------- ## |
| 288 | # as_fn_unset VAR |
| 289 | # --------------- |
| 290 | # Portably unset VAR. |
| 291 | as_fn_unset () |
| 292 | { |
| 293 | { eval $1=; unset $1;} |
| 294 | } |
| 295 | as_unset=as_fn_unset |
| 296 | |
| 297 | # as_fn_set_status STATUS |
| 298 | # ----------------------- |
| 299 | # Set $? to STATUS, without forking. |
| 300 | as_fn_set_status () |
| 301 | { |
| 302 | return $1 |
| 303 | } # as_fn_set_status |
| 304 | |
| 305 | # as_fn_exit STATUS |
| 306 | # ----------------- |
| 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 308 | as_fn_exit () |
| 309 | { |
| 310 | set +e |
| 311 | as_fn_set_status $1 |
| 312 | exit $1 |
| 313 | } # as_fn_exit |
| 314 | |
| 315 | # as_fn_mkdir_p |
| 316 | # ------------- |
| 317 | # Create "$as_dir" as a directory, including parents if necessary. |
| 318 | as_fn_mkdir_p () |
| 319 | { |
| 320 | |
| 321 | case $as_dir in #( |
| 322 | -*) as_dir=./$as_dir;; |
| 323 | esac |
| 324 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 325 | as_dirs= |
| 326 | while :; do |
| 327 | case $as_dir in #( |
| 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 329 | *) as_qdir=$as_dir;; |
| 330 | esac |
| 331 | as_dirs="'$as_qdir' $as_dirs" |
| 332 | as_dir=`$as_dirname -- "$as_dir" || |
| 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 335 | X"$as_dir" : 'X\(//\)$' \| \ |
| 336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 337 | $as_echo X"$as_dir" | |
| 338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 339 | s//\1/ |
| 340 | q |
| 341 | } |
| 342 | /^X\(\/\/\)[^/].*/{ |
| 343 | s//\1/ |
| 344 | q |
| 345 | } |
| 346 | /^X\(\/\/\)$/{ |
| 347 | s//\1/ |
| 348 | q |
| 349 | } |
| 350 | /^X\(\/\).*/{ |
| 351 | s//\1/ |
| 352 | q |
| 353 | } |
| 354 | s/.*/./; q'` |
| 355 | test -d "$as_dir" && break |
| 356 | done |
| 357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 359 | |
| 360 | |
| 361 | } # as_fn_mkdir_p |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 362 | |
| 363 | # as_fn_executable_p FILE |
| 364 | # ----------------------- |
| 365 | # Test if FILE is an executable regular file. |
| 366 | as_fn_executable_p () |
| 367 | { |
| 368 | test -f "$1" && test -x "$1" |
| 369 | } # as_fn_executable_p |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 370 | # as_fn_append VAR VALUE |
| 371 | # ---------------------- |
| 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 373 | # advantage of any shell optimizations that allow amortized linear growth over |
| 374 | # repeated appends, instead of the typical quadratic growth present in naive |
| 375 | # implementations. |
| 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 377 | eval 'as_fn_append () |
| 378 | { |
| 379 | eval $1+=\$2 |
| 380 | }' |
| 381 | else |
| 382 | as_fn_append () |
| 383 | { |
| 384 | eval $1=\$$1\$2 |
| 385 | } |
| 386 | fi # as_fn_append |
| 387 | |
| 388 | # as_fn_arith ARG... |
| 389 | # ------------------ |
| 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 392 | # must be portable across $(()) and expr. |
| 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 394 | eval 'as_fn_arith () |
| 395 | { |
| 396 | as_val=$(( $* )) |
| 397 | }' |
| 398 | else |
| 399 | as_fn_arith () |
| 400 | { |
| 401 | as_val=`expr "$@" || test $? -eq 1` |
| 402 | } |
| 403 | fi # as_fn_arith |
| 404 | |
| 405 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 407 | # ---------------------------------------- |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 410 | # script with STATUS, using 1 if that was 0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 411 | as_fn_error () |
| 412 | { |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 414 | if test "$4"; then |
| 415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 417 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 418 | $as_echo "$as_me: error: $2" >&2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 419 | as_fn_exit $as_status |
| 420 | } # as_fn_error |
| 421 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 424 | as_expr=expr |
| 425 | else |
| 426 | as_expr=false |
| 427 | fi |
| 428 | |
| 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 430 | as_basename=basename |
| 431 | else |
| 432 | as_basename=false |
| 433 | fi |
| 434 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 436 | as_dirname=dirname |
| 437 | else |
| 438 | as_dirname=false |
| 439 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 440 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 441 | as_me=`$as_basename -- "$0" || |
| 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 443 | X"$0" : 'X\(//\)$' \| \ |
| 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 445 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 447 | s//\1/ |
| 448 | q |
| 449 | } |
| 450 | /^X\/\(\/\/\)$/{ |
| 451 | s//\1/ |
| 452 | q |
| 453 | } |
| 454 | /^X\/\(\/\).*/{ |
| 455 | s//\1/ |
| 456 | q |
| 457 | } |
| 458 | s/.*/./; q'` |
| 459 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 460 | # Avoid depending upon Character Ranges. |
| 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 464 | as_cr_digits='0123456789' |
| 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 466 | |
| 467 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 473 | sed -n ' |
| 474 | p |
| 475 | /[$]LINENO/= |
| 476 | ' <$as_myself | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 477 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 478 | s/[$]LINENO.*/&-/ |
| 479 | t lineno |
| 480 | b |
| 481 | :lineno |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 482 | N |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 483 | :loop |
| 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 485 | t loop |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 486 | s/-\n.*// |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 487 | ' >$as_me.lineno && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 488 | chmod +x "$as_me.lineno" || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 490 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 492 | # already done that, so ensure we don't try to do so again and fall |
| 493 | # in an infinite loop. This has already happened in practice. |
| 494 | _as_can_reexec=no; export _as_can_reexec |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 495 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 496 | # (the dirname of $[0] is not the place where we might find the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 497 | # original and so on. Autoconf is especially sensitive to this). |
| 498 | . "./$as_me.lineno" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 499 | # Exit status is that of the last command. |
| 500 | exit |
| 501 | } |
| 502 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 503 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 504 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 505 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 506 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 508 | xy) ECHO_C='\c';; |
| 509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 510 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 511 | esac;; |
| 512 | *) |
| 513 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 514 | esac |
| 515 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 516 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 517 | if test -d conf$$.dir; then |
| 518 | rm -f conf$$.dir/conf$$.file |
| 519 | else |
| 520 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 521 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 522 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 523 | if (echo >conf$$.file) 2>/dev/null; then |
| 524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 525 | as_ln_s='ln -s' |
| 526 | # ... but there are two gotchas: |
| 527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 529 | # In both cases, we have to default to `cp -pR'. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 531 | as_ln_s='cp -pR' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 533 | as_ln_s=ln |
| 534 | else |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 536 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 537 | else |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 538 | as_ln_s='cp -pR' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 539 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 541 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 542 | |
| 543 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 544 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 545 | else |
| 546 | test -d ./-p && rmdir ./-p |
| 547 | as_mkdir_p=false |
| 548 | fi |
| 549 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 550 | as_test_x='test -x' |
| 551 | as_executable_p=as_fn_executable_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 552 | |
| 553 | # Sed expression to map a string onto a valid CPP name. |
| 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 555 | |
| 556 | # Sed expression to map a string onto a valid variable name. |
| 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 558 | |
| 559 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 561 | exec 6>&1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 562 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 563 | # Name of the host. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 565 | # so uname gets run too. |
| 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 567 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 568 | # |
| 569 | # Initializations. |
| 570 | # |
| 571 | ac_default_prefix=/usr/local |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 572 | ac_clean_files= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 573 | ac_config_libobj_dir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 574 | LIBOBJS= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 575 | cross_compiling=no |
| 576 | subdirs= |
| 577 | MFLAGS= |
| 578 | MAKEFLAGS= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 579 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 580 | # Identity of this package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 581 | PACKAGE_NAME='breakpad' |
| 582 | PACKAGE_TARNAME='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 583 | PACKAGE_VERSION='0.1' |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 584 | PACKAGE_STRING='breakpad 0.1' |
thestig@chromium.org | 43e6db7 | 2010-11-08 19:49:41 +0000 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='google-breakpad-dev@googlegroups.com' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 586 | PACKAGE_URL='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 587 | |
Mark Mentovai | f74c85d | 2015-09-23 10:46:55 -0400 | [diff] [blame] | 588 | ac_unique_file="README.md" |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 589 | # Factoring default headers for most tests. |
| 590 | ac_includes_default="\ |
| 591 | #include <stdio.h> |
| 592 | #ifdef HAVE_SYS_TYPES_H |
| 593 | # include <sys/types.h> |
| 594 | #endif |
| 595 | #ifdef HAVE_SYS_STAT_H |
| 596 | # include <sys/stat.h> |
| 597 | #endif |
| 598 | #ifdef STDC_HEADERS |
| 599 | # include <stdlib.h> |
| 600 | # include <stddef.h> |
| 601 | #else |
| 602 | # ifdef HAVE_STDLIB_H |
| 603 | # include <stdlib.h> |
| 604 | # endif |
| 605 | #endif |
| 606 | #ifdef HAVE_STRING_H |
| 607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 608 | # include <memory.h> |
| 609 | # endif |
| 610 | # include <string.h> |
| 611 | #endif |
| 612 | #ifdef HAVE_STRINGS_H |
| 613 | # include <strings.h> |
| 614 | #endif |
| 615 | #ifdef HAVE_INTTYPES_H |
| 616 | # include <inttypes.h> |
| 617 | #endif |
| 618 | #ifdef HAVE_STDINT_H |
| 619 | # include <stdint.h> |
| 620 | #endif |
| 621 | #ifdef HAVE_UNISTD_H |
| 622 | # include <unistd.h> |
| 623 | #endif" |
| 624 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 625 | ac_subst_vars='am__EXEEXT_FALSE |
| 626 | am__EXEEXT_TRUE |
| 627 | LTLIBOBJS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 628 | LIBOBJS |
Lars Volker | 49907e1 | 2018-01-31 13:29:11 -0800 | [diff] [blame] | 629 | TESTS_AS_ROOT_FALSE |
| 630 | TESTS_AS_ROOT_TRUE |
Ted Mielczarek | 2ecb2ba | 2016-10-24 15:16:28 -0400 | [diff] [blame] | 631 | RUST_DEMANGLE_LIBS |
| 632 | RUST_DEMANGLE_CFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 633 | SELFTEST_FALSE |
| 634 | SELFTEST_TRUE |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 635 | GTEST_LIBS |
| 636 | GTEST_CFLAGS |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 637 | GMOCK_LIBS |
| 638 | GMOCK_CFLAGS |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 639 | SYSTEM_TEST_LIBS_FALSE |
| 640 | SYSTEM_TEST_LIBS_TRUE |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 641 | DISABLE_TOOLS_FALSE |
| 642 | DISABLE_TOOLS_TRUE |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 643 | DISABLE_PROCESSOR_FALSE |
| 644 | DISABLE_PROCESSOR_TRUE |
Mike Frysinger | 3f736ce | 2016-01-27 16:45:21 -0500 | [diff] [blame] | 645 | X86_HOST_FALSE |
| 646 | X86_HOST_TRUE |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 647 | ANDROID_HOST_FALSE |
| 648 | ANDROID_HOST_TRUE |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 649 | LINUX_HOST_FALSE |
| 650 | LINUX_HOST_TRUE |
Mike Frysinger | 6cc0375 | 2017-02-06 15:10:13 -0500 | [diff] [blame] | 651 | WARN_CXXFLAGS |
Lei Zhang | 728bcdf | 2016-01-08 00:27:48 -0800 | [diff] [blame] | 652 | HAVE_CXX11 |
Michael Forney | e780d58 | 2020-03-16 12:56:56 -0700 | [diff] [blame] | 653 | HAVE_GETCONTEXT_FALSE |
| 654 | HAVE_GETCONTEXT_TRUE |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 655 | PTHREAD_CFLAGS |
| 656 | PTHREAD_LIBS |
| 657 | PTHREAD_CC |
| 658 | ax_pthread_config |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 659 | EGREP |
| 660 | GREP |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 661 | RANLIB |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 662 | am__fastdepCXX_FALSE |
| 663 | am__fastdepCXX_TRUE |
| 664 | CXXDEPMODE |
| 665 | ac_ct_CXX |
| 666 | CXXFLAGS |
| 667 | CXX |
| 668 | CPP |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 669 | am__fastdepCCAS_FALSE |
| 670 | am__fastdepCCAS_TRUE |
| 671 | CCASDEPMODE |
| 672 | CCASFLAGS |
| 673 | CCAS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 674 | am__fastdepCC_FALSE |
| 675 | am__fastdepCC_TRUE |
| 676 | CCDEPMODE |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 677 | am__nodep |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 678 | AMDEPBACKSLASH |
| 679 | AMDEP_FALSE |
| 680 | AMDEP_TRUE |
| 681 | am__quote |
| 682 | am__include |
| 683 | DEPDIR |
| 684 | OBJEXT |
| 685 | EXEEXT |
| 686 | ac_ct_CC |
| 687 | CPPFLAGS |
| 688 | LDFLAGS |
| 689 | CFLAGS |
| 690 | CC |
Mike Frysinger | f217ae4 | 2015-11-11 13:43:14 -0500 | [diff] [blame] | 691 | ac_ct_AR |
| 692 | AR |
ted.mielczarek@gmail.com | 07bb231 | 2013-12-10 12:28:11 +0000 | [diff] [blame] | 693 | MAINT |
| 694 | MAINTAINER_MODE_FALSE |
| 695 | MAINTAINER_MODE_TRUE |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 696 | AM_BACKSLASH |
| 697 | AM_DEFAULT_VERBOSITY |
| 698 | AM_DEFAULT_V |
| 699 | AM_V |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 700 | am__untar |
| 701 | am__tar |
| 702 | AMTAR |
| 703 | am__leading_dot |
| 704 | SET_MAKE |
| 705 | AWK |
| 706 | mkdir_p |
| 707 | MKDIR_P |
| 708 | INSTALL_STRIP_PROGRAM |
| 709 | STRIP |
| 710 | install_sh |
| 711 | MAKEINFO |
| 712 | AUTOHEADER |
| 713 | AUTOMAKE |
| 714 | AUTOCONF |
| 715 | ACLOCAL |
| 716 | VERSION |
| 717 | PACKAGE |
| 718 | CYGPATH_W |
| 719 | am__isrc |
| 720 | INSTALL_DATA |
| 721 | INSTALL_SCRIPT |
| 722 | INSTALL_PROGRAM |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 723 | host_os |
| 724 | host_vendor |
| 725 | host_cpu |
| 726 | host |
| 727 | build_os |
| 728 | build_vendor |
| 729 | build_cpu |
| 730 | build |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 731 | target_alias |
| 732 | host_alias |
| 733 | build_alias |
| 734 | LIBS |
| 735 | ECHO_T |
| 736 | ECHO_N |
| 737 | ECHO_C |
| 738 | DEFS |
| 739 | mandir |
| 740 | localedir |
| 741 | libdir |
| 742 | psdir |
| 743 | pdfdir |
| 744 | dvidir |
| 745 | htmldir |
| 746 | infodir |
| 747 | docdir |
| 748 | oldincludedir |
| 749 | includedir |
| 750 | localstatedir |
| 751 | sharedstatedir |
| 752 | sysconfdir |
| 753 | datadir |
| 754 | datarootdir |
| 755 | libexecdir |
| 756 | sbindir |
| 757 | bindir |
| 758 | program_transform_name |
| 759 | prefix |
| 760 | exec_prefix |
| 761 | PACKAGE_URL |
| 762 | PACKAGE_BUGREPORT |
| 763 | PACKAGE_STRING |
| 764 | PACKAGE_VERSION |
| 765 | PACKAGE_TARNAME |
| 766 | PACKAGE_NAME |
| 767 | PATH_SEPARATOR |
| 768 | SHELL' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 769 | ac_subst_files='' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 770 | ac_user_opts=' |
| 771 | enable_option_checking |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 772 | enable_silent_rules |
ted.mielczarek@gmail.com | 07bb231 | 2013-12-10 12:28:11 +0000 | [diff] [blame] | 773 | enable_maintainer_mode |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 774 | enable_dependency_tracking |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 775 | enable_m32 |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 776 | enable_largefile |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 777 | enable_processor |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 778 | enable_tools |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 779 | enable_system_test_libs |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 780 | enable_selftest |
Ted Mielczarek | 2ecb2ba | 2016-10-24 15:16:28 -0400 | [diff] [blame] | 781 | with_rust_demangle |
Lars Volker | 49907e1 | 2018-01-31 13:29:11 -0800 | [diff] [blame] | 782 | with_tests_as_root |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 783 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 784 | ac_precious_vars='build_alias |
| 785 | host_alias |
| 786 | target_alias |
| 787 | CC |
| 788 | CFLAGS |
| 789 | LDFLAGS |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 790 | LIBS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 791 | CPPFLAGS |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 792 | CCAS |
| 793 | CCASFLAGS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 794 | CPP |
| 795 | CXX |
| 796 | CXXFLAGS |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 797 | CCC |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 798 | GMOCK_CFLAGS |
| 799 | GMOCK_LIBS |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 800 | GTEST_CFLAGS |
Ted Mielczarek | 2ecb2ba | 2016-10-24 15:16:28 -0400 | [diff] [blame] | 801 | GTEST_LIBS |
| 802 | RUST_DEMANGLE_CFLAGS |
| 803 | RUST_DEMANGLE_LIBS' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 804 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 805 | |
| 806 | # Initialize some variables set by options. |
| 807 | ac_init_help= |
| 808 | ac_init_version=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 809 | ac_unrecognized_opts= |
| 810 | ac_unrecognized_sep= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 811 | # The variables have the same names as the options, with |
| 812 | # dashes changed to underlines. |
| 813 | cache_file=/dev/null |
| 814 | exec_prefix=NONE |
| 815 | no_create= |
| 816 | no_recursion= |
| 817 | prefix=NONE |
| 818 | program_prefix=NONE |
| 819 | program_suffix=NONE |
| 820 | program_transform_name=s,x,x, |
| 821 | silent= |
| 822 | site= |
| 823 | srcdir= |
| 824 | verbose= |
| 825 | x_includes=NONE |
| 826 | x_libraries=NONE |
| 827 | |
| 828 | # Installation directory options. |
| 829 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 830 | # and all the variables that are supposed to be based on exec_prefix |
| 831 | # by default will actually change. |
| 832 | # Use braces instead of parens because sh, perl, etc. also accept them. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 833 | # (The list follows the same order as the GNU Coding Standards.) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 834 | bindir='${exec_prefix}/bin' |
| 835 | sbindir='${exec_prefix}/sbin' |
| 836 | libexecdir='${exec_prefix}/libexec' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 837 | datarootdir='${prefix}/share' |
| 838 | datadir='${datarootdir}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 839 | sysconfdir='${prefix}/etc' |
| 840 | sharedstatedir='${prefix}/com' |
| 841 | localstatedir='${prefix}/var' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 842 | includedir='${prefix}/include' |
| 843 | oldincludedir='/usr/include' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 844 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 845 | infodir='${datarootdir}/info' |
| 846 | htmldir='${docdir}' |
| 847 | dvidir='${docdir}' |
| 848 | pdfdir='${docdir}' |
| 849 | psdir='${docdir}' |
| 850 | libdir='${exec_prefix}/lib' |
| 851 | localedir='${datarootdir}/locale' |
| 852 | mandir='${datarootdir}/man' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 853 | |
| 854 | ac_prev= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 855 | ac_dashdash= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 856 | for ac_option |
| 857 | do |
| 858 | # If the previous option needs an argument, assign it. |
| 859 | if test -n "$ac_prev"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 860 | eval $ac_prev=\$ac_option |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 861 | ac_prev= |
| 862 | continue |
| 863 | fi |
| 864 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 865 | case $ac_option in |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 866 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 867 | *=) ac_optarg= ;; |
| 868 | *) ac_optarg=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 869 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 870 | |
| 871 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 872 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 873 | case $ac_dashdash$ac_option in |
| 874 | --) |
| 875 | ac_dashdash=yes ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 876 | |
| 877 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 878 | ac_prev=bindir ;; |
| 879 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 880 | bindir=$ac_optarg ;; |
| 881 | |
| 882 | -build | --build | --buil | --bui | --bu) |
| 883 | ac_prev=build_alias ;; |
| 884 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 885 | build_alias=$ac_optarg ;; |
| 886 | |
| 887 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 888 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 889 | ac_prev=cache_file ;; |
| 890 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 891 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 892 | cache_file=$ac_optarg ;; |
| 893 | |
| 894 | --config-cache | -C) |
| 895 | cache_file=config.cache ;; |
| 896 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 897 | -datadir | --datadir | --datadi | --datad) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 898 | ac_prev=datadir ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 899 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 900 | datadir=$ac_optarg ;; |
| 901 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 902 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 903 | | --dataroo | --dataro | --datar) |
| 904 | ac_prev=datarootdir ;; |
| 905 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 906 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 907 | datarootdir=$ac_optarg ;; |
| 908 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 909 | -disable-* | --disable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 910 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 911 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 912 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 913 | as_fn_error $? "invalid feature name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 914 | ac_useropt_orig=$ac_useropt |
| 915 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 916 | case $ac_user_opts in |
| 917 | *" |
| 918 | "enable_$ac_useropt" |
| 919 | "*) ;; |
| 920 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 921 | ac_unrecognized_sep=', ';; |
| 922 | esac |
| 923 | eval enable_$ac_useropt=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 924 | |
| 925 | -docdir | --docdir | --docdi | --doc | --do) |
| 926 | ac_prev=docdir ;; |
| 927 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 928 | docdir=$ac_optarg ;; |
| 929 | |
| 930 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 931 | ac_prev=dvidir ;; |
| 932 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 933 | dvidir=$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 934 | |
| 935 | -enable-* | --enable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 936 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 937 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 938 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 939 | as_fn_error $? "invalid feature name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 940 | ac_useropt_orig=$ac_useropt |
| 941 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 942 | case $ac_user_opts in |
| 943 | *" |
| 944 | "enable_$ac_useropt" |
| 945 | "*) ;; |
| 946 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 947 | ac_unrecognized_sep=', ';; |
| 948 | esac |
| 949 | eval enable_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 950 | |
| 951 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 952 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 953 | | --exec | --exe | --ex) |
| 954 | ac_prev=exec_prefix ;; |
| 955 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 956 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 957 | | --exec=* | --exe=* | --ex=*) |
| 958 | exec_prefix=$ac_optarg ;; |
| 959 | |
| 960 | -gas | --gas | --ga | --g) |
| 961 | # Obsolete; use --with-gas. |
| 962 | with_gas=yes ;; |
| 963 | |
| 964 | -help | --help | --hel | --he | -h) |
| 965 | ac_init_help=long ;; |
| 966 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 967 | ac_init_help=recursive ;; |
| 968 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 969 | ac_init_help=short ;; |
| 970 | |
| 971 | -host | --host | --hos | --ho) |
| 972 | ac_prev=host_alias ;; |
| 973 | -host=* | --host=* | --hos=* | --ho=*) |
| 974 | host_alias=$ac_optarg ;; |
| 975 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 976 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 977 | ac_prev=htmldir ;; |
| 978 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 979 | | --ht=*) |
| 980 | htmldir=$ac_optarg ;; |
| 981 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 982 | -includedir | --includedir | --includedi | --included | --include \ |
| 983 | | --includ | --inclu | --incl | --inc) |
| 984 | ac_prev=includedir ;; |
| 985 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 986 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 987 | includedir=$ac_optarg ;; |
| 988 | |
| 989 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 990 | ac_prev=infodir ;; |
| 991 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 992 | infodir=$ac_optarg ;; |
| 993 | |
| 994 | -libdir | --libdir | --libdi | --libd) |
| 995 | ac_prev=libdir ;; |
| 996 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 997 | libdir=$ac_optarg ;; |
| 998 | |
| 999 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1000 | | --libexe | --libex | --libe) |
| 1001 | ac_prev=libexecdir ;; |
| 1002 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1003 | | --libexe=* | --libex=* | --libe=*) |
| 1004 | libexecdir=$ac_optarg ;; |
| 1005 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1006 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1007 | ac_prev=localedir ;; |
| 1008 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1009 | localedir=$ac_optarg ;; |
| 1010 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1011 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1012 | | --localstate | --localstat | --localsta | --localst | --locals) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1013 | ac_prev=localstatedir ;; |
| 1014 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1015 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1016 | localstatedir=$ac_optarg ;; |
| 1017 | |
| 1018 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1019 | ac_prev=mandir ;; |
| 1020 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1021 | mandir=$ac_optarg ;; |
| 1022 | |
| 1023 | -nfp | --nfp | --nf) |
| 1024 | # Obsolete; use --without-fp. |
| 1025 | with_fp=no ;; |
| 1026 | |
| 1027 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1028 | | --no-cr | --no-c | -n) |
| 1029 | no_create=yes ;; |
| 1030 | |
| 1031 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1032 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1033 | no_recursion=yes ;; |
| 1034 | |
| 1035 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1036 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1037 | | --oldin | --oldi | --old | --ol | --o) |
| 1038 | ac_prev=oldincludedir ;; |
| 1039 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1040 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1041 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1042 | oldincludedir=$ac_optarg ;; |
| 1043 | |
| 1044 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1045 | ac_prev=prefix ;; |
| 1046 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1047 | prefix=$ac_optarg ;; |
| 1048 | |
| 1049 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1050 | | --program-pre | --program-pr | --program-p) |
| 1051 | ac_prev=program_prefix ;; |
| 1052 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1053 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1054 | program_prefix=$ac_optarg ;; |
| 1055 | |
| 1056 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1057 | | --program-suf | --program-su | --program-s) |
| 1058 | ac_prev=program_suffix ;; |
| 1059 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1060 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1061 | program_suffix=$ac_optarg ;; |
| 1062 | |
| 1063 | -program-transform-name | --program-transform-name \ |
| 1064 | | --program-transform-nam | --program-transform-na \ |
| 1065 | | --program-transform-n | --program-transform- \ |
| 1066 | | --program-transform | --program-transfor \ |
| 1067 | | --program-transfo | --program-transf \ |
| 1068 | | --program-trans | --program-tran \ |
| 1069 | | --progr-tra | --program-tr | --program-t) |
| 1070 | ac_prev=program_transform_name ;; |
| 1071 | -program-transform-name=* | --program-transform-name=* \ |
| 1072 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1073 | | --program-transform-n=* | --program-transform-=* \ |
| 1074 | | --program-transform=* | --program-transfor=* \ |
| 1075 | | --program-transfo=* | --program-transf=* \ |
| 1076 | | --program-trans=* | --program-tran=* \ |
| 1077 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1078 | program_transform_name=$ac_optarg ;; |
| 1079 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1080 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1081 | ac_prev=pdfdir ;; |
| 1082 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1083 | pdfdir=$ac_optarg ;; |
| 1084 | |
| 1085 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1086 | ac_prev=psdir ;; |
| 1087 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1088 | psdir=$ac_optarg ;; |
| 1089 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1090 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1091 | | -silent | --silent | --silen | --sile | --sil) |
| 1092 | silent=yes ;; |
| 1093 | |
| 1094 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1095 | ac_prev=sbindir ;; |
| 1096 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1097 | | --sbi=* | --sb=*) |
| 1098 | sbindir=$ac_optarg ;; |
| 1099 | |
| 1100 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1101 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1102 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1103 | | --sha | --sh) |
| 1104 | ac_prev=sharedstatedir ;; |
| 1105 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1106 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1107 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1108 | | --sha=* | --sh=*) |
| 1109 | sharedstatedir=$ac_optarg ;; |
| 1110 | |
| 1111 | -site | --site | --sit) |
| 1112 | ac_prev=site ;; |
| 1113 | -site=* | --site=* | --sit=*) |
| 1114 | site=$ac_optarg ;; |
| 1115 | |
| 1116 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1117 | ac_prev=srcdir ;; |
| 1118 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1119 | srcdir=$ac_optarg ;; |
| 1120 | |
| 1121 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1122 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1123 | ac_prev=sysconfdir ;; |
| 1124 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1125 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1126 | sysconfdir=$ac_optarg ;; |
| 1127 | |
| 1128 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1129 | ac_prev=target_alias ;; |
| 1130 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1131 | target_alias=$ac_optarg ;; |
| 1132 | |
| 1133 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1134 | verbose=yes ;; |
| 1135 | |
| 1136 | -version | --version | --versio | --versi | --vers | -V) |
| 1137 | ac_init_version=: ;; |
| 1138 | |
| 1139 | -with-* | --with-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1140 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1141 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1142 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1143 | as_fn_error $? "invalid package name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1144 | ac_useropt_orig=$ac_useropt |
| 1145 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1146 | case $ac_user_opts in |
| 1147 | *" |
| 1148 | "with_$ac_useropt" |
| 1149 | "*) ;; |
| 1150 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1151 | ac_unrecognized_sep=', ';; |
| 1152 | esac |
| 1153 | eval with_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1154 | |
| 1155 | -without-* | --without-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1156 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1157 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1158 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1159 | as_fn_error $? "invalid package name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1160 | ac_useropt_orig=$ac_useropt |
| 1161 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1162 | case $ac_user_opts in |
| 1163 | *" |
| 1164 | "with_$ac_useropt" |
| 1165 | "*) ;; |
| 1166 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1167 | ac_unrecognized_sep=', ';; |
| 1168 | esac |
| 1169 | eval with_$ac_useropt=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1170 | |
| 1171 | --x) |
| 1172 | # Obsolete; use --with-x. |
| 1173 | with_x=yes ;; |
| 1174 | |
| 1175 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1176 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1177 | ac_prev=x_includes ;; |
| 1178 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1179 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1180 | x_includes=$ac_optarg ;; |
| 1181 | |
| 1182 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1183 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1184 | ac_prev=x_libraries ;; |
| 1185 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1186 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1187 | x_libraries=$ac_optarg ;; |
| 1188 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1189 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1190 | Try \`$0 --help' for more information" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1191 | ;; |
| 1192 | |
| 1193 | *=*) |
| 1194 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1195 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1196 | case $ac_envvar in #( |
| 1197 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1198 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1199 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1200 | eval $ac_envvar=\$ac_optarg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1201 | export $ac_envvar ;; |
| 1202 | |
| 1203 | *) |
| 1204 | # FIXME: should be removed in autoconf 3.0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1205 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1206 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1207 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1208 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1209 | ;; |
| 1210 | |
| 1211 | esac |
| 1212 | done |
| 1213 | |
| 1214 | if test -n "$ac_prev"; then |
| 1215 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1216 | as_fn_error $? "missing argument to $ac_option" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1217 | fi |
| 1218 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1219 | if test -n "$ac_unrecognized_opts"; then |
| 1220 | case $enable_option_checking in |
| 1221 | no) ;; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1222 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1223 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1224 | esac |
| 1225 | fi |
| 1226 | |
| 1227 | # Check all directory arguments for consistency. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1228 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1229 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1230 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1231 | libdir localedir mandir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1232 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1233 | eval ac_val=\$$ac_var |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1234 | # Remove trailing slashes. |
| 1235 | case $ac_val in |
| 1236 | */ ) |
| 1237 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1238 | eval $ac_var=\$ac_val;; |
| 1239 | esac |
| 1240 | # Be sure to have absolute directory names. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1241 | case $ac_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1242 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1243 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1244 | esac |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1245 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1246 | done |
| 1247 | |
| 1248 | # There might be people who depend on the old broken behavior: `$host' |
| 1249 | # used to hold the argument of --host etc. |
| 1250 | # FIXME: To remove some day. |
| 1251 | build=$build_alias |
| 1252 | host=$host_alias |
| 1253 | target=$target_alias |
| 1254 | |
| 1255 | # FIXME: To remove some day. |
| 1256 | if test "x$host_alias" != x; then |
| 1257 | if test "x$build_alias" = x; then |
| 1258 | cross_compiling=maybe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1259 | elif test "x$build_alias" != "x$host_alias"; then |
| 1260 | cross_compiling=yes |
| 1261 | fi |
| 1262 | fi |
| 1263 | |
| 1264 | ac_tool_prefix= |
| 1265 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1266 | |
| 1267 | test "$silent" = yes && exec 6>/dev/null |
| 1268 | |
| 1269 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1270 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1271 | ac_ls_di=`ls -di .` && |
| 1272 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1273 | as_fn_error $? "working directory cannot be determined" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1274 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1275 | as_fn_error $? "pwd does not report name of working directory" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1276 | |
| 1277 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1278 | # Find the source files, if location was not specified. |
| 1279 | if test -z "$srcdir"; then |
| 1280 | ac_srcdir_defaulted=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1281 | # Try the directory containing this script, then the parent directory. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1282 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1283 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1284 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1285 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1286 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1287 | $as_echo X"$as_myself" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1288 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1289 | s//\1/ |
| 1290 | q |
| 1291 | } |
| 1292 | /^X\(\/\/\)[^/].*/{ |
| 1293 | s//\1/ |
| 1294 | q |
| 1295 | } |
| 1296 | /^X\(\/\/\)$/{ |
| 1297 | s//\1/ |
| 1298 | q |
| 1299 | } |
| 1300 | /^X\(\/\).*/{ |
| 1301 | s//\1/ |
| 1302 | q |
| 1303 | } |
| 1304 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1305 | srcdir=$ac_confdir |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1306 | if test ! -r "$srcdir/$ac_unique_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1307 | srcdir=.. |
| 1308 | fi |
| 1309 | else |
| 1310 | ac_srcdir_defaulted=no |
| 1311 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1312 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1313 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1314 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1315 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1316 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1317 | ac_abs_confdir=`( |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1318 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1319 | pwd)` |
| 1320 | # When building in place, set srcdir=. |
| 1321 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1322 | srcdir=. |
| 1323 | fi |
| 1324 | # Remove unnecessary trailing slashes from srcdir. |
| 1325 | # Double slashes in file names in object file debugging info |
| 1326 | # mess up M-x gdb in Emacs. |
| 1327 | case $srcdir in |
| 1328 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1329 | esac |
| 1330 | for ac_var in $ac_precious_vars; do |
| 1331 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1332 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1333 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1334 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1335 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1336 | |
| 1337 | # |
| 1338 | # Report the --help message. |
| 1339 | # |
| 1340 | if test "$ac_init_help" = "long"; then |
| 1341 | # Omit some internal or obsolete options to make the list less imposing. |
| 1342 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1343 | cat <<_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1344 | \`configure' configures breakpad 0.1 to adapt to many kinds of systems. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1345 | |
| 1346 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1347 | |
| 1348 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1349 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1350 | |
| 1351 | Defaults for the options are specified in brackets. |
| 1352 | |
| 1353 | Configuration: |
| 1354 | -h, --help display this help and exit |
| 1355 | --help=short display options specific to this package |
| 1356 | --help=recursive display the short help of all the included packages |
| 1357 | -V, --version display version information and exit |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1358 | -q, --quiet, --silent do not print \`checking ...' messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1359 | --cache-file=FILE cache test results in FILE [disabled] |
| 1360 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1361 | -n, --no-create do not create output files |
| 1362 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1363 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1364 | Installation directories: |
| 1365 | --prefix=PREFIX install architecture-independent files in PREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1366 | [$ac_default_prefix] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1367 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1368 | [PREFIX] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1369 | |
| 1370 | By default, \`make install' will install all the files in |
| 1371 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1372 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1373 | for instance \`--prefix=\$HOME'. |
| 1374 | |
| 1375 | For better control, use the options below. |
| 1376 | |
| 1377 | Fine tuning of the installation directories: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1378 | --bindir=DIR user executables [EPREFIX/bin] |
| 1379 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1380 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1381 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1382 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1383 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1384 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1385 | --includedir=DIR C header files [PREFIX/include] |
| 1386 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1387 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1388 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1389 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1390 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1391 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1392 | --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad] |
| 1393 | --htmldir=DIR html documentation [DOCDIR] |
| 1394 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1395 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1396 | --psdir=DIR ps documentation [DOCDIR] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1397 | _ACEOF |
| 1398 | |
| 1399 | cat <<\_ACEOF |
| 1400 | |
| 1401 | Program names: |
| 1402 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1403 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1404 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1405 | |
| 1406 | System types: |
| 1407 | --build=BUILD configure for building on BUILD [guessed] |
| 1408 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1409 | _ACEOF |
| 1410 | fi |
| 1411 | |
| 1412 | if test -n "$ac_init_help"; then |
| 1413 | case $ac_init_help in |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1414 | short | recursive ) echo "Configuration of breakpad 0.1:";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1415 | esac |
| 1416 | cat <<\_ACEOF |
| 1417 | |
| 1418 | Optional Features: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1419 | --disable-option-checking ignore unrecognized --enable/--with options |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1420 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1421 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1422 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1423 | --disable-silent-rules verbose build output (undo: "make V=0") |
ted.mielczarek@gmail.com | 07bb231 | 2013-12-10 12:28:11 +0000 | [diff] [blame] | 1424 | --enable-maintainer-mode |
| 1425 | enable make rules and dependencies not useful (and |
| 1426 | sometimes confusing) to the casual installer |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1427 | --enable-dependency-tracking |
| 1428 | do not reject slow dependency extractors |
| 1429 | --disable-dependency-tracking |
| 1430 | speeds up one-time build |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 1431 | --enable-m32 Compile/build with -m32 (default is no) |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 1432 | --disable-largefile omit support for large files |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1433 | --disable-processor Don't build processor library (default is no) |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1434 | --disable-tools Don't build tool binaries (default is no) |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 1435 | --enable-system-test-libs |
| 1436 | Use gtest/gmock/etc... from the system instead of |
| 1437 | the local copies (default is local) |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 1438 | --enable-selftest Run extra tests with "make check" (may conflict with |
| 1439 | optimizations) (default is no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1440 | |
Ted Mielczarek | 2ecb2ba | 2016-10-24 15:16:28 -0400 | [diff] [blame] | 1441 | Optional Packages: |
| 1442 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1443 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1444 | --with-rust-demangle=/path/to/rust-demangle-capi |
| 1445 | Link against the rust-demangle library to demangle |
| 1446 | Rust language symbols during symbol dumping (default |
| 1447 | is no) Pass the path to the crate root. |
Lars Volker | 49907e1 | 2018-01-31 13:29:11 -0800 | [diff] [blame] | 1448 | --with-tests-as-root Run the tests as root. Use this on platforms like |
| 1449 | travis-ci.org that require root privileges to use |
| 1450 | ptrace (default is no) |
Ted Mielczarek | 2ecb2ba | 2016-10-24 15:16:28 -0400 | [diff] [blame] | 1451 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1452 | Some influential environment variables: |
| 1453 | CC C compiler command |
| 1454 | CFLAGS C compiler flags |
| 1455 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1456 | nonstandard directory <lib dir> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 1457 | LIBS libraries to pass to the linker, e.g. -l<library> |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1458 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1459 | you have headers in a nonstandard directory <include dir> |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 1460 | CCAS assembler compiler command (defaults to CC) |
| 1461 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1462 | CPP C preprocessor |
| 1463 | CXX C++ compiler command |
| 1464 | CXXFLAGS C++ compiler flags |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 1465 | GMOCK_CFLAGS |
| 1466 | Compiler flags for gmock |
| 1467 | GMOCK_LIBS Linker flags for gmock |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 1468 | GTEST_CFLAGS |
| 1469 | Compiler flags for gtest |
| 1470 | GTEST_LIBS Linker flags for gtest |
Ted Mielczarek | 2ecb2ba | 2016-10-24 15:16:28 -0400 | [diff] [blame] | 1471 | RUST_DEMANGLE_CFLAGS |
| 1472 | Compiler flags for rust-demangle |
| 1473 | RUST_DEMANGLE_LIBS |
| 1474 | Linker flags for rust-demangle |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1475 | |
| 1476 | Use these variables to override the choices made by `configure' or to help |
| 1477 | it to find libraries and programs with nonstandard names/locations. |
| 1478 | |
thestig@chromium.org | 43e6db7 | 2010-11-08 19:49:41 +0000 | [diff] [blame] | 1479 | Report bugs to <google-breakpad-dev@googlegroups.com>. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1480 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1481 | ac_status=$? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1482 | fi |
| 1483 | |
| 1484 | if test "$ac_init_help" = "recursive"; then |
| 1485 | # If there are subdirs, report their specific --help. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1486 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1487 | test -d "$ac_dir" || |
| 1488 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1489 | continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1490 | ac_builddir=. |
| 1491 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1492 | case "$ac_dir" in |
| 1493 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1494 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1495 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1496 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1497 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1498 | case $ac_top_builddir_sub in |
| 1499 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1500 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1501 | esac ;; |
| 1502 | esac |
| 1503 | ac_abs_top_builddir=$ac_pwd |
| 1504 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1505 | # for backward compatibility: |
| 1506 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1507 | |
| 1508 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1509 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1510 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1511 | ac_top_srcdir=$ac_top_builddir_sub |
| 1512 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1513 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1514 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1515 | ac_top_srcdir=$srcdir |
| 1516 | ac_abs_top_srcdir=$srcdir ;; |
| 1517 | *) # Relative name. |
| 1518 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1519 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1520 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1521 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1522 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1523 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1524 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1525 | # Check for guested configure. |
| 1526 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1527 | echo && |
| 1528 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1529 | elif test -f "$ac_srcdir/configure"; then |
| 1530 | echo && |
| 1531 | $SHELL "$ac_srcdir/configure" --help=recursive |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1532 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1533 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1534 | fi || ac_status=$? |
| 1535 | cd "$ac_pwd" || { ac_status=$?; break; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1536 | done |
| 1537 | fi |
| 1538 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1539 | test -n "$ac_init_help" && exit $ac_status |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1540 | if $ac_init_version; then |
| 1541 | cat <<\_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1542 | breakpad configure 0.1 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1543 | generated by GNU Autoconf 2.69 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1544 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1545 | Copyright (C) 2012 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1546 | This configure script is free software; the Free Software Foundation |
| 1547 | gives unlimited permission to copy, distribute and modify it. |
| 1548 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1549 | exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1550 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1551 | |
| 1552 | ## ------------------------ ## |
| 1553 | ## Autoconf initialization. ## |
| 1554 | ## ------------------------ ## |
| 1555 | |
| 1556 | # ac_fn_c_try_compile LINENO |
| 1557 | # -------------------------- |
| 1558 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1559 | ac_fn_c_try_compile () |
| 1560 | { |
| 1561 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1562 | rm -f conftest.$ac_objext |
| 1563 | if { { ac_try="$ac_compile" |
| 1564 | case "(($ac_try" in |
| 1565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1566 | *) ac_try_echo=$ac_try;; |
| 1567 | esac |
| 1568 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1569 | $as_echo "$ac_try_echo"; } >&5 |
| 1570 | (eval "$ac_compile") 2>conftest.err |
| 1571 | ac_status=$? |
| 1572 | if test -s conftest.err; then |
| 1573 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1574 | cat conftest.er1 >&5 |
| 1575 | mv -f conftest.er1 conftest.err |
| 1576 | fi |
| 1577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1578 | test $ac_status = 0; } && { |
| 1579 | test -z "$ac_c_werror_flag" || |
| 1580 | test ! -s conftest.err |
| 1581 | } && test -s conftest.$ac_objext; then : |
| 1582 | ac_retval=0 |
| 1583 | else |
| 1584 | $as_echo "$as_me: failed program was:" >&5 |
| 1585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1586 | |
| 1587 | ac_retval=1 |
| 1588 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1589 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1590 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1591 | |
| 1592 | } # ac_fn_c_try_compile |
| 1593 | |
| 1594 | # ac_fn_c_try_cpp LINENO |
| 1595 | # ---------------------- |
| 1596 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1597 | ac_fn_c_try_cpp () |
| 1598 | { |
| 1599 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1600 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1601 | case "(($ac_try" in |
| 1602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1603 | *) ac_try_echo=$ac_try;; |
| 1604 | esac |
| 1605 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1606 | $as_echo "$ac_try_echo"; } >&5 |
| 1607 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1608 | ac_status=$? |
| 1609 | if test -s conftest.err; then |
| 1610 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1611 | cat conftest.er1 >&5 |
| 1612 | mv -f conftest.er1 conftest.err |
| 1613 | fi |
| 1614 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1615 | test $ac_status = 0; } > conftest.i && { |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1616 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1617 | test ! -s conftest.err |
| 1618 | }; then : |
| 1619 | ac_retval=0 |
| 1620 | else |
| 1621 | $as_echo "$as_me: failed program was:" >&5 |
| 1622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1623 | |
| 1624 | ac_retval=1 |
| 1625 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1626 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1627 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1628 | |
| 1629 | } # ac_fn_c_try_cpp |
| 1630 | |
| 1631 | # ac_fn_cxx_try_compile LINENO |
| 1632 | # ---------------------------- |
| 1633 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1634 | ac_fn_cxx_try_compile () |
| 1635 | { |
| 1636 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1637 | rm -f conftest.$ac_objext |
| 1638 | if { { ac_try="$ac_compile" |
| 1639 | case "(($ac_try" in |
| 1640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1641 | *) ac_try_echo=$ac_try;; |
| 1642 | esac |
| 1643 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1644 | $as_echo "$ac_try_echo"; } >&5 |
| 1645 | (eval "$ac_compile") 2>conftest.err |
| 1646 | ac_status=$? |
| 1647 | if test -s conftest.err; then |
| 1648 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1649 | cat conftest.er1 >&5 |
| 1650 | mv -f conftest.er1 conftest.err |
| 1651 | fi |
| 1652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1653 | test $ac_status = 0; } && { |
| 1654 | test -z "$ac_cxx_werror_flag" || |
| 1655 | test ! -s conftest.err |
| 1656 | } && test -s conftest.$ac_objext; then : |
| 1657 | ac_retval=0 |
| 1658 | else |
| 1659 | $as_echo "$as_me: failed program was:" >&5 |
| 1660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1661 | |
| 1662 | ac_retval=1 |
| 1663 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1664 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1665 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1666 | |
| 1667 | } # ac_fn_cxx_try_compile |
| 1668 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 1669 | # ac_fn_c_try_run LINENO |
| 1670 | # ---------------------- |
| 1671 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1672 | # that executables *can* be run. |
| 1673 | ac_fn_c_try_run () |
| 1674 | { |
| 1675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1676 | if { { ac_try="$ac_link" |
| 1677 | case "(($ac_try" in |
| 1678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1679 | *) ac_try_echo=$ac_try;; |
| 1680 | esac |
| 1681 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1682 | $as_echo "$ac_try_echo"; } >&5 |
| 1683 | (eval "$ac_link") 2>&5 |
| 1684 | ac_status=$? |
| 1685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1686 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1687 | { { case "(($ac_try" in |
| 1688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1689 | *) ac_try_echo=$ac_try;; |
| 1690 | esac |
| 1691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1692 | $as_echo "$ac_try_echo"; } >&5 |
| 1693 | (eval "$ac_try") 2>&5 |
| 1694 | ac_status=$? |
| 1695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1696 | test $ac_status = 0; }; }; then : |
| 1697 | ac_retval=0 |
| 1698 | else |
| 1699 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1700 | $as_echo "$as_me: failed program was:" >&5 |
| 1701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1702 | |
| 1703 | ac_retval=$ac_status |
| 1704 | fi |
| 1705 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1706 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 1707 | as_fn_set_status $ac_retval |
| 1708 | |
| 1709 | } # ac_fn_c_try_run |
| 1710 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1711 | # ac_fn_c_try_link LINENO |
| 1712 | # ----------------------- |
| 1713 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1714 | ac_fn_c_try_link () |
| 1715 | { |
| 1716 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1717 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1718 | if { { ac_try="$ac_link" |
| 1719 | case "(($ac_try" in |
| 1720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1721 | *) ac_try_echo=$ac_try;; |
| 1722 | esac |
| 1723 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1724 | $as_echo "$ac_try_echo"; } >&5 |
| 1725 | (eval "$ac_link") 2>conftest.err |
| 1726 | ac_status=$? |
| 1727 | if test -s conftest.err; then |
| 1728 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1729 | cat conftest.er1 >&5 |
| 1730 | mv -f conftest.er1 conftest.err |
| 1731 | fi |
| 1732 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1733 | test $ac_status = 0; } && { |
| 1734 | test -z "$ac_c_werror_flag" || |
| 1735 | test ! -s conftest.err |
| 1736 | } && test -s conftest$ac_exeext && { |
| 1737 | test "$cross_compiling" = yes || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1738 | test -x conftest$ac_exeext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1739 | }; then : |
| 1740 | ac_retval=0 |
| 1741 | else |
| 1742 | $as_echo "$as_me: failed program was:" >&5 |
| 1743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1744 | |
| 1745 | ac_retval=1 |
| 1746 | fi |
| 1747 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1748 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1749 | # interfere with the next link command; also delete a directory that is |
| 1750 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1751 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1752 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1753 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1754 | |
| 1755 | } # ac_fn_c_try_link |
| 1756 | |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1757 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1758 | # ------------------------------------------------------- |
| 1759 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1760 | # the include files in INCLUDES and setting the cache variable VAR |
| 1761 | # accordingly. |
| 1762 | ac_fn_c_check_header_mongrel () |
| 1763 | { |
| 1764 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1765 | if eval \${$3+:} false; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1767 | $as_echo_n "checking for $2... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1768 | if eval \${$3+:} false; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1769 | $as_echo_n "(cached) " >&6 |
| 1770 | fi |
| 1771 | eval ac_res=\$$3 |
| 1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1773 | $as_echo "$ac_res" >&6; } |
| 1774 | else |
| 1775 | # Is the header compilable? |
| 1776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1777 | $as_echo_n "checking $2 usability... " >&6; } |
| 1778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1779 | /* end confdefs.h. */ |
| 1780 | $4 |
| 1781 | #include <$2> |
| 1782 | _ACEOF |
| 1783 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1784 | ac_header_compiler=yes |
| 1785 | else |
| 1786 | ac_header_compiler=no |
| 1787 | fi |
| 1788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1790 | $as_echo "$ac_header_compiler" >&6; } |
| 1791 | |
| 1792 | # Is the header present? |
| 1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1794 | $as_echo_n "checking $2 presence... " >&6; } |
| 1795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1796 | /* end confdefs.h. */ |
| 1797 | #include <$2> |
| 1798 | _ACEOF |
| 1799 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1800 | ac_header_preproc=yes |
| 1801 | else |
| 1802 | ac_header_preproc=no |
| 1803 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1804 | rm -f conftest.err conftest.i conftest.$ac_ext |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1806 | $as_echo "$ac_header_preproc" >&6; } |
| 1807 | |
| 1808 | # So? What about this header? |
| 1809 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1810 | yes:no: ) |
| 1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1812 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1814 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1815 | ;; |
| 1816 | no:yes:* ) |
| 1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1818 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1820 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1822 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1824 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1826 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1827 | ( $as_echo "## --------------------------------------------------- ## |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1828 | ## Report this to google-breakpad-dev@googlegroups.com ## |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1829 | ## --------------------------------------------------- ##" |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1830 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1831 | ;; |
| 1832 | esac |
| 1833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1834 | $as_echo_n "checking for $2... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1835 | if eval \${$3+:} false; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1836 | $as_echo_n "(cached) " >&6 |
| 1837 | else |
| 1838 | eval "$3=\$ac_header_compiler" |
| 1839 | fi |
| 1840 | eval ac_res=\$$3 |
| 1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1842 | $as_echo "$ac_res" >&6; } |
| 1843 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1844 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1845 | |
| 1846 | } # ac_fn_c_check_header_mongrel |
| 1847 | |
| 1848 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1849 | # ------------------------------------------------------- |
| 1850 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1851 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1852 | ac_fn_c_check_header_compile () |
| 1853 | { |
| 1854 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1856 | $as_echo_n "checking for $2... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1857 | if eval \${$3+:} false; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1858 | $as_echo_n "(cached) " >&6 |
| 1859 | else |
| 1860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1861 | /* end confdefs.h. */ |
| 1862 | $4 |
| 1863 | #include <$2> |
| 1864 | _ACEOF |
| 1865 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1866 | eval "$3=yes" |
| 1867 | else |
| 1868 | eval "$3=no" |
| 1869 | fi |
| 1870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1871 | fi |
| 1872 | eval ac_res=\$$3 |
| 1873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1874 | $as_echo "$ac_res" >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1875 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1876 | |
| 1877 | } # ac_fn_c_check_header_compile |
Gabriele Svelto | a9fca58 | 2017-04-11 11:51:28 +0200 | [diff] [blame] | 1878 | |
| 1879 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1880 | # ---------------------------------- |
| 1881 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1882 | ac_fn_c_check_func () |
| 1883 | { |
| 1884 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1886 | $as_echo_n "checking for $2... " >&6; } |
| 1887 | if eval \${$3+:} false; then : |
| 1888 | $as_echo_n "(cached) " >&6 |
| 1889 | else |
| 1890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1891 | /* end confdefs.h. */ |
| 1892 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1893 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1894 | #define $2 innocuous_$2 |
| 1895 | |
| 1896 | /* System header to define __stub macros and hopefully few prototypes, |
| 1897 | which can conflict with char $2 (); below. |
| 1898 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1899 | <limits.h> exists even on freestanding compilers. */ |
| 1900 | |
| 1901 | #ifdef __STDC__ |
| 1902 | # include <limits.h> |
| 1903 | #else |
| 1904 | # include <assert.h> |
| 1905 | #endif |
| 1906 | |
| 1907 | #undef $2 |
| 1908 | |
| 1909 | /* Override any GCC internal prototype to avoid an error. |
| 1910 | Use char because int might match the return type of a GCC |
| 1911 | builtin and then its argument prototype would still apply. */ |
| 1912 | #ifdef __cplusplus |
| 1913 | extern "C" |
| 1914 | #endif |
| 1915 | char $2 (); |
| 1916 | /* The GNU C library defines this for functions which it implements |
| 1917 | to always fail with ENOSYS. Some functions are actually named |
| 1918 | something starting with __ and the normal name is an alias. */ |
| 1919 | #if defined __stub_$2 || defined __stub___$2 |
| 1920 | choke me |
| 1921 | #endif |
| 1922 | |
| 1923 | int |
| 1924 | main () |
| 1925 | { |
| 1926 | return $2 (); |
| 1927 | ; |
| 1928 | return 0; |
| 1929 | } |
| 1930 | _ACEOF |
| 1931 | if ac_fn_c_try_link "$LINENO"; then : |
| 1932 | eval "$3=yes" |
| 1933 | else |
| 1934 | eval "$3=no" |
| 1935 | fi |
| 1936 | rm -f core conftest.err conftest.$ac_objext \ |
| 1937 | conftest$ac_exeext conftest.$ac_ext |
| 1938 | fi |
| 1939 | eval ac_res=\$$3 |
| 1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1941 | $as_echo "$ac_res" >&6; } |
| 1942 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1943 | |
| 1944 | } # ac_fn_c_check_func |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1945 | cat >config.log <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1946 | This file contains any messages produced by compilers while |
| 1947 | running configure, to aid debugging if configure makes a mistake. |
| 1948 | |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1949 | It was created by breakpad $as_me 0.1, which was |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1950 | generated by GNU Autoconf 2.69. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1951 | |
| 1952 | $ $0 $@ |
| 1953 | |
| 1954 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1955 | exec 5>>config.log |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1956 | { |
| 1957 | cat <<_ASUNAME |
| 1958 | ## --------- ## |
| 1959 | ## Platform. ## |
| 1960 | ## --------- ## |
| 1961 | |
| 1962 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1963 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1964 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1965 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1966 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1967 | |
| 1968 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1969 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1970 | |
| 1971 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1972 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1973 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1974 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1975 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1976 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1977 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1978 | |
| 1979 | _ASUNAME |
| 1980 | |
| 1981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1982 | for as_dir in $PATH |
| 1983 | do |
| 1984 | IFS=$as_save_IFS |
| 1985 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1986 | $as_echo "PATH: $as_dir" |
| 1987 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1988 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1989 | |
| 1990 | } >&5 |
| 1991 | |
| 1992 | cat >&5 <<_ACEOF |
| 1993 | |
| 1994 | |
| 1995 | ## ----------- ## |
| 1996 | ## Core tests. ## |
| 1997 | ## ----------- ## |
| 1998 | |
| 1999 | _ACEOF |
| 2000 | |
| 2001 | |
| 2002 | # Keep a trace of the command line. |
| 2003 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2004 | # Strip out --silent because we don't want to record it for future runs. |
| 2005 | # Also quote any args containing shell meta-characters. |
| 2006 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2007 | ac_configure_args= |
| 2008 | ac_configure_args0= |
| 2009 | ac_configure_args1= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2010 | ac_must_keep_next=false |
| 2011 | for ac_pass in 1 2 |
| 2012 | do |
| 2013 | for ac_arg |
| 2014 | do |
| 2015 | case $ac_arg in |
| 2016 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2017 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2018 | | -silent | --silent | --silen | --sile | --sil) |
| 2019 | continue ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2020 | *\'*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2021 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2022 | esac |
| 2023 | case $ac_pass in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2024 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2025 | 2) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2026 | as_fn_append ac_configure_args1 " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2027 | if test $ac_must_keep_next = true; then |
| 2028 | ac_must_keep_next=false # Got value, back to normal. |
| 2029 | else |
| 2030 | case $ac_arg in |
| 2031 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2032 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2033 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2034 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2035 | case "$ac_configure_args0 " in |
| 2036 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2037 | esac |
| 2038 | ;; |
| 2039 | -* ) ac_must_keep_next=true ;; |
| 2040 | esac |
| 2041 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2042 | as_fn_append ac_configure_args " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2043 | ;; |
| 2044 | esac |
| 2045 | done |
| 2046 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2047 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2048 | { ac_configure_args1=; unset ac_configure_args1;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2049 | |
| 2050 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2051 | # config.log. We remove comments because anyway the quotes in there |
| 2052 | # would cause problems or look ugly. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2053 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2054 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2055 | trap 'exit_status=$? |
| 2056 | # Save into config.log some information that might help in debugging. |
| 2057 | { |
| 2058 | echo |
| 2059 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2060 | $as_echo "## ---------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2061 | ## Cache variables. ## |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2062 | ## ---------------- ##" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2063 | echo |
| 2064 | # The following way of writing the cache mishandles newlines in values, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2065 | ( |
| 2066 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2067 | eval ac_val=\$$ac_var |
| 2068 | case $ac_val in #( |
| 2069 | *${as_nl}*) |
| 2070 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2071 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2072 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2073 | esac |
| 2074 | case $ac_var in #( |
| 2075 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2076 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2077 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2078 | esac ;; |
| 2079 | esac |
| 2080 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2081 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2082 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2083 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2084 | sed -n \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2085 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2086 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2087 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2088 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2089 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2090 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2091 | esac | |
| 2092 | sort |
| 2093 | ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2094 | echo |
| 2095 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2096 | $as_echo "## ----------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2097 | ## Output variables. ## |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2098 | ## ----------------- ##" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2099 | echo |
| 2100 | for ac_var in $ac_subst_vars |
| 2101 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2102 | eval ac_val=\$$ac_var |
| 2103 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2104 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2105 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2106 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2107 | done | sort |
| 2108 | echo |
| 2109 | |
| 2110 | if test -n "$ac_subst_files"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2111 | $as_echo "## ------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2112 | ## File substitutions. ## |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2113 | ## ------------------- ##" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2114 | echo |
| 2115 | for ac_var in $ac_subst_files |
| 2116 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2117 | eval ac_val=\$$ac_var |
| 2118 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2119 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2120 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2121 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2122 | done | sort |
| 2123 | echo |
| 2124 | fi |
| 2125 | |
| 2126 | if test -s confdefs.h; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2127 | $as_echo "## ----------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2128 | ## confdefs.h. ## |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2129 | ## ----------- ##" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2130 | echo |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2131 | cat confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2132 | echo |
| 2133 | fi |
| 2134 | test "$ac_signal" != 0 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2135 | $as_echo "$as_me: caught signal $ac_signal" |
| 2136 | $as_echo "$as_me: exit $exit_status" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2137 | } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2138 | rm -f core *.core core.conftest.* && |
| 2139 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2140 | exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2141 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2142 | for ac_signal in 1 2 13 15; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2143 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2144 | done |
| 2145 | ac_signal=0 |
| 2146 | |
| 2147 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2148 | rm -f -r conftest* confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2149 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2150 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2151 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2152 | # Predefined preprocessor variables. |
| 2153 | |
| 2154 | cat >>confdefs.h <<_ACEOF |
| 2155 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2156 | _ACEOF |
| 2157 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2158 | cat >>confdefs.h <<_ACEOF |
| 2159 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2160 | _ACEOF |
| 2161 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2162 | cat >>confdefs.h <<_ACEOF |
| 2163 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2164 | _ACEOF |
| 2165 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2166 | cat >>confdefs.h <<_ACEOF |
| 2167 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2168 | _ACEOF |
| 2169 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2170 | cat >>confdefs.h <<_ACEOF |
| 2171 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2172 | _ACEOF |
| 2173 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2174 | cat >>confdefs.h <<_ACEOF |
| 2175 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2176 | _ACEOF |
| 2177 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2178 | |
| 2179 | # Let the site file select an alternate cache file if it wants to. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2180 | # Prefer an explicitly selected file to automatically selected ones. |
| 2181 | ac_site_file1=NONE |
| 2182 | ac_site_file2=NONE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2183 | if test -n "$CONFIG_SITE"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2184 | # We do not want a PATH search for config.site. |
| 2185 | case $CONFIG_SITE in #(( |
| 2186 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2187 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2188 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2189 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2190 | elif test "x$prefix" != xNONE; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2191 | ac_site_file1=$prefix/share/config.site |
| 2192 | ac_site_file2=$prefix/etc/config.site |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2193 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2194 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2195 | ac_site_file2=$ac_default_prefix/etc/config.site |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2196 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2197 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2198 | do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2199 | test "x$ac_site_file" = xNONE && continue |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2200 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2201 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2202 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2203 | sed 's/^/| /' "$ac_site_file" >&5 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2204 | . "$ac_site_file" \ |
| 2205 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2206 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2207 | as_fn_error $? "failed to load site script $ac_site_file |
| 2208 | See \`config.log' for more details" "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2209 | fi |
| 2210 | done |
| 2211 | |
| 2212 | if test -r "$cache_file"; then |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2213 | # Some versions of bash will fail to source /dev/null (special files |
| 2214 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2215 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2216 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2217 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2218 | case $cache_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2219 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2220 | *) . "./$cache_file";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2221 | esac |
| 2222 | fi |
| 2223 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2225 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2226 | >$cache_file |
| 2227 | fi |
| 2228 | |
| 2229 | # Check that the precious variables saved in the cache have kept the same |
| 2230 | # value. |
| 2231 | ac_cache_corrupted=false |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2232 | for ac_var in $ac_precious_vars; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2233 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2234 | eval ac_new_set=\$ac_env_${ac_var}_set |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2235 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2236 | eval ac_new_val=\$ac_env_${ac_var}_value |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2237 | case $ac_old_set,$ac_new_set in |
| 2238 | set,) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2240 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2241 | ac_cache_corrupted=: ;; |
| 2242 | ,set) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2243 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2244 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2245 | ac_cache_corrupted=: ;; |
| 2246 | ,);; |
| 2247 | *) |
| 2248 | if test "x$ac_old_val" != "x$ac_new_val"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2249 | # differences in whitespace do not lead to failure. |
| 2250 | ac_old_val_w=`echo x $ac_old_val` |
| 2251 | ac_new_val_w=`echo x $ac_new_val` |
| 2252 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2254 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2255 | ac_cache_corrupted=: |
| 2256 | else |
| 2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2258 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2259 | eval $ac_var=\$ac_old_val |
| 2260 | fi |
| 2261 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2262 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2263 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2264 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2265 | fi;; |
| 2266 | esac |
| 2267 | # Pass precious variables to config.status. |
| 2268 | if test "$ac_new_set" = set; then |
| 2269 | case $ac_new_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2270 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2271 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2272 | esac |
| 2273 | case " $ac_configure_args " in |
| 2274 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2275 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2276 | esac |
| 2277 | fi |
| 2278 | done |
| 2279 | if $ac_cache_corrupted; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2280 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2281 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2282 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2283 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2284 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2285 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2286 | ## -------------------- ## |
| 2287 | ## Main body of script. ## |
| 2288 | ## -------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2289 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2290 | ac_ext=c |
| 2291 | ac_cpp='$CPP $CPPFLAGS' |
| 2292 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2293 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2294 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2295 | |
| 2296 | |
| 2297 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2298 | ac_aux_dir= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2299 | for ac_dir in autotools "$srcdir"/autotools; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2300 | if test -f "$ac_dir/install-sh"; then |
| 2301 | ac_aux_dir=$ac_dir |
| 2302 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2303 | break |
| 2304 | elif test -f "$ac_dir/install.sh"; then |
| 2305 | ac_aux_dir=$ac_dir |
| 2306 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2307 | break |
| 2308 | elif test -f "$ac_dir/shtool"; then |
| 2309 | ac_aux_dir=$ac_dir |
| 2310 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2311 | break |
| 2312 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2313 | done |
| 2314 | if test -z "$ac_aux_dir"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2315 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2316 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2317 | |
| 2318 | # These three variables are undocumented and unsupported, |
| 2319 | # and are intended to be withdrawn in a future Autoconf release. |
| 2320 | # They can cause serious problems if a builder's source tree is in a directory |
| 2321 | # whose full name contains unusual characters. |
| 2322 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2323 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2324 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2325 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2326 | |
mmentovai | 425d256 | 2006-08-30 20:05:05 +0000 | [diff] [blame] | 2327 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2328 | # Make sure we can run config.sub. |
| 2329 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2330 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2331 | |
| 2332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2333 | $as_echo_n "checking build system type... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2334 | if ${ac_cv_build+:} false; then : |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2335 | $as_echo_n "(cached) " >&6 |
| 2336 | else |
| 2337 | ac_build_alias=$build_alias |
| 2338 | test "x$ac_build_alias" = x && |
| 2339 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2340 | test "x$ac_build_alias" = x && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2341 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2342 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2343 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2344 | |
| 2345 | fi |
| 2346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2347 | $as_echo "$ac_cv_build" >&6; } |
| 2348 | case $ac_cv_build in |
| 2349 | *-*-*) ;; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2350 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2351 | esac |
| 2352 | build=$ac_cv_build |
| 2353 | ac_save_IFS=$IFS; IFS='-' |
| 2354 | set x $ac_cv_build |
| 2355 | shift |
| 2356 | build_cpu=$1 |
| 2357 | build_vendor=$2 |
| 2358 | shift; shift |
| 2359 | # Remember, the first character of IFS is used to create $*, |
| 2360 | # except with old shells: |
| 2361 | build_os=$* |
| 2362 | IFS=$ac_save_IFS |
| 2363 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2364 | |
| 2365 | |
| 2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2367 | $as_echo_n "checking host system type... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2368 | if ${ac_cv_host+:} false; then : |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2369 | $as_echo_n "(cached) " >&6 |
| 2370 | else |
| 2371 | if test "x$host_alias" = x; then |
| 2372 | ac_cv_host=$ac_cv_build |
| 2373 | else |
| 2374 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2375 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2376 | fi |
| 2377 | |
| 2378 | fi |
| 2379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2380 | $as_echo "$ac_cv_host" >&6; } |
| 2381 | case $ac_cv_host in |
| 2382 | *-*-*) ;; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2383 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2384 | esac |
| 2385 | host=$ac_cv_host |
| 2386 | ac_save_IFS=$IFS; IFS='-' |
| 2387 | set x $ac_cv_host |
| 2388 | shift |
| 2389 | host_cpu=$1 |
| 2390 | host_vendor=$2 |
| 2391 | shift; shift |
| 2392 | # Remember, the first character of IFS is used to create $*, |
| 2393 | # except with old shells: |
| 2394 | host_os=$* |
| 2395 | IFS=$ac_save_IFS |
| 2396 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2397 | |
| 2398 | |
| 2399 | |
ted.mielczarek@gmail.com | 591ba32 | 2015-08-13 16:38:19 +0000 | [diff] [blame] | 2400 | am__api_version='1.15' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2401 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2402 | # Find a good install program. We prefer a C program (faster), |
| 2403 | # so one script is as good as another. But avoid the broken or |
| 2404 | # incompatible versions: |
| 2405 | # SysV /etc/install, /usr/sbin/install |
| 2406 | # SunOS /usr/etc/install |
| 2407 | # IRIX /sbin/install |
| 2408 | # AIX /bin/install |
| 2409 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2410 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2411 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2412 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2413 | # OS/2's system install, which has a completely different semantic |
| 2414 | # ./install, which can be erroneously created by make from ./install.sh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2415 | # Reject install programs that cannot install multiple files. |
| 2416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2417 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2418 | if test -z "$INSTALL"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2419 | if ${ac_cv_path_install+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2420 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2421 | else |
| 2422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2423 | for as_dir in $PATH |
| 2424 | do |
| 2425 | IFS=$as_save_IFS |
| 2426 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2427 | # Account for people who put trailing slashes in PATH elements. |
| 2428 | case $as_dir/ in #(( |
| 2429 | ./ | .// | /[cC]/* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2430 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2431 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2432 | /usr/ucb/* ) ;; |
| 2433 | *) |
| 2434 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2435 | # Don't use installbsd from OSF since it installs stuff as root |
| 2436 | # by default. |
| 2437 | for ac_prog in ginstall scoinst install; do |
| 2438 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2439 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2440 | if test $ac_prog = install && |
| 2441 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2442 | # AIX install. It has an incompatible calling convention. |
| 2443 | : |
| 2444 | elif test $ac_prog = install && |
| 2445 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2446 | # program-specific install script used by HP pwplus--don't use. |
| 2447 | : |
| 2448 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2449 | rm -rf conftest.one conftest.two conftest.dir |
| 2450 | echo one > conftest.one |
| 2451 | echo two > conftest.two |
| 2452 | mkdir conftest.dir |
| 2453 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2454 | test -s conftest.one && test -s conftest.two && |
| 2455 | test -s conftest.dir/conftest.one && |
| 2456 | test -s conftest.dir/conftest.two |
| 2457 | then |
| 2458 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2459 | break 3 |
| 2460 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2461 | fi |
| 2462 | fi |
| 2463 | done |
| 2464 | done |
| 2465 | ;; |
| 2466 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2467 | |
| 2468 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2469 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2470 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2471 | rm -rf conftest.one conftest.two conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2472 | |
| 2473 | fi |
| 2474 | if test "${ac_cv_path_install+set}" = set; then |
| 2475 | INSTALL=$ac_cv_path_install |
| 2476 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2477 | # As a last resort, use the slow shell script. Don't cache a |
| 2478 | # value for INSTALL within a source directory, because that will |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2479 | # break other packages using the cache if that directory is |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2480 | # removed, or if the value is a relative name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2481 | INSTALL=$ac_install_sh |
| 2482 | fi |
| 2483 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2485 | $as_echo "$INSTALL" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2486 | |
| 2487 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2488 | # It thinks the first close brace ends the variable substitution. |
| 2489 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2490 | |
| 2491 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2492 | |
| 2493 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2494 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2496 | $as_echo_n "checking whether build environment is sane... " >&6; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2497 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2498 | # name. Accept space and tab only in the latter. |
| 2499 | am_lf=' |
| 2500 | ' |
| 2501 | case `pwd` in |
| 2502 | *[\\\"\#\$\&\'\`$am_lf]*) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2503 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2504 | esac |
| 2505 | case $srcdir in |
| 2506 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2507 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2508 | esac |
| 2509 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2510 | # Do 'set' in a subshell so we don't clobber the current shell's |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2511 | # arguments. Must try -L first in case configure is actually a |
| 2512 | # symlink; some systems play weird games with the mod time of symlinks |
| 2513 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2514 | # directory). |
| 2515 | if ( |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2516 | am_has_slept=no |
| 2517 | for am_try in 1 2; do |
| 2518 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 2519 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2520 | if test "$*" = "X"; then |
| 2521 | # -L didn't work. |
| 2522 | set X `ls -t "$srcdir/configure" conftest.file` |
| 2523 | fi |
| 2524 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2525 | && test "$*" != "X conftest.file $srcdir/configure"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2526 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2527 | # If neither matched, then we have a broken ls. This can happen |
| 2528 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2529 | # broken ls alias from the environment. This has actually |
| 2530 | # happened. Such a system could not be considered "sane". |
| 2531 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 2532 | alias in your environment" "$LINENO" 5 |
| 2533 | fi |
| 2534 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 2535 | break |
| 2536 | fi |
| 2537 | # Just in case. |
| 2538 | sleep 1 |
| 2539 | am_has_slept=yes |
| 2540 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2541 | test "$2" = conftest.file |
| 2542 | ) |
| 2543 | then |
| 2544 | # Ok. |
| 2545 | : |
| 2546 | else |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2547 | as_fn_error $? "newly created file is older than distributed files! |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2548 | Check your system clock" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2549 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2551 | $as_echo "yes" >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2552 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 2553 | # generated files are strictly newer. |
| 2554 | am_sleep_pid= |
| 2555 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 2556 | ( sleep 1 ) & |
| 2557 | am_sleep_pid=$! |
| 2558 | fi |
| 2559 | |
| 2560 | rm -f conftest.file |
| 2561 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2562 | test "$program_prefix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2563 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2564 | # Use a double $ so make ignores it. |
| 2565 | test "$program_suffix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2566 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2567 | # Double any \ or $. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2568 | # By default was `s,x,x', remove it if useless. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2569 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2570 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2571 | |
ted.mielczarek@gmail.com | 591ba32 | 2015-08-13 16:38:19 +0000 | [diff] [blame] | 2572 | # Expand $ac_aux_dir to an absolute path. |
| 2573 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2574 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2575 | if test x"${MISSING+set}" != xset; then |
| 2576 | case $am_aux_dir in |
| 2577 | *\ * | *\ *) |
| 2578 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2579 | *) |
| 2580 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2581 | esac |
| 2582 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2583 | # Use eval to expand $SHELL |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2584 | if eval "$MISSING --is-lightweight"; then |
| 2585 | am_missing_run="$MISSING " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2586 | else |
| 2587 | am_missing_run= |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2589 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2590 | fi |
| 2591 | |
ted.mielczarek@gmail.com | 591ba32 | 2015-08-13 16:38:19 +0000 | [diff] [blame] | 2592 | if test x"${install_sh+set}" != xset; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2593 | case $am_aux_dir in |
| 2594 | *\ * | *\ *) |
| 2595 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2596 | *) |
| 2597 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2598 | esac |
| 2599 | fi |
| 2600 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2601 | # Installed binaries are usually stripped using 'strip' when the user |
| 2602 | # run "make install-strip". However 'strip' might not be the right |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2603 | # tool to use in cross-compilation environments, therefore Automake |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2604 | # will honor the 'STRIP' environment variable to overrule this program. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2605 | if test "$cross_compiling" != no; then |
| 2606 | if test -n "$ac_tool_prefix"; then |
| 2607 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2608 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2610 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2611 | if ${ac_cv_prog_STRIP+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2612 | $as_echo_n "(cached) " >&6 |
| 2613 | else |
| 2614 | if test -n "$STRIP"; then |
| 2615 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2616 | else |
| 2617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2618 | for as_dir in $PATH |
| 2619 | do |
| 2620 | IFS=$as_save_IFS |
| 2621 | test -z "$as_dir" && as_dir=. |
| 2622 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2623 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2624 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2625 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2626 | break 2 |
| 2627 | fi |
| 2628 | done |
| 2629 | done |
| 2630 | IFS=$as_save_IFS |
| 2631 | |
| 2632 | fi |
| 2633 | fi |
| 2634 | STRIP=$ac_cv_prog_STRIP |
| 2635 | if test -n "$STRIP"; then |
| 2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2637 | $as_echo "$STRIP" >&6; } |
| 2638 | else |
| 2639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2640 | $as_echo "no" >&6; } |
| 2641 | fi |
| 2642 | |
| 2643 | |
| 2644 | fi |
| 2645 | if test -z "$ac_cv_prog_STRIP"; then |
| 2646 | ac_ct_STRIP=$STRIP |
| 2647 | # Extract the first word of "strip", so it can be a program name with args. |
| 2648 | set dummy strip; ac_word=$2 |
| 2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2650 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2651 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2652 | $as_echo_n "(cached) " >&6 |
| 2653 | else |
| 2654 | if test -n "$ac_ct_STRIP"; then |
| 2655 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2656 | else |
| 2657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2658 | for as_dir in $PATH |
| 2659 | do |
| 2660 | IFS=$as_save_IFS |
| 2661 | test -z "$as_dir" && as_dir=. |
| 2662 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2663 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2664 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2666 | break 2 |
| 2667 | fi |
| 2668 | done |
| 2669 | done |
| 2670 | IFS=$as_save_IFS |
| 2671 | |
| 2672 | fi |
| 2673 | fi |
| 2674 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2675 | if test -n "$ac_ct_STRIP"; then |
| 2676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2677 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2678 | else |
| 2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2680 | $as_echo "no" >&6; } |
| 2681 | fi |
| 2682 | |
| 2683 | if test "x$ac_ct_STRIP" = x; then |
| 2684 | STRIP=":" |
| 2685 | else |
| 2686 | case $cross_compiling:$ac_tool_warned in |
| 2687 | yes:) |
| 2688 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2689 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2690 | ac_tool_warned=yes ;; |
| 2691 | esac |
| 2692 | STRIP=$ac_ct_STRIP |
| 2693 | fi |
| 2694 | else |
| 2695 | STRIP="$ac_cv_prog_STRIP" |
| 2696 | fi |
| 2697 | |
| 2698 | fi |
| 2699 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2700 | |
| 2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2702 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2703 | if test -z "$MKDIR_P"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2704 | if ${ac_cv_path_mkdir+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2705 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2706 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2708 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2709 | do |
| 2710 | IFS=$as_save_IFS |
| 2711 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2712 | for ac_prog in mkdir gmkdir; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2713 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2714 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2715 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2716 | 'mkdir (GNU coreutils) '* | \ |
| 2717 | 'mkdir (coreutils) '* | \ |
| 2718 | 'mkdir (fileutils) '4.1*) |
| 2719 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2720 | break 3;; |
| 2721 | esac |
| 2722 | done |
| 2723 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2724 | done |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2725 | IFS=$as_save_IFS |
| 2726 | |
| 2727 | fi |
| 2728 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2729 | test -d ./--version && rmdir ./--version |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2730 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2731 | MKDIR_P="$ac_cv_path_mkdir -p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2732 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2733 | # As a last resort, use the slow shell script. Don't cache a |
| 2734 | # value for MKDIR_P within a source directory, because that will |
| 2735 | # break other packages using the cache if that directory is |
| 2736 | # removed, or if the value is a relative name. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2737 | MKDIR_P="$ac_install_sh -d" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2738 | fi |
| 2739 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2741 | $as_echo "$MKDIR_P" >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2742 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2743 | for ac_prog in gawk mawk nawk awk |
| 2744 | do |
| 2745 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2746 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2748 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2749 | if ${ac_cv_prog_AWK+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2750 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2751 | else |
| 2752 | if test -n "$AWK"; then |
| 2753 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2754 | else |
| 2755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2756 | for as_dir in $PATH |
| 2757 | do |
| 2758 | IFS=$as_save_IFS |
| 2759 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2760 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2761 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2762 | ac_cv_prog_AWK="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2764 | break 2 |
| 2765 | fi |
| 2766 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2767 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2768 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2769 | |
| 2770 | fi |
| 2771 | fi |
| 2772 | AWK=$ac_cv_prog_AWK |
| 2773 | if test -n "$AWK"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2775 | $as_echo "$AWK" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2776 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2778 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2779 | fi |
| 2780 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2781 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2782 | test -n "$AWK" && break |
| 2783 | done |
| 2784 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2786 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2787 | set x ${MAKE-make} |
| 2788 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2789 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2790 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2791 | else |
| 2792 | cat >conftest.make <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2793 | SHELL = /bin/sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2794 | all: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2795 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2796 | _ACEOF |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2797 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2798 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2799 | *@@@%%%=?*=@@@%%%*) |
| 2800 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2801 | *) |
| 2802 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2803 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2804 | rm -f conftest.make |
| 2805 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2806 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2808 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2809 | SET_MAKE= |
| 2810 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2812 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2813 | SET_MAKE="MAKE=${MAKE-make}" |
| 2814 | fi |
| 2815 | |
| 2816 | rm -rf .tst 2>/dev/null |
| 2817 | mkdir .tst 2>/dev/null |
| 2818 | if test -d .tst; then |
| 2819 | am__leading_dot=. |
| 2820 | else |
| 2821 | am__leading_dot=_ |
| 2822 | fi |
| 2823 | rmdir .tst 2>/dev/null |
| 2824 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2825 | # Check whether --enable-silent-rules was given. |
| 2826 | if test "${enable_silent_rules+set}" = set; then : |
| 2827 | enableval=$enable_silent_rules; |
| 2828 | fi |
| 2829 | |
| 2830 | case $enable_silent_rules in # ((( |
| 2831 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 2832 | no) AM_DEFAULT_VERBOSITY=1;; |
| 2833 | *) AM_DEFAULT_VERBOSITY=1;; |
| 2834 | esac |
| 2835 | am_make=${MAKE-make} |
| 2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 2837 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 2838 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 2839 | $as_echo_n "(cached) " >&6 |
| 2840 | else |
| 2841 | if $as_echo 'TRUE=$(BAR$(V)) |
| 2842 | BAR0=false |
| 2843 | BAR1=true |
| 2844 | V=1 |
| 2845 | am__doit: |
| 2846 | @$(TRUE) |
| 2847 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 2848 | am_cv_make_support_nested_variables=yes |
| 2849 | else |
| 2850 | am_cv_make_support_nested_variables=no |
| 2851 | fi |
| 2852 | fi |
| 2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 2854 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 2855 | if test $am_cv_make_support_nested_variables = yes; then |
| 2856 | AM_V='$(V)' |
| 2857 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 2858 | else |
| 2859 | AM_V=$AM_DEFAULT_VERBOSITY |
| 2860 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 2861 | fi |
| 2862 | AM_BACKSLASH='\' |
| 2863 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2864 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2865 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2866 | # is not polluted with repeated "-I." |
| 2867 | am__isrc=' -I$(srcdir)' |
| 2868 | # test to see if srcdir already configured |
| 2869 | if test -f $srcdir/config.status; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2870 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2871 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2872 | fi |
| 2873 | |
| 2874 | # test whether we have cygpath |
| 2875 | if test -z "$CYGPATH_W"; then |
| 2876 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2877 | CYGPATH_W='cygpath -w' |
| 2878 | else |
| 2879 | CYGPATH_W=echo |
| 2880 | fi |
| 2881 | fi |
| 2882 | |
| 2883 | |
| 2884 | # Define the identity of the package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2885 | PACKAGE='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2886 | VERSION='0.1' |
| 2887 | |
| 2888 | |
| 2889 | cat >>confdefs.h <<_ACEOF |
| 2890 | #define PACKAGE "$PACKAGE" |
| 2891 | _ACEOF |
| 2892 | |
| 2893 | |
| 2894 | cat >>confdefs.h <<_ACEOF |
| 2895 | #define VERSION "$VERSION" |
| 2896 | _ACEOF |
| 2897 | |
| 2898 | # Some tools Automake needs. |
| 2899 | |
| 2900 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2901 | |
| 2902 | |
| 2903 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2904 | |
| 2905 | |
| 2906 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2907 | |
| 2908 | |
| 2909 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2910 | |
| 2911 | |
| 2912 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2913 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2914 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 2915 | # dies out for good. For more background, see: |
| 2916 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 2917 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 2918 | mkdir_p='$(MKDIR_P)' |
| 2919 | |
ted.mielczarek@gmail.com | 591ba32 | 2015-08-13 16:38:19 +0000 | [diff] [blame] | 2920 | # We need awk for the "check" target (and possibly the TAP driver). The |
| 2921 | # system "awk" is bad on some platforms. |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 2922 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 2923 | # in the wild :-( We should find a proper way to deprecate it ... |
| 2924 | AMTAR='$${TAR-tar}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2925 | |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2926 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2927 | # We'll loop over all known methods to create a tar archive until one works. |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2928 | _am_tools='gnutar plaintar pax cpio none' |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2929 | |
| 2930 | # The POSIX 1988 'ustar' format is defined with fixed-size fields. |
| 2931 | # There is notably a 21 bits limit for the UID and the GID. In fact, |
| 2932 | # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 |
| 2933 | # and bug#13588). |
| 2934 | am_max_uid=2097151 # 2^21 - 1 |
| 2935 | am_max_gid=$am_max_uid |
| 2936 | # The $UID and $GID variables are not portable, so we need to resort |
| 2937 | # to the POSIX-mandated id(1) utility. Errors in the 'id' calls |
| 2938 | # below are definitely unexpected, so allow the users to see them |
| 2939 | # (that is, avoid stderr redirection). |
| 2940 | am_uid=`id -u || echo unknown` |
| 2941 | am_gid=`id -g || echo unknown` |
| 2942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 |
| 2943 | $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } |
| 2944 | if test $am_uid -le $am_max_uid; then |
| 2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2946 | $as_echo "yes" >&6; } |
| 2947 | else |
| 2948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2949 | $as_echo "no" >&6; } |
| 2950 | _am_tools=none |
| 2951 | fi |
| 2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 |
| 2953 | $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } |
| 2954 | if test $am_gid -le $am_max_gid; then |
| 2955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2956 | $as_echo "yes" >&6; } |
| 2957 | else |
| 2958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2959 | $as_echo "no" >&6; } |
| 2960 | _am_tools=none |
| 2961 | fi |
| 2962 | |
| 2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 |
| 2964 | $as_echo_n "checking how to create a ustar tar archive... " >&6; } |
| 2965 | |
| 2966 | # Go ahead even if we have the value already cached. We do so because we |
| 2967 | # need to set the values for the 'am__tar' and 'am__untar' variables. |
| 2968 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
| 2969 | |
| 2970 | for _am_tool in $_am_tools; do |
| 2971 | case $_am_tool in |
| 2972 | gnutar) |
| 2973 | for _am_tar in tar gnutar gtar; do |
| 2974 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2975 | ($_am_tar --version) >&5 2>&5 |
| 2976 | ac_status=$? |
| 2977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2978 | (exit $ac_status); } && break |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2979 | done |
| 2980 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
| 2981 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
| 2982 | am__untar="$_am_tar -xf -" |
| 2983 | ;; |
| 2984 | plaintar) |
| 2985 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 2986 | # ustar tarball either. |
| 2987 | (tar --version) >/dev/null 2>&1 && continue |
| 2988 | am__tar='tar chf - "$$tardir"' |
| 2989 | am__tar_='tar chf - "$tardir"' |
| 2990 | am__untar='tar xf -' |
| 2991 | ;; |
| 2992 | pax) |
| 2993 | am__tar='pax -L -x ustar -w "$$tardir"' |
| 2994 | am__tar_='pax -L -x ustar -w "$tardir"' |
| 2995 | am__untar='pax -r' |
| 2996 | ;; |
| 2997 | cpio) |
| 2998 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
| 2999 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
| 3000 | am__untar='cpio -i -H ustar -d' |
| 3001 | ;; |
| 3002 | none) |
| 3003 | am__tar=false |
| 3004 | am__tar_=false |
| 3005 | am__untar=false |
| 3006 | ;; |
| 3007 | esac |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 3008 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3009 | # If the value was cached, stop now. We just wanted to have am__tar |
| 3010 | # and am__untar set. |
| 3011 | test -n "${am_cv_prog_tar_ustar}" && break |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 3012 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3013 | # tar/untar a dummy directory, and stop if the command works. |
| 3014 | rm -rf conftest.dir |
| 3015 | mkdir conftest.dir |
| 3016 | echo GrepMe > conftest.dir/file |
| 3017 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 3018 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 3019 | ac_status=$? |
| 3020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3021 | (exit $ac_status); } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3022 | rm -rf conftest.dir |
| 3023 | if test -s conftest.tar; then |
| 3024 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 3025 | ($am__untar <conftest.tar) >&5 2>&5 |
| 3026 | ac_status=$? |
| 3027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3028 | (exit $ac_status); } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3029 | { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 |
| 3030 | (cat conftest.dir/file) >&5 2>&5 |
| 3031 | ac_status=$? |
| 3032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3033 | (exit $ac_status); } |
| 3034 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 3035 | fi |
| 3036 | done |
| 3037 | rm -rf conftest.dir |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 3038 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3039 | if ${am_cv_prog_tar_ustar+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3040 | $as_echo_n "(cached) " >&6 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 3041 | else |
| 3042 | am_cv_prog_tar_ustar=$_am_tool |
| 3043 | fi |
| 3044 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3046 | $as_echo "$am_cv_prog_tar_ustar" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3047 | |
| 3048 | |
| 3049 | |
| 3050 | |
| 3051 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3052 | |
| 3053 | # POSIX will say in a future version that running "rm -f" with no argument |
| 3054 | # is OK; and we want to be able to make that assumption in our Makefile |
| 3055 | # recipes. So use an aggressive probe to check that the usage we want is |
| 3056 | # actually supported "in the wild" to an acceptable degree. |
| 3057 | # See automake bug#10828. |
| 3058 | # To make any issue more visible, cause the running configure to be aborted |
| 3059 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 3060 | # user can still override this though. |
| 3061 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 3062 | cat >&2 <<'END' |
| 3063 | Oops! |
| 3064 | |
| 3065 | Your 'rm' program seems unable to run without file operands specified |
| 3066 | on the command line, even when the '-f' option is present. This is contrary |
| 3067 | to the behaviour of most rm programs out there, and not conforming with |
| 3068 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 3069 | |
| 3070 | Please tell bug-automake@gnu.org about your system, including the value |
| 3071 | of your $PATH and any error possibly output before this message. This |
| 3072 | can help us improve future automake versions. |
| 3073 | |
| 3074 | END |
| 3075 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 3076 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 3077 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 3078 | echo >&2 |
| 3079 | else |
| 3080 | cat >&2 <<'END' |
| 3081 | Aborting the configuration process, to ensure you take notice of the issue. |
| 3082 | |
| 3083 | You can download and install GNU coreutils to get an 'rm' implementation |
| 3084 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| 3085 | |
| 3086 | If you want to complete the configuration process using your problematic |
| 3087 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 3088 | to "yes", and re-run configure. |
| 3089 | |
| 3090 | END |
| 3091 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 3092 | fi |
| 3093 | fi |
ted.mielczarek@gmail.com | 591ba32 | 2015-08-13 16:38:19 +0000 | [diff] [blame] | 3094 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3095 | ac_config_headers="$ac_config_headers src/config.h" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3096 | |
| 3097 | |
ted.mielczarek@gmail.com | 07bb231 | 2013-12-10 12:28:11 +0000 | [diff] [blame] | 3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 3099 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 3100 | # Check whether --enable-maintainer-mode was given. |
| 3101 | if test "${enable_maintainer_mode+set}" = set; then : |
| 3102 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 3103 | else |
| 3104 | USE_MAINTAINER_MODE=no |
| 3105 | fi |
| 3106 | |
| 3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 3108 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 3109 | if test $USE_MAINTAINER_MODE = yes; then |
| 3110 | MAINTAINER_MODE_TRUE= |
| 3111 | MAINTAINER_MODE_FALSE='#' |
| 3112 | else |
| 3113 | MAINTAINER_MODE_TRUE='#' |
| 3114 | MAINTAINER_MODE_FALSE= |
| 3115 | fi |
| 3116 | |
| 3117 | MAINT=$MAINTAINER_MODE_TRUE |
| 3118 | |
| 3119 | |
| 3120 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3121 | DEPDIR="${am__leading_dot}deps" |
| 3122 | |
| 3123 | ac_config_commands="$ac_config_commands depfiles" |
| 3124 | |
| 3125 | |
| 3126 | am_make=${MAKE-make} |
| 3127 | cat > confinc << 'END' |
| 3128 | am__doit: |
| 3129 | @echo this is the am__doit target |
| 3130 | .PHONY: am__doit |
| 3131 | END |
| 3132 | # If we don't find an include directive, just comment out the code. |
| 3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3134 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 3135 | am__include="#" |
| 3136 | am__quote= |
| 3137 | _am_result=none |
| 3138 | # First try GNU make style include. |
| 3139 | echo "include confinc" > confmf |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3140 | # Ignore all kinds of additional output from 'make'. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3141 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3142 | *the\ am__doit\ target*) |
| 3143 | am__include=include |
| 3144 | am__quote= |
| 3145 | _am_result=GNU |
| 3146 | ;; |
| 3147 | esac |
| 3148 | # Now try BSD make style include. |
| 3149 | if test "$am__include" = "#"; then |
| 3150 | echo '.include "confinc"' > confmf |
| 3151 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3152 | *the\ am__doit\ target*) |
| 3153 | am__include=.include |
| 3154 | am__quote="\"" |
| 3155 | _am_result=BSD |
| 3156 | ;; |
| 3157 | esac |
| 3158 | fi |
| 3159 | |
| 3160 | |
| 3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3162 | $as_echo "$_am_result" >&6; } |
| 3163 | rm -f confinc confmf |
| 3164 | |
| 3165 | # Check whether --enable-dependency-tracking was given. |
| 3166 | if test "${enable_dependency_tracking+set}" = set; then : |
| 3167 | enableval=$enable_dependency_tracking; |
| 3168 | fi |
| 3169 | |
| 3170 | if test "x$enable_dependency_tracking" != xno; then |
| 3171 | am_depcomp="$ac_aux_dir/depcomp" |
| 3172 | AMDEPBACKSLASH='\' |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 3173 | am__nodep='_no' |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3174 | fi |
| 3175 | if test "x$enable_dependency_tracking" != xno; then |
| 3176 | AMDEP_TRUE= |
| 3177 | AMDEP_FALSE='#' |
| 3178 | else |
| 3179 | AMDEP_TRUE='#' |
| 3180 | AMDEP_FALSE= |
| 3181 | fi |
| 3182 | |
| 3183 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3184 | ac_ext=c |
| 3185 | ac_cpp='$CPP $CPPFLAGS' |
| 3186 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3187 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3188 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3189 | if test -n "$ac_tool_prefix"; then |
| 3190 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3191 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3193 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3194 | if ${ac_cv_prog_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3195 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3196 | else |
| 3197 | if test -n "$CC"; then |
| 3198 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3199 | else |
| 3200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3201 | for as_dir in $PATH |
| 3202 | do |
| 3203 | IFS=$as_save_IFS |
| 3204 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3205 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3206 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3207 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3209 | break 2 |
| 3210 | fi |
| 3211 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3212 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3213 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3214 | |
| 3215 | fi |
| 3216 | fi |
| 3217 | CC=$ac_cv_prog_CC |
| 3218 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3220 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3221 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3223 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3224 | fi |
| 3225 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3226 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3227 | fi |
| 3228 | if test -z "$ac_cv_prog_CC"; then |
| 3229 | ac_ct_CC=$CC |
| 3230 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3231 | set dummy gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3233 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3234 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3235 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3236 | else |
| 3237 | if test -n "$ac_ct_CC"; then |
| 3238 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3239 | else |
| 3240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3241 | for as_dir in $PATH |
| 3242 | do |
| 3243 | IFS=$as_save_IFS |
| 3244 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3245 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3246 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3247 | ac_cv_prog_ac_ct_CC="gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3249 | break 2 |
| 3250 | fi |
| 3251 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3252 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3253 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3254 | |
| 3255 | fi |
| 3256 | fi |
| 3257 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3258 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3260 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3261 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3263 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3264 | fi |
| 3265 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3266 | if test "x$ac_ct_CC" = x; then |
| 3267 | CC="" |
| 3268 | else |
| 3269 | case $cross_compiling:$ac_tool_warned in |
| 3270 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3272 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3273 | ac_tool_warned=yes ;; |
| 3274 | esac |
| 3275 | CC=$ac_ct_CC |
| 3276 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3277 | else |
| 3278 | CC="$ac_cv_prog_CC" |
| 3279 | fi |
| 3280 | |
| 3281 | if test -z "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3282 | if test -n "$ac_tool_prefix"; then |
| 3283 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3284 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3286 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3287 | if ${ac_cv_prog_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3288 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3289 | else |
| 3290 | if test -n "$CC"; then |
| 3291 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3292 | else |
| 3293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3294 | for as_dir in $PATH |
| 3295 | do |
| 3296 | IFS=$as_save_IFS |
| 3297 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3298 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3299 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3300 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3302 | break 2 |
| 3303 | fi |
| 3304 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3305 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3306 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3307 | |
| 3308 | fi |
| 3309 | fi |
| 3310 | CC=$ac_cv_prog_CC |
| 3311 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3313 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3314 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3316 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3317 | fi |
| 3318 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3319 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3320 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3321 | fi |
| 3322 | if test -z "$CC"; then |
| 3323 | # Extract the first word of "cc", so it can be a program name with args. |
| 3324 | set dummy cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3326 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3327 | if ${ac_cv_prog_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3328 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3329 | else |
| 3330 | if test -n "$CC"; then |
| 3331 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3332 | else |
| 3333 | ac_prog_rejected=no |
| 3334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3335 | for as_dir in $PATH |
| 3336 | do |
| 3337 | IFS=$as_save_IFS |
| 3338 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3339 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3340 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3341 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3342 | ac_prog_rejected=yes |
| 3343 | continue |
| 3344 | fi |
| 3345 | ac_cv_prog_CC="cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3346 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3347 | break 2 |
| 3348 | fi |
| 3349 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3350 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3351 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3352 | |
| 3353 | if test $ac_prog_rejected = yes; then |
| 3354 | # We found a bogon in the path, so make sure we never use it. |
| 3355 | set dummy $ac_cv_prog_CC |
| 3356 | shift |
| 3357 | if test $# != 0; then |
| 3358 | # We chose a different compiler from the bogus one. |
| 3359 | # However, it has the same basename, so the bogon will be chosen |
| 3360 | # first if we set CC to just the basename; use the full file name. |
| 3361 | shift |
| 3362 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3363 | fi |
| 3364 | fi |
| 3365 | fi |
| 3366 | fi |
| 3367 | CC=$ac_cv_prog_CC |
| 3368 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3370 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3371 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3373 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3374 | fi |
| 3375 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3376 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3377 | fi |
| 3378 | if test -z "$CC"; then |
| 3379 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3380 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3381 | do |
| 3382 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3383 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3385 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3386 | if ${ac_cv_prog_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3387 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3388 | else |
| 3389 | if test -n "$CC"; then |
| 3390 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3391 | else |
| 3392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3393 | for as_dir in $PATH |
| 3394 | do |
| 3395 | IFS=$as_save_IFS |
| 3396 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3397 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3398 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3399 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3401 | break 2 |
| 3402 | fi |
| 3403 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3404 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3405 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3406 | |
| 3407 | fi |
| 3408 | fi |
| 3409 | CC=$ac_cv_prog_CC |
| 3410 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3412 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3413 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3415 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3416 | fi |
| 3417 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3418 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3419 | test -n "$CC" && break |
| 3420 | done |
| 3421 | fi |
| 3422 | if test -z "$CC"; then |
| 3423 | ac_ct_CC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3424 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3425 | do |
| 3426 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3427 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3429 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3430 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3431 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3432 | else |
| 3433 | if test -n "$ac_ct_CC"; then |
| 3434 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3435 | else |
| 3436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3437 | for as_dir in $PATH |
| 3438 | do |
| 3439 | IFS=$as_save_IFS |
| 3440 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3441 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3442 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3443 | ac_cv_prog_ac_ct_CC="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3445 | break 2 |
| 3446 | fi |
| 3447 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3448 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3449 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3450 | |
| 3451 | fi |
| 3452 | fi |
| 3453 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3454 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3456 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3457 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3459 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3460 | fi |
| 3461 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3462 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3463 | test -n "$ac_ct_CC" && break |
| 3464 | done |
| 3465 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3466 | if test "x$ac_ct_CC" = x; then |
| 3467 | CC="" |
| 3468 | else |
| 3469 | case $cross_compiling:$ac_tool_warned in |
| 3470 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3471 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3472 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3473 | ac_tool_warned=yes ;; |
| 3474 | esac |
| 3475 | CC=$ac_ct_CC |
| 3476 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3477 | fi |
| 3478 | |
| 3479 | fi |
| 3480 | |
| 3481 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3482 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3483 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3484 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3485 | See \`config.log' for more details" "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3486 | |
| 3487 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3488 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3489 | set X $ac_compile |
| 3490 | ac_compiler=$2 |
| 3491 | for ac_option in --version -v -V -qversion; do |
| 3492 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3493 | case "(($ac_try" in |
| 3494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3495 | *) ac_try_echo=$ac_try;; |
| 3496 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3497 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3498 | $as_echo "$ac_try_echo"; } >&5 |
| 3499 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3500 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3501 | if test -s conftest.err; then |
| 3502 | sed '10a\ |
| 3503 | ... rest of stderr output deleted ... |
| 3504 | 10q' conftest.err >conftest.er1 |
| 3505 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3506 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3507 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3509 | test $ac_status = 0; } |
| 3510 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3511 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3513 | /* end confdefs.h. */ |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3514 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3515 | int |
| 3516 | main () |
| 3517 | { |
| 3518 | |
| 3519 | ; |
| 3520 | return 0; |
| 3521 | } |
| 3522 | _ACEOF |
| 3523 | ac_clean_files_save=$ac_clean_files |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3524 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3525 | # Try to create an executable without -o first, disregard a.out. |
| 3526 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3527 | # of exeext. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3529 | $as_echo_n "checking whether the C compiler works... " >&6; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3530 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3531 | |
| 3532 | # The possible output files: |
| 3533 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3534 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3535 | ac_rmfiles= |
| 3536 | for ac_file in $ac_files |
| 3537 | do |
| 3538 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3539 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3540 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3541 | esac |
| 3542 | done |
| 3543 | rm -f $ac_rmfiles |
| 3544 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3545 | if { { ac_try="$ac_link_default" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3546 | case "(($ac_try" in |
| 3547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3548 | *) ac_try_echo=$ac_try;; |
| 3549 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3550 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3551 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3552 | (eval "$ac_link_default") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3553 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3554 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3555 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3556 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3557 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3558 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3559 | # so that the user can short-circuit this test for compilers unknown to |
| 3560 | # Autoconf. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3561 | for ac_file in $ac_files '' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3562 | do |
| 3563 | test -f "$ac_file" || continue |
| 3564 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3565 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3566 | ;; |
| 3567 | [ab].out ) |
| 3568 | # We found the default executable, but exeext='' is most |
| 3569 | # certainly right. |
| 3570 | break;; |
| 3571 | *.* ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3572 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3573 | then :; else |
| 3574 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3575 | fi |
| 3576 | # We set ac_cv_exeext here because the later test for it is not |
| 3577 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3578 | # argument, so we may need to know it at that point already. |
| 3579 | # Even if this section looks crufty: it has the advantage of |
| 3580 | # actually working. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3581 | break;; |
| 3582 | * ) |
| 3583 | break;; |
| 3584 | esac |
| 3585 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3586 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3587 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3588 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3589 | ac_file='' |
| 3590 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3591 | if test -z "$ac_file"; then : |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3593 | $as_echo "no" >&6; } |
| 3594 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3596 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3597 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3598 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3599 | as_fn_error 77 "C compiler cannot create executables |
| 3600 | See \`config.log' for more details" "$LINENO" 5; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3601 | else |
| 3602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3603 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3604 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3606 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3608 | $as_echo "$ac_file" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3609 | ac_exeext=$ac_cv_exeext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3610 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3611 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3612 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3614 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3615 | if { { ac_try="$ac_link" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3616 | case "(($ac_try" in |
| 3617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3618 | *) ac_try_echo=$ac_try;; |
| 3619 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3620 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3621 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3622 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3623 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3625 | test $ac_status = 0; }; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3626 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3627 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3628 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3629 | # `rm'. |
| 3630 | for ac_file in conftest.exe conftest conftest.*; do |
| 3631 | test -f "$ac_file" || continue |
| 3632 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3633 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3634 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3635 | break;; |
| 3636 | * ) break;; |
| 3637 | esac |
| 3638 | done |
| 3639 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3640 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3641 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3642 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3643 | See \`config.log' for more details" "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3644 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3645 | rm -f conftest conftest$ac_cv_exeext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3647 | $as_echo "$ac_cv_exeext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3648 | |
| 3649 | rm -f conftest.$ac_ext |
| 3650 | EXEEXT=$ac_cv_exeext |
| 3651 | ac_exeext=$EXEEXT |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3653 | /* end confdefs.h. */ |
| 3654 | #include <stdio.h> |
| 3655 | int |
| 3656 | main () |
| 3657 | { |
| 3658 | FILE *f = fopen ("conftest.out", "w"); |
| 3659 | return ferror (f) || fclose (f) != 0; |
| 3660 | |
| 3661 | ; |
| 3662 | return 0; |
| 3663 | } |
| 3664 | _ACEOF |
| 3665 | ac_clean_files="$ac_clean_files conftest.out" |
| 3666 | # Check that the compiler produces executables we can run. If not, either |
| 3667 | # the compiler is broken, or we cross compile. |
| 3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3669 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3670 | if test "$cross_compiling" != yes; then |
| 3671 | { { ac_try="$ac_link" |
| 3672 | case "(($ac_try" in |
| 3673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3674 | *) ac_try_echo=$ac_try;; |
| 3675 | esac |
| 3676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3677 | $as_echo "$ac_try_echo"; } >&5 |
| 3678 | (eval "$ac_link") 2>&5 |
| 3679 | ac_status=$? |
| 3680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3681 | test $ac_status = 0; } |
| 3682 | if { ac_try='./conftest$ac_cv_exeext' |
| 3683 | { { case "(($ac_try" in |
| 3684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3685 | *) ac_try_echo=$ac_try;; |
| 3686 | esac |
| 3687 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3688 | $as_echo "$ac_try_echo"; } >&5 |
| 3689 | (eval "$ac_try") 2>&5 |
| 3690 | ac_status=$? |
| 3691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3692 | test $ac_status = 0; }; }; then |
| 3693 | cross_compiling=no |
| 3694 | else |
| 3695 | if test "$cross_compiling" = maybe; then |
| 3696 | cross_compiling=yes |
| 3697 | else |
| 3698 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3699 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3700 | as_fn_error $? "cannot run C compiled programs. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3701 | If you meant to cross compile, use \`--host'. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3702 | See \`config.log' for more details" "$LINENO" 5; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3703 | fi |
| 3704 | fi |
| 3705 | fi |
| 3706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3707 | $as_echo "$cross_compiling" >&6; } |
| 3708 | |
| 3709 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3710 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3712 | $as_echo_n "checking for suffix of object files... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3713 | if ${ac_cv_objext+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3714 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3715 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3717 | /* end confdefs.h. */ |
| 3718 | |
| 3719 | int |
| 3720 | main () |
| 3721 | { |
| 3722 | |
| 3723 | ; |
| 3724 | return 0; |
| 3725 | } |
| 3726 | _ACEOF |
| 3727 | rm -f conftest.o conftest.obj |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3728 | if { { ac_try="$ac_compile" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3729 | case "(($ac_try" in |
| 3730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3731 | *) ac_try_echo=$ac_try;; |
| 3732 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3733 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3734 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3735 | (eval "$ac_compile") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3736 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3738 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3739 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3740 | test -f "$ac_file" || continue; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3741 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3742 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3743 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3744 | break;; |
| 3745 | esac |
| 3746 | done |
| 3747 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3748 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3750 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3751 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3752 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3753 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3754 | See \`config.log' for more details" "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3755 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3756 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3757 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3759 | $as_echo "$ac_cv_objext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3760 | OBJEXT=$ac_cv_objext |
| 3761 | ac_objext=$OBJEXT |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3763 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3764 | if ${ac_cv_c_compiler_gnu+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3765 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3766 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3768 | /* end confdefs.h. */ |
| 3769 | |
| 3770 | int |
| 3771 | main () |
| 3772 | { |
| 3773 | #ifndef __GNUC__ |
| 3774 | choke me |
| 3775 | #endif |
| 3776 | |
| 3777 | ; |
| 3778 | return 0; |
| 3779 | } |
| 3780 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3781 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3782 | ac_compiler_gnu=yes |
| 3783 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3784 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3785 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3787 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3788 | |
| 3789 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3791 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3792 | if test $ac_compiler_gnu = yes; then |
| 3793 | GCC=yes |
| 3794 | else |
| 3795 | GCC= |
| 3796 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3797 | ac_test_CFLAGS=${CFLAGS+set} |
| 3798 | ac_save_CFLAGS=$CFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3800 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3801 | if ${ac_cv_prog_cc_g+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3802 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3803 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3804 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3805 | ac_c_werror_flag=yes |
| 3806 | ac_cv_prog_cc_g=no |
| 3807 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3809 | /* end confdefs.h. */ |
| 3810 | |
| 3811 | int |
| 3812 | main () |
| 3813 | { |
| 3814 | |
| 3815 | ; |
| 3816 | return 0; |
| 3817 | } |
| 3818 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3819 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3820 | ac_cv_prog_cc_g=yes |
| 3821 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3822 | CFLAGS="" |
| 3823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3824 | /* end confdefs.h. */ |
| 3825 | |
| 3826 | int |
| 3827 | main () |
| 3828 | { |
| 3829 | |
| 3830 | ; |
| 3831 | return 0; |
| 3832 | } |
| 3833 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3834 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3835 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3836 | else |
| 3837 | ac_c_werror_flag=$ac_save_c_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3838 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3840 | /* end confdefs.h. */ |
| 3841 | |
| 3842 | int |
| 3843 | main () |
| 3844 | { |
| 3845 | |
| 3846 | ; |
| 3847 | return 0; |
| 3848 | } |
| 3849 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3850 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3851 | ac_cv_prog_cc_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3852 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3854 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3856 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3858 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3859 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3861 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3862 | if test "$ac_test_CFLAGS" = set; then |
| 3863 | CFLAGS=$ac_save_CFLAGS |
| 3864 | elif test $ac_cv_prog_cc_g = yes; then |
| 3865 | if test "$GCC" = yes; then |
| 3866 | CFLAGS="-g -O2" |
| 3867 | else |
| 3868 | CFLAGS="-g" |
| 3869 | fi |
| 3870 | else |
| 3871 | if test "$GCC" = yes; then |
| 3872 | CFLAGS="-O2" |
| 3873 | else |
| 3874 | CFLAGS= |
| 3875 | fi |
| 3876 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3878 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3879 | if ${ac_cv_prog_cc_c89+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3880 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3881 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3882 | ac_cv_prog_cc_c89=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3883 | ac_save_CC=$CC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3885 | /* end confdefs.h. */ |
| 3886 | #include <stdarg.h> |
| 3887 | #include <stdio.h> |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3888 | struct stat; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3889 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3890 | struct buf { int x; }; |
| 3891 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3892 | static char *e (p, i) |
| 3893 | char **p; |
| 3894 | int i; |
| 3895 | { |
| 3896 | return p[i]; |
| 3897 | } |
| 3898 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3899 | { |
| 3900 | char *s; |
| 3901 | va_list v; |
| 3902 | va_start (v,p); |
| 3903 | s = g (p, va_arg (v,int)); |
| 3904 | va_end (v); |
| 3905 | return s; |
| 3906 | } |
| 3907 | |
| 3908 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3909 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3910 | These don't provoke an error unfortunately, instead are silently treated |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3911 | as 'x'. The following induces an error, until -std is added to get |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3912 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3913 | array size at least. It's necessary to write '\x00'==0 to get something |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3914 | that's true only with -std. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3915 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3916 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3917 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3918 | inside strings and character constants. */ |
| 3919 | #define FOO(x) 'x' |
| 3920 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3921 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3922 | int test (int i, double x); |
| 3923 | struct s1 {int (*f) (int a);}; |
| 3924 | struct s2 {int (*f) (double a);}; |
| 3925 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3926 | int argc; |
| 3927 | char **argv; |
| 3928 | int |
| 3929 | main () |
| 3930 | { |
| 3931 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3932 | ; |
| 3933 | return 0; |
| 3934 | } |
| 3935 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3936 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3937 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3938 | do |
| 3939 | CC="$ac_save_CC $ac_arg" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3940 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3941 | ac_cv_prog_cc_c89=$ac_arg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3942 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3943 | rm -f core conftest.err conftest.$ac_objext |
| 3944 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3945 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3946 | rm -f conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3947 | CC=$ac_save_CC |
| 3948 | |
| 3949 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3950 | # AC_CACHE_VAL |
| 3951 | case "x$ac_cv_prog_cc_c89" in |
| 3952 | x) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3954 | $as_echo "none needed" >&6; } ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3955 | xno) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3957 | $as_echo "unsupported" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3958 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3959 | CC="$CC $ac_cv_prog_cc_c89" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3961 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3962 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3963 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3964 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3965 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3966 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3967 | ac_ext=c |
| 3968 | ac_cpp='$CPP $CPPFLAGS' |
| 3969 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3970 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3971 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3972 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3973 | ac_ext=c |
| 3974 | ac_cpp='$CPP $CPPFLAGS' |
| 3975 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3976 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3977 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 3979 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 3980 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 3981 | $as_echo_n "(cached) " >&6 |
| 3982 | else |
| 3983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3984 | /* end confdefs.h. */ |
| 3985 | |
| 3986 | int |
| 3987 | main () |
| 3988 | { |
| 3989 | |
| 3990 | ; |
| 3991 | return 0; |
| 3992 | } |
| 3993 | _ACEOF |
| 3994 | # Make sure it works both with $CC and with simple cc. |
| 3995 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 3996 | # compilers refuse to overwrite an existing .o file with -o, |
| 3997 | # though they will create one. |
| 3998 | am_cv_prog_cc_c_o=yes |
| 3999 | for am_i in 1 2; do |
| 4000 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 4001 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 4002 | ac_status=$? |
| 4003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4004 | (exit $ac_status); } \ |
| 4005 | && test -f conftest2.$ac_objext; then |
| 4006 | : OK |
| 4007 | else |
| 4008 | am_cv_prog_cc_c_o=no |
| 4009 | break |
| 4010 | fi |
| 4011 | done |
| 4012 | rm -f core conftest* |
| 4013 | unset am_i |
| 4014 | fi |
| 4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 4016 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 4017 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 4018 | # Losing compiler, so override with the script. |
| 4019 | # FIXME: It is wrong to rewrite CC. |
| 4020 | # But if we don't then we get into trouble of one sort or another. |
| 4021 | # A longer-term fix would be to have automake use am__CC in this case, |
| 4022 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 4023 | CC="$am_aux_dir/compile $CC" |
| 4024 | fi |
| 4025 | ac_ext=c |
| 4026 | ac_cpp='$CPP $CPPFLAGS' |
| 4027 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4028 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4029 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4030 | |
| 4031 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4032 | depcc="$CC" am_compiler_list= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4033 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4035 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4036 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4037 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4038 | else |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4039 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4040 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4041 | # making bogus files that we don't know about and never remove. For |
| 4042 | # instance it was reported that on HP-UX the gcc test will end up |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4043 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4044 | # in D". |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 4045 | rm -rf conftest.dir |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4046 | mkdir conftest.dir |
| 4047 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4048 | # using a relative directory. |
| 4049 | cp "$am_depcomp" conftest.dir |
| 4050 | cd conftest.dir |
| 4051 | # We will build objects and dependencies in a subdirectory because |
| 4052 | # it helps to detect inapplicable dependency modes. For instance |
| 4053 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4054 | # side effect of compilation, but ICC will put the dependencies in |
| 4055 | # the current directory while Tru64 will put them in the object |
| 4056 | # directory. |
| 4057 | mkdir sub |
| 4058 | |
| 4059 | am_cv_CC_dependencies_compiler_type=none |
| 4060 | if test "$am_compiler_list" = ""; then |
| 4061 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4062 | fi |
| 4063 | am__universal=false |
| 4064 | case " $depcc " in #( |
| 4065 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4066 | esac |
| 4067 | |
| 4068 | for depmode in $am_compiler_list; do |
| 4069 | # Setup a source with many dependencies, because some compilers |
| 4070 | # like to wrap large dependency lists on column 80 (with \), and |
| 4071 | # we should not choose a depcomp mode which is confused by this. |
| 4072 | # |
| 4073 | # We need to recreate these files for each test, as the compiler may |
| 4074 | # overwrite some of them when testing with obscure command lines. |
| 4075 | # This happens at least with the AIX C compiler. |
| 4076 | : > sub/conftest.c |
| 4077 | for i in 1 2 3 4 5 6; do |
| 4078 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4079 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4080 | # Solaris 10 /bin/sh. |
| 4081 | echo '/* dummy */' > sub/conftst$i.h |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4082 | done |
| 4083 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4084 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4085 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4086 | # mode. It turns out that the SunPro C++ compiler does not properly |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4087 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 4088 | # versions had trouble with output in subdirs. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4089 | am__obj=sub/conftest.${OBJEXT-o} |
| 4090 | am__minus_obj="-o $am__obj" |
| 4091 | case $depmode in |
| 4092 | gcc) |
| 4093 | # This depmode causes a compiler race in universal mode. |
| 4094 | test "$am__universal" = false || continue |
| 4095 | ;; |
| 4096 | nosideeffect) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4097 | # After this tag, mechanisms are not by side-effect, so they'll |
| 4098 | # only be used when explicitly requested. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4099 | if test "x$enable_dependency_tracking" = xyes; then |
| 4100 | continue |
| 4101 | else |
| 4102 | break |
| 4103 | fi |
| 4104 | ;; |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 4105 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4106 | # This compiler won't grok '-c -o', but also, the minuso test has |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4107 | # not run yet. These depmodes are late enough in the game, and |
| 4108 | # so weak that their functioning should not be impacted. |
| 4109 | am__obj=conftest.${OBJEXT-o} |
| 4110 | am__minus_obj= |
| 4111 | ;; |
| 4112 | none) break ;; |
| 4113 | esac |
| 4114 | if depmode=$depmode \ |
| 4115 | source=sub/conftest.c object=$am__obj \ |
| 4116 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4117 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4118 | >/dev/null 2>conftest.err && |
| 4119 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4120 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4121 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4122 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4123 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4124 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4125 | # that says an option was ignored or not supported. |
| 4126 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4127 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4128 | # The diagnosis changed in icc 8.0: |
| 4129 | # icc: Command line remark: option '-MP' not supported |
| 4130 | if (grep 'ignoring option' conftest.err || |
| 4131 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4132 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4133 | break |
| 4134 | fi |
| 4135 | fi |
| 4136 | done |
| 4137 | |
| 4138 | cd .. |
| 4139 | rm -rf conftest.dir |
| 4140 | else |
| 4141 | am_cv_CC_dependencies_compiler_type=none |
| 4142 | fi |
| 4143 | |
| 4144 | fi |
| 4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4146 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4147 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4148 | |
| 4149 | if |
| 4150 | test "x$enable_dependency_tracking" != xno \ |
| 4151 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4152 | am__fastdepCC_TRUE= |
| 4153 | am__fastdepCC_FALSE='#' |
| 4154 | else |
| 4155 | am__fastdepCC_TRUE='#' |
| 4156 | am__fastdepCC_FALSE= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4157 | fi |
| 4158 | |
| 4159 | |
Mike Frysinger | f217ae4 | 2015-11-11 13:43:14 -0500 | [diff] [blame] | 4160 | |
| 4161 | if test -n "$ac_tool_prefix"; then |
| 4162 | for ac_prog in ar lib "link -lib" |
| 4163 | do |
| 4164 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4165 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4167 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4168 | if ${ac_cv_prog_AR+:} false; then : |
| 4169 | $as_echo_n "(cached) " >&6 |
| 4170 | else |
| 4171 | if test -n "$AR"; then |
| 4172 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4173 | else |
| 4174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4175 | for as_dir in $PATH |
| 4176 | do |
| 4177 | IFS=$as_save_IFS |
| 4178 | test -z "$as_dir" && as_dir=. |
| 4179 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4180 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4181 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 4182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4183 | break 2 |
| 4184 | fi |
| 4185 | done |
| 4186 | done |
| 4187 | IFS=$as_save_IFS |
| 4188 | |
| 4189 | fi |
| 4190 | fi |
| 4191 | AR=$ac_cv_prog_AR |
| 4192 | if test -n "$AR"; then |
| 4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 4194 | $as_echo "$AR" >&6; } |
| 4195 | else |
| 4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4197 | $as_echo "no" >&6; } |
| 4198 | fi |
| 4199 | |
| 4200 | |
| 4201 | test -n "$AR" && break |
| 4202 | done |
| 4203 | fi |
| 4204 | if test -z "$AR"; then |
| 4205 | ac_ct_AR=$AR |
| 4206 | for ac_prog in ar lib "link -lib" |
| 4207 | do |
| 4208 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4209 | set dummy $ac_prog; ac_word=$2 |
| 4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4211 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4212 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 4213 | $as_echo_n "(cached) " >&6 |
| 4214 | else |
| 4215 | if test -n "$ac_ct_AR"; then |
| 4216 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4217 | else |
| 4218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4219 | for as_dir in $PATH |
| 4220 | do |
| 4221 | IFS=$as_save_IFS |
| 4222 | test -z "$as_dir" && as_dir=. |
| 4223 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4225 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 4226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4227 | break 2 |
| 4228 | fi |
| 4229 | done |
| 4230 | done |
| 4231 | IFS=$as_save_IFS |
| 4232 | |
| 4233 | fi |
| 4234 | fi |
| 4235 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4236 | if test -n "$ac_ct_AR"; then |
| 4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 4238 | $as_echo "$ac_ct_AR" >&6; } |
| 4239 | else |
| 4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4241 | $as_echo "no" >&6; } |
| 4242 | fi |
| 4243 | |
| 4244 | |
| 4245 | test -n "$ac_ct_AR" && break |
| 4246 | done |
| 4247 | |
| 4248 | if test "x$ac_ct_AR" = x; then |
| 4249 | AR="false" |
| 4250 | else |
| 4251 | case $cross_compiling:$ac_tool_warned in |
| 4252 | yes:) |
| 4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4254 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4255 | ac_tool_warned=yes ;; |
| 4256 | esac |
| 4257 | AR=$ac_ct_AR |
| 4258 | fi |
| 4259 | fi |
| 4260 | |
| 4261 | : ${AR=ar} |
| 4262 | |
| 4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 |
| 4264 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } |
| 4265 | if ${am_cv_ar_interface+:} false; then : |
| 4266 | $as_echo_n "(cached) " >&6 |
| 4267 | else |
| 4268 | ac_ext=c |
| 4269 | ac_cpp='$CPP $CPPFLAGS' |
| 4270 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4271 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4272 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4273 | |
| 4274 | am_cv_ar_interface=ar |
| 4275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4276 | /* end confdefs.h. */ |
| 4277 | int some_variable = 0; |
| 4278 | _ACEOF |
| 4279 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4280 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' |
| 4281 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 4282 | (eval $am_ar_try) 2>&5 |
| 4283 | ac_status=$? |
| 4284 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4285 | test $ac_status = 0; } |
| 4286 | if test "$ac_status" -eq 0; then |
| 4287 | am_cv_ar_interface=ar |
| 4288 | else |
| 4289 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' |
| 4290 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 4291 | (eval $am_ar_try) 2>&5 |
| 4292 | ac_status=$? |
| 4293 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4294 | test $ac_status = 0; } |
| 4295 | if test "$ac_status" -eq 0; then |
| 4296 | am_cv_ar_interface=lib |
| 4297 | else |
| 4298 | am_cv_ar_interface=unknown |
| 4299 | fi |
| 4300 | fi |
| 4301 | rm -f conftest.lib libconftest.a |
| 4302 | |
| 4303 | fi |
| 4304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4305 | ac_ext=c |
| 4306 | ac_cpp='$CPP $CPPFLAGS' |
| 4307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4310 | |
| 4311 | fi |
| 4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 |
| 4313 | $as_echo "$am_cv_ar_interface" >&6; } |
| 4314 | |
| 4315 | case $am_cv_ar_interface in |
| 4316 | ar) |
| 4317 | ;; |
| 4318 | lib) |
| 4319 | # Microsoft lib, so override with the ar-lib wrapper script. |
| 4320 | # FIXME: It is wrong to rewrite AR. |
| 4321 | # But if we don't then we get into trouble of one sort or another. |
| 4322 | # A longer-term fix would be to have automake use am__AR in this case, |
| 4323 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something |
| 4324 | # similar. |
| 4325 | AR="$am_aux_dir/ar-lib $AR" |
| 4326 | ;; |
| 4327 | unknown) |
| 4328 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 |
| 4329 | ;; |
| 4330 | esac |
| 4331 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4332 | # By default we simply use the C compiler to build assembly code. |
| 4333 | |
| 4334 | test "${CCAS+set}" = set || CCAS=$CC |
| 4335 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS |
| 4336 | |
| 4337 | |
| 4338 | |
| 4339 | depcc="$CCAS" am_compiler_list= |
| 4340 | |
| 4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4342 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4343 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4344 | $as_echo_n "(cached) " >&6 |
| 4345 | else |
| 4346 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4347 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4348 | # making bogus files that we don't know about and never remove. For |
| 4349 | # instance it was reported that on HP-UX the gcc test will end up |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4350 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4351 | # in D". |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 4352 | rm -rf conftest.dir |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4353 | mkdir conftest.dir |
| 4354 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4355 | # using a relative directory. |
| 4356 | cp "$am_depcomp" conftest.dir |
| 4357 | cd conftest.dir |
| 4358 | # We will build objects and dependencies in a subdirectory because |
| 4359 | # it helps to detect inapplicable dependency modes. For instance |
| 4360 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4361 | # side effect of compilation, but ICC will put the dependencies in |
| 4362 | # the current directory while Tru64 will put them in the object |
| 4363 | # directory. |
| 4364 | mkdir sub |
| 4365 | |
| 4366 | am_cv_CCAS_dependencies_compiler_type=none |
| 4367 | if test "$am_compiler_list" = ""; then |
| 4368 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4369 | fi |
| 4370 | am__universal=false |
| 4371 | |
| 4372 | |
| 4373 | for depmode in $am_compiler_list; do |
| 4374 | # Setup a source with many dependencies, because some compilers |
| 4375 | # like to wrap large dependency lists on column 80 (with \), and |
| 4376 | # we should not choose a depcomp mode which is confused by this. |
| 4377 | # |
| 4378 | # We need to recreate these files for each test, as the compiler may |
| 4379 | # overwrite some of them when testing with obscure command lines. |
| 4380 | # This happens at least with the AIX C compiler. |
| 4381 | : > sub/conftest.c |
| 4382 | for i in 1 2 3 4 5 6; do |
| 4383 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4384 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4385 | # Solaris 10 /bin/sh. |
| 4386 | echo '/* dummy */' > sub/conftst$i.h |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4387 | done |
| 4388 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4389 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4390 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4391 | # mode. It turns out that the SunPro C++ compiler does not properly |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4392 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 4393 | # versions had trouble with output in subdirs. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4394 | am__obj=sub/conftest.${OBJEXT-o} |
| 4395 | am__minus_obj="-o $am__obj" |
| 4396 | case $depmode in |
| 4397 | gcc) |
| 4398 | # This depmode causes a compiler race in universal mode. |
| 4399 | test "$am__universal" = false || continue |
| 4400 | ;; |
| 4401 | nosideeffect) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4402 | # After this tag, mechanisms are not by side-effect, so they'll |
| 4403 | # only be used when explicitly requested. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4404 | if test "x$enable_dependency_tracking" = xyes; then |
| 4405 | continue |
| 4406 | else |
| 4407 | break |
| 4408 | fi |
| 4409 | ;; |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 4410 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4411 | # This compiler won't grok '-c -o', but also, the minuso test has |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4412 | # not run yet. These depmodes are late enough in the game, and |
| 4413 | # so weak that their functioning should not be impacted. |
| 4414 | am__obj=conftest.${OBJEXT-o} |
| 4415 | am__minus_obj= |
| 4416 | ;; |
| 4417 | none) break ;; |
| 4418 | esac |
| 4419 | if depmode=$depmode \ |
| 4420 | source=sub/conftest.c object=$am__obj \ |
| 4421 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4422 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4423 | >/dev/null 2>conftest.err && |
| 4424 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4425 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4426 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4427 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4428 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4429 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4430 | # that says an option was ignored or not supported. |
| 4431 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4432 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4433 | # The diagnosis changed in icc 8.0: |
| 4434 | # icc: Command line remark: option '-MP' not supported |
| 4435 | if (grep 'ignoring option' conftest.err || |
| 4436 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4437 | am_cv_CCAS_dependencies_compiler_type=$depmode |
| 4438 | break |
| 4439 | fi |
| 4440 | fi |
| 4441 | done |
| 4442 | |
| 4443 | cd .. |
| 4444 | rm -rf conftest.dir |
| 4445 | else |
| 4446 | am_cv_CCAS_dependencies_compiler_type=none |
| 4447 | fi |
| 4448 | |
| 4449 | fi |
| 4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 |
| 4451 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } |
| 4452 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type |
| 4453 | |
| 4454 | if |
| 4455 | test "x$enable_dependency_tracking" != xno \ |
| 4456 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then |
| 4457 | am__fastdepCCAS_TRUE= |
| 4458 | am__fastdepCCAS_FALSE='#' |
| 4459 | else |
| 4460 | am__fastdepCCAS_TRUE='#' |
| 4461 | am__fastdepCCAS_FALSE= |
| 4462 | fi |
| 4463 | |
| 4464 | |
| 4465 | ac_ext=c |
| 4466 | ac_cpp='$CPP $CPPFLAGS' |
| 4467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4468 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4469 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4470 | if test -n "$ac_tool_prefix"; then |
| 4471 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4472 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4474 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4475 | if ${ac_cv_prog_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4476 | $as_echo_n "(cached) " >&6 |
| 4477 | else |
| 4478 | if test -n "$CC"; then |
| 4479 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4480 | else |
| 4481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4482 | for as_dir in $PATH |
| 4483 | do |
| 4484 | IFS=$as_save_IFS |
| 4485 | test -z "$as_dir" && as_dir=. |
| 4486 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4487 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4488 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4490 | break 2 |
| 4491 | fi |
| 4492 | done |
| 4493 | done |
| 4494 | IFS=$as_save_IFS |
| 4495 | |
| 4496 | fi |
| 4497 | fi |
| 4498 | CC=$ac_cv_prog_CC |
| 4499 | if test -n "$CC"; then |
| 4500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4501 | $as_echo "$CC" >&6; } |
| 4502 | else |
| 4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4504 | $as_echo "no" >&6; } |
| 4505 | fi |
| 4506 | |
| 4507 | |
| 4508 | fi |
| 4509 | if test -z "$ac_cv_prog_CC"; then |
| 4510 | ac_ct_CC=$CC |
| 4511 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4512 | set dummy gcc; ac_word=$2 |
| 4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4514 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4515 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4516 | $as_echo_n "(cached) " >&6 |
| 4517 | else |
| 4518 | if test -n "$ac_ct_CC"; then |
| 4519 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4520 | else |
| 4521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4522 | for as_dir in $PATH |
| 4523 | do |
| 4524 | IFS=$as_save_IFS |
| 4525 | test -z "$as_dir" && as_dir=. |
| 4526 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4527 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4528 | ac_cv_prog_ac_ct_CC="gcc" |
| 4529 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4530 | break 2 |
| 4531 | fi |
| 4532 | done |
| 4533 | done |
| 4534 | IFS=$as_save_IFS |
| 4535 | |
| 4536 | fi |
| 4537 | fi |
| 4538 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4539 | if test -n "$ac_ct_CC"; then |
| 4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4541 | $as_echo "$ac_ct_CC" >&6; } |
| 4542 | else |
| 4543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4544 | $as_echo "no" >&6; } |
| 4545 | fi |
| 4546 | |
| 4547 | if test "x$ac_ct_CC" = x; then |
| 4548 | CC="" |
| 4549 | else |
| 4550 | case $cross_compiling:$ac_tool_warned in |
| 4551 | yes:) |
| 4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4553 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4554 | ac_tool_warned=yes ;; |
| 4555 | esac |
| 4556 | CC=$ac_ct_CC |
| 4557 | fi |
| 4558 | else |
| 4559 | CC="$ac_cv_prog_CC" |
| 4560 | fi |
| 4561 | |
| 4562 | if test -z "$CC"; then |
| 4563 | if test -n "$ac_tool_prefix"; then |
| 4564 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4565 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4567 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4568 | if ${ac_cv_prog_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4569 | $as_echo_n "(cached) " >&6 |
| 4570 | else |
| 4571 | if test -n "$CC"; then |
| 4572 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4573 | else |
| 4574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4575 | for as_dir in $PATH |
| 4576 | do |
| 4577 | IFS=$as_save_IFS |
| 4578 | test -z "$as_dir" && as_dir=. |
| 4579 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4580 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4581 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4583 | break 2 |
| 4584 | fi |
| 4585 | done |
| 4586 | done |
| 4587 | IFS=$as_save_IFS |
| 4588 | |
| 4589 | fi |
| 4590 | fi |
| 4591 | CC=$ac_cv_prog_CC |
| 4592 | if test -n "$CC"; then |
| 4593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4594 | $as_echo "$CC" >&6; } |
| 4595 | else |
| 4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4597 | $as_echo "no" >&6; } |
| 4598 | fi |
| 4599 | |
| 4600 | |
| 4601 | fi |
| 4602 | fi |
| 4603 | if test -z "$CC"; then |
| 4604 | # Extract the first word of "cc", so it can be a program name with args. |
| 4605 | set dummy cc; ac_word=$2 |
| 4606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4607 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4608 | if ${ac_cv_prog_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4609 | $as_echo_n "(cached) " >&6 |
| 4610 | else |
| 4611 | if test -n "$CC"; then |
| 4612 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4613 | else |
| 4614 | ac_prog_rejected=no |
| 4615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4616 | for as_dir in $PATH |
| 4617 | do |
| 4618 | IFS=$as_save_IFS |
| 4619 | test -z "$as_dir" && as_dir=. |
| 4620 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4621 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4622 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4623 | ac_prog_rejected=yes |
| 4624 | continue |
| 4625 | fi |
| 4626 | ac_cv_prog_CC="cc" |
| 4627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4628 | break 2 |
| 4629 | fi |
| 4630 | done |
| 4631 | done |
| 4632 | IFS=$as_save_IFS |
| 4633 | |
| 4634 | if test $ac_prog_rejected = yes; then |
| 4635 | # We found a bogon in the path, so make sure we never use it. |
| 4636 | set dummy $ac_cv_prog_CC |
| 4637 | shift |
| 4638 | if test $# != 0; then |
| 4639 | # We chose a different compiler from the bogus one. |
| 4640 | # However, it has the same basename, so the bogon will be chosen |
| 4641 | # first if we set CC to just the basename; use the full file name. |
| 4642 | shift |
| 4643 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4644 | fi |
| 4645 | fi |
| 4646 | fi |
| 4647 | fi |
| 4648 | CC=$ac_cv_prog_CC |
| 4649 | if test -n "$CC"; then |
| 4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4651 | $as_echo "$CC" >&6; } |
| 4652 | else |
| 4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4654 | $as_echo "no" >&6; } |
| 4655 | fi |
| 4656 | |
| 4657 | |
| 4658 | fi |
| 4659 | if test -z "$CC"; then |
| 4660 | if test -n "$ac_tool_prefix"; then |
| 4661 | for ac_prog in cl.exe |
| 4662 | do |
| 4663 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4664 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4666 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4667 | if ${ac_cv_prog_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4668 | $as_echo_n "(cached) " >&6 |
| 4669 | else |
| 4670 | if test -n "$CC"; then |
| 4671 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4672 | else |
| 4673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4674 | for as_dir in $PATH |
| 4675 | do |
| 4676 | IFS=$as_save_IFS |
| 4677 | test -z "$as_dir" && as_dir=. |
| 4678 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4679 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4680 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4682 | break 2 |
| 4683 | fi |
| 4684 | done |
| 4685 | done |
| 4686 | IFS=$as_save_IFS |
| 4687 | |
| 4688 | fi |
| 4689 | fi |
| 4690 | CC=$ac_cv_prog_CC |
| 4691 | if test -n "$CC"; then |
| 4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4693 | $as_echo "$CC" >&6; } |
| 4694 | else |
| 4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4696 | $as_echo "no" >&6; } |
| 4697 | fi |
| 4698 | |
| 4699 | |
| 4700 | test -n "$CC" && break |
| 4701 | done |
| 4702 | fi |
| 4703 | if test -z "$CC"; then |
| 4704 | ac_ct_CC=$CC |
| 4705 | for ac_prog in cl.exe |
| 4706 | do |
| 4707 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4708 | set dummy $ac_prog; ac_word=$2 |
| 4709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4710 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4711 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4712 | $as_echo_n "(cached) " >&6 |
| 4713 | else |
| 4714 | if test -n "$ac_ct_CC"; then |
| 4715 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4716 | else |
| 4717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4718 | for as_dir in $PATH |
| 4719 | do |
| 4720 | IFS=$as_save_IFS |
| 4721 | test -z "$as_dir" && as_dir=. |
| 4722 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4723 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4724 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4726 | break 2 |
| 4727 | fi |
| 4728 | done |
| 4729 | done |
| 4730 | IFS=$as_save_IFS |
| 4731 | |
| 4732 | fi |
| 4733 | fi |
| 4734 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4735 | if test -n "$ac_ct_CC"; then |
| 4736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4737 | $as_echo "$ac_ct_CC" >&6; } |
| 4738 | else |
| 4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4740 | $as_echo "no" >&6; } |
| 4741 | fi |
| 4742 | |
| 4743 | |
| 4744 | test -n "$ac_ct_CC" && break |
| 4745 | done |
| 4746 | |
| 4747 | if test "x$ac_ct_CC" = x; then |
| 4748 | CC="" |
| 4749 | else |
| 4750 | case $cross_compiling:$ac_tool_warned in |
| 4751 | yes:) |
| 4752 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4753 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4754 | ac_tool_warned=yes ;; |
| 4755 | esac |
| 4756 | CC=$ac_ct_CC |
| 4757 | fi |
| 4758 | fi |
| 4759 | |
| 4760 | fi |
| 4761 | |
| 4762 | |
| 4763 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4764 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4765 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4766 | See \`config.log' for more details" "$LINENO" 5; } |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4767 | |
| 4768 | # Provide some information about the compiler. |
| 4769 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4770 | set X $ac_compile |
| 4771 | ac_compiler=$2 |
| 4772 | for ac_option in --version -v -V -qversion; do |
| 4773 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4774 | case "(($ac_try" in |
| 4775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4776 | *) ac_try_echo=$ac_try;; |
| 4777 | esac |
| 4778 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4779 | $as_echo "$ac_try_echo"; } >&5 |
| 4780 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4781 | ac_status=$? |
| 4782 | if test -s conftest.err; then |
| 4783 | sed '10a\ |
| 4784 | ... rest of stderr output deleted ... |
| 4785 | 10q' conftest.err >conftest.er1 |
| 4786 | cat conftest.er1 >&5 |
| 4787 | fi |
| 4788 | rm -f conftest.er1 conftest.err |
| 4789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4790 | test $ac_status = 0; } |
| 4791 | done |
| 4792 | |
| 4793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4794 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4795 | if ${ac_cv_c_compiler_gnu+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4796 | $as_echo_n "(cached) " >&6 |
| 4797 | else |
| 4798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4799 | /* end confdefs.h. */ |
| 4800 | |
| 4801 | int |
| 4802 | main () |
| 4803 | { |
| 4804 | #ifndef __GNUC__ |
| 4805 | choke me |
| 4806 | #endif |
| 4807 | |
| 4808 | ; |
| 4809 | return 0; |
| 4810 | } |
| 4811 | _ACEOF |
| 4812 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4813 | ac_compiler_gnu=yes |
| 4814 | else |
| 4815 | ac_compiler_gnu=no |
| 4816 | fi |
| 4817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4818 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4819 | |
| 4820 | fi |
| 4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4822 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4823 | if test $ac_compiler_gnu = yes; then |
| 4824 | GCC=yes |
| 4825 | else |
| 4826 | GCC= |
| 4827 | fi |
| 4828 | ac_test_CFLAGS=${CFLAGS+set} |
| 4829 | ac_save_CFLAGS=$CFLAGS |
| 4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4831 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4832 | if ${ac_cv_prog_cc_g+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4833 | $as_echo_n "(cached) " >&6 |
| 4834 | else |
| 4835 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4836 | ac_c_werror_flag=yes |
| 4837 | ac_cv_prog_cc_g=no |
| 4838 | CFLAGS="-g" |
| 4839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4840 | /* end confdefs.h. */ |
| 4841 | |
| 4842 | int |
| 4843 | main () |
| 4844 | { |
| 4845 | |
| 4846 | ; |
| 4847 | return 0; |
| 4848 | } |
| 4849 | _ACEOF |
| 4850 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4851 | ac_cv_prog_cc_g=yes |
| 4852 | else |
| 4853 | CFLAGS="" |
| 4854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4855 | /* end confdefs.h. */ |
| 4856 | |
| 4857 | int |
| 4858 | main () |
| 4859 | { |
| 4860 | |
| 4861 | ; |
| 4862 | return 0; |
| 4863 | } |
| 4864 | _ACEOF |
| 4865 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4866 | |
| 4867 | else |
| 4868 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4869 | CFLAGS="-g" |
| 4870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4871 | /* end confdefs.h. */ |
| 4872 | |
| 4873 | int |
| 4874 | main () |
| 4875 | { |
| 4876 | |
| 4877 | ; |
| 4878 | return 0; |
| 4879 | } |
| 4880 | _ACEOF |
| 4881 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4882 | ac_cv_prog_cc_g=yes |
| 4883 | fi |
| 4884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4885 | fi |
| 4886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4887 | fi |
| 4888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4889 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4890 | fi |
| 4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4892 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4893 | if test "$ac_test_CFLAGS" = set; then |
| 4894 | CFLAGS=$ac_save_CFLAGS |
| 4895 | elif test $ac_cv_prog_cc_g = yes; then |
| 4896 | if test "$GCC" = yes; then |
| 4897 | CFLAGS="-g -O2" |
| 4898 | else |
| 4899 | CFLAGS="-g" |
| 4900 | fi |
| 4901 | else |
| 4902 | if test "$GCC" = yes; then |
| 4903 | CFLAGS="-O2" |
| 4904 | else |
| 4905 | CFLAGS= |
| 4906 | fi |
| 4907 | fi |
| 4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4909 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4910 | if ${ac_cv_prog_cc_c89+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4911 | $as_echo_n "(cached) " >&6 |
| 4912 | else |
| 4913 | ac_cv_prog_cc_c89=no |
| 4914 | ac_save_CC=$CC |
| 4915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4916 | /* end confdefs.h. */ |
| 4917 | #include <stdarg.h> |
| 4918 | #include <stdio.h> |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4919 | struct stat; |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4920 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4921 | struct buf { int x; }; |
| 4922 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4923 | static char *e (p, i) |
| 4924 | char **p; |
| 4925 | int i; |
| 4926 | { |
| 4927 | return p[i]; |
| 4928 | } |
| 4929 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4930 | { |
| 4931 | char *s; |
| 4932 | va_list v; |
| 4933 | va_start (v,p); |
| 4934 | s = g (p, va_arg (v,int)); |
| 4935 | va_end (v); |
| 4936 | return s; |
| 4937 | } |
| 4938 | |
| 4939 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4940 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4941 | These don't provoke an error unfortunately, instead are silently treated |
| 4942 | as 'x'. The following induces an error, until -std is added to get |
| 4943 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4944 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4945 | that's true only with -std. */ |
| 4946 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4947 | |
| 4948 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4949 | inside strings and character constants. */ |
| 4950 | #define FOO(x) 'x' |
| 4951 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4952 | |
| 4953 | int test (int i, double x); |
| 4954 | struct s1 {int (*f) (int a);}; |
| 4955 | struct s2 {int (*f) (double a);}; |
| 4956 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4957 | int argc; |
| 4958 | char **argv; |
| 4959 | int |
| 4960 | main () |
| 4961 | { |
| 4962 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4963 | ; |
| 4964 | return 0; |
| 4965 | } |
| 4966 | _ACEOF |
| 4967 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4968 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4969 | do |
| 4970 | CC="$ac_save_CC $ac_arg" |
| 4971 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4972 | ac_cv_prog_cc_c89=$ac_arg |
| 4973 | fi |
| 4974 | rm -f core conftest.err conftest.$ac_objext |
| 4975 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4976 | done |
| 4977 | rm -f conftest.$ac_ext |
| 4978 | CC=$ac_save_CC |
| 4979 | |
| 4980 | fi |
| 4981 | # AC_CACHE_VAL |
| 4982 | case "x$ac_cv_prog_cc_c89" in |
| 4983 | x) |
| 4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4985 | $as_echo "none needed" >&6; } ;; |
| 4986 | xno) |
| 4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4988 | $as_echo "unsupported" >&6; } ;; |
| 4989 | *) |
| 4990 | CC="$CC $ac_cv_prog_cc_c89" |
| 4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4992 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4993 | esac |
| 4994 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4995 | |
| 4996 | fi |
| 4997 | |
| 4998 | ac_ext=c |
| 4999 | ac_cpp='$CPP $CPPFLAGS' |
| 5000 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5001 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5002 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5003 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5004 | ac_ext=c |
| 5005 | ac_cpp='$CPP $CPPFLAGS' |
| 5006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 5010 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 5011 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 5012 | $as_echo_n "(cached) " >&6 |
| 5013 | else |
| 5014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5015 | /* end confdefs.h. */ |
| 5016 | |
| 5017 | int |
| 5018 | main () |
| 5019 | { |
| 5020 | |
| 5021 | ; |
| 5022 | return 0; |
| 5023 | } |
| 5024 | _ACEOF |
| 5025 | # Make sure it works both with $CC and with simple cc. |
| 5026 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 5027 | # compilers refuse to overwrite an existing .o file with -o, |
| 5028 | # though they will create one. |
| 5029 | am_cv_prog_cc_c_o=yes |
| 5030 | for am_i in 1 2; do |
| 5031 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 5032 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 5033 | ac_status=$? |
| 5034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5035 | (exit $ac_status); } \ |
| 5036 | && test -f conftest2.$ac_objext; then |
| 5037 | : OK |
| 5038 | else |
| 5039 | am_cv_prog_cc_c_o=no |
| 5040 | break |
| 5041 | fi |
| 5042 | done |
| 5043 | rm -f core conftest* |
| 5044 | unset am_i |
| 5045 | fi |
| 5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 5047 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 5048 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 5049 | # Losing compiler, so override with the script. |
| 5050 | # FIXME: It is wrong to rewrite CC. |
| 5051 | # But if we don't then we get into trouble of one sort or another. |
| 5052 | # A longer-term fix would be to have automake use am__CC in this case, |
| 5053 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 5054 | CC="$am_aux_dir/compile $CC" |
| 5055 | fi |
| 5056 | ac_ext=c |
| 5057 | ac_cpp='$CPP $CPPFLAGS' |
| 5058 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5059 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5060 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5061 | |
| 5062 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5063 | depcc="$CC" am_compiler_list= |
| 5064 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5066 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5067 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5068 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5069 | else |
| 5070 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5071 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5072 | # making bogus files that we don't know about and never remove. For |
| 5073 | # instance it was reported that on HP-UX the gcc test will end up |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5074 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 5075 | # in D". |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 5076 | rm -rf conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5077 | mkdir conftest.dir |
| 5078 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5079 | # using a relative directory. |
| 5080 | cp "$am_depcomp" conftest.dir |
| 5081 | cd conftest.dir |
| 5082 | # We will build objects and dependencies in a subdirectory because |
| 5083 | # it helps to detect inapplicable dependency modes. For instance |
| 5084 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5085 | # side effect of compilation, but ICC will put the dependencies in |
| 5086 | # the current directory while Tru64 will put them in the object |
| 5087 | # directory. |
| 5088 | mkdir sub |
| 5089 | |
| 5090 | am_cv_CC_dependencies_compiler_type=none |
| 5091 | if test "$am_compiler_list" = ""; then |
| 5092 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5093 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5094 | am__universal=false |
| 5095 | case " $depcc " in #( |
| 5096 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5097 | esac |
| 5098 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5099 | for depmode in $am_compiler_list; do |
| 5100 | # Setup a source with many dependencies, because some compilers |
| 5101 | # like to wrap large dependency lists on column 80 (with \), and |
| 5102 | # we should not choose a depcomp mode which is confused by this. |
| 5103 | # |
| 5104 | # We need to recreate these files for each test, as the compiler may |
| 5105 | # overwrite some of them when testing with obscure command lines. |
| 5106 | # This happens at least with the AIX C compiler. |
| 5107 | : > sub/conftest.c |
| 5108 | for i in 1 2 3 4 5 6; do |
| 5109 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5110 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 5111 | # Solaris 10 /bin/sh. |
| 5112 | echo '/* dummy */' > sub/conftst$i.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5113 | done |
| 5114 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5115 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5116 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5117 | # mode. It turns out that the SunPro C++ compiler does not properly |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5118 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 5119 | # versions had trouble with output in subdirs. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5120 | am__obj=sub/conftest.${OBJEXT-o} |
| 5121 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5122 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5123 | gcc) |
| 5124 | # This depmode causes a compiler race in universal mode. |
| 5125 | test "$am__universal" = false || continue |
| 5126 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5127 | nosideeffect) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5128 | # After this tag, mechanisms are not by side-effect, so they'll |
| 5129 | # only be used when explicitly requested. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5130 | if test "x$enable_dependency_tracking" = xyes; then |
| 5131 | continue |
| 5132 | else |
| 5133 | break |
| 5134 | fi |
| 5135 | ;; |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 5136 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5137 | # This compiler won't grok '-c -o', but also, the minuso test has |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5138 | # not run yet. These depmodes are late enough in the game, and |
| 5139 | # so weak that their functioning should not be impacted. |
| 5140 | am__obj=conftest.${OBJEXT-o} |
| 5141 | am__minus_obj= |
| 5142 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5143 | none) break ;; |
| 5144 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5145 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5146 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5147 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5148 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5149 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5150 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5151 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5152 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5153 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5154 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5155 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5156 | # that says an option was ignored or not supported. |
| 5157 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5158 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5159 | # The diagnosis changed in icc 8.0: |
| 5160 | # icc: Command line remark: option '-MP' not supported |
| 5161 | if (grep 'ignoring option' conftest.err || |
| 5162 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5163 | am_cv_CC_dependencies_compiler_type=$depmode |
| 5164 | break |
| 5165 | fi |
| 5166 | fi |
| 5167 | done |
| 5168 | |
| 5169 | cd .. |
| 5170 | rm -rf conftest.dir |
| 5171 | else |
| 5172 | am_cv_CC_dependencies_compiler_type=none |
| 5173 | fi |
| 5174 | |
| 5175 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5177 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5178 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5179 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5180 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5181 | test "x$enable_dependency_tracking" != xno \ |
| 5182 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5183 | am__fastdepCC_TRUE= |
| 5184 | am__fastdepCC_FALSE='#' |
| 5185 | else |
| 5186 | am__fastdepCC_TRUE='#' |
| 5187 | am__fastdepCC_FALSE= |
| 5188 | fi |
| 5189 | |
| 5190 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5191 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5192 | ac_ext=c |
| 5193 | ac_cpp='$CPP $CPPFLAGS' |
| 5194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5198 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5199 | # On Suns, sometimes $CPP names a directory. |
| 5200 | if test -n "$CPP" && test -d "$CPP"; then |
| 5201 | CPP= |
| 5202 | fi |
| 5203 | if test -z "$CPP"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5204 | if ${ac_cv_prog_CPP+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5205 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5206 | else |
| 5207 | # Double quotes because CPP needs to be expanded |
| 5208 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5209 | do |
| 5210 | ac_preproc_ok=false |
| 5211 | for ac_c_preproc_warn_flag in '' yes |
| 5212 | do |
| 5213 | # Use a header file that comes with gcc, so configuring glibc |
| 5214 | # with a fresh cross-compiler works. |
| 5215 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5216 | # <limits.h> exists even on freestanding compilers. |
| 5217 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5218 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5220 | /* end confdefs.h. */ |
| 5221 | #ifdef __STDC__ |
| 5222 | # include <limits.h> |
| 5223 | #else |
| 5224 | # include <assert.h> |
| 5225 | #endif |
| 5226 | Syntax error |
| 5227 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5228 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5229 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5230 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5231 | # Broken: fails on valid input. |
| 5232 | continue |
| 5233 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5234 | rm -f conftest.err conftest.i conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5235 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5236 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5237 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5239 | /* end confdefs.h. */ |
| 5240 | #include <ac_nonexistent.h> |
| 5241 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5242 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5243 | # Broken: success on invalid input. |
| 5244 | continue |
| 5245 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5246 | # Passes both tests. |
| 5247 | ac_preproc_ok=: |
| 5248 | break |
| 5249 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5250 | rm -f conftest.err conftest.i conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5251 | |
| 5252 | done |
| 5253 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5254 | rm -f conftest.i conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5255 | if $ac_preproc_ok; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5256 | break |
| 5257 | fi |
| 5258 | |
| 5259 | done |
| 5260 | ac_cv_prog_CPP=$CPP |
| 5261 | |
| 5262 | fi |
| 5263 | CPP=$ac_cv_prog_CPP |
| 5264 | else |
| 5265 | ac_cv_prog_CPP=$CPP |
| 5266 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5268 | $as_echo "$CPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5269 | ac_preproc_ok=false |
| 5270 | for ac_c_preproc_warn_flag in '' yes |
| 5271 | do |
| 5272 | # Use a header file that comes with gcc, so configuring glibc |
| 5273 | # with a fresh cross-compiler works. |
| 5274 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5275 | # <limits.h> exists even on freestanding compilers. |
| 5276 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5277 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5279 | /* end confdefs.h. */ |
| 5280 | #ifdef __STDC__ |
| 5281 | # include <limits.h> |
| 5282 | #else |
| 5283 | # include <assert.h> |
| 5284 | #endif |
| 5285 | Syntax error |
| 5286 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5287 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5288 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5289 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5290 | # Broken: fails on valid input. |
| 5291 | continue |
| 5292 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5293 | rm -f conftest.err conftest.i conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5294 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5295 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5296 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5298 | /* end confdefs.h. */ |
| 5299 | #include <ac_nonexistent.h> |
| 5300 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5301 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5302 | # Broken: success on invalid input. |
| 5303 | continue |
| 5304 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5305 | # Passes both tests. |
| 5306 | ac_preproc_ok=: |
| 5307 | break |
| 5308 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5309 | rm -f conftest.err conftest.i conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5310 | |
| 5311 | done |
| 5312 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5313 | rm -f conftest.i conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5314 | if $ac_preproc_ok; then : |
| 5315 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5316 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5317 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5318 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5319 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5320 | See \`config.log' for more details" "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5321 | fi |
| 5322 | |
| 5323 | ac_ext=c |
| 5324 | ac_cpp='$CPP $CPPFLAGS' |
| 5325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5328 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5329 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5330 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5331 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5332 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5333 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5334 | if test -z "$CXX"; then |
| 5335 | if test -n "$CCC"; then |
| 5336 | CXX=$CCC |
| 5337 | else |
| 5338 | if test -n "$ac_tool_prefix"; then |
| 5339 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5340 | do |
| 5341 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5342 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5344 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5345 | if ${ac_cv_prog_CXX+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5346 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5347 | else |
| 5348 | if test -n "$CXX"; then |
| 5349 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5350 | else |
| 5351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5352 | for as_dir in $PATH |
| 5353 | do |
| 5354 | IFS=$as_save_IFS |
| 5355 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5356 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5357 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5358 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5359 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5360 | break 2 |
| 5361 | fi |
| 5362 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5363 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5364 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5365 | |
| 5366 | fi |
| 5367 | fi |
| 5368 | CXX=$ac_cv_prog_CXX |
| 5369 | if test -n "$CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5371 | $as_echo "$CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5372 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5374 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5375 | fi |
| 5376 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5377 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5378 | test -n "$CXX" && break |
| 5379 | done |
| 5380 | fi |
| 5381 | if test -z "$CXX"; then |
| 5382 | ac_ct_CXX=$CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5383 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5384 | do |
| 5385 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5386 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5388 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5389 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5390 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5391 | else |
| 5392 | if test -n "$ac_ct_CXX"; then |
| 5393 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5394 | else |
| 5395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5396 | for as_dir in $PATH |
| 5397 | do |
| 5398 | IFS=$as_save_IFS |
| 5399 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5400 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5401 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5402 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5404 | break 2 |
| 5405 | fi |
| 5406 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5407 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5408 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5409 | |
| 5410 | fi |
| 5411 | fi |
| 5412 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5413 | if test -n "$ac_ct_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 5415 | $as_echo "$ac_ct_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5416 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5418 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5419 | fi |
| 5420 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5421 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5422 | test -n "$ac_ct_CXX" && break |
| 5423 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5424 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5425 | if test "x$ac_ct_CXX" = x; then |
| 5426 | CXX="g++" |
| 5427 | else |
| 5428 | case $cross_compiling:$ac_tool_warned in |
| 5429 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5431 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5432 | ac_tool_warned=yes ;; |
| 5433 | esac |
| 5434 | CXX=$ac_ct_CXX |
| 5435 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5436 | fi |
| 5437 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5438 | fi |
| 5439 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5440 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5441 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 5442 | set X $ac_compile |
| 5443 | ac_compiler=$2 |
| 5444 | for ac_option in --version -v -V -qversion; do |
| 5445 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5446 | case "(($ac_try" in |
| 5447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5448 | *) ac_try_echo=$ac_try;; |
| 5449 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5450 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5451 | $as_echo "$ac_try_echo"; } >&5 |
| 5452 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5453 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5454 | if test -s conftest.err; then |
| 5455 | sed '10a\ |
| 5456 | ... rest of stderr output deleted ... |
| 5457 | 10q' conftest.err >conftest.er1 |
| 5458 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5459 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 5460 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5461 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5462 | test $ac_status = 0; } |
| 5463 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5464 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 5466 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5467 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5468 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5469 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5471 | /* end confdefs.h. */ |
| 5472 | |
| 5473 | int |
| 5474 | main () |
| 5475 | { |
| 5476 | #ifndef __GNUC__ |
| 5477 | choke me |
| 5478 | #endif |
| 5479 | |
| 5480 | ; |
| 5481 | return 0; |
| 5482 | } |
| 5483 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5484 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5485 | ac_compiler_gnu=yes |
| 5486 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5487 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5488 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5490 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5491 | |
| 5492 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5494 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 5495 | if test $ac_compiler_gnu = yes; then |
| 5496 | GXX=yes |
| 5497 | else |
| 5498 | GXX= |
| 5499 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5500 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5501 | ac_save_CXXFLAGS=$CXXFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 5503 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5504 | if ${ac_cv_prog_cxx_g+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5505 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5506 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5507 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5508 | ac_cxx_werror_flag=yes |
| 5509 | ac_cv_prog_cxx_g=no |
| 5510 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5512 | /* end confdefs.h. */ |
| 5513 | |
| 5514 | int |
| 5515 | main () |
| 5516 | { |
| 5517 | |
| 5518 | ; |
| 5519 | return 0; |
| 5520 | } |
| 5521 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5522 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5523 | ac_cv_prog_cxx_g=yes |
| 5524 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5525 | CXXFLAGS="" |
| 5526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5527 | /* end confdefs.h. */ |
| 5528 | |
| 5529 | int |
| 5530 | main () |
| 5531 | { |
| 5532 | |
| 5533 | ; |
| 5534 | return 0; |
| 5535 | } |
| 5536 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5537 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5538 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5539 | else |
| 5540 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5541 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5543 | /* end confdefs.h. */ |
| 5544 | |
| 5545 | int |
| 5546 | main () |
| 5547 | { |
| 5548 | |
| 5549 | ; |
| 5550 | return 0; |
| 5551 | } |
| 5552 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5553 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5554 | ac_cv_prog_cxx_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5555 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5557 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5559 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5561 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5562 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 5564 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5565 | if test "$ac_test_CXXFLAGS" = set; then |
| 5566 | CXXFLAGS=$ac_save_CXXFLAGS |
| 5567 | elif test $ac_cv_prog_cxx_g = yes; then |
| 5568 | if test "$GXX" = yes; then |
| 5569 | CXXFLAGS="-g -O2" |
| 5570 | else |
| 5571 | CXXFLAGS="-g" |
| 5572 | fi |
| 5573 | else |
| 5574 | if test "$GXX" = yes; then |
| 5575 | CXXFLAGS="-O2" |
| 5576 | else |
| 5577 | CXXFLAGS= |
| 5578 | fi |
| 5579 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5580 | ac_ext=c |
| 5581 | ac_cpp='$CPP $CPPFLAGS' |
| 5582 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5583 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5584 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5585 | |
| 5586 | depcc="$CXX" am_compiler_list= |
| 5587 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5589 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5590 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5591 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5592 | else |
| 5593 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5594 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5595 | # making bogus files that we don't know about and never remove. For |
| 5596 | # instance it was reported that on HP-UX the gcc test will end up |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5597 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 5598 | # in D". |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 5599 | rm -rf conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5600 | mkdir conftest.dir |
| 5601 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5602 | # using a relative directory. |
| 5603 | cp "$am_depcomp" conftest.dir |
| 5604 | cd conftest.dir |
| 5605 | # We will build objects and dependencies in a subdirectory because |
| 5606 | # it helps to detect inapplicable dependency modes. For instance |
| 5607 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5608 | # side effect of compilation, but ICC will put the dependencies in |
| 5609 | # the current directory while Tru64 will put them in the object |
| 5610 | # directory. |
| 5611 | mkdir sub |
| 5612 | |
| 5613 | am_cv_CXX_dependencies_compiler_type=none |
| 5614 | if test "$am_compiler_list" = ""; then |
| 5615 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5616 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5617 | am__universal=false |
| 5618 | case " $depcc " in #( |
| 5619 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5620 | esac |
| 5621 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5622 | for depmode in $am_compiler_list; do |
| 5623 | # Setup a source with many dependencies, because some compilers |
| 5624 | # like to wrap large dependency lists on column 80 (with \), and |
| 5625 | # we should not choose a depcomp mode which is confused by this. |
| 5626 | # |
| 5627 | # We need to recreate these files for each test, as the compiler may |
| 5628 | # overwrite some of them when testing with obscure command lines. |
| 5629 | # This happens at least with the AIX C compiler. |
| 5630 | : > sub/conftest.c |
| 5631 | for i in 1 2 3 4 5 6; do |
| 5632 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5633 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 5634 | # Solaris 10 /bin/sh. |
| 5635 | echo '/* dummy */' > sub/conftst$i.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5636 | done |
| 5637 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5638 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5639 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5640 | # mode. It turns out that the SunPro C++ compiler does not properly |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5641 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 5642 | # versions had trouble with output in subdirs. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5643 | am__obj=sub/conftest.${OBJEXT-o} |
| 5644 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5645 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5646 | gcc) |
| 5647 | # This depmode causes a compiler race in universal mode. |
| 5648 | test "$am__universal" = false || continue |
| 5649 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5650 | nosideeffect) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5651 | # After this tag, mechanisms are not by side-effect, so they'll |
| 5652 | # only be used when explicitly requested. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5653 | if test "x$enable_dependency_tracking" = xyes; then |
| 5654 | continue |
| 5655 | else |
| 5656 | break |
| 5657 | fi |
| 5658 | ;; |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 5659 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5660 | # This compiler won't grok '-c -o', but also, the minuso test has |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5661 | # not run yet. These depmodes are late enough in the game, and |
| 5662 | # so weak that their functioning should not be impacted. |
| 5663 | am__obj=conftest.${OBJEXT-o} |
| 5664 | am__minus_obj= |
| 5665 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5666 | none) break ;; |
| 5667 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5668 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5669 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5670 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5671 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5672 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5673 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5674 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5675 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5676 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5677 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5678 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5679 | # that says an option was ignored or not supported. |
| 5680 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5681 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5682 | # The diagnosis changed in icc 8.0: |
| 5683 | # icc: Command line remark: option '-MP' not supported |
| 5684 | if (grep 'ignoring option' conftest.err || |
| 5685 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5686 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 5687 | break |
| 5688 | fi |
| 5689 | fi |
| 5690 | done |
| 5691 | |
| 5692 | cd .. |
| 5693 | rm -rf conftest.dir |
| 5694 | else |
| 5695 | am_cv_CXX_dependencies_compiler_type=none |
| 5696 | fi |
| 5697 | |
| 5698 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 5700 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5701 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 5702 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5703 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5704 | test "x$enable_dependency_tracking" != xno \ |
| 5705 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 5706 | am__fastdepCXX_TRUE= |
| 5707 | am__fastdepCXX_FALSE='#' |
| 5708 | else |
| 5709 | am__fastdepCXX_TRUE='#' |
| 5710 | am__fastdepCXX_FALSE= |
| 5711 | fi |
| 5712 | |
| 5713 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5714 | if test -n "$ac_tool_prefix"; then |
| 5715 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5716 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5718 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5719 | if ${ac_cv_prog_RANLIB+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5720 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5721 | else |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5722 | if test -n "$RANLIB"; then |
| 5723 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5724 | else |
| 5725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5726 | for as_dir in $PATH |
| 5727 | do |
| 5728 | IFS=$as_save_IFS |
| 5729 | test -z "$as_dir" && as_dir=. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5730 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5731 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5732 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5734 | break 2 |
| 5735 | fi |
| 5736 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5737 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5738 | IFS=$as_save_IFS |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5739 | |
| 5740 | fi |
| 5741 | fi |
| 5742 | RANLIB=$ac_cv_prog_RANLIB |
| 5743 | if test -n "$RANLIB"; then |
| 5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5745 | $as_echo "$RANLIB" >&6; } |
| 5746 | else |
| 5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5748 | $as_echo "no" >&6; } |
| 5749 | fi |
| 5750 | |
| 5751 | |
| 5752 | fi |
| 5753 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5754 | ac_ct_RANLIB=$RANLIB |
| 5755 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5756 | set dummy ranlib; ac_word=$2 |
| 5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5758 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5759 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5760 | $as_echo_n "(cached) " >&6 |
| 5761 | else |
| 5762 | if test -n "$ac_ct_RANLIB"; then |
| 5763 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5764 | else |
| 5765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5766 | for as_dir in $PATH |
| 5767 | do |
| 5768 | IFS=$as_save_IFS |
| 5769 | test -z "$as_dir" && as_dir=. |
| 5770 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5771 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5772 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5774 | break 2 |
| 5775 | fi |
| 5776 | done |
| 5777 | done |
| 5778 | IFS=$as_save_IFS |
| 5779 | |
| 5780 | fi |
| 5781 | fi |
| 5782 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5783 | if test -n "$ac_ct_RANLIB"; then |
| 5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5785 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 5786 | else |
| 5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5788 | $as_echo "no" >&6; } |
| 5789 | fi |
| 5790 | |
| 5791 | if test "x$ac_ct_RANLIB" = x; then |
| 5792 | RANLIB=":" |
| 5793 | else |
| 5794 | case $cross_compiling:$ac_tool_warned in |
| 5795 | yes:) |
| 5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5797 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5798 | ac_tool_warned=yes ;; |
| 5799 | esac |
| 5800 | RANLIB=$ac_ct_RANLIB |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5801 | fi |
| 5802 | else |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5803 | RANLIB="$ac_cv_prog_RANLIB" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5804 | fi |
| 5805 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5806 | |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 5807 | # Check whether --enable-m32 was given. |
| 5808 | if test "${enable_m32+set}" = set; then : |
| 5809 | enableval=$enable_m32; case "${enableval}" in |
| 5810 | yes) |
| 5811 | CFLAGS="${CFLAGS} -m32" |
| 5812 | CXXFLAGS="${CXXFLAGS} -m32" |
| 5813 | usem32=true |
| 5814 | ;; |
| 5815 | no) |
| 5816 | usem32=false |
| 5817 | ;; |
| 5818 | *) |
| 5819 | as_fn_error $? "bad value ${enableval} for --enable-m32" "$LINENO" 5 |
| 5820 | ;; |
| 5821 | esac |
| 5822 | else |
| 5823 | usem32=false |
| 5824 | fi |
| 5825 | |
| 5826 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5827 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5829 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5830 | if ${ac_cv_path_GREP+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5831 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5832 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5833 | if test -z "$GREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5834 | ac_path_GREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5835 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5837 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5838 | do |
| 5839 | IFS=$as_save_IFS |
| 5840 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5841 | for ac_prog in grep ggrep; do |
| 5842 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5843 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5844 | as_fn_executable_p "$ac_path_GREP" || continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5845 | # Check for GNU ac_path_GREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5846 | # Check for GNU $ac_path_GREP |
| 5847 | case `"$ac_path_GREP" --version 2>&1` in |
| 5848 | *GNU*) |
| 5849 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5850 | *) |
| 5851 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5852 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5853 | while : |
| 5854 | do |
| 5855 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5856 | mv "conftest.tmp" "conftest.in" |
| 5857 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5858 | $as_echo 'GREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5859 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5860 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5861 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5862 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5863 | # Best one so far, save it but keep looking for a better one |
| 5864 | ac_cv_path_GREP="$ac_path_GREP" |
| 5865 | ac_path_GREP_max=$ac_count |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5866 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5867 | # 10*(2^10) chars as input seems more than enough |
| 5868 | test $ac_count -gt 10 && break |
| 5869 | done |
| 5870 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5871 | esac |
| 5872 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5873 | $ac_path_GREP_found && break 3 |
| 5874 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5875 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5876 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5877 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5878 | if test -z "$ac_cv_path_GREP"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5879 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5880 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5881 | else |
| 5882 | ac_cv_path_GREP=$GREP |
| 5883 | fi |
| 5884 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5885 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5887 | $as_echo "$ac_cv_path_GREP" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5888 | GREP="$ac_cv_path_GREP" |
| 5889 | |
| 5890 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5892 | $as_echo_n "checking for egrep... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5893 | if ${ac_cv_path_EGREP+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5894 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5895 | else |
| 5896 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5897 | then ac_cv_path_EGREP="$GREP -E" |
| 5898 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5899 | if test -z "$EGREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5900 | ac_path_EGREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5901 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5903 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5904 | do |
| 5905 | IFS=$as_save_IFS |
| 5906 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5907 | for ac_prog in egrep; do |
| 5908 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5909 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5910 | as_fn_executable_p "$ac_path_EGREP" || continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5911 | # Check for GNU ac_path_EGREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5912 | # Check for GNU $ac_path_EGREP |
| 5913 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5914 | *GNU*) |
| 5915 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5916 | *) |
| 5917 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5918 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5919 | while : |
| 5920 | do |
| 5921 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5922 | mv "conftest.tmp" "conftest.in" |
| 5923 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5924 | $as_echo 'EGREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5925 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5926 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5927 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5928 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5929 | # Best one so far, save it but keep looking for a better one |
| 5930 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5931 | ac_path_EGREP_max=$ac_count |
| 5932 | fi |
| 5933 | # 10*(2^10) chars as input seems more than enough |
| 5934 | test $ac_count -gt 10 && break |
| 5935 | done |
| 5936 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5937 | esac |
| 5938 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5939 | $ac_path_EGREP_found && break 3 |
| 5940 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5941 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5942 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5943 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5944 | if test -z "$ac_cv_path_EGREP"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5945 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5946 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5947 | else |
| 5948 | ac_cv_path_EGREP=$EGREP |
| 5949 | fi |
| 5950 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5951 | fi |
| 5952 | fi |
| 5953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5954 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 5955 | EGREP="$ac_cv_path_EGREP" |
| 5956 | |
| 5957 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 5959 | $as_echo_n "checking for ANSI C header files... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5960 | if ${ac_cv_header_stdc+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5961 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5962 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5964 | /* end confdefs.h. */ |
| 5965 | #include <stdlib.h> |
| 5966 | #include <stdarg.h> |
| 5967 | #include <string.h> |
| 5968 | #include <float.h> |
| 5969 | |
| 5970 | int |
| 5971 | main () |
| 5972 | { |
| 5973 | |
| 5974 | ; |
| 5975 | return 0; |
| 5976 | } |
| 5977 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5978 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5979 | ac_cv_header_stdc=yes |
| 5980 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5981 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5982 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5984 | |
| 5985 | if test $ac_cv_header_stdc = yes; then |
| 5986 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5988 | /* end confdefs.h. */ |
| 5989 | #include <string.h> |
| 5990 | |
| 5991 | _ACEOF |
| 5992 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5993 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5994 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5995 | else |
| 5996 | ac_cv_header_stdc=no |
| 5997 | fi |
| 5998 | rm -f conftest* |
| 5999 | |
| 6000 | fi |
| 6001 | |
| 6002 | if test $ac_cv_header_stdc = yes; then |
| 6003 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6005 | /* end confdefs.h. */ |
| 6006 | #include <stdlib.h> |
| 6007 | |
| 6008 | _ACEOF |
| 6009 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6010 | $EGREP "free" >/dev/null 2>&1; then : |
| 6011 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6012 | else |
| 6013 | ac_cv_header_stdc=no |
| 6014 | fi |
| 6015 | rm -f conftest* |
| 6016 | |
| 6017 | fi |
| 6018 | |
| 6019 | if test $ac_cv_header_stdc = yes; then |
| 6020 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6021 | if test "$cross_compiling" = yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6022 | : |
| 6023 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6025 | /* end confdefs.h. */ |
| 6026 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6027 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6028 | #if ((' ' & 0x0FF) == 0x020) |
| 6029 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6030 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6031 | #else |
| 6032 | # define ISLOWER(c) \ |
| 6033 | (('a' <= (c) && (c) <= 'i') \ |
| 6034 | || ('j' <= (c) && (c) <= 'r') \ |
| 6035 | || ('s' <= (c) && (c) <= 'z')) |
| 6036 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6037 | #endif |
| 6038 | |
| 6039 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6040 | int |
| 6041 | main () |
| 6042 | { |
| 6043 | int i; |
| 6044 | for (i = 0; i < 256; i++) |
| 6045 | if (XOR (islower (i), ISLOWER (i)) |
| 6046 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6047 | return 2; |
| 6048 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6049 | } |
| 6050 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6051 | if ac_fn_c_try_run "$LINENO"; then : |
| 6052 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6053 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6054 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6055 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6056 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6057 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6058 | fi |
| 6059 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6060 | fi |
| 6061 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6063 | $as_echo "$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6064 | if test $ac_cv_header_stdc = yes; then |
| 6065 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6066 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6067 | |
| 6068 | fi |
| 6069 | |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 6070 | # Check whether --enable-largefile was given. |
| 6071 | if test "${enable_largefile+set}" = set; then : |
| 6072 | enableval=$enable_largefile; |
| 6073 | fi |
| 6074 | |
| 6075 | if test "$enable_largefile" != no; then |
| 6076 | |
| 6077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 6078 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 6079 | if ${ac_cv_sys_largefile_CC+:} false; then : |
| 6080 | $as_echo_n "(cached) " >&6 |
| 6081 | else |
| 6082 | ac_cv_sys_largefile_CC=no |
| 6083 | if test "$GCC" != yes; then |
| 6084 | ac_save_CC=$CC |
| 6085 | while :; do |
| 6086 | # IRIX 6.2 and later do not support large files by default, |
| 6087 | # so use the C compiler's -n32 option if that helps. |
| 6088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6089 | /* end confdefs.h. */ |
| 6090 | #include <sys/types.h> |
| 6091 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6092 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6093 | since some C++ compilers masquerading as C compilers |
| 6094 | incorrectly reject 9223372036854775807. */ |
Gabriele Svelto | 16e0852 | 2018-08-04 00:59:34 +0200 | [diff] [blame] | 6095 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 6096 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6097 | && LARGE_OFF_T % 2147483647 == 1) |
| 6098 | ? 1 : -1]; |
| 6099 | int |
| 6100 | main () |
| 6101 | { |
| 6102 | |
| 6103 | ; |
| 6104 | return 0; |
| 6105 | } |
| 6106 | _ACEOF |
| 6107 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6108 | break |
| 6109 | fi |
| 6110 | rm -f core conftest.err conftest.$ac_objext |
| 6111 | CC="$CC -n32" |
| 6112 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6113 | ac_cv_sys_largefile_CC=' -n32'; break |
| 6114 | fi |
| 6115 | rm -f core conftest.err conftest.$ac_objext |
| 6116 | break |
| 6117 | done |
| 6118 | CC=$ac_save_CC |
| 6119 | rm -f conftest.$ac_ext |
| 6120 | fi |
| 6121 | fi |
| 6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 6123 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 6124 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 6125 | CC=$CC$ac_cv_sys_largefile_CC |
| 6126 | fi |
| 6127 | |
| 6128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 6129 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 6130 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
| 6131 | $as_echo_n "(cached) " >&6 |
| 6132 | else |
| 6133 | while :; do |
| 6134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6135 | /* end confdefs.h. */ |
| 6136 | #include <sys/types.h> |
| 6137 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6138 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6139 | since some C++ compilers masquerading as C compilers |
| 6140 | incorrectly reject 9223372036854775807. */ |
Gabriele Svelto | 16e0852 | 2018-08-04 00:59:34 +0200 | [diff] [blame] | 6141 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 6142 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6143 | && LARGE_OFF_T % 2147483647 == 1) |
| 6144 | ? 1 : -1]; |
| 6145 | int |
| 6146 | main () |
| 6147 | { |
| 6148 | |
| 6149 | ; |
| 6150 | return 0; |
| 6151 | } |
| 6152 | _ACEOF |
| 6153 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6154 | ac_cv_sys_file_offset_bits=no; break |
| 6155 | fi |
| 6156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6158 | /* end confdefs.h. */ |
| 6159 | #define _FILE_OFFSET_BITS 64 |
| 6160 | #include <sys/types.h> |
| 6161 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6162 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6163 | since some C++ compilers masquerading as C compilers |
| 6164 | incorrectly reject 9223372036854775807. */ |
Gabriele Svelto | 16e0852 | 2018-08-04 00:59:34 +0200 | [diff] [blame] | 6165 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 6166 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6167 | && LARGE_OFF_T % 2147483647 == 1) |
| 6168 | ? 1 : -1]; |
| 6169 | int |
| 6170 | main () |
| 6171 | { |
| 6172 | |
| 6173 | ; |
| 6174 | return 0; |
| 6175 | } |
| 6176 | _ACEOF |
| 6177 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6178 | ac_cv_sys_file_offset_bits=64; break |
| 6179 | fi |
| 6180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6181 | ac_cv_sys_file_offset_bits=unknown |
| 6182 | break |
| 6183 | done |
| 6184 | fi |
| 6185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 6186 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 6187 | case $ac_cv_sys_file_offset_bits in #( |
| 6188 | no | unknown) ;; |
| 6189 | *) |
| 6190 | cat >>confdefs.h <<_ACEOF |
| 6191 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 6192 | _ACEOF |
| 6193 | ;; |
| 6194 | esac |
| 6195 | rm -rf conftest* |
| 6196 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 6197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 6198 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 6199 | if ${ac_cv_sys_large_files+:} false; then : |
| 6200 | $as_echo_n "(cached) " >&6 |
| 6201 | else |
| 6202 | while :; do |
| 6203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6204 | /* end confdefs.h. */ |
| 6205 | #include <sys/types.h> |
| 6206 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6207 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6208 | since some C++ compilers masquerading as C compilers |
| 6209 | incorrectly reject 9223372036854775807. */ |
Gabriele Svelto | 16e0852 | 2018-08-04 00:59:34 +0200 | [diff] [blame] | 6210 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 6211 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6212 | && LARGE_OFF_T % 2147483647 == 1) |
| 6213 | ? 1 : -1]; |
| 6214 | int |
| 6215 | main () |
| 6216 | { |
| 6217 | |
| 6218 | ; |
| 6219 | return 0; |
| 6220 | } |
| 6221 | _ACEOF |
| 6222 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6223 | ac_cv_sys_large_files=no; break |
| 6224 | fi |
| 6225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6227 | /* end confdefs.h. */ |
| 6228 | #define _LARGE_FILES 1 |
| 6229 | #include <sys/types.h> |
| 6230 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6231 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6232 | since some C++ compilers masquerading as C compilers |
| 6233 | incorrectly reject 9223372036854775807. */ |
Gabriele Svelto | 16e0852 | 2018-08-04 00:59:34 +0200 | [diff] [blame] | 6234 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 6235 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6236 | && LARGE_OFF_T % 2147483647 == 1) |
| 6237 | ? 1 : -1]; |
| 6238 | int |
| 6239 | main () |
| 6240 | { |
| 6241 | |
| 6242 | ; |
| 6243 | return 0; |
| 6244 | } |
| 6245 | _ACEOF |
| 6246 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6247 | ac_cv_sys_large_files=1; break |
| 6248 | fi |
| 6249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6250 | ac_cv_sys_large_files=unknown |
| 6251 | break |
| 6252 | done |
| 6253 | fi |
| 6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 6255 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 6256 | case $ac_cv_sys_large_files in #( |
| 6257 | no | unknown) ;; |
| 6258 | *) |
| 6259 | cat >>confdefs.h <<_ACEOF |
| 6260 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 6261 | _ACEOF |
| 6262 | ;; |
| 6263 | esac |
| 6264 | rm -rf conftest* |
| 6265 | fi |
| 6266 | |
| 6267 | |
| 6268 | fi |
| 6269 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6270 | |
| 6271 | |
| 6272 | |
| 6273 | ac_ext=c |
| 6274 | ac_cpp='$CPP $CPPFLAGS' |
| 6275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6278 | |
| 6279 | ax_pthread_ok=no |
| 6280 | |
| 6281 | # We used to check for pthread.h first, but this fails if pthread.h |
| 6282 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 6283 | # It gets checked for in the link test anyway. |
| 6284 | |
| 6285 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 6286 | # etcetera environment variables, and if threads linking works using |
| 6287 | # them: |
| 6288 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 6289 | save_CFLAGS="$CFLAGS" |
| 6290 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 6291 | save_LIBS="$LIBS" |
| 6292 | LIBS="$PTHREAD_LIBS $LIBS" |
| 6293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 6294 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 6295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6296 | /* end confdefs.h. */ |
| 6297 | |
| 6298 | /* Override any GCC internal prototype to avoid an error. |
| 6299 | Use char because int might match the return type of a GCC |
| 6300 | builtin and then its argument prototype would still apply. */ |
| 6301 | #ifdef __cplusplus |
| 6302 | extern "C" |
| 6303 | #endif |
| 6304 | char pthread_join (); |
| 6305 | int |
| 6306 | main () |
| 6307 | { |
| 6308 | return pthread_join (); |
| 6309 | ; |
| 6310 | return 0; |
| 6311 | } |
| 6312 | _ACEOF |
| 6313 | if ac_fn_c_try_link "$LINENO"; then : |
| 6314 | ax_pthread_ok=yes |
| 6315 | fi |
| 6316 | rm -f core conftest.err conftest.$ac_objext \ |
| 6317 | conftest$ac_exeext conftest.$ac_ext |
| 6318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 6319 | $as_echo "$ax_pthread_ok" >&6; } |
| 6320 | if test x"$ax_pthread_ok" = xno; then |
| 6321 | PTHREAD_LIBS="" |
| 6322 | PTHREAD_CFLAGS="" |
| 6323 | fi |
| 6324 | LIBS="$save_LIBS" |
| 6325 | CFLAGS="$save_CFLAGS" |
| 6326 | fi |
| 6327 | |
| 6328 | # We must check for the threads library under a number of different |
| 6329 | # names; the ordering is very important because some systems |
| 6330 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 6331 | # libraries is broken (non-POSIX). |
| 6332 | |
| 6333 | # Create a list of thread flags to try. Items starting with a "-" are |
| 6334 | # C compiler flags, and other items are library names, except for "none" |
| 6335 | # which indicates that we try without any flags at all, and "pthread-config" |
| 6336 | # which is a program returning the flags for the Pth emulation library. |
| 6337 | |
| 6338 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 6339 | |
| 6340 | # The ordering *is* (sometimes) important. Some notes on the |
| 6341 | # individual items follow: |
| 6342 | |
| 6343 | # pthreads: AIX (must check this before -lpthread) |
| 6344 | # none: in case threads are in libc; should be tried before -Kthread and |
| 6345 | # other compiler flags to prevent continual compiler warnings |
| 6346 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 6347 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 6348 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 6349 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 6350 | # -pthreads: Solaris/gcc |
| 6351 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 6352 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 6353 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 6354 | # also defines -D_REENTRANT) |
| 6355 | # ... -mt is also the pthreads flag for HP/aCC |
| 6356 | # pthread: Linux, etcetera |
| 6357 | # --thread-safe: KAI C++ |
| 6358 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 6359 | |
| 6360 | case "${host_cpu}-${host_os}" in |
| 6361 | *solaris*) |
| 6362 | |
| 6363 | # On Solaris (at least, for some versions), libc contains stubbed |
| 6364 | # (non-functional) versions of the pthreads routines, so link-based |
| 6365 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 6366 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 6367 | # a function called by this macro, so we could check for that, but |
| 6368 | # who knows whether they'll stub that too in a future libc.) So, |
| 6369 | # we'll just look for -pthreads and -lpthread first: |
| 6370 | |
| 6371 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 6372 | ;; |
| 6373 | |
| 6374 | *-darwin*) |
| 6375 | acx_pthread_flags="-pthread $acx_pthread_flags" |
| 6376 | ;; |
| 6377 | esac |
| 6378 | |
| 6379 | if test x"$ax_pthread_ok" = xno; then |
| 6380 | for flag in $ax_pthread_flags; do |
| 6381 | |
| 6382 | case $flag in |
| 6383 | none) |
| 6384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 6385 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 6386 | ;; |
| 6387 | |
| 6388 | -*) |
| 6389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 6390 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 6391 | PTHREAD_CFLAGS="$flag" |
| 6392 | ;; |
| 6393 | |
| 6394 | pthread-config) |
| 6395 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 6396 | set dummy pthread-config; ac_word=$2 |
| 6397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6398 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6399 | if ${ac_cv_prog_ax_pthread_config+:} false; then : |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6400 | $as_echo_n "(cached) " >&6 |
| 6401 | else |
| 6402 | if test -n "$ax_pthread_config"; then |
| 6403 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 6404 | else |
| 6405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6406 | for as_dir in $PATH |
| 6407 | do |
| 6408 | IFS=$as_save_IFS |
| 6409 | test -z "$as_dir" && as_dir=. |
| 6410 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6411 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6412 | ac_cv_prog_ax_pthread_config="yes" |
| 6413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6414 | break 2 |
| 6415 | fi |
| 6416 | done |
| 6417 | done |
| 6418 | IFS=$as_save_IFS |
| 6419 | |
| 6420 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 6421 | fi |
| 6422 | fi |
| 6423 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 6424 | if test -n "$ax_pthread_config"; then |
| 6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 6426 | $as_echo "$ax_pthread_config" >&6; } |
| 6427 | else |
| 6428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6429 | $as_echo "no" >&6; } |
| 6430 | fi |
| 6431 | |
| 6432 | |
| 6433 | if test x"$ax_pthread_config" = xno; then continue; fi |
| 6434 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 6435 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 6436 | ;; |
| 6437 | |
| 6438 | *) |
| 6439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 6440 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 6441 | PTHREAD_LIBS="-l$flag" |
| 6442 | ;; |
| 6443 | esac |
| 6444 | |
| 6445 | save_LIBS="$LIBS" |
| 6446 | save_CFLAGS="$CFLAGS" |
| 6447 | LIBS="$PTHREAD_LIBS $LIBS" |
| 6448 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 6449 | |
| 6450 | # Check for various functions. We must include pthread.h, |
| 6451 | # since some functions may be macros. (On the Sequent, we |
| 6452 | # need a special flag -Kthread to make this header compile.) |
| 6453 | # We check for pthread_join because it is in -lpthread on IRIX |
| 6454 | # while pthread_create is in libc. We check for pthread_attr_init |
| 6455 | # due to DEC craziness with -lpthreads. We check for |
| 6456 | # pthread_cleanup_push because it is one of the few pthread |
| 6457 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 6458 | # We try pthread_create on general principles. |
| 6459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6460 | /* end confdefs.h. */ |
| 6461 | #include <pthread.h> |
| 6462 | static void routine(void* a) {a=0;} |
| 6463 | static void* start_routine(void* a) {return a;} |
| 6464 | int |
| 6465 | main () |
| 6466 | { |
| 6467 | pthread_t th; pthread_attr_t attr; |
| 6468 | pthread_join(th, 0); |
| 6469 | pthread_attr_init(&attr); |
| 6470 | pthread_cleanup_push(routine, 0); |
| 6471 | pthread_create(&th,0,start_routine,0); |
| 6472 | pthread_cleanup_pop(0); |
| 6473 | ; |
| 6474 | return 0; |
| 6475 | } |
| 6476 | _ACEOF |
| 6477 | if ac_fn_c_try_link "$LINENO"; then : |
| 6478 | ax_pthread_ok=yes |
| 6479 | fi |
| 6480 | rm -f core conftest.err conftest.$ac_objext \ |
| 6481 | conftest$ac_exeext conftest.$ac_ext |
| 6482 | |
| 6483 | LIBS="$save_LIBS" |
| 6484 | CFLAGS="$save_CFLAGS" |
| 6485 | |
| 6486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 6487 | $as_echo "$ax_pthread_ok" >&6; } |
| 6488 | if test "x$ax_pthread_ok" = xyes; then |
| 6489 | break; |
| 6490 | fi |
| 6491 | |
| 6492 | PTHREAD_LIBS="" |
| 6493 | PTHREAD_CFLAGS="" |
| 6494 | done |
| 6495 | fi |
| 6496 | |
| 6497 | # Various other checks: |
| 6498 | if test "x$ax_pthread_ok" = xyes; then |
| 6499 | save_LIBS="$LIBS" |
| 6500 | LIBS="$PTHREAD_LIBS $LIBS" |
| 6501 | save_CFLAGS="$CFLAGS" |
| 6502 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 6503 | |
| 6504 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 6505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| 6506 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| 6507 | attr_name=unknown |
| 6508 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 6509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6510 | /* end confdefs.h. */ |
| 6511 | #include <pthread.h> |
| 6512 | int |
| 6513 | main () |
| 6514 | { |
| 6515 | int attr=$attr; return attr; |
| 6516 | ; |
| 6517 | return 0; |
| 6518 | } |
| 6519 | _ACEOF |
| 6520 | if ac_fn_c_try_link "$LINENO"; then : |
| 6521 | attr_name=$attr; break |
| 6522 | fi |
| 6523 | rm -f core conftest.err conftest.$ac_objext \ |
| 6524 | conftest$ac_exeext conftest.$ac_ext |
| 6525 | done |
| 6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 6527 | $as_echo "$attr_name" >&6; } |
| 6528 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 6529 | |
| 6530 | cat >>confdefs.h <<_ACEOF |
| 6531 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 6532 | _ACEOF |
| 6533 | |
| 6534 | fi |
| 6535 | |
| 6536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 6537 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 6538 | flag=no |
| 6539 | case "${host_cpu}-${host_os}" in |
| 6540 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 6541 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 6542 | esac |
| 6543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 6544 | $as_echo "${flag}" >&6; } |
| 6545 | if test "x$flag" != xno; then |
| 6546 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 6547 | fi |
| 6548 | |
| 6549 | LIBS="$save_LIBS" |
| 6550 | CFLAGS="$save_CFLAGS" |
| 6551 | |
| 6552 | # More AIX lossage: must compile with xlc_r or cc_r |
| 6553 | if test x"$GCC" != xyes; then |
| 6554 | for ac_prog in xlc_r cc_r |
| 6555 | do |
| 6556 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6557 | set dummy $ac_prog; ac_word=$2 |
| 6558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6559 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6560 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6561 | $as_echo_n "(cached) " >&6 |
| 6562 | else |
| 6563 | if test -n "$PTHREAD_CC"; then |
| 6564 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 6565 | else |
| 6566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6567 | for as_dir in $PATH |
| 6568 | do |
| 6569 | IFS=$as_save_IFS |
| 6570 | test -z "$as_dir" && as_dir=. |
| 6571 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6572 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6573 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 6574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6575 | break 2 |
| 6576 | fi |
| 6577 | done |
| 6578 | done |
| 6579 | IFS=$as_save_IFS |
| 6580 | |
| 6581 | fi |
| 6582 | fi |
| 6583 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 6584 | if test -n "$PTHREAD_CC"; then |
| 6585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 6586 | $as_echo "$PTHREAD_CC" >&6; } |
| 6587 | else |
| 6588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6589 | $as_echo "no" >&6; } |
| 6590 | fi |
| 6591 | |
| 6592 | |
| 6593 | test -n "$PTHREAD_CC" && break |
| 6594 | done |
| 6595 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| 6596 | |
| 6597 | else |
| 6598 | PTHREAD_CC=$CC |
| 6599 | fi |
| 6600 | else |
| 6601 | PTHREAD_CC="$CC" |
| 6602 | fi |
| 6603 | |
| 6604 | |
| 6605 | |
| 6606 | |
| 6607 | |
| 6608 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 6609 | if test x"$ax_pthread_ok" = xyes; then |
| 6610 | |
| 6611 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 6612 | |
| 6613 | : |
| 6614 | else |
| 6615 | ax_pthread_ok=no |
| 6616 | |
| 6617 | fi |
| 6618 | ac_ext=c |
| 6619 | ac_cpp='$CPP $CPPFLAGS' |
| 6620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6623 | |
| 6624 | |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6625 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6626 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6627 | inttypes.h stdint.h unistd.h |
| 6628 | do : |
| 6629 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6630 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6631 | " |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6632 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6633 | cat >>confdefs.h <<_ACEOF |
| 6634 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6635 | _ACEOF |
| 6636 | |
| 6637 | fi |
| 6638 | |
| 6639 | done |
| 6640 | |
| 6641 | |
Gabriele Svelto | a9fca58 | 2017-04-11 11:51:28 +0200 | [diff] [blame] | 6642 | for ac_header in a.out.h sys/random.h |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6643 | do : |
Gabriele Svelto | a9fca58 | 2017-04-11 11:51:28 +0200 | [diff] [blame] | 6644 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6645 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 6646 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6647 | cat >>confdefs.h <<_ACEOF |
Gabriele Svelto | a9fca58 | 2017-04-11 11:51:28 +0200 | [diff] [blame] | 6648 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6649 | _ACEOF |
| 6650 | |
| 6651 | fi |
| 6652 | |
| 6653 | done |
| 6654 | |
Michael Forney | e780d58 | 2020-03-16 12:56:56 -0700 | [diff] [blame] | 6655 | for ac_func in arc4random getcontext getrandom |
Gabriele Svelto | a9fca58 | 2017-04-11 11:51:28 +0200 | [diff] [blame] | 6656 | do : |
| 6657 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6658 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 6659 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 6660 | cat >>confdefs.h <<_ACEOF |
| 6661 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6662 | _ACEOF |
| 6663 | |
| 6664 | fi |
| 6665 | done |
| 6666 | |
Michael Forney | e780d58 | 2020-03-16 12:56:56 -0700 | [diff] [blame] | 6667 | if test "x$ac_cv_func_getcontext" = xyes; then |
| 6668 | HAVE_GETCONTEXT_TRUE= |
| 6669 | HAVE_GETCONTEXT_FALSE='#' |
| 6670 | else |
| 6671 | HAVE_GETCONTEXT_TRUE='#' |
| 6672 | HAVE_GETCONTEXT_FALSE= |
| 6673 | fi |
| 6674 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6675 | |
Lei Zhang | 728bcdf | 2016-01-08 00:27:48 -0800 | [diff] [blame] | 6676 | |
| 6677 | ax_cxx_compile_cxx11_required=true |
| 6678 | ac_ext=cpp |
| 6679 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6680 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6681 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6682 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6683 | ac_success=no |
| 6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 |
| 6685 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } |
| 6686 | if ${ax_cv_cxx_compile_cxx11+:} false; then : |
| 6687 | $as_echo_n "(cached) " >&6 |
| 6688 | else |
| 6689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6690 | /* end confdefs.h. */ |
| 6691 | |
| 6692 | |
| 6693 | // If the compiler admits that it is not ready for C++11, why torture it? |
| 6694 | // Hopefully, this will speed up the test. |
| 6695 | |
| 6696 | #ifndef __cplusplus |
| 6697 | |
| 6698 | #error "This is not a C++ compiler" |
| 6699 | |
| 6700 | #elif __cplusplus < 201103L |
| 6701 | |
| 6702 | #error "This is not a C++11 compiler" |
| 6703 | |
| 6704 | #else |
| 6705 | |
| 6706 | namespace cxx11 |
| 6707 | { |
| 6708 | |
| 6709 | namespace test_static_assert |
| 6710 | { |
| 6711 | |
| 6712 | template <typename T> |
| 6713 | struct check |
| 6714 | { |
| 6715 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 6716 | }; |
| 6717 | |
| 6718 | } |
| 6719 | |
| 6720 | namespace test_final_override |
| 6721 | { |
| 6722 | |
| 6723 | struct Base |
| 6724 | { |
| 6725 | virtual void f() {} |
| 6726 | }; |
| 6727 | |
| 6728 | struct Derived : public Base |
| 6729 | { |
| 6730 | virtual void f() override {} |
| 6731 | }; |
| 6732 | |
| 6733 | } |
| 6734 | |
| 6735 | namespace test_double_right_angle_brackets |
| 6736 | { |
| 6737 | |
| 6738 | template < typename T > |
| 6739 | struct check {}; |
| 6740 | |
| 6741 | typedef check<void> single_type; |
| 6742 | typedef check<check<void>> double_type; |
| 6743 | typedef check<check<check<void>>> triple_type; |
| 6744 | typedef check<check<check<check<void>>>> quadruple_type; |
| 6745 | |
| 6746 | } |
| 6747 | |
| 6748 | namespace test_decltype |
| 6749 | { |
| 6750 | |
| 6751 | int |
| 6752 | f() |
| 6753 | { |
| 6754 | int a = 1; |
| 6755 | decltype(a) b = 2; |
| 6756 | return a + b; |
| 6757 | } |
| 6758 | |
| 6759 | } |
| 6760 | |
| 6761 | namespace test_type_deduction |
| 6762 | { |
| 6763 | |
| 6764 | template < typename T1, typename T2 > |
| 6765 | struct is_same |
| 6766 | { |
| 6767 | static const bool value = false; |
| 6768 | }; |
| 6769 | |
| 6770 | template < typename T > |
| 6771 | struct is_same<T, T> |
| 6772 | { |
| 6773 | static const bool value = true; |
| 6774 | }; |
| 6775 | |
| 6776 | template < typename T1, typename T2 > |
| 6777 | auto |
| 6778 | add(T1 a1, T2 a2) -> decltype(a1 + a2) |
| 6779 | { |
| 6780 | return a1 + a2; |
| 6781 | } |
| 6782 | |
| 6783 | int |
| 6784 | test(const int c, volatile int v) |
| 6785 | { |
| 6786 | static_assert(is_same<int, decltype(0)>::value == true, ""); |
| 6787 | static_assert(is_same<int, decltype(c)>::value == false, ""); |
| 6788 | static_assert(is_same<int, decltype(v)>::value == false, ""); |
| 6789 | auto ac = c; |
| 6790 | auto av = v; |
| 6791 | auto sumi = ac + av + 'x'; |
| 6792 | auto sumf = ac + av + 1.0; |
| 6793 | static_assert(is_same<int, decltype(ac)>::value == true, ""); |
| 6794 | static_assert(is_same<int, decltype(av)>::value == true, ""); |
| 6795 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); |
| 6796 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); |
| 6797 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); |
| 6798 | return (sumf > 0.0) ? sumi : add(c, v); |
| 6799 | } |
| 6800 | |
| 6801 | } |
| 6802 | |
| 6803 | namespace test_noexcept |
| 6804 | { |
| 6805 | |
| 6806 | int f() { return 0; } |
| 6807 | int g() noexcept { return 0; } |
| 6808 | |
| 6809 | static_assert(noexcept(f()) == false, ""); |
| 6810 | static_assert(noexcept(g()) == true, ""); |
| 6811 | |
| 6812 | } |
| 6813 | |
| 6814 | namespace test_constexpr |
| 6815 | { |
| 6816 | |
| 6817 | template < typename CharT > |
| 6818 | unsigned long constexpr |
| 6819 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept |
| 6820 | { |
| 6821 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; |
| 6822 | } |
| 6823 | |
| 6824 | template < typename CharT > |
| 6825 | unsigned long constexpr |
| 6826 | strlen_c(const CharT *const s) noexcept |
| 6827 | { |
| 6828 | return strlen_c_r(s, 0UL); |
| 6829 | } |
| 6830 | |
| 6831 | static_assert(strlen_c("") == 0UL, ""); |
| 6832 | static_assert(strlen_c("1") == 1UL, ""); |
| 6833 | static_assert(strlen_c("example") == 7UL, ""); |
| 6834 | static_assert(strlen_c("another\0example") == 7UL, ""); |
| 6835 | |
| 6836 | } |
| 6837 | |
| 6838 | namespace test_rvalue_references |
| 6839 | { |
| 6840 | |
| 6841 | template < int N > |
| 6842 | struct answer |
| 6843 | { |
| 6844 | static constexpr int value = N; |
| 6845 | }; |
| 6846 | |
| 6847 | answer<1> f(int&) { return answer<1>(); } |
| 6848 | answer<2> f(const int&) { return answer<2>(); } |
| 6849 | answer<3> f(int&&) { return answer<3>(); } |
| 6850 | |
| 6851 | void |
| 6852 | test() |
| 6853 | { |
| 6854 | int i = 0; |
| 6855 | const int c = 0; |
| 6856 | static_assert(decltype(f(i))::value == 1, ""); |
| 6857 | static_assert(decltype(f(c))::value == 2, ""); |
| 6858 | static_assert(decltype(f(0))::value == 3, ""); |
| 6859 | } |
| 6860 | |
| 6861 | } |
| 6862 | |
| 6863 | namespace test_uniform_initialization |
| 6864 | { |
| 6865 | |
| 6866 | struct test |
| 6867 | { |
| 6868 | static const int zero {}; |
| 6869 | static const int one {1}; |
| 6870 | }; |
| 6871 | |
| 6872 | static_assert(test::zero == 0, ""); |
| 6873 | static_assert(test::one == 1, ""); |
| 6874 | |
| 6875 | } |
| 6876 | |
| 6877 | namespace test_lambdas |
| 6878 | { |
| 6879 | |
| 6880 | void |
| 6881 | test1() |
| 6882 | { |
| 6883 | auto lambda1 = [](){}; |
| 6884 | auto lambda2 = lambda1; |
| 6885 | lambda1(); |
| 6886 | lambda2(); |
| 6887 | } |
| 6888 | |
| 6889 | int |
| 6890 | test2() |
| 6891 | { |
| 6892 | auto a = [](int i, int j){ return i + j; }(1, 2); |
| 6893 | auto b = []() -> int { return '0'; }(); |
| 6894 | auto c = [=](){ return a + b; }(); |
| 6895 | auto d = [&](){ return c; }(); |
| 6896 | auto e = [a, &b](int x) mutable { |
| 6897 | const auto identity = [](int y){ return y; }; |
| 6898 | for (auto i = 0; i < a; ++i) |
| 6899 | a += b--; |
| 6900 | return x + identity(a + b); |
| 6901 | }(0); |
| 6902 | return a + b + c + d + e; |
| 6903 | } |
| 6904 | |
| 6905 | int |
| 6906 | test3() |
| 6907 | { |
| 6908 | const auto nullary = [](){ return 0; }; |
| 6909 | const auto unary = [](int x){ return x; }; |
| 6910 | using nullary_t = decltype(nullary); |
| 6911 | using unary_t = decltype(unary); |
| 6912 | const auto higher1st = [](nullary_t f){ return f(); }; |
| 6913 | const auto higher2nd = [unary](nullary_t f1){ |
| 6914 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; |
| 6915 | }; |
| 6916 | return higher1st(nullary) + higher2nd(nullary)(unary); |
| 6917 | } |
| 6918 | |
| 6919 | } |
| 6920 | |
| 6921 | namespace test_variadic_templates |
| 6922 | { |
| 6923 | |
| 6924 | template <int...> |
| 6925 | struct sum; |
| 6926 | |
| 6927 | template <int N0, int... N1toN> |
| 6928 | struct sum<N0, N1toN...> |
| 6929 | { |
| 6930 | static constexpr auto value = N0 + sum<N1toN...>::value; |
| 6931 | }; |
| 6932 | |
| 6933 | template <> |
| 6934 | struct sum<> |
| 6935 | { |
| 6936 | static constexpr auto value = 0; |
| 6937 | }; |
| 6938 | |
| 6939 | static_assert(sum<>::value == 0, ""); |
| 6940 | static_assert(sum<1>::value == 1, ""); |
| 6941 | static_assert(sum<23>::value == 23, ""); |
| 6942 | static_assert(sum<1, 2>::value == 3, ""); |
| 6943 | static_assert(sum<5, 5, 11>::value == 21, ""); |
| 6944 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); |
| 6945 | |
| 6946 | } |
| 6947 | |
| 6948 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae |
| 6949 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function |
| 6950 | // because of this. |
| 6951 | namespace test_template_alias_sfinae |
| 6952 | { |
| 6953 | |
| 6954 | struct foo {}; |
| 6955 | |
| 6956 | template<typename T> |
| 6957 | using member = typename T::member_type; |
| 6958 | |
| 6959 | template<typename T> |
| 6960 | void func(...) {} |
| 6961 | |
| 6962 | template<typename T> |
| 6963 | void func(member<T>*) {} |
| 6964 | |
| 6965 | void test(); |
| 6966 | |
| 6967 | void test() { func<foo>(0); } |
| 6968 | |
| 6969 | } |
| 6970 | |
| 6971 | } // namespace cxx11 |
| 6972 | |
| 6973 | #endif // __cplusplus >= 201103L |
| 6974 | |
| 6975 | |
| 6976 | |
| 6977 | _ACEOF |
| 6978 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6979 | ax_cv_cxx_compile_cxx11=yes |
| 6980 | else |
| 6981 | ax_cv_cxx_compile_cxx11=no |
| 6982 | fi |
| 6983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6984 | fi |
| 6985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 |
| 6986 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } |
| 6987 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then |
| 6988 | ac_success=yes |
| 6989 | fi |
| 6990 | |
| 6991 | |
| 6992 | |
| 6993 | if test x$ac_success = xno; then |
| 6994 | for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do |
| 6995 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` |
| 6996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 |
| 6997 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } |
| 6998 | if eval \${$cachevar+:} false; then : |
| 6999 | $as_echo_n "(cached) " >&6 |
| 7000 | else |
| 7001 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 7002 | CXXFLAGS="$CXXFLAGS $switch" |
| 7003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7004 | /* end confdefs.h. */ |
| 7005 | |
| 7006 | |
| 7007 | // If the compiler admits that it is not ready for C++11, why torture it? |
| 7008 | // Hopefully, this will speed up the test. |
| 7009 | |
| 7010 | #ifndef __cplusplus |
| 7011 | |
| 7012 | #error "This is not a C++ compiler" |
| 7013 | |
| 7014 | #elif __cplusplus < 201103L |
| 7015 | |
| 7016 | #error "This is not a C++11 compiler" |
| 7017 | |
| 7018 | #else |
| 7019 | |
| 7020 | namespace cxx11 |
| 7021 | { |
| 7022 | |
| 7023 | namespace test_static_assert |
| 7024 | { |
| 7025 | |
| 7026 | template <typename T> |
| 7027 | struct check |
| 7028 | { |
| 7029 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 7030 | }; |
| 7031 | |
| 7032 | } |
| 7033 | |
| 7034 | namespace test_final_override |
| 7035 | { |
| 7036 | |
| 7037 | struct Base |
| 7038 | { |
| 7039 | virtual void f() {} |
| 7040 | }; |
| 7041 | |
| 7042 | struct Derived : public Base |
| 7043 | { |
| 7044 | virtual void f() override {} |
| 7045 | }; |
| 7046 | |
| 7047 | } |
| 7048 | |
| 7049 | namespace test_double_right_angle_brackets |
| 7050 | { |
| 7051 | |
| 7052 | template < typename T > |
| 7053 | struct check {}; |
| 7054 | |
| 7055 | typedef check<void> single_type; |
| 7056 | typedef check<check<void>> double_type; |
| 7057 | typedef check<check<check<void>>> triple_type; |
| 7058 | typedef check<check<check<check<void>>>> quadruple_type; |
| 7059 | |
| 7060 | } |
| 7061 | |
| 7062 | namespace test_decltype |
| 7063 | { |
| 7064 | |
| 7065 | int |
| 7066 | f() |
| 7067 | { |
| 7068 | int a = 1; |
| 7069 | decltype(a) b = 2; |
| 7070 | return a + b; |
| 7071 | } |
| 7072 | |
| 7073 | } |
| 7074 | |
| 7075 | namespace test_type_deduction |
| 7076 | { |
| 7077 | |
| 7078 | template < typename T1, typename T2 > |
| 7079 | struct is_same |
| 7080 | { |
| 7081 | static const bool value = false; |
| 7082 | }; |
| 7083 | |
| 7084 | template < typename T > |
| 7085 | struct is_same<T, T> |
| 7086 | { |
| 7087 | static const bool value = true; |
| 7088 | }; |
| 7089 | |
| 7090 | template < typename T1, typename T2 > |
| 7091 | auto |
| 7092 | add(T1 a1, T2 a2) -> decltype(a1 + a2) |
| 7093 | { |
| 7094 | return a1 + a2; |
| 7095 | } |
| 7096 | |
| 7097 | int |
| 7098 | test(const int c, volatile int v) |
| 7099 | { |
| 7100 | static_assert(is_same<int, decltype(0)>::value == true, ""); |
| 7101 | static_assert(is_same<int, decltype(c)>::value == false, ""); |
| 7102 | static_assert(is_same<int, decltype(v)>::value == false, ""); |
| 7103 | auto ac = c; |
| 7104 | auto av = v; |
| 7105 | auto sumi = ac + av + 'x'; |
| 7106 | auto sumf = ac + av + 1.0; |
| 7107 | static_assert(is_same<int, decltype(ac)>::value == true, ""); |
| 7108 | static_assert(is_same<int, decltype(av)>::value == true, ""); |
| 7109 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); |
| 7110 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); |
| 7111 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); |
| 7112 | return (sumf > 0.0) ? sumi : add(c, v); |
| 7113 | } |
| 7114 | |
| 7115 | } |
| 7116 | |
| 7117 | namespace test_noexcept |
| 7118 | { |
| 7119 | |
| 7120 | int f() { return 0; } |
| 7121 | int g() noexcept { return 0; } |
| 7122 | |
| 7123 | static_assert(noexcept(f()) == false, ""); |
| 7124 | static_assert(noexcept(g()) == true, ""); |
| 7125 | |
| 7126 | } |
| 7127 | |
| 7128 | namespace test_constexpr |
| 7129 | { |
| 7130 | |
| 7131 | template < typename CharT > |
| 7132 | unsigned long constexpr |
| 7133 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept |
| 7134 | { |
| 7135 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; |
| 7136 | } |
| 7137 | |
| 7138 | template < typename CharT > |
| 7139 | unsigned long constexpr |
| 7140 | strlen_c(const CharT *const s) noexcept |
| 7141 | { |
| 7142 | return strlen_c_r(s, 0UL); |
| 7143 | } |
| 7144 | |
| 7145 | static_assert(strlen_c("") == 0UL, ""); |
| 7146 | static_assert(strlen_c("1") == 1UL, ""); |
| 7147 | static_assert(strlen_c("example") == 7UL, ""); |
| 7148 | static_assert(strlen_c("another\0example") == 7UL, ""); |
| 7149 | |
| 7150 | } |
| 7151 | |
| 7152 | namespace test_rvalue_references |
| 7153 | { |
| 7154 | |
| 7155 | template < int N > |
| 7156 | struct answer |
| 7157 | { |
| 7158 | static constexpr int value = N; |
| 7159 | }; |
| 7160 | |
| 7161 | answer<1> f(int&) { return answer<1>(); } |
| 7162 | answer<2> f(const int&) { return answer<2>(); } |
| 7163 | answer<3> f(int&&) { return answer<3>(); } |
| 7164 | |
| 7165 | void |
| 7166 | test() |
| 7167 | { |
| 7168 | int i = 0; |
| 7169 | const int c = 0; |
| 7170 | static_assert(decltype(f(i))::value == 1, ""); |
| 7171 | static_assert(decltype(f(c))::value == 2, ""); |
| 7172 | static_assert(decltype(f(0))::value == 3, ""); |
| 7173 | } |
| 7174 | |
| 7175 | } |
| 7176 | |
| 7177 | namespace test_uniform_initialization |
| 7178 | { |
| 7179 | |
| 7180 | struct test |
| 7181 | { |
| 7182 | static const int zero {}; |
| 7183 | static const int one {1}; |
| 7184 | }; |
| 7185 | |
| 7186 | static_assert(test::zero == 0, ""); |
| 7187 | static_assert(test::one == 1, ""); |
| 7188 | |
| 7189 | } |
| 7190 | |
| 7191 | namespace test_lambdas |
| 7192 | { |
| 7193 | |
| 7194 | void |
| 7195 | test1() |
| 7196 | { |
| 7197 | auto lambda1 = [](){}; |
| 7198 | auto lambda2 = lambda1; |
| 7199 | lambda1(); |
| 7200 | lambda2(); |
| 7201 | } |
| 7202 | |
| 7203 | int |
| 7204 | test2() |
| 7205 | { |
| 7206 | auto a = [](int i, int j){ return i + j; }(1, 2); |
| 7207 | auto b = []() -> int { return '0'; }(); |
| 7208 | auto c = [=](){ return a + b; }(); |
| 7209 | auto d = [&](){ return c; }(); |
| 7210 | auto e = [a, &b](int x) mutable { |
| 7211 | const auto identity = [](int y){ return y; }; |
| 7212 | for (auto i = 0; i < a; ++i) |
| 7213 | a += b--; |
| 7214 | return x + identity(a + b); |
| 7215 | }(0); |
| 7216 | return a + b + c + d + e; |
| 7217 | } |
| 7218 | |
| 7219 | int |
| 7220 | test3() |
| 7221 | { |
| 7222 | const auto nullary = [](){ return 0; }; |
| 7223 | const auto unary = [](int x){ return x; }; |
| 7224 | using nullary_t = decltype(nullary); |
| 7225 | using unary_t = decltype(unary); |
| 7226 | const auto higher1st = [](nullary_t f){ return f(); }; |
| 7227 | const auto higher2nd = [unary](nullary_t f1){ |
| 7228 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; |
| 7229 | }; |
| 7230 | return higher1st(nullary) + higher2nd(nullary)(unary); |
| 7231 | } |
| 7232 | |
| 7233 | } |
| 7234 | |
| 7235 | namespace test_variadic_templates |
| 7236 | { |
| 7237 | |
| 7238 | template <int...> |
| 7239 | struct sum; |
| 7240 | |
| 7241 | template <int N0, int... N1toN> |
| 7242 | struct sum<N0, N1toN...> |
| 7243 | { |
| 7244 | static constexpr auto value = N0 + sum<N1toN...>::value; |
| 7245 | }; |
| 7246 | |
| 7247 | template <> |
| 7248 | struct sum<> |
| 7249 | { |
| 7250 | static constexpr auto value = 0; |
| 7251 | }; |
| 7252 | |
| 7253 | static_assert(sum<>::value == 0, ""); |
| 7254 | static_assert(sum<1>::value == 1, ""); |
| 7255 | static_assert(sum<23>::value == 23, ""); |
| 7256 | static_assert(sum<1, 2>::value == 3, ""); |
| 7257 | static_assert(sum<5, 5, 11>::value == 21, ""); |
| 7258 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); |
| 7259 | |
| 7260 | } |
| 7261 | |
| 7262 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae |
| 7263 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function |
| 7264 | // because of this. |
| 7265 | namespace test_template_alias_sfinae |
| 7266 | { |
| 7267 | |
| 7268 | struct foo {}; |
| 7269 | |
| 7270 | template<typename T> |
| 7271 | using member = typename T::member_type; |
| 7272 | |
| 7273 | template<typename T> |
| 7274 | void func(...) {} |
| 7275 | |
| 7276 | template<typename T> |
| 7277 | void func(member<T>*) {} |
| 7278 | |
| 7279 | void test(); |
| 7280 | |
| 7281 | void test() { func<foo>(0); } |
| 7282 | |
| 7283 | } |
| 7284 | |
| 7285 | } // namespace cxx11 |
| 7286 | |
| 7287 | #endif // __cplusplus >= 201103L |
| 7288 | |
| 7289 | |
| 7290 | |
| 7291 | _ACEOF |
| 7292 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7293 | eval $cachevar=yes |
| 7294 | else |
| 7295 | eval $cachevar=no |
| 7296 | fi |
| 7297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7298 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 7299 | fi |
| 7300 | eval ac_res=\$$cachevar |
| 7301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7302 | $as_echo "$ac_res" >&6; } |
| 7303 | if eval test x\$$cachevar = xyes; then |
| 7304 | CXXFLAGS="$CXXFLAGS $switch" |
| 7305 | ac_success=yes |
| 7306 | break |
| 7307 | fi |
| 7308 | done |
| 7309 | fi |
| 7310 | ac_ext=c |
| 7311 | ac_cpp='$CPP $CPPFLAGS' |
| 7312 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7313 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7314 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7315 | |
| 7316 | if test x$ax_cxx_compile_cxx11_required = xtrue; then |
| 7317 | if test x$ac_success = xno; then |
| 7318 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 |
| 7319 | fi |
| 7320 | else |
| 7321 | if test x$ac_success = xno; then |
| 7322 | HAVE_CXX11=0 |
| 7323 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 |
| 7324 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} |
| 7325 | else |
| 7326 | HAVE_CXX11=1 |
| 7327 | |
| 7328 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h |
| 7329 | |
| 7330 | fi |
| 7331 | |
| 7332 | |
| 7333 | fi |
| 7334 | |
| 7335 | |
Mike Frysinger | 6cc0375 | 2017-02-06 15:10:13 -0500 | [diff] [blame] | 7336 | WARN_CXXFLAGS= |
| 7337 | ac_ext=cpp |
| 7338 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7339 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7340 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7341 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7342 | |
| 7343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror=unknown-warning-option" >&5 |
| 7344 | $as_echo_n "checking whether C++ compiler accepts -Werror=unknown-warning-option... " >&6; } |
| 7345 | if ${ax_cv_check_cxxflags___Werror_unknown_warning_option+:} false; then : |
| 7346 | $as_echo_n "(cached) " >&6 |
| 7347 | else |
| 7348 | |
| 7349 | ax_check_save_flags=$CXXFLAGS |
| 7350 | CXXFLAGS="$CXXFLAGS -Werror=unknown-warning-option" |
| 7351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7352 | /* end confdefs.h. */ |
| 7353 | |
| 7354 | int |
| 7355 | main () |
| 7356 | { |
| 7357 | |
| 7358 | ; |
| 7359 | return 0; |
| 7360 | } |
| 7361 | _ACEOF |
| 7362 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7363 | ax_cv_check_cxxflags___Werror_unknown_warning_option=yes |
| 7364 | else |
| 7365 | ax_cv_check_cxxflags___Werror_unknown_warning_option=no |
| 7366 | fi |
| 7367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7368 | CXXFLAGS=$ax_check_save_flags |
| 7369 | fi |
| 7370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror_unknown_warning_option" >&5 |
| 7371 | $as_echo "$ax_cv_check_cxxflags___Werror_unknown_warning_option" >&6; } |
| 7372 | if test "x$ax_cv_check_cxxflags___Werror_unknown_warning_option" = xyes; then : |
| 7373 | |
| 7374 | ax_compiler_flags_test="-Werror=unknown-warning-option" |
| 7375 | |
| 7376 | else |
| 7377 | |
| 7378 | ax_compiler_flags_test="" |
| 7379 | |
| 7380 | fi |
| 7381 | |
| 7382 | |
| 7383 | |
| 7384 | |
| 7385 | |
Tobias Sargeant | b37547b | 2017-03-24 12:51:47 +0000 | [diff] [blame] | 7386 | for flag in -Wmissing-braces -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-compare -Wunused-local-typedefs -Wunused-variable -Wvla ; do |
Mike Frysinger | 6cc0375 | 2017-02-06 15:10:13 -0500 | [diff] [blame] | 7387 | as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_${ax_compiler_flags_test}_$flag" | $as_tr_sh` |
| 7388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 |
| 7389 | $as_echo_n "checking whether C++ compiler accepts $flag... " >&6; } |
| 7390 | if eval \${$as_CACHEVAR+:} false; then : |
| 7391 | $as_echo_n "(cached) " >&6 |
| 7392 | else |
| 7393 | |
| 7394 | ax_check_save_flags=$CXXFLAGS |
| 7395 | CXXFLAGS="$CXXFLAGS ${ax_compiler_flags_test} $flag" |
| 7396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7397 | /* end confdefs.h. */ |
| 7398 | |
| 7399 | int |
| 7400 | main () |
| 7401 | { |
| 7402 | |
| 7403 | ; |
| 7404 | return 0; |
| 7405 | } |
| 7406 | _ACEOF |
| 7407 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7408 | eval "$as_CACHEVAR=yes" |
| 7409 | else |
| 7410 | eval "$as_CACHEVAR=no" |
| 7411 | fi |
| 7412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7413 | CXXFLAGS=$ax_check_save_flags |
| 7414 | fi |
| 7415 | eval ac_res=\$$as_CACHEVAR |
| 7416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7417 | $as_echo "$ac_res" >&6; } |
| 7418 | if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 7419 | |
| 7420 | if ${WARN_CXXFLAGS+:} false; then : |
| 7421 | |
| 7422 | case " $WARN_CXXFLAGS " in #( |
| 7423 | *" $flag "*) : |
| 7424 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5 |
| 7425 | (: WARN_CXXFLAGS already contains $flag) 2>&5 |
| 7426 | ac_status=$? |
| 7427 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7428 | test $ac_status = 0; } ;; #( |
| 7429 | *) : |
| 7430 | |
| 7431 | as_fn_append WARN_CXXFLAGS " $flag" |
| 7432 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 |
| 7433 | (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 |
| 7434 | ac_status=$? |
| 7435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7436 | test $ac_status = 0; } |
| 7437 | ;; |
| 7438 | esac |
| 7439 | |
| 7440 | else |
| 7441 | |
| 7442 | WARN_CXXFLAGS=$flag |
| 7443 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 |
| 7444 | (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 |
| 7445 | ac_status=$? |
| 7446 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7447 | test $ac_status = 0; } |
| 7448 | |
| 7449 | fi |
| 7450 | |
| 7451 | else |
| 7452 | : |
| 7453 | fi |
| 7454 | |
| 7455 | done |
| 7456 | |
| 7457 | as_fn_append WARN_CXXFLAGS " -Werror" |
| 7458 | ac_ext=c |
| 7459 | ac_cpp='$CPP $CPPFLAGS' |
| 7460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7463 | |
| 7464 | |
| 7465 | |
Lars Volker | ffe3e47 | 2017-05-10 22:50:32 +0200 | [diff] [blame] | 7466 | |
| 7467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC defined in fcntl.h" >&5 |
| 7468 | $as_echo_n "checking for O_CLOEXEC defined in fcntl.h... " >&6; } |
| 7469 | if ${ac_cv_defined_O_CLOEXEC_fcntl_h+:} false; then : |
| 7470 | $as_echo_n "(cached) " >&6 |
| 7471 | else |
| 7472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7473 | /* end confdefs.h. */ |
| 7474 | #include <fcntl.h> |
| 7475 | int |
| 7476 | main () |
| 7477 | { |
| 7478 | |
| 7479 | #ifdef O_CLOEXEC |
| 7480 | int ok; |
| 7481 | #else |
| 7482 | choke me |
| 7483 | #endif |
| 7484 | |
| 7485 | ; |
| 7486 | return 0; |
| 7487 | } |
| 7488 | _ACEOF |
| 7489 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7490 | ac_cv_defined_O_CLOEXEC_fcntl_h=yes |
| 7491 | else |
| 7492 | ac_cv_defined_O_CLOEXEC_fcntl_h=no |
| 7493 | fi |
| 7494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7495 | fi |
| 7496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_O_CLOEXEC_fcntl_h" >&5 |
| 7497 | $as_echo "$ac_cv_defined_O_CLOEXEC_fcntl_h" >&6; } |
| 7498 | if test $ac_cv_defined_O_CLOEXEC_fcntl_h != "no"; then : |
| 7499 | |
| 7500 | else |
| 7501 | |
| 7502 | $as_echo "#define O_CLOEXEC 0" >>confdefs.h |
| 7503 | |
| 7504 | fi |
| 7505 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 7506 | # Only build Linux client libs when compiling for Linux |
| 7507 | case $host in |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 7508 | *-*-linux* | *-android* ) |
| 7509 | LINUX_HOST=true |
| 7510 | ;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 7511 | esac |
| 7512 | if test x$LINUX_HOST = xtrue; then |
| 7513 | LINUX_HOST_TRUE= |
| 7514 | LINUX_HOST_FALSE='#' |
| 7515 | else |
| 7516 | LINUX_HOST_TRUE='#' |
| 7517 | LINUX_HOST_FALSE= |
| 7518 | fi |
| 7519 | |
| 7520 | |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 7521 | # Only use Android support headers when compiling for Android |
| 7522 | case $host in |
| 7523 | *-android*) |
| 7524 | ANDROID_HOST=true |
| 7525 | ;; |
| 7526 | esac |
| 7527 | if test x$ANDROID_HOST = xtrue; then |
| 7528 | ANDROID_HOST_TRUE= |
| 7529 | ANDROID_HOST_FALSE='#' |
| 7530 | else |
| 7531 | ANDROID_HOST_TRUE='#' |
| 7532 | ANDROID_HOST_FALSE= |
| 7533 | fi |
| 7534 | |
| 7535 | |
Mike Frysinger | 3f736ce | 2016-01-27 16:45:21 -0500 | [diff] [blame] | 7536 | # Some tools (like mac ones) only support x86 currently. |
| 7537 | case $host_cpu in |
| 7538 | i?86|x86_64) |
| 7539 | X86_HOST=true |
| 7540 | ;; |
| 7541 | esac |
| 7542 | if test x$X86_HOST = xtrue; then |
| 7543 | X86_HOST_TRUE= |
| 7544 | X86_HOST_FALSE='#' |
| 7545 | else |
| 7546 | X86_HOST_TRUE='#' |
| 7547 | X86_HOST_FALSE= |
| 7548 | fi |
| 7549 | |
| 7550 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 7551 | # Check whether --enable-processor was given. |
| 7552 | if test "${enable_processor+set}" = set; then : |
| 7553 | enableval=$enable_processor; case "${enableval}" in |
| 7554 | yes) |
| 7555 | disable_processor=false |
| 7556 | ;; |
| 7557 | no) |
| 7558 | disable_processor=true |
| 7559 | ;; |
| 7560 | *) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7561 | as_fn_error $? "bad value ${enableval} for --disable-processor" "$LINENO" 5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 7562 | ;; |
| 7563 | esac |
| 7564 | else |
| 7565 | disable_processor=false |
| 7566 | fi |
| 7567 | |
| 7568 | if test x$disable_processor = xtrue; then |
| 7569 | DISABLE_PROCESSOR_TRUE= |
| 7570 | DISABLE_PROCESSOR_FALSE='#' |
| 7571 | else |
| 7572 | DISABLE_PROCESSOR_TRUE='#' |
| 7573 | DISABLE_PROCESSOR_FALSE= |
| 7574 | fi |
| 7575 | |
| 7576 | |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 7577 | # Check whether --enable-tools was given. |
| 7578 | if test "${enable_tools+set}" = set; then : |
| 7579 | enableval=$enable_tools; case "${enableval}" in |
| 7580 | yes) |
| 7581 | disable_tools=false |
| 7582 | ;; |
| 7583 | no) |
| 7584 | disable_tools=true |
| 7585 | ;; |
| 7586 | *) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7587 | as_fn_error $? "bad value ${enableval} for --disable-tools" "$LINENO" 5 |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 7588 | ;; |
| 7589 | esac |
| 7590 | else |
| 7591 | disable_tools=false |
| 7592 | fi |
| 7593 | |
| 7594 | if test x$disable_tools = xtrue; then |
| 7595 | DISABLE_TOOLS_TRUE= |
| 7596 | DISABLE_TOOLS_FALSE='#' |
| 7597 | else |
| 7598 | DISABLE_TOOLS_TRUE='#' |
| 7599 | DISABLE_TOOLS_FALSE= |
| 7600 | fi |
| 7601 | |
| 7602 | |
| 7603 | if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue -a x$disable_tools = xtrue; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7604 | as_fn_error $? "--disable-processor and --disable-tools were specified, and not building for Linux. Nothing to build!" "$LINENO" 5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 7605 | fi |
| 7606 | |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 7607 | # Check whether --enable-system-test-libs was given. |
| 7608 | if test "${enable_system_test_libs+set}" = set; then : |
| 7609 | enableval=$enable_system_test_libs; case "${enableval}" in |
| 7610 | yes) |
| 7611 | system_test_libs=true |
| 7612 | ;; |
| 7613 | no) |
| 7614 | system_test_libs=false |
| 7615 | ;; |
| 7616 | *) |
| 7617 | as_fn_error $? "bad value ${enableval} for --enable-system-test-libs" "$LINENO" 5 |
| 7618 | ;; |
| 7619 | esac |
| 7620 | else |
| 7621 | system_test_libs=false |
| 7622 | fi |
| 7623 | |
| 7624 | if test x$system_test_libs = xtrue; then |
| 7625 | SYSTEM_TEST_LIBS_TRUE= |
| 7626 | SYSTEM_TEST_LIBS_FALSE='#' |
| 7627 | else |
| 7628 | SYSTEM_TEST_LIBS_TRUE='#' |
| 7629 | SYSTEM_TEST_LIBS_FALSE= |
| 7630 | fi |
| 7631 | |
| 7632 | |
| 7633 | |
| 7634 | |
| 7635 | |
| 7636 | |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 7637 | if test x$system_test_libs = xtrue; then |
Allen Webb | 488566d | 2019-06-14 13:06:07 -0700 | [diff] [blame] | 7638 | : "${GMOCK_CFLAGS:=-pthread}" |
| 7639 | : "${GMOCK_LIBS:=-lgmock -lgtest -pthread -lpthread}" |
| 7640 | : "${GTEST_CFLAGS:=-pthread}" |
| 7641 | : "${GTEST_LIBS:=-lgtest -pthread -lpthread}" |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 7642 | fi |
| 7643 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7644 | # Check whether --enable-selftest was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7645 | if test "${enable_selftest+set}" = set; then : |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7646 | enableval=$enable_selftest; case "${enableval}" in |
| 7647 | yes) |
| 7648 | selftest=true |
| 7649 | ;; |
| 7650 | no) |
| 7651 | selftest=false |
| 7652 | ;; |
| 7653 | *) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7654 | as_fn_error $? "bad value ${enableval} for --enable-selftest" "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7655 | ;; |
| 7656 | esac |
| 7657 | else |
| 7658 | selftest=false |
| 7659 | fi |
| 7660 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 7661 | if test x$selftest = xtrue; then |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7662 | SELFTEST_TRUE= |
| 7663 | SELFTEST_FALSE='#' |
| 7664 | else |
| 7665 | SELFTEST_TRUE='#' |
| 7666 | SELFTEST_FALSE= |
| 7667 | fi |
| 7668 | |
| 7669 | |
Ted Mielczarek | 2ecb2ba | 2016-10-24 15:16:28 -0400 | [diff] [blame] | 7670 | |
| 7671 | # Check whether --with-rust-demangle was given. |
| 7672 | if test "${with_rust_demangle+set}" = set; then : |
| 7673 | withval=$with_rust_demangle; case "${withval}" in |
| 7674 | yes) |
| 7675 | as_fn_error $? "You must pass the path to the rust-demangle-capi crate for --with-rust-demangle" "$LINENO" 5 |
| 7676 | ;; |
| 7677 | no) |
| 7678 | rust_demangle=false |
| 7679 | ;; |
| 7680 | *) |
| 7681 | if ! test -f "${withval}/Cargo.toml"; then |
| 7682 | as_fn_error $? "You must pass the path to the rust-demangle-capi crate for --with-rust-demangle" "$LINENO" 5 |
| 7683 | fi |
| 7684 | RUST_DEMANGLE_CFLAGS="-DHAVE_RUST_DEMANGLE -I${withval}/target/include" |
| 7685 | RUST_DEMANGLE_LIBS="-L${withval}/target/release -lrust_demangle -lpthread -ldl" |
| 7686 | ;; |
| 7687 | esac |
| 7688 | else |
| 7689 | rust_demangle=false |
| 7690 | fi |
| 7691 | |
| 7692 | |
| 7693 | |
| 7694 | |
Lars Volker | 49907e1 | 2018-01-31 13:29:11 -0800 | [diff] [blame] | 7695 | |
| 7696 | # Check whether --with-tests-as-root was given. |
| 7697 | if test "${with_tests_as_root+set}" = set; then : |
| 7698 | withval=$with_tests_as_root; case "${withval}" in |
| 7699 | yes) |
| 7700 | tests_as_root=true |
| 7701 | ;; |
| 7702 | no) |
| 7703 | tests_as_root=false |
| 7704 | ;; |
| 7705 | *) |
| 7706 | as_fn_error $? "--with-tests-as-root can only be \"yes\" or \"no\"" "$LINENO" 5 |
| 7707 | ;; |
| 7708 | esac |
| 7709 | else |
| 7710 | tests_as_root=false |
| 7711 | fi |
| 7712 | |
| 7713 | if test x$tests_as_root = xtrue; then |
| 7714 | TESTS_AS_ROOT_TRUE= |
| 7715 | TESTS_AS_ROOT_FALSE='#' |
| 7716 | else |
| 7717 | TESTS_AS_ROOT_TRUE='#' |
| 7718 | TESTS_AS_ROOT_FALSE= |
| 7719 | fi |
| 7720 | |
| 7721 | |
vapier@chromium.org | 1b309ed | 2014-08-27 02:10:55 +0000 | [diff] [blame] | 7722 | ac_config_files="$ac_config_files breakpad.pc breakpad-client.pc Makefile" |
| 7723 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7724 | |
| 7725 | cat >confcache <<\_ACEOF |
| 7726 | # This file is a shell script that caches the results of configure |
| 7727 | # tests run on this system so they can be shared between configure |
| 7728 | # scripts and configure runs, see configure's option --config-cache. |
| 7729 | # It is not useful on other systems. If it contains results you don't |
| 7730 | # want to keep, you may remove or edit it. |
| 7731 | # |
| 7732 | # config.status only pays attention to the cache file if you give it |
| 7733 | # the --recheck option to rerun configure. |
| 7734 | # |
| 7735 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 7736 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 7737 | # following values. |
| 7738 | |
| 7739 | _ACEOF |
| 7740 | |
| 7741 | # The following way of writing the cache mishandles newlines in values, |
| 7742 | # but we know of no workaround that is simple, portable, and efficient. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7743 | # So, we kill variables containing newlines. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7744 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 7745 | # and sets the high bit in the cache file unless we assign to the vars. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7746 | ( |
| 7747 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 7748 | eval ac_val=\$$ac_var |
| 7749 | case $ac_val in #( |
| 7750 | *${as_nl}*) |
| 7751 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7752 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 7753 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7754 | esac |
| 7755 | case $ac_var in #( |
| 7756 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7757 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 7758 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7759 | esac ;; |
| 7760 | esac |
| 7761 | done |
| 7762 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7763 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7764 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 7765 | *${as_nl}ac_space=\ *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7766 | # `set' does not quote correctly, so add quotes: double-quote |
| 7767 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7768 | sed -n \ |
| 7769 | "s/'/'\\\\''/g; |
| 7770 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7771 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7772 | *) |
| 7773 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7774 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7775 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7776 | esac | |
| 7777 | sort |
| 7778 | ) | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7779 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7780 | /^ac_cv_env_/b end |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7781 | t clear |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7782 | :clear |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7783 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 7784 | t end |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7785 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 7786 | :end' >>confcache |
| 7787 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 7788 | if test -w "$cache_file"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7789 | if test "x$cache_file" != "x/dev/null"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7790 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 7791 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7792 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 7793 | cat confcache >"$cache_file" |
| 7794 | else |
| 7795 | case $cache_file in #( |
| 7796 | */* | ?:*) |
| 7797 | mv -f confcache "$cache_file"$$ && |
| 7798 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 7799 | *) |
| 7800 | mv -f confcache "$cache_file" ;; |
| 7801 | esac |
| 7802 | fi |
| 7803 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7804 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 7806 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7807 | fi |
| 7808 | fi |
| 7809 | rm -f confcache |
| 7810 | |
| 7811 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7812 | # Let make expand exec_prefix. |
| 7813 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 7814 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7815 | DEFS=-DHAVE_CONFIG_H |
| 7816 | |
| 7817 | ac_libobjs= |
| 7818 | ac_ltlibobjs= |
| 7819 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 7820 | # 1. Remove the extension, and $U if already installed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7821 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7822 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7823 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 7824 | # will be set to the directory where LIBOBJS objects are built. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7825 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 7826 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7827 | done |
| 7828 | LIBOBJS=$ac_libobjs |
| 7829 | |
| 7830 | LTLIBOBJS=$ac_ltlibobjs |
| 7831 | |
| 7832 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 7834 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
| 7835 | if test -n "$am_sleep_pid"; then |
| 7836 | # Hide warnings about reused PIDs. |
| 7837 | wait $am_sleep_pid 2>/dev/null |
| 7838 | fi |
| 7839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 7840 | $as_echo "done" >&6; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7841 | if test -n "$EXEEXT"; then |
| 7842 | am__EXEEXT_TRUE= |
| 7843 | am__EXEEXT_FALSE='#' |
| 7844 | else |
| 7845 | am__EXEEXT_TRUE='#' |
| 7846 | am__EXEEXT_FALSE= |
| 7847 | fi |
| 7848 | |
ted.mielczarek@gmail.com | 07bb231 | 2013-12-10 12:28:11 +0000 | [diff] [blame] | 7849 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 7850 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 7851 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7852 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7853 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7854 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7855 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7856 | fi |
| 7857 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7858 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7859 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7860 | fi |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 7861 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7862 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 7863 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7864 | fi |
| 7865 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7866 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 7867 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7868 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7869 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7870 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7871 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7872 | fi |
Michael Forney | e780d58 | 2020-03-16 12:56:56 -0700 | [diff] [blame] | 7873 | if test -z "${HAVE_GETCONTEXT_TRUE}" && test -z "${HAVE_GETCONTEXT_FALSE}"; then |
| 7874 | as_fn_error $? "conditional \"HAVE_GETCONTEXT\" was never defined. |
| 7875 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7876 | fi |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 7877 | if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7878 | as_fn_error $? "conditional \"LINUX_HOST\" was never defined. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 7879 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7880 | fi |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 7881 | if test -z "${ANDROID_HOST_TRUE}" && test -z "${ANDROID_HOST_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7882 | as_fn_error $? "conditional \"ANDROID_HOST\" was never defined. |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 7883 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7884 | fi |
Mike Frysinger | 3f736ce | 2016-01-27 16:45:21 -0500 | [diff] [blame] | 7885 | if test -z "${X86_HOST_TRUE}" && test -z "${X86_HOST_FALSE}"; then |
| 7886 | as_fn_error $? "conditional \"X86_HOST\" was never defined. |
| 7887 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7888 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 7889 | if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7890 | as_fn_error $? "conditional \"DISABLE_PROCESSOR\" was never defined. |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 7891 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7892 | fi |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 7893 | if test -z "${DISABLE_TOOLS_TRUE}" && test -z "${DISABLE_TOOLS_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7894 | as_fn_error $? "conditional \"DISABLE_TOOLS\" was never defined. |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 7895 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7896 | fi |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 7897 | if test -z "${SYSTEM_TEST_LIBS_TRUE}" && test -z "${SYSTEM_TEST_LIBS_FALSE}"; then |
| 7898 | as_fn_error $? "conditional \"SYSTEM_TEST_LIBS\" was never defined. |
| 7899 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7900 | fi |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7901 | if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7902 | as_fn_error $? "conditional \"SELFTEST\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7903 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7904 | fi |
Lars Volker | 49907e1 | 2018-01-31 13:29:11 -0800 | [diff] [blame] | 7905 | if test -z "${TESTS_AS_ROOT_TRUE}" && test -z "${TESTS_AS_ROOT_FALSE}"; then |
| 7906 | as_fn_error $? "conditional \"TESTS_AS_ROOT\" was never defined. |
| 7907 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7908 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7909 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7910 | : "${CONFIG_STATUS=./config.status}" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7911 | ac_write_fail=0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7912 | ac_clean_files_save=$ac_clean_files |
| 7913 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7914 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 7915 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 7916 | as_write_fail=0 |
| 7917 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7918 | #! $SHELL |
| 7919 | # Generated by $as_me. |
| 7920 | # Run this file to recreate the current configuration. |
| 7921 | # Compiler output produced by configure, useful for debugging |
| 7922 | # configure, is in config.log if it exists. |
| 7923 | |
| 7924 | debug=false |
| 7925 | ac_cs_recheck=false |
| 7926 | ac_cs_silent=false |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7927 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7928 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 7929 | export SHELL |
| 7930 | _ASEOF |
| 7931 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 7932 | ## -------------------- ## |
| 7933 | ## M4sh Initialization. ## |
| 7934 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7935 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 7936 | # Be more Bourne compatible |
| 7937 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7938 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7939 | emulate sh |
| 7940 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7941 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7942 | # is contrary to our usage. Disable this feature. |
| 7943 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7944 | setopt NO_GLOB_SUBST |
| 7945 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7946 | case `(set -o) 2>/dev/null` in #( |
| 7947 | *posix*) : |
| 7948 | set -o posix ;; #( |
| 7949 | *) : |
| 7950 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 7951 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7952 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 7953 | |
| 7954 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7955 | as_nl=' |
| 7956 | ' |
| 7957 | export as_nl |
| 7958 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 7959 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 7960 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 7961 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 7962 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 7963 | # but without wasting forks for bash or zsh. |
| 7964 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 7965 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 7966 | as_echo='print -r --' |
| 7967 | as_echo_n='print -rn --' |
| 7968 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 7969 | as_echo='printf %s\n' |
| 7970 | as_echo_n='printf %s' |
| 7971 | else |
| 7972 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 7973 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 7974 | as_echo_n='/usr/ucb/echo -n' |
| 7975 | else |
| 7976 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 7977 | as_echo_n_body='eval |
| 7978 | arg=$1; |
| 7979 | case $arg in #( |
| 7980 | *"$as_nl"*) |
| 7981 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 7982 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 7983 | esac; |
| 7984 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 7985 | ' |
| 7986 | export as_echo_n_body |
| 7987 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 7988 | fi |
| 7989 | export as_echo_body |
| 7990 | as_echo='sh -c $as_echo_body as_echo' |
| 7991 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7992 | |
| 7993 | # The user is always right. |
| 7994 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7995 | PATH_SEPARATOR=: |
| 7996 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 7997 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 7998 | PATH_SEPARATOR=';' |
| 7999 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8000 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8001 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8002 | |
| 8003 | # IFS |
| 8004 | # We need space, tab and new line, in precisely that order. Quoting is |
| 8005 | # there to prevent editors from complaining about space-tab. |
| 8006 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 8007 | # splitting by setting IFS to empty value.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8008 | IFS=" "" $as_nl" |
| 8009 | |
| 8010 | # Find who we are. Look in the path if we contain no directory separator. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8011 | as_myself= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8012 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8013 | *[\\/]* ) as_myself=$0 ;; |
| 8014 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8015 | for as_dir in $PATH |
| 8016 | do |
| 8017 | IFS=$as_save_IFS |
| 8018 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8019 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 8020 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8021 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8022 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8023 | ;; |
| 8024 | esac |
| 8025 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 8026 | # in which case we are not to be found in the path. |
| 8027 | if test "x$as_myself" = x; then |
| 8028 | as_myself=$0 |
| 8029 | fi |
| 8030 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8031 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 8032 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8033 | fi |
| 8034 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8035 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 8036 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 8037 | # suppresses any "Segmentation fault" message there. '((' could |
| 8038 | # trigger a bug in pdksh 5.2.14. |
| 8039 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 8040 | do eval test x\${$as_var+set} = xset \ |
| 8041 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8042 | done |
| 8043 | PS1='$ ' |
| 8044 | PS2='> ' |
| 8045 | PS4='+ ' |
| 8046 | |
| 8047 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8048 | LC_ALL=C |
| 8049 | export LC_ALL |
| 8050 | LANGUAGE=C |
| 8051 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8052 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8053 | # CDPATH. |
| 8054 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 8055 | |
| 8056 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8057 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 8058 | # ---------------------------------------- |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8059 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 8060 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8061 | # script with STATUS, using 1 if that was 0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8062 | as_fn_error () |
| 8063 | { |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8064 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 8065 | if test "$4"; then |
| 8066 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 8067 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8068 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8069 | $as_echo "$as_me: error: $2" >&2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8070 | as_fn_exit $as_status |
| 8071 | } # as_fn_error |
| 8072 | |
| 8073 | |
| 8074 | # as_fn_set_status STATUS |
| 8075 | # ----------------------- |
| 8076 | # Set $? to STATUS, without forking. |
| 8077 | as_fn_set_status () |
| 8078 | { |
| 8079 | return $1 |
| 8080 | } # as_fn_set_status |
| 8081 | |
| 8082 | # as_fn_exit STATUS |
| 8083 | # ----------------- |
| 8084 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 8085 | as_fn_exit () |
| 8086 | { |
| 8087 | set +e |
| 8088 | as_fn_set_status $1 |
| 8089 | exit $1 |
| 8090 | } # as_fn_exit |
| 8091 | |
| 8092 | # as_fn_unset VAR |
| 8093 | # --------------- |
| 8094 | # Portably unset VAR. |
| 8095 | as_fn_unset () |
| 8096 | { |
| 8097 | { eval $1=; unset $1;} |
| 8098 | } |
| 8099 | as_unset=as_fn_unset |
| 8100 | # as_fn_append VAR VALUE |
| 8101 | # ---------------------- |
| 8102 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 8103 | # advantage of any shell optimizations that allow amortized linear growth over |
| 8104 | # repeated appends, instead of the typical quadratic growth present in naive |
| 8105 | # implementations. |
| 8106 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 8107 | eval 'as_fn_append () |
| 8108 | { |
| 8109 | eval $1+=\$2 |
| 8110 | }' |
| 8111 | else |
| 8112 | as_fn_append () |
| 8113 | { |
| 8114 | eval $1=\$$1\$2 |
| 8115 | } |
| 8116 | fi # as_fn_append |
| 8117 | |
| 8118 | # as_fn_arith ARG... |
| 8119 | # ------------------ |
| 8120 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 8121 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 8122 | # must be portable across $(()) and expr. |
| 8123 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 8124 | eval 'as_fn_arith () |
| 8125 | { |
| 8126 | as_val=$(( $* )) |
| 8127 | }' |
| 8128 | else |
| 8129 | as_fn_arith () |
| 8130 | { |
| 8131 | as_val=`expr "$@" || test $? -eq 1` |
| 8132 | } |
| 8133 | fi # as_fn_arith |
| 8134 | |
| 8135 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8136 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 8137 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 8138 | as_expr=expr |
| 8139 | else |
| 8140 | as_expr=false |
| 8141 | fi |
| 8142 | |
| 8143 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 8144 | as_basename=basename |
| 8145 | else |
| 8146 | as_basename=false |
| 8147 | fi |
| 8148 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8149 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 8150 | as_dirname=dirname |
| 8151 | else |
| 8152 | as_dirname=false |
| 8153 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8154 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8155 | as_me=`$as_basename -- "$0" || |
| 8156 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 8157 | X"$0" : 'X\(//\)$' \| \ |
| 8158 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8159 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8160 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 8161 | s//\1/ |
| 8162 | q |
| 8163 | } |
| 8164 | /^X\/\(\/\/\)$/{ |
| 8165 | s//\1/ |
| 8166 | q |
| 8167 | } |
| 8168 | /^X\/\(\/\).*/{ |
| 8169 | s//\1/ |
| 8170 | q |
| 8171 | } |
| 8172 | s/.*/./; q'` |
| 8173 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8174 | # Avoid depending upon Character Ranges. |
| 8175 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 8176 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 8177 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 8178 | as_cr_digits='0123456789' |
| 8179 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8180 | |
| 8181 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8182 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8183 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8184 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8185 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8186 | xy) ECHO_C='\c';; |
| 8187 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 8188 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8189 | esac;; |
| 8190 | *) |
| 8191 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8192 | esac |
| 8193 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8194 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8195 | if test -d conf$$.dir; then |
| 8196 | rm -f conf$$.dir/conf$$.file |
| 8197 | else |
| 8198 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8199 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8200 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8201 | if (echo >conf$$.file) 2>/dev/null; then |
| 8202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 8203 | as_ln_s='ln -s' |
| 8204 | # ... but there are two gotchas: |
| 8205 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 8206 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8207 | # In both cases, we have to default to `cp -pR'. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8208 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8209 | as_ln_s='cp -pR' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8210 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 8211 | as_ln_s=ln |
| 8212 | else |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8213 | as_ln_s='cp -pR' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8214 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8215 | else |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8216 | as_ln_s='cp -pR' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8217 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8218 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 8219 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8220 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8221 | |
| 8222 | # as_fn_mkdir_p |
| 8223 | # ------------- |
| 8224 | # Create "$as_dir" as a directory, including parents if necessary. |
| 8225 | as_fn_mkdir_p () |
| 8226 | { |
| 8227 | |
| 8228 | case $as_dir in #( |
| 8229 | -*) as_dir=./$as_dir;; |
| 8230 | esac |
| 8231 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 8232 | as_dirs= |
| 8233 | while :; do |
| 8234 | case $as_dir in #( |
| 8235 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 8236 | *) as_qdir=$as_dir;; |
| 8237 | esac |
| 8238 | as_dirs="'$as_qdir' $as_dirs" |
| 8239 | as_dir=`$as_dirname -- "$as_dir" || |
| 8240 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8241 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 8242 | X"$as_dir" : 'X\(//\)$' \| \ |
| 8243 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 8244 | $as_echo X"$as_dir" | |
| 8245 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 8246 | s//\1/ |
| 8247 | q |
| 8248 | } |
| 8249 | /^X\(\/\/\)[^/].*/{ |
| 8250 | s//\1/ |
| 8251 | q |
| 8252 | } |
| 8253 | /^X\(\/\/\)$/{ |
| 8254 | s//\1/ |
| 8255 | q |
| 8256 | } |
| 8257 | /^X\(\/\).*/{ |
| 8258 | s//\1/ |
| 8259 | q |
| 8260 | } |
| 8261 | s/.*/./; q'` |
| 8262 | test -d "$as_dir" && break |
| 8263 | done |
| 8264 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8265 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8266 | |
| 8267 | |
| 8268 | } # as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8269 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8270 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8271 | else |
| 8272 | test -d ./-p && rmdir ./-p |
| 8273 | as_mkdir_p=false |
| 8274 | fi |
| 8275 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8276 | |
| 8277 | # as_fn_executable_p FILE |
| 8278 | # ----------------------- |
| 8279 | # Test if FILE is an executable regular file. |
| 8280 | as_fn_executable_p () |
| 8281 | { |
| 8282 | test -f "$1" && test -x "$1" |
| 8283 | } # as_fn_executable_p |
| 8284 | as_test_x='test -x' |
| 8285 | as_executable_p=as_fn_executable_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8286 | |
| 8287 | # Sed expression to map a string onto a valid CPP name. |
| 8288 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 8289 | |
| 8290 | # Sed expression to map a string onto a valid variable name. |
| 8291 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 8292 | |
| 8293 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8294 | exec 6>&1 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8295 | ## ----------------------------------- ## |
| 8296 | ## Main body of $CONFIG_STATUS script. ## |
| 8297 | ## ----------------------------------- ## |
| 8298 | _ASEOF |
| 8299 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8300 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8301 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8302 | # Save the log message, to keep $0 and so on meaningful, and to |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8303 | # report actual input values of CONFIG_FILES etc. instead of their |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8304 | # values after options handling. |
| 8305 | ac_log=" |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 8306 | This file was extended by breakpad $as_me 0.1, which was |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8307 | generated by GNU Autoconf 2.69. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8308 | |
| 8309 | CONFIG_FILES = $CONFIG_FILES |
| 8310 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 8311 | CONFIG_LINKS = $CONFIG_LINKS |
| 8312 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 8313 | $ $0 $@ |
| 8314 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8315 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 8316 | " |
| 8317 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8318 | _ACEOF |
| 8319 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8320 | case $ac_config_files in *" |
| 8321 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 8322 | esac |
| 8323 | |
| 8324 | case $ac_config_headers in *" |
| 8325 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 8326 | esac |
| 8327 | |
| 8328 | |
| 8329 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8330 | # Files that config.status was made for. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8331 | config_files="$ac_config_files" |
| 8332 | config_headers="$ac_config_headers" |
| 8333 | config_commands="$ac_config_commands" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8334 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8335 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8336 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8337 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8338 | ac_cs_usage="\ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8339 | \`$as_me' instantiates files and other configuration actions |
| 8340 | from templates according to the current configuration. Unless the files |
| 8341 | and actions are specified as TAGs, all are instantiated by default. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8342 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8343 | Usage: $0 [OPTION]... [TAG]... |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8344 | |
| 8345 | -h, --help print this help, then exit |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 8346 | -V, --version print version number and configuration settings, then exit |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 8347 | --config print configuration, then exit |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8348 | -q, --quiet, --silent |
| 8349 | do not print progress messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8350 | -d, --debug don't remove temporary files |
| 8351 | --recheck update $as_me by reconfiguring in the same conditions |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8352 | --file=FILE[:TEMPLATE] |
| 8353 | instantiate the configuration file FILE |
| 8354 | --header=FILE[:TEMPLATE] |
| 8355 | instantiate the configuration header FILE |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8356 | |
| 8357 | Configuration files: |
| 8358 | $config_files |
| 8359 | |
| 8360 | Configuration headers: |
| 8361 | $config_headers |
| 8362 | |
| 8363 | Configuration commands: |
| 8364 | $config_commands |
| 8365 | |
thestig@chromium.org | 43e6db7 | 2010-11-08 19:49:41 +0000 | [diff] [blame] | 8366 | Report bugs to <google-breakpad-dev@googlegroups.com>." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8367 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8368 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8369 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 8370 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8371 | ac_cs_version="\\ |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 8372 | breakpad config.status 0.1 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8373 | configured by $0, generated by GNU Autoconf 2.69, |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 8374 | with options \\"\$ac_cs_config\\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8375 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8376 | Copyright (C) 2012 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8377 | This config.status script is free software; the Free Software Foundation |
| 8378 | gives unlimited permission to copy, distribute and modify it." |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8379 | |
| 8380 | ac_pwd='$ac_pwd' |
| 8381 | srcdir='$srcdir' |
| 8382 | INSTALL='$INSTALL' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 8383 | MKDIR_P='$MKDIR_P' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8384 | AWK='$AWK' |
| 8385 | test -n "\$AWK" || AWK=awk |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8386 | _ACEOF |
| 8387 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8388 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8389 | # The default lists apply if the user does not specify any file. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8390 | ac_need_defaults=: |
| 8391 | while test $# != 0 |
| 8392 | do |
| 8393 | case $1 in |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8394 | --*=?*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8395 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 8396 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8397 | ac_shift=: |
| 8398 | ;; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8399 | --*=) |
| 8400 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 8401 | ac_optarg= |
| 8402 | ac_shift=: |
| 8403 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8404 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8405 | ac_option=$1 |
| 8406 | ac_optarg=$2 |
| 8407 | ac_shift=shift |
| 8408 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8409 | esac |
| 8410 | |
| 8411 | case $ac_option in |
| 8412 | # Handling of the options. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8413 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 8414 | ac_cs_recheck=: ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8415 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8416 | $as_echo "$ac_cs_version"; exit ;; |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 8417 | --config | --confi | --conf | --con | --co | --c ) |
| 8418 | $as_echo "$ac_cs_config"; exit ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8419 | --debug | --debu | --deb | --de | --d | -d ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8420 | debug=: ;; |
| 8421 | --file | --fil | --fi | --f ) |
| 8422 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8423 | case $ac_optarg in |
| 8424 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8425 | '') as_fn_error $? "missing file argument" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8426 | esac |
| 8427 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8428 | ac_need_defaults=false;; |
| 8429 | --header | --heade | --head | --hea ) |
| 8430 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8431 | case $ac_optarg in |
| 8432 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 8433 | esac |
| 8434 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8435 | ac_need_defaults=false;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8436 | --he | --h) |
| 8437 | # Conflict between --help and --header |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8438 | as_fn_error $? "ambiguous option: \`$1' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8439 | Try \`$0 --help' for more information.";; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8440 | --help | --hel | -h ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8441 | $as_echo "$ac_cs_usage"; exit ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8442 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 8443 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 8444 | ac_cs_silent=: ;; |
| 8445 | |
| 8446 | # This is an error. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8447 | -*) as_fn_error $? "unrecognized option: \`$1' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8448 | Try \`$0 --help' for more information." ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8449 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8450 | *) as_fn_append ac_config_targets " $1" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8451 | ac_need_defaults=false ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8452 | |
| 8453 | esac |
| 8454 | shift |
| 8455 | done |
| 8456 | |
| 8457 | ac_configure_extra_args= |
| 8458 | |
| 8459 | if $ac_cs_silent; then |
| 8460 | exec 6>/dev/null |
| 8461 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 8462 | fi |
| 8463 | |
| 8464 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8465 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8466 | if \$ac_cs_recheck; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8467 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8468 | shift |
| 8469 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 8470 | CONFIG_SHELL='$SHELL' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8471 | export CONFIG_SHELL |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8472 | exec "\$@" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8473 | fi |
| 8474 | |
| 8475 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8476 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8477 | exec 5>>config.log |
| 8478 | { |
| 8479 | echo |
| 8480 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 8481 | ## Running $as_me. ## |
| 8482 | _ASBOX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8483 | $as_echo "$ac_log" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8484 | } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8485 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8486 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8487 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8488 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8489 | # INIT-COMMANDS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8490 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8491 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 8492 | |
| 8493 | _ACEOF |
| 8494 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8495 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8496 | |
| 8497 | # Handling of arguments. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8498 | for ac_config_target in $ac_config_targets |
| 8499 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8500 | case $ac_config_target in |
| 8501 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 8502 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
vapier@chromium.org | 1b309ed | 2014-08-27 02:10:55 +0000 | [diff] [blame] | 8503 | "breakpad.pc") CONFIG_FILES="$CONFIG_FILES breakpad.pc" ;; |
| 8504 | "breakpad-client.pc") CONFIG_FILES="$CONFIG_FILES breakpad-client.pc" ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8505 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 8506 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8507 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8508 | esac |
| 8509 | done |
| 8510 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8511 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8512 | # If the user did not use the arguments to specify the items to instantiate, |
| 8513 | # then the envvar interface is used. Set only those that are not. |
| 8514 | # We use the long form for the default assignment because of an extremely |
| 8515 | # bizarre bug on SunOS 4.1.3. |
| 8516 | if $ac_need_defaults; then |
| 8517 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 8518 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 8519 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 8520 | fi |
| 8521 | |
| 8522 | # Have a temporary directory for convenience. Make it in the build tree |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8523 | # simply because there is no reason against having it here, and in addition, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8524 | # creating and moving files from /tmp can sometimes cause problems. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8525 | # Hook for its removal unless debugging. |
| 8526 | # Note that there is a small window in which the directory will not be cleaned: |
| 8527 | # after its creation but before its name has been assigned to `$tmp'. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8528 | $debug || |
| 8529 | { |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8530 | tmp= ac_tmp= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8531 | trap 'exit_status=$? |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8532 | : "${ac_tmp:=$tmp}" |
| 8533 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8534 | ' 0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8535 | trap 'as_fn_exit 1' 1 2 13 15 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8536 | } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8537 | # Create a (secure) tmp directory for tmp files. |
| 8538 | |
| 8539 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8540 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8541 | test -d "$tmp" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8542 | } || |
| 8543 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8544 | tmp=./conf$$-$RANDOM |
| 8545 | (umask 077 && mkdir "$tmp") |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8546 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 8547 | ac_tmp=$tmp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8548 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8549 | # Set up the scripts for CONFIG_FILES section. |
| 8550 | # No need to generate them if there are no CONFIG_FILES. |
| 8551 | # This happens for instance with `./config.status config.h'. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8552 | if test -n "$CONFIG_FILES"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8553 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8554 | |
| 8555 | ac_cr=`echo X | tr X '\015'` |
| 8556 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 8557 | # But we know of no other shell where ac_cr would be empty at this |
| 8558 | # point, so we can use a bashism as a fallback. |
| 8559 | if test "x$ac_cr" = x; then |
| 8560 | eval ac_cr=\$\'\\r\' |
| 8561 | fi |
| 8562 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 8563 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8564 | ac_cs_awk_cr='\\r' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8565 | else |
| 8566 | ac_cs_awk_cr=$ac_cr |
| 8567 | fi |
| 8568 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8569 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8570 | _ACEOF |
| 8571 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8572 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8573 | { |
| 8574 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 8575 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 8576 | echo "_ACEOF" |
| 8577 | } >conf$$subs.sh || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8578 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 8579 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8580 | ac_delim='%!_!# ' |
| 8581 | for ac_last_try in false false false false false :; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8582 | . ./conf$$subs.sh || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8583 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8584 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8585 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 8586 | if test $ac_delim_n = $ac_delim_num; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8587 | break |
| 8588 | elif $ac_last_try; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8589 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8590 | else |
| 8591 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8592 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8593 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8594 | rm -f conf$$subs.sh |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8595 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8596 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8597 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8598 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8599 | sed -n ' |
| 8600 | h |
| 8601 | s/^/S["/; s/!.*/"]=/ |
| 8602 | p |
| 8603 | g |
| 8604 | s/^[^!]*!// |
| 8605 | :repl |
| 8606 | t repl |
| 8607 | s/'"$ac_delim"'$// |
| 8608 | t delim |
| 8609 | :nl |
| 8610 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 8611 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8612 | t more1 |
| 8613 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 8614 | p |
| 8615 | n |
| 8616 | b repl |
| 8617 | :more1 |
| 8618 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 8619 | p |
| 8620 | g |
| 8621 | s/.\{148\}// |
| 8622 | t nl |
| 8623 | :delim |
| 8624 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 8625 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8626 | t more2 |
| 8627 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 8628 | p |
| 8629 | b |
| 8630 | :more2 |
| 8631 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 8632 | p |
| 8633 | g |
| 8634 | s/.\{148\}// |
| 8635 | t delim |
| 8636 | ' <conf$$subs.awk | sed ' |
| 8637 | /^[^""]/{ |
| 8638 | N |
| 8639 | s/\n// |
| 8640 | } |
| 8641 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 8642 | rm -f conf$$subs.awk |
| 8643 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8644 | _ACAWK |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8645 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8646 | for (key in S) S_is_set[key] = 1 |
| 8647 | FS = "" |
| 8648 | |
| 8649 | } |
| 8650 | { |
| 8651 | line = $ 0 |
| 8652 | nfields = split(line, field, "@") |
| 8653 | substed = 0 |
| 8654 | len = length(field[1]) |
| 8655 | for (i = 2; i < nfields; i++) { |
| 8656 | key = field[i] |
| 8657 | keylen = length(key) |
| 8658 | if (S_is_set[key]) { |
| 8659 | value = S[key] |
| 8660 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 8661 | len += length(value) + length(field[++i]) |
| 8662 | substed = 1 |
| 8663 | } else |
| 8664 | len += 1 + keylen |
| 8665 | } |
| 8666 | |
| 8667 | print line |
| 8668 | } |
| 8669 | |
| 8670 | _ACAWK |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8671 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8672 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8673 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 8674 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 8675 | else |
| 8676 | cat |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8677 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 8678 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8679 | _ACEOF |
| 8680 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8681 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 8682 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8683 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 8684 | # (actually we leave an empty line to preserve line numbers). |
| 8685 | if test "x$srcdir" = x.; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8686 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 8687 | h |
| 8688 | s/// |
| 8689 | s/^/:/ |
| 8690 | s/[ ]*$/:/ |
| 8691 | s/:\$(srcdir):/:/g |
| 8692 | s/:\${srcdir}:/:/g |
| 8693 | s/:@srcdir@:/:/g |
| 8694 | s/^:*// |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8695 | s/:*$// |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8696 | x |
| 8697 | s/\(=[ ]*\).*/\1/ |
| 8698 | G |
| 8699 | s/\n// |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8700 | s/^[^=]*=[ ]*$// |
| 8701 | }' |
| 8702 | fi |
| 8703 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8704 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8705 | fi # test -n "$CONFIG_FILES" |
| 8706 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8707 | # Set up the scripts for CONFIG_HEADERS section. |
| 8708 | # No need to generate them if there are no CONFIG_HEADERS. |
| 8709 | # This happens for instance with `./config.status Makefile'. |
| 8710 | if test -n "$CONFIG_HEADERS"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8711 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8712 | BEGIN { |
| 8713 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8714 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8715 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 8716 | # here-document in config.status, that substitutes the proper values into |
| 8717 | # config.h.in to produce config.h. |
| 8718 | |
| 8719 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 8720 | # handling of long lines. |
| 8721 | ac_delim='%!_!# ' |
| 8722 | for ac_last_try in false false :; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8723 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 8724 | if test -z "$ac_tt"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8725 | break |
| 8726 | elif $ac_last_try; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8727 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8728 | else |
| 8729 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 8730 | fi |
| 8731 | done |
| 8732 | |
| 8733 | # For the awk script, D is an array of macro values keyed by name, |
| 8734 | # likewise P contains macro parameters if any. Preserve backslash |
| 8735 | # newline sequences. |
| 8736 | |
| 8737 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 8738 | sed -n ' |
| 8739 | s/.\{148\}/&'"$ac_delim"'/g |
| 8740 | t rset |
| 8741 | :rset |
| 8742 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 8743 | t def |
| 8744 | d |
| 8745 | :def |
| 8746 | s/\\$// |
| 8747 | t bsnl |
| 8748 | s/["\\]/\\&/g |
| 8749 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 8750 | D["\1"]=" \3"/p |
| 8751 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 8752 | d |
| 8753 | :bsnl |
| 8754 | s/["\\]/\\&/g |
| 8755 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 8756 | D["\1"]=" \3\\\\\\n"\\/p |
| 8757 | t cont |
| 8758 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 8759 | t cont |
| 8760 | d |
| 8761 | :cont |
| 8762 | n |
| 8763 | s/.\{148\}/&'"$ac_delim"'/g |
| 8764 | t clear |
| 8765 | :clear |
| 8766 | s/\\$// |
| 8767 | t bsnlc |
| 8768 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 8769 | d |
| 8770 | :bsnlc |
| 8771 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 8772 | b cont |
| 8773 | ' <confdefs.h | sed ' |
| 8774 | s/'"$ac_delim"'/"\\\ |
| 8775 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 8776 | |
| 8777 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8778 | for (key in D) D_is_set[key] = 1 |
| 8779 | FS = "" |
| 8780 | } |
| 8781 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 8782 | line = \$ 0 |
| 8783 | split(line, arg, " ") |
| 8784 | if (arg[1] == "#") { |
| 8785 | defundef = arg[2] |
| 8786 | mac1 = arg[3] |
| 8787 | } else { |
| 8788 | defundef = substr(arg[1], 2) |
| 8789 | mac1 = arg[2] |
| 8790 | } |
| 8791 | split(mac1, mac2, "(") #) |
| 8792 | macro = mac2[1] |
| 8793 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 8794 | if (D_is_set[macro]) { |
| 8795 | # Preserve the white space surrounding the "#". |
| 8796 | print prefix "define", macro P[macro] D[macro] |
| 8797 | next |
| 8798 | } else { |
| 8799 | # Replace #undef with comments. This is necessary, for example, |
| 8800 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 8801 | # on some systems where configure will not decide to define it. |
| 8802 | if (defundef == "undef") { |
| 8803 | print "/*", prefix defundef, macro, "*/" |
| 8804 | next |
| 8805 | } |
| 8806 | } |
| 8807 | } |
| 8808 | { print } |
| 8809 | _ACAWK |
| 8810 | _ACEOF |
| 8811 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8812 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8813 | fi # test -n "$CONFIG_HEADERS" |
| 8814 | |
| 8815 | |
| 8816 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 8817 | shift |
| 8818 | for ac_tag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8819 | do |
| 8820 | case $ac_tag in |
| 8821 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 8822 | esac |
| 8823 | case $ac_mode$ac_tag in |
| 8824 | :[FHL]*:*);; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8825 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8826 | :[FH]-) ac_tag=-:-;; |
| 8827 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 8828 | esac |
| 8829 | ac_save_IFS=$IFS |
| 8830 | IFS=: |
| 8831 | set x $ac_tag |
| 8832 | IFS=$ac_save_IFS |
| 8833 | shift |
| 8834 | ac_file=$1 |
| 8835 | shift |
| 8836 | |
| 8837 | case $ac_mode in |
| 8838 | :L) ac_source=$1;; |
| 8839 | :[FH]) |
| 8840 | ac_file_inputs= |
| 8841 | for ac_f |
| 8842 | do |
| 8843 | case $ac_f in |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8844 | -) ac_f="$ac_tmp/stdin";; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8845 | *) # Look for the file first in the build tree, then in the source tree |
| 8846 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 8847 | # because $ac_f cannot contain `:'. |
| 8848 | test -f "$ac_f" || |
| 8849 | case $ac_f in |
| 8850 | [\\/$]*) false;; |
| 8851 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 8852 | esac || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8853 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8854 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8855 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 8856 | as_fn_append ac_file_inputs " '$ac_f'" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8857 | done |
| 8858 | |
| 8859 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 8860 | # use $as_me), people would be surprised to read: |
| 8861 | # /* config.h. Generated by config.status. */ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8862 | configure_input='Generated from '` |
| 8863 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 8864 | `' by configure.' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8865 | if test x"$ac_file" != x-; then |
| 8866 | configure_input="$ac_file. $configure_input" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8867 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 8868 | $as_echo "$as_me: creating $ac_file" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8869 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8870 | # Neutralize special characters interpreted by sed in replacement strings. |
| 8871 | case $configure_input in #( |
| 8872 | *\&* | *\|* | *\\* ) |
| 8873 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 8874 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 8875 | *) ac_sed_conf_input=$configure_input;; |
| 8876 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8877 | |
| 8878 | case $ac_tag in |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8879 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 8880 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8881 | esac |
| 8882 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8883 | esac |
| 8884 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8885 | ac_dir=`$as_dirname -- "$ac_file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8886 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8887 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 8888 | X"$ac_file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8889 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8890 | $as_echo X"$ac_file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8891 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 8892 | s//\1/ |
| 8893 | q |
| 8894 | } |
| 8895 | /^X\(\/\/\)[^/].*/{ |
| 8896 | s//\1/ |
| 8897 | q |
| 8898 | } |
| 8899 | /^X\(\/\/\)$/{ |
| 8900 | s//\1/ |
| 8901 | q |
| 8902 | } |
| 8903 | /^X\(\/\).*/{ |
| 8904 | s//\1/ |
| 8905 | q |
| 8906 | } |
| 8907 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8908 | as_dir="$ac_dir"; as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8909 | ac_builddir=. |
| 8910 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8911 | case "$ac_dir" in |
| 8912 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 8913 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8914 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8915 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8916 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8917 | case $ac_top_builddir_sub in |
| 8918 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 8919 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 8920 | esac ;; |
| 8921 | esac |
| 8922 | ac_abs_top_builddir=$ac_pwd |
| 8923 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 8924 | # for backward compatibility: |
| 8925 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8926 | |
| 8927 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8928 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8929 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8930 | ac_top_srcdir=$ac_top_builddir_sub |
| 8931 | ac_abs_top_srcdir=$ac_pwd ;; |
| 8932 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8933 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8934 | ac_top_srcdir=$srcdir |
| 8935 | ac_abs_top_srcdir=$srcdir ;; |
| 8936 | *) # Relative name. |
| 8937 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 8938 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 8939 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8940 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8941 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8942 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8943 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8944 | case $ac_mode in |
| 8945 | :F) |
| 8946 | # |
| 8947 | # CONFIG_FILE |
| 8948 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8949 | |
| 8950 | case $INSTALL in |
| 8951 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8952 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8953 | esac |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 8954 | ac_MKDIR_P=$MKDIR_P |
| 8955 | case $MKDIR_P in |
| 8956 | [\\/$]* | ?:[\\/]* ) ;; |
| 8957 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 8958 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8959 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8960 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8961 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8962 | # If the template does not know about datarootdir, expand it. |
| 8963 | # FIXME: This hack should be removed a few years after 2.60. |
| 8964 | ac_datarootdir_hack=; ac_datarootdir_seen= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8965 | ac_sed_dataroot=' |
| 8966 | /datarootdir/ { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8967 | p |
| 8968 | q |
| 8969 | } |
| 8970 | /@datadir@/p |
| 8971 | /@docdir@/p |
| 8972 | /@infodir@/p |
| 8973 | /@localedir@/p |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8974 | /@mandir@/p' |
| 8975 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8976 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 8977 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 8979 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8980 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8981 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8982 | ac_datarootdir_hack=' |
| 8983 | s&@datadir@&$datadir&g |
| 8984 | s&@docdir@&$docdir&g |
| 8985 | s&@infodir@&$infodir&g |
| 8986 | s&@localedir@&$localedir&g |
| 8987 | s&@mandir@&$mandir&g |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8988 | s&\\\${datarootdir}&$datarootdir&g' ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8989 | esac |
| 8990 | _ACEOF |
| 8991 | |
| 8992 | # Neutralize VPATH when `$srcdir' = `.'. |
| 8993 | # Shell code in configure.ac might set extrasub. |
| 8994 | # FIXME: do we really want to maintain this feature? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8995 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8996 | ac_sed_extra="$ac_vpsub |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8997 | $extrasub |
| 8998 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8999 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9000 | :t |
| 9001 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9002 | s|@configure_input@|$ac_sed_conf_input|;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9003 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9004 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9005 | s&@srcdir@&$ac_srcdir&;t t |
| 9006 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 9007 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 9008 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 9009 | s&@builddir@&$ac_builddir&;t t |
| 9010 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 9011 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 9012 | s&@INSTALL@&$ac_INSTALL&;t t |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 9013 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9014 | $ac_datarootdir_hack |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9015 | " |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9016 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 9017 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9018 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9019 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9020 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 9021 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 9022 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9024 | which seems to be undefined. Please make sure it is defined" >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9025 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9026 | which seems to be undefined. Please make sure it is defined" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9027 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9028 | rm -f "$ac_tmp/stdin" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9029 | case $ac_file in |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9030 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 9031 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9032 | esac \ |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9033 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9034 | ;; |
| 9035 | :H) |
| 9036 | # |
| 9037 | # CONFIG_HEADER |
| 9038 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9039 | if test x"$ac_file" != x-; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9040 | { |
| 9041 | $as_echo "/* $configure_input */" \ |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9042 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 9043 | } >"$ac_tmp/config.h" \ |
| 9044 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 9045 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9046 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 9047 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9048 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9049 | rm -f "$ac_file" |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9050 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 9051 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9052 | fi |
| 9053 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9054 | $as_echo "/* $configure_input */" \ |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9055 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 9056 | || as_fn_error $? "could not create -" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9057 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9058 | # Compute "$ac_file"'s index in $config_headers. |
| 9059 | _am_arg="$ac_file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9060 | _am_stamp_count=1 |
| 9061 | for _am_header in $config_headers :; do |
| 9062 | case $_am_header in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9063 | $_am_arg | $_am_arg:* ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9064 | break ;; |
| 9065 | * ) |
| 9066 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 9067 | esac |
| 9068 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9069 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 9070 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9071 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 9072 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 9073 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 9074 | $as_echo X"$_am_arg" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9075 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 9076 | s//\1/ |
| 9077 | q |
| 9078 | } |
| 9079 | /^X\(\/\/\)[^/].*/{ |
| 9080 | s//\1/ |
| 9081 | q |
| 9082 | } |
| 9083 | /^X\(\/\/\)$/{ |
| 9084 | s//\1/ |
| 9085 | q |
| 9086 | } |
| 9087 | /^X\(\/\).*/{ |
| 9088 | s//\1/ |
| 9089 | q |
| 9090 | } |
| 9091 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 9092 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9093 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9094 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 9095 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9096 | ;; |
| 9097 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9098 | |
| 9099 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9100 | case $ac_file$ac_mode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9101 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9102 | # Older Autoconf quotes --file arguments for eval, but not when files |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9103 | # are listed without --file. Let's play safe and only enable the eval |
| 9104 | # if we detect the quoting. |
| 9105 | case $CONFIG_FILES in |
| 9106 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 9107 | *) set x $CONFIG_FILES ;; |
| 9108 | esac |
| 9109 | shift |
| 9110 | for mf |
| 9111 | do |
| 9112 | # Strip MF so we end up with the name of the file. |
| 9113 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 9114 | # Check whether this is an Automake generated Makefile or not. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9115 | # We used to match only the files named 'Makefile.in', but |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9116 | # some people rename them; so instead we look at the file content. |
| 9117 | # Grep'ing the first line is not enough: some people post-process |
| 9118 | # each Makefile.in and add a new line on top of each file to say so. |
| 9119 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 9120 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 9121 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 9122 | dirpart=`$as_dirname -- "$mf" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9123 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9124 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 9125 | X"$mf" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9126 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9127 | $as_echo X"$mf" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9128 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 9129 | s//\1/ |
| 9130 | q |
| 9131 | } |
| 9132 | /^X\(\/\/\)[^/].*/{ |
| 9133 | s//\1/ |
| 9134 | q |
| 9135 | } |
| 9136 | /^X\(\/\/\)$/{ |
| 9137 | s//\1/ |
| 9138 | q |
| 9139 | } |
| 9140 | /^X\(\/\).*/{ |
| 9141 | s//\1/ |
| 9142 | q |
| 9143 | } |
| 9144 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9145 | else |
| 9146 | continue |
| 9147 | fi |
| 9148 | # Extract the definition of DEPDIR, am__include, and am__quote |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9149 | # from the Makefile without running 'make'. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9150 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 9151 | test -z "$DEPDIR" && continue |
| 9152 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9153 | test -z "$am__include" && continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9154 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9155 | # Find all dependency output files, they are included files with |
| 9156 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 9157 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 9158 | # expansion. |
| 9159 | for file in `sed -n " |
| 9160 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9161 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9162 | # Make sure the directory exists. |
| 9163 | test -f "$dirpart/$file" && continue |
| 9164 | fdir=`$as_dirname -- "$file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9165 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9166 | X"$file" : 'X\(//\)[^/]' \| \ |
| 9167 | X"$file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9168 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9169 | $as_echo X"$file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9170 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 9171 | s//\1/ |
| 9172 | q |
| 9173 | } |
| 9174 | /^X\(\/\/\)[^/].*/{ |
| 9175 | s//\1/ |
| 9176 | q |
| 9177 | } |
| 9178 | /^X\(\/\/\)$/{ |
| 9179 | s//\1/ |
| 9180 | q |
| 9181 | } |
| 9182 | /^X\(\/\).*/{ |
| 9183 | s//\1/ |
| 9184 | q |
| 9185 | } |
| 9186 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9187 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 9188 | # echo "creating $dirpart/$file" |
| 9189 | echo '# dummy' > "$dirpart/$file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9190 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9191 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9192 | } |
| 9193 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9194 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9195 | esac |
| 9196 | done # for ac_tag |
| 9197 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9198 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9199 | as_fn_exit 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9200 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9201 | ac_clean_files=$ac_clean_files_save |
| 9202 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9203 | test $ac_write_fail = 0 || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9204 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9205 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9206 | |
| 9207 | # configure is writing to config.log, and then calls config.status. |
| 9208 | # config.status does its own redirection, appending to config.log. |
| 9209 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 9210 | # by configure, so config.status won't be able to write to it; its |
| 9211 | # output is simply discarded. So we exec the FD to /dev/null, |
| 9212 | # effectively closing config.log, so it can be properly (re)opened and |
| 9213 | # appended to by config.status. When coming back to configure, we |
| 9214 | # need to make the FD available again. |
| 9215 | if test "$no_create" != yes; then |
| 9216 | ac_cs_success=: |
| 9217 | ac_config_status_args= |
| 9218 | test "$silent" = yes && |
| 9219 | ac_config_status_args="$ac_config_status_args --quiet" |
| 9220 | exec 5>/dev/null |
| 9221 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 9222 | exec 5>>config.log |
| 9223 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 9224 | # would make configure fail if this is the last instruction. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9225 | $ac_cs_success || as_fn_exit 1 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9226 | fi |
| 9227 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 9228 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 9229 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9230 | fi |
| 9231 | |