Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for pjproject 0.8. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4 | # |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12 | # Be Bourne compatible |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 23 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 24 | # Support unset when possible. |
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 29 | fi |
| 30 | |
| 31 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 63 | |
| 64 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 97 | fi |
| 98 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 99 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 123 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 137 | /*) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 152 | done |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 153 | ;; |
| 154 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 165 | sed ' |
| 166 | N |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 170 | t loop |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 173 | ' >$as_me.lineno && |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 174 | chmod +x $as_me.lineno || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 192 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 193 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 207 | as_ln_s='cp -p' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 216 | rm -f conf$$ conf$$.exe conf$$.file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 217 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 220 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 221 | test -d ./-p && rmdir ./-p |
| 222 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 223 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 224 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 225 | as_executable_p="test -f" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 232 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 233 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 239 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 240 | # CDPATH. |
| 241 | $as_unset CDPATH |
| 242 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 243 | |
| 244 | # Name of the host. |
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 | # so uname gets run too. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 249 | exec 6>&1 |
| 250 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 251 | # |
| 252 | # Initializations. |
| 253 | # |
| 254 | ac_default_prefix=/usr/local |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 255 | ac_config_libobj_dir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 256 | cross_compiling=no |
| 257 | subdirs= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 262 | # Maximum number of lines to put in a shell here document. |
| 263 | # This variable seems obsolete. It should probably be removed, and |
| 264 | # only ac_max_sed_lines should be used. |
| 265 | : ${ac_max_here_lines=38} |
| 266 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 267 | # Identity of this package. |
| 268 | PACKAGE_NAME='pjproject' |
| 269 | PACKAGE_TARNAME='pjproject' |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 270 | PACKAGE_VERSION='0.8' |
| 271 | PACKAGE_STRING='pjproject 0.8' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 272 | PACKAGE_BUGREPORT='' |
| 273 | |
| 274 | # Factoring default headers for most tests. |
| 275 | ac_includes_default="\ |
| 276 | #include <stdio.h> |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 277 | #if HAVE_SYS_TYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 278 | # include <sys/types.h> |
| 279 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 280 | #if HAVE_SYS_STAT_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 281 | # include <sys/stat.h> |
| 282 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 283 | #if STDC_HEADERS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 284 | # include <stdlib.h> |
| 285 | # include <stddef.h> |
| 286 | #else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 287 | # if HAVE_STDLIB_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 288 | # include <stdlib.h> |
| 289 | # endif |
| 290 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 291 | #if HAVE_STRING_H |
| 292 | # if !STDC_HEADERS && HAVE_MEMORY_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 293 | # include <memory.h> |
| 294 | # endif |
| 295 | # include <string.h> |
| 296 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 297 | #if HAVE_STRINGS_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 298 | # include <strings.h> |
| 299 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 300 | #if HAVE_INTTYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 301 | # include <inttypes.h> |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 302 | #else |
| 303 | # if HAVE_STDINT_H |
| 304 | # include <stdint.h> |
| 305 | # endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 306 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 307 | #if HAVE_UNISTD_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 308 | # include <unistd.h> |
| 309 | #endif" |
| 310 | |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 311 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX ac_pjdir CPP EGREP ac_os_objs ac_pjmedia_snd ac_pa_cflags ac_pa_use_alsa ac_pa_use_oss ac_no_small_filter ac_no_large_filter ac_no_speex_aec ac_no_g711_codec ac_no_l16_codec ac_no_gsm_codec ac_no_g722_codec ac_no_speex_codec ac_no_ilbc_codec ac_no_ssl openssl_h_present libssl_present libcrypto_present ac_cross_compile ac_linux_poll ac_host ac_main_obj LIBOBJS LTLIBOBJS' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 312 | ac_subst_files='' |
| 313 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 314 | # Initialize some variables set by options. |
| 315 | ac_init_help= |
| 316 | ac_init_version=false |
| 317 | # The variables have the same names as the options, with |
| 318 | # dashes changed to underlines. |
| 319 | cache_file=/dev/null |
| 320 | exec_prefix=NONE |
| 321 | no_create= |
| 322 | no_recursion= |
| 323 | prefix=NONE |
| 324 | program_prefix=NONE |
| 325 | program_suffix=NONE |
| 326 | program_transform_name=s,x,x, |
| 327 | silent= |
| 328 | site= |
| 329 | srcdir= |
| 330 | verbose= |
| 331 | x_includes=NONE |
| 332 | x_libraries=NONE |
| 333 | |
| 334 | # Installation directory options. |
| 335 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 336 | # and all the variables that are supposed to be based on exec_prefix |
| 337 | # by default will actually change. |
| 338 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 339 | bindir='${exec_prefix}/bin' |
| 340 | sbindir='${exec_prefix}/sbin' |
| 341 | libexecdir='${exec_prefix}/libexec' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 342 | datadir='${prefix}/share' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 343 | sysconfdir='${prefix}/etc' |
| 344 | sharedstatedir='${prefix}/com' |
| 345 | localstatedir='${prefix}/var' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 346 | libdir='${exec_prefix}/lib' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 347 | includedir='${prefix}/include' |
| 348 | oldincludedir='/usr/include' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 349 | infodir='${prefix}/info' |
| 350 | mandir='${prefix}/man' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 351 | |
| 352 | ac_prev= |
| 353 | for ac_option |
| 354 | do |
| 355 | # If the previous option needs an argument, assign it. |
| 356 | if test -n "$ac_prev"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 357 | eval "$ac_prev=\$ac_option" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 358 | ac_prev= |
| 359 | continue |
| 360 | fi |
| 361 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 362 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 363 | |
| 364 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 365 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 366 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 367 | |
| 368 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 369 | ac_prev=bindir ;; |
| 370 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 371 | bindir=$ac_optarg ;; |
| 372 | |
| 373 | -build | --build | --buil | --bui | --bu) |
| 374 | ac_prev=build_alias ;; |
| 375 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 376 | build_alias=$ac_optarg ;; |
| 377 | |
| 378 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 379 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 380 | ac_prev=cache_file ;; |
| 381 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 382 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 383 | cache_file=$ac_optarg ;; |
| 384 | |
| 385 | --config-cache | -C) |
| 386 | cache_file=config.cache ;; |
| 387 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 389 | ac_prev=datadir ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 391 | | --da=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 392 | datadir=$ac_optarg ;; |
| 393 | |
| 394 | -disable-* | --disable-*) |
| 395 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 396 | # Reject names that are not valid shell variable names. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 397 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 398 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 399 | { (exit 1); exit 1; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 400 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 401 | eval "enable_$ac_feature=no" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 402 | |
| 403 | -enable-* | --enable-*) |
| 404 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 405 | # Reject names that are not valid shell variable names. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 408 | { (exit 1); exit 1; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 409 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 410 | case $ac_option in |
| 411 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 412 | *) ac_optarg=yes ;; |
| 413 | esac |
| 414 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 415 | |
| 416 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 417 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 418 | | --exec | --exe | --ex) |
| 419 | ac_prev=exec_prefix ;; |
| 420 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 421 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 422 | | --exec=* | --exe=* | --ex=*) |
| 423 | exec_prefix=$ac_optarg ;; |
| 424 | |
| 425 | -gas | --gas | --ga | --g) |
| 426 | # Obsolete; use --with-gas. |
| 427 | with_gas=yes ;; |
| 428 | |
| 429 | -help | --help | --hel | --he | -h) |
| 430 | ac_init_help=long ;; |
| 431 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 432 | ac_init_help=recursive ;; |
| 433 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 434 | ac_init_help=short ;; |
| 435 | |
| 436 | -host | --host | --hos | --ho) |
| 437 | ac_prev=host_alias ;; |
| 438 | -host=* | --host=* | --hos=* | --ho=*) |
| 439 | host_alias=$ac_optarg ;; |
| 440 | |
| 441 | -includedir | --includedir | --includedi | --included | --include \ |
| 442 | | --includ | --inclu | --incl | --inc) |
| 443 | ac_prev=includedir ;; |
| 444 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 445 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 446 | includedir=$ac_optarg ;; |
| 447 | |
| 448 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 449 | ac_prev=infodir ;; |
| 450 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 451 | infodir=$ac_optarg ;; |
| 452 | |
| 453 | -libdir | --libdir | --libdi | --libd) |
| 454 | ac_prev=libdir ;; |
| 455 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 456 | libdir=$ac_optarg ;; |
| 457 | |
| 458 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 459 | | --libexe | --libex | --libe) |
| 460 | ac_prev=libexecdir ;; |
| 461 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 462 | | --libexe=* | --libex=* | --libe=*) |
| 463 | libexecdir=$ac_optarg ;; |
| 464 | |
| 465 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 466 | | --localstate | --localstat | --localsta | --localst \ |
| 467 | | --locals | --local | --loca | --loc | --lo) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 468 | ac_prev=localstatedir ;; |
| 469 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 470 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 471 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 472 | localstatedir=$ac_optarg ;; |
| 473 | |
| 474 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 475 | ac_prev=mandir ;; |
| 476 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 477 | mandir=$ac_optarg ;; |
| 478 | |
| 479 | -nfp | --nfp | --nf) |
| 480 | # Obsolete; use --without-fp. |
| 481 | with_fp=no ;; |
| 482 | |
| 483 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 484 | | --no-cr | --no-c | -n) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 485 | no_create=yes ;; |
| 486 | |
| 487 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 488 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 489 | no_recursion=yes ;; |
| 490 | |
| 491 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 492 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 493 | | --oldin | --oldi | --old | --ol | --o) |
| 494 | ac_prev=oldincludedir ;; |
| 495 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 496 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 497 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 498 | oldincludedir=$ac_optarg ;; |
| 499 | |
| 500 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 501 | ac_prev=prefix ;; |
| 502 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 503 | prefix=$ac_optarg ;; |
| 504 | |
| 505 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 506 | | --program-pre | --program-pr | --program-p) |
| 507 | ac_prev=program_prefix ;; |
| 508 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 509 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 510 | program_prefix=$ac_optarg ;; |
| 511 | |
| 512 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 513 | | --program-suf | --program-su | --program-s) |
| 514 | ac_prev=program_suffix ;; |
| 515 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 516 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 517 | program_suffix=$ac_optarg ;; |
| 518 | |
| 519 | -program-transform-name | --program-transform-name \ |
| 520 | | --program-transform-nam | --program-transform-na \ |
| 521 | | --program-transform-n | --program-transform- \ |
| 522 | | --program-transform | --program-transfor \ |
| 523 | | --program-transfo | --program-transf \ |
| 524 | | --program-trans | --program-tran \ |
| 525 | | --progr-tra | --program-tr | --program-t) |
| 526 | ac_prev=program_transform_name ;; |
| 527 | -program-transform-name=* | --program-transform-name=* \ |
| 528 | | --program-transform-nam=* | --program-transform-na=* \ |
| 529 | | --program-transform-n=* | --program-transform-=* \ |
| 530 | | --program-transform=* | --program-transfor=* \ |
| 531 | | --program-transfo=* | --program-transf=* \ |
| 532 | | --program-trans=* | --program-tran=* \ |
| 533 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 534 | program_transform_name=$ac_optarg ;; |
| 535 | |
| 536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 537 | | -silent | --silent | --silen | --sile | --sil) |
| 538 | silent=yes ;; |
| 539 | |
| 540 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 541 | ac_prev=sbindir ;; |
| 542 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 543 | | --sbi=* | --sb=*) |
| 544 | sbindir=$ac_optarg ;; |
| 545 | |
| 546 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 547 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 548 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 549 | | --sha | --sh) |
| 550 | ac_prev=sharedstatedir ;; |
| 551 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 552 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 553 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 554 | | --sha=* | --sh=*) |
| 555 | sharedstatedir=$ac_optarg ;; |
| 556 | |
| 557 | -site | --site | --sit) |
| 558 | ac_prev=site ;; |
| 559 | -site=* | --site=* | --sit=*) |
| 560 | site=$ac_optarg ;; |
| 561 | |
| 562 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 563 | ac_prev=srcdir ;; |
| 564 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 565 | srcdir=$ac_optarg ;; |
| 566 | |
| 567 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 568 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 569 | ac_prev=sysconfdir ;; |
| 570 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 571 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 572 | sysconfdir=$ac_optarg ;; |
| 573 | |
| 574 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 575 | ac_prev=target_alias ;; |
| 576 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 577 | target_alias=$ac_optarg ;; |
| 578 | |
| 579 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 580 | verbose=yes ;; |
| 581 | |
| 582 | -version | --version | --versio | --versi | --vers | -V) |
| 583 | ac_init_version=: ;; |
| 584 | |
| 585 | -with-* | --with-*) |
| 586 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 587 | # Reject names that are not valid shell variable names. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 590 | { (exit 1); exit 1; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 591 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 592 | case $ac_option in |
| 593 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 594 | *) ac_optarg=yes ;; |
| 595 | esac |
| 596 | eval "with_$ac_package='$ac_optarg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 597 | |
| 598 | -without-* | --without-*) |
| 599 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 600 | # Reject names that are not valid shell variable names. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 601 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 602 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 603 | { (exit 1); exit 1; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 604 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 605 | eval "with_$ac_package=no" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 606 | |
| 607 | --x) |
| 608 | # Obsolete; use --with-x. |
| 609 | with_x=yes ;; |
| 610 | |
| 611 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 612 | | --x-incl | --x-inc | --x-in | --x-i) |
| 613 | ac_prev=x_includes ;; |
| 614 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 615 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 616 | x_includes=$ac_optarg ;; |
| 617 | |
| 618 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 619 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 620 | ac_prev=x_libraries ;; |
| 621 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 622 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 623 | x_libraries=$ac_optarg ;; |
| 624 | |
| 625 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 626 | Try \`$0 --help' for more information." >&2 |
| 627 | { (exit 1); exit 1; }; } |
| 628 | ;; |
| 629 | |
| 630 | *=*) |
| 631 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 632 | # Reject names that are not valid shell variable names. |
| 633 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 634 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 635 | { (exit 1); exit 1; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 636 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 637 | eval "$ac_envvar='$ac_optarg'" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 638 | export $ac_envvar ;; |
| 639 | |
| 640 | *) |
| 641 | # FIXME: should be removed in autoconf 3.0. |
| 642 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 643 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 644 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 645 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 646 | ;; |
| 647 | |
| 648 | esac |
| 649 | done |
| 650 | |
| 651 | if test -n "$ac_prev"; then |
| 652 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 653 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 654 | { (exit 1); exit 1; }; } |
| 655 | fi |
| 656 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 657 | # Be sure to have absolute paths. |
| 658 | for ac_var in exec_prefix prefix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 659 | do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 660 | eval ac_val=$`echo $ac_var` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 661 | case $ac_val in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 662 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 663 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 664 | { (exit 1); exit 1; }; };; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 665 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 666 | done |
| 667 | |
| 668 | # Be sure to have absolute paths. |
| 669 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 670 | localstatedir libdir includedir oldincludedir infodir mandir |
| 671 | do |
| 672 | eval ac_val=$`echo $ac_var` |
| 673 | case $ac_val in |
| 674 | [\\/$]* | ?:[\\/]* ) ;; |
| 675 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 676 | { (exit 1); exit 1; }; };; |
| 677 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 678 | done |
| 679 | |
| 680 | # There might be people who depend on the old broken behavior: `$host' |
| 681 | # used to hold the argument of --host etc. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 682 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 683 | build=$build_alias |
| 684 | host=$host_alias |
| 685 | target=$target_alias |
| 686 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 687 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 688 | if test "x$host_alias" != x; then |
| 689 | if test "x$build_alias" = x; then |
| 690 | cross_compiling=maybe |
| 691 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 692 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 693 | elif test "x$build_alias" != "x$host_alias"; then |
| 694 | cross_compiling=yes |
| 695 | fi |
| 696 | fi |
| 697 | |
| 698 | ac_tool_prefix= |
| 699 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 700 | |
| 701 | test "$silent" = yes && exec 6>/dev/null |
| 702 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 703 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 704 | # Find the source files, if location was not specified. |
| 705 | if test -z "$srcdir"; then |
| 706 | ac_srcdir_defaulted=yes |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 707 | # Try the directory containing this script, then its parent. |
| 708 | ac_confdir=`(dirname "$0") 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 709 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 710 | X"$0" : 'X\(//\)[^/]' \| \ |
| 711 | X"$0" : 'X\(//\)$' \| \ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 712 | X"$0" : 'X\(/\)' \| \ |
| 713 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 714 | echo X"$0" | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 716 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 718 | /^X\(\/\).*/{ s//\1/; q; } |
| 719 | s/.*/./; q'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 720 | srcdir=$ac_confdir |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 721 | if test ! -r $srcdir/$ac_unique_file; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 722 | srcdir=.. |
| 723 | fi |
| 724 | else |
| 725 | ac_srcdir_defaulted=no |
| 726 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 727 | if test ! -r $srcdir/$ac_unique_file; then |
| 728 | if test "$ac_srcdir_defaulted" = yes; then |
| 729 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 730 | { (exit 1); exit 1; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 731 | else |
| 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 733 | { (exit 1); exit 1; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 734 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 735 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 736 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 737 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 738 | { (exit 1); exit 1; }; } |
| 739 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 740 | ac_env_build_alias_set=${build_alias+set} |
| 741 | ac_env_build_alias_value=$build_alias |
| 742 | ac_cv_env_build_alias_set=${build_alias+set} |
| 743 | ac_cv_env_build_alias_value=$build_alias |
| 744 | ac_env_host_alias_set=${host_alias+set} |
| 745 | ac_env_host_alias_value=$host_alias |
| 746 | ac_cv_env_host_alias_set=${host_alias+set} |
| 747 | ac_cv_env_host_alias_value=$host_alias |
| 748 | ac_env_target_alias_set=${target_alias+set} |
| 749 | ac_env_target_alias_value=$target_alias |
| 750 | ac_cv_env_target_alias_set=${target_alias+set} |
| 751 | ac_cv_env_target_alias_value=$target_alias |
| 752 | ac_env_CC_set=${CC+set} |
| 753 | ac_env_CC_value=$CC |
| 754 | ac_cv_env_CC_set=${CC+set} |
| 755 | ac_cv_env_CC_value=$CC |
| 756 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 757 | ac_env_CFLAGS_value=$CFLAGS |
| 758 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 759 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 760 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 761 | ac_env_LDFLAGS_value=$LDFLAGS |
| 762 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 763 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 764 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 765 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 766 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 767 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 768 | ac_env_CXX_set=${CXX+set} |
| 769 | ac_env_CXX_value=$CXX |
| 770 | ac_cv_env_CXX_set=${CXX+set} |
| 771 | ac_cv_env_CXX_value=$CXX |
| 772 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 773 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 774 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 775 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 776 | ac_env_CPP_set=${CPP+set} |
| 777 | ac_env_CPP_value=$CPP |
| 778 | ac_cv_env_CPP_set=${CPP+set} |
| 779 | ac_cv_env_CPP_value=$CPP |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 780 | |
| 781 | # |
| 782 | # Report the --help message. |
| 783 | # |
| 784 | if test "$ac_init_help" = "long"; then |
| 785 | # Omit some internal or obsolete options to make the list less imposing. |
| 786 | # This message is too long to be a string in the A/UX 3.1 sh. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 787 | cat <<_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 788 | \`configure' configures pjproject 0.8 to adapt to many kinds of systems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 789 | |
| 790 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 791 | |
| 792 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 793 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 794 | |
| 795 | Defaults for the options are specified in brackets. |
| 796 | |
| 797 | Configuration: |
| 798 | -h, --help display this help and exit |
| 799 | --help=short display options specific to this package |
| 800 | --help=recursive display the short help of all the included packages |
| 801 | -V, --version display version information and exit |
| 802 | -q, --quiet, --silent do not print \`checking...' messages |
| 803 | --cache-file=FILE cache test results in FILE [disabled] |
| 804 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 805 | -n, --no-create do not create output files |
| 806 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 807 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 808 | _ACEOF |
| 809 | |
| 810 | cat <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 811 | Installation directories: |
| 812 | --prefix=PREFIX install architecture-independent files in PREFIX |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 813 | [$ac_default_prefix] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 814 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 815 | [PREFIX] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 816 | |
| 817 | By default, \`make install' will install all the files in |
| 818 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 819 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 820 | for instance \`--prefix=\$HOME'. |
| 821 | |
| 822 | For better control, use the options below. |
| 823 | |
| 824 | Fine tuning of the installation directories: |
| 825 | --bindir=DIR user executables [EPREFIX/bin] |
| 826 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 827 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 828 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 829 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 830 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 831 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 832 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 833 | --includedir=DIR C header files [PREFIX/include] |
| 834 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 835 | --infodir=DIR info documentation [PREFIX/info] |
| 836 | --mandir=DIR man documentation [PREFIX/man] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 837 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 838 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 839 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 840 | |
| 841 | System types: |
| 842 | --build=BUILD configure for building on BUILD [guessed] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 843 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 844 | --target=TARGET configure for building compilers for TARGET [HOST] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 845 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 846 | fi |
| 847 | |
| 848 | if test -n "$ac_init_help"; then |
| 849 | case $ac_init_help in |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 850 | short | recursive ) echo "Configuration of pjproject 0.8:";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 851 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 852 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 853 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 854 | Optional Features: |
| 855 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 856 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 857 | --disable-floating-point |
| 858 | Disable floating point where possible |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 859 | --disable-sound Exclude sound (i.e. use null sound) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 860 | --disable-oss Disable OSS audio (default: not disabled) |
| 861 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 862 | --disable-small-filter Exclude small filter in resampling |
| 863 | --disable-large-filter Exclude large filter in resampling |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 864 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 865 | --disable-g711-codec Exclude G.711 codecs from the build |
| 866 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 867 | --disable-gsm-codec Exclude GSM codec in the build |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 868 | --disable-g722-codec Exclude G.722 codec in the build |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 869 | --disable-speex-codec Exclude Speex codecs in the build |
| 870 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 871 | --enable-libsamplerate Link with libsamplerate when available. Note that |
| 872 | PJMEDIA_RESAMPLE_IMP must also be configured |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 873 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 874 | |
| 875 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 876 | Some influential environment variables: |
| 877 | CC C compiler command |
| 878 | CFLAGS C compiler flags |
| 879 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 880 | nonstandard directory <lib dir> |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 881 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 882 | headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 883 | CXX C++ compiler command |
| 884 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 885 | CPP C preprocessor |
| 886 | |
| 887 | Use these variables to override the choices made by `configure' or to help |
| 888 | it to find libraries and programs with nonstandard names/locations. |
| 889 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 890 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 891 | fi |
| 892 | |
| 893 | if test "$ac_init_help" = "recursive"; then |
| 894 | # If there are subdirs, report their specific --help. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 895 | ac_popdir=`pwd` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 896 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 897 | test -d $ac_dir || continue |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 898 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 899 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 900 | if test "$ac_dir" != .; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 901 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 902 | # A "../" for each directory in $ac_dir_suffix. |
| 903 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 904 | else |
| 905 | ac_dir_suffix= ac_top_builddir= |
| 906 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 907 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 908 | case $srcdir in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 909 | .) # No --srcdir option. We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 910 | ac_srcdir=. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 911 | if test -z "$ac_top_builddir"; then |
| 912 | ac_top_srcdir=. |
| 913 | else |
| 914 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 915 | fi ;; |
| 916 | [\\/]* | ?:[\\/]* ) # Absolute path. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 917 | ac_srcdir=$srcdir$ac_dir_suffix; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 918 | ac_top_srcdir=$srcdir ;; |
| 919 | *) # Relative path. |
| 920 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 921 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 922 | esac |
| 923 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 924 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 925 | # the directories may not exist. |
| 926 | case `pwd` in |
| 927 | .) ac_abs_builddir="$ac_dir";; |
| 928 | *) |
| 929 | case "$ac_dir" in |
| 930 | .) ac_abs_builddir=`pwd`;; |
| 931 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 932 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 933 | esac;; |
| 934 | esac |
| 935 | case $ac_abs_builddir in |
| 936 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 937 | *) |
| 938 | case ${ac_top_builddir}. in |
| 939 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 940 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 941 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 942 | esac;; |
| 943 | esac |
| 944 | case $ac_abs_builddir in |
| 945 | .) ac_abs_srcdir=$ac_srcdir;; |
| 946 | *) |
| 947 | case $ac_srcdir in |
| 948 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 949 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 950 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 951 | esac;; |
| 952 | esac |
| 953 | case $ac_abs_builddir in |
| 954 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 955 | *) |
| 956 | case $ac_top_srcdir in |
| 957 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 958 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 959 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 960 | esac;; |
| 961 | esac |
| 962 | |
| 963 | cd $ac_dir |
| 964 | # Check for guested configure; otherwise get Cygnus style configure. |
| 965 | if test -f $ac_srcdir/configure.gnu; then |
| 966 | echo |
| 967 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 968 | elif test -f $ac_srcdir/configure; then |
| 969 | echo |
| 970 | $SHELL $ac_srcdir/configure --help=recursive |
| 971 | elif test -f $ac_srcdir/configure.ac || |
| 972 | test -f $ac_srcdir/configure.in; then |
| 973 | echo |
| 974 | $ac_configure --help |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 975 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 976 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 977 | fi |
| 978 | cd $ac_popdir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 979 | done |
| 980 | fi |
| 981 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 982 | test -n "$ac_init_help" && exit 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 983 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 984 | cat <<\_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 985 | pjproject configure 0.8 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 986 | generated by GNU Autoconf 2.59 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 987 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 988 | Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 989 | This configure script is free software; the Free Software Foundation |
| 990 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 991 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 992 | exit 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 993 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 994 | exec 5>config.log |
| 995 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 996 | This file contains any messages produced by compilers while |
| 997 | running configure, to aid debugging if configure makes a mistake. |
| 998 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 999 | It was created by pjproject $as_me 0.8, which was |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1000 | generated by GNU Autoconf 2.59. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1001 | |
| 1002 | $ $0 $@ |
| 1003 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1004 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1005 | { |
| 1006 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1007 | ## --------- ## |
| 1008 | ## Platform. ## |
| 1009 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1010 | |
| 1011 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1012 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1013 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1014 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1015 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1016 | |
| 1017 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1018 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1019 | |
| 1020 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1021 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1022 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1023 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1024 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1025 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1026 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1027 | |
| 1028 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1029 | |
| 1030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1031 | for as_dir in $PATH |
| 1032 | do |
| 1033 | IFS=$as_save_IFS |
| 1034 | test -z "$as_dir" && as_dir=. |
| 1035 | echo "PATH: $as_dir" |
| 1036 | done |
| 1037 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1038 | } >&5 |
| 1039 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1040 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1041 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1042 | |
| 1043 | ## ----------- ## |
| 1044 | ## Core tests. ## |
| 1045 | ## ----------- ## |
| 1046 | |
| 1047 | _ACEOF |
| 1048 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1049 | |
| 1050 | # Keep a trace of the command line. |
| 1051 | # Strip out --no-create and --no-recursion so they do not pile up. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1052 | # Strip out --silent because we don't want to record it for future runs. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1053 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1054 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1055 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1056 | ac_configure_args0= |
| 1057 | ac_configure_args1= |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1058 | ac_sep= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1059 | ac_must_keep_next=false |
| 1060 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1061 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1062 | for ac_arg |
| 1063 | do |
| 1064 | case $ac_arg in |
| 1065 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1066 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1067 | | -silent | --silent | --silen | --sile | --sil) |
| 1068 | continue ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1069 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1070 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1071 | esac |
| 1072 | case $ac_pass in |
| 1073 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1074 | 2) |
| 1075 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1076 | if test $ac_must_keep_next = true; then |
| 1077 | ac_must_keep_next=false # Got value, back to normal. |
| 1078 | else |
| 1079 | case $ac_arg in |
| 1080 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1081 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1082 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1083 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1084 | case "$ac_configure_args0 " in |
| 1085 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1086 | esac |
| 1087 | ;; |
| 1088 | -* ) ac_must_keep_next=true ;; |
| 1089 | esac |
| 1090 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1091 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1092 | # Get rid of the leading space. |
| 1093 | ac_sep=" " |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1094 | ;; |
| 1095 | esac |
| 1096 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1097 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1098 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1099 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1100 | |
| 1101 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1102 | # config.log. We remove comments because anyway the quotes in there |
| 1103 | # would cause problems or look ugly. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1104 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1105 | # such as our DU 5.0 friend, will then `close' the trap. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1106 | trap 'exit_status=$? |
| 1107 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1108 | { |
| 1109 | echo |
| 1110 | |
| 1111 | cat <<\_ASBOX |
| 1112 | ## ---------------- ## |
| 1113 | ## Cache variables. ## |
| 1114 | ## ---------------- ## |
| 1115 | _ASBOX |
| 1116 | echo |
| 1117 | # The following way of writing the cache mishandles newlines in values, |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1118 | { |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1119 | (set) 2>&1 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1120 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1121 | *ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1122 | sed -n \ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1123 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1124 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1125 | ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1126 | *) |
| 1127 | sed -n \ |
| 1128 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1129 | ;; |
| 1130 | esac; |
| 1131 | } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1132 | echo |
| 1133 | |
| 1134 | cat <<\_ASBOX |
| 1135 | ## ----------------- ## |
| 1136 | ## Output variables. ## |
| 1137 | ## ----------------- ## |
| 1138 | _ASBOX |
| 1139 | echo |
| 1140 | for ac_var in $ac_subst_vars |
| 1141 | do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1142 | eval ac_val=$`echo $ac_var` |
| 1143 | echo "$ac_var='"'"'$ac_val'"'"'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1144 | done | sort |
| 1145 | echo |
| 1146 | |
| 1147 | if test -n "$ac_subst_files"; then |
| 1148 | cat <<\_ASBOX |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1149 | ## ------------- ## |
| 1150 | ## Output files. ## |
| 1151 | ## ------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1152 | _ASBOX |
| 1153 | echo |
| 1154 | for ac_var in $ac_subst_files |
| 1155 | do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1156 | eval ac_val=$`echo $ac_var` |
| 1157 | echo "$ac_var='"'"'$ac_val'"'"'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1158 | done | sort |
| 1159 | echo |
| 1160 | fi |
| 1161 | |
| 1162 | if test -s confdefs.h; then |
| 1163 | cat <<\_ASBOX |
| 1164 | ## ----------- ## |
| 1165 | ## confdefs.h. ## |
| 1166 | ## ----------- ## |
| 1167 | _ASBOX |
| 1168 | echo |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1169 | sed "/^$/d" confdefs.h | sort |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1170 | echo |
| 1171 | fi |
| 1172 | test "$ac_signal" != 0 && |
| 1173 | echo "$as_me: caught signal $ac_signal" |
| 1174 | echo "$as_me: exit $exit_status" |
| 1175 | } >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1176 | rm -f core *.core && |
| 1177 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1178 | exit $exit_status |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1179 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1180 | for ac_signal in 1 2 13 15; do |
| 1181 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1182 | done |
| 1183 | ac_signal=0 |
| 1184 | |
| 1185 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1186 | rm -rf conftest* confdefs.h |
| 1187 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1188 | echo >confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1189 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1190 | # Predefined preprocessor variables. |
| 1191 | |
| 1192 | cat >>confdefs.h <<_ACEOF |
| 1193 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1194 | _ACEOF |
| 1195 | |
| 1196 | |
| 1197 | cat >>confdefs.h <<_ACEOF |
| 1198 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1199 | _ACEOF |
| 1200 | |
| 1201 | |
| 1202 | cat >>confdefs.h <<_ACEOF |
| 1203 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1204 | _ACEOF |
| 1205 | |
| 1206 | |
| 1207 | cat >>confdefs.h <<_ACEOF |
| 1208 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1209 | _ACEOF |
| 1210 | |
| 1211 | |
| 1212 | cat >>confdefs.h <<_ACEOF |
| 1213 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1214 | _ACEOF |
| 1215 | |
| 1216 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1217 | # Let the site file select an alternate cache file if it wants to. |
| 1218 | # Prefer explicitly selected file to automatically selected ones. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1219 | if test -z "$CONFIG_SITE"; then |
| 1220 | if test "x$prefix" != xNONE; then |
| 1221 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1222 | else |
| 1223 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1224 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1225 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1226 | for ac_site_file in $CONFIG_SITE; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1227 | if test -r "$ac_site_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1228 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1229 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1230 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1231 | . "$ac_site_file" |
| 1232 | fi |
| 1233 | done |
| 1234 | |
| 1235 | if test -r "$cache_file"; then |
| 1236 | # Some versions of bash will fail to source /dev/null (special |
| 1237 | # files actually), so we avoid doing that. |
| 1238 | if test -f "$cache_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1239 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1240 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1241 | case $cache_file in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1242 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1243 | *) . ./$cache_file;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1244 | esac |
| 1245 | fi |
| 1246 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1247 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1248 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1249 | >$cache_file |
| 1250 | fi |
| 1251 | |
| 1252 | # Check that the precious variables saved in the cache have kept the same |
| 1253 | # value. |
| 1254 | ac_cache_corrupted=false |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1255 | for ac_var in `(set) 2>&1 | |
| 1256 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1257 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1258 | eval ac_new_set=\$ac_env_${ac_var}_set |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1259 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1260 | eval ac_new_val="\$ac_env_${ac_var}_value" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1261 | case $ac_old_set,$ac_new_set in |
| 1262 | set,) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1263 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1264 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1265 | ac_cache_corrupted=: ;; |
| 1266 | ,set) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1267 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1268 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1269 | ac_cache_corrupted=: ;; |
| 1270 | ,);; |
| 1271 | *) |
| 1272 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1273 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1274 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1275 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1276 | echo "$as_me: former value: $ac_old_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1277 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1278 | echo "$as_me: current value: $ac_new_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1279 | ac_cache_corrupted=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1280 | fi;; |
| 1281 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1282 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1283 | if test "$ac_new_set" = set; then |
| 1284 | case $ac_new_val in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1285 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1286 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1287 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1288 | esac |
| 1289 | case " $ac_configure_args " in |
| 1290 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1291 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1292 | esac |
| 1293 | fi |
| 1294 | done |
| 1295 | if $ac_cache_corrupted; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1296 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1297 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1298 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1299 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1300 | { (exit 1); exit 1; }; } |
| 1301 | fi |
| 1302 | |
| 1303 | ac_ext=c |
| 1304 | ac_cpp='$CPP $CPPFLAGS' |
| 1305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1308 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1309 | |
| 1310 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1311 | |
| 1312 | |
| 1313 | |
| 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 1336 | host_orig="$host" |
| 1337 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1338 | ac_aux_dir= |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1339 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1340 | if test -f $ac_dir/install-sh; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1341 | ac_aux_dir=$ac_dir |
| 1342 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1343 | break |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1344 | elif test -f $ac_dir/install.sh; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1345 | ac_aux_dir=$ac_dir |
| 1346 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1347 | break |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1348 | elif test -f $ac_dir/shtool; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1349 | ac_aux_dir=$ac_dir |
| 1350 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1351 | break |
| 1352 | fi |
| 1353 | done |
| 1354 | if test -z "$ac_aux_dir"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1355 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1356 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1357 | { (exit 1); exit 1; }; } |
| 1358 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1359 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1360 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1361 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1362 | |
| 1363 | # Make sure we can run config.sub. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1364 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1365 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1366 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1367 | { (exit 1); exit 1; }; } |
| 1368 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1369 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1370 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1371 | if test "${ac_cv_build+set}" = set; then |
| 1372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1373 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1374 | ac_cv_build_alias=$build_alias |
| 1375 | test -z "$ac_cv_build_alias" && |
| 1376 | ac_cv_build_alias=`$ac_config_guess` |
| 1377 | test -z "$ac_cv_build_alias" && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1378 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1379 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1380 | { (exit 1); exit 1; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1381 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1382 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1383 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1384 | { (exit 1); exit 1; }; } |
| 1385 | |
| 1386 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1387 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1388 | echo "${ECHO_T}$ac_cv_build" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1389 | build=$ac_cv_build |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1390 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1391 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1392 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1393 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1394 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1395 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1396 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1397 | if test "${ac_cv_host+set}" = set; then |
| 1398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1399 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1400 | ac_cv_host_alias=$host_alias |
| 1401 | test -z "$ac_cv_host_alias" && |
| 1402 | ac_cv_host_alias=$ac_cv_build_alias |
| 1403 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1404 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1405 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1406 | { (exit 1); exit 1; }; } |
| 1407 | |
| 1408 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1409 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1410 | echo "${ECHO_T}$ac_cv_host" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1411 | host=$ac_cv_host |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1412 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1413 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1414 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1415 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1416 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1417 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1418 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1419 | if test "${ac_cv_target+set}" = set; then |
| 1420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1421 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1422 | ac_cv_target_alias=$target_alias |
| 1423 | test "x$ac_cv_target_alias" = "x" && |
| 1424 | ac_cv_target_alias=$ac_cv_host_alias |
| 1425 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1426 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1427 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1428 | { (exit 1); exit 1; }; } |
| 1429 | |
| 1430 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1431 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1432 | echo "${ECHO_T}$ac_cv_target" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1433 | target=$ac_cv_target |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1434 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1435 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1436 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1437 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1438 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1439 | # The aliases save the names the user supplied, while $host etc. |
| 1440 | # will get canonicalized. |
| 1441 | test -n "$target_alias" && |
| 1442 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1443 | NONENONEs,x,x, && |
| 1444 | program_prefix=${target_alias}- |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1445 | ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1446 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1447 | ac_config_files="$ac_config_files build.mak build/os-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/portaudio/os-auto.mak third_party/build/os-auto.mak" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1448 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1449 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 1450 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1451 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 1452 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1453 | else |
| 1454 | CFLAGS="$CFLAGS" |
| 1455 | fi |
| 1456 | |
| 1457 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 1458 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1459 | ac_ext=c |
| 1460 | ac_cpp='$CPP $CPPFLAGS' |
| 1461 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1462 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1463 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1464 | if test -n "$ac_tool_prefix"; then |
| 1465 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1466 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1467 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1468 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1469 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1471 | else |
| 1472 | if test -n "$CC"; then |
| 1473 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1474 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1476 | for as_dir in $PATH |
| 1477 | do |
| 1478 | IFS=$as_save_IFS |
| 1479 | test -z "$as_dir" && as_dir=. |
| 1480 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1481 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1482 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1483 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1484 | break 2 |
| 1485 | fi |
| 1486 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1487 | done |
| 1488 | |
| 1489 | fi |
| 1490 | fi |
| 1491 | CC=$ac_cv_prog_CC |
| 1492 | if test -n "$CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1493 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1494 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1495 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1496 | echo "$as_me:$LINENO: result: no" >&5 |
| 1497 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1498 | fi |
| 1499 | |
| 1500 | fi |
| 1501 | if test -z "$ac_cv_prog_CC"; then |
| 1502 | ac_ct_CC=$CC |
| 1503 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1504 | set dummy gcc; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1505 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1506 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1507 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1509 | else |
| 1510 | if test -n "$ac_ct_CC"; then |
| 1511 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1512 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1514 | for as_dir in $PATH |
| 1515 | do |
| 1516 | IFS=$as_save_IFS |
| 1517 | test -z "$as_dir" && as_dir=. |
| 1518 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1519 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1520 | ac_cv_prog_ac_ct_CC="gcc" |
| 1521 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1522 | break 2 |
| 1523 | fi |
| 1524 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1525 | done |
| 1526 | |
| 1527 | fi |
| 1528 | fi |
| 1529 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1530 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1531 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1532 | echo "${ECHO_T}$ac_ct_CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1533 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1534 | echo "$as_me:$LINENO: result: no" >&5 |
| 1535 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1536 | fi |
| 1537 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1538 | CC=$ac_ct_CC |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1539 | else |
| 1540 | CC="$ac_cv_prog_CC" |
| 1541 | fi |
| 1542 | |
| 1543 | if test -z "$CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1544 | if test -n "$ac_tool_prefix"; then |
| 1545 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1546 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1547 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1548 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1549 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1551 | else |
| 1552 | if test -n "$CC"; then |
| 1553 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1554 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1556 | for as_dir in $PATH |
| 1557 | do |
| 1558 | IFS=$as_save_IFS |
| 1559 | test -z "$as_dir" && as_dir=. |
| 1560 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1561 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1562 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1563 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1564 | break 2 |
| 1565 | fi |
| 1566 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1567 | done |
| 1568 | |
| 1569 | fi |
| 1570 | fi |
| 1571 | CC=$ac_cv_prog_CC |
| 1572 | if test -n "$CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1573 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1574 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1575 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1576 | echo "$as_me:$LINENO: result: no" >&5 |
| 1577 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1578 | fi |
| 1579 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1580 | fi |
| 1581 | if test -z "$ac_cv_prog_CC"; then |
| 1582 | ac_ct_CC=$CC |
| 1583 | # Extract the first word of "cc", so it can be a program name with args. |
| 1584 | set dummy cc; ac_word=$2 |
| 1585 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1587 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1589 | else |
| 1590 | if test -n "$ac_ct_CC"; then |
| 1591 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1592 | else |
| 1593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1594 | for as_dir in $PATH |
| 1595 | do |
| 1596 | IFS=$as_save_IFS |
| 1597 | test -z "$as_dir" && as_dir=. |
| 1598 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1599 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1600 | ac_cv_prog_ac_ct_CC="cc" |
| 1601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1602 | break 2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1603 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1604 | done |
| 1605 | done |
| 1606 | |
| 1607 | fi |
| 1608 | fi |
| 1609 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1610 | if test -n "$ac_ct_CC"; then |
| 1611 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1612 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1613 | else |
| 1614 | echo "$as_me:$LINENO: result: no" >&5 |
| 1615 | echo "${ECHO_T}no" >&6 |
| 1616 | fi |
| 1617 | |
| 1618 | CC=$ac_ct_CC |
| 1619 | else |
| 1620 | CC="$ac_cv_prog_CC" |
| 1621 | fi |
| 1622 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1623 | fi |
| 1624 | if test -z "$CC"; then |
| 1625 | # Extract the first word of "cc", so it can be a program name with args. |
| 1626 | set dummy cc; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1627 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1629 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1631 | else |
| 1632 | if test -n "$CC"; then |
| 1633 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1634 | else |
| 1635 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1637 | for as_dir in $PATH |
| 1638 | do |
| 1639 | IFS=$as_save_IFS |
| 1640 | test -z "$as_dir" && as_dir=. |
| 1641 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1642 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1643 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1644 | ac_prog_rejected=yes |
| 1645 | continue |
| 1646 | fi |
| 1647 | ac_cv_prog_CC="cc" |
| 1648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1649 | break 2 |
| 1650 | fi |
| 1651 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1652 | done |
| 1653 | |
| 1654 | if test $ac_prog_rejected = yes; then |
| 1655 | # We found a bogon in the path, so make sure we never use it. |
| 1656 | set dummy $ac_cv_prog_CC |
| 1657 | shift |
| 1658 | if test $# != 0; then |
| 1659 | # We chose a different compiler from the bogus one. |
| 1660 | # However, it has the same basename, so the bogon will be chosen |
| 1661 | # first if we set CC to just the basename; use the full file name. |
| 1662 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1663 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1664 | fi |
| 1665 | fi |
| 1666 | fi |
| 1667 | fi |
| 1668 | CC=$ac_cv_prog_CC |
| 1669 | if test -n "$CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1670 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1671 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1672 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1673 | echo "$as_me:$LINENO: result: no" >&5 |
| 1674 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1675 | fi |
| 1676 | |
| 1677 | fi |
| 1678 | if test -z "$CC"; then |
| 1679 | if test -n "$ac_tool_prefix"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1680 | for ac_prog in cl |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1681 | do |
| 1682 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1683 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1684 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1685 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1686 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1688 | else |
| 1689 | if test -n "$CC"; then |
| 1690 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1691 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1693 | for as_dir in $PATH |
| 1694 | do |
| 1695 | IFS=$as_save_IFS |
| 1696 | test -z "$as_dir" && as_dir=. |
| 1697 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1698 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1699 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1700 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1701 | break 2 |
| 1702 | fi |
| 1703 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1704 | done |
| 1705 | |
| 1706 | fi |
| 1707 | fi |
| 1708 | CC=$ac_cv_prog_CC |
| 1709 | if test -n "$CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1710 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1711 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1712 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1713 | echo "$as_me:$LINENO: result: no" >&5 |
| 1714 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1715 | fi |
| 1716 | |
| 1717 | test -n "$CC" && break |
| 1718 | done |
| 1719 | fi |
| 1720 | if test -z "$CC"; then |
| 1721 | ac_ct_CC=$CC |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1722 | for ac_prog in cl |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1723 | do |
| 1724 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1725 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1726 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1728 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1730 | else |
| 1731 | if test -n "$ac_ct_CC"; then |
| 1732 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1733 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1735 | for as_dir in $PATH |
| 1736 | do |
| 1737 | IFS=$as_save_IFS |
| 1738 | test -z "$as_dir" && as_dir=. |
| 1739 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1740 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1741 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1742 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1743 | break 2 |
| 1744 | fi |
| 1745 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1746 | done |
| 1747 | |
| 1748 | fi |
| 1749 | fi |
| 1750 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1751 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1752 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1753 | echo "${ECHO_T}$ac_ct_CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1754 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1755 | echo "$as_me:$LINENO: result: no" >&5 |
| 1756 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1757 | fi |
| 1758 | |
| 1759 | test -n "$ac_ct_CC" && break |
| 1760 | done |
| 1761 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1762 | CC=$ac_ct_CC |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1763 | fi |
| 1764 | |
| 1765 | fi |
| 1766 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1767 | |
| 1768 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1769 | See \`config.log' for more details." >&5 |
| 1770 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1771 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1772 | { (exit 1); exit 1; }; } |
| 1773 | |
| 1774 | # Provide some information about the compiler. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1775 | echo "$as_me:$LINENO:" \ |
| 1776 | "checking for C compiler version" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1777 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1778 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1779 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1780 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1782 | (exit $ac_status); } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1783 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1784 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1785 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1787 | (exit $ac_status); } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1788 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1789 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1790 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1792 | (exit $ac_status); } |
| 1793 | |
| 1794 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1795 | /* confdefs.h. */ |
| 1796 | _ACEOF |
| 1797 | cat confdefs.h >>conftest.$ac_ext |
| 1798 | cat >>conftest.$ac_ext <<_ACEOF |
| 1799 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1800 | |
| 1801 | int |
| 1802 | main () |
| 1803 | { |
| 1804 | |
| 1805 | ; |
| 1806 | return 0; |
| 1807 | } |
| 1808 | _ACEOF |
| 1809 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1810 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1811 | # Try to create an executable without -o first, disregard a.out. |
| 1812 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1813 | # of exeext. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1814 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1815 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1816 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1817 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1818 | (eval $ac_link_default) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1819 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1821 | (exit $ac_status); }; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1822 | # Find the output, starting from the most likely. This scheme is |
| 1823 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1824 | # resort. |
| 1825 | |
| 1826 | # Be careful to initialize this variable, since it used to be cached. |
| 1827 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1828 | ac_cv_exeext= |
| 1829 | # b.out is created by i960 compilers. |
| 1830 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1831 | do |
| 1832 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1833 | case $ac_file in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1834 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1835 | ;; |
| 1836 | conftest.$ac_ext ) |
| 1837 | # This is the source file. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1838 | ;; |
| 1839 | [ab].out ) |
| 1840 | # We found the default executable, but exeext='' is most |
| 1841 | # certainly right. |
| 1842 | break;; |
| 1843 | *.* ) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1844 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1845 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1846 | # but it would be cool to find out if it's true. Does anybody |
| 1847 | # maintain Libtool? --akim. |
| 1848 | export ac_cv_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1849 | break;; |
| 1850 | * ) |
| 1851 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1852 | esac |
| 1853 | done |
| 1854 | else |
| 1855 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1857 | |
| 1858 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1859 | See \`config.log' for more details." >&5 |
| 1860 | echo "$as_me: error: C compiler cannot create executables |
| 1861 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1862 | { (exit 77); exit 77; }; } |
| 1863 | fi |
| 1864 | |
| 1865 | ac_exeext=$ac_cv_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1866 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1867 | echo "${ECHO_T}$ac_file" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1868 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1869 | # Check the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1870 | # the compiler is broken, or we cross compile. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1871 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1872 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1873 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1874 | # If not cross compiling, check that we can run a simple program. |
| 1875 | if test "$cross_compiling" != yes; then |
| 1876 | if { ac_try='./$ac_file' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1878 | (eval $ac_try) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1879 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1881 | (exit $ac_status); }; }; then |
| 1882 | cross_compiling=no |
| 1883 | else |
| 1884 | if test "$cross_compiling" = maybe; then |
| 1885 | cross_compiling=yes |
| 1886 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1887 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1888 | If you meant to cross compile, use \`--host'. |
| 1889 | See \`config.log' for more details." >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1890 | echo "$as_me: error: cannot run C compiled programs. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1891 | If you meant to cross compile, use \`--host'. |
| 1892 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1893 | { (exit 1); exit 1; }; } |
| 1894 | fi |
| 1895 | fi |
| 1896 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1897 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1898 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1899 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1900 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1901 | ac_clean_files=$ac_clean_files_save |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1902 | # Check the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1903 | # the compiler is broken, or we cross compile. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1904 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1905 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1906 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1907 | echo "${ECHO_T}$cross_compiling" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1908 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1909 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1910 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1912 | (eval $ac_link) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1913 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1915 | (exit $ac_status); }; then |
| 1916 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1917 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1918 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1919 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1920 | for ac_file in conftest.exe conftest conftest.*; do |
| 1921 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1922 | case $ac_file in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1923 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1924 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1925 | export ac_cv_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1926 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1927 | * ) break;; |
| 1928 | esac |
| 1929 | done |
| 1930 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1931 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1932 | See \`config.log' for more details." >&5 |
| 1933 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1934 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1935 | { (exit 1); exit 1; }; } |
| 1936 | fi |
| 1937 | |
| 1938 | rm -f conftest$ac_cv_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1939 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1940 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1941 | |
| 1942 | rm -f conftest.$ac_ext |
| 1943 | EXEEXT=$ac_cv_exeext |
| 1944 | ac_exeext=$EXEEXT |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1945 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1946 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1947 | if test "${ac_cv_objext+set}" = set; then |
| 1948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1949 | else |
| 1950 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1951 | /* confdefs.h. */ |
| 1952 | _ACEOF |
| 1953 | cat confdefs.h >>conftest.$ac_ext |
| 1954 | cat >>conftest.$ac_ext <<_ACEOF |
| 1955 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1956 | |
| 1957 | int |
| 1958 | main () |
| 1959 | { |
| 1960 | |
| 1961 | ; |
| 1962 | return 0; |
| 1963 | } |
| 1964 | _ACEOF |
| 1965 | rm -f conftest.o conftest.obj |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1967 | (eval $ac_compile) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1968 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1970 | (exit $ac_status); }; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1971 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1972 | case $ac_file in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1973 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1974 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1975 | break;; |
| 1976 | esac |
| 1977 | done |
| 1978 | else |
| 1979 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1981 | |
| 1982 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1983 | See \`config.log' for more details." >&5 |
| 1984 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1985 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1986 | { (exit 1); exit 1; }; } |
| 1987 | fi |
| 1988 | |
| 1989 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1990 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1991 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1992 | echo "${ECHO_T}$ac_cv_objext" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1993 | OBJEXT=$ac_cv_objext |
| 1994 | ac_objext=$OBJEXT |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1995 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1996 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1997 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1999 | else |
| 2000 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2001 | /* confdefs.h. */ |
| 2002 | _ACEOF |
| 2003 | cat confdefs.h >>conftest.$ac_ext |
| 2004 | cat >>conftest.$ac_ext <<_ACEOF |
| 2005 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2006 | |
| 2007 | int |
| 2008 | main () |
| 2009 | { |
| 2010 | #ifndef __GNUC__ |
| 2011 | choke me |
| 2012 | #endif |
| 2013 | |
| 2014 | ; |
| 2015 | return 0; |
| 2016 | } |
| 2017 | _ACEOF |
| 2018 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2020 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2021 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2023 | rm -f conftest.er1 |
| 2024 | cat conftest.err >&5 |
| 2025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2026 | (exit $ac_status); } && |
| 2027 | { ac_try='test -z "$ac_c_werror_flag" |
| 2028 | || test ! -s conftest.err' |
| 2029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2030 | (eval $ac_try) 2>&5 |
| 2031 | ac_status=$? |
| 2032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2033 | (exit $ac_status); }; } && |
| 2034 | { ac_try='test -s conftest.$ac_objext' |
| 2035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2036 | (eval $ac_try) 2>&5 |
| 2037 | ac_status=$? |
| 2038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2039 | (exit $ac_status); }; }; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2040 | ac_compiler_gnu=yes |
| 2041 | else |
| 2042 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2044 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2045 | ac_compiler_gnu=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2046 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2048 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2049 | |
| 2050 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2051 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2052 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2053 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2054 | ac_test_CFLAGS=${CFLAGS+set} |
| 2055 | ac_save_CFLAGS=$CFLAGS |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2056 | CFLAGS="-g" |
| 2057 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2058 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2059 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2061 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2062 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2063 | /* confdefs.h. */ |
| 2064 | _ACEOF |
| 2065 | cat confdefs.h >>conftest.$ac_ext |
| 2066 | cat >>conftest.$ac_ext <<_ACEOF |
| 2067 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2068 | |
| 2069 | int |
| 2070 | main () |
| 2071 | { |
| 2072 | |
| 2073 | ; |
| 2074 | return 0; |
| 2075 | } |
| 2076 | _ACEOF |
| 2077 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2079 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2080 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2082 | rm -f conftest.er1 |
| 2083 | cat conftest.err >&5 |
| 2084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2085 | (exit $ac_status); } && |
| 2086 | { ac_try='test -z "$ac_c_werror_flag" |
| 2087 | || test ! -s conftest.err' |
| 2088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2089 | (eval $ac_try) 2>&5 |
| 2090 | ac_status=$? |
| 2091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2092 | (exit $ac_status); }; } && |
| 2093 | { ac_try='test -s conftest.$ac_objext' |
| 2094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2095 | (eval $ac_try) 2>&5 |
| 2096 | ac_status=$? |
| 2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2098 | (exit $ac_status); }; }; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2099 | ac_cv_prog_cc_g=yes |
| 2100 | else |
| 2101 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2103 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2104 | ac_cv_prog_cc_g=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2105 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2107 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2108 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2109 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2110 | if test "$ac_test_CFLAGS" = set; then |
| 2111 | CFLAGS=$ac_save_CFLAGS |
| 2112 | elif test $ac_cv_prog_cc_g = yes; then |
| 2113 | if test "$GCC" = yes; then |
| 2114 | CFLAGS="-g -O2" |
| 2115 | else |
| 2116 | CFLAGS="-g" |
| 2117 | fi |
| 2118 | else |
| 2119 | if test "$GCC" = yes; then |
| 2120 | CFLAGS="-O2" |
| 2121 | else |
| 2122 | CFLAGS= |
| 2123 | fi |
| 2124 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2125 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2126 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2127 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2129 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2130 | ac_cv_prog_cc_stdc=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2131 | ac_save_CC=$CC |
| 2132 | cat >conftest.$ac_ext <<_ACEOF |
| 2133 | /* confdefs.h. */ |
| 2134 | _ACEOF |
| 2135 | cat confdefs.h >>conftest.$ac_ext |
| 2136 | cat >>conftest.$ac_ext <<_ACEOF |
| 2137 | /* end confdefs.h. */ |
| 2138 | #include <stdarg.h> |
| 2139 | #include <stdio.h> |
| 2140 | #include <sys/types.h> |
| 2141 | #include <sys/stat.h> |
| 2142 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2143 | struct buf { int x; }; |
| 2144 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2145 | static char *e (p, i) |
| 2146 | char **p; |
| 2147 | int i; |
| 2148 | { |
| 2149 | return p[i]; |
| 2150 | } |
| 2151 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2152 | { |
| 2153 | char *s; |
| 2154 | va_list v; |
| 2155 | va_start (v,p); |
| 2156 | s = g (p, va_arg (v,int)); |
| 2157 | va_end (v); |
| 2158 | return s; |
| 2159 | } |
| 2160 | |
| 2161 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2162 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2163 | These don't provoke an error unfortunately, instead are silently treated |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2164 | as 'x'. The following induces an error, until -std1 is added to get |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2165 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2166 | array size at least. It's necessary to write '\x00'==0 to get something |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2167 | that's true only with -std1. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2168 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2169 | |
| 2170 | int test (int i, double x); |
| 2171 | struct s1 {int (*f) (int a);}; |
| 2172 | struct s2 {int (*f) (double a);}; |
| 2173 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2174 | int argc; |
| 2175 | char **argv; |
| 2176 | int |
| 2177 | main () |
| 2178 | { |
| 2179 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2180 | ; |
| 2181 | return 0; |
| 2182 | } |
| 2183 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2184 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2185 | # breaks some systems' header files. |
| 2186 | # AIX -qlanglvl=ansi |
| 2187 | # Ultrix and OSF/1 -std1 |
| 2188 | # HP-UX 10.20 and later -Ae |
| 2189 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2190 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2191 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2192 | do |
| 2193 | CC="$ac_save_CC $ac_arg" |
| 2194 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2196 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2197 | ac_status=$? |
| 2198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2199 | rm -f conftest.er1 |
| 2200 | cat conftest.err >&5 |
| 2201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2202 | (exit $ac_status); } && |
| 2203 | { ac_try='test -z "$ac_c_werror_flag" |
| 2204 | || test ! -s conftest.err' |
| 2205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2206 | (eval $ac_try) 2>&5 |
| 2207 | ac_status=$? |
| 2208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2209 | (exit $ac_status); }; } && |
| 2210 | { ac_try='test -s conftest.$ac_objext' |
| 2211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2212 | (eval $ac_try) 2>&5 |
| 2213 | ac_status=$? |
| 2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2215 | (exit $ac_status); }; }; then |
| 2216 | ac_cv_prog_cc_stdc=$ac_arg |
| 2217 | break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2218 | else |
| 2219 | echo "$as_me: failed program was:" >&5 |
| 2220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2221 | |
| 2222 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2223 | rm -f conftest.err conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2224 | done |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2225 | rm -f conftest.$ac_ext conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2226 | CC=$ac_save_CC |
| 2227 | |
| 2228 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2229 | |
| 2230 | case "x$ac_cv_prog_cc_stdc" in |
| 2231 | x|xno) |
| 2232 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2233 | echo "${ECHO_T}none needed" >&6 ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2234 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2235 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2236 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2237 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2238 | esac |
| 2239 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2240 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2241 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2242 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2243 | # the declaration of exit, since it's the most demanding environment. |
| 2244 | cat >conftest.$ac_ext <<_ACEOF |
| 2245 | #ifndef __cplusplus |
| 2246 | choke me |
| 2247 | #endif |
| 2248 | _ACEOF |
| 2249 | rm -f conftest.$ac_objext |
| 2250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2251 | (eval $ac_compile) 2>conftest.er1 |
| 2252 | ac_status=$? |
| 2253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2254 | rm -f conftest.er1 |
| 2255 | cat conftest.err >&5 |
| 2256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2257 | (exit $ac_status); } && |
| 2258 | { ac_try='test -z "$ac_c_werror_flag" |
| 2259 | || test ! -s conftest.err' |
| 2260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2261 | (eval $ac_try) 2>&5 |
| 2262 | ac_status=$? |
| 2263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2264 | (exit $ac_status); }; } && |
| 2265 | { ac_try='test -s conftest.$ac_objext' |
| 2266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2267 | (eval $ac_try) 2>&5 |
| 2268 | ac_status=$? |
| 2269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2270 | (exit $ac_status); }; }; then |
| 2271 | for ac_declaration in \ |
| 2272 | '' \ |
| 2273 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2274 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2275 | 'extern "C" void exit (int) throw ();' \ |
| 2276 | 'extern "C" void exit (int);' \ |
| 2277 | 'void exit (int);' |
| 2278 | do |
| 2279 | cat >conftest.$ac_ext <<_ACEOF |
| 2280 | /* confdefs.h. */ |
| 2281 | _ACEOF |
| 2282 | cat confdefs.h >>conftest.$ac_ext |
| 2283 | cat >>conftest.$ac_ext <<_ACEOF |
| 2284 | /* end confdefs.h. */ |
| 2285 | $ac_declaration |
| 2286 | #include <stdlib.h> |
| 2287 | int |
| 2288 | main () |
| 2289 | { |
| 2290 | exit (42); |
| 2291 | ; |
| 2292 | return 0; |
| 2293 | } |
| 2294 | _ACEOF |
| 2295 | rm -f conftest.$ac_objext |
| 2296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2297 | (eval $ac_compile) 2>conftest.er1 |
| 2298 | ac_status=$? |
| 2299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2300 | rm -f conftest.er1 |
| 2301 | cat conftest.err >&5 |
| 2302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2303 | (exit $ac_status); } && |
| 2304 | { ac_try='test -z "$ac_c_werror_flag" |
| 2305 | || test ! -s conftest.err' |
| 2306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2307 | (eval $ac_try) 2>&5 |
| 2308 | ac_status=$? |
| 2309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2310 | (exit $ac_status); }; } && |
| 2311 | { ac_try='test -s conftest.$ac_objext' |
| 2312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2313 | (eval $ac_try) 2>&5 |
| 2314 | ac_status=$? |
| 2315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2316 | (exit $ac_status); }; }; then |
| 2317 | : |
| 2318 | else |
| 2319 | echo "$as_me: failed program was:" >&5 |
| 2320 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2321 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2322 | continue |
| 2323 | fi |
| 2324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2325 | cat >conftest.$ac_ext <<_ACEOF |
| 2326 | /* confdefs.h. */ |
| 2327 | _ACEOF |
| 2328 | cat confdefs.h >>conftest.$ac_ext |
| 2329 | cat >>conftest.$ac_ext <<_ACEOF |
| 2330 | /* end confdefs.h. */ |
| 2331 | $ac_declaration |
| 2332 | int |
| 2333 | main () |
| 2334 | { |
| 2335 | exit (42); |
| 2336 | ; |
| 2337 | return 0; |
| 2338 | } |
| 2339 | _ACEOF |
| 2340 | rm -f conftest.$ac_objext |
| 2341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2342 | (eval $ac_compile) 2>conftest.er1 |
| 2343 | ac_status=$? |
| 2344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2345 | rm -f conftest.er1 |
| 2346 | cat conftest.err >&5 |
| 2347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2348 | (exit $ac_status); } && |
| 2349 | { ac_try='test -z "$ac_c_werror_flag" |
| 2350 | || test ! -s conftest.err' |
| 2351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2352 | (eval $ac_try) 2>&5 |
| 2353 | ac_status=$? |
| 2354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2355 | (exit $ac_status); }; } && |
| 2356 | { ac_try='test -s conftest.$ac_objext' |
| 2357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2358 | (eval $ac_try) 2>&5 |
| 2359 | ac_status=$? |
| 2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2361 | (exit $ac_status); }; }; then |
| 2362 | break |
| 2363 | else |
| 2364 | echo "$as_me: failed program was:" >&5 |
| 2365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2366 | |
| 2367 | fi |
| 2368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2369 | done |
| 2370 | rm -f conftest* |
| 2371 | if test -n "$ac_declaration"; then |
| 2372 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2373 | echo $ac_declaration >>confdefs.h |
| 2374 | echo '#endif' >>confdefs.h |
| 2375 | fi |
| 2376 | |
| 2377 | else |
| 2378 | echo "$as_me: failed program was:" >&5 |
| 2379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2380 | |
| 2381 | fi |
| 2382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2383 | ac_ext=c |
| 2384 | ac_cpp='$CPP $CPPFLAGS' |
| 2385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2388 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2389 | ac_ext=cc |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2390 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2391 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2392 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2393 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2394 | if test -n "$ac_tool_prefix"; then |
| 2395 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2396 | do |
| 2397 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2398 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2399 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2401 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2403 | else |
| 2404 | if test -n "$CXX"; then |
| 2405 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2406 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2408 | for as_dir in $PATH |
| 2409 | do |
| 2410 | IFS=$as_save_IFS |
| 2411 | test -z "$as_dir" && as_dir=. |
| 2412 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2413 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2414 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2415 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2416 | break 2 |
| 2417 | fi |
| 2418 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2419 | done |
| 2420 | |
| 2421 | fi |
| 2422 | fi |
| 2423 | CXX=$ac_cv_prog_CXX |
| 2424 | if test -n "$CXX"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2425 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2426 | echo "${ECHO_T}$CXX" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2427 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2428 | echo "$as_me:$LINENO: result: no" >&5 |
| 2429 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2430 | fi |
| 2431 | |
| 2432 | test -n "$CXX" && break |
| 2433 | done |
| 2434 | fi |
| 2435 | if test -z "$CXX"; then |
| 2436 | ac_ct_CXX=$CXX |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2437 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2438 | do |
| 2439 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2440 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2441 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2442 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2443 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2445 | else |
| 2446 | if test -n "$ac_ct_CXX"; then |
| 2447 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2448 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2450 | for as_dir in $PATH |
| 2451 | do |
| 2452 | IFS=$as_save_IFS |
| 2453 | test -z "$as_dir" && as_dir=. |
| 2454 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2455 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2456 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2457 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2458 | break 2 |
| 2459 | fi |
| 2460 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2461 | done |
| 2462 | |
| 2463 | fi |
| 2464 | fi |
| 2465 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2466 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2467 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2468 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2469 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2470 | echo "$as_me:$LINENO: result: no" >&5 |
| 2471 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2472 | fi |
| 2473 | |
| 2474 | test -n "$ac_ct_CXX" && break |
| 2475 | done |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2476 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2477 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2478 | CXX=$ac_ct_CXX |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2479 | fi |
| 2480 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2481 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2482 | # Provide some information about the compiler. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2483 | echo "$as_me:$LINENO:" \ |
| 2484 | "checking for C++ compiler version" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2485 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2486 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2487 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2488 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2490 | (exit $ac_status); } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2491 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2492 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2493 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2495 | (exit $ac_status); } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2496 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2497 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2498 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2500 | (exit $ac_status); } |
| 2501 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2502 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2503 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2504 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2506 | else |
| 2507 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2508 | /* confdefs.h. */ |
| 2509 | _ACEOF |
| 2510 | cat confdefs.h >>conftest.$ac_ext |
| 2511 | cat >>conftest.$ac_ext <<_ACEOF |
| 2512 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2513 | |
| 2514 | int |
| 2515 | main () |
| 2516 | { |
| 2517 | #ifndef __GNUC__ |
| 2518 | choke me |
| 2519 | #endif |
| 2520 | |
| 2521 | ; |
| 2522 | return 0; |
| 2523 | } |
| 2524 | _ACEOF |
| 2525 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2527 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2528 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2530 | rm -f conftest.er1 |
| 2531 | cat conftest.err >&5 |
| 2532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2533 | (exit $ac_status); } && |
| 2534 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2535 | || test ! -s conftest.err' |
| 2536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2537 | (eval $ac_try) 2>&5 |
| 2538 | ac_status=$? |
| 2539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2540 | (exit $ac_status); }; } && |
| 2541 | { ac_try='test -s conftest.$ac_objext' |
| 2542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2543 | (eval $ac_try) 2>&5 |
| 2544 | ac_status=$? |
| 2545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2546 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2547 | ac_compiler_gnu=yes |
| 2548 | else |
| 2549 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2551 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2552 | ac_compiler_gnu=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2553 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2555 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2556 | |
| 2557 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2558 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2559 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2560 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2561 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2562 | ac_save_CXXFLAGS=$CXXFLAGS |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2563 | CXXFLAGS="-g" |
| 2564 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2565 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2566 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2568 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2569 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2570 | /* confdefs.h. */ |
| 2571 | _ACEOF |
| 2572 | cat confdefs.h >>conftest.$ac_ext |
| 2573 | cat >>conftest.$ac_ext <<_ACEOF |
| 2574 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2575 | |
| 2576 | int |
| 2577 | main () |
| 2578 | { |
| 2579 | |
| 2580 | ; |
| 2581 | return 0; |
| 2582 | } |
| 2583 | _ACEOF |
| 2584 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2586 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2587 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2589 | rm -f conftest.er1 |
| 2590 | cat conftest.err >&5 |
| 2591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2592 | (exit $ac_status); } && |
| 2593 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2594 | || test ! -s conftest.err' |
| 2595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2596 | (eval $ac_try) 2>&5 |
| 2597 | ac_status=$? |
| 2598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2599 | (exit $ac_status); }; } && |
| 2600 | { ac_try='test -s conftest.$ac_objext' |
| 2601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2602 | (eval $ac_try) 2>&5 |
| 2603 | ac_status=$? |
| 2604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2605 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2606 | ac_cv_prog_cxx_g=yes |
| 2607 | else |
| 2608 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2610 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2611 | ac_cv_prog_cxx_g=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2612 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2614 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2615 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 2616 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2617 | if test "$ac_test_CXXFLAGS" = set; then |
| 2618 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2619 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2620 | if test "$GXX" = yes; then |
| 2621 | CXXFLAGS="-g -O2" |
| 2622 | else |
| 2623 | CXXFLAGS="-g" |
| 2624 | fi |
| 2625 | else |
| 2626 | if test "$GXX" = yes; then |
| 2627 | CXXFLAGS="-O2" |
| 2628 | else |
| 2629 | CXXFLAGS= |
| 2630 | fi |
| 2631 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2632 | for ac_declaration in \ |
| 2633 | '' \ |
| 2634 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2635 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2636 | 'extern "C" void exit (int) throw ();' \ |
| 2637 | 'extern "C" void exit (int);' \ |
| 2638 | 'void exit (int);' |
| 2639 | do |
| 2640 | cat >conftest.$ac_ext <<_ACEOF |
| 2641 | /* confdefs.h. */ |
| 2642 | _ACEOF |
| 2643 | cat confdefs.h >>conftest.$ac_ext |
| 2644 | cat >>conftest.$ac_ext <<_ACEOF |
| 2645 | /* end confdefs.h. */ |
| 2646 | $ac_declaration |
| 2647 | #include <stdlib.h> |
| 2648 | int |
| 2649 | main () |
| 2650 | { |
| 2651 | exit (42); |
| 2652 | ; |
| 2653 | return 0; |
| 2654 | } |
| 2655 | _ACEOF |
| 2656 | rm -f conftest.$ac_objext |
| 2657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2658 | (eval $ac_compile) 2>conftest.er1 |
| 2659 | ac_status=$? |
| 2660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2661 | rm -f conftest.er1 |
| 2662 | cat conftest.err >&5 |
| 2663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2664 | (exit $ac_status); } && |
| 2665 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2666 | || test ! -s conftest.err' |
| 2667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2668 | (eval $ac_try) 2>&5 |
| 2669 | ac_status=$? |
| 2670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2671 | (exit $ac_status); }; } && |
| 2672 | { ac_try='test -s conftest.$ac_objext' |
| 2673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2674 | (eval $ac_try) 2>&5 |
| 2675 | ac_status=$? |
| 2676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2677 | (exit $ac_status); }; }; then |
| 2678 | : |
| 2679 | else |
| 2680 | echo "$as_me: failed program was:" >&5 |
| 2681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2682 | |
| 2683 | continue |
| 2684 | fi |
| 2685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2686 | cat >conftest.$ac_ext <<_ACEOF |
| 2687 | /* confdefs.h. */ |
| 2688 | _ACEOF |
| 2689 | cat confdefs.h >>conftest.$ac_ext |
| 2690 | cat >>conftest.$ac_ext <<_ACEOF |
| 2691 | /* end confdefs.h. */ |
| 2692 | $ac_declaration |
| 2693 | int |
| 2694 | main () |
| 2695 | { |
| 2696 | exit (42); |
| 2697 | ; |
| 2698 | return 0; |
| 2699 | } |
| 2700 | _ACEOF |
| 2701 | rm -f conftest.$ac_objext |
| 2702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2703 | (eval $ac_compile) 2>conftest.er1 |
| 2704 | ac_status=$? |
| 2705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2706 | rm -f conftest.er1 |
| 2707 | cat conftest.err >&5 |
| 2708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2709 | (exit $ac_status); } && |
| 2710 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2711 | || test ! -s conftest.err' |
| 2712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2713 | (eval $ac_try) 2>&5 |
| 2714 | ac_status=$? |
| 2715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2716 | (exit $ac_status); }; } && |
| 2717 | { ac_try='test -s conftest.$ac_objext' |
| 2718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2719 | (eval $ac_try) 2>&5 |
| 2720 | ac_status=$? |
| 2721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2722 | (exit $ac_status); }; }; then |
| 2723 | break |
| 2724 | else |
| 2725 | echo "$as_me: failed program was:" >&5 |
| 2726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2727 | |
| 2728 | fi |
| 2729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2730 | done |
| 2731 | rm -f conftest* |
| 2732 | if test -n "$ac_declaration"; then |
| 2733 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2734 | echo $ac_declaration >>confdefs.h |
| 2735 | echo '#endif' >>confdefs.h |
| 2736 | fi |
| 2737 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2738 | ac_ext=c |
| 2739 | ac_cpp='$CPP $CPPFLAGS' |
| 2740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2743 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2744 | ac_ext=c |
| 2745 | ac_cpp='$CPP $CPPFLAGS' |
| 2746 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2747 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2748 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2749 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2750 | |
| 2751 | |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 2752 | case $target in |
| 2753 | *mingw* | *cygw* | *win32* | *w32* ) |
| 2754 | ac_pjdir=`pwd -W` |
| 2755 | ;; |
| 2756 | *) |
| 2757 | ac_pjdir=`pwd` |
| 2758 | ;; |
| 2759 | esac |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 2760 | |
| 2761 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2762 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2763 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 2764 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2765 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 2766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2767 | else |
| 2768 | ac_check_lib_save_LIBS=$LIBS |
| 2769 | LIBS="-lpthread $LIBS" |
| 2770 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2771 | /* confdefs.h. */ |
| 2772 | _ACEOF |
| 2773 | cat confdefs.h >>conftest.$ac_ext |
| 2774 | cat >>conftest.$ac_ext <<_ACEOF |
| 2775 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2776 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2777 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2778 | #ifdef __cplusplus |
| 2779 | extern "C" |
| 2780 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2781 | /* We use char because int might match the return type of a gcc2 |
| 2782 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2783 | char pthread_create (); |
| 2784 | int |
| 2785 | main () |
| 2786 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2787 | pthread_create (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2788 | ; |
| 2789 | return 0; |
| 2790 | } |
| 2791 | _ACEOF |
| 2792 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2794 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2795 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2797 | rm -f conftest.er1 |
| 2798 | cat conftest.err >&5 |
| 2799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2800 | (exit $ac_status); } && |
| 2801 | { ac_try='test -z "$ac_c_werror_flag" |
| 2802 | || test ! -s conftest.err' |
| 2803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2804 | (eval $ac_try) 2>&5 |
| 2805 | ac_status=$? |
| 2806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2807 | (exit $ac_status); }; } && |
| 2808 | { ac_try='test -s conftest$ac_exeext' |
| 2809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2810 | (eval $ac_try) 2>&5 |
| 2811 | ac_status=$? |
| 2812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2813 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2814 | ac_cv_lib_pthread_pthread_create=yes |
| 2815 | else |
| 2816 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2818 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2819 | ac_cv_lib_pthread_pthread_create=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2820 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2821 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2822 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2823 | LIBS=$ac_check_lib_save_LIBS |
| 2824 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2825 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 2826 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2827 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2828 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2829 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2830 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2831 | |
| 2832 | LIBS="-lpthread $LIBS" |
| 2833 | |
| 2834 | fi |
| 2835 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2836 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2837 | echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5 |
| 2838 | echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2839 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then |
| 2840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2841 | else |
| 2842 | ac_check_lib_save_LIBS=$LIBS |
| 2843 | LIBS="-lwsock32 $LIBS" |
| 2844 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2845 | /* confdefs.h. */ |
| 2846 | _ACEOF |
| 2847 | cat confdefs.h >>conftest.$ac_ext |
| 2848 | cat >>conftest.$ac_ext <<_ACEOF |
| 2849 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2850 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2851 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2852 | #ifdef __cplusplus |
| 2853 | extern "C" |
| 2854 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2855 | /* We use char because int might match the return type of a gcc2 |
| 2856 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2857 | char puts (); |
| 2858 | int |
| 2859 | main () |
| 2860 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2861 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2862 | ; |
| 2863 | return 0; |
| 2864 | } |
| 2865 | _ACEOF |
| 2866 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2868 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2869 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2871 | rm -f conftest.er1 |
| 2872 | cat conftest.err >&5 |
| 2873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2874 | (exit $ac_status); } && |
| 2875 | { ac_try='test -z "$ac_c_werror_flag" |
| 2876 | || test ! -s conftest.err' |
| 2877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2878 | (eval $ac_try) 2>&5 |
| 2879 | ac_status=$? |
| 2880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2881 | (exit $ac_status); }; } && |
| 2882 | { ac_try='test -s conftest$ac_exeext' |
| 2883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2884 | (eval $ac_try) 2>&5 |
| 2885 | ac_status=$? |
| 2886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2887 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2888 | ac_cv_lib_wsock32_puts=yes |
| 2889 | else |
| 2890 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2892 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2893 | ac_cv_lib_wsock32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2894 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2895 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2896 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2897 | LIBS=$ac_check_lib_save_LIBS |
| 2898 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2899 | echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5 |
| 2900 | echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2901 | if test $ac_cv_lib_wsock32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2902 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2903 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2904 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2905 | |
| 2906 | LIBS="-lwsock32 $LIBS" |
| 2907 | |
| 2908 | fi |
| 2909 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2910 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2911 | echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5 |
| 2912 | echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2913 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then |
| 2914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2915 | else |
| 2916 | ac_check_lib_save_LIBS=$LIBS |
| 2917 | LIBS="-lws2_32 $LIBS" |
| 2918 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2919 | /* confdefs.h. */ |
| 2920 | _ACEOF |
| 2921 | cat confdefs.h >>conftest.$ac_ext |
| 2922 | cat >>conftest.$ac_ext <<_ACEOF |
| 2923 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2924 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2925 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2926 | #ifdef __cplusplus |
| 2927 | extern "C" |
| 2928 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2929 | /* We use char because int might match the return type of a gcc2 |
| 2930 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2931 | char puts (); |
| 2932 | int |
| 2933 | main () |
| 2934 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2935 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2936 | ; |
| 2937 | return 0; |
| 2938 | } |
| 2939 | _ACEOF |
| 2940 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2942 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2943 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2945 | rm -f conftest.er1 |
| 2946 | cat conftest.err >&5 |
| 2947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2948 | (exit $ac_status); } && |
| 2949 | { ac_try='test -z "$ac_c_werror_flag" |
| 2950 | || test ! -s conftest.err' |
| 2951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2952 | (eval $ac_try) 2>&5 |
| 2953 | ac_status=$? |
| 2954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2955 | (exit $ac_status); }; } && |
| 2956 | { ac_try='test -s conftest$ac_exeext' |
| 2957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2958 | (eval $ac_try) 2>&5 |
| 2959 | ac_status=$? |
| 2960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2961 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2962 | ac_cv_lib_ws2_32_puts=yes |
| 2963 | else |
| 2964 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2966 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2967 | ac_cv_lib_ws2_32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2968 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2969 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2970 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2971 | LIBS=$ac_check_lib_save_LIBS |
| 2972 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2973 | echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5 |
| 2974 | echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2975 | if test $ac_cv_lib_ws2_32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2976 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2977 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2978 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2979 | |
| 2980 | LIBS="-lws2_32 $LIBS" |
| 2981 | |
| 2982 | fi |
| 2983 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2984 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2985 | echo "$as_me:$LINENO: checking for puts in -lole32" >&5 |
| 2986 | echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2987 | if test "${ac_cv_lib_ole32_puts+set}" = set; then |
| 2988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2989 | else |
| 2990 | ac_check_lib_save_LIBS=$LIBS |
| 2991 | LIBS="-lole32 $LIBS" |
| 2992 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2993 | /* confdefs.h. */ |
| 2994 | _ACEOF |
| 2995 | cat confdefs.h >>conftest.$ac_ext |
| 2996 | cat >>conftest.$ac_ext <<_ACEOF |
| 2997 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2998 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2999 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3000 | #ifdef __cplusplus |
| 3001 | extern "C" |
| 3002 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3003 | /* We use char because int might match the return type of a gcc2 |
| 3004 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3005 | char puts (); |
| 3006 | int |
| 3007 | main () |
| 3008 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3009 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3010 | ; |
| 3011 | return 0; |
| 3012 | } |
| 3013 | _ACEOF |
| 3014 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3016 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3017 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3019 | rm -f conftest.er1 |
| 3020 | cat conftest.err >&5 |
| 3021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3022 | (exit $ac_status); } && |
| 3023 | { ac_try='test -z "$ac_c_werror_flag" |
| 3024 | || test ! -s conftest.err' |
| 3025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3026 | (eval $ac_try) 2>&5 |
| 3027 | ac_status=$? |
| 3028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3029 | (exit $ac_status); }; } && |
| 3030 | { ac_try='test -s conftest$ac_exeext' |
| 3031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3032 | (eval $ac_try) 2>&5 |
| 3033 | ac_status=$? |
| 3034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3035 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3036 | ac_cv_lib_ole32_puts=yes |
| 3037 | else |
| 3038 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3040 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3041 | ac_cv_lib_ole32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3042 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3043 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3044 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3045 | LIBS=$ac_check_lib_save_LIBS |
| 3046 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3047 | echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5 |
| 3048 | echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3049 | if test $ac_cv_lib_ole32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3050 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3051 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3052 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3053 | |
| 3054 | LIBS="-lole32 $LIBS" |
| 3055 | |
| 3056 | fi |
| 3057 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3058 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3059 | echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5 |
| 3060 | echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3061 | if test "${ac_cv_lib_winmm_puts+set}" = set; then |
| 3062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3063 | else |
| 3064 | ac_check_lib_save_LIBS=$LIBS |
| 3065 | LIBS="-lwinmm $LIBS" |
| 3066 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3067 | /* confdefs.h. */ |
| 3068 | _ACEOF |
| 3069 | cat confdefs.h >>conftest.$ac_ext |
| 3070 | cat >>conftest.$ac_ext <<_ACEOF |
| 3071 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3072 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3073 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3074 | #ifdef __cplusplus |
| 3075 | extern "C" |
| 3076 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3077 | /* We use char because int might match the return type of a gcc2 |
| 3078 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3079 | char puts (); |
| 3080 | int |
| 3081 | main () |
| 3082 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3083 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3084 | ; |
| 3085 | return 0; |
| 3086 | } |
| 3087 | _ACEOF |
| 3088 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3090 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3091 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3093 | rm -f conftest.er1 |
| 3094 | cat conftest.err >&5 |
| 3095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3096 | (exit $ac_status); } && |
| 3097 | { ac_try='test -z "$ac_c_werror_flag" |
| 3098 | || test ! -s conftest.err' |
| 3099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3100 | (eval $ac_try) 2>&5 |
| 3101 | ac_status=$? |
| 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3103 | (exit $ac_status); }; } && |
| 3104 | { ac_try='test -s conftest$ac_exeext' |
| 3105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3106 | (eval $ac_try) 2>&5 |
| 3107 | ac_status=$? |
| 3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3109 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3110 | ac_cv_lib_winmm_puts=yes |
| 3111 | else |
| 3112 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3114 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3115 | ac_cv_lib_winmm_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3116 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3117 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3118 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3119 | LIBS=$ac_check_lib_save_LIBS |
| 3120 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3121 | echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5 |
| 3122 | echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3123 | if test $ac_cv_lib_winmm_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3124 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3125 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3126 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3127 | |
| 3128 | LIBS="-lwinmm $LIBS" |
| 3129 | |
| 3130 | fi |
| 3131 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3132 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3133 | echo "$as_me:$LINENO: checking for puts in -lsocket" >&5 |
| 3134 | echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3135 | if test "${ac_cv_lib_socket_puts+set}" = set; then |
| 3136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3137 | else |
| 3138 | ac_check_lib_save_LIBS=$LIBS |
| 3139 | LIBS="-lsocket $LIBS" |
| 3140 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3141 | /* confdefs.h. */ |
| 3142 | _ACEOF |
| 3143 | cat confdefs.h >>conftest.$ac_ext |
| 3144 | cat >>conftest.$ac_ext <<_ACEOF |
| 3145 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3146 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3147 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3148 | #ifdef __cplusplus |
| 3149 | extern "C" |
| 3150 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3151 | /* We use char because int might match the return type of a gcc2 |
| 3152 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3153 | char puts (); |
| 3154 | int |
| 3155 | main () |
| 3156 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3157 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3158 | ; |
| 3159 | return 0; |
| 3160 | } |
| 3161 | _ACEOF |
| 3162 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3164 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3165 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3167 | rm -f conftest.er1 |
| 3168 | cat conftest.err >&5 |
| 3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3170 | (exit $ac_status); } && |
| 3171 | { ac_try='test -z "$ac_c_werror_flag" |
| 3172 | || test ! -s conftest.err' |
| 3173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3174 | (eval $ac_try) 2>&5 |
| 3175 | ac_status=$? |
| 3176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3177 | (exit $ac_status); }; } && |
| 3178 | { ac_try='test -s conftest$ac_exeext' |
| 3179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3180 | (eval $ac_try) 2>&5 |
| 3181 | ac_status=$? |
| 3182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3183 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3184 | ac_cv_lib_socket_puts=yes |
| 3185 | else |
| 3186 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3188 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3189 | ac_cv_lib_socket_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3190 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3191 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3192 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3193 | LIBS=$ac_check_lib_save_LIBS |
| 3194 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3195 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5 |
| 3196 | echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3197 | if test $ac_cv_lib_socket_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3198 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3199 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3200 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3201 | |
| 3202 | LIBS="-lsocket $LIBS" |
| 3203 | |
| 3204 | fi |
| 3205 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3206 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3207 | echo "$as_me:$LINENO: checking for puts in -lrt" >&5 |
| 3208 | echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3209 | if test "${ac_cv_lib_rt_puts+set}" = set; then |
| 3210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3211 | else |
| 3212 | ac_check_lib_save_LIBS=$LIBS |
| 3213 | LIBS="-lrt $LIBS" |
| 3214 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3215 | /* confdefs.h. */ |
| 3216 | _ACEOF |
| 3217 | cat confdefs.h >>conftest.$ac_ext |
| 3218 | cat >>conftest.$ac_ext <<_ACEOF |
| 3219 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3220 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3221 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3222 | #ifdef __cplusplus |
| 3223 | extern "C" |
| 3224 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3225 | /* We use char because int might match the return type of a gcc2 |
| 3226 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3227 | char puts (); |
| 3228 | int |
| 3229 | main () |
| 3230 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3231 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3232 | ; |
| 3233 | return 0; |
| 3234 | } |
| 3235 | _ACEOF |
| 3236 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3238 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3239 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3241 | rm -f conftest.er1 |
| 3242 | cat conftest.err >&5 |
| 3243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3244 | (exit $ac_status); } && |
| 3245 | { ac_try='test -z "$ac_c_werror_flag" |
| 3246 | || test ! -s conftest.err' |
| 3247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3248 | (eval $ac_try) 2>&5 |
| 3249 | ac_status=$? |
| 3250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3251 | (exit $ac_status); }; } && |
| 3252 | { ac_try='test -s conftest$ac_exeext' |
| 3253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3254 | (eval $ac_try) 2>&5 |
| 3255 | ac_status=$? |
| 3256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3257 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3258 | ac_cv_lib_rt_puts=yes |
| 3259 | else |
| 3260 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3262 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3263 | ac_cv_lib_rt_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3264 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3265 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3266 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3267 | LIBS=$ac_check_lib_save_LIBS |
| 3268 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3269 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5 |
| 3270 | echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3271 | if test $ac_cv_lib_rt_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3272 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3273 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3274 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3275 | |
| 3276 | LIBS="-lrt $LIBS" |
| 3277 | |
| 3278 | fi |
| 3279 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3280 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3281 | echo "$as_me:$LINENO: checking for puts in -lnsl" >&5 |
| 3282 | echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3283 | if test "${ac_cv_lib_nsl_puts+set}" = set; then |
| 3284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3285 | else |
| 3286 | ac_check_lib_save_LIBS=$LIBS |
| 3287 | LIBS="-lnsl $LIBS" |
| 3288 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3289 | /* confdefs.h. */ |
| 3290 | _ACEOF |
| 3291 | cat confdefs.h >>conftest.$ac_ext |
| 3292 | cat >>conftest.$ac_ext <<_ACEOF |
| 3293 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3294 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3295 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3296 | #ifdef __cplusplus |
| 3297 | extern "C" |
| 3298 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3299 | /* We use char because int might match the return type of a gcc2 |
| 3300 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3301 | char puts (); |
| 3302 | int |
| 3303 | main () |
| 3304 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3305 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3306 | ; |
| 3307 | return 0; |
| 3308 | } |
| 3309 | _ACEOF |
| 3310 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3312 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3313 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3315 | rm -f conftest.er1 |
| 3316 | cat conftest.err >&5 |
| 3317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3318 | (exit $ac_status); } && |
| 3319 | { ac_try='test -z "$ac_c_werror_flag" |
| 3320 | || test ! -s conftest.err' |
| 3321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3322 | (eval $ac_try) 2>&5 |
| 3323 | ac_status=$? |
| 3324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3325 | (exit $ac_status); }; } && |
| 3326 | { ac_try='test -s conftest$ac_exeext' |
| 3327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3328 | (eval $ac_try) 2>&5 |
| 3329 | ac_status=$? |
| 3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3331 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3332 | ac_cv_lib_nsl_puts=yes |
| 3333 | else |
| 3334 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3336 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3337 | ac_cv_lib_nsl_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3338 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3339 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3340 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3341 | LIBS=$ac_check_lib_save_LIBS |
| 3342 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3343 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5 |
| 3344 | echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3345 | if test $ac_cv_lib_nsl_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3346 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3347 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3348 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3349 | |
| 3350 | LIBS="-lnsl $LIBS" |
| 3351 | |
| 3352 | fi |
| 3353 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3354 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3355 | echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3356 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3357 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3359 | else |
| 3360 | ac_check_lib_save_LIBS=$LIBS |
| 3361 | LIBS="-luuid $LIBS" |
| 3362 | cat >conftest.$ac_ext <<_ACEOF |
| 3363 | /* confdefs.h. */ |
| 3364 | _ACEOF |
| 3365 | cat confdefs.h >>conftest.$ac_ext |
| 3366 | cat >>conftest.$ac_ext <<_ACEOF |
| 3367 | /* end confdefs.h. */ |
| 3368 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3369 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3370 | #ifdef __cplusplus |
| 3371 | extern "C" |
| 3372 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3373 | /* We use char because int might match the return type of a gcc2 |
| 3374 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3375 | char uuid_generate (); |
| 3376 | int |
| 3377 | main () |
| 3378 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3379 | uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3380 | ; |
| 3381 | return 0; |
| 3382 | } |
| 3383 | _ACEOF |
| 3384 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3386 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3387 | ac_status=$? |
| 3388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3389 | rm -f conftest.er1 |
| 3390 | cat conftest.err >&5 |
| 3391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3392 | (exit $ac_status); } && |
| 3393 | { ac_try='test -z "$ac_c_werror_flag" |
| 3394 | || test ! -s conftest.err' |
| 3395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3396 | (eval $ac_try) 2>&5 |
| 3397 | ac_status=$? |
| 3398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3399 | (exit $ac_status); }; } && |
| 3400 | { ac_try='test -s conftest$ac_exeext' |
| 3401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3402 | (eval $ac_try) 2>&5 |
| 3403 | ac_status=$? |
| 3404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3405 | (exit $ac_status); }; }; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3406 | ac_cv_lib_uuid_uuid_generate=yes |
| 3407 | else |
| 3408 | echo "$as_me: failed program was:" >&5 |
| 3409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3410 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3411 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3412 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3413 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3414 | conftest$ac_exeext conftest.$ac_ext |
| 3415 | LIBS=$ac_check_lib_save_LIBS |
| 3416 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3417 | echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3418 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3419 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3420 | cat >>confdefs.h <<_ACEOF |
| 3421 | #define HAVE_LIBUUID 1 |
| 3422 | _ACEOF |
| 3423 | |
| 3424 | LIBS="-luuid $LIBS" |
| 3425 | |
| 3426 | fi |
| 3427 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3428 | echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3429 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3430 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3432 | else |
| 3433 | ac_check_lib_save_LIBS=$LIBS |
| 3434 | LIBS="-luuid $LIBS" |
| 3435 | cat >conftest.$ac_ext <<_ACEOF |
| 3436 | /* confdefs.h. */ |
| 3437 | _ACEOF |
| 3438 | cat confdefs.h >>conftest.$ac_ext |
| 3439 | cat >>conftest.$ac_ext <<_ACEOF |
| 3440 | /* end confdefs.h. */ |
| 3441 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3442 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3443 | #ifdef __cplusplus |
| 3444 | extern "C" |
| 3445 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3446 | /* We use char because int might match the return type of a gcc2 |
| 3447 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3448 | char uuid_generate (); |
| 3449 | int |
| 3450 | main () |
| 3451 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3452 | uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3453 | ; |
| 3454 | return 0; |
| 3455 | } |
| 3456 | _ACEOF |
| 3457 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3459 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3460 | ac_status=$? |
| 3461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3462 | rm -f conftest.er1 |
| 3463 | cat conftest.err >&5 |
| 3464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3465 | (exit $ac_status); } && |
| 3466 | { ac_try='test -z "$ac_c_werror_flag" |
| 3467 | || test ! -s conftest.err' |
| 3468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3469 | (eval $ac_try) 2>&5 |
| 3470 | ac_status=$? |
| 3471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3472 | (exit $ac_status); }; } && |
| 3473 | { ac_try='test -s conftest$ac_exeext' |
| 3474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3475 | (eval $ac_try) 2>&5 |
| 3476 | ac_status=$? |
| 3477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3478 | (exit $ac_status); }; }; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3479 | ac_cv_lib_uuid_uuid_generate=yes |
| 3480 | else |
| 3481 | echo "$as_me: failed program was:" >&5 |
| 3482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3483 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3484 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3485 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3486 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3487 | conftest$ac_exeext conftest.$ac_ext |
| 3488 | LIBS=$ac_check_lib_save_LIBS |
| 3489 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3490 | echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3491 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3492 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3493 | ac_has_uuid_lib=1 |
| 3494 | fi |
| 3495 | |
| 3496 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3497 | echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 3498 | echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3499 | cat >>confdefs.h <<_ACEOF |
| 3500 | #define PJ_M_NAME "$target_cpu" |
| 3501 | _ACEOF |
| 3502 | |
| 3503 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3504 | echo "$as_me:$LINENO: checking memory alignment" >&5 |
| 3505 | echo $ECHO_N "checking memory alignment... $ECHO_C" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3506 | case $target in |
| 3507 | ia64-* | x86_64-* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3508 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3509 | #define PJ_POOL_ALIGNMENT 8 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3510 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3511 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3512 | echo "$as_me:$LINENO: result: 8 bytes" >&5 |
| 3513 | echo "${ECHO_T}8 bytes" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3514 | ;; |
| 3515 | * ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3516 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3517 | #define PJ_POOL_ALIGNMENT 4 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3518 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3519 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3520 | echo "$as_me:$LINENO: result: 4 bytes (default)" >&5 |
| 3521 | echo "${ECHO_T}4 bytes (default)" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3522 | ;; |
| 3523 | esac |
| 3524 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3525 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3526 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 3527 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3528 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 3529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3530 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3531 | # See if sys/param.h defines the BYTE_ORDER macro. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3532 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3533 | /* confdefs.h. */ |
| 3534 | _ACEOF |
| 3535 | cat confdefs.h >>conftest.$ac_ext |
| 3536 | cat >>conftest.$ac_ext <<_ACEOF |
| 3537 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3538 | #include <sys/types.h> |
| 3539 | #include <sys/param.h> |
| 3540 | |
| 3541 | int |
| 3542 | main () |
| 3543 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3544 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3545 | bogus endian macros |
| 3546 | #endif |
| 3547 | |
| 3548 | ; |
| 3549 | return 0; |
| 3550 | } |
| 3551 | _ACEOF |
| 3552 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3554 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3555 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3557 | rm -f conftest.er1 |
| 3558 | cat conftest.err >&5 |
| 3559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3560 | (exit $ac_status); } && |
| 3561 | { ac_try='test -z "$ac_c_werror_flag" |
| 3562 | || test ! -s conftest.err' |
| 3563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3564 | (eval $ac_try) 2>&5 |
| 3565 | ac_status=$? |
| 3566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3567 | (exit $ac_status); }; } && |
| 3568 | { ac_try='test -s conftest.$ac_objext' |
| 3569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3570 | (eval $ac_try) 2>&5 |
| 3571 | ac_status=$? |
| 3572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3573 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3574 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 3575 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3576 | /* confdefs.h. */ |
| 3577 | _ACEOF |
| 3578 | cat confdefs.h >>conftest.$ac_ext |
| 3579 | cat >>conftest.$ac_ext <<_ACEOF |
| 3580 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3581 | #include <sys/types.h> |
| 3582 | #include <sys/param.h> |
| 3583 | |
| 3584 | int |
| 3585 | main () |
| 3586 | { |
| 3587 | #if BYTE_ORDER != BIG_ENDIAN |
| 3588 | not big endian |
| 3589 | #endif |
| 3590 | |
| 3591 | ; |
| 3592 | return 0; |
| 3593 | } |
| 3594 | _ACEOF |
| 3595 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3597 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3598 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3600 | rm -f conftest.er1 |
| 3601 | cat conftest.err >&5 |
| 3602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3603 | (exit $ac_status); } && |
| 3604 | { ac_try='test -z "$ac_c_werror_flag" |
| 3605 | || test ! -s conftest.err' |
| 3606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3607 | (eval $ac_try) 2>&5 |
| 3608 | ac_status=$? |
| 3609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3610 | (exit $ac_status); }; } && |
| 3611 | { ac_try='test -s conftest.$ac_objext' |
| 3612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3613 | (eval $ac_try) 2>&5 |
| 3614 | ac_status=$? |
| 3615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3616 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3617 | ac_cv_c_bigendian=yes |
| 3618 | else |
| 3619 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3621 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3622 | ac_cv_c_bigendian=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3623 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3625 | else |
| 3626 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3628 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3629 | # It does not; compile a test program. |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3630 | if test "$cross_compiling" = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3631 | # try to guess the endianness by grepping values into an object file |
| 3632 | ac_cv_c_bigendian=unknown |
| 3633 | cat >conftest.$ac_ext <<_ACEOF |
| 3634 | /* confdefs.h. */ |
| 3635 | _ACEOF |
| 3636 | cat confdefs.h >>conftest.$ac_ext |
| 3637 | cat >>conftest.$ac_ext <<_ACEOF |
| 3638 | /* end confdefs.h. */ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3639 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 3640 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3641 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3642 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 3643 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3644 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 3645 | int |
| 3646 | main () |
| 3647 | { |
| 3648 | _ascii (); _ebcdic (); |
| 3649 | ; |
| 3650 | return 0; |
| 3651 | } |
| 3652 | _ACEOF |
| 3653 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3655 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3656 | ac_status=$? |
| 3657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3658 | rm -f conftest.er1 |
| 3659 | cat conftest.err >&5 |
| 3660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3661 | (exit $ac_status); } && |
| 3662 | { ac_try='test -z "$ac_c_werror_flag" |
| 3663 | || test ! -s conftest.err' |
| 3664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3665 | (eval $ac_try) 2>&5 |
| 3666 | ac_status=$? |
| 3667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3668 | (exit $ac_status); }; } && |
| 3669 | { ac_try='test -s conftest.$ac_objext' |
| 3670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3671 | (eval $ac_try) 2>&5 |
| 3672 | ac_status=$? |
| 3673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3674 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3675 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 3676 | ac_cv_c_bigendian=yes |
| 3677 | fi |
| 3678 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 3679 | if test "$ac_cv_c_bigendian" = unknown; then |
| 3680 | ac_cv_c_bigendian=no |
| 3681 | else |
| 3682 | # finding both strings is unlikely to happen, but who knows? |
| 3683 | ac_cv_c_bigendian=unknown |
| 3684 | fi |
| 3685 | fi |
| 3686 | else |
| 3687 | echo "$as_me: failed program was:" >&5 |
| 3688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3689 | |
| 3690 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3692 | else |
| 3693 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3694 | /* confdefs.h. */ |
| 3695 | _ACEOF |
| 3696 | cat confdefs.h >>conftest.$ac_ext |
| 3697 | cat >>conftest.$ac_ext <<_ACEOF |
| 3698 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3699 | int |
| 3700 | main () |
| 3701 | { |
| 3702 | /* Are we little or big endian? From Harbison&Steele. */ |
| 3703 | union |
| 3704 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3705 | long l; |
| 3706 | char c[sizeof (long)]; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3707 | } u; |
| 3708 | u.l = 1; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3709 | exit (u.c[sizeof (long) - 1] == 1); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3710 | } |
| 3711 | _ACEOF |
| 3712 | rm -f conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3714 | (eval $ac_link) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3715 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3717 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3719 | (eval $ac_try) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3720 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3722 | (exit $ac_status); }; }; then |
| 3723 | ac_cv_c_bigendian=no |
| 3724 | else |
| 3725 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3726 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3728 | |
| 3729 | ( exit $ac_status ) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3730 | ac_cv_c_bigendian=yes |
| 3731 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3732 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3733 | fi |
| 3734 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3736 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3737 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 3738 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3739 | case $ac_cv_c_bigendian in |
| 3740 | yes) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3741 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3742 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 3743 | #define WORDS_BIGENDIAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3744 | _ACEOF |
| 3745 | ;; |
| 3746 | no) |
| 3747 | ;; |
| 3748 | *) |
| 3749 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 3750 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 3751 | echo "$as_me: error: unknown endianness |
| 3752 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 3753 | { (exit 1); exit 1; }; } ;; |
| 3754 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3755 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3756 | |
| 3757 | case $target in |
| 3758 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3759 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3760 | #define PJ_WIN32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3761 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3762 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3763 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3764 | #define PJ_WIN32_WINNT 0x0400 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3765 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3766 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3767 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3768 | #define WIN32_LEAN_AND_MEAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3769 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3770 | |
| 3771 | ;; |
| 3772 | *darwin*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3773 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3774 | #define PJ_DARWINOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3775 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3776 | |
| 3777 | ;; |
| 3778 | *linux*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3779 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3780 | #define PJ_LINUX 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3781 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3782 | |
| 3783 | ;; |
| 3784 | *rtems*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3785 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3786 | #define PJ_RTEMS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3787 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3788 | |
| 3789 | ;; |
| 3790 | *sunos* | *solaris* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3791 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3792 | #define PJ_SUNOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3793 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3794 | |
| 3795 | ;; |
| 3796 | *) |
| 3797 | ;; |
| 3798 | esac |
| 3799 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3800 | |
| 3801 | |
| 3802 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3803 | # Check whether --enable-floating-point or --disable-floating-point was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3804 | if test "${enable_floating_point+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3805 | enableval="$enable_floating_point" |
| 3806 | if test "$enable_floating_point" = "no"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3807 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3808 | #define PJ_HAS_FLOATING_POINT 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3809 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3810 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3811 | echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5 |
| 3812 | echo "${ECHO_T}Checking if floating point is disabled... yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3813 | fi |
| 3814 | else |
| 3815 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3816 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3817 | #define PJ_HAS_FLOATING_POINT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3818 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3819 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3820 | echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5 |
| 3821 | echo "${ECHO_T}Checking if floating point is disabled... no" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3822 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3823 | echo "$as_me:$LINENO: checking for fmod in -lm" >&5 |
| 3824 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3825 | if test "${ac_cv_lib_m_fmod+set}" = set; then |
| 3826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3827 | else |
| 3828 | ac_check_lib_save_LIBS=$LIBS |
| 3829 | LIBS="-lm $LIBS" |
| 3830 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3831 | /* confdefs.h. */ |
| 3832 | _ACEOF |
| 3833 | cat confdefs.h >>conftest.$ac_ext |
| 3834 | cat >>conftest.$ac_ext <<_ACEOF |
| 3835 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3836 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3837 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3838 | #ifdef __cplusplus |
| 3839 | extern "C" |
| 3840 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3841 | /* We use char because int might match the return type of a gcc2 |
| 3842 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3843 | char fmod (); |
| 3844 | int |
| 3845 | main () |
| 3846 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3847 | fmod (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3848 | ; |
| 3849 | return 0; |
| 3850 | } |
| 3851 | _ACEOF |
| 3852 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3854 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3855 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3857 | rm -f conftest.er1 |
| 3858 | cat conftest.err >&5 |
| 3859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3860 | (exit $ac_status); } && |
| 3861 | { ac_try='test -z "$ac_c_werror_flag" |
| 3862 | || test ! -s conftest.err' |
| 3863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3864 | (eval $ac_try) 2>&5 |
| 3865 | ac_status=$? |
| 3866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3867 | (exit $ac_status); }; } && |
| 3868 | { ac_try='test -s conftest$ac_exeext' |
| 3869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3870 | (eval $ac_try) 2>&5 |
| 3871 | ac_status=$? |
| 3872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3873 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3874 | ac_cv_lib_m_fmod=yes |
| 3875 | else |
| 3876 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3878 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3879 | ac_cv_lib_m_fmod=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3880 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3881 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3882 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3883 | LIBS=$ac_check_lib_save_LIBS |
| 3884 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3885 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 |
| 3886 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3887 | if test $ac_cv_lib_m_fmod = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3888 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3889 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3890 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3891 | |
| 3892 | LIBS="-lm $LIBS" |
| 3893 | |
| 3894 | fi |
| 3895 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3896 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3897 | fi; |
| 3898 | |
| 3899 | |
| 3900 | ac_ext=c |
| 3901 | ac_cpp='$CPP $CPPFLAGS' |
| 3902 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3903 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3904 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3905 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3906 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3907 | # On Suns, sometimes $CPP names a directory. |
| 3908 | if test -n "$CPP" && test -d "$CPP"; then |
| 3909 | CPP= |
| 3910 | fi |
| 3911 | if test -z "$CPP"; then |
| 3912 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3914 | else |
| 3915 | # Double quotes because CPP needs to be expanded |
| 3916 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3917 | do |
| 3918 | ac_preproc_ok=false |
| 3919 | for ac_c_preproc_warn_flag in '' yes |
| 3920 | do |
| 3921 | # Use a header file that comes with gcc, so configuring glibc |
| 3922 | # with a fresh cross-compiler works. |
| 3923 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3924 | # <limits.h> exists even on freestanding compilers. |
| 3925 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3926 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3927 | cat >conftest.$ac_ext <<_ACEOF |
| 3928 | /* confdefs.h. */ |
| 3929 | _ACEOF |
| 3930 | cat confdefs.h >>conftest.$ac_ext |
| 3931 | cat >>conftest.$ac_ext <<_ACEOF |
| 3932 | /* end confdefs.h. */ |
| 3933 | #ifdef __STDC__ |
| 3934 | # include <limits.h> |
| 3935 | #else |
| 3936 | # include <assert.h> |
| 3937 | #endif |
| 3938 | Syntax error |
| 3939 | _ACEOF |
| 3940 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3941 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3942 | ac_status=$? |
| 3943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3944 | rm -f conftest.er1 |
| 3945 | cat conftest.err >&5 |
| 3946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3947 | (exit $ac_status); } >/dev/null; then |
| 3948 | if test -s conftest.err; then |
| 3949 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3950 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3951 | else |
| 3952 | ac_cpp_err= |
| 3953 | fi |
| 3954 | else |
| 3955 | ac_cpp_err=yes |
| 3956 | fi |
| 3957 | if test -z "$ac_cpp_err"; then |
| 3958 | : |
| 3959 | else |
| 3960 | echo "$as_me: failed program was:" >&5 |
| 3961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3962 | |
| 3963 | # Broken: fails on valid input. |
| 3964 | continue |
| 3965 | fi |
| 3966 | rm -f conftest.err conftest.$ac_ext |
| 3967 | |
| 3968 | # OK, works on sane cases. Now check whether non-existent headers |
| 3969 | # can be detected and how. |
| 3970 | cat >conftest.$ac_ext <<_ACEOF |
| 3971 | /* confdefs.h. */ |
| 3972 | _ACEOF |
| 3973 | cat confdefs.h >>conftest.$ac_ext |
| 3974 | cat >>conftest.$ac_ext <<_ACEOF |
| 3975 | /* end confdefs.h. */ |
| 3976 | #include <ac_nonexistent.h> |
| 3977 | _ACEOF |
| 3978 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3979 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3980 | ac_status=$? |
| 3981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3982 | rm -f conftest.er1 |
| 3983 | cat conftest.err >&5 |
| 3984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3985 | (exit $ac_status); } >/dev/null; then |
| 3986 | if test -s conftest.err; then |
| 3987 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3988 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3989 | else |
| 3990 | ac_cpp_err= |
| 3991 | fi |
| 3992 | else |
| 3993 | ac_cpp_err=yes |
| 3994 | fi |
| 3995 | if test -z "$ac_cpp_err"; then |
| 3996 | # Broken: success on invalid input. |
| 3997 | continue |
| 3998 | else |
| 3999 | echo "$as_me: failed program was:" >&5 |
| 4000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4001 | |
| 4002 | # Passes both tests. |
| 4003 | ac_preproc_ok=: |
| 4004 | break |
| 4005 | fi |
| 4006 | rm -f conftest.err conftest.$ac_ext |
| 4007 | |
| 4008 | done |
| 4009 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4010 | rm -f conftest.err conftest.$ac_ext |
| 4011 | if $ac_preproc_ok; then |
| 4012 | break |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4013 | fi |
| 4014 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4015 | done |
| 4016 | ac_cv_prog_CPP=$CPP |
| 4017 | |
| 4018 | fi |
| 4019 | CPP=$ac_cv_prog_CPP |
| 4020 | else |
| 4021 | ac_cv_prog_CPP=$CPP |
| 4022 | fi |
| 4023 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4024 | echo "${ECHO_T}$CPP" >&6 |
| 4025 | ac_preproc_ok=false |
| 4026 | for ac_c_preproc_warn_flag in '' yes |
| 4027 | do |
| 4028 | # Use a header file that comes with gcc, so configuring glibc |
| 4029 | # with a fresh cross-compiler works. |
| 4030 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4031 | # <limits.h> exists even on freestanding compilers. |
| 4032 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4033 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4034 | cat >conftest.$ac_ext <<_ACEOF |
| 4035 | /* confdefs.h. */ |
| 4036 | _ACEOF |
| 4037 | cat confdefs.h >>conftest.$ac_ext |
| 4038 | cat >>conftest.$ac_ext <<_ACEOF |
| 4039 | /* end confdefs.h. */ |
| 4040 | #ifdef __STDC__ |
| 4041 | # include <limits.h> |
| 4042 | #else |
| 4043 | # include <assert.h> |
| 4044 | #endif |
| 4045 | Syntax error |
| 4046 | _ACEOF |
| 4047 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4048 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4049 | ac_status=$? |
| 4050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4051 | rm -f conftest.er1 |
| 4052 | cat conftest.err >&5 |
| 4053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4054 | (exit $ac_status); } >/dev/null; then |
| 4055 | if test -s conftest.err; then |
| 4056 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4057 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4058 | else |
| 4059 | ac_cpp_err= |
| 4060 | fi |
| 4061 | else |
| 4062 | ac_cpp_err=yes |
| 4063 | fi |
| 4064 | if test -z "$ac_cpp_err"; then |
| 4065 | : |
| 4066 | else |
| 4067 | echo "$as_me: failed program was:" >&5 |
| 4068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4069 | |
| 4070 | # Broken: fails on valid input. |
| 4071 | continue |
| 4072 | fi |
| 4073 | rm -f conftest.err conftest.$ac_ext |
| 4074 | |
| 4075 | # OK, works on sane cases. Now check whether non-existent headers |
| 4076 | # can be detected and how. |
| 4077 | cat >conftest.$ac_ext <<_ACEOF |
| 4078 | /* confdefs.h. */ |
| 4079 | _ACEOF |
| 4080 | cat confdefs.h >>conftest.$ac_ext |
| 4081 | cat >>conftest.$ac_ext <<_ACEOF |
| 4082 | /* end confdefs.h. */ |
| 4083 | #include <ac_nonexistent.h> |
| 4084 | _ACEOF |
| 4085 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4086 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4087 | ac_status=$? |
| 4088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4089 | rm -f conftest.er1 |
| 4090 | cat conftest.err >&5 |
| 4091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4092 | (exit $ac_status); } >/dev/null; then |
| 4093 | if test -s conftest.err; then |
| 4094 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4095 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4096 | else |
| 4097 | ac_cpp_err= |
| 4098 | fi |
| 4099 | else |
| 4100 | ac_cpp_err=yes |
| 4101 | fi |
| 4102 | if test -z "$ac_cpp_err"; then |
| 4103 | # Broken: success on invalid input. |
| 4104 | continue |
| 4105 | else |
| 4106 | echo "$as_me: failed program was:" >&5 |
| 4107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4108 | |
| 4109 | # Passes both tests. |
| 4110 | ac_preproc_ok=: |
| 4111 | break |
| 4112 | fi |
| 4113 | rm -f conftest.err conftest.$ac_ext |
| 4114 | |
| 4115 | done |
| 4116 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4117 | rm -f conftest.err conftest.$ac_ext |
| 4118 | if $ac_preproc_ok; then |
| 4119 | : |
| 4120 | else |
| 4121 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4122 | See \`config.log' for more details." >&5 |
| 4123 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4124 | See \`config.log' for more details." >&2;} |
| 4125 | { (exit 1); exit 1; }; } |
| 4126 | fi |
| 4127 | |
| 4128 | ac_ext=c |
| 4129 | ac_cpp='$CPP $CPPFLAGS' |
| 4130 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4131 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4132 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4133 | |
| 4134 | |
| 4135 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4136 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 4137 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 4138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4139 | else |
| 4140 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 4141 | then ac_cv_prog_egrep='grep -E' |
| 4142 | else ac_cv_prog_egrep='egrep' |
| 4143 | fi |
| 4144 | fi |
| 4145 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 4146 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 4147 | EGREP=$ac_cv_prog_egrep |
| 4148 | |
| 4149 | |
| 4150 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4151 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4152 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4154 | else |
| 4155 | cat >conftest.$ac_ext <<_ACEOF |
| 4156 | /* confdefs.h. */ |
| 4157 | _ACEOF |
| 4158 | cat confdefs.h >>conftest.$ac_ext |
| 4159 | cat >>conftest.$ac_ext <<_ACEOF |
| 4160 | /* end confdefs.h. */ |
| 4161 | #include <stdlib.h> |
| 4162 | #include <stdarg.h> |
| 4163 | #include <string.h> |
| 4164 | #include <float.h> |
| 4165 | |
| 4166 | int |
| 4167 | main () |
| 4168 | { |
| 4169 | |
| 4170 | ; |
| 4171 | return 0; |
| 4172 | } |
| 4173 | _ACEOF |
| 4174 | rm -f conftest.$ac_objext |
| 4175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4176 | (eval $ac_compile) 2>conftest.er1 |
| 4177 | ac_status=$? |
| 4178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4179 | rm -f conftest.er1 |
| 4180 | cat conftest.err >&5 |
| 4181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4182 | (exit $ac_status); } && |
| 4183 | { ac_try='test -z "$ac_c_werror_flag" |
| 4184 | || test ! -s conftest.err' |
| 4185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4186 | (eval $ac_try) 2>&5 |
| 4187 | ac_status=$? |
| 4188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4189 | (exit $ac_status); }; } && |
| 4190 | { ac_try='test -s conftest.$ac_objext' |
| 4191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4192 | (eval $ac_try) 2>&5 |
| 4193 | ac_status=$? |
| 4194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4195 | (exit $ac_status); }; }; then |
| 4196 | ac_cv_header_stdc=yes |
| 4197 | else |
| 4198 | echo "$as_me: failed program was:" >&5 |
| 4199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4200 | |
| 4201 | ac_cv_header_stdc=no |
| 4202 | fi |
| 4203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4204 | |
| 4205 | if test $ac_cv_header_stdc = yes; then |
| 4206 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4207 | cat >conftest.$ac_ext <<_ACEOF |
| 4208 | /* confdefs.h. */ |
| 4209 | _ACEOF |
| 4210 | cat confdefs.h >>conftest.$ac_ext |
| 4211 | cat >>conftest.$ac_ext <<_ACEOF |
| 4212 | /* end confdefs.h. */ |
| 4213 | #include <string.h> |
| 4214 | |
| 4215 | _ACEOF |
| 4216 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4217 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4218 | : |
| 4219 | else |
| 4220 | ac_cv_header_stdc=no |
| 4221 | fi |
| 4222 | rm -f conftest* |
| 4223 | |
| 4224 | fi |
| 4225 | |
| 4226 | if test $ac_cv_header_stdc = yes; then |
| 4227 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4228 | cat >conftest.$ac_ext <<_ACEOF |
| 4229 | /* confdefs.h. */ |
| 4230 | _ACEOF |
| 4231 | cat confdefs.h >>conftest.$ac_ext |
| 4232 | cat >>conftest.$ac_ext <<_ACEOF |
| 4233 | /* end confdefs.h. */ |
| 4234 | #include <stdlib.h> |
| 4235 | |
| 4236 | _ACEOF |
| 4237 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4238 | $EGREP "free" >/dev/null 2>&1; then |
| 4239 | : |
| 4240 | else |
| 4241 | ac_cv_header_stdc=no |
| 4242 | fi |
| 4243 | rm -f conftest* |
| 4244 | |
| 4245 | fi |
| 4246 | |
| 4247 | if test $ac_cv_header_stdc = yes; then |
| 4248 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4249 | if test "$cross_compiling" = yes; then |
| 4250 | : |
| 4251 | else |
| 4252 | cat >conftest.$ac_ext <<_ACEOF |
| 4253 | /* confdefs.h. */ |
| 4254 | _ACEOF |
| 4255 | cat confdefs.h >>conftest.$ac_ext |
| 4256 | cat >>conftest.$ac_ext <<_ACEOF |
| 4257 | /* end confdefs.h. */ |
| 4258 | #include <ctype.h> |
| 4259 | #if ((' ' & 0x0FF) == 0x020) |
| 4260 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4261 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4262 | #else |
| 4263 | # define ISLOWER(c) \ |
| 4264 | (('a' <= (c) && (c) <= 'i') \ |
| 4265 | || ('j' <= (c) && (c) <= 'r') \ |
| 4266 | || ('s' <= (c) && (c) <= 'z')) |
| 4267 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4268 | #endif |
| 4269 | |
| 4270 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4271 | int |
| 4272 | main () |
| 4273 | { |
| 4274 | int i; |
| 4275 | for (i = 0; i < 256; i++) |
| 4276 | if (XOR (islower (i), ISLOWER (i)) |
| 4277 | || toupper (i) != TOUPPER (i)) |
| 4278 | exit(2); |
| 4279 | exit (0); |
| 4280 | } |
| 4281 | _ACEOF |
| 4282 | rm -f conftest$ac_exeext |
| 4283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4284 | (eval $ac_link) 2>&5 |
| 4285 | ac_status=$? |
| 4286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4287 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4289 | (eval $ac_try) 2>&5 |
| 4290 | ac_status=$? |
| 4291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4292 | (exit $ac_status); }; }; then |
| 4293 | : |
| 4294 | else |
| 4295 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4296 | echo "$as_me: failed program was:" >&5 |
| 4297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4298 | |
| 4299 | ( exit $ac_status ) |
| 4300 | ac_cv_header_stdc=no |
| 4301 | fi |
| 4302 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4303 | fi |
| 4304 | fi |
| 4305 | fi |
| 4306 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4307 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4308 | if test $ac_cv_header_stdc = yes; then |
| 4309 | |
| 4310 | cat >>confdefs.h <<\_ACEOF |
| 4311 | #define STDC_HEADERS 1 |
| 4312 | _ACEOF |
| 4313 | |
| 4314 | fi |
| 4315 | |
| 4316 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4317 | |
| 4318 | |
| 4319 | |
| 4320 | |
| 4321 | |
| 4322 | |
| 4323 | |
| 4324 | |
| 4325 | |
| 4326 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4327 | inttypes.h stdint.h unistd.h |
| 4328 | do |
| 4329 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4330 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4331 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4332 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4334 | else |
| 4335 | cat >conftest.$ac_ext <<_ACEOF |
| 4336 | /* confdefs.h. */ |
| 4337 | _ACEOF |
| 4338 | cat confdefs.h >>conftest.$ac_ext |
| 4339 | cat >>conftest.$ac_ext <<_ACEOF |
| 4340 | /* end confdefs.h. */ |
| 4341 | $ac_includes_default |
| 4342 | |
| 4343 | #include <$ac_header> |
| 4344 | _ACEOF |
| 4345 | rm -f conftest.$ac_objext |
| 4346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4347 | (eval $ac_compile) 2>conftest.er1 |
| 4348 | ac_status=$? |
| 4349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4350 | rm -f conftest.er1 |
| 4351 | cat conftest.err >&5 |
| 4352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4353 | (exit $ac_status); } && |
| 4354 | { ac_try='test -z "$ac_c_werror_flag" |
| 4355 | || test ! -s conftest.err' |
| 4356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4357 | (eval $ac_try) 2>&5 |
| 4358 | ac_status=$? |
| 4359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4360 | (exit $ac_status); }; } && |
| 4361 | { ac_try='test -s conftest.$ac_objext' |
| 4362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4363 | (eval $ac_try) 2>&5 |
| 4364 | ac_status=$? |
| 4365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4366 | (exit $ac_status); }; }; then |
| 4367 | eval "$as_ac_Header=yes" |
| 4368 | else |
| 4369 | echo "$as_me: failed program was:" >&5 |
| 4370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4371 | |
| 4372 | eval "$as_ac_Header=no" |
| 4373 | fi |
| 4374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4375 | fi |
| 4376 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4377 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4378 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4379 | cat >>confdefs.h <<_ACEOF |
| 4380 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4381 | _ACEOF |
| 4382 | |
| 4383 | fi |
| 4384 | |
| 4385 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4386 | |
| 4387 | |
| 4388 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4389 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 4390 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4391 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4393 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4394 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4395 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4396 | else |
| 4397 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4398 | echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
| 4399 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4400 | cat >conftest.$ac_ext <<_ACEOF |
| 4401 | /* confdefs.h. */ |
| 4402 | _ACEOF |
| 4403 | cat confdefs.h >>conftest.$ac_ext |
| 4404 | cat >>conftest.$ac_ext <<_ACEOF |
| 4405 | /* end confdefs.h. */ |
| 4406 | $ac_includes_default |
| 4407 | #include <arpa/inet.h> |
| 4408 | _ACEOF |
| 4409 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4411 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4412 | ac_status=$? |
| 4413 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4414 | rm -f conftest.er1 |
| 4415 | cat conftest.err >&5 |
| 4416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4417 | (exit $ac_status); } && |
| 4418 | { ac_try='test -z "$ac_c_werror_flag" |
| 4419 | || test ! -s conftest.err' |
| 4420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4421 | (eval $ac_try) 2>&5 |
| 4422 | ac_status=$? |
| 4423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4424 | (exit $ac_status); }; } && |
| 4425 | { ac_try='test -s conftest.$ac_objext' |
| 4426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4427 | (eval $ac_try) 2>&5 |
| 4428 | ac_status=$? |
| 4429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4430 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4431 | ac_header_compiler=yes |
| 4432 | else |
| 4433 | echo "$as_me: failed program was:" >&5 |
| 4434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4435 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4436 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4437 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4439 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4440 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4441 | |
| 4442 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4443 | echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
| 4444 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4445 | cat >conftest.$ac_ext <<_ACEOF |
| 4446 | /* confdefs.h. */ |
| 4447 | _ACEOF |
| 4448 | cat confdefs.h >>conftest.$ac_ext |
| 4449 | cat >>conftest.$ac_ext <<_ACEOF |
| 4450 | /* end confdefs.h. */ |
| 4451 | #include <arpa/inet.h> |
| 4452 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4453 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4454 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4455 | ac_status=$? |
| 4456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4457 | rm -f conftest.er1 |
| 4458 | cat conftest.err >&5 |
| 4459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4460 | (exit $ac_status); } >/dev/null; then |
| 4461 | if test -s conftest.err; then |
| 4462 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4463 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4464 | else |
| 4465 | ac_cpp_err= |
| 4466 | fi |
| 4467 | else |
| 4468 | ac_cpp_err=yes |
| 4469 | fi |
| 4470 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4471 | ac_header_preproc=yes |
| 4472 | else |
| 4473 | echo "$as_me: failed program was:" >&5 |
| 4474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4475 | |
| 4476 | ac_header_preproc=no |
| 4477 | fi |
| 4478 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4479 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4480 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4481 | |
| 4482 | # So? What about this header? |
| 4483 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4484 | yes:no: ) |
| 4485 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4486 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4487 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
| 4488 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} |
| 4489 | ac_header_preproc=yes |
| 4490 | ;; |
| 4491 | no:yes:* ) |
| 4492 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
| 4493 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} |
| 4494 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
| 4495 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} |
| 4496 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 |
| 4497 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} |
| 4498 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4499 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4500 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
| 4501 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
| 4502 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
| 4503 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4504 | ( |
| 4505 | cat <<\_ASBOX |
| 4506 | ## ------------------------------------ ## |
| 4507 | ## Report this to the pjproject lists. ## |
| 4508 | ## ------------------------------------ ## |
| 4509 | _ASBOX |
| 4510 | ) | |
| 4511 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4512 | ;; |
| 4513 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4514 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 4515 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4516 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4518 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4519 | ac_cv_header_arpa_inet_h=$ac_header_preproc |
| 4520 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4521 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4522 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4523 | |
| 4524 | fi |
| 4525 | if test $ac_cv_header_arpa_inet_h = yes; then |
| 4526 | cat >>confdefs.h <<\_ACEOF |
| 4527 | #define PJ_HAS_ARPA_INET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4528 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4529 | |
| 4530 | fi |
| 4531 | |
| 4532 | |
| 4533 | if test "${ac_cv_header_assert_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4534 | echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 4535 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4536 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4538 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4539 | echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 4540 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4541 | else |
| 4542 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4543 | echo "$as_me:$LINENO: checking assert.h usability" >&5 |
| 4544 | echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4545 | cat >conftest.$ac_ext <<_ACEOF |
| 4546 | /* confdefs.h. */ |
| 4547 | _ACEOF |
| 4548 | cat confdefs.h >>conftest.$ac_ext |
| 4549 | cat >>conftest.$ac_ext <<_ACEOF |
| 4550 | /* end confdefs.h. */ |
| 4551 | $ac_includes_default |
| 4552 | #include <assert.h> |
| 4553 | _ACEOF |
| 4554 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4556 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4557 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4558 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4559 | rm -f conftest.er1 |
| 4560 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4562 | (exit $ac_status); } && |
| 4563 | { ac_try='test -z "$ac_c_werror_flag" |
| 4564 | || test ! -s conftest.err' |
| 4565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4566 | (eval $ac_try) 2>&5 |
| 4567 | ac_status=$? |
| 4568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4569 | (exit $ac_status); }; } && |
| 4570 | { ac_try='test -s conftest.$ac_objext' |
| 4571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4572 | (eval $ac_try) 2>&5 |
| 4573 | ac_status=$? |
| 4574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4575 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4576 | ac_header_compiler=yes |
| 4577 | else |
| 4578 | echo "$as_me: failed program was:" >&5 |
| 4579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4580 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4581 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4582 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4584 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4585 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4586 | |
| 4587 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4588 | echo "$as_me:$LINENO: checking assert.h presence" >&5 |
| 4589 | echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4590 | cat >conftest.$ac_ext <<_ACEOF |
| 4591 | /* confdefs.h. */ |
| 4592 | _ACEOF |
| 4593 | cat confdefs.h >>conftest.$ac_ext |
| 4594 | cat >>conftest.$ac_ext <<_ACEOF |
| 4595 | /* end confdefs.h. */ |
| 4596 | #include <assert.h> |
| 4597 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4598 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4599 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4600 | ac_status=$? |
| 4601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4602 | rm -f conftest.er1 |
| 4603 | cat conftest.err >&5 |
| 4604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4605 | (exit $ac_status); } >/dev/null; then |
| 4606 | if test -s conftest.err; then |
| 4607 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4608 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4609 | else |
| 4610 | ac_cpp_err= |
| 4611 | fi |
| 4612 | else |
| 4613 | ac_cpp_err=yes |
| 4614 | fi |
| 4615 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4616 | ac_header_preproc=yes |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4617 | else |
| 4618 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4620 | |
| 4621 | ac_header_preproc=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4622 | fi |
| 4623 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4624 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4625 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4626 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4627 | # So? What about this header? |
| 4628 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4629 | yes:no: ) |
| 4630 | { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4631 | echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4632 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5 |
| 4633 | echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;} |
| 4634 | ac_header_preproc=yes |
| 4635 | ;; |
| 4636 | no:yes:* ) |
| 4637 | { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5 |
| 4638 | echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;} |
| 4639 | { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5 |
| 4640 | echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;} |
| 4641 | { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5 |
| 4642 | echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;} |
| 4643 | { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4644 | echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4645 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5 |
| 4646 | echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;} |
| 4647 | { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5 |
| 4648 | echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4649 | ( |
| 4650 | cat <<\_ASBOX |
| 4651 | ## ------------------------------------ ## |
| 4652 | ## Report this to the pjproject lists. ## |
| 4653 | ## ------------------------------------ ## |
| 4654 | _ASBOX |
| 4655 | ) | |
| 4656 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4657 | ;; |
| 4658 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4659 | echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 4660 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4661 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4663 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4664 | ac_cv_header_assert_h=$ac_header_preproc |
| 4665 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4666 | echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 4667 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4668 | |
| 4669 | fi |
| 4670 | if test $ac_cv_header_assert_h = yes; then |
| 4671 | cat >>confdefs.h <<\_ACEOF |
| 4672 | #define PJ_HAS_ASSERT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4673 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4674 | |
| 4675 | fi |
| 4676 | |
| 4677 | |
| 4678 | if test "${ac_cv_header_ctype_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4679 | echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 4680 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4681 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4683 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4684 | echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 4685 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4686 | else |
| 4687 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4688 | echo "$as_me:$LINENO: checking ctype.h usability" >&5 |
| 4689 | echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4690 | cat >conftest.$ac_ext <<_ACEOF |
| 4691 | /* confdefs.h. */ |
| 4692 | _ACEOF |
| 4693 | cat confdefs.h >>conftest.$ac_ext |
| 4694 | cat >>conftest.$ac_ext <<_ACEOF |
| 4695 | /* end confdefs.h. */ |
| 4696 | $ac_includes_default |
| 4697 | #include <ctype.h> |
| 4698 | _ACEOF |
| 4699 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4701 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4702 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4703 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4704 | rm -f conftest.er1 |
| 4705 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4707 | (exit $ac_status); } && |
| 4708 | { ac_try='test -z "$ac_c_werror_flag" |
| 4709 | || test ! -s conftest.err' |
| 4710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4711 | (eval $ac_try) 2>&5 |
| 4712 | ac_status=$? |
| 4713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4714 | (exit $ac_status); }; } && |
| 4715 | { ac_try='test -s conftest.$ac_objext' |
| 4716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4717 | (eval $ac_try) 2>&5 |
| 4718 | ac_status=$? |
| 4719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4720 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4721 | ac_header_compiler=yes |
| 4722 | else |
| 4723 | echo "$as_me: failed program was:" >&5 |
| 4724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4725 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4726 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4727 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4729 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4730 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4731 | |
| 4732 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4733 | echo "$as_me:$LINENO: checking ctype.h presence" >&5 |
| 4734 | echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4735 | cat >conftest.$ac_ext <<_ACEOF |
| 4736 | /* confdefs.h. */ |
| 4737 | _ACEOF |
| 4738 | cat confdefs.h >>conftest.$ac_ext |
| 4739 | cat >>conftest.$ac_ext <<_ACEOF |
| 4740 | /* end confdefs.h. */ |
| 4741 | #include <ctype.h> |
| 4742 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4743 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4744 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4745 | ac_status=$? |
| 4746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4747 | rm -f conftest.er1 |
| 4748 | cat conftest.err >&5 |
| 4749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4750 | (exit $ac_status); } >/dev/null; then |
| 4751 | if test -s conftest.err; then |
| 4752 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4753 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4754 | else |
| 4755 | ac_cpp_err= |
| 4756 | fi |
| 4757 | else |
| 4758 | ac_cpp_err=yes |
| 4759 | fi |
| 4760 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4761 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4762 | else |
| 4763 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4765 | |
| 4766 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4767 | fi |
| 4768 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4769 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4770 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4771 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4772 | # So? What about this header? |
| 4773 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4774 | yes:no: ) |
| 4775 | { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4776 | echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4777 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5 |
| 4778 | echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;} |
| 4779 | ac_header_preproc=yes |
| 4780 | ;; |
| 4781 | no:yes:* ) |
| 4782 | { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5 |
| 4783 | echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;} |
| 4784 | { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5 |
| 4785 | echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;} |
| 4786 | { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5 |
| 4787 | echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;} |
| 4788 | { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4789 | echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4790 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5 |
| 4791 | echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;} |
| 4792 | { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5 |
| 4793 | echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4794 | ( |
| 4795 | cat <<\_ASBOX |
| 4796 | ## ------------------------------------ ## |
| 4797 | ## Report this to the pjproject lists. ## |
| 4798 | ## ------------------------------------ ## |
| 4799 | _ASBOX |
| 4800 | ) | |
| 4801 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4802 | ;; |
| 4803 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4804 | echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 4805 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4806 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4808 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4809 | ac_cv_header_ctype_h=$ac_header_preproc |
| 4810 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4811 | echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 4812 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4813 | |
| 4814 | fi |
| 4815 | if test $ac_cv_header_ctype_h = yes; then |
| 4816 | cat >>confdefs.h <<\_ACEOF |
| 4817 | #define PJ_HAS_CTYPE_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4818 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4819 | |
| 4820 | fi |
| 4821 | |
| 4822 | |
| 4823 | |
| 4824 | case $target in |
| 4825 | *mingw* | *cygw* | *win32* | *w32* ) |
| 4826 | cat >>confdefs.h <<\_ACEOF |
| 4827 | #define PJ_HAS_ERRNO_H 0 |
| 4828 | _ACEOF |
| 4829 | |
| 4830 | ;; |
| 4831 | *) |
| 4832 | if test "${ac_cv_header_errno_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4833 | echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 4834 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4835 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4837 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4838 | echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 4839 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4840 | else |
| 4841 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4842 | echo "$as_me:$LINENO: checking errno.h usability" >&5 |
| 4843 | echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4844 | cat >conftest.$ac_ext <<_ACEOF |
| 4845 | /* confdefs.h. */ |
| 4846 | _ACEOF |
| 4847 | cat confdefs.h >>conftest.$ac_ext |
| 4848 | cat >>conftest.$ac_ext <<_ACEOF |
| 4849 | /* end confdefs.h. */ |
| 4850 | $ac_includes_default |
| 4851 | #include <errno.h> |
| 4852 | _ACEOF |
| 4853 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4855 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4856 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4857 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4858 | rm -f conftest.er1 |
| 4859 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4861 | (exit $ac_status); } && |
| 4862 | { ac_try='test -z "$ac_c_werror_flag" |
| 4863 | || test ! -s conftest.err' |
| 4864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4865 | (eval $ac_try) 2>&5 |
| 4866 | ac_status=$? |
| 4867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4868 | (exit $ac_status); }; } && |
| 4869 | { ac_try='test -s conftest.$ac_objext' |
| 4870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4871 | (eval $ac_try) 2>&5 |
| 4872 | ac_status=$? |
| 4873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4874 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4875 | ac_header_compiler=yes |
| 4876 | else |
| 4877 | echo "$as_me: failed program was:" >&5 |
| 4878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4879 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4880 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4881 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4883 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4884 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4885 | |
| 4886 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4887 | echo "$as_me:$LINENO: checking errno.h presence" >&5 |
| 4888 | echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4889 | cat >conftest.$ac_ext <<_ACEOF |
| 4890 | /* confdefs.h. */ |
| 4891 | _ACEOF |
| 4892 | cat confdefs.h >>conftest.$ac_ext |
| 4893 | cat >>conftest.$ac_ext <<_ACEOF |
| 4894 | /* end confdefs.h. */ |
| 4895 | #include <errno.h> |
| 4896 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4897 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4898 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4899 | ac_status=$? |
| 4900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4901 | rm -f conftest.er1 |
| 4902 | cat conftest.err >&5 |
| 4903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4904 | (exit $ac_status); } >/dev/null; then |
| 4905 | if test -s conftest.err; then |
| 4906 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4907 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4908 | else |
| 4909 | ac_cpp_err= |
| 4910 | fi |
| 4911 | else |
| 4912 | ac_cpp_err=yes |
| 4913 | fi |
| 4914 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4915 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4916 | else |
| 4917 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4919 | |
| 4920 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4921 | fi |
| 4922 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4923 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4924 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4925 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4926 | # So? What about this header? |
| 4927 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4928 | yes:no: ) |
| 4929 | { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4930 | echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4931 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 |
| 4932 | echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} |
| 4933 | ac_header_preproc=yes |
| 4934 | ;; |
| 4935 | no:yes:* ) |
| 4936 | { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 |
| 4937 | echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} |
| 4938 | { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 |
| 4939 | echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} |
| 4940 | { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 |
| 4941 | echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} |
| 4942 | { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4943 | echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4944 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 |
| 4945 | echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} |
| 4946 | { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 |
| 4947 | echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4948 | ( |
| 4949 | cat <<\_ASBOX |
| 4950 | ## ------------------------------------ ## |
| 4951 | ## Report this to the pjproject lists. ## |
| 4952 | ## ------------------------------------ ## |
| 4953 | _ASBOX |
| 4954 | ) | |
| 4955 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4956 | ;; |
| 4957 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4958 | echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 4959 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4960 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4962 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4963 | ac_cv_header_errno_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4964 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4965 | echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 4966 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4967 | |
| 4968 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4969 | if test $ac_cv_header_errno_h = yes; then |
| 4970 | cat >>confdefs.h <<\_ACEOF |
| 4971 | #define PJ_HAS_ERRNO_H 1 |
| 4972 | _ACEOF |
| 4973 | |
| 4974 | fi |
| 4975 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4976 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4977 | ;; |
| 4978 | esac |
| 4979 | |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4980 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4981 | echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 4982 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4983 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 4984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4985 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4986 | echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 4987 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4988 | else |
| 4989 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4990 | echo "$as_me:$LINENO: checking fcntl.h usability" >&5 |
| 4991 | echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4992 | cat >conftest.$ac_ext <<_ACEOF |
| 4993 | /* confdefs.h. */ |
| 4994 | _ACEOF |
| 4995 | cat confdefs.h >>conftest.$ac_ext |
| 4996 | cat >>conftest.$ac_ext <<_ACEOF |
| 4997 | /* end confdefs.h. */ |
| 4998 | $ac_includes_default |
| 4999 | #include <fcntl.h> |
| 5000 | _ACEOF |
| 5001 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5003 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5004 | ac_status=$? |
| 5005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5006 | rm -f conftest.er1 |
| 5007 | cat conftest.err >&5 |
| 5008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5009 | (exit $ac_status); } && |
| 5010 | { ac_try='test -z "$ac_c_werror_flag" |
| 5011 | || test ! -s conftest.err' |
| 5012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5013 | (eval $ac_try) 2>&5 |
| 5014 | ac_status=$? |
| 5015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5016 | (exit $ac_status); }; } && |
| 5017 | { ac_try='test -s conftest.$ac_objext' |
| 5018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5019 | (eval $ac_try) 2>&5 |
| 5020 | ac_status=$? |
| 5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5022 | (exit $ac_status); }; }; then |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5023 | ac_header_compiler=yes |
| 5024 | else |
| 5025 | echo "$as_me: failed program was:" >&5 |
| 5026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5027 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5028 | ac_header_compiler=no |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5029 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5031 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5032 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5033 | |
| 5034 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5035 | echo "$as_me:$LINENO: checking fcntl.h presence" >&5 |
| 5036 | echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5037 | cat >conftest.$ac_ext <<_ACEOF |
| 5038 | /* confdefs.h. */ |
| 5039 | _ACEOF |
| 5040 | cat confdefs.h >>conftest.$ac_ext |
| 5041 | cat >>conftest.$ac_ext <<_ACEOF |
| 5042 | /* end confdefs.h. */ |
| 5043 | #include <fcntl.h> |
| 5044 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5045 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5046 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5047 | ac_status=$? |
| 5048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5049 | rm -f conftest.er1 |
| 5050 | cat conftest.err >&5 |
| 5051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5052 | (exit $ac_status); } >/dev/null; then |
| 5053 | if test -s conftest.err; then |
| 5054 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5055 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5056 | else |
| 5057 | ac_cpp_err= |
| 5058 | fi |
| 5059 | else |
| 5060 | ac_cpp_err=yes |
| 5061 | fi |
| 5062 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5063 | ac_header_preproc=yes |
| 5064 | else |
| 5065 | echo "$as_me: failed program was:" >&5 |
| 5066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5067 | |
| 5068 | ac_header_preproc=no |
| 5069 | fi |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5070 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5071 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5072 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5073 | |
| 5074 | # So? What about this header? |
| 5075 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5076 | yes:no: ) |
| 5077 | { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5078 | echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5079 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5 |
| 5080 | echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;} |
| 5081 | ac_header_preproc=yes |
| 5082 | ;; |
| 5083 | no:yes:* ) |
| 5084 | { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5 |
| 5085 | echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;} |
| 5086 | { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5 |
| 5087 | echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;} |
| 5088 | { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5 |
| 5089 | echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;} |
| 5090 | { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5091 | echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5092 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5 |
| 5093 | echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;} |
| 5094 | { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5 |
| 5095 | echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5096 | ( |
| 5097 | cat <<\_ASBOX |
| 5098 | ## ------------------------------------ ## |
| 5099 | ## Report this to the pjproject lists. ## |
| 5100 | ## ------------------------------------ ## |
| 5101 | _ASBOX |
| 5102 | ) | |
| 5103 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5104 | ;; |
| 5105 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5106 | echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 5107 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5108 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5110 | else |
| 5111 | ac_cv_header_fcntl_h=$ac_header_preproc |
| 5112 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5113 | echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 5114 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5115 | |
| 5116 | fi |
| 5117 | if test $ac_cv_header_fcntl_h = yes; then |
| 5118 | cat >>confdefs.h <<\_ACEOF |
| 5119 | #define PJ_HAS_FCNTL_H 1 |
| 5120 | _ACEOF |
| 5121 | |
| 5122 | fi |
| 5123 | |
| 5124 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5125 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5126 | echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5127 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5128 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5130 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5131 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5132 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5133 | else |
| 5134 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5135 | echo "$as_me:$LINENO: checking linux/socket.h usability" >&5 |
| 5136 | echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5137 | cat >conftest.$ac_ext <<_ACEOF |
| 5138 | /* confdefs.h. */ |
| 5139 | _ACEOF |
| 5140 | cat confdefs.h >>conftest.$ac_ext |
| 5141 | cat >>conftest.$ac_ext <<_ACEOF |
| 5142 | /* end confdefs.h. */ |
| 5143 | $ac_includes_default |
| 5144 | #include <linux/socket.h> |
| 5145 | _ACEOF |
| 5146 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5148 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5149 | ac_status=$? |
| 5150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5151 | rm -f conftest.er1 |
| 5152 | cat conftest.err >&5 |
| 5153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5154 | (exit $ac_status); } && |
| 5155 | { ac_try='test -z "$ac_c_werror_flag" |
| 5156 | || test ! -s conftest.err' |
| 5157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5158 | (eval $ac_try) 2>&5 |
| 5159 | ac_status=$? |
| 5160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5161 | (exit $ac_status); }; } && |
| 5162 | { ac_try='test -s conftest.$ac_objext' |
| 5163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5164 | (eval $ac_try) 2>&5 |
| 5165 | ac_status=$? |
| 5166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5167 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5168 | ac_header_compiler=yes |
| 5169 | else |
| 5170 | echo "$as_me: failed program was:" >&5 |
| 5171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5172 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5173 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5174 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5175 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5176 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5177 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5178 | |
| 5179 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5180 | echo "$as_me:$LINENO: checking linux/socket.h presence" >&5 |
| 5181 | echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5182 | cat >conftest.$ac_ext <<_ACEOF |
| 5183 | /* confdefs.h. */ |
| 5184 | _ACEOF |
| 5185 | cat confdefs.h >>conftest.$ac_ext |
| 5186 | cat >>conftest.$ac_ext <<_ACEOF |
| 5187 | /* end confdefs.h. */ |
| 5188 | #include <linux/socket.h> |
| 5189 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5190 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5191 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5192 | ac_status=$? |
| 5193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5194 | rm -f conftest.er1 |
| 5195 | cat conftest.err >&5 |
| 5196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5197 | (exit $ac_status); } >/dev/null; then |
| 5198 | if test -s conftest.err; then |
| 5199 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5200 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5201 | else |
| 5202 | ac_cpp_err= |
| 5203 | fi |
| 5204 | else |
| 5205 | ac_cpp_err=yes |
| 5206 | fi |
| 5207 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5208 | ac_header_preproc=yes |
| 5209 | else |
| 5210 | echo "$as_me: failed program was:" >&5 |
| 5211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5212 | |
| 5213 | ac_header_preproc=no |
| 5214 | fi |
| 5215 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5216 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5217 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5218 | |
| 5219 | # So? What about this header? |
| 5220 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5221 | yes:no: ) |
| 5222 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5223 | echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5224 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5 |
| 5225 | echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;} |
| 5226 | ac_header_preproc=yes |
| 5227 | ;; |
| 5228 | no:yes:* ) |
| 5229 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5 |
| 5230 | echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;} |
| 5231 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5 |
| 5232 | echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;} |
| 5233 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5 |
| 5234 | echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;} |
| 5235 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5236 | echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5237 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5 |
| 5238 | echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;} |
| 5239 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5 |
| 5240 | echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5241 | ( |
| 5242 | cat <<\_ASBOX |
| 5243 | ## ------------------------------------ ## |
| 5244 | ## Report this to the pjproject lists. ## |
| 5245 | ## ------------------------------------ ## |
| 5246 | _ASBOX |
| 5247 | ) | |
| 5248 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5249 | ;; |
| 5250 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5251 | echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5252 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5253 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5255 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5256 | ac_cv_header_linux_socket_h=$ac_header_preproc |
| 5257 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5258 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5259 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5260 | |
| 5261 | fi |
| 5262 | if test $ac_cv_header_linux_socket_h = yes; then |
| 5263 | cat >>confdefs.h <<\_ACEOF |
| 5264 | #define PJ_HAS_LINUX_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5265 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5266 | |
| 5267 | fi |
| 5268 | |
| 5269 | |
| 5270 | if test "${ac_cv_header_malloc_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5271 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5272 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5273 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5275 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5276 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5277 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5278 | else |
| 5279 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5280 | echo "$as_me:$LINENO: checking malloc.h usability" >&5 |
| 5281 | echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5282 | cat >conftest.$ac_ext <<_ACEOF |
| 5283 | /* confdefs.h. */ |
| 5284 | _ACEOF |
| 5285 | cat confdefs.h >>conftest.$ac_ext |
| 5286 | cat >>conftest.$ac_ext <<_ACEOF |
| 5287 | /* end confdefs.h. */ |
| 5288 | $ac_includes_default |
| 5289 | #include <malloc.h> |
| 5290 | _ACEOF |
| 5291 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5293 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5294 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5295 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5296 | rm -f conftest.er1 |
| 5297 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5299 | (exit $ac_status); } && |
| 5300 | { ac_try='test -z "$ac_c_werror_flag" |
| 5301 | || test ! -s conftest.err' |
| 5302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5303 | (eval $ac_try) 2>&5 |
| 5304 | ac_status=$? |
| 5305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5306 | (exit $ac_status); }; } && |
| 5307 | { ac_try='test -s conftest.$ac_objext' |
| 5308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5309 | (eval $ac_try) 2>&5 |
| 5310 | ac_status=$? |
| 5311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5312 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5313 | ac_header_compiler=yes |
| 5314 | else |
| 5315 | echo "$as_me: failed program was:" >&5 |
| 5316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5317 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5318 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5319 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5321 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5322 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5323 | |
| 5324 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5325 | echo "$as_me:$LINENO: checking malloc.h presence" >&5 |
| 5326 | echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5327 | cat >conftest.$ac_ext <<_ACEOF |
| 5328 | /* confdefs.h. */ |
| 5329 | _ACEOF |
| 5330 | cat confdefs.h >>conftest.$ac_ext |
| 5331 | cat >>conftest.$ac_ext <<_ACEOF |
| 5332 | /* end confdefs.h. */ |
| 5333 | #include <malloc.h> |
| 5334 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5335 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5336 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5337 | ac_status=$? |
| 5338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5339 | rm -f conftest.er1 |
| 5340 | cat conftest.err >&5 |
| 5341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5342 | (exit $ac_status); } >/dev/null; then |
| 5343 | if test -s conftest.err; then |
| 5344 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5345 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5346 | else |
| 5347 | ac_cpp_err= |
| 5348 | fi |
| 5349 | else |
| 5350 | ac_cpp_err=yes |
| 5351 | fi |
| 5352 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5353 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5354 | else |
| 5355 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5357 | |
| 5358 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5359 | fi |
| 5360 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5361 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5362 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5363 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5364 | # So? What about this header? |
| 5365 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5366 | yes:no: ) |
| 5367 | { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5368 | echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5369 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 |
| 5370 | echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} |
| 5371 | ac_header_preproc=yes |
| 5372 | ;; |
| 5373 | no:yes:* ) |
| 5374 | { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 |
| 5375 | echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} |
| 5376 | { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 |
| 5377 | echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} |
| 5378 | { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 |
| 5379 | echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} |
| 5380 | { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5381 | echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5382 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 |
| 5383 | echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} |
| 5384 | { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 |
| 5385 | echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5386 | ( |
| 5387 | cat <<\_ASBOX |
| 5388 | ## ------------------------------------ ## |
| 5389 | ## Report this to the pjproject lists. ## |
| 5390 | ## ------------------------------------ ## |
| 5391 | _ASBOX |
| 5392 | ) | |
| 5393 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5394 | ;; |
| 5395 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5396 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5397 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5398 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5400 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5401 | ac_cv_header_malloc_h=$ac_header_preproc |
| 5402 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5403 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5404 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5405 | |
| 5406 | fi |
| 5407 | if test $ac_cv_header_malloc_h = yes; then |
| 5408 | cat >>confdefs.h <<\_ACEOF |
| 5409 | #define PJ_HAS_MALLOC_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5410 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5411 | |
| 5412 | fi |
| 5413 | |
| 5414 | |
| 5415 | if test "${ac_cv_header_netdb_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5416 | echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 5417 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5418 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5420 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5421 | echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5422 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5423 | else |
| 5424 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5425 | echo "$as_me:$LINENO: checking netdb.h usability" >&5 |
| 5426 | echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5427 | cat >conftest.$ac_ext <<_ACEOF |
| 5428 | /* confdefs.h. */ |
| 5429 | _ACEOF |
| 5430 | cat confdefs.h >>conftest.$ac_ext |
| 5431 | cat >>conftest.$ac_ext <<_ACEOF |
| 5432 | /* end confdefs.h. */ |
| 5433 | $ac_includes_default |
| 5434 | #include <netdb.h> |
| 5435 | _ACEOF |
| 5436 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5438 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5439 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5440 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5441 | rm -f conftest.er1 |
| 5442 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5444 | (exit $ac_status); } && |
| 5445 | { ac_try='test -z "$ac_c_werror_flag" |
| 5446 | || test ! -s conftest.err' |
| 5447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5448 | (eval $ac_try) 2>&5 |
| 5449 | ac_status=$? |
| 5450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5451 | (exit $ac_status); }; } && |
| 5452 | { ac_try='test -s conftest.$ac_objext' |
| 5453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5454 | (eval $ac_try) 2>&5 |
| 5455 | ac_status=$? |
| 5456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5457 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5458 | ac_header_compiler=yes |
| 5459 | else |
| 5460 | echo "$as_me: failed program was:" >&5 |
| 5461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5462 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5463 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5464 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5466 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5467 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5468 | |
| 5469 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5470 | echo "$as_me:$LINENO: checking netdb.h presence" >&5 |
| 5471 | echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5472 | cat >conftest.$ac_ext <<_ACEOF |
| 5473 | /* confdefs.h. */ |
| 5474 | _ACEOF |
| 5475 | cat confdefs.h >>conftest.$ac_ext |
| 5476 | cat >>conftest.$ac_ext <<_ACEOF |
| 5477 | /* end confdefs.h. */ |
| 5478 | #include <netdb.h> |
| 5479 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5480 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5481 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5482 | ac_status=$? |
| 5483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5484 | rm -f conftest.er1 |
| 5485 | cat conftest.err >&5 |
| 5486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5487 | (exit $ac_status); } >/dev/null; then |
| 5488 | if test -s conftest.err; then |
| 5489 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5490 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5491 | else |
| 5492 | ac_cpp_err= |
| 5493 | fi |
| 5494 | else |
| 5495 | ac_cpp_err=yes |
| 5496 | fi |
| 5497 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5498 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5499 | else |
| 5500 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5502 | |
| 5503 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5504 | fi |
| 5505 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5506 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5507 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5508 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5509 | # So? What about this header? |
| 5510 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5511 | yes:no: ) |
| 5512 | { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5513 | echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5514 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5 |
| 5515 | echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;} |
| 5516 | ac_header_preproc=yes |
| 5517 | ;; |
| 5518 | no:yes:* ) |
| 5519 | { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5 |
| 5520 | echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;} |
| 5521 | { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5 |
| 5522 | echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;} |
| 5523 | { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5 |
| 5524 | echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;} |
| 5525 | { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5526 | echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5527 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5 |
| 5528 | echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;} |
| 5529 | { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5 |
| 5530 | echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5531 | ( |
| 5532 | cat <<\_ASBOX |
| 5533 | ## ------------------------------------ ## |
| 5534 | ## Report this to the pjproject lists. ## |
| 5535 | ## ------------------------------------ ## |
| 5536 | _ASBOX |
| 5537 | ) | |
| 5538 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5539 | ;; |
| 5540 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5541 | echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 5542 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5543 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5545 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5546 | ac_cv_header_netdb_h=$ac_header_preproc |
| 5547 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5548 | echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5549 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5550 | |
| 5551 | fi |
| 5552 | if test $ac_cv_header_netdb_h = yes; then |
| 5553 | cat >>confdefs.h <<\_ACEOF |
| 5554 | #define PJ_HAS_NETDB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5555 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5556 | |
| 5557 | fi |
| 5558 | |
| 5559 | |
| 5560 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5561 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 5562 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5563 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5565 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5566 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 5567 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5568 | else |
| 5569 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5570 | echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
| 5571 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5572 | cat >conftest.$ac_ext <<_ACEOF |
| 5573 | /* confdefs.h. */ |
| 5574 | _ACEOF |
| 5575 | cat confdefs.h >>conftest.$ac_ext |
| 5576 | cat >>conftest.$ac_ext <<_ACEOF |
| 5577 | /* end confdefs.h. */ |
| 5578 | $ac_includes_default |
| 5579 | #include <netinet/in.h> |
| 5580 | _ACEOF |
| 5581 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5583 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5584 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5585 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5586 | rm -f conftest.er1 |
| 5587 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5589 | (exit $ac_status); } && |
| 5590 | { ac_try='test -z "$ac_c_werror_flag" |
| 5591 | || test ! -s conftest.err' |
| 5592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5593 | (eval $ac_try) 2>&5 |
| 5594 | ac_status=$? |
| 5595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5596 | (exit $ac_status); }; } && |
| 5597 | { ac_try='test -s conftest.$ac_objext' |
| 5598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5599 | (eval $ac_try) 2>&5 |
| 5600 | ac_status=$? |
| 5601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5602 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5603 | ac_header_compiler=yes |
| 5604 | else |
| 5605 | echo "$as_me: failed program was:" >&5 |
| 5606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5607 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5608 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5609 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5611 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5612 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5613 | |
| 5614 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5615 | echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
| 5616 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5617 | cat >conftest.$ac_ext <<_ACEOF |
| 5618 | /* confdefs.h. */ |
| 5619 | _ACEOF |
| 5620 | cat confdefs.h >>conftest.$ac_ext |
| 5621 | cat >>conftest.$ac_ext <<_ACEOF |
| 5622 | /* end confdefs.h. */ |
| 5623 | #include <netinet/in.h> |
| 5624 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5625 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5626 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5627 | ac_status=$? |
| 5628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5629 | rm -f conftest.er1 |
| 5630 | cat conftest.err >&5 |
| 5631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5632 | (exit $ac_status); } >/dev/null; then |
| 5633 | if test -s conftest.err; then |
| 5634 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5635 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5636 | else |
| 5637 | ac_cpp_err= |
| 5638 | fi |
| 5639 | else |
| 5640 | ac_cpp_err=yes |
| 5641 | fi |
| 5642 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5643 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5644 | else |
| 5645 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5647 | |
| 5648 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5649 | fi |
| 5650 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5651 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5652 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5653 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5654 | # So? What about this header? |
| 5655 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5656 | yes:no: ) |
| 5657 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5658 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5659 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
| 5660 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} |
| 5661 | ac_header_preproc=yes |
| 5662 | ;; |
| 5663 | no:yes:* ) |
| 5664 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
| 5665 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} |
| 5666 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
| 5667 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} |
| 5668 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 |
| 5669 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} |
| 5670 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5671 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5672 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
| 5673 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
| 5674 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
| 5675 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5676 | ( |
| 5677 | cat <<\_ASBOX |
| 5678 | ## ------------------------------------ ## |
| 5679 | ## Report this to the pjproject lists. ## |
| 5680 | ## ------------------------------------ ## |
| 5681 | _ASBOX |
| 5682 | ) | |
| 5683 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5684 | ;; |
| 5685 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5686 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 5687 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5688 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5690 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5691 | ac_cv_header_netinet_in_h=$ac_header_preproc |
| 5692 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5693 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 5694 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5695 | |
| 5696 | fi |
| 5697 | if test $ac_cv_header_netinet_in_h = yes; then |
| 5698 | cat >>confdefs.h <<\_ACEOF |
| 5699 | #define PJ_HAS_NETINET_IN_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5700 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5701 | |
| 5702 | fi |
| 5703 | |
| 5704 | |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5705 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5706 | echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
| 5707 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5708 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 5709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5710 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5711 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 5712 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5713 | else |
| 5714 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5715 | echo "$as_me:$LINENO: checking netinet/ip.h usability" >&5 |
| 5716 | echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5717 | cat >conftest.$ac_ext <<_ACEOF |
| 5718 | /* confdefs.h. */ |
| 5719 | _ACEOF |
| 5720 | cat confdefs.h >>conftest.$ac_ext |
| 5721 | cat >>conftest.$ac_ext <<_ACEOF |
| 5722 | /* end confdefs.h. */ |
| 5723 | $ac_includes_default |
| 5724 | #include <netinet/ip.h> |
| 5725 | _ACEOF |
| 5726 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5728 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5729 | ac_status=$? |
| 5730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5731 | rm -f conftest.er1 |
| 5732 | cat conftest.err >&5 |
| 5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5734 | (exit $ac_status); } && |
| 5735 | { ac_try='test -z "$ac_c_werror_flag" |
| 5736 | || test ! -s conftest.err' |
| 5737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5738 | (eval $ac_try) 2>&5 |
| 5739 | ac_status=$? |
| 5740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5741 | (exit $ac_status); }; } && |
| 5742 | { ac_try='test -s conftest.$ac_objext' |
| 5743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5744 | (eval $ac_try) 2>&5 |
| 5745 | ac_status=$? |
| 5746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5747 | (exit $ac_status); }; }; then |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5748 | ac_header_compiler=yes |
| 5749 | else |
| 5750 | echo "$as_me: failed program was:" >&5 |
| 5751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5752 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5753 | ac_header_compiler=no |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5754 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5756 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5757 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5758 | |
| 5759 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5760 | echo "$as_me:$LINENO: checking netinet/ip.h presence" >&5 |
| 5761 | echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5762 | cat >conftest.$ac_ext <<_ACEOF |
| 5763 | /* confdefs.h. */ |
| 5764 | _ACEOF |
| 5765 | cat confdefs.h >>conftest.$ac_ext |
| 5766 | cat >>conftest.$ac_ext <<_ACEOF |
| 5767 | /* end confdefs.h. */ |
| 5768 | #include <netinet/ip.h> |
| 5769 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5770 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5771 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5772 | ac_status=$? |
| 5773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5774 | rm -f conftest.er1 |
| 5775 | cat conftest.err >&5 |
| 5776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5777 | (exit $ac_status); } >/dev/null; then |
| 5778 | if test -s conftest.err; then |
| 5779 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5780 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5781 | else |
| 5782 | ac_cpp_err= |
| 5783 | fi |
| 5784 | else |
| 5785 | ac_cpp_err=yes |
| 5786 | fi |
| 5787 | if test -z "$ac_cpp_err"; then |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5788 | ac_header_preproc=yes |
| 5789 | else |
| 5790 | echo "$as_me: failed program was:" >&5 |
| 5791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5792 | |
| 5793 | ac_header_preproc=no |
| 5794 | fi |
| 5795 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5796 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5797 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5798 | |
| 5799 | # So? What about this header? |
| 5800 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5801 | yes:no: ) |
| 5802 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5803 | echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5804 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&5 |
| 5805 | echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;} |
| 5806 | ac_header_preproc=yes |
| 5807 | ;; |
| 5808 | no:yes:* ) |
| 5809 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&5 |
| 5810 | echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;} |
| 5811 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&5 |
| 5812 | echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;} |
| 5813 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&5 |
| 5814 | echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;} |
| 5815 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5816 | echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5817 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&5 |
| 5818 | echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;} |
| 5819 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&5 |
| 5820 | echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5821 | ( |
| 5822 | cat <<\_ASBOX |
| 5823 | ## ------------------------------------ ## |
| 5824 | ## Report this to the pjproject lists. ## |
| 5825 | ## ------------------------------------ ## |
| 5826 | _ASBOX |
| 5827 | ) | |
| 5828 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5829 | ;; |
| 5830 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5831 | echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
| 5832 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5833 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 5834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5835 | else |
| 5836 | ac_cv_header_netinet_ip_h=$ac_header_preproc |
| 5837 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5838 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 5839 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5840 | |
| 5841 | fi |
| 5842 | if test $ac_cv_header_netinet_ip_h = yes; then |
| 5843 | cat >>confdefs.h <<\_ACEOF |
| 5844 | #define PJ_HAS_NETINET_IP_H 1 |
| 5845 | _ACEOF |
| 5846 | |
| 5847 | fi |
| 5848 | |
| 5849 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5850 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5851 | echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 5852 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5853 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 5854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5855 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5856 | echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 5857 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5858 | else |
| 5859 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5860 | echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5 |
| 5861 | echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5862 | cat >conftest.$ac_ext <<_ACEOF |
| 5863 | /* confdefs.h. */ |
| 5864 | _ACEOF |
| 5865 | cat confdefs.h >>conftest.$ac_ext |
| 5866 | cat >>conftest.$ac_ext <<_ACEOF |
| 5867 | /* end confdefs.h. */ |
| 5868 | $ac_includes_default |
| 5869 | #include <ifaddrs.h> |
| 5870 | _ACEOF |
| 5871 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5873 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5874 | ac_status=$? |
| 5875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5876 | rm -f conftest.er1 |
| 5877 | cat conftest.err >&5 |
| 5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5879 | (exit $ac_status); } && |
| 5880 | { ac_try='test -z "$ac_c_werror_flag" |
| 5881 | || test ! -s conftest.err' |
| 5882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5883 | (eval $ac_try) 2>&5 |
| 5884 | ac_status=$? |
| 5885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5886 | (exit $ac_status); }; } && |
| 5887 | { ac_try='test -s conftest.$ac_objext' |
| 5888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5889 | (eval $ac_try) 2>&5 |
| 5890 | ac_status=$? |
| 5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5892 | (exit $ac_status); }; }; then |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5893 | ac_header_compiler=yes |
| 5894 | else |
| 5895 | echo "$as_me: failed program was:" >&5 |
| 5896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5897 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5898 | ac_header_compiler=no |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5899 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5901 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5902 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5903 | |
| 5904 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5905 | echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5 |
| 5906 | echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5907 | cat >conftest.$ac_ext <<_ACEOF |
| 5908 | /* confdefs.h. */ |
| 5909 | _ACEOF |
| 5910 | cat confdefs.h >>conftest.$ac_ext |
| 5911 | cat >>conftest.$ac_ext <<_ACEOF |
| 5912 | /* end confdefs.h. */ |
| 5913 | #include <ifaddrs.h> |
| 5914 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5915 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5916 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5917 | ac_status=$? |
| 5918 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5919 | rm -f conftest.er1 |
| 5920 | cat conftest.err >&5 |
| 5921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5922 | (exit $ac_status); } >/dev/null; then |
| 5923 | if test -s conftest.err; then |
| 5924 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5925 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5926 | else |
| 5927 | ac_cpp_err= |
| 5928 | fi |
| 5929 | else |
| 5930 | ac_cpp_err=yes |
| 5931 | fi |
| 5932 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5933 | ac_header_preproc=yes |
| 5934 | else |
| 5935 | echo "$as_me: failed program was:" >&5 |
| 5936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5937 | |
| 5938 | ac_header_preproc=no |
| 5939 | fi |
| 5940 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5941 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5942 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5943 | |
| 5944 | # So? What about this header? |
| 5945 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5946 | yes:no: ) |
| 5947 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5948 | echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5949 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5 |
| 5950 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;} |
| 5951 | ac_header_preproc=yes |
| 5952 | ;; |
| 5953 | no:yes:* ) |
| 5954 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5 |
| 5955 | echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;} |
| 5956 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5 |
| 5957 | echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;} |
| 5958 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5 |
| 5959 | echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;} |
| 5960 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5961 | echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5962 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5 |
| 5963 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;} |
| 5964 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5 |
| 5965 | echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5966 | ( |
| 5967 | cat <<\_ASBOX |
| 5968 | ## ------------------------------------ ## |
| 5969 | ## Report this to the pjproject lists. ## |
| 5970 | ## ------------------------------------ ## |
| 5971 | _ASBOX |
| 5972 | ) | |
| 5973 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5974 | ;; |
| 5975 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5976 | echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 5977 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5978 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 5979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5980 | else |
| 5981 | ac_cv_header_ifaddrs_h=$ac_header_preproc |
| 5982 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5983 | echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 5984 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5985 | |
| 5986 | fi |
| 5987 | if test $ac_cv_header_ifaddrs_h = yes; then |
| 5988 | cat >>confdefs.h <<\_ACEOF |
| 5989 | #define PJ_HAS_IFADDRS_H 1 |
| 5990 | _ACEOF |
| 5991 | |
| 5992 | fi |
| 5993 | |
| 5994 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5995 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5996 | echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 5997 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5998 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 5999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6000 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6001 | echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6002 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6003 | else |
| 6004 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6005 | echo "$as_me:$LINENO: checking semaphore.h usability" >&5 |
| 6006 | echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6007 | cat >conftest.$ac_ext <<_ACEOF |
| 6008 | /* confdefs.h. */ |
| 6009 | _ACEOF |
| 6010 | cat confdefs.h >>conftest.$ac_ext |
| 6011 | cat >>conftest.$ac_ext <<_ACEOF |
| 6012 | /* end confdefs.h. */ |
| 6013 | $ac_includes_default |
| 6014 | #include <semaphore.h> |
| 6015 | _ACEOF |
| 6016 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6018 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6019 | ac_status=$? |
| 6020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6021 | rm -f conftest.er1 |
| 6022 | cat conftest.err >&5 |
| 6023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6024 | (exit $ac_status); } && |
| 6025 | { ac_try='test -z "$ac_c_werror_flag" |
| 6026 | || test ! -s conftest.err' |
| 6027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6028 | (eval $ac_try) 2>&5 |
| 6029 | ac_status=$? |
| 6030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6031 | (exit $ac_status); }; } && |
| 6032 | { ac_try='test -s conftest.$ac_objext' |
| 6033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6034 | (eval $ac_try) 2>&5 |
| 6035 | ac_status=$? |
| 6036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6037 | (exit $ac_status); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6038 | ac_header_compiler=yes |
| 6039 | else |
| 6040 | echo "$as_me: failed program was:" >&5 |
| 6041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6042 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6043 | ac_header_compiler=no |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6044 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6046 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6047 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6048 | |
| 6049 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6050 | echo "$as_me:$LINENO: checking semaphore.h presence" >&5 |
| 6051 | echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6052 | cat >conftest.$ac_ext <<_ACEOF |
| 6053 | /* confdefs.h. */ |
| 6054 | _ACEOF |
| 6055 | cat confdefs.h >>conftest.$ac_ext |
| 6056 | cat >>conftest.$ac_ext <<_ACEOF |
| 6057 | /* end confdefs.h. */ |
| 6058 | #include <semaphore.h> |
| 6059 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6060 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6061 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6062 | ac_status=$? |
| 6063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6064 | rm -f conftest.er1 |
| 6065 | cat conftest.err >&5 |
| 6066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6067 | (exit $ac_status); } >/dev/null; then |
| 6068 | if test -s conftest.err; then |
| 6069 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6070 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6071 | else |
| 6072 | ac_cpp_err= |
| 6073 | fi |
| 6074 | else |
| 6075 | ac_cpp_err=yes |
| 6076 | fi |
| 6077 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6078 | ac_header_preproc=yes |
| 6079 | else |
| 6080 | echo "$as_me: failed program was:" >&5 |
| 6081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6082 | |
| 6083 | ac_header_preproc=no |
| 6084 | fi |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6085 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6086 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6087 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6088 | |
| 6089 | # So? What about this header? |
| 6090 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6091 | yes:no: ) |
| 6092 | { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6093 | echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6094 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5 |
| 6095 | echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;} |
| 6096 | ac_header_preproc=yes |
| 6097 | ;; |
| 6098 | no:yes:* ) |
| 6099 | { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5 |
| 6100 | echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;} |
| 6101 | { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5 |
| 6102 | echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;} |
| 6103 | { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5 |
| 6104 | echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;} |
| 6105 | { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6106 | echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6107 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5 |
| 6108 | echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;} |
| 6109 | { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5 |
| 6110 | echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6111 | ( |
| 6112 | cat <<\_ASBOX |
| 6113 | ## ------------------------------------ ## |
| 6114 | ## Report this to the pjproject lists. ## |
| 6115 | ## ------------------------------------ ## |
| 6116 | _ASBOX |
| 6117 | ) | |
| 6118 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6119 | ;; |
| 6120 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6121 | echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 6122 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6123 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6125 | else |
| 6126 | ac_cv_header_semaphore_h=$ac_header_preproc |
| 6127 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6128 | echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6129 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6130 | |
| 6131 | fi |
| 6132 | if test $ac_cv_header_semaphore_h = yes; then |
| 6133 | cat >>confdefs.h <<\_ACEOF |
| 6134 | #define PJ_HAS_SEMAPHORE_H 1 |
| 6135 | _ACEOF |
| 6136 | |
| 6137 | fi |
| 6138 | |
| 6139 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6140 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6141 | echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6142 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6143 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6145 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6146 | echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6147 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6148 | else |
| 6149 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6150 | echo "$as_me:$LINENO: checking setjmp.h usability" >&5 |
| 6151 | echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6152 | cat >conftest.$ac_ext <<_ACEOF |
| 6153 | /* confdefs.h. */ |
| 6154 | _ACEOF |
| 6155 | cat confdefs.h >>conftest.$ac_ext |
| 6156 | cat >>conftest.$ac_ext <<_ACEOF |
| 6157 | /* end confdefs.h. */ |
| 6158 | $ac_includes_default |
| 6159 | #include <setjmp.h> |
| 6160 | _ACEOF |
| 6161 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6163 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6164 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6165 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6166 | rm -f conftest.er1 |
| 6167 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6169 | (exit $ac_status); } && |
| 6170 | { ac_try='test -z "$ac_c_werror_flag" |
| 6171 | || test ! -s conftest.err' |
| 6172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6173 | (eval $ac_try) 2>&5 |
| 6174 | ac_status=$? |
| 6175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6176 | (exit $ac_status); }; } && |
| 6177 | { ac_try='test -s conftest.$ac_objext' |
| 6178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6179 | (eval $ac_try) 2>&5 |
| 6180 | ac_status=$? |
| 6181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6182 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6183 | ac_header_compiler=yes |
| 6184 | else |
| 6185 | echo "$as_me: failed program was:" >&5 |
| 6186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6187 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6188 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6189 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6191 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6192 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6193 | |
| 6194 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6195 | echo "$as_me:$LINENO: checking setjmp.h presence" >&5 |
| 6196 | echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6197 | cat >conftest.$ac_ext <<_ACEOF |
| 6198 | /* confdefs.h. */ |
| 6199 | _ACEOF |
| 6200 | cat confdefs.h >>conftest.$ac_ext |
| 6201 | cat >>conftest.$ac_ext <<_ACEOF |
| 6202 | /* end confdefs.h. */ |
| 6203 | #include <setjmp.h> |
| 6204 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6205 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6206 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6207 | ac_status=$? |
| 6208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6209 | rm -f conftest.er1 |
| 6210 | cat conftest.err >&5 |
| 6211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6212 | (exit $ac_status); } >/dev/null; then |
| 6213 | if test -s conftest.err; then |
| 6214 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6215 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6216 | else |
| 6217 | ac_cpp_err= |
| 6218 | fi |
| 6219 | else |
| 6220 | ac_cpp_err=yes |
| 6221 | fi |
| 6222 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6223 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6224 | else |
| 6225 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6227 | |
| 6228 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6229 | fi |
| 6230 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6231 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6232 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6233 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6234 | # So? What about this header? |
| 6235 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6236 | yes:no: ) |
| 6237 | { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6238 | echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6239 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5 |
| 6240 | echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;} |
| 6241 | ac_header_preproc=yes |
| 6242 | ;; |
| 6243 | no:yes:* ) |
| 6244 | { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5 |
| 6245 | echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;} |
| 6246 | { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5 |
| 6247 | echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;} |
| 6248 | { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5 |
| 6249 | echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;} |
| 6250 | { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6251 | echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6252 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5 |
| 6253 | echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;} |
| 6254 | { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5 |
| 6255 | echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6256 | ( |
| 6257 | cat <<\_ASBOX |
| 6258 | ## ------------------------------------ ## |
| 6259 | ## Report this to the pjproject lists. ## |
| 6260 | ## ------------------------------------ ## |
| 6261 | _ASBOX |
| 6262 | ) | |
| 6263 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6264 | ;; |
| 6265 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6266 | echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6267 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6268 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6270 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6271 | ac_cv_header_setjmp_h=$ac_header_preproc |
| 6272 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6273 | echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6274 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6275 | |
| 6276 | fi |
| 6277 | if test $ac_cv_header_setjmp_h = yes; then |
| 6278 | cat >>confdefs.h <<\_ACEOF |
| 6279 | #define PJ_HAS_SETJMP_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6280 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6281 | |
| 6282 | fi |
| 6283 | |
| 6284 | |
| 6285 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6286 | echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 6287 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6288 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 6289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6290 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6291 | echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 6292 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6293 | else |
| 6294 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6295 | echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
| 6296 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6297 | cat >conftest.$ac_ext <<_ACEOF |
| 6298 | /* confdefs.h. */ |
| 6299 | _ACEOF |
| 6300 | cat confdefs.h >>conftest.$ac_ext |
| 6301 | cat >>conftest.$ac_ext <<_ACEOF |
| 6302 | /* end confdefs.h. */ |
| 6303 | $ac_includes_default |
| 6304 | #include <stdarg.h> |
| 6305 | _ACEOF |
| 6306 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6308 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6309 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6310 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6311 | rm -f conftest.er1 |
| 6312 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6314 | (exit $ac_status); } && |
| 6315 | { ac_try='test -z "$ac_c_werror_flag" |
| 6316 | || test ! -s conftest.err' |
| 6317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6318 | (eval $ac_try) 2>&5 |
| 6319 | ac_status=$? |
| 6320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6321 | (exit $ac_status); }; } && |
| 6322 | { ac_try='test -s conftest.$ac_objext' |
| 6323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6324 | (eval $ac_try) 2>&5 |
| 6325 | ac_status=$? |
| 6326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6327 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6328 | ac_header_compiler=yes |
| 6329 | else |
| 6330 | echo "$as_me: failed program was:" >&5 |
| 6331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6332 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6333 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6334 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6336 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6337 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6338 | |
| 6339 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6340 | echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
| 6341 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6342 | cat >conftest.$ac_ext <<_ACEOF |
| 6343 | /* confdefs.h. */ |
| 6344 | _ACEOF |
| 6345 | cat confdefs.h >>conftest.$ac_ext |
| 6346 | cat >>conftest.$ac_ext <<_ACEOF |
| 6347 | /* end confdefs.h. */ |
| 6348 | #include <stdarg.h> |
| 6349 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6350 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6351 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6352 | ac_status=$? |
| 6353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6354 | rm -f conftest.er1 |
| 6355 | cat conftest.err >&5 |
| 6356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6357 | (exit $ac_status); } >/dev/null; then |
| 6358 | if test -s conftest.err; then |
| 6359 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6360 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6361 | else |
| 6362 | ac_cpp_err= |
| 6363 | fi |
| 6364 | else |
| 6365 | ac_cpp_err=yes |
| 6366 | fi |
| 6367 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6368 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6369 | else |
| 6370 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6372 | |
| 6373 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6374 | fi |
| 6375 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6376 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6377 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6378 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6379 | # So? What about this header? |
| 6380 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6381 | yes:no: ) |
| 6382 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6383 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6384 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 |
| 6385 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} |
| 6386 | ac_header_preproc=yes |
| 6387 | ;; |
| 6388 | no:yes:* ) |
| 6389 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 |
| 6390 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} |
| 6391 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 |
| 6392 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} |
| 6393 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 |
| 6394 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} |
| 6395 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6396 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6397 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 |
| 6398 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} |
| 6399 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 |
| 6400 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6401 | ( |
| 6402 | cat <<\_ASBOX |
| 6403 | ## ------------------------------------ ## |
| 6404 | ## Report this to the pjproject lists. ## |
| 6405 | ## ------------------------------------ ## |
| 6406 | _ASBOX |
| 6407 | ) | |
| 6408 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6409 | ;; |
| 6410 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6411 | echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 6412 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6413 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 6414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6415 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6416 | ac_cv_header_stdarg_h=$ac_header_preproc |
| 6417 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6418 | echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 6419 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6420 | |
| 6421 | fi |
| 6422 | if test $ac_cv_header_stdarg_h = yes; then |
| 6423 | cat >>confdefs.h <<\_ACEOF |
| 6424 | #define PJ_HAS_STDARG_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6425 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6426 | |
| 6427 | fi |
| 6428 | |
| 6429 | |
| 6430 | if test "${ac_cv_header_stddef_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6431 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 6432 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6433 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 6434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6435 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6436 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 6437 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6438 | else |
| 6439 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6440 | echo "$as_me:$LINENO: checking stddef.h usability" >&5 |
| 6441 | echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6442 | cat >conftest.$ac_ext <<_ACEOF |
| 6443 | /* confdefs.h. */ |
| 6444 | _ACEOF |
| 6445 | cat confdefs.h >>conftest.$ac_ext |
| 6446 | cat >>conftest.$ac_ext <<_ACEOF |
| 6447 | /* end confdefs.h. */ |
| 6448 | $ac_includes_default |
| 6449 | #include <stddef.h> |
| 6450 | _ACEOF |
| 6451 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6453 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6454 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6455 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6456 | rm -f conftest.er1 |
| 6457 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6459 | (exit $ac_status); } && |
| 6460 | { ac_try='test -z "$ac_c_werror_flag" |
| 6461 | || test ! -s conftest.err' |
| 6462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6463 | (eval $ac_try) 2>&5 |
| 6464 | ac_status=$? |
| 6465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6466 | (exit $ac_status); }; } && |
| 6467 | { ac_try='test -s conftest.$ac_objext' |
| 6468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6469 | (eval $ac_try) 2>&5 |
| 6470 | ac_status=$? |
| 6471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6472 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6473 | ac_header_compiler=yes |
| 6474 | else |
| 6475 | echo "$as_me: failed program was:" >&5 |
| 6476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6477 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6478 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6479 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6481 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6482 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6483 | |
| 6484 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6485 | echo "$as_me:$LINENO: checking stddef.h presence" >&5 |
| 6486 | echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6487 | cat >conftest.$ac_ext <<_ACEOF |
| 6488 | /* confdefs.h. */ |
| 6489 | _ACEOF |
| 6490 | cat confdefs.h >>conftest.$ac_ext |
| 6491 | cat >>conftest.$ac_ext <<_ACEOF |
| 6492 | /* end confdefs.h. */ |
| 6493 | #include <stddef.h> |
| 6494 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6495 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6496 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6497 | ac_status=$? |
| 6498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6499 | rm -f conftest.er1 |
| 6500 | cat conftest.err >&5 |
| 6501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6502 | (exit $ac_status); } >/dev/null; then |
| 6503 | if test -s conftest.err; then |
| 6504 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6505 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6506 | else |
| 6507 | ac_cpp_err= |
| 6508 | fi |
| 6509 | else |
| 6510 | ac_cpp_err=yes |
| 6511 | fi |
| 6512 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6513 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6514 | else |
| 6515 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6517 | |
| 6518 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6519 | fi |
| 6520 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6521 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6522 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6523 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6524 | # So? What about this header? |
| 6525 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6526 | yes:no: ) |
| 6527 | { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6528 | echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6529 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5 |
| 6530 | echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;} |
| 6531 | ac_header_preproc=yes |
| 6532 | ;; |
| 6533 | no:yes:* ) |
| 6534 | { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5 |
| 6535 | echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;} |
| 6536 | { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5 |
| 6537 | echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;} |
| 6538 | { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 |
| 6539 | echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;} |
| 6540 | { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6541 | echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6542 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5 |
| 6543 | echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;} |
| 6544 | { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5 |
| 6545 | echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6546 | ( |
| 6547 | cat <<\_ASBOX |
| 6548 | ## ------------------------------------ ## |
| 6549 | ## Report this to the pjproject lists. ## |
| 6550 | ## ------------------------------------ ## |
| 6551 | _ASBOX |
| 6552 | ) | |
| 6553 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6554 | ;; |
| 6555 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6556 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 6557 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6558 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 6559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6560 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6561 | ac_cv_header_stddef_h=$ac_header_preproc |
| 6562 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6563 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 6564 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6565 | |
| 6566 | fi |
| 6567 | if test $ac_cv_header_stddef_h = yes; then |
| 6568 | cat >>confdefs.h <<\_ACEOF |
| 6569 | #define PJ_HAS_STDDEF_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6570 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6571 | |
| 6572 | fi |
| 6573 | |
| 6574 | |
| 6575 | if test "${ac_cv_header_stdio_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6576 | echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 6577 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6578 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 6579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6580 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6581 | echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 6582 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6583 | else |
| 6584 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6585 | echo "$as_me:$LINENO: checking stdio.h usability" >&5 |
| 6586 | echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6587 | cat >conftest.$ac_ext <<_ACEOF |
| 6588 | /* confdefs.h. */ |
| 6589 | _ACEOF |
| 6590 | cat confdefs.h >>conftest.$ac_ext |
| 6591 | cat >>conftest.$ac_ext <<_ACEOF |
| 6592 | /* end confdefs.h. */ |
| 6593 | $ac_includes_default |
| 6594 | #include <stdio.h> |
| 6595 | _ACEOF |
| 6596 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6598 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6599 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6600 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6601 | rm -f conftest.er1 |
| 6602 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6604 | (exit $ac_status); } && |
| 6605 | { ac_try='test -z "$ac_c_werror_flag" |
| 6606 | || test ! -s conftest.err' |
| 6607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6608 | (eval $ac_try) 2>&5 |
| 6609 | ac_status=$? |
| 6610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6611 | (exit $ac_status); }; } && |
| 6612 | { ac_try='test -s conftest.$ac_objext' |
| 6613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6614 | (eval $ac_try) 2>&5 |
| 6615 | ac_status=$? |
| 6616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6617 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6618 | ac_header_compiler=yes |
| 6619 | else |
| 6620 | echo "$as_me: failed program was:" >&5 |
| 6621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6622 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6623 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6624 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6626 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6627 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6628 | |
| 6629 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6630 | echo "$as_me:$LINENO: checking stdio.h presence" >&5 |
| 6631 | echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6632 | cat >conftest.$ac_ext <<_ACEOF |
| 6633 | /* confdefs.h. */ |
| 6634 | _ACEOF |
| 6635 | cat confdefs.h >>conftest.$ac_ext |
| 6636 | cat >>conftest.$ac_ext <<_ACEOF |
| 6637 | /* end confdefs.h. */ |
| 6638 | #include <stdio.h> |
| 6639 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6640 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6641 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6642 | ac_status=$? |
| 6643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6644 | rm -f conftest.er1 |
| 6645 | cat conftest.err >&5 |
| 6646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6647 | (exit $ac_status); } >/dev/null; then |
| 6648 | if test -s conftest.err; then |
| 6649 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6650 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6651 | else |
| 6652 | ac_cpp_err= |
| 6653 | fi |
| 6654 | else |
| 6655 | ac_cpp_err=yes |
| 6656 | fi |
| 6657 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6658 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6659 | else |
| 6660 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6662 | |
| 6663 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6664 | fi |
| 6665 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6666 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6667 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6668 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6669 | # So? What about this header? |
| 6670 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6671 | yes:no: ) |
| 6672 | { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6673 | echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6674 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5 |
| 6675 | echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;} |
| 6676 | ac_header_preproc=yes |
| 6677 | ;; |
| 6678 | no:yes:* ) |
| 6679 | { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5 |
| 6680 | echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;} |
| 6681 | { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5 |
| 6682 | echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;} |
| 6683 | { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5 |
| 6684 | echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;} |
| 6685 | { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6686 | echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6687 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5 |
| 6688 | echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;} |
| 6689 | { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5 |
| 6690 | echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6691 | ( |
| 6692 | cat <<\_ASBOX |
| 6693 | ## ------------------------------------ ## |
| 6694 | ## Report this to the pjproject lists. ## |
| 6695 | ## ------------------------------------ ## |
| 6696 | _ASBOX |
| 6697 | ) | |
| 6698 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6699 | ;; |
| 6700 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6701 | echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 6702 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6703 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 6704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6705 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6706 | ac_cv_header_stdio_h=$ac_header_preproc |
| 6707 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6708 | echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 6709 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6710 | |
| 6711 | fi |
| 6712 | if test $ac_cv_header_stdio_h = yes; then |
| 6713 | cat >>confdefs.h <<\_ACEOF |
| 6714 | #define PJ_HAS_STDIO_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6715 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6716 | |
| 6717 | fi |
| 6718 | |
| 6719 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6720 | if test "${ac_cv_header_stdint_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6721 | echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 6722 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6723 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 6724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6725 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6726 | echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 6727 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6728 | else |
| 6729 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6730 | echo "$as_me:$LINENO: checking stdint.h usability" >&5 |
| 6731 | echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6732 | cat >conftest.$ac_ext <<_ACEOF |
| 6733 | /* confdefs.h. */ |
| 6734 | _ACEOF |
| 6735 | cat confdefs.h >>conftest.$ac_ext |
| 6736 | cat >>conftest.$ac_ext <<_ACEOF |
| 6737 | /* end confdefs.h. */ |
| 6738 | $ac_includes_default |
| 6739 | #include <stdint.h> |
| 6740 | _ACEOF |
| 6741 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6743 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6744 | ac_status=$? |
| 6745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6746 | rm -f conftest.er1 |
| 6747 | cat conftest.err >&5 |
| 6748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6749 | (exit $ac_status); } && |
| 6750 | { ac_try='test -z "$ac_c_werror_flag" |
| 6751 | || test ! -s conftest.err' |
| 6752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6753 | (eval $ac_try) 2>&5 |
| 6754 | ac_status=$? |
| 6755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6756 | (exit $ac_status); }; } && |
| 6757 | { ac_try='test -s conftest.$ac_objext' |
| 6758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6759 | (eval $ac_try) 2>&5 |
| 6760 | ac_status=$? |
| 6761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6762 | (exit $ac_status); }; }; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6763 | ac_header_compiler=yes |
| 6764 | else |
| 6765 | echo "$as_me: failed program was:" >&5 |
| 6766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6767 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6768 | ac_header_compiler=no |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6769 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6771 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6772 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6773 | |
| 6774 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6775 | echo "$as_me:$LINENO: checking stdint.h presence" >&5 |
| 6776 | echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6777 | cat >conftest.$ac_ext <<_ACEOF |
| 6778 | /* confdefs.h. */ |
| 6779 | _ACEOF |
| 6780 | cat confdefs.h >>conftest.$ac_ext |
| 6781 | cat >>conftest.$ac_ext <<_ACEOF |
| 6782 | /* end confdefs.h. */ |
| 6783 | #include <stdint.h> |
| 6784 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6785 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6786 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6787 | ac_status=$? |
| 6788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6789 | rm -f conftest.er1 |
| 6790 | cat conftest.err >&5 |
| 6791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6792 | (exit $ac_status); } >/dev/null; then |
| 6793 | if test -s conftest.err; then |
| 6794 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6795 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6796 | else |
| 6797 | ac_cpp_err= |
| 6798 | fi |
| 6799 | else |
| 6800 | ac_cpp_err=yes |
| 6801 | fi |
| 6802 | if test -z "$ac_cpp_err"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6803 | ac_header_preproc=yes |
| 6804 | else |
| 6805 | echo "$as_me: failed program was:" >&5 |
| 6806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6807 | |
| 6808 | ac_header_preproc=no |
| 6809 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6810 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6811 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6812 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6813 | |
| 6814 | # So? What about this header? |
| 6815 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6816 | yes:no: ) |
| 6817 | { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6818 | echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6819 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 |
| 6820 | echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} |
| 6821 | ac_header_preproc=yes |
| 6822 | ;; |
| 6823 | no:yes:* ) |
| 6824 | { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 |
| 6825 | echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} |
| 6826 | { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 |
| 6827 | echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} |
| 6828 | { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 |
| 6829 | echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} |
| 6830 | { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6831 | echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6832 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 |
| 6833 | echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} |
| 6834 | { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 |
| 6835 | echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6836 | ( |
| 6837 | cat <<\_ASBOX |
| 6838 | ## ------------------------------------ ## |
| 6839 | ## Report this to the pjproject lists. ## |
| 6840 | ## ------------------------------------ ## |
| 6841 | _ASBOX |
| 6842 | ) | |
| 6843 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6844 | ;; |
| 6845 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6846 | echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 6847 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6848 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 6849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6850 | else |
| 6851 | ac_cv_header_stdint_h=$ac_header_preproc |
| 6852 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6853 | echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 6854 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6855 | |
| 6856 | fi |
| 6857 | if test $ac_cv_header_stdint_h = yes; then |
| 6858 | cat >>confdefs.h <<\_ACEOF |
| 6859 | #define PJ_HAS_STDINT_H 1 |
| 6860 | _ACEOF |
| 6861 | |
| 6862 | fi |
| 6863 | |
| 6864 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6865 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6866 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 6867 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6868 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 6869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6870 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6871 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 6872 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6873 | else |
| 6874 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6875 | echo "$as_me:$LINENO: checking stdlib.h usability" >&5 |
| 6876 | echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6877 | cat >conftest.$ac_ext <<_ACEOF |
| 6878 | /* confdefs.h. */ |
| 6879 | _ACEOF |
| 6880 | cat confdefs.h >>conftest.$ac_ext |
| 6881 | cat >>conftest.$ac_ext <<_ACEOF |
| 6882 | /* end confdefs.h. */ |
| 6883 | $ac_includes_default |
| 6884 | #include <stdlib.h> |
| 6885 | _ACEOF |
| 6886 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6888 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6889 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6890 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6891 | rm -f conftest.er1 |
| 6892 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6894 | (exit $ac_status); } && |
| 6895 | { ac_try='test -z "$ac_c_werror_flag" |
| 6896 | || test ! -s conftest.err' |
| 6897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6898 | (eval $ac_try) 2>&5 |
| 6899 | ac_status=$? |
| 6900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6901 | (exit $ac_status); }; } && |
| 6902 | { ac_try='test -s conftest.$ac_objext' |
| 6903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6904 | (eval $ac_try) 2>&5 |
| 6905 | ac_status=$? |
| 6906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6907 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6908 | ac_header_compiler=yes |
| 6909 | else |
| 6910 | echo "$as_me: failed program was:" >&5 |
| 6911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6912 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6913 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6914 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6916 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6917 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6918 | |
| 6919 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6920 | echo "$as_me:$LINENO: checking stdlib.h presence" >&5 |
| 6921 | echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6922 | cat >conftest.$ac_ext <<_ACEOF |
| 6923 | /* confdefs.h. */ |
| 6924 | _ACEOF |
| 6925 | cat confdefs.h >>conftest.$ac_ext |
| 6926 | cat >>conftest.$ac_ext <<_ACEOF |
| 6927 | /* end confdefs.h. */ |
| 6928 | #include <stdlib.h> |
| 6929 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6930 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6931 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6932 | ac_status=$? |
| 6933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6934 | rm -f conftest.er1 |
| 6935 | cat conftest.err >&5 |
| 6936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6937 | (exit $ac_status); } >/dev/null; then |
| 6938 | if test -s conftest.err; then |
| 6939 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6940 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6941 | else |
| 6942 | ac_cpp_err= |
| 6943 | fi |
| 6944 | else |
| 6945 | ac_cpp_err=yes |
| 6946 | fi |
| 6947 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6948 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6949 | else |
| 6950 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6952 | |
| 6953 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6954 | fi |
| 6955 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6956 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6957 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6958 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6959 | # So? What about this header? |
| 6960 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6961 | yes:no: ) |
| 6962 | { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6963 | echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6964 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 |
| 6965 | echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} |
| 6966 | ac_header_preproc=yes |
| 6967 | ;; |
| 6968 | no:yes:* ) |
| 6969 | { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 |
| 6970 | echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} |
| 6971 | { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 |
| 6972 | echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} |
| 6973 | { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 |
| 6974 | echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} |
| 6975 | { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6976 | echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6977 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 |
| 6978 | echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} |
| 6979 | { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 |
| 6980 | echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6981 | ( |
| 6982 | cat <<\_ASBOX |
| 6983 | ## ------------------------------------ ## |
| 6984 | ## Report this to the pjproject lists. ## |
| 6985 | ## ------------------------------------ ## |
| 6986 | _ASBOX |
| 6987 | ) | |
| 6988 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6989 | ;; |
| 6990 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6991 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 6992 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6993 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 6994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6995 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6996 | ac_cv_header_stdlib_h=$ac_header_preproc |
| 6997 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6998 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 6999 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7000 | |
| 7001 | fi |
| 7002 | if test $ac_cv_header_stdlib_h = yes; then |
| 7003 | cat >>confdefs.h <<\_ACEOF |
| 7004 | #define PJ_HAS_STDLIB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7005 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7006 | |
| 7007 | fi |
| 7008 | |
| 7009 | |
| 7010 | if test "${ac_cv_header_string_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7011 | echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7012 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7013 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7015 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7016 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7017 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7018 | else |
| 7019 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7020 | echo "$as_me:$LINENO: checking string.h usability" >&5 |
| 7021 | echo $ECHO_N "checking string.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7022 | cat >conftest.$ac_ext <<_ACEOF |
| 7023 | /* confdefs.h. */ |
| 7024 | _ACEOF |
| 7025 | cat confdefs.h >>conftest.$ac_ext |
| 7026 | cat >>conftest.$ac_ext <<_ACEOF |
| 7027 | /* end confdefs.h. */ |
| 7028 | $ac_includes_default |
| 7029 | #include <string.h> |
| 7030 | _ACEOF |
| 7031 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7033 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7034 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7035 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7036 | rm -f conftest.er1 |
| 7037 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7039 | (exit $ac_status); } && |
| 7040 | { ac_try='test -z "$ac_c_werror_flag" |
| 7041 | || test ! -s conftest.err' |
| 7042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7043 | (eval $ac_try) 2>&5 |
| 7044 | ac_status=$? |
| 7045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7046 | (exit $ac_status); }; } && |
| 7047 | { ac_try='test -s conftest.$ac_objext' |
| 7048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7049 | (eval $ac_try) 2>&5 |
| 7050 | ac_status=$? |
| 7051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7052 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7053 | ac_header_compiler=yes |
| 7054 | else |
| 7055 | echo "$as_me: failed program was:" >&5 |
| 7056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7057 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7058 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7059 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7061 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7062 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7063 | |
| 7064 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7065 | echo "$as_me:$LINENO: checking string.h presence" >&5 |
| 7066 | echo $ECHO_N "checking string.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7067 | cat >conftest.$ac_ext <<_ACEOF |
| 7068 | /* confdefs.h. */ |
| 7069 | _ACEOF |
| 7070 | cat confdefs.h >>conftest.$ac_ext |
| 7071 | cat >>conftest.$ac_ext <<_ACEOF |
| 7072 | /* end confdefs.h. */ |
| 7073 | #include <string.h> |
| 7074 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7075 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7076 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7077 | ac_status=$? |
| 7078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7079 | rm -f conftest.er1 |
| 7080 | cat conftest.err >&5 |
| 7081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7082 | (exit $ac_status); } >/dev/null; then |
| 7083 | if test -s conftest.err; then |
| 7084 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7085 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7086 | else |
| 7087 | ac_cpp_err= |
| 7088 | fi |
| 7089 | else |
| 7090 | ac_cpp_err=yes |
| 7091 | fi |
| 7092 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7093 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7094 | else |
| 7095 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7097 | |
| 7098 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7099 | fi |
| 7100 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7101 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7102 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7103 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7104 | # So? What about this header? |
| 7105 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7106 | yes:no: ) |
| 7107 | { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7108 | echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7109 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 |
| 7110 | echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} |
| 7111 | ac_header_preproc=yes |
| 7112 | ;; |
| 7113 | no:yes:* ) |
| 7114 | { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 |
| 7115 | echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} |
| 7116 | { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 |
| 7117 | echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} |
| 7118 | { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 |
| 7119 | echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} |
| 7120 | { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7121 | echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7122 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 |
| 7123 | echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} |
| 7124 | { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 |
| 7125 | echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7126 | ( |
| 7127 | cat <<\_ASBOX |
| 7128 | ## ------------------------------------ ## |
| 7129 | ## Report this to the pjproject lists. ## |
| 7130 | ## ------------------------------------ ## |
| 7131 | _ASBOX |
| 7132 | ) | |
| 7133 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7134 | ;; |
| 7135 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7136 | echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7137 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7138 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7140 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7141 | ac_cv_header_string_h=$ac_header_preproc |
| 7142 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7143 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7144 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7145 | |
| 7146 | fi |
| 7147 | if test $ac_cv_header_string_h = yes; then |
| 7148 | cat >>confdefs.h <<\_ACEOF |
| 7149 | #define PJ_HAS_STRING_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7150 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7151 | |
| 7152 | fi |
| 7153 | |
| 7154 | |
| 7155 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7156 | echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7157 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7158 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7160 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7161 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7162 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7163 | else |
| 7164 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7165 | echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5 |
| 7166 | echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7167 | cat >conftest.$ac_ext <<_ACEOF |
| 7168 | /* confdefs.h. */ |
| 7169 | _ACEOF |
| 7170 | cat confdefs.h >>conftest.$ac_ext |
| 7171 | cat >>conftest.$ac_ext <<_ACEOF |
| 7172 | /* end confdefs.h. */ |
| 7173 | $ac_includes_default |
| 7174 | #include <sys/ioctl.h> |
| 7175 | _ACEOF |
| 7176 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7178 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7179 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7180 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7181 | rm -f conftest.er1 |
| 7182 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7184 | (exit $ac_status); } && |
| 7185 | { ac_try='test -z "$ac_c_werror_flag" |
| 7186 | || test ! -s conftest.err' |
| 7187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7188 | (eval $ac_try) 2>&5 |
| 7189 | ac_status=$? |
| 7190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7191 | (exit $ac_status); }; } && |
| 7192 | { ac_try='test -s conftest.$ac_objext' |
| 7193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7194 | (eval $ac_try) 2>&5 |
| 7195 | ac_status=$? |
| 7196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7197 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7198 | ac_header_compiler=yes |
| 7199 | else |
| 7200 | echo "$as_me: failed program was:" >&5 |
| 7201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7202 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7203 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7204 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7206 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7207 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7208 | |
| 7209 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7210 | echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5 |
| 7211 | echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7212 | cat >conftest.$ac_ext <<_ACEOF |
| 7213 | /* confdefs.h. */ |
| 7214 | _ACEOF |
| 7215 | cat confdefs.h >>conftest.$ac_ext |
| 7216 | cat >>conftest.$ac_ext <<_ACEOF |
| 7217 | /* end confdefs.h. */ |
| 7218 | #include <sys/ioctl.h> |
| 7219 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7220 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7221 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7222 | ac_status=$? |
| 7223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7224 | rm -f conftest.er1 |
| 7225 | cat conftest.err >&5 |
| 7226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7227 | (exit $ac_status); } >/dev/null; then |
| 7228 | if test -s conftest.err; then |
| 7229 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7230 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7231 | else |
| 7232 | ac_cpp_err= |
| 7233 | fi |
| 7234 | else |
| 7235 | ac_cpp_err=yes |
| 7236 | fi |
| 7237 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7238 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7239 | else |
| 7240 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7242 | |
| 7243 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7244 | fi |
| 7245 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7246 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7247 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7248 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7249 | # So? What about this header? |
| 7250 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7251 | yes:no: ) |
| 7252 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7253 | echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7254 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5 |
| 7255 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;} |
| 7256 | ac_header_preproc=yes |
| 7257 | ;; |
| 7258 | no:yes:* ) |
| 7259 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5 |
| 7260 | echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;} |
| 7261 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5 |
| 7262 | echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;} |
| 7263 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5 |
| 7264 | echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;} |
| 7265 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7266 | echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7267 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5 |
| 7268 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;} |
| 7269 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5 |
| 7270 | echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7271 | ( |
| 7272 | cat <<\_ASBOX |
| 7273 | ## ------------------------------------ ## |
| 7274 | ## Report this to the pjproject lists. ## |
| 7275 | ## ------------------------------------ ## |
| 7276 | _ASBOX |
| 7277 | ) | |
| 7278 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7279 | ;; |
| 7280 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7281 | echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7282 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7283 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7285 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7286 | ac_cv_header_sys_ioctl_h=$ac_header_preproc |
| 7287 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7288 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7289 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7290 | |
| 7291 | fi |
| 7292 | if test $ac_cv_header_sys_ioctl_h = yes; then |
| 7293 | cat >>confdefs.h <<\_ACEOF |
| 7294 | #define PJ_HAS_SYS_IOCTL_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7295 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7296 | |
| 7297 | fi |
| 7298 | |
| 7299 | |
| 7300 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7301 | echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 7302 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7303 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 7304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7305 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7306 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 7307 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7308 | else |
| 7309 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7310 | echo "$as_me:$LINENO: checking sys/select.h usability" >&5 |
| 7311 | echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7312 | cat >conftest.$ac_ext <<_ACEOF |
| 7313 | /* confdefs.h. */ |
| 7314 | _ACEOF |
| 7315 | cat confdefs.h >>conftest.$ac_ext |
| 7316 | cat >>conftest.$ac_ext <<_ACEOF |
| 7317 | /* end confdefs.h. */ |
| 7318 | $ac_includes_default |
| 7319 | #include <sys/select.h> |
| 7320 | _ACEOF |
| 7321 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7323 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7324 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7325 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7326 | rm -f conftest.er1 |
| 7327 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7329 | (exit $ac_status); } && |
| 7330 | { ac_try='test -z "$ac_c_werror_flag" |
| 7331 | || test ! -s conftest.err' |
| 7332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7333 | (eval $ac_try) 2>&5 |
| 7334 | ac_status=$? |
| 7335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7336 | (exit $ac_status); }; } && |
| 7337 | { ac_try='test -s conftest.$ac_objext' |
| 7338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7339 | (eval $ac_try) 2>&5 |
| 7340 | ac_status=$? |
| 7341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7342 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7343 | ac_header_compiler=yes |
| 7344 | else |
| 7345 | echo "$as_me: failed program was:" >&5 |
| 7346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7347 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7348 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7349 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7351 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7352 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7353 | |
| 7354 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7355 | echo "$as_me:$LINENO: checking sys/select.h presence" >&5 |
| 7356 | echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7357 | cat >conftest.$ac_ext <<_ACEOF |
| 7358 | /* confdefs.h. */ |
| 7359 | _ACEOF |
| 7360 | cat confdefs.h >>conftest.$ac_ext |
| 7361 | cat >>conftest.$ac_ext <<_ACEOF |
| 7362 | /* end confdefs.h. */ |
| 7363 | #include <sys/select.h> |
| 7364 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7365 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7366 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7367 | ac_status=$? |
| 7368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7369 | rm -f conftest.er1 |
| 7370 | cat conftest.err >&5 |
| 7371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7372 | (exit $ac_status); } >/dev/null; then |
| 7373 | if test -s conftest.err; then |
| 7374 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7375 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7376 | else |
| 7377 | ac_cpp_err= |
| 7378 | fi |
| 7379 | else |
| 7380 | ac_cpp_err=yes |
| 7381 | fi |
| 7382 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7383 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7384 | else |
| 7385 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7387 | |
| 7388 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7389 | fi |
| 7390 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7391 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7392 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7393 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7394 | # So? What about this header? |
| 7395 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7396 | yes:no: ) |
| 7397 | { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7398 | echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7399 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 |
| 7400 | echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} |
| 7401 | ac_header_preproc=yes |
| 7402 | ;; |
| 7403 | no:yes:* ) |
| 7404 | { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 |
| 7405 | echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} |
| 7406 | { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 |
| 7407 | echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} |
| 7408 | { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 |
| 7409 | echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} |
| 7410 | { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7411 | echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7412 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 |
| 7413 | echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} |
| 7414 | { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 |
| 7415 | echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7416 | ( |
| 7417 | cat <<\_ASBOX |
| 7418 | ## ------------------------------------ ## |
| 7419 | ## Report this to the pjproject lists. ## |
| 7420 | ## ------------------------------------ ## |
| 7421 | _ASBOX |
| 7422 | ) | |
| 7423 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7424 | ;; |
| 7425 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7426 | echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 7427 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7428 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 7429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7430 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7431 | ac_cv_header_sys_select_h=$ac_header_preproc |
| 7432 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7433 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 7434 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7435 | |
| 7436 | fi |
| 7437 | if test $ac_cv_header_sys_select_h = yes; then |
| 7438 | cat >>confdefs.h <<\_ACEOF |
| 7439 | #define PJ_HAS_SYS_SELECT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7440 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7441 | |
| 7442 | fi |
| 7443 | |
| 7444 | |
| 7445 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7446 | echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 7447 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7448 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 7449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7450 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7451 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 7452 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7453 | else |
| 7454 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7455 | echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 |
| 7456 | echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7457 | cat >conftest.$ac_ext <<_ACEOF |
| 7458 | /* confdefs.h. */ |
| 7459 | _ACEOF |
| 7460 | cat confdefs.h >>conftest.$ac_ext |
| 7461 | cat >>conftest.$ac_ext <<_ACEOF |
| 7462 | /* end confdefs.h. */ |
| 7463 | $ac_includes_default |
| 7464 | #include <sys/socket.h> |
| 7465 | _ACEOF |
| 7466 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7468 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7469 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7470 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7471 | rm -f conftest.er1 |
| 7472 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7474 | (exit $ac_status); } && |
| 7475 | { ac_try='test -z "$ac_c_werror_flag" |
| 7476 | || test ! -s conftest.err' |
| 7477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7478 | (eval $ac_try) 2>&5 |
| 7479 | ac_status=$? |
| 7480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7481 | (exit $ac_status); }; } && |
| 7482 | { ac_try='test -s conftest.$ac_objext' |
| 7483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7484 | (eval $ac_try) 2>&5 |
| 7485 | ac_status=$? |
| 7486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7487 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7488 | ac_header_compiler=yes |
| 7489 | else |
| 7490 | echo "$as_me: failed program was:" >&5 |
| 7491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7492 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7493 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7494 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7496 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7497 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7498 | |
| 7499 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7500 | echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 |
| 7501 | echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7502 | cat >conftest.$ac_ext <<_ACEOF |
| 7503 | /* confdefs.h. */ |
| 7504 | _ACEOF |
| 7505 | cat confdefs.h >>conftest.$ac_ext |
| 7506 | cat >>conftest.$ac_ext <<_ACEOF |
| 7507 | /* end confdefs.h. */ |
| 7508 | #include <sys/socket.h> |
| 7509 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7510 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7511 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7512 | ac_status=$? |
| 7513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7514 | rm -f conftest.er1 |
| 7515 | cat conftest.err >&5 |
| 7516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7517 | (exit $ac_status); } >/dev/null; then |
| 7518 | if test -s conftest.err; then |
| 7519 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7520 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7521 | else |
| 7522 | ac_cpp_err= |
| 7523 | fi |
| 7524 | else |
| 7525 | ac_cpp_err=yes |
| 7526 | fi |
| 7527 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7528 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7529 | else |
| 7530 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7532 | |
| 7533 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7534 | fi |
| 7535 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7536 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7537 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7538 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7539 | # So? What about this header? |
| 7540 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7541 | yes:no: ) |
| 7542 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7543 | echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7544 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5 |
| 7545 | echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;} |
| 7546 | ac_header_preproc=yes |
| 7547 | ;; |
| 7548 | no:yes:* ) |
| 7549 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 |
| 7550 | echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} |
| 7551 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 |
| 7552 | echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} |
| 7553 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5 |
| 7554 | echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;} |
| 7555 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7556 | echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7557 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 |
| 7558 | echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} |
| 7559 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5 |
| 7560 | echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7561 | ( |
| 7562 | cat <<\_ASBOX |
| 7563 | ## ------------------------------------ ## |
| 7564 | ## Report this to the pjproject lists. ## |
| 7565 | ## ------------------------------------ ## |
| 7566 | _ASBOX |
| 7567 | ) | |
| 7568 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7569 | ;; |
| 7570 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7571 | echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 7572 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7573 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 7574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7575 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7576 | ac_cv_header_sys_socket_h=$ac_header_preproc |
| 7577 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7578 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 7579 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7580 | |
| 7581 | fi |
| 7582 | if test $ac_cv_header_sys_socket_h = yes; then |
| 7583 | cat >>confdefs.h <<\_ACEOF |
| 7584 | #define PJ_HAS_SYS_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7585 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7586 | |
| 7587 | fi |
| 7588 | |
| 7589 | |
| 7590 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7591 | echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 7592 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7593 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 7594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7595 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7596 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 7597 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7598 | else |
| 7599 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7600 | echo "$as_me:$LINENO: checking sys/time.h usability" >&5 |
| 7601 | echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7602 | cat >conftest.$ac_ext <<_ACEOF |
| 7603 | /* confdefs.h. */ |
| 7604 | _ACEOF |
| 7605 | cat confdefs.h >>conftest.$ac_ext |
| 7606 | cat >>conftest.$ac_ext <<_ACEOF |
| 7607 | /* end confdefs.h. */ |
| 7608 | $ac_includes_default |
| 7609 | #include <sys/time.h> |
| 7610 | _ACEOF |
| 7611 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7613 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7614 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7615 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7616 | rm -f conftest.er1 |
| 7617 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7619 | (exit $ac_status); } && |
| 7620 | { ac_try='test -z "$ac_c_werror_flag" |
| 7621 | || test ! -s conftest.err' |
| 7622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7623 | (eval $ac_try) 2>&5 |
| 7624 | ac_status=$? |
| 7625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7626 | (exit $ac_status); }; } && |
| 7627 | { ac_try='test -s conftest.$ac_objext' |
| 7628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7629 | (eval $ac_try) 2>&5 |
| 7630 | ac_status=$? |
| 7631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7632 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7633 | ac_header_compiler=yes |
| 7634 | else |
| 7635 | echo "$as_me: failed program was:" >&5 |
| 7636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7637 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7638 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7639 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7641 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7642 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7643 | |
| 7644 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7645 | echo "$as_me:$LINENO: checking sys/time.h presence" >&5 |
| 7646 | echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7647 | cat >conftest.$ac_ext <<_ACEOF |
| 7648 | /* confdefs.h. */ |
| 7649 | _ACEOF |
| 7650 | cat confdefs.h >>conftest.$ac_ext |
| 7651 | cat >>conftest.$ac_ext <<_ACEOF |
| 7652 | /* end confdefs.h. */ |
| 7653 | #include <sys/time.h> |
| 7654 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7655 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7656 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7657 | ac_status=$? |
| 7658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7659 | rm -f conftest.er1 |
| 7660 | cat conftest.err >&5 |
| 7661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7662 | (exit $ac_status); } >/dev/null; then |
| 7663 | if test -s conftest.err; then |
| 7664 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7665 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7666 | else |
| 7667 | ac_cpp_err= |
| 7668 | fi |
| 7669 | else |
| 7670 | ac_cpp_err=yes |
| 7671 | fi |
| 7672 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7673 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7674 | else |
| 7675 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7677 | |
| 7678 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7679 | fi |
| 7680 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7681 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7682 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7683 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7684 | # So? What about this header? |
| 7685 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7686 | yes:no: ) |
| 7687 | { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7688 | echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7689 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5 |
| 7690 | echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;} |
| 7691 | ac_header_preproc=yes |
| 7692 | ;; |
| 7693 | no:yes:* ) |
| 7694 | { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5 |
| 7695 | echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;} |
| 7696 | { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5 |
| 7697 | echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;} |
| 7698 | { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5 |
| 7699 | echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;} |
| 7700 | { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7701 | echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7702 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5 |
| 7703 | echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;} |
| 7704 | { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5 |
| 7705 | echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7706 | ( |
| 7707 | cat <<\_ASBOX |
| 7708 | ## ------------------------------------ ## |
| 7709 | ## Report this to the pjproject lists. ## |
| 7710 | ## ------------------------------------ ## |
| 7711 | _ASBOX |
| 7712 | ) | |
| 7713 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7714 | ;; |
| 7715 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7716 | echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 7717 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7718 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 7719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7720 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7721 | ac_cv_header_sys_time_h=$ac_header_preproc |
| 7722 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7723 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 7724 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7725 | |
| 7726 | fi |
| 7727 | if test $ac_cv_header_sys_time_h = yes; then |
| 7728 | cat >>confdefs.h <<\_ACEOF |
| 7729 | #define PJ_HAS_SYS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7730 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7731 | |
| 7732 | fi |
| 7733 | |
| 7734 | |
| 7735 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7736 | echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 7737 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7738 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 7739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7740 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7741 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 7742 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7743 | else |
| 7744 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7745 | echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5 |
| 7746 | echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7747 | cat >conftest.$ac_ext <<_ACEOF |
| 7748 | /* confdefs.h. */ |
| 7749 | _ACEOF |
| 7750 | cat confdefs.h >>conftest.$ac_ext |
| 7751 | cat >>conftest.$ac_ext <<_ACEOF |
| 7752 | /* end confdefs.h. */ |
| 7753 | $ac_includes_default |
| 7754 | #include <sys/timeb.h> |
| 7755 | _ACEOF |
| 7756 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7758 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7759 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7760 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7761 | rm -f conftest.er1 |
| 7762 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7764 | (exit $ac_status); } && |
| 7765 | { ac_try='test -z "$ac_c_werror_flag" |
| 7766 | || test ! -s conftest.err' |
| 7767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7768 | (eval $ac_try) 2>&5 |
| 7769 | ac_status=$? |
| 7770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7771 | (exit $ac_status); }; } && |
| 7772 | { ac_try='test -s conftest.$ac_objext' |
| 7773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7774 | (eval $ac_try) 2>&5 |
| 7775 | ac_status=$? |
| 7776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7777 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7778 | ac_header_compiler=yes |
| 7779 | else |
| 7780 | echo "$as_me: failed program was:" >&5 |
| 7781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7782 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7783 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7784 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7785 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7786 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7787 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7788 | |
| 7789 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7790 | echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5 |
| 7791 | echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7792 | cat >conftest.$ac_ext <<_ACEOF |
| 7793 | /* confdefs.h. */ |
| 7794 | _ACEOF |
| 7795 | cat confdefs.h >>conftest.$ac_ext |
| 7796 | cat >>conftest.$ac_ext <<_ACEOF |
| 7797 | /* end confdefs.h. */ |
| 7798 | #include <sys/timeb.h> |
| 7799 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7800 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7801 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7802 | ac_status=$? |
| 7803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7804 | rm -f conftest.er1 |
| 7805 | cat conftest.err >&5 |
| 7806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7807 | (exit $ac_status); } >/dev/null; then |
| 7808 | if test -s conftest.err; then |
| 7809 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7810 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7811 | else |
| 7812 | ac_cpp_err= |
| 7813 | fi |
| 7814 | else |
| 7815 | ac_cpp_err=yes |
| 7816 | fi |
| 7817 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7818 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7819 | else |
| 7820 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7822 | |
| 7823 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7824 | fi |
| 7825 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7826 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7827 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7828 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7829 | # So? What about this header? |
| 7830 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7831 | yes:no: ) |
| 7832 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7833 | echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7834 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5 |
| 7835 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;} |
| 7836 | ac_header_preproc=yes |
| 7837 | ;; |
| 7838 | no:yes:* ) |
| 7839 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5 |
| 7840 | echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;} |
| 7841 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5 |
| 7842 | echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;} |
| 7843 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5 |
| 7844 | echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;} |
| 7845 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7846 | echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7847 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5 |
| 7848 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;} |
| 7849 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5 |
| 7850 | echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7851 | ( |
| 7852 | cat <<\_ASBOX |
| 7853 | ## ------------------------------------ ## |
| 7854 | ## Report this to the pjproject lists. ## |
| 7855 | ## ------------------------------------ ## |
| 7856 | _ASBOX |
| 7857 | ) | |
| 7858 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7859 | ;; |
| 7860 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7861 | echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 7862 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7863 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 7864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7865 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7866 | ac_cv_header_sys_timeb_h=$ac_header_preproc |
| 7867 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7868 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 7869 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7870 | |
| 7871 | fi |
| 7872 | if test $ac_cv_header_sys_timeb_h = yes; then |
| 7873 | cat >>confdefs.h <<\_ACEOF |
| 7874 | #define PJ_HAS_SYS_TIMEB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7875 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7876 | |
| 7877 | fi |
| 7878 | |
| 7879 | |
| 7880 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7881 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 7882 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7883 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 7884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7885 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7886 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 7887 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7888 | else |
| 7889 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7890 | echo "$as_me:$LINENO: checking sys/types.h usability" >&5 |
| 7891 | echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7892 | cat >conftest.$ac_ext <<_ACEOF |
| 7893 | /* confdefs.h. */ |
| 7894 | _ACEOF |
| 7895 | cat confdefs.h >>conftest.$ac_ext |
| 7896 | cat >>conftest.$ac_ext <<_ACEOF |
| 7897 | /* end confdefs.h. */ |
| 7898 | $ac_includes_default |
| 7899 | #include <sys/types.h> |
| 7900 | _ACEOF |
| 7901 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7903 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7904 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7905 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7906 | rm -f conftest.er1 |
| 7907 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7909 | (exit $ac_status); } && |
| 7910 | { ac_try='test -z "$ac_c_werror_flag" |
| 7911 | || test ! -s conftest.err' |
| 7912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7913 | (eval $ac_try) 2>&5 |
| 7914 | ac_status=$? |
| 7915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7916 | (exit $ac_status); }; } && |
| 7917 | { ac_try='test -s conftest.$ac_objext' |
| 7918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7919 | (eval $ac_try) 2>&5 |
| 7920 | ac_status=$? |
| 7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7922 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7923 | ac_header_compiler=yes |
| 7924 | else |
| 7925 | echo "$as_me: failed program was:" >&5 |
| 7926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7927 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7928 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7929 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7931 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7932 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7933 | |
| 7934 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7935 | echo "$as_me:$LINENO: checking sys/types.h presence" >&5 |
| 7936 | echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7937 | cat >conftest.$ac_ext <<_ACEOF |
| 7938 | /* confdefs.h. */ |
| 7939 | _ACEOF |
| 7940 | cat confdefs.h >>conftest.$ac_ext |
| 7941 | cat >>conftest.$ac_ext <<_ACEOF |
| 7942 | /* end confdefs.h. */ |
| 7943 | #include <sys/types.h> |
| 7944 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7945 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7946 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7947 | ac_status=$? |
| 7948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7949 | rm -f conftest.er1 |
| 7950 | cat conftest.err >&5 |
| 7951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7952 | (exit $ac_status); } >/dev/null; then |
| 7953 | if test -s conftest.err; then |
| 7954 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7955 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7956 | else |
| 7957 | ac_cpp_err= |
| 7958 | fi |
| 7959 | else |
| 7960 | ac_cpp_err=yes |
| 7961 | fi |
| 7962 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7963 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7964 | else |
| 7965 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7967 | |
| 7968 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7969 | fi |
| 7970 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7971 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7972 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7973 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7974 | # So? What about this header? |
| 7975 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7976 | yes:no: ) |
| 7977 | { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7978 | echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7979 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 |
| 7980 | echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} |
| 7981 | ac_header_preproc=yes |
| 7982 | ;; |
| 7983 | no:yes:* ) |
| 7984 | { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 |
| 7985 | echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} |
| 7986 | { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 |
| 7987 | echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} |
| 7988 | { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 |
| 7989 | echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} |
| 7990 | { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7991 | echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7992 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 |
| 7993 | echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} |
| 7994 | { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 |
| 7995 | echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7996 | ( |
| 7997 | cat <<\_ASBOX |
| 7998 | ## ------------------------------------ ## |
| 7999 | ## Report this to the pjproject lists. ## |
| 8000 | ## ------------------------------------ ## |
| 8001 | _ASBOX |
| 8002 | ) | |
| 8003 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8004 | ;; |
| 8005 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8006 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 8007 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8008 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8010 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8011 | ac_cv_header_sys_types_h=$ac_header_preproc |
| 8012 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8013 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 8014 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8015 | |
| 8016 | fi |
| 8017 | if test $ac_cv_header_sys_types_h = yes; then |
| 8018 | cat >>confdefs.h <<\_ACEOF |
| 8019 | #define PJ_HAS_SYS_TYPES_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8020 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8021 | |
| 8022 | fi |
| 8023 | |
| 8024 | |
| 8025 | if test "${ac_cv_header_time_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8026 | echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8027 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8028 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8030 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8031 | echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8032 | echo "${ECHO_T}$ac_cv_header_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8033 | else |
| 8034 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8035 | echo "$as_me:$LINENO: checking time.h usability" >&5 |
| 8036 | echo $ECHO_N "checking time.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8037 | cat >conftest.$ac_ext <<_ACEOF |
| 8038 | /* confdefs.h. */ |
| 8039 | _ACEOF |
| 8040 | cat confdefs.h >>conftest.$ac_ext |
| 8041 | cat >>conftest.$ac_ext <<_ACEOF |
| 8042 | /* end confdefs.h. */ |
| 8043 | $ac_includes_default |
| 8044 | #include <time.h> |
| 8045 | _ACEOF |
| 8046 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8048 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8049 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8050 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8051 | rm -f conftest.er1 |
| 8052 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8054 | (exit $ac_status); } && |
| 8055 | { ac_try='test -z "$ac_c_werror_flag" |
| 8056 | || test ! -s conftest.err' |
| 8057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8058 | (eval $ac_try) 2>&5 |
| 8059 | ac_status=$? |
| 8060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8061 | (exit $ac_status); }; } && |
| 8062 | { ac_try='test -s conftest.$ac_objext' |
| 8063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8064 | (eval $ac_try) 2>&5 |
| 8065 | ac_status=$? |
| 8066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8067 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8068 | ac_header_compiler=yes |
| 8069 | else |
| 8070 | echo "$as_me: failed program was:" >&5 |
| 8071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8072 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8073 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8074 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8076 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8077 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8078 | |
| 8079 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8080 | echo "$as_me:$LINENO: checking time.h presence" >&5 |
| 8081 | echo $ECHO_N "checking time.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8082 | cat >conftest.$ac_ext <<_ACEOF |
| 8083 | /* confdefs.h. */ |
| 8084 | _ACEOF |
| 8085 | cat confdefs.h >>conftest.$ac_ext |
| 8086 | cat >>conftest.$ac_ext <<_ACEOF |
| 8087 | /* end confdefs.h. */ |
| 8088 | #include <time.h> |
| 8089 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8090 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8091 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8092 | ac_status=$? |
| 8093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8094 | rm -f conftest.er1 |
| 8095 | cat conftest.err >&5 |
| 8096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8097 | (exit $ac_status); } >/dev/null; then |
| 8098 | if test -s conftest.err; then |
| 8099 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8100 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8101 | else |
| 8102 | ac_cpp_err= |
| 8103 | fi |
| 8104 | else |
| 8105 | ac_cpp_err=yes |
| 8106 | fi |
| 8107 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8108 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8109 | else |
| 8110 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8112 | |
| 8113 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8114 | fi |
| 8115 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8116 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8117 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8118 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8119 | # So? What about this header? |
| 8120 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8121 | yes:no: ) |
| 8122 | { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8123 | echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8124 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5 |
| 8125 | echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;} |
| 8126 | ac_header_preproc=yes |
| 8127 | ;; |
| 8128 | no:yes:* ) |
| 8129 | { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5 |
| 8130 | echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;} |
| 8131 | { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5 |
| 8132 | echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;} |
| 8133 | { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5 |
| 8134 | echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;} |
| 8135 | { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8136 | echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8137 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5 |
| 8138 | echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;} |
| 8139 | { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5 |
| 8140 | echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8141 | ( |
| 8142 | cat <<\_ASBOX |
| 8143 | ## ------------------------------------ ## |
| 8144 | ## Report this to the pjproject lists. ## |
| 8145 | ## ------------------------------------ ## |
| 8146 | _ASBOX |
| 8147 | ) | |
| 8148 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8149 | ;; |
| 8150 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8151 | echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8152 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8153 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8155 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8156 | ac_cv_header_time_h=$ac_header_preproc |
| 8157 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8158 | echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8159 | echo "${ECHO_T}$ac_cv_header_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8160 | |
| 8161 | fi |
| 8162 | if test $ac_cv_header_time_h = yes; then |
| 8163 | cat >>confdefs.h <<\_ACEOF |
| 8164 | #define PJ_HAS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8165 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8166 | |
| 8167 | fi |
| 8168 | |
| 8169 | |
| 8170 | if test "${ac_cv_header_unistd_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8171 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 8172 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8173 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 8174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8175 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8176 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 8177 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8178 | else |
| 8179 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8180 | echo "$as_me:$LINENO: checking unistd.h usability" >&5 |
| 8181 | echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8182 | cat >conftest.$ac_ext <<_ACEOF |
| 8183 | /* confdefs.h. */ |
| 8184 | _ACEOF |
| 8185 | cat confdefs.h >>conftest.$ac_ext |
| 8186 | cat >>conftest.$ac_ext <<_ACEOF |
| 8187 | /* end confdefs.h. */ |
| 8188 | $ac_includes_default |
| 8189 | #include <unistd.h> |
| 8190 | _ACEOF |
| 8191 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8193 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8194 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8195 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8196 | rm -f conftest.er1 |
| 8197 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8199 | (exit $ac_status); } && |
| 8200 | { ac_try='test -z "$ac_c_werror_flag" |
| 8201 | || test ! -s conftest.err' |
| 8202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8203 | (eval $ac_try) 2>&5 |
| 8204 | ac_status=$? |
| 8205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8206 | (exit $ac_status); }; } && |
| 8207 | { ac_try='test -s conftest.$ac_objext' |
| 8208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8209 | (eval $ac_try) 2>&5 |
| 8210 | ac_status=$? |
| 8211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8212 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8213 | ac_header_compiler=yes |
| 8214 | else |
| 8215 | echo "$as_me: failed program was:" >&5 |
| 8216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8217 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8218 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8219 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8221 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8222 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8223 | |
| 8224 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8225 | echo "$as_me:$LINENO: checking unistd.h presence" >&5 |
| 8226 | echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8227 | cat >conftest.$ac_ext <<_ACEOF |
| 8228 | /* confdefs.h. */ |
| 8229 | _ACEOF |
| 8230 | cat confdefs.h >>conftest.$ac_ext |
| 8231 | cat >>conftest.$ac_ext <<_ACEOF |
| 8232 | /* end confdefs.h. */ |
| 8233 | #include <unistd.h> |
| 8234 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8235 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8236 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8237 | ac_status=$? |
| 8238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8239 | rm -f conftest.er1 |
| 8240 | cat conftest.err >&5 |
| 8241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8242 | (exit $ac_status); } >/dev/null; then |
| 8243 | if test -s conftest.err; then |
| 8244 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8245 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8246 | else |
| 8247 | ac_cpp_err= |
| 8248 | fi |
| 8249 | else |
| 8250 | ac_cpp_err=yes |
| 8251 | fi |
| 8252 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8253 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8254 | else |
| 8255 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8257 | |
| 8258 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8259 | fi |
| 8260 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8261 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8262 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8263 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8264 | # So? What about this header? |
| 8265 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8266 | yes:no: ) |
| 8267 | { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8268 | echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8269 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 |
| 8270 | echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} |
| 8271 | ac_header_preproc=yes |
| 8272 | ;; |
| 8273 | no:yes:* ) |
| 8274 | { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 |
| 8275 | echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} |
| 8276 | { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 |
| 8277 | echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} |
| 8278 | { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 |
| 8279 | echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} |
| 8280 | { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8281 | echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8282 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 |
| 8283 | echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} |
| 8284 | { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 |
| 8285 | echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8286 | ( |
| 8287 | cat <<\_ASBOX |
| 8288 | ## ------------------------------------ ## |
| 8289 | ## Report this to the pjproject lists. ## |
| 8290 | ## ------------------------------------ ## |
| 8291 | _ASBOX |
| 8292 | ) | |
| 8293 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8294 | ;; |
| 8295 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8296 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 8297 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8298 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 8299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8300 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8301 | ac_cv_header_unistd_h=$ac_header_preproc |
| 8302 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8303 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 8304 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8305 | |
| 8306 | fi |
| 8307 | if test $ac_cv_header_unistd_h = yes; then |
| 8308 | cat >>confdefs.h <<\_ACEOF |
| 8309 | #define PJ_HAS_UNISTD_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8310 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8311 | |
| 8312 | fi |
| 8313 | |
| 8314 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8315 | if test "${ac_cv_header_winsock_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8316 | echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 8317 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8318 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 8319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8320 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8321 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 8322 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8323 | else |
| 8324 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8325 | echo "$as_me:$LINENO: checking winsock.h usability" >&5 |
| 8326 | echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8327 | cat >conftest.$ac_ext <<_ACEOF |
| 8328 | /* confdefs.h. */ |
| 8329 | _ACEOF |
| 8330 | cat confdefs.h >>conftest.$ac_ext |
| 8331 | cat >>conftest.$ac_ext <<_ACEOF |
| 8332 | /* end confdefs.h. */ |
| 8333 | $ac_includes_default |
| 8334 | #include <winsock.h> |
| 8335 | _ACEOF |
| 8336 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8338 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8339 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8340 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8341 | rm -f conftest.er1 |
| 8342 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8344 | (exit $ac_status); } && |
| 8345 | { ac_try='test -z "$ac_c_werror_flag" |
| 8346 | || test ! -s conftest.err' |
| 8347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8348 | (eval $ac_try) 2>&5 |
| 8349 | ac_status=$? |
| 8350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8351 | (exit $ac_status); }; } && |
| 8352 | { ac_try='test -s conftest.$ac_objext' |
| 8353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8354 | (eval $ac_try) 2>&5 |
| 8355 | ac_status=$? |
| 8356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8357 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8358 | ac_header_compiler=yes |
| 8359 | else |
| 8360 | echo "$as_me: failed program was:" >&5 |
| 8361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8362 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8363 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8364 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8366 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8367 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8368 | |
| 8369 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8370 | echo "$as_me:$LINENO: checking winsock.h presence" >&5 |
| 8371 | echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8372 | cat >conftest.$ac_ext <<_ACEOF |
| 8373 | /* confdefs.h. */ |
| 8374 | _ACEOF |
| 8375 | cat confdefs.h >>conftest.$ac_ext |
| 8376 | cat >>conftest.$ac_ext <<_ACEOF |
| 8377 | /* end confdefs.h. */ |
| 8378 | #include <winsock.h> |
| 8379 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8380 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8381 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8382 | ac_status=$? |
| 8383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8384 | rm -f conftest.er1 |
| 8385 | cat conftest.err >&5 |
| 8386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8387 | (exit $ac_status); } >/dev/null; then |
| 8388 | if test -s conftest.err; then |
| 8389 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8390 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8391 | else |
| 8392 | ac_cpp_err= |
| 8393 | fi |
| 8394 | else |
| 8395 | ac_cpp_err=yes |
| 8396 | fi |
| 8397 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8398 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8399 | else |
| 8400 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8402 | |
| 8403 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8404 | fi |
| 8405 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8406 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8407 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8408 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8409 | # So? What about this header? |
| 8410 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8411 | yes:no: ) |
| 8412 | { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8413 | echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8414 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5 |
| 8415 | echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;} |
| 8416 | ac_header_preproc=yes |
| 8417 | ;; |
| 8418 | no:yes:* ) |
| 8419 | { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5 |
| 8420 | echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;} |
| 8421 | { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5 |
| 8422 | echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;} |
| 8423 | { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5 |
| 8424 | echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;} |
| 8425 | { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8426 | echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8427 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5 |
| 8428 | echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;} |
| 8429 | { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5 |
| 8430 | echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8431 | ( |
| 8432 | cat <<\_ASBOX |
| 8433 | ## ------------------------------------ ## |
| 8434 | ## Report this to the pjproject lists. ## |
| 8435 | ## ------------------------------------ ## |
| 8436 | _ASBOX |
| 8437 | ) | |
| 8438 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8439 | ;; |
| 8440 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8441 | echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 8442 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8443 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 8444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8445 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8446 | ac_cv_header_winsock_h=$ac_header_preproc |
| 8447 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8448 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 8449 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8450 | |
| 8451 | fi |
| 8452 | if test $ac_cv_header_winsock_h = yes; then |
| 8453 | cat >>confdefs.h <<\_ACEOF |
| 8454 | #define PJ_HAS_WINSOCK_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8455 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8456 | |
| 8457 | fi |
| 8458 | |
| 8459 | |
| 8460 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8461 | echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 8462 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8463 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8465 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8466 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 8467 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8468 | else |
| 8469 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8470 | echo "$as_me:$LINENO: checking winsock2.h usability" >&5 |
| 8471 | echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8472 | cat >conftest.$ac_ext <<_ACEOF |
| 8473 | /* confdefs.h. */ |
| 8474 | _ACEOF |
| 8475 | cat confdefs.h >>conftest.$ac_ext |
| 8476 | cat >>conftest.$ac_ext <<_ACEOF |
| 8477 | /* end confdefs.h. */ |
| 8478 | $ac_includes_default |
| 8479 | #include <winsock2.h> |
| 8480 | _ACEOF |
| 8481 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8483 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8484 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8485 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8486 | rm -f conftest.er1 |
| 8487 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8489 | (exit $ac_status); } && |
| 8490 | { ac_try='test -z "$ac_c_werror_flag" |
| 8491 | || test ! -s conftest.err' |
| 8492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8493 | (eval $ac_try) 2>&5 |
| 8494 | ac_status=$? |
| 8495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8496 | (exit $ac_status); }; } && |
| 8497 | { ac_try='test -s conftest.$ac_objext' |
| 8498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8499 | (eval $ac_try) 2>&5 |
| 8500 | ac_status=$? |
| 8501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8502 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8503 | ac_header_compiler=yes |
| 8504 | else |
| 8505 | echo "$as_me: failed program was:" >&5 |
| 8506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8507 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8508 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8509 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8511 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8512 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8513 | |
| 8514 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8515 | echo "$as_me:$LINENO: checking winsock2.h presence" >&5 |
| 8516 | echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8517 | cat >conftest.$ac_ext <<_ACEOF |
| 8518 | /* confdefs.h. */ |
| 8519 | _ACEOF |
| 8520 | cat confdefs.h >>conftest.$ac_ext |
| 8521 | cat >>conftest.$ac_ext <<_ACEOF |
| 8522 | /* end confdefs.h. */ |
| 8523 | #include <winsock2.h> |
| 8524 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8525 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8526 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8527 | ac_status=$? |
| 8528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8529 | rm -f conftest.er1 |
| 8530 | cat conftest.err >&5 |
| 8531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8532 | (exit $ac_status); } >/dev/null; then |
| 8533 | if test -s conftest.err; then |
| 8534 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8535 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8536 | else |
| 8537 | ac_cpp_err= |
| 8538 | fi |
| 8539 | else |
| 8540 | ac_cpp_err=yes |
| 8541 | fi |
| 8542 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8543 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8544 | else |
| 8545 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8547 | |
| 8548 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8549 | fi |
| 8550 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8551 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8552 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8553 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8554 | # So? What about this header? |
| 8555 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8556 | yes:no: ) |
| 8557 | { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8558 | echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8559 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 |
| 8560 | echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} |
| 8561 | ac_header_preproc=yes |
| 8562 | ;; |
| 8563 | no:yes:* ) |
| 8564 | { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 |
| 8565 | echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} |
| 8566 | { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 |
| 8567 | echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} |
| 8568 | { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 |
| 8569 | echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} |
| 8570 | { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8571 | echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8572 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 |
| 8573 | echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} |
| 8574 | { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 |
| 8575 | echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8576 | ( |
| 8577 | cat <<\_ASBOX |
| 8578 | ## ------------------------------------ ## |
| 8579 | ## Report this to the pjproject lists. ## |
| 8580 | ## ------------------------------------ ## |
| 8581 | _ASBOX |
| 8582 | ) | |
| 8583 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8584 | ;; |
| 8585 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8586 | echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 8587 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8588 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8590 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8591 | ac_cv_header_winsock2_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8592 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8593 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 8594 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8595 | |
| 8596 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8597 | if test $ac_cv_header_winsock2_h = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8598 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8599 | #define PJ_HAS_WINSOCK2_H 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8600 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8601 | |
| 8602 | fi |
| 8603 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8604 | |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8605 | echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
| 8606 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6 |
| 8607 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 8608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8609 | else |
| 8610 | cat >conftest.$ac_ext <<_ACEOF |
| 8611 | /* confdefs.h. */ |
| 8612 | _ACEOF |
| 8613 | cat confdefs.h >>conftest.$ac_ext |
| 8614 | cat >>conftest.$ac_ext <<_ACEOF |
| 8615 | /* end confdefs.h. */ |
| 8616 | #if PJ_HAS_WINSOCK2_H |
| 8617 | # include <winsock2.h> |
| 8618 | #elif PJ_HAS_WINSOCK_H |
| 8619 | # include <winsock.h> |
| 8620 | #endif |
| 8621 | |
| 8622 | |
| 8623 | #include <mswsock.h> |
| 8624 | _ACEOF |
| 8625 | rm -f conftest.$ac_objext |
| 8626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8627 | (eval $ac_compile) 2>conftest.er1 |
| 8628 | ac_status=$? |
| 8629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8630 | rm -f conftest.er1 |
| 8631 | cat conftest.err >&5 |
| 8632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8633 | (exit $ac_status); } && |
| 8634 | { ac_try='test -z "$ac_c_werror_flag" |
| 8635 | || test ! -s conftest.err' |
| 8636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8637 | (eval $ac_try) 2>&5 |
| 8638 | ac_status=$? |
| 8639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8640 | (exit $ac_status); }; } && |
| 8641 | { ac_try='test -s conftest.$ac_objext' |
| 8642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8643 | (eval $ac_try) 2>&5 |
| 8644 | ac_status=$? |
| 8645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8646 | (exit $ac_status); }; }; then |
| 8647 | ac_cv_header_mswsock_h=yes |
| 8648 | else |
| 8649 | echo "$as_me: failed program was:" >&5 |
| 8650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8651 | |
| 8652 | ac_cv_header_mswsock_h=no |
| 8653 | fi |
| 8654 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8655 | fi |
| 8656 | echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 8657 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6 |
| 8658 | if test $ac_cv_header_mswsock_h = yes; then |
| 8659 | cat >>confdefs.h <<\_ACEOF |
| 8660 | #define PJ_HAS_MSWSOCK_H 1 |
| 8661 | _ACEOF |
| 8662 | |
| 8663 | fi |
| 8664 | |
| 8665 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8666 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8667 | echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 8668 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8669 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 8670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8671 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8672 | echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 8673 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8674 | else |
| 8675 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8676 | echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 |
| 8677 | echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8678 | cat >conftest.$ac_ext <<_ACEOF |
| 8679 | /* confdefs.h. */ |
| 8680 | _ACEOF |
| 8681 | cat confdefs.h >>conftest.$ac_ext |
| 8682 | cat >>conftest.$ac_ext <<_ACEOF |
| 8683 | /* end confdefs.h. */ |
| 8684 | $ac_includes_default |
| 8685 | #include <uuid/uuid.h> |
| 8686 | _ACEOF |
| 8687 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8689 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8690 | ac_status=$? |
| 8691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8692 | rm -f conftest.er1 |
| 8693 | cat conftest.err >&5 |
| 8694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8695 | (exit $ac_status); } && |
| 8696 | { ac_try='test -z "$ac_c_werror_flag" |
| 8697 | || test ! -s conftest.err' |
| 8698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8699 | (eval $ac_try) 2>&5 |
| 8700 | ac_status=$? |
| 8701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8702 | (exit $ac_status); }; } && |
| 8703 | { ac_try='test -s conftest.$ac_objext' |
| 8704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8705 | (eval $ac_try) 2>&5 |
| 8706 | ac_status=$? |
| 8707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8708 | (exit $ac_status); }; }; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8709 | ac_header_compiler=yes |
| 8710 | else |
| 8711 | echo "$as_me: failed program was:" >&5 |
| 8712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8713 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8714 | ac_header_compiler=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8715 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8717 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8718 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8719 | |
| 8720 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8721 | echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 |
| 8722 | echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8723 | cat >conftest.$ac_ext <<_ACEOF |
| 8724 | /* confdefs.h. */ |
| 8725 | _ACEOF |
| 8726 | cat confdefs.h >>conftest.$ac_ext |
| 8727 | cat >>conftest.$ac_ext <<_ACEOF |
| 8728 | /* end confdefs.h. */ |
| 8729 | #include <uuid/uuid.h> |
| 8730 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8731 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8732 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8733 | ac_status=$? |
| 8734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8735 | rm -f conftest.er1 |
| 8736 | cat conftest.err >&5 |
| 8737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8738 | (exit $ac_status); } >/dev/null; then |
| 8739 | if test -s conftest.err; then |
| 8740 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8741 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8742 | else |
| 8743 | ac_cpp_err= |
| 8744 | fi |
| 8745 | else |
| 8746 | ac_cpp_err=yes |
| 8747 | fi |
| 8748 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8749 | ac_header_preproc=yes |
| 8750 | else |
| 8751 | echo "$as_me: failed program was:" >&5 |
| 8752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8753 | |
| 8754 | ac_header_preproc=no |
| 8755 | fi |
| 8756 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8757 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8758 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8759 | |
| 8760 | # So? What about this header? |
| 8761 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8762 | yes:no: ) |
| 8763 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8764 | echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8765 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5 |
| 8766 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;} |
| 8767 | ac_header_preproc=yes |
| 8768 | ;; |
| 8769 | no:yes:* ) |
| 8770 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5 |
| 8771 | echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;} |
| 8772 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5 |
| 8773 | echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;} |
| 8774 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5 |
| 8775 | echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;} |
| 8776 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8777 | echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8778 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5 |
| 8779 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;} |
| 8780 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5 |
| 8781 | echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8782 | ( |
| 8783 | cat <<\_ASBOX |
| 8784 | ## ------------------------------------ ## |
| 8785 | ## Report this to the pjproject lists. ## |
| 8786 | ## ------------------------------------ ## |
| 8787 | _ASBOX |
| 8788 | ) | |
| 8789 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8790 | ;; |
| 8791 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8792 | echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 8793 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8794 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 8795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8796 | else |
| 8797 | ac_cv_header_uuid_uuid_h=$ac_header_preproc |
| 8798 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8799 | echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 8800 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8801 | |
| 8802 | fi |
| 8803 | if test $ac_cv_header_uuid_uuid_h = yes; then |
| 8804 | ac_has_uuid_h=1 |
| 8805 | fi |
| 8806 | |
| 8807 | |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8808 | echo "$as_me:$LINENO: checking for net/if.h" >&5 |
| 8809 | echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6 |
| 8810 | if test "${ac_cv_header_net_if_h+set}" = set; then |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 8811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8812 | else |
| 8813 | cat >conftest.$ac_ext <<_ACEOF |
| 8814 | /* confdefs.h. */ |
| 8815 | _ACEOF |
| 8816 | cat confdefs.h >>conftest.$ac_ext |
| 8817 | cat >>conftest.$ac_ext <<_ACEOF |
| 8818 | /* end confdefs.h. */ |
| 8819 | #if PJ_HAS_SYS_SOCKET_H |
| 8820 | # include <sys/socket.h> |
| 8821 | #endif |
| 8822 | |
| 8823 | |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8824 | #include <net/if.h> |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 8825 | _ACEOF |
| 8826 | rm -f conftest.$ac_objext |
| 8827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8828 | (eval $ac_compile) 2>conftest.er1 |
| 8829 | ac_status=$? |
| 8830 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8831 | rm -f conftest.er1 |
| 8832 | cat conftest.err >&5 |
| 8833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8834 | (exit $ac_status); } && |
| 8835 | { ac_try='test -z "$ac_c_werror_flag" |
| 8836 | || test ! -s conftest.err' |
| 8837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8838 | (eval $ac_try) 2>&5 |
| 8839 | ac_status=$? |
| 8840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8841 | (exit $ac_status); }; } && |
| 8842 | { ac_try='test -s conftest.$ac_objext' |
| 8843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8844 | (eval $ac_try) 2>&5 |
| 8845 | ac_status=$? |
| 8846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8847 | (exit $ac_status); }; }; then |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8848 | ac_cv_header_net_if_h=yes |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 8849 | else |
| 8850 | echo "$as_me: failed program was:" >&5 |
| 8851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8852 | |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8853 | ac_cv_header_net_if_h=no |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 8854 | fi |
| 8855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8856 | fi |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8857 | echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 |
| 8858 | echo "${ECHO_T}$ac_cv_header_net_if_h" >&6 |
| 8859 | if test $ac_cv_header_net_if_h = yes; then |
| 8860 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 8861 | #define PJ_HAS_NET_IF_H 1 |
| 8862 | _ACEOF |
| 8863 | |
| 8864 | fi |
| 8865 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 8866 | |
| 8867 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8868 | echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 |
| 8869 | echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8870 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8871 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8872 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8873 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8874 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8875 | echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
| 8876 | echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8877 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8878 | #define PJ_HAS_ERRNO_VAR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8879 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8880 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8881 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8882 | echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
| 8883 | echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8884 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8885 | #define PJ_HAS_HIGH_RES_TIMER 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8886 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8887 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8888 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8889 | echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5 |
| 8890 | echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8891 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8892 | #define PJ_HAS_MALLOC 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8893 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8894 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8895 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8896 | echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
| 8897 | echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8898 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8899 | #define PJ_NATIVE_STRING_IS_UNICODE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8900 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8901 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8902 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8903 | echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
| 8904 | echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8905 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8906 | #define PJ_ATOMIC_VALUE_TYPE long |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8907 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8908 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8909 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8910 | echo "$as_me:$LINENO: checking if inet_aton() is available" >&5 |
| 8911 | echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8912 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8913 | /* confdefs.h. */ |
| 8914 | _ACEOF |
| 8915 | cat confdefs.h >>conftest.$ac_ext |
| 8916 | cat >>conftest.$ac_ext <<_ACEOF |
| 8917 | /* end confdefs.h. */ |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8918 | #include <sys/types.h> |
| 8919 | #include <sys/socket.h> |
| 8920 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8921 | int |
| 8922 | main () |
| 8923 | { |
| 8924 | inet_aton(0, 0); |
| 8925 | ; |
| 8926 | return 0; |
| 8927 | } |
| 8928 | _ACEOF |
| 8929 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8931 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8932 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8934 | rm -f conftest.er1 |
| 8935 | cat conftest.err >&5 |
| 8936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8937 | (exit $ac_status); } && |
| 8938 | { ac_try='test -z "$ac_c_werror_flag" |
| 8939 | || test ! -s conftest.err' |
| 8940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8941 | (eval $ac_try) 2>&5 |
| 8942 | ac_status=$? |
| 8943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8944 | (exit $ac_status); }; } && |
| 8945 | { ac_try='test -s conftest.$ac_objext' |
| 8946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8947 | (eval $ac_try) 2>&5 |
| 8948 | ac_status=$? |
| 8949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8950 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8951 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8952 | #define PJ_SOCK_HAS_INET_ATON 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8953 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8954 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8955 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8956 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8957 | else |
| 8958 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8960 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8961 | echo "$as_me:$LINENO: result: no" >&5 |
| 8962 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8963 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8965 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8966 | echo "$as_me:$LINENO: checking if inet_pton() is available" >&5 |
| 8967 | echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8968 | cat >conftest.$ac_ext <<_ACEOF |
| 8969 | /* confdefs.h. */ |
| 8970 | _ACEOF |
| 8971 | cat confdefs.h >>conftest.$ac_ext |
| 8972 | cat >>conftest.$ac_ext <<_ACEOF |
| 8973 | /* end confdefs.h. */ |
| 8974 | #include <sys/types.h> |
| 8975 | #include <sys/socket.h> |
| 8976 | #include <arpa/inet.h> |
| 8977 | int |
| 8978 | main () |
| 8979 | { |
| 8980 | inet_pton(0, 0, 0); |
| 8981 | ; |
| 8982 | return 0; |
| 8983 | } |
| 8984 | _ACEOF |
| 8985 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8987 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8988 | ac_status=$? |
| 8989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8990 | rm -f conftest.er1 |
| 8991 | cat conftest.err >&5 |
| 8992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8993 | (exit $ac_status); } && |
| 8994 | { ac_try='test -z "$ac_c_werror_flag" |
| 8995 | || test ! -s conftest.err' |
| 8996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8997 | (eval $ac_try) 2>&5 |
| 8998 | ac_status=$? |
| 8999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9000 | (exit $ac_status); }; } && |
| 9001 | { ac_try='test -s conftest.$ac_objext' |
| 9002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9003 | (eval $ac_try) 2>&5 |
| 9004 | ac_status=$? |
| 9005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9006 | (exit $ac_status); }; }; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9007 | cat >>confdefs.h <<\_ACEOF |
| 9008 | #define PJ_SOCK_HAS_INET_PTON 1 |
| 9009 | _ACEOF |
| 9010 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9011 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9012 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9013 | else |
| 9014 | echo "$as_me: failed program was:" >&5 |
| 9015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9016 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9017 | echo "$as_me:$LINENO: result: no" >&5 |
| 9018 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9019 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9021 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9022 | echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5 |
| 9023 | echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9024 | cat >conftest.$ac_ext <<_ACEOF |
| 9025 | /* confdefs.h. */ |
| 9026 | _ACEOF |
| 9027 | cat confdefs.h >>conftest.$ac_ext |
| 9028 | cat >>conftest.$ac_ext <<_ACEOF |
| 9029 | /* end confdefs.h. */ |
| 9030 | #include <sys/types.h> |
| 9031 | #include <sys/socket.h> |
| 9032 | #include <arpa/inet.h> |
| 9033 | int |
| 9034 | main () |
| 9035 | { |
| 9036 | inet_ntop(0, 0, 0, 0); |
| 9037 | ; |
| 9038 | return 0; |
| 9039 | } |
| 9040 | _ACEOF |
| 9041 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9043 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9044 | ac_status=$? |
| 9045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9046 | rm -f conftest.er1 |
| 9047 | cat conftest.err >&5 |
| 9048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9049 | (exit $ac_status); } && |
| 9050 | { ac_try='test -z "$ac_c_werror_flag" |
| 9051 | || test ! -s conftest.err' |
| 9052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9053 | (eval $ac_try) 2>&5 |
| 9054 | ac_status=$? |
| 9055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9056 | (exit $ac_status); }; } && |
| 9057 | { ac_try='test -s conftest.$ac_objext' |
| 9058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9059 | (eval $ac_try) 2>&5 |
| 9060 | ac_status=$? |
| 9061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9062 | (exit $ac_status); }; }; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9063 | cat >>confdefs.h <<\_ACEOF |
| 9064 | #define PJ_SOCK_HAS_INET_NTOP 1 |
| 9065 | _ACEOF |
| 9066 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9067 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9068 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9069 | else |
| 9070 | echo "$as_me: failed program was:" >&5 |
| 9071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9072 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9073 | echo "$as_me:$LINENO: result: no" >&5 |
| 9074 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9075 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9077 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9078 | echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5 |
| 9079 | echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9080 | cat >conftest.$ac_ext <<_ACEOF |
| 9081 | /* confdefs.h. */ |
| 9082 | _ACEOF |
| 9083 | cat confdefs.h >>conftest.$ac_ext |
| 9084 | cat >>conftest.$ac_ext <<_ACEOF |
| 9085 | /* end confdefs.h. */ |
| 9086 | #include <sys/types.h> |
| 9087 | #include <sys/socket.h> |
| 9088 | #include <netdb.h> |
| 9089 | int |
| 9090 | main () |
| 9091 | { |
| 9092 | getaddrinfo(0, 0, 0, 0); |
| 9093 | ; |
| 9094 | return 0; |
| 9095 | } |
| 9096 | _ACEOF |
| 9097 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9099 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9100 | ac_status=$? |
| 9101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9102 | rm -f conftest.er1 |
| 9103 | cat conftest.err >&5 |
| 9104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9105 | (exit $ac_status); } && |
| 9106 | { ac_try='test -z "$ac_c_werror_flag" |
| 9107 | || test ! -s conftest.err' |
| 9108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9109 | (eval $ac_try) 2>&5 |
| 9110 | ac_status=$? |
| 9111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9112 | (exit $ac_status); }; } && |
| 9113 | { ac_try='test -s conftest.$ac_objext' |
| 9114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9115 | (eval $ac_try) 2>&5 |
| 9116 | ac_status=$? |
| 9117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9118 | (exit $ac_status); }; }; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9119 | cat >>confdefs.h <<\_ACEOF |
| 9120 | #define PJ_SOCK_HAS_GETADDRINFO 1 |
| 9121 | _ACEOF |
| 9122 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9123 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9124 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9125 | else |
| 9126 | echo "$as_me: failed program was:" >&5 |
| 9127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9128 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9129 | echo "$as_me:$LINENO: result: no" >&5 |
| 9130 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9131 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9133 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9134 | echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5 |
| 9135 | echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9136 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9137 | /* confdefs.h. */ |
| 9138 | _ACEOF |
| 9139 | cat confdefs.h >>conftest.$ac_ext |
| 9140 | cat >>conftest.$ac_ext <<_ACEOF |
| 9141 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9142 | #include <sys/types.h> |
| 9143 | #include <sys/socket.h> |
| 9144 | #include <netinet/in.h> |
| 9145 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9146 | int |
| 9147 | main () |
| 9148 | { |
| 9149 | struct sockaddr_in a; a.sin_len=0; |
| 9150 | ; |
| 9151 | return 0; |
| 9152 | } |
| 9153 | _ACEOF |
| 9154 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9156 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9157 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9159 | rm -f conftest.er1 |
| 9160 | cat conftest.err >&5 |
| 9161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9162 | (exit $ac_status); } && |
| 9163 | { ac_try='test -z "$ac_c_werror_flag" |
| 9164 | || test ! -s conftest.err' |
| 9165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9166 | (eval $ac_try) 2>&5 |
| 9167 | ac_status=$? |
| 9168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9169 | (exit $ac_status); }; } && |
| 9170 | { ac_try='test -s conftest.$ac_objext' |
| 9171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9172 | (eval $ac_try) 2>&5 |
| 9173 | ac_status=$? |
| 9174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9175 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9176 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9177 | #define PJ_SOCKADDR_HAS_LEN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9178 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9179 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9180 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9181 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9182 | else |
| 9183 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9185 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9186 | echo "$as_me:$LINENO: result: no" >&5 |
| 9187 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9188 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9190 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9191 | echo "$as_me:$LINENO: checking if socklen_t is available" >&5 |
| 9192 | echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9193 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9194 | /* confdefs.h. */ |
| 9195 | _ACEOF |
| 9196 | cat confdefs.h >>conftest.$ac_ext |
| 9197 | cat >>conftest.$ac_ext <<_ACEOF |
| 9198 | /* end confdefs.h. */ |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9199 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9200 | int |
| 9201 | main () |
| 9202 | { |
| 9203 | socklen_t xxx = 0; |
| 9204 | ; |
| 9205 | return 0; |
| 9206 | } |
| 9207 | _ACEOF |
| 9208 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9210 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9211 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9213 | rm -f conftest.er1 |
| 9214 | cat conftest.err >&5 |
| 9215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9216 | (exit $ac_status); } && |
| 9217 | { ac_try='test -z "$ac_c_werror_flag" |
| 9218 | || test ! -s conftest.err' |
| 9219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9220 | (eval $ac_try) 2>&5 |
| 9221 | ac_status=$? |
| 9222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9223 | (exit $ac_status); }; } && |
| 9224 | { ac_try='test -s conftest.$ac_objext' |
| 9225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9226 | (eval $ac_try) 2>&5 |
| 9227 | ac_status=$? |
| 9228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9229 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9230 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9231 | #define PJ_HAS_SOCKLEN_T 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9232 | _ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9233 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9234 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9235 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9236 | else |
| 9237 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9239 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9240 | echo "$as_me:$LINENO: result: no" >&5 |
| 9241 | echo "${ECHO_T}no" >&6 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9242 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9244 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9245 | echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5 |
| 9246 | echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9247 | case $target in |
| 9248 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9249 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9250 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9251 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9252 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9253 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9254 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9255 | ;; |
| 9256 | *) |
| 9257 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9258 | /* confdefs.h. */ |
| 9259 | _ACEOF |
| 9260 | cat confdefs.h >>conftest.$ac_ext |
| 9261 | cat >>conftest.$ac_ext <<_ACEOF |
| 9262 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9263 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9264 | #include <sys/socket.h> |
| 9265 | #include <netinet/in.h> |
| 9266 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9267 | int |
| 9268 | main () |
| 9269 | { |
| 9270 | int i=SO_ERROR; |
| 9271 | ; |
| 9272 | return 0; |
| 9273 | } |
| 9274 | _ACEOF |
| 9275 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9277 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9278 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9280 | rm -f conftest.er1 |
| 9281 | cat conftest.err >&5 |
| 9282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9283 | (exit $ac_status); } && |
| 9284 | { ac_try='test -z "$ac_c_werror_flag" |
| 9285 | || test ! -s conftest.err' |
| 9286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9287 | (eval $ac_try) 2>&5 |
| 9288 | ac_status=$? |
| 9289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9290 | (exit $ac_status); }; } && |
| 9291 | { ac_try='test -s conftest.$ac_objext' |
| 9292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9293 | (eval $ac_try) 2>&5 |
| 9294 | ac_status=$? |
| 9295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9296 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9297 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9298 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9299 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9300 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9301 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9302 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9303 | else |
| 9304 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9306 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9307 | echo "$as_me:$LINENO: result: no" >&5 |
| 9308 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9309 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9311 | ;; |
| 9312 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9313 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9314 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9315 | echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5 |
| 9316 | echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9317 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9318 | /* confdefs.h. */ |
| 9319 | _ACEOF |
| 9320 | cat confdefs.h >>conftest.$ac_ext |
| 9321 | cat >>conftest.$ac_ext <<_ACEOF |
| 9322 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9323 | #include <pthread.h> |
| 9324 | int |
| 9325 | main () |
| 9326 | { |
| 9327 | pthread_rwlock_t *x; |
| 9328 | ; |
| 9329 | return 0; |
| 9330 | } |
| 9331 | _ACEOF |
| 9332 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9334 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9335 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9337 | rm -f conftest.er1 |
| 9338 | cat conftest.err >&5 |
| 9339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9340 | (exit $ac_status); } && |
| 9341 | { ac_try='test -z "$ac_c_werror_flag" |
| 9342 | || test ! -s conftest.err' |
| 9343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9344 | (eval $ac_try) 2>&5 |
| 9345 | ac_status=$? |
| 9346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9347 | (exit $ac_status); }; } && |
| 9348 | { ac_try='test -s conftest.$ac_objext' |
| 9349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9350 | (eval $ac_try) 2>&5 |
| 9351 | ac_status=$? |
| 9352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9353 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9354 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9355 | #define PJ_EMULATE_RWMUTEX 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9356 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9357 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9358 | ac_rwmutex="yes" |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9359 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9360 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9361 | else |
| 9362 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9363 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9364 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9365 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9366 | #define PJ_EMULATE_RWMUTEX 1 |
| 9367 | _ACEOF |
| 9368 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9369 | ac_rwmutex="no" |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9370 | echo "$as_me:$LINENO: result: no" >&5 |
| 9371 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9372 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9374 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9375 | if test "$ac_rwmutex" = "no"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9376 | echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 |
| 9377 | echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9378 | cat >conftest.$ac_ext <<_ACEOF |
| 9379 | /* confdefs.h. */ |
| 9380 | _ACEOF |
| 9381 | cat confdefs.h >>conftest.$ac_ext |
| 9382 | cat >>conftest.$ac_ext <<_ACEOF |
| 9383 | /* end confdefs.h. */ |
| 9384 | #define _POSIX_READER_WRITER_LOCKS |
| 9385 | #include <pthread.h> |
| 9386 | int |
| 9387 | main () |
| 9388 | { |
| 9389 | pthread_rwlock_t *x; |
| 9390 | ; |
| 9391 | return 0; |
| 9392 | } |
| 9393 | _ACEOF |
| 9394 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9396 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9397 | ac_status=$? |
| 9398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9399 | rm -f conftest.er1 |
| 9400 | cat conftest.err >&5 |
| 9401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9402 | (exit $ac_status); } && |
| 9403 | { ac_try='test -z "$ac_c_werror_flag" |
| 9404 | || test ! -s conftest.err' |
| 9405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9406 | (eval $ac_try) 2>&5 |
| 9407 | ac_status=$? |
| 9408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9409 | (exit $ac_status); }; } && |
| 9410 | { ac_try='test -s conftest.$ac_objext' |
| 9411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9412 | (eval $ac_try) 2>&5 |
| 9413 | ac_status=$? |
| 9414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9415 | (exit $ac_status); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9416 | cat >>confdefs.h <<\_ACEOF |
| 9417 | #define PJ_EMULATE_RWMUTEX 0 |
| 9418 | _ACEOF |
| 9419 | |
| 9420 | CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9421 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9422 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9423 | else |
| 9424 | echo "$as_me: failed program was:" >&5 |
| 9425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9426 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9427 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9428 | #define PJ_EMULATE_RWMUTEX 1 |
| 9429 | _ACEOF |
| 9430 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9431 | echo "$as_me:$LINENO: result: no" >&5 |
| 9432 | echo "${ECHO_T}no" >&6 |
| 9433 | fi |
| 9434 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9435 | fi |
| 9436 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9437 | echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5 |
| 9438 | echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9439 | cat >conftest.$ac_ext <<_ACEOF |
| 9440 | /* confdefs.h. */ |
| 9441 | _ACEOF |
| 9442 | cat confdefs.h >>conftest.$ac_ext |
| 9443 | cat >>conftest.$ac_ext <<_ACEOF |
| 9444 | /* end confdefs.h. */ |
| 9445 | #include <pthread.h> |
| 9446 | int |
| 9447 | main () |
| 9448 | { |
| 9449 | pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP); |
| 9450 | ; |
| 9451 | return 0; |
| 9452 | } |
| 9453 | _ACEOF |
| 9454 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9456 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9457 | ac_status=$? |
| 9458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9459 | rm -f conftest.er1 |
| 9460 | cat conftest.err >&5 |
| 9461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9462 | (exit $ac_status); } && |
| 9463 | { ac_try='test -z "$ac_c_werror_flag" |
| 9464 | || test ! -s conftest.err' |
| 9465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9466 | (eval $ac_try) 2>&5 |
| 9467 | ac_status=$? |
| 9468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9469 | (exit $ac_status); }; } && |
| 9470 | { ac_try='test -s conftest.$ac_objext' |
| 9471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9472 | (eval $ac_try) 2>&5 |
| 9473 | ac_status=$? |
| 9474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9475 | (exit $ac_status); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9476 | cat >>confdefs.h <<\_ACEOF |
| 9477 | #define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1 |
| 9478 | _ACEOF |
| 9479 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9480 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9481 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9482 | else |
| 9483 | echo "$as_me: failed program was:" >&5 |
| 9484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9485 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9486 | echo "$as_me:$LINENO: result: no" >&5 |
| 9487 | echo "${ECHO_T}no" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9488 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9490 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9491 | echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5 |
| 9492 | echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9493 | cat >conftest.$ac_ext <<_ACEOF |
| 9494 | /* confdefs.h. */ |
| 9495 | _ACEOF |
| 9496 | cat confdefs.h >>conftest.$ac_ext |
| 9497 | cat >>conftest.$ac_ext <<_ACEOF |
| 9498 | /* end confdefs.h. */ |
| 9499 | #include <pthread.h> |
| 9500 | int |
| 9501 | main () |
| 9502 | { |
| 9503 | pthread_mutexattr_t attr; |
| 9504 | attr.recursive=1; |
| 9505 | ; |
| 9506 | return 0; |
| 9507 | } |
| 9508 | _ACEOF |
| 9509 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9511 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9512 | ac_status=$? |
| 9513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9514 | rm -f conftest.er1 |
| 9515 | cat conftest.err >&5 |
| 9516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9517 | (exit $ac_status); } && |
| 9518 | { ac_try='test -z "$ac_c_werror_flag" |
| 9519 | || test ! -s conftest.err' |
| 9520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9521 | (eval $ac_try) 2>&5 |
| 9522 | ac_status=$? |
| 9523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9524 | (exit $ac_status); }; } && |
| 9525 | { ac_try='test -s conftest.$ac_objext' |
| 9526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9527 | (eval $ac_try) 2>&5 |
| 9528 | ac_status=$? |
| 9529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9530 | (exit $ac_status); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9531 | cat >>confdefs.h <<\_ACEOF |
| 9532 | #define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1 |
| 9533 | _ACEOF |
| 9534 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9535 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9536 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9537 | else |
| 9538 | echo "$as_me: failed program was:" >&5 |
| 9539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9540 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9541 | echo "$as_me:$LINENO: result: no" >&5 |
| 9542 | echo "${ECHO_T}no" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9543 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9545 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9546 | |
| 9547 | case $target in |
| 9548 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | ad086e0 | 2007-02-16 10:58:18 +0000 | [diff] [blame] | 9549 | ac_os_objs="file_access_win32.o file_io_win32.o os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o ioqueue_select.o" |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9550 | ;; |
| 9551 | *) |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9552 | ac_os_objs="file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o ioqueue_select.o" |
| 9553 | # UUID |
| 9554 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 9555 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 9556 | else |
| 9557 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 9558 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9559 | ;; |
| 9560 | esac |
| 9561 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9562 | |
| 9563 | |
| 9564 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9565 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9566 | # Check whether --enable-sound or --disable-sound was given. |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9567 | if test "${enable_sound+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9568 | enableval="$enable_sound" |
| 9569 | if test "$enable_sound" = "no"; then |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9570 | ac_pjmedia_snd=null |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9571 | echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5 |
| 9572 | echo "${ECHO_T}Checking if sound is disabled... yes" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9573 | fi |
| 9574 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9575 | fi; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9576 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9577 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9578 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9579 | echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 9580 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9581 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 9582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9583 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9584 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 9585 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9586 | else |
| 9587 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9588 | echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5 |
| 9589 | echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9590 | cat >conftest.$ac_ext <<_ACEOF |
| 9591 | /* confdefs.h. */ |
| 9592 | _ACEOF |
| 9593 | cat confdefs.h >>conftest.$ac_ext |
| 9594 | cat >>conftest.$ac_ext <<_ACEOF |
| 9595 | /* end confdefs.h. */ |
| 9596 | $ac_includes_default |
| 9597 | #include <sys/soundcard.h> |
| 9598 | _ACEOF |
| 9599 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9601 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9602 | ac_status=$? |
| 9603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9604 | rm -f conftest.er1 |
| 9605 | cat conftest.err >&5 |
| 9606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9607 | (exit $ac_status); } && |
| 9608 | { ac_try='test -z "$ac_c_werror_flag" |
| 9609 | || test ! -s conftest.err' |
| 9610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9611 | (eval $ac_try) 2>&5 |
| 9612 | ac_status=$? |
| 9613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9614 | (exit $ac_status); }; } && |
| 9615 | { ac_try='test -s conftest.$ac_objext' |
| 9616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9617 | (eval $ac_try) 2>&5 |
| 9618 | ac_status=$? |
| 9619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9620 | (exit $ac_status); }; }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9621 | ac_header_compiler=yes |
| 9622 | else |
| 9623 | echo "$as_me: failed program was:" >&5 |
| 9624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9625 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9626 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9627 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9629 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9630 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9631 | |
| 9632 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9633 | echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5 |
| 9634 | echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9635 | cat >conftest.$ac_ext <<_ACEOF |
| 9636 | /* confdefs.h. */ |
| 9637 | _ACEOF |
| 9638 | cat confdefs.h >>conftest.$ac_ext |
| 9639 | cat >>conftest.$ac_ext <<_ACEOF |
| 9640 | /* end confdefs.h. */ |
| 9641 | #include <sys/soundcard.h> |
| 9642 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9643 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9644 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9645 | ac_status=$? |
| 9646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9647 | rm -f conftest.er1 |
| 9648 | cat conftest.err >&5 |
| 9649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9650 | (exit $ac_status); } >/dev/null; then |
| 9651 | if test -s conftest.err; then |
| 9652 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9653 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9654 | else |
| 9655 | ac_cpp_err= |
| 9656 | fi |
| 9657 | else |
| 9658 | ac_cpp_err=yes |
| 9659 | fi |
| 9660 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9661 | ac_header_preproc=yes |
| 9662 | else |
| 9663 | echo "$as_me: failed program was:" >&5 |
| 9664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9665 | |
| 9666 | ac_header_preproc=no |
| 9667 | fi |
| 9668 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9669 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9670 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9671 | |
| 9672 | # So? What about this header? |
| 9673 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9674 | yes:no: ) |
| 9675 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9676 | echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9677 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5 |
| 9678 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;} |
| 9679 | ac_header_preproc=yes |
| 9680 | ;; |
| 9681 | no:yes:* ) |
| 9682 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5 |
| 9683 | echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;} |
| 9684 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5 |
| 9685 | echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 9686 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5 |
| 9687 | echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;} |
| 9688 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9689 | echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9690 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 9691 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 9692 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 9693 | echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9694 | ( |
| 9695 | cat <<\_ASBOX |
| 9696 | ## ------------------------------------ ## |
| 9697 | ## Report this to the pjproject lists. ## |
| 9698 | ## ------------------------------------ ## |
| 9699 | _ASBOX |
| 9700 | ) | |
| 9701 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9702 | ;; |
| 9703 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9704 | echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 9705 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9706 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 9707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9708 | else |
| 9709 | ac_cv_header_sys_soundcard_h=$ac_header_preproc |
| 9710 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9711 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 9712 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9713 | |
| 9714 | fi |
| 9715 | if test $ac_cv_header_sys_soundcard_h = yes; then |
| 9716 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 9717 | fi |
| 9718 | |
| 9719 | |
| 9720 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9721 | echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 9722 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9723 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 9724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9725 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9726 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 9727 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9728 | else |
| 9729 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9730 | echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5 |
| 9731 | echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9732 | cat >conftest.$ac_ext <<_ACEOF |
| 9733 | /* confdefs.h. */ |
| 9734 | _ACEOF |
| 9735 | cat confdefs.h >>conftest.$ac_ext |
| 9736 | cat >>conftest.$ac_ext <<_ACEOF |
| 9737 | /* end confdefs.h. */ |
| 9738 | $ac_includes_default |
| 9739 | #include <linux/soundcard.h> |
| 9740 | _ACEOF |
| 9741 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9743 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9744 | ac_status=$? |
| 9745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9746 | rm -f conftest.er1 |
| 9747 | cat conftest.err >&5 |
| 9748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9749 | (exit $ac_status); } && |
| 9750 | { ac_try='test -z "$ac_c_werror_flag" |
| 9751 | || test ! -s conftest.err' |
| 9752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9753 | (eval $ac_try) 2>&5 |
| 9754 | ac_status=$? |
| 9755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9756 | (exit $ac_status); }; } && |
| 9757 | { ac_try='test -s conftest.$ac_objext' |
| 9758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9759 | (eval $ac_try) 2>&5 |
| 9760 | ac_status=$? |
| 9761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9762 | (exit $ac_status); }; }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9763 | ac_header_compiler=yes |
| 9764 | else |
| 9765 | echo "$as_me: failed program was:" >&5 |
| 9766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9767 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9768 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9769 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9771 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9772 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9773 | |
| 9774 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9775 | echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5 |
| 9776 | echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9777 | cat >conftest.$ac_ext <<_ACEOF |
| 9778 | /* confdefs.h. */ |
| 9779 | _ACEOF |
| 9780 | cat confdefs.h >>conftest.$ac_ext |
| 9781 | cat >>conftest.$ac_ext <<_ACEOF |
| 9782 | /* end confdefs.h. */ |
| 9783 | #include <linux/soundcard.h> |
| 9784 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9785 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9786 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9787 | ac_status=$? |
| 9788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9789 | rm -f conftest.er1 |
| 9790 | cat conftest.err >&5 |
| 9791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9792 | (exit $ac_status); } >/dev/null; then |
| 9793 | if test -s conftest.err; then |
| 9794 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9795 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9796 | else |
| 9797 | ac_cpp_err= |
| 9798 | fi |
| 9799 | else |
| 9800 | ac_cpp_err=yes |
| 9801 | fi |
| 9802 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9803 | ac_header_preproc=yes |
| 9804 | else |
| 9805 | echo "$as_me: failed program was:" >&5 |
| 9806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9807 | |
| 9808 | ac_header_preproc=no |
| 9809 | fi |
| 9810 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9811 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9812 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9813 | |
| 9814 | # So? What about this header? |
| 9815 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9816 | yes:no: ) |
| 9817 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9818 | echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9819 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5 |
| 9820 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;} |
| 9821 | ac_header_preproc=yes |
| 9822 | ;; |
| 9823 | no:yes:* ) |
| 9824 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5 |
| 9825 | echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;} |
| 9826 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5 |
| 9827 | echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 9828 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5 |
| 9829 | echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;} |
| 9830 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9831 | echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9832 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 9833 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 9834 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 9835 | echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9836 | ( |
| 9837 | cat <<\_ASBOX |
| 9838 | ## ------------------------------------ ## |
| 9839 | ## Report this to the pjproject lists. ## |
| 9840 | ## ------------------------------------ ## |
| 9841 | _ASBOX |
| 9842 | ) | |
| 9843 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9844 | ;; |
| 9845 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9846 | echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 9847 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9848 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 9849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9850 | else |
| 9851 | ac_cv_header_linux_soundcard_h=$ac_header_preproc |
| 9852 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9853 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 9854 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9855 | |
| 9856 | fi |
| 9857 | if test $ac_cv_header_linux_soundcard_h = yes; then |
| 9858 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 9859 | fi |
| 9860 | |
| 9861 | |
| 9862 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9863 | echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 9864 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9865 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 9866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9867 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9868 | echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 9869 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9870 | else |
| 9871 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9872 | echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5 |
| 9873 | echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9874 | cat >conftest.$ac_ext <<_ACEOF |
| 9875 | /* confdefs.h. */ |
| 9876 | _ACEOF |
| 9877 | cat confdefs.h >>conftest.$ac_ext |
| 9878 | cat >>conftest.$ac_ext <<_ACEOF |
| 9879 | /* end confdefs.h. */ |
| 9880 | $ac_includes_default |
| 9881 | #include <machine/soundcard.h> |
| 9882 | _ACEOF |
| 9883 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9885 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9886 | ac_status=$? |
| 9887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9888 | rm -f conftest.er1 |
| 9889 | cat conftest.err >&5 |
| 9890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9891 | (exit $ac_status); } && |
| 9892 | { ac_try='test -z "$ac_c_werror_flag" |
| 9893 | || test ! -s conftest.err' |
| 9894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9895 | (eval $ac_try) 2>&5 |
| 9896 | ac_status=$? |
| 9897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9898 | (exit $ac_status); }; } && |
| 9899 | { ac_try='test -s conftest.$ac_objext' |
| 9900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9901 | (eval $ac_try) 2>&5 |
| 9902 | ac_status=$? |
| 9903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9904 | (exit $ac_status); }; }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9905 | ac_header_compiler=yes |
| 9906 | else |
| 9907 | echo "$as_me: failed program was:" >&5 |
| 9908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9909 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9910 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9911 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9912 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9913 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9914 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9915 | |
| 9916 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9917 | echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5 |
| 9918 | echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9919 | cat >conftest.$ac_ext <<_ACEOF |
| 9920 | /* confdefs.h. */ |
| 9921 | _ACEOF |
| 9922 | cat confdefs.h >>conftest.$ac_ext |
| 9923 | cat >>conftest.$ac_ext <<_ACEOF |
| 9924 | /* end confdefs.h. */ |
| 9925 | #include <machine/soundcard.h> |
| 9926 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9927 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9928 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9929 | ac_status=$? |
| 9930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9931 | rm -f conftest.er1 |
| 9932 | cat conftest.err >&5 |
| 9933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9934 | (exit $ac_status); } >/dev/null; then |
| 9935 | if test -s conftest.err; then |
| 9936 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9937 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9938 | else |
| 9939 | ac_cpp_err= |
| 9940 | fi |
| 9941 | else |
| 9942 | ac_cpp_err=yes |
| 9943 | fi |
| 9944 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9945 | ac_header_preproc=yes |
| 9946 | else |
| 9947 | echo "$as_me: failed program was:" >&5 |
| 9948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9949 | |
| 9950 | ac_header_preproc=no |
| 9951 | fi |
| 9952 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9953 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9954 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9955 | |
| 9956 | # So? What about this header? |
| 9957 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9958 | yes:no: ) |
| 9959 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9960 | echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9961 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5 |
| 9962 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;} |
| 9963 | ac_header_preproc=yes |
| 9964 | ;; |
| 9965 | no:yes:* ) |
| 9966 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5 |
| 9967 | echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;} |
| 9968 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5 |
| 9969 | echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 9970 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5 |
| 9971 | echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;} |
| 9972 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9973 | echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9974 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 9975 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 9976 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 9977 | echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9978 | ( |
| 9979 | cat <<\_ASBOX |
| 9980 | ## ------------------------------------ ## |
| 9981 | ## Report this to the pjproject lists. ## |
| 9982 | ## ------------------------------------ ## |
| 9983 | _ASBOX |
| 9984 | ) | |
| 9985 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9986 | ;; |
| 9987 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9988 | echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 9989 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9990 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 9991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9992 | else |
| 9993 | ac_cv_header_machine_soundcard_h=$ac_header_preproc |
| 9994 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9995 | echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 9996 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9997 | |
| 9998 | fi |
| 9999 | if test $ac_cv_header_machine_soundcard_h = yes; then |
| 10000 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 10001 | fi |
| 10002 | |
| 10003 | |
| 10004 | |
Benny Prijono | 3e09167 | 2008-01-09 15:43:02 +0000 | [diff] [blame] | 10005 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 10006 | ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN" |
| 10007 | else |
| 10008 | ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN" |
| 10009 | fi |
| 10010 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10011 | if test "$enable_sound" = "no"; then |
| 10012 | true; |
| 10013 | else |
| 10014 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10015 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10016 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 10017 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10018 | #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS" |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10019 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 10020 | ac_pjmedia_snd=pa_old_darwinos |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10021 | echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5 |
| 10022 | echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6 |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10023 | else |
| 10024 | ac_pjmedia_snd=pa_darwinos |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10025 | echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5 |
| 10026 | echo "${ECHO_T}Checking sound device backend... coreaudio" >&6 |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10027 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10028 | ;; |
| 10029 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10030 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10031 | echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5 |
| 10032 | echo "${ECHO_T}Checking sound device backend... win32 sound" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10033 | ;; |
| 10034 | *rtems*) |
| 10035 | ac_pjmedia_snd=null |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10036 | echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5 |
| 10037 | echo "${ECHO_T}Checking sound device backend... null sound" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10038 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10039 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10040 | ac_pjmedia_snd=pa_unix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10041 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10042 | echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 10043 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10044 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 10045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10046 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10047 | echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 10048 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10049 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10050 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10051 | echo "$as_me:$LINENO: checking alsa/version.h usability" >&5 |
| 10052 | echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10053 | cat >conftest.$ac_ext <<_ACEOF |
| 10054 | /* confdefs.h. */ |
| 10055 | _ACEOF |
| 10056 | cat confdefs.h >>conftest.$ac_ext |
| 10057 | cat >>conftest.$ac_ext <<_ACEOF |
| 10058 | /* end confdefs.h. */ |
| 10059 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10060 | #include <alsa/version.h> |
| 10061 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10062 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10064 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10065 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10066 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10067 | rm -f conftest.er1 |
| 10068 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10070 | (exit $ac_status); } && |
| 10071 | { ac_try='test -z "$ac_c_werror_flag" |
| 10072 | || test ! -s conftest.err' |
| 10073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10074 | (eval $ac_try) 2>&5 |
| 10075 | ac_status=$? |
| 10076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10077 | (exit $ac_status); }; } && |
| 10078 | { ac_try='test -s conftest.$ac_objext' |
| 10079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10080 | (eval $ac_try) 2>&5 |
| 10081 | ac_status=$? |
| 10082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10083 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10084 | ac_header_compiler=yes |
| 10085 | else |
| 10086 | echo "$as_me: failed program was:" >&5 |
| 10087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10088 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10089 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10090 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10092 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10093 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10094 | |
| 10095 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10096 | echo "$as_me:$LINENO: checking alsa/version.h presence" >&5 |
| 10097 | echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10098 | cat >conftest.$ac_ext <<_ACEOF |
| 10099 | /* confdefs.h. */ |
| 10100 | _ACEOF |
| 10101 | cat confdefs.h >>conftest.$ac_ext |
| 10102 | cat >>conftest.$ac_ext <<_ACEOF |
| 10103 | /* end confdefs.h. */ |
| 10104 | #include <alsa/version.h> |
| 10105 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10106 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10107 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10108 | ac_status=$? |
| 10109 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10110 | rm -f conftest.er1 |
| 10111 | cat conftest.err >&5 |
| 10112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10113 | (exit $ac_status); } >/dev/null; then |
| 10114 | if test -s conftest.err; then |
| 10115 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10116 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10117 | else |
| 10118 | ac_cpp_err= |
| 10119 | fi |
| 10120 | else |
| 10121 | ac_cpp_err=yes |
| 10122 | fi |
| 10123 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10124 | ac_header_preproc=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10125 | else |
| 10126 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10128 | |
| 10129 | ac_header_preproc=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10130 | fi |
| 10131 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10132 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10133 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10134 | |
| 10135 | # So? What about this header? |
| 10136 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10137 | yes:no: ) |
| 10138 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10139 | echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10140 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5 |
| 10141 | echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;} |
| 10142 | ac_header_preproc=yes |
| 10143 | ;; |
| 10144 | no:yes:* ) |
| 10145 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5 |
| 10146 | echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;} |
| 10147 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5 |
| 10148 | echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;} |
| 10149 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5 |
| 10150 | echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;} |
| 10151 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10152 | echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10153 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5 |
| 10154 | echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;} |
| 10155 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5 |
| 10156 | echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10157 | ( |
| 10158 | cat <<\_ASBOX |
| 10159 | ## ------------------------------------ ## |
| 10160 | ## Report this to the pjproject lists. ## |
| 10161 | ## ------------------------------------ ## |
| 10162 | _ASBOX |
| 10163 | ) | |
| 10164 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10165 | ;; |
| 10166 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10167 | echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 10168 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10169 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 10170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10171 | else |
| 10172 | ac_cv_header_alsa_version_h=$ac_header_preproc |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10173 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10174 | echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 10175 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10176 | |
| 10177 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10178 | if test $ac_cv_header_alsa_version_h = yes; then |
| 10179 | ac_pa_use_alsa=1 |
| 10180 | |
| 10181 | LIBS="$LIBS -lasound" |
| 10182 | |
| 10183 | else |
| 10184 | ac_pa_use_alsa=0 |
| 10185 | |
| 10186 | fi |
| 10187 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10188 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10189 | echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5 |
| 10190 | echo "${ECHO_T}Checking sound device backend... unix" >&6 |
| 10191 | |
| 10192 | ac_pa_use_oss=1 |
| 10193 | |
| 10194 | # Check whether --enable-oss or --disable-oss was given. |
| 10195 | if test "${enable_oss+set}" = set; then |
| 10196 | enableval="$enable_oss" |
| 10197 | |
| 10198 | if test "$enable_oss" = "no"; then |
| 10199 | ac_pa_use_oss=0 |
| 10200 | echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5 |
| 10201 | echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6 |
| 10202 | fi |
| 10203 | |
| 10204 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10205 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10206 | esac |
| 10207 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10208 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10209 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10210 | # Check whether --enable-small-filter or --disable-small-filter was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10211 | if test "${enable_small_filter+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10212 | enableval="$enable_small_filter" |
| 10213 | if test "$enable_small_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10214 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10215 | echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5 |
| 10216 | echo "${ECHO_T}Checking if small filter is disabled... yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10217 | fi |
| 10218 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10219 | echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5 |
| 10220 | echo "${ECHO_T}Checking if small filter is disabled... no" >&6 |
| 10221 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10222 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10223 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10224 | # Check whether --enable-large-filter or --disable-large-filter was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10225 | if test "${enable_large_filter+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10226 | enableval="$enable_large_filter" |
| 10227 | if test "$enable_large_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10228 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10229 | echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5 |
| 10230 | echo "${ECHO_T}Checking if large filter is disabled... yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10231 | fi |
| 10232 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10233 | echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5 |
| 10234 | echo "${ECHO_T}Checking if large filter is disabled... no" >&6 |
| 10235 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10236 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10237 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10238 | # Check whether --enable-speex-aec or --disable-speex-aec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10239 | if test "${enable_speex_aec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10240 | enableval="$enable_speex_aec" |
| 10241 | if test "$enable_speex_aec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10242 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10243 | echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5 |
| 10244 | echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10245 | fi |
| 10246 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10247 | echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5 |
| 10248 | echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6 |
| 10249 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10250 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10251 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10252 | # Check whether --enable-g711-codec or --disable-g711-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10253 | if test "${enable_g711_codec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10254 | enableval="$enable_g711_codec" |
| 10255 | if test "$enable_g711_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10256 | ac_no_g711_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10257 | cat >>confdefs.h <<\_ACEOF |
| 10258 | #define PJMEDIA_HAS_G711_CODEC 0 |
| 10259 | _ACEOF |
| 10260 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10261 | echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5 |
| 10262 | echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10263 | fi |
| 10264 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10265 | echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5 |
| 10266 | echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6 |
| 10267 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10268 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10269 | |
| 10270 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10271 | # Check whether --enable-l16-codec or --disable-l16-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10272 | if test "${enable_l16_codec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10273 | enableval="$enable_l16_codec" |
| 10274 | if test "$enable_l16_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10275 | ac_no_l16_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10276 | cat >>confdefs.h <<\_ACEOF |
| 10277 | #define PJMEDIA_HAS_L16_CODEC 0 |
| 10278 | _ACEOF |
| 10279 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10280 | echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5 |
| 10281 | echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10282 | fi |
| 10283 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10284 | echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5 |
| 10285 | echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6 |
| 10286 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10287 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10288 | |
| 10289 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10290 | # Check whether --enable-gsm-codec or --disable-gsm-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10291 | if test "${enable_gsm_codec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10292 | enableval="$enable_gsm_codec" |
| 10293 | if test "$enable_gsm_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10294 | ac_no_gsm_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10295 | cat >>confdefs.h <<\_ACEOF |
| 10296 | #define PJMEDIA_HAS_GSM_CODEC 0 |
| 10297 | _ACEOF |
| 10298 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10299 | echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5 |
| 10300 | echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10301 | fi |
| 10302 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10303 | echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5 |
| 10304 | echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6 |
| 10305 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10306 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10307 | |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 10308 | # Check whether --enable-g722-codec or --disable-g722-codec was given. |
| 10309 | if test "${enable_g722_codec+set}" = set; then |
| 10310 | enableval="$enable_g722_codec" |
| 10311 | if test "$enable_g722_codec" = "no"; then |
| 10312 | ac_no_g722_codec=1 |
| 10313 | cat >>confdefs.h <<\_ACEOF |
| 10314 | #define PJMEDIA_HAS_G722_CODEC 0 |
| 10315 | _ACEOF |
| 10316 | |
| 10317 | echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5 |
| 10318 | echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6 |
| 10319 | fi |
| 10320 | else |
| 10321 | echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5 |
| 10322 | echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6 |
| 10323 | fi; |
| 10324 | |
| 10325 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10326 | # Check whether --enable-speex-codec or --disable-speex-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10327 | if test "${enable_speex_codec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10328 | enableval="$enable_speex_codec" |
| 10329 | if test "$enable_speex_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10330 | ac_no_speex_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10331 | cat >>confdefs.h <<\_ACEOF |
| 10332 | #define PJMEDIA_HAS_SPEEX_CODEC 0 |
| 10333 | _ACEOF |
| 10334 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10335 | echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5 |
| 10336 | echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10337 | fi |
| 10338 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10339 | echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5 |
| 10340 | echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6 |
| 10341 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10342 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10343 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10344 | # Check whether --enable-ilbc-codec or --disable-ilbc-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10345 | if test "${enable_ilbc_codec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10346 | enableval="$enable_ilbc_codec" |
| 10347 | if test "$enable_ilbc_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10348 | ac_no_ilbc_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10349 | cat >>confdefs.h <<\_ACEOF |
| 10350 | #define PJMEDIA_HAS_ILBC_CODEC 0 |
| 10351 | _ACEOF |
| 10352 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10353 | echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5 |
| 10354 | echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10355 | fi |
| 10356 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10357 | echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5 |
| 10358 | echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6 |
| 10359 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10360 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10361 | # Check whether --enable-libsamplerate or --disable-libsamplerate was given. |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10362 | if test "${enable_libsamplerate+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10363 | enableval="$enable_libsamplerate" |
| 10364 | |
| 10365 | echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5 |
| 10366 | echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10367 | if test "${ac_cv_lib_samplerate_src_new+set}" = set; then |
| 10368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10369 | else |
| 10370 | ac_check_lib_save_LIBS=$LIBS |
| 10371 | LIBS="-lsamplerate $LIBS" |
| 10372 | cat >conftest.$ac_ext <<_ACEOF |
| 10373 | /* confdefs.h. */ |
| 10374 | _ACEOF |
| 10375 | cat confdefs.h >>conftest.$ac_ext |
| 10376 | cat >>conftest.$ac_ext <<_ACEOF |
| 10377 | /* end confdefs.h. */ |
| 10378 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10379 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10380 | #ifdef __cplusplus |
| 10381 | extern "C" |
| 10382 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10383 | /* We use char because int might match the return type of a gcc2 |
| 10384 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10385 | char src_new (); |
| 10386 | int |
| 10387 | main () |
| 10388 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10389 | src_new (); |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10390 | ; |
| 10391 | return 0; |
| 10392 | } |
| 10393 | _ACEOF |
| 10394 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10396 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10397 | ac_status=$? |
| 10398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10399 | rm -f conftest.er1 |
| 10400 | cat conftest.err >&5 |
| 10401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10402 | (exit $ac_status); } && |
| 10403 | { ac_try='test -z "$ac_c_werror_flag" |
| 10404 | || test ! -s conftest.err' |
| 10405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10406 | (eval $ac_try) 2>&5 |
| 10407 | ac_status=$? |
| 10408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10409 | (exit $ac_status); }; } && |
| 10410 | { ac_try='test -s conftest$ac_exeext' |
| 10411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10412 | (eval $ac_try) 2>&5 |
| 10413 | ac_status=$? |
| 10414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10415 | (exit $ac_status); }; }; then |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10416 | ac_cv_lib_samplerate_src_new=yes |
| 10417 | else |
| 10418 | echo "$as_me: failed program was:" >&5 |
| 10419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10420 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10421 | ac_cv_lib_samplerate_src_new=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10422 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10423 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10424 | conftest$ac_exeext conftest.$ac_ext |
| 10425 | LIBS=$ac_check_lib_save_LIBS |
| 10426 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10427 | echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5 |
| 10428 | echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10429 | if test $ac_cv_lib_samplerate_src_new = yes; then |
| 10430 | cat >>confdefs.h <<_ACEOF |
| 10431 | #define HAVE_LIBSAMPLERATE 1 |
| 10432 | _ACEOF |
| 10433 | |
| 10434 | LIBS="-lsamplerate $LIBS" |
| 10435 | |
| 10436 | fi |
| 10437 | |
| 10438 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10439 | echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5 |
| 10440 | echo "${ECHO_T}Skipping libsamplerate detection" >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10441 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10442 | fi; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10443 | |
| 10444 | |
| 10445 | |
| 10446 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10447 | # Check whether --enable-ssl or --disable-ssl was given. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10448 | if test "${enable_ssl+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10449 | enableval="$enable_ssl" |
| 10450 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10451 | if test "$enable_ssl" = "no"; then |
| 10452 | ac_no_ssl=1 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10453 | echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5 |
| 10454 | echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10455 | fi |
| 10456 | |
| 10457 | else |
| 10458 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10459 | echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5 |
| 10460 | echo "${ECHO_T}checking for OpenSSL installations.." >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10461 | |
| 10462 | |
| 10463 | |
| 10464 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10465 | echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 10466 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10467 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 10468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10469 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10470 | echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 10471 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10472 | else |
| 10473 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10474 | echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 |
| 10475 | echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10476 | cat >conftest.$ac_ext <<_ACEOF |
| 10477 | /* confdefs.h. */ |
| 10478 | _ACEOF |
| 10479 | cat confdefs.h >>conftest.$ac_ext |
| 10480 | cat >>conftest.$ac_ext <<_ACEOF |
| 10481 | /* end confdefs.h. */ |
| 10482 | $ac_includes_default |
| 10483 | #include <openssl/ssl.h> |
| 10484 | _ACEOF |
| 10485 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10487 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10488 | ac_status=$? |
| 10489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10490 | rm -f conftest.er1 |
| 10491 | cat conftest.err >&5 |
| 10492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10493 | (exit $ac_status); } && |
| 10494 | { ac_try='test -z "$ac_c_werror_flag" |
| 10495 | || test ! -s conftest.err' |
| 10496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10497 | (eval $ac_try) 2>&5 |
| 10498 | ac_status=$? |
| 10499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10500 | (exit $ac_status); }; } && |
| 10501 | { ac_try='test -s conftest.$ac_objext' |
| 10502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10503 | (eval $ac_try) 2>&5 |
| 10504 | ac_status=$? |
| 10505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10506 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10507 | ac_header_compiler=yes |
| 10508 | else |
| 10509 | echo "$as_me: failed program was:" >&5 |
| 10510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10511 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10512 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10513 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10515 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10516 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10517 | |
| 10518 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10519 | echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 |
| 10520 | echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10521 | cat >conftest.$ac_ext <<_ACEOF |
| 10522 | /* confdefs.h. */ |
| 10523 | _ACEOF |
| 10524 | cat confdefs.h >>conftest.$ac_ext |
| 10525 | cat >>conftest.$ac_ext <<_ACEOF |
| 10526 | /* end confdefs.h. */ |
| 10527 | #include <openssl/ssl.h> |
| 10528 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10529 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10530 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10531 | ac_status=$? |
| 10532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10533 | rm -f conftest.er1 |
| 10534 | cat conftest.err >&5 |
| 10535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10536 | (exit $ac_status); } >/dev/null; then |
| 10537 | if test -s conftest.err; then |
| 10538 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10539 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10540 | else |
| 10541 | ac_cpp_err= |
| 10542 | fi |
| 10543 | else |
| 10544 | ac_cpp_err=yes |
| 10545 | fi |
| 10546 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10547 | ac_header_preproc=yes |
| 10548 | else |
| 10549 | echo "$as_me: failed program was:" >&5 |
| 10550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10551 | |
| 10552 | ac_header_preproc=no |
| 10553 | fi |
| 10554 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10555 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10556 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10557 | |
| 10558 | # So? What about this header? |
| 10559 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10560 | yes:no: ) |
| 10561 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10562 | echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10563 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 |
| 10564 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} |
| 10565 | ac_header_preproc=yes |
| 10566 | ;; |
| 10567 | no:yes:* ) |
| 10568 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 |
| 10569 | echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} |
| 10570 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 |
| 10571 | echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} |
| 10572 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 |
| 10573 | echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} |
| 10574 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10575 | echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10576 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 |
| 10577 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} |
| 10578 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 |
| 10579 | echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10580 | ( |
| 10581 | cat <<\_ASBOX |
| 10582 | ## ------------------------------------ ## |
| 10583 | ## Report this to the pjproject lists. ## |
| 10584 | ## ------------------------------------ ## |
| 10585 | _ASBOX |
| 10586 | ) | |
| 10587 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10588 | ;; |
| 10589 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10590 | echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 10591 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10592 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 10593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10594 | else |
| 10595 | ac_cv_header_openssl_ssl_h=$ac_header_preproc |
| 10596 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10597 | echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 10598 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10599 | |
| 10600 | fi |
| 10601 | if test $ac_cv_header_openssl_ssl_h = yes; then |
| 10602 | openssl_h_present=1 |
| 10603 | fi |
| 10604 | |
| 10605 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10606 | echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 |
| 10607 | echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10608 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then |
| 10609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10610 | else |
| 10611 | ac_check_lib_save_LIBS=$LIBS |
| 10612 | LIBS="-lssl $LIBS" |
| 10613 | cat >conftest.$ac_ext <<_ACEOF |
| 10614 | /* confdefs.h. */ |
| 10615 | _ACEOF |
| 10616 | cat confdefs.h >>conftest.$ac_ext |
| 10617 | cat >>conftest.$ac_ext <<_ACEOF |
| 10618 | /* end confdefs.h. */ |
| 10619 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10620 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10621 | #ifdef __cplusplus |
| 10622 | extern "C" |
| 10623 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10624 | /* We use char because int might match the return type of a gcc2 |
| 10625 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10626 | char SSL_library_init (); |
| 10627 | int |
| 10628 | main () |
| 10629 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10630 | SSL_library_init (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10631 | ; |
| 10632 | return 0; |
| 10633 | } |
| 10634 | _ACEOF |
| 10635 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10637 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10638 | ac_status=$? |
| 10639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10640 | rm -f conftest.er1 |
| 10641 | cat conftest.err >&5 |
| 10642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10643 | (exit $ac_status); } && |
| 10644 | { ac_try='test -z "$ac_c_werror_flag" |
| 10645 | || test ! -s conftest.err' |
| 10646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10647 | (eval $ac_try) 2>&5 |
| 10648 | ac_status=$? |
| 10649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10650 | (exit $ac_status); }; } && |
| 10651 | { ac_try='test -s conftest$ac_exeext' |
| 10652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10653 | (eval $ac_try) 2>&5 |
| 10654 | ac_status=$? |
| 10655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10656 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10657 | ac_cv_lib_ssl_SSL_library_init=yes |
| 10658 | else |
| 10659 | echo "$as_me: failed program was:" >&5 |
| 10660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10661 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10662 | ac_cv_lib_ssl_SSL_library_init=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10663 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10664 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10665 | conftest$ac_exeext conftest.$ac_ext |
| 10666 | LIBS=$ac_check_lib_save_LIBS |
| 10667 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10668 | echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 10669 | echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10670 | if test $ac_cv_lib_ssl_SSL_library_init = yes; then |
| 10671 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 10672 | fi |
| 10673 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10674 | echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 10675 | echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10676 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then |
| 10677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10678 | else |
| 10679 | ac_check_lib_save_LIBS=$LIBS |
| 10680 | LIBS="-lcrypto $LIBS" |
| 10681 | cat >conftest.$ac_ext <<_ACEOF |
| 10682 | /* confdefs.h. */ |
| 10683 | _ACEOF |
| 10684 | cat confdefs.h >>conftest.$ac_ext |
| 10685 | cat >>conftest.$ac_ext <<_ACEOF |
| 10686 | /* end confdefs.h. */ |
| 10687 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10688 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10689 | #ifdef __cplusplus |
| 10690 | extern "C" |
| 10691 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10692 | /* We use char because int might match the return type of a gcc2 |
| 10693 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10694 | char ERR_load_BIO_strings (); |
| 10695 | int |
| 10696 | main () |
| 10697 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10698 | ERR_load_BIO_strings (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10699 | ; |
| 10700 | return 0; |
| 10701 | } |
| 10702 | _ACEOF |
| 10703 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10705 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10706 | ac_status=$? |
| 10707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10708 | rm -f conftest.er1 |
| 10709 | cat conftest.err >&5 |
| 10710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10711 | (exit $ac_status); } && |
| 10712 | { ac_try='test -z "$ac_c_werror_flag" |
| 10713 | || test ! -s conftest.err' |
| 10714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10715 | (eval $ac_try) 2>&5 |
| 10716 | ac_status=$? |
| 10717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10718 | (exit $ac_status); }; } && |
| 10719 | { ac_try='test -s conftest$ac_exeext' |
| 10720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10721 | (eval $ac_try) 2>&5 |
| 10722 | ac_status=$? |
| 10723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10724 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10725 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 10726 | else |
| 10727 | echo "$as_me: failed program was:" >&5 |
| 10728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10729 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10730 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10731 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10732 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10733 | conftest$ac_exeext conftest.$ac_ext |
| 10734 | LIBS=$ac_check_lib_save_LIBS |
| 10735 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10736 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 10737 | echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10738 | if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then |
| 10739 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 10740 | fi |
| 10741 | |
| 10742 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10743 | echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5 |
| 10744 | echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10745 | cat >>confdefs.h <<\_ACEOF |
| 10746 | #define PJSIP_HAS_TLS_TRANSPORT 1 |
| 10747 | _ACEOF |
| 10748 | |
| 10749 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10750 | echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 10751 | echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10752 | fi |
| 10753 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10754 | fi; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10755 | |
| 10756 | |
| 10757 | |
| 10758 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10759 | echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5 |
| 10760 | echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10761 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10762 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10763 | #define PJ_SELECT_NEEDS_NFDS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10764 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10765 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10766 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10767 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10768 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10769 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10770 | #define PJ_SELECT_NEEDS_NFDS 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10771 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10772 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10773 | echo "$as_me:$LINENO: result: no (default)" >&5 |
| 10774 | echo "${ECHO_T}no (default)" >&6 |
| 10775 | echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
| 10776 | echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10777 | ;; |
| 10778 | esac |
| 10779 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10780 | echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5 |
| 10781 | echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10782 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10783 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10784 | #define PJ_THREAD_SET_STACK_SIZE 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10785 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10786 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10787 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10788 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10789 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10790 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10791 | #define PJ_THREAD_SET_STACK_SIZE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10792 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10793 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10794 | echo "$as_me:$LINENO: result: no (default)" >&5 |
| 10795 | echo "${ECHO_T}no (default)" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10796 | ;; |
| 10797 | esac |
| 10798 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10799 | echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5 |
| 10800 | echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10801 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10802 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10803 | #define PJ_THREAD_ALLOCATE_STACK 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10804 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10805 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10806 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10807 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10808 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10809 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10810 | #define PJ_THREAD_ALLOCATE_STACK 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10811 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10812 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10813 | echo "$as_me:$LINENO: result: no (default)" >&5 |
| 10814 | echo "${ECHO_T}no (default)" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10815 | ;; |
| 10816 | esac |
| 10817 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10818 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10819 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10820 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10821 | #define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10822 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10823 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10824 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10825 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10826 | #define PJ_BLOCKING_ERROR_VAL EAGAIN |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10827 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10828 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10829 | echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
| 10830 | echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10831 | ;; |
| 10832 | esac |
| 10833 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10834 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10835 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10836 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10837 | #define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10838 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10839 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10840 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10841 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10842 | #define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10843 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10844 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10845 | echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
| 10846 | echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10847 | ;; |
| 10848 | esac |
| 10849 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10850 | |
| 10851 | |
| 10852 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10853 | if test "$build" = "$host"; then |
| 10854 | ac_cross_compile= |
| 10855 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 10856 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10857 | fi |
| 10858 | ac_linux_poll=select |
| 10859 | |
| 10860 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10861 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10862 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10863 | case $target in |
| 10864 | *rtems*) |
| 10865 | ac_main_obj=main_rtems.o |
| 10866 | ;; |
| 10867 | *) |
| 10868 | ac_main_obj=main.o |
| 10869 | ;; |
| 10870 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10871 | |
| 10872 | cat >confcache <<\_ACEOF |
| 10873 | # This file is a shell script that caches the results of configure |
| 10874 | # tests run on this system so they can be shared between configure |
| 10875 | # scripts and configure runs, see configure's option --config-cache. |
| 10876 | # It is not useful on other systems. If it contains results you don't |
| 10877 | # want to keep, you may remove or edit it. |
| 10878 | # |
| 10879 | # config.status only pays attention to the cache file if you give it |
| 10880 | # the --recheck option to rerun configure. |
| 10881 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10882 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10883 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 10884 | # following values. |
| 10885 | |
| 10886 | _ACEOF |
| 10887 | |
| 10888 | # The following way of writing the cache mishandles newlines in values, |
| 10889 | # but we know of no workaround that is simple, portable, and efficient. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10890 | # So, don't put newlines in cache variables' values. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10891 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 10892 | # and sets the high bit in the cache file unless we assign to the vars. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10893 | { |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10894 | (set) 2>&1 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10895 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 10896 | *ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10897 | # `set' does not quote correctly, so add quotes (double-quote |
| 10898 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 10899 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10900 | "s/'/'\\\\''/g; |
| 10901 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10902 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10903 | *) |
| 10904 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10905 | sed -n \ |
| 10906 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10907 | ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10908 | esac; |
| 10909 | } | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10910 | sed ' |
| 10911 | t clear |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10912 | : clear |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10913 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 10914 | t end |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10915 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 10916 | : end' >>confcache |
| 10917 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 10918 | if test -w $cache_file; then |
| 10919 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10920 | cat confcache >$cache_file |
| 10921 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10922 | echo "not updating unwritable cache $cache_file" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10923 | fi |
| 10924 | fi |
| 10925 | rm -f confcache |
| 10926 | |
| 10927 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 10928 | # Let make expand exec_prefix. |
| 10929 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 10930 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10931 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 10932 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 10933 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 10934 | # (actually we leave an empty line to preserve line numbers). |
| 10935 | if test "x$srcdir" = x.; then |
| 10936 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 10937 | s/:*\$(srcdir):*/:/; |
| 10938 | s/:*\${srcdir}:*/:/; |
| 10939 | s/:*@srcdir@:*/:/; |
| 10940 | s/^\([^=]*=[ ]*\):*/\1/; |
| 10941 | s/:*$//; |
| 10942 | s/^[^=]*=[ ]*$//; |
| 10943 | }' |
| 10944 | fi |
| 10945 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10946 | DEFS=-DHAVE_CONFIG_H |
| 10947 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10948 | ac_libobjs= |
| 10949 | ac_ltlibobjs= |
| 10950 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 10951 | # 1. Remove the extension, and $U if already installed. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10952 | ac_i=`echo "$ac_i" | |
| 10953 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 10954 | # 2. Add them. |
| 10955 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 10956 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10957 | done |
| 10958 | LIBOBJS=$ac_libobjs |
| 10959 | |
| 10960 | LTLIBOBJS=$ac_ltlibobjs |
| 10961 | |
| 10962 | |
| 10963 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10964 | : ${CONFIG_STATUS=./config.status} |
| 10965 | ac_clean_files_save=$ac_clean_files |
| 10966 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10967 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10968 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 10969 | cat >$CONFIG_STATUS <<_ACEOF |
| 10970 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10971 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10972 | # Run this file to recreate the current configuration. |
| 10973 | # Compiler output produced by configure, useful for debugging |
| 10974 | # configure, is in config.log if it exists. |
| 10975 | |
| 10976 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10977 | ac_cs_recheck=false |
| 10978 | ac_cs_silent=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10979 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 10980 | _ACEOF |
| 10981 | |
| 10982 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10983 | ## --------------------- ## |
| 10984 | ## M4sh Initialization. ## |
| 10985 | ## --------------------- ## |
| 10986 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10987 | # Be Bourne compatible |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10988 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 10989 | emulate sh |
| 10990 | NULLCMD=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10991 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 10992 | # is contrary to our usage. Disable this feature. |
| 10993 | alias -g '${1+"$@"}'='"$@"' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10994 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 10995 | set -o posix |
| 10996 | fi |
| 10997 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 10998 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10999 | # Support unset when possible. |
| 11000 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 11001 | as_unset=unset |
| 11002 | else |
| 11003 | as_unset=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11004 | fi |
| 11005 | |
| 11006 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11007 | # Work around bugs in pre-3.0 UWIN ksh. |
| 11008 | $as_unset ENV MAIL MAILPATH |
| 11009 | PS1='$ ' |
| 11010 | PS2='> ' |
| 11011 | PS4='+ ' |
| 11012 | |
| 11013 | # NLS nuisances. |
| 11014 | for as_var in \ |
| 11015 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 11016 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 11017 | LC_TELEPHONE LC_TIME |
| 11018 | do |
| 11019 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 11020 | eval $as_var=C; export $as_var |
| 11021 | else |
| 11022 | $as_unset $as_var |
| 11023 | fi |
| 11024 | done |
| 11025 | |
| 11026 | # Required to use basename. |
| 11027 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 11028 | as_expr=expr |
| 11029 | else |
| 11030 | as_expr=false |
| 11031 | fi |
| 11032 | |
| 11033 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 11034 | as_basename=basename |
| 11035 | else |
| 11036 | as_basename=false |
| 11037 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11038 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11039 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11040 | # Name of the executable. |
| 11041 | as_me=`$as_basename "$0" || |
| 11042 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11043 | X"$0" : 'X\(//\)$' \| \ |
| 11044 | X"$0" : 'X\(/\)$' \| \ |
| 11045 | . : '\(.\)' 2>/dev/null || |
| 11046 | echo X/"$0" | |
| 11047 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 11048 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 11049 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 11050 | s/.*/./; q'` |
| 11051 | |
| 11052 | |
| 11053 | # PATH needs CR, and LINENO needs CR and PATH. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11054 | # Avoid depending upon Character Ranges. |
| 11055 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11056 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11057 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11058 | as_cr_digits='0123456789' |
| 11059 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 11060 | |
| 11061 | # The user is always right. |
| 11062 | if test "${PATH_SEPARATOR+set}" != set; then |
| 11063 | echo "#! /bin/sh" >conf$$.sh |
| 11064 | echo "exit 0" >>conf$$.sh |
| 11065 | chmod +x conf$$.sh |
| 11066 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 11067 | PATH_SEPARATOR=';' |
| 11068 | else |
| 11069 | PATH_SEPARATOR=: |
| 11070 | fi |
| 11071 | rm -f conf$$.sh |
| 11072 | fi |
| 11073 | |
| 11074 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11075 | as_lineno_1=$LINENO |
| 11076 | as_lineno_2=$LINENO |
| 11077 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 11078 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 11079 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 11080 | # Find who we are. Look in the path if we contain no path at all |
| 11081 | # relative or not. |
| 11082 | case $0 in |
| 11083 | *[\\/]* ) as_myself=$0 ;; |
| 11084 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11085 | for as_dir in $PATH |
| 11086 | do |
| 11087 | IFS=$as_save_IFS |
| 11088 | test -z "$as_dir" && as_dir=. |
| 11089 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11090 | done |
| 11091 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11092 | ;; |
| 11093 | esac |
| 11094 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11095 | # in which case we are not to be found in the path. |
| 11096 | if test "x$as_myself" = x; then |
| 11097 | as_myself=$0 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11098 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11099 | if test ! -f "$as_myself"; then |
| 11100 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 11101 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 11102 | { (exit 1); exit 1; }; } |
| 11103 | fi |
| 11104 | case $CONFIG_SHELL in |
| 11105 | '') |
| 11106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11107 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 11108 | do |
| 11109 | IFS=$as_save_IFS |
| 11110 | test -z "$as_dir" && as_dir=. |
| 11111 | for as_base in sh bash ksh sh5; do |
| 11112 | case $as_dir in |
| 11113 | /*) |
| 11114 | if ("$as_dir/$as_base" -c ' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11115 | as_lineno_1=$LINENO |
| 11116 | as_lineno_2=$LINENO |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11117 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11118 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11119 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 11120 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 11121 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 11122 | CONFIG_SHELL=$as_dir/$as_base |
| 11123 | export CONFIG_SHELL |
| 11124 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 11125 | fi;; |
| 11126 | esac |
| 11127 | done |
| 11128 | done |
| 11129 | ;; |
| 11130 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11131 | |
| 11132 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 11133 | # uniformly replaced by the line number. The first 'sed' inserts a |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11134 | # line-number line before each line; the second 'sed' does the real |
| 11135 | # work. The second script uses 'N' to pair each line-number line |
| 11136 | # with the numbered line, and appends trailing '-' during |
| 11137 | # substitution so that $LINENO is not a special case at line end. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11138 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11139 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 11140 | sed '=' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11141 | sed ' |
| 11142 | N |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11143 | s,$,-, |
| 11144 | : loop |
| 11145 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11146 | t loop |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11147 | s,-$,, |
| 11148 | s,^['$as_cr_digits']*\n,, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11149 | ' >$as_me.lineno && |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11150 | chmod +x $as_me.lineno || |
| 11151 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 11152 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11153 | { (exit 1); exit 1; }; } |
| 11154 | |
| 11155 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 11156 | # (the dirname of $[0] is not the place where we might find the |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11157 | # original and so on. Autoconf is especially sensible to this). |
| 11158 | . ./$as_me.lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11159 | # Exit status is that of the last command. |
| 11160 | exit |
| 11161 | } |
| 11162 | |
| 11163 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11164 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 11165 | *c*,-n*) ECHO_N= ECHO_C=' |
| 11166 | ' ECHO_T=' ' ;; |
| 11167 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 11168 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11169 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11170 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11171 | if expr a : '\(a\)' >/dev/null 2>&1; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11172 | as_expr=expr |
| 11173 | else |
| 11174 | as_expr=false |
| 11175 | fi |
| 11176 | |
| 11177 | rm -f conf$$ conf$$.exe conf$$.file |
| 11178 | echo >conf$$.file |
| 11179 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11180 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 11181 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 11182 | if test -f conf$$.exe; then |
| 11183 | # Don't use ln at all; we don't have any links |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11184 | as_ln_s='cp -p' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11185 | else |
| 11186 | as_ln_s='ln -s' |
| 11187 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11188 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11189 | as_ln_s=ln |
| 11190 | else |
| 11191 | as_ln_s='cp -p' |
| 11192 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11193 | rm -f conf$$ conf$$.exe conf$$.file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11194 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11195 | if mkdir -p . 2>/dev/null; then |
| 11196 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11197 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11198 | test -d ./-p && rmdir ./-p |
| 11199 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11200 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11201 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11202 | as_executable_p="test -f" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11203 | |
| 11204 | # Sed expression to map a string onto a valid CPP name. |
| 11205 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11206 | |
| 11207 | # Sed expression to map a string onto a valid variable name. |
| 11208 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11209 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11210 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11211 | # IFS |
| 11212 | # We need space, tab and new line, in precisely that order. |
| 11213 | as_nl=' |
| 11214 | ' |
| 11215 | IFS=" $as_nl" |
| 11216 | |
| 11217 | # CDPATH. |
| 11218 | $as_unset CDPATH |
| 11219 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11220 | exec 6>&1 |
| 11221 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11222 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11223 | # report actual input values of CONFIG_FILES etc. instead of their |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11224 | # values after options handling. Logging --version etc. is OK. |
| 11225 | exec 5>>config.log |
| 11226 | { |
| 11227 | echo |
| 11228 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 11229 | ## Running $as_me. ## |
| 11230 | _ASBOX |
| 11231 | } >&5 |
| 11232 | cat >&5 <<_CSEOF |
| 11233 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 11234 | This file was extended by pjproject $as_me 0.8, which was |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11235 | generated by GNU Autoconf 2.59. Invocation command line was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11236 | |
| 11237 | CONFIG_FILES = $CONFIG_FILES |
| 11238 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11239 | CONFIG_LINKS = $CONFIG_LINKS |
| 11240 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11241 | $ $0 $@ |
| 11242 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11243 | _CSEOF |
| 11244 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 11245 | echo >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11246 | _ACEOF |
| 11247 | |
| 11248 | # Files that config.status was made for. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11249 | if test -n "$ac_config_files"; then |
| 11250 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 11251 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11252 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11253 | if test -n "$ac_config_headers"; then |
| 11254 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 11255 | fi |
| 11256 | |
| 11257 | if test -n "$ac_config_links"; then |
| 11258 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 11259 | fi |
| 11260 | |
| 11261 | if test -n "$ac_config_commands"; then |
| 11262 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 11263 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11264 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11265 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11266 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11267 | ac_cs_usage="\ |
| 11268 | \`$as_me' instantiates files from templates according to the |
| 11269 | current configuration. |
| 11270 | |
| 11271 | Usage: $0 [OPTIONS] [FILE]... |
| 11272 | |
| 11273 | -h, --help print this help, then exit |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11274 | -V, --version print version number, then exit |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11275 | -q, --quiet do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11276 | -d, --debug don't remove temporary files |
| 11277 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11278 | --file=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11279 | instantiate the configuration file FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11280 | --header=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11281 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11282 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11283 | Configuration files: |
| 11284 | $config_files |
| 11285 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11286 | Configuration headers: |
| 11287 | $config_headers |
| 11288 | |
| 11289 | Report bugs to <bug-autoconf@gnu.org>." |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11290 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11291 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11292 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11293 | ac_cs_version="\\ |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 11294 | pjproject config.status 0.8 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11295 | configured by $0, generated by GNU Autoconf 2.59, |
| 11296 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11297 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11298 | Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11299 | This config.status script is free software; the Free Software Foundation |
| 11300 | gives unlimited permission to copy, distribute and modify it." |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11301 | srcdir=$srcdir |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11302 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11303 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11304 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11305 | # If no file are specified by the user, then we need to provide default |
| 11306 | # value. By we need to know if files were specified by the user. |
| 11307 | ac_need_defaults=: |
| 11308 | while test $# != 0 |
| 11309 | do |
| 11310 | case $1 in |
| 11311 | --*=*) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11312 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 11313 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11314 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11315 | ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11316 | -*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11317 | ac_option=$1 |
| 11318 | ac_optarg=$2 |
| 11319 | ac_shift=shift |
| 11320 | ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11321 | *) # This is not an option, so the user has probably given explicit |
| 11322 | # arguments. |
| 11323 | ac_option=$1 |
| 11324 | ac_need_defaults=false;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11325 | esac |
| 11326 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11327 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11328 | # Handling of the options. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11329 | _ACEOF |
| 11330 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11331 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11332 | ac_cs_recheck=: ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11333 | --version | --vers* | -V ) |
| 11334 | echo "$ac_cs_version"; exit 0 ;; |
| 11335 | --he | --h) |
| 11336 | # Conflict between --help and --header |
| 11337 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 11338 | Try \`$0 --help' for more information." >&5 |
| 11339 | echo "$as_me: error: ambiguous option: $1 |
| 11340 | Try \`$0 --help' for more information." >&2;} |
| 11341 | { (exit 1); exit 1; }; };; |
| 11342 | --help | --hel | -h ) |
| 11343 | echo "$ac_cs_usage"; exit 0 ;; |
| 11344 | --debug | --d* | -d ) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11345 | debug=: ;; |
| 11346 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11347 | $ac_shift |
| 11348 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11349 | ac_need_defaults=false;; |
| 11350 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11351 | $ac_shift |
| 11352 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11353 | ac_need_defaults=false;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11354 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 11355 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 11356 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11357 | |
| 11358 | # This is an error. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11359 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 11360 | Try \`$0 --help' for more information." >&5 |
| 11361 | echo "$as_me: error: unrecognized option: $1 |
| 11362 | Try \`$0 --help' for more information." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11363 | { (exit 1); exit 1; }; } ;; |
| 11364 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11365 | *) ac_config_targets="$ac_config_targets $1" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11366 | |
| 11367 | esac |
| 11368 | shift |
| 11369 | done |
| 11370 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11371 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11372 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11373 | if $ac_cs_silent; then |
| 11374 | exec 6>/dev/null |
| 11375 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 11376 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11377 | |
| 11378 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11379 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11380 | if \$ac_cs_recheck; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11381 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 11382 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11383 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11384 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11385 | _ACEOF |
| 11386 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11387 | |
| 11388 | |
| 11389 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11390 | |
| 11391 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11392 | for ac_config_target in $ac_config_targets |
| 11393 | do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11394 | case "$ac_config_target" in |
| 11395 | # Handling of arguments. |
| 11396 | "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 11397 | "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
| 11398 | "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 11399 | "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 11400 | "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 11401 | "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; |
| 11402 | "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; |
| 11403 | "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; |
| 11404 | "pjlib/include/pj/compat/os_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
| 11405 | "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
| 11406 | "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 11407 | "pjmedia/include/pjmedia-codec/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
| 11408 | "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11409 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11410 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 11411 | { (exit 1); exit 1; }; };; |
| 11412 | esac |
| 11413 | done |
| 11414 | |
| 11415 | # If the user did not use the arguments to specify the items to instantiate, |
| 11416 | # then the envvar interface is used. Set only those that are not. |
| 11417 | # We use the long form for the default assignment because of an extremely |
| 11418 | # bizarre bug on SunOS 4.1.3. |
| 11419 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11420 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11421 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 11422 | fi |
| 11423 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11424 | # Have a temporary directory for convenience. Make it in the build tree |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11425 | # simply because there is no reason to put it here, and in addition, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11426 | # creating and moving files from /tmp can sometimes cause problems. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11427 | # Create a temporary directory, and hook for its removal unless debugging. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11428 | $debug || |
| 11429 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11430 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11431 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 11432 | } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11433 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11434 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11435 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11436 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11437 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11438 | test -n "$tmp" && test -d "$tmp" |
| 11439 | } || |
| 11440 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11441 | tmp=./confstat$$-$RANDOM |
| 11442 | (umask 077 && mkdir $tmp) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11443 | } || |
| 11444 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11445 | echo "$me: cannot create a temporary directory in ." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11446 | { (exit 1); exit 1; } |
| 11447 | } |
| 11448 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11449 | _ACEOF |
| 11450 | |
| 11451 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11452 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11453 | # |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11454 | # CONFIG_FILES section. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11455 | # |
| 11456 | |
| 11457 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 11458 | # This happens for instance when ./config.status config.h |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11459 | if test -n "\$CONFIG_FILES"; then |
| 11460 | # Protect against being on the right side of a sed subst in config.status. |
| 11461 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 11462 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 11463 | s,@SHELL@,$SHELL,;t t |
| 11464 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 11465 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 11466 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 11467 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 11468 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 11469 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 11470 | s,@exec_prefix@,$exec_prefix,;t t |
| 11471 | s,@prefix@,$prefix,;t t |
| 11472 | s,@program_transform_name@,$program_transform_name,;t t |
| 11473 | s,@bindir@,$bindir,;t t |
| 11474 | s,@sbindir@,$sbindir,;t t |
| 11475 | s,@libexecdir@,$libexecdir,;t t |
| 11476 | s,@datadir@,$datadir,;t t |
| 11477 | s,@sysconfdir@,$sysconfdir,;t t |
| 11478 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 11479 | s,@localstatedir@,$localstatedir,;t t |
| 11480 | s,@libdir@,$libdir,;t t |
| 11481 | s,@includedir@,$includedir,;t t |
| 11482 | s,@oldincludedir@,$oldincludedir,;t t |
| 11483 | s,@infodir@,$infodir,;t t |
| 11484 | s,@mandir@,$mandir,;t t |
| 11485 | s,@build_alias@,$build_alias,;t t |
| 11486 | s,@host_alias@,$host_alias,;t t |
| 11487 | s,@target_alias@,$target_alias,;t t |
| 11488 | s,@DEFS@,$DEFS,;t t |
| 11489 | s,@ECHO_C@,$ECHO_C,;t t |
| 11490 | s,@ECHO_N@,$ECHO_N,;t t |
| 11491 | s,@ECHO_T@,$ECHO_T,;t t |
| 11492 | s,@LIBS@,$LIBS,;t t |
| 11493 | s,@build@,$build,;t t |
| 11494 | s,@build_cpu@,$build_cpu,;t t |
| 11495 | s,@build_vendor@,$build_vendor,;t t |
| 11496 | s,@build_os@,$build_os,;t t |
| 11497 | s,@host@,$host,;t t |
| 11498 | s,@host_cpu@,$host_cpu,;t t |
| 11499 | s,@host_vendor@,$host_vendor,;t t |
| 11500 | s,@host_os@,$host_os,;t t |
| 11501 | s,@target@,$target,;t t |
| 11502 | s,@target_cpu@,$target_cpu,;t t |
| 11503 | s,@target_vendor@,$target_vendor,;t t |
| 11504 | s,@target_os@,$target_os,;t t |
| 11505 | s,@CC@,$CC,;t t |
| 11506 | s,@CFLAGS@,$CFLAGS,;t t |
| 11507 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 11508 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 11509 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 11510 | s,@EXEEXT@,$EXEEXT,;t t |
| 11511 | s,@OBJEXT@,$OBJEXT,;t t |
| 11512 | s,@CXX@,$CXX,;t t |
| 11513 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 11514 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 11515 | s,@ac_pjdir@,$ac_pjdir,;t t |
| 11516 | s,@CPP@,$CPP,;t t |
| 11517 | s,@EGREP@,$EGREP,;t t |
| 11518 | s,@ac_os_objs@,$ac_os_objs,;t t |
| 11519 | s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t |
| 11520 | s,@ac_pa_cflags@,$ac_pa_cflags,;t t |
| 11521 | s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t |
| 11522 | s,@ac_pa_use_oss@,$ac_pa_use_oss,;t t |
| 11523 | s,@ac_no_small_filter@,$ac_no_small_filter,;t t |
| 11524 | s,@ac_no_large_filter@,$ac_no_large_filter,;t t |
| 11525 | s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t |
| 11526 | s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t |
| 11527 | s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t |
| 11528 | s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 11529 | s,@ac_no_g722_codec@,$ac_no_g722_codec,;t t |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11530 | s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t |
| 11531 | s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t |
| 11532 | s,@ac_no_ssl@,$ac_no_ssl,;t t |
| 11533 | s,@openssl_h_present@,$openssl_h_present,;t t |
| 11534 | s,@libssl_present@,$libssl_present,;t t |
| 11535 | s,@libcrypto_present@,$libcrypto_present,;t t |
| 11536 | s,@ac_cross_compile@,$ac_cross_compile,;t t |
| 11537 | s,@ac_linux_poll@,$ac_linux_poll,;t t |
| 11538 | s,@ac_host@,$ac_host,;t t |
| 11539 | s,@ac_main_obj@,$ac_main_obj,;t t |
| 11540 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 11541 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 11542 | CEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11543 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11544 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11545 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11546 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11547 | # Split the substitutions into bite-sized pieces for seds with |
| 11548 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 11549 | ac_max_sed_lines=48 |
| 11550 | ac_sed_frag=1 # Number of current file. |
| 11551 | ac_beg=1 # First line for current file. |
| 11552 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 11553 | ac_more_lines=: |
| 11554 | ac_sed_cmds= |
| 11555 | while $ac_more_lines; do |
| 11556 | if test $ac_beg -gt 1; then |
| 11557 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 11558 | else |
| 11559 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 11560 | fi |
| 11561 | if test ! -s $tmp/subs.frag; then |
| 11562 | ac_more_lines=false |
| 11563 | else |
| 11564 | # The purpose of the label and of the branching condition is to |
| 11565 | # speed up the sed processing (if there are no `@' at all, there |
| 11566 | # is no need to browse any of the substitutions). |
| 11567 | # These are the two extra sed commands mentioned above. |
| 11568 | (echo ':t |
| 11569 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 11570 | if test -z "$ac_sed_cmds"; then |
| 11571 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 11572 | else |
| 11573 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 11574 | fi |
| 11575 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 11576 | ac_beg=$ac_end |
| 11577 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 11578 | fi |
| 11579 | done |
| 11580 | if test -z "$ac_sed_cmds"; then |
| 11581 | ac_sed_cmds=cat |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11582 | fi |
| 11583 | fi # test -n "$CONFIG_FILES" |
| 11584 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11585 | _ACEOF |
| 11586 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11587 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 11588 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 11589 | case $ac_file in |
| 11590 | - | *:- | *:-:* ) # input from stdin |
| 11591 | cat >$tmp/stdin |
| 11592 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11593 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11594 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11595 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11596 | * ) ac_file_in=$ac_file.in ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11597 | esac |
| 11598 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11599 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 11600 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11601 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11602 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 11603 | X"$ac_file" : 'X\(//\)$' \| \ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11604 | X"$ac_file" : 'X\(/\)' \| \ |
| 11605 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11606 | echo X"$ac_file" | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11607 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11608 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11609 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11610 | /^X\(\/\).*/{ s//\1/; q; } |
| 11611 | s/.*/./; q'` |
| 11612 | { if $as_mkdir_p; then |
| 11613 | mkdir -p "$ac_dir" |
| 11614 | else |
| 11615 | as_dir="$ac_dir" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11616 | as_dirs= |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11617 | while test ! -d "$as_dir"; do |
| 11618 | as_dirs="$as_dir $as_dirs" |
| 11619 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11620 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11621 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11622 | X"$as_dir" : 'X\(//\)$' \| \ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11623 | X"$as_dir" : 'X\(/\)' \| \ |
| 11624 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11625 | echo X"$as_dir" | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11626 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11627 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11628 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11629 | /^X\(\/\).*/{ s//\1/; q; } |
| 11630 | s/.*/./; q'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11631 | done |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11632 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 11633 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 11634 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11635 | { (exit 1); exit 1; }; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11636 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11637 | ac_builddir=. |
| 11638 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11639 | if test "$ac_dir" != .; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11640 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11641 | # A "../" for each directory in $ac_dir_suffix. |
| 11642 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 11643 | else |
| 11644 | ac_dir_suffix= ac_top_builddir= |
| 11645 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11646 | |
| 11647 | case $srcdir in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11648 | .) # No --srcdir option. We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11649 | ac_srcdir=. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11650 | if test -z "$ac_top_builddir"; then |
| 11651 | ac_top_srcdir=. |
| 11652 | else |
| 11653 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 11654 | fi ;; |
| 11655 | [\\/]* | ?:[\\/]* ) # Absolute path. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11656 | ac_srcdir=$srcdir$ac_dir_suffix; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11657 | ac_top_srcdir=$srcdir ;; |
| 11658 | *) # Relative path. |
| 11659 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 11660 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11661 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11662 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11663 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 11664 | # the directories may not exist. |
| 11665 | case `pwd` in |
| 11666 | .) ac_abs_builddir="$ac_dir";; |
| 11667 | *) |
| 11668 | case "$ac_dir" in |
| 11669 | .) ac_abs_builddir=`pwd`;; |
| 11670 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 11671 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 11672 | esac;; |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11673 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11674 | case $ac_abs_builddir in |
| 11675 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 11676 | *) |
| 11677 | case ${ac_top_builddir}. in |
| 11678 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 11679 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 11680 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 11681 | esac;; |
| 11682 | esac |
| 11683 | case $ac_abs_builddir in |
| 11684 | .) ac_abs_srcdir=$ac_srcdir;; |
| 11685 | *) |
| 11686 | case $ac_srcdir in |
| 11687 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 11688 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 11689 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 11690 | esac;; |
| 11691 | esac |
| 11692 | case $ac_abs_builddir in |
| 11693 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 11694 | *) |
| 11695 | case $ac_top_srcdir in |
| 11696 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 11697 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 11698 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 11699 | esac;; |
| 11700 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11701 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11702 | |
| 11703 | |
| 11704 | if test x"$ac_file" != x-; then |
| 11705 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 11706 | echo "$as_me: creating $ac_file" >&6;} |
| 11707 | rm -f "$ac_file" |
| 11708 | fi |
| 11709 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 11710 | # use $as_me), people would be surprised to read: |
| 11711 | # /* config.h. Generated by config.status. */ |
| 11712 | if test x"$ac_file" = x-; then |
| 11713 | configure_input= |
| 11714 | else |
| 11715 | configure_input="$ac_file. " |
| 11716 | fi |
| 11717 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 11718 | sed 's,.*/,,'` by configure." |
| 11719 | |
| 11720 | # First look for the input files in the build tree, otherwise in the |
| 11721 | # src tree. |
| 11722 | ac_file_inputs=`IFS=: |
| 11723 | for f in $ac_file_in; do |
| 11724 | case $f in |
| 11725 | -) echo $tmp/stdin ;; |
| 11726 | [\\/$]*) |
| 11727 | # Absolute (can't be DOS-style, as IFS=:) |
| 11728 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11729 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11730 | { (exit 1); exit 1; }; } |
| 11731 | echo "$f";; |
| 11732 | *) # Relative |
| 11733 | if test -f "$f"; then |
| 11734 | # Build tree |
| 11735 | echo "$f" |
| 11736 | elif test -f "$srcdir/$f"; then |
| 11737 | # Source tree |
| 11738 | echo "$srcdir/$f" |
| 11739 | else |
| 11740 | # /dev/null tree |
| 11741 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11742 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11743 | { (exit 1); exit 1; }; } |
| 11744 | fi;; |
| 11745 | esac |
| 11746 | done` || { (exit 1); exit 1; } |
| 11747 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11748 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11749 | sed "$ac_vpsub |
| 11750 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11751 | _ACEOF |
| 11752 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11753 | :t |
| 11754 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11755 | s,@configure_input@,$configure_input,;t t |
| 11756 | s,@srcdir@,$ac_srcdir,;t t |
| 11757 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 11758 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 11759 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 11760 | s,@builddir@,$ac_builddir,;t t |
| 11761 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 11762 | s,@top_builddir@,$ac_top_builddir,;t t |
| 11763 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 11764 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 11765 | rm -f $tmp/stdin |
| 11766 | if test x"$ac_file" != x-; then |
| 11767 | mv $tmp/out $ac_file |
| 11768 | else |
| 11769 | cat $tmp/out |
| 11770 | rm -f $tmp/out |
| 11771 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11772 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11773 | done |
| 11774 | _ACEOF |
| 11775 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11776 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11777 | # |
| 11778 | # CONFIG_HEADER section. |
| 11779 | # |
| 11780 | |
| 11781 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 11782 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 11783 | # |
| 11784 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 11785 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 11786 | ac_dB='[ ].*$,\1#\2' |
| 11787 | ac_dC=' ' |
| 11788 | ac_dD=',;t' |
| 11789 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 11790 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 11791 | ac_uB='$,\1#\2define\3' |
| 11792 | ac_uC=' ' |
| 11793 | ac_uD=',;t' |
| 11794 | |
| 11795 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 11796 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11797 | case $ac_file in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11798 | - | *:- | *:-:* ) # input from stdin |
| 11799 | cat >$tmp/stdin |
| 11800 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11801 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11802 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11803 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11804 | * ) ac_file_in=$ac_file.in ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11805 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11806 | |
| 11807 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 11808 | echo "$as_me: creating $ac_file" >&6;} |
| 11809 | |
| 11810 | # First look for the input files in the build tree, otherwise in the |
| 11811 | # src tree. |
| 11812 | ac_file_inputs=`IFS=: |
| 11813 | for f in $ac_file_in; do |
| 11814 | case $f in |
| 11815 | -) echo $tmp/stdin ;; |
| 11816 | [\\/$]*) |
| 11817 | # Absolute (can't be DOS-style, as IFS=:) |
| 11818 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11819 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11820 | { (exit 1); exit 1; }; } |
| 11821 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 11822 | echo "$f";; |
| 11823 | *) # Relative |
| 11824 | if test -f "$f"; then |
| 11825 | # Build tree |
| 11826 | echo "$f" |
| 11827 | elif test -f "$srcdir/$f"; then |
| 11828 | # Source tree |
| 11829 | echo "$srcdir/$f" |
| 11830 | else |
| 11831 | # /dev/null tree |
| 11832 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11833 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11834 | { (exit 1); exit 1; }; } |
| 11835 | fi;; |
| 11836 | esac |
| 11837 | done` || { (exit 1); exit 1; } |
| 11838 | # Remove the trailing spaces. |
| 11839 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 11840 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11841 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11842 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11843 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 11844 | # `conftest.undefs', that substitutes the proper values into |
| 11845 | # config.h.in to produce config.h. The first handles `#define' |
| 11846 | # templates, and the second `#undef' templates. |
| 11847 | # And first: Protect against being on the right side of a sed subst in |
| 11848 | # config.status. Protect against being in an unquoted here document |
| 11849 | # in config.status. |
| 11850 | rm -f conftest.defines conftest.undefs |
| 11851 | # Using a here document instead of a string reduces the quoting nightmare. |
| 11852 | # Putting comments in sed scripts is not portable. |
| 11853 | # |
| 11854 | # `end' is used to avoid that the second main sed command (meant for |
| 11855 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 11856 | # See the Autoconf documentation for `clear'. |
| 11857 | cat >confdef2sed.sed <<\_ACEOF |
| 11858 | s/[\\&,]/\\&/g |
| 11859 | s,[\\$`],\\&,g |
| 11860 | t clear |
| 11861 | : clear |
| 11862 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 11863 | t end |
| 11864 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 11865 | : end |
| 11866 | _ACEOF |
| 11867 | # If some macros were called several times there might be several times |
| 11868 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 11869 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 11870 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 11871 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 11872 | rm -f confdef2sed.sed |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11873 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11874 | # This sed command replaces #undef with comments. This is necessary, for |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11875 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 11876 | # on some systems where configure will not decide to define it. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11877 | cat >>conftest.undefs <<\_ACEOF |
| 11878 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11879 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11880 | |
| 11881 | # Break up conftest.defines because some shells have a limit on the size |
| 11882 | # of here documents, and old seds have small limits too (100 cmds). |
| 11883 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 11884 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 11885 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 11886 | echo ' :' >>$CONFIG_STATUS |
| 11887 | rm -f conftest.tail |
| 11888 | while grep . conftest.defines >/dev/null |
| 11889 | do |
| 11890 | # Write a limited-size here document to $tmp/defines.sed. |
| 11891 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 11892 | # Speed up: don't consider the non `#define' lines. |
| 11893 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 11894 | # Work around the forget-to-reset-the-flag bug. |
| 11895 | echo 't clr' >>$CONFIG_STATUS |
| 11896 | echo ': clr' >>$CONFIG_STATUS |
| 11897 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11898 | echo 'CEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11899 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 11900 | rm -f $tmp/in |
| 11901 | mv $tmp/out $tmp/in |
| 11902 | ' >>$CONFIG_STATUS |
| 11903 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11904 | rm -f conftest.defines |
| 11905 | mv conftest.tail conftest.defines |
| 11906 | done |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11907 | rm -f conftest.defines |
| 11908 | echo ' fi # grep' >>$CONFIG_STATUS |
| 11909 | echo >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11910 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11911 | # Break up conftest.undefs because some shells have a limit on the size |
| 11912 | # of here documents, and old seds have small limits too (100 cmds). |
| 11913 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 11914 | rm -f conftest.tail |
| 11915 | while grep . conftest.undefs >/dev/null |
| 11916 | do |
| 11917 | # Write a limited-size here document to $tmp/undefs.sed. |
| 11918 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 11919 | # Speed up: don't consider the non `#undef' |
| 11920 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 11921 | # Work around the forget-to-reset-the-flag bug. |
| 11922 | echo 't clr' >>$CONFIG_STATUS |
| 11923 | echo ': clr' >>$CONFIG_STATUS |
| 11924 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 11925 | echo 'CEOF |
| 11926 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 11927 | rm -f $tmp/in |
| 11928 | mv $tmp/out $tmp/in |
| 11929 | ' >>$CONFIG_STATUS |
| 11930 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 11931 | rm -f conftest.undefs |
| 11932 | mv conftest.tail conftest.undefs |
| 11933 | done |
| 11934 | rm -f conftest.undefs |
| 11935 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11936 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11937 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 11938 | # use $as_me), people would be surprised to read: |
| 11939 | # /* config.h. Generated by config.status. */ |
| 11940 | if test x"$ac_file" = x-; then |
| 11941 | echo "/* Generated by configure. */" >$tmp/config.h |
| 11942 | else |
| 11943 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 11944 | fi |
| 11945 | cat $tmp/in >>$tmp/config.h |
| 11946 | rm -f $tmp/in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11947 | if test x"$ac_file" != x-; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11948 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11949 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11950 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 11951 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11952 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 11953 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11954 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 11955 | X"$ac_file" : 'X\(//\)$' \| \ |
| 11956 | X"$ac_file" : 'X\(/\)' \| \ |
| 11957 | . : '\(.\)' 2>/dev/null || |
| 11958 | echo X"$ac_file" | |
| 11959 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11960 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11961 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11962 | /^X\(\/\).*/{ s//\1/; q; } |
| 11963 | s/.*/./; q'` |
| 11964 | { if $as_mkdir_p; then |
| 11965 | mkdir -p "$ac_dir" |
| 11966 | else |
| 11967 | as_dir="$ac_dir" |
| 11968 | as_dirs= |
| 11969 | while test ! -d "$as_dir"; do |
| 11970 | as_dirs="$as_dir $as_dirs" |
| 11971 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 11972 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11973 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11974 | X"$as_dir" : 'X\(//\)$' \| \ |
| 11975 | X"$as_dir" : 'X\(/\)' \| \ |
| 11976 | . : '\(.\)' 2>/dev/null || |
| 11977 | echo X"$as_dir" | |
| 11978 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11979 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11980 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11981 | /^X\(\/\).*/{ s//\1/; q; } |
| 11982 | s/.*/./; q'` |
| 11983 | done |
| 11984 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 11985 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 11986 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 11987 | { (exit 1); exit 1; }; }; } |
| 11988 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11989 | rm -f $ac_file |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11990 | mv $tmp/config.h $ac_file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11991 | fi |
| 11992 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11993 | cat $tmp/config.h |
| 11994 | rm -f $tmp/config.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11995 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11996 | done |
| 11997 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11998 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11999 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12000 | |
| 12001 | { (exit 0); exit 0; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12002 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12003 | chmod +x $CONFIG_STATUS |
| 12004 | ac_clean_files=$ac_clean_files_save |
| 12005 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12006 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12007 | # configure is writing to config.log, and then calls config.status. |
| 12008 | # config.status does its own redirection, appending to config.log. |
| 12009 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12010 | # by configure, so config.status won't be able to write to it; its |
| 12011 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12012 | # effectively closing config.log, so it can be properly (re)opened and |
| 12013 | # appended to by config.status. When coming back to configure, we |
| 12014 | # need to make the FD available again. |
| 12015 | if test "$no_create" != yes; then |
| 12016 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12017 | ac_config_status_args= |
| 12018 | test "$silent" = yes && |
| 12019 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12020 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12021 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12022 | exec 5>>config.log |
| 12023 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12024 | # would make configure fail if this is the last instruction. |
| 12025 | $ac_cs_success || { (exit 1); exit 1; } |
| 12026 | fi |
| 12027 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12028 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12029 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12030 | echo "$as_me:$LINENO: result: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12031 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12032 | Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h. |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12033 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12034 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12035 | - 'user.mak' |
| 12036 | - 'pjlib/include/pj/config_site.h' |
| 12037 | |
| 12038 | The next step now is to run 'make dep' and 'make'. |
| 12039 | " >&5 |
| 12040 | echo "${ECHO_T} |
| 12041 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12042 | Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h. |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12043 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12044 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12045 | - 'user.mak' |
| 12046 | - 'pjlib/include/pj/config_site.h' |
| 12047 | |
| 12048 | The next step now is to run 'make dep' and 'make'. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12049 | " >&6 |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12050 | |