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 | # |
| 5 | # Report bugs to <opensource@google.com>. |
| 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 |
| 234 | $0: opensource@google.com about your system, including any |
| 235 | $0: error possibly output before this message. Then install |
| 236 | $0: a modern shell, or manually run the script under such a |
| 237 | $0: shell if you do have one." |
| 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 557 | PACKAGE_BUGREPORT='opensource@google.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" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 561 | ac_subst_vars='am__EXEEXT_FALSE |
| 562 | am__EXEEXT_TRUE |
| 563 | LTLIBOBJS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 564 | LIBOBJS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 565 | SELFTEST_FALSE |
| 566 | SELFTEST_TRUE |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 567 | DISABLE_PROCESSOR_FALSE |
| 568 | DISABLE_PROCESSOR_TRUE |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 569 | LINUX_HOST_FALSE |
| 570 | LINUX_HOST_TRUE |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 571 | PTHREAD_CFLAGS |
| 572 | PTHREAD_LIBS |
| 573 | PTHREAD_CC |
| 574 | ax_pthread_config |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 575 | EGREP |
| 576 | GREP |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 577 | RANLIB |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 578 | am__fastdepCXX_FALSE |
| 579 | am__fastdepCXX_TRUE |
| 580 | CXXDEPMODE |
| 581 | ac_ct_CXX |
| 582 | CXXFLAGS |
| 583 | CXX |
| 584 | CPP |
| 585 | am__fastdepCC_FALSE |
| 586 | am__fastdepCC_TRUE |
| 587 | CCDEPMODE |
| 588 | AMDEPBACKSLASH |
| 589 | AMDEP_FALSE |
| 590 | AMDEP_TRUE |
| 591 | am__quote |
| 592 | am__include |
| 593 | DEPDIR |
| 594 | OBJEXT |
| 595 | EXEEXT |
| 596 | ac_ct_CC |
| 597 | CPPFLAGS |
| 598 | LDFLAGS |
| 599 | CFLAGS |
| 600 | CC |
| 601 | am__untar |
| 602 | am__tar |
| 603 | AMTAR |
| 604 | am__leading_dot |
| 605 | SET_MAKE |
| 606 | AWK |
| 607 | mkdir_p |
| 608 | MKDIR_P |
| 609 | INSTALL_STRIP_PROGRAM |
| 610 | STRIP |
| 611 | install_sh |
| 612 | MAKEINFO |
| 613 | AUTOHEADER |
| 614 | AUTOMAKE |
| 615 | AUTOCONF |
| 616 | ACLOCAL |
| 617 | VERSION |
| 618 | PACKAGE |
| 619 | CYGPATH_W |
| 620 | am__isrc |
| 621 | INSTALL_DATA |
| 622 | INSTALL_SCRIPT |
| 623 | INSTALL_PROGRAM |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 624 | host_os |
| 625 | host_vendor |
| 626 | host_cpu |
| 627 | host |
| 628 | build_os |
| 629 | build_vendor |
| 630 | build_cpu |
| 631 | build |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 632 | target_alias |
| 633 | host_alias |
| 634 | build_alias |
| 635 | LIBS |
| 636 | ECHO_T |
| 637 | ECHO_N |
| 638 | ECHO_C |
| 639 | DEFS |
| 640 | mandir |
| 641 | localedir |
| 642 | libdir |
| 643 | psdir |
| 644 | pdfdir |
| 645 | dvidir |
| 646 | htmldir |
| 647 | infodir |
| 648 | docdir |
| 649 | oldincludedir |
| 650 | includedir |
| 651 | localstatedir |
| 652 | sharedstatedir |
| 653 | sysconfdir |
| 654 | datadir |
| 655 | datarootdir |
| 656 | libexecdir |
| 657 | sbindir |
| 658 | bindir |
| 659 | program_transform_name |
| 660 | prefix |
| 661 | exec_prefix |
| 662 | PACKAGE_URL |
| 663 | PACKAGE_BUGREPORT |
| 664 | PACKAGE_STRING |
| 665 | PACKAGE_VERSION |
| 666 | PACKAGE_TARNAME |
| 667 | PACKAGE_NAME |
| 668 | PATH_SEPARATOR |
| 669 | SHELL' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 670 | ac_subst_files='' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 671 | ac_user_opts=' |
| 672 | enable_option_checking |
| 673 | enable_dependency_tracking |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 674 | enable_m32 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 675 | enable_processor |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 676 | enable_selftest |
| 677 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 678 | ac_precious_vars='build_alias |
| 679 | host_alias |
| 680 | target_alias |
| 681 | CC |
| 682 | CFLAGS |
| 683 | LDFLAGS |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 684 | LIBS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 685 | CPPFLAGS |
| 686 | CPP |
| 687 | CXX |
| 688 | CXXFLAGS |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 689 | CCC' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 690 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 691 | |
| 692 | # Initialize some variables set by options. |
| 693 | ac_init_help= |
| 694 | ac_init_version=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 695 | ac_unrecognized_opts= |
| 696 | ac_unrecognized_sep= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 697 | # The variables have the same names as the options, with |
| 698 | # dashes changed to underlines. |
| 699 | cache_file=/dev/null |
| 700 | exec_prefix=NONE |
| 701 | no_create= |
| 702 | no_recursion= |
| 703 | prefix=NONE |
| 704 | program_prefix=NONE |
| 705 | program_suffix=NONE |
| 706 | program_transform_name=s,x,x, |
| 707 | silent= |
| 708 | site= |
| 709 | srcdir= |
| 710 | verbose= |
| 711 | x_includes=NONE |
| 712 | x_libraries=NONE |
| 713 | |
| 714 | # Installation directory options. |
| 715 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 716 | # and all the variables that are supposed to be based on exec_prefix |
| 717 | # by default will actually change. |
| 718 | # Use braces instead of parens because sh, perl, etc. also accept them. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 719 | # (The list follows the same order as the GNU Coding Standards.) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 720 | bindir='${exec_prefix}/bin' |
| 721 | sbindir='${exec_prefix}/sbin' |
| 722 | libexecdir='${exec_prefix}/libexec' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 723 | datarootdir='${prefix}/share' |
| 724 | datadir='${datarootdir}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 725 | sysconfdir='${prefix}/etc' |
| 726 | sharedstatedir='${prefix}/com' |
| 727 | localstatedir='${prefix}/var' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 728 | includedir='${prefix}/include' |
| 729 | oldincludedir='/usr/include' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 730 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 731 | infodir='${datarootdir}/info' |
| 732 | htmldir='${docdir}' |
| 733 | dvidir='${docdir}' |
| 734 | pdfdir='${docdir}' |
| 735 | psdir='${docdir}' |
| 736 | libdir='${exec_prefix}/lib' |
| 737 | localedir='${datarootdir}/locale' |
| 738 | mandir='${datarootdir}/man' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 739 | |
| 740 | ac_prev= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 741 | ac_dashdash= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 742 | for ac_option |
| 743 | do |
| 744 | # If the previous option needs an argument, assign it. |
| 745 | if test -n "$ac_prev"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 746 | eval $ac_prev=\$ac_option |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 747 | ac_prev= |
| 748 | continue |
| 749 | fi |
| 750 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 751 | case $ac_option in |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 752 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 753 | *) ac_optarg=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 754 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 755 | |
| 756 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 757 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 758 | case $ac_dashdash$ac_option in |
| 759 | --) |
| 760 | ac_dashdash=yes ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 761 | |
| 762 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 763 | ac_prev=bindir ;; |
| 764 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 765 | bindir=$ac_optarg ;; |
| 766 | |
| 767 | -build | --build | --buil | --bui | --bu) |
| 768 | ac_prev=build_alias ;; |
| 769 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 770 | build_alias=$ac_optarg ;; |
| 771 | |
| 772 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 773 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 774 | ac_prev=cache_file ;; |
| 775 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 776 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 777 | cache_file=$ac_optarg ;; |
| 778 | |
| 779 | --config-cache | -C) |
| 780 | cache_file=config.cache ;; |
| 781 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 782 | -datadir | --datadir | --datadi | --datad) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 783 | ac_prev=datadir ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 784 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 785 | datadir=$ac_optarg ;; |
| 786 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 787 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 788 | | --dataroo | --dataro | --datar) |
| 789 | ac_prev=datarootdir ;; |
| 790 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 791 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 792 | datarootdir=$ac_optarg ;; |
| 793 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 794 | -disable-* | --disable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 795 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 796 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 797 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 798 | as_fn_error "invalid feature name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 799 | ac_useropt_orig=$ac_useropt |
| 800 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 801 | case $ac_user_opts in |
| 802 | *" |
| 803 | "enable_$ac_useropt" |
| 804 | "*) ;; |
| 805 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 806 | ac_unrecognized_sep=', ';; |
| 807 | esac |
| 808 | eval enable_$ac_useropt=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 809 | |
| 810 | -docdir | --docdir | --docdi | --doc | --do) |
| 811 | ac_prev=docdir ;; |
| 812 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 813 | docdir=$ac_optarg ;; |
| 814 | |
| 815 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 816 | ac_prev=dvidir ;; |
| 817 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 818 | dvidir=$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 819 | |
| 820 | -enable-* | --enable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 821 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 822 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 823 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 824 | as_fn_error "invalid feature name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 825 | ac_useropt_orig=$ac_useropt |
| 826 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 827 | case $ac_user_opts in |
| 828 | *" |
| 829 | "enable_$ac_useropt" |
| 830 | "*) ;; |
| 831 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 832 | ac_unrecognized_sep=', ';; |
| 833 | esac |
| 834 | eval enable_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 835 | |
| 836 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 837 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 838 | | --exec | --exe | --ex) |
| 839 | ac_prev=exec_prefix ;; |
| 840 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 841 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 842 | | --exec=* | --exe=* | --ex=*) |
| 843 | exec_prefix=$ac_optarg ;; |
| 844 | |
| 845 | -gas | --gas | --ga | --g) |
| 846 | # Obsolete; use --with-gas. |
| 847 | with_gas=yes ;; |
| 848 | |
| 849 | -help | --help | --hel | --he | -h) |
| 850 | ac_init_help=long ;; |
| 851 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 852 | ac_init_help=recursive ;; |
| 853 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 854 | ac_init_help=short ;; |
| 855 | |
| 856 | -host | --host | --hos | --ho) |
| 857 | ac_prev=host_alias ;; |
| 858 | -host=* | --host=* | --hos=* | --ho=*) |
| 859 | host_alias=$ac_optarg ;; |
| 860 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 861 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 862 | ac_prev=htmldir ;; |
| 863 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 864 | | --ht=*) |
| 865 | htmldir=$ac_optarg ;; |
| 866 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 867 | -includedir | --includedir | --includedi | --included | --include \ |
| 868 | | --includ | --inclu | --incl | --inc) |
| 869 | ac_prev=includedir ;; |
| 870 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 871 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 872 | includedir=$ac_optarg ;; |
| 873 | |
| 874 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 875 | ac_prev=infodir ;; |
| 876 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 877 | infodir=$ac_optarg ;; |
| 878 | |
| 879 | -libdir | --libdir | --libdi | --libd) |
| 880 | ac_prev=libdir ;; |
| 881 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 882 | libdir=$ac_optarg ;; |
| 883 | |
| 884 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 885 | | --libexe | --libex | --libe) |
| 886 | ac_prev=libexecdir ;; |
| 887 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 888 | | --libexe=* | --libex=* | --libe=*) |
| 889 | libexecdir=$ac_optarg ;; |
| 890 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 891 | -localedir | --localedir | --localedi | --localed | --locale) |
| 892 | ac_prev=localedir ;; |
| 893 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 894 | localedir=$ac_optarg ;; |
| 895 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 896 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 897 | | --localstate | --localstat | --localsta | --localst | --locals) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 898 | ac_prev=localstatedir ;; |
| 899 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 900 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 901 | localstatedir=$ac_optarg ;; |
| 902 | |
| 903 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 904 | ac_prev=mandir ;; |
| 905 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 906 | mandir=$ac_optarg ;; |
| 907 | |
| 908 | -nfp | --nfp | --nf) |
| 909 | # Obsolete; use --without-fp. |
| 910 | with_fp=no ;; |
| 911 | |
| 912 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 913 | | --no-cr | --no-c | -n) |
| 914 | no_create=yes ;; |
| 915 | |
| 916 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 917 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 918 | no_recursion=yes ;; |
| 919 | |
| 920 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 921 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 922 | | --oldin | --oldi | --old | --ol | --o) |
| 923 | ac_prev=oldincludedir ;; |
| 924 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 925 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 926 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 927 | oldincludedir=$ac_optarg ;; |
| 928 | |
| 929 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 930 | ac_prev=prefix ;; |
| 931 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 932 | prefix=$ac_optarg ;; |
| 933 | |
| 934 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 935 | | --program-pre | --program-pr | --program-p) |
| 936 | ac_prev=program_prefix ;; |
| 937 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 938 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 939 | program_prefix=$ac_optarg ;; |
| 940 | |
| 941 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 942 | | --program-suf | --program-su | --program-s) |
| 943 | ac_prev=program_suffix ;; |
| 944 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 945 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 946 | program_suffix=$ac_optarg ;; |
| 947 | |
| 948 | -program-transform-name | --program-transform-name \ |
| 949 | | --program-transform-nam | --program-transform-na \ |
| 950 | | --program-transform-n | --program-transform- \ |
| 951 | | --program-transform | --program-transfor \ |
| 952 | | --program-transfo | --program-transf \ |
| 953 | | --program-trans | --program-tran \ |
| 954 | | --progr-tra | --program-tr | --program-t) |
| 955 | ac_prev=program_transform_name ;; |
| 956 | -program-transform-name=* | --program-transform-name=* \ |
| 957 | | --program-transform-nam=* | --program-transform-na=* \ |
| 958 | | --program-transform-n=* | --program-transform-=* \ |
| 959 | | --program-transform=* | --program-transfor=* \ |
| 960 | | --program-transfo=* | --program-transf=* \ |
| 961 | | --program-trans=* | --program-tran=* \ |
| 962 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 963 | program_transform_name=$ac_optarg ;; |
| 964 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 965 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 966 | ac_prev=pdfdir ;; |
| 967 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 968 | pdfdir=$ac_optarg ;; |
| 969 | |
| 970 | -psdir | --psdir | --psdi | --psd | --ps) |
| 971 | ac_prev=psdir ;; |
| 972 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 973 | psdir=$ac_optarg ;; |
| 974 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 975 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 976 | | -silent | --silent | --silen | --sile | --sil) |
| 977 | silent=yes ;; |
| 978 | |
| 979 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 980 | ac_prev=sbindir ;; |
| 981 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 982 | | --sbi=* | --sb=*) |
| 983 | sbindir=$ac_optarg ;; |
| 984 | |
| 985 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 986 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 987 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 988 | | --sha | --sh) |
| 989 | ac_prev=sharedstatedir ;; |
| 990 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 991 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 992 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 993 | | --sha=* | --sh=*) |
| 994 | sharedstatedir=$ac_optarg ;; |
| 995 | |
| 996 | -site | --site | --sit) |
| 997 | ac_prev=site ;; |
| 998 | -site=* | --site=* | --sit=*) |
| 999 | site=$ac_optarg ;; |
| 1000 | |
| 1001 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1002 | ac_prev=srcdir ;; |
| 1003 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1004 | srcdir=$ac_optarg ;; |
| 1005 | |
| 1006 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1007 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1008 | ac_prev=sysconfdir ;; |
| 1009 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1010 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1011 | sysconfdir=$ac_optarg ;; |
| 1012 | |
| 1013 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1014 | ac_prev=target_alias ;; |
| 1015 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1016 | target_alias=$ac_optarg ;; |
| 1017 | |
| 1018 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1019 | verbose=yes ;; |
| 1020 | |
| 1021 | -version | --version | --versio | --versi | --vers | -V) |
| 1022 | ac_init_version=: ;; |
| 1023 | |
| 1024 | -with-* | --with-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1025 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1026 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1027 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1028 | as_fn_error "invalid package name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1029 | ac_useropt_orig=$ac_useropt |
| 1030 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1031 | case $ac_user_opts in |
| 1032 | *" |
| 1033 | "with_$ac_useropt" |
| 1034 | "*) ;; |
| 1035 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1036 | ac_unrecognized_sep=', ';; |
| 1037 | esac |
| 1038 | eval with_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1039 | |
| 1040 | -without-* | --without-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1041 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1042 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1043 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1044 | as_fn_error "invalid package name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1045 | ac_useropt_orig=$ac_useropt |
| 1046 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1047 | case $ac_user_opts in |
| 1048 | *" |
| 1049 | "with_$ac_useropt" |
| 1050 | "*) ;; |
| 1051 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1052 | ac_unrecognized_sep=', ';; |
| 1053 | esac |
| 1054 | eval with_$ac_useropt=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1055 | |
| 1056 | --x) |
| 1057 | # Obsolete; use --with-x. |
| 1058 | with_x=yes ;; |
| 1059 | |
| 1060 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1061 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1062 | ac_prev=x_includes ;; |
| 1063 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1064 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1065 | x_includes=$ac_optarg ;; |
| 1066 | |
| 1067 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1068 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1069 | ac_prev=x_libraries ;; |
| 1070 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1071 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1072 | x_libraries=$ac_optarg ;; |
| 1073 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1074 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1075 | Try \`$0 --help' for more information." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1076 | ;; |
| 1077 | |
| 1078 | *=*) |
| 1079 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1080 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1081 | case $ac_envvar in #( |
| 1082 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1083 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1084 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1085 | eval $ac_envvar=\$ac_optarg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1086 | export $ac_envvar ;; |
| 1087 | |
| 1088 | *) |
| 1089 | # FIXME: should be removed in autoconf 3.0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1090 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1091 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1092 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1093 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1094 | ;; |
| 1095 | |
| 1096 | esac |
| 1097 | done |
| 1098 | |
| 1099 | if test -n "$ac_prev"; then |
| 1100 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1101 | as_fn_error "missing argument to $ac_option" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1102 | fi |
| 1103 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1104 | if test -n "$ac_unrecognized_opts"; then |
| 1105 | case $enable_option_checking in |
| 1106 | no) ;; |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1107 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1108 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1109 | esac |
| 1110 | fi |
| 1111 | |
| 1112 | # Check all directory arguments for consistency. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1113 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1114 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1115 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1116 | libdir localedir mandir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1117 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1118 | eval ac_val=\$$ac_var |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1119 | # Remove trailing slashes. |
| 1120 | case $ac_val in |
| 1121 | */ ) |
| 1122 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1123 | eval $ac_var=\$ac_val;; |
| 1124 | esac |
| 1125 | # Be sure to have absolute directory names. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1126 | case $ac_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1127 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1128 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1129 | esac |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1130 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1131 | done |
| 1132 | |
| 1133 | # There might be people who depend on the old broken behavior: `$host' |
| 1134 | # used to hold the argument of --host etc. |
| 1135 | # FIXME: To remove some day. |
| 1136 | build=$build_alias |
| 1137 | host=$host_alias |
| 1138 | target=$target_alias |
| 1139 | |
| 1140 | # FIXME: To remove some day. |
| 1141 | if test "x$host_alias" != x; then |
| 1142 | if test "x$build_alias" = x; then |
| 1143 | cross_compiling=maybe |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1144 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1145 | 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] | 1146 | elif test "x$build_alias" != "x$host_alias"; then |
| 1147 | cross_compiling=yes |
| 1148 | fi |
| 1149 | fi |
| 1150 | |
| 1151 | ac_tool_prefix= |
| 1152 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1153 | |
| 1154 | test "$silent" = yes && exec 6>/dev/null |
| 1155 | |
| 1156 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1157 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1158 | ac_ls_di=`ls -di .` && |
| 1159 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1160 | as_fn_error "working directory cannot be determined" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1161 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1162 | as_fn_error "pwd does not report name of working directory" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1163 | |
| 1164 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1165 | # Find the source files, if location was not specified. |
| 1166 | if test -z "$srcdir"; then |
| 1167 | ac_srcdir_defaulted=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1168 | # Try the directory containing this script, then the parent directory. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1169 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1170 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1171 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1172 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1173 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1174 | $as_echo X"$as_myself" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1175 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1176 | s//\1/ |
| 1177 | q |
| 1178 | } |
| 1179 | /^X\(\/\/\)[^/].*/{ |
| 1180 | s//\1/ |
| 1181 | q |
| 1182 | } |
| 1183 | /^X\(\/\/\)$/{ |
| 1184 | s//\1/ |
| 1185 | q |
| 1186 | } |
| 1187 | /^X\(\/\).*/{ |
| 1188 | s//\1/ |
| 1189 | q |
| 1190 | } |
| 1191 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1192 | srcdir=$ac_confdir |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1193 | if test ! -r "$srcdir/$ac_unique_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1194 | srcdir=.. |
| 1195 | fi |
| 1196 | else |
| 1197 | ac_srcdir_defaulted=no |
| 1198 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1199 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1200 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1201 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1202 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1203 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1204 | ac_abs_confdir=`( |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1205 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1206 | pwd)` |
| 1207 | # When building in place, set srcdir=. |
| 1208 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1209 | srcdir=. |
| 1210 | fi |
| 1211 | # Remove unnecessary trailing slashes from srcdir. |
| 1212 | # Double slashes in file names in object file debugging info |
| 1213 | # mess up M-x gdb in Emacs. |
| 1214 | case $srcdir in |
| 1215 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1216 | esac |
| 1217 | for ac_var in $ac_precious_vars; do |
| 1218 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1219 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1220 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1221 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1222 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1223 | |
| 1224 | # |
| 1225 | # Report the --help message. |
| 1226 | # |
| 1227 | if test "$ac_init_help" = "long"; then |
| 1228 | # Omit some internal or obsolete options to make the list less imposing. |
| 1229 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1230 | cat <<_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1231 | \`configure' configures breakpad 0.1 to adapt to many kinds of systems. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1232 | |
| 1233 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1234 | |
| 1235 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1236 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1237 | |
| 1238 | Defaults for the options are specified in brackets. |
| 1239 | |
| 1240 | Configuration: |
| 1241 | -h, --help display this help and exit |
| 1242 | --help=short display options specific to this package |
| 1243 | --help=recursive display the short help of all the included packages |
| 1244 | -V, --version display version information and exit |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1245 | -q, --quiet, --silent do not print \`checking...' messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1246 | --cache-file=FILE cache test results in FILE [disabled] |
| 1247 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1248 | -n, --no-create do not create output files |
| 1249 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1250 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1251 | Installation directories: |
| 1252 | --prefix=PREFIX install architecture-independent files in PREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1253 | [$ac_default_prefix] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1254 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1255 | [PREFIX] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1256 | |
| 1257 | By default, \`make install' will install all the files in |
| 1258 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1259 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1260 | for instance \`--prefix=\$HOME'. |
| 1261 | |
| 1262 | For better control, use the options below. |
| 1263 | |
| 1264 | Fine tuning of the installation directories: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1265 | --bindir=DIR user executables [EPREFIX/bin] |
| 1266 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1267 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1268 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1269 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1270 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1271 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1272 | --includedir=DIR C header files [PREFIX/include] |
| 1273 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1274 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1275 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1276 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1277 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1278 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1279 | --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad] |
| 1280 | --htmldir=DIR html documentation [DOCDIR] |
| 1281 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1282 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1283 | --psdir=DIR ps documentation [DOCDIR] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1284 | _ACEOF |
| 1285 | |
| 1286 | cat <<\_ACEOF |
| 1287 | |
| 1288 | Program names: |
| 1289 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1290 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1291 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1292 | |
| 1293 | System types: |
| 1294 | --build=BUILD configure for building on BUILD [guessed] |
| 1295 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1296 | _ACEOF |
| 1297 | fi |
| 1298 | |
| 1299 | if test -n "$ac_init_help"; then |
| 1300 | case $ac_init_help in |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1301 | short | recursive ) echo "Configuration of breakpad 0.1:";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1302 | esac |
| 1303 | cat <<\_ACEOF |
| 1304 | |
| 1305 | Optional Features: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1306 | --disable-option-checking ignore unrecognized --enable/--with options |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1307 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1308 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1309 | --disable-dependency-tracking speeds up one-time build |
| 1310 | --enable-dependency-tracking do not reject slow dependency extractors |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 1311 | --enable-m32 Compile/build with -m32 (default is no) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1312 | --disable-processor Don't build processor library (default is no) |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 1313 | --enable-selftest Run extra tests with "make check" (may conflict with |
| 1314 | optimizations) (default is no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1315 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1316 | Some influential environment variables: |
| 1317 | CC C compiler command |
| 1318 | CFLAGS C compiler flags |
| 1319 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1320 | nonstandard directory <lib dir> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 1321 | LIBS libraries to pass to the linker, e.g. -l<library> |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1322 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1323 | you have headers in a nonstandard directory <include dir> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1324 | CPP C preprocessor |
| 1325 | CXX C++ compiler command |
| 1326 | CXXFLAGS C++ compiler flags |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1327 | |
| 1328 | Use these variables to override the choices made by `configure' or to help |
| 1329 | it to find libraries and programs with nonstandard names/locations. |
| 1330 | |
| 1331 | Report bugs to <opensource@google.com>. |
| 1332 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1333 | ac_status=$? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1334 | fi |
| 1335 | |
| 1336 | if test "$ac_init_help" = "recursive"; then |
| 1337 | # If there are subdirs, report their specific --help. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1338 | 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] | 1339 | test -d "$ac_dir" || |
| 1340 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1341 | continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1342 | ac_builddir=. |
| 1343 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1344 | case "$ac_dir" in |
| 1345 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1346 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1347 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1348 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1349 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1350 | case $ac_top_builddir_sub in |
| 1351 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1352 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1353 | esac ;; |
| 1354 | esac |
| 1355 | ac_abs_top_builddir=$ac_pwd |
| 1356 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1357 | # for backward compatibility: |
| 1358 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1359 | |
| 1360 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1361 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1362 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1363 | ac_top_srcdir=$ac_top_builddir_sub |
| 1364 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1365 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1366 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1367 | ac_top_srcdir=$srcdir |
| 1368 | ac_abs_top_srcdir=$srcdir ;; |
| 1369 | *) # Relative name. |
| 1370 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1371 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1372 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1373 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1374 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1375 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1376 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1377 | # Check for guested configure. |
| 1378 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1379 | echo && |
| 1380 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1381 | elif test -f "$ac_srcdir/configure"; then |
| 1382 | echo && |
| 1383 | $SHELL "$ac_srcdir/configure" --help=recursive |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1384 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1385 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1386 | fi || ac_status=$? |
| 1387 | cd "$ac_pwd" || { ac_status=$?; break; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1388 | done |
| 1389 | fi |
| 1390 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1391 | test -n "$ac_init_help" && exit $ac_status |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1392 | if $ac_init_version; then |
| 1393 | cat <<\_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1394 | breakpad configure 0.1 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1395 | generated by GNU Autoconf 2.65 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1396 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1397 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1398 | This configure script is free software; the Free Software Foundation |
| 1399 | gives unlimited permission to copy, distribute and modify it. |
| 1400 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1401 | exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1402 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1403 | |
| 1404 | ## ------------------------ ## |
| 1405 | ## Autoconf initialization. ## |
| 1406 | ## ------------------------ ## |
| 1407 | |
| 1408 | # ac_fn_c_try_compile LINENO |
| 1409 | # -------------------------- |
| 1410 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1411 | ac_fn_c_try_compile () |
| 1412 | { |
| 1413 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1414 | rm -f conftest.$ac_objext |
| 1415 | if { { ac_try="$ac_compile" |
| 1416 | case "(($ac_try" in |
| 1417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1418 | *) ac_try_echo=$ac_try;; |
| 1419 | esac |
| 1420 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1421 | $as_echo "$ac_try_echo"; } >&5 |
| 1422 | (eval "$ac_compile") 2>conftest.err |
| 1423 | ac_status=$? |
| 1424 | if test -s conftest.err; then |
| 1425 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1426 | cat conftest.er1 >&5 |
| 1427 | mv -f conftest.er1 conftest.err |
| 1428 | fi |
| 1429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1430 | test $ac_status = 0; } && { |
| 1431 | test -z "$ac_c_werror_flag" || |
| 1432 | test ! -s conftest.err |
| 1433 | } && test -s conftest.$ac_objext; then : |
| 1434 | ac_retval=0 |
| 1435 | else |
| 1436 | $as_echo "$as_me: failed program was:" >&5 |
| 1437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1438 | |
| 1439 | ac_retval=1 |
| 1440 | fi |
| 1441 | 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] | 1442 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1443 | |
| 1444 | } # ac_fn_c_try_compile |
| 1445 | |
| 1446 | # ac_fn_c_try_cpp LINENO |
| 1447 | # ---------------------- |
| 1448 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1449 | ac_fn_c_try_cpp () |
| 1450 | { |
| 1451 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1452 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1453 | case "(($ac_try" in |
| 1454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1455 | *) ac_try_echo=$ac_try;; |
| 1456 | esac |
| 1457 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1458 | $as_echo "$ac_try_echo"; } >&5 |
| 1459 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1460 | ac_status=$? |
| 1461 | if test -s conftest.err; then |
| 1462 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1463 | cat conftest.er1 >&5 |
| 1464 | mv -f conftest.er1 conftest.err |
| 1465 | fi |
| 1466 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1467 | test $ac_status = 0; } >/dev/null && { |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1468 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1469 | test ! -s conftest.err |
| 1470 | }; then : |
| 1471 | ac_retval=0 |
| 1472 | else |
| 1473 | $as_echo "$as_me: failed program was:" >&5 |
| 1474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1475 | |
| 1476 | ac_retval=1 |
| 1477 | fi |
| 1478 | 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] | 1479 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1480 | |
| 1481 | } # ac_fn_c_try_cpp |
| 1482 | |
| 1483 | # ac_fn_cxx_try_compile LINENO |
| 1484 | # ---------------------------- |
| 1485 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1486 | ac_fn_cxx_try_compile () |
| 1487 | { |
| 1488 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1489 | rm -f conftest.$ac_objext |
| 1490 | if { { ac_try="$ac_compile" |
| 1491 | case "(($ac_try" in |
| 1492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1493 | *) ac_try_echo=$ac_try;; |
| 1494 | esac |
| 1495 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1496 | $as_echo "$ac_try_echo"; } >&5 |
| 1497 | (eval "$ac_compile") 2>conftest.err |
| 1498 | ac_status=$? |
| 1499 | if test -s conftest.err; then |
| 1500 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1501 | cat conftest.er1 >&5 |
| 1502 | mv -f conftest.er1 conftest.err |
| 1503 | fi |
| 1504 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1505 | test $ac_status = 0; } && { |
| 1506 | test -z "$ac_cxx_werror_flag" || |
| 1507 | test ! -s conftest.err |
| 1508 | } && test -s conftest.$ac_objext; then : |
| 1509 | ac_retval=0 |
| 1510 | else |
| 1511 | $as_echo "$as_me: failed program was:" >&5 |
| 1512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1513 | |
| 1514 | ac_retval=1 |
| 1515 | fi |
| 1516 | 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] | 1517 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1518 | |
| 1519 | } # ac_fn_cxx_try_compile |
| 1520 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 1521 | # ac_fn_c_try_run LINENO |
| 1522 | # ---------------------- |
| 1523 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1524 | # that executables *can* be run. |
| 1525 | ac_fn_c_try_run () |
| 1526 | { |
| 1527 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1528 | if { { ac_try="$ac_link" |
| 1529 | case "(($ac_try" in |
| 1530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1531 | *) ac_try_echo=$ac_try;; |
| 1532 | esac |
| 1533 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1534 | $as_echo "$ac_try_echo"; } >&5 |
| 1535 | (eval "$ac_link") 2>&5 |
| 1536 | ac_status=$? |
| 1537 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1538 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1539 | { { case "(($ac_try" in |
| 1540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1541 | *) ac_try_echo=$ac_try;; |
| 1542 | esac |
| 1543 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1544 | $as_echo "$ac_try_echo"; } >&5 |
| 1545 | (eval "$ac_try") 2>&5 |
| 1546 | ac_status=$? |
| 1547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1548 | test $ac_status = 0; }; }; then : |
| 1549 | ac_retval=0 |
| 1550 | else |
| 1551 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1552 | $as_echo "$as_me: failed program was:" >&5 |
| 1553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1554 | |
| 1555 | ac_retval=$ac_status |
| 1556 | fi |
| 1557 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1558 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1559 | as_fn_set_status $ac_retval |
| 1560 | |
| 1561 | } # ac_fn_c_try_run |
| 1562 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1563 | # ac_fn_c_try_link LINENO |
| 1564 | # ----------------------- |
| 1565 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1566 | ac_fn_c_try_link () |
| 1567 | { |
| 1568 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1569 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1570 | if { { ac_try="$ac_link" |
| 1571 | case "(($ac_try" in |
| 1572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1573 | *) ac_try_echo=$ac_try;; |
| 1574 | esac |
| 1575 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1576 | $as_echo "$ac_try_echo"; } >&5 |
| 1577 | (eval "$ac_link") 2>conftest.err |
| 1578 | ac_status=$? |
| 1579 | if test -s conftest.err; then |
| 1580 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1581 | cat conftest.er1 >&5 |
| 1582 | mv -f conftest.er1 conftest.err |
| 1583 | fi |
| 1584 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1585 | test $ac_status = 0; } && { |
| 1586 | test -z "$ac_c_werror_flag" || |
| 1587 | test ! -s conftest.err |
| 1588 | } && test -s conftest$ac_exeext && { |
| 1589 | test "$cross_compiling" = yes || |
| 1590 | $as_test_x conftest$ac_exeext |
| 1591 | }; then : |
| 1592 | ac_retval=0 |
| 1593 | else |
| 1594 | $as_echo "$as_me: failed program was:" >&5 |
| 1595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1596 | |
| 1597 | ac_retval=1 |
| 1598 | fi |
| 1599 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1600 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1601 | # interfere with the next link command; also delete a directory that is |
| 1602 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1603 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1604 | 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] | 1605 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1606 | |
| 1607 | } # ac_fn_c_try_link |
| 1608 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 1609 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 1610 | # ---------------------------------------------------- |
| 1611 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 1612 | # INCLUDES, setting cache variable VAR accordingly. |
| 1613 | ac_fn_c_check_member () |
| 1614 | { |
| 1615 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 1617 | $as_echo_n "checking for $2.$3... " >&6; } |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1618 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 1619 | $as_echo_n "(cached) " >&6 |
| 1620 | else |
| 1621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1622 | /* end confdefs.h. */ |
| 1623 | $5 |
| 1624 | int |
| 1625 | main () |
| 1626 | { |
| 1627 | static $2 ac_aggr; |
| 1628 | if (ac_aggr.$3) |
| 1629 | return 0; |
| 1630 | ; |
| 1631 | return 0; |
| 1632 | } |
| 1633 | _ACEOF |
| 1634 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1635 | eval "$4=yes" |
| 1636 | else |
| 1637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1638 | /* end confdefs.h. */ |
| 1639 | $5 |
| 1640 | int |
| 1641 | main () |
| 1642 | { |
| 1643 | static $2 ac_aggr; |
| 1644 | if (sizeof ac_aggr.$3) |
| 1645 | return 0; |
| 1646 | ; |
| 1647 | return 0; |
| 1648 | } |
| 1649 | _ACEOF |
| 1650 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1651 | eval "$4=yes" |
| 1652 | else |
| 1653 | eval "$4=no" |
| 1654 | fi |
| 1655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1656 | fi |
| 1657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1658 | fi |
| 1659 | eval ac_res=\$$4 |
| 1660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1661 | $as_echo "$ac_res" >&6; } |
| 1662 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1663 | |
| 1664 | } # ac_fn_c_check_member |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1665 | cat >config.log <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1666 | This file contains any messages produced by compilers while |
| 1667 | running configure, to aid debugging if configure makes a mistake. |
| 1668 | |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1669 | It was created by breakpad $as_me 0.1, which was |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1670 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1671 | |
| 1672 | $ $0 $@ |
| 1673 | |
| 1674 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1675 | exec 5>>config.log |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1676 | { |
| 1677 | cat <<_ASUNAME |
| 1678 | ## --------- ## |
| 1679 | ## Platform. ## |
| 1680 | ## --------- ## |
| 1681 | |
| 1682 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1683 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1684 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1685 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1686 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1687 | |
| 1688 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1689 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1690 | |
| 1691 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1692 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1693 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1694 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1695 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1696 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1697 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1698 | |
| 1699 | _ASUNAME |
| 1700 | |
| 1701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1702 | for as_dir in $PATH |
| 1703 | do |
| 1704 | IFS=$as_save_IFS |
| 1705 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1706 | $as_echo "PATH: $as_dir" |
| 1707 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1708 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1709 | |
| 1710 | } >&5 |
| 1711 | |
| 1712 | cat >&5 <<_ACEOF |
| 1713 | |
| 1714 | |
| 1715 | ## ----------- ## |
| 1716 | ## Core tests. ## |
| 1717 | ## ----------- ## |
| 1718 | |
| 1719 | _ACEOF |
| 1720 | |
| 1721 | |
| 1722 | # Keep a trace of the command line. |
| 1723 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1724 | # Strip out --silent because we don't want to record it for future runs. |
| 1725 | # Also quote any args containing shell meta-characters. |
| 1726 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1727 | ac_configure_args= |
| 1728 | ac_configure_args0= |
| 1729 | ac_configure_args1= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1730 | ac_must_keep_next=false |
| 1731 | for ac_pass in 1 2 |
| 1732 | do |
| 1733 | for ac_arg |
| 1734 | do |
| 1735 | case $ac_arg in |
| 1736 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1737 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1738 | | -silent | --silent | --silen | --sile | --sil) |
| 1739 | continue ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1740 | *\'*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1741 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1742 | esac |
| 1743 | case $ac_pass in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1744 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1745 | 2) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1746 | as_fn_append ac_configure_args1 " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1747 | if test $ac_must_keep_next = true; then |
| 1748 | ac_must_keep_next=false # Got value, back to normal. |
| 1749 | else |
| 1750 | case $ac_arg in |
| 1751 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1752 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1753 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1754 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1755 | case "$ac_configure_args0 " in |
| 1756 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1757 | esac |
| 1758 | ;; |
| 1759 | -* ) ac_must_keep_next=true ;; |
| 1760 | esac |
| 1761 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1762 | as_fn_append ac_configure_args " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1763 | ;; |
| 1764 | esac |
| 1765 | done |
| 1766 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1767 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1768 | { ac_configure_args1=; unset ac_configure_args1;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1769 | |
| 1770 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1771 | # config.log. We remove comments because anyway the quotes in there |
| 1772 | # would cause problems or look ugly. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1773 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1774 | # 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] | 1775 | trap 'exit_status=$? |
| 1776 | # Save into config.log some information that might help in debugging. |
| 1777 | { |
| 1778 | echo |
| 1779 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1780 | cat <<\_ASBOX |
| 1781 | ## ---------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1782 | ## Cache variables. ## |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1783 | ## ---------------- ## |
| 1784 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1785 | echo |
| 1786 | # The following way of writing the cache mishandles newlines in values, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1787 | ( |
| 1788 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1789 | eval ac_val=\$$ac_var |
| 1790 | case $ac_val in #( |
| 1791 | *${as_nl}*) |
| 1792 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1793 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1794 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1795 | esac |
| 1796 | case $ac_var in #( |
| 1797 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1798 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1799 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1800 | esac ;; |
| 1801 | esac |
| 1802 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1803 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1804 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1805 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1806 | sed -n \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1807 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1808 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1809 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1810 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1811 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1812 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1813 | esac | |
| 1814 | sort |
| 1815 | ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1816 | echo |
| 1817 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1818 | cat <<\_ASBOX |
| 1819 | ## ----------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1820 | ## Output variables. ## |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1821 | ## ----------------- ## |
| 1822 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1823 | echo |
| 1824 | for ac_var in $ac_subst_vars |
| 1825 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1826 | eval ac_val=\$$ac_var |
| 1827 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1828 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1829 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1830 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1831 | done | sort |
| 1832 | echo |
| 1833 | |
| 1834 | if test -n "$ac_subst_files"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1835 | cat <<\_ASBOX |
| 1836 | ## ------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1837 | ## File substitutions. ## |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1838 | ## ------------------- ## |
| 1839 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1840 | echo |
| 1841 | for ac_var in $ac_subst_files |
| 1842 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1843 | eval ac_val=\$$ac_var |
| 1844 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1845 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1846 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1847 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1848 | done | sort |
| 1849 | echo |
| 1850 | fi |
| 1851 | |
| 1852 | if test -s confdefs.h; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1853 | cat <<\_ASBOX |
| 1854 | ## ----------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1855 | ## confdefs.h. ## |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1856 | ## ----------- ## |
| 1857 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1858 | echo |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1859 | cat confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1860 | echo |
| 1861 | fi |
| 1862 | test "$ac_signal" != 0 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1863 | $as_echo "$as_me: caught signal $ac_signal" |
| 1864 | $as_echo "$as_me: exit $exit_status" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1865 | } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1866 | rm -f core *.core core.conftest.* && |
| 1867 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1868 | exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1869 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1870 | for ac_signal in 1 2 13 15; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1871 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1872 | done |
| 1873 | ac_signal=0 |
| 1874 | |
| 1875 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1876 | rm -f -r conftest* confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1877 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1878 | $as_echo "/* confdefs.h */" > confdefs.h |
| 1879 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1880 | # Predefined preprocessor variables. |
| 1881 | |
| 1882 | cat >>confdefs.h <<_ACEOF |
| 1883 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1884 | _ACEOF |
| 1885 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1886 | cat >>confdefs.h <<_ACEOF |
| 1887 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1888 | _ACEOF |
| 1889 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1890 | cat >>confdefs.h <<_ACEOF |
| 1891 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1892 | _ACEOF |
| 1893 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1894 | cat >>confdefs.h <<_ACEOF |
| 1895 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1896 | _ACEOF |
| 1897 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1898 | cat >>confdefs.h <<_ACEOF |
| 1899 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1900 | _ACEOF |
| 1901 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1902 | cat >>confdefs.h <<_ACEOF |
| 1903 | #define PACKAGE_URL "$PACKAGE_URL" |
| 1904 | _ACEOF |
| 1905 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1906 | |
| 1907 | # Let the site file select an alternate cache file if it wants to. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1908 | # Prefer an explicitly selected file to automatically selected ones. |
| 1909 | ac_site_file1=NONE |
| 1910 | ac_site_file2=NONE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1911 | if test -n "$CONFIG_SITE"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1912 | ac_site_file1=$CONFIG_SITE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1913 | elif test "x$prefix" != xNONE; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1914 | ac_site_file1=$prefix/share/config.site |
| 1915 | ac_site_file2=$prefix/etc/config.site |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1916 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1917 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1918 | ac_site_file2=$ac_default_prefix/etc/config.site |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1919 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1920 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1921 | do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1922 | test "x$ac_site_file" = xNONE && continue |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1923 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 1925 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1926 | sed 's/^/| /' "$ac_site_file" >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1927 | . "$ac_site_file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1928 | fi |
| 1929 | done |
| 1930 | |
| 1931 | if test -r "$cache_file"; then |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1932 | # Some versions of bash will fail to source /dev/null (special files |
| 1933 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 1934 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 1936 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1937 | case $cache_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1938 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1939 | *) . "./$cache_file";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1940 | esac |
| 1941 | fi |
| 1942 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1943 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 1944 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1945 | >$cache_file |
| 1946 | fi |
| 1947 | |
| 1948 | # Check that the precious variables saved in the cache have kept the same |
| 1949 | # value. |
| 1950 | ac_cache_corrupted=false |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1951 | for ac_var in $ac_precious_vars; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1952 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1953 | eval ac_new_set=\$ac_env_${ac_var}_set |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1954 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1955 | eval ac_new_val=\$ac_env_${ac_var}_value |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1956 | case $ac_old_set,$ac_new_set in |
| 1957 | set,) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1958 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1959 | $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] | 1960 | ac_cache_corrupted=: ;; |
| 1961 | ,set) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1962 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 1963 | $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] | 1964 | ac_cache_corrupted=: ;; |
| 1965 | ,);; |
| 1966 | *) |
| 1967 | if test "x$ac_old_val" != "x$ac_new_val"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1968 | # differences in whitespace do not lead to failure. |
| 1969 | ac_old_val_w=`echo x $ac_old_val` |
| 1970 | ac_new_val_w=`echo x $ac_new_val` |
| 1971 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1972 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1973 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1974 | ac_cache_corrupted=: |
| 1975 | else |
| 1976 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1977 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1978 | eval $ac_var=\$ac_old_val |
| 1979 | fi |
| 1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 1981 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1982 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 1983 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1984 | fi;; |
| 1985 | esac |
| 1986 | # Pass precious variables to config.status. |
| 1987 | if test "$ac_new_set" = set; then |
| 1988 | case $ac_new_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1989 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1990 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1991 | esac |
| 1992 | case " $ac_configure_args " in |
| 1993 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1994 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1995 | esac |
| 1996 | fi |
| 1997 | done |
| 1998 | if $ac_cache_corrupted; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1999 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2000 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2001 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2002 | $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] | 2003 | 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] | 2004 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2005 | ## -------------------- ## |
| 2006 | ## Main body of script. ## |
| 2007 | ## -------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2008 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2009 | ac_ext=c |
| 2010 | ac_cpp='$CPP $CPPFLAGS' |
| 2011 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2012 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2013 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2014 | |
| 2015 | |
| 2016 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2017 | ac_aux_dir= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2018 | for ac_dir in autotools "$srcdir"/autotools; do |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2019 | for ac_t in install-sh install.sh shtool; do |
| 2020 | if test -f "$ac_dir/$ac_t"; then |
| 2021 | ac_aux_dir=$ac_dir |
| 2022 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2023 | break 2 |
| 2024 | fi |
| 2025 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2026 | done |
| 2027 | if test -z "$ac_aux_dir"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2028 | 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] | 2029 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2030 | |
| 2031 | # These three variables are undocumented and unsupported, |
| 2032 | # and are intended to be withdrawn in a future Autoconf release. |
| 2033 | # They can cause serious problems if a builder's source tree is in a directory |
| 2034 | # whose full name contains unusual characters. |
| 2035 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2036 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2037 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2038 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2039 | |
mmentovai | 425d256 | 2006-08-30 20:05:05 +0000 | [diff] [blame] | 2040 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2041 | # Make sure we can run config.sub. |
| 2042 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2043 | 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] | 2044 | |
| 2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2046 | $as_echo_n "checking build system type... " >&6; } |
| 2047 | if test "${ac_cv_build+set}" = set; then : |
| 2048 | $as_echo_n "(cached) " >&6 |
| 2049 | else |
| 2050 | ac_build_alias=$build_alias |
| 2051 | test "x$ac_build_alias" = x && |
| 2052 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2053 | test "x$ac_build_alias" = x && |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2054 | 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] | 2055 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2056 | 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] | 2057 | |
| 2058 | fi |
| 2059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2060 | $as_echo "$ac_cv_build" >&6; } |
| 2061 | case $ac_cv_build in |
| 2062 | *-*-*) ;; |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2063 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2064 | esac |
| 2065 | build=$ac_cv_build |
| 2066 | ac_save_IFS=$IFS; IFS='-' |
| 2067 | set x $ac_cv_build |
| 2068 | shift |
| 2069 | build_cpu=$1 |
| 2070 | build_vendor=$2 |
| 2071 | shift; shift |
| 2072 | # Remember, the first character of IFS is used to create $*, |
| 2073 | # except with old shells: |
| 2074 | build_os=$* |
| 2075 | IFS=$ac_save_IFS |
| 2076 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2077 | |
| 2078 | |
| 2079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2080 | $as_echo_n "checking host system type... " >&6; } |
| 2081 | if test "${ac_cv_host+set}" = set; then : |
| 2082 | $as_echo_n "(cached) " >&6 |
| 2083 | else |
| 2084 | if test "x$host_alias" = x; then |
| 2085 | ac_cv_host=$ac_cv_build |
| 2086 | else |
| 2087 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2088 | 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] | 2089 | fi |
| 2090 | |
| 2091 | fi |
| 2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2093 | $as_echo "$ac_cv_host" >&6; } |
| 2094 | case $ac_cv_host in |
| 2095 | *-*-*) ;; |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2096 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2097 | esac |
| 2098 | host=$ac_cv_host |
| 2099 | ac_save_IFS=$IFS; IFS='-' |
| 2100 | set x $ac_cv_host |
| 2101 | shift |
| 2102 | host_cpu=$1 |
| 2103 | host_vendor=$2 |
| 2104 | shift; shift |
| 2105 | # Remember, the first character of IFS is used to create $*, |
| 2106 | # except with old shells: |
| 2107 | host_os=$* |
| 2108 | IFS=$ac_save_IFS |
| 2109 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2110 | |
| 2111 | |
| 2112 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2113 | am__api_version='1.11' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2114 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2115 | # Find a good install program. We prefer a C program (faster), |
| 2116 | # so one script is as good as another. But avoid the broken or |
| 2117 | # incompatible versions: |
| 2118 | # SysV /etc/install, /usr/sbin/install |
| 2119 | # SunOS /usr/etc/install |
| 2120 | # IRIX /sbin/install |
| 2121 | # AIX /bin/install |
| 2122 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2123 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2124 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2125 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2126 | # OS/2's system install, which has a completely different semantic |
| 2127 | # ./install, which can be erroneously created by make from ./install.sh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2128 | # Reject install programs that cannot install multiple files. |
| 2129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2130 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2131 | if test -z "$INSTALL"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2132 | if test "${ac_cv_path_install+set}" = set; then : |
| 2133 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2134 | else |
| 2135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2136 | for as_dir in $PATH |
| 2137 | do |
| 2138 | IFS=$as_save_IFS |
| 2139 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2140 | # Account for people who put trailing slashes in PATH elements. |
| 2141 | case $as_dir/ in #(( |
| 2142 | ./ | .// | /[cC]/* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2143 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2144 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2145 | /usr/ucb/* ) ;; |
| 2146 | *) |
| 2147 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2148 | # Don't use installbsd from OSF since it installs stuff as root |
| 2149 | # by default. |
| 2150 | for ac_prog in ginstall scoinst install; do |
| 2151 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2152 | 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] | 2153 | if test $ac_prog = install && |
| 2154 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2155 | # AIX install. It has an incompatible calling convention. |
| 2156 | : |
| 2157 | elif test $ac_prog = install && |
| 2158 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2159 | # program-specific install script used by HP pwplus--don't use. |
| 2160 | : |
| 2161 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2162 | rm -rf conftest.one conftest.two conftest.dir |
| 2163 | echo one > conftest.one |
| 2164 | echo two > conftest.two |
| 2165 | mkdir conftest.dir |
| 2166 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2167 | test -s conftest.one && test -s conftest.two && |
| 2168 | test -s conftest.dir/conftest.one && |
| 2169 | test -s conftest.dir/conftest.two |
| 2170 | then |
| 2171 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2172 | break 3 |
| 2173 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2174 | fi |
| 2175 | fi |
| 2176 | done |
| 2177 | done |
| 2178 | ;; |
| 2179 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2180 | |
| 2181 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2182 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2183 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2184 | rm -rf conftest.one conftest.two conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2185 | |
| 2186 | fi |
| 2187 | if test "${ac_cv_path_install+set}" = set; then |
| 2188 | INSTALL=$ac_cv_path_install |
| 2189 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2190 | # As a last resort, use the slow shell script. Don't cache a |
| 2191 | # value for INSTALL within a source directory, because that will |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2192 | # break other packages using the cache if that directory is |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2193 | # removed, or if the value is a relative name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2194 | INSTALL=$ac_install_sh |
| 2195 | fi |
| 2196 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2198 | $as_echo "$INSTALL" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2199 | |
| 2200 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2201 | # It thinks the first close brace ends the variable substitution. |
| 2202 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2203 | |
| 2204 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2205 | |
| 2206 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2207 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2209 | $as_echo_n "checking whether build environment is sane... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2210 | # Just in case |
| 2211 | sleep 1 |
| 2212 | echo timestamp > conftest.file |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2213 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2214 | # name. Accept space and tab only in the latter. |
| 2215 | am_lf=' |
| 2216 | ' |
| 2217 | case `pwd` in |
| 2218 | *[\\\"\#\$\&\'\`$am_lf]*) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2219 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2220 | esac |
| 2221 | case $srcdir in |
| 2222 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2223 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2224 | esac |
| 2225 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2226 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2227 | # arguments. Must try -L first in case configure is actually a |
| 2228 | # symlink; some systems play weird games with the mod time of symlinks |
| 2229 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2230 | # directory). |
| 2231 | if ( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2232 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2233 | if test "$*" = "X"; then |
| 2234 | # -L didn't work. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2235 | set X `ls -t "$srcdir/configure" conftest.file` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2236 | fi |
| 2237 | rm -f conftest.file |
| 2238 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2239 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2240 | |
| 2241 | # If neither matched, then we have a broken ls. This can happen |
| 2242 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2243 | # broken ls alias from the environment. This has actually |
| 2244 | # happened. Such a system could not be considered "sane". |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2245 | 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] | 2246 | alias in your environment" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2247 | fi |
| 2248 | |
| 2249 | test "$2" = conftest.file |
| 2250 | ) |
| 2251 | then |
| 2252 | # Ok. |
| 2253 | : |
| 2254 | else |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2255 | as_fn_error "newly created file is older than distributed files! |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2256 | Check your system clock" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2257 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2259 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2260 | test "$program_prefix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2261 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2262 | # Use a double $ so make ignores it. |
| 2263 | test "$program_suffix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2264 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2265 | # Double any \ or $. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2266 | # By default was `s,x,x', remove it if useless. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2267 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2268 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2269 | |
| 2270 | # expand $ac_aux_dir to an absolute path |
| 2271 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2272 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2273 | if test x"${MISSING+set}" != xset; then |
| 2274 | case $am_aux_dir in |
| 2275 | *\ * | *\ *) |
| 2276 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2277 | *) |
| 2278 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2279 | esac |
| 2280 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2281 | # Use eval to expand $SHELL |
| 2282 | if eval "$MISSING --run true"; then |
| 2283 | am_missing_run="$MISSING --run " |
| 2284 | else |
| 2285 | am_missing_run= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2286 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 2287 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2288 | fi |
| 2289 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2290 | if test x"${install_sh}" != xset; then |
| 2291 | case $am_aux_dir in |
| 2292 | *\ * | *\ *) |
| 2293 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2294 | *) |
| 2295 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2296 | esac |
| 2297 | fi |
| 2298 | |
| 2299 | # Installed binaries are usually stripped using `strip' when the user |
| 2300 | # run `make install-strip'. However `strip' might not be the right |
| 2301 | # tool to use in cross-compilation environments, therefore Automake |
| 2302 | # will honor the `STRIP' environment variable to overrule this program. |
| 2303 | if test "$cross_compiling" != no; then |
| 2304 | if test -n "$ac_tool_prefix"; then |
| 2305 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2306 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2308 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2309 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 2310 | $as_echo_n "(cached) " >&6 |
| 2311 | else |
| 2312 | if test -n "$STRIP"; then |
| 2313 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2314 | else |
| 2315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2316 | for as_dir in $PATH |
| 2317 | do |
| 2318 | IFS=$as_save_IFS |
| 2319 | test -z "$as_dir" && as_dir=. |
| 2320 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2322 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2324 | break 2 |
| 2325 | fi |
| 2326 | done |
| 2327 | done |
| 2328 | IFS=$as_save_IFS |
| 2329 | |
| 2330 | fi |
| 2331 | fi |
| 2332 | STRIP=$ac_cv_prog_STRIP |
| 2333 | if test -n "$STRIP"; then |
| 2334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2335 | $as_echo "$STRIP" >&6; } |
| 2336 | else |
| 2337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2338 | $as_echo "no" >&6; } |
| 2339 | fi |
| 2340 | |
| 2341 | |
| 2342 | fi |
| 2343 | if test -z "$ac_cv_prog_STRIP"; then |
| 2344 | ac_ct_STRIP=$STRIP |
| 2345 | # Extract the first word of "strip", so it can be a program name with args. |
| 2346 | set dummy strip; ac_word=$2 |
| 2347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2348 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2349 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 2350 | $as_echo_n "(cached) " >&6 |
| 2351 | else |
| 2352 | if test -n "$ac_ct_STRIP"; then |
| 2353 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2354 | else |
| 2355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2356 | for as_dir in $PATH |
| 2357 | do |
| 2358 | IFS=$as_save_IFS |
| 2359 | test -z "$as_dir" && as_dir=. |
| 2360 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2362 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2364 | break 2 |
| 2365 | fi |
| 2366 | done |
| 2367 | done |
| 2368 | IFS=$as_save_IFS |
| 2369 | |
| 2370 | fi |
| 2371 | fi |
| 2372 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2373 | if test -n "$ac_ct_STRIP"; then |
| 2374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2375 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2376 | else |
| 2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2378 | $as_echo "no" >&6; } |
| 2379 | fi |
| 2380 | |
| 2381 | if test "x$ac_ct_STRIP" = x; then |
| 2382 | STRIP=":" |
| 2383 | else |
| 2384 | case $cross_compiling:$ac_tool_warned in |
| 2385 | yes:) |
| 2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2387 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2388 | ac_tool_warned=yes ;; |
| 2389 | esac |
| 2390 | STRIP=$ac_ct_STRIP |
| 2391 | fi |
| 2392 | else |
| 2393 | STRIP="$ac_cv_prog_STRIP" |
| 2394 | fi |
| 2395 | |
| 2396 | fi |
| 2397 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2398 | |
| 2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2400 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2401 | if test -z "$MKDIR_P"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2402 | if test "${ac_cv_path_mkdir+set}" = set; then : |
| 2403 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2404 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2406 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2407 | do |
| 2408 | IFS=$as_save_IFS |
| 2409 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2410 | for ac_prog in mkdir gmkdir; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2411 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2412 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 2413 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2414 | 'mkdir (GNU coreutils) '* | \ |
| 2415 | 'mkdir (coreutils) '* | \ |
| 2416 | 'mkdir (fileutils) '4.1*) |
| 2417 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2418 | break 3;; |
| 2419 | esac |
| 2420 | done |
| 2421 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2422 | done |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2423 | IFS=$as_save_IFS |
| 2424 | |
| 2425 | fi |
| 2426 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2427 | test -d ./--version && rmdir ./--version |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2428 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2429 | MKDIR_P="$ac_cv_path_mkdir -p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2430 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2431 | # As a last resort, use the slow shell script. Don't cache a |
| 2432 | # value for MKDIR_P within a source directory, because that will |
| 2433 | # break other packages using the cache if that directory is |
| 2434 | # removed, or if the value is a relative name. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2435 | MKDIR_P="$ac_install_sh -d" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2436 | fi |
| 2437 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2439 | $as_echo "$MKDIR_P" >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2440 | |
| 2441 | mkdir_p="$MKDIR_P" |
| 2442 | case $mkdir_p in |
| 2443 | [\\/$]* | ?:[\\/]*) ;; |
| 2444 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2445 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2446 | |
| 2447 | for ac_prog in gawk mawk nawk awk |
| 2448 | do |
| 2449 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2450 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2452 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2453 | if test "${ac_cv_prog_AWK+set}" = set; then : |
| 2454 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2455 | else |
| 2456 | if test -n "$AWK"; then |
| 2457 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2458 | else |
| 2459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2460 | for as_dir in $PATH |
| 2461 | do |
| 2462 | IFS=$as_save_IFS |
| 2463 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2464 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2465 | 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] | 2466 | ac_cv_prog_AWK="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2467 | $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] | 2468 | break 2 |
| 2469 | fi |
| 2470 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2471 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2472 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2473 | |
| 2474 | fi |
| 2475 | fi |
| 2476 | AWK=$ac_cv_prog_AWK |
| 2477 | if test -n "$AWK"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2479 | $as_echo "$AWK" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2480 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2482 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2483 | fi |
| 2484 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2485 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2486 | test -n "$AWK" && break |
| 2487 | done |
| 2488 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2490 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2491 | set x ${MAKE-make} |
| 2492 | 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] | 2493 | 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] | 2494 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2495 | else |
| 2496 | cat >conftest.make <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2497 | SHELL = /bin/sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2498 | all: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2499 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2500 | _ACEOF |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2501 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2502 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2503 | *@@@%%%=?*=@@@%%%*) |
| 2504 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2505 | *) |
| 2506 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2507 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2508 | rm -f conftest.make |
| 2509 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2510 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2512 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2513 | SET_MAKE= |
| 2514 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2516 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2517 | SET_MAKE="MAKE=${MAKE-make}" |
| 2518 | fi |
| 2519 | |
| 2520 | rm -rf .tst 2>/dev/null |
| 2521 | mkdir .tst 2>/dev/null |
| 2522 | if test -d .tst; then |
| 2523 | am__leading_dot=. |
| 2524 | else |
| 2525 | am__leading_dot=_ |
| 2526 | fi |
| 2527 | rmdir .tst 2>/dev/null |
| 2528 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2529 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2530 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2531 | # is not polluted with repeated "-I." |
| 2532 | am__isrc=' -I$(srcdir)' |
| 2533 | # test to see if srcdir already configured |
| 2534 | if test -f $srcdir/config.status; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2535 | 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] | 2536 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2537 | fi |
| 2538 | |
| 2539 | # test whether we have cygpath |
| 2540 | if test -z "$CYGPATH_W"; then |
| 2541 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2542 | CYGPATH_W='cygpath -w' |
| 2543 | else |
| 2544 | CYGPATH_W=echo |
| 2545 | fi |
| 2546 | fi |
| 2547 | |
| 2548 | |
| 2549 | # Define the identity of the package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2550 | PACKAGE='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2551 | VERSION='0.1' |
| 2552 | |
| 2553 | |
| 2554 | cat >>confdefs.h <<_ACEOF |
| 2555 | #define PACKAGE "$PACKAGE" |
| 2556 | _ACEOF |
| 2557 | |
| 2558 | |
| 2559 | cat >>confdefs.h <<_ACEOF |
| 2560 | #define VERSION "$VERSION" |
| 2561 | _ACEOF |
| 2562 | |
| 2563 | # Some tools Automake needs. |
| 2564 | |
| 2565 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2566 | |
| 2567 | |
| 2568 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2569 | |
| 2570 | |
| 2571 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2572 | |
| 2573 | |
| 2574 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2575 | |
| 2576 | |
| 2577 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2578 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2579 | # We need awk for the "check" target. The system "awk" is bad on |
| 2580 | # some platforms. |
| 2581 | # Always define AMTAR for backward compatibility. |
| 2582 | |
| 2583 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2584 | |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2585 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 |
| 2587 | $as_echo_n "checking how to create a ustar tar archive... " >&6; } |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2588 | # Loop over all known methods to create a tar archive until one works. |
| 2589 | _am_tools='gnutar plaintar pax cpio none' |
| 2590 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
| 2591 | # Do not fold the above two line into one, because Tru64 sh and |
| 2592 | # Solaris sh will not grok spaces in the rhs of `-'. |
| 2593 | for _am_tool in $_am_tools |
| 2594 | do |
| 2595 | case $_am_tool in |
| 2596 | gnutar) |
| 2597 | for _am_tar in tar gnutar gtar; |
| 2598 | do |
| 2599 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
| 2600 | ($_am_tar --version) >&5 2>&5 |
| 2601 | ac_status=$? |
| 2602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2603 | (exit $ac_status); } && break |
| 2604 | done |
| 2605 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
| 2606 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
| 2607 | am__untar="$_am_tar -xf -" |
| 2608 | ;; |
| 2609 | plaintar) |
| 2610 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 2611 | # ustar tarball either. |
| 2612 | (tar --version) >/dev/null 2>&1 && continue |
| 2613 | am__tar='tar chf - "$$tardir"' |
| 2614 | am__tar_='tar chf - "$tardir"' |
| 2615 | am__untar='tar xf -' |
| 2616 | ;; |
| 2617 | pax) |
| 2618 | am__tar='pax -L -x ustar -w "$$tardir"' |
| 2619 | am__tar_='pax -L -x ustar -w "$tardir"' |
| 2620 | am__untar='pax -r' |
| 2621 | ;; |
| 2622 | cpio) |
| 2623 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
| 2624 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
| 2625 | am__untar='cpio -i -H ustar -d' |
| 2626 | ;; |
| 2627 | none) |
| 2628 | am__tar=false |
| 2629 | am__tar_=false |
| 2630 | am__untar=false |
| 2631 | ;; |
| 2632 | esac |
| 2633 | |
| 2634 | # If the value was cached, stop now. We just wanted to have am__tar |
| 2635 | # and am__untar set. |
| 2636 | test -n "${am_cv_prog_tar_ustar}" && break |
| 2637 | |
| 2638 | # tar/untar a dummy directory, and stop if the command works |
| 2639 | rm -rf conftest.dir |
| 2640 | mkdir conftest.dir |
| 2641 | echo GrepMe > conftest.dir/file |
| 2642 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
| 2643 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 2644 | ac_status=$? |
| 2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2646 | (exit $ac_status); } |
| 2647 | rm -rf conftest.dir |
| 2648 | if test -s conftest.tar; then |
| 2649 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
| 2650 | ($am__untar <conftest.tar) >&5 2>&5 |
| 2651 | ac_status=$? |
| 2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2653 | (exit $ac_status); } |
| 2654 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 2655 | fi |
| 2656 | done |
| 2657 | rm -rf conftest.dir |
| 2658 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2659 | if test "${am_cv_prog_tar_ustar+set}" = set; then : |
| 2660 | $as_echo_n "(cached) " >&6 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2661 | else |
| 2662 | am_cv_prog_tar_ustar=$_am_tool |
| 2663 | fi |
| 2664 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 |
| 2666 | $as_echo "$am_cv_prog_tar_ustar" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2667 | |
| 2668 | |
| 2669 | |
| 2670 | |
| 2671 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2672 | ac_config_headers="$ac_config_headers src/config.h" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2673 | |
| 2674 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2675 | ac_ext=c |
| 2676 | ac_cpp='$CPP $CPPFLAGS' |
| 2677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2680 | if test -n "$ac_tool_prefix"; then |
| 2681 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2682 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2684 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2685 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2686 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2687 | else |
| 2688 | if test -n "$CC"; then |
| 2689 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2690 | else |
| 2691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2692 | for as_dir in $PATH |
| 2693 | do |
| 2694 | IFS=$as_save_IFS |
| 2695 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2696 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2697 | 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] | 2698 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2699 | $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] | 2700 | break 2 |
| 2701 | fi |
| 2702 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2703 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2704 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2705 | |
| 2706 | fi |
| 2707 | fi |
| 2708 | CC=$ac_cv_prog_CC |
| 2709 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2711 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2712 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2714 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2715 | fi |
| 2716 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2717 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2718 | fi |
| 2719 | if test -z "$ac_cv_prog_CC"; then |
| 2720 | ac_ct_CC=$CC |
| 2721 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2722 | set dummy gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2724 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2725 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2726 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2727 | else |
| 2728 | if test -n "$ac_ct_CC"; then |
| 2729 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2730 | else |
| 2731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2732 | for as_dir in $PATH |
| 2733 | do |
| 2734 | IFS=$as_save_IFS |
| 2735 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2736 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2737 | 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] | 2738 | ac_cv_prog_ac_ct_CC="gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2739 | $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] | 2740 | break 2 |
| 2741 | fi |
| 2742 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2743 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2744 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2745 | |
| 2746 | fi |
| 2747 | fi |
| 2748 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2749 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2751 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2752 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2754 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2755 | fi |
| 2756 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2757 | if test "x$ac_ct_CC" = x; then |
| 2758 | CC="" |
| 2759 | else |
| 2760 | case $cross_compiling:$ac_tool_warned in |
| 2761 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2763 | $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] | 2764 | ac_tool_warned=yes ;; |
| 2765 | esac |
| 2766 | CC=$ac_ct_CC |
| 2767 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2768 | else |
| 2769 | CC="$ac_cv_prog_CC" |
| 2770 | fi |
| 2771 | |
| 2772 | if test -z "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2773 | if test -n "$ac_tool_prefix"; then |
| 2774 | # 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] | 2775 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2777 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2778 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2779 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2780 | else |
| 2781 | if test -n "$CC"; then |
| 2782 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2783 | else |
| 2784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2785 | for as_dir in $PATH |
| 2786 | do |
| 2787 | IFS=$as_save_IFS |
| 2788 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2789 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2790 | 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] | 2791 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2792 | $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] | 2793 | break 2 |
| 2794 | fi |
| 2795 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2796 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2797 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2798 | |
| 2799 | fi |
| 2800 | fi |
| 2801 | CC=$ac_cv_prog_CC |
| 2802 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2804 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2805 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2807 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2808 | fi |
| 2809 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2810 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2811 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2812 | fi |
| 2813 | if test -z "$CC"; then |
| 2814 | # Extract the first word of "cc", so it can be a program name with args. |
| 2815 | set dummy cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2817 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2818 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2819 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2820 | else |
| 2821 | if test -n "$CC"; then |
| 2822 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2823 | else |
| 2824 | ac_prog_rejected=no |
| 2825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2826 | for as_dir in $PATH |
| 2827 | do |
| 2828 | IFS=$as_save_IFS |
| 2829 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2830 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2831 | 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] | 2832 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2833 | ac_prog_rejected=yes |
| 2834 | continue |
| 2835 | fi |
| 2836 | ac_cv_prog_CC="cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2837 | $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] | 2838 | break 2 |
| 2839 | fi |
| 2840 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2841 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2842 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2843 | |
| 2844 | if test $ac_prog_rejected = yes; then |
| 2845 | # We found a bogon in the path, so make sure we never use it. |
| 2846 | set dummy $ac_cv_prog_CC |
| 2847 | shift |
| 2848 | if test $# != 0; then |
| 2849 | # We chose a different compiler from the bogus one. |
| 2850 | # However, it has the same basename, so the bogon will be chosen |
| 2851 | # first if we set CC to just the basename; use the full file name. |
| 2852 | shift |
| 2853 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2854 | fi |
| 2855 | fi |
| 2856 | fi |
| 2857 | fi |
| 2858 | CC=$ac_cv_prog_CC |
| 2859 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2861 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2862 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2864 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2865 | fi |
| 2866 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2867 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2868 | fi |
| 2869 | if test -z "$CC"; then |
| 2870 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2871 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2872 | do |
| 2873 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2874 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2876 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2877 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2878 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2879 | else |
| 2880 | if test -n "$CC"; then |
| 2881 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2882 | else |
| 2883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2884 | for as_dir in $PATH |
| 2885 | do |
| 2886 | IFS=$as_save_IFS |
| 2887 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2888 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2889 | 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] | 2890 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2891 | $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] | 2892 | break 2 |
| 2893 | fi |
| 2894 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2895 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2896 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2897 | |
| 2898 | fi |
| 2899 | fi |
| 2900 | CC=$ac_cv_prog_CC |
| 2901 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2903 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2904 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2906 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2907 | fi |
| 2908 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2909 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2910 | test -n "$CC" && break |
| 2911 | done |
| 2912 | fi |
| 2913 | if test -z "$CC"; then |
| 2914 | ac_ct_CC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2915 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2916 | do |
| 2917 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2918 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2920 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2921 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2922 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2923 | else |
| 2924 | if test -n "$ac_ct_CC"; then |
| 2925 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2926 | else |
| 2927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2928 | for as_dir in $PATH |
| 2929 | do |
| 2930 | IFS=$as_save_IFS |
| 2931 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2932 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2933 | 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] | 2934 | ac_cv_prog_ac_ct_CC="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2935 | $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] | 2936 | break 2 |
| 2937 | fi |
| 2938 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2939 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2940 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2941 | |
| 2942 | fi |
| 2943 | fi |
| 2944 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2945 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2947 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2948 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2950 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2951 | fi |
| 2952 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2953 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2954 | test -n "$ac_ct_CC" && break |
| 2955 | done |
| 2956 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2957 | if test "x$ac_ct_CC" = x; then |
| 2958 | CC="" |
| 2959 | else |
| 2960 | case $cross_compiling:$ac_tool_warned in |
| 2961 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2963 | $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] | 2964 | ac_tool_warned=yes ;; |
| 2965 | esac |
| 2966 | CC=$ac_ct_CC |
| 2967 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2968 | fi |
| 2969 | |
| 2970 | fi |
| 2971 | |
| 2972 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2973 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2974 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 2975 | as_fn_error "no acceptable C compiler found in \$PATH |
| 2976 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2977 | |
| 2978 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2979 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2980 | set X $ac_compile |
| 2981 | ac_compiler=$2 |
| 2982 | for ac_option in --version -v -V -qversion; do |
| 2983 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2984 | case "(($ac_try" in |
| 2985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2986 | *) ac_try_echo=$ac_try;; |
| 2987 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2988 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2989 | $as_echo "$ac_try_echo"; } >&5 |
| 2990 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2991 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2992 | if test -s conftest.err; then |
| 2993 | sed '10a\ |
| 2994 | ... rest of stderr output deleted ... |
| 2995 | 10q' conftest.err >conftest.er1 |
| 2996 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2997 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2998 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2999 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3000 | test $ac_status = 0; } |
| 3001 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3002 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3004 | /* end confdefs.h. */ |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3005 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3006 | int |
| 3007 | main () |
| 3008 | { |
| 3009 | |
| 3010 | ; |
| 3011 | return 0; |
| 3012 | } |
| 3013 | _ACEOF |
| 3014 | ac_clean_files_save=$ac_clean_files |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3015 | 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] | 3016 | # Try to create an executable without -o first, disregard a.out. |
| 3017 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3018 | # of exeext. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3020 | $as_echo_n "checking whether the C compiler works... " >&6; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3021 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3022 | |
| 3023 | # The possible output files: |
| 3024 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3025 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3026 | ac_rmfiles= |
| 3027 | for ac_file in $ac_files |
| 3028 | do |
| 3029 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3030 | *.$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] | 3031 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3032 | esac |
| 3033 | done |
| 3034 | rm -f $ac_rmfiles |
| 3035 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3036 | if { { ac_try="$ac_link_default" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3037 | case "(($ac_try" in |
| 3038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3039 | *) ac_try_echo=$ac_try;; |
| 3040 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3041 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3042 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3043 | (eval "$ac_link_default") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3044 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3045 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3046 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3047 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3048 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3049 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3050 | # so that the user can short-circuit this test for compilers unknown to |
| 3051 | # Autoconf. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3052 | for ac_file in $ac_files '' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3053 | do |
| 3054 | test -f "$ac_file" || continue |
| 3055 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3056 | *.$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] | 3057 | ;; |
| 3058 | [ab].out ) |
| 3059 | # We found the default executable, but exeext='' is most |
| 3060 | # certainly right. |
| 3061 | break;; |
| 3062 | *.* ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3063 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3064 | then :; else |
| 3065 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3066 | fi |
| 3067 | # We set ac_cv_exeext here because the later test for it is not |
| 3068 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3069 | # argument, so we may need to know it at that point already. |
| 3070 | # Even if this section looks crufty: it has the advantage of |
| 3071 | # actually working. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3072 | break;; |
| 3073 | * ) |
| 3074 | break;; |
| 3075 | esac |
| 3076 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3077 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3078 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3079 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3080 | ac_file='' |
| 3081 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3082 | if test -z "$ac_file"; then : |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3084 | $as_echo "no" >&6; } |
| 3085 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3087 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3088 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3089 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3090 | { as_fn_set_status 77 |
| 3091 | as_fn_error "C compiler cannot create executables |
| 3092 | See \`config.log' for more details." "$LINENO" 5; }; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3093 | else |
| 3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3095 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3096 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3098 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3100 | $as_echo "$ac_file" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3101 | ac_exeext=$ac_cv_exeext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3102 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3103 | 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] | 3104 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3106 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3107 | if { { ac_try="$ac_link" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3108 | case "(($ac_try" in |
| 3109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3110 | *) ac_try_echo=$ac_try;; |
| 3111 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3112 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3113 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3114 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3115 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3117 | test $ac_status = 0; }; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3118 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3119 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3120 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3121 | # `rm'. |
| 3122 | for ac_file in conftest.exe conftest conftest.*; do |
| 3123 | test -f "$ac_file" || continue |
| 3124 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3125 | *.$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] | 3126 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3127 | break;; |
| 3128 | * ) break;; |
| 3129 | esac |
| 3130 | done |
| 3131 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3132 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3133 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3134 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3135 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3136 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3137 | rm -f conftest conftest$ac_cv_exeext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3139 | $as_echo "$ac_cv_exeext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3140 | |
| 3141 | rm -f conftest.$ac_ext |
| 3142 | EXEEXT=$ac_cv_exeext |
| 3143 | ac_exeext=$EXEEXT |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3145 | /* end confdefs.h. */ |
| 3146 | #include <stdio.h> |
| 3147 | int |
| 3148 | main () |
| 3149 | { |
| 3150 | FILE *f = fopen ("conftest.out", "w"); |
| 3151 | return ferror (f) || fclose (f) != 0; |
| 3152 | |
| 3153 | ; |
| 3154 | return 0; |
| 3155 | } |
| 3156 | _ACEOF |
| 3157 | ac_clean_files="$ac_clean_files conftest.out" |
| 3158 | # Check that the compiler produces executables we can run. If not, either |
| 3159 | # the compiler is broken, or we cross compile. |
| 3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3161 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3162 | if test "$cross_compiling" != yes; then |
| 3163 | { { ac_try="$ac_link" |
| 3164 | case "(($ac_try" in |
| 3165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3166 | *) ac_try_echo=$ac_try;; |
| 3167 | esac |
| 3168 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3169 | $as_echo "$ac_try_echo"; } >&5 |
| 3170 | (eval "$ac_link") 2>&5 |
| 3171 | ac_status=$? |
| 3172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3173 | test $ac_status = 0; } |
| 3174 | if { ac_try='./conftest$ac_cv_exeext' |
| 3175 | { { case "(($ac_try" in |
| 3176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3177 | *) ac_try_echo=$ac_try;; |
| 3178 | esac |
| 3179 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3180 | $as_echo "$ac_try_echo"; } >&5 |
| 3181 | (eval "$ac_try") 2>&5 |
| 3182 | ac_status=$? |
| 3183 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3184 | test $ac_status = 0; }; }; then |
| 3185 | cross_compiling=no |
| 3186 | else |
| 3187 | if test "$cross_compiling" = maybe; then |
| 3188 | cross_compiling=yes |
| 3189 | else |
| 3190 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3191 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3192 | as_fn_error "cannot run C compiled programs. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3193 | If you meant to cross compile, use \`--host'. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3194 | See \`config.log' for more details." "$LINENO" 5; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3195 | fi |
| 3196 | fi |
| 3197 | fi |
| 3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3199 | $as_echo "$cross_compiling" >&6; } |
| 3200 | |
| 3201 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3202 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3204 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3205 | if test "${ac_cv_objext+set}" = set; then : |
| 3206 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3207 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3209 | /* end confdefs.h. */ |
| 3210 | |
| 3211 | int |
| 3212 | main () |
| 3213 | { |
| 3214 | |
| 3215 | ; |
| 3216 | return 0; |
| 3217 | } |
| 3218 | _ACEOF |
| 3219 | rm -f conftest.o conftest.obj |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3220 | if { { ac_try="$ac_compile" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3221 | case "(($ac_try" in |
| 3222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3223 | *) ac_try_echo=$ac_try;; |
| 3224 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3225 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3226 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3227 | (eval "$ac_compile") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3228 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3229 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3230 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3231 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3232 | test -f "$ac_file" || continue; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3233 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3234 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3235 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3236 | break;; |
| 3237 | esac |
| 3238 | done |
| 3239 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3240 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3242 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3243 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3244 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3245 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3246 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3247 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3248 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3249 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3251 | $as_echo "$ac_cv_objext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3252 | OBJEXT=$ac_cv_objext |
| 3253 | ac_objext=$OBJEXT |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3255 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3256 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3257 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3258 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3260 | /* end confdefs.h. */ |
| 3261 | |
| 3262 | int |
| 3263 | main () |
| 3264 | { |
| 3265 | #ifndef __GNUC__ |
| 3266 | choke me |
| 3267 | #endif |
| 3268 | |
| 3269 | ; |
| 3270 | return 0; |
| 3271 | } |
| 3272 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3273 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3274 | ac_compiler_gnu=yes |
| 3275 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3276 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3277 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3279 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3280 | |
| 3281 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3283 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3284 | if test $ac_compiler_gnu = yes; then |
| 3285 | GCC=yes |
| 3286 | else |
| 3287 | GCC= |
| 3288 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3289 | ac_test_CFLAGS=${CFLAGS+set} |
| 3290 | ac_save_CFLAGS=$CFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3292 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3293 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3294 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3295 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3296 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3297 | ac_c_werror_flag=yes |
| 3298 | ac_cv_prog_cc_g=no |
| 3299 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3301 | /* end confdefs.h. */ |
| 3302 | |
| 3303 | int |
| 3304 | main () |
| 3305 | { |
| 3306 | |
| 3307 | ; |
| 3308 | return 0; |
| 3309 | } |
| 3310 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3311 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3312 | ac_cv_prog_cc_g=yes |
| 3313 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3314 | CFLAGS="" |
| 3315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3316 | /* end confdefs.h. */ |
| 3317 | |
| 3318 | int |
| 3319 | main () |
| 3320 | { |
| 3321 | |
| 3322 | ; |
| 3323 | return 0; |
| 3324 | } |
| 3325 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3326 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3327 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3328 | else |
| 3329 | ac_c_werror_flag=$ac_save_c_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3330 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3332 | /* end confdefs.h. */ |
| 3333 | |
| 3334 | int |
| 3335 | main () |
| 3336 | { |
| 3337 | |
| 3338 | ; |
| 3339 | return 0; |
| 3340 | } |
| 3341 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3342 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3343 | ac_cv_prog_cc_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3344 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3346 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3348 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3350 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3351 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3353 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3354 | if test "$ac_test_CFLAGS" = set; then |
| 3355 | CFLAGS=$ac_save_CFLAGS |
| 3356 | elif test $ac_cv_prog_cc_g = yes; then |
| 3357 | if test "$GCC" = yes; then |
| 3358 | CFLAGS="-g -O2" |
| 3359 | else |
| 3360 | CFLAGS="-g" |
| 3361 | fi |
| 3362 | else |
| 3363 | if test "$GCC" = yes; then |
| 3364 | CFLAGS="-O2" |
| 3365 | else |
| 3366 | CFLAGS= |
| 3367 | fi |
| 3368 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3370 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3371 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 3372 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3373 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3374 | ac_cv_prog_cc_c89=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3375 | ac_save_CC=$CC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3377 | /* end confdefs.h. */ |
| 3378 | #include <stdarg.h> |
| 3379 | #include <stdio.h> |
| 3380 | #include <sys/types.h> |
| 3381 | #include <sys/stat.h> |
| 3382 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3383 | struct buf { int x; }; |
| 3384 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3385 | static char *e (p, i) |
| 3386 | char **p; |
| 3387 | int i; |
| 3388 | { |
| 3389 | return p[i]; |
| 3390 | } |
| 3391 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3392 | { |
| 3393 | char *s; |
| 3394 | va_list v; |
| 3395 | va_start (v,p); |
| 3396 | s = g (p, va_arg (v,int)); |
| 3397 | va_end (v); |
| 3398 | return s; |
| 3399 | } |
| 3400 | |
| 3401 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3402 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3403 | These don't provoke an error unfortunately, instead are silently treated |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3404 | as 'x'. The following induces an error, until -std is added to get |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3405 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3406 | 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] | 3407 | that's true only with -std. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3408 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3409 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3410 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3411 | inside strings and character constants. */ |
| 3412 | #define FOO(x) 'x' |
| 3413 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3414 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3415 | int test (int i, double x); |
| 3416 | struct s1 {int (*f) (int a);}; |
| 3417 | struct s2 {int (*f) (double a);}; |
| 3418 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3419 | int argc; |
| 3420 | char **argv; |
| 3421 | int |
| 3422 | main () |
| 3423 | { |
| 3424 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3425 | ; |
| 3426 | return 0; |
| 3427 | } |
| 3428 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3429 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3430 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3431 | do |
| 3432 | CC="$ac_save_CC $ac_arg" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3433 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3434 | ac_cv_prog_cc_c89=$ac_arg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3435 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3436 | rm -f core conftest.err conftest.$ac_objext |
| 3437 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3438 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3439 | rm -f conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3440 | CC=$ac_save_CC |
| 3441 | |
| 3442 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3443 | # AC_CACHE_VAL |
| 3444 | case "x$ac_cv_prog_cc_c89" in |
| 3445 | x) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3447 | $as_echo "none needed" >&6; } ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3448 | xno) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3450 | $as_echo "unsupported" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3451 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3452 | CC="$CC $ac_cv_prog_cc_c89" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3454 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3455 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3456 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3457 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3458 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3459 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3460 | ac_ext=c |
| 3461 | ac_cpp='$CPP $CPPFLAGS' |
| 3462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3465 | DEPDIR="${am__leading_dot}deps" |
| 3466 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3467 | ac_config_commands="$ac_config_commands depfiles" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3468 | |
| 3469 | |
| 3470 | am_make=${MAKE-make} |
| 3471 | cat > confinc << 'END' |
| 3472 | am__doit: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3473 | @echo this is the am__doit target |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3474 | .PHONY: am__doit |
| 3475 | END |
| 3476 | # If we don't find an include directive, just comment out the code. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3478 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3479 | am__include="#" |
| 3480 | am__quote= |
| 3481 | _am_result=none |
| 3482 | # First try GNU make style include. |
| 3483 | echo "include confinc" > confmf |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3484 | # Ignore all kinds of additional output from `make'. |
| 3485 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3486 | *the\ am__doit\ target*) |
| 3487 | am__include=include |
| 3488 | am__quote= |
| 3489 | _am_result=GNU |
| 3490 | ;; |
| 3491 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3492 | # Now try BSD make style include. |
| 3493 | if test "$am__include" = "#"; then |
| 3494 | echo '.include "confinc"' > confmf |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3495 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3496 | *the\ am__doit\ target*) |
| 3497 | am__include=.include |
| 3498 | am__quote="\"" |
| 3499 | _am_result=BSD |
| 3500 | ;; |
| 3501 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3502 | fi |
| 3503 | |
| 3504 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3506 | $as_echo "$_am_result" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3507 | rm -f confinc confmf |
| 3508 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3509 | # Check whether --enable-dependency-tracking was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3510 | if test "${enable_dependency_tracking+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3511 | enableval=$enable_dependency_tracking; |
| 3512 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3513 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3514 | if test "x$enable_dependency_tracking" != xno; then |
| 3515 | am_depcomp="$ac_aux_dir/depcomp" |
| 3516 | AMDEPBACKSLASH='\' |
| 3517 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3518 | if test "x$enable_dependency_tracking" != xno; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3519 | AMDEP_TRUE= |
| 3520 | AMDEP_FALSE='#' |
| 3521 | else |
| 3522 | AMDEP_TRUE='#' |
| 3523 | AMDEP_FALSE= |
| 3524 | fi |
| 3525 | |
| 3526 | |
| 3527 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3528 | depcc="$CC" am_compiler_list= |
| 3529 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3531 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 3532 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| 3533 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3534 | else |
| 3535 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3536 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3537 | # making bogus files that we don't know about and never remove. For |
| 3538 | # instance it was reported that on HP-UX the gcc test will end up |
| 3539 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3540 | # in D'. |
| 3541 | mkdir conftest.dir |
| 3542 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3543 | # using a relative directory. |
| 3544 | cp "$am_depcomp" conftest.dir |
| 3545 | cd conftest.dir |
| 3546 | # We will build objects and dependencies in a subdirectory because |
| 3547 | # it helps to detect inapplicable dependency modes. For instance |
| 3548 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3549 | # side effect of compilation, but ICC will put the dependencies in |
| 3550 | # the current directory while Tru64 will put them in the object |
| 3551 | # directory. |
| 3552 | mkdir sub |
| 3553 | |
| 3554 | am_cv_CC_dependencies_compiler_type=none |
| 3555 | if test "$am_compiler_list" = ""; then |
| 3556 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3557 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3558 | am__universal=false |
| 3559 | case " $depcc " in #( |
| 3560 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3561 | esac |
| 3562 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3563 | for depmode in $am_compiler_list; do |
| 3564 | # Setup a source with many dependencies, because some compilers |
| 3565 | # like to wrap large dependency lists on column 80 (with \), and |
| 3566 | # we should not choose a depcomp mode which is confused by this. |
| 3567 | # |
| 3568 | # We need to recreate these files for each test, as the compiler may |
| 3569 | # overwrite some of them when testing with obscure command lines. |
| 3570 | # This happens at least with the AIX C compiler. |
| 3571 | : > sub/conftest.c |
| 3572 | for i in 1 2 3 4 5 6; do |
| 3573 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3574 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3575 | # Solaris 8's {/usr,}/bin/sh. |
| 3576 | touch sub/conftst$i.h |
| 3577 | done |
| 3578 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3579 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3580 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3581 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3582 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 3583 | # versions had trouble with output in subdirs |
| 3584 | am__obj=sub/conftest.${OBJEXT-o} |
| 3585 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3586 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3587 | gcc) |
| 3588 | # This depmode causes a compiler race in universal mode. |
| 3589 | test "$am__universal" = false || continue |
| 3590 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3591 | nosideeffect) |
| 3592 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3593 | # only be used when explicitly requested |
| 3594 | if test "x$enable_dependency_tracking" = xyes; then |
| 3595 | continue |
| 3596 | else |
| 3597 | break |
| 3598 | fi |
| 3599 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3600 | msvisualcpp | msvcmsys) |
| 3601 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 3602 | # not run yet. These depmodes are late enough in the game, and |
| 3603 | # so weak that their functioning should not be impacted. |
| 3604 | am__obj=conftest.${OBJEXT-o} |
| 3605 | am__minus_obj= |
| 3606 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3607 | none) break ;; |
| 3608 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3609 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3610 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3611 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3612 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3613 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3614 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3615 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3616 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3617 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3618 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3619 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3620 | # that says an option was ignored or not supported. |
| 3621 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3622 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3623 | # The diagnosis changed in icc 8.0: |
| 3624 | # icc: Command line remark: option '-MP' not supported |
| 3625 | if (grep 'ignoring option' conftest.err || |
| 3626 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3627 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3628 | break |
| 3629 | fi |
| 3630 | fi |
| 3631 | done |
| 3632 | |
| 3633 | cd .. |
| 3634 | rm -rf conftest.dir |
| 3635 | else |
| 3636 | am_cv_CC_dependencies_compiler_type=none |
| 3637 | fi |
| 3638 | |
| 3639 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3641 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3642 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3643 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3644 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3645 | test "x$enable_dependency_tracking" != xno \ |
| 3646 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3647 | am__fastdepCC_TRUE= |
| 3648 | am__fastdepCC_FALSE='#' |
| 3649 | else |
| 3650 | am__fastdepCC_TRUE='#' |
| 3651 | am__fastdepCC_FALSE= |
| 3652 | fi |
| 3653 | |
| 3654 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 3655 | if test "x$CC" != xcc; then |
| 3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
| 3657 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
| 3658 | else |
| 3659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
| 3660 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
| 3661 | fi |
| 3662 | set dummy $CC; ac_cc=`$as_echo "$2" | |
| 3663 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 3664 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 3665 | $as_echo_n "(cached) " >&6 |
| 3666 | else |
| 3667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3668 | /* end confdefs.h. */ |
| 3669 | |
| 3670 | int |
| 3671 | main () |
| 3672 | { |
| 3673 | |
| 3674 | ; |
| 3675 | return 0; |
| 3676 | } |
| 3677 | _ACEOF |
| 3678 | # Make sure it works both with $CC and with simple cc. |
| 3679 | # We do the test twice because some compilers refuse to overwrite an |
| 3680 | # existing .o file with -o, though they will create one. |
| 3681 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 3682 | rm -f conftest2.* |
| 3683 | if { { case "(($ac_try" in |
| 3684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3685 | *) ac_try_echo=$ac_try;; |
| 3686 | esac |
| 3687 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3688 | $as_echo "$ac_try_echo"; } >&5 |
| 3689 | (eval "$ac_try") 2>&5 |
| 3690 | ac_status=$? |
| 3691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3692 | test $ac_status = 0; } && |
| 3693 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 3694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3695 | *) ac_try_echo=$ac_try;; |
| 3696 | esac |
| 3697 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3698 | $as_echo "$ac_try_echo"; } >&5 |
| 3699 | (eval "$ac_try") 2>&5 |
| 3700 | ac_status=$? |
| 3701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3702 | test $ac_status = 0; }; |
| 3703 | then |
| 3704 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
| 3705 | if test "x$CC" != xcc; then |
| 3706 | # Test first that cc exists at all. |
| 3707 | if { ac_try='cc -c conftest.$ac_ext >&5' |
| 3708 | { { case "(($ac_try" in |
| 3709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3710 | *) ac_try_echo=$ac_try;; |
| 3711 | esac |
| 3712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3713 | $as_echo "$ac_try_echo"; } >&5 |
| 3714 | (eval "$ac_try") 2>&5 |
| 3715 | ac_status=$? |
| 3716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3717 | test $ac_status = 0; }; }; then |
| 3718 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 3719 | rm -f conftest2.* |
| 3720 | if { { case "(($ac_try" in |
| 3721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3722 | *) ac_try_echo=$ac_try;; |
| 3723 | esac |
| 3724 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3725 | $as_echo "$ac_try_echo"; } >&5 |
| 3726 | (eval "$ac_try") 2>&5 |
| 3727 | ac_status=$? |
| 3728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3729 | test $ac_status = 0; } && |
| 3730 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 3731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3732 | *) ac_try_echo=$ac_try;; |
| 3733 | esac |
| 3734 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3735 | $as_echo "$ac_try_echo"; } >&5 |
| 3736 | (eval "$ac_try") 2>&5 |
| 3737 | ac_status=$? |
| 3738 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3739 | test $ac_status = 0; }; |
| 3740 | then |
| 3741 | # cc works too. |
| 3742 | : |
| 3743 | else |
| 3744 | # cc exists but doesn't like -o. |
| 3745 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 3746 | fi |
| 3747 | fi |
| 3748 | fi |
| 3749 | else |
| 3750 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 3751 | fi |
| 3752 | rm -f core conftest* |
| 3753 | |
| 3754 | fi |
| 3755 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
| 3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3757 | $as_echo "yes" >&6; } |
| 3758 | else |
| 3759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3760 | $as_echo "no" >&6; } |
| 3761 | |
| 3762 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
| 3763 | |
| 3764 | fi |
| 3765 | |
| 3766 | # FIXME: we rely on the cache variable name because |
| 3767 | # there is no other way. |
| 3768 | set dummy $CC |
| 3769 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 3770 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
| 3771 | if test "$am_t" != yes; then |
| 3772 | # Losing compiler, so override with the script. |
| 3773 | # FIXME: It is wrong to rewrite CC. |
| 3774 | # But if we don't then we get into trouble of one sort or another. |
| 3775 | # A longer-term fix would be to have automake use am__CC in this case, |
| 3776 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 3777 | CC="$am_aux_dir/compile $CC" |
| 3778 | fi |
| 3779 | |
| 3780 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3781 | ac_ext=c |
| 3782 | ac_cpp='$CPP $CPPFLAGS' |
| 3783 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3784 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3785 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3787 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3788 | # On Suns, sometimes $CPP names a directory. |
| 3789 | if test -n "$CPP" && test -d "$CPP"; then |
| 3790 | CPP= |
| 3791 | fi |
| 3792 | if test -z "$CPP"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3793 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 3794 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3795 | else |
| 3796 | # Double quotes because CPP needs to be expanded |
| 3797 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3798 | do |
| 3799 | ac_preproc_ok=false |
| 3800 | for ac_c_preproc_warn_flag in '' yes |
| 3801 | do |
| 3802 | # Use a header file that comes with gcc, so configuring glibc |
| 3803 | # with a fresh cross-compiler works. |
| 3804 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3805 | # <limits.h> exists even on freestanding compilers. |
| 3806 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3807 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3809 | /* end confdefs.h. */ |
| 3810 | #ifdef __STDC__ |
| 3811 | # include <limits.h> |
| 3812 | #else |
| 3813 | # include <assert.h> |
| 3814 | #endif |
| 3815 | Syntax error |
| 3816 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3817 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3818 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3819 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3820 | # Broken: fails on valid input. |
| 3821 | continue |
| 3822 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3823 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3824 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3825 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3826 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3828 | /* end confdefs.h. */ |
| 3829 | #include <ac_nonexistent.h> |
| 3830 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3831 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3832 | # Broken: success on invalid input. |
| 3833 | continue |
| 3834 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3835 | # Passes both tests. |
| 3836 | ac_preproc_ok=: |
| 3837 | break |
| 3838 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3839 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3840 | |
| 3841 | done |
| 3842 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3843 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3844 | if $ac_preproc_ok; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3845 | break |
| 3846 | fi |
| 3847 | |
| 3848 | done |
| 3849 | ac_cv_prog_CPP=$CPP |
| 3850 | |
| 3851 | fi |
| 3852 | CPP=$ac_cv_prog_CPP |
| 3853 | else |
| 3854 | ac_cv_prog_CPP=$CPP |
| 3855 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3857 | $as_echo "$CPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3858 | ac_preproc_ok=false |
| 3859 | for ac_c_preproc_warn_flag in '' yes |
| 3860 | do |
| 3861 | # Use a header file that comes with gcc, so configuring glibc |
| 3862 | # with a fresh cross-compiler works. |
| 3863 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3864 | # <limits.h> exists even on freestanding compilers. |
| 3865 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3866 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3868 | /* end confdefs.h. */ |
| 3869 | #ifdef __STDC__ |
| 3870 | # include <limits.h> |
| 3871 | #else |
| 3872 | # include <assert.h> |
| 3873 | #endif |
| 3874 | Syntax error |
| 3875 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3876 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3877 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3878 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3879 | # Broken: fails on valid input. |
| 3880 | continue |
| 3881 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3882 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3883 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3884 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3885 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3887 | /* end confdefs.h. */ |
| 3888 | #include <ac_nonexistent.h> |
| 3889 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3890 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3891 | # Broken: success on invalid input. |
| 3892 | continue |
| 3893 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3894 | # Passes both tests. |
| 3895 | ac_preproc_ok=: |
| 3896 | break |
| 3897 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3898 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3899 | |
| 3900 | done |
| 3901 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3902 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3903 | if $ac_preproc_ok; then : |
| 3904 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3905 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3906 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3907 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 3908 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 3909 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3910 | fi |
| 3911 | |
| 3912 | ac_ext=c |
| 3913 | ac_cpp='$CPP $CPPFLAGS' |
| 3914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3916 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3917 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3918 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3919 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3920 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3921 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3922 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3923 | if test -z "$CXX"; then |
| 3924 | if test -n "$CCC"; then |
| 3925 | CXX=$CCC |
| 3926 | else |
| 3927 | if test -n "$ac_tool_prefix"; then |
| 3928 | 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] | 3929 | do |
| 3930 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3931 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3933 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3934 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 3935 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3936 | else |
| 3937 | if test -n "$CXX"; then |
| 3938 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3939 | else |
| 3940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3941 | for as_dir in $PATH |
| 3942 | do |
| 3943 | IFS=$as_save_IFS |
| 3944 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3945 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3946 | 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] | 3947 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3948 | $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] | 3949 | break 2 |
| 3950 | fi |
| 3951 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3952 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3953 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3954 | |
| 3955 | fi |
| 3956 | fi |
| 3957 | CXX=$ac_cv_prog_CXX |
| 3958 | if test -n "$CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 3960 | $as_echo "$CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3961 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3963 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3964 | fi |
| 3965 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3966 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3967 | test -n "$CXX" && break |
| 3968 | done |
| 3969 | fi |
| 3970 | if test -z "$CXX"; then |
| 3971 | ac_ct_CXX=$CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3972 | 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] | 3973 | do |
| 3974 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3975 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3977 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3978 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 3979 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3980 | else |
| 3981 | if test -n "$ac_ct_CXX"; then |
| 3982 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3983 | else |
| 3984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3985 | for as_dir in $PATH |
| 3986 | do |
| 3987 | IFS=$as_save_IFS |
| 3988 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3989 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3990 | 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] | 3991 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3992 | $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] | 3993 | break 2 |
| 3994 | fi |
| 3995 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3996 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3997 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3998 | |
| 3999 | fi |
| 4000 | fi |
| 4001 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4002 | if test -n "$ac_ct_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4004 | $as_echo "$ac_ct_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4005 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4007 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4008 | fi |
| 4009 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4010 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4011 | test -n "$ac_ct_CXX" && break |
| 4012 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4013 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4014 | if test "x$ac_ct_CXX" = x; then |
| 4015 | CXX="g++" |
| 4016 | else |
| 4017 | case $cross_compiling:$ac_tool_warned in |
| 4018 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4020 | $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] | 4021 | ac_tool_warned=yes ;; |
| 4022 | esac |
| 4023 | CXX=$ac_ct_CXX |
| 4024 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4025 | fi |
| 4026 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4027 | fi |
| 4028 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4029 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4030 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 4031 | set X $ac_compile |
| 4032 | ac_compiler=$2 |
| 4033 | for ac_option in --version -v -V -qversion; do |
| 4034 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4035 | case "(($ac_try" in |
| 4036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4037 | *) ac_try_echo=$ac_try;; |
| 4038 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4039 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4040 | $as_echo "$ac_try_echo"; } >&5 |
| 4041 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4042 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4043 | if test -s conftest.err; then |
| 4044 | sed '10a\ |
| 4045 | ... rest of stderr output deleted ... |
| 4046 | 10q' conftest.err >conftest.er1 |
| 4047 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4048 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 4049 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4050 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4051 | test $ac_status = 0; } |
| 4052 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4053 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 4055 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 4056 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 4057 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4058 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4060 | /* end confdefs.h. */ |
| 4061 | |
| 4062 | int |
| 4063 | main () |
| 4064 | { |
| 4065 | #ifndef __GNUC__ |
| 4066 | choke me |
| 4067 | #endif |
| 4068 | |
| 4069 | ; |
| 4070 | return 0; |
| 4071 | } |
| 4072 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4073 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4074 | ac_compiler_gnu=yes |
| 4075 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4076 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4077 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4079 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4080 | |
| 4081 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4083 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 4084 | if test $ac_compiler_gnu = yes; then |
| 4085 | GXX=yes |
| 4086 | else |
| 4087 | GXX= |
| 4088 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4089 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4090 | ac_save_CXXFLAGS=$CXXFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 4092 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 4093 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 4094 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4095 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4096 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4097 | ac_cxx_werror_flag=yes |
| 4098 | ac_cv_prog_cxx_g=no |
| 4099 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4101 | /* end confdefs.h. */ |
| 4102 | |
| 4103 | int |
| 4104 | main () |
| 4105 | { |
| 4106 | |
| 4107 | ; |
| 4108 | return 0; |
| 4109 | } |
| 4110 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4111 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4112 | ac_cv_prog_cxx_g=yes |
| 4113 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4114 | CXXFLAGS="" |
| 4115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4116 | /* end confdefs.h. */ |
| 4117 | |
| 4118 | int |
| 4119 | main () |
| 4120 | { |
| 4121 | |
| 4122 | ; |
| 4123 | return 0; |
| 4124 | } |
| 4125 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4126 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4127 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4128 | else |
| 4129 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4130 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4132 | /* end confdefs.h. */ |
| 4133 | |
| 4134 | int |
| 4135 | main () |
| 4136 | { |
| 4137 | |
| 4138 | ; |
| 4139 | return 0; |
| 4140 | } |
| 4141 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4142 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4143 | ac_cv_prog_cxx_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4144 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4146 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4148 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4150 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4151 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 4153 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4154 | if test "$ac_test_CXXFLAGS" = set; then |
| 4155 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4156 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4157 | if test "$GXX" = yes; then |
| 4158 | CXXFLAGS="-g -O2" |
| 4159 | else |
| 4160 | CXXFLAGS="-g" |
| 4161 | fi |
| 4162 | else |
| 4163 | if test "$GXX" = yes; then |
| 4164 | CXXFLAGS="-O2" |
| 4165 | else |
| 4166 | CXXFLAGS= |
| 4167 | fi |
| 4168 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4169 | ac_ext=c |
| 4170 | ac_cpp='$CPP $CPPFLAGS' |
| 4171 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4172 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4173 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4174 | |
| 4175 | depcc="$CXX" am_compiler_list= |
| 4176 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4178 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4179 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 4180 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4181 | else |
| 4182 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4183 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4184 | # making bogus files that we don't know about and never remove. For |
| 4185 | # instance it was reported that on HP-UX the gcc test will end up |
| 4186 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4187 | # in D'. |
| 4188 | mkdir conftest.dir |
| 4189 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4190 | # using a relative directory. |
| 4191 | cp "$am_depcomp" conftest.dir |
| 4192 | cd conftest.dir |
| 4193 | # We will build objects and dependencies in a subdirectory because |
| 4194 | # it helps to detect inapplicable dependency modes. For instance |
| 4195 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4196 | # side effect of compilation, but ICC will put the dependencies in |
| 4197 | # the current directory while Tru64 will put them in the object |
| 4198 | # directory. |
| 4199 | mkdir sub |
| 4200 | |
| 4201 | am_cv_CXX_dependencies_compiler_type=none |
| 4202 | if test "$am_compiler_list" = ""; then |
| 4203 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4204 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4205 | am__universal=false |
| 4206 | case " $depcc " in #( |
| 4207 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4208 | esac |
| 4209 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4210 | for depmode in $am_compiler_list; do |
| 4211 | # Setup a source with many dependencies, because some compilers |
| 4212 | # like to wrap large dependency lists on column 80 (with \), and |
| 4213 | # we should not choose a depcomp mode which is confused by this. |
| 4214 | # |
| 4215 | # We need to recreate these files for each test, as the compiler may |
| 4216 | # overwrite some of them when testing with obscure command lines. |
| 4217 | # This happens at least with the AIX C compiler. |
| 4218 | : > sub/conftest.c |
| 4219 | for i in 1 2 3 4 5 6; do |
| 4220 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4221 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4222 | # Solaris 8's {/usr,}/bin/sh. |
| 4223 | touch sub/conftst$i.h |
| 4224 | done |
| 4225 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4226 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4227 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4228 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4229 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 4230 | # versions had trouble with output in subdirs |
| 4231 | am__obj=sub/conftest.${OBJEXT-o} |
| 4232 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4233 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4234 | gcc) |
| 4235 | # This depmode causes a compiler race in universal mode. |
| 4236 | test "$am__universal" = false || continue |
| 4237 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4238 | nosideeffect) |
| 4239 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4240 | # only be used when explicitly requested |
| 4241 | if test "x$enable_dependency_tracking" = xyes; then |
| 4242 | continue |
| 4243 | else |
| 4244 | break |
| 4245 | fi |
| 4246 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4247 | msvisualcpp | msvcmsys) |
| 4248 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 4249 | # not run yet. These depmodes are late enough in the game, and |
| 4250 | # so weak that their functioning should not be impacted. |
| 4251 | am__obj=conftest.${OBJEXT-o} |
| 4252 | am__minus_obj= |
| 4253 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4254 | none) break ;; |
| 4255 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4256 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4257 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4258 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4259 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4260 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4261 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4262 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4263 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4264 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4265 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4266 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4267 | # that says an option was ignored or not supported. |
| 4268 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4269 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4270 | # The diagnosis changed in icc 8.0: |
| 4271 | # icc: Command line remark: option '-MP' not supported |
| 4272 | if (grep 'ignoring option' conftest.err || |
| 4273 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4274 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 4275 | break |
| 4276 | fi |
| 4277 | fi |
| 4278 | done |
| 4279 | |
| 4280 | cd .. |
| 4281 | rm -rf conftest.dir |
| 4282 | else |
| 4283 | am_cv_CXX_dependencies_compiler_type=none |
| 4284 | fi |
| 4285 | |
| 4286 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 4288 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4289 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4290 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4291 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4292 | test "x$enable_dependency_tracking" != xno \ |
| 4293 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4294 | am__fastdepCXX_TRUE= |
| 4295 | am__fastdepCXX_FALSE='#' |
| 4296 | else |
| 4297 | am__fastdepCXX_TRUE='#' |
| 4298 | am__fastdepCXX_FALSE= |
| 4299 | fi |
| 4300 | |
| 4301 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 4302 | if test -n "$ac_tool_prefix"; then |
| 4303 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4304 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4306 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4307 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4308 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4309 | else |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 4310 | if test -n "$RANLIB"; then |
| 4311 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4312 | else |
| 4313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4314 | for as_dir in $PATH |
| 4315 | do |
| 4316 | IFS=$as_save_IFS |
| 4317 | test -z "$as_dir" && as_dir=. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4318 | for ac_exec_ext in '' $ac_executable_extensions; do |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 4319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4320 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4322 | break 2 |
| 4323 | fi |
| 4324 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4325 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4326 | IFS=$as_save_IFS |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 4327 | |
| 4328 | fi |
| 4329 | fi |
| 4330 | RANLIB=$ac_cv_prog_RANLIB |
| 4331 | if test -n "$RANLIB"; then |
| 4332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 4333 | $as_echo "$RANLIB" >&6; } |
| 4334 | else |
| 4335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4336 | $as_echo "no" >&6; } |
| 4337 | fi |
| 4338 | |
| 4339 | |
| 4340 | fi |
| 4341 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4342 | ac_ct_RANLIB=$RANLIB |
| 4343 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4344 | set dummy ranlib; ac_word=$2 |
| 4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4346 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4347 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 4348 | $as_echo_n "(cached) " >&6 |
| 4349 | else |
| 4350 | if test -n "$ac_ct_RANLIB"; then |
| 4351 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4352 | else |
| 4353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4354 | for as_dir in $PATH |
| 4355 | do |
| 4356 | IFS=$as_save_IFS |
| 4357 | test -z "$as_dir" && as_dir=. |
| 4358 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4359 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4360 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4362 | break 2 |
| 4363 | fi |
| 4364 | done |
| 4365 | done |
| 4366 | IFS=$as_save_IFS |
| 4367 | |
| 4368 | fi |
| 4369 | fi |
| 4370 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4371 | if test -n "$ac_ct_RANLIB"; then |
| 4372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 4373 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 4374 | else |
| 4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4376 | $as_echo "no" >&6; } |
| 4377 | fi |
| 4378 | |
| 4379 | if test "x$ac_ct_RANLIB" = x; then |
| 4380 | RANLIB=":" |
| 4381 | else |
| 4382 | case $cross_compiling:$ac_tool_warned in |
| 4383 | yes:) |
| 4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4385 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4386 | ac_tool_warned=yes ;; |
| 4387 | esac |
| 4388 | RANLIB=$ac_ct_RANLIB |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4389 | fi |
| 4390 | else |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 4391 | RANLIB="$ac_cv_prog_RANLIB" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4392 | fi |
| 4393 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4394 | |
| 4395 | |
| 4396 | |
| 4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4398 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4399 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 4400 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4401 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4402 | if test -z "$GREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4403 | ac_path_GREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4404 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4406 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4407 | do |
| 4408 | IFS=$as_save_IFS |
| 4409 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4410 | for ac_prog in grep ggrep; do |
| 4411 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4412 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4413 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4414 | # Check for GNU ac_path_GREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4415 | # Check for GNU $ac_path_GREP |
| 4416 | case `"$ac_path_GREP" --version 2>&1` in |
| 4417 | *GNU*) |
| 4418 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4419 | *) |
| 4420 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4421 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4422 | while : |
| 4423 | do |
| 4424 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4425 | mv "conftest.tmp" "conftest.in" |
| 4426 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4427 | $as_echo 'GREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4428 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4429 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4430 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4431 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4432 | # Best one so far, save it but keep looking for a better one |
| 4433 | ac_cv_path_GREP="$ac_path_GREP" |
| 4434 | ac_path_GREP_max=$ac_count |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4435 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4436 | # 10*(2^10) chars as input seems more than enough |
| 4437 | test $ac_count -gt 10 && break |
| 4438 | done |
| 4439 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4440 | esac |
| 4441 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4442 | $ac_path_GREP_found && break 3 |
| 4443 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4444 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4445 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4446 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4447 | if test -z "$ac_cv_path_GREP"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 4448 | 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] | 4449 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4450 | else |
| 4451 | ac_cv_path_GREP=$GREP |
| 4452 | fi |
| 4453 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4454 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4456 | $as_echo "$ac_cv_path_GREP" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4457 | GREP="$ac_cv_path_GREP" |
| 4458 | |
| 4459 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4461 | $as_echo_n "checking for egrep... " >&6; } |
| 4462 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4463 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4464 | else |
| 4465 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4466 | then ac_cv_path_EGREP="$GREP -E" |
| 4467 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4468 | if test -z "$EGREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4469 | ac_path_EGREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4470 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4472 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4473 | do |
| 4474 | IFS=$as_save_IFS |
| 4475 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4476 | for ac_prog in egrep; do |
| 4477 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4478 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4479 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4480 | # Check for GNU ac_path_EGREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4481 | # Check for GNU $ac_path_EGREP |
| 4482 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4483 | *GNU*) |
| 4484 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4485 | *) |
| 4486 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4487 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4488 | while : |
| 4489 | do |
| 4490 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4491 | mv "conftest.tmp" "conftest.in" |
| 4492 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4493 | $as_echo 'EGREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4494 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4495 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4496 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4497 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4498 | # Best one so far, save it but keep looking for a better one |
| 4499 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4500 | ac_path_EGREP_max=$ac_count |
| 4501 | fi |
| 4502 | # 10*(2^10) chars as input seems more than enough |
| 4503 | test $ac_count -gt 10 && break |
| 4504 | done |
| 4505 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4506 | esac |
| 4507 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4508 | $ac_path_EGREP_found && break 3 |
| 4509 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4510 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4511 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4512 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4513 | if test -z "$ac_cv_path_EGREP"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 4514 | 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] | 4515 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4516 | else |
| 4517 | ac_cv_path_EGREP=$EGREP |
| 4518 | fi |
| 4519 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4520 | fi |
| 4521 | fi |
| 4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4523 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4524 | EGREP="$ac_cv_path_EGREP" |
| 4525 | |
| 4526 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4528 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4529 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 4530 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4531 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4533 | /* end confdefs.h. */ |
| 4534 | #include <stdlib.h> |
| 4535 | #include <stdarg.h> |
| 4536 | #include <string.h> |
| 4537 | #include <float.h> |
| 4538 | |
| 4539 | int |
| 4540 | main () |
| 4541 | { |
| 4542 | |
| 4543 | ; |
| 4544 | return 0; |
| 4545 | } |
| 4546 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4547 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4548 | ac_cv_header_stdc=yes |
| 4549 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4550 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4551 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4553 | |
| 4554 | if test $ac_cv_header_stdc = yes; then |
| 4555 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4557 | /* end confdefs.h. */ |
| 4558 | #include <string.h> |
| 4559 | |
| 4560 | _ACEOF |
| 4561 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4562 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4563 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4564 | else |
| 4565 | ac_cv_header_stdc=no |
| 4566 | fi |
| 4567 | rm -f conftest* |
| 4568 | |
| 4569 | fi |
| 4570 | |
| 4571 | if test $ac_cv_header_stdc = yes; then |
| 4572 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4574 | /* end confdefs.h. */ |
| 4575 | #include <stdlib.h> |
| 4576 | |
| 4577 | _ACEOF |
| 4578 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4579 | $EGREP "free" >/dev/null 2>&1; then : |
| 4580 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4581 | else |
| 4582 | ac_cv_header_stdc=no |
| 4583 | fi |
| 4584 | rm -f conftest* |
| 4585 | |
| 4586 | fi |
| 4587 | |
| 4588 | if test $ac_cv_header_stdc = yes; then |
| 4589 | # /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] | 4590 | if test "$cross_compiling" = yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4591 | : |
| 4592 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4594 | /* end confdefs.h. */ |
| 4595 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4596 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4597 | #if ((' ' & 0x0FF) == 0x020) |
| 4598 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4599 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4600 | #else |
| 4601 | # define ISLOWER(c) \ |
| 4602 | (('a' <= (c) && (c) <= 'i') \ |
| 4603 | || ('j' <= (c) && (c) <= 'r') \ |
| 4604 | || ('s' <= (c) && (c) <= 'z')) |
| 4605 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4606 | #endif |
| 4607 | |
| 4608 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4609 | int |
| 4610 | main () |
| 4611 | { |
| 4612 | int i; |
| 4613 | for (i = 0; i < 256; i++) |
| 4614 | if (XOR (islower (i), ISLOWER (i)) |
| 4615 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4616 | return 2; |
| 4617 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4618 | } |
| 4619 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4620 | if ac_fn_c_try_run "$LINENO"; then : |
| 4621 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4622 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4623 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4624 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4625 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4626 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4627 | fi |
| 4628 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4629 | fi |
| 4630 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4632 | $as_echo "$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4633 | if test $ac_cv_header_stdc = yes; then |
| 4634 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4635 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4636 | |
| 4637 | fi |
| 4638 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 4639 | # =========================================================================== |
| 4640 | # http://www.nongnu.org/autoconf-archive/ax_pthread.html |
| 4641 | # =========================================================================== |
| 4642 | # |
| 4643 | # SYNOPSIS |
| 4644 | # |
| 4645 | # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
| 4646 | # |
| 4647 | # DESCRIPTION |
| 4648 | # |
| 4649 | # This macro figures out how to build C programs using POSIX threads. It |
| 4650 | # sets the PTHREAD_LIBS output variable to the threads library and linker |
| 4651 | # flags, and the PTHREAD_CFLAGS output variable to any special C compiler |
| 4652 | # flags that are needed. (The user can also force certain compiler |
| 4653 | # flags/libs to be tested by setting these environment variables.) |
| 4654 | # |
| 4655 | # Also sets PTHREAD_CC to any special C compiler that is needed for |
| 4656 | # multi-threaded programs (defaults to the value of CC otherwise). (This |
| 4657 | # is necessary on AIX to use the special cc_r compiler alias.) |
| 4658 | # |
| 4659 | # NOTE: You are assumed to not only compile your program with these flags, |
| 4660 | # but also link it with them as well. e.g. you should link with |
| 4661 | # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS |
| 4662 | # |
| 4663 | # If you are only building threads programs, you may wish to use these |
| 4664 | # variables in your default LIBS, CFLAGS, and CC: |
| 4665 | # |
| 4666 | # LIBS="$PTHREAD_LIBS $LIBS" |
| 4667 | # CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 4668 | # CC="$PTHREAD_CC" |
| 4669 | # |
| 4670 | # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant |
| 4671 | # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name |
| 4672 | # (e.g. PTHREAD_CREATE_UNDETACHED on AIX). |
| 4673 | # |
| 4674 | # ACTION-IF-FOUND is a list of shell commands to run if a threads library |
| 4675 | # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it |
| 4676 | # is not found. If ACTION-IF-FOUND is not specified, the default action |
| 4677 | # will define HAVE_PTHREAD. |
| 4678 | # |
| 4679 | # Please let the authors know if this macro fails on any platform, or if |
| 4680 | # you have any other suggestions or comments. This macro was based on work |
| 4681 | # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help |
| 4682 | # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by |
| 4683 | # Alejandro Forero Cuervo to the autoconf macro repository. We are also |
| 4684 | # grateful for the helpful feedback of numerous users. |
| 4685 | # |
| 4686 | # LICENSE |
| 4687 | # |
| 4688 | # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> |
| 4689 | # |
| 4690 | # This program is free software: you can redistribute it and/or modify it |
| 4691 | # under the terms of the GNU General Public License as published by the |
| 4692 | # Free Software Foundation, either version 3 of the License, or (at your |
| 4693 | # option) any later version. |
| 4694 | # |
| 4695 | # This program is distributed in the hope that it will be useful, but |
| 4696 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 4697 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
| 4698 | # Public License for more details. |
| 4699 | # |
| 4700 | # You should have received a copy of the GNU General Public License along |
| 4701 | # with this program. If not, see <http://www.gnu.org/licenses/>. |
| 4702 | # |
| 4703 | # As a special exception, the respective Autoconf Macro's copyright owner |
| 4704 | # gives unlimited permission to copy, distribute and modify the configure |
| 4705 | # scripts that are the output of Autoconf when processing the Macro. You |
| 4706 | # need not follow the terms of the GNU General Public License when using |
| 4707 | # or distributing such scripts, even though portions of the text of the |
| 4708 | # Macro appear in them. The GNU General Public License (GPL) does govern |
| 4709 | # all other use of the material that constitutes the Autoconf Macro. |
| 4710 | # |
| 4711 | # This special exception to the GPL applies to versions of the Autoconf |
| 4712 | # Macro released by the Autoconf Archive. When you make and distribute a |
| 4713 | # modified version of the Autoconf Macro, you may extend this special |
| 4714 | # exception to the GPL to apply to your modified version as well. |
| 4715 | |
| 4716 | #serial 6 |
| 4717 | |
| 4718 | # This is what autoupdate's m4 run will expand. It fires |
| 4719 | # the warning (with _au_warn_XXX), outputs it into the |
| 4720 | # updated configure.ac (with AC_DIAGNOSE), and then outputs |
| 4721 | # the replacement expansion. |
| 4722 | |
| 4723 | |
| 4724 | # This is an auxiliary macro that is also run when |
| 4725 | # autoupdate runs m4. It simply calls m4_warning, but |
| 4726 | # we need a wrapper so that each warning is emitted only |
| 4727 | # once. We break the quoting in m4_warning's argument in |
| 4728 | # order to expand this macro's arguments, not AU_DEFUN's. |
| 4729 | |
| 4730 | |
| 4731 | # Finally, this is the expansion that is picked up by |
| 4732 | # autoconf. It tells the user to run autoupdate, and |
| 4733 | # then outputs the replacement expansion. We do not care |
| 4734 | # about autoupdate's warning because that contains |
| 4735 | # information on what to do *after* running autoupdate. |
| 4736 | |
| 4737 | |
| 4738 | |
| 4739 | |
| 4740 | ac_ext=c |
| 4741 | ac_cpp='$CPP $CPPFLAGS' |
| 4742 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4743 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4744 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4745 | |
| 4746 | ax_pthread_ok=no |
| 4747 | |
| 4748 | # We used to check for pthread.h first, but this fails if pthread.h |
| 4749 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 4750 | # It gets checked for in the link test anyway. |
| 4751 | |
| 4752 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 4753 | # etcetera environment variables, and if threads linking works using |
| 4754 | # them: |
| 4755 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 4756 | save_CFLAGS="$CFLAGS" |
| 4757 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 4758 | save_LIBS="$LIBS" |
| 4759 | LIBS="$PTHREAD_LIBS $LIBS" |
| 4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 4761 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 4762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4763 | /* end confdefs.h. */ |
| 4764 | |
| 4765 | /* Override any GCC internal prototype to avoid an error. |
| 4766 | Use char because int might match the return type of a GCC |
| 4767 | builtin and then its argument prototype would still apply. */ |
| 4768 | #ifdef __cplusplus |
| 4769 | extern "C" |
| 4770 | #endif |
| 4771 | char pthread_join (); |
| 4772 | int |
| 4773 | main () |
| 4774 | { |
| 4775 | return pthread_join (); |
| 4776 | ; |
| 4777 | return 0; |
| 4778 | } |
| 4779 | _ACEOF |
| 4780 | if ac_fn_c_try_link "$LINENO"; then : |
| 4781 | ax_pthread_ok=yes |
| 4782 | fi |
| 4783 | rm -f core conftest.err conftest.$ac_objext \ |
| 4784 | conftest$ac_exeext conftest.$ac_ext |
| 4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 4786 | $as_echo "$ax_pthread_ok" >&6; } |
| 4787 | if test x"$ax_pthread_ok" = xno; then |
| 4788 | PTHREAD_LIBS="" |
| 4789 | PTHREAD_CFLAGS="" |
| 4790 | fi |
| 4791 | LIBS="$save_LIBS" |
| 4792 | CFLAGS="$save_CFLAGS" |
| 4793 | fi |
| 4794 | |
| 4795 | # We must check for the threads library under a number of different |
| 4796 | # names; the ordering is very important because some systems |
| 4797 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 4798 | # libraries is broken (non-POSIX). |
| 4799 | |
| 4800 | # Create a list of thread flags to try. Items starting with a "-" are |
| 4801 | # C compiler flags, and other items are library names, except for "none" |
| 4802 | # which indicates that we try without any flags at all, and "pthread-config" |
| 4803 | # which is a program returning the flags for the Pth emulation library. |
| 4804 | |
| 4805 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 4806 | |
| 4807 | # The ordering *is* (sometimes) important. Some notes on the |
| 4808 | # individual items follow: |
| 4809 | |
| 4810 | # pthreads: AIX (must check this before -lpthread) |
| 4811 | # none: in case threads are in libc; should be tried before -Kthread and |
| 4812 | # other compiler flags to prevent continual compiler warnings |
| 4813 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 4814 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 4815 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 4816 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 4817 | # -pthreads: Solaris/gcc |
| 4818 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 4819 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 4820 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 4821 | # also defines -D_REENTRANT) |
| 4822 | # ... -mt is also the pthreads flag for HP/aCC |
| 4823 | # pthread: Linux, etcetera |
| 4824 | # --thread-safe: KAI C++ |
| 4825 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 4826 | |
| 4827 | case "${host_cpu}-${host_os}" in |
| 4828 | *solaris*) |
| 4829 | |
| 4830 | # On Solaris (at least, for some versions), libc contains stubbed |
| 4831 | # (non-functional) versions of the pthreads routines, so link-based |
| 4832 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 4833 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 4834 | # a function called by this macro, so we could check for that, but |
| 4835 | # who knows whether they'll stub that too in a future libc.) So, |
| 4836 | # we'll just look for -pthreads and -lpthread first: |
| 4837 | |
| 4838 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 4839 | ;; |
| 4840 | |
| 4841 | *-darwin*) |
| 4842 | acx_pthread_flags="-pthread $acx_pthread_flags" |
| 4843 | ;; |
| 4844 | esac |
| 4845 | |
| 4846 | if test x"$ax_pthread_ok" = xno; then |
| 4847 | for flag in $ax_pthread_flags; do |
| 4848 | |
| 4849 | case $flag in |
| 4850 | none) |
| 4851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 4852 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 4853 | ;; |
| 4854 | |
| 4855 | -*) |
| 4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 4857 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 4858 | PTHREAD_CFLAGS="$flag" |
| 4859 | ;; |
| 4860 | |
| 4861 | pthread-config) |
| 4862 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 4863 | set dummy pthread-config; ac_word=$2 |
| 4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4865 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4866 | if test "${ac_cv_prog_ax_pthread_config+set}" = set; then : |
| 4867 | $as_echo_n "(cached) " >&6 |
| 4868 | else |
| 4869 | if test -n "$ax_pthread_config"; then |
| 4870 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 4871 | else |
| 4872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4873 | for as_dir in $PATH |
| 4874 | do |
| 4875 | IFS=$as_save_IFS |
| 4876 | test -z "$as_dir" && as_dir=. |
| 4877 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4878 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4879 | ac_cv_prog_ax_pthread_config="yes" |
| 4880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4881 | break 2 |
| 4882 | fi |
| 4883 | done |
| 4884 | done |
| 4885 | IFS=$as_save_IFS |
| 4886 | |
| 4887 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 4888 | fi |
| 4889 | fi |
| 4890 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 4891 | if test -n "$ax_pthread_config"; then |
| 4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 4893 | $as_echo "$ax_pthread_config" >&6; } |
| 4894 | else |
| 4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4896 | $as_echo "no" >&6; } |
| 4897 | fi |
| 4898 | |
| 4899 | |
| 4900 | if test x"$ax_pthread_config" = xno; then continue; fi |
| 4901 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 4902 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 4903 | ;; |
| 4904 | |
| 4905 | *) |
| 4906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 4907 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 4908 | PTHREAD_LIBS="-l$flag" |
| 4909 | ;; |
| 4910 | esac |
| 4911 | |
| 4912 | save_LIBS="$LIBS" |
| 4913 | save_CFLAGS="$CFLAGS" |
| 4914 | LIBS="$PTHREAD_LIBS $LIBS" |
| 4915 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 4916 | |
| 4917 | # Check for various functions. We must include pthread.h, |
| 4918 | # since some functions may be macros. (On the Sequent, we |
| 4919 | # need a special flag -Kthread to make this header compile.) |
| 4920 | # We check for pthread_join because it is in -lpthread on IRIX |
| 4921 | # while pthread_create is in libc. We check for pthread_attr_init |
| 4922 | # due to DEC craziness with -lpthreads. We check for |
| 4923 | # pthread_cleanup_push because it is one of the few pthread |
| 4924 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 4925 | # We try pthread_create on general principles. |
| 4926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4927 | /* end confdefs.h. */ |
| 4928 | #include <pthread.h> |
| 4929 | static void routine(void* a) {a=0;} |
| 4930 | static void* start_routine(void* a) {return a;} |
| 4931 | int |
| 4932 | main () |
| 4933 | { |
| 4934 | pthread_t th; pthread_attr_t attr; |
| 4935 | pthread_join(th, 0); |
| 4936 | pthread_attr_init(&attr); |
| 4937 | pthread_cleanup_push(routine, 0); |
| 4938 | pthread_create(&th,0,start_routine,0); |
| 4939 | pthread_cleanup_pop(0); |
| 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 | |
| 4950 | LIBS="$save_LIBS" |
| 4951 | CFLAGS="$save_CFLAGS" |
| 4952 | |
| 4953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 4954 | $as_echo "$ax_pthread_ok" >&6; } |
| 4955 | if test "x$ax_pthread_ok" = xyes; then |
| 4956 | break; |
| 4957 | fi |
| 4958 | |
| 4959 | PTHREAD_LIBS="" |
| 4960 | PTHREAD_CFLAGS="" |
| 4961 | done |
| 4962 | fi |
| 4963 | |
| 4964 | # Various other checks: |
| 4965 | if test "x$ax_pthread_ok" = xyes; then |
| 4966 | save_LIBS="$LIBS" |
| 4967 | LIBS="$PTHREAD_LIBS $LIBS" |
| 4968 | save_CFLAGS="$CFLAGS" |
| 4969 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 4970 | |
| 4971 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 4972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| 4973 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| 4974 | attr_name=unknown |
| 4975 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 4976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4977 | /* end confdefs.h. */ |
| 4978 | #include <pthread.h> |
| 4979 | int |
| 4980 | main () |
| 4981 | { |
| 4982 | int attr=$attr; return attr; |
| 4983 | ; |
| 4984 | return 0; |
| 4985 | } |
| 4986 | _ACEOF |
| 4987 | if ac_fn_c_try_link "$LINENO"; then : |
| 4988 | attr_name=$attr; break |
| 4989 | fi |
| 4990 | rm -f core conftest.err conftest.$ac_objext \ |
| 4991 | conftest$ac_exeext conftest.$ac_ext |
| 4992 | done |
| 4993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 4994 | $as_echo "$attr_name" >&6; } |
| 4995 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 4996 | |
| 4997 | cat >>confdefs.h <<_ACEOF |
| 4998 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 4999 | _ACEOF |
| 5000 | |
| 5001 | fi |
| 5002 | |
| 5003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 5004 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 5005 | flag=no |
| 5006 | case "${host_cpu}-${host_os}" in |
| 5007 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 5008 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 5009 | esac |
| 5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 5011 | $as_echo "${flag}" >&6; } |
| 5012 | if test "x$flag" != xno; then |
| 5013 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 5014 | fi |
| 5015 | |
| 5016 | LIBS="$save_LIBS" |
| 5017 | CFLAGS="$save_CFLAGS" |
| 5018 | |
| 5019 | # More AIX lossage: must compile with xlc_r or cc_r |
| 5020 | if test x"$GCC" != xyes; then |
| 5021 | for ac_prog in xlc_r cc_r |
| 5022 | do |
| 5023 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5024 | set dummy $ac_prog; ac_word=$2 |
| 5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5026 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5027 | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : |
| 5028 | $as_echo_n "(cached) " >&6 |
| 5029 | else |
| 5030 | if test -n "$PTHREAD_CC"; then |
| 5031 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 5032 | else |
| 5033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5034 | for as_dir in $PATH |
| 5035 | do |
| 5036 | IFS=$as_save_IFS |
| 5037 | test -z "$as_dir" && as_dir=. |
| 5038 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5039 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5040 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 5041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5042 | break 2 |
| 5043 | fi |
| 5044 | done |
| 5045 | done |
| 5046 | IFS=$as_save_IFS |
| 5047 | |
| 5048 | fi |
| 5049 | fi |
| 5050 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 5051 | if test -n "$PTHREAD_CC"; then |
| 5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 5053 | $as_echo "$PTHREAD_CC" >&6; } |
| 5054 | else |
| 5055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5056 | $as_echo "no" >&6; } |
| 5057 | fi |
| 5058 | |
| 5059 | |
| 5060 | test -n "$PTHREAD_CC" && break |
| 5061 | done |
| 5062 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| 5063 | |
| 5064 | else |
| 5065 | PTHREAD_CC=$CC |
| 5066 | fi |
| 5067 | else |
| 5068 | PTHREAD_CC="$CC" |
| 5069 | fi |
| 5070 | |
| 5071 | |
| 5072 | |
| 5073 | |
| 5074 | |
| 5075 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 5076 | if test x"$ax_pthread_ok" = xyes; then |
| 5077 | |
| 5078 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 5079 | |
| 5080 | : |
| 5081 | else |
| 5082 | ax_pthread_ok=no |
| 5083 | |
| 5084 | fi |
| 5085 | ac_ext=c |
| 5086 | ac_cpp='$CPP $CPPFLAGS' |
| 5087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5090 | |
| 5091 | |
| 5092 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 5093 | # Only build Linux client libs when compiling for Linux |
| 5094 | case $host in |
ted.mielczarek | cfc8628 | 2010-10-20 15:51:38 +0000 | [diff] [blame^] | 5095 | *-*-linux* | *-android* ) |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 5096 | LINUX_HOST=true |
| 5097 | ;; |
| 5098 | esac |
| 5099 | if test x$LINUX_HOST = xtrue; then |
| 5100 | LINUX_HOST_TRUE= |
| 5101 | LINUX_HOST_FALSE='#' |
| 5102 | else |
| 5103 | LINUX_HOST_TRUE='#' |
| 5104 | LINUX_HOST_FALSE= |
| 5105 | fi |
| 5106 | |
| 5107 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 5108 | # Check whether --enable-m32 was given. |
| 5109 | if test "${enable_m32+set}" = set; then : |
| 5110 | enableval=$enable_m32; case "${enableval}" in |
| 5111 | yes) |
ted.mielczarek | efa30c1 | 2010-09-17 13:36:11 +0000 | [diff] [blame] | 5112 | CFLAGS="${CFLAGS} -m32" |
| 5113 | CXXFLAGS="${CXXFLAGS} -m32" |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 5114 | usem32=true |
| 5115 | ;; |
| 5116 | no) |
| 5117 | usem32=false |
| 5118 | ;; |
| 5119 | *) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5120 | as_fn_error "bad value ${enableval} for --enable-m32" "$LINENO" 5 |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 5121 | ;; |
| 5122 | esac |
| 5123 | else |
| 5124 | usem32=false |
| 5125 | fi |
| 5126 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5127 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5128 | # Check whether --enable-processor was given. |
| 5129 | if test "${enable_processor+set}" = set; then : |
| 5130 | enableval=$enable_processor; case "${enableval}" in |
| 5131 | yes) |
| 5132 | disable_processor=false |
| 5133 | ;; |
| 5134 | no) |
| 5135 | disable_processor=true |
| 5136 | ;; |
| 5137 | *) |
| 5138 | as_fn_error "bad value ${enableval} for --disable-processor" "$LINENO" 5 |
| 5139 | ;; |
| 5140 | esac |
| 5141 | else |
| 5142 | disable_processor=false |
| 5143 | fi |
| 5144 | |
| 5145 | if test x$disable_processor = xtrue; then |
| 5146 | DISABLE_PROCESSOR_TRUE= |
| 5147 | DISABLE_PROCESSOR_FALSE='#' |
| 5148 | else |
| 5149 | DISABLE_PROCESSOR_TRUE='#' |
| 5150 | DISABLE_PROCESSOR_FALSE= |
| 5151 | fi |
| 5152 | |
| 5153 | |
| 5154 | if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue; then |
| 5155 | as_fn_error "--disable-processor was specified, and not building for Linux. Nothing to build!" "$LINENO" 5 |
| 5156 | fi |
| 5157 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 5158 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h> |
| 5159 | " |
| 5160 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then : |
| 5161 | |
| 5162 | $as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_len)" >>confdefs.h |
| 5163 | |
| 5164 | else |
| 5165 | |
| 5166 | $as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) : \\ |
| 5167 | ((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr))" >>confdefs.h |
| 5168 | |
| 5169 | fi |
| 5170 | |
| 5171 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 5172 | # Check whether --enable-selftest was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5173 | if test "${enable_selftest+set}" = set; then : |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 5174 | enableval=$enable_selftest; case "${enableval}" in |
| 5175 | yes) |
| 5176 | selftest=true |
| 5177 | ;; |
| 5178 | no) |
| 5179 | selftest=false |
| 5180 | ;; |
| 5181 | *) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5182 | as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 5183 | ;; |
| 5184 | esac |
| 5185 | else |
| 5186 | selftest=false |
| 5187 | fi |
| 5188 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5189 | if test x$selftest = xtrue; then |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 5190 | SELFTEST_TRUE= |
| 5191 | SELFTEST_FALSE='#' |
| 5192 | else |
| 5193 | SELFTEST_TRUE='#' |
| 5194 | SELFTEST_FALSE= |
| 5195 | fi |
| 5196 | |
| 5197 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5198 | ac_config_files="$ac_config_files Makefile" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5199 | |
| 5200 | cat >confcache <<\_ACEOF |
| 5201 | # This file is a shell script that caches the results of configure |
| 5202 | # tests run on this system so they can be shared between configure |
| 5203 | # scripts and configure runs, see configure's option --config-cache. |
| 5204 | # It is not useful on other systems. If it contains results you don't |
| 5205 | # want to keep, you may remove or edit it. |
| 5206 | # |
| 5207 | # config.status only pays attention to the cache file if you give it |
| 5208 | # the --recheck option to rerun configure. |
| 5209 | # |
| 5210 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 5211 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 5212 | # following values. |
| 5213 | |
| 5214 | _ACEOF |
| 5215 | |
| 5216 | # The following way of writing the cache mishandles newlines in values, |
| 5217 | # but we know of no workaround that is simple, portable, and efficient. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5218 | # So, we kill variables containing newlines. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5219 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5220 | # 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] | 5221 | ( |
| 5222 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 5223 | eval ac_val=\$$ac_var |
| 5224 | case $ac_val in #( |
| 5225 | *${as_nl}*) |
| 5226 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5227 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 5228 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5229 | esac |
| 5230 | case $ac_var in #( |
| 5231 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5232 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 5233 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5234 | esac ;; |
| 5235 | esac |
| 5236 | done |
| 5237 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5238 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5239 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 5240 | *${as_nl}ac_space=\ *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5241 | # `set' does not quote correctly, so add quotes: double-quote |
| 5242 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5243 | sed -n \ |
| 5244 | "s/'/'\\\\''/g; |
| 5245 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5246 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5247 | *) |
| 5248 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5249 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5250 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5251 | esac | |
| 5252 | sort |
| 5253 | ) | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5254 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5255 | /^ac_cv_env_/b end |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5256 | t clear |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5257 | :clear |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5258 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 5259 | t end |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5260 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 5261 | :end' >>confcache |
| 5262 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 5263 | if test -w "$cache_file"; then |
| 5264 | test "x$cache_file" != "x/dev/null" && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 5266 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5267 | cat confcache >$cache_file |
| 5268 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 5270 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5271 | fi |
| 5272 | fi |
| 5273 | rm -f confcache |
| 5274 | |
| 5275 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5276 | # Let make expand exec_prefix. |
| 5277 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 5278 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5279 | DEFS=-DHAVE_CONFIG_H |
| 5280 | |
| 5281 | ac_libobjs= |
| 5282 | ac_ltlibobjs= |
| 5283 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 5284 | # 1. Remove the extension, and $U if already installed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5285 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5286 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5287 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 5288 | # will be set to the directory where LIBOBJS objects are built. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5289 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 5290 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5291 | done |
| 5292 | LIBOBJS=$ac_libobjs |
| 5293 | |
| 5294 | LTLIBOBJS=$ac_ltlibobjs |
| 5295 | |
| 5296 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5297 | if test -n "$EXEEXT"; then |
| 5298 | am__EXEEXT_TRUE= |
| 5299 | am__EXEEXT_FALSE='#' |
| 5300 | else |
| 5301 | am__EXEEXT_TRUE='#' |
| 5302 | am__EXEEXT_FALSE= |
| 5303 | fi |
| 5304 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5305 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5306 | as_fn_error "conditional \"AMDEP\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5307 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5308 | fi |
| 5309 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5310 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5311 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5312 | fi |
| 5313 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5314 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5315 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5316 | fi |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 5317 | if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5318 | as_fn_error "conditional \"LINUX_HOST\" was never defined. |
| 5319 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5320 | fi |
| 5321 | if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then |
| 5322 | as_fn_error "conditional \"DISABLE_PROCESSOR\" was never defined. |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 5323 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5324 | fi |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 5325 | if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5326 | as_fn_error "conditional \"SELFTEST\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5327 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 5328 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5329 | |
| 5330 | : ${CONFIG_STATUS=./config.status} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5331 | ac_write_fail=0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5332 | ac_clean_files_save=$ac_clean_files |
| 5333 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 5335 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 5336 | as_write_fail=0 |
| 5337 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5338 | #! $SHELL |
| 5339 | # Generated by $as_me. |
| 5340 | # Run this file to recreate the current configuration. |
| 5341 | # Compiler output produced by configure, useful for debugging |
| 5342 | # configure, is in config.log if it exists. |
| 5343 | |
| 5344 | debug=false |
| 5345 | ac_cs_recheck=false |
| 5346 | ac_cs_silent=false |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5347 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5348 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 5349 | export SHELL |
| 5350 | _ASEOF |
| 5351 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 5352 | ## -------------------- ## |
| 5353 | ## M4sh Initialization. ## |
| 5354 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5355 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5356 | # Be more Bourne compatible |
| 5357 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5358 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5359 | emulate sh |
| 5360 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5361 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5362 | # is contrary to our usage. Disable this feature. |
| 5363 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5364 | setopt NO_GLOB_SUBST |
| 5365 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5366 | case `(set -o) 2>/dev/null` in #( |
| 5367 | *posix*) : |
| 5368 | set -o posix ;; #( |
| 5369 | *) : |
| 5370 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5371 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5372 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5373 | |
| 5374 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5375 | as_nl=' |
| 5376 | ' |
| 5377 | export as_nl |
| 5378 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 5379 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 5380 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5381 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5382 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 5383 | # but without wasting forks for bash or zsh. |
| 5384 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 5385 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 5386 | as_echo='print -r --' |
| 5387 | as_echo_n='print -rn --' |
| 5388 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 5389 | as_echo='printf %s\n' |
| 5390 | as_echo_n='printf %s' |
| 5391 | else |
| 5392 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 5393 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 5394 | as_echo_n='/usr/ucb/echo -n' |
| 5395 | else |
| 5396 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 5397 | as_echo_n_body='eval |
| 5398 | arg=$1; |
| 5399 | case $arg in #( |
| 5400 | *"$as_nl"*) |
| 5401 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 5402 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 5403 | esac; |
| 5404 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 5405 | ' |
| 5406 | export as_echo_n_body |
| 5407 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 5408 | fi |
| 5409 | export as_echo_body |
| 5410 | as_echo='sh -c $as_echo_body as_echo' |
| 5411 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5412 | |
| 5413 | # The user is always right. |
| 5414 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5415 | PATH_SEPARATOR=: |
| 5416 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 5417 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 5418 | PATH_SEPARATOR=';' |
| 5419 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5420 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5421 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5422 | |
| 5423 | # IFS |
| 5424 | # We need space, tab and new line, in precisely that order. Quoting is |
| 5425 | # there to prevent editors from complaining about space-tab. |
| 5426 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 5427 | # splitting by setting IFS to empty value.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5428 | IFS=" "" $as_nl" |
| 5429 | |
| 5430 | # 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] | 5431 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5432 | *[\\/]* ) as_myself=$0 ;; |
| 5433 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5434 | for as_dir in $PATH |
| 5435 | do |
| 5436 | IFS=$as_save_IFS |
| 5437 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5438 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 5439 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5440 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5441 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5442 | ;; |
| 5443 | esac |
| 5444 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 5445 | # in which case we are not to be found in the path. |
| 5446 | if test "x$as_myself" = x; then |
| 5447 | as_myself=$0 |
| 5448 | fi |
| 5449 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5450 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 5451 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5452 | fi |
| 5453 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5454 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 5455 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 5456 | # suppresses any "Segmentation fault" message there. '((' could |
| 5457 | # trigger a bug in pdksh 5.2.14. |
| 5458 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 5459 | do eval test x\${$as_var+set} = xset \ |
| 5460 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5461 | done |
| 5462 | PS1='$ ' |
| 5463 | PS2='> ' |
| 5464 | PS4='+ ' |
| 5465 | |
| 5466 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5467 | LC_ALL=C |
| 5468 | export LC_ALL |
| 5469 | LANGUAGE=C |
| 5470 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5471 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5472 | # CDPATH. |
| 5473 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 5474 | |
| 5475 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5476 | # as_fn_error ERROR [LINENO LOG_FD] |
| 5477 | # --------------------------------- |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5478 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 5479 | # 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] | 5480 | # script with status $?, using 1 if that was 0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5481 | as_fn_error () |
| 5482 | { |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5483 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 5484 | if test "$3"; then |
| 5485 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 5486 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5487 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5488 | $as_echo "$as_me: error: $1" >&2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5489 | as_fn_exit $as_status |
| 5490 | } # as_fn_error |
| 5491 | |
| 5492 | |
| 5493 | # as_fn_set_status STATUS |
| 5494 | # ----------------------- |
| 5495 | # Set $? to STATUS, without forking. |
| 5496 | as_fn_set_status () |
| 5497 | { |
| 5498 | return $1 |
| 5499 | } # as_fn_set_status |
| 5500 | |
| 5501 | # as_fn_exit STATUS |
| 5502 | # ----------------- |
| 5503 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 5504 | as_fn_exit () |
| 5505 | { |
| 5506 | set +e |
| 5507 | as_fn_set_status $1 |
| 5508 | exit $1 |
| 5509 | } # as_fn_exit |
| 5510 | |
| 5511 | # as_fn_unset VAR |
| 5512 | # --------------- |
| 5513 | # Portably unset VAR. |
| 5514 | as_fn_unset () |
| 5515 | { |
| 5516 | { eval $1=; unset $1;} |
| 5517 | } |
| 5518 | as_unset=as_fn_unset |
| 5519 | # as_fn_append VAR VALUE |
| 5520 | # ---------------------- |
| 5521 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 5522 | # advantage of any shell optimizations that allow amortized linear growth over |
| 5523 | # repeated appends, instead of the typical quadratic growth present in naive |
| 5524 | # implementations. |
| 5525 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 5526 | eval 'as_fn_append () |
| 5527 | { |
| 5528 | eval $1+=\$2 |
| 5529 | }' |
| 5530 | else |
| 5531 | as_fn_append () |
| 5532 | { |
| 5533 | eval $1=\$$1\$2 |
| 5534 | } |
| 5535 | fi # as_fn_append |
| 5536 | |
| 5537 | # as_fn_arith ARG... |
| 5538 | # ------------------ |
| 5539 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 5540 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 5541 | # must be portable across $(()) and expr. |
| 5542 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 5543 | eval 'as_fn_arith () |
| 5544 | { |
| 5545 | as_val=$(( $* )) |
| 5546 | }' |
| 5547 | else |
| 5548 | as_fn_arith () |
| 5549 | { |
| 5550 | as_val=`expr "$@" || test $? -eq 1` |
| 5551 | } |
| 5552 | fi # as_fn_arith |
| 5553 | |
| 5554 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5555 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 5556 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 5557 | as_expr=expr |
| 5558 | else |
| 5559 | as_expr=false |
| 5560 | fi |
| 5561 | |
| 5562 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 5563 | as_basename=basename |
| 5564 | else |
| 5565 | as_basename=false |
| 5566 | fi |
| 5567 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5568 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 5569 | as_dirname=dirname |
| 5570 | else |
| 5571 | as_dirname=false |
| 5572 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5573 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5574 | as_me=`$as_basename -- "$0" || |
| 5575 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 5576 | X"$0" : 'X\(//\)$' \| \ |
| 5577 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5578 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5579 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 5580 | s//\1/ |
| 5581 | q |
| 5582 | } |
| 5583 | /^X\/\(\/\/\)$/{ |
| 5584 | s//\1/ |
| 5585 | q |
| 5586 | } |
| 5587 | /^X\/\(\/\).*/{ |
| 5588 | s//\1/ |
| 5589 | q |
| 5590 | } |
| 5591 | s/.*/./; q'` |
| 5592 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5593 | # Avoid depending upon Character Ranges. |
| 5594 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 5595 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 5596 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 5597 | as_cr_digits='0123456789' |
| 5598 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5599 | |
| 5600 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5601 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5602 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5603 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5604 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5605 | xy) ECHO_C='\c';; |
| 5606 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 5607 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5608 | esac;; |
| 5609 | *) |
| 5610 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5611 | esac |
| 5612 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5613 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5614 | if test -d conf$$.dir; then |
| 5615 | rm -f conf$$.dir/conf$$.file |
| 5616 | else |
| 5617 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5618 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5619 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5620 | if (echo >conf$$.file) 2>/dev/null; then |
| 5621 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 5622 | as_ln_s='ln -s' |
| 5623 | # ... but there are two gotchas: |
| 5624 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 5625 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 5626 | # In both cases, we have to default to `cp -p'. |
| 5627 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 5628 | as_ln_s='cp -p' |
| 5629 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 5630 | as_ln_s=ln |
| 5631 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5632 | as_ln_s='cp -p' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5633 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5634 | else |
| 5635 | as_ln_s='cp -p' |
| 5636 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5637 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 5638 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5639 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5640 | |
| 5641 | # as_fn_mkdir_p |
| 5642 | # ------------- |
| 5643 | # Create "$as_dir" as a directory, including parents if necessary. |
| 5644 | as_fn_mkdir_p () |
| 5645 | { |
| 5646 | |
| 5647 | case $as_dir in #( |
| 5648 | -*) as_dir=./$as_dir;; |
| 5649 | esac |
| 5650 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 5651 | as_dirs= |
| 5652 | while :; do |
| 5653 | case $as_dir in #( |
| 5654 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 5655 | *) as_qdir=$as_dir;; |
| 5656 | esac |
| 5657 | as_dirs="'$as_qdir' $as_dirs" |
| 5658 | as_dir=`$as_dirname -- "$as_dir" || |
| 5659 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5660 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 5661 | X"$as_dir" : 'X\(//\)$' \| \ |
| 5662 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 5663 | $as_echo X"$as_dir" | |
| 5664 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 5665 | s//\1/ |
| 5666 | q |
| 5667 | } |
| 5668 | /^X\(\/\/\)[^/].*/{ |
| 5669 | s//\1/ |
| 5670 | q |
| 5671 | } |
| 5672 | /^X\(\/\/\)$/{ |
| 5673 | s//\1/ |
| 5674 | q |
| 5675 | } |
| 5676 | /^X\(\/\).*/{ |
| 5677 | s//\1/ |
| 5678 | q |
| 5679 | } |
| 5680 | s/.*/./; q'` |
| 5681 | test -d "$as_dir" && break |
| 5682 | done |
| 5683 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5684 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5685 | |
| 5686 | |
| 5687 | } # as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5688 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5689 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5690 | else |
| 5691 | test -d ./-p && rmdir ./-p |
| 5692 | as_mkdir_p=false |
| 5693 | fi |
| 5694 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5695 | if test -x / >/dev/null 2>&1; then |
| 5696 | as_test_x='test -x' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5697 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5698 | if ls -dL / >/dev/null 2>&1; then |
| 5699 | as_ls_L_option=L |
| 5700 | else |
| 5701 | as_ls_L_option= |
| 5702 | fi |
| 5703 | as_test_x=' |
| 5704 | eval sh -c '\'' |
| 5705 | if test -d "$1"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5706 | test -d "$1/."; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5707 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5708 | case $1 in #( |
| 5709 | -*)set "./$1";; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5710 | esac; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5711 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5712 | ???[sx]*):;;*)false;;esac;fi |
| 5713 | '\'' sh |
| 5714 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5715 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5716 | as_executable_p=$as_test_x |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5717 | |
| 5718 | # Sed expression to map a string onto a valid CPP name. |
| 5719 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 5720 | |
| 5721 | # Sed expression to map a string onto a valid variable name. |
| 5722 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 5723 | |
| 5724 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5725 | exec 6>&1 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5726 | ## ----------------------------------- ## |
| 5727 | ## Main body of $CONFIG_STATUS script. ## |
| 5728 | ## ----------------------------------- ## |
| 5729 | _ASEOF |
| 5730 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5731 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5732 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5733 | # Save the log message, to keep $0 and so on meaningful, and to |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5734 | # report actual input values of CONFIG_FILES etc. instead of their |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5735 | # values after options handling. |
| 5736 | ac_log=" |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 5737 | This file was extended by breakpad $as_me 0.1, which was |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5738 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5739 | |
| 5740 | CONFIG_FILES = $CONFIG_FILES |
| 5741 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 5742 | CONFIG_LINKS = $CONFIG_LINKS |
| 5743 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 5744 | $ $0 $@ |
| 5745 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5746 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 5747 | " |
| 5748 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5749 | _ACEOF |
| 5750 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5751 | case $ac_config_files in *" |
| 5752 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 5753 | esac |
| 5754 | |
| 5755 | case $ac_config_headers in *" |
| 5756 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 5757 | esac |
| 5758 | |
| 5759 | |
| 5760 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5761 | # Files that config.status was made for. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5762 | config_files="$ac_config_files" |
| 5763 | config_headers="$ac_config_headers" |
| 5764 | config_commands="$ac_config_commands" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5765 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5766 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5767 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5768 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5769 | ac_cs_usage="\ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5770 | \`$as_me' instantiates files and other configuration actions |
| 5771 | from templates according to the current configuration. Unless the files |
| 5772 | and actions are specified as TAGs, all are instantiated by default. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5773 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5774 | Usage: $0 [OPTION]... [TAG]... |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5775 | |
| 5776 | -h, --help print this help, then exit |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5777 | -V, --version print version number and configuration settings, then exit |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 5778 | --config print configuration, then exit |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5779 | -q, --quiet, --silent |
| 5780 | do not print progress messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5781 | -d, --debug don't remove temporary files |
| 5782 | --recheck update $as_me by reconfiguring in the same conditions |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5783 | --file=FILE[:TEMPLATE] |
| 5784 | instantiate the configuration file FILE |
| 5785 | --header=FILE[:TEMPLATE] |
| 5786 | instantiate the configuration header FILE |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5787 | |
| 5788 | Configuration files: |
| 5789 | $config_files |
| 5790 | |
| 5791 | Configuration headers: |
| 5792 | $config_headers |
| 5793 | |
| 5794 | Configuration commands: |
| 5795 | $config_commands |
| 5796 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5797 | Report bugs to <opensource@google.com>." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5798 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5799 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5800 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 5801 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5802 | ac_cs_version="\\ |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 5803 | breakpad config.status 0.1 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5804 | configured by $0, generated by GNU Autoconf 2.65, |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 5805 | with options \\"\$ac_cs_config\\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5806 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5807 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5808 | This config.status script is free software; the Free Software Foundation |
| 5809 | gives unlimited permission to copy, distribute and modify it." |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5810 | |
| 5811 | ac_pwd='$ac_pwd' |
| 5812 | srcdir='$srcdir' |
| 5813 | INSTALL='$INSTALL' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5814 | MKDIR_P='$MKDIR_P' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5815 | AWK='$AWK' |
| 5816 | test -n "\$AWK" || AWK=awk |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5817 | _ACEOF |
| 5818 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5819 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5820 | # The default lists apply if the user does not specify any file. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5821 | ac_need_defaults=: |
| 5822 | while test $# != 0 |
| 5823 | do |
| 5824 | case $1 in |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5825 | --*=*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5826 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 5827 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5828 | ac_shift=: |
| 5829 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5830 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5831 | ac_option=$1 |
| 5832 | ac_optarg=$2 |
| 5833 | ac_shift=shift |
| 5834 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5835 | esac |
| 5836 | |
| 5837 | case $ac_option in |
| 5838 | # Handling of the options. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5839 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 5840 | ac_cs_recheck=: ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5841 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5842 | $as_echo "$ac_cs_version"; exit ;; |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 5843 | --config | --confi | --conf | --con | --co | --c ) |
| 5844 | $as_echo "$ac_cs_config"; exit ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5845 | --debug | --debu | --deb | --de | --d | -d ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5846 | debug=: ;; |
| 5847 | --file | --fil | --fi | --f ) |
| 5848 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5849 | case $ac_optarg in |
| 5850 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 5851 | esac |
| 5852 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5853 | ac_need_defaults=false;; |
| 5854 | --header | --heade | --head | --hea ) |
| 5855 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5856 | case $ac_optarg in |
| 5857 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 5858 | esac |
| 5859 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5860 | ac_need_defaults=false;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5861 | --he | --h) |
| 5862 | # Conflict between --help and --header |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5863 | as_fn_error "ambiguous option: \`$1' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5864 | Try \`$0 --help' for more information.";; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5865 | --help | --hel | -h ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5866 | $as_echo "$ac_cs_usage"; exit ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5867 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 5868 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 5869 | ac_cs_silent=: ;; |
| 5870 | |
| 5871 | # This is an error. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5872 | -*) as_fn_error "unrecognized option: \`$1' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5873 | Try \`$0 --help' for more information." ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5874 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5875 | *) as_fn_append ac_config_targets " $1" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5876 | ac_need_defaults=false ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5877 | |
| 5878 | esac |
| 5879 | shift |
| 5880 | done |
| 5881 | |
| 5882 | ac_configure_extra_args= |
| 5883 | |
| 5884 | if $ac_cs_silent; then |
| 5885 | exec 6>/dev/null |
| 5886 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 5887 | fi |
| 5888 | |
| 5889 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5890 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5891 | if \$ac_cs_recheck; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5892 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 5893 | shift |
| 5894 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 5895 | CONFIG_SHELL='$SHELL' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5896 | export CONFIG_SHELL |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5897 | exec "\$@" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5898 | fi |
| 5899 | |
| 5900 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5901 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5902 | exec 5>>config.log |
| 5903 | { |
| 5904 | echo |
| 5905 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 5906 | ## Running $as_me. ## |
| 5907 | _ASBOX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5908 | $as_echo "$ac_log" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5909 | } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5910 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5911 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5912 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5913 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5914 | # INIT-COMMANDS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5915 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5916 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 5917 | |
| 5918 | _ACEOF |
| 5919 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5920 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5921 | |
| 5922 | # Handling of arguments. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5923 | for ac_config_target in $ac_config_targets |
| 5924 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5925 | case $ac_config_target in |
| 5926 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 5927 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 5928 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 5929 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5930 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5931 | esac |
| 5932 | done |
| 5933 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5934 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5935 | # If the user did not use the arguments to specify the items to instantiate, |
| 5936 | # then the envvar interface is used. Set only those that are not. |
| 5937 | # We use the long form for the default assignment because of an extremely |
| 5938 | # bizarre bug on SunOS 4.1.3. |
| 5939 | if $ac_need_defaults; then |
| 5940 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 5941 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 5942 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 5943 | fi |
| 5944 | |
| 5945 | # Have a temporary directory for convenience. Make it in the build tree |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5946 | # simply because there is no reason against having it here, and in addition, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5947 | # creating and moving files from /tmp can sometimes cause problems. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5948 | # Hook for its removal unless debugging. |
| 5949 | # Note that there is a small window in which the directory will not be cleaned: |
| 5950 | # after its creation but before its name has been assigned to `$tmp'. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5951 | $debug || |
| 5952 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5953 | tmp= |
| 5954 | trap 'exit_status=$? |
| 5955 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 5956 | ' 0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5957 | trap 'as_fn_exit 1' 1 2 13 15 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5958 | } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5959 | # Create a (secure) tmp directory for tmp files. |
| 5960 | |
| 5961 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5962 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5963 | test -n "$tmp" && test -d "$tmp" |
| 5964 | } || |
| 5965 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5966 | tmp=./conf$$-$RANDOM |
| 5967 | (umask 077 && mkdir "$tmp") |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5968 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5969 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5970 | # Set up the scripts for CONFIG_FILES section. |
| 5971 | # No need to generate them if there are no CONFIG_FILES. |
| 5972 | # This happens for instance with `./config.status config.h'. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5973 | if test -n "$CONFIG_FILES"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5974 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5975 | |
| 5976 | ac_cr=`echo X | tr X '\015'` |
| 5977 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 5978 | # But we know of no other shell where ac_cr would be empty at this |
| 5979 | # point, so we can use a bashism as a fallback. |
| 5980 | if test "x$ac_cr" = x; then |
| 5981 | eval ac_cr=\$\'\\r\' |
| 5982 | fi |
| 5983 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 5984 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5985 | ac_cs_awk_cr='\r' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5986 | else |
| 5987 | ac_cs_awk_cr=$ac_cr |
| 5988 | fi |
| 5989 | |
| 5990 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5991 | _ACEOF |
| 5992 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5993 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5994 | { |
| 5995 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 5996 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 5997 | echo "_ACEOF" |
| 5998 | } >conf$$subs.sh || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 5999 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6000 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6001 | ac_delim='%!_!# ' |
| 6002 | for ac_last_try in false false false false false :; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6003 | . ./conf$$subs.sh || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6004 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6005 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6006 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 6007 | if test $ac_delim_n = $ac_delim_num; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6008 | break |
| 6009 | elif $ac_last_try; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6010 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6011 | else |
| 6012 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6013 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6014 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6015 | rm -f conf$$subs.sh |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6016 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6017 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6018 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6019 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6020 | sed -n ' |
| 6021 | h |
| 6022 | s/^/S["/; s/!.*/"]=/ |
| 6023 | p |
| 6024 | g |
| 6025 | s/^[^!]*!// |
| 6026 | :repl |
| 6027 | t repl |
| 6028 | s/'"$ac_delim"'$// |
| 6029 | t delim |
| 6030 | :nl |
| 6031 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 6032 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6033 | t more1 |
| 6034 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 6035 | p |
| 6036 | n |
| 6037 | b repl |
| 6038 | :more1 |
| 6039 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6040 | p |
| 6041 | g |
| 6042 | s/.\{148\}// |
| 6043 | t nl |
| 6044 | :delim |
| 6045 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 6046 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6047 | t more2 |
| 6048 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 6049 | p |
| 6050 | b |
| 6051 | :more2 |
| 6052 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6053 | p |
| 6054 | g |
| 6055 | s/.\{148\}// |
| 6056 | t delim |
| 6057 | ' <conf$$subs.awk | sed ' |
| 6058 | /^[^""]/{ |
| 6059 | N |
| 6060 | s/\n// |
| 6061 | } |
| 6062 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6063 | rm -f conf$$subs.awk |
| 6064 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6065 | _ACAWK |
| 6066 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 6067 | for (key in S) S_is_set[key] = 1 |
| 6068 | FS = "" |
| 6069 | |
| 6070 | } |
| 6071 | { |
| 6072 | line = $ 0 |
| 6073 | nfields = split(line, field, "@") |
| 6074 | substed = 0 |
| 6075 | len = length(field[1]) |
| 6076 | for (i = 2; i < nfields; i++) { |
| 6077 | key = field[i] |
| 6078 | keylen = length(key) |
| 6079 | if (S_is_set[key]) { |
| 6080 | value = S[key] |
| 6081 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 6082 | len += length(value) + length(field[++i]) |
| 6083 | substed = 1 |
| 6084 | } else |
| 6085 | len += 1 + keylen |
| 6086 | } |
| 6087 | |
| 6088 | print line |
| 6089 | } |
| 6090 | |
| 6091 | _ACAWK |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6092 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6093 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6094 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 6095 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 6096 | else |
| 6097 | cat |
| 6098 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6099 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6100 | _ACEOF |
| 6101 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6102 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 6103 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6104 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 6105 | # (actually we leave an empty line to preserve line numbers). |
| 6106 | if test "x$srcdir" = x.; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6107 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 6108 | s/:*\$(srcdir):*/:/ |
| 6109 | s/:*\${srcdir}:*/:/ |
| 6110 | s/:*@srcdir@:*/:/ |
| 6111 | s/^\([^=]*=[ ]*\):*/\1/ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6112 | s/:*$// |
| 6113 | s/^[^=]*=[ ]*$// |
| 6114 | }' |
| 6115 | fi |
| 6116 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6117 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6118 | fi # test -n "$CONFIG_FILES" |
| 6119 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6120 | # Set up the scripts for CONFIG_HEADERS section. |
| 6121 | # No need to generate them if there are no CONFIG_HEADERS. |
| 6122 | # This happens for instance with `./config.status Makefile'. |
| 6123 | if test -n "$CONFIG_HEADERS"; then |
| 6124 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 6125 | BEGIN { |
| 6126 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6127 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6128 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 6129 | # here-document in config.status, that substitutes the proper values into |
| 6130 | # config.h.in to produce config.h. |
| 6131 | |
| 6132 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 6133 | # handling of long lines. |
| 6134 | ac_delim='%!_!# ' |
| 6135 | for ac_last_try in false false :; do |
| 6136 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 6137 | if test -z "$ac_t"; then |
| 6138 | break |
| 6139 | elif $ac_last_try; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6140 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6141 | else |
| 6142 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 6143 | fi |
| 6144 | done |
| 6145 | |
| 6146 | # For the awk script, D is an array of macro values keyed by name, |
| 6147 | # likewise P contains macro parameters if any. Preserve backslash |
| 6148 | # newline sequences. |
| 6149 | |
| 6150 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 6151 | sed -n ' |
| 6152 | s/.\{148\}/&'"$ac_delim"'/g |
| 6153 | t rset |
| 6154 | :rset |
| 6155 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 6156 | t def |
| 6157 | d |
| 6158 | :def |
| 6159 | s/\\$// |
| 6160 | t bsnl |
| 6161 | s/["\\]/\\&/g |
| 6162 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6163 | D["\1"]=" \3"/p |
| 6164 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 6165 | d |
| 6166 | :bsnl |
| 6167 | s/["\\]/\\&/g |
| 6168 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6169 | D["\1"]=" \3\\\\\\n"\\/p |
| 6170 | t cont |
| 6171 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 6172 | t cont |
| 6173 | d |
| 6174 | :cont |
| 6175 | n |
| 6176 | s/.\{148\}/&'"$ac_delim"'/g |
| 6177 | t clear |
| 6178 | :clear |
| 6179 | s/\\$// |
| 6180 | t bsnlc |
| 6181 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 6182 | d |
| 6183 | :bsnlc |
| 6184 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 6185 | b cont |
| 6186 | ' <confdefs.h | sed ' |
| 6187 | s/'"$ac_delim"'/"\\\ |
| 6188 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6189 | |
| 6190 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6191 | for (key in D) D_is_set[key] = 1 |
| 6192 | FS = "" |
| 6193 | } |
| 6194 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 6195 | line = \$ 0 |
| 6196 | split(line, arg, " ") |
| 6197 | if (arg[1] == "#") { |
| 6198 | defundef = arg[2] |
| 6199 | mac1 = arg[3] |
| 6200 | } else { |
| 6201 | defundef = substr(arg[1], 2) |
| 6202 | mac1 = arg[2] |
| 6203 | } |
| 6204 | split(mac1, mac2, "(") #) |
| 6205 | macro = mac2[1] |
| 6206 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 6207 | if (D_is_set[macro]) { |
| 6208 | # Preserve the white space surrounding the "#". |
| 6209 | print prefix "define", macro P[macro] D[macro] |
| 6210 | next |
| 6211 | } else { |
| 6212 | # Replace #undef with comments. This is necessary, for example, |
| 6213 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 6214 | # on some systems where configure will not decide to define it. |
| 6215 | if (defundef == "undef") { |
| 6216 | print "/*", prefix defundef, macro, "*/" |
| 6217 | next |
| 6218 | } |
| 6219 | } |
| 6220 | } |
| 6221 | { print } |
| 6222 | _ACAWK |
| 6223 | _ACEOF |
| 6224 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6225 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6226 | fi # test -n "$CONFIG_HEADERS" |
| 6227 | |
| 6228 | |
| 6229 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 6230 | shift |
| 6231 | for ac_tag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6232 | do |
| 6233 | case $ac_tag in |
| 6234 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 6235 | esac |
| 6236 | case $ac_mode$ac_tag in |
| 6237 | :[FHL]*:*);; |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6238 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6239 | :[FH]-) ac_tag=-:-;; |
| 6240 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 6241 | esac |
| 6242 | ac_save_IFS=$IFS |
| 6243 | IFS=: |
| 6244 | set x $ac_tag |
| 6245 | IFS=$ac_save_IFS |
| 6246 | shift |
| 6247 | ac_file=$1 |
| 6248 | shift |
| 6249 | |
| 6250 | case $ac_mode in |
| 6251 | :L) ac_source=$1;; |
| 6252 | :[FH]) |
| 6253 | ac_file_inputs= |
| 6254 | for ac_f |
| 6255 | do |
| 6256 | case $ac_f in |
| 6257 | -) ac_f="$tmp/stdin";; |
| 6258 | *) # Look for the file first in the build tree, then in the source tree |
| 6259 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 6260 | # because $ac_f cannot contain `:'. |
| 6261 | test -f "$ac_f" || |
| 6262 | case $ac_f in |
| 6263 | [\\/$]*) false;; |
| 6264 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 6265 | esac || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6266 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6267 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6268 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 6269 | as_fn_append ac_file_inputs " '$ac_f'" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6270 | done |
| 6271 | |
| 6272 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 6273 | # use $as_me), people would be surprised to read: |
| 6274 | # /* config.h. Generated by config.status. */ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6275 | configure_input='Generated from '` |
| 6276 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 6277 | `' by configure.' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6278 | if test x"$ac_file" != x-; then |
| 6279 | configure_input="$ac_file. $configure_input" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6280 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 6281 | $as_echo "$as_me: creating $ac_file" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6282 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6283 | # Neutralize special characters interpreted by sed in replacement strings. |
| 6284 | case $configure_input in #( |
| 6285 | *\&* | *\|* | *\\* ) |
| 6286 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 6287 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 6288 | *) ac_sed_conf_input=$configure_input;; |
| 6289 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6290 | |
| 6291 | case $ac_tag in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6292 | *:-:* | *:-) cat >"$tmp/stdin" \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6293 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6294 | esac |
| 6295 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6296 | esac |
| 6297 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6298 | ac_dir=`$as_dirname -- "$ac_file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6299 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6300 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6301 | X"$ac_file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6302 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6303 | $as_echo X"$ac_file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6304 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6305 | s//\1/ |
| 6306 | q |
| 6307 | } |
| 6308 | /^X\(\/\/\)[^/].*/{ |
| 6309 | s//\1/ |
| 6310 | q |
| 6311 | } |
| 6312 | /^X\(\/\/\)$/{ |
| 6313 | s//\1/ |
| 6314 | q |
| 6315 | } |
| 6316 | /^X\(\/\).*/{ |
| 6317 | s//\1/ |
| 6318 | q |
| 6319 | } |
| 6320 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6321 | as_dir="$ac_dir"; as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6322 | ac_builddir=. |
| 6323 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6324 | case "$ac_dir" in |
| 6325 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6326 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6327 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6328 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6329 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6330 | case $ac_top_builddir_sub in |
| 6331 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6332 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 6333 | esac ;; |
| 6334 | esac |
| 6335 | ac_abs_top_builddir=$ac_pwd |
| 6336 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 6337 | # for backward compatibility: |
| 6338 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6339 | |
| 6340 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6341 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6342 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6343 | ac_top_srcdir=$ac_top_builddir_sub |
| 6344 | ac_abs_top_srcdir=$ac_pwd ;; |
| 6345 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6346 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6347 | ac_top_srcdir=$srcdir |
| 6348 | ac_abs_top_srcdir=$srcdir ;; |
| 6349 | *) # Relative name. |
| 6350 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 6351 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 6352 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6353 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6354 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6355 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6356 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6357 | case $ac_mode in |
| 6358 | :F) |
| 6359 | # |
| 6360 | # CONFIG_FILE |
| 6361 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6362 | |
| 6363 | case $INSTALL in |
| 6364 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6365 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6366 | esac |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6367 | ac_MKDIR_P=$MKDIR_P |
| 6368 | case $MKDIR_P in |
| 6369 | [\\/$]* | ?:[\\/]* ) ;; |
| 6370 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 6371 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6372 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6373 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6374 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6375 | # If the template does not know about datarootdir, expand it. |
| 6376 | # FIXME: This hack should be removed a few years after 2.60. |
| 6377 | ac_datarootdir_hack=; ac_datarootdir_seen= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6378 | ac_sed_dataroot=' |
| 6379 | /datarootdir/ { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6380 | p |
| 6381 | q |
| 6382 | } |
| 6383 | /@datadir@/p |
| 6384 | /@docdir@/p |
| 6385 | /@infodir@/p |
| 6386 | /@localedir@/p |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6387 | /@mandir@/p' |
| 6388 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6389 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 6390 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6391 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 6392 | $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] | 6393 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6394 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6395 | ac_datarootdir_hack=' |
| 6396 | s&@datadir@&$datadir&g |
| 6397 | s&@docdir@&$docdir&g |
| 6398 | s&@infodir@&$infodir&g |
| 6399 | s&@localedir@&$localedir&g |
| 6400 | s&@mandir@&$mandir&g |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6401 | s&\\\${datarootdir}&$datarootdir&g' ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6402 | esac |
| 6403 | _ACEOF |
| 6404 | |
| 6405 | # Neutralize VPATH when `$srcdir' = `.'. |
| 6406 | # Shell code in configure.ac might set extrasub. |
| 6407 | # FIXME: do we really want to maintain this feature? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6408 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6409 | ac_sed_extra="$ac_vpsub |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6410 | $extrasub |
| 6411 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6412 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6413 | :t |
| 6414 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6415 | s|@configure_input@|$ac_sed_conf_input|;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6416 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6417 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6418 | s&@srcdir@&$ac_srcdir&;t t |
| 6419 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 6420 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 6421 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 6422 | s&@builddir@&$ac_builddir&;t t |
| 6423 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 6424 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 6425 | s&@INSTALL@&$ac_INSTALL&;t t |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6426 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6427 | $ac_datarootdir_hack |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6428 | " |
| 6429 | 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] | 6430 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6431 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6432 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 6433 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 6434 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6435 | { $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] | 6436 | which seems to be undefined. Please make sure it is defined." >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6437 | $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] | 6438 | which seems to be undefined. Please make sure it is defined." >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6439 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6440 | rm -f "$tmp/stdin" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6441 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6442 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 6443 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 6444 | esac \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6445 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6446 | ;; |
| 6447 | :H) |
| 6448 | # |
| 6449 | # CONFIG_HEADER |
| 6450 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6451 | if test x"$ac_file" != x-; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6452 | { |
| 6453 | $as_echo "/* $configure_input */" \ |
| 6454 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 6455 | } >"$tmp/config.h" \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6456 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6457 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 6458 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 6459 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6460 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6461 | rm -f "$ac_file" |
| 6462 | mv "$tmp/config.h" "$ac_file" \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6463 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6464 | fi |
| 6465 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6466 | $as_echo "/* $configure_input */" \ |
| 6467 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6468 | || as_fn_error "could not create -" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6469 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6470 | # Compute "$ac_file"'s index in $config_headers. |
| 6471 | _am_arg="$ac_file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6472 | _am_stamp_count=1 |
| 6473 | for _am_header in $config_headers :; do |
| 6474 | case $_am_header in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6475 | $_am_arg | $_am_arg:* ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6476 | break ;; |
| 6477 | * ) |
| 6478 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 6479 | esac |
| 6480 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6481 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 6482 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6483 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 6484 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 6485 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 6486 | $as_echo X"$_am_arg" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6487 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6488 | s//\1/ |
| 6489 | q |
| 6490 | } |
| 6491 | /^X\(\/\/\)[^/].*/{ |
| 6492 | s//\1/ |
| 6493 | q |
| 6494 | } |
| 6495 | /^X\(\/\/\)$/{ |
| 6496 | s//\1/ |
| 6497 | q |
| 6498 | } |
| 6499 | /^X\(\/\).*/{ |
| 6500 | s//\1/ |
| 6501 | q |
| 6502 | } |
| 6503 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 6504 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6505 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6506 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 6507 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6508 | ;; |
| 6509 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6510 | |
| 6511 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6512 | case $ac_file$ac_mode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6513 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 6514 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 6515 | # are listed without --file. Let's play safe and only enable the eval |
| 6516 | # if we detect the quoting. |
| 6517 | case $CONFIG_FILES in |
| 6518 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 6519 | *) set x $CONFIG_FILES ;; |
| 6520 | esac |
| 6521 | shift |
| 6522 | for mf |
| 6523 | do |
| 6524 | # Strip MF so we end up with the name of the file. |
| 6525 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 6526 | # Check whether this is an Automake generated Makefile or not. |
| 6527 | # We used to match only the files named `Makefile.in', but |
| 6528 | # some people rename them; so instead we look at the file content. |
| 6529 | # Grep'ing the first line is not enough: some people post-process |
| 6530 | # each Makefile.in and add a new line on top of each file to say so. |
| 6531 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 6532 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 6533 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 6534 | dirpart=`$as_dirname -- "$mf" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6535 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6536 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 6537 | X"$mf" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6538 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6539 | $as_echo X"$mf" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6540 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6541 | s//\1/ |
| 6542 | q |
| 6543 | } |
| 6544 | /^X\(\/\/\)[^/].*/{ |
| 6545 | s//\1/ |
| 6546 | q |
| 6547 | } |
| 6548 | /^X\(\/\/\)$/{ |
| 6549 | s//\1/ |
| 6550 | q |
| 6551 | } |
| 6552 | /^X\(\/\).*/{ |
| 6553 | s//\1/ |
| 6554 | q |
| 6555 | } |
| 6556 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6557 | else |
| 6558 | continue |
| 6559 | fi |
| 6560 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 6561 | # from the Makefile without running `make'. |
| 6562 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 6563 | test -z "$DEPDIR" && continue |
| 6564 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 6565 | test -z "am__include" && continue |
| 6566 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 6567 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 6568 | U=`sed -n 's/^U = //p' < "$mf"` |
| 6569 | # Find all dependency output files, they are included files with |
| 6570 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 6571 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 6572 | # expansion. |
| 6573 | for file in `sed -n " |
| 6574 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 6575 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 6576 | # Make sure the directory exists. |
| 6577 | test -f "$dirpart/$file" && continue |
| 6578 | fdir=`$as_dirname -- "$file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6579 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6580 | X"$file" : 'X\(//\)[^/]' \| \ |
| 6581 | X"$file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6582 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6583 | $as_echo X"$file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6584 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6585 | s//\1/ |
| 6586 | q |
| 6587 | } |
| 6588 | /^X\(\/\/\)[^/].*/{ |
| 6589 | s//\1/ |
| 6590 | q |
| 6591 | } |
| 6592 | /^X\(\/\/\)$/{ |
| 6593 | s//\1/ |
| 6594 | q |
| 6595 | } |
| 6596 | /^X\(\/\).*/{ |
| 6597 | s//\1/ |
| 6598 | q |
| 6599 | } |
| 6600 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6601 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 6602 | # echo "creating $dirpart/$file" |
| 6603 | echo '# dummy' > "$dirpart/$file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6604 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6605 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6606 | } |
| 6607 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6608 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6609 | esac |
| 6610 | done # for ac_tag |
| 6611 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6612 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6613 | as_fn_exit 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6614 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6615 | ac_clean_files=$ac_clean_files_save |
| 6616 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6617 | test $ac_write_fail = 0 || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6618 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6619 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6620 | |
| 6621 | # configure is writing to config.log, and then calls config.status. |
| 6622 | # config.status does its own redirection, appending to config.log. |
| 6623 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 6624 | # by configure, so config.status won't be able to write to it; its |
| 6625 | # output is simply discarded. So we exec the FD to /dev/null, |
| 6626 | # effectively closing config.log, so it can be properly (re)opened and |
| 6627 | # appended to by config.status. When coming back to configure, we |
| 6628 | # need to make the FD available again. |
| 6629 | if test "$no_create" != yes; then |
| 6630 | ac_cs_success=: |
| 6631 | ac_config_status_args= |
| 6632 | test "$silent" = yes && |
| 6633 | ac_config_status_args="$ac_config_status_args --quiet" |
| 6634 | exec 5>/dev/null |
| 6635 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 6636 | exec 5>>config.log |
| 6637 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 6638 | # would make configure fail if this is the last instruction. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6639 | $ac_cs_success || as_fn_exit $? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6640 | fi |
| 6641 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 6642 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 6643 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6644 | fi |
| 6645 | |