bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.65 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 | # |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 10 | # Inc. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 11 | # |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13 | # This configure script is free software; the Free Software Foundation |
| 14 | # gives unlimited permission to copy, distribute and modify it. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15 | ## -------------------- ## |
| 16 | ## M4sh Initialization. ## |
| 17 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 19 | # Be more Bourne compatible |
| 20 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 22 | emulate sh |
| 23 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 25 | # is contrary to our usage. Disable this feature. |
| 26 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 27 | setopt NO_GLOB_SUBST |
| 28 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 29 | case `(set -o) 2>/dev/null` in #( |
| 30 | *posix*) : |
| 31 | set -o posix ;; #( |
| 32 | *) : |
| 33 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 34 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 35 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 36 | |
| 37 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 38 | as_nl=' |
| 39 | ' |
| 40 | export as_nl |
| 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 46 | # but without wasting forks for bash or zsh. |
| 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 49 | as_echo='print -r --' |
| 50 | as_echo_n='print -rn --' |
| 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 52 | as_echo='printf %s\n' |
| 53 | as_echo_n='printf %s' |
| 54 | else |
| 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 57 | as_echo_n='/usr/ucb/echo -n' |
| 58 | else |
| 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 60 | as_echo_n_body='eval |
| 61 | arg=$1; |
| 62 | case $arg in #( |
| 63 | *"$as_nl"*) |
| 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 66 | esac; |
| 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 68 | ' |
| 69 | export as_echo_n_body |
| 70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 71 | fi |
| 72 | export as_echo_body |
| 73 | as_echo='sh -c $as_echo_body as_echo' |
| 74 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 75 | |
| 76 | # The user is always right. |
| 77 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 78 | PATH_SEPARATOR=: |
| 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 81 | PATH_SEPARATOR=';' |
| 82 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 83 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 84 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 85 | |
| 86 | # IFS |
| 87 | # We need space, tab and new line, in precisely that order. Quoting is |
| 88 | # there to prevent editors from complaining about space-tab. |
| 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 90 | # splitting by setting IFS to empty value.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 91 | IFS=" "" $as_nl" |
| 92 | |
| 93 | # Find who we are. Look in the path if we contain no directory separator. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 94 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 95 | *[\\/]* ) as_myself=$0 ;; |
| 96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 97 | for as_dir in $PATH |
| 98 | do |
| 99 | IFS=$as_save_IFS |
| 100 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 102 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 103 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 104 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 105 | ;; |
| 106 | esac |
| 107 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 108 | # in which case we are not to be found in the path. |
| 109 | if test "x$as_myself" = x; then |
| 110 | as_myself=$0 |
| 111 | fi |
| 112 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 114 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 115 | fi |
| 116 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 117 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 119 | # suppresses any "Segmentation fault" message there. '((' could |
| 120 | # trigger a bug in pdksh 5.2.14. |
| 121 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 122 | do eval test x\${$as_var+set} = xset \ |
| 123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 124 | done |
| 125 | PS1='$ ' |
| 126 | PS2='> ' |
| 127 | PS4='+ ' |
| 128 | |
| 129 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 130 | LC_ALL=C |
| 131 | export LC_ALL |
| 132 | LANGUAGE=C |
| 133 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 134 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 135 | # CDPATH. |
| 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 137 | |
| 138 | if test "x$CONFIG_SHELL" = x; then |
| 139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 140 | emulate sh |
| 141 | NULLCMD=: |
| 142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 143 | # is contrary to our usage. Disable this feature. |
| 144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 145 | setopt NO_GLOB_SUBST |
| 146 | else |
| 147 | case \`(set -o) 2>/dev/null\` in #( |
| 148 | *posix*) : |
| 149 | set -o posix ;; #( |
| 150 | *) : |
| 151 | ;; |
| 152 | esac |
| 153 | fi |
| 154 | " |
| 155 | as_required="as_fn_return () { (exit \$1); } |
| 156 | as_fn_success () { as_fn_return 0; } |
| 157 | as_fn_failure () { as_fn_return 1; } |
| 158 | as_fn_ret_success () { return 0; } |
| 159 | as_fn_ret_failure () { return 1; } |
| 160 | |
| 161 | exitcode=0 |
| 162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 167 | |
| 168 | else |
| 169 | exitcode=1; echo positional parameters were not saved. |
| 170 | fi |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 171 | test x\$exitcode = x0 || exit 1" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 176 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 177 | if (eval "$as_required") 2>/dev/null; then : |
| 178 | as_have_required=yes |
| 179 | else |
| 180 | as_have_required=no |
| 181 | fi |
| 182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 183 | |
| 184 | else |
| 185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 186 | as_found=false |
| 187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 188 | do |
| 189 | IFS=$as_save_IFS |
| 190 | test -z "$as_dir" && as_dir=. |
| 191 | as_found=: |
| 192 | case $as_dir in #( |
| 193 | /*) |
| 194 | for as_base in sh bash ksh sh5; do |
| 195 | # Try only shells that exist, to save several forks. |
| 196 | as_shell=$as_dir/$as_base |
| 197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 201 | break 2 |
| 202 | fi |
| 203 | fi |
| 204 | done;; |
| 205 | esac |
| 206 | as_found=false |
| 207 | done |
| 208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 210 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 211 | fi; } |
| 212 | IFS=$as_save_IFS |
| 213 | |
| 214 | |
| 215 | if test "x$CONFIG_SHELL" != x; then : |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 216 | # We cannot yet assume a decent shell, so we have to provide a |
| 217 | # neutralization value for shells without unset; and this also |
| 218 | # works around shells that cannot unset nonexistent variables. |
| 219 | BASH_ENV=/dev/null |
| 220 | ENV=/dev/null |
| 221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 222 | export CONFIG_SHELL |
| 223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 224 | fi |
| 225 | |
| 226 | if test x$as_have_required = xno; then : |
| 227 | $as_echo "$0: This script requires a shell more modern than all" |
| 228 | $as_echo "$0: the shells that I found on your system." |
| 229 | if test x${ZSH_VERSION+set} = xset ; then |
| 230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 232 | else |
| 233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 234 | $0: google-breakpad-dev@googlegroups.com about your system, |
| 235 | $0: including any error possibly output before this |
| 236 | $0: message. Then install a modern shell, or manually run |
| 237 | $0: the script under such a shell if you do have one." |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 238 | fi |
| 239 | exit 1 |
| 240 | fi |
| 241 | fi |
| 242 | fi |
| 243 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 244 | export SHELL |
| 245 | # Unset more variables known to interfere with behavior of common tools. |
| 246 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 247 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 248 | |
| 249 | ## --------------------- ## |
| 250 | ## M4sh Shell Functions. ## |
| 251 | ## --------------------- ## |
| 252 | # as_fn_unset VAR |
| 253 | # --------------- |
| 254 | # Portably unset VAR. |
| 255 | as_fn_unset () |
| 256 | { |
| 257 | { eval $1=; unset $1;} |
| 258 | } |
| 259 | as_unset=as_fn_unset |
| 260 | |
| 261 | # as_fn_set_status STATUS |
| 262 | # ----------------------- |
| 263 | # Set $? to STATUS, without forking. |
| 264 | as_fn_set_status () |
| 265 | { |
| 266 | return $1 |
| 267 | } # as_fn_set_status |
| 268 | |
| 269 | # as_fn_exit STATUS |
| 270 | # ----------------- |
| 271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 272 | as_fn_exit () |
| 273 | { |
| 274 | set +e |
| 275 | as_fn_set_status $1 |
| 276 | exit $1 |
| 277 | } # as_fn_exit |
| 278 | |
| 279 | # as_fn_mkdir_p |
| 280 | # ------------- |
| 281 | # Create "$as_dir" as a directory, including parents if necessary. |
| 282 | as_fn_mkdir_p () |
| 283 | { |
| 284 | |
| 285 | case $as_dir in #( |
| 286 | -*) as_dir=./$as_dir;; |
| 287 | esac |
| 288 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 289 | as_dirs= |
| 290 | while :; do |
| 291 | case $as_dir in #( |
| 292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 293 | *) as_qdir=$as_dir;; |
| 294 | esac |
| 295 | as_dirs="'$as_qdir' $as_dirs" |
| 296 | as_dir=`$as_dirname -- "$as_dir" || |
| 297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 298 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 299 | X"$as_dir" : 'X\(//\)$' \| \ |
| 300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 301 | $as_echo X"$as_dir" | |
| 302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 303 | s//\1/ |
| 304 | q |
| 305 | } |
| 306 | /^X\(\/\/\)[^/].*/{ |
| 307 | s//\1/ |
| 308 | q |
| 309 | } |
| 310 | /^X\(\/\/\)$/{ |
| 311 | s//\1/ |
| 312 | q |
| 313 | } |
| 314 | /^X\(\/\).*/{ |
| 315 | s//\1/ |
| 316 | q |
| 317 | } |
| 318 | s/.*/./; q'` |
| 319 | test -d "$as_dir" && break |
| 320 | done |
| 321 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 322 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 323 | |
| 324 | |
| 325 | } # as_fn_mkdir_p |
| 326 | # as_fn_append VAR VALUE |
| 327 | # ---------------------- |
| 328 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 329 | # advantage of any shell optimizations that allow amortized linear growth over |
| 330 | # repeated appends, instead of the typical quadratic growth present in naive |
| 331 | # implementations. |
| 332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 333 | eval 'as_fn_append () |
| 334 | { |
| 335 | eval $1+=\$2 |
| 336 | }' |
| 337 | else |
| 338 | as_fn_append () |
| 339 | { |
| 340 | eval $1=\$$1\$2 |
| 341 | } |
| 342 | fi # as_fn_append |
| 343 | |
| 344 | # as_fn_arith ARG... |
| 345 | # ------------------ |
| 346 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 348 | # must be portable across $(()) and expr. |
| 349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 350 | eval 'as_fn_arith () |
| 351 | { |
| 352 | as_val=$(( $* )) |
| 353 | }' |
| 354 | else |
| 355 | as_fn_arith () |
| 356 | { |
| 357 | as_val=`expr "$@" || test $? -eq 1` |
| 358 | } |
| 359 | fi # as_fn_arith |
| 360 | |
| 361 | |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 362 | # as_fn_error ERROR [LINENO LOG_FD] |
| 363 | # --------------------------------- |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 366 | # script with status $?, using 1 if that was 0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 367 | as_fn_error () |
| 368 | { |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 369 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 370 | if test "$3"; then |
| 371 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 373 | fi |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 374 | $as_echo "$as_me: error: $1" >&2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 375 | as_fn_exit $as_status |
| 376 | } # as_fn_error |
| 377 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 378 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 380 | as_expr=expr |
| 381 | else |
| 382 | as_expr=false |
| 383 | fi |
| 384 | |
| 385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 386 | as_basename=basename |
| 387 | else |
| 388 | as_basename=false |
| 389 | fi |
| 390 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 392 | as_dirname=dirname |
| 393 | else |
| 394 | as_dirname=false |
| 395 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 396 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 397 | as_me=`$as_basename -- "$0" || |
| 398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 399 | X"$0" : 'X\(//\)$' \| \ |
| 400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 401 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 403 | s//\1/ |
| 404 | q |
| 405 | } |
| 406 | /^X\/\(\/\/\)$/{ |
| 407 | s//\1/ |
| 408 | q |
| 409 | } |
| 410 | /^X\/\(\/\).*/{ |
| 411 | s//\1/ |
| 412 | q |
| 413 | } |
| 414 | s/.*/./; q'` |
| 415 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 416 | # Avoid depending upon Character Ranges. |
| 417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 420 | as_cr_digits='0123456789' |
| 421 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 422 | |
| 423 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 429 | sed -n ' |
| 430 | p |
| 431 | /[$]LINENO/= |
| 432 | ' <$as_myself | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 433 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 434 | s/[$]LINENO.*/&-/ |
| 435 | t lineno |
| 436 | b |
| 437 | :lineno |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 438 | N |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 439 | :loop |
| 440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 441 | t loop |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 442 | s/-\n.*// |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 443 | ' >$as_me.lineno && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 444 | chmod +x "$as_me.lineno" || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 445 | { $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] | 446 | |
| 447 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 448 | # (the dirname of $[0] is not the place where we might find the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 449 | # original and so on. Autoconf is especially sensitive to this). |
| 450 | . "./$as_me.lineno" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 451 | # Exit status is that of the last command. |
| 452 | exit |
| 453 | } |
| 454 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 455 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 456 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 457 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 458 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 460 | xy) ECHO_C='\c';; |
| 461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 462 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 463 | esac;; |
| 464 | *) |
| 465 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 466 | esac |
| 467 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 468 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 469 | if test -d conf$$.dir; then |
| 470 | rm -f conf$$.dir/conf$$.file |
| 471 | else |
| 472 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 473 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 474 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 475 | if (echo >conf$$.file) 2>/dev/null; then |
| 476 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 477 | as_ln_s='ln -s' |
| 478 | # ... but there are two gotchas: |
| 479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 481 | # In both cases, we have to default to `cp -p'. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 483 | as_ln_s='cp -p' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 484 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 485 | as_ln_s=ln |
| 486 | else |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 487 | as_ln_s='cp -p' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 488 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 489 | else |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 490 | as_ln_s='cp -p' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 491 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 493 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 494 | |
| 495 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 496 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 497 | else |
| 498 | test -d ./-p && rmdir ./-p |
| 499 | as_mkdir_p=false |
| 500 | fi |
| 501 | |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 502 | if test -x / >/dev/null 2>&1; then |
| 503 | as_test_x='test -x' |
| 504 | else |
| 505 | if ls -dL / >/dev/null 2>&1; then |
| 506 | as_ls_L_option=L |
| 507 | else |
| 508 | as_ls_L_option= |
| 509 | fi |
| 510 | as_test_x=' |
| 511 | eval sh -c '\'' |
| 512 | if test -d "$1"; then |
| 513 | test -d "$1/."; |
| 514 | else |
| 515 | case $1 in #( |
| 516 | -*)set "./$1";; |
| 517 | esac; |
| 518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 519 | ???[sx]*):;;*)false;;esac;fi |
| 520 | '\'' sh |
| 521 | ' |
| 522 | fi |
| 523 | as_executable_p=$as_test_x |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 524 | |
| 525 | # Sed expression to map a string onto a valid CPP name. |
| 526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 527 | |
| 528 | # Sed expression to map a string onto a valid variable name. |
| 529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 530 | |
| 531 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 532 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 533 | exec 6>&1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 534 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 535 | # Name of the host. |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 536 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 537 | # so uname gets run too. |
| 538 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 539 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 540 | # |
| 541 | # Initializations. |
| 542 | # |
| 543 | ac_default_prefix=/usr/local |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 544 | ac_clean_files= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 545 | ac_config_libobj_dir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 546 | LIBOBJS= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 547 | cross_compiling=no |
| 548 | subdirs= |
| 549 | MFLAGS= |
| 550 | MAKEFLAGS= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 551 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 552 | # Identity of this package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 553 | PACKAGE_NAME='breakpad' |
| 554 | PACKAGE_TARNAME='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 555 | PACKAGE_VERSION='0.1' |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 556 | PACKAGE_STRING='breakpad 0.1' |
thestig@chromium.org | 43e6db7 | 2010-11-08 19:49:41 +0000 | [diff] [blame] | 557 | PACKAGE_BUGREPORT='google-breakpad-dev@googlegroups.com' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 558 | PACKAGE_URL='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 559 | |
| 560 | ac_unique_file="README" |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 561 | # Factoring default headers for most tests. |
| 562 | ac_includes_default="\ |
| 563 | #include <stdio.h> |
| 564 | #ifdef HAVE_SYS_TYPES_H |
| 565 | # include <sys/types.h> |
| 566 | #endif |
| 567 | #ifdef HAVE_SYS_STAT_H |
| 568 | # include <sys/stat.h> |
| 569 | #endif |
| 570 | #ifdef STDC_HEADERS |
| 571 | # include <stdlib.h> |
| 572 | # include <stddef.h> |
| 573 | #else |
| 574 | # ifdef HAVE_STDLIB_H |
| 575 | # include <stdlib.h> |
| 576 | # endif |
| 577 | #endif |
| 578 | #ifdef HAVE_STRING_H |
| 579 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 580 | # include <memory.h> |
| 581 | # endif |
| 582 | # include <string.h> |
| 583 | #endif |
| 584 | #ifdef HAVE_STRINGS_H |
| 585 | # include <strings.h> |
| 586 | #endif |
| 587 | #ifdef HAVE_INTTYPES_H |
| 588 | # include <inttypes.h> |
| 589 | #endif |
| 590 | #ifdef HAVE_STDINT_H |
| 591 | # include <stdint.h> |
| 592 | #endif |
| 593 | #ifdef HAVE_UNISTD_H |
| 594 | # include <unistd.h> |
| 595 | #endif" |
| 596 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 597 | ac_subst_vars='am__EXEEXT_FALSE |
| 598 | am__EXEEXT_TRUE |
| 599 | LTLIBOBJS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 600 | LIBOBJS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 601 | SELFTEST_FALSE |
| 602 | SELFTEST_TRUE |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 603 | DISABLE_TOOLS_FALSE |
| 604 | DISABLE_TOOLS_TRUE |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 605 | DISABLE_PROCESSOR_FALSE |
| 606 | DISABLE_PROCESSOR_TRUE |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 607 | ANDROID_HOST_FALSE |
| 608 | ANDROID_HOST_TRUE |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 609 | LINUX_HOST_FALSE |
| 610 | LINUX_HOST_TRUE |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 611 | PTHREAD_CFLAGS |
| 612 | PTHREAD_LIBS |
| 613 | PTHREAD_CC |
| 614 | ax_pthread_config |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 615 | EGREP |
| 616 | GREP |
ivan.penkov@gmail.com | 5f6e1f0 | 2012-07-02 22:55:57 +0000 | [diff] [blame] | 617 | GCC_FALSE |
| 618 | GCC_TRUE |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 619 | RANLIB |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 620 | am__fastdepCXX_FALSE |
| 621 | am__fastdepCXX_TRUE |
| 622 | CXXDEPMODE |
| 623 | ac_ct_CXX |
| 624 | CXXFLAGS |
| 625 | CXX |
| 626 | CPP |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 627 | am__fastdepCCAS_FALSE |
| 628 | am__fastdepCCAS_TRUE |
| 629 | CCASDEPMODE |
| 630 | CCASFLAGS |
| 631 | CCAS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 632 | am__fastdepCC_FALSE |
| 633 | am__fastdepCC_TRUE |
| 634 | CCDEPMODE |
| 635 | AMDEPBACKSLASH |
| 636 | AMDEP_FALSE |
| 637 | AMDEP_TRUE |
| 638 | am__quote |
| 639 | am__include |
| 640 | DEPDIR |
| 641 | OBJEXT |
| 642 | EXEEXT |
| 643 | ac_ct_CC |
| 644 | CPPFLAGS |
| 645 | LDFLAGS |
| 646 | CFLAGS |
| 647 | CC |
| 648 | am__untar |
| 649 | am__tar |
| 650 | AMTAR |
| 651 | am__leading_dot |
| 652 | SET_MAKE |
| 653 | AWK |
| 654 | mkdir_p |
| 655 | MKDIR_P |
| 656 | INSTALL_STRIP_PROGRAM |
| 657 | STRIP |
| 658 | install_sh |
| 659 | MAKEINFO |
| 660 | AUTOHEADER |
| 661 | AUTOMAKE |
| 662 | AUTOCONF |
| 663 | ACLOCAL |
| 664 | VERSION |
| 665 | PACKAGE |
| 666 | CYGPATH_W |
| 667 | am__isrc |
| 668 | INSTALL_DATA |
| 669 | INSTALL_SCRIPT |
| 670 | INSTALL_PROGRAM |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 671 | host_os |
| 672 | host_vendor |
| 673 | host_cpu |
| 674 | host |
| 675 | build_os |
| 676 | build_vendor |
| 677 | build_cpu |
| 678 | build |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 679 | target_alias |
| 680 | host_alias |
| 681 | build_alias |
| 682 | LIBS |
| 683 | ECHO_T |
| 684 | ECHO_N |
| 685 | ECHO_C |
| 686 | DEFS |
| 687 | mandir |
| 688 | localedir |
| 689 | libdir |
| 690 | psdir |
| 691 | pdfdir |
| 692 | dvidir |
| 693 | htmldir |
| 694 | infodir |
| 695 | docdir |
| 696 | oldincludedir |
| 697 | includedir |
| 698 | localstatedir |
| 699 | sharedstatedir |
| 700 | sysconfdir |
| 701 | datadir |
| 702 | datarootdir |
| 703 | libexecdir |
| 704 | sbindir |
| 705 | bindir |
| 706 | program_transform_name |
| 707 | prefix |
| 708 | exec_prefix |
| 709 | PACKAGE_URL |
| 710 | PACKAGE_BUGREPORT |
| 711 | PACKAGE_STRING |
| 712 | PACKAGE_VERSION |
| 713 | PACKAGE_TARNAME |
| 714 | PACKAGE_NAME |
| 715 | PATH_SEPARATOR |
| 716 | SHELL' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 717 | ac_subst_files='' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 718 | ac_user_opts=' |
| 719 | enable_option_checking |
| 720 | enable_dependency_tracking |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 721 | enable_m32 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 722 | enable_processor |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 723 | enable_tools |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 724 | enable_selftest |
| 725 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 726 | ac_precious_vars='build_alias |
| 727 | host_alias |
| 728 | target_alias |
| 729 | CC |
| 730 | CFLAGS |
| 731 | LDFLAGS |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 732 | LIBS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 733 | CPPFLAGS |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 734 | CCAS |
| 735 | CCASFLAGS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 736 | CPP |
| 737 | CXX |
| 738 | CXXFLAGS |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 739 | CCC' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 740 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 741 | |
| 742 | # Initialize some variables set by options. |
| 743 | ac_init_help= |
| 744 | ac_init_version=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 745 | ac_unrecognized_opts= |
| 746 | ac_unrecognized_sep= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 747 | # The variables have the same names as the options, with |
| 748 | # dashes changed to underlines. |
| 749 | cache_file=/dev/null |
| 750 | exec_prefix=NONE |
| 751 | no_create= |
| 752 | no_recursion= |
| 753 | prefix=NONE |
| 754 | program_prefix=NONE |
| 755 | program_suffix=NONE |
| 756 | program_transform_name=s,x,x, |
| 757 | silent= |
| 758 | site= |
| 759 | srcdir= |
| 760 | verbose= |
| 761 | x_includes=NONE |
| 762 | x_libraries=NONE |
| 763 | |
| 764 | # Installation directory options. |
| 765 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 766 | # and all the variables that are supposed to be based on exec_prefix |
| 767 | # by default will actually change. |
| 768 | # Use braces instead of parens because sh, perl, etc. also accept them. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 769 | # (The list follows the same order as the GNU Coding Standards.) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 770 | bindir='${exec_prefix}/bin' |
| 771 | sbindir='${exec_prefix}/sbin' |
| 772 | libexecdir='${exec_prefix}/libexec' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 773 | datarootdir='${prefix}/share' |
| 774 | datadir='${datarootdir}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 775 | sysconfdir='${prefix}/etc' |
| 776 | sharedstatedir='${prefix}/com' |
| 777 | localstatedir='${prefix}/var' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 778 | includedir='${prefix}/include' |
| 779 | oldincludedir='/usr/include' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 780 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 781 | infodir='${datarootdir}/info' |
| 782 | htmldir='${docdir}' |
| 783 | dvidir='${docdir}' |
| 784 | pdfdir='${docdir}' |
| 785 | psdir='${docdir}' |
| 786 | libdir='${exec_prefix}/lib' |
| 787 | localedir='${datarootdir}/locale' |
| 788 | mandir='${datarootdir}/man' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 789 | |
| 790 | ac_prev= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 791 | ac_dashdash= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 792 | for ac_option |
| 793 | do |
| 794 | # If the previous option needs an argument, assign it. |
| 795 | if test -n "$ac_prev"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 796 | eval $ac_prev=\$ac_option |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 797 | ac_prev= |
| 798 | continue |
| 799 | fi |
| 800 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 801 | case $ac_option in |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 802 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 803 | *) ac_optarg=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 804 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 805 | |
| 806 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 807 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 808 | case $ac_dashdash$ac_option in |
| 809 | --) |
| 810 | ac_dashdash=yes ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 811 | |
| 812 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 813 | ac_prev=bindir ;; |
| 814 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 815 | bindir=$ac_optarg ;; |
| 816 | |
| 817 | -build | --build | --buil | --bui | --bu) |
| 818 | ac_prev=build_alias ;; |
| 819 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 820 | build_alias=$ac_optarg ;; |
| 821 | |
| 822 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 823 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 824 | ac_prev=cache_file ;; |
| 825 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 826 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 827 | cache_file=$ac_optarg ;; |
| 828 | |
| 829 | --config-cache | -C) |
| 830 | cache_file=config.cache ;; |
| 831 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 832 | -datadir | --datadir | --datadi | --datad) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 833 | ac_prev=datadir ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 834 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 835 | datadir=$ac_optarg ;; |
| 836 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 837 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 838 | | --dataroo | --dataro | --datar) |
| 839 | ac_prev=datarootdir ;; |
| 840 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 841 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 842 | datarootdir=$ac_optarg ;; |
| 843 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 844 | -disable-* | --disable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 845 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 846 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 847 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 848 | as_fn_error "invalid feature name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 849 | ac_useropt_orig=$ac_useropt |
| 850 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 851 | case $ac_user_opts in |
| 852 | *" |
| 853 | "enable_$ac_useropt" |
| 854 | "*) ;; |
| 855 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 856 | ac_unrecognized_sep=', ';; |
| 857 | esac |
| 858 | eval enable_$ac_useropt=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 859 | |
| 860 | -docdir | --docdir | --docdi | --doc | --do) |
| 861 | ac_prev=docdir ;; |
| 862 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 863 | docdir=$ac_optarg ;; |
| 864 | |
| 865 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 866 | ac_prev=dvidir ;; |
| 867 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 868 | dvidir=$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 869 | |
| 870 | -enable-* | --enable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 871 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 872 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 873 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 874 | as_fn_error "invalid feature name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 875 | ac_useropt_orig=$ac_useropt |
| 876 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 877 | case $ac_user_opts in |
| 878 | *" |
| 879 | "enable_$ac_useropt" |
| 880 | "*) ;; |
| 881 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 882 | ac_unrecognized_sep=', ';; |
| 883 | esac |
| 884 | eval enable_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 885 | |
| 886 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 887 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 888 | | --exec | --exe | --ex) |
| 889 | ac_prev=exec_prefix ;; |
| 890 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 891 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 892 | | --exec=* | --exe=* | --ex=*) |
| 893 | exec_prefix=$ac_optarg ;; |
| 894 | |
| 895 | -gas | --gas | --ga | --g) |
| 896 | # Obsolete; use --with-gas. |
| 897 | with_gas=yes ;; |
| 898 | |
| 899 | -help | --help | --hel | --he | -h) |
| 900 | ac_init_help=long ;; |
| 901 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 902 | ac_init_help=recursive ;; |
| 903 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 904 | ac_init_help=short ;; |
| 905 | |
| 906 | -host | --host | --hos | --ho) |
| 907 | ac_prev=host_alias ;; |
| 908 | -host=* | --host=* | --hos=* | --ho=*) |
| 909 | host_alias=$ac_optarg ;; |
| 910 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 911 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 912 | ac_prev=htmldir ;; |
| 913 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 914 | | --ht=*) |
| 915 | htmldir=$ac_optarg ;; |
| 916 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 917 | -includedir | --includedir | --includedi | --included | --include \ |
| 918 | | --includ | --inclu | --incl | --inc) |
| 919 | ac_prev=includedir ;; |
| 920 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 921 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 922 | includedir=$ac_optarg ;; |
| 923 | |
| 924 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 925 | ac_prev=infodir ;; |
| 926 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 927 | infodir=$ac_optarg ;; |
| 928 | |
| 929 | -libdir | --libdir | --libdi | --libd) |
| 930 | ac_prev=libdir ;; |
| 931 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 932 | libdir=$ac_optarg ;; |
| 933 | |
| 934 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 935 | | --libexe | --libex | --libe) |
| 936 | ac_prev=libexecdir ;; |
| 937 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 938 | | --libexe=* | --libex=* | --libe=*) |
| 939 | libexecdir=$ac_optarg ;; |
| 940 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 941 | -localedir | --localedir | --localedi | --localed | --locale) |
| 942 | ac_prev=localedir ;; |
| 943 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 944 | localedir=$ac_optarg ;; |
| 945 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 946 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 947 | | --localstate | --localstat | --localsta | --localst | --locals) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 948 | ac_prev=localstatedir ;; |
| 949 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 950 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 951 | localstatedir=$ac_optarg ;; |
| 952 | |
| 953 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 954 | ac_prev=mandir ;; |
| 955 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 956 | mandir=$ac_optarg ;; |
| 957 | |
| 958 | -nfp | --nfp | --nf) |
| 959 | # Obsolete; use --without-fp. |
| 960 | with_fp=no ;; |
| 961 | |
| 962 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 963 | | --no-cr | --no-c | -n) |
| 964 | no_create=yes ;; |
| 965 | |
| 966 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 967 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 968 | no_recursion=yes ;; |
| 969 | |
| 970 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 971 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 972 | | --oldin | --oldi | --old | --ol | --o) |
| 973 | ac_prev=oldincludedir ;; |
| 974 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 975 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 976 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 977 | oldincludedir=$ac_optarg ;; |
| 978 | |
| 979 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 980 | ac_prev=prefix ;; |
| 981 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 982 | prefix=$ac_optarg ;; |
| 983 | |
| 984 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 985 | | --program-pre | --program-pr | --program-p) |
| 986 | ac_prev=program_prefix ;; |
| 987 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 988 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 989 | program_prefix=$ac_optarg ;; |
| 990 | |
| 991 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 992 | | --program-suf | --program-su | --program-s) |
| 993 | ac_prev=program_suffix ;; |
| 994 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 995 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 996 | program_suffix=$ac_optarg ;; |
| 997 | |
| 998 | -program-transform-name | --program-transform-name \ |
| 999 | | --program-transform-nam | --program-transform-na \ |
| 1000 | | --program-transform-n | --program-transform- \ |
| 1001 | | --program-transform | --program-transfor \ |
| 1002 | | --program-transfo | --program-transf \ |
| 1003 | | --program-trans | --program-tran \ |
| 1004 | | --progr-tra | --program-tr | --program-t) |
| 1005 | ac_prev=program_transform_name ;; |
| 1006 | -program-transform-name=* | --program-transform-name=* \ |
| 1007 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1008 | | --program-transform-n=* | --program-transform-=* \ |
| 1009 | | --program-transform=* | --program-transfor=* \ |
| 1010 | | --program-transfo=* | --program-transf=* \ |
| 1011 | | --program-trans=* | --program-tran=* \ |
| 1012 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1013 | program_transform_name=$ac_optarg ;; |
| 1014 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1015 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1016 | ac_prev=pdfdir ;; |
| 1017 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1018 | pdfdir=$ac_optarg ;; |
| 1019 | |
| 1020 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1021 | ac_prev=psdir ;; |
| 1022 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1023 | psdir=$ac_optarg ;; |
| 1024 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1025 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1026 | | -silent | --silent | --silen | --sile | --sil) |
| 1027 | silent=yes ;; |
| 1028 | |
| 1029 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1030 | ac_prev=sbindir ;; |
| 1031 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1032 | | --sbi=* | --sb=*) |
| 1033 | sbindir=$ac_optarg ;; |
| 1034 | |
| 1035 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1036 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1037 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1038 | | --sha | --sh) |
| 1039 | ac_prev=sharedstatedir ;; |
| 1040 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1041 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1042 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1043 | | --sha=* | --sh=*) |
| 1044 | sharedstatedir=$ac_optarg ;; |
| 1045 | |
| 1046 | -site | --site | --sit) |
| 1047 | ac_prev=site ;; |
| 1048 | -site=* | --site=* | --sit=*) |
| 1049 | site=$ac_optarg ;; |
| 1050 | |
| 1051 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1052 | ac_prev=srcdir ;; |
| 1053 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1054 | srcdir=$ac_optarg ;; |
| 1055 | |
| 1056 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1057 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1058 | ac_prev=sysconfdir ;; |
| 1059 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1060 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1061 | sysconfdir=$ac_optarg ;; |
| 1062 | |
| 1063 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1064 | ac_prev=target_alias ;; |
| 1065 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1066 | target_alias=$ac_optarg ;; |
| 1067 | |
| 1068 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1069 | verbose=yes ;; |
| 1070 | |
| 1071 | -version | --version | --versio | --versi | --vers | -V) |
| 1072 | ac_init_version=: ;; |
| 1073 | |
| 1074 | -with-* | --with-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1075 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1076 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1077 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1078 | as_fn_error "invalid package name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1079 | ac_useropt_orig=$ac_useropt |
| 1080 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1081 | case $ac_user_opts in |
| 1082 | *" |
| 1083 | "with_$ac_useropt" |
| 1084 | "*) ;; |
| 1085 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1086 | ac_unrecognized_sep=', ';; |
| 1087 | esac |
| 1088 | eval with_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1089 | |
| 1090 | -without-* | --without-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1091 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1092 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1093 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1094 | as_fn_error "invalid package name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1095 | ac_useropt_orig=$ac_useropt |
| 1096 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1097 | case $ac_user_opts in |
| 1098 | *" |
| 1099 | "with_$ac_useropt" |
| 1100 | "*) ;; |
| 1101 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1102 | ac_unrecognized_sep=', ';; |
| 1103 | esac |
| 1104 | eval with_$ac_useropt=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1105 | |
| 1106 | --x) |
| 1107 | # Obsolete; use --with-x. |
| 1108 | with_x=yes ;; |
| 1109 | |
| 1110 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1111 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1112 | ac_prev=x_includes ;; |
| 1113 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1114 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1115 | x_includes=$ac_optarg ;; |
| 1116 | |
| 1117 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1118 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1119 | ac_prev=x_libraries ;; |
| 1120 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1121 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1122 | x_libraries=$ac_optarg ;; |
| 1123 | |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1124 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1125 | Try \`$0 --help' for more information." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1126 | ;; |
| 1127 | |
| 1128 | *=*) |
| 1129 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1130 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1131 | case $ac_envvar in #( |
| 1132 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1133 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1134 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1135 | eval $ac_envvar=\$ac_optarg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1136 | export $ac_envvar ;; |
| 1137 | |
| 1138 | *) |
| 1139 | # FIXME: should be removed in autoconf 3.0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1140 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1141 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1142 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1143 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1144 | ;; |
| 1145 | |
| 1146 | esac |
| 1147 | done |
| 1148 | |
| 1149 | if test -n "$ac_prev"; then |
| 1150 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1151 | as_fn_error "missing argument to $ac_option" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1152 | fi |
| 1153 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1154 | if test -n "$ac_unrecognized_opts"; then |
| 1155 | case $enable_option_checking in |
| 1156 | no) ;; |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1157 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1158 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1159 | esac |
| 1160 | fi |
| 1161 | |
| 1162 | # Check all directory arguments for consistency. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1163 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1164 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1165 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1166 | libdir localedir mandir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1167 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1168 | eval ac_val=\$$ac_var |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1169 | # Remove trailing slashes. |
| 1170 | case $ac_val in |
| 1171 | */ ) |
| 1172 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1173 | eval $ac_var=\$ac_val;; |
| 1174 | esac |
| 1175 | # Be sure to have absolute directory names. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1176 | case $ac_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1177 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1178 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1179 | esac |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1180 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1181 | done |
| 1182 | |
| 1183 | # There might be people who depend on the old broken behavior: `$host' |
| 1184 | # used to hold the argument of --host etc. |
| 1185 | # FIXME: To remove some day. |
| 1186 | build=$build_alias |
| 1187 | host=$host_alias |
| 1188 | target=$target_alias |
| 1189 | |
| 1190 | # FIXME: To remove some day. |
| 1191 | if test "x$host_alias" != x; then |
| 1192 | if test "x$build_alias" = x; then |
| 1193 | cross_compiling=maybe |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1194 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1195 | If a cross compiler is detected then cross compile mode will be used." >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1196 | elif test "x$build_alias" != "x$host_alias"; then |
| 1197 | cross_compiling=yes |
| 1198 | fi |
| 1199 | fi |
| 1200 | |
| 1201 | ac_tool_prefix= |
| 1202 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1203 | |
| 1204 | test "$silent" = yes && exec 6>/dev/null |
| 1205 | |
| 1206 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1207 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1208 | ac_ls_di=`ls -di .` && |
| 1209 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1210 | as_fn_error "working directory cannot be determined" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1211 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1212 | as_fn_error "pwd does not report name of working directory" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1213 | |
| 1214 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1215 | # Find the source files, if location was not specified. |
| 1216 | if test -z "$srcdir"; then |
| 1217 | ac_srcdir_defaulted=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1218 | # Try the directory containing this script, then the parent directory. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1219 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1220 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1221 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1222 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1223 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1224 | $as_echo X"$as_myself" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1225 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1226 | s//\1/ |
| 1227 | q |
| 1228 | } |
| 1229 | /^X\(\/\/\)[^/].*/{ |
| 1230 | s//\1/ |
| 1231 | q |
| 1232 | } |
| 1233 | /^X\(\/\/\)$/{ |
| 1234 | s//\1/ |
| 1235 | q |
| 1236 | } |
| 1237 | /^X\(\/\).*/{ |
| 1238 | s//\1/ |
| 1239 | q |
| 1240 | } |
| 1241 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1242 | srcdir=$ac_confdir |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1243 | if test ! -r "$srcdir/$ac_unique_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1244 | srcdir=.. |
| 1245 | fi |
| 1246 | else |
| 1247 | ac_srcdir_defaulted=no |
| 1248 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1249 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1250 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1251 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1252 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1253 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1254 | ac_abs_confdir=`( |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1255 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1256 | pwd)` |
| 1257 | # When building in place, set srcdir=. |
| 1258 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1259 | srcdir=. |
| 1260 | fi |
| 1261 | # Remove unnecessary trailing slashes from srcdir. |
| 1262 | # Double slashes in file names in object file debugging info |
| 1263 | # mess up M-x gdb in Emacs. |
| 1264 | case $srcdir in |
| 1265 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1266 | esac |
| 1267 | for ac_var in $ac_precious_vars; do |
| 1268 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1269 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1270 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1271 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1272 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1273 | |
| 1274 | # |
| 1275 | # Report the --help message. |
| 1276 | # |
| 1277 | if test "$ac_init_help" = "long"; then |
| 1278 | # Omit some internal or obsolete options to make the list less imposing. |
| 1279 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1280 | cat <<_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1281 | \`configure' configures breakpad 0.1 to adapt to many kinds of systems. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1282 | |
| 1283 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1284 | |
| 1285 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1286 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1287 | |
| 1288 | Defaults for the options are specified in brackets. |
| 1289 | |
| 1290 | Configuration: |
| 1291 | -h, --help display this help and exit |
| 1292 | --help=short display options specific to this package |
| 1293 | --help=recursive display the short help of all the included packages |
| 1294 | -V, --version display version information and exit |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1295 | -q, --quiet, --silent do not print \`checking...' messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1296 | --cache-file=FILE cache test results in FILE [disabled] |
| 1297 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1298 | -n, --no-create do not create output files |
| 1299 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1300 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1301 | Installation directories: |
| 1302 | --prefix=PREFIX install architecture-independent files in PREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1303 | [$ac_default_prefix] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1304 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1305 | [PREFIX] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1306 | |
| 1307 | By default, \`make install' will install all the files in |
| 1308 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1309 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1310 | for instance \`--prefix=\$HOME'. |
| 1311 | |
| 1312 | For better control, use the options below. |
| 1313 | |
| 1314 | Fine tuning of the installation directories: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1315 | --bindir=DIR user executables [EPREFIX/bin] |
| 1316 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1317 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1318 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1319 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1320 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1321 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1322 | --includedir=DIR C header files [PREFIX/include] |
| 1323 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1324 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1325 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1326 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1327 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1328 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1329 | --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad] |
| 1330 | --htmldir=DIR html documentation [DOCDIR] |
| 1331 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1332 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1333 | --psdir=DIR ps documentation [DOCDIR] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1334 | _ACEOF |
| 1335 | |
| 1336 | cat <<\_ACEOF |
| 1337 | |
| 1338 | Program names: |
| 1339 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1340 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1341 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1342 | |
| 1343 | System types: |
| 1344 | --build=BUILD configure for building on BUILD [guessed] |
| 1345 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1346 | _ACEOF |
| 1347 | fi |
| 1348 | |
| 1349 | if test -n "$ac_init_help"; then |
| 1350 | case $ac_init_help in |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1351 | short | recursive ) echo "Configuration of breakpad 0.1:";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1352 | esac |
| 1353 | cat <<\_ACEOF |
| 1354 | |
| 1355 | Optional Features: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1356 | --disable-option-checking ignore unrecognized --enable/--with options |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1357 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1358 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1359 | --disable-dependency-tracking speeds up one-time build |
| 1360 | --enable-dependency-tracking do not reject slow dependency extractors |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 1361 | --enable-m32 Compile/build with -m32 (default is no) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1362 | --disable-processor Don't build processor library (default is no) |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1363 | --disable-tools Don't build tool binaries (default is no) |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 1364 | --enable-selftest Run extra tests with "make check" (may conflict with |
| 1365 | optimizations) (default is no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1366 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1367 | Some influential environment variables: |
| 1368 | CC C compiler command |
| 1369 | CFLAGS C compiler flags |
| 1370 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1371 | nonstandard directory <lib dir> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 1372 | LIBS libraries to pass to the linker, e.g. -l<library> |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1373 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1374 | you have headers in a nonstandard directory <include dir> |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 1375 | CCAS assembler compiler command (defaults to CC) |
| 1376 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1377 | CPP C preprocessor |
| 1378 | CXX C++ compiler command |
| 1379 | CXXFLAGS C++ compiler flags |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1380 | |
| 1381 | Use these variables to override the choices made by `configure' or to help |
| 1382 | it to find libraries and programs with nonstandard names/locations. |
| 1383 | |
thestig@chromium.org | 43e6db7 | 2010-11-08 19:49:41 +0000 | [diff] [blame] | 1384 | Report bugs to <google-breakpad-dev@googlegroups.com>. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1385 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1386 | ac_status=$? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1387 | fi |
| 1388 | |
| 1389 | if test "$ac_init_help" = "recursive"; then |
| 1390 | # If there are subdirs, report their specific --help. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1391 | 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] | 1392 | test -d "$ac_dir" || |
| 1393 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1394 | continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1395 | ac_builddir=. |
| 1396 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1397 | case "$ac_dir" in |
| 1398 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1399 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1400 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1401 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1402 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1403 | case $ac_top_builddir_sub in |
| 1404 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1405 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1406 | esac ;; |
| 1407 | esac |
| 1408 | ac_abs_top_builddir=$ac_pwd |
| 1409 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1410 | # for backward compatibility: |
| 1411 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1412 | |
| 1413 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1414 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1415 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1416 | ac_top_srcdir=$ac_top_builddir_sub |
| 1417 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1418 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1419 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1420 | ac_top_srcdir=$srcdir |
| 1421 | ac_abs_top_srcdir=$srcdir ;; |
| 1422 | *) # Relative name. |
| 1423 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1424 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1425 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1426 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1427 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1428 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1429 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1430 | # Check for guested configure. |
| 1431 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1432 | echo && |
| 1433 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1434 | elif test -f "$ac_srcdir/configure"; then |
| 1435 | echo && |
| 1436 | $SHELL "$ac_srcdir/configure" --help=recursive |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1437 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1438 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1439 | fi || ac_status=$? |
| 1440 | cd "$ac_pwd" || { ac_status=$?; break; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1441 | done |
| 1442 | fi |
| 1443 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1444 | test -n "$ac_init_help" && exit $ac_status |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1445 | if $ac_init_version; then |
| 1446 | cat <<\_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1447 | breakpad configure 0.1 |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1448 | generated by GNU Autoconf 2.65 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1449 | |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1450 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1451 | This configure script is free software; the Free Software Foundation |
| 1452 | gives unlimited permission to copy, distribute and modify it. |
| 1453 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1454 | exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1455 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1456 | |
| 1457 | ## ------------------------ ## |
| 1458 | ## Autoconf initialization. ## |
| 1459 | ## ------------------------ ## |
| 1460 | |
| 1461 | # ac_fn_c_try_compile LINENO |
| 1462 | # -------------------------- |
| 1463 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1464 | ac_fn_c_try_compile () |
| 1465 | { |
| 1466 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1467 | rm -f conftest.$ac_objext |
| 1468 | if { { ac_try="$ac_compile" |
| 1469 | case "(($ac_try" in |
| 1470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1471 | *) ac_try_echo=$ac_try;; |
| 1472 | esac |
| 1473 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1474 | $as_echo "$ac_try_echo"; } >&5 |
| 1475 | (eval "$ac_compile") 2>conftest.err |
| 1476 | ac_status=$? |
| 1477 | if test -s conftest.err; then |
| 1478 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1479 | cat conftest.er1 >&5 |
| 1480 | mv -f conftest.er1 conftest.err |
| 1481 | fi |
| 1482 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1483 | test $ac_status = 0; } && { |
| 1484 | test -z "$ac_c_werror_flag" || |
| 1485 | test ! -s conftest.err |
| 1486 | } && test -s conftest.$ac_objext; then : |
| 1487 | ac_retval=0 |
| 1488 | else |
| 1489 | $as_echo "$as_me: failed program was:" >&5 |
| 1490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1491 | |
| 1492 | ac_retval=1 |
| 1493 | fi |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1494 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1495 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1496 | |
| 1497 | } # ac_fn_c_try_compile |
| 1498 | |
| 1499 | # ac_fn_c_try_cpp LINENO |
| 1500 | # ---------------------- |
| 1501 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1502 | ac_fn_c_try_cpp () |
| 1503 | { |
| 1504 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1505 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1506 | case "(($ac_try" in |
| 1507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1508 | *) ac_try_echo=$ac_try;; |
| 1509 | esac |
| 1510 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1511 | $as_echo "$ac_try_echo"; } >&5 |
| 1512 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1513 | ac_status=$? |
| 1514 | if test -s conftest.err; then |
| 1515 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1516 | cat conftest.er1 >&5 |
| 1517 | mv -f conftest.er1 conftest.err |
| 1518 | fi |
| 1519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1520 | test $ac_status = 0; } >/dev/null && { |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1521 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1522 | test ! -s conftest.err |
| 1523 | }; then : |
| 1524 | ac_retval=0 |
| 1525 | else |
| 1526 | $as_echo "$as_me: failed program was:" >&5 |
| 1527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1528 | |
| 1529 | ac_retval=1 |
| 1530 | fi |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1531 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1532 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1533 | |
| 1534 | } # ac_fn_c_try_cpp |
| 1535 | |
| 1536 | # ac_fn_cxx_try_compile LINENO |
| 1537 | # ---------------------------- |
| 1538 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1539 | ac_fn_cxx_try_compile () |
| 1540 | { |
| 1541 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1542 | rm -f conftest.$ac_objext |
| 1543 | if { { ac_try="$ac_compile" |
| 1544 | case "(($ac_try" in |
| 1545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1546 | *) ac_try_echo=$ac_try;; |
| 1547 | esac |
| 1548 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1549 | $as_echo "$ac_try_echo"; } >&5 |
| 1550 | (eval "$ac_compile") 2>conftest.err |
| 1551 | ac_status=$? |
| 1552 | if test -s conftest.err; then |
| 1553 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1554 | cat conftest.er1 >&5 |
| 1555 | mv -f conftest.er1 conftest.err |
| 1556 | fi |
| 1557 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1558 | test $ac_status = 0; } && { |
| 1559 | test -z "$ac_cxx_werror_flag" || |
| 1560 | test ! -s conftest.err |
| 1561 | } && test -s conftest.$ac_objext; then : |
| 1562 | ac_retval=0 |
| 1563 | else |
| 1564 | $as_echo "$as_me: failed program was:" >&5 |
| 1565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1566 | |
| 1567 | ac_retval=1 |
| 1568 | fi |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1569 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1570 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1571 | |
| 1572 | } # ac_fn_cxx_try_compile |
| 1573 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 1574 | # ac_fn_c_try_run LINENO |
| 1575 | # ---------------------- |
| 1576 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1577 | # that executables *can* be run. |
| 1578 | ac_fn_c_try_run () |
| 1579 | { |
| 1580 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1581 | if { { ac_try="$ac_link" |
| 1582 | case "(($ac_try" in |
| 1583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1584 | *) ac_try_echo=$ac_try;; |
| 1585 | esac |
| 1586 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1587 | $as_echo "$ac_try_echo"; } >&5 |
| 1588 | (eval "$ac_link") 2>&5 |
| 1589 | ac_status=$? |
| 1590 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1591 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1592 | { { case "(($ac_try" in |
| 1593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1594 | *) ac_try_echo=$ac_try;; |
| 1595 | esac |
| 1596 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1597 | $as_echo "$ac_try_echo"; } >&5 |
| 1598 | (eval "$ac_try") 2>&5 |
| 1599 | ac_status=$? |
| 1600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1601 | test $ac_status = 0; }; }; then : |
| 1602 | ac_retval=0 |
| 1603 | else |
| 1604 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1605 | $as_echo "$as_me: failed program was:" >&5 |
| 1606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1607 | |
| 1608 | ac_retval=$ac_status |
| 1609 | fi |
| 1610 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1611 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 1612 | as_fn_set_status $ac_retval |
| 1613 | |
| 1614 | } # ac_fn_c_try_run |
| 1615 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1616 | # ac_fn_c_try_link LINENO |
| 1617 | # ----------------------- |
| 1618 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1619 | ac_fn_c_try_link () |
| 1620 | { |
| 1621 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1622 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1623 | if { { ac_try="$ac_link" |
| 1624 | case "(($ac_try" in |
| 1625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1626 | *) ac_try_echo=$ac_try;; |
| 1627 | esac |
| 1628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1629 | $as_echo "$ac_try_echo"; } >&5 |
| 1630 | (eval "$ac_link") 2>conftest.err |
| 1631 | ac_status=$? |
| 1632 | if test -s conftest.err; then |
| 1633 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1634 | cat conftest.er1 >&5 |
| 1635 | mv -f conftest.er1 conftest.err |
| 1636 | fi |
| 1637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1638 | test $ac_status = 0; } && { |
| 1639 | test -z "$ac_c_werror_flag" || |
| 1640 | test ! -s conftest.err |
| 1641 | } && test -s conftest$ac_exeext && { |
| 1642 | test "$cross_compiling" = yes || |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1643 | $as_test_x conftest$ac_exeext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1644 | }; then : |
| 1645 | ac_retval=0 |
| 1646 | else |
| 1647 | $as_echo "$as_me: failed program was:" >&5 |
| 1648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1649 | |
| 1650 | ac_retval=1 |
| 1651 | fi |
| 1652 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1653 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1654 | # interfere with the next link command; also delete a directory that is |
| 1655 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1656 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1657 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1658 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1659 | |
| 1660 | } # ac_fn_c_try_link |
| 1661 | |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1662 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1663 | # ------------------------------------------------------- |
| 1664 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1665 | # the include files in INCLUDES and setting the cache variable VAR |
| 1666 | # accordingly. |
| 1667 | ac_fn_c_check_header_mongrel () |
| 1668 | { |
| 1669 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1670 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1672 | $as_echo_n "checking for $2... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1673 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1674 | $as_echo_n "(cached) " >&6 |
| 1675 | fi |
| 1676 | eval ac_res=\$$3 |
| 1677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1678 | $as_echo "$ac_res" >&6; } |
| 1679 | else |
| 1680 | # Is the header compilable? |
| 1681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1682 | $as_echo_n "checking $2 usability... " >&6; } |
| 1683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1684 | /* end confdefs.h. */ |
| 1685 | $4 |
| 1686 | #include <$2> |
| 1687 | _ACEOF |
| 1688 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1689 | ac_header_compiler=yes |
| 1690 | else |
| 1691 | ac_header_compiler=no |
| 1692 | fi |
| 1693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1695 | $as_echo "$ac_header_compiler" >&6; } |
| 1696 | |
| 1697 | # Is the header present? |
| 1698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1699 | $as_echo_n "checking $2 presence... " >&6; } |
| 1700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1701 | /* end confdefs.h. */ |
| 1702 | #include <$2> |
| 1703 | _ACEOF |
| 1704 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1705 | ac_header_preproc=yes |
| 1706 | else |
| 1707 | ac_header_preproc=no |
| 1708 | fi |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1709 | rm -f conftest.err conftest.$ac_ext |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1711 | $as_echo "$ac_header_preproc" >&6; } |
| 1712 | |
| 1713 | # So? What about this header? |
| 1714 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1715 | yes:no: ) |
| 1716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1717 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1719 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1720 | ;; |
| 1721 | no:yes:* ) |
| 1722 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1723 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1725 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1727 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1729 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1731 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1732 | ( cat <<\_ASBOX |
| 1733 | ## --------------------------------------------------- ## |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1734 | ## Report this to google-breakpad-dev@googlegroups.com ## |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1735 | ## --------------------------------------------------- ## |
| 1736 | _ASBOX |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1737 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1738 | ;; |
| 1739 | esac |
| 1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1741 | $as_echo_n "checking for $2... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1742 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1743 | $as_echo_n "(cached) " >&6 |
| 1744 | else |
| 1745 | eval "$3=\$ac_header_compiler" |
| 1746 | fi |
| 1747 | eval ac_res=\$$3 |
| 1748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1749 | $as_echo "$ac_res" >&6; } |
| 1750 | fi |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1751 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1752 | |
| 1753 | } # ac_fn_c_check_header_mongrel |
| 1754 | |
| 1755 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1756 | # ------------------------------------------------------- |
| 1757 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1758 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1759 | ac_fn_c_check_header_compile () |
| 1760 | { |
| 1761 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1763 | $as_echo_n "checking for $2... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1764 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1765 | $as_echo_n "(cached) " >&6 |
| 1766 | else |
| 1767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1768 | /* end confdefs.h. */ |
| 1769 | $4 |
| 1770 | #include <$2> |
| 1771 | _ACEOF |
| 1772 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1773 | eval "$3=yes" |
| 1774 | else |
| 1775 | eval "$3=no" |
| 1776 | fi |
| 1777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1778 | fi |
| 1779 | eval ac_res=\$$3 |
| 1780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1781 | $as_echo "$ac_res" >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1782 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1783 | |
| 1784 | } # ac_fn_c_check_header_compile |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1785 | cat >config.log <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1786 | This file contains any messages produced by compilers while |
| 1787 | running configure, to aid debugging if configure makes a mistake. |
| 1788 | |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1789 | It was created by breakpad $as_me 0.1, which was |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1790 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1791 | |
| 1792 | $ $0 $@ |
| 1793 | |
| 1794 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1795 | exec 5>>config.log |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1796 | { |
| 1797 | cat <<_ASUNAME |
| 1798 | ## --------- ## |
| 1799 | ## Platform. ## |
| 1800 | ## --------- ## |
| 1801 | |
| 1802 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1803 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1804 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1805 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1806 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1807 | |
| 1808 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1809 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1810 | |
| 1811 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1812 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1813 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1814 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1815 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1816 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1817 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1818 | |
| 1819 | _ASUNAME |
| 1820 | |
| 1821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1822 | for as_dir in $PATH |
| 1823 | do |
| 1824 | IFS=$as_save_IFS |
| 1825 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1826 | $as_echo "PATH: $as_dir" |
| 1827 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1828 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1829 | |
| 1830 | } >&5 |
| 1831 | |
| 1832 | cat >&5 <<_ACEOF |
| 1833 | |
| 1834 | |
| 1835 | ## ----------- ## |
| 1836 | ## Core tests. ## |
| 1837 | ## ----------- ## |
| 1838 | |
| 1839 | _ACEOF |
| 1840 | |
| 1841 | |
| 1842 | # Keep a trace of the command line. |
| 1843 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1844 | # Strip out --silent because we don't want to record it for future runs. |
| 1845 | # Also quote any args containing shell meta-characters. |
| 1846 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1847 | ac_configure_args= |
| 1848 | ac_configure_args0= |
| 1849 | ac_configure_args1= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1850 | ac_must_keep_next=false |
| 1851 | for ac_pass in 1 2 |
| 1852 | do |
| 1853 | for ac_arg |
| 1854 | do |
| 1855 | case $ac_arg in |
| 1856 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1857 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1858 | | -silent | --silent | --silen | --sile | --sil) |
| 1859 | continue ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1860 | *\'*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1861 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1862 | esac |
| 1863 | case $ac_pass in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1864 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1865 | 2) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1866 | as_fn_append ac_configure_args1 " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1867 | if test $ac_must_keep_next = true; then |
| 1868 | ac_must_keep_next=false # Got value, back to normal. |
| 1869 | else |
| 1870 | case $ac_arg in |
| 1871 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1872 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1873 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1874 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1875 | case "$ac_configure_args0 " in |
| 1876 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1877 | esac |
| 1878 | ;; |
| 1879 | -* ) ac_must_keep_next=true ;; |
| 1880 | esac |
| 1881 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1882 | as_fn_append ac_configure_args " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1883 | ;; |
| 1884 | esac |
| 1885 | done |
| 1886 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1887 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1888 | { ac_configure_args1=; unset ac_configure_args1;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1889 | |
| 1890 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1891 | # config.log. We remove comments because anyway the quotes in there |
| 1892 | # would cause problems or look ugly. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1893 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1894 | # 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] | 1895 | trap 'exit_status=$? |
| 1896 | # Save into config.log some information that might help in debugging. |
| 1897 | { |
| 1898 | echo |
| 1899 | |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1900 | cat <<\_ASBOX |
| 1901 | ## ---------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1902 | ## Cache variables. ## |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1903 | ## ---------------- ## |
| 1904 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1905 | echo |
| 1906 | # The following way of writing the cache mishandles newlines in values, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1907 | ( |
| 1908 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1909 | eval ac_val=\$$ac_var |
| 1910 | case $ac_val in #( |
| 1911 | *${as_nl}*) |
| 1912 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1913 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1914 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1915 | esac |
| 1916 | case $ac_var in #( |
| 1917 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1918 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1919 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1920 | esac ;; |
| 1921 | esac |
| 1922 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1923 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1924 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1925 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1926 | sed -n \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1927 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1928 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1929 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1930 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1931 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1932 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1933 | esac | |
| 1934 | sort |
| 1935 | ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1936 | echo |
| 1937 | |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1938 | cat <<\_ASBOX |
| 1939 | ## ----------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1940 | ## Output variables. ## |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1941 | ## ----------------- ## |
| 1942 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1943 | echo |
| 1944 | for ac_var in $ac_subst_vars |
| 1945 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1946 | eval ac_val=\$$ac_var |
| 1947 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1948 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1949 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1950 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1951 | done | sort |
| 1952 | echo |
| 1953 | |
| 1954 | if test -n "$ac_subst_files"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1955 | cat <<\_ASBOX |
| 1956 | ## ------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1957 | ## File substitutions. ## |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1958 | ## ------------------- ## |
| 1959 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1960 | echo |
| 1961 | for ac_var in $ac_subst_files |
| 1962 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1963 | eval ac_val=\$$ac_var |
| 1964 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1965 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1966 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1967 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1968 | done | sort |
| 1969 | echo |
| 1970 | fi |
| 1971 | |
| 1972 | if test -s confdefs.h; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1973 | cat <<\_ASBOX |
| 1974 | ## ----------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1975 | ## confdefs.h. ## |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 1976 | ## ----------- ## |
| 1977 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1978 | echo |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1979 | cat confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1980 | echo |
| 1981 | fi |
| 1982 | test "$ac_signal" != 0 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1983 | $as_echo "$as_me: caught signal $ac_signal" |
| 1984 | $as_echo "$as_me: exit $exit_status" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1985 | } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1986 | rm -f core *.core core.conftest.* && |
| 1987 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1988 | exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1989 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1990 | for ac_signal in 1 2 13 15; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1991 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1992 | done |
| 1993 | ac_signal=0 |
| 1994 | |
| 1995 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1996 | rm -f -r conftest* confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1997 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1998 | $as_echo "/* confdefs.h */" > confdefs.h |
| 1999 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2000 | # Predefined preprocessor variables. |
| 2001 | |
| 2002 | cat >>confdefs.h <<_ACEOF |
| 2003 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2004 | _ACEOF |
| 2005 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2006 | cat >>confdefs.h <<_ACEOF |
| 2007 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2008 | _ACEOF |
| 2009 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2010 | cat >>confdefs.h <<_ACEOF |
| 2011 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2012 | _ACEOF |
| 2013 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2014 | cat >>confdefs.h <<_ACEOF |
| 2015 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2016 | _ACEOF |
| 2017 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2018 | cat >>confdefs.h <<_ACEOF |
| 2019 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2020 | _ACEOF |
| 2021 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2022 | cat >>confdefs.h <<_ACEOF |
| 2023 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2024 | _ACEOF |
| 2025 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2026 | |
| 2027 | # Let the site file select an alternate cache file if it wants to. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2028 | # Prefer an explicitly selected file to automatically selected ones. |
| 2029 | ac_site_file1=NONE |
| 2030 | ac_site_file2=NONE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2031 | if test -n "$CONFIG_SITE"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2032 | ac_site_file1=$CONFIG_SITE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2033 | elif test "x$prefix" != xNONE; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2034 | ac_site_file1=$prefix/share/config.site |
| 2035 | ac_site_file2=$prefix/etc/config.site |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2036 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2037 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2038 | ac_site_file2=$ac_default_prefix/etc/config.site |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2039 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2040 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2041 | do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2042 | test "x$ac_site_file" = xNONE && continue |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2043 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2044 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2045 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2046 | sed 's/^/| /' "$ac_site_file" >&5 |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2047 | . "$ac_site_file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2048 | fi |
| 2049 | done |
| 2050 | |
| 2051 | if test -r "$cache_file"; then |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2052 | # Some versions of bash will fail to source /dev/null (special files |
| 2053 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2054 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2055 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2056 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2057 | case $cache_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2058 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2059 | *) . "./$cache_file";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2060 | esac |
| 2061 | fi |
| 2062 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2064 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2065 | >$cache_file |
| 2066 | fi |
| 2067 | |
| 2068 | # Check that the precious variables saved in the cache have kept the same |
| 2069 | # value. |
| 2070 | ac_cache_corrupted=false |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2071 | for ac_var in $ac_precious_vars; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2072 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2073 | eval ac_new_set=\$ac_env_${ac_var}_set |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2074 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2075 | eval ac_new_val=\$ac_env_${ac_var}_value |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2076 | case $ac_old_set,$ac_new_set in |
| 2077 | set,) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2079 | $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] | 2080 | ac_cache_corrupted=: ;; |
| 2081 | ,set) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2082 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2083 | $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] | 2084 | ac_cache_corrupted=: ;; |
| 2085 | ,);; |
| 2086 | *) |
| 2087 | if test "x$ac_old_val" != "x$ac_new_val"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2088 | # differences in whitespace do not lead to failure. |
| 2089 | ac_old_val_w=`echo x $ac_old_val` |
| 2090 | ac_new_val_w=`echo x $ac_new_val` |
| 2091 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2093 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2094 | ac_cache_corrupted=: |
| 2095 | else |
| 2096 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2097 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2098 | eval $ac_var=\$ac_old_val |
| 2099 | fi |
| 2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2101 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2103 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2104 | fi;; |
| 2105 | esac |
| 2106 | # Pass precious variables to config.status. |
| 2107 | if test "$ac_new_set" = set; then |
| 2108 | case $ac_new_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2109 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2110 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2111 | esac |
| 2112 | case " $ac_configure_args " in |
| 2113 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2114 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2115 | esac |
| 2116 | fi |
| 2117 | done |
| 2118 | if $ac_cache_corrupted; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2119 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2120 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2121 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2122 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2123 | 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] | 2124 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2125 | ## -------------------- ## |
| 2126 | ## Main body of script. ## |
| 2127 | ## -------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2128 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2129 | ac_ext=c |
| 2130 | ac_cpp='$CPP $CPPFLAGS' |
| 2131 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2132 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2133 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2134 | |
| 2135 | |
| 2136 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2137 | ac_aux_dir= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2138 | for ac_dir in autotools "$srcdir"/autotools; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2139 | for ac_t in install-sh install.sh shtool; do |
| 2140 | if test -f "$ac_dir/$ac_t"; then |
| 2141 | ac_aux_dir=$ac_dir |
| 2142 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2143 | break 2 |
| 2144 | fi |
| 2145 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2146 | done |
| 2147 | if test -z "$ac_aux_dir"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2148 | 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] | 2149 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2150 | |
| 2151 | # These three variables are undocumented and unsupported, |
| 2152 | # and are intended to be withdrawn in a future Autoconf release. |
| 2153 | # They can cause serious problems if a builder's source tree is in a directory |
| 2154 | # whose full name contains unusual characters. |
| 2155 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2156 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2157 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2158 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2159 | |
mmentovai | 425d256 | 2006-08-30 20:05:05 +0000 | [diff] [blame] | 2160 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2161 | # Make sure we can run config.sub. |
| 2162 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2163 | 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] | 2164 | |
| 2165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2166 | $as_echo_n "checking build system type... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2167 | if test "${ac_cv_build+set}" = set; then : |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2168 | $as_echo_n "(cached) " >&6 |
| 2169 | else |
| 2170 | ac_build_alias=$build_alias |
| 2171 | test "x$ac_build_alias" = x && |
| 2172 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2173 | test "x$ac_build_alias" = x && |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2174 | 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] | 2175 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2176 | 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] | 2177 | |
| 2178 | fi |
| 2179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2180 | $as_echo "$ac_cv_build" >&6; } |
| 2181 | case $ac_cv_build in |
| 2182 | *-*-*) ;; |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2183 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2184 | esac |
| 2185 | build=$ac_cv_build |
| 2186 | ac_save_IFS=$IFS; IFS='-' |
| 2187 | set x $ac_cv_build |
| 2188 | shift |
| 2189 | build_cpu=$1 |
| 2190 | build_vendor=$2 |
| 2191 | shift; shift |
| 2192 | # Remember, the first character of IFS is used to create $*, |
| 2193 | # except with old shells: |
| 2194 | build_os=$* |
| 2195 | IFS=$ac_save_IFS |
| 2196 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2197 | |
| 2198 | |
| 2199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2200 | $as_echo_n "checking host system type... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2201 | if test "${ac_cv_host+set}" = set; then : |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2202 | $as_echo_n "(cached) " >&6 |
| 2203 | else |
| 2204 | if test "x$host_alias" = x; then |
| 2205 | ac_cv_host=$ac_cv_build |
| 2206 | else |
| 2207 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2208 | 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] | 2209 | fi |
| 2210 | |
| 2211 | fi |
| 2212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2213 | $as_echo "$ac_cv_host" >&6; } |
| 2214 | case $ac_cv_host in |
| 2215 | *-*-*) ;; |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2216 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2217 | esac |
| 2218 | host=$ac_cv_host |
| 2219 | ac_save_IFS=$IFS; IFS='-' |
| 2220 | set x $ac_cv_host |
| 2221 | shift |
| 2222 | host_cpu=$1 |
| 2223 | host_vendor=$2 |
| 2224 | shift; shift |
| 2225 | # Remember, the first character of IFS is used to create $*, |
| 2226 | # except with old shells: |
| 2227 | host_os=$* |
| 2228 | IFS=$ac_save_IFS |
| 2229 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2230 | |
| 2231 | |
| 2232 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2233 | am__api_version='1.11' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2234 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2235 | # Find a good install program. We prefer a C program (faster), |
| 2236 | # so one script is as good as another. But avoid the broken or |
| 2237 | # incompatible versions: |
| 2238 | # SysV /etc/install, /usr/sbin/install |
| 2239 | # SunOS /usr/etc/install |
| 2240 | # IRIX /sbin/install |
| 2241 | # AIX /bin/install |
| 2242 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2243 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2244 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2245 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2246 | # OS/2's system install, which has a completely different semantic |
| 2247 | # ./install, which can be erroneously created by make from ./install.sh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2248 | # Reject install programs that cannot install multiple files. |
| 2249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2250 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2251 | if test -z "$INSTALL"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2252 | if test "${ac_cv_path_install+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2253 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2254 | else |
| 2255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2256 | for as_dir in $PATH |
| 2257 | do |
| 2258 | IFS=$as_save_IFS |
| 2259 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2260 | # Account for people who put trailing slashes in PATH elements. |
| 2261 | case $as_dir/ in #(( |
| 2262 | ./ | .// | /[cC]/* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2263 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2264 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2265 | /usr/ucb/* ) ;; |
| 2266 | *) |
| 2267 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2268 | # Don't use installbsd from OSF since it installs stuff as root |
| 2269 | # by default. |
| 2270 | for ac_prog in ginstall scoinst install; do |
| 2271 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2272 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2273 | if test $ac_prog = install && |
| 2274 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2275 | # AIX install. It has an incompatible calling convention. |
| 2276 | : |
| 2277 | elif test $ac_prog = install && |
| 2278 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2279 | # program-specific install script used by HP pwplus--don't use. |
| 2280 | : |
| 2281 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2282 | rm -rf conftest.one conftest.two conftest.dir |
| 2283 | echo one > conftest.one |
| 2284 | echo two > conftest.two |
| 2285 | mkdir conftest.dir |
| 2286 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2287 | test -s conftest.one && test -s conftest.two && |
| 2288 | test -s conftest.dir/conftest.one && |
| 2289 | test -s conftest.dir/conftest.two |
| 2290 | then |
| 2291 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2292 | break 3 |
| 2293 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2294 | fi |
| 2295 | fi |
| 2296 | done |
| 2297 | done |
| 2298 | ;; |
| 2299 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2300 | |
| 2301 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2302 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2303 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2304 | rm -rf conftest.one conftest.two conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2305 | |
| 2306 | fi |
| 2307 | if test "${ac_cv_path_install+set}" = set; then |
| 2308 | INSTALL=$ac_cv_path_install |
| 2309 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2310 | # As a last resort, use the slow shell script. Don't cache a |
| 2311 | # value for INSTALL within a source directory, because that will |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2312 | # break other packages using the cache if that directory is |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2313 | # removed, or if the value is a relative name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2314 | INSTALL=$ac_install_sh |
| 2315 | fi |
| 2316 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2318 | $as_echo "$INSTALL" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2319 | |
| 2320 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2321 | # It thinks the first close brace ends the variable substitution. |
| 2322 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2323 | |
| 2324 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2325 | |
| 2326 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2327 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2329 | $as_echo_n "checking whether build environment is sane... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2330 | # Just in case |
| 2331 | sleep 1 |
| 2332 | echo timestamp > conftest.file |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2333 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2334 | # name. Accept space and tab only in the latter. |
| 2335 | am_lf=' |
| 2336 | ' |
| 2337 | case `pwd` in |
| 2338 | *[\\\"\#\$\&\'\`$am_lf]*) |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2339 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2340 | esac |
| 2341 | case $srcdir in |
| 2342 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2343 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2344 | esac |
| 2345 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2346 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2347 | # arguments. Must try -L first in case configure is actually a |
| 2348 | # symlink; some systems play weird games with the mod time of symlinks |
| 2349 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2350 | # directory). |
| 2351 | if ( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2352 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2353 | if test "$*" = "X"; then |
| 2354 | # -L didn't work. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2355 | set X `ls -t "$srcdir/configure" conftest.file` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2356 | fi |
| 2357 | rm -f conftest.file |
| 2358 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2359 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2360 | |
| 2361 | # If neither matched, then we have a broken ls. This can happen |
| 2362 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2363 | # broken ls alias from the environment. This has actually |
| 2364 | # happened. Such a system could not be considered "sane". |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2365 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2366 | alias in your environment" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2367 | fi |
| 2368 | |
| 2369 | test "$2" = conftest.file |
| 2370 | ) |
| 2371 | then |
| 2372 | # Ok. |
| 2373 | : |
| 2374 | else |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2375 | as_fn_error "newly created file is older than distributed files! |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2376 | Check your system clock" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2377 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2379 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2380 | test "$program_prefix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2381 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2382 | # Use a double $ so make ignores it. |
| 2383 | test "$program_suffix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2384 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2385 | # Double any \ or $. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2386 | # By default was `s,x,x', remove it if useless. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2387 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2388 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2389 | |
| 2390 | # expand $ac_aux_dir to an absolute path |
| 2391 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2392 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2393 | if test x"${MISSING+set}" != xset; then |
| 2394 | case $am_aux_dir in |
| 2395 | *\ * | *\ *) |
| 2396 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2397 | *) |
| 2398 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2399 | esac |
| 2400 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2401 | # Use eval to expand $SHELL |
| 2402 | if eval "$MISSING --run true"; then |
| 2403 | am_missing_run="$MISSING --run " |
| 2404 | else |
| 2405 | am_missing_run= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2406 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 2407 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2408 | fi |
| 2409 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2410 | if test x"${install_sh}" != xset; then |
| 2411 | case $am_aux_dir in |
| 2412 | *\ * | *\ *) |
| 2413 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2414 | *) |
| 2415 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2416 | esac |
| 2417 | fi |
| 2418 | |
| 2419 | # Installed binaries are usually stripped using `strip' when the user |
| 2420 | # run `make install-strip'. However `strip' might not be the right |
| 2421 | # tool to use in cross-compilation environments, therefore Automake |
| 2422 | # will honor the `STRIP' environment variable to overrule this program. |
| 2423 | if test "$cross_compiling" != no; then |
| 2424 | if test -n "$ac_tool_prefix"; then |
| 2425 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2426 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2428 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2429 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2430 | $as_echo_n "(cached) " >&6 |
| 2431 | else |
| 2432 | if test -n "$STRIP"; then |
| 2433 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2434 | else |
| 2435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2436 | for as_dir in $PATH |
| 2437 | do |
| 2438 | IFS=$as_save_IFS |
| 2439 | test -z "$as_dir" && as_dir=. |
| 2440 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2442 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2444 | break 2 |
| 2445 | fi |
| 2446 | done |
| 2447 | done |
| 2448 | IFS=$as_save_IFS |
| 2449 | |
| 2450 | fi |
| 2451 | fi |
| 2452 | STRIP=$ac_cv_prog_STRIP |
| 2453 | if test -n "$STRIP"; then |
| 2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2455 | $as_echo "$STRIP" >&6; } |
| 2456 | else |
| 2457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2458 | $as_echo "no" >&6; } |
| 2459 | fi |
| 2460 | |
| 2461 | |
| 2462 | fi |
| 2463 | if test -z "$ac_cv_prog_STRIP"; then |
| 2464 | ac_ct_STRIP=$STRIP |
| 2465 | # Extract the first word of "strip", so it can be a program name with args. |
| 2466 | set dummy strip; ac_word=$2 |
| 2467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2468 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2469 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2470 | $as_echo_n "(cached) " >&6 |
| 2471 | else |
| 2472 | if test -n "$ac_ct_STRIP"; then |
| 2473 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2474 | else |
| 2475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2476 | for as_dir in $PATH |
| 2477 | do |
| 2478 | IFS=$as_save_IFS |
| 2479 | test -z "$as_dir" && as_dir=. |
| 2480 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2482 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2484 | break 2 |
| 2485 | fi |
| 2486 | done |
| 2487 | done |
| 2488 | IFS=$as_save_IFS |
| 2489 | |
| 2490 | fi |
| 2491 | fi |
| 2492 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2493 | if test -n "$ac_ct_STRIP"; then |
| 2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2495 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2496 | else |
| 2497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2498 | $as_echo "no" >&6; } |
| 2499 | fi |
| 2500 | |
| 2501 | if test "x$ac_ct_STRIP" = x; then |
| 2502 | STRIP=":" |
| 2503 | else |
| 2504 | case $cross_compiling:$ac_tool_warned in |
| 2505 | yes:) |
| 2506 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2507 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2508 | ac_tool_warned=yes ;; |
| 2509 | esac |
| 2510 | STRIP=$ac_ct_STRIP |
| 2511 | fi |
| 2512 | else |
| 2513 | STRIP="$ac_cv_prog_STRIP" |
| 2514 | fi |
| 2515 | |
| 2516 | fi |
| 2517 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2518 | |
| 2519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2520 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2521 | if test -z "$MKDIR_P"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2522 | if test "${ac_cv_path_mkdir+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2523 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2524 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2526 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2527 | do |
| 2528 | IFS=$as_save_IFS |
| 2529 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2530 | for ac_prog in mkdir gmkdir; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2531 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2532 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2533 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2534 | 'mkdir (GNU coreutils) '* | \ |
| 2535 | 'mkdir (coreutils) '* | \ |
| 2536 | 'mkdir (fileutils) '4.1*) |
| 2537 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2538 | break 3;; |
| 2539 | esac |
| 2540 | done |
| 2541 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2542 | done |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2543 | IFS=$as_save_IFS |
| 2544 | |
| 2545 | fi |
| 2546 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2547 | test -d ./--version && rmdir ./--version |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2548 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2549 | MKDIR_P="$ac_cv_path_mkdir -p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2550 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2551 | # As a last resort, use the slow shell script. Don't cache a |
| 2552 | # value for MKDIR_P within a source directory, because that will |
| 2553 | # break other packages using the cache if that directory is |
| 2554 | # removed, or if the value is a relative name. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2555 | MKDIR_P="$ac_install_sh -d" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2556 | fi |
| 2557 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2559 | $as_echo "$MKDIR_P" >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2560 | |
| 2561 | mkdir_p="$MKDIR_P" |
| 2562 | case $mkdir_p in |
| 2563 | [\\/$]* | ?:[\\/]*) ;; |
| 2564 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2565 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2566 | |
| 2567 | for ac_prog in gawk mawk nawk awk |
| 2568 | do |
| 2569 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2570 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2572 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2573 | if test "${ac_cv_prog_AWK+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2574 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2575 | else |
| 2576 | if test -n "$AWK"; then |
| 2577 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2578 | else |
| 2579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2580 | for as_dir in $PATH |
| 2581 | do |
| 2582 | IFS=$as_save_IFS |
| 2583 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2584 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2586 | ac_cv_prog_AWK="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2587 | $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] | 2588 | break 2 |
| 2589 | fi |
| 2590 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2591 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2592 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2593 | |
| 2594 | fi |
| 2595 | fi |
| 2596 | AWK=$ac_cv_prog_AWK |
| 2597 | if test -n "$AWK"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2599 | $as_echo "$AWK" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2600 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2602 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2603 | fi |
| 2604 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2605 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2606 | test -n "$AWK" && break |
| 2607 | done |
| 2608 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2610 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2611 | set x ${MAKE-make} |
| 2612 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2613 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2614 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2615 | else |
| 2616 | cat >conftest.make <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2617 | SHELL = /bin/sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2618 | all: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2619 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2620 | _ACEOF |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2621 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2622 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2623 | *@@@%%%=?*=@@@%%%*) |
| 2624 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2625 | *) |
| 2626 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2627 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2628 | rm -f conftest.make |
| 2629 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2630 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2632 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2633 | SET_MAKE= |
| 2634 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2636 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2637 | SET_MAKE="MAKE=${MAKE-make}" |
| 2638 | fi |
| 2639 | |
| 2640 | rm -rf .tst 2>/dev/null |
| 2641 | mkdir .tst 2>/dev/null |
| 2642 | if test -d .tst; then |
| 2643 | am__leading_dot=. |
| 2644 | else |
| 2645 | am__leading_dot=_ |
| 2646 | fi |
| 2647 | rmdir .tst 2>/dev/null |
| 2648 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2649 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2650 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2651 | # is not polluted with repeated "-I." |
| 2652 | am__isrc=' -I$(srcdir)' |
| 2653 | # test to see if srcdir already configured |
| 2654 | if test -f $srcdir/config.status; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2655 | 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] | 2656 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2657 | fi |
| 2658 | |
| 2659 | # test whether we have cygpath |
| 2660 | if test -z "$CYGPATH_W"; then |
| 2661 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2662 | CYGPATH_W='cygpath -w' |
| 2663 | else |
| 2664 | CYGPATH_W=echo |
| 2665 | fi |
| 2666 | fi |
| 2667 | |
| 2668 | |
| 2669 | # Define the identity of the package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2670 | PACKAGE='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2671 | VERSION='0.1' |
| 2672 | |
| 2673 | |
| 2674 | cat >>confdefs.h <<_ACEOF |
| 2675 | #define PACKAGE "$PACKAGE" |
| 2676 | _ACEOF |
| 2677 | |
| 2678 | |
| 2679 | cat >>confdefs.h <<_ACEOF |
| 2680 | #define VERSION "$VERSION" |
| 2681 | _ACEOF |
| 2682 | |
| 2683 | # Some tools Automake needs. |
| 2684 | |
| 2685 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2686 | |
| 2687 | |
| 2688 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2689 | |
| 2690 | |
| 2691 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2692 | |
| 2693 | |
| 2694 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2695 | |
| 2696 | |
| 2697 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2698 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2699 | # We need awk for the "check" target. The system "awk" is bad on |
| 2700 | # some platforms. |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2701 | # Always define AMTAR for backward compatibility. |
| 2702 | |
| 2703 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2704 | |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2705 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 |
| 2707 | $as_echo_n "checking how to create a ustar tar archive... " >&6; } |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2708 | # Loop over all known methods to create a tar archive until one works. |
| 2709 | _am_tools='gnutar plaintar pax cpio none' |
| 2710 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
| 2711 | # Do not fold the above two line into one, because Tru64 sh and |
| 2712 | # Solaris sh will not grok spaces in the rhs of `-'. |
| 2713 | for _am_tool in $_am_tools |
| 2714 | do |
| 2715 | case $_am_tool in |
| 2716 | gnutar) |
| 2717 | for _am_tar in tar gnutar gtar; |
| 2718 | do |
| 2719 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
| 2720 | ($_am_tar --version) >&5 2>&5 |
| 2721 | ac_status=$? |
| 2722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2723 | (exit $ac_status); } && break |
| 2724 | done |
| 2725 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
| 2726 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
| 2727 | am__untar="$_am_tar -xf -" |
| 2728 | ;; |
| 2729 | plaintar) |
| 2730 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 2731 | # ustar tarball either. |
| 2732 | (tar --version) >/dev/null 2>&1 && continue |
| 2733 | am__tar='tar chf - "$$tardir"' |
| 2734 | am__tar_='tar chf - "$tardir"' |
| 2735 | am__untar='tar xf -' |
| 2736 | ;; |
| 2737 | pax) |
| 2738 | am__tar='pax -L -x ustar -w "$$tardir"' |
| 2739 | am__tar_='pax -L -x ustar -w "$tardir"' |
| 2740 | am__untar='pax -r' |
| 2741 | ;; |
| 2742 | cpio) |
| 2743 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
| 2744 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
| 2745 | am__untar='cpio -i -H ustar -d' |
| 2746 | ;; |
| 2747 | none) |
| 2748 | am__tar=false |
| 2749 | am__tar_=false |
| 2750 | am__untar=false |
| 2751 | ;; |
| 2752 | esac |
| 2753 | |
| 2754 | # If the value was cached, stop now. We just wanted to have am__tar |
| 2755 | # and am__untar set. |
| 2756 | test -n "${am_cv_prog_tar_ustar}" && break |
| 2757 | |
| 2758 | # tar/untar a dummy directory, and stop if the command works |
| 2759 | rm -rf conftest.dir |
| 2760 | mkdir conftest.dir |
| 2761 | echo GrepMe > conftest.dir/file |
| 2762 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
| 2763 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 2764 | ac_status=$? |
| 2765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2766 | (exit $ac_status); } |
| 2767 | rm -rf conftest.dir |
| 2768 | if test -s conftest.tar; then |
| 2769 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
| 2770 | ($am__untar <conftest.tar) >&5 2>&5 |
| 2771 | ac_status=$? |
| 2772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2773 | (exit $ac_status); } |
| 2774 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 2775 | fi |
| 2776 | done |
| 2777 | rm -rf conftest.dir |
| 2778 | |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2779 | if test "${am_cv_prog_tar_ustar+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2780 | $as_echo_n "(cached) " >&6 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2781 | else |
| 2782 | am_cv_prog_tar_ustar=$_am_tool |
| 2783 | fi |
| 2784 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 |
| 2786 | $as_echo "$am_cv_prog_tar_ustar" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2787 | |
| 2788 | |
| 2789 | |
| 2790 | |
| 2791 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2792 | ac_config_headers="$ac_config_headers src/config.h" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2793 | |
| 2794 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 2795 | DEPDIR="${am__leading_dot}deps" |
| 2796 | |
| 2797 | ac_config_commands="$ac_config_commands depfiles" |
| 2798 | |
| 2799 | |
| 2800 | am_make=${MAKE-make} |
| 2801 | cat > confinc << 'END' |
| 2802 | am__doit: |
| 2803 | @echo this is the am__doit target |
| 2804 | .PHONY: am__doit |
| 2805 | END |
| 2806 | # If we don't find an include directive, just comment out the code. |
| 2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 2808 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 2809 | am__include="#" |
| 2810 | am__quote= |
| 2811 | _am_result=none |
| 2812 | # First try GNU make style include. |
| 2813 | echo "include confinc" > confmf |
| 2814 | # Ignore all kinds of additional output from `make'. |
| 2815 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 2816 | *the\ am__doit\ target*) |
| 2817 | am__include=include |
| 2818 | am__quote= |
| 2819 | _am_result=GNU |
| 2820 | ;; |
| 2821 | esac |
| 2822 | # Now try BSD make style include. |
| 2823 | if test "$am__include" = "#"; then |
| 2824 | echo '.include "confinc"' > confmf |
| 2825 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 2826 | *the\ am__doit\ target*) |
| 2827 | am__include=.include |
| 2828 | am__quote="\"" |
| 2829 | _am_result=BSD |
| 2830 | ;; |
| 2831 | esac |
| 2832 | fi |
| 2833 | |
| 2834 | |
| 2835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 2836 | $as_echo "$_am_result" >&6; } |
| 2837 | rm -f confinc confmf |
| 2838 | |
| 2839 | # Check whether --enable-dependency-tracking was given. |
| 2840 | if test "${enable_dependency_tracking+set}" = set; then : |
| 2841 | enableval=$enable_dependency_tracking; |
| 2842 | fi |
| 2843 | |
| 2844 | if test "x$enable_dependency_tracking" != xno; then |
| 2845 | am_depcomp="$ac_aux_dir/depcomp" |
| 2846 | AMDEPBACKSLASH='\' |
| 2847 | fi |
| 2848 | if test "x$enable_dependency_tracking" != xno; then |
| 2849 | AMDEP_TRUE= |
| 2850 | AMDEP_FALSE='#' |
| 2851 | else |
| 2852 | AMDEP_TRUE='#' |
| 2853 | AMDEP_FALSE= |
| 2854 | fi |
| 2855 | |
| 2856 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2857 | ac_ext=c |
| 2858 | ac_cpp='$CPP $CPPFLAGS' |
| 2859 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2860 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2861 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2862 | if test -n "$ac_tool_prefix"; then |
| 2863 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2864 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2866 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2867 | if test "${ac_cv_prog_CC+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2868 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2869 | else |
| 2870 | if test -n "$CC"; then |
| 2871 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2872 | else |
| 2873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2874 | for as_dir in $PATH |
| 2875 | do |
| 2876 | IFS=$as_save_IFS |
| 2877 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2878 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2879 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2880 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2881 | $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] | 2882 | break 2 |
| 2883 | fi |
| 2884 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2885 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2886 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2887 | |
| 2888 | fi |
| 2889 | fi |
| 2890 | CC=$ac_cv_prog_CC |
| 2891 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2893 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2894 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2896 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2897 | fi |
| 2898 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2899 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2900 | fi |
| 2901 | if test -z "$ac_cv_prog_CC"; then |
| 2902 | ac_ct_CC=$CC |
| 2903 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2904 | set dummy gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2906 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2907 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2908 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2909 | else |
| 2910 | if test -n "$ac_ct_CC"; then |
| 2911 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2912 | else |
| 2913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2914 | for as_dir in $PATH |
| 2915 | do |
| 2916 | IFS=$as_save_IFS |
| 2917 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2918 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2919 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2920 | ac_cv_prog_ac_ct_CC="gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2921 | $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] | 2922 | break 2 |
| 2923 | fi |
| 2924 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2925 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2926 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2927 | |
| 2928 | fi |
| 2929 | fi |
| 2930 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2931 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2933 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2934 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2936 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2937 | fi |
| 2938 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2939 | if test "x$ac_ct_CC" = x; then |
| 2940 | CC="" |
| 2941 | else |
| 2942 | case $cross_compiling:$ac_tool_warned in |
| 2943 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2944 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2945 | $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] | 2946 | ac_tool_warned=yes ;; |
| 2947 | esac |
| 2948 | CC=$ac_ct_CC |
| 2949 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2950 | else |
| 2951 | CC="$ac_cv_prog_CC" |
| 2952 | fi |
| 2953 | |
| 2954 | if test -z "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2955 | if test -n "$ac_tool_prefix"; then |
| 2956 | # 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] | 2957 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2959 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2960 | if test "${ac_cv_prog_CC+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2961 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2962 | else |
| 2963 | if test -n "$CC"; then |
| 2964 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2965 | else |
| 2966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2967 | for as_dir in $PATH |
| 2968 | do |
| 2969 | IFS=$as_save_IFS |
| 2970 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2971 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 2972 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2973 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2974 | $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] | 2975 | break 2 |
| 2976 | fi |
| 2977 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2978 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2979 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2980 | |
| 2981 | fi |
| 2982 | fi |
| 2983 | CC=$ac_cv_prog_CC |
| 2984 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2986 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2987 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2989 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2990 | fi |
| 2991 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2992 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2993 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2994 | fi |
| 2995 | if test -z "$CC"; then |
| 2996 | # Extract the first word of "cc", so it can be a program name with args. |
| 2997 | set dummy cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2999 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3000 | if test "${ac_cv_prog_CC+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3001 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3002 | else |
| 3003 | if test -n "$CC"; then |
| 3004 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3005 | else |
| 3006 | ac_prog_rejected=no |
| 3007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3008 | for as_dir in $PATH |
| 3009 | do |
| 3010 | IFS=$as_save_IFS |
| 3011 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3012 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3013 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3014 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3015 | ac_prog_rejected=yes |
| 3016 | continue |
| 3017 | fi |
| 3018 | ac_cv_prog_CC="cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3019 | $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] | 3020 | break 2 |
| 3021 | fi |
| 3022 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3023 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3024 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3025 | |
| 3026 | if test $ac_prog_rejected = yes; then |
| 3027 | # We found a bogon in the path, so make sure we never use it. |
| 3028 | set dummy $ac_cv_prog_CC |
| 3029 | shift |
| 3030 | if test $# != 0; then |
| 3031 | # We chose a different compiler from the bogus one. |
| 3032 | # However, it has the same basename, so the bogon will be chosen |
| 3033 | # first if we set CC to just the basename; use the full file name. |
| 3034 | shift |
| 3035 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3036 | fi |
| 3037 | fi |
| 3038 | fi |
| 3039 | fi |
| 3040 | CC=$ac_cv_prog_CC |
| 3041 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3043 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3044 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3046 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3047 | fi |
| 3048 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3049 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3050 | fi |
| 3051 | if test -z "$CC"; then |
| 3052 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3053 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3054 | do |
| 3055 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3056 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3058 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3059 | if test "${ac_cv_prog_CC+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3060 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3061 | else |
| 3062 | if test -n "$CC"; then |
| 3063 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3064 | else |
| 3065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3066 | for as_dir in $PATH |
| 3067 | do |
| 3068 | IFS=$as_save_IFS |
| 3069 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3070 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3071 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3072 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3073 | $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] | 3074 | break 2 |
| 3075 | fi |
| 3076 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3077 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3078 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3079 | |
| 3080 | fi |
| 3081 | fi |
| 3082 | CC=$ac_cv_prog_CC |
| 3083 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3085 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3086 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3088 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3089 | fi |
| 3090 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3091 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3092 | test -n "$CC" && break |
| 3093 | done |
| 3094 | fi |
| 3095 | if test -z "$CC"; then |
| 3096 | ac_ct_CC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3097 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3098 | do |
| 3099 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3100 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3102 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3103 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3104 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3105 | else |
| 3106 | if test -n "$ac_ct_CC"; then |
| 3107 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3108 | else |
| 3109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3110 | for as_dir in $PATH |
| 3111 | do |
| 3112 | IFS=$as_save_IFS |
| 3113 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3114 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3115 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3116 | ac_cv_prog_ac_ct_CC="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3117 | $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] | 3118 | break 2 |
| 3119 | fi |
| 3120 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3121 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3122 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3123 | |
| 3124 | fi |
| 3125 | fi |
| 3126 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3127 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3129 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3130 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3132 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3133 | fi |
| 3134 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3135 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3136 | test -n "$ac_ct_CC" && break |
| 3137 | done |
| 3138 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3139 | if test "x$ac_ct_CC" = x; then |
| 3140 | CC="" |
| 3141 | else |
| 3142 | case $cross_compiling:$ac_tool_warned in |
| 3143 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3145 | $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] | 3146 | ac_tool_warned=yes ;; |
| 3147 | esac |
| 3148 | CC=$ac_ct_CC |
| 3149 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3150 | fi |
| 3151 | |
| 3152 | fi |
| 3153 | |
| 3154 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3155 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3156 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3157 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3158 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3159 | |
| 3160 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3161 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3162 | set X $ac_compile |
| 3163 | ac_compiler=$2 |
| 3164 | for ac_option in --version -v -V -qversion; do |
| 3165 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3166 | case "(($ac_try" in |
| 3167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3168 | *) ac_try_echo=$ac_try;; |
| 3169 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3170 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3171 | $as_echo "$ac_try_echo"; } >&5 |
| 3172 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3173 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3174 | if test -s conftest.err; then |
| 3175 | sed '10a\ |
| 3176 | ... rest of stderr output deleted ... |
| 3177 | 10q' conftest.err >conftest.er1 |
| 3178 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3179 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3180 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3181 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3182 | test $ac_status = 0; } |
| 3183 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3184 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3186 | /* end confdefs.h. */ |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3187 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3188 | int |
| 3189 | main () |
| 3190 | { |
| 3191 | |
| 3192 | ; |
| 3193 | return 0; |
| 3194 | } |
| 3195 | _ACEOF |
| 3196 | ac_clean_files_save=$ac_clean_files |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3197 | 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] | 3198 | # Try to create an executable without -o first, disregard a.out. |
| 3199 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3200 | # of exeext. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3202 | $as_echo_n "checking whether the C compiler works... " >&6; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3203 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3204 | |
| 3205 | # The possible output files: |
| 3206 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3207 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3208 | ac_rmfiles= |
| 3209 | for ac_file in $ac_files |
| 3210 | do |
| 3211 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3212 | *.$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] | 3213 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3214 | esac |
| 3215 | done |
| 3216 | rm -f $ac_rmfiles |
| 3217 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3218 | if { { ac_try="$ac_link_default" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3219 | case "(($ac_try" in |
| 3220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3221 | *) ac_try_echo=$ac_try;; |
| 3222 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3223 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3224 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3225 | (eval "$ac_link_default") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3226 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3227 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3228 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3229 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3230 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3231 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3232 | # so that the user can short-circuit this test for compilers unknown to |
| 3233 | # Autoconf. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3234 | for ac_file in $ac_files '' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3235 | do |
| 3236 | test -f "$ac_file" || continue |
| 3237 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3238 | *.$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] | 3239 | ;; |
| 3240 | [ab].out ) |
| 3241 | # We found the default executable, but exeext='' is most |
| 3242 | # certainly right. |
| 3243 | break;; |
| 3244 | *.* ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3245 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3246 | then :; else |
| 3247 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3248 | fi |
| 3249 | # We set ac_cv_exeext here because the later test for it is not |
| 3250 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3251 | # argument, so we may need to know it at that point already. |
| 3252 | # Even if this section looks crufty: it has the advantage of |
| 3253 | # actually working. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3254 | break;; |
| 3255 | * ) |
| 3256 | break;; |
| 3257 | esac |
| 3258 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3259 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3260 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3261 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3262 | ac_file='' |
| 3263 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3264 | if test -z "$ac_file"; then : |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3266 | $as_echo "no" >&6; } |
| 3267 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3269 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3270 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3271 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3272 | { as_fn_set_status 77 |
| 3273 | as_fn_error "C compiler cannot create executables |
| 3274 | See \`config.log' for more details." "$LINENO" 5; }; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3275 | else |
| 3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3277 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3278 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3280 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3282 | $as_echo "$ac_file" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3283 | ac_exeext=$ac_cv_exeext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3284 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3285 | 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] | 3286 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3288 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3289 | if { { ac_try="$ac_link" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3290 | case "(($ac_try" in |
| 3291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3292 | *) ac_try_echo=$ac_try;; |
| 3293 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3294 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3295 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3296 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3297 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3298 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3299 | test $ac_status = 0; }; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3300 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3301 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3302 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3303 | # `rm'. |
| 3304 | for ac_file in conftest.exe conftest conftest.*; do |
| 3305 | test -f "$ac_file" || continue |
| 3306 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3307 | *.$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] | 3308 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3309 | break;; |
| 3310 | * ) break;; |
| 3311 | esac |
| 3312 | done |
| 3313 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3314 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3315 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3316 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3317 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3318 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3319 | rm -f conftest conftest$ac_cv_exeext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3321 | $as_echo "$ac_cv_exeext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3322 | |
| 3323 | rm -f conftest.$ac_ext |
| 3324 | EXEEXT=$ac_cv_exeext |
| 3325 | ac_exeext=$EXEEXT |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3327 | /* end confdefs.h. */ |
| 3328 | #include <stdio.h> |
| 3329 | int |
| 3330 | main () |
| 3331 | { |
| 3332 | FILE *f = fopen ("conftest.out", "w"); |
| 3333 | return ferror (f) || fclose (f) != 0; |
| 3334 | |
| 3335 | ; |
| 3336 | return 0; |
| 3337 | } |
| 3338 | _ACEOF |
| 3339 | ac_clean_files="$ac_clean_files conftest.out" |
| 3340 | # Check that the compiler produces executables we can run. If not, either |
| 3341 | # the compiler is broken, or we cross compile. |
| 3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3343 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3344 | if test "$cross_compiling" != yes; then |
| 3345 | { { ac_try="$ac_link" |
| 3346 | case "(($ac_try" in |
| 3347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3348 | *) ac_try_echo=$ac_try;; |
| 3349 | esac |
| 3350 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3351 | $as_echo "$ac_try_echo"; } >&5 |
| 3352 | (eval "$ac_link") 2>&5 |
| 3353 | ac_status=$? |
| 3354 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3355 | test $ac_status = 0; } |
| 3356 | if { ac_try='./conftest$ac_cv_exeext' |
| 3357 | { { case "(($ac_try" in |
| 3358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3359 | *) ac_try_echo=$ac_try;; |
| 3360 | esac |
| 3361 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3362 | $as_echo "$ac_try_echo"; } >&5 |
| 3363 | (eval "$ac_try") 2>&5 |
| 3364 | ac_status=$? |
| 3365 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3366 | test $ac_status = 0; }; }; then |
| 3367 | cross_compiling=no |
| 3368 | else |
| 3369 | if test "$cross_compiling" = maybe; then |
| 3370 | cross_compiling=yes |
| 3371 | else |
| 3372 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3373 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3374 | as_fn_error "cannot run C compiled programs. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3375 | If you meant to cross compile, use \`--host'. |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3376 | See \`config.log' for more details." "$LINENO" 5; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3377 | fi |
| 3378 | fi |
| 3379 | fi |
| 3380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3381 | $as_echo "$cross_compiling" >&6; } |
| 3382 | |
| 3383 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3384 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3386 | $as_echo_n "checking for suffix of object files... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3387 | if test "${ac_cv_objext+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3388 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3389 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3391 | /* end confdefs.h. */ |
| 3392 | |
| 3393 | int |
| 3394 | main () |
| 3395 | { |
| 3396 | |
| 3397 | ; |
| 3398 | return 0; |
| 3399 | } |
| 3400 | _ACEOF |
| 3401 | rm -f conftest.o conftest.obj |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3402 | if { { ac_try="$ac_compile" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3403 | case "(($ac_try" in |
| 3404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3405 | *) ac_try_echo=$ac_try;; |
| 3406 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3407 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3408 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3409 | (eval "$ac_compile") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3410 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3411 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3412 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3413 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3414 | test -f "$ac_file" || continue; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3415 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3416 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3417 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3418 | break;; |
| 3419 | esac |
| 3420 | done |
| 3421 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3422 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3424 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3425 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3426 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3427 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3428 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3429 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3430 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3431 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3433 | $as_echo "$ac_cv_objext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3434 | OBJEXT=$ac_cv_objext |
| 3435 | ac_objext=$OBJEXT |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3437 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3438 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3439 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3440 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3442 | /* end confdefs.h. */ |
| 3443 | |
| 3444 | int |
| 3445 | main () |
| 3446 | { |
| 3447 | #ifndef __GNUC__ |
| 3448 | choke me |
| 3449 | #endif |
| 3450 | |
| 3451 | ; |
| 3452 | return 0; |
| 3453 | } |
| 3454 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3455 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3456 | ac_compiler_gnu=yes |
| 3457 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3458 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3459 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3461 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3462 | |
| 3463 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3465 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3466 | if test $ac_compiler_gnu = yes; then |
| 3467 | GCC=yes |
| 3468 | else |
| 3469 | GCC= |
| 3470 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3471 | ac_test_CFLAGS=${CFLAGS+set} |
| 3472 | ac_save_CFLAGS=$CFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3474 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3475 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3476 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3477 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3478 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3479 | ac_c_werror_flag=yes |
| 3480 | ac_cv_prog_cc_g=no |
| 3481 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3483 | /* end confdefs.h. */ |
| 3484 | |
| 3485 | int |
| 3486 | main () |
| 3487 | { |
| 3488 | |
| 3489 | ; |
| 3490 | return 0; |
| 3491 | } |
| 3492 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3493 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3494 | ac_cv_prog_cc_g=yes |
| 3495 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3496 | CFLAGS="" |
| 3497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3498 | /* end confdefs.h. */ |
| 3499 | |
| 3500 | int |
| 3501 | main () |
| 3502 | { |
| 3503 | |
| 3504 | ; |
| 3505 | return 0; |
| 3506 | } |
| 3507 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3508 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3509 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3510 | else |
| 3511 | ac_c_werror_flag=$ac_save_c_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3512 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3514 | /* end confdefs.h. */ |
| 3515 | |
| 3516 | int |
| 3517 | main () |
| 3518 | { |
| 3519 | |
| 3520 | ; |
| 3521 | return 0; |
| 3522 | } |
| 3523 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3524 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3525 | ac_cv_prog_cc_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3526 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3528 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3530 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3532 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3533 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3535 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3536 | if test "$ac_test_CFLAGS" = set; then |
| 3537 | CFLAGS=$ac_save_CFLAGS |
| 3538 | elif test $ac_cv_prog_cc_g = yes; then |
| 3539 | if test "$GCC" = yes; then |
| 3540 | CFLAGS="-g -O2" |
| 3541 | else |
| 3542 | CFLAGS="-g" |
| 3543 | fi |
| 3544 | else |
| 3545 | if test "$GCC" = yes; then |
| 3546 | CFLAGS="-O2" |
| 3547 | else |
| 3548 | CFLAGS= |
| 3549 | fi |
| 3550 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3552 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3553 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3554 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3555 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3556 | ac_cv_prog_cc_c89=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3557 | ac_save_CC=$CC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3559 | /* end confdefs.h. */ |
| 3560 | #include <stdarg.h> |
| 3561 | #include <stdio.h> |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3562 | #include <sys/types.h> |
| 3563 | #include <sys/stat.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3564 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3565 | struct buf { int x; }; |
| 3566 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3567 | static char *e (p, i) |
| 3568 | char **p; |
| 3569 | int i; |
| 3570 | { |
| 3571 | return p[i]; |
| 3572 | } |
| 3573 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3574 | { |
| 3575 | char *s; |
| 3576 | va_list v; |
| 3577 | va_start (v,p); |
| 3578 | s = g (p, va_arg (v,int)); |
| 3579 | va_end (v); |
| 3580 | return s; |
| 3581 | } |
| 3582 | |
| 3583 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3584 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3585 | These don't provoke an error unfortunately, instead are silently treated |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3586 | as 'x'. The following induces an error, until -std is added to get |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3587 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3588 | 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] | 3589 | that's true only with -std. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3590 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3591 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3592 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3593 | inside strings and character constants. */ |
| 3594 | #define FOO(x) 'x' |
| 3595 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3596 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3597 | int test (int i, double x); |
| 3598 | struct s1 {int (*f) (int a);}; |
| 3599 | struct s2 {int (*f) (double a);}; |
| 3600 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3601 | int argc; |
| 3602 | char **argv; |
| 3603 | int |
| 3604 | main () |
| 3605 | { |
| 3606 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3607 | ; |
| 3608 | return 0; |
| 3609 | } |
| 3610 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3611 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3612 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3613 | do |
| 3614 | CC="$ac_save_CC $ac_arg" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3615 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3616 | ac_cv_prog_cc_c89=$ac_arg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3617 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3618 | rm -f core conftest.err conftest.$ac_objext |
| 3619 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3620 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3621 | rm -f conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3622 | CC=$ac_save_CC |
| 3623 | |
| 3624 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3625 | # AC_CACHE_VAL |
| 3626 | case "x$ac_cv_prog_cc_c89" in |
| 3627 | x) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3629 | $as_echo "none needed" >&6; } ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3630 | xno) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3632 | $as_echo "unsupported" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3633 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3634 | CC="$CC $ac_cv_prog_cc_c89" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3636 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3637 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3638 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3639 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3640 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3641 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3642 | ac_ext=c |
| 3643 | ac_cpp='$CPP $CPPFLAGS' |
| 3644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3647 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3648 | depcc="$CC" am_compiler_list= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3649 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3651 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3652 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3653 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3654 | else |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3655 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3656 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3657 | # making bogus files that we don't know about and never remove. For |
| 3658 | # instance it was reported that on HP-UX the gcc test will end up |
| 3659 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3660 | # in D'. |
| 3661 | mkdir conftest.dir |
| 3662 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3663 | # using a relative directory. |
| 3664 | cp "$am_depcomp" conftest.dir |
| 3665 | cd conftest.dir |
| 3666 | # We will build objects and dependencies in a subdirectory because |
| 3667 | # it helps to detect inapplicable dependency modes. For instance |
| 3668 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3669 | # side effect of compilation, but ICC will put the dependencies in |
| 3670 | # the current directory while Tru64 will put them in the object |
| 3671 | # directory. |
| 3672 | mkdir sub |
| 3673 | |
| 3674 | am_cv_CC_dependencies_compiler_type=none |
| 3675 | if test "$am_compiler_list" = ""; then |
| 3676 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3677 | fi |
| 3678 | am__universal=false |
| 3679 | case " $depcc " in #( |
| 3680 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3681 | esac |
| 3682 | |
| 3683 | for depmode in $am_compiler_list; do |
| 3684 | # Setup a source with many dependencies, because some compilers |
| 3685 | # like to wrap large dependency lists on column 80 (with \), and |
| 3686 | # we should not choose a depcomp mode which is confused by this. |
| 3687 | # |
| 3688 | # We need to recreate these files for each test, as the compiler may |
| 3689 | # overwrite some of them when testing with obscure command lines. |
| 3690 | # This happens at least with the AIX C compiler. |
| 3691 | : > sub/conftest.c |
| 3692 | for i in 1 2 3 4 5 6; do |
| 3693 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3694 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3695 | # Solaris 8's {/usr,}/bin/sh. |
| 3696 | touch sub/conftst$i.h |
| 3697 | done |
| 3698 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3699 | |
| 3700 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3701 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3702 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 3703 | # versions had trouble with output in subdirs |
| 3704 | am__obj=sub/conftest.${OBJEXT-o} |
| 3705 | am__minus_obj="-o $am__obj" |
| 3706 | case $depmode in |
| 3707 | gcc) |
| 3708 | # This depmode causes a compiler race in universal mode. |
| 3709 | test "$am__universal" = false || continue |
| 3710 | ;; |
| 3711 | nosideeffect) |
| 3712 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3713 | # only be used when explicitly requested |
| 3714 | if test "x$enable_dependency_tracking" = xyes; then |
| 3715 | continue |
| 3716 | else |
| 3717 | break |
| 3718 | fi |
| 3719 | ;; |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3720 | msvisualcpp | msvcmsys) |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3721 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 3722 | # not run yet. These depmodes are late enough in the game, and |
| 3723 | # so weak that their functioning should not be impacted. |
| 3724 | am__obj=conftest.${OBJEXT-o} |
| 3725 | am__minus_obj= |
| 3726 | ;; |
| 3727 | none) break ;; |
| 3728 | esac |
| 3729 | if depmode=$depmode \ |
| 3730 | source=sub/conftest.c object=$am__obj \ |
| 3731 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3732 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 3733 | >/dev/null 2>conftest.err && |
| 3734 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 3735 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3736 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 3737 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3738 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3739 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3740 | # that says an option was ignored or not supported. |
| 3741 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3742 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3743 | # The diagnosis changed in icc 8.0: |
| 3744 | # icc: Command line remark: option '-MP' not supported |
| 3745 | if (grep 'ignoring option' conftest.err || |
| 3746 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3747 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3748 | break |
| 3749 | fi |
| 3750 | fi |
| 3751 | done |
| 3752 | |
| 3753 | cd .. |
| 3754 | rm -rf conftest.dir |
| 3755 | else |
| 3756 | am_cv_CC_dependencies_compiler_type=none |
| 3757 | fi |
| 3758 | |
| 3759 | fi |
| 3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3761 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 3762 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3763 | |
| 3764 | if |
| 3765 | test "x$enable_dependency_tracking" != xno \ |
| 3766 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3767 | am__fastdepCC_TRUE= |
| 3768 | am__fastdepCC_FALSE='#' |
| 3769 | else |
| 3770 | am__fastdepCC_TRUE='#' |
| 3771 | am__fastdepCC_FALSE= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3772 | fi |
| 3773 | |
| 3774 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3775 | # By default we simply use the C compiler to build assembly code. |
| 3776 | |
| 3777 | test "${CCAS+set}" = set || CCAS=$CC |
| 3778 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS |
| 3779 | |
| 3780 | |
| 3781 | |
| 3782 | depcc="$CCAS" am_compiler_list= |
| 3783 | |
| 3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3785 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3786 | if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3787 | $as_echo_n "(cached) " >&6 |
| 3788 | else |
| 3789 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3790 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3791 | # making bogus files that we don't know about and never remove. For |
| 3792 | # instance it was reported that on HP-UX the gcc test will end up |
| 3793 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3794 | # in D'. |
| 3795 | mkdir conftest.dir |
| 3796 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3797 | # using a relative directory. |
| 3798 | cp "$am_depcomp" conftest.dir |
| 3799 | cd conftest.dir |
| 3800 | # We will build objects and dependencies in a subdirectory because |
| 3801 | # it helps to detect inapplicable dependency modes. For instance |
| 3802 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3803 | # side effect of compilation, but ICC will put the dependencies in |
| 3804 | # the current directory while Tru64 will put them in the object |
| 3805 | # directory. |
| 3806 | mkdir sub |
| 3807 | |
| 3808 | am_cv_CCAS_dependencies_compiler_type=none |
| 3809 | if test "$am_compiler_list" = ""; then |
| 3810 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3811 | fi |
| 3812 | am__universal=false |
| 3813 | |
| 3814 | |
| 3815 | for depmode in $am_compiler_list; do |
| 3816 | # Setup a source with many dependencies, because some compilers |
| 3817 | # like to wrap large dependency lists on column 80 (with \), and |
| 3818 | # we should not choose a depcomp mode which is confused by this. |
| 3819 | # |
| 3820 | # We need to recreate these files for each test, as the compiler may |
| 3821 | # overwrite some of them when testing with obscure command lines. |
| 3822 | # This happens at least with the AIX C compiler. |
| 3823 | : > sub/conftest.c |
| 3824 | for i in 1 2 3 4 5 6; do |
| 3825 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3826 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3827 | # Solaris 8's {/usr,}/bin/sh. |
| 3828 | touch sub/conftst$i.h |
| 3829 | done |
| 3830 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3831 | |
| 3832 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3833 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3834 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 3835 | # versions had trouble with output in subdirs |
| 3836 | am__obj=sub/conftest.${OBJEXT-o} |
| 3837 | am__minus_obj="-o $am__obj" |
| 3838 | case $depmode in |
| 3839 | gcc) |
| 3840 | # This depmode causes a compiler race in universal mode. |
| 3841 | test "$am__universal" = false || continue |
| 3842 | ;; |
| 3843 | nosideeffect) |
| 3844 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3845 | # only be used when explicitly requested |
| 3846 | if test "x$enable_dependency_tracking" = xyes; then |
| 3847 | continue |
| 3848 | else |
| 3849 | break |
| 3850 | fi |
| 3851 | ;; |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3852 | msvisualcpp | msvcmsys) |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3853 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 3854 | # not run yet. These depmodes are late enough in the game, and |
| 3855 | # so weak that their functioning should not be impacted. |
| 3856 | am__obj=conftest.${OBJEXT-o} |
| 3857 | am__minus_obj= |
| 3858 | ;; |
| 3859 | none) break ;; |
| 3860 | esac |
| 3861 | if depmode=$depmode \ |
| 3862 | source=sub/conftest.c object=$am__obj \ |
| 3863 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3864 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 3865 | >/dev/null 2>conftest.err && |
| 3866 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 3867 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3868 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 3869 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3870 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3871 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3872 | # that says an option was ignored or not supported. |
| 3873 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3874 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3875 | # The diagnosis changed in icc 8.0: |
| 3876 | # icc: Command line remark: option '-MP' not supported |
| 3877 | if (grep 'ignoring option' conftest.err || |
| 3878 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3879 | am_cv_CCAS_dependencies_compiler_type=$depmode |
| 3880 | break |
| 3881 | fi |
| 3882 | fi |
| 3883 | done |
| 3884 | |
| 3885 | cd .. |
| 3886 | rm -rf conftest.dir |
| 3887 | else |
| 3888 | am_cv_CCAS_dependencies_compiler_type=none |
| 3889 | fi |
| 3890 | |
| 3891 | fi |
| 3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 |
| 3893 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } |
| 3894 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type |
| 3895 | |
| 3896 | if |
| 3897 | test "x$enable_dependency_tracking" != xno \ |
| 3898 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then |
| 3899 | am__fastdepCCAS_TRUE= |
| 3900 | am__fastdepCCAS_FALSE='#' |
| 3901 | else |
| 3902 | am__fastdepCCAS_TRUE='#' |
| 3903 | am__fastdepCCAS_FALSE= |
| 3904 | fi |
| 3905 | |
| 3906 | |
| 3907 | ac_ext=c |
| 3908 | ac_cpp='$CPP $CPPFLAGS' |
| 3909 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3910 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3911 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3912 | if test -n "$ac_tool_prefix"; then |
| 3913 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3914 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3916 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3917 | if test "${ac_cv_prog_CC+set}" = set; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3918 | $as_echo_n "(cached) " >&6 |
| 3919 | else |
| 3920 | if test -n "$CC"; then |
| 3921 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3922 | else |
| 3923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3924 | for as_dir in $PATH |
| 3925 | do |
| 3926 | IFS=$as_save_IFS |
| 3927 | test -z "$as_dir" && as_dir=. |
| 3928 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3929 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3930 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3932 | break 2 |
| 3933 | fi |
| 3934 | done |
| 3935 | done |
| 3936 | IFS=$as_save_IFS |
| 3937 | |
| 3938 | fi |
| 3939 | fi |
| 3940 | CC=$ac_cv_prog_CC |
| 3941 | if test -n "$CC"; then |
| 3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3943 | $as_echo "$CC" >&6; } |
| 3944 | else |
| 3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3946 | $as_echo "no" >&6; } |
| 3947 | fi |
| 3948 | |
| 3949 | |
| 3950 | fi |
| 3951 | if test -z "$ac_cv_prog_CC"; then |
| 3952 | ac_ct_CC=$CC |
| 3953 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3954 | set dummy gcc; ac_word=$2 |
| 3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3956 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3957 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3958 | $as_echo_n "(cached) " >&6 |
| 3959 | else |
| 3960 | if test -n "$ac_ct_CC"; then |
| 3961 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3962 | else |
| 3963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3964 | for as_dir in $PATH |
| 3965 | do |
| 3966 | IFS=$as_save_IFS |
| 3967 | test -z "$as_dir" && as_dir=. |
| 3968 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 3969 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3970 | ac_cv_prog_ac_ct_CC="gcc" |
| 3971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3972 | break 2 |
| 3973 | fi |
| 3974 | done |
| 3975 | done |
| 3976 | IFS=$as_save_IFS |
| 3977 | |
| 3978 | fi |
| 3979 | fi |
| 3980 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3981 | if test -n "$ac_ct_CC"; then |
| 3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3983 | $as_echo "$ac_ct_CC" >&6; } |
| 3984 | else |
| 3985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3986 | $as_echo "no" >&6; } |
| 3987 | fi |
| 3988 | |
| 3989 | if test "x$ac_ct_CC" = x; then |
| 3990 | CC="" |
| 3991 | else |
| 3992 | case $cross_compiling:$ac_tool_warned in |
| 3993 | yes:) |
| 3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3995 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3996 | ac_tool_warned=yes ;; |
| 3997 | esac |
| 3998 | CC=$ac_ct_CC |
| 3999 | fi |
| 4000 | else |
| 4001 | CC="$ac_cv_prog_CC" |
| 4002 | fi |
| 4003 | |
| 4004 | if test -z "$CC"; then |
| 4005 | if test -n "$ac_tool_prefix"; then |
| 4006 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4007 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4009 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4010 | if test "${ac_cv_prog_CC+set}" = set; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4011 | $as_echo_n "(cached) " >&6 |
| 4012 | else |
| 4013 | if test -n "$CC"; then |
| 4014 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4015 | else |
| 4016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4017 | for as_dir in $PATH |
| 4018 | do |
| 4019 | IFS=$as_save_IFS |
| 4020 | test -z "$as_dir" && as_dir=. |
| 4021 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4022 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4023 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4025 | break 2 |
| 4026 | fi |
| 4027 | done |
| 4028 | done |
| 4029 | IFS=$as_save_IFS |
| 4030 | |
| 4031 | fi |
| 4032 | fi |
| 4033 | CC=$ac_cv_prog_CC |
| 4034 | if test -n "$CC"; then |
| 4035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4036 | $as_echo "$CC" >&6; } |
| 4037 | else |
| 4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4039 | $as_echo "no" >&6; } |
| 4040 | fi |
| 4041 | |
| 4042 | |
| 4043 | fi |
| 4044 | fi |
| 4045 | if test -z "$CC"; then |
| 4046 | # Extract the first word of "cc", so it can be a program name with args. |
| 4047 | set dummy cc; ac_word=$2 |
| 4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4049 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4050 | if test "${ac_cv_prog_CC+set}" = set; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4051 | $as_echo_n "(cached) " >&6 |
| 4052 | else |
| 4053 | if test -n "$CC"; then |
| 4054 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4055 | else |
| 4056 | ac_prog_rejected=no |
| 4057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4058 | for as_dir in $PATH |
| 4059 | do |
| 4060 | IFS=$as_save_IFS |
| 4061 | test -z "$as_dir" && as_dir=. |
| 4062 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4063 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4064 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4065 | ac_prog_rejected=yes |
| 4066 | continue |
| 4067 | fi |
| 4068 | ac_cv_prog_CC="cc" |
| 4069 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4070 | break 2 |
| 4071 | fi |
| 4072 | done |
| 4073 | done |
| 4074 | IFS=$as_save_IFS |
| 4075 | |
| 4076 | if test $ac_prog_rejected = yes; then |
| 4077 | # We found a bogon in the path, so make sure we never use it. |
| 4078 | set dummy $ac_cv_prog_CC |
| 4079 | shift |
| 4080 | if test $# != 0; then |
| 4081 | # We chose a different compiler from the bogus one. |
| 4082 | # However, it has the same basename, so the bogon will be chosen |
| 4083 | # first if we set CC to just the basename; use the full file name. |
| 4084 | shift |
| 4085 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4086 | fi |
| 4087 | fi |
| 4088 | fi |
| 4089 | fi |
| 4090 | CC=$ac_cv_prog_CC |
| 4091 | if test -n "$CC"; then |
| 4092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4093 | $as_echo "$CC" >&6; } |
| 4094 | else |
| 4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4096 | $as_echo "no" >&6; } |
| 4097 | fi |
| 4098 | |
| 4099 | |
| 4100 | fi |
| 4101 | if test -z "$CC"; then |
| 4102 | if test -n "$ac_tool_prefix"; then |
| 4103 | for ac_prog in cl.exe |
| 4104 | do |
| 4105 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4106 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4108 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4109 | if test "${ac_cv_prog_CC+set}" = set; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4110 | $as_echo_n "(cached) " >&6 |
| 4111 | else |
| 4112 | if test -n "$CC"; then |
| 4113 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4114 | else |
| 4115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4116 | for as_dir in $PATH |
| 4117 | do |
| 4118 | IFS=$as_save_IFS |
| 4119 | test -z "$as_dir" && as_dir=. |
| 4120 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4121 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4122 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4124 | break 2 |
| 4125 | fi |
| 4126 | done |
| 4127 | done |
| 4128 | IFS=$as_save_IFS |
| 4129 | |
| 4130 | fi |
| 4131 | fi |
| 4132 | CC=$ac_cv_prog_CC |
| 4133 | if test -n "$CC"; then |
| 4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4135 | $as_echo "$CC" >&6; } |
| 4136 | else |
| 4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4138 | $as_echo "no" >&6; } |
| 4139 | fi |
| 4140 | |
| 4141 | |
| 4142 | test -n "$CC" && break |
| 4143 | done |
| 4144 | fi |
| 4145 | if test -z "$CC"; then |
| 4146 | ac_ct_CC=$CC |
| 4147 | for ac_prog in cl.exe |
| 4148 | do |
| 4149 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4150 | set dummy $ac_prog; ac_word=$2 |
| 4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4152 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4153 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4154 | $as_echo_n "(cached) " >&6 |
| 4155 | else |
| 4156 | if test -n "$ac_ct_CC"; then |
| 4157 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4158 | else |
| 4159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4160 | for as_dir in $PATH |
| 4161 | do |
| 4162 | IFS=$as_save_IFS |
| 4163 | test -z "$as_dir" && as_dir=. |
| 4164 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4165 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4166 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4168 | break 2 |
| 4169 | fi |
| 4170 | done |
| 4171 | done |
| 4172 | IFS=$as_save_IFS |
| 4173 | |
| 4174 | fi |
| 4175 | fi |
| 4176 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4177 | if test -n "$ac_ct_CC"; then |
| 4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4179 | $as_echo "$ac_ct_CC" >&6; } |
| 4180 | else |
| 4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4182 | $as_echo "no" >&6; } |
| 4183 | fi |
| 4184 | |
| 4185 | |
| 4186 | test -n "$ac_ct_CC" && break |
| 4187 | done |
| 4188 | |
| 4189 | if test "x$ac_ct_CC" = x; then |
| 4190 | CC="" |
| 4191 | else |
| 4192 | case $cross_compiling:$ac_tool_warned in |
| 4193 | yes:) |
| 4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4195 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4196 | ac_tool_warned=yes ;; |
| 4197 | esac |
| 4198 | CC=$ac_ct_CC |
| 4199 | fi |
| 4200 | fi |
| 4201 | |
| 4202 | fi |
| 4203 | |
| 4204 | |
| 4205 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4206 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4207 | as_fn_error "no acceptable C compiler found in \$PATH |
| 4208 | See \`config.log' for more details." "$LINENO" 5; } |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4209 | |
| 4210 | # Provide some information about the compiler. |
| 4211 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4212 | set X $ac_compile |
| 4213 | ac_compiler=$2 |
| 4214 | for ac_option in --version -v -V -qversion; do |
| 4215 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4216 | case "(($ac_try" in |
| 4217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4218 | *) ac_try_echo=$ac_try;; |
| 4219 | esac |
| 4220 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4221 | $as_echo "$ac_try_echo"; } >&5 |
| 4222 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4223 | ac_status=$? |
| 4224 | if test -s conftest.err; then |
| 4225 | sed '10a\ |
| 4226 | ... rest of stderr output deleted ... |
| 4227 | 10q' conftest.err >conftest.er1 |
| 4228 | cat conftest.er1 >&5 |
| 4229 | fi |
| 4230 | rm -f conftest.er1 conftest.err |
| 4231 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4232 | test $ac_status = 0; } |
| 4233 | done |
| 4234 | |
| 4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4236 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4237 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4238 | $as_echo_n "(cached) " >&6 |
| 4239 | else |
| 4240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4241 | /* end confdefs.h. */ |
| 4242 | |
| 4243 | int |
| 4244 | main () |
| 4245 | { |
| 4246 | #ifndef __GNUC__ |
| 4247 | choke me |
| 4248 | #endif |
| 4249 | |
| 4250 | ; |
| 4251 | return 0; |
| 4252 | } |
| 4253 | _ACEOF |
| 4254 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4255 | ac_compiler_gnu=yes |
| 4256 | else |
| 4257 | ac_compiler_gnu=no |
| 4258 | fi |
| 4259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4260 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4261 | |
| 4262 | fi |
| 4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4264 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4265 | if test $ac_compiler_gnu = yes; then |
| 4266 | GCC=yes |
| 4267 | else |
| 4268 | GCC= |
| 4269 | fi |
| 4270 | ac_test_CFLAGS=${CFLAGS+set} |
| 4271 | ac_save_CFLAGS=$CFLAGS |
| 4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4273 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4274 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4275 | $as_echo_n "(cached) " >&6 |
| 4276 | else |
| 4277 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4278 | ac_c_werror_flag=yes |
| 4279 | ac_cv_prog_cc_g=no |
| 4280 | CFLAGS="-g" |
| 4281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4282 | /* end confdefs.h. */ |
| 4283 | |
| 4284 | int |
| 4285 | main () |
| 4286 | { |
| 4287 | |
| 4288 | ; |
| 4289 | return 0; |
| 4290 | } |
| 4291 | _ACEOF |
| 4292 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4293 | ac_cv_prog_cc_g=yes |
| 4294 | else |
| 4295 | CFLAGS="" |
| 4296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4297 | /* end confdefs.h. */ |
| 4298 | |
| 4299 | int |
| 4300 | main () |
| 4301 | { |
| 4302 | |
| 4303 | ; |
| 4304 | return 0; |
| 4305 | } |
| 4306 | _ACEOF |
| 4307 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4308 | |
| 4309 | else |
| 4310 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4311 | CFLAGS="-g" |
| 4312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4313 | /* end confdefs.h. */ |
| 4314 | |
| 4315 | int |
| 4316 | main () |
| 4317 | { |
| 4318 | |
| 4319 | ; |
| 4320 | return 0; |
| 4321 | } |
| 4322 | _ACEOF |
| 4323 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4324 | ac_cv_prog_cc_g=yes |
| 4325 | fi |
| 4326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4327 | fi |
| 4328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4329 | fi |
| 4330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4331 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4332 | fi |
| 4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4334 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4335 | if test "$ac_test_CFLAGS" = set; then |
| 4336 | CFLAGS=$ac_save_CFLAGS |
| 4337 | elif test $ac_cv_prog_cc_g = yes; then |
| 4338 | if test "$GCC" = yes; then |
| 4339 | CFLAGS="-g -O2" |
| 4340 | else |
| 4341 | CFLAGS="-g" |
| 4342 | fi |
| 4343 | else |
| 4344 | if test "$GCC" = yes; then |
| 4345 | CFLAGS="-O2" |
| 4346 | else |
| 4347 | CFLAGS= |
| 4348 | fi |
| 4349 | fi |
| 4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4351 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4352 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4353 | $as_echo_n "(cached) " >&6 |
| 4354 | else |
| 4355 | ac_cv_prog_cc_c89=no |
| 4356 | ac_save_CC=$CC |
| 4357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4358 | /* end confdefs.h. */ |
| 4359 | #include <stdarg.h> |
| 4360 | #include <stdio.h> |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4361 | #include <sys/types.h> |
| 4362 | #include <sys/stat.h> |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4363 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4364 | struct buf { int x; }; |
| 4365 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4366 | static char *e (p, i) |
| 4367 | char **p; |
| 4368 | int i; |
| 4369 | { |
| 4370 | return p[i]; |
| 4371 | } |
| 4372 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4373 | { |
| 4374 | char *s; |
| 4375 | va_list v; |
| 4376 | va_start (v,p); |
| 4377 | s = g (p, va_arg (v,int)); |
| 4378 | va_end (v); |
| 4379 | return s; |
| 4380 | } |
| 4381 | |
| 4382 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4383 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4384 | These don't provoke an error unfortunately, instead are silently treated |
| 4385 | as 'x'. The following induces an error, until -std is added to get |
| 4386 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4387 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4388 | that's true only with -std. */ |
| 4389 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4390 | |
| 4391 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4392 | inside strings and character constants. */ |
| 4393 | #define FOO(x) 'x' |
| 4394 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4395 | |
| 4396 | int test (int i, double x); |
| 4397 | struct s1 {int (*f) (int a);}; |
| 4398 | struct s2 {int (*f) (double a);}; |
| 4399 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4400 | int argc; |
| 4401 | char **argv; |
| 4402 | int |
| 4403 | main () |
| 4404 | { |
| 4405 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4406 | ; |
| 4407 | return 0; |
| 4408 | } |
| 4409 | _ACEOF |
| 4410 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4411 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4412 | do |
| 4413 | CC="$ac_save_CC $ac_arg" |
| 4414 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4415 | ac_cv_prog_cc_c89=$ac_arg |
| 4416 | fi |
| 4417 | rm -f core conftest.err conftest.$ac_objext |
| 4418 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4419 | done |
| 4420 | rm -f conftest.$ac_ext |
| 4421 | CC=$ac_save_CC |
| 4422 | |
| 4423 | fi |
| 4424 | # AC_CACHE_VAL |
| 4425 | case "x$ac_cv_prog_cc_c89" in |
| 4426 | x) |
| 4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4428 | $as_echo "none needed" >&6; } ;; |
| 4429 | xno) |
| 4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4431 | $as_echo "unsupported" >&6; } ;; |
| 4432 | *) |
| 4433 | CC="$CC $ac_cv_prog_cc_c89" |
| 4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4435 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4436 | esac |
| 4437 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4438 | |
| 4439 | fi |
| 4440 | |
| 4441 | ac_ext=c |
| 4442 | ac_cpp='$CPP $CPPFLAGS' |
| 4443 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4444 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4445 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4446 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4447 | depcc="$CC" am_compiler_list= |
| 4448 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4450 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4451 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4452 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4453 | else |
| 4454 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4455 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4456 | # making bogus files that we don't know about and never remove. For |
| 4457 | # instance it was reported that on HP-UX the gcc test will end up |
| 4458 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4459 | # in D'. |
| 4460 | mkdir conftest.dir |
| 4461 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4462 | # using a relative directory. |
| 4463 | cp "$am_depcomp" conftest.dir |
| 4464 | cd conftest.dir |
| 4465 | # We will build objects and dependencies in a subdirectory because |
| 4466 | # it helps to detect inapplicable dependency modes. For instance |
| 4467 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4468 | # side effect of compilation, but ICC will put the dependencies in |
| 4469 | # the current directory while Tru64 will put them in the object |
| 4470 | # directory. |
| 4471 | mkdir sub |
| 4472 | |
| 4473 | am_cv_CC_dependencies_compiler_type=none |
| 4474 | if test "$am_compiler_list" = ""; then |
| 4475 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4476 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4477 | am__universal=false |
| 4478 | case " $depcc " in #( |
| 4479 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4480 | esac |
| 4481 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4482 | for depmode in $am_compiler_list; do |
| 4483 | # Setup a source with many dependencies, because some compilers |
| 4484 | # like to wrap large dependency lists on column 80 (with \), and |
| 4485 | # we should not choose a depcomp mode which is confused by this. |
| 4486 | # |
| 4487 | # We need to recreate these files for each test, as the compiler may |
| 4488 | # overwrite some of them when testing with obscure command lines. |
| 4489 | # This happens at least with the AIX C compiler. |
| 4490 | : > sub/conftest.c |
| 4491 | for i in 1 2 3 4 5 6; do |
| 4492 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4493 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4494 | # Solaris 8's {/usr,}/bin/sh. |
| 4495 | touch sub/conftst$i.h |
| 4496 | done |
| 4497 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4498 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4499 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4500 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4501 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 4502 | # versions had trouble with output in subdirs |
| 4503 | am__obj=sub/conftest.${OBJEXT-o} |
| 4504 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4505 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4506 | gcc) |
| 4507 | # This depmode causes a compiler race in universal mode. |
| 4508 | test "$am__universal" = false || continue |
| 4509 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4510 | nosideeffect) |
| 4511 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4512 | # only be used when explicitly requested |
| 4513 | if test "x$enable_dependency_tracking" = xyes; then |
| 4514 | continue |
| 4515 | else |
| 4516 | break |
| 4517 | fi |
| 4518 | ;; |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4519 | msvisualcpp | msvcmsys) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4520 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 4521 | # not run yet. These depmodes are late enough in the game, and |
| 4522 | # so weak that their functioning should not be impacted. |
| 4523 | am__obj=conftest.${OBJEXT-o} |
| 4524 | am__minus_obj= |
| 4525 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4526 | none) break ;; |
| 4527 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4528 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4529 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4530 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4531 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4532 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4533 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4534 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4535 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4536 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4537 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4538 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4539 | # that says an option was ignored or not supported. |
| 4540 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4541 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4542 | # The diagnosis changed in icc 8.0: |
| 4543 | # icc: Command line remark: option '-MP' not supported |
| 4544 | if (grep 'ignoring option' conftest.err || |
| 4545 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4546 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4547 | break |
| 4548 | fi |
| 4549 | fi |
| 4550 | done |
| 4551 | |
| 4552 | cd .. |
| 4553 | rm -rf conftest.dir |
| 4554 | else |
| 4555 | am_cv_CC_dependencies_compiler_type=none |
| 4556 | fi |
| 4557 | |
| 4558 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4560 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4561 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4562 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4563 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4564 | test "x$enable_dependency_tracking" != xno \ |
| 4565 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4566 | am__fastdepCC_TRUE= |
| 4567 | am__fastdepCC_FALSE='#' |
| 4568 | else |
| 4569 | am__fastdepCC_TRUE='#' |
| 4570 | am__fastdepCC_FALSE= |
| 4571 | fi |
| 4572 | |
| 4573 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 4574 | if test "x$CC" != xcc; then |
| 4575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
| 4576 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
| 4577 | else |
| 4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
| 4579 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
| 4580 | fi |
| 4581 | set dummy $CC; ac_cc=`$as_echo "$2" | |
| 4582 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4583 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 4584 | $as_echo_n "(cached) " >&6 |
| 4585 | else |
| 4586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4587 | /* end confdefs.h. */ |
| 4588 | |
| 4589 | int |
| 4590 | main () |
| 4591 | { |
| 4592 | |
| 4593 | ; |
| 4594 | return 0; |
| 4595 | } |
| 4596 | _ACEOF |
| 4597 | # Make sure it works both with $CC and with simple cc. |
| 4598 | # We do the test twice because some compilers refuse to overwrite an |
| 4599 | # existing .o file with -o, though they will create one. |
| 4600 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 4601 | rm -f conftest2.* |
| 4602 | if { { case "(($ac_try" in |
| 4603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4604 | *) ac_try_echo=$ac_try;; |
| 4605 | esac |
| 4606 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4607 | $as_echo "$ac_try_echo"; } >&5 |
| 4608 | (eval "$ac_try") 2>&5 |
| 4609 | ac_status=$? |
| 4610 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4611 | test $ac_status = 0; } && |
| 4612 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 4613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4614 | *) ac_try_echo=$ac_try;; |
| 4615 | esac |
| 4616 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4617 | $as_echo "$ac_try_echo"; } >&5 |
| 4618 | (eval "$ac_try") 2>&5 |
| 4619 | ac_status=$? |
| 4620 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4621 | test $ac_status = 0; }; |
| 4622 | then |
| 4623 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
| 4624 | if test "x$CC" != xcc; then |
| 4625 | # Test first that cc exists at all. |
| 4626 | if { ac_try='cc -c conftest.$ac_ext >&5' |
| 4627 | { { case "(($ac_try" in |
| 4628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4629 | *) ac_try_echo=$ac_try;; |
| 4630 | esac |
| 4631 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4632 | $as_echo "$ac_try_echo"; } >&5 |
| 4633 | (eval "$ac_try") 2>&5 |
| 4634 | ac_status=$? |
| 4635 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4636 | test $ac_status = 0; }; }; then |
| 4637 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 4638 | rm -f conftest2.* |
| 4639 | if { { case "(($ac_try" in |
| 4640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4641 | *) ac_try_echo=$ac_try;; |
| 4642 | esac |
| 4643 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4644 | $as_echo "$ac_try_echo"; } >&5 |
| 4645 | (eval "$ac_try") 2>&5 |
| 4646 | ac_status=$? |
| 4647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4648 | test $ac_status = 0; } && |
| 4649 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 4650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4651 | *) ac_try_echo=$ac_try;; |
| 4652 | esac |
| 4653 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4654 | $as_echo "$ac_try_echo"; } >&5 |
| 4655 | (eval "$ac_try") 2>&5 |
| 4656 | ac_status=$? |
| 4657 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4658 | test $ac_status = 0; }; |
| 4659 | then |
| 4660 | # cc works too. |
| 4661 | : |
| 4662 | else |
| 4663 | # cc exists but doesn't like -o. |
| 4664 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 4665 | fi |
| 4666 | fi |
| 4667 | fi |
| 4668 | else |
| 4669 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 4670 | fi |
| 4671 | rm -f core conftest* |
| 4672 | |
| 4673 | fi |
| 4674 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
| 4675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4676 | $as_echo "yes" >&6; } |
| 4677 | else |
| 4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4679 | $as_echo "no" >&6; } |
| 4680 | |
| 4681 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
| 4682 | |
| 4683 | fi |
| 4684 | |
| 4685 | # FIXME: we rely on the cache variable name because |
| 4686 | # there is no other way. |
| 4687 | set dummy $CC |
| 4688 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 4689 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
| 4690 | if test "$am_t" != yes; then |
| 4691 | # Losing compiler, so override with the script. |
| 4692 | # FIXME: It is wrong to rewrite CC. |
| 4693 | # But if we don't then we get into trouble of one sort or another. |
| 4694 | # A longer-term fix would be to have automake use am__CC in this case, |
| 4695 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 4696 | CC="$am_aux_dir/compile $CC" |
| 4697 | fi |
| 4698 | |
| 4699 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4700 | ac_ext=c |
| 4701 | ac_cpp='$CPP $CPPFLAGS' |
| 4702 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4703 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4704 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4706 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4707 | # On Suns, sometimes $CPP names a directory. |
| 4708 | if test -n "$CPP" && test -d "$CPP"; then |
| 4709 | CPP= |
| 4710 | fi |
| 4711 | if test -z "$CPP"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4712 | if test "${ac_cv_prog_CPP+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4713 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4714 | else |
| 4715 | # Double quotes because CPP needs to be expanded |
| 4716 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4717 | do |
| 4718 | ac_preproc_ok=false |
| 4719 | for ac_c_preproc_warn_flag in '' yes |
| 4720 | do |
| 4721 | # Use a header file that comes with gcc, so configuring glibc |
| 4722 | # with a fresh cross-compiler works. |
| 4723 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4724 | # <limits.h> exists even on freestanding compilers. |
| 4725 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4726 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4728 | /* end confdefs.h. */ |
| 4729 | #ifdef __STDC__ |
| 4730 | # include <limits.h> |
| 4731 | #else |
| 4732 | # include <assert.h> |
| 4733 | #endif |
| 4734 | Syntax error |
| 4735 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4736 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4737 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4738 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4739 | # Broken: fails on valid input. |
| 4740 | continue |
| 4741 | fi |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4742 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4743 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4744 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4745 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4747 | /* end confdefs.h. */ |
| 4748 | #include <ac_nonexistent.h> |
| 4749 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4750 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4751 | # Broken: success on invalid input. |
| 4752 | continue |
| 4753 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4754 | # Passes both tests. |
| 4755 | ac_preproc_ok=: |
| 4756 | break |
| 4757 | fi |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4758 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4759 | |
| 4760 | done |
| 4761 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4762 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4763 | if $ac_preproc_ok; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4764 | break |
| 4765 | fi |
| 4766 | |
| 4767 | done |
| 4768 | ac_cv_prog_CPP=$CPP |
| 4769 | |
| 4770 | fi |
| 4771 | CPP=$ac_cv_prog_CPP |
| 4772 | else |
| 4773 | ac_cv_prog_CPP=$CPP |
| 4774 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4776 | $as_echo "$CPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4777 | ac_preproc_ok=false |
| 4778 | for ac_c_preproc_warn_flag in '' yes |
| 4779 | do |
| 4780 | # Use a header file that comes with gcc, so configuring glibc |
| 4781 | # with a fresh cross-compiler works. |
| 4782 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4783 | # <limits.h> exists even on freestanding compilers. |
| 4784 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4785 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4787 | /* end confdefs.h. */ |
| 4788 | #ifdef __STDC__ |
| 4789 | # include <limits.h> |
| 4790 | #else |
| 4791 | # include <assert.h> |
| 4792 | #endif |
| 4793 | Syntax error |
| 4794 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4795 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4796 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4797 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4798 | # Broken: fails on valid input. |
| 4799 | continue |
| 4800 | fi |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4801 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4802 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4803 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4804 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4806 | /* end confdefs.h. */ |
| 4807 | #include <ac_nonexistent.h> |
| 4808 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4809 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4810 | # Broken: success on invalid input. |
| 4811 | continue |
| 4812 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4813 | # Passes both tests. |
| 4814 | ac_preproc_ok=: |
| 4815 | break |
| 4816 | fi |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4817 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4818 | |
| 4819 | done |
| 4820 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4821 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4822 | if $ac_preproc_ok; then : |
| 4823 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4824 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4825 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4826 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4827 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4828 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4829 | fi |
| 4830 | |
| 4831 | ac_ext=c |
| 4832 | ac_cpp='$CPP $CPPFLAGS' |
| 4833 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4834 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4835 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4836 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4837 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4838 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4839 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4840 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4841 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4842 | if test -z "$CXX"; then |
| 4843 | if test -n "$CCC"; then |
| 4844 | CXX=$CCC |
| 4845 | else |
| 4846 | if test -n "$ac_tool_prefix"; then |
| 4847 | 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] | 4848 | do |
| 4849 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4850 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4852 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4853 | if test "${ac_cv_prog_CXX+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4854 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4855 | else |
| 4856 | if test -n "$CXX"; then |
| 4857 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4858 | else |
| 4859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4860 | for as_dir in $PATH |
| 4861 | do |
| 4862 | IFS=$as_save_IFS |
| 4863 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4864 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4866 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4867 | $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] | 4868 | break 2 |
| 4869 | fi |
| 4870 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4871 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4872 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4873 | |
| 4874 | fi |
| 4875 | fi |
| 4876 | CXX=$ac_cv_prog_CXX |
| 4877 | if test -n "$CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4879 | $as_echo "$CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4880 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4882 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4883 | fi |
| 4884 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4885 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4886 | test -n "$CXX" && break |
| 4887 | done |
| 4888 | fi |
| 4889 | if test -z "$CXX"; then |
| 4890 | ac_ct_CXX=$CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4891 | 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] | 4892 | do |
| 4893 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4894 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4896 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4897 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4898 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4899 | else |
| 4900 | if test -n "$ac_ct_CXX"; then |
| 4901 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4902 | else |
| 4903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4904 | for as_dir in $PATH |
| 4905 | do |
| 4906 | IFS=$as_save_IFS |
| 4907 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4908 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4909 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4910 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4911 | $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] | 4912 | break 2 |
| 4913 | fi |
| 4914 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4915 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4916 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4917 | |
| 4918 | fi |
| 4919 | fi |
| 4920 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4921 | if test -n "$ac_ct_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4923 | $as_echo "$ac_ct_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4924 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4926 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4927 | fi |
| 4928 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4929 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4930 | test -n "$ac_ct_CXX" && break |
| 4931 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4932 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4933 | if test "x$ac_ct_CXX" = x; then |
| 4934 | CXX="g++" |
| 4935 | else |
| 4936 | case $cross_compiling:$ac_tool_warned in |
| 4937 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4939 | $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] | 4940 | ac_tool_warned=yes ;; |
| 4941 | esac |
| 4942 | CXX=$ac_ct_CXX |
| 4943 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4944 | fi |
| 4945 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4946 | fi |
| 4947 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4948 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4949 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 4950 | set X $ac_compile |
| 4951 | ac_compiler=$2 |
| 4952 | for ac_option in --version -v -V -qversion; do |
| 4953 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4954 | case "(($ac_try" in |
| 4955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4956 | *) ac_try_echo=$ac_try;; |
| 4957 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4958 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4959 | $as_echo "$ac_try_echo"; } >&5 |
| 4960 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4961 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4962 | if test -s conftest.err; then |
| 4963 | sed '10a\ |
| 4964 | ... rest of stderr output deleted ... |
| 4965 | 10q' conftest.err >conftest.er1 |
| 4966 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4967 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 4968 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4969 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4970 | test $ac_status = 0; } |
| 4971 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4972 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 4974 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 4975 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4976 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4977 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4979 | /* end confdefs.h. */ |
| 4980 | |
| 4981 | int |
| 4982 | main () |
| 4983 | { |
| 4984 | #ifndef __GNUC__ |
| 4985 | choke me |
| 4986 | #endif |
| 4987 | |
| 4988 | ; |
| 4989 | return 0; |
| 4990 | } |
| 4991 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4992 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4993 | ac_compiler_gnu=yes |
| 4994 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4995 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4996 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4998 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4999 | |
| 5000 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5002 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 5003 | if test $ac_compiler_gnu = yes; then |
| 5004 | GXX=yes |
| 5005 | else |
| 5006 | GXX= |
| 5007 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5008 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5009 | ac_save_CXXFLAGS=$CXXFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 5011 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5012 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5013 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5014 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5015 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5016 | ac_cxx_werror_flag=yes |
| 5017 | ac_cv_prog_cxx_g=no |
| 5018 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5020 | /* end confdefs.h. */ |
| 5021 | |
| 5022 | int |
| 5023 | main () |
| 5024 | { |
| 5025 | |
| 5026 | ; |
| 5027 | return 0; |
| 5028 | } |
| 5029 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5030 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5031 | ac_cv_prog_cxx_g=yes |
| 5032 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5033 | CXXFLAGS="" |
| 5034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5035 | /* end confdefs.h. */ |
| 5036 | |
| 5037 | int |
| 5038 | main () |
| 5039 | { |
| 5040 | |
| 5041 | ; |
| 5042 | return 0; |
| 5043 | } |
| 5044 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5045 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5046 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5047 | else |
| 5048 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5049 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5051 | /* end confdefs.h. */ |
| 5052 | |
| 5053 | int |
| 5054 | main () |
| 5055 | { |
| 5056 | |
| 5057 | ; |
| 5058 | return 0; |
| 5059 | } |
| 5060 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5061 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5062 | ac_cv_prog_cxx_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5063 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5065 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5067 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5069 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5070 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 5072 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5073 | if test "$ac_test_CXXFLAGS" = set; then |
| 5074 | CXXFLAGS=$ac_save_CXXFLAGS |
| 5075 | elif test $ac_cv_prog_cxx_g = yes; then |
| 5076 | if test "$GXX" = yes; then |
| 5077 | CXXFLAGS="-g -O2" |
| 5078 | else |
| 5079 | CXXFLAGS="-g" |
| 5080 | fi |
| 5081 | else |
| 5082 | if test "$GXX" = yes; then |
| 5083 | CXXFLAGS="-O2" |
| 5084 | else |
| 5085 | CXXFLAGS= |
| 5086 | fi |
| 5087 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5088 | ac_ext=c |
| 5089 | ac_cpp='$CPP $CPPFLAGS' |
| 5090 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5091 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5092 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5093 | |
| 5094 | depcc="$CXX" am_compiler_list= |
| 5095 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5097 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5098 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5099 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5100 | else |
| 5101 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5102 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5103 | # making bogus files that we don't know about and never remove. For |
| 5104 | # instance it was reported that on HP-UX the gcc test will end up |
| 5105 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 5106 | # in D'. |
| 5107 | mkdir conftest.dir |
| 5108 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5109 | # using a relative directory. |
| 5110 | cp "$am_depcomp" conftest.dir |
| 5111 | cd conftest.dir |
| 5112 | # We will build objects and dependencies in a subdirectory because |
| 5113 | # it helps to detect inapplicable dependency modes. For instance |
| 5114 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5115 | # side effect of compilation, but ICC will put the dependencies in |
| 5116 | # the current directory while Tru64 will put them in the object |
| 5117 | # directory. |
| 5118 | mkdir sub |
| 5119 | |
| 5120 | am_cv_CXX_dependencies_compiler_type=none |
| 5121 | if test "$am_compiler_list" = ""; then |
| 5122 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5123 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5124 | am__universal=false |
| 5125 | case " $depcc " in #( |
| 5126 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5127 | esac |
| 5128 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5129 | for depmode in $am_compiler_list; do |
| 5130 | # Setup a source with many dependencies, because some compilers |
| 5131 | # like to wrap large dependency lists on column 80 (with \), and |
| 5132 | # we should not choose a depcomp mode which is confused by this. |
| 5133 | # |
| 5134 | # We need to recreate these files for each test, as the compiler may |
| 5135 | # overwrite some of them when testing with obscure command lines. |
| 5136 | # This happens at least with the AIX C compiler. |
| 5137 | : > sub/conftest.c |
| 5138 | for i in 1 2 3 4 5 6; do |
| 5139 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5140 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 5141 | # Solaris 8's {/usr,}/bin/sh. |
| 5142 | touch sub/conftst$i.h |
| 5143 | done |
| 5144 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5145 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5146 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 5147 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 5148 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 5149 | # versions had trouble with output in subdirs |
| 5150 | am__obj=sub/conftest.${OBJEXT-o} |
| 5151 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5152 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5153 | gcc) |
| 5154 | # This depmode causes a compiler race in universal mode. |
| 5155 | test "$am__universal" = false || continue |
| 5156 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5157 | nosideeffect) |
| 5158 | # after this tag, mechanisms are not by side-effect, so they'll |
| 5159 | # only be used when explicitly requested |
| 5160 | if test "x$enable_dependency_tracking" = xyes; then |
| 5161 | continue |
| 5162 | else |
| 5163 | break |
| 5164 | fi |
| 5165 | ;; |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5166 | msvisualcpp | msvcmsys) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5167 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 5168 | # not run yet. These depmodes are late enough in the game, and |
| 5169 | # so weak that their functioning should not be impacted. |
| 5170 | am__obj=conftest.${OBJEXT-o} |
| 5171 | am__minus_obj= |
| 5172 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5173 | none) break ;; |
| 5174 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5175 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5176 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5177 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5178 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5179 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5180 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5181 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5182 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5183 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5184 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5185 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5186 | # that says an option was ignored or not supported. |
| 5187 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5188 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5189 | # The diagnosis changed in icc 8.0: |
| 5190 | # icc: Command line remark: option '-MP' not supported |
| 5191 | if (grep 'ignoring option' conftest.err || |
| 5192 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5193 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 5194 | break |
| 5195 | fi |
| 5196 | fi |
| 5197 | done |
| 5198 | |
| 5199 | cd .. |
| 5200 | rm -rf conftest.dir |
| 5201 | else |
| 5202 | am_cv_CXX_dependencies_compiler_type=none |
| 5203 | fi |
| 5204 | |
| 5205 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 5207 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5208 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 5209 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5210 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5211 | test "x$enable_dependency_tracking" != xno \ |
| 5212 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 5213 | am__fastdepCXX_TRUE= |
| 5214 | am__fastdepCXX_FALSE='#' |
| 5215 | else |
| 5216 | am__fastdepCXX_TRUE='#' |
| 5217 | am__fastdepCXX_FALSE= |
| 5218 | fi |
| 5219 | |
| 5220 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5221 | if test -n "$ac_tool_prefix"; then |
| 5222 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5223 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5225 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5226 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5227 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5228 | else |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5229 | if test -n "$RANLIB"; then |
| 5230 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5231 | else |
| 5232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5233 | for as_dir in $PATH |
| 5234 | do |
| 5235 | IFS=$as_save_IFS |
| 5236 | test -z "$as_dir" && as_dir=. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5237 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5238 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5239 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5241 | break 2 |
| 5242 | fi |
| 5243 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5244 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5245 | IFS=$as_save_IFS |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5246 | |
| 5247 | fi |
| 5248 | fi |
| 5249 | RANLIB=$ac_cv_prog_RANLIB |
| 5250 | if test -n "$RANLIB"; then |
| 5251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5252 | $as_echo "$RANLIB" >&6; } |
| 5253 | else |
| 5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5255 | $as_echo "no" >&6; } |
| 5256 | fi |
| 5257 | |
| 5258 | |
| 5259 | fi |
| 5260 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5261 | ac_ct_RANLIB=$RANLIB |
| 5262 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5263 | set dummy ranlib; ac_word=$2 |
| 5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5265 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5266 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5267 | $as_echo_n "(cached) " >&6 |
| 5268 | else |
| 5269 | if test -n "$ac_ct_RANLIB"; then |
| 5270 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5271 | else |
| 5272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5273 | for as_dir in $PATH |
| 5274 | do |
| 5275 | IFS=$as_save_IFS |
| 5276 | test -z "$as_dir" && as_dir=. |
| 5277 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5279 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5281 | break 2 |
| 5282 | fi |
| 5283 | done |
| 5284 | done |
| 5285 | IFS=$as_save_IFS |
| 5286 | |
| 5287 | fi |
| 5288 | fi |
| 5289 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5290 | if test -n "$ac_ct_RANLIB"; then |
| 5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5292 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 5293 | else |
| 5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5295 | $as_echo "no" >&6; } |
| 5296 | fi |
| 5297 | |
| 5298 | if test "x$ac_ct_RANLIB" = x; then |
| 5299 | RANLIB=":" |
| 5300 | else |
| 5301 | case $cross_compiling:$ac_tool_warned in |
| 5302 | yes:) |
| 5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5304 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5305 | ac_tool_warned=yes ;; |
| 5306 | esac |
| 5307 | RANLIB=$ac_ct_RANLIB |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5308 | fi |
| 5309 | else |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5310 | RANLIB="$ac_cv_prog_RANLIB" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5311 | fi |
| 5312 | |
ivan.penkov@gmail.com | 5f6e1f0 | 2012-07-02 22:55:57 +0000 | [diff] [blame] | 5313 | if test "$GCC" = yes; then |
| 5314 | GCC_TRUE= |
| 5315 | GCC_FALSE='#' |
| 5316 | else |
| 5317 | GCC_TRUE='#' |
| 5318 | GCC_FALSE= |
| 5319 | fi |
| 5320 | # let the Makefile know if we're gcc |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5321 | |
| 5322 | |
| 5323 | |
| 5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5325 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5326 | if test "${ac_cv_path_GREP+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5327 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5328 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5329 | if test -z "$GREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5330 | ac_path_GREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5331 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5333 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5334 | do |
| 5335 | IFS=$as_save_IFS |
| 5336 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5337 | for ac_prog in grep ggrep; do |
| 5338 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5339 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5340 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5341 | # Check for GNU ac_path_GREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5342 | # Check for GNU $ac_path_GREP |
| 5343 | case `"$ac_path_GREP" --version 2>&1` in |
| 5344 | *GNU*) |
| 5345 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5346 | *) |
| 5347 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5348 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5349 | while : |
| 5350 | do |
| 5351 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5352 | mv "conftest.tmp" "conftest.in" |
| 5353 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5354 | $as_echo 'GREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5355 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5356 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5357 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5358 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5359 | # Best one so far, save it but keep looking for a better one |
| 5360 | ac_cv_path_GREP="$ac_path_GREP" |
| 5361 | ac_path_GREP_max=$ac_count |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5362 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5363 | # 10*(2^10) chars as input seems more than enough |
| 5364 | test $ac_count -gt 10 && break |
| 5365 | done |
| 5366 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5367 | esac |
| 5368 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5369 | $ac_path_GREP_found && break 3 |
| 5370 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5371 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5372 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5373 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5374 | if test -z "$ac_cv_path_GREP"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5375 | 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] | 5376 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5377 | else |
| 5378 | ac_cv_path_GREP=$GREP |
| 5379 | fi |
| 5380 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5381 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5383 | $as_echo "$ac_cv_path_GREP" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5384 | GREP="$ac_cv_path_GREP" |
| 5385 | |
| 5386 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5388 | $as_echo_n "checking for egrep... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5389 | if test "${ac_cv_path_EGREP+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5390 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5391 | else |
| 5392 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5393 | then ac_cv_path_EGREP="$GREP -E" |
| 5394 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5395 | if test -z "$EGREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5396 | ac_path_EGREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5397 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5399 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5400 | do |
| 5401 | IFS=$as_save_IFS |
| 5402 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5403 | for ac_prog in egrep; do |
| 5404 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5405 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5406 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5407 | # Check for GNU ac_path_EGREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5408 | # Check for GNU $ac_path_EGREP |
| 5409 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5410 | *GNU*) |
| 5411 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5412 | *) |
| 5413 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5414 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5415 | while : |
| 5416 | do |
| 5417 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5418 | mv "conftest.tmp" "conftest.in" |
| 5419 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5420 | $as_echo 'EGREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5421 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5422 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5423 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5424 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5425 | # Best one so far, save it but keep looking for a better one |
| 5426 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5427 | ac_path_EGREP_max=$ac_count |
| 5428 | fi |
| 5429 | # 10*(2^10) chars as input seems more than enough |
| 5430 | test $ac_count -gt 10 && break |
| 5431 | done |
| 5432 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5433 | esac |
| 5434 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5435 | $ac_path_EGREP_found && break 3 |
| 5436 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5437 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5438 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5439 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5440 | if test -z "$ac_cv_path_EGREP"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5441 | 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] | 5442 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5443 | else |
| 5444 | ac_cv_path_EGREP=$EGREP |
| 5445 | fi |
| 5446 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5447 | fi |
| 5448 | fi |
| 5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5450 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 5451 | EGREP="$ac_cv_path_EGREP" |
| 5452 | |
| 5453 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 5455 | $as_echo_n "checking for ANSI C header files... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5456 | if test "${ac_cv_header_stdc+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5457 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5458 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5460 | /* end confdefs.h. */ |
| 5461 | #include <stdlib.h> |
| 5462 | #include <stdarg.h> |
| 5463 | #include <string.h> |
| 5464 | #include <float.h> |
| 5465 | |
| 5466 | int |
| 5467 | main () |
| 5468 | { |
| 5469 | |
| 5470 | ; |
| 5471 | return 0; |
| 5472 | } |
| 5473 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5474 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5475 | ac_cv_header_stdc=yes |
| 5476 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5477 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5478 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5480 | |
| 5481 | if test $ac_cv_header_stdc = yes; then |
| 5482 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5484 | /* end confdefs.h. */ |
| 5485 | #include <string.h> |
| 5486 | |
| 5487 | _ACEOF |
| 5488 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5489 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5490 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5491 | else |
| 5492 | ac_cv_header_stdc=no |
| 5493 | fi |
| 5494 | rm -f conftest* |
| 5495 | |
| 5496 | fi |
| 5497 | |
| 5498 | if test $ac_cv_header_stdc = yes; then |
| 5499 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5501 | /* end confdefs.h. */ |
| 5502 | #include <stdlib.h> |
| 5503 | |
| 5504 | _ACEOF |
| 5505 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5506 | $EGREP "free" >/dev/null 2>&1; then : |
| 5507 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5508 | else |
| 5509 | ac_cv_header_stdc=no |
| 5510 | fi |
| 5511 | rm -f conftest* |
| 5512 | |
| 5513 | fi |
| 5514 | |
| 5515 | if test $ac_cv_header_stdc = yes; then |
| 5516 | # /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] | 5517 | if test "$cross_compiling" = yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5518 | : |
| 5519 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5521 | /* end confdefs.h. */ |
| 5522 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5523 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5524 | #if ((' ' & 0x0FF) == 0x020) |
| 5525 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5526 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5527 | #else |
| 5528 | # define ISLOWER(c) \ |
| 5529 | (('a' <= (c) && (c) <= 'i') \ |
| 5530 | || ('j' <= (c) && (c) <= 'r') \ |
| 5531 | || ('s' <= (c) && (c) <= 'z')) |
| 5532 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5533 | #endif |
| 5534 | |
| 5535 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5536 | int |
| 5537 | main () |
| 5538 | { |
| 5539 | int i; |
| 5540 | for (i = 0; i < 256; i++) |
| 5541 | if (XOR (islower (i), ISLOWER (i)) |
| 5542 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5543 | return 2; |
| 5544 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5545 | } |
| 5546 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5547 | if ac_fn_c_try_run "$LINENO"; then : |
| 5548 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5549 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5550 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5551 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5552 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5553 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5554 | fi |
| 5555 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5556 | fi |
| 5557 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 5559 | $as_echo "$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5560 | if test $ac_cv_header_stdc = yes; then |
| 5561 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5562 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5563 | |
| 5564 | fi |
| 5565 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 5566 | # =========================================================================== |
| 5567 | # http://www.nongnu.org/autoconf-archive/ax_pthread.html |
| 5568 | # =========================================================================== |
| 5569 | # |
| 5570 | # SYNOPSIS |
| 5571 | # |
| 5572 | # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
| 5573 | # |
| 5574 | # DESCRIPTION |
| 5575 | # |
| 5576 | # This macro figures out how to build C programs using POSIX threads. It |
| 5577 | # sets the PTHREAD_LIBS output variable to the threads library and linker |
| 5578 | # flags, and the PTHREAD_CFLAGS output variable to any special C compiler |
| 5579 | # flags that are needed. (The user can also force certain compiler |
| 5580 | # flags/libs to be tested by setting these environment variables.) |
| 5581 | # |
| 5582 | # Also sets PTHREAD_CC to any special C compiler that is needed for |
| 5583 | # multi-threaded programs (defaults to the value of CC otherwise). (This |
| 5584 | # is necessary on AIX to use the special cc_r compiler alias.) |
| 5585 | # |
| 5586 | # NOTE: You are assumed to not only compile your program with these flags, |
| 5587 | # but also link it with them as well. e.g. you should link with |
| 5588 | # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS |
| 5589 | # |
| 5590 | # If you are only building threads programs, you may wish to use these |
| 5591 | # variables in your default LIBS, CFLAGS, and CC: |
| 5592 | # |
| 5593 | # LIBS="$PTHREAD_LIBS $LIBS" |
| 5594 | # CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 5595 | # CC="$PTHREAD_CC" |
| 5596 | # |
| 5597 | # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant |
| 5598 | # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name |
| 5599 | # (e.g. PTHREAD_CREATE_UNDETACHED on AIX). |
| 5600 | # |
| 5601 | # ACTION-IF-FOUND is a list of shell commands to run if a threads library |
| 5602 | # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it |
| 5603 | # is not found. If ACTION-IF-FOUND is not specified, the default action |
| 5604 | # will define HAVE_PTHREAD. |
| 5605 | # |
| 5606 | # Please let the authors know if this macro fails on any platform, or if |
| 5607 | # you have any other suggestions or comments. This macro was based on work |
| 5608 | # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help |
| 5609 | # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by |
| 5610 | # Alejandro Forero Cuervo to the autoconf macro repository. We are also |
| 5611 | # grateful for the helpful feedback of numerous users. |
| 5612 | # |
| 5613 | # LICENSE |
| 5614 | # |
| 5615 | # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> |
| 5616 | # |
| 5617 | # This program is free software: you can redistribute it and/or modify it |
| 5618 | # under the terms of the GNU General Public License as published by the |
| 5619 | # Free Software Foundation, either version 3 of the License, or (at your |
| 5620 | # option) any later version. |
| 5621 | # |
| 5622 | # This program is distributed in the hope that it will be useful, but |
| 5623 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 5624 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
| 5625 | # Public License for more details. |
| 5626 | # |
| 5627 | # You should have received a copy of the GNU General Public License along |
| 5628 | # with this program. If not, see <http://www.gnu.org/licenses/>. |
| 5629 | # |
| 5630 | # As a special exception, the respective Autoconf Macro's copyright owner |
| 5631 | # gives unlimited permission to copy, distribute and modify the configure |
| 5632 | # scripts that are the output of Autoconf when processing the Macro. You |
| 5633 | # need not follow the terms of the GNU General Public License when using |
| 5634 | # or distributing such scripts, even though portions of the text of the |
| 5635 | # Macro appear in them. The GNU General Public License (GPL) does govern |
| 5636 | # all other use of the material that constitutes the Autoconf Macro. |
| 5637 | # |
| 5638 | # This special exception to the GPL applies to versions of the Autoconf |
| 5639 | # Macro released by the Autoconf Archive. When you make and distribute a |
| 5640 | # modified version of the Autoconf Macro, you may extend this special |
| 5641 | # exception to the GPL to apply to your modified version as well. |
| 5642 | |
| 5643 | #serial 6 |
| 5644 | |
| 5645 | # This is what autoupdate's m4 run will expand. It fires |
| 5646 | # the warning (with _au_warn_XXX), outputs it into the |
| 5647 | # updated configure.ac (with AC_DIAGNOSE), and then outputs |
| 5648 | # the replacement expansion. |
| 5649 | |
| 5650 | |
| 5651 | # This is an auxiliary macro that is also run when |
| 5652 | # autoupdate runs m4. It simply calls m4_warning, but |
| 5653 | # we need a wrapper so that each warning is emitted only |
| 5654 | # once. We break the quoting in m4_warning's argument in |
| 5655 | # order to expand this macro's arguments, not AU_DEFUN's. |
| 5656 | |
| 5657 | |
| 5658 | # Finally, this is the expansion that is picked up by |
| 5659 | # autoconf. It tells the user to run autoupdate, and |
| 5660 | # then outputs the replacement expansion. We do not care |
| 5661 | # about autoupdate's warning because that contains |
| 5662 | # information on what to do *after* running autoupdate. |
| 5663 | |
| 5664 | |
| 5665 | |
| 5666 | |
| 5667 | ac_ext=c |
| 5668 | ac_cpp='$CPP $CPPFLAGS' |
| 5669 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5670 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5672 | |
| 5673 | ax_pthread_ok=no |
| 5674 | |
| 5675 | # We used to check for pthread.h first, but this fails if pthread.h |
| 5676 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 5677 | # It gets checked for in the link test anyway. |
| 5678 | |
| 5679 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 5680 | # etcetera environment variables, and if threads linking works using |
| 5681 | # them: |
| 5682 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 5683 | save_CFLAGS="$CFLAGS" |
| 5684 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 5685 | save_LIBS="$LIBS" |
| 5686 | LIBS="$PTHREAD_LIBS $LIBS" |
| 5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 5688 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 5689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5690 | /* end confdefs.h. */ |
| 5691 | |
| 5692 | /* Override any GCC internal prototype to avoid an error. |
| 5693 | Use char because int might match the return type of a GCC |
| 5694 | builtin and then its argument prototype would still apply. */ |
| 5695 | #ifdef __cplusplus |
| 5696 | extern "C" |
| 5697 | #endif |
| 5698 | char pthread_join (); |
| 5699 | int |
| 5700 | main () |
| 5701 | { |
| 5702 | return pthread_join (); |
| 5703 | ; |
| 5704 | return 0; |
| 5705 | } |
| 5706 | _ACEOF |
| 5707 | if ac_fn_c_try_link "$LINENO"; then : |
| 5708 | ax_pthread_ok=yes |
| 5709 | fi |
| 5710 | rm -f core conftest.err conftest.$ac_objext \ |
| 5711 | conftest$ac_exeext conftest.$ac_ext |
| 5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 5713 | $as_echo "$ax_pthread_ok" >&6; } |
| 5714 | if test x"$ax_pthread_ok" = xno; then |
| 5715 | PTHREAD_LIBS="" |
| 5716 | PTHREAD_CFLAGS="" |
| 5717 | fi |
| 5718 | LIBS="$save_LIBS" |
| 5719 | CFLAGS="$save_CFLAGS" |
| 5720 | fi |
| 5721 | |
| 5722 | # We must check for the threads library under a number of different |
| 5723 | # names; the ordering is very important because some systems |
| 5724 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 5725 | # libraries is broken (non-POSIX). |
| 5726 | |
| 5727 | # Create a list of thread flags to try. Items starting with a "-" are |
| 5728 | # C compiler flags, and other items are library names, except for "none" |
| 5729 | # which indicates that we try without any flags at all, and "pthread-config" |
| 5730 | # which is a program returning the flags for the Pth emulation library. |
| 5731 | |
| 5732 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 5733 | |
| 5734 | # The ordering *is* (sometimes) important. Some notes on the |
| 5735 | # individual items follow: |
| 5736 | |
| 5737 | # pthreads: AIX (must check this before -lpthread) |
| 5738 | # none: in case threads are in libc; should be tried before -Kthread and |
| 5739 | # other compiler flags to prevent continual compiler warnings |
| 5740 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 5741 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 5742 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 5743 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 5744 | # -pthreads: Solaris/gcc |
| 5745 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 5746 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 5747 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 5748 | # also defines -D_REENTRANT) |
| 5749 | # ... -mt is also the pthreads flag for HP/aCC |
| 5750 | # pthread: Linux, etcetera |
| 5751 | # --thread-safe: KAI C++ |
| 5752 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 5753 | |
| 5754 | case "${host_cpu}-${host_os}" in |
| 5755 | *solaris*) |
| 5756 | |
| 5757 | # On Solaris (at least, for some versions), libc contains stubbed |
| 5758 | # (non-functional) versions of the pthreads routines, so link-based |
| 5759 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 5760 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 5761 | # a function called by this macro, so we could check for that, but |
| 5762 | # who knows whether they'll stub that too in a future libc.) So, |
| 5763 | # we'll just look for -pthreads and -lpthread first: |
| 5764 | |
| 5765 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 5766 | ;; |
| 5767 | |
| 5768 | *-darwin*) |
| 5769 | acx_pthread_flags="-pthread $acx_pthread_flags" |
| 5770 | ;; |
| 5771 | esac |
| 5772 | |
| 5773 | if test x"$ax_pthread_ok" = xno; then |
| 5774 | for flag in $ax_pthread_flags; do |
| 5775 | |
| 5776 | case $flag in |
| 5777 | none) |
| 5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 5779 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 5780 | ;; |
| 5781 | |
| 5782 | -*) |
| 5783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 5784 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 5785 | PTHREAD_CFLAGS="$flag" |
| 5786 | ;; |
| 5787 | |
| 5788 | pthread-config) |
| 5789 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 5790 | set dummy pthread-config; ac_word=$2 |
| 5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5792 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5793 | if test "${ac_cv_prog_ax_pthread_config+set}" = set; then : |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 5794 | $as_echo_n "(cached) " >&6 |
| 5795 | else |
| 5796 | if test -n "$ax_pthread_config"; then |
| 5797 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 5798 | else |
| 5799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5800 | for as_dir in $PATH |
| 5801 | do |
| 5802 | IFS=$as_save_IFS |
| 5803 | test -z "$as_dir" && as_dir=. |
| 5804 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5805 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 5806 | ac_cv_prog_ax_pthread_config="yes" |
| 5807 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5808 | break 2 |
| 5809 | fi |
| 5810 | done |
| 5811 | done |
| 5812 | IFS=$as_save_IFS |
| 5813 | |
| 5814 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 5815 | fi |
| 5816 | fi |
| 5817 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 5818 | if test -n "$ax_pthread_config"; then |
| 5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 5820 | $as_echo "$ax_pthread_config" >&6; } |
| 5821 | else |
| 5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5823 | $as_echo "no" >&6; } |
| 5824 | fi |
| 5825 | |
| 5826 | |
| 5827 | if test x"$ax_pthread_config" = xno; then continue; fi |
| 5828 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 5829 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 5830 | ;; |
| 5831 | |
| 5832 | *) |
| 5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 5834 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 5835 | PTHREAD_LIBS="-l$flag" |
| 5836 | ;; |
| 5837 | esac |
| 5838 | |
| 5839 | save_LIBS="$LIBS" |
| 5840 | save_CFLAGS="$CFLAGS" |
| 5841 | LIBS="$PTHREAD_LIBS $LIBS" |
| 5842 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 5843 | |
| 5844 | # Check for various functions. We must include pthread.h, |
| 5845 | # since some functions may be macros. (On the Sequent, we |
| 5846 | # need a special flag -Kthread to make this header compile.) |
| 5847 | # We check for pthread_join because it is in -lpthread on IRIX |
| 5848 | # while pthread_create is in libc. We check for pthread_attr_init |
| 5849 | # due to DEC craziness with -lpthreads. We check for |
| 5850 | # pthread_cleanup_push because it is one of the few pthread |
| 5851 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 5852 | # We try pthread_create on general principles. |
| 5853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5854 | /* end confdefs.h. */ |
| 5855 | #include <pthread.h> |
| 5856 | static void routine(void* a) {a=0;} |
| 5857 | static void* start_routine(void* a) {return a;} |
| 5858 | int |
| 5859 | main () |
| 5860 | { |
| 5861 | pthread_t th; pthread_attr_t attr; |
| 5862 | pthread_join(th, 0); |
| 5863 | pthread_attr_init(&attr); |
| 5864 | pthread_cleanup_push(routine, 0); |
| 5865 | pthread_create(&th,0,start_routine,0); |
| 5866 | pthread_cleanup_pop(0); |
| 5867 | ; |
| 5868 | return 0; |
| 5869 | } |
| 5870 | _ACEOF |
| 5871 | if ac_fn_c_try_link "$LINENO"; then : |
| 5872 | ax_pthread_ok=yes |
| 5873 | fi |
| 5874 | rm -f core conftest.err conftest.$ac_objext \ |
| 5875 | conftest$ac_exeext conftest.$ac_ext |
| 5876 | |
| 5877 | LIBS="$save_LIBS" |
| 5878 | CFLAGS="$save_CFLAGS" |
| 5879 | |
| 5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 5881 | $as_echo "$ax_pthread_ok" >&6; } |
| 5882 | if test "x$ax_pthread_ok" = xyes; then |
| 5883 | break; |
| 5884 | fi |
| 5885 | |
| 5886 | PTHREAD_LIBS="" |
| 5887 | PTHREAD_CFLAGS="" |
| 5888 | done |
| 5889 | fi |
| 5890 | |
| 5891 | # Various other checks: |
| 5892 | if test "x$ax_pthread_ok" = xyes; then |
| 5893 | save_LIBS="$LIBS" |
| 5894 | LIBS="$PTHREAD_LIBS $LIBS" |
| 5895 | save_CFLAGS="$CFLAGS" |
| 5896 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 5897 | |
| 5898 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| 5900 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| 5901 | attr_name=unknown |
| 5902 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 5903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5904 | /* end confdefs.h. */ |
| 5905 | #include <pthread.h> |
| 5906 | int |
| 5907 | main () |
| 5908 | { |
| 5909 | int attr=$attr; return attr; |
| 5910 | ; |
| 5911 | return 0; |
| 5912 | } |
| 5913 | _ACEOF |
| 5914 | if ac_fn_c_try_link "$LINENO"; then : |
| 5915 | attr_name=$attr; break |
| 5916 | fi |
| 5917 | rm -f core conftest.err conftest.$ac_objext \ |
| 5918 | conftest$ac_exeext conftest.$ac_ext |
| 5919 | done |
| 5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 5921 | $as_echo "$attr_name" >&6; } |
| 5922 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 5923 | |
| 5924 | cat >>confdefs.h <<_ACEOF |
| 5925 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 5926 | _ACEOF |
| 5927 | |
| 5928 | fi |
| 5929 | |
| 5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 5931 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 5932 | flag=no |
| 5933 | case "${host_cpu}-${host_os}" in |
| 5934 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 5935 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 5936 | esac |
| 5937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 5938 | $as_echo "${flag}" >&6; } |
| 5939 | if test "x$flag" != xno; then |
| 5940 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 5941 | fi |
| 5942 | |
| 5943 | LIBS="$save_LIBS" |
| 5944 | CFLAGS="$save_CFLAGS" |
| 5945 | |
| 5946 | # More AIX lossage: must compile with xlc_r or cc_r |
| 5947 | if test x"$GCC" != xyes; then |
| 5948 | for ac_prog in xlc_r cc_r |
| 5949 | do |
| 5950 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5951 | set dummy $ac_prog; ac_word=$2 |
| 5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5953 | $as_echo_n "checking for $ac_word... " >&6; } |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5954 | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 5955 | $as_echo_n "(cached) " >&6 |
| 5956 | else |
| 5957 | if test -n "$PTHREAD_CC"; then |
| 5958 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 5959 | else |
| 5960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5961 | for as_dir in $PATH |
| 5962 | do |
| 5963 | IFS=$as_save_IFS |
| 5964 | test -z "$as_dir" && as_dir=. |
| 5965 | for ac_exec_ext in '' $ac_executable_extensions; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 5966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 5967 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 5968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5969 | break 2 |
| 5970 | fi |
| 5971 | done |
| 5972 | done |
| 5973 | IFS=$as_save_IFS |
| 5974 | |
| 5975 | fi |
| 5976 | fi |
| 5977 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 5978 | if test -n "$PTHREAD_CC"; then |
| 5979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 5980 | $as_echo "$PTHREAD_CC" >&6; } |
| 5981 | else |
| 5982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5983 | $as_echo "no" >&6; } |
| 5984 | fi |
| 5985 | |
| 5986 | |
| 5987 | test -n "$PTHREAD_CC" && break |
| 5988 | done |
| 5989 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| 5990 | |
| 5991 | else |
| 5992 | PTHREAD_CC=$CC |
| 5993 | fi |
| 5994 | else |
| 5995 | PTHREAD_CC="$CC" |
| 5996 | fi |
| 5997 | |
| 5998 | |
| 5999 | |
| 6000 | |
| 6001 | |
| 6002 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 6003 | if test x"$ax_pthread_ok" = xyes; then |
| 6004 | |
| 6005 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 6006 | |
| 6007 | : |
| 6008 | else |
| 6009 | ax_pthread_ok=no |
| 6010 | |
| 6011 | fi |
| 6012 | ac_ext=c |
| 6013 | ac_cpp='$CPP $CPPFLAGS' |
| 6014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6017 | |
| 6018 | |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6019 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6020 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6021 | inttypes.h stdint.h unistd.h |
| 6022 | do : |
| 6023 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6024 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6025 | " |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6026 | eval as_val=\$$as_ac_Header |
| 6027 | if test "x$as_val" = x""yes; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6028 | cat >>confdefs.h <<_ACEOF |
| 6029 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6030 | _ACEOF |
| 6031 | |
| 6032 | fi |
| 6033 | |
| 6034 | done |
| 6035 | |
| 6036 | |
| 6037 | for ac_header in a.out.h |
| 6038 | do : |
| 6039 | ac_fn_c_check_header_mongrel "$LINENO" "a.out.h" "ac_cv_header_a_out_h" "$ac_includes_default" |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6040 | if test "x$ac_cv_header_a_out_h" = x""yes; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6041 | cat >>confdefs.h <<_ACEOF |
| 6042 | #define HAVE_A_OUT_H 1 |
| 6043 | _ACEOF |
| 6044 | |
| 6045 | fi |
| 6046 | |
| 6047 | done |
| 6048 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6049 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 6050 | # Only build Linux client libs when compiling for Linux |
| 6051 | case $host in |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 6052 | *-*-linux* | *-android* ) |
| 6053 | LINUX_HOST=true |
| 6054 | ;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 6055 | esac |
| 6056 | if test x$LINUX_HOST = xtrue; then |
| 6057 | LINUX_HOST_TRUE= |
| 6058 | LINUX_HOST_FALSE='#' |
| 6059 | else |
| 6060 | LINUX_HOST_TRUE='#' |
| 6061 | LINUX_HOST_FALSE= |
| 6062 | fi |
| 6063 | |
| 6064 | |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 6065 | # Only use Android support headers when compiling for Android |
| 6066 | case $host in |
| 6067 | *-android*) |
| 6068 | ANDROID_HOST=true |
| 6069 | ;; |
| 6070 | esac |
| 6071 | if test x$ANDROID_HOST = xtrue; then |
| 6072 | ANDROID_HOST_TRUE= |
| 6073 | ANDROID_HOST_FALSE='#' |
| 6074 | else |
| 6075 | ANDROID_HOST_TRUE='#' |
| 6076 | ANDROID_HOST_FALSE= |
| 6077 | fi |
| 6078 | |
| 6079 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6080 | # Check whether --enable-m32 was given. |
| 6081 | if test "${enable_m32+set}" = set; then : |
| 6082 | enableval=$enable_m32; case "${enableval}" in |
| 6083 | yes) |
ted.mielczarek | efa30c1 | 2010-09-17 13:36:11 +0000 | [diff] [blame] | 6084 | CFLAGS="${CFLAGS} -m32" |
| 6085 | CXXFLAGS="${CXXFLAGS} -m32" |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6086 | usem32=true |
| 6087 | ;; |
| 6088 | no) |
| 6089 | usem32=false |
| 6090 | ;; |
| 6091 | *) |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6092 | as_fn_error "bad value ${enableval} for --enable-m32" "$LINENO" 5 |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6093 | ;; |
| 6094 | esac |
| 6095 | else |
| 6096 | usem32=false |
| 6097 | fi |
| 6098 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6099 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6100 | # Check whether --enable-processor was given. |
| 6101 | if test "${enable_processor+set}" = set; then : |
| 6102 | enableval=$enable_processor; case "${enableval}" in |
| 6103 | yes) |
| 6104 | disable_processor=false |
| 6105 | ;; |
| 6106 | no) |
| 6107 | disable_processor=true |
| 6108 | ;; |
| 6109 | *) |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6110 | as_fn_error "bad value ${enableval} for --disable-processor" "$LINENO" 5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6111 | ;; |
| 6112 | esac |
| 6113 | else |
| 6114 | disable_processor=false |
| 6115 | fi |
| 6116 | |
| 6117 | if test x$disable_processor = xtrue; then |
| 6118 | DISABLE_PROCESSOR_TRUE= |
| 6119 | DISABLE_PROCESSOR_FALSE='#' |
| 6120 | else |
| 6121 | DISABLE_PROCESSOR_TRUE='#' |
| 6122 | DISABLE_PROCESSOR_FALSE= |
| 6123 | fi |
| 6124 | |
| 6125 | |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6126 | # Check whether --enable-tools was given. |
| 6127 | if test "${enable_tools+set}" = set; then : |
| 6128 | enableval=$enable_tools; case "${enableval}" in |
| 6129 | yes) |
| 6130 | disable_tools=false |
| 6131 | ;; |
| 6132 | no) |
| 6133 | disable_tools=true |
| 6134 | ;; |
| 6135 | *) |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6136 | as_fn_error "bad value ${enableval} for --disable-tools" "$LINENO" 5 |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6137 | ;; |
| 6138 | esac |
| 6139 | else |
| 6140 | disable_tools=false |
| 6141 | fi |
| 6142 | |
| 6143 | if test x$disable_tools = xtrue; then |
| 6144 | DISABLE_TOOLS_TRUE= |
| 6145 | DISABLE_TOOLS_FALSE='#' |
| 6146 | else |
| 6147 | DISABLE_TOOLS_TRUE='#' |
| 6148 | DISABLE_TOOLS_FALSE= |
| 6149 | fi |
| 6150 | |
| 6151 | |
| 6152 | if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue -a x$disable_tools = xtrue; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6153 | 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] | 6154 | fi |
| 6155 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 6156 | # Check whether --enable-selftest was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6157 | if test "${enable_selftest+set}" = set; then : |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 6158 | enableval=$enable_selftest; case "${enableval}" in |
| 6159 | yes) |
| 6160 | selftest=true |
| 6161 | ;; |
| 6162 | no) |
| 6163 | selftest=false |
| 6164 | ;; |
| 6165 | *) |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6166 | as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 6167 | ;; |
| 6168 | esac |
| 6169 | else |
| 6170 | selftest=false |
| 6171 | fi |
| 6172 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6173 | if test x$selftest = xtrue; then |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 6174 | SELFTEST_TRUE= |
| 6175 | SELFTEST_FALSE='#' |
| 6176 | else |
| 6177 | SELFTEST_TRUE='#' |
| 6178 | SELFTEST_FALSE= |
| 6179 | fi |
| 6180 | |
| 6181 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6182 | ac_config_files="$ac_config_files Makefile" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6183 | |
| 6184 | cat >confcache <<\_ACEOF |
| 6185 | # This file is a shell script that caches the results of configure |
| 6186 | # tests run on this system so they can be shared between configure |
| 6187 | # scripts and configure runs, see configure's option --config-cache. |
| 6188 | # It is not useful on other systems. If it contains results you don't |
| 6189 | # want to keep, you may remove or edit it. |
| 6190 | # |
| 6191 | # config.status only pays attention to the cache file if you give it |
| 6192 | # the --recheck option to rerun configure. |
| 6193 | # |
| 6194 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 6195 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 6196 | # following values. |
| 6197 | |
| 6198 | _ACEOF |
| 6199 | |
| 6200 | # The following way of writing the cache mishandles newlines in values, |
| 6201 | # but we know of no workaround that is simple, portable, and efficient. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6202 | # So, we kill variables containing newlines. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6203 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6204 | # 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] | 6205 | ( |
| 6206 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 6207 | eval ac_val=\$$ac_var |
| 6208 | case $ac_val in #( |
| 6209 | *${as_nl}*) |
| 6210 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6211 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 6212 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6213 | esac |
| 6214 | case $ac_var in #( |
| 6215 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6216 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 6217 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6218 | esac ;; |
| 6219 | esac |
| 6220 | done |
| 6221 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6222 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6223 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 6224 | *${as_nl}ac_space=\ *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6225 | # `set' does not quote correctly, so add quotes: double-quote |
| 6226 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6227 | sed -n \ |
| 6228 | "s/'/'\\\\''/g; |
| 6229 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6230 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6231 | *) |
| 6232 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6233 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6234 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6235 | esac | |
| 6236 | sort |
| 6237 | ) | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6238 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6239 | /^ac_cv_env_/b end |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6240 | t clear |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6241 | :clear |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6242 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 6243 | t end |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6244 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 6245 | :end' >>confcache |
| 6246 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 6247 | if test -w "$cache_file"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6248 | test "x$cache_file" != "x/dev/null" && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 6250 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6251 | cat confcache >$cache_file |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6252 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6253 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 6254 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6255 | fi |
| 6256 | fi |
| 6257 | rm -f confcache |
| 6258 | |
| 6259 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6260 | # Let make expand exec_prefix. |
| 6261 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6262 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6263 | DEFS=-DHAVE_CONFIG_H |
| 6264 | |
| 6265 | ac_libobjs= |
| 6266 | ac_ltlibobjs= |
| 6267 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 6268 | # 1. Remove the extension, and $U if already installed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6269 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6270 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6271 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 6272 | # will be set to the directory where LIBOBJS objects are built. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6273 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 6274 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6275 | done |
| 6276 | LIBOBJS=$ac_libobjs |
| 6277 | |
| 6278 | LTLIBOBJS=$ac_ltlibobjs |
| 6279 | |
| 6280 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6281 | if test -n "$EXEEXT"; then |
| 6282 | am__EXEEXT_TRUE= |
| 6283 | am__EXEEXT_FALSE='#' |
| 6284 | else |
| 6285 | am__EXEEXT_TRUE='#' |
| 6286 | am__EXEEXT_FALSE= |
| 6287 | fi |
| 6288 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6289 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6290 | as_fn_error "conditional \"AMDEP\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6291 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6292 | fi |
| 6293 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6294 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6295 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6296 | fi |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 6297 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6298 | as_fn_error "conditional \"am__fastdepCCAS\" was never defined. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 6299 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6300 | fi |
| 6301 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6302 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 6303 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6304 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6305 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6306 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6307 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6308 | fi |
ivan.penkov@gmail.com | 5f6e1f0 | 2012-07-02 22:55:57 +0000 | [diff] [blame] | 6309 | if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6310 | as_fn_error "conditional \"GCC\" was never defined. |
ivan.penkov@gmail.com | 5f6e1f0 | 2012-07-02 22:55:57 +0000 | [diff] [blame] | 6311 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6312 | fi |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 6313 | if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6314 | as_fn_error "conditional \"LINUX_HOST\" was never defined. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6315 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6316 | fi |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 6317 | if test -z "${ANDROID_HOST_TRUE}" && test -z "${ANDROID_HOST_FALSE}"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6318 | as_fn_error "conditional \"ANDROID_HOST\" was never defined. |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 6319 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6320 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6321 | if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6322 | as_fn_error "conditional \"DISABLE_PROCESSOR\" was never defined. |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 6323 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6324 | fi |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6325 | if test -z "${DISABLE_TOOLS_TRUE}" && test -z "${DISABLE_TOOLS_FALSE}"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6326 | as_fn_error "conditional \"DISABLE_TOOLS\" was never defined. |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6327 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6328 | fi |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 6329 | if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6330 | as_fn_error "conditional \"SELFTEST\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6331 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 6332 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6333 | |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6334 | : ${CONFIG_STATUS=./config.status} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6335 | ac_write_fail=0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6336 | ac_clean_files_save=$ac_clean_files |
| 6337 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6338 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 6339 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 6340 | as_write_fail=0 |
| 6341 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6342 | #! $SHELL |
| 6343 | # Generated by $as_me. |
| 6344 | # Run this file to recreate the current configuration. |
| 6345 | # Compiler output produced by configure, useful for debugging |
| 6346 | # configure, is in config.log if it exists. |
| 6347 | |
| 6348 | debug=false |
| 6349 | ac_cs_recheck=false |
| 6350 | ac_cs_silent=false |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6351 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6352 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 6353 | export SHELL |
| 6354 | _ASEOF |
| 6355 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 6356 | ## -------------------- ## |
| 6357 | ## M4sh Initialization. ## |
| 6358 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6359 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6360 | # Be more Bourne compatible |
| 6361 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6362 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6363 | emulate sh |
| 6364 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6365 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6366 | # is contrary to our usage. Disable this feature. |
| 6367 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6368 | setopt NO_GLOB_SUBST |
| 6369 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6370 | case `(set -o) 2>/dev/null` in #( |
| 6371 | *posix*) : |
| 6372 | set -o posix ;; #( |
| 6373 | *) : |
| 6374 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6375 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6376 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6377 | |
| 6378 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6379 | as_nl=' |
| 6380 | ' |
| 6381 | export as_nl |
| 6382 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 6383 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 6384 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6385 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6386 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 6387 | # but without wasting forks for bash or zsh. |
| 6388 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 6389 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6390 | as_echo='print -r --' |
| 6391 | as_echo_n='print -rn --' |
| 6392 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6393 | as_echo='printf %s\n' |
| 6394 | as_echo_n='printf %s' |
| 6395 | else |
| 6396 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 6397 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 6398 | as_echo_n='/usr/ucb/echo -n' |
| 6399 | else |
| 6400 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 6401 | as_echo_n_body='eval |
| 6402 | arg=$1; |
| 6403 | case $arg in #( |
| 6404 | *"$as_nl"*) |
| 6405 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 6406 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 6407 | esac; |
| 6408 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 6409 | ' |
| 6410 | export as_echo_n_body |
| 6411 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 6412 | fi |
| 6413 | export as_echo_body |
| 6414 | as_echo='sh -c $as_echo_body as_echo' |
| 6415 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6416 | |
| 6417 | # The user is always right. |
| 6418 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6419 | PATH_SEPARATOR=: |
| 6420 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 6421 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 6422 | PATH_SEPARATOR=';' |
| 6423 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6424 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6425 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6426 | |
| 6427 | # IFS |
| 6428 | # We need space, tab and new line, in precisely that order. Quoting is |
| 6429 | # there to prevent editors from complaining about space-tab. |
| 6430 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 6431 | # splitting by setting IFS to empty value.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6432 | IFS=" "" $as_nl" |
| 6433 | |
| 6434 | # Find who we are. Look in the path if we contain no directory separator. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6435 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6436 | *[\\/]* ) as_myself=$0 ;; |
| 6437 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6438 | for as_dir in $PATH |
| 6439 | do |
| 6440 | IFS=$as_save_IFS |
| 6441 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6442 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 6443 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6444 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6445 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6446 | ;; |
| 6447 | esac |
| 6448 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 6449 | # in which case we are not to be found in the path. |
| 6450 | if test "x$as_myself" = x; then |
| 6451 | as_myself=$0 |
| 6452 | fi |
| 6453 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6454 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 6455 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6456 | fi |
| 6457 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6458 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 6459 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 6460 | # suppresses any "Segmentation fault" message there. '((' could |
| 6461 | # trigger a bug in pdksh 5.2.14. |
| 6462 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 6463 | do eval test x\${$as_var+set} = xset \ |
| 6464 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6465 | done |
| 6466 | PS1='$ ' |
| 6467 | PS2='> ' |
| 6468 | PS4='+ ' |
| 6469 | |
| 6470 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6471 | LC_ALL=C |
| 6472 | export LC_ALL |
| 6473 | LANGUAGE=C |
| 6474 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6475 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6476 | # CDPATH. |
| 6477 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 6478 | |
| 6479 | |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6480 | # as_fn_error ERROR [LINENO LOG_FD] |
| 6481 | # --------------------------------- |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6482 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 6483 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6484 | # script with status $?, using 1 if that was 0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6485 | as_fn_error () |
| 6486 | { |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6487 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 6488 | if test "$3"; then |
| 6489 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 6490 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6491 | fi |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6492 | $as_echo "$as_me: error: $1" >&2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6493 | as_fn_exit $as_status |
| 6494 | } # as_fn_error |
| 6495 | |
| 6496 | |
| 6497 | # as_fn_set_status STATUS |
| 6498 | # ----------------------- |
| 6499 | # Set $? to STATUS, without forking. |
| 6500 | as_fn_set_status () |
| 6501 | { |
| 6502 | return $1 |
| 6503 | } # as_fn_set_status |
| 6504 | |
| 6505 | # as_fn_exit STATUS |
| 6506 | # ----------------- |
| 6507 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 6508 | as_fn_exit () |
| 6509 | { |
| 6510 | set +e |
| 6511 | as_fn_set_status $1 |
| 6512 | exit $1 |
| 6513 | } # as_fn_exit |
| 6514 | |
| 6515 | # as_fn_unset VAR |
| 6516 | # --------------- |
| 6517 | # Portably unset VAR. |
| 6518 | as_fn_unset () |
| 6519 | { |
| 6520 | { eval $1=; unset $1;} |
| 6521 | } |
| 6522 | as_unset=as_fn_unset |
| 6523 | # as_fn_append VAR VALUE |
| 6524 | # ---------------------- |
| 6525 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 6526 | # advantage of any shell optimizations that allow amortized linear growth over |
| 6527 | # repeated appends, instead of the typical quadratic growth present in naive |
| 6528 | # implementations. |
| 6529 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 6530 | eval 'as_fn_append () |
| 6531 | { |
| 6532 | eval $1+=\$2 |
| 6533 | }' |
| 6534 | else |
| 6535 | as_fn_append () |
| 6536 | { |
| 6537 | eval $1=\$$1\$2 |
| 6538 | } |
| 6539 | fi # as_fn_append |
| 6540 | |
| 6541 | # as_fn_arith ARG... |
| 6542 | # ------------------ |
| 6543 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 6544 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 6545 | # must be portable across $(()) and expr. |
| 6546 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 6547 | eval 'as_fn_arith () |
| 6548 | { |
| 6549 | as_val=$(( $* )) |
| 6550 | }' |
| 6551 | else |
| 6552 | as_fn_arith () |
| 6553 | { |
| 6554 | as_val=`expr "$@" || test $? -eq 1` |
| 6555 | } |
| 6556 | fi # as_fn_arith |
| 6557 | |
| 6558 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6559 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 6560 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 6561 | as_expr=expr |
| 6562 | else |
| 6563 | as_expr=false |
| 6564 | fi |
| 6565 | |
| 6566 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 6567 | as_basename=basename |
| 6568 | else |
| 6569 | as_basename=false |
| 6570 | fi |
| 6571 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6572 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 6573 | as_dirname=dirname |
| 6574 | else |
| 6575 | as_dirname=false |
| 6576 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6577 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6578 | as_me=`$as_basename -- "$0" || |
| 6579 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 6580 | X"$0" : 'X\(//\)$' \| \ |
| 6581 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6582 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6583 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 6584 | s//\1/ |
| 6585 | q |
| 6586 | } |
| 6587 | /^X\/\(\/\/\)$/{ |
| 6588 | s//\1/ |
| 6589 | q |
| 6590 | } |
| 6591 | /^X\/\(\/\).*/{ |
| 6592 | s//\1/ |
| 6593 | q |
| 6594 | } |
| 6595 | s/.*/./; q'` |
| 6596 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6597 | # Avoid depending upon Character Ranges. |
| 6598 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 6599 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 6600 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 6601 | as_cr_digits='0123456789' |
| 6602 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6603 | |
| 6604 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6605 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6606 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6607 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6608 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6609 | xy) ECHO_C='\c';; |
| 6610 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 6611 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6612 | esac;; |
| 6613 | *) |
| 6614 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6615 | esac |
| 6616 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6617 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6618 | if test -d conf$$.dir; then |
| 6619 | rm -f conf$$.dir/conf$$.file |
| 6620 | else |
| 6621 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6622 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6623 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6624 | if (echo >conf$$.file) 2>/dev/null; then |
| 6625 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 6626 | as_ln_s='ln -s' |
| 6627 | # ... but there are two gotchas: |
| 6628 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 6629 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6630 | # In both cases, we have to default to `cp -p'. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6631 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6632 | as_ln_s='cp -p' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6633 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 6634 | as_ln_s=ln |
| 6635 | else |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6636 | as_ln_s='cp -p' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6637 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6638 | else |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6639 | as_ln_s='cp -p' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6640 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6641 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 6642 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6643 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6644 | |
| 6645 | # as_fn_mkdir_p |
| 6646 | # ------------- |
| 6647 | # Create "$as_dir" as a directory, including parents if necessary. |
| 6648 | as_fn_mkdir_p () |
| 6649 | { |
| 6650 | |
| 6651 | case $as_dir in #( |
| 6652 | -*) as_dir=./$as_dir;; |
| 6653 | esac |
| 6654 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 6655 | as_dirs= |
| 6656 | while :; do |
| 6657 | case $as_dir in #( |
| 6658 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 6659 | *) as_qdir=$as_dir;; |
| 6660 | esac |
| 6661 | as_dirs="'$as_qdir' $as_dirs" |
| 6662 | as_dir=`$as_dirname -- "$as_dir" || |
| 6663 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6664 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6665 | X"$as_dir" : 'X\(//\)$' \| \ |
| 6666 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 6667 | $as_echo X"$as_dir" | |
| 6668 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6669 | s//\1/ |
| 6670 | q |
| 6671 | } |
| 6672 | /^X\(\/\/\)[^/].*/{ |
| 6673 | s//\1/ |
| 6674 | q |
| 6675 | } |
| 6676 | /^X\(\/\/\)$/{ |
| 6677 | s//\1/ |
| 6678 | q |
| 6679 | } |
| 6680 | /^X\(\/\).*/{ |
| 6681 | s//\1/ |
| 6682 | q |
| 6683 | } |
| 6684 | s/.*/./; q'` |
| 6685 | test -d "$as_dir" && break |
| 6686 | done |
| 6687 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6688 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6689 | |
| 6690 | |
| 6691 | } # as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6692 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6693 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6694 | else |
| 6695 | test -d ./-p && rmdir ./-p |
| 6696 | as_mkdir_p=false |
| 6697 | fi |
| 6698 | |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6699 | if test -x / >/dev/null 2>&1; then |
| 6700 | as_test_x='test -x' |
| 6701 | else |
| 6702 | if ls -dL / >/dev/null 2>&1; then |
| 6703 | as_ls_L_option=L |
| 6704 | else |
| 6705 | as_ls_L_option= |
| 6706 | fi |
| 6707 | as_test_x=' |
| 6708 | eval sh -c '\'' |
| 6709 | if test -d "$1"; then |
| 6710 | test -d "$1/."; |
| 6711 | else |
| 6712 | case $1 in #( |
| 6713 | -*)set "./$1";; |
| 6714 | esac; |
| 6715 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 6716 | ???[sx]*):;;*)false;;esac;fi |
| 6717 | '\'' sh |
| 6718 | ' |
| 6719 | fi |
| 6720 | as_executable_p=$as_test_x |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6721 | |
| 6722 | # Sed expression to map a string onto a valid CPP name. |
| 6723 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 6724 | |
| 6725 | # Sed expression to map a string onto a valid variable name. |
| 6726 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 6727 | |
| 6728 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6729 | exec 6>&1 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6730 | ## ----------------------------------- ## |
| 6731 | ## Main body of $CONFIG_STATUS script. ## |
| 6732 | ## ----------------------------------- ## |
| 6733 | _ASEOF |
| 6734 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6735 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6736 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6737 | # Save the log message, to keep $0 and so on meaningful, and to |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6738 | # report actual input values of CONFIG_FILES etc. instead of their |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6739 | # values after options handling. |
| 6740 | ac_log=" |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 6741 | This file was extended by breakpad $as_me 0.1, which was |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6742 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6743 | |
| 6744 | CONFIG_FILES = $CONFIG_FILES |
| 6745 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 6746 | CONFIG_LINKS = $CONFIG_LINKS |
| 6747 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 6748 | $ $0 $@ |
| 6749 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6750 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 6751 | " |
| 6752 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6753 | _ACEOF |
| 6754 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6755 | case $ac_config_files in *" |
| 6756 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 6757 | esac |
| 6758 | |
| 6759 | case $ac_config_headers in *" |
| 6760 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 6761 | esac |
| 6762 | |
| 6763 | |
| 6764 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6765 | # Files that config.status was made for. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6766 | config_files="$ac_config_files" |
| 6767 | config_headers="$ac_config_headers" |
| 6768 | config_commands="$ac_config_commands" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6769 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6770 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6771 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6772 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6773 | ac_cs_usage="\ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6774 | \`$as_me' instantiates files and other configuration actions |
| 6775 | from templates according to the current configuration. Unless the files |
| 6776 | and actions are specified as TAGs, all are instantiated by default. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6777 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6778 | Usage: $0 [OPTION]... [TAG]... |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6779 | |
| 6780 | -h, --help print this help, then exit |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6781 | -V, --version print version number and configuration settings, then exit |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 6782 | --config print configuration, then exit |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6783 | -q, --quiet, --silent |
| 6784 | do not print progress messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6785 | -d, --debug don't remove temporary files |
| 6786 | --recheck update $as_me by reconfiguring in the same conditions |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6787 | --file=FILE[:TEMPLATE] |
| 6788 | instantiate the configuration file FILE |
| 6789 | --header=FILE[:TEMPLATE] |
| 6790 | instantiate the configuration header FILE |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6791 | |
| 6792 | Configuration files: |
| 6793 | $config_files |
| 6794 | |
| 6795 | Configuration headers: |
| 6796 | $config_headers |
| 6797 | |
| 6798 | Configuration commands: |
| 6799 | $config_commands |
| 6800 | |
thestig@chromium.org | 43e6db7 | 2010-11-08 19:49:41 +0000 | [diff] [blame] | 6801 | Report bugs to <google-breakpad-dev@googlegroups.com>." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6802 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6803 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6804 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 6805 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6806 | ac_cs_version="\\ |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 6807 | breakpad config.status 0.1 |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6808 | configured by $0, generated by GNU Autoconf 2.65, |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 6809 | with options \\"\$ac_cs_config\\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6810 | |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6811 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6812 | This config.status script is free software; the Free Software Foundation |
| 6813 | gives unlimited permission to copy, distribute and modify it." |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6814 | |
| 6815 | ac_pwd='$ac_pwd' |
| 6816 | srcdir='$srcdir' |
| 6817 | INSTALL='$INSTALL' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6818 | MKDIR_P='$MKDIR_P' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6819 | AWK='$AWK' |
| 6820 | test -n "\$AWK" || AWK=awk |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6821 | _ACEOF |
| 6822 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6823 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6824 | # The default lists apply if the user does not specify any file. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6825 | ac_need_defaults=: |
| 6826 | while test $# != 0 |
| 6827 | do |
| 6828 | case $1 in |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6829 | --*=*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6830 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 6831 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6832 | ac_shift=: |
| 6833 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6834 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6835 | ac_option=$1 |
| 6836 | ac_optarg=$2 |
| 6837 | ac_shift=shift |
| 6838 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6839 | esac |
| 6840 | |
| 6841 | case $ac_option in |
| 6842 | # Handling of the options. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6843 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 6844 | ac_cs_recheck=: ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6845 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6846 | $as_echo "$ac_cs_version"; exit ;; |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 6847 | --config | --confi | --conf | --con | --co | --c ) |
| 6848 | $as_echo "$ac_cs_config"; exit ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6849 | --debug | --debu | --deb | --de | --d | -d ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6850 | debug=: ;; |
| 6851 | --file | --fil | --fi | --f ) |
| 6852 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6853 | case $ac_optarg in |
| 6854 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6855 | esac |
| 6856 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6857 | ac_need_defaults=false;; |
| 6858 | --header | --heade | --head | --hea ) |
| 6859 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6860 | case $ac_optarg in |
| 6861 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6862 | esac |
| 6863 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6864 | ac_need_defaults=false;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6865 | --he | --h) |
| 6866 | # Conflict between --help and --header |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6867 | as_fn_error "ambiguous option: \`$1' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6868 | Try \`$0 --help' for more information.";; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6869 | --help | --hel | -h ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6870 | $as_echo "$ac_cs_usage"; exit ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6871 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 6872 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 6873 | ac_cs_silent=: ;; |
| 6874 | |
| 6875 | # This is an error. |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6876 | -*) as_fn_error "unrecognized option: \`$1' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6877 | Try \`$0 --help' for more information." ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6878 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6879 | *) as_fn_append ac_config_targets " $1" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6880 | ac_need_defaults=false ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6881 | |
| 6882 | esac |
| 6883 | shift |
| 6884 | done |
| 6885 | |
| 6886 | ac_configure_extra_args= |
| 6887 | |
| 6888 | if $ac_cs_silent; then |
| 6889 | exec 6>/dev/null |
| 6890 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 6891 | fi |
| 6892 | |
| 6893 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6894 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6895 | if \$ac_cs_recheck; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6896 | 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] | 6897 | shift |
| 6898 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 6899 | CONFIG_SHELL='$SHELL' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6900 | export CONFIG_SHELL |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6901 | exec "\$@" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6902 | fi |
| 6903 | |
| 6904 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6905 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6906 | exec 5>>config.log |
| 6907 | { |
| 6908 | echo |
| 6909 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 6910 | ## Running $as_me. ## |
| 6911 | _ASBOX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6912 | $as_echo "$ac_log" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6913 | } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6914 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6915 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6916 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6917 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6918 | # INIT-COMMANDS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6919 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6920 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 6921 | |
| 6922 | _ACEOF |
| 6923 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6924 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6925 | |
| 6926 | # Handling of arguments. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6927 | for ac_config_target in $ac_config_targets |
| 6928 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6929 | case $ac_config_target in |
| 6930 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 6931 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 6932 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 6933 | |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6934 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6935 | esac |
| 6936 | done |
| 6937 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6938 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6939 | # If the user did not use the arguments to specify the items to instantiate, |
| 6940 | # then the envvar interface is used. Set only those that are not. |
| 6941 | # We use the long form for the default assignment because of an extremely |
| 6942 | # bizarre bug on SunOS 4.1.3. |
| 6943 | if $ac_need_defaults; then |
| 6944 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 6945 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 6946 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 6947 | fi |
| 6948 | |
| 6949 | # Have a temporary directory for convenience. Make it in the build tree |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6950 | # simply because there is no reason against having it here, and in addition, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6951 | # creating and moving files from /tmp can sometimes cause problems. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6952 | # Hook for its removal unless debugging. |
| 6953 | # Note that there is a small window in which the directory will not be cleaned: |
| 6954 | # after its creation but before its name has been assigned to `$tmp'. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6955 | $debug || |
| 6956 | { |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6957 | tmp= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6958 | trap 'exit_status=$? |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6959 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6960 | ' 0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6961 | trap 'as_fn_exit 1' 1 2 13 15 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6962 | } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6963 | # Create a (secure) tmp directory for tmp files. |
| 6964 | |
| 6965 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6966 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6967 | test -n "$tmp" && test -d "$tmp" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6968 | } || |
| 6969 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6970 | tmp=./conf$$-$RANDOM |
| 6971 | (umask 077 && mkdir "$tmp") |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6972 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6973 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6974 | # Set up the scripts for CONFIG_FILES section. |
| 6975 | # No need to generate them if there are no CONFIG_FILES. |
| 6976 | # This happens for instance with `./config.status config.h'. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6977 | if test -n "$CONFIG_FILES"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6978 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6979 | |
| 6980 | ac_cr=`echo X | tr X '\015'` |
| 6981 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 6982 | # But we know of no other shell where ac_cr would be empty at this |
| 6983 | # point, so we can use a bashism as a fallback. |
| 6984 | if test "x$ac_cr" = x; then |
| 6985 | eval ac_cr=\$\'\\r\' |
| 6986 | fi |
| 6987 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 6988 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6989 | ac_cs_awk_cr='\r' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6990 | else |
| 6991 | ac_cs_awk_cr=$ac_cr |
| 6992 | fi |
| 6993 | |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 6994 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6995 | _ACEOF |
| 6996 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6997 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6998 | { |
| 6999 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 7000 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 7001 | echo "_ACEOF" |
| 7002 | } >conf$$subs.sh || |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7003 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 7004 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7005 | ac_delim='%!_!# ' |
| 7006 | for ac_last_try in false false false false false :; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7007 | . ./conf$$subs.sh || |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7008 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7009 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7010 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 7011 | if test $ac_delim_n = $ac_delim_num; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7012 | break |
| 7013 | elif $ac_last_try; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7014 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7015 | else |
| 7016 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7017 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7018 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7019 | rm -f conf$$subs.sh |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7020 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7021 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7022 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7023 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7024 | sed -n ' |
| 7025 | h |
| 7026 | s/^/S["/; s/!.*/"]=/ |
| 7027 | p |
| 7028 | g |
| 7029 | s/^[^!]*!// |
| 7030 | :repl |
| 7031 | t repl |
| 7032 | s/'"$ac_delim"'$// |
| 7033 | t delim |
| 7034 | :nl |
| 7035 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7036 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7037 | t more1 |
| 7038 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 7039 | p |
| 7040 | n |
| 7041 | b repl |
| 7042 | :more1 |
| 7043 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7044 | p |
| 7045 | g |
| 7046 | s/.\{148\}// |
| 7047 | t nl |
| 7048 | :delim |
| 7049 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7050 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7051 | t more2 |
| 7052 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 7053 | p |
| 7054 | b |
| 7055 | :more2 |
| 7056 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7057 | p |
| 7058 | g |
| 7059 | s/.\{148\}// |
| 7060 | t delim |
| 7061 | ' <conf$$subs.awk | sed ' |
| 7062 | /^[^""]/{ |
| 7063 | N |
| 7064 | s/\n// |
| 7065 | } |
| 7066 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 7067 | rm -f conf$$subs.awk |
| 7068 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7069 | _ACAWK |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7070 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7071 | for (key in S) S_is_set[key] = 1 |
| 7072 | FS = "" |
| 7073 | |
| 7074 | } |
| 7075 | { |
| 7076 | line = $ 0 |
| 7077 | nfields = split(line, field, "@") |
| 7078 | substed = 0 |
| 7079 | len = length(field[1]) |
| 7080 | for (i = 2; i < nfields; i++) { |
| 7081 | key = field[i] |
| 7082 | keylen = length(key) |
| 7083 | if (S_is_set[key]) { |
| 7084 | value = S[key] |
| 7085 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 7086 | len += length(value) + length(field[++i]) |
| 7087 | substed = 1 |
| 7088 | } else |
| 7089 | len += 1 + keylen |
| 7090 | } |
| 7091 | |
| 7092 | print line |
| 7093 | } |
| 7094 | |
| 7095 | _ACAWK |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7096 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7097 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7098 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 7099 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 7100 | else |
| 7101 | cat |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7102 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 7103 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7104 | _ACEOF |
| 7105 | |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7106 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 7107 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7108 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 7109 | # (actually we leave an empty line to preserve line numbers). |
| 7110 | if test "x$srcdir" = x.; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7111 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 7112 | s/:*\$(srcdir):*/:/ |
| 7113 | s/:*\${srcdir}:*/:/ |
| 7114 | s/:*@srcdir@:*/:/ |
| 7115 | s/^\([^=]*=[ ]*\):*/\1/ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7116 | s/:*$// |
| 7117 | s/^[^=]*=[ ]*$// |
| 7118 | }' |
| 7119 | fi |
| 7120 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7121 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7122 | fi # test -n "$CONFIG_FILES" |
| 7123 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7124 | # Set up the scripts for CONFIG_HEADERS section. |
| 7125 | # No need to generate them if there are no CONFIG_HEADERS. |
| 7126 | # This happens for instance with `./config.status Makefile'. |
| 7127 | if test -n "$CONFIG_HEADERS"; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7128 | cat >"$tmp/defines.awk" <<\_ACAWK || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7129 | BEGIN { |
| 7130 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7131 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7132 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 7133 | # here-document in config.status, that substitutes the proper values into |
| 7134 | # config.h.in to produce config.h. |
| 7135 | |
| 7136 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 7137 | # handling of long lines. |
| 7138 | ac_delim='%!_!# ' |
| 7139 | for ac_last_try in false false :; do |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7140 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 7141 | if test -z "$ac_t"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7142 | break |
| 7143 | elif $ac_last_try; then |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7144 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7145 | else |
| 7146 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 7147 | fi |
| 7148 | done |
| 7149 | |
| 7150 | # For the awk script, D is an array of macro values keyed by name, |
| 7151 | # likewise P contains macro parameters if any. Preserve backslash |
| 7152 | # newline sequences. |
| 7153 | |
| 7154 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 7155 | sed -n ' |
| 7156 | s/.\{148\}/&'"$ac_delim"'/g |
| 7157 | t rset |
| 7158 | :rset |
| 7159 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 7160 | t def |
| 7161 | d |
| 7162 | :def |
| 7163 | s/\\$// |
| 7164 | t bsnl |
| 7165 | s/["\\]/\\&/g |
| 7166 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7167 | D["\1"]=" \3"/p |
| 7168 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 7169 | d |
| 7170 | :bsnl |
| 7171 | s/["\\]/\\&/g |
| 7172 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7173 | D["\1"]=" \3\\\\\\n"\\/p |
| 7174 | t cont |
| 7175 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 7176 | t cont |
| 7177 | d |
| 7178 | :cont |
| 7179 | n |
| 7180 | s/.\{148\}/&'"$ac_delim"'/g |
| 7181 | t clear |
| 7182 | :clear |
| 7183 | s/\\$// |
| 7184 | t bsnlc |
| 7185 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 7186 | d |
| 7187 | :bsnlc |
| 7188 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 7189 | b cont |
| 7190 | ' <confdefs.h | sed ' |
| 7191 | s/'"$ac_delim"'/"\\\ |
| 7192 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 7193 | |
| 7194 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7195 | for (key in D) D_is_set[key] = 1 |
| 7196 | FS = "" |
| 7197 | } |
| 7198 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 7199 | line = \$ 0 |
| 7200 | split(line, arg, " ") |
| 7201 | if (arg[1] == "#") { |
| 7202 | defundef = arg[2] |
| 7203 | mac1 = arg[3] |
| 7204 | } else { |
| 7205 | defundef = substr(arg[1], 2) |
| 7206 | mac1 = arg[2] |
| 7207 | } |
| 7208 | split(mac1, mac2, "(") #) |
| 7209 | macro = mac2[1] |
| 7210 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 7211 | if (D_is_set[macro]) { |
| 7212 | # Preserve the white space surrounding the "#". |
| 7213 | print prefix "define", macro P[macro] D[macro] |
| 7214 | next |
| 7215 | } else { |
| 7216 | # Replace #undef with comments. This is necessary, for example, |
| 7217 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 7218 | # on some systems where configure will not decide to define it. |
| 7219 | if (defundef == "undef") { |
| 7220 | print "/*", prefix defundef, macro, "*/" |
| 7221 | next |
| 7222 | } |
| 7223 | } |
| 7224 | } |
| 7225 | { print } |
| 7226 | _ACAWK |
| 7227 | _ACEOF |
| 7228 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7229 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7230 | fi # test -n "$CONFIG_HEADERS" |
| 7231 | |
| 7232 | |
| 7233 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 7234 | shift |
| 7235 | for ac_tag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7236 | do |
| 7237 | case $ac_tag in |
| 7238 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 7239 | esac |
| 7240 | case $ac_mode$ac_tag in |
| 7241 | :[FHL]*:*);; |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7242 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7243 | :[FH]-) ac_tag=-:-;; |
| 7244 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 7245 | esac |
| 7246 | ac_save_IFS=$IFS |
| 7247 | IFS=: |
| 7248 | set x $ac_tag |
| 7249 | IFS=$ac_save_IFS |
| 7250 | shift |
| 7251 | ac_file=$1 |
| 7252 | shift |
| 7253 | |
| 7254 | case $ac_mode in |
| 7255 | :L) ac_source=$1;; |
| 7256 | :[FH]) |
| 7257 | ac_file_inputs= |
| 7258 | for ac_f |
| 7259 | do |
| 7260 | case $ac_f in |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7261 | -) ac_f="$tmp/stdin";; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7262 | *) # Look for the file first in the build tree, then in the source tree |
| 7263 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 7264 | # because $ac_f cannot contain `:'. |
| 7265 | test -f "$ac_f" || |
| 7266 | case $ac_f in |
| 7267 | [\\/$]*) false;; |
| 7268 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 7269 | esac || |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7270 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7271 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7272 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 7273 | as_fn_append ac_file_inputs " '$ac_f'" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7274 | done |
| 7275 | |
| 7276 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7277 | # use $as_me), people would be surprised to read: |
| 7278 | # /* config.h. Generated by config.status. */ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7279 | configure_input='Generated from '` |
| 7280 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 7281 | `' by configure.' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7282 | if test x"$ac_file" != x-; then |
| 7283 | configure_input="$ac_file. $configure_input" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7284 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 7285 | $as_echo "$as_me: creating $ac_file" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7286 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7287 | # Neutralize special characters interpreted by sed in replacement strings. |
| 7288 | case $configure_input in #( |
| 7289 | *\&* | *\|* | *\\* ) |
| 7290 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 7291 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 7292 | *) ac_sed_conf_input=$configure_input;; |
| 7293 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7294 | |
| 7295 | case $ac_tag in |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7296 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 7297 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7298 | esac |
| 7299 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7300 | esac |
| 7301 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7302 | ac_dir=`$as_dirname -- "$ac_file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7303 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7304 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7305 | X"$ac_file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7306 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7307 | $as_echo X"$ac_file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7308 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7309 | s//\1/ |
| 7310 | q |
| 7311 | } |
| 7312 | /^X\(\/\/\)[^/].*/{ |
| 7313 | s//\1/ |
| 7314 | q |
| 7315 | } |
| 7316 | /^X\(\/\/\)$/{ |
| 7317 | s//\1/ |
| 7318 | q |
| 7319 | } |
| 7320 | /^X\(\/\).*/{ |
| 7321 | s//\1/ |
| 7322 | q |
| 7323 | } |
| 7324 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7325 | as_dir="$ac_dir"; as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7326 | ac_builddir=. |
| 7327 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7328 | case "$ac_dir" in |
| 7329 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7330 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7331 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7332 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7333 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7334 | case $ac_top_builddir_sub in |
| 7335 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7336 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 7337 | esac ;; |
| 7338 | esac |
| 7339 | ac_abs_top_builddir=$ac_pwd |
| 7340 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 7341 | # for backward compatibility: |
| 7342 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7343 | |
| 7344 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7345 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7346 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7347 | ac_top_srcdir=$ac_top_builddir_sub |
| 7348 | ac_abs_top_srcdir=$ac_pwd ;; |
| 7349 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7350 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7351 | ac_top_srcdir=$srcdir |
| 7352 | ac_abs_top_srcdir=$srcdir ;; |
| 7353 | *) # Relative name. |
| 7354 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 7355 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 7356 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7357 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7358 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7359 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7360 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7361 | case $ac_mode in |
| 7362 | :F) |
| 7363 | # |
| 7364 | # CONFIG_FILE |
| 7365 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7366 | |
| 7367 | case $INSTALL in |
| 7368 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7369 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7370 | esac |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 7371 | ac_MKDIR_P=$MKDIR_P |
| 7372 | case $MKDIR_P in |
| 7373 | [\\/$]* | ?:[\\/]* ) ;; |
| 7374 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 7375 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7376 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7377 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7378 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7379 | # If the template does not know about datarootdir, expand it. |
| 7380 | # FIXME: This hack should be removed a few years after 2.60. |
| 7381 | ac_datarootdir_hack=; ac_datarootdir_seen= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7382 | ac_sed_dataroot=' |
| 7383 | /datarootdir/ { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7384 | p |
| 7385 | q |
| 7386 | } |
| 7387 | /@datadir@/p |
| 7388 | /@docdir@/p |
| 7389 | /@infodir@/p |
| 7390 | /@localedir@/p |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7391 | /@mandir@/p' |
| 7392 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7393 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 7394 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7395 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 7396 | $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] | 7397 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7398 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7399 | ac_datarootdir_hack=' |
| 7400 | s&@datadir@&$datadir&g |
| 7401 | s&@docdir@&$docdir&g |
| 7402 | s&@infodir@&$infodir&g |
| 7403 | s&@localedir@&$localedir&g |
| 7404 | s&@mandir@&$mandir&g |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7405 | s&\\\${datarootdir}&$datarootdir&g' ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7406 | esac |
| 7407 | _ACEOF |
| 7408 | |
| 7409 | # Neutralize VPATH when `$srcdir' = `.'. |
| 7410 | # Shell code in configure.ac might set extrasub. |
| 7411 | # FIXME: do we really want to maintain this feature? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7412 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7413 | ac_sed_extra="$ac_vpsub |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7414 | $extrasub |
| 7415 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7416 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7417 | :t |
| 7418 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7419 | s|@configure_input@|$ac_sed_conf_input|;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7420 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7421 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7422 | s&@srcdir@&$ac_srcdir&;t t |
| 7423 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 7424 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 7425 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 7426 | s&@builddir@&$ac_builddir&;t t |
| 7427 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 7428 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 7429 | s&@INSTALL@&$ac_INSTALL&;t t |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 7430 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7431 | $ac_datarootdir_hack |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7432 | " |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7433 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 7434 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7435 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7436 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7437 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 7438 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7439 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7440 | which seems to be undefined. Please make sure it is defined." >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7441 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7442 | which seems to be undefined. Please make sure it is defined." >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7443 | |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7444 | rm -f "$tmp/stdin" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7445 | case $ac_file in |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7446 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 7447 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7448 | esac \ |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7449 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7450 | ;; |
| 7451 | :H) |
| 7452 | # |
| 7453 | # CONFIG_HEADER |
| 7454 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7455 | if test x"$ac_file" != x-; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7456 | { |
| 7457 | $as_echo "/* $configure_input */" \ |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7458 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 7459 | } >"$tmp/config.h" \ |
| 7460 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 7461 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7462 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 7463 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7464 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7465 | rm -f "$ac_file" |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7466 | mv "$tmp/config.h" "$ac_file" \ |
| 7467 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7468 | fi |
| 7469 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7470 | $as_echo "/* $configure_input */" \ |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7471 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 7472 | || as_fn_error "could not create -" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7473 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7474 | # Compute "$ac_file"'s index in $config_headers. |
| 7475 | _am_arg="$ac_file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7476 | _am_stamp_count=1 |
| 7477 | for _am_header in $config_headers :; do |
| 7478 | case $_am_header in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7479 | $_am_arg | $_am_arg:* ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7480 | break ;; |
| 7481 | * ) |
| 7482 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 7483 | esac |
| 7484 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7485 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 7486 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7487 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 7488 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 7489 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 7490 | $as_echo X"$_am_arg" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7491 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7492 | s//\1/ |
| 7493 | q |
| 7494 | } |
| 7495 | /^X\(\/\/\)[^/].*/{ |
| 7496 | s//\1/ |
| 7497 | q |
| 7498 | } |
| 7499 | /^X\(\/\/\)$/{ |
| 7500 | s//\1/ |
| 7501 | q |
| 7502 | } |
| 7503 | /^X\(\/\).*/{ |
| 7504 | s//\1/ |
| 7505 | q |
| 7506 | } |
| 7507 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 7508 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7509 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7510 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 7511 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7512 | ;; |
| 7513 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7514 | |
| 7515 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7516 | case $ac_file$ac_mode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7517 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 7518 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 7519 | # are listed without --file. Let's play safe and only enable the eval |
| 7520 | # if we detect the quoting. |
| 7521 | case $CONFIG_FILES in |
| 7522 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 7523 | *) set x $CONFIG_FILES ;; |
| 7524 | esac |
| 7525 | shift |
| 7526 | for mf |
| 7527 | do |
| 7528 | # Strip MF so we end up with the name of the file. |
| 7529 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 7530 | # Check whether this is an Automake generated Makefile or not. |
| 7531 | # We used to match only the files named `Makefile.in', but |
| 7532 | # some people rename them; so instead we look at the file content. |
| 7533 | # Grep'ing the first line is not enough: some people post-process |
| 7534 | # each Makefile.in and add a new line on top of each file to say so. |
| 7535 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 7536 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 7537 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 7538 | dirpart=`$as_dirname -- "$mf" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7539 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7540 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 7541 | X"$mf" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7542 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7543 | $as_echo X"$mf" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7544 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7545 | s//\1/ |
| 7546 | q |
| 7547 | } |
| 7548 | /^X\(\/\/\)[^/].*/{ |
| 7549 | s//\1/ |
| 7550 | q |
| 7551 | } |
| 7552 | /^X\(\/\/\)$/{ |
| 7553 | s//\1/ |
| 7554 | q |
| 7555 | } |
| 7556 | /^X\(\/\).*/{ |
| 7557 | s//\1/ |
| 7558 | q |
| 7559 | } |
| 7560 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7561 | else |
| 7562 | continue |
| 7563 | fi |
| 7564 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 7565 | # from the Makefile without running `make'. |
| 7566 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 7567 | test -z "$DEPDIR" && continue |
| 7568 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 7569 | test -z "am__include" && continue |
| 7570 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 7571 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 7572 | U=`sed -n 's/^U = //p' < "$mf"` |
| 7573 | # Find all dependency output files, they are included files with |
| 7574 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 7575 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 7576 | # expansion. |
| 7577 | for file in `sed -n " |
| 7578 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 7579 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 7580 | # Make sure the directory exists. |
| 7581 | test -f "$dirpart/$file" && continue |
| 7582 | fdir=`$as_dirname -- "$file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7583 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7584 | X"$file" : 'X\(//\)[^/]' \| \ |
| 7585 | X"$file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7586 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7587 | $as_echo X"$file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7588 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7589 | s//\1/ |
| 7590 | q |
| 7591 | } |
| 7592 | /^X\(\/\/\)[^/].*/{ |
| 7593 | s//\1/ |
| 7594 | q |
| 7595 | } |
| 7596 | /^X\(\/\/\)$/{ |
| 7597 | s//\1/ |
| 7598 | q |
| 7599 | } |
| 7600 | /^X\(\/\).*/{ |
| 7601 | s//\1/ |
| 7602 | q |
| 7603 | } |
| 7604 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7605 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 7606 | # echo "creating $dirpart/$file" |
| 7607 | echo '# dummy' > "$dirpart/$file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7608 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7609 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7610 | } |
| 7611 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7612 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7613 | esac |
| 7614 | done # for ac_tag |
| 7615 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7616 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7617 | as_fn_exit 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7618 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7619 | ac_clean_files=$ac_clean_files_save |
| 7620 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7621 | test $ac_write_fail = 0 || |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7622 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7623 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7624 | |
| 7625 | # configure is writing to config.log, and then calls config.status. |
| 7626 | # config.status does its own redirection, appending to config.log. |
| 7627 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 7628 | # by configure, so config.status won't be able to write to it; its |
| 7629 | # output is simply discarded. So we exec the FD to /dev/null, |
| 7630 | # effectively closing config.log, so it can be properly (re)opened and |
| 7631 | # appended to by config.status. When coming back to configure, we |
| 7632 | # need to make the FD available again. |
| 7633 | if test "$no_create" != yes; then |
| 7634 | ac_cs_success=: |
| 7635 | ac_config_status_args= |
| 7636 | test "$silent" = yes && |
| 7637 | ac_config_status_args="$ac_config_status_args --quiet" |
| 7638 | exec 5>/dev/null |
| 7639 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 7640 | exec 5>>config.log |
| 7641 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 7642 | # would make configure fail if this is the last instruction. |
SiyangXie@gmail.com | bab7700 | 2012-10-10 21:41:52 +0000 | [diff] [blame] | 7643 | $ac_cs_success || as_fn_exit $? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7644 | fi |
| 7645 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 7646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 7647 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7648 | fi |
| 7649 | |