bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +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 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 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 |
| 171 | test x\$exitcode = x0 || exit 1" |
| 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 : |
| 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+"$@"} |
| 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" |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +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 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +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 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +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 | { |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +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 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +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. |
| 481 | # In both cases, we have to default to `cp -p'. |
| 482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 483 | as_ln_s='cp -p' |
| 484 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 485 | as_ln_s=ln |
| 486 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +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 |
| 490 | as_ln_s='cp -p' |
| 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 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 502 | if test -x / >/dev/null 2>&1; then |
| 503 | as_test_x='test -x' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 504 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 513 | test -d "$1/."; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 514 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 515 | case $1 in #( |
| 516 | -*)set "./$1";; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 517 | esac; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 519 | ???[sx]*):;;*)false;;esac;fi |
| 520 | '\'' sh |
| 521 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 522 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 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. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +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 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 607 | LINUX_HOST_FALSE |
| 608 | LINUX_HOST_TRUE |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 609 | PTHREAD_CFLAGS |
| 610 | PTHREAD_LIBS |
| 611 | PTHREAD_CC |
| 612 | ax_pthread_config |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 613 | EGREP |
| 614 | GREP |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 615 | RANLIB |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 616 | am__fastdepCXX_FALSE |
| 617 | am__fastdepCXX_TRUE |
| 618 | CXXDEPMODE |
| 619 | ac_ct_CXX |
| 620 | CXXFLAGS |
| 621 | CXX |
| 622 | CPP |
| 623 | am__fastdepCC_FALSE |
| 624 | am__fastdepCC_TRUE |
| 625 | CCDEPMODE |
| 626 | AMDEPBACKSLASH |
| 627 | AMDEP_FALSE |
| 628 | AMDEP_TRUE |
| 629 | am__quote |
| 630 | am__include |
| 631 | DEPDIR |
| 632 | OBJEXT |
| 633 | EXEEXT |
| 634 | ac_ct_CC |
| 635 | CPPFLAGS |
| 636 | LDFLAGS |
| 637 | CFLAGS |
| 638 | CC |
| 639 | am__untar |
| 640 | am__tar |
| 641 | AMTAR |
| 642 | am__leading_dot |
| 643 | SET_MAKE |
| 644 | AWK |
| 645 | mkdir_p |
| 646 | MKDIR_P |
| 647 | INSTALL_STRIP_PROGRAM |
| 648 | STRIP |
| 649 | install_sh |
| 650 | MAKEINFO |
| 651 | AUTOHEADER |
| 652 | AUTOMAKE |
| 653 | AUTOCONF |
| 654 | ACLOCAL |
| 655 | VERSION |
| 656 | PACKAGE |
| 657 | CYGPATH_W |
| 658 | am__isrc |
| 659 | INSTALL_DATA |
| 660 | INSTALL_SCRIPT |
| 661 | INSTALL_PROGRAM |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 662 | host_os |
| 663 | host_vendor |
| 664 | host_cpu |
| 665 | host |
| 666 | build_os |
| 667 | build_vendor |
| 668 | build_cpu |
| 669 | build |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 670 | target_alias |
| 671 | host_alias |
| 672 | build_alias |
| 673 | LIBS |
| 674 | ECHO_T |
| 675 | ECHO_N |
| 676 | ECHO_C |
| 677 | DEFS |
| 678 | mandir |
| 679 | localedir |
| 680 | libdir |
| 681 | psdir |
| 682 | pdfdir |
| 683 | dvidir |
| 684 | htmldir |
| 685 | infodir |
| 686 | docdir |
| 687 | oldincludedir |
| 688 | includedir |
| 689 | localstatedir |
| 690 | sharedstatedir |
| 691 | sysconfdir |
| 692 | datadir |
| 693 | datarootdir |
| 694 | libexecdir |
| 695 | sbindir |
| 696 | bindir |
| 697 | program_transform_name |
| 698 | prefix |
| 699 | exec_prefix |
| 700 | PACKAGE_URL |
| 701 | PACKAGE_BUGREPORT |
| 702 | PACKAGE_STRING |
| 703 | PACKAGE_VERSION |
| 704 | PACKAGE_TARNAME |
| 705 | PACKAGE_NAME |
| 706 | PATH_SEPARATOR |
| 707 | SHELL' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 708 | ac_subst_files='' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 709 | ac_user_opts=' |
| 710 | enable_option_checking |
| 711 | enable_dependency_tracking |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 712 | enable_m32 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 713 | enable_processor |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame^] | 714 | enable_tools |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 715 | enable_selftest |
| 716 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 717 | ac_precious_vars='build_alias |
| 718 | host_alias |
| 719 | target_alias |
| 720 | CC |
| 721 | CFLAGS |
| 722 | LDFLAGS |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 723 | LIBS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 724 | CPPFLAGS |
| 725 | CPP |
| 726 | CXX |
| 727 | CXXFLAGS |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 728 | CCC' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 729 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 730 | |
| 731 | # Initialize some variables set by options. |
| 732 | ac_init_help= |
| 733 | ac_init_version=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 734 | ac_unrecognized_opts= |
| 735 | ac_unrecognized_sep= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 736 | # The variables have the same names as the options, with |
| 737 | # dashes changed to underlines. |
| 738 | cache_file=/dev/null |
| 739 | exec_prefix=NONE |
| 740 | no_create= |
| 741 | no_recursion= |
| 742 | prefix=NONE |
| 743 | program_prefix=NONE |
| 744 | program_suffix=NONE |
| 745 | program_transform_name=s,x,x, |
| 746 | silent= |
| 747 | site= |
| 748 | srcdir= |
| 749 | verbose= |
| 750 | x_includes=NONE |
| 751 | x_libraries=NONE |
| 752 | |
| 753 | # Installation directory options. |
| 754 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 755 | # and all the variables that are supposed to be based on exec_prefix |
| 756 | # by default will actually change. |
| 757 | # Use braces instead of parens because sh, perl, etc. also accept them. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 758 | # (The list follows the same order as the GNU Coding Standards.) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 759 | bindir='${exec_prefix}/bin' |
| 760 | sbindir='${exec_prefix}/sbin' |
| 761 | libexecdir='${exec_prefix}/libexec' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 762 | datarootdir='${prefix}/share' |
| 763 | datadir='${datarootdir}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 764 | sysconfdir='${prefix}/etc' |
| 765 | sharedstatedir='${prefix}/com' |
| 766 | localstatedir='${prefix}/var' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 767 | includedir='${prefix}/include' |
| 768 | oldincludedir='/usr/include' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 769 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 770 | infodir='${datarootdir}/info' |
| 771 | htmldir='${docdir}' |
| 772 | dvidir='${docdir}' |
| 773 | pdfdir='${docdir}' |
| 774 | psdir='${docdir}' |
| 775 | libdir='${exec_prefix}/lib' |
| 776 | localedir='${datarootdir}/locale' |
| 777 | mandir='${datarootdir}/man' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 778 | |
| 779 | ac_prev= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 780 | ac_dashdash= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 781 | for ac_option |
| 782 | do |
| 783 | # If the previous option needs an argument, assign it. |
| 784 | if test -n "$ac_prev"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 785 | eval $ac_prev=\$ac_option |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 786 | ac_prev= |
| 787 | continue |
| 788 | fi |
| 789 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 790 | case $ac_option in |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 791 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 792 | *) ac_optarg=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 793 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 794 | |
| 795 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 796 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 797 | case $ac_dashdash$ac_option in |
| 798 | --) |
| 799 | ac_dashdash=yes ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 800 | |
| 801 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 802 | ac_prev=bindir ;; |
| 803 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 804 | bindir=$ac_optarg ;; |
| 805 | |
| 806 | -build | --build | --buil | --bui | --bu) |
| 807 | ac_prev=build_alias ;; |
| 808 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 809 | build_alias=$ac_optarg ;; |
| 810 | |
| 811 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 812 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 813 | ac_prev=cache_file ;; |
| 814 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 815 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 816 | cache_file=$ac_optarg ;; |
| 817 | |
| 818 | --config-cache | -C) |
| 819 | cache_file=config.cache ;; |
| 820 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 821 | -datadir | --datadir | --datadi | --datad) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 822 | ac_prev=datadir ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 823 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 824 | datadir=$ac_optarg ;; |
| 825 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 826 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 827 | | --dataroo | --dataro | --datar) |
| 828 | ac_prev=datarootdir ;; |
| 829 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 830 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 831 | datarootdir=$ac_optarg ;; |
| 832 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 833 | -disable-* | --disable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 834 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 835 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 836 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 837 | as_fn_error "invalid feature name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 838 | ac_useropt_orig=$ac_useropt |
| 839 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 840 | case $ac_user_opts in |
| 841 | *" |
| 842 | "enable_$ac_useropt" |
| 843 | "*) ;; |
| 844 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 845 | ac_unrecognized_sep=', ';; |
| 846 | esac |
| 847 | eval enable_$ac_useropt=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 848 | |
| 849 | -docdir | --docdir | --docdi | --doc | --do) |
| 850 | ac_prev=docdir ;; |
| 851 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 852 | docdir=$ac_optarg ;; |
| 853 | |
| 854 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 855 | ac_prev=dvidir ;; |
| 856 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 857 | dvidir=$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 858 | |
| 859 | -enable-* | --enable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 860 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 861 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 862 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 863 | as_fn_error "invalid feature name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 864 | ac_useropt_orig=$ac_useropt |
| 865 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 866 | case $ac_user_opts in |
| 867 | *" |
| 868 | "enable_$ac_useropt" |
| 869 | "*) ;; |
| 870 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 871 | ac_unrecognized_sep=', ';; |
| 872 | esac |
| 873 | eval enable_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 874 | |
| 875 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 876 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 877 | | --exec | --exe | --ex) |
| 878 | ac_prev=exec_prefix ;; |
| 879 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 880 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 881 | | --exec=* | --exe=* | --ex=*) |
| 882 | exec_prefix=$ac_optarg ;; |
| 883 | |
| 884 | -gas | --gas | --ga | --g) |
| 885 | # Obsolete; use --with-gas. |
| 886 | with_gas=yes ;; |
| 887 | |
| 888 | -help | --help | --hel | --he | -h) |
| 889 | ac_init_help=long ;; |
| 890 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 891 | ac_init_help=recursive ;; |
| 892 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 893 | ac_init_help=short ;; |
| 894 | |
| 895 | -host | --host | --hos | --ho) |
| 896 | ac_prev=host_alias ;; |
| 897 | -host=* | --host=* | --hos=* | --ho=*) |
| 898 | host_alias=$ac_optarg ;; |
| 899 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 900 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 901 | ac_prev=htmldir ;; |
| 902 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 903 | | --ht=*) |
| 904 | htmldir=$ac_optarg ;; |
| 905 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 906 | -includedir | --includedir | --includedi | --included | --include \ |
| 907 | | --includ | --inclu | --incl | --inc) |
| 908 | ac_prev=includedir ;; |
| 909 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 910 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 911 | includedir=$ac_optarg ;; |
| 912 | |
| 913 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 914 | ac_prev=infodir ;; |
| 915 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 916 | infodir=$ac_optarg ;; |
| 917 | |
| 918 | -libdir | --libdir | --libdi | --libd) |
| 919 | ac_prev=libdir ;; |
| 920 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 921 | libdir=$ac_optarg ;; |
| 922 | |
| 923 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 924 | | --libexe | --libex | --libe) |
| 925 | ac_prev=libexecdir ;; |
| 926 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 927 | | --libexe=* | --libex=* | --libe=*) |
| 928 | libexecdir=$ac_optarg ;; |
| 929 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 930 | -localedir | --localedir | --localedi | --localed | --locale) |
| 931 | ac_prev=localedir ;; |
| 932 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 933 | localedir=$ac_optarg ;; |
| 934 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 935 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 936 | | --localstate | --localstat | --localsta | --localst | --locals) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 937 | ac_prev=localstatedir ;; |
| 938 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 939 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 940 | localstatedir=$ac_optarg ;; |
| 941 | |
| 942 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 943 | ac_prev=mandir ;; |
| 944 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 945 | mandir=$ac_optarg ;; |
| 946 | |
| 947 | -nfp | --nfp | --nf) |
| 948 | # Obsolete; use --without-fp. |
| 949 | with_fp=no ;; |
| 950 | |
| 951 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 952 | | --no-cr | --no-c | -n) |
| 953 | no_create=yes ;; |
| 954 | |
| 955 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 956 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 957 | no_recursion=yes ;; |
| 958 | |
| 959 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 960 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 961 | | --oldin | --oldi | --old | --ol | --o) |
| 962 | ac_prev=oldincludedir ;; |
| 963 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 964 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 965 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 966 | oldincludedir=$ac_optarg ;; |
| 967 | |
| 968 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 969 | ac_prev=prefix ;; |
| 970 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 971 | prefix=$ac_optarg ;; |
| 972 | |
| 973 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 974 | | --program-pre | --program-pr | --program-p) |
| 975 | ac_prev=program_prefix ;; |
| 976 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 977 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 978 | program_prefix=$ac_optarg ;; |
| 979 | |
| 980 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 981 | | --program-suf | --program-su | --program-s) |
| 982 | ac_prev=program_suffix ;; |
| 983 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 984 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 985 | program_suffix=$ac_optarg ;; |
| 986 | |
| 987 | -program-transform-name | --program-transform-name \ |
| 988 | | --program-transform-nam | --program-transform-na \ |
| 989 | | --program-transform-n | --program-transform- \ |
| 990 | | --program-transform | --program-transfor \ |
| 991 | | --program-transfo | --program-transf \ |
| 992 | | --program-trans | --program-tran \ |
| 993 | | --progr-tra | --program-tr | --program-t) |
| 994 | ac_prev=program_transform_name ;; |
| 995 | -program-transform-name=* | --program-transform-name=* \ |
| 996 | | --program-transform-nam=* | --program-transform-na=* \ |
| 997 | | --program-transform-n=* | --program-transform-=* \ |
| 998 | | --program-transform=* | --program-transfor=* \ |
| 999 | | --program-transfo=* | --program-transf=* \ |
| 1000 | | --program-trans=* | --program-tran=* \ |
| 1001 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1002 | program_transform_name=$ac_optarg ;; |
| 1003 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1004 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1005 | ac_prev=pdfdir ;; |
| 1006 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1007 | pdfdir=$ac_optarg ;; |
| 1008 | |
| 1009 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1010 | ac_prev=psdir ;; |
| 1011 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1012 | psdir=$ac_optarg ;; |
| 1013 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1014 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1015 | | -silent | --silent | --silen | --sile | --sil) |
| 1016 | silent=yes ;; |
| 1017 | |
| 1018 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1019 | ac_prev=sbindir ;; |
| 1020 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1021 | | --sbi=* | --sb=*) |
| 1022 | sbindir=$ac_optarg ;; |
| 1023 | |
| 1024 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1025 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1026 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1027 | | --sha | --sh) |
| 1028 | ac_prev=sharedstatedir ;; |
| 1029 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1030 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1031 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1032 | | --sha=* | --sh=*) |
| 1033 | sharedstatedir=$ac_optarg ;; |
| 1034 | |
| 1035 | -site | --site | --sit) |
| 1036 | ac_prev=site ;; |
| 1037 | -site=* | --site=* | --sit=*) |
| 1038 | site=$ac_optarg ;; |
| 1039 | |
| 1040 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1041 | ac_prev=srcdir ;; |
| 1042 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1043 | srcdir=$ac_optarg ;; |
| 1044 | |
| 1045 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1046 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1047 | ac_prev=sysconfdir ;; |
| 1048 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1049 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1050 | sysconfdir=$ac_optarg ;; |
| 1051 | |
| 1052 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1053 | ac_prev=target_alias ;; |
| 1054 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1055 | target_alias=$ac_optarg ;; |
| 1056 | |
| 1057 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1058 | verbose=yes ;; |
| 1059 | |
| 1060 | -version | --version | --versio | --versi | --vers | -V) |
| 1061 | ac_init_version=: ;; |
| 1062 | |
| 1063 | -with-* | --with-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1064 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1065 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1066 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1067 | as_fn_error "invalid package name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1068 | ac_useropt_orig=$ac_useropt |
| 1069 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1070 | case $ac_user_opts in |
| 1071 | *" |
| 1072 | "with_$ac_useropt" |
| 1073 | "*) ;; |
| 1074 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1075 | ac_unrecognized_sep=', ';; |
| 1076 | esac |
| 1077 | eval with_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1078 | |
| 1079 | -without-* | --without-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1080 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1081 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1082 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1083 | as_fn_error "invalid package name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1084 | ac_useropt_orig=$ac_useropt |
| 1085 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1086 | case $ac_user_opts in |
| 1087 | *" |
| 1088 | "with_$ac_useropt" |
| 1089 | "*) ;; |
| 1090 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1091 | ac_unrecognized_sep=', ';; |
| 1092 | esac |
| 1093 | eval with_$ac_useropt=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1094 | |
| 1095 | --x) |
| 1096 | # Obsolete; use --with-x. |
| 1097 | with_x=yes ;; |
| 1098 | |
| 1099 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1100 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1101 | ac_prev=x_includes ;; |
| 1102 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1103 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1104 | x_includes=$ac_optarg ;; |
| 1105 | |
| 1106 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1107 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1108 | ac_prev=x_libraries ;; |
| 1109 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1110 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1111 | x_libraries=$ac_optarg ;; |
| 1112 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1113 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1114 | Try \`$0 --help' for more information." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1115 | ;; |
| 1116 | |
| 1117 | *=*) |
| 1118 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1119 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1120 | case $ac_envvar in #( |
| 1121 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1122 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1123 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1124 | eval $ac_envvar=\$ac_optarg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1125 | export $ac_envvar ;; |
| 1126 | |
| 1127 | *) |
| 1128 | # FIXME: should be removed in autoconf 3.0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1129 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1130 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1131 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1132 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1133 | ;; |
| 1134 | |
| 1135 | esac |
| 1136 | done |
| 1137 | |
| 1138 | if test -n "$ac_prev"; then |
| 1139 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1140 | as_fn_error "missing argument to $ac_option" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1141 | fi |
| 1142 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1143 | if test -n "$ac_unrecognized_opts"; then |
| 1144 | case $enable_option_checking in |
| 1145 | no) ;; |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1146 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1147 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1148 | esac |
| 1149 | fi |
| 1150 | |
| 1151 | # Check all directory arguments for consistency. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1152 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1153 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1154 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1155 | libdir localedir mandir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1156 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1157 | eval ac_val=\$$ac_var |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1158 | # Remove trailing slashes. |
| 1159 | case $ac_val in |
| 1160 | */ ) |
| 1161 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1162 | eval $ac_var=\$ac_val;; |
| 1163 | esac |
| 1164 | # Be sure to have absolute directory names. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1165 | case $ac_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1166 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1167 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1168 | esac |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1169 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1170 | done |
| 1171 | |
| 1172 | # There might be people who depend on the old broken behavior: `$host' |
| 1173 | # used to hold the argument of --host etc. |
| 1174 | # FIXME: To remove some day. |
| 1175 | build=$build_alias |
| 1176 | host=$host_alias |
| 1177 | target=$target_alias |
| 1178 | |
| 1179 | # FIXME: To remove some day. |
| 1180 | if test "x$host_alias" != x; then |
| 1181 | if test "x$build_alias" = x; then |
| 1182 | cross_compiling=maybe |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1183 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1184 | 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] | 1185 | elif test "x$build_alias" != "x$host_alias"; then |
| 1186 | cross_compiling=yes |
| 1187 | fi |
| 1188 | fi |
| 1189 | |
| 1190 | ac_tool_prefix= |
| 1191 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1192 | |
| 1193 | test "$silent" = yes && exec 6>/dev/null |
| 1194 | |
| 1195 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1196 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1197 | ac_ls_di=`ls -di .` && |
| 1198 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1199 | as_fn_error "working directory cannot be determined" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1200 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1201 | as_fn_error "pwd does not report name of working directory" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1202 | |
| 1203 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1204 | # Find the source files, if location was not specified. |
| 1205 | if test -z "$srcdir"; then |
| 1206 | ac_srcdir_defaulted=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1207 | # Try the directory containing this script, then the parent directory. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1208 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1209 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1210 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1211 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1212 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1213 | $as_echo X"$as_myself" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1214 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1215 | s//\1/ |
| 1216 | q |
| 1217 | } |
| 1218 | /^X\(\/\/\)[^/].*/{ |
| 1219 | s//\1/ |
| 1220 | q |
| 1221 | } |
| 1222 | /^X\(\/\/\)$/{ |
| 1223 | s//\1/ |
| 1224 | q |
| 1225 | } |
| 1226 | /^X\(\/\).*/{ |
| 1227 | s//\1/ |
| 1228 | q |
| 1229 | } |
| 1230 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1231 | srcdir=$ac_confdir |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1232 | if test ! -r "$srcdir/$ac_unique_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1233 | srcdir=.. |
| 1234 | fi |
| 1235 | else |
| 1236 | ac_srcdir_defaulted=no |
| 1237 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1238 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1239 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1240 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1241 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1242 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1243 | ac_abs_confdir=`( |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1244 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1245 | pwd)` |
| 1246 | # When building in place, set srcdir=. |
| 1247 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1248 | srcdir=. |
| 1249 | fi |
| 1250 | # Remove unnecessary trailing slashes from srcdir. |
| 1251 | # Double slashes in file names in object file debugging info |
| 1252 | # mess up M-x gdb in Emacs. |
| 1253 | case $srcdir in |
| 1254 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1255 | esac |
| 1256 | for ac_var in $ac_precious_vars; do |
| 1257 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1258 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1259 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1260 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1261 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1262 | |
| 1263 | # |
| 1264 | # Report the --help message. |
| 1265 | # |
| 1266 | if test "$ac_init_help" = "long"; then |
| 1267 | # Omit some internal or obsolete options to make the list less imposing. |
| 1268 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1269 | cat <<_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1270 | \`configure' configures breakpad 0.1 to adapt to many kinds of systems. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1271 | |
| 1272 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1273 | |
| 1274 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1275 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1276 | |
| 1277 | Defaults for the options are specified in brackets. |
| 1278 | |
| 1279 | Configuration: |
| 1280 | -h, --help display this help and exit |
| 1281 | --help=short display options specific to this package |
| 1282 | --help=recursive display the short help of all the included packages |
| 1283 | -V, --version display version information and exit |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1284 | -q, --quiet, --silent do not print \`checking...' messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1285 | --cache-file=FILE cache test results in FILE [disabled] |
| 1286 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1287 | -n, --no-create do not create output files |
| 1288 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1289 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1290 | Installation directories: |
| 1291 | --prefix=PREFIX install architecture-independent files in PREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1292 | [$ac_default_prefix] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1293 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1294 | [PREFIX] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1295 | |
| 1296 | By default, \`make install' will install all the files in |
| 1297 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1298 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1299 | for instance \`--prefix=\$HOME'. |
| 1300 | |
| 1301 | For better control, use the options below. |
| 1302 | |
| 1303 | Fine tuning of the installation directories: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1304 | --bindir=DIR user executables [EPREFIX/bin] |
| 1305 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1306 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1307 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1308 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1309 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1310 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1311 | --includedir=DIR C header files [PREFIX/include] |
| 1312 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1313 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1314 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1315 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1316 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1317 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1318 | --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad] |
| 1319 | --htmldir=DIR html documentation [DOCDIR] |
| 1320 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1321 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1322 | --psdir=DIR ps documentation [DOCDIR] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1323 | _ACEOF |
| 1324 | |
| 1325 | cat <<\_ACEOF |
| 1326 | |
| 1327 | Program names: |
| 1328 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1329 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1330 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1331 | |
| 1332 | System types: |
| 1333 | --build=BUILD configure for building on BUILD [guessed] |
| 1334 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1335 | _ACEOF |
| 1336 | fi |
| 1337 | |
| 1338 | if test -n "$ac_init_help"; then |
| 1339 | case $ac_init_help in |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1340 | short | recursive ) echo "Configuration of breakpad 0.1:";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1341 | esac |
| 1342 | cat <<\_ACEOF |
| 1343 | |
| 1344 | Optional Features: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1345 | --disable-option-checking ignore unrecognized --enable/--with options |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1346 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1347 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1348 | --disable-dependency-tracking speeds up one-time build |
| 1349 | --enable-dependency-tracking do not reject slow dependency extractors |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 1350 | --enable-m32 Compile/build with -m32 (default is no) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1351 | --disable-processor Don't build processor library (default is no) |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame^] | 1352 | --disable-tools Don't build tool binaries (default is no) |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 1353 | --enable-selftest Run extra tests with "make check" (may conflict with |
| 1354 | optimizations) (default is no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1355 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1356 | Some influential environment variables: |
| 1357 | CC C compiler command |
| 1358 | CFLAGS C compiler flags |
| 1359 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1360 | nonstandard directory <lib dir> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 1361 | LIBS libraries to pass to the linker, e.g. -l<library> |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1362 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1363 | you have headers in a nonstandard directory <include dir> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1364 | CPP C preprocessor |
| 1365 | CXX C++ compiler command |
| 1366 | CXXFLAGS C++ compiler flags |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1367 | |
| 1368 | Use these variables to override the choices made by `configure' or to help |
| 1369 | it to find libraries and programs with nonstandard names/locations. |
| 1370 | |
thestig@chromium.org | 43e6db7 | 2010-11-08 19:49:41 +0000 | [diff] [blame] | 1371 | Report bugs to <google-breakpad-dev@googlegroups.com>. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1372 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1373 | ac_status=$? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1374 | fi |
| 1375 | |
| 1376 | if test "$ac_init_help" = "recursive"; then |
| 1377 | # If there are subdirs, report their specific --help. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1378 | 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] | 1379 | test -d "$ac_dir" || |
| 1380 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1381 | continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1382 | ac_builddir=. |
| 1383 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1384 | case "$ac_dir" in |
| 1385 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1386 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1387 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1388 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1389 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1390 | case $ac_top_builddir_sub in |
| 1391 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1392 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1393 | esac ;; |
| 1394 | esac |
| 1395 | ac_abs_top_builddir=$ac_pwd |
| 1396 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1397 | # for backward compatibility: |
| 1398 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1399 | |
| 1400 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1401 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1402 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1403 | ac_top_srcdir=$ac_top_builddir_sub |
| 1404 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1405 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1406 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1407 | ac_top_srcdir=$srcdir |
| 1408 | ac_abs_top_srcdir=$srcdir ;; |
| 1409 | *) # Relative name. |
| 1410 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1411 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1412 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1413 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1414 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1415 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1416 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1417 | # Check for guested configure. |
| 1418 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1419 | echo && |
| 1420 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1421 | elif test -f "$ac_srcdir/configure"; then |
| 1422 | echo && |
| 1423 | $SHELL "$ac_srcdir/configure" --help=recursive |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1424 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1425 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1426 | fi || ac_status=$? |
| 1427 | cd "$ac_pwd" || { ac_status=$?; break; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1428 | done |
| 1429 | fi |
| 1430 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1431 | test -n "$ac_init_help" && exit $ac_status |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1432 | if $ac_init_version; then |
| 1433 | cat <<\_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1434 | breakpad configure 0.1 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1435 | generated by GNU Autoconf 2.65 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1436 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1437 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1438 | This configure script is free software; the Free Software Foundation |
| 1439 | gives unlimited permission to copy, distribute and modify it. |
| 1440 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1441 | exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1442 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1443 | |
| 1444 | ## ------------------------ ## |
| 1445 | ## Autoconf initialization. ## |
| 1446 | ## ------------------------ ## |
| 1447 | |
| 1448 | # ac_fn_c_try_compile LINENO |
| 1449 | # -------------------------- |
| 1450 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1451 | ac_fn_c_try_compile () |
| 1452 | { |
| 1453 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1454 | rm -f conftest.$ac_objext |
| 1455 | if { { ac_try="$ac_compile" |
| 1456 | case "(($ac_try" in |
| 1457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1458 | *) ac_try_echo=$ac_try;; |
| 1459 | esac |
| 1460 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1461 | $as_echo "$ac_try_echo"; } >&5 |
| 1462 | (eval "$ac_compile") 2>conftest.err |
| 1463 | ac_status=$? |
| 1464 | if test -s conftest.err; then |
| 1465 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1466 | cat conftest.er1 >&5 |
| 1467 | mv -f conftest.er1 conftest.err |
| 1468 | fi |
| 1469 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1470 | test $ac_status = 0; } && { |
| 1471 | test -z "$ac_c_werror_flag" || |
| 1472 | test ! -s conftest.err |
| 1473 | } && test -s conftest.$ac_objext; then : |
| 1474 | ac_retval=0 |
| 1475 | else |
| 1476 | $as_echo "$as_me: failed program was:" >&5 |
| 1477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1478 | |
| 1479 | ac_retval=1 |
| 1480 | fi |
| 1481 | 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] | 1482 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1483 | |
| 1484 | } # ac_fn_c_try_compile |
| 1485 | |
| 1486 | # ac_fn_c_try_cpp LINENO |
| 1487 | # ---------------------- |
| 1488 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1489 | ac_fn_c_try_cpp () |
| 1490 | { |
| 1491 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1492 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1493 | case "(($ac_try" in |
| 1494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1495 | *) ac_try_echo=$ac_try;; |
| 1496 | esac |
| 1497 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1498 | $as_echo "$ac_try_echo"; } >&5 |
| 1499 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1500 | ac_status=$? |
| 1501 | if test -s conftest.err; then |
| 1502 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1503 | cat conftest.er1 >&5 |
| 1504 | mv -f conftest.er1 conftest.err |
| 1505 | fi |
| 1506 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1507 | test $ac_status = 0; } >/dev/null && { |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1508 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1509 | test ! -s conftest.err |
| 1510 | }; then : |
| 1511 | ac_retval=0 |
| 1512 | else |
| 1513 | $as_echo "$as_me: failed program was:" >&5 |
| 1514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1515 | |
| 1516 | ac_retval=1 |
| 1517 | fi |
| 1518 | 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] | 1519 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1520 | |
| 1521 | } # ac_fn_c_try_cpp |
| 1522 | |
| 1523 | # ac_fn_cxx_try_compile LINENO |
| 1524 | # ---------------------------- |
| 1525 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1526 | ac_fn_cxx_try_compile () |
| 1527 | { |
| 1528 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1529 | rm -f conftest.$ac_objext |
| 1530 | if { { ac_try="$ac_compile" |
| 1531 | case "(($ac_try" in |
| 1532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1533 | *) ac_try_echo=$ac_try;; |
| 1534 | esac |
| 1535 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1536 | $as_echo "$ac_try_echo"; } >&5 |
| 1537 | (eval "$ac_compile") 2>conftest.err |
| 1538 | ac_status=$? |
| 1539 | if test -s conftest.err; then |
| 1540 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1541 | cat conftest.er1 >&5 |
| 1542 | mv -f conftest.er1 conftest.err |
| 1543 | fi |
| 1544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1545 | test $ac_status = 0; } && { |
| 1546 | test -z "$ac_cxx_werror_flag" || |
| 1547 | test ! -s conftest.err |
| 1548 | } && test -s conftest.$ac_objext; then : |
| 1549 | ac_retval=0 |
| 1550 | else |
| 1551 | $as_echo "$as_me: failed program was:" >&5 |
| 1552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1553 | |
| 1554 | ac_retval=1 |
| 1555 | fi |
| 1556 | 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] | 1557 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1558 | |
| 1559 | } # ac_fn_cxx_try_compile |
| 1560 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 1561 | # ac_fn_c_try_run LINENO |
| 1562 | # ---------------------- |
| 1563 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1564 | # that executables *can* be run. |
| 1565 | ac_fn_c_try_run () |
| 1566 | { |
| 1567 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1568 | if { { ac_try="$ac_link" |
| 1569 | case "(($ac_try" in |
| 1570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1571 | *) ac_try_echo=$ac_try;; |
| 1572 | esac |
| 1573 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1574 | $as_echo "$ac_try_echo"; } >&5 |
| 1575 | (eval "$ac_link") 2>&5 |
| 1576 | ac_status=$? |
| 1577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1578 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1579 | { { case "(($ac_try" in |
| 1580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1581 | *) ac_try_echo=$ac_try;; |
| 1582 | esac |
| 1583 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1584 | $as_echo "$ac_try_echo"; } >&5 |
| 1585 | (eval "$ac_try") 2>&5 |
| 1586 | ac_status=$? |
| 1587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1588 | test $ac_status = 0; }; }; then : |
| 1589 | ac_retval=0 |
| 1590 | else |
| 1591 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1592 | $as_echo "$as_me: failed program was:" >&5 |
| 1593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1594 | |
| 1595 | ac_retval=$ac_status |
| 1596 | fi |
| 1597 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1598 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1599 | as_fn_set_status $ac_retval |
| 1600 | |
| 1601 | } # ac_fn_c_try_run |
| 1602 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1603 | # ac_fn_c_try_link LINENO |
| 1604 | # ----------------------- |
| 1605 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1606 | ac_fn_c_try_link () |
| 1607 | { |
| 1608 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1609 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1610 | if { { ac_try="$ac_link" |
| 1611 | case "(($ac_try" in |
| 1612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1613 | *) ac_try_echo=$ac_try;; |
| 1614 | esac |
| 1615 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1616 | $as_echo "$ac_try_echo"; } >&5 |
| 1617 | (eval "$ac_link") 2>conftest.err |
| 1618 | ac_status=$? |
| 1619 | if test -s conftest.err; then |
| 1620 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1621 | cat conftest.er1 >&5 |
| 1622 | mv -f conftest.er1 conftest.err |
| 1623 | fi |
| 1624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1625 | test $ac_status = 0; } && { |
| 1626 | test -z "$ac_c_werror_flag" || |
| 1627 | test ! -s conftest.err |
| 1628 | } && test -s conftest$ac_exeext && { |
| 1629 | test "$cross_compiling" = yes || |
| 1630 | $as_test_x conftest$ac_exeext |
| 1631 | }; then : |
| 1632 | ac_retval=0 |
| 1633 | else |
| 1634 | $as_echo "$as_me: failed program was:" >&5 |
| 1635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1636 | |
| 1637 | ac_retval=1 |
| 1638 | fi |
| 1639 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1640 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1641 | # interfere with the next link command; also delete a directory that is |
| 1642 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1643 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1644 | 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] | 1645 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1646 | |
| 1647 | } # ac_fn_c_try_link |
| 1648 | |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame^] | 1649 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1650 | # ------------------------------------------------------- |
| 1651 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1652 | # the include files in INCLUDES and setting the cache variable VAR |
| 1653 | # accordingly. |
| 1654 | ac_fn_c_check_header_mongrel () |
| 1655 | { |
| 1656 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1657 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1659 | $as_echo_n "checking for $2... " >&6; } |
| 1660 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1661 | $as_echo_n "(cached) " >&6 |
| 1662 | fi |
| 1663 | eval ac_res=\$$3 |
| 1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1665 | $as_echo "$ac_res" >&6; } |
| 1666 | else |
| 1667 | # Is the header compilable? |
| 1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1669 | $as_echo_n "checking $2 usability... " >&6; } |
| 1670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1671 | /* end confdefs.h. */ |
| 1672 | $4 |
| 1673 | #include <$2> |
| 1674 | _ACEOF |
| 1675 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1676 | ac_header_compiler=yes |
| 1677 | else |
| 1678 | ac_header_compiler=no |
| 1679 | fi |
| 1680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1682 | $as_echo "$ac_header_compiler" >&6; } |
| 1683 | |
| 1684 | # Is the header present? |
| 1685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1686 | $as_echo_n "checking $2 presence... " >&6; } |
| 1687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1688 | /* end confdefs.h. */ |
| 1689 | #include <$2> |
| 1690 | _ACEOF |
| 1691 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1692 | ac_header_preproc=yes |
| 1693 | else |
| 1694 | ac_header_preproc=no |
| 1695 | fi |
| 1696 | rm -f conftest.err conftest.$ac_ext |
| 1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1698 | $as_echo "$ac_header_preproc" >&6; } |
| 1699 | |
| 1700 | # So? What about this header? |
| 1701 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1702 | yes:no: ) |
| 1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1704 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1705 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1706 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1707 | ;; |
| 1708 | no:yes:* ) |
| 1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1710 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1712 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1714 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1715 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1716 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1718 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1719 | ( cat <<\_ASBOX |
| 1720 | ## --------------------------------------------------- ## |
| 1721 | ## Report this to google-breakpad-dev@googlegroups.com ## |
| 1722 | ## --------------------------------------------------- ## |
| 1723 | _ASBOX |
| 1724 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1725 | ;; |
| 1726 | esac |
| 1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1728 | $as_echo_n "checking for $2... " >&6; } |
| 1729 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1730 | $as_echo_n "(cached) " >&6 |
| 1731 | else |
| 1732 | eval "$3=\$ac_header_compiler" |
| 1733 | fi |
| 1734 | eval ac_res=\$$3 |
| 1735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1736 | $as_echo "$ac_res" >&6; } |
| 1737 | fi |
| 1738 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1739 | |
| 1740 | } # ac_fn_c_check_header_mongrel |
| 1741 | |
| 1742 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1743 | # ------------------------------------------------------- |
| 1744 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1745 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1746 | ac_fn_c_check_header_compile () |
| 1747 | { |
| 1748 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1750 | $as_echo_n "checking for $2... " >&6; } |
| 1751 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1752 | $as_echo_n "(cached) " >&6 |
| 1753 | else |
| 1754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1755 | /* end confdefs.h. */ |
| 1756 | $4 |
| 1757 | #include <$2> |
| 1758 | _ACEOF |
| 1759 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1760 | eval "$3=yes" |
| 1761 | else |
| 1762 | eval "$3=no" |
| 1763 | fi |
| 1764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1765 | fi |
| 1766 | eval ac_res=\$$3 |
| 1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1768 | $as_echo "$ac_res" >&6; } |
| 1769 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1770 | |
| 1771 | } # ac_fn_c_check_header_compile |
| 1772 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 1773 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 1774 | # ---------------------------------------------------- |
| 1775 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 1776 | # INCLUDES, setting cache variable VAR accordingly. |
| 1777 | ac_fn_c_check_member () |
| 1778 | { |
| 1779 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 1781 | $as_echo_n "checking for $2.$3... " >&6; } |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1782 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 1783 | $as_echo_n "(cached) " >&6 |
| 1784 | else |
| 1785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1786 | /* end confdefs.h. */ |
| 1787 | $5 |
| 1788 | int |
| 1789 | main () |
| 1790 | { |
| 1791 | static $2 ac_aggr; |
| 1792 | if (ac_aggr.$3) |
| 1793 | return 0; |
| 1794 | ; |
| 1795 | return 0; |
| 1796 | } |
| 1797 | _ACEOF |
| 1798 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1799 | eval "$4=yes" |
| 1800 | else |
| 1801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1802 | /* end confdefs.h. */ |
| 1803 | $5 |
| 1804 | int |
| 1805 | main () |
| 1806 | { |
| 1807 | static $2 ac_aggr; |
| 1808 | if (sizeof ac_aggr.$3) |
| 1809 | return 0; |
| 1810 | ; |
| 1811 | return 0; |
| 1812 | } |
| 1813 | _ACEOF |
| 1814 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1815 | eval "$4=yes" |
| 1816 | else |
| 1817 | eval "$4=no" |
| 1818 | fi |
| 1819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1820 | fi |
| 1821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1822 | fi |
| 1823 | eval ac_res=\$$4 |
| 1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1825 | $as_echo "$ac_res" >&6; } |
| 1826 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1827 | |
| 1828 | } # ac_fn_c_check_member |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1829 | cat >config.log <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1830 | This file contains any messages produced by compilers while |
| 1831 | running configure, to aid debugging if configure makes a mistake. |
| 1832 | |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1833 | It was created by breakpad $as_me 0.1, which was |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1834 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1835 | |
| 1836 | $ $0 $@ |
| 1837 | |
| 1838 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1839 | exec 5>>config.log |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1840 | { |
| 1841 | cat <<_ASUNAME |
| 1842 | ## --------- ## |
| 1843 | ## Platform. ## |
| 1844 | ## --------- ## |
| 1845 | |
| 1846 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1847 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1848 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1849 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1850 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1851 | |
| 1852 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1853 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1854 | |
| 1855 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1856 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1857 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1858 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1859 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1860 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1861 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1862 | |
| 1863 | _ASUNAME |
| 1864 | |
| 1865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1866 | for as_dir in $PATH |
| 1867 | do |
| 1868 | IFS=$as_save_IFS |
| 1869 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1870 | $as_echo "PATH: $as_dir" |
| 1871 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1872 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1873 | |
| 1874 | } >&5 |
| 1875 | |
| 1876 | cat >&5 <<_ACEOF |
| 1877 | |
| 1878 | |
| 1879 | ## ----------- ## |
| 1880 | ## Core tests. ## |
| 1881 | ## ----------- ## |
| 1882 | |
| 1883 | _ACEOF |
| 1884 | |
| 1885 | |
| 1886 | # Keep a trace of the command line. |
| 1887 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1888 | # Strip out --silent because we don't want to record it for future runs. |
| 1889 | # Also quote any args containing shell meta-characters. |
| 1890 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1891 | ac_configure_args= |
| 1892 | ac_configure_args0= |
| 1893 | ac_configure_args1= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1894 | ac_must_keep_next=false |
| 1895 | for ac_pass in 1 2 |
| 1896 | do |
| 1897 | for ac_arg |
| 1898 | do |
| 1899 | case $ac_arg in |
| 1900 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1901 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1902 | | -silent | --silent | --silen | --sile | --sil) |
| 1903 | continue ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1904 | *\'*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1905 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1906 | esac |
| 1907 | case $ac_pass in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1908 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1909 | 2) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1910 | as_fn_append ac_configure_args1 " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1911 | if test $ac_must_keep_next = true; then |
| 1912 | ac_must_keep_next=false # Got value, back to normal. |
| 1913 | else |
| 1914 | case $ac_arg in |
| 1915 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1916 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1917 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1918 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1919 | case "$ac_configure_args0 " in |
| 1920 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1921 | esac |
| 1922 | ;; |
| 1923 | -* ) ac_must_keep_next=true ;; |
| 1924 | esac |
| 1925 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1926 | as_fn_append ac_configure_args " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1927 | ;; |
| 1928 | esac |
| 1929 | done |
| 1930 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1931 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1932 | { ac_configure_args1=; unset ac_configure_args1;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1933 | |
| 1934 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1935 | # config.log. We remove comments because anyway the quotes in there |
| 1936 | # would cause problems or look ugly. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1937 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1938 | # 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] | 1939 | trap 'exit_status=$? |
| 1940 | # Save into config.log some information that might help in debugging. |
| 1941 | { |
| 1942 | echo |
| 1943 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1944 | cat <<\_ASBOX |
| 1945 | ## ---------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1946 | ## Cache variables. ## |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1947 | ## ---------------- ## |
| 1948 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1949 | echo |
| 1950 | # The following way of writing the cache mishandles newlines in values, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1951 | ( |
| 1952 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1953 | eval ac_val=\$$ac_var |
| 1954 | case $ac_val in #( |
| 1955 | *${as_nl}*) |
| 1956 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1957 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1958 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1959 | esac |
| 1960 | case $ac_var in #( |
| 1961 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1962 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1963 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1964 | esac ;; |
| 1965 | esac |
| 1966 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1967 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1968 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1969 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1970 | sed -n \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1971 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1972 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1973 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1974 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1975 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1976 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1977 | esac | |
| 1978 | sort |
| 1979 | ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1980 | echo |
| 1981 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1982 | cat <<\_ASBOX |
| 1983 | ## ----------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1984 | ## Output variables. ## |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1985 | ## ----------------- ## |
| 1986 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1987 | echo |
| 1988 | for ac_var in $ac_subst_vars |
| 1989 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1990 | eval ac_val=\$$ac_var |
| 1991 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1992 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1993 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1994 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1995 | done | sort |
| 1996 | echo |
| 1997 | |
| 1998 | if test -n "$ac_subst_files"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1999 | cat <<\_ASBOX |
| 2000 | ## ------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2001 | ## File substitutions. ## |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2002 | ## ------------------- ## |
| 2003 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2004 | echo |
| 2005 | for ac_var in $ac_subst_files |
| 2006 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2007 | eval ac_val=\$$ac_var |
| 2008 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2009 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2010 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2011 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2012 | done | sort |
| 2013 | echo |
| 2014 | fi |
| 2015 | |
| 2016 | if test -s confdefs.h; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2017 | cat <<\_ASBOX |
| 2018 | ## ----------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2019 | ## confdefs.h. ## |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2020 | ## ----------- ## |
| 2021 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2022 | echo |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2023 | cat confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2024 | echo |
| 2025 | fi |
| 2026 | test "$ac_signal" != 0 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2027 | $as_echo "$as_me: caught signal $ac_signal" |
| 2028 | $as_echo "$as_me: exit $exit_status" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2029 | } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2030 | rm -f core *.core core.conftest.* && |
| 2031 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2032 | exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2033 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2034 | for ac_signal in 1 2 13 15; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2035 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2036 | done |
| 2037 | ac_signal=0 |
| 2038 | |
| 2039 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2040 | rm -f -r conftest* confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2041 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2042 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2043 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2044 | # Predefined preprocessor variables. |
| 2045 | |
| 2046 | cat >>confdefs.h <<_ACEOF |
| 2047 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2048 | _ACEOF |
| 2049 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2050 | cat >>confdefs.h <<_ACEOF |
| 2051 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2052 | _ACEOF |
| 2053 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2054 | cat >>confdefs.h <<_ACEOF |
| 2055 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2056 | _ACEOF |
| 2057 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2058 | cat >>confdefs.h <<_ACEOF |
| 2059 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2060 | _ACEOF |
| 2061 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2062 | cat >>confdefs.h <<_ACEOF |
| 2063 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2064 | _ACEOF |
| 2065 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2066 | cat >>confdefs.h <<_ACEOF |
| 2067 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2068 | _ACEOF |
| 2069 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2070 | |
| 2071 | # Let the site file select an alternate cache file if it wants to. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2072 | # Prefer an explicitly selected file to automatically selected ones. |
| 2073 | ac_site_file1=NONE |
| 2074 | ac_site_file2=NONE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2075 | if test -n "$CONFIG_SITE"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2076 | ac_site_file1=$CONFIG_SITE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2077 | elif test "x$prefix" != xNONE; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2078 | ac_site_file1=$prefix/share/config.site |
| 2079 | ac_site_file2=$prefix/etc/config.site |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2080 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2081 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2082 | ac_site_file2=$ac_default_prefix/etc/config.site |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2083 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2084 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2085 | do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2086 | test "x$ac_site_file" = xNONE && continue |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2087 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2088 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2089 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2090 | sed 's/^/| /' "$ac_site_file" >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2091 | . "$ac_site_file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2092 | fi |
| 2093 | done |
| 2094 | |
| 2095 | if test -r "$cache_file"; then |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2096 | # Some versions of bash will fail to source /dev/null (special files |
| 2097 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2098 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2100 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2101 | case $cache_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2102 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2103 | *) . "./$cache_file";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2104 | esac |
| 2105 | fi |
| 2106 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2107 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2108 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2109 | >$cache_file |
| 2110 | fi |
| 2111 | |
| 2112 | # Check that the precious variables saved in the cache have kept the same |
| 2113 | # value. |
| 2114 | ac_cache_corrupted=false |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2115 | for ac_var in $ac_precious_vars; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2116 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2117 | eval ac_new_set=\$ac_env_${ac_var}_set |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2118 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2119 | eval ac_new_val=\$ac_env_${ac_var}_value |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2120 | case $ac_old_set,$ac_new_set in |
| 2121 | set,) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2123 | $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] | 2124 | ac_cache_corrupted=: ;; |
| 2125 | ,set) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2127 | $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] | 2128 | ac_cache_corrupted=: ;; |
| 2129 | ,);; |
| 2130 | *) |
| 2131 | if test "x$ac_old_val" != "x$ac_new_val"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2132 | # differences in whitespace do not lead to failure. |
| 2133 | ac_old_val_w=`echo x $ac_old_val` |
| 2134 | ac_new_val_w=`echo x $ac_new_val` |
| 2135 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2136 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2137 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2138 | ac_cache_corrupted=: |
| 2139 | else |
| 2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2141 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2142 | eval $ac_var=\$ac_old_val |
| 2143 | fi |
| 2144 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2145 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2146 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2147 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2148 | fi;; |
| 2149 | esac |
| 2150 | # Pass precious variables to config.status. |
| 2151 | if test "$ac_new_set" = set; then |
| 2152 | case $ac_new_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2153 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2154 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2155 | esac |
| 2156 | case " $ac_configure_args " in |
| 2157 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2158 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2159 | esac |
| 2160 | fi |
| 2161 | done |
| 2162 | if $ac_cache_corrupted; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2163 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2164 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2165 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2166 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2167 | 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] | 2168 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2169 | ## -------------------- ## |
| 2170 | ## Main body of script. ## |
| 2171 | ## -------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2172 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2173 | ac_ext=c |
| 2174 | ac_cpp='$CPP $CPPFLAGS' |
| 2175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2178 | |
| 2179 | |
| 2180 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2181 | ac_aux_dir= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2182 | for ac_dir in autotools "$srcdir"/autotools; do |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2183 | for ac_t in install-sh install.sh shtool; do |
| 2184 | if test -f "$ac_dir/$ac_t"; then |
| 2185 | ac_aux_dir=$ac_dir |
| 2186 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2187 | break 2 |
| 2188 | fi |
| 2189 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2190 | done |
| 2191 | if test -z "$ac_aux_dir"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2192 | 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] | 2193 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2194 | |
| 2195 | # These three variables are undocumented and unsupported, |
| 2196 | # and are intended to be withdrawn in a future Autoconf release. |
| 2197 | # They can cause serious problems if a builder's source tree is in a directory |
| 2198 | # whose full name contains unusual characters. |
| 2199 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2200 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2201 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2202 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2203 | |
mmentovai | 425d256 | 2006-08-30 20:05:05 +0000 | [diff] [blame] | 2204 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2205 | # Make sure we can run config.sub. |
| 2206 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2207 | 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] | 2208 | |
| 2209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2210 | $as_echo_n "checking build system type... " >&6; } |
| 2211 | if test "${ac_cv_build+set}" = set; then : |
| 2212 | $as_echo_n "(cached) " >&6 |
| 2213 | else |
| 2214 | ac_build_alias=$build_alias |
| 2215 | test "x$ac_build_alias" = x && |
| 2216 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2217 | test "x$ac_build_alias" = x && |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2218 | 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] | 2219 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2220 | 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] | 2221 | |
| 2222 | fi |
| 2223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2224 | $as_echo "$ac_cv_build" >&6; } |
| 2225 | case $ac_cv_build in |
| 2226 | *-*-*) ;; |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2227 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2228 | esac |
| 2229 | build=$ac_cv_build |
| 2230 | ac_save_IFS=$IFS; IFS='-' |
| 2231 | set x $ac_cv_build |
| 2232 | shift |
| 2233 | build_cpu=$1 |
| 2234 | build_vendor=$2 |
| 2235 | shift; shift |
| 2236 | # Remember, the first character of IFS is used to create $*, |
| 2237 | # except with old shells: |
| 2238 | build_os=$* |
| 2239 | IFS=$ac_save_IFS |
| 2240 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2241 | |
| 2242 | |
| 2243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2244 | $as_echo_n "checking host system type... " >&6; } |
| 2245 | if test "${ac_cv_host+set}" = set; then : |
| 2246 | $as_echo_n "(cached) " >&6 |
| 2247 | else |
| 2248 | if test "x$host_alias" = x; then |
| 2249 | ac_cv_host=$ac_cv_build |
| 2250 | else |
| 2251 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2252 | 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] | 2253 | fi |
| 2254 | |
| 2255 | fi |
| 2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2257 | $as_echo "$ac_cv_host" >&6; } |
| 2258 | case $ac_cv_host in |
| 2259 | *-*-*) ;; |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2260 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2261 | esac |
| 2262 | host=$ac_cv_host |
| 2263 | ac_save_IFS=$IFS; IFS='-' |
| 2264 | set x $ac_cv_host |
| 2265 | shift |
| 2266 | host_cpu=$1 |
| 2267 | host_vendor=$2 |
| 2268 | shift; shift |
| 2269 | # Remember, the first character of IFS is used to create $*, |
| 2270 | # except with old shells: |
| 2271 | host_os=$* |
| 2272 | IFS=$ac_save_IFS |
| 2273 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2274 | |
| 2275 | |
| 2276 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2277 | am__api_version='1.11' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2278 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2279 | # Find a good install program. We prefer a C program (faster), |
| 2280 | # so one script is as good as another. But avoid the broken or |
| 2281 | # incompatible versions: |
| 2282 | # SysV /etc/install, /usr/sbin/install |
| 2283 | # SunOS /usr/etc/install |
| 2284 | # IRIX /sbin/install |
| 2285 | # AIX /bin/install |
| 2286 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2287 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2288 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2289 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2290 | # OS/2's system install, which has a completely different semantic |
| 2291 | # ./install, which can be erroneously created by make from ./install.sh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2292 | # Reject install programs that cannot install multiple files. |
| 2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2294 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2295 | if test -z "$INSTALL"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2296 | if test "${ac_cv_path_install+set}" = set; then : |
| 2297 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2298 | else |
| 2299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2300 | for as_dir in $PATH |
| 2301 | do |
| 2302 | IFS=$as_save_IFS |
| 2303 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2304 | # Account for people who put trailing slashes in PATH elements. |
| 2305 | case $as_dir/ in #(( |
| 2306 | ./ | .// | /[cC]/* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2307 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2308 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2309 | /usr/ucb/* ) ;; |
| 2310 | *) |
| 2311 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2312 | # Don't use installbsd from OSF since it installs stuff as root |
| 2313 | # by default. |
| 2314 | for ac_prog in ginstall scoinst install; do |
| 2315 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2316 | 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] | 2317 | if test $ac_prog = install && |
| 2318 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2319 | # AIX install. It has an incompatible calling convention. |
| 2320 | : |
| 2321 | elif test $ac_prog = install && |
| 2322 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2323 | # program-specific install script used by HP pwplus--don't use. |
| 2324 | : |
| 2325 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2326 | rm -rf conftest.one conftest.two conftest.dir |
| 2327 | echo one > conftest.one |
| 2328 | echo two > conftest.two |
| 2329 | mkdir conftest.dir |
| 2330 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2331 | test -s conftest.one && test -s conftest.two && |
| 2332 | test -s conftest.dir/conftest.one && |
| 2333 | test -s conftest.dir/conftest.two |
| 2334 | then |
| 2335 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2336 | break 3 |
| 2337 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2338 | fi |
| 2339 | fi |
| 2340 | done |
| 2341 | done |
| 2342 | ;; |
| 2343 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2344 | |
| 2345 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2346 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2347 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2348 | rm -rf conftest.one conftest.two conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2349 | |
| 2350 | fi |
| 2351 | if test "${ac_cv_path_install+set}" = set; then |
| 2352 | INSTALL=$ac_cv_path_install |
| 2353 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2354 | # As a last resort, use the slow shell script. Don't cache a |
| 2355 | # value for INSTALL within a source directory, because that will |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2356 | # break other packages using the cache if that directory is |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2357 | # removed, or if the value is a relative name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2358 | INSTALL=$ac_install_sh |
| 2359 | fi |
| 2360 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2362 | $as_echo "$INSTALL" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2363 | |
| 2364 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2365 | # It thinks the first close brace ends the variable substitution. |
| 2366 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2367 | |
| 2368 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2369 | |
| 2370 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2371 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2373 | $as_echo_n "checking whether build environment is sane... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2374 | # Just in case |
| 2375 | sleep 1 |
| 2376 | echo timestamp > conftest.file |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2377 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2378 | # name. Accept space and tab only in the latter. |
| 2379 | am_lf=' |
| 2380 | ' |
| 2381 | case `pwd` in |
| 2382 | *[\\\"\#\$\&\'\`$am_lf]*) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2383 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2384 | esac |
| 2385 | case $srcdir in |
| 2386 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2387 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2388 | esac |
| 2389 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2390 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2391 | # arguments. Must try -L first in case configure is actually a |
| 2392 | # symlink; some systems play weird games with the mod time of symlinks |
| 2393 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2394 | # directory). |
| 2395 | if ( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2396 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2397 | if test "$*" = "X"; then |
| 2398 | # -L didn't work. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2399 | set X `ls -t "$srcdir/configure" conftest.file` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2400 | fi |
| 2401 | rm -f conftest.file |
| 2402 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2403 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2404 | |
| 2405 | # If neither matched, then we have a broken ls. This can happen |
| 2406 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2407 | # broken ls alias from the environment. This has actually |
| 2408 | # happened. Such a system could not be considered "sane". |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2409 | 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] | 2410 | alias in your environment" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2411 | fi |
| 2412 | |
| 2413 | test "$2" = conftest.file |
| 2414 | ) |
| 2415 | then |
| 2416 | # Ok. |
| 2417 | : |
| 2418 | else |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2419 | as_fn_error "newly created file is older than distributed files! |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2420 | Check your system clock" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2421 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2423 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2424 | test "$program_prefix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2425 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2426 | # Use a double $ so make ignores it. |
| 2427 | test "$program_suffix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2428 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2429 | # Double any \ or $. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2430 | # By default was `s,x,x', remove it if useless. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2431 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2432 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2433 | |
| 2434 | # expand $ac_aux_dir to an absolute path |
| 2435 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2436 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2437 | if test x"${MISSING+set}" != xset; then |
| 2438 | case $am_aux_dir in |
| 2439 | *\ * | *\ *) |
| 2440 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2441 | *) |
| 2442 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2443 | esac |
| 2444 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2445 | # Use eval to expand $SHELL |
| 2446 | if eval "$MISSING --run true"; then |
| 2447 | am_missing_run="$MISSING --run " |
| 2448 | else |
| 2449 | am_missing_run= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 2451 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2452 | fi |
| 2453 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2454 | if test x"${install_sh}" != xset; then |
| 2455 | case $am_aux_dir in |
| 2456 | *\ * | *\ *) |
| 2457 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2458 | *) |
| 2459 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2460 | esac |
| 2461 | fi |
| 2462 | |
| 2463 | # Installed binaries are usually stripped using `strip' when the user |
| 2464 | # run `make install-strip'. However `strip' might not be the right |
| 2465 | # tool to use in cross-compilation environments, therefore Automake |
| 2466 | # will honor the `STRIP' environment variable to overrule this program. |
| 2467 | if test "$cross_compiling" != no; then |
| 2468 | if test -n "$ac_tool_prefix"; then |
| 2469 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2470 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2472 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2473 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 2474 | $as_echo_n "(cached) " >&6 |
| 2475 | else |
| 2476 | if test -n "$STRIP"; then |
| 2477 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2478 | else |
| 2479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2480 | for as_dir in $PATH |
| 2481 | do |
| 2482 | IFS=$as_save_IFS |
| 2483 | test -z "$as_dir" && as_dir=. |
| 2484 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2486 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2488 | break 2 |
| 2489 | fi |
| 2490 | done |
| 2491 | done |
| 2492 | IFS=$as_save_IFS |
| 2493 | |
| 2494 | fi |
| 2495 | fi |
| 2496 | STRIP=$ac_cv_prog_STRIP |
| 2497 | if test -n "$STRIP"; then |
| 2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2499 | $as_echo "$STRIP" >&6; } |
| 2500 | else |
| 2501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2502 | $as_echo "no" >&6; } |
| 2503 | fi |
| 2504 | |
| 2505 | |
| 2506 | fi |
| 2507 | if test -z "$ac_cv_prog_STRIP"; then |
| 2508 | ac_ct_STRIP=$STRIP |
| 2509 | # Extract the first word of "strip", so it can be a program name with args. |
| 2510 | set dummy strip; ac_word=$2 |
| 2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2512 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2513 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 2514 | $as_echo_n "(cached) " >&6 |
| 2515 | else |
| 2516 | if test -n "$ac_ct_STRIP"; then |
| 2517 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2518 | else |
| 2519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2520 | for as_dir in $PATH |
| 2521 | do |
| 2522 | IFS=$as_save_IFS |
| 2523 | test -z "$as_dir" && as_dir=. |
| 2524 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2525 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2526 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2528 | break 2 |
| 2529 | fi |
| 2530 | done |
| 2531 | done |
| 2532 | IFS=$as_save_IFS |
| 2533 | |
| 2534 | fi |
| 2535 | fi |
| 2536 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2537 | if test -n "$ac_ct_STRIP"; then |
| 2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2539 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2540 | else |
| 2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2542 | $as_echo "no" >&6; } |
| 2543 | fi |
| 2544 | |
| 2545 | if test "x$ac_ct_STRIP" = x; then |
| 2546 | STRIP=":" |
| 2547 | else |
| 2548 | case $cross_compiling:$ac_tool_warned in |
| 2549 | yes:) |
| 2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2551 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2552 | ac_tool_warned=yes ;; |
| 2553 | esac |
| 2554 | STRIP=$ac_ct_STRIP |
| 2555 | fi |
| 2556 | else |
| 2557 | STRIP="$ac_cv_prog_STRIP" |
| 2558 | fi |
| 2559 | |
| 2560 | fi |
| 2561 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2562 | |
| 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2564 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2565 | if test -z "$MKDIR_P"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2566 | if test "${ac_cv_path_mkdir+set}" = set; then : |
| 2567 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2568 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2570 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2571 | do |
| 2572 | IFS=$as_save_IFS |
| 2573 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2574 | for ac_prog in mkdir gmkdir; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2575 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2576 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 2577 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2578 | 'mkdir (GNU coreutils) '* | \ |
| 2579 | 'mkdir (coreutils) '* | \ |
| 2580 | 'mkdir (fileutils) '4.1*) |
| 2581 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2582 | break 3;; |
| 2583 | esac |
| 2584 | done |
| 2585 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2586 | done |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2587 | IFS=$as_save_IFS |
| 2588 | |
| 2589 | fi |
| 2590 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2591 | test -d ./--version && rmdir ./--version |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2592 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2593 | MKDIR_P="$ac_cv_path_mkdir -p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2594 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2595 | # As a last resort, use the slow shell script. Don't cache a |
| 2596 | # value for MKDIR_P within a source directory, because that will |
| 2597 | # break other packages using the cache if that directory is |
| 2598 | # removed, or if the value is a relative name. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2599 | MKDIR_P="$ac_install_sh -d" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2600 | fi |
| 2601 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2603 | $as_echo "$MKDIR_P" >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2604 | |
| 2605 | mkdir_p="$MKDIR_P" |
| 2606 | case $mkdir_p in |
| 2607 | [\\/$]* | ?:[\\/]*) ;; |
| 2608 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2609 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2610 | |
| 2611 | for ac_prog in gawk mawk nawk awk |
| 2612 | do |
| 2613 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2614 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2616 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2617 | if test "${ac_cv_prog_AWK+set}" = set; then : |
| 2618 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2619 | else |
| 2620 | if test -n "$AWK"; then |
| 2621 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2622 | else |
| 2623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2624 | for as_dir in $PATH |
| 2625 | do |
| 2626 | IFS=$as_save_IFS |
| 2627 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2628 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2629 | 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] | 2630 | ac_cv_prog_AWK="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2631 | $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] | 2632 | break 2 |
| 2633 | fi |
| 2634 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2635 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2636 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2637 | |
| 2638 | fi |
| 2639 | fi |
| 2640 | AWK=$ac_cv_prog_AWK |
| 2641 | if test -n "$AWK"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2643 | $as_echo "$AWK" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2644 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2646 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2647 | fi |
| 2648 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2649 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2650 | test -n "$AWK" && break |
| 2651 | done |
| 2652 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2654 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2655 | set x ${MAKE-make} |
| 2656 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2657 | 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] | 2658 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2659 | else |
| 2660 | cat >conftest.make <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2661 | SHELL = /bin/sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2662 | all: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2663 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2664 | _ACEOF |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2665 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2666 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2667 | *@@@%%%=?*=@@@%%%*) |
| 2668 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2669 | *) |
| 2670 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2671 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2672 | rm -f conftest.make |
| 2673 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2674 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2676 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2677 | SET_MAKE= |
| 2678 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2680 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2681 | SET_MAKE="MAKE=${MAKE-make}" |
| 2682 | fi |
| 2683 | |
| 2684 | rm -rf .tst 2>/dev/null |
| 2685 | mkdir .tst 2>/dev/null |
| 2686 | if test -d .tst; then |
| 2687 | am__leading_dot=. |
| 2688 | else |
| 2689 | am__leading_dot=_ |
| 2690 | fi |
| 2691 | rmdir .tst 2>/dev/null |
| 2692 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2693 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2694 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2695 | # is not polluted with repeated "-I." |
| 2696 | am__isrc=' -I$(srcdir)' |
| 2697 | # test to see if srcdir already configured |
| 2698 | if test -f $srcdir/config.status; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2699 | 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] | 2700 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2701 | fi |
| 2702 | |
| 2703 | # test whether we have cygpath |
| 2704 | if test -z "$CYGPATH_W"; then |
| 2705 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2706 | CYGPATH_W='cygpath -w' |
| 2707 | else |
| 2708 | CYGPATH_W=echo |
| 2709 | fi |
| 2710 | fi |
| 2711 | |
| 2712 | |
| 2713 | # Define the identity of the package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2714 | PACKAGE='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2715 | VERSION='0.1' |
| 2716 | |
| 2717 | |
| 2718 | cat >>confdefs.h <<_ACEOF |
| 2719 | #define PACKAGE "$PACKAGE" |
| 2720 | _ACEOF |
| 2721 | |
| 2722 | |
| 2723 | cat >>confdefs.h <<_ACEOF |
| 2724 | #define VERSION "$VERSION" |
| 2725 | _ACEOF |
| 2726 | |
| 2727 | # Some tools Automake needs. |
| 2728 | |
| 2729 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2730 | |
| 2731 | |
| 2732 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2733 | |
| 2734 | |
| 2735 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2736 | |
| 2737 | |
| 2738 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2739 | |
| 2740 | |
| 2741 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2742 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2743 | # We need awk for the "check" target. The system "awk" is bad on |
| 2744 | # some platforms. |
| 2745 | # Always define AMTAR for backward compatibility. |
| 2746 | |
| 2747 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2748 | |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2749 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 |
| 2751 | $as_echo_n "checking how to create a ustar tar archive... " >&6; } |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2752 | # Loop over all known methods to create a tar archive until one works. |
| 2753 | _am_tools='gnutar plaintar pax cpio none' |
| 2754 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
| 2755 | # Do not fold the above two line into one, because Tru64 sh and |
| 2756 | # Solaris sh will not grok spaces in the rhs of `-'. |
| 2757 | for _am_tool in $_am_tools |
| 2758 | do |
| 2759 | case $_am_tool in |
| 2760 | gnutar) |
| 2761 | for _am_tar in tar gnutar gtar; |
| 2762 | do |
| 2763 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
| 2764 | ($_am_tar --version) >&5 2>&5 |
| 2765 | ac_status=$? |
| 2766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2767 | (exit $ac_status); } && break |
| 2768 | done |
| 2769 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
| 2770 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
| 2771 | am__untar="$_am_tar -xf -" |
| 2772 | ;; |
| 2773 | plaintar) |
| 2774 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 2775 | # ustar tarball either. |
| 2776 | (tar --version) >/dev/null 2>&1 && continue |
| 2777 | am__tar='tar chf - "$$tardir"' |
| 2778 | am__tar_='tar chf - "$tardir"' |
| 2779 | am__untar='tar xf -' |
| 2780 | ;; |
| 2781 | pax) |
| 2782 | am__tar='pax -L -x ustar -w "$$tardir"' |
| 2783 | am__tar_='pax -L -x ustar -w "$tardir"' |
| 2784 | am__untar='pax -r' |
| 2785 | ;; |
| 2786 | cpio) |
| 2787 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
| 2788 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
| 2789 | am__untar='cpio -i -H ustar -d' |
| 2790 | ;; |
| 2791 | none) |
| 2792 | am__tar=false |
| 2793 | am__tar_=false |
| 2794 | am__untar=false |
| 2795 | ;; |
| 2796 | esac |
| 2797 | |
| 2798 | # If the value was cached, stop now. We just wanted to have am__tar |
| 2799 | # and am__untar set. |
| 2800 | test -n "${am_cv_prog_tar_ustar}" && break |
| 2801 | |
| 2802 | # tar/untar a dummy directory, and stop if the command works |
| 2803 | rm -rf conftest.dir |
| 2804 | mkdir conftest.dir |
| 2805 | echo GrepMe > conftest.dir/file |
| 2806 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
| 2807 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 2808 | ac_status=$? |
| 2809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2810 | (exit $ac_status); } |
| 2811 | rm -rf conftest.dir |
| 2812 | if test -s conftest.tar; then |
| 2813 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
| 2814 | ($am__untar <conftest.tar) >&5 2>&5 |
| 2815 | ac_status=$? |
| 2816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2817 | (exit $ac_status); } |
| 2818 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 2819 | fi |
| 2820 | done |
| 2821 | rm -rf conftest.dir |
| 2822 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2823 | if test "${am_cv_prog_tar_ustar+set}" = set; then : |
| 2824 | $as_echo_n "(cached) " >&6 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2825 | else |
| 2826 | am_cv_prog_tar_ustar=$_am_tool |
| 2827 | fi |
| 2828 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 |
| 2830 | $as_echo "$am_cv_prog_tar_ustar" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2831 | |
| 2832 | |
| 2833 | |
| 2834 | |
| 2835 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2836 | ac_config_headers="$ac_config_headers src/config.h" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2837 | |
| 2838 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2839 | ac_ext=c |
| 2840 | ac_cpp='$CPP $CPPFLAGS' |
| 2841 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2842 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2843 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2844 | if test -n "$ac_tool_prefix"; then |
| 2845 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2846 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2848 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2849 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2850 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2851 | else |
| 2852 | if test -n "$CC"; then |
| 2853 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2854 | else |
| 2855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2856 | for as_dir in $PATH |
| 2857 | do |
| 2858 | IFS=$as_save_IFS |
| 2859 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2860 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2861 | 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] | 2862 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2863 | $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] | 2864 | break 2 |
| 2865 | fi |
| 2866 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2867 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2868 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2869 | |
| 2870 | fi |
| 2871 | fi |
| 2872 | CC=$ac_cv_prog_CC |
| 2873 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2875 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2876 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2878 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2879 | fi |
| 2880 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2881 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2882 | fi |
| 2883 | if test -z "$ac_cv_prog_CC"; then |
| 2884 | ac_ct_CC=$CC |
| 2885 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2886 | set dummy gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2888 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2889 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2890 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2891 | else |
| 2892 | if test -n "$ac_ct_CC"; then |
| 2893 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2894 | else |
| 2895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2896 | for as_dir in $PATH |
| 2897 | do |
| 2898 | IFS=$as_save_IFS |
| 2899 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2900 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2901 | 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] | 2902 | ac_cv_prog_ac_ct_CC="gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2903 | $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] | 2904 | break 2 |
| 2905 | fi |
| 2906 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2907 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2908 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2909 | |
| 2910 | fi |
| 2911 | fi |
| 2912 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2913 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2915 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2916 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2918 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2919 | fi |
| 2920 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2921 | if test "x$ac_ct_CC" = x; then |
| 2922 | CC="" |
| 2923 | else |
| 2924 | case $cross_compiling:$ac_tool_warned in |
| 2925 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2926 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2927 | $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] | 2928 | ac_tool_warned=yes ;; |
| 2929 | esac |
| 2930 | CC=$ac_ct_CC |
| 2931 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2932 | else |
| 2933 | CC="$ac_cv_prog_CC" |
| 2934 | fi |
| 2935 | |
| 2936 | if test -z "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2937 | if test -n "$ac_tool_prefix"; then |
| 2938 | # 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] | 2939 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2941 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2942 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2943 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2944 | else |
| 2945 | if test -n "$CC"; then |
| 2946 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2947 | else |
| 2948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2949 | for as_dir in $PATH |
| 2950 | do |
| 2951 | IFS=$as_save_IFS |
| 2952 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2953 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2954 | 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] | 2955 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2956 | $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] | 2957 | break 2 |
| 2958 | fi |
| 2959 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2960 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2961 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2962 | |
| 2963 | fi |
| 2964 | fi |
| 2965 | CC=$ac_cv_prog_CC |
| 2966 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2968 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2969 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2971 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2972 | fi |
| 2973 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2974 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2975 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2976 | fi |
| 2977 | if test -z "$CC"; then |
| 2978 | # Extract the first word of "cc", so it can be a program name with args. |
| 2979 | set dummy cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2981 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2982 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2983 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2984 | else |
| 2985 | if test -n "$CC"; then |
| 2986 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2987 | else |
| 2988 | ac_prog_rejected=no |
| 2989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2990 | for as_dir in $PATH |
| 2991 | do |
| 2992 | IFS=$as_save_IFS |
| 2993 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2994 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2995 | 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] | 2996 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2997 | ac_prog_rejected=yes |
| 2998 | continue |
| 2999 | fi |
| 3000 | ac_cv_prog_CC="cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3001 | $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] | 3002 | break 2 |
| 3003 | fi |
| 3004 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3005 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3006 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3007 | |
| 3008 | if test $ac_prog_rejected = yes; then |
| 3009 | # We found a bogon in the path, so make sure we never use it. |
| 3010 | set dummy $ac_cv_prog_CC |
| 3011 | shift |
| 3012 | if test $# != 0; then |
| 3013 | # We chose a different compiler from the bogus one. |
| 3014 | # However, it has the same basename, so the bogon will be chosen |
| 3015 | # first if we set CC to just the basename; use the full file name. |
| 3016 | shift |
| 3017 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3018 | fi |
| 3019 | fi |
| 3020 | fi |
| 3021 | fi |
| 3022 | CC=$ac_cv_prog_CC |
| 3023 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3025 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3026 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3028 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3029 | fi |
| 3030 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3031 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3032 | fi |
| 3033 | if test -z "$CC"; then |
| 3034 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3035 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3036 | do |
| 3037 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3038 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3040 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3041 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3042 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3043 | else |
| 3044 | if test -n "$CC"; then |
| 3045 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3046 | else |
| 3047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3048 | for as_dir in $PATH |
| 3049 | do |
| 3050 | IFS=$as_save_IFS |
| 3051 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3052 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3053 | 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] | 3054 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3055 | $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] | 3056 | break 2 |
| 3057 | fi |
| 3058 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3059 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3060 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3061 | |
| 3062 | fi |
| 3063 | fi |
| 3064 | CC=$ac_cv_prog_CC |
| 3065 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3067 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3068 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3070 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3071 | fi |
| 3072 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3073 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3074 | test -n "$CC" && break |
| 3075 | done |
| 3076 | fi |
| 3077 | if test -z "$CC"; then |
| 3078 | ac_ct_CC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3079 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3080 | do |
| 3081 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3082 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3084 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3085 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3086 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3087 | else |
| 3088 | if test -n "$ac_ct_CC"; then |
| 3089 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3090 | else |
| 3091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3092 | for as_dir in $PATH |
| 3093 | do |
| 3094 | IFS=$as_save_IFS |
| 3095 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3096 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3097 | 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] | 3098 | ac_cv_prog_ac_ct_CC="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3099 | $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] | 3100 | break 2 |
| 3101 | fi |
| 3102 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3103 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3104 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3105 | |
| 3106 | fi |
| 3107 | fi |
| 3108 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3109 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3111 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3112 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3114 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3115 | fi |
| 3116 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3117 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3118 | test -n "$ac_ct_CC" && break |
| 3119 | done |
| 3120 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3121 | if test "x$ac_ct_CC" = x; then |
| 3122 | CC="" |
| 3123 | else |
| 3124 | case $cross_compiling:$ac_tool_warned in |
| 3125 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3127 | $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] | 3128 | ac_tool_warned=yes ;; |
| 3129 | esac |
| 3130 | CC=$ac_ct_CC |
| 3131 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3132 | fi |
| 3133 | |
| 3134 | fi |
| 3135 | |
| 3136 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3137 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3138 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3139 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3140 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3141 | |
| 3142 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3143 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3144 | set X $ac_compile |
| 3145 | ac_compiler=$2 |
| 3146 | for ac_option in --version -v -V -qversion; do |
| 3147 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3148 | case "(($ac_try" in |
| 3149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3150 | *) ac_try_echo=$ac_try;; |
| 3151 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3152 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3153 | $as_echo "$ac_try_echo"; } >&5 |
| 3154 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3155 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3156 | if test -s conftest.err; then |
| 3157 | sed '10a\ |
| 3158 | ... rest of stderr output deleted ... |
| 3159 | 10q' conftest.err >conftest.er1 |
| 3160 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3161 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3162 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3163 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3164 | test $ac_status = 0; } |
| 3165 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3166 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3168 | /* end confdefs.h. */ |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3169 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3170 | int |
| 3171 | main () |
| 3172 | { |
| 3173 | |
| 3174 | ; |
| 3175 | return 0; |
| 3176 | } |
| 3177 | _ACEOF |
| 3178 | ac_clean_files_save=$ac_clean_files |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3179 | 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] | 3180 | # Try to create an executable without -o first, disregard a.out. |
| 3181 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3182 | # of exeext. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3184 | $as_echo_n "checking whether the C compiler works... " >&6; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3185 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3186 | |
| 3187 | # The possible output files: |
| 3188 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3189 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3190 | ac_rmfiles= |
| 3191 | for ac_file in $ac_files |
| 3192 | do |
| 3193 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3194 | *.$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] | 3195 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3196 | esac |
| 3197 | done |
| 3198 | rm -f $ac_rmfiles |
| 3199 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3200 | if { { ac_try="$ac_link_default" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3201 | case "(($ac_try" in |
| 3202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3203 | *) ac_try_echo=$ac_try;; |
| 3204 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3205 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3206 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3207 | (eval "$ac_link_default") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3208 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3210 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3211 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3212 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3213 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3214 | # so that the user can short-circuit this test for compilers unknown to |
| 3215 | # Autoconf. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3216 | for ac_file in $ac_files '' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3217 | do |
| 3218 | test -f "$ac_file" || continue |
| 3219 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3220 | *.$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] | 3221 | ;; |
| 3222 | [ab].out ) |
| 3223 | # We found the default executable, but exeext='' is most |
| 3224 | # certainly right. |
| 3225 | break;; |
| 3226 | *.* ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3227 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3228 | then :; else |
| 3229 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3230 | fi |
| 3231 | # We set ac_cv_exeext here because the later test for it is not |
| 3232 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3233 | # argument, so we may need to know it at that point already. |
| 3234 | # Even if this section looks crufty: it has the advantage of |
| 3235 | # actually working. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3236 | break;; |
| 3237 | * ) |
| 3238 | break;; |
| 3239 | esac |
| 3240 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3241 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3242 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3243 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3244 | ac_file='' |
| 3245 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3246 | if test -z "$ac_file"; then : |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3248 | $as_echo "no" >&6; } |
| 3249 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3251 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3252 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3253 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3254 | { as_fn_set_status 77 |
| 3255 | as_fn_error "C compiler cannot create executables |
| 3256 | See \`config.log' for more details." "$LINENO" 5; }; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3257 | else |
| 3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3259 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3260 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3262 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3264 | $as_echo "$ac_file" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3265 | ac_exeext=$ac_cv_exeext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3266 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3267 | 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] | 3268 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3270 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3271 | if { { ac_try="$ac_link" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3272 | case "(($ac_try" in |
| 3273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3274 | *) ac_try_echo=$ac_try;; |
| 3275 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3276 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3277 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3278 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3279 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3280 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3281 | test $ac_status = 0; }; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3282 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3283 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3284 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3285 | # `rm'. |
| 3286 | for ac_file in conftest.exe conftest conftest.*; do |
| 3287 | test -f "$ac_file" || continue |
| 3288 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3289 | *.$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] | 3290 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3291 | break;; |
| 3292 | * ) break;; |
| 3293 | esac |
| 3294 | done |
| 3295 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3296 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3297 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3298 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3299 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3300 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3301 | rm -f conftest conftest$ac_cv_exeext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3303 | $as_echo "$ac_cv_exeext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3304 | |
| 3305 | rm -f conftest.$ac_ext |
| 3306 | EXEEXT=$ac_cv_exeext |
| 3307 | ac_exeext=$EXEEXT |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3309 | /* end confdefs.h. */ |
| 3310 | #include <stdio.h> |
| 3311 | int |
| 3312 | main () |
| 3313 | { |
| 3314 | FILE *f = fopen ("conftest.out", "w"); |
| 3315 | return ferror (f) || fclose (f) != 0; |
| 3316 | |
| 3317 | ; |
| 3318 | return 0; |
| 3319 | } |
| 3320 | _ACEOF |
| 3321 | ac_clean_files="$ac_clean_files conftest.out" |
| 3322 | # Check that the compiler produces executables we can run. If not, either |
| 3323 | # the compiler is broken, or we cross compile. |
| 3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3325 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3326 | if test "$cross_compiling" != yes; then |
| 3327 | { { ac_try="$ac_link" |
| 3328 | case "(($ac_try" in |
| 3329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3330 | *) ac_try_echo=$ac_try;; |
| 3331 | esac |
| 3332 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3333 | $as_echo "$ac_try_echo"; } >&5 |
| 3334 | (eval "$ac_link") 2>&5 |
| 3335 | ac_status=$? |
| 3336 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3337 | test $ac_status = 0; } |
| 3338 | if { ac_try='./conftest$ac_cv_exeext' |
| 3339 | { { case "(($ac_try" in |
| 3340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3341 | *) ac_try_echo=$ac_try;; |
| 3342 | esac |
| 3343 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3344 | $as_echo "$ac_try_echo"; } >&5 |
| 3345 | (eval "$ac_try") 2>&5 |
| 3346 | ac_status=$? |
| 3347 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3348 | test $ac_status = 0; }; }; then |
| 3349 | cross_compiling=no |
| 3350 | else |
| 3351 | if test "$cross_compiling" = maybe; then |
| 3352 | cross_compiling=yes |
| 3353 | else |
| 3354 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3355 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3356 | as_fn_error "cannot run C compiled programs. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3357 | If you meant to cross compile, use \`--host'. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3358 | See \`config.log' for more details." "$LINENO" 5; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3359 | fi |
| 3360 | fi |
| 3361 | fi |
| 3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3363 | $as_echo "$cross_compiling" >&6; } |
| 3364 | |
| 3365 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3366 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3368 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3369 | if test "${ac_cv_objext+set}" = set; then : |
| 3370 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3371 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3373 | /* end confdefs.h. */ |
| 3374 | |
| 3375 | int |
| 3376 | main () |
| 3377 | { |
| 3378 | |
| 3379 | ; |
| 3380 | return 0; |
| 3381 | } |
| 3382 | _ACEOF |
| 3383 | rm -f conftest.o conftest.obj |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3384 | if { { ac_try="$ac_compile" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3385 | case "(($ac_try" in |
| 3386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3387 | *) ac_try_echo=$ac_try;; |
| 3388 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3389 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3390 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3391 | (eval "$ac_compile") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3392 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3393 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3394 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3395 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3396 | test -f "$ac_file" || continue; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3397 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3398 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3399 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3400 | break;; |
| 3401 | esac |
| 3402 | done |
| 3403 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3404 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3406 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3407 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3408 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3409 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3410 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3411 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3412 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3413 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3415 | $as_echo "$ac_cv_objext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3416 | OBJEXT=$ac_cv_objext |
| 3417 | ac_objext=$OBJEXT |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3419 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3420 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3421 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3422 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3424 | /* end confdefs.h. */ |
| 3425 | |
| 3426 | int |
| 3427 | main () |
| 3428 | { |
| 3429 | #ifndef __GNUC__ |
| 3430 | choke me |
| 3431 | #endif |
| 3432 | |
| 3433 | ; |
| 3434 | return 0; |
| 3435 | } |
| 3436 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3437 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3438 | ac_compiler_gnu=yes |
| 3439 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3440 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3441 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3443 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3444 | |
| 3445 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3447 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3448 | if test $ac_compiler_gnu = yes; then |
| 3449 | GCC=yes |
| 3450 | else |
| 3451 | GCC= |
| 3452 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3453 | ac_test_CFLAGS=${CFLAGS+set} |
| 3454 | ac_save_CFLAGS=$CFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3456 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3457 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3458 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3459 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3460 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3461 | ac_c_werror_flag=yes |
| 3462 | ac_cv_prog_cc_g=no |
| 3463 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3465 | /* end confdefs.h. */ |
| 3466 | |
| 3467 | int |
| 3468 | main () |
| 3469 | { |
| 3470 | |
| 3471 | ; |
| 3472 | return 0; |
| 3473 | } |
| 3474 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3475 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3476 | ac_cv_prog_cc_g=yes |
| 3477 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3478 | CFLAGS="" |
| 3479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3480 | /* end confdefs.h. */ |
| 3481 | |
| 3482 | int |
| 3483 | main () |
| 3484 | { |
| 3485 | |
| 3486 | ; |
| 3487 | return 0; |
| 3488 | } |
| 3489 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3490 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3491 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3492 | else |
| 3493 | ac_c_werror_flag=$ac_save_c_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3494 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3496 | /* end confdefs.h. */ |
| 3497 | |
| 3498 | int |
| 3499 | main () |
| 3500 | { |
| 3501 | |
| 3502 | ; |
| 3503 | return 0; |
| 3504 | } |
| 3505 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3506 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3507 | ac_cv_prog_cc_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3508 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3510 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3512 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3514 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3515 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3517 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3518 | if test "$ac_test_CFLAGS" = set; then |
| 3519 | CFLAGS=$ac_save_CFLAGS |
| 3520 | elif test $ac_cv_prog_cc_g = yes; then |
| 3521 | if test "$GCC" = yes; then |
| 3522 | CFLAGS="-g -O2" |
| 3523 | else |
| 3524 | CFLAGS="-g" |
| 3525 | fi |
| 3526 | else |
| 3527 | if test "$GCC" = yes; then |
| 3528 | CFLAGS="-O2" |
| 3529 | else |
| 3530 | CFLAGS= |
| 3531 | fi |
| 3532 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3534 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3535 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 3536 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3537 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3538 | ac_cv_prog_cc_c89=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3539 | ac_save_CC=$CC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3541 | /* end confdefs.h. */ |
| 3542 | #include <stdarg.h> |
| 3543 | #include <stdio.h> |
| 3544 | #include <sys/types.h> |
| 3545 | #include <sys/stat.h> |
| 3546 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3547 | struct buf { int x; }; |
| 3548 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3549 | static char *e (p, i) |
| 3550 | char **p; |
| 3551 | int i; |
| 3552 | { |
| 3553 | return p[i]; |
| 3554 | } |
| 3555 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3556 | { |
| 3557 | char *s; |
| 3558 | va_list v; |
| 3559 | va_start (v,p); |
| 3560 | s = g (p, va_arg (v,int)); |
| 3561 | va_end (v); |
| 3562 | return s; |
| 3563 | } |
| 3564 | |
| 3565 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3566 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3567 | These don't provoke an error unfortunately, instead are silently treated |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3568 | as 'x'. The following induces an error, until -std is added to get |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3569 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3570 | 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] | 3571 | that's true only with -std. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3572 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3573 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3574 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3575 | inside strings and character constants. */ |
| 3576 | #define FOO(x) 'x' |
| 3577 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3578 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3579 | int test (int i, double x); |
| 3580 | struct s1 {int (*f) (int a);}; |
| 3581 | struct s2 {int (*f) (double a);}; |
| 3582 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3583 | int argc; |
| 3584 | char **argv; |
| 3585 | int |
| 3586 | main () |
| 3587 | { |
| 3588 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3589 | ; |
| 3590 | return 0; |
| 3591 | } |
| 3592 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3593 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3594 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3595 | do |
| 3596 | CC="$ac_save_CC $ac_arg" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3597 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3598 | ac_cv_prog_cc_c89=$ac_arg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3599 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3600 | rm -f core conftest.err conftest.$ac_objext |
| 3601 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3602 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3603 | rm -f conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3604 | CC=$ac_save_CC |
| 3605 | |
| 3606 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3607 | # AC_CACHE_VAL |
| 3608 | case "x$ac_cv_prog_cc_c89" in |
| 3609 | x) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3611 | $as_echo "none needed" >&6; } ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3612 | xno) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3614 | $as_echo "unsupported" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3615 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3616 | CC="$CC $ac_cv_prog_cc_c89" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3618 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3619 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3620 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3621 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3622 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3623 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3624 | ac_ext=c |
| 3625 | ac_cpp='$CPP $CPPFLAGS' |
| 3626 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3627 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3628 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3629 | DEPDIR="${am__leading_dot}deps" |
| 3630 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3631 | ac_config_commands="$ac_config_commands depfiles" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3632 | |
| 3633 | |
| 3634 | am_make=${MAKE-make} |
| 3635 | cat > confinc << 'END' |
| 3636 | am__doit: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3637 | @echo this is the am__doit target |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3638 | .PHONY: am__doit |
| 3639 | END |
| 3640 | # If we don't find an include directive, just comment out the code. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3642 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3643 | am__include="#" |
| 3644 | am__quote= |
| 3645 | _am_result=none |
| 3646 | # First try GNU make style include. |
| 3647 | echo "include confinc" > confmf |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3648 | # Ignore all kinds of additional output from `make'. |
| 3649 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3650 | *the\ am__doit\ target*) |
| 3651 | am__include=include |
| 3652 | am__quote= |
| 3653 | _am_result=GNU |
| 3654 | ;; |
| 3655 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3656 | # Now try BSD make style include. |
| 3657 | if test "$am__include" = "#"; then |
| 3658 | echo '.include "confinc"' > confmf |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3659 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3660 | *the\ am__doit\ target*) |
| 3661 | am__include=.include |
| 3662 | am__quote="\"" |
| 3663 | _am_result=BSD |
| 3664 | ;; |
| 3665 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3666 | fi |
| 3667 | |
| 3668 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3670 | $as_echo "$_am_result" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3671 | rm -f confinc confmf |
| 3672 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3673 | # Check whether --enable-dependency-tracking was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3674 | if test "${enable_dependency_tracking+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3675 | enableval=$enable_dependency_tracking; |
| 3676 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3677 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3678 | if test "x$enable_dependency_tracking" != xno; then |
| 3679 | am_depcomp="$ac_aux_dir/depcomp" |
| 3680 | AMDEPBACKSLASH='\' |
| 3681 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3682 | if test "x$enable_dependency_tracking" != xno; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3683 | AMDEP_TRUE= |
| 3684 | AMDEP_FALSE='#' |
| 3685 | else |
| 3686 | AMDEP_TRUE='#' |
| 3687 | AMDEP_FALSE= |
| 3688 | fi |
| 3689 | |
| 3690 | |
| 3691 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3692 | depcc="$CC" am_compiler_list= |
| 3693 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3695 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 3696 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| 3697 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3698 | else |
| 3699 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3700 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3701 | # making bogus files that we don't know about and never remove. For |
| 3702 | # instance it was reported that on HP-UX the gcc test will end up |
| 3703 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3704 | # in D'. |
| 3705 | mkdir conftest.dir |
| 3706 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3707 | # using a relative directory. |
| 3708 | cp "$am_depcomp" conftest.dir |
| 3709 | cd conftest.dir |
| 3710 | # We will build objects and dependencies in a subdirectory because |
| 3711 | # it helps to detect inapplicable dependency modes. For instance |
| 3712 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3713 | # side effect of compilation, but ICC will put the dependencies in |
| 3714 | # the current directory while Tru64 will put them in the object |
| 3715 | # directory. |
| 3716 | mkdir sub |
| 3717 | |
| 3718 | am_cv_CC_dependencies_compiler_type=none |
| 3719 | if test "$am_compiler_list" = ""; then |
| 3720 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3721 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3722 | am__universal=false |
| 3723 | case " $depcc " in #( |
| 3724 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3725 | esac |
| 3726 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3727 | for depmode in $am_compiler_list; do |
| 3728 | # Setup a source with many dependencies, because some compilers |
| 3729 | # like to wrap large dependency lists on column 80 (with \), and |
| 3730 | # we should not choose a depcomp mode which is confused by this. |
| 3731 | # |
| 3732 | # We need to recreate these files for each test, as the compiler may |
| 3733 | # overwrite some of them when testing with obscure command lines. |
| 3734 | # This happens at least with the AIX C compiler. |
| 3735 | : > sub/conftest.c |
| 3736 | for i in 1 2 3 4 5 6; do |
| 3737 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3738 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3739 | # Solaris 8's {/usr,}/bin/sh. |
| 3740 | touch sub/conftst$i.h |
| 3741 | done |
| 3742 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3743 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3744 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3745 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3746 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 3747 | # versions had trouble with output in subdirs |
| 3748 | am__obj=sub/conftest.${OBJEXT-o} |
| 3749 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3750 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3751 | gcc) |
| 3752 | # This depmode causes a compiler race in universal mode. |
| 3753 | test "$am__universal" = false || continue |
| 3754 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3755 | nosideeffect) |
| 3756 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3757 | # only be used when explicitly requested |
| 3758 | if test "x$enable_dependency_tracking" = xyes; then |
| 3759 | continue |
| 3760 | else |
| 3761 | break |
| 3762 | fi |
| 3763 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3764 | msvisualcpp | msvcmsys) |
| 3765 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 3766 | # not run yet. These depmodes are late enough in the game, and |
| 3767 | # so weak that their functioning should not be impacted. |
| 3768 | am__obj=conftest.${OBJEXT-o} |
| 3769 | am__minus_obj= |
| 3770 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3771 | none) break ;; |
| 3772 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3773 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3774 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3775 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3776 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3777 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3778 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3779 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3780 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3781 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3782 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3783 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3784 | # that says an option was ignored or not supported. |
| 3785 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3786 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3787 | # The diagnosis changed in icc 8.0: |
| 3788 | # icc: Command line remark: option '-MP' not supported |
| 3789 | if (grep 'ignoring option' conftest.err || |
| 3790 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3791 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3792 | break |
| 3793 | fi |
| 3794 | fi |
| 3795 | done |
| 3796 | |
| 3797 | cd .. |
| 3798 | rm -rf conftest.dir |
| 3799 | else |
| 3800 | am_cv_CC_dependencies_compiler_type=none |
| 3801 | fi |
| 3802 | |
| 3803 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3805 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3806 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3807 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3808 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3809 | test "x$enable_dependency_tracking" != xno \ |
| 3810 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3811 | am__fastdepCC_TRUE= |
| 3812 | am__fastdepCC_FALSE='#' |
| 3813 | else |
| 3814 | am__fastdepCC_TRUE='#' |
| 3815 | am__fastdepCC_FALSE= |
| 3816 | fi |
| 3817 | |
| 3818 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 3819 | if test "x$CC" != xcc; then |
| 3820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
| 3821 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
| 3822 | else |
| 3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
| 3824 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
| 3825 | fi |
| 3826 | set dummy $CC; ac_cc=`$as_echo "$2" | |
| 3827 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 3828 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 3829 | $as_echo_n "(cached) " >&6 |
| 3830 | else |
| 3831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3832 | /* end confdefs.h. */ |
| 3833 | |
| 3834 | int |
| 3835 | main () |
| 3836 | { |
| 3837 | |
| 3838 | ; |
| 3839 | return 0; |
| 3840 | } |
| 3841 | _ACEOF |
| 3842 | # Make sure it works both with $CC and with simple cc. |
| 3843 | # We do the test twice because some compilers refuse to overwrite an |
| 3844 | # existing .o file with -o, though they will create one. |
| 3845 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 3846 | rm -f conftest2.* |
| 3847 | if { { case "(($ac_try" in |
| 3848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3849 | *) ac_try_echo=$ac_try;; |
| 3850 | esac |
| 3851 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3852 | $as_echo "$ac_try_echo"; } >&5 |
| 3853 | (eval "$ac_try") 2>&5 |
| 3854 | ac_status=$? |
| 3855 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3856 | test $ac_status = 0; } && |
| 3857 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 3858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3859 | *) ac_try_echo=$ac_try;; |
| 3860 | esac |
| 3861 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3862 | $as_echo "$ac_try_echo"; } >&5 |
| 3863 | (eval "$ac_try") 2>&5 |
| 3864 | ac_status=$? |
| 3865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3866 | test $ac_status = 0; }; |
| 3867 | then |
| 3868 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
| 3869 | if test "x$CC" != xcc; then |
| 3870 | # Test first that cc exists at all. |
| 3871 | if { ac_try='cc -c conftest.$ac_ext >&5' |
| 3872 | { { case "(($ac_try" in |
| 3873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3874 | *) ac_try_echo=$ac_try;; |
| 3875 | esac |
| 3876 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3877 | $as_echo "$ac_try_echo"; } >&5 |
| 3878 | (eval "$ac_try") 2>&5 |
| 3879 | ac_status=$? |
| 3880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3881 | test $ac_status = 0; }; }; then |
| 3882 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 3883 | rm -f conftest2.* |
| 3884 | if { { case "(($ac_try" in |
| 3885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3886 | *) ac_try_echo=$ac_try;; |
| 3887 | esac |
| 3888 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3889 | $as_echo "$ac_try_echo"; } >&5 |
| 3890 | (eval "$ac_try") 2>&5 |
| 3891 | ac_status=$? |
| 3892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3893 | test $ac_status = 0; } && |
| 3894 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 3895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3896 | *) ac_try_echo=$ac_try;; |
| 3897 | esac |
| 3898 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3899 | $as_echo "$ac_try_echo"; } >&5 |
| 3900 | (eval "$ac_try") 2>&5 |
| 3901 | ac_status=$? |
| 3902 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3903 | test $ac_status = 0; }; |
| 3904 | then |
| 3905 | # cc works too. |
| 3906 | : |
| 3907 | else |
| 3908 | # cc exists but doesn't like -o. |
| 3909 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 3910 | fi |
| 3911 | fi |
| 3912 | fi |
| 3913 | else |
| 3914 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 3915 | fi |
| 3916 | rm -f core conftest* |
| 3917 | |
| 3918 | fi |
| 3919 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
| 3920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3921 | $as_echo "yes" >&6; } |
| 3922 | else |
| 3923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3924 | $as_echo "no" >&6; } |
| 3925 | |
| 3926 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
| 3927 | |
| 3928 | fi |
| 3929 | |
| 3930 | # FIXME: we rely on the cache variable name because |
| 3931 | # there is no other way. |
| 3932 | set dummy $CC |
| 3933 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 3934 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
| 3935 | if test "$am_t" != yes; then |
| 3936 | # Losing compiler, so override with the script. |
| 3937 | # FIXME: It is wrong to rewrite CC. |
| 3938 | # But if we don't then we get into trouble of one sort or another. |
| 3939 | # A longer-term fix would be to have automake use am__CC in this case, |
| 3940 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 3941 | CC="$am_aux_dir/compile $CC" |
| 3942 | fi |
| 3943 | |
| 3944 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3945 | ac_ext=c |
| 3946 | ac_cpp='$CPP $CPPFLAGS' |
| 3947 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3948 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3949 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3951 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3952 | # On Suns, sometimes $CPP names a directory. |
| 3953 | if test -n "$CPP" && test -d "$CPP"; then |
| 3954 | CPP= |
| 3955 | fi |
| 3956 | if test -z "$CPP"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3957 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 3958 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3959 | else |
| 3960 | # Double quotes because CPP needs to be expanded |
| 3961 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3962 | do |
| 3963 | ac_preproc_ok=false |
| 3964 | for ac_c_preproc_warn_flag in '' yes |
| 3965 | do |
| 3966 | # Use a header file that comes with gcc, so configuring glibc |
| 3967 | # with a fresh cross-compiler works. |
| 3968 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3969 | # <limits.h> exists even on freestanding compilers. |
| 3970 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3971 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3973 | /* end confdefs.h. */ |
| 3974 | #ifdef __STDC__ |
| 3975 | # include <limits.h> |
| 3976 | #else |
| 3977 | # include <assert.h> |
| 3978 | #endif |
| 3979 | Syntax error |
| 3980 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3981 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3982 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3983 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3984 | # Broken: fails on valid input. |
| 3985 | continue |
| 3986 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3987 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3988 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3989 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3990 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3992 | /* end confdefs.h. */ |
| 3993 | #include <ac_nonexistent.h> |
| 3994 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3995 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3996 | # Broken: success on invalid input. |
| 3997 | continue |
| 3998 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3999 | # Passes both tests. |
| 4000 | ac_preproc_ok=: |
| 4001 | break |
| 4002 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 4003 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4004 | |
| 4005 | done |
| 4006 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 4007 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4008 | if $ac_preproc_ok; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4009 | break |
| 4010 | fi |
| 4011 | |
| 4012 | done |
| 4013 | ac_cv_prog_CPP=$CPP |
| 4014 | |
| 4015 | fi |
| 4016 | CPP=$ac_cv_prog_CPP |
| 4017 | else |
| 4018 | ac_cv_prog_CPP=$CPP |
| 4019 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4021 | $as_echo "$CPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4022 | ac_preproc_ok=false |
| 4023 | for ac_c_preproc_warn_flag in '' yes |
| 4024 | do |
| 4025 | # Use a header file that comes with gcc, so configuring glibc |
| 4026 | # with a fresh cross-compiler works. |
| 4027 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4028 | # <limits.h> exists even on freestanding compilers. |
| 4029 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4030 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4032 | /* end confdefs.h. */ |
| 4033 | #ifdef __STDC__ |
| 4034 | # include <limits.h> |
| 4035 | #else |
| 4036 | # include <assert.h> |
| 4037 | #endif |
| 4038 | Syntax error |
| 4039 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4040 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4041 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4042 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4043 | # Broken: fails on valid input. |
| 4044 | continue |
| 4045 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 4046 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4047 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4048 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4049 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4051 | /* end confdefs.h. */ |
| 4052 | #include <ac_nonexistent.h> |
| 4053 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4054 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4055 | # Broken: success on invalid input. |
| 4056 | continue |
| 4057 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4058 | # Passes both tests. |
| 4059 | ac_preproc_ok=: |
| 4060 | break |
| 4061 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 4062 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4063 | |
| 4064 | done |
| 4065 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 4066 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4067 | if $ac_preproc_ok; then : |
| 4068 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4069 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4070 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4071 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 4072 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4073 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4074 | fi |
| 4075 | |
| 4076 | ac_ext=c |
| 4077 | ac_cpp='$CPP $CPPFLAGS' |
| 4078 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4079 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4080 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4081 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4082 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4083 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4084 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4085 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4086 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4087 | if test -z "$CXX"; then |
| 4088 | if test -n "$CCC"; then |
| 4089 | CXX=$CCC |
| 4090 | else |
| 4091 | if test -n "$ac_tool_prefix"; then |
| 4092 | 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] | 4093 | do |
| 4094 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4095 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4097 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4098 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 4099 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4100 | else |
| 4101 | if test -n "$CXX"; then |
| 4102 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4103 | else |
| 4104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4105 | for as_dir in $PATH |
| 4106 | do |
| 4107 | IFS=$as_save_IFS |
| 4108 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4109 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4110 | 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] | 4111 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4112 | $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] | 4113 | break 2 |
| 4114 | fi |
| 4115 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4116 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4117 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4118 | |
| 4119 | fi |
| 4120 | fi |
| 4121 | CXX=$ac_cv_prog_CXX |
| 4122 | if test -n "$CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4124 | $as_echo "$CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4125 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4127 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4128 | fi |
| 4129 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4130 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4131 | test -n "$CXX" && break |
| 4132 | done |
| 4133 | fi |
| 4134 | if test -z "$CXX"; then |
| 4135 | ac_ct_CXX=$CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4136 | 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] | 4137 | do |
| 4138 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4139 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4141 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4142 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 4143 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4144 | else |
| 4145 | if test -n "$ac_ct_CXX"; then |
| 4146 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4147 | else |
| 4148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4149 | for as_dir in $PATH |
| 4150 | do |
| 4151 | IFS=$as_save_IFS |
| 4152 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4153 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4154 | 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] | 4155 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4156 | $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] | 4157 | break 2 |
| 4158 | fi |
| 4159 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4160 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4161 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4162 | |
| 4163 | fi |
| 4164 | fi |
| 4165 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4166 | if test -n "$ac_ct_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4168 | $as_echo "$ac_ct_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4169 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4171 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4172 | fi |
| 4173 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4174 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4175 | test -n "$ac_ct_CXX" && break |
| 4176 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4177 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4178 | if test "x$ac_ct_CXX" = x; then |
| 4179 | CXX="g++" |
| 4180 | else |
| 4181 | case $cross_compiling:$ac_tool_warned in |
| 4182 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4183 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4184 | $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] | 4185 | ac_tool_warned=yes ;; |
| 4186 | esac |
| 4187 | CXX=$ac_ct_CXX |
| 4188 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4189 | fi |
| 4190 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4191 | fi |
| 4192 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4193 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4194 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 4195 | set X $ac_compile |
| 4196 | ac_compiler=$2 |
| 4197 | for ac_option in --version -v -V -qversion; do |
| 4198 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4199 | case "(($ac_try" in |
| 4200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4201 | *) ac_try_echo=$ac_try;; |
| 4202 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4203 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4204 | $as_echo "$ac_try_echo"; } >&5 |
| 4205 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4206 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4207 | if test -s conftest.err; then |
| 4208 | sed '10a\ |
| 4209 | ... rest of stderr output deleted ... |
| 4210 | 10q' conftest.err >conftest.er1 |
| 4211 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4212 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 4213 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4215 | test $ac_status = 0; } |
| 4216 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4217 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 4219 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 4220 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 4221 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4222 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4224 | /* end confdefs.h. */ |
| 4225 | |
| 4226 | int |
| 4227 | main () |
| 4228 | { |
| 4229 | #ifndef __GNUC__ |
| 4230 | choke me |
| 4231 | #endif |
| 4232 | |
| 4233 | ; |
| 4234 | return 0; |
| 4235 | } |
| 4236 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4237 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4238 | ac_compiler_gnu=yes |
| 4239 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4240 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4241 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4243 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4244 | |
| 4245 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4247 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 4248 | if test $ac_compiler_gnu = yes; then |
| 4249 | GXX=yes |
| 4250 | else |
| 4251 | GXX= |
| 4252 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4253 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4254 | ac_save_CXXFLAGS=$CXXFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 4256 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 4257 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 4258 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4259 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4260 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4261 | ac_cxx_werror_flag=yes |
| 4262 | ac_cv_prog_cxx_g=no |
| 4263 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4265 | /* end confdefs.h. */ |
| 4266 | |
| 4267 | int |
| 4268 | main () |
| 4269 | { |
| 4270 | |
| 4271 | ; |
| 4272 | return 0; |
| 4273 | } |
| 4274 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4275 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4276 | ac_cv_prog_cxx_g=yes |
| 4277 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4278 | CXXFLAGS="" |
| 4279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4280 | /* end confdefs.h. */ |
| 4281 | |
| 4282 | int |
| 4283 | main () |
| 4284 | { |
| 4285 | |
| 4286 | ; |
| 4287 | return 0; |
| 4288 | } |
| 4289 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4290 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4291 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4292 | else |
| 4293 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4294 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4296 | /* end confdefs.h. */ |
| 4297 | |
| 4298 | int |
| 4299 | main () |
| 4300 | { |
| 4301 | |
| 4302 | ; |
| 4303 | return 0; |
| 4304 | } |
| 4305 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4306 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4307 | ac_cv_prog_cxx_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4308 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4310 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4312 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4314 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4315 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 4317 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4318 | if test "$ac_test_CXXFLAGS" = set; then |
| 4319 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4320 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4321 | if test "$GXX" = yes; then |
| 4322 | CXXFLAGS="-g -O2" |
| 4323 | else |
| 4324 | CXXFLAGS="-g" |
| 4325 | fi |
| 4326 | else |
| 4327 | if test "$GXX" = yes; then |
| 4328 | CXXFLAGS="-O2" |
| 4329 | else |
| 4330 | CXXFLAGS= |
| 4331 | fi |
| 4332 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4333 | ac_ext=c |
| 4334 | ac_cpp='$CPP $CPPFLAGS' |
| 4335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4338 | |
| 4339 | depcc="$CXX" am_compiler_list= |
| 4340 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4342 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4343 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 4344 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4345 | else |
| 4346 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4347 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4348 | # making bogus files that we don't know about and never remove. For |
| 4349 | # instance it was reported that on HP-UX the gcc test will end up |
| 4350 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4351 | # in D'. |
| 4352 | mkdir conftest.dir |
| 4353 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4354 | # using a relative directory. |
| 4355 | cp "$am_depcomp" conftest.dir |
| 4356 | cd conftest.dir |
| 4357 | # We will build objects and dependencies in a subdirectory because |
| 4358 | # it helps to detect inapplicable dependency modes. For instance |
| 4359 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4360 | # side effect of compilation, but ICC will put the dependencies in |
| 4361 | # the current directory while Tru64 will put them in the object |
| 4362 | # directory. |
| 4363 | mkdir sub |
| 4364 | |
| 4365 | am_cv_CXX_dependencies_compiler_type=none |
| 4366 | if test "$am_compiler_list" = ""; then |
| 4367 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4368 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4369 | am__universal=false |
| 4370 | case " $depcc " in #( |
| 4371 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4372 | esac |
| 4373 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4374 | for depmode in $am_compiler_list; do |
| 4375 | # Setup a source with many dependencies, because some compilers |
| 4376 | # like to wrap large dependency lists on column 80 (with \), and |
| 4377 | # we should not choose a depcomp mode which is confused by this. |
| 4378 | # |
| 4379 | # We need to recreate these files for each test, as the compiler may |
| 4380 | # overwrite some of them when testing with obscure command lines. |
| 4381 | # This happens at least with the AIX C compiler. |
| 4382 | : > sub/conftest.c |
| 4383 | for i in 1 2 3 4 5 6; do |
| 4384 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4385 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4386 | # Solaris 8's {/usr,}/bin/sh. |
| 4387 | touch sub/conftst$i.h |
| 4388 | done |
| 4389 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4390 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4391 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4392 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4393 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 4394 | # versions had trouble with output in subdirs |
| 4395 | am__obj=sub/conftest.${OBJEXT-o} |
| 4396 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4397 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4398 | gcc) |
| 4399 | # This depmode causes a compiler race in universal mode. |
| 4400 | test "$am__universal" = false || continue |
| 4401 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4402 | nosideeffect) |
| 4403 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4404 | # only be used when explicitly requested |
| 4405 | if test "x$enable_dependency_tracking" = xyes; then |
| 4406 | continue |
| 4407 | else |
| 4408 | break |
| 4409 | fi |
| 4410 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4411 | msvisualcpp | msvcmsys) |
| 4412 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 4413 | # not run yet. These depmodes are late enough in the game, and |
| 4414 | # so weak that their functioning should not be impacted. |
| 4415 | am__obj=conftest.${OBJEXT-o} |
| 4416 | am__minus_obj= |
| 4417 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4418 | none) break ;; |
| 4419 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4420 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4421 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4422 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4423 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4424 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4425 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4426 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4427 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4428 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4429 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4430 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4431 | # that says an option was ignored or not supported. |
| 4432 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4433 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4434 | # The diagnosis changed in icc 8.0: |
| 4435 | # icc: Command line remark: option '-MP' not supported |
| 4436 | if (grep 'ignoring option' conftest.err || |
| 4437 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4438 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 4439 | break |
| 4440 | fi |
| 4441 | fi |
| 4442 | done |
| 4443 | |
| 4444 | cd .. |
| 4445 | rm -rf conftest.dir |
| 4446 | else |
| 4447 | am_cv_CXX_dependencies_compiler_type=none |
| 4448 | fi |
| 4449 | |
| 4450 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 4452 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4453 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4454 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4455 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4456 | test "x$enable_dependency_tracking" != xno \ |
| 4457 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4458 | am__fastdepCXX_TRUE= |
| 4459 | am__fastdepCXX_FALSE='#' |
| 4460 | else |
| 4461 | am__fastdepCXX_TRUE='#' |
| 4462 | am__fastdepCXX_FALSE= |
| 4463 | fi |
| 4464 | |
| 4465 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 4466 | if test -n "$ac_tool_prefix"; then |
| 4467 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4468 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4470 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4471 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4472 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4473 | else |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 4474 | if test -n "$RANLIB"; then |
| 4475 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4476 | else |
| 4477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4478 | for as_dir in $PATH |
| 4479 | do |
| 4480 | IFS=$as_save_IFS |
| 4481 | test -z "$as_dir" && as_dir=. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4482 | for ac_exec_ext in '' $ac_executable_extensions; do |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 4483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4484 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4486 | break 2 |
| 4487 | fi |
| 4488 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4489 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4490 | IFS=$as_save_IFS |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 4491 | |
| 4492 | fi |
| 4493 | fi |
| 4494 | RANLIB=$ac_cv_prog_RANLIB |
| 4495 | if test -n "$RANLIB"; then |
| 4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 4497 | $as_echo "$RANLIB" >&6; } |
| 4498 | else |
| 4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4500 | $as_echo "no" >&6; } |
| 4501 | fi |
| 4502 | |
| 4503 | |
| 4504 | fi |
| 4505 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4506 | ac_ct_RANLIB=$RANLIB |
| 4507 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4508 | set dummy ranlib; ac_word=$2 |
| 4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4510 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4511 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 4512 | $as_echo_n "(cached) " >&6 |
| 4513 | else |
| 4514 | if test -n "$ac_ct_RANLIB"; then |
| 4515 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4516 | else |
| 4517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4518 | for as_dir in $PATH |
| 4519 | do |
| 4520 | IFS=$as_save_IFS |
| 4521 | test -z "$as_dir" && as_dir=. |
| 4522 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4524 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4526 | break 2 |
| 4527 | fi |
| 4528 | done |
| 4529 | done |
| 4530 | IFS=$as_save_IFS |
| 4531 | |
| 4532 | fi |
| 4533 | fi |
| 4534 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4535 | if test -n "$ac_ct_RANLIB"; then |
| 4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 4537 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 4538 | else |
| 4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4540 | $as_echo "no" >&6; } |
| 4541 | fi |
| 4542 | |
| 4543 | if test "x$ac_ct_RANLIB" = x; then |
| 4544 | RANLIB=":" |
| 4545 | else |
| 4546 | case $cross_compiling:$ac_tool_warned in |
| 4547 | yes:) |
| 4548 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4549 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4550 | ac_tool_warned=yes ;; |
| 4551 | esac |
| 4552 | RANLIB=$ac_ct_RANLIB |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4553 | fi |
| 4554 | else |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 4555 | RANLIB="$ac_cv_prog_RANLIB" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4556 | fi |
| 4557 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4558 | |
| 4559 | |
| 4560 | |
| 4561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4562 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4563 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 4564 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4565 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4566 | if test -z "$GREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4567 | ac_path_GREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4568 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4570 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4571 | do |
| 4572 | IFS=$as_save_IFS |
| 4573 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4574 | for ac_prog in grep ggrep; do |
| 4575 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4576 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4577 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4578 | # Check for GNU ac_path_GREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4579 | # Check for GNU $ac_path_GREP |
| 4580 | case `"$ac_path_GREP" --version 2>&1` in |
| 4581 | *GNU*) |
| 4582 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4583 | *) |
| 4584 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4585 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4586 | while : |
| 4587 | do |
| 4588 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4589 | mv "conftest.tmp" "conftest.in" |
| 4590 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4591 | $as_echo 'GREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4592 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4593 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4594 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4595 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4596 | # Best one so far, save it but keep looking for a better one |
| 4597 | ac_cv_path_GREP="$ac_path_GREP" |
| 4598 | ac_path_GREP_max=$ac_count |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4599 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4600 | # 10*(2^10) chars as input seems more than enough |
| 4601 | test $ac_count -gt 10 && break |
| 4602 | done |
| 4603 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4604 | esac |
| 4605 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4606 | $ac_path_GREP_found && break 3 |
| 4607 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4608 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4609 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4610 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4611 | if test -z "$ac_cv_path_GREP"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 4612 | 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] | 4613 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4614 | else |
| 4615 | ac_cv_path_GREP=$GREP |
| 4616 | fi |
| 4617 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4618 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4620 | $as_echo "$ac_cv_path_GREP" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4621 | GREP="$ac_cv_path_GREP" |
| 4622 | |
| 4623 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4625 | $as_echo_n "checking for egrep... " >&6; } |
| 4626 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4627 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4628 | else |
| 4629 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4630 | then ac_cv_path_EGREP="$GREP -E" |
| 4631 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4632 | if test -z "$EGREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4633 | ac_path_EGREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4634 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4636 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4637 | do |
| 4638 | IFS=$as_save_IFS |
| 4639 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4640 | for ac_prog in egrep; do |
| 4641 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4642 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4643 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4644 | # Check for GNU ac_path_EGREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4645 | # Check for GNU $ac_path_EGREP |
| 4646 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4647 | *GNU*) |
| 4648 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4649 | *) |
| 4650 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4651 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4652 | while : |
| 4653 | do |
| 4654 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4655 | mv "conftest.tmp" "conftest.in" |
| 4656 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4657 | $as_echo 'EGREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4658 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4659 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4660 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4661 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4662 | # Best one so far, save it but keep looking for a better one |
| 4663 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4664 | ac_path_EGREP_max=$ac_count |
| 4665 | fi |
| 4666 | # 10*(2^10) chars as input seems more than enough |
| 4667 | test $ac_count -gt 10 && break |
| 4668 | done |
| 4669 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4670 | esac |
| 4671 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4672 | $ac_path_EGREP_found && break 3 |
| 4673 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4674 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4675 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4676 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4677 | if test -z "$ac_cv_path_EGREP"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 4678 | 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] | 4679 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4680 | else |
| 4681 | ac_cv_path_EGREP=$EGREP |
| 4682 | fi |
| 4683 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4684 | fi |
| 4685 | fi |
| 4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4687 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4688 | EGREP="$ac_cv_path_EGREP" |
| 4689 | |
| 4690 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4692 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4693 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 4694 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4695 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4697 | /* end confdefs.h. */ |
| 4698 | #include <stdlib.h> |
| 4699 | #include <stdarg.h> |
| 4700 | #include <string.h> |
| 4701 | #include <float.h> |
| 4702 | |
| 4703 | int |
| 4704 | main () |
| 4705 | { |
| 4706 | |
| 4707 | ; |
| 4708 | return 0; |
| 4709 | } |
| 4710 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4711 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4712 | ac_cv_header_stdc=yes |
| 4713 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4714 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4715 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4717 | |
| 4718 | if test $ac_cv_header_stdc = yes; then |
| 4719 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4721 | /* end confdefs.h. */ |
| 4722 | #include <string.h> |
| 4723 | |
| 4724 | _ACEOF |
| 4725 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4726 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4727 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4728 | else |
| 4729 | ac_cv_header_stdc=no |
| 4730 | fi |
| 4731 | rm -f conftest* |
| 4732 | |
| 4733 | fi |
| 4734 | |
| 4735 | if test $ac_cv_header_stdc = yes; then |
| 4736 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4738 | /* end confdefs.h. */ |
| 4739 | #include <stdlib.h> |
| 4740 | |
| 4741 | _ACEOF |
| 4742 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4743 | $EGREP "free" >/dev/null 2>&1; then : |
| 4744 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4745 | else |
| 4746 | ac_cv_header_stdc=no |
| 4747 | fi |
| 4748 | rm -f conftest* |
| 4749 | |
| 4750 | fi |
| 4751 | |
| 4752 | if test $ac_cv_header_stdc = yes; then |
| 4753 | # /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] | 4754 | if test "$cross_compiling" = yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4755 | : |
| 4756 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4758 | /* end confdefs.h. */ |
| 4759 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4760 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4761 | #if ((' ' & 0x0FF) == 0x020) |
| 4762 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4763 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4764 | #else |
| 4765 | # define ISLOWER(c) \ |
| 4766 | (('a' <= (c) && (c) <= 'i') \ |
| 4767 | || ('j' <= (c) && (c) <= 'r') \ |
| 4768 | || ('s' <= (c) && (c) <= 'z')) |
| 4769 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4770 | #endif |
| 4771 | |
| 4772 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4773 | int |
| 4774 | main () |
| 4775 | { |
| 4776 | int i; |
| 4777 | for (i = 0; i < 256; i++) |
| 4778 | if (XOR (islower (i), ISLOWER (i)) |
| 4779 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4780 | return 2; |
| 4781 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4782 | } |
| 4783 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4784 | if ac_fn_c_try_run "$LINENO"; then : |
| 4785 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4786 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4787 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4788 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4789 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4790 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4791 | fi |
| 4792 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4793 | fi |
| 4794 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4796 | $as_echo "$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4797 | if test $ac_cv_header_stdc = yes; then |
| 4798 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4799 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4800 | |
| 4801 | fi |
| 4802 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 4803 | # =========================================================================== |
| 4804 | # http://www.nongnu.org/autoconf-archive/ax_pthread.html |
| 4805 | # =========================================================================== |
| 4806 | # |
| 4807 | # SYNOPSIS |
| 4808 | # |
| 4809 | # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
| 4810 | # |
| 4811 | # DESCRIPTION |
| 4812 | # |
| 4813 | # This macro figures out how to build C programs using POSIX threads. It |
| 4814 | # sets the PTHREAD_LIBS output variable to the threads library and linker |
| 4815 | # flags, and the PTHREAD_CFLAGS output variable to any special C compiler |
| 4816 | # flags that are needed. (The user can also force certain compiler |
| 4817 | # flags/libs to be tested by setting these environment variables.) |
| 4818 | # |
| 4819 | # Also sets PTHREAD_CC to any special C compiler that is needed for |
| 4820 | # multi-threaded programs (defaults to the value of CC otherwise). (This |
| 4821 | # is necessary on AIX to use the special cc_r compiler alias.) |
| 4822 | # |
| 4823 | # NOTE: You are assumed to not only compile your program with these flags, |
| 4824 | # but also link it with them as well. e.g. you should link with |
| 4825 | # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS |
| 4826 | # |
| 4827 | # If you are only building threads programs, you may wish to use these |
| 4828 | # variables in your default LIBS, CFLAGS, and CC: |
| 4829 | # |
| 4830 | # LIBS="$PTHREAD_LIBS $LIBS" |
| 4831 | # CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 4832 | # CC="$PTHREAD_CC" |
| 4833 | # |
| 4834 | # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant |
| 4835 | # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name |
| 4836 | # (e.g. PTHREAD_CREATE_UNDETACHED on AIX). |
| 4837 | # |
| 4838 | # ACTION-IF-FOUND is a list of shell commands to run if a threads library |
| 4839 | # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it |
| 4840 | # is not found. If ACTION-IF-FOUND is not specified, the default action |
| 4841 | # will define HAVE_PTHREAD. |
| 4842 | # |
| 4843 | # Please let the authors know if this macro fails on any platform, or if |
| 4844 | # you have any other suggestions or comments. This macro was based on work |
| 4845 | # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help |
| 4846 | # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by |
| 4847 | # Alejandro Forero Cuervo to the autoconf macro repository. We are also |
| 4848 | # grateful for the helpful feedback of numerous users. |
| 4849 | # |
| 4850 | # LICENSE |
| 4851 | # |
| 4852 | # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> |
| 4853 | # |
| 4854 | # This program is free software: you can redistribute it and/or modify it |
| 4855 | # under the terms of the GNU General Public License as published by the |
| 4856 | # Free Software Foundation, either version 3 of the License, or (at your |
| 4857 | # option) any later version. |
| 4858 | # |
| 4859 | # This program is distributed in the hope that it will be useful, but |
| 4860 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 4861 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
| 4862 | # Public License for more details. |
| 4863 | # |
| 4864 | # You should have received a copy of the GNU General Public License along |
| 4865 | # with this program. If not, see <http://www.gnu.org/licenses/>. |
| 4866 | # |
| 4867 | # As a special exception, the respective Autoconf Macro's copyright owner |
| 4868 | # gives unlimited permission to copy, distribute and modify the configure |
| 4869 | # scripts that are the output of Autoconf when processing the Macro. You |
| 4870 | # need not follow the terms of the GNU General Public License when using |
| 4871 | # or distributing such scripts, even though portions of the text of the |
| 4872 | # Macro appear in them. The GNU General Public License (GPL) does govern |
| 4873 | # all other use of the material that constitutes the Autoconf Macro. |
| 4874 | # |
| 4875 | # This special exception to the GPL applies to versions of the Autoconf |
| 4876 | # Macro released by the Autoconf Archive. When you make and distribute a |
| 4877 | # modified version of the Autoconf Macro, you may extend this special |
| 4878 | # exception to the GPL to apply to your modified version as well. |
| 4879 | |
| 4880 | #serial 6 |
| 4881 | |
| 4882 | # This is what autoupdate's m4 run will expand. It fires |
| 4883 | # the warning (with _au_warn_XXX), outputs it into the |
| 4884 | # updated configure.ac (with AC_DIAGNOSE), and then outputs |
| 4885 | # the replacement expansion. |
| 4886 | |
| 4887 | |
| 4888 | # This is an auxiliary macro that is also run when |
| 4889 | # autoupdate runs m4. It simply calls m4_warning, but |
| 4890 | # we need a wrapper so that each warning is emitted only |
| 4891 | # once. We break the quoting in m4_warning's argument in |
| 4892 | # order to expand this macro's arguments, not AU_DEFUN's. |
| 4893 | |
| 4894 | |
| 4895 | # Finally, this is the expansion that is picked up by |
| 4896 | # autoconf. It tells the user to run autoupdate, and |
| 4897 | # then outputs the replacement expansion. We do not care |
| 4898 | # about autoupdate's warning because that contains |
| 4899 | # information on what to do *after* running autoupdate. |
| 4900 | |
| 4901 | |
| 4902 | |
| 4903 | |
| 4904 | ac_ext=c |
| 4905 | ac_cpp='$CPP $CPPFLAGS' |
| 4906 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4907 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4908 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4909 | |
| 4910 | ax_pthread_ok=no |
| 4911 | |
| 4912 | # We used to check for pthread.h first, but this fails if pthread.h |
| 4913 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 4914 | # It gets checked for in the link test anyway. |
| 4915 | |
| 4916 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 4917 | # etcetera environment variables, and if threads linking works using |
| 4918 | # them: |
| 4919 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 4920 | save_CFLAGS="$CFLAGS" |
| 4921 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 4922 | save_LIBS="$LIBS" |
| 4923 | LIBS="$PTHREAD_LIBS $LIBS" |
| 4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 4925 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 4926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4927 | /* end confdefs.h. */ |
| 4928 | |
| 4929 | /* Override any GCC internal prototype to avoid an error. |
| 4930 | Use char because int might match the return type of a GCC |
| 4931 | builtin and then its argument prototype would still apply. */ |
| 4932 | #ifdef __cplusplus |
| 4933 | extern "C" |
| 4934 | #endif |
| 4935 | char pthread_join (); |
| 4936 | int |
| 4937 | main () |
| 4938 | { |
| 4939 | return pthread_join (); |
| 4940 | ; |
| 4941 | return 0; |
| 4942 | } |
| 4943 | _ACEOF |
| 4944 | if ac_fn_c_try_link "$LINENO"; then : |
| 4945 | ax_pthread_ok=yes |
| 4946 | fi |
| 4947 | rm -f core conftest.err conftest.$ac_objext \ |
| 4948 | conftest$ac_exeext conftest.$ac_ext |
| 4949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 4950 | $as_echo "$ax_pthread_ok" >&6; } |
| 4951 | if test x"$ax_pthread_ok" = xno; then |
| 4952 | PTHREAD_LIBS="" |
| 4953 | PTHREAD_CFLAGS="" |
| 4954 | fi |
| 4955 | LIBS="$save_LIBS" |
| 4956 | CFLAGS="$save_CFLAGS" |
| 4957 | fi |
| 4958 | |
| 4959 | # We must check for the threads library under a number of different |
| 4960 | # names; the ordering is very important because some systems |
| 4961 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 4962 | # libraries is broken (non-POSIX). |
| 4963 | |
| 4964 | # Create a list of thread flags to try. Items starting with a "-" are |
| 4965 | # C compiler flags, and other items are library names, except for "none" |
| 4966 | # which indicates that we try without any flags at all, and "pthread-config" |
| 4967 | # which is a program returning the flags for the Pth emulation library. |
| 4968 | |
| 4969 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 4970 | |
| 4971 | # The ordering *is* (sometimes) important. Some notes on the |
| 4972 | # individual items follow: |
| 4973 | |
| 4974 | # pthreads: AIX (must check this before -lpthread) |
| 4975 | # none: in case threads are in libc; should be tried before -Kthread and |
| 4976 | # other compiler flags to prevent continual compiler warnings |
| 4977 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 4978 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 4979 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 4980 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 4981 | # -pthreads: Solaris/gcc |
| 4982 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 4983 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 4984 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 4985 | # also defines -D_REENTRANT) |
| 4986 | # ... -mt is also the pthreads flag for HP/aCC |
| 4987 | # pthread: Linux, etcetera |
| 4988 | # --thread-safe: KAI C++ |
| 4989 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 4990 | |
| 4991 | case "${host_cpu}-${host_os}" in |
| 4992 | *solaris*) |
| 4993 | |
| 4994 | # On Solaris (at least, for some versions), libc contains stubbed |
| 4995 | # (non-functional) versions of the pthreads routines, so link-based |
| 4996 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 4997 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 4998 | # a function called by this macro, so we could check for that, but |
| 4999 | # who knows whether they'll stub that too in a future libc.) So, |
| 5000 | # we'll just look for -pthreads and -lpthread first: |
| 5001 | |
| 5002 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 5003 | ;; |
| 5004 | |
| 5005 | *-darwin*) |
| 5006 | acx_pthread_flags="-pthread $acx_pthread_flags" |
| 5007 | ;; |
| 5008 | esac |
| 5009 | |
| 5010 | if test x"$ax_pthread_ok" = xno; then |
| 5011 | for flag in $ax_pthread_flags; do |
| 5012 | |
| 5013 | case $flag in |
| 5014 | none) |
| 5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 5016 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 5017 | ;; |
| 5018 | |
| 5019 | -*) |
| 5020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 5021 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 5022 | PTHREAD_CFLAGS="$flag" |
| 5023 | ;; |
| 5024 | |
| 5025 | pthread-config) |
| 5026 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 5027 | set dummy pthread-config; ac_word=$2 |
| 5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5029 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5030 | if test "${ac_cv_prog_ax_pthread_config+set}" = set; then : |
| 5031 | $as_echo_n "(cached) " >&6 |
| 5032 | else |
| 5033 | if test -n "$ax_pthread_config"; then |
| 5034 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 5035 | else |
| 5036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5037 | for as_dir in $PATH |
| 5038 | do |
| 5039 | IFS=$as_save_IFS |
| 5040 | test -z "$as_dir" && as_dir=. |
| 5041 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5042 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5043 | ac_cv_prog_ax_pthread_config="yes" |
| 5044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5045 | break 2 |
| 5046 | fi |
| 5047 | done |
| 5048 | done |
| 5049 | IFS=$as_save_IFS |
| 5050 | |
| 5051 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 5052 | fi |
| 5053 | fi |
| 5054 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 5055 | if test -n "$ax_pthread_config"; then |
| 5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 5057 | $as_echo "$ax_pthread_config" >&6; } |
| 5058 | else |
| 5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5060 | $as_echo "no" >&6; } |
| 5061 | fi |
| 5062 | |
| 5063 | |
| 5064 | if test x"$ax_pthread_config" = xno; then continue; fi |
| 5065 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 5066 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 5067 | ;; |
| 5068 | |
| 5069 | *) |
| 5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 5071 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 5072 | PTHREAD_LIBS="-l$flag" |
| 5073 | ;; |
| 5074 | esac |
| 5075 | |
| 5076 | save_LIBS="$LIBS" |
| 5077 | save_CFLAGS="$CFLAGS" |
| 5078 | LIBS="$PTHREAD_LIBS $LIBS" |
| 5079 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 5080 | |
| 5081 | # Check for various functions. We must include pthread.h, |
| 5082 | # since some functions may be macros. (On the Sequent, we |
| 5083 | # need a special flag -Kthread to make this header compile.) |
| 5084 | # We check for pthread_join because it is in -lpthread on IRIX |
| 5085 | # while pthread_create is in libc. We check for pthread_attr_init |
| 5086 | # due to DEC craziness with -lpthreads. We check for |
| 5087 | # pthread_cleanup_push because it is one of the few pthread |
| 5088 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 5089 | # We try pthread_create on general principles. |
| 5090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5091 | /* end confdefs.h. */ |
| 5092 | #include <pthread.h> |
| 5093 | static void routine(void* a) {a=0;} |
| 5094 | static void* start_routine(void* a) {return a;} |
| 5095 | int |
| 5096 | main () |
| 5097 | { |
| 5098 | pthread_t th; pthread_attr_t attr; |
| 5099 | pthread_join(th, 0); |
| 5100 | pthread_attr_init(&attr); |
| 5101 | pthread_cleanup_push(routine, 0); |
| 5102 | pthread_create(&th,0,start_routine,0); |
| 5103 | pthread_cleanup_pop(0); |
| 5104 | ; |
| 5105 | return 0; |
| 5106 | } |
| 5107 | _ACEOF |
| 5108 | if ac_fn_c_try_link "$LINENO"; then : |
| 5109 | ax_pthread_ok=yes |
| 5110 | fi |
| 5111 | rm -f core conftest.err conftest.$ac_objext \ |
| 5112 | conftest$ac_exeext conftest.$ac_ext |
| 5113 | |
| 5114 | LIBS="$save_LIBS" |
| 5115 | CFLAGS="$save_CFLAGS" |
| 5116 | |
| 5117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 5118 | $as_echo "$ax_pthread_ok" >&6; } |
| 5119 | if test "x$ax_pthread_ok" = xyes; then |
| 5120 | break; |
| 5121 | fi |
| 5122 | |
| 5123 | PTHREAD_LIBS="" |
| 5124 | PTHREAD_CFLAGS="" |
| 5125 | done |
| 5126 | fi |
| 5127 | |
| 5128 | # Various other checks: |
| 5129 | if test "x$ax_pthread_ok" = xyes; then |
| 5130 | save_LIBS="$LIBS" |
| 5131 | LIBS="$PTHREAD_LIBS $LIBS" |
| 5132 | save_CFLAGS="$CFLAGS" |
| 5133 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 5134 | |
| 5135 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 5136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| 5137 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| 5138 | attr_name=unknown |
| 5139 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 5140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5141 | /* end confdefs.h. */ |
| 5142 | #include <pthread.h> |
| 5143 | int |
| 5144 | main () |
| 5145 | { |
| 5146 | int attr=$attr; return attr; |
| 5147 | ; |
| 5148 | return 0; |
| 5149 | } |
| 5150 | _ACEOF |
| 5151 | if ac_fn_c_try_link "$LINENO"; then : |
| 5152 | attr_name=$attr; break |
| 5153 | fi |
| 5154 | rm -f core conftest.err conftest.$ac_objext \ |
| 5155 | conftest$ac_exeext conftest.$ac_ext |
| 5156 | done |
| 5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 5158 | $as_echo "$attr_name" >&6; } |
| 5159 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 5160 | |
| 5161 | cat >>confdefs.h <<_ACEOF |
| 5162 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 5163 | _ACEOF |
| 5164 | |
| 5165 | fi |
| 5166 | |
| 5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 5168 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 5169 | flag=no |
| 5170 | case "${host_cpu}-${host_os}" in |
| 5171 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 5172 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 5173 | esac |
| 5174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 5175 | $as_echo "${flag}" >&6; } |
| 5176 | if test "x$flag" != xno; then |
| 5177 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 5178 | fi |
| 5179 | |
| 5180 | LIBS="$save_LIBS" |
| 5181 | CFLAGS="$save_CFLAGS" |
| 5182 | |
| 5183 | # More AIX lossage: must compile with xlc_r or cc_r |
| 5184 | if test x"$GCC" != xyes; then |
| 5185 | for ac_prog in xlc_r cc_r |
| 5186 | do |
| 5187 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5188 | set dummy $ac_prog; ac_word=$2 |
| 5189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5190 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5191 | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : |
| 5192 | $as_echo_n "(cached) " >&6 |
| 5193 | else |
| 5194 | if test -n "$PTHREAD_CC"; then |
| 5195 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 5196 | else |
| 5197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5198 | for as_dir in $PATH |
| 5199 | do |
| 5200 | IFS=$as_save_IFS |
| 5201 | test -z "$as_dir" && as_dir=. |
| 5202 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5203 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5204 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 5205 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5206 | break 2 |
| 5207 | fi |
| 5208 | done |
| 5209 | done |
| 5210 | IFS=$as_save_IFS |
| 5211 | |
| 5212 | fi |
| 5213 | fi |
| 5214 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 5215 | if test -n "$PTHREAD_CC"; then |
| 5216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 5217 | $as_echo "$PTHREAD_CC" >&6; } |
| 5218 | else |
| 5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5220 | $as_echo "no" >&6; } |
| 5221 | fi |
| 5222 | |
| 5223 | |
| 5224 | test -n "$PTHREAD_CC" && break |
| 5225 | done |
| 5226 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| 5227 | |
| 5228 | else |
| 5229 | PTHREAD_CC=$CC |
| 5230 | fi |
| 5231 | else |
| 5232 | PTHREAD_CC="$CC" |
| 5233 | fi |
| 5234 | |
| 5235 | |
| 5236 | |
| 5237 | |
| 5238 | |
| 5239 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 5240 | if test x"$ax_pthread_ok" = xyes; then |
| 5241 | |
| 5242 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 5243 | |
| 5244 | : |
| 5245 | else |
| 5246 | ax_pthread_ok=no |
| 5247 | |
| 5248 | fi |
| 5249 | ac_ext=c |
| 5250 | ac_cpp='$CPP $CPPFLAGS' |
| 5251 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5252 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5253 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5254 | |
| 5255 | |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame^] | 5256 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5257 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5258 | inttypes.h stdint.h unistd.h |
| 5259 | do : |
| 5260 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5261 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5262 | " |
| 5263 | eval as_val=\$$as_ac_Header |
| 5264 | if test "x$as_val" = x""yes; then : |
| 5265 | cat >>confdefs.h <<_ACEOF |
| 5266 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5267 | _ACEOF |
| 5268 | |
| 5269 | fi |
| 5270 | |
| 5271 | done |
| 5272 | |
| 5273 | |
| 5274 | for ac_header in a.out.h |
| 5275 | do : |
| 5276 | ac_fn_c_check_header_mongrel "$LINENO" "a.out.h" "ac_cv_header_a_out_h" "$ac_includes_default" |
| 5277 | if test "x$ac_cv_header_a_out_h" = x""yes; then : |
| 5278 | cat >>confdefs.h <<_ACEOF |
| 5279 | #define HAVE_A_OUT_H 1 |
| 5280 | _ACEOF |
| 5281 | |
| 5282 | fi |
| 5283 | |
| 5284 | done |
| 5285 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 5286 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 5287 | # Only build Linux client libs when compiling for Linux |
| 5288 | case $host in |
ted.mielczarek | cfc8628 | 2010-10-20 15:51:38 +0000 | [diff] [blame] | 5289 | *-*-linux* | *-android* ) |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 5290 | LINUX_HOST=true |
| 5291 | ;; |
| 5292 | esac |
| 5293 | if test x$LINUX_HOST = xtrue; then |
| 5294 | LINUX_HOST_TRUE= |
| 5295 | LINUX_HOST_FALSE='#' |
| 5296 | else |
| 5297 | LINUX_HOST_TRUE='#' |
| 5298 | LINUX_HOST_FALSE= |
| 5299 | fi |
| 5300 | |
| 5301 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 5302 | # Check whether --enable-m32 was given. |
| 5303 | if test "${enable_m32+set}" = set; then : |
| 5304 | enableval=$enable_m32; case "${enableval}" in |
| 5305 | yes) |
ted.mielczarek | efa30c1 | 2010-09-17 13:36:11 +0000 | [diff] [blame] | 5306 | CFLAGS="${CFLAGS} -m32" |
| 5307 | CXXFLAGS="${CXXFLAGS} -m32" |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 5308 | usem32=true |
| 5309 | ;; |
| 5310 | no) |
| 5311 | usem32=false |
| 5312 | ;; |
| 5313 | *) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5314 | as_fn_error "bad value ${enableval} for --enable-m32" "$LINENO" 5 |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 5315 | ;; |
| 5316 | esac |
| 5317 | else |
| 5318 | usem32=false |
| 5319 | fi |
| 5320 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5321 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5322 | # Check whether --enable-processor was given. |
| 5323 | if test "${enable_processor+set}" = set; then : |
| 5324 | enableval=$enable_processor; case "${enableval}" in |
| 5325 | yes) |
| 5326 | disable_processor=false |
| 5327 | ;; |
| 5328 | no) |
| 5329 | disable_processor=true |
| 5330 | ;; |
| 5331 | *) |
| 5332 | as_fn_error "bad value ${enableval} for --disable-processor" "$LINENO" 5 |
| 5333 | ;; |
| 5334 | esac |
| 5335 | else |
| 5336 | disable_processor=false |
| 5337 | fi |
| 5338 | |
| 5339 | if test x$disable_processor = xtrue; then |
| 5340 | DISABLE_PROCESSOR_TRUE= |
| 5341 | DISABLE_PROCESSOR_FALSE='#' |
| 5342 | else |
| 5343 | DISABLE_PROCESSOR_TRUE='#' |
| 5344 | DISABLE_PROCESSOR_FALSE= |
| 5345 | fi |
| 5346 | |
| 5347 | |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame^] | 5348 | # Check whether --enable-tools was given. |
| 5349 | if test "${enable_tools+set}" = set; then : |
| 5350 | enableval=$enable_tools; case "${enableval}" in |
| 5351 | yes) |
| 5352 | disable_tools=false |
| 5353 | ;; |
| 5354 | no) |
| 5355 | disable_tools=true |
| 5356 | ;; |
| 5357 | *) |
| 5358 | as_fn_error "bad value ${enableval} for --disable-tools" "$LINENO" 5 |
| 5359 | ;; |
| 5360 | esac |
| 5361 | else |
| 5362 | disable_tools=false |
| 5363 | fi |
| 5364 | |
| 5365 | if test x$disable_tools = xtrue; then |
| 5366 | DISABLE_TOOLS_TRUE= |
| 5367 | DISABLE_TOOLS_FALSE='#' |
| 5368 | else |
| 5369 | DISABLE_TOOLS_TRUE='#' |
| 5370 | DISABLE_TOOLS_FALSE= |
| 5371 | fi |
| 5372 | |
| 5373 | |
| 5374 | if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue -a x$disable_tools = xtrue; then |
| 5375 | 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] | 5376 | fi |
| 5377 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 5378 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h> |
| 5379 | " |
| 5380 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then : |
| 5381 | |
| 5382 | $as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_len)" >>confdefs.h |
| 5383 | |
| 5384 | else |
| 5385 | |
| 5386 | $as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) : \\ |
| 5387 | ((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr))" >>confdefs.h |
| 5388 | |
| 5389 | fi |
| 5390 | |
| 5391 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 5392 | # Check whether --enable-selftest was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5393 | if test "${enable_selftest+set}" = set; then : |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 5394 | enableval=$enable_selftest; case "${enableval}" in |
| 5395 | yes) |
| 5396 | selftest=true |
| 5397 | ;; |
| 5398 | no) |
| 5399 | selftest=false |
| 5400 | ;; |
| 5401 | *) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5402 | as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 5403 | ;; |
| 5404 | esac |
| 5405 | else |
| 5406 | selftest=false |
| 5407 | fi |
| 5408 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5409 | if test x$selftest = xtrue; then |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 5410 | SELFTEST_TRUE= |
| 5411 | SELFTEST_FALSE='#' |
| 5412 | else |
| 5413 | SELFTEST_TRUE='#' |
| 5414 | SELFTEST_FALSE= |
| 5415 | fi |
| 5416 | |
| 5417 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5418 | ac_config_files="$ac_config_files Makefile" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5419 | |
| 5420 | cat >confcache <<\_ACEOF |
| 5421 | # This file is a shell script that caches the results of configure |
| 5422 | # tests run on this system so they can be shared between configure |
| 5423 | # scripts and configure runs, see configure's option --config-cache. |
| 5424 | # It is not useful on other systems. If it contains results you don't |
| 5425 | # want to keep, you may remove or edit it. |
| 5426 | # |
| 5427 | # config.status only pays attention to the cache file if you give it |
| 5428 | # the --recheck option to rerun configure. |
| 5429 | # |
| 5430 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 5431 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 5432 | # following values. |
| 5433 | |
| 5434 | _ACEOF |
| 5435 | |
| 5436 | # The following way of writing the cache mishandles newlines in values, |
| 5437 | # but we know of no workaround that is simple, portable, and efficient. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5438 | # So, we kill variables containing newlines. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5439 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5440 | # 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] | 5441 | ( |
| 5442 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 5443 | eval ac_val=\$$ac_var |
| 5444 | case $ac_val in #( |
| 5445 | *${as_nl}*) |
| 5446 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5447 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 5448 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5449 | esac |
| 5450 | case $ac_var in #( |
| 5451 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5452 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 5453 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5454 | esac ;; |
| 5455 | esac |
| 5456 | done |
| 5457 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5458 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5459 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 5460 | *${as_nl}ac_space=\ *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5461 | # `set' does not quote correctly, so add quotes: double-quote |
| 5462 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5463 | sed -n \ |
| 5464 | "s/'/'\\\\''/g; |
| 5465 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5466 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5467 | *) |
| 5468 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5469 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5470 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5471 | esac | |
| 5472 | sort |
| 5473 | ) | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5474 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5475 | /^ac_cv_env_/b end |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5476 | t clear |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5477 | :clear |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5478 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 5479 | t end |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5480 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 5481 | :end' >>confcache |
| 5482 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 5483 | if test -w "$cache_file"; then |
| 5484 | test "x$cache_file" != "x/dev/null" && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5485 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 5486 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5487 | cat confcache >$cache_file |
| 5488 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 5490 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5491 | fi |
| 5492 | fi |
| 5493 | rm -f confcache |
| 5494 | |
| 5495 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5496 | # Let make expand exec_prefix. |
| 5497 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 5498 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5499 | DEFS=-DHAVE_CONFIG_H |
| 5500 | |
| 5501 | ac_libobjs= |
| 5502 | ac_ltlibobjs= |
| 5503 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 5504 | # 1. Remove the extension, and $U if already installed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5505 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5506 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5507 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 5508 | # will be set to the directory where LIBOBJS objects are built. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5509 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 5510 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5511 | done |
| 5512 | LIBOBJS=$ac_libobjs |
| 5513 | |
| 5514 | LTLIBOBJS=$ac_ltlibobjs |
| 5515 | |
| 5516 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5517 | if test -n "$EXEEXT"; then |
| 5518 | am__EXEEXT_TRUE= |
| 5519 | am__EXEEXT_FALSE='#' |
| 5520 | else |
| 5521 | am__EXEEXT_TRUE='#' |
| 5522 | am__EXEEXT_FALSE= |
| 5523 | fi |
| 5524 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5525 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5526 | as_fn_error "conditional \"AMDEP\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5527 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5528 | fi |
| 5529 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5530 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5531 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5532 | fi |
| 5533 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5534 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5535 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5536 | fi |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 5537 | if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5538 | as_fn_error "conditional \"LINUX_HOST\" was never defined. |
| 5539 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5540 | fi |
| 5541 | if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then |
| 5542 | as_fn_error "conditional \"DISABLE_PROCESSOR\" was never defined. |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 5543 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5544 | fi |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame^] | 5545 | if test -z "${DISABLE_TOOLS_TRUE}" && test -z "${DISABLE_TOOLS_FALSE}"; then |
| 5546 | as_fn_error "conditional \"DISABLE_TOOLS\" was never defined. |
| 5547 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5548 | fi |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 5549 | if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5550 | as_fn_error "conditional \"SELFTEST\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5551 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 5552 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5553 | |
| 5554 | : ${CONFIG_STATUS=./config.status} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5555 | ac_write_fail=0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5556 | ac_clean_files_save=$ac_clean_files |
| 5557 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 5559 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 5560 | as_write_fail=0 |
| 5561 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5562 | #! $SHELL |
| 5563 | # Generated by $as_me. |
| 5564 | # Run this file to recreate the current configuration. |
| 5565 | # Compiler output produced by configure, useful for debugging |
| 5566 | # configure, is in config.log if it exists. |
| 5567 | |
| 5568 | debug=false |
| 5569 | ac_cs_recheck=false |
| 5570 | ac_cs_silent=false |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5571 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5572 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 5573 | export SHELL |
| 5574 | _ASEOF |
| 5575 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 5576 | ## -------------------- ## |
| 5577 | ## M4sh Initialization. ## |
| 5578 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5579 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5580 | # Be more Bourne compatible |
| 5581 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5582 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5583 | emulate sh |
| 5584 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5585 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5586 | # is contrary to our usage. Disable this feature. |
| 5587 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5588 | setopt NO_GLOB_SUBST |
| 5589 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5590 | case `(set -o) 2>/dev/null` in #( |
| 5591 | *posix*) : |
| 5592 | set -o posix ;; #( |
| 5593 | *) : |
| 5594 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5595 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5596 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5597 | |
| 5598 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5599 | as_nl=' |
| 5600 | ' |
| 5601 | export as_nl |
| 5602 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 5603 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 5604 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5605 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5606 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 5607 | # but without wasting forks for bash or zsh. |
| 5608 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 5609 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 5610 | as_echo='print -r --' |
| 5611 | as_echo_n='print -rn --' |
| 5612 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 5613 | as_echo='printf %s\n' |
| 5614 | as_echo_n='printf %s' |
| 5615 | else |
| 5616 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 5617 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 5618 | as_echo_n='/usr/ucb/echo -n' |
| 5619 | else |
| 5620 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 5621 | as_echo_n_body='eval |
| 5622 | arg=$1; |
| 5623 | case $arg in #( |
| 5624 | *"$as_nl"*) |
| 5625 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 5626 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 5627 | esac; |
| 5628 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 5629 | ' |
| 5630 | export as_echo_n_body |
| 5631 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 5632 | fi |
| 5633 | export as_echo_body |
| 5634 | as_echo='sh -c $as_echo_body as_echo' |
| 5635 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5636 | |
| 5637 | # The user is always right. |
| 5638 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5639 | PATH_SEPARATOR=: |
| 5640 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 5641 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 5642 | PATH_SEPARATOR=';' |
| 5643 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5644 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5645 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5646 | |
| 5647 | # IFS |
| 5648 | # We need space, tab and new line, in precisely that order. Quoting is |
| 5649 | # there to prevent editors from complaining about space-tab. |
| 5650 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 5651 | # splitting by setting IFS to empty value.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5652 | IFS=" "" $as_nl" |
| 5653 | |
| 5654 | # 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] | 5655 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5656 | *[\\/]* ) as_myself=$0 ;; |
| 5657 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5658 | for as_dir in $PATH |
| 5659 | do |
| 5660 | IFS=$as_save_IFS |
| 5661 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5662 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 5663 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5664 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5665 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5666 | ;; |
| 5667 | esac |
| 5668 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 5669 | # in which case we are not to be found in the path. |
| 5670 | if test "x$as_myself" = x; then |
| 5671 | as_myself=$0 |
| 5672 | fi |
| 5673 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5674 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 5675 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5676 | fi |
| 5677 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5678 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 5679 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 5680 | # suppresses any "Segmentation fault" message there. '((' could |
| 5681 | # trigger a bug in pdksh 5.2.14. |
| 5682 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 5683 | do eval test x\${$as_var+set} = xset \ |
| 5684 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5685 | done |
| 5686 | PS1='$ ' |
| 5687 | PS2='> ' |
| 5688 | PS4='+ ' |
| 5689 | |
| 5690 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5691 | LC_ALL=C |
| 5692 | export LC_ALL |
| 5693 | LANGUAGE=C |
| 5694 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5695 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5696 | # CDPATH. |
| 5697 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 5698 | |
| 5699 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5700 | # as_fn_error ERROR [LINENO LOG_FD] |
| 5701 | # --------------------------------- |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5702 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 5703 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5704 | # script with status $?, using 1 if that was 0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5705 | as_fn_error () |
| 5706 | { |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5707 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 5708 | if test "$3"; then |
| 5709 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 5710 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5711 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5712 | $as_echo "$as_me: error: $1" >&2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5713 | as_fn_exit $as_status |
| 5714 | } # as_fn_error |
| 5715 | |
| 5716 | |
| 5717 | # as_fn_set_status STATUS |
| 5718 | # ----------------------- |
| 5719 | # Set $? to STATUS, without forking. |
| 5720 | as_fn_set_status () |
| 5721 | { |
| 5722 | return $1 |
| 5723 | } # as_fn_set_status |
| 5724 | |
| 5725 | # as_fn_exit STATUS |
| 5726 | # ----------------- |
| 5727 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 5728 | as_fn_exit () |
| 5729 | { |
| 5730 | set +e |
| 5731 | as_fn_set_status $1 |
| 5732 | exit $1 |
| 5733 | } # as_fn_exit |
| 5734 | |
| 5735 | # as_fn_unset VAR |
| 5736 | # --------------- |
| 5737 | # Portably unset VAR. |
| 5738 | as_fn_unset () |
| 5739 | { |
| 5740 | { eval $1=; unset $1;} |
| 5741 | } |
| 5742 | as_unset=as_fn_unset |
| 5743 | # as_fn_append VAR VALUE |
| 5744 | # ---------------------- |
| 5745 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 5746 | # advantage of any shell optimizations that allow amortized linear growth over |
| 5747 | # repeated appends, instead of the typical quadratic growth present in naive |
| 5748 | # implementations. |
| 5749 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 5750 | eval 'as_fn_append () |
| 5751 | { |
| 5752 | eval $1+=\$2 |
| 5753 | }' |
| 5754 | else |
| 5755 | as_fn_append () |
| 5756 | { |
| 5757 | eval $1=\$$1\$2 |
| 5758 | } |
| 5759 | fi # as_fn_append |
| 5760 | |
| 5761 | # as_fn_arith ARG... |
| 5762 | # ------------------ |
| 5763 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 5764 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 5765 | # must be portable across $(()) and expr. |
| 5766 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 5767 | eval 'as_fn_arith () |
| 5768 | { |
| 5769 | as_val=$(( $* )) |
| 5770 | }' |
| 5771 | else |
| 5772 | as_fn_arith () |
| 5773 | { |
| 5774 | as_val=`expr "$@" || test $? -eq 1` |
| 5775 | } |
| 5776 | fi # as_fn_arith |
| 5777 | |
| 5778 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5779 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 5780 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 5781 | as_expr=expr |
| 5782 | else |
| 5783 | as_expr=false |
| 5784 | fi |
| 5785 | |
| 5786 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 5787 | as_basename=basename |
| 5788 | else |
| 5789 | as_basename=false |
| 5790 | fi |
| 5791 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5792 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 5793 | as_dirname=dirname |
| 5794 | else |
| 5795 | as_dirname=false |
| 5796 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5797 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5798 | as_me=`$as_basename -- "$0" || |
| 5799 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 5800 | X"$0" : 'X\(//\)$' \| \ |
| 5801 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5802 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5803 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 5804 | s//\1/ |
| 5805 | q |
| 5806 | } |
| 5807 | /^X\/\(\/\/\)$/{ |
| 5808 | s//\1/ |
| 5809 | q |
| 5810 | } |
| 5811 | /^X\/\(\/\).*/{ |
| 5812 | s//\1/ |
| 5813 | q |
| 5814 | } |
| 5815 | s/.*/./; q'` |
| 5816 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5817 | # Avoid depending upon Character Ranges. |
| 5818 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 5819 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 5820 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 5821 | as_cr_digits='0123456789' |
| 5822 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5823 | |
| 5824 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5825 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5826 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5827 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5828 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5829 | xy) ECHO_C='\c';; |
| 5830 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 5831 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5832 | esac;; |
| 5833 | *) |
| 5834 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5835 | esac |
| 5836 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5837 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5838 | if test -d conf$$.dir; then |
| 5839 | rm -f conf$$.dir/conf$$.file |
| 5840 | else |
| 5841 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5842 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5843 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5844 | if (echo >conf$$.file) 2>/dev/null; then |
| 5845 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 5846 | as_ln_s='ln -s' |
| 5847 | # ... but there are two gotchas: |
| 5848 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 5849 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 5850 | # In both cases, we have to default to `cp -p'. |
| 5851 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 5852 | as_ln_s='cp -p' |
| 5853 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 5854 | as_ln_s=ln |
| 5855 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5856 | as_ln_s='cp -p' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5857 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5858 | else |
| 5859 | as_ln_s='cp -p' |
| 5860 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5861 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 5862 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5863 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5864 | |
| 5865 | # as_fn_mkdir_p |
| 5866 | # ------------- |
| 5867 | # Create "$as_dir" as a directory, including parents if necessary. |
| 5868 | as_fn_mkdir_p () |
| 5869 | { |
| 5870 | |
| 5871 | case $as_dir in #( |
| 5872 | -*) as_dir=./$as_dir;; |
| 5873 | esac |
| 5874 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 5875 | as_dirs= |
| 5876 | while :; do |
| 5877 | case $as_dir in #( |
| 5878 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 5879 | *) as_qdir=$as_dir;; |
| 5880 | esac |
| 5881 | as_dirs="'$as_qdir' $as_dirs" |
| 5882 | as_dir=`$as_dirname -- "$as_dir" || |
| 5883 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5884 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 5885 | X"$as_dir" : 'X\(//\)$' \| \ |
| 5886 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 5887 | $as_echo X"$as_dir" | |
| 5888 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 5889 | s//\1/ |
| 5890 | q |
| 5891 | } |
| 5892 | /^X\(\/\/\)[^/].*/{ |
| 5893 | s//\1/ |
| 5894 | q |
| 5895 | } |
| 5896 | /^X\(\/\/\)$/{ |
| 5897 | s//\1/ |
| 5898 | q |
| 5899 | } |
| 5900 | /^X\(\/\).*/{ |
| 5901 | s//\1/ |
| 5902 | q |
| 5903 | } |
| 5904 | s/.*/./; q'` |
| 5905 | test -d "$as_dir" && break |
| 5906 | done |
| 5907 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5908 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5909 | |
| 5910 | |
| 5911 | } # as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5912 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5913 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5914 | else |
| 5915 | test -d ./-p && rmdir ./-p |
| 5916 | as_mkdir_p=false |
| 5917 | fi |
| 5918 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5919 | if test -x / >/dev/null 2>&1; then |
| 5920 | as_test_x='test -x' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5921 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5922 | if ls -dL / >/dev/null 2>&1; then |
| 5923 | as_ls_L_option=L |
| 5924 | else |
| 5925 | as_ls_L_option= |
| 5926 | fi |
| 5927 | as_test_x=' |
| 5928 | eval sh -c '\'' |
| 5929 | if test -d "$1"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5930 | test -d "$1/."; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5931 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5932 | case $1 in #( |
| 5933 | -*)set "./$1";; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5934 | esac; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5935 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5936 | ???[sx]*):;;*)false;;esac;fi |
| 5937 | '\'' sh |
| 5938 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5939 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5940 | as_executable_p=$as_test_x |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5941 | |
| 5942 | # Sed expression to map a string onto a valid CPP name. |
| 5943 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 5944 | |
| 5945 | # Sed expression to map a string onto a valid variable name. |
| 5946 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 5947 | |
| 5948 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5949 | exec 6>&1 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5950 | ## ----------------------------------- ## |
| 5951 | ## Main body of $CONFIG_STATUS script. ## |
| 5952 | ## ----------------------------------- ## |
| 5953 | _ASEOF |
| 5954 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5955 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5956 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5957 | # Save the log message, to keep $0 and so on meaningful, and to |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5958 | # report actual input values of CONFIG_FILES etc. instead of their |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5959 | # values after options handling. |
| 5960 | ac_log=" |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 5961 | This file was extended by breakpad $as_me 0.1, which was |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5962 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5963 | |
| 5964 | CONFIG_FILES = $CONFIG_FILES |
| 5965 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 5966 | CONFIG_LINKS = $CONFIG_LINKS |
| 5967 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 5968 | $ $0 $@ |
| 5969 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5970 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 5971 | " |
| 5972 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5973 | _ACEOF |
| 5974 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5975 | case $ac_config_files in *" |
| 5976 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 5977 | esac |
| 5978 | |
| 5979 | case $ac_config_headers in *" |
| 5980 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 5981 | esac |
| 5982 | |
| 5983 | |
| 5984 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5985 | # Files that config.status was made for. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5986 | config_files="$ac_config_files" |
| 5987 | config_headers="$ac_config_headers" |
| 5988 | config_commands="$ac_config_commands" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5989 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5990 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5991 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5992 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5993 | ac_cs_usage="\ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5994 | \`$as_me' instantiates files and other configuration actions |
| 5995 | from templates according to the current configuration. Unless the files |
| 5996 | and actions are specified as TAGs, all are instantiated by default. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5997 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5998 | Usage: $0 [OPTION]... [TAG]... |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5999 | |
| 6000 | -h, --help print this help, then exit |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6001 | -V, --version print version number and configuration settings, then exit |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 6002 | --config print configuration, then exit |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6003 | -q, --quiet, --silent |
| 6004 | do not print progress messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6005 | -d, --debug don't remove temporary files |
| 6006 | --recheck update $as_me by reconfiguring in the same conditions |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6007 | --file=FILE[:TEMPLATE] |
| 6008 | instantiate the configuration file FILE |
| 6009 | --header=FILE[:TEMPLATE] |
| 6010 | instantiate the configuration header FILE |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6011 | |
| 6012 | Configuration files: |
| 6013 | $config_files |
| 6014 | |
| 6015 | Configuration headers: |
| 6016 | $config_headers |
| 6017 | |
| 6018 | Configuration commands: |
| 6019 | $config_commands |
| 6020 | |
thestig@chromium.org | 43e6db7 | 2010-11-08 19:49:41 +0000 | [diff] [blame] | 6021 | Report bugs to <google-breakpad-dev@googlegroups.com>." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6022 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6023 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6024 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 6025 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6026 | ac_cs_version="\\ |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 6027 | breakpad config.status 0.1 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6028 | configured by $0, generated by GNU Autoconf 2.65, |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 6029 | with options \\"\$ac_cs_config\\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6030 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6031 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6032 | This config.status script is free software; the Free Software Foundation |
| 6033 | gives unlimited permission to copy, distribute and modify it." |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6034 | |
| 6035 | ac_pwd='$ac_pwd' |
| 6036 | srcdir='$srcdir' |
| 6037 | INSTALL='$INSTALL' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6038 | MKDIR_P='$MKDIR_P' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6039 | AWK='$AWK' |
| 6040 | test -n "\$AWK" || AWK=awk |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6041 | _ACEOF |
| 6042 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6043 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6044 | # The default lists apply if the user does not specify any file. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6045 | ac_need_defaults=: |
| 6046 | while test $# != 0 |
| 6047 | do |
| 6048 | case $1 in |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6049 | --*=*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6050 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 6051 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6052 | ac_shift=: |
| 6053 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6054 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6055 | ac_option=$1 |
| 6056 | ac_optarg=$2 |
| 6057 | ac_shift=shift |
| 6058 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6059 | esac |
| 6060 | |
| 6061 | case $ac_option in |
| 6062 | # Handling of the options. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6063 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 6064 | ac_cs_recheck=: ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6065 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6066 | $as_echo "$ac_cs_version"; exit ;; |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 6067 | --config | --confi | --conf | --con | --co | --c ) |
| 6068 | $as_echo "$ac_cs_config"; exit ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6069 | --debug | --debu | --deb | --de | --d | -d ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6070 | debug=: ;; |
| 6071 | --file | --fil | --fi | --f ) |
| 6072 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6073 | case $ac_optarg in |
| 6074 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6075 | esac |
| 6076 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6077 | ac_need_defaults=false;; |
| 6078 | --header | --heade | --head | --hea ) |
| 6079 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6080 | case $ac_optarg in |
| 6081 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6082 | esac |
| 6083 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6084 | ac_need_defaults=false;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6085 | --he | --h) |
| 6086 | # Conflict between --help and --header |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6087 | as_fn_error "ambiguous option: \`$1' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6088 | Try \`$0 --help' for more information.";; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6089 | --help | --hel | -h ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6090 | $as_echo "$ac_cs_usage"; exit ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6091 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 6092 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 6093 | ac_cs_silent=: ;; |
| 6094 | |
| 6095 | # This is an error. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6096 | -*) as_fn_error "unrecognized option: \`$1' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6097 | Try \`$0 --help' for more information." ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6098 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6099 | *) as_fn_append ac_config_targets " $1" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6100 | ac_need_defaults=false ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6101 | |
| 6102 | esac |
| 6103 | shift |
| 6104 | done |
| 6105 | |
| 6106 | ac_configure_extra_args= |
| 6107 | |
| 6108 | if $ac_cs_silent; then |
| 6109 | exec 6>/dev/null |
| 6110 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 6111 | fi |
| 6112 | |
| 6113 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6114 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6115 | if \$ac_cs_recheck; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6116 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 6117 | shift |
| 6118 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 6119 | CONFIG_SHELL='$SHELL' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6120 | export CONFIG_SHELL |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6121 | exec "\$@" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6122 | fi |
| 6123 | |
| 6124 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6125 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6126 | exec 5>>config.log |
| 6127 | { |
| 6128 | echo |
| 6129 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 6130 | ## Running $as_me. ## |
| 6131 | _ASBOX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6132 | $as_echo "$ac_log" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6133 | } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6134 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6135 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6136 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6137 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6138 | # INIT-COMMANDS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6139 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6140 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 6141 | |
| 6142 | _ACEOF |
| 6143 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6144 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6145 | |
| 6146 | # Handling of arguments. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6147 | for ac_config_target in $ac_config_targets |
| 6148 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6149 | case $ac_config_target in |
| 6150 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 6151 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 6152 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 6153 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6154 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6155 | esac |
| 6156 | done |
| 6157 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6158 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6159 | # If the user did not use the arguments to specify the items to instantiate, |
| 6160 | # then the envvar interface is used. Set only those that are not. |
| 6161 | # We use the long form for the default assignment because of an extremely |
| 6162 | # bizarre bug on SunOS 4.1.3. |
| 6163 | if $ac_need_defaults; then |
| 6164 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 6165 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 6166 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 6167 | fi |
| 6168 | |
| 6169 | # Have a temporary directory for convenience. Make it in the build tree |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6170 | # simply because there is no reason against having it here, and in addition, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6171 | # creating and moving files from /tmp can sometimes cause problems. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6172 | # Hook for its removal unless debugging. |
| 6173 | # Note that there is a small window in which the directory will not be cleaned: |
| 6174 | # after its creation but before its name has been assigned to `$tmp'. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6175 | $debug || |
| 6176 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6177 | tmp= |
| 6178 | trap 'exit_status=$? |
| 6179 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 6180 | ' 0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6181 | trap 'as_fn_exit 1' 1 2 13 15 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6182 | } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6183 | # Create a (secure) tmp directory for tmp files. |
| 6184 | |
| 6185 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6186 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6187 | test -n "$tmp" && test -d "$tmp" |
| 6188 | } || |
| 6189 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6190 | tmp=./conf$$-$RANDOM |
| 6191 | (umask 077 && mkdir "$tmp") |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6192 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6193 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6194 | # Set up the scripts for CONFIG_FILES section. |
| 6195 | # No need to generate them if there are no CONFIG_FILES. |
| 6196 | # This happens for instance with `./config.status config.h'. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6197 | if test -n "$CONFIG_FILES"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6198 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6199 | |
| 6200 | ac_cr=`echo X | tr X '\015'` |
| 6201 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 6202 | # But we know of no other shell where ac_cr would be empty at this |
| 6203 | # point, so we can use a bashism as a fallback. |
| 6204 | if test "x$ac_cr" = x; then |
| 6205 | eval ac_cr=\$\'\\r\' |
| 6206 | fi |
| 6207 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 6208 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6209 | ac_cs_awk_cr='\r' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6210 | else |
| 6211 | ac_cs_awk_cr=$ac_cr |
| 6212 | fi |
| 6213 | |
| 6214 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6215 | _ACEOF |
| 6216 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6217 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6218 | { |
| 6219 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 6220 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 6221 | echo "_ACEOF" |
| 6222 | } >conf$$subs.sh || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6223 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6224 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6225 | ac_delim='%!_!# ' |
| 6226 | for ac_last_try in false false false false false :; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6227 | . ./conf$$subs.sh || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6228 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6229 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6230 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 6231 | if test $ac_delim_n = $ac_delim_num; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6232 | break |
| 6233 | elif $ac_last_try; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6234 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6235 | else |
| 6236 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6237 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6238 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6239 | rm -f conf$$subs.sh |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6240 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6241 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6242 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6243 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6244 | sed -n ' |
| 6245 | h |
| 6246 | s/^/S["/; s/!.*/"]=/ |
| 6247 | p |
| 6248 | g |
| 6249 | s/^[^!]*!// |
| 6250 | :repl |
| 6251 | t repl |
| 6252 | s/'"$ac_delim"'$// |
| 6253 | t delim |
| 6254 | :nl |
| 6255 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 6256 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6257 | t more1 |
| 6258 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 6259 | p |
| 6260 | n |
| 6261 | b repl |
| 6262 | :more1 |
| 6263 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6264 | p |
| 6265 | g |
| 6266 | s/.\{148\}// |
| 6267 | t nl |
| 6268 | :delim |
| 6269 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 6270 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6271 | t more2 |
| 6272 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 6273 | p |
| 6274 | b |
| 6275 | :more2 |
| 6276 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6277 | p |
| 6278 | g |
| 6279 | s/.\{148\}// |
| 6280 | t delim |
| 6281 | ' <conf$$subs.awk | sed ' |
| 6282 | /^[^""]/{ |
| 6283 | N |
| 6284 | s/\n// |
| 6285 | } |
| 6286 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6287 | rm -f conf$$subs.awk |
| 6288 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6289 | _ACAWK |
| 6290 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 6291 | for (key in S) S_is_set[key] = 1 |
| 6292 | FS = "" |
| 6293 | |
| 6294 | } |
| 6295 | { |
| 6296 | line = $ 0 |
| 6297 | nfields = split(line, field, "@") |
| 6298 | substed = 0 |
| 6299 | len = length(field[1]) |
| 6300 | for (i = 2; i < nfields; i++) { |
| 6301 | key = field[i] |
| 6302 | keylen = length(key) |
| 6303 | if (S_is_set[key]) { |
| 6304 | value = S[key] |
| 6305 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 6306 | len += length(value) + length(field[++i]) |
| 6307 | substed = 1 |
| 6308 | } else |
| 6309 | len += 1 + keylen |
| 6310 | } |
| 6311 | |
| 6312 | print line |
| 6313 | } |
| 6314 | |
| 6315 | _ACAWK |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6316 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6317 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6318 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 6319 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 6320 | else |
| 6321 | cat |
| 6322 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6323 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6324 | _ACEOF |
| 6325 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6326 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 6327 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6328 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 6329 | # (actually we leave an empty line to preserve line numbers). |
| 6330 | if test "x$srcdir" = x.; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6331 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 6332 | s/:*\$(srcdir):*/:/ |
| 6333 | s/:*\${srcdir}:*/:/ |
| 6334 | s/:*@srcdir@:*/:/ |
| 6335 | s/^\([^=]*=[ ]*\):*/\1/ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6336 | s/:*$// |
| 6337 | s/^[^=]*=[ ]*$// |
| 6338 | }' |
| 6339 | fi |
| 6340 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6341 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6342 | fi # test -n "$CONFIG_FILES" |
| 6343 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6344 | # Set up the scripts for CONFIG_HEADERS section. |
| 6345 | # No need to generate them if there are no CONFIG_HEADERS. |
| 6346 | # This happens for instance with `./config.status Makefile'. |
| 6347 | if test -n "$CONFIG_HEADERS"; then |
| 6348 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 6349 | BEGIN { |
| 6350 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6351 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6352 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 6353 | # here-document in config.status, that substitutes the proper values into |
| 6354 | # config.h.in to produce config.h. |
| 6355 | |
| 6356 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 6357 | # handling of long lines. |
| 6358 | ac_delim='%!_!# ' |
| 6359 | for ac_last_try in false false :; do |
| 6360 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 6361 | if test -z "$ac_t"; then |
| 6362 | break |
| 6363 | elif $ac_last_try; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6364 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6365 | else |
| 6366 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 6367 | fi |
| 6368 | done |
| 6369 | |
| 6370 | # For the awk script, D is an array of macro values keyed by name, |
| 6371 | # likewise P contains macro parameters if any. Preserve backslash |
| 6372 | # newline sequences. |
| 6373 | |
| 6374 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 6375 | sed -n ' |
| 6376 | s/.\{148\}/&'"$ac_delim"'/g |
| 6377 | t rset |
| 6378 | :rset |
| 6379 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 6380 | t def |
| 6381 | d |
| 6382 | :def |
| 6383 | s/\\$// |
| 6384 | t bsnl |
| 6385 | s/["\\]/\\&/g |
| 6386 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6387 | D["\1"]=" \3"/p |
| 6388 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 6389 | d |
| 6390 | :bsnl |
| 6391 | s/["\\]/\\&/g |
| 6392 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6393 | D["\1"]=" \3\\\\\\n"\\/p |
| 6394 | t cont |
| 6395 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 6396 | t cont |
| 6397 | d |
| 6398 | :cont |
| 6399 | n |
| 6400 | s/.\{148\}/&'"$ac_delim"'/g |
| 6401 | t clear |
| 6402 | :clear |
| 6403 | s/\\$// |
| 6404 | t bsnlc |
| 6405 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 6406 | d |
| 6407 | :bsnlc |
| 6408 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 6409 | b cont |
| 6410 | ' <confdefs.h | sed ' |
| 6411 | s/'"$ac_delim"'/"\\\ |
| 6412 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6413 | |
| 6414 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6415 | for (key in D) D_is_set[key] = 1 |
| 6416 | FS = "" |
| 6417 | } |
| 6418 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 6419 | line = \$ 0 |
| 6420 | split(line, arg, " ") |
| 6421 | if (arg[1] == "#") { |
| 6422 | defundef = arg[2] |
| 6423 | mac1 = arg[3] |
| 6424 | } else { |
| 6425 | defundef = substr(arg[1], 2) |
| 6426 | mac1 = arg[2] |
| 6427 | } |
| 6428 | split(mac1, mac2, "(") #) |
| 6429 | macro = mac2[1] |
| 6430 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 6431 | if (D_is_set[macro]) { |
| 6432 | # Preserve the white space surrounding the "#". |
| 6433 | print prefix "define", macro P[macro] D[macro] |
| 6434 | next |
| 6435 | } else { |
| 6436 | # Replace #undef with comments. This is necessary, for example, |
| 6437 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 6438 | # on some systems where configure will not decide to define it. |
| 6439 | if (defundef == "undef") { |
| 6440 | print "/*", prefix defundef, macro, "*/" |
| 6441 | next |
| 6442 | } |
| 6443 | } |
| 6444 | } |
| 6445 | { print } |
| 6446 | _ACAWK |
| 6447 | _ACEOF |
| 6448 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6449 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6450 | fi # test -n "$CONFIG_HEADERS" |
| 6451 | |
| 6452 | |
| 6453 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 6454 | shift |
| 6455 | for ac_tag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6456 | do |
| 6457 | case $ac_tag in |
| 6458 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 6459 | esac |
| 6460 | case $ac_mode$ac_tag in |
| 6461 | :[FHL]*:*);; |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6462 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6463 | :[FH]-) ac_tag=-:-;; |
| 6464 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 6465 | esac |
| 6466 | ac_save_IFS=$IFS |
| 6467 | IFS=: |
| 6468 | set x $ac_tag |
| 6469 | IFS=$ac_save_IFS |
| 6470 | shift |
| 6471 | ac_file=$1 |
| 6472 | shift |
| 6473 | |
| 6474 | case $ac_mode in |
| 6475 | :L) ac_source=$1;; |
| 6476 | :[FH]) |
| 6477 | ac_file_inputs= |
| 6478 | for ac_f |
| 6479 | do |
| 6480 | case $ac_f in |
| 6481 | -) ac_f="$tmp/stdin";; |
| 6482 | *) # Look for the file first in the build tree, then in the source tree |
| 6483 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 6484 | # because $ac_f cannot contain `:'. |
| 6485 | test -f "$ac_f" || |
| 6486 | case $ac_f in |
| 6487 | [\\/$]*) false;; |
| 6488 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 6489 | esac || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6490 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6491 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6492 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 6493 | as_fn_append ac_file_inputs " '$ac_f'" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6494 | done |
| 6495 | |
| 6496 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 6497 | # use $as_me), people would be surprised to read: |
| 6498 | # /* config.h. Generated by config.status. */ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6499 | configure_input='Generated from '` |
| 6500 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 6501 | `' by configure.' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6502 | if test x"$ac_file" != x-; then |
| 6503 | configure_input="$ac_file. $configure_input" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6504 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 6505 | $as_echo "$as_me: creating $ac_file" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6506 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6507 | # Neutralize special characters interpreted by sed in replacement strings. |
| 6508 | case $configure_input in #( |
| 6509 | *\&* | *\|* | *\\* ) |
| 6510 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 6511 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 6512 | *) ac_sed_conf_input=$configure_input;; |
| 6513 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6514 | |
| 6515 | case $ac_tag in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6516 | *:-:* | *:-) cat >"$tmp/stdin" \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6517 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6518 | esac |
| 6519 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6520 | esac |
| 6521 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6522 | ac_dir=`$as_dirname -- "$ac_file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6523 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6524 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6525 | X"$ac_file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6526 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6527 | $as_echo X"$ac_file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6528 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6529 | s//\1/ |
| 6530 | q |
| 6531 | } |
| 6532 | /^X\(\/\/\)[^/].*/{ |
| 6533 | s//\1/ |
| 6534 | q |
| 6535 | } |
| 6536 | /^X\(\/\/\)$/{ |
| 6537 | s//\1/ |
| 6538 | q |
| 6539 | } |
| 6540 | /^X\(\/\).*/{ |
| 6541 | s//\1/ |
| 6542 | q |
| 6543 | } |
| 6544 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6545 | as_dir="$ac_dir"; as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6546 | ac_builddir=. |
| 6547 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6548 | case "$ac_dir" in |
| 6549 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6550 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6551 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6552 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6553 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6554 | case $ac_top_builddir_sub in |
| 6555 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6556 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 6557 | esac ;; |
| 6558 | esac |
| 6559 | ac_abs_top_builddir=$ac_pwd |
| 6560 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 6561 | # for backward compatibility: |
| 6562 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6563 | |
| 6564 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6565 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6566 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6567 | ac_top_srcdir=$ac_top_builddir_sub |
| 6568 | ac_abs_top_srcdir=$ac_pwd ;; |
| 6569 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6570 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6571 | ac_top_srcdir=$srcdir |
| 6572 | ac_abs_top_srcdir=$srcdir ;; |
| 6573 | *) # Relative name. |
| 6574 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 6575 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 6576 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6577 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6578 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6579 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6580 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6581 | case $ac_mode in |
| 6582 | :F) |
| 6583 | # |
| 6584 | # CONFIG_FILE |
| 6585 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6586 | |
| 6587 | case $INSTALL in |
| 6588 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6589 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6590 | esac |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6591 | ac_MKDIR_P=$MKDIR_P |
| 6592 | case $MKDIR_P in |
| 6593 | [\\/$]* | ?:[\\/]* ) ;; |
| 6594 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 6595 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6596 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6597 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6598 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6599 | # If the template does not know about datarootdir, expand it. |
| 6600 | # FIXME: This hack should be removed a few years after 2.60. |
| 6601 | ac_datarootdir_hack=; ac_datarootdir_seen= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6602 | ac_sed_dataroot=' |
| 6603 | /datarootdir/ { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6604 | p |
| 6605 | q |
| 6606 | } |
| 6607 | /@datadir@/p |
| 6608 | /@docdir@/p |
| 6609 | /@infodir@/p |
| 6610 | /@localedir@/p |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6611 | /@mandir@/p' |
| 6612 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6613 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 6614 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6615 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 6616 | $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] | 6617 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6618 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6619 | ac_datarootdir_hack=' |
| 6620 | s&@datadir@&$datadir&g |
| 6621 | s&@docdir@&$docdir&g |
| 6622 | s&@infodir@&$infodir&g |
| 6623 | s&@localedir@&$localedir&g |
| 6624 | s&@mandir@&$mandir&g |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6625 | s&\\\${datarootdir}&$datarootdir&g' ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6626 | esac |
| 6627 | _ACEOF |
| 6628 | |
| 6629 | # Neutralize VPATH when `$srcdir' = `.'. |
| 6630 | # Shell code in configure.ac might set extrasub. |
| 6631 | # FIXME: do we really want to maintain this feature? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6632 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6633 | ac_sed_extra="$ac_vpsub |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6634 | $extrasub |
| 6635 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6636 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6637 | :t |
| 6638 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6639 | s|@configure_input@|$ac_sed_conf_input|;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6640 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6641 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6642 | s&@srcdir@&$ac_srcdir&;t t |
| 6643 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 6644 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 6645 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 6646 | s&@builddir@&$ac_builddir&;t t |
| 6647 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 6648 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 6649 | s&@INSTALL@&$ac_INSTALL&;t t |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6650 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6651 | $ac_datarootdir_hack |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6652 | " |
| 6653 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6654 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6655 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6656 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 6657 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 6658 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6659 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6660 | which seems to be undefined. Please make sure it is defined." >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6661 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6662 | which seems to be undefined. Please make sure it is defined." >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6663 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6664 | rm -f "$tmp/stdin" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6665 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6666 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 6667 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 6668 | esac \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6669 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6670 | ;; |
| 6671 | :H) |
| 6672 | # |
| 6673 | # CONFIG_HEADER |
| 6674 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6675 | if test x"$ac_file" != x-; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6676 | { |
| 6677 | $as_echo "/* $configure_input */" \ |
| 6678 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 6679 | } >"$tmp/config.h" \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6680 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6681 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 6682 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 6683 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6684 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6685 | rm -f "$ac_file" |
| 6686 | mv "$tmp/config.h" "$ac_file" \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6687 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6688 | fi |
| 6689 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6690 | $as_echo "/* $configure_input */" \ |
| 6691 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6692 | || as_fn_error "could not create -" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6693 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6694 | # Compute "$ac_file"'s index in $config_headers. |
| 6695 | _am_arg="$ac_file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6696 | _am_stamp_count=1 |
| 6697 | for _am_header in $config_headers :; do |
| 6698 | case $_am_header in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6699 | $_am_arg | $_am_arg:* ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6700 | break ;; |
| 6701 | * ) |
| 6702 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 6703 | esac |
| 6704 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6705 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 6706 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6707 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 6708 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 6709 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 6710 | $as_echo X"$_am_arg" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6711 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6712 | s//\1/ |
| 6713 | q |
| 6714 | } |
| 6715 | /^X\(\/\/\)[^/].*/{ |
| 6716 | s//\1/ |
| 6717 | q |
| 6718 | } |
| 6719 | /^X\(\/\/\)$/{ |
| 6720 | s//\1/ |
| 6721 | q |
| 6722 | } |
| 6723 | /^X\(\/\).*/{ |
| 6724 | s//\1/ |
| 6725 | q |
| 6726 | } |
| 6727 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 6728 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6729 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6730 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 6731 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6732 | ;; |
| 6733 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6734 | |
| 6735 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6736 | case $ac_file$ac_mode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6737 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 6738 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 6739 | # are listed without --file. Let's play safe and only enable the eval |
| 6740 | # if we detect the quoting. |
| 6741 | case $CONFIG_FILES in |
| 6742 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 6743 | *) set x $CONFIG_FILES ;; |
| 6744 | esac |
| 6745 | shift |
| 6746 | for mf |
| 6747 | do |
| 6748 | # Strip MF so we end up with the name of the file. |
| 6749 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 6750 | # Check whether this is an Automake generated Makefile or not. |
| 6751 | # We used to match only the files named `Makefile.in', but |
| 6752 | # some people rename them; so instead we look at the file content. |
| 6753 | # Grep'ing the first line is not enough: some people post-process |
| 6754 | # each Makefile.in and add a new line on top of each file to say so. |
| 6755 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 6756 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 6757 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 6758 | dirpart=`$as_dirname -- "$mf" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6759 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6760 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 6761 | X"$mf" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6762 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6763 | $as_echo X"$mf" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6764 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6765 | s//\1/ |
| 6766 | q |
| 6767 | } |
| 6768 | /^X\(\/\/\)[^/].*/{ |
| 6769 | s//\1/ |
| 6770 | q |
| 6771 | } |
| 6772 | /^X\(\/\/\)$/{ |
| 6773 | s//\1/ |
| 6774 | q |
| 6775 | } |
| 6776 | /^X\(\/\).*/{ |
| 6777 | s//\1/ |
| 6778 | q |
| 6779 | } |
| 6780 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6781 | else |
| 6782 | continue |
| 6783 | fi |
| 6784 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 6785 | # from the Makefile without running `make'. |
| 6786 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 6787 | test -z "$DEPDIR" && continue |
| 6788 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 6789 | test -z "am__include" && continue |
| 6790 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 6791 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 6792 | U=`sed -n 's/^U = //p' < "$mf"` |
| 6793 | # Find all dependency output files, they are included files with |
| 6794 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 6795 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 6796 | # expansion. |
| 6797 | for file in `sed -n " |
| 6798 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 6799 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 6800 | # Make sure the directory exists. |
| 6801 | test -f "$dirpart/$file" && continue |
| 6802 | fdir=`$as_dirname -- "$file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6803 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6804 | X"$file" : 'X\(//\)[^/]' \| \ |
| 6805 | X"$file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6806 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6807 | $as_echo X"$file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6808 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6809 | s//\1/ |
| 6810 | q |
| 6811 | } |
| 6812 | /^X\(\/\/\)[^/].*/{ |
| 6813 | s//\1/ |
| 6814 | q |
| 6815 | } |
| 6816 | /^X\(\/\/\)$/{ |
| 6817 | s//\1/ |
| 6818 | q |
| 6819 | } |
| 6820 | /^X\(\/\).*/{ |
| 6821 | s//\1/ |
| 6822 | q |
| 6823 | } |
| 6824 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6825 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 6826 | # echo "creating $dirpart/$file" |
| 6827 | echo '# dummy' > "$dirpart/$file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6828 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6829 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6830 | } |
| 6831 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6832 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6833 | esac |
| 6834 | done # for ac_tag |
| 6835 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6836 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6837 | as_fn_exit 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6838 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6839 | ac_clean_files=$ac_clean_files_save |
| 6840 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6841 | test $ac_write_fail = 0 || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6842 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6843 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6844 | |
| 6845 | # configure is writing to config.log, and then calls config.status. |
| 6846 | # config.status does its own redirection, appending to config.log. |
| 6847 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 6848 | # by configure, so config.status won't be able to write to it; its |
| 6849 | # output is simply discarded. So we exec the FD to /dev/null, |
| 6850 | # effectively closing config.log, so it can be properly (re)opened and |
| 6851 | # appended to by config.status. When coming back to configure, we |
| 6852 | # need to make the FD available again. |
| 6853 | if test "$no_create" != yes; then |
| 6854 | ac_cs_success=: |
| 6855 | ac_config_status_args= |
| 6856 | test "$silent" = yes && |
| 6857 | ac_config_status_args="$ac_config_status_args --quiet" |
| 6858 | exec 5>/dev/null |
| 6859 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 6860 | exec 5>>config.log |
| 6861 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 6862 | # would make configure fail if this is the last instruction. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6863 | $ac_cs_success || as_fn_exit $? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6864 | fi |
| 6865 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 6867 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6868 | fi |
| 6869 | |