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 | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for pjproject 0.5.8. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +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 | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12 | # Be Bourne compatible |
| 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+"$@"}'='"$@"' |
| 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 |
| 23 | |
| 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 |
| 29 | fi |
| 30 | |
| 31 | |
| 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 |
| 63 | |
| 64 | |
| 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 | |
| 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 |
| 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 | |
| 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 |
| 123 | fi |
| 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 | '') |
| 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=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 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 |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 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 |
| 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. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 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 |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 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= ;; |
| 192 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 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 |
| 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 |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 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 |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 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 | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 225 | as_executable_p="test -f" |
| 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 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 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 | |
| 249 | exec 6>&1 |
| 250 | |
| 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 | |
| 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' |
| 270 | PACKAGE_VERSION='0.5.8' |
| 271 | PACKAGE_STRING='pjproject 0.5.8' |
| 272 | PACKAGE_BUGREPORT='' |
| 273 | |
| 274 | # Factoring default headers for most tests. |
| 275 | ac_includes_default="\ |
| 276 | #include <stdio.h> |
| 277 | #if HAVE_SYS_TYPES_H |
| 278 | # include <sys/types.h> |
| 279 | #endif |
| 280 | #if HAVE_SYS_STAT_H |
| 281 | # include <sys/stat.h> |
| 282 | #endif |
| 283 | #if STDC_HEADERS |
| 284 | # include <stdlib.h> |
| 285 | # include <stddef.h> |
| 286 | #else |
| 287 | # if HAVE_STDLIB_H |
| 288 | # include <stdlib.h> |
| 289 | # endif |
| 290 | #endif |
| 291 | #if HAVE_STRING_H |
| 292 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 293 | # include <memory.h> |
| 294 | # endif |
| 295 | # include <string.h> |
| 296 | #endif |
| 297 | #if HAVE_STRINGS_H |
| 298 | # include <strings.h> |
| 299 | #endif |
| 300 | #if HAVE_INTTYPES_H |
| 301 | # include <inttypes.h> |
| 302 | #else |
| 303 | # if HAVE_STDINT_H |
| 304 | # include <stdint.h> |
| 305 | # endif |
| 306 | #endif |
| 307 | #if HAVE_UNISTD_H |
| 308 | # include <unistd.h> |
| 309 | #endif" |
| 310 | |
| 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 CPP EGREP ac_os_objs ac_pjmedia_snd ac_pa_cflags ac_pa_use_alsa ac_no_small_filter ac_no_large_filter ac_no_g711_plc ac_no_speex_aec ac_no_g711_codec ac_no_l16_codec ac_no_gsm_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' |
| 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' |
| 342 | datadir='${prefix}/share' |
| 343 | sysconfdir='${prefix}/etc' |
| 344 | sharedstatedir='${prefix}/com' |
| 345 | localstatedir='${prefix}/var' |
| 346 | libdir='${exec_prefix}/lib' |
| 347 | includedir='${prefix}/include' |
| 348 | oldincludedir='/usr/include' |
| 349 | infodir='${prefix}/info' |
| 350 | mandir='${prefix}/man' |
| 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 |
| 357 | eval "$ac_prev=\$ac_option" |
| 358 | ac_prev= |
| 359 | continue |
| 360 | fi |
| 361 | |
| 362 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 363 | |
| 364 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 365 | |
| 366 | case $ac_option in |
| 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 | |
| 388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 389 | ac_prev=datadir ;; |
| 390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 391 | | --da=*) |
| 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. |
| 397 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 398 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 399 | { (exit 1); exit 1; }; } |
| 400 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 401 | eval "enable_$ac_feature=no" ;; |
| 402 | |
| 403 | -enable-* | --enable-*) |
| 404 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 405 | # Reject names that are not valid shell variable names. |
| 406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 408 | { (exit 1); exit 1; }; } |
| 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'" ;; |
| 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 \ |
| 466 | | --localstate | --localstat | --localsta | --localst \ |
| 467 | | --locals | --local | --loca | --loc | --lo) |
| 468 | ac_prev=localstatedir ;; |
| 469 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 470 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 471 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 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. |
| 588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 590 | { (exit 1); exit 1; }; } |
| 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'" ;; |
| 597 | |
| 598 | -without-* | --without-*) |
| 599 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 600 | # Reject names that are not valid shell variable names. |
| 601 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 602 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 603 | { (exit 1); exit 1; }; } |
| 604 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 605 | eval "with_$ac_package=no" ;; |
| 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; }; } |
| 636 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 637 | eval "$ac_envvar='$ac_optarg'" |
| 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 | |
| 657 | # Be sure to have absolute paths. |
| 658 | for ac_var in exec_prefix prefix |
| 659 | do |
| 660 | eval ac_val=$`echo $ac_var` |
| 661 | case $ac_val in |
| 662 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 663 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 664 | { (exit 1); exit 1; }; };; |
| 665 | esac |
| 666 | done |
| 667 | |
| 668 | # Be sure to have absolute paths. |
| 669 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 670 | localstatedir libdir includedir oldincludedir infodir mandir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 671 | do |
| 672 | eval ac_val=$`echo $ac_var` |
| 673 | case $ac_val in |
| 674 | [\\/$]* | ?:[\\/]* ) ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 675 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 676 | { (exit 1); exit 1; }; };; |
| 677 | esac |
| 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 |
| 707 | # Try the directory containing this script, then its parent. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 708 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 709 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 710 | X"$0" : 'X\(//\)[^/]' \| \ |
| 711 | X"$0" : 'X\(//\)$' \| \ |
| 712 | X"$0" : 'X\(/\)' \| \ |
| 713 | . : '\(.\)' 2>/dev/null || |
| 714 | echo X"$0" | |
| 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 |
| 721 | if test ! -r $srcdir/$ac_unique_file; then |
| 722 | srcdir=.. |
| 723 | fi |
| 724 | else |
| 725 | ac_srcdir_defaulted=no |
| 726 | fi |
| 727 | if test ! -r $srcdir/$ac_unique_file; then |
| 728 | if test "$ac_srcdir_defaulted" = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 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; }; } |
| 731 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 733 | { (exit 1); exit 1; }; } |
| 734 | fi |
| 735 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +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; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 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 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 |
| 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 | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 788 | \`configure' configures pjproject 0.5.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 | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 808 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 809 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 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] |
| 828 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 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] |
| 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 | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 850 | short | recursive ) echo "Configuration of pjproject 0.5.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 | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 860 | --disable-small-filter Exclude small filter in resampling |
| 861 | --disable-large-filter Exclude large filter in resampling |
| 862 | --disable-g711-plc Exclude G.711 Annex A PLC |
| 863 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 864 | --disable-g711-codec Exclude G.711 codecs from the build |
| 865 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 866 | --disable-gsm-codec Exclude GSM codec in the build |
| 867 | --disable-speex-codec Exclude Speex codecs in the build |
| 868 | --disable-ilbc-codec Exclude iLBC codec in the build |
| 869 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 870 | --disable-ssl Exclude SSL support the build (default: autodetect) |
| 871 | |
| 872 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 873 | Some influential environment variables: |
| 874 | CC C compiler command |
| 875 | CFLAGS C compiler flags |
| 876 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 877 | nonstandard directory <lib dir> |
| 878 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 879 | headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 880 | CXX C++ compiler command |
| 881 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 882 | CPP C preprocessor |
| 883 | |
| 884 | Use these variables to override the choices made by `configure' or to help |
| 885 | it to find libraries and programs with nonstandard names/locations. |
| 886 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 887 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 888 | fi |
| 889 | |
| 890 | if test "$ac_init_help" = "recursive"; then |
| 891 | # If there are subdirs, report their specific --help. |
| 892 | ac_popdir=`pwd` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 893 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 894 | test -d $ac_dir || continue |
| 895 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 896 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 897 | if test "$ac_dir" != .; then |
| 898 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 899 | # A "../" for each directory in $ac_dir_suffix. |
| 900 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 901 | else |
| 902 | ac_dir_suffix= ac_top_builddir= |
| 903 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 904 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 905 | case $srcdir in |
| 906 | .) # No --srcdir option. We are building in place. |
| 907 | ac_srcdir=. |
| 908 | if test -z "$ac_top_builddir"; then |
| 909 | ac_top_srcdir=. |
| 910 | else |
| 911 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 912 | fi ;; |
| 913 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 914 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 915 | ac_top_srcdir=$srcdir ;; |
| 916 | *) # Relative path. |
| 917 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 918 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 919 | esac |
| 920 | |
| 921 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 922 | # the directories may not exist. |
| 923 | case `pwd` in |
| 924 | .) ac_abs_builddir="$ac_dir";; |
| 925 | *) |
| 926 | case "$ac_dir" in |
| 927 | .) ac_abs_builddir=`pwd`;; |
| 928 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 929 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 930 | esac;; |
| 931 | esac |
| 932 | case $ac_abs_builddir in |
| 933 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 934 | *) |
| 935 | case ${ac_top_builddir}. in |
| 936 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 937 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 938 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 939 | esac;; |
| 940 | esac |
| 941 | case $ac_abs_builddir in |
| 942 | .) ac_abs_srcdir=$ac_srcdir;; |
| 943 | *) |
| 944 | case $ac_srcdir in |
| 945 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 946 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 947 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 948 | esac;; |
| 949 | esac |
| 950 | case $ac_abs_builddir in |
| 951 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 952 | *) |
| 953 | case $ac_top_srcdir in |
| 954 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 955 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 956 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 957 | esac;; |
| 958 | esac |
| 959 | |
| 960 | cd $ac_dir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 961 | # Check for guested configure; otherwise get Cygnus style configure. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 962 | if test -f $ac_srcdir/configure.gnu; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 963 | echo |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 964 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 965 | elif test -f $ac_srcdir/configure; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 966 | echo |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 967 | $SHELL $ac_srcdir/configure --help=recursive |
| 968 | elif test -f $ac_srcdir/configure.ac || |
| 969 | test -f $ac_srcdir/configure.in; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 970 | echo |
| 971 | $ac_configure --help |
| 972 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 973 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 974 | fi |
| 975 | cd $ac_popdir |
| 976 | done |
| 977 | fi |
| 978 | |
| 979 | test -n "$ac_init_help" && exit 0 |
| 980 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 981 | cat <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 982 | pjproject configure 0.5.8 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 983 | generated by GNU Autoconf 2.59 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 984 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 985 | Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 986 | This configure script is free software; the Free Software Foundation |
| 987 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 988 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 989 | exit 0 |
| 990 | fi |
| 991 | exec 5>config.log |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 992 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 993 | This file contains any messages produced by compilers while |
| 994 | running configure, to aid debugging if configure makes a mistake. |
| 995 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 996 | It was created by pjproject $as_me 0.5.8, which was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 997 | generated by GNU Autoconf 2.59. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 998 | |
| 999 | $ $0 $@ |
| 1000 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1001 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1002 | { |
| 1003 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1004 | ## --------- ## |
| 1005 | ## Platform. ## |
| 1006 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1007 | |
| 1008 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1009 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1010 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1011 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1012 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1013 | |
| 1014 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1015 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1016 | |
| 1017 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1018 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1019 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1020 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1021 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1022 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1023 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1024 | |
| 1025 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1026 | |
| 1027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1028 | for as_dir in $PATH |
| 1029 | do |
| 1030 | IFS=$as_save_IFS |
| 1031 | test -z "$as_dir" && as_dir=. |
| 1032 | echo "PATH: $as_dir" |
| 1033 | done |
| 1034 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1035 | } >&5 |
| 1036 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1037 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1038 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1039 | |
| 1040 | ## ----------- ## |
| 1041 | ## Core tests. ## |
| 1042 | ## ----------- ## |
| 1043 | |
| 1044 | _ACEOF |
| 1045 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1046 | |
| 1047 | # Keep a trace of the command line. |
| 1048 | # 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] | 1049 | # 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] | 1050 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1051 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1052 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1053 | ac_configure_args0= |
| 1054 | ac_configure_args1= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1055 | ac_sep= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1056 | ac_must_keep_next=false |
| 1057 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1058 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1059 | for ac_arg |
| 1060 | do |
| 1061 | case $ac_arg in |
| 1062 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1064 | | -silent | --silent | --silen | --sile | --sil) |
| 1065 | continue ;; |
| 1066 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1067 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1068 | esac |
| 1069 | case $ac_pass in |
| 1070 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1071 | 2) |
| 1072 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1073 | if test $ac_must_keep_next = true; then |
| 1074 | ac_must_keep_next=false # Got value, back to normal. |
| 1075 | else |
| 1076 | case $ac_arg in |
| 1077 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1078 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1079 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1080 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1081 | case "$ac_configure_args0 " in |
| 1082 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1083 | esac |
| 1084 | ;; |
| 1085 | -* ) ac_must_keep_next=true ;; |
| 1086 | esac |
| 1087 | fi |
| 1088 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1089 | # Get rid of the leading space. |
| 1090 | ac_sep=" " |
| 1091 | ;; |
| 1092 | esac |
| 1093 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1094 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1095 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1096 | $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] | 1097 | |
| 1098 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1099 | # config.log. We remove comments because anyway the quotes in there |
| 1100 | # would cause problems or look ugly. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1101 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1102 | # such as our DU 5.0 friend, will then `close' the trap. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1103 | trap 'exit_status=$? |
| 1104 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1105 | { |
| 1106 | echo |
| 1107 | |
| 1108 | cat <<\_ASBOX |
| 1109 | ## ---------------- ## |
| 1110 | ## Cache variables. ## |
| 1111 | ## ---------------- ## |
| 1112 | _ASBOX |
| 1113 | echo |
| 1114 | # The following way of writing the cache mishandles newlines in values, |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1115 | { |
| 1116 | (set) 2>&1 | |
| 1117 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1118 | *ac_space=\ *) |
| 1119 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1120 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1121 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1122 | ;; |
| 1123 | *) |
| 1124 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1125 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1126 | ;; |
| 1127 | esac; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1128 | } |
| 1129 | echo |
| 1130 | |
| 1131 | cat <<\_ASBOX |
| 1132 | ## ----------------- ## |
| 1133 | ## Output variables. ## |
| 1134 | ## ----------------- ## |
| 1135 | _ASBOX |
| 1136 | echo |
| 1137 | for ac_var in $ac_subst_vars |
| 1138 | do |
| 1139 | eval ac_val=$`echo $ac_var` |
| 1140 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1141 | done | sort |
| 1142 | echo |
| 1143 | |
| 1144 | if test -n "$ac_subst_files"; then |
| 1145 | cat <<\_ASBOX |
| 1146 | ## ------------- ## |
| 1147 | ## Output files. ## |
| 1148 | ## ------------- ## |
| 1149 | _ASBOX |
| 1150 | echo |
| 1151 | for ac_var in $ac_subst_files |
| 1152 | do |
| 1153 | eval ac_val=$`echo $ac_var` |
| 1154 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1155 | done | sort |
| 1156 | echo |
| 1157 | fi |
| 1158 | |
| 1159 | if test -s confdefs.h; then |
| 1160 | cat <<\_ASBOX |
| 1161 | ## ----------- ## |
| 1162 | ## confdefs.h. ## |
| 1163 | ## ----------- ## |
| 1164 | _ASBOX |
| 1165 | echo |
| 1166 | sed "/^$/d" confdefs.h | sort |
| 1167 | echo |
| 1168 | fi |
| 1169 | test "$ac_signal" != 0 && |
| 1170 | echo "$as_me: caught signal $ac_signal" |
| 1171 | echo "$as_me: exit $exit_status" |
| 1172 | } >&5 |
| 1173 | rm -f core *.core && |
| 1174 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1175 | exit $exit_status |
| 1176 | ' 0 |
| 1177 | for ac_signal in 1 2 13 15; do |
| 1178 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1179 | done |
| 1180 | ac_signal=0 |
| 1181 | |
| 1182 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1183 | rm -rf conftest* confdefs.h |
| 1184 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1185 | echo >confdefs.h |
| 1186 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1187 | # Predefined preprocessor variables. |
| 1188 | |
| 1189 | cat >>confdefs.h <<_ACEOF |
| 1190 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1191 | _ACEOF |
| 1192 | |
| 1193 | |
| 1194 | cat >>confdefs.h <<_ACEOF |
| 1195 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1196 | _ACEOF |
| 1197 | |
| 1198 | |
| 1199 | cat >>confdefs.h <<_ACEOF |
| 1200 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1201 | _ACEOF |
| 1202 | |
| 1203 | |
| 1204 | cat >>confdefs.h <<_ACEOF |
| 1205 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1206 | _ACEOF |
| 1207 | |
| 1208 | |
| 1209 | cat >>confdefs.h <<_ACEOF |
| 1210 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1211 | _ACEOF |
| 1212 | |
| 1213 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1214 | # Let the site file select an alternate cache file if it wants to. |
| 1215 | # Prefer explicitly selected file to automatically selected ones. |
| 1216 | if test -z "$CONFIG_SITE"; then |
| 1217 | if test "x$prefix" != xNONE; then |
| 1218 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1219 | else |
| 1220 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1221 | fi |
| 1222 | fi |
| 1223 | for ac_site_file in $CONFIG_SITE; do |
| 1224 | if test -r "$ac_site_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1225 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1226 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1227 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1228 | . "$ac_site_file" |
| 1229 | fi |
| 1230 | done |
| 1231 | |
| 1232 | if test -r "$cache_file"; then |
| 1233 | # Some versions of bash will fail to source /dev/null (special |
| 1234 | # files actually), so we avoid doing that. |
| 1235 | if test -f "$cache_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1236 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1237 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1238 | case $cache_file in |
| 1239 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1240 | *) . ./$cache_file;; |
| 1241 | esac |
| 1242 | fi |
| 1243 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1244 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1245 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1246 | >$cache_file |
| 1247 | fi |
| 1248 | |
| 1249 | # Check that the precious variables saved in the cache have kept the same |
| 1250 | # value. |
| 1251 | ac_cache_corrupted=false |
| 1252 | for ac_var in `(set) 2>&1 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1253 | 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] | 1254 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1255 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1256 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1257 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1258 | case $ac_old_set,$ac_new_set in |
| 1259 | set,) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1260 | { 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] | 1261 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1262 | ac_cache_corrupted=: ;; |
| 1263 | ,set) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1264 | { 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] | 1265 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1266 | ac_cache_corrupted=: ;; |
| 1267 | ,);; |
| 1268 | *) |
| 1269 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1270 | { 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] | 1271 | 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] | 1272 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1273 | echo "$as_me: former value: $ac_old_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1274 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1275 | echo "$as_me: current value: $ac_new_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1276 | ac_cache_corrupted=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1277 | fi;; |
| 1278 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1279 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1280 | if test "$ac_new_set" = set; then |
| 1281 | case $ac_new_val in |
| 1282 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1283 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1284 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1285 | esac |
| 1286 | case " $ac_configure_args " in |
| 1287 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1288 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1289 | esac |
| 1290 | fi |
| 1291 | done |
| 1292 | if $ac_cache_corrupted; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1293 | { 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] | 1294 | 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] | 1295 | { { 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] | 1296 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1297 | { (exit 1); exit 1; }; } |
| 1298 | fi |
| 1299 | |
| 1300 | ac_ext=c |
| 1301 | ac_cpp='$CPP $CPPFLAGS' |
| 1302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1305 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1306 | |
| 1307 | |
| 1308 | |
| 1309 | |
| 1310 | |
| 1311 | |
| 1312 | |
| 1313 | |
| 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 1332 | |
| 1333 | host_orig="$host" |
| 1334 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1335 | ac_aux_dir= |
| 1336 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1337 | if test -f $ac_dir/install-sh; then |
| 1338 | ac_aux_dir=$ac_dir |
| 1339 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1340 | break |
| 1341 | elif test -f $ac_dir/install.sh; then |
| 1342 | ac_aux_dir=$ac_dir |
| 1343 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1344 | break |
| 1345 | elif test -f $ac_dir/shtool; then |
| 1346 | ac_aux_dir=$ac_dir |
| 1347 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1348 | break |
| 1349 | fi |
| 1350 | done |
| 1351 | if test -z "$ac_aux_dir"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1352 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1353 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1354 | { (exit 1); exit 1; }; } |
| 1355 | fi |
| 1356 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1357 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1358 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1359 | |
| 1360 | # Make sure we can run config.sub. |
| 1361 | $ac_config_sub sun4 >/dev/null 2>&1 || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1362 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1363 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1364 | { (exit 1); exit 1; }; } |
| 1365 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1366 | echo "$as_me:$LINENO: checking build system type" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1367 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1368 | if test "${ac_cv_build+set}" = set; then |
| 1369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1370 | else |
| 1371 | ac_cv_build_alias=$build_alias |
| 1372 | test -z "$ac_cv_build_alias" && |
| 1373 | ac_cv_build_alias=`$ac_config_guess` |
| 1374 | test -z "$ac_cv_build_alias" && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1375 | { { 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] | 1376 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1377 | { (exit 1); exit 1; }; } |
| 1378 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1379 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1380 | 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] | 1381 | { (exit 1); exit 1; }; } |
| 1382 | |
| 1383 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1384 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1385 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1386 | build=$ac_cv_build |
| 1387 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1388 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1389 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1390 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1391 | |
| 1392 | echo "$as_me:$LINENO: checking host system type" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1393 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1394 | if test "${ac_cv_host+set}" = set; then |
| 1395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1396 | else |
| 1397 | ac_cv_host_alias=$host_alias |
| 1398 | test -z "$ac_cv_host_alias" && |
| 1399 | ac_cv_host_alias=$ac_cv_build_alias |
| 1400 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1401 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1402 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1403 | { (exit 1); exit 1; }; } |
| 1404 | |
| 1405 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1406 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1407 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1408 | host=$ac_cv_host |
| 1409 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1410 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1411 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1412 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1413 | |
| 1414 | echo "$as_me:$LINENO: checking target system type" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1415 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1416 | if test "${ac_cv_target+set}" = set; then |
| 1417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1418 | else |
| 1419 | ac_cv_target_alias=$target_alias |
| 1420 | test "x$ac_cv_target_alias" = "x" && |
| 1421 | ac_cv_target_alias=$ac_cv_host_alias |
| 1422 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1423 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1424 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1425 | { (exit 1); exit 1; }; } |
| 1426 | |
| 1427 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1428 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1429 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1430 | target=$ac_cv_target |
| 1431 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1432 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1433 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1434 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1435 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1436 | # The aliases save the names the user supplied, while $host etc. |
| 1437 | # will get canonicalized. |
| 1438 | test -n "$target_alias" && |
| 1439 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1440 | NONENONEs,x,x, && |
| 1441 | program_prefix=${target_alias}- |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame^] | 1442 | 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] | 1443 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1444 | 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" |
| 1445 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1446 | |
| 1447 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 1448 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1449 | else |
| 1450 | CFLAGS="$CFLAGS" |
| 1451 | fi |
| 1452 | |
| 1453 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 1454 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1455 | ac_ext=c |
| 1456 | ac_cpp='$CPP $CPPFLAGS' |
| 1457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1460 | if test -n "$ac_tool_prefix"; then |
| 1461 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1462 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1463 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1465 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1467 | else |
| 1468 | if test -n "$CC"; then |
| 1469 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1470 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1472 | for as_dir in $PATH |
| 1473 | do |
| 1474 | IFS=$as_save_IFS |
| 1475 | test -z "$as_dir" && as_dir=. |
| 1476 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1477 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1478 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1479 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1480 | break 2 |
| 1481 | fi |
| 1482 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1483 | done |
| 1484 | |
| 1485 | fi |
| 1486 | fi |
| 1487 | CC=$ac_cv_prog_CC |
| 1488 | if test -n "$CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1489 | echo "$as_me:$LINENO: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1490 | echo "${ECHO_T}$CC" >&6 |
| 1491 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1492 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1493 | echo "${ECHO_T}no" >&6 |
| 1494 | fi |
| 1495 | |
| 1496 | fi |
| 1497 | if test -z "$ac_cv_prog_CC"; then |
| 1498 | ac_ct_CC=$CC |
| 1499 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1500 | set dummy gcc; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1501 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1503 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1505 | else |
| 1506 | if test -n "$ac_ct_CC"; then |
| 1507 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1508 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1510 | for as_dir in $PATH |
| 1511 | do |
| 1512 | IFS=$as_save_IFS |
| 1513 | test -z "$as_dir" && as_dir=. |
| 1514 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1515 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1516 | ac_cv_prog_ac_ct_CC="gcc" |
| 1517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1518 | break 2 |
| 1519 | fi |
| 1520 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1521 | done |
| 1522 | |
| 1523 | fi |
| 1524 | fi |
| 1525 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1526 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1527 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1528 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1529 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1530 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1531 | echo "${ECHO_T}no" >&6 |
| 1532 | fi |
| 1533 | |
| 1534 | CC=$ac_ct_CC |
| 1535 | else |
| 1536 | CC="$ac_cv_prog_CC" |
| 1537 | fi |
| 1538 | |
| 1539 | if test -z "$CC"; then |
| 1540 | if test -n "$ac_tool_prefix"; then |
| 1541 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1542 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1543 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1545 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1547 | else |
| 1548 | if test -n "$CC"; then |
| 1549 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1550 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1552 | for as_dir in $PATH |
| 1553 | do |
| 1554 | IFS=$as_save_IFS |
| 1555 | test -z "$as_dir" && as_dir=. |
| 1556 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1557 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1558 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1560 | break 2 |
| 1561 | fi |
| 1562 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1563 | done |
| 1564 | |
| 1565 | fi |
| 1566 | fi |
| 1567 | CC=$ac_cv_prog_CC |
| 1568 | if test -n "$CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1569 | echo "$as_me:$LINENO: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1570 | echo "${ECHO_T}$CC" >&6 |
| 1571 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1572 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1573 | echo "${ECHO_T}no" >&6 |
| 1574 | fi |
| 1575 | |
| 1576 | fi |
| 1577 | if test -z "$ac_cv_prog_CC"; then |
| 1578 | ac_ct_CC=$CC |
| 1579 | # Extract the first word of "cc", so it can be a program name with args. |
| 1580 | set dummy cc; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1581 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1583 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1585 | else |
| 1586 | if test -n "$ac_ct_CC"; then |
| 1587 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1588 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1590 | for as_dir in $PATH |
| 1591 | do |
| 1592 | IFS=$as_save_IFS |
| 1593 | test -z "$as_dir" && as_dir=. |
| 1594 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1595 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1596 | ac_cv_prog_ac_ct_CC="cc" |
| 1597 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1598 | break 2 |
| 1599 | fi |
| 1600 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1601 | done |
| 1602 | |
| 1603 | fi |
| 1604 | fi |
| 1605 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1606 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1607 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1608 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1609 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1610 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1611 | echo "${ECHO_T}no" >&6 |
| 1612 | fi |
| 1613 | |
| 1614 | CC=$ac_ct_CC |
| 1615 | else |
| 1616 | CC="$ac_cv_prog_CC" |
| 1617 | fi |
| 1618 | |
| 1619 | fi |
| 1620 | if test -z "$CC"; then |
| 1621 | # Extract the first word of "cc", so it can be a program name with args. |
| 1622 | set dummy cc; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1623 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1625 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1627 | else |
| 1628 | if test -n "$CC"; then |
| 1629 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1630 | else |
| 1631 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1633 | for as_dir in $PATH |
| 1634 | do |
| 1635 | IFS=$as_save_IFS |
| 1636 | test -z "$as_dir" && as_dir=. |
| 1637 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1638 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1639 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1640 | ac_prog_rejected=yes |
| 1641 | continue |
| 1642 | fi |
| 1643 | ac_cv_prog_CC="cc" |
| 1644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1645 | break 2 |
| 1646 | fi |
| 1647 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1648 | done |
| 1649 | |
| 1650 | if test $ac_prog_rejected = yes; then |
| 1651 | # We found a bogon in the path, so make sure we never use it. |
| 1652 | set dummy $ac_cv_prog_CC |
| 1653 | shift |
| 1654 | if test $# != 0; then |
| 1655 | # We chose a different compiler from the bogus one. |
| 1656 | # However, it has the same basename, so the bogon will be chosen |
| 1657 | # first if we set CC to just the basename; use the full file name. |
| 1658 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1659 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1660 | fi |
| 1661 | fi |
| 1662 | fi |
| 1663 | fi |
| 1664 | CC=$ac_cv_prog_CC |
| 1665 | if test -n "$CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1666 | echo "$as_me:$LINENO: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1667 | echo "${ECHO_T}$CC" >&6 |
| 1668 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1669 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1670 | echo "${ECHO_T}no" >&6 |
| 1671 | fi |
| 1672 | |
| 1673 | fi |
| 1674 | if test -z "$CC"; then |
| 1675 | if test -n "$ac_tool_prefix"; then |
| 1676 | for ac_prog in cl |
| 1677 | do |
| 1678 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1679 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1680 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1682 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1684 | else |
| 1685 | if test -n "$CC"; then |
| 1686 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1687 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1689 | for as_dir in $PATH |
| 1690 | do |
| 1691 | IFS=$as_save_IFS |
| 1692 | test -z "$as_dir" && as_dir=. |
| 1693 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1694 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1695 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1696 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1697 | break 2 |
| 1698 | fi |
| 1699 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1700 | done |
| 1701 | |
| 1702 | fi |
| 1703 | fi |
| 1704 | CC=$ac_cv_prog_CC |
| 1705 | if test -n "$CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1706 | echo "$as_me:$LINENO: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1707 | echo "${ECHO_T}$CC" >&6 |
| 1708 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1709 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1710 | echo "${ECHO_T}no" >&6 |
| 1711 | fi |
| 1712 | |
| 1713 | test -n "$CC" && break |
| 1714 | done |
| 1715 | fi |
| 1716 | if test -z "$CC"; then |
| 1717 | ac_ct_CC=$CC |
| 1718 | for ac_prog in cl |
| 1719 | do |
| 1720 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1721 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1722 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1724 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1726 | else |
| 1727 | if test -n "$ac_ct_CC"; then |
| 1728 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1729 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1731 | for as_dir in $PATH |
| 1732 | do |
| 1733 | IFS=$as_save_IFS |
| 1734 | test -z "$as_dir" && as_dir=. |
| 1735 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1736 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1737 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1738 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1739 | break 2 |
| 1740 | fi |
| 1741 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1742 | done |
| 1743 | |
| 1744 | fi |
| 1745 | fi |
| 1746 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1747 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1748 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1749 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1750 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1751 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1752 | echo "${ECHO_T}no" >&6 |
| 1753 | fi |
| 1754 | |
| 1755 | test -n "$ac_ct_CC" && break |
| 1756 | done |
| 1757 | |
| 1758 | CC=$ac_ct_CC |
| 1759 | fi |
| 1760 | |
| 1761 | fi |
| 1762 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1763 | |
| 1764 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1765 | See \`config.log' for more details." >&5 |
| 1766 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1767 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1768 | { (exit 1); exit 1; }; } |
| 1769 | |
| 1770 | # Provide some information about the compiler. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1771 | echo "$as_me:$LINENO:" \ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1772 | "checking for C compiler version" >&5 |
| 1773 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1774 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1775 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1776 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1778 | (exit $ac_status); } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1779 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1780 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1781 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1783 | (exit $ac_status); } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1784 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1785 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1786 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1788 | (exit $ac_status); } |
| 1789 | |
| 1790 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1791 | /* confdefs.h. */ |
| 1792 | _ACEOF |
| 1793 | cat confdefs.h >>conftest.$ac_ext |
| 1794 | cat >>conftest.$ac_ext <<_ACEOF |
| 1795 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1796 | |
| 1797 | int |
| 1798 | main () |
| 1799 | { |
| 1800 | |
| 1801 | ; |
| 1802 | return 0; |
| 1803 | } |
| 1804 | _ACEOF |
| 1805 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1806 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1807 | # Try to create an executable without -o first, disregard a.out. |
| 1808 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1809 | # of exeext. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1810 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1811 | 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] | 1812 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1813 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1814 | (eval $ac_link_default) 2>&5 |
| 1815 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1817 | (exit $ac_status); }; then |
| 1818 | # Find the output, starting from the most likely. This scheme is |
| 1819 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1820 | # resort. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1821 | |
| 1822 | # Be careful to initialize this variable, since it used to be cached. |
| 1823 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1824 | ac_cv_exeext= |
| 1825 | # b.out is created by i960 compilers. |
| 1826 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1827 | do |
| 1828 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1829 | case $ac_file in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1830 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1831 | ;; |
| 1832 | conftest.$ac_ext ) |
| 1833 | # This is the source file. |
| 1834 | ;; |
| 1835 | [ab].out ) |
| 1836 | # We found the default executable, but exeext='' is most |
| 1837 | # certainly right. |
| 1838 | break;; |
| 1839 | *.* ) |
| 1840 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1841 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1842 | # but it would be cool to find out if it's true. Does anybody |
| 1843 | # maintain Libtool? --akim. |
| 1844 | export ac_cv_exeext |
| 1845 | break;; |
| 1846 | * ) |
| 1847 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1848 | esac |
| 1849 | done |
| 1850 | else |
| 1851 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1853 | |
| 1854 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1855 | See \`config.log' for more details." >&5 |
| 1856 | echo "$as_me: error: C compiler cannot create executables |
| 1857 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1858 | { (exit 77); exit 77; }; } |
| 1859 | fi |
| 1860 | |
| 1861 | ac_exeext=$ac_cv_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1862 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1863 | echo "${ECHO_T}$ac_file" >&6 |
| 1864 | |
| 1865 | # Check the compiler produces executables we can run. If not, either |
| 1866 | # the compiler is broken, or we cross compile. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1867 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1868 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1869 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1870 | # If not cross compiling, check that we can run a simple program. |
| 1871 | if test "$cross_compiling" != yes; then |
| 1872 | if { ac_try='./$ac_file' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1874 | (eval $ac_try) 2>&5 |
| 1875 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1877 | (exit $ac_status); }; }; then |
| 1878 | cross_compiling=no |
| 1879 | else |
| 1880 | if test "$cross_compiling" = maybe; then |
| 1881 | cross_compiling=yes |
| 1882 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1883 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1884 | If you meant to cross compile, use \`--host'. |
| 1885 | See \`config.log' for more details." >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1886 | echo "$as_me: error: cannot run C compiled programs. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1887 | If you meant to cross compile, use \`--host'. |
| 1888 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1889 | { (exit 1); exit 1; }; } |
| 1890 | fi |
| 1891 | fi |
| 1892 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1893 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1894 | echo "${ECHO_T}yes" >&6 |
| 1895 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1896 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1897 | ac_clean_files=$ac_clean_files_save |
| 1898 | # Check the compiler produces executables we can run. If not, either |
| 1899 | # the compiler is broken, or we cross compile. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1900 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1901 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1902 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1903 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1904 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1905 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1906 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1908 | (eval $ac_link) 2>&5 |
| 1909 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1911 | (exit $ac_status); }; then |
| 1912 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1913 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1914 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1915 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1916 | for ac_file in conftest.exe conftest conftest.*; do |
| 1917 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1918 | case $ac_file in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1919 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1920 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1921 | export ac_cv_exeext |
| 1922 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1923 | * ) break;; |
| 1924 | esac |
| 1925 | done |
| 1926 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1927 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1928 | See \`config.log' for more details." >&5 |
| 1929 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1930 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1931 | { (exit 1); exit 1; }; } |
| 1932 | fi |
| 1933 | |
| 1934 | rm -f conftest$ac_cv_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1935 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1936 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1937 | |
| 1938 | rm -f conftest.$ac_ext |
| 1939 | EXEEXT=$ac_cv_exeext |
| 1940 | ac_exeext=$EXEEXT |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1941 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1942 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1943 | if test "${ac_cv_objext+set}" = set; then |
| 1944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1945 | else |
| 1946 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1947 | /* confdefs.h. */ |
| 1948 | _ACEOF |
| 1949 | cat confdefs.h >>conftest.$ac_ext |
| 1950 | cat >>conftest.$ac_ext <<_ACEOF |
| 1951 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1952 | |
| 1953 | int |
| 1954 | main () |
| 1955 | { |
| 1956 | |
| 1957 | ; |
| 1958 | return 0; |
| 1959 | } |
| 1960 | _ACEOF |
| 1961 | rm -f conftest.o conftest.obj |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1963 | (eval $ac_compile) 2>&5 |
| 1964 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1966 | (exit $ac_status); }; then |
| 1967 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1968 | case $ac_file in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1969 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1970 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1971 | break;; |
| 1972 | esac |
| 1973 | done |
| 1974 | else |
| 1975 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1977 | |
| 1978 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1979 | See \`config.log' for more details." >&5 |
| 1980 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1981 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1982 | { (exit 1); exit 1; }; } |
| 1983 | fi |
| 1984 | |
| 1985 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1986 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1987 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1988 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1989 | OBJEXT=$ac_cv_objext |
| 1990 | ac_objext=$OBJEXT |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1991 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1992 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1993 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1995 | else |
| 1996 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1997 | /* confdefs.h. */ |
| 1998 | _ACEOF |
| 1999 | cat confdefs.h >>conftest.$ac_ext |
| 2000 | cat >>conftest.$ac_ext <<_ACEOF |
| 2001 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2002 | |
| 2003 | int |
| 2004 | main () |
| 2005 | { |
| 2006 | #ifndef __GNUC__ |
| 2007 | choke me |
| 2008 | #endif |
| 2009 | |
| 2010 | ; |
| 2011 | return 0; |
| 2012 | } |
| 2013 | _ACEOF |
| 2014 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2016 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2017 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2019 | rm -f conftest.er1 |
| 2020 | cat conftest.err >&5 |
| 2021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2022 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2023 | { ac_try='test -z "$ac_c_werror_flag" |
| 2024 | || test ! -s conftest.err' |
| 2025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2026 | (eval $ac_try) 2>&5 |
| 2027 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2029 | (exit $ac_status); }; } && |
| 2030 | { ac_try='test -s conftest.$ac_objext' |
| 2031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2032 | (eval $ac_try) 2>&5 |
| 2033 | ac_status=$? |
| 2034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2035 | (exit $ac_status); }; }; then |
| 2036 | ac_compiler_gnu=yes |
| 2037 | else |
| 2038 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2040 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2041 | ac_compiler_gnu=no |
| 2042 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2044 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2045 | |
| 2046 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2047 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2048 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2049 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2050 | ac_test_CFLAGS=${CFLAGS+set} |
| 2051 | ac_save_CFLAGS=$CFLAGS |
| 2052 | CFLAGS="-g" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2053 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2054 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2055 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2057 | else |
| 2058 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2059 | /* confdefs.h. */ |
| 2060 | _ACEOF |
| 2061 | cat confdefs.h >>conftest.$ac_ext |
| 2062 | cat >>conftest.$ac_ext <<_ACEOF |
| 2063 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2064 | |
| 2065 | int |
| 2066 | main () |
| 2067 | { |
| 2068 | |
| 2069 | ; |
| 2070 | return 0; |
| 2071 | } |
| 2072 | _ACEOF |
| 2073 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2075 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2076 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2078 | rm -f conftest.er1 |
| 2079 | cat conftest.err >&5 |
| 2080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2081 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2082 | { ac_try='test -z "$ac_c_werror_flag" |
| 2083 | || test ! -s conftest.err' |
| 2084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2085 | (eval $ac_try) 2>&5 |
| 2086 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2088 | (exit $ac_status); }; } && |
| 2089 | { ac_try='test -s conftest.$ac_objext' |
| 2090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2091 | (eval $ac_try) 2>&5 |
| 2092 | ac_status=$? |
| 2093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2094 | (exit $ac_status); }; }; then |
| 2095 | ac_cv_prog_cc_g=yes |
| 2096 | else |
| 2097 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2099 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2100 | ac_cv_prog_cc_g=no |
| 2101 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2103 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2104 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2105 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2106 | if test "$ac_test_CFLAGS" = set; then |
| 2107 | CFLAGS=$ac_save_CFLAGS |
| 2108 | elif test $ac_cv_prog_cc_g = yes; then |
| 2109 | if test "$GCC" = yes; then |
| 2110 | CFLAGS="-g -O2" |
| 2111 | else |
| 2112 | CFLAGS="-g" |
| 2113 | fi |
| 2114 | else |
| 2115 | if test "$GCC" = yes; then |
| 2116 | CFLAGS="-O2" |
| 2117 | else |
| 2118 | CFLAGS= |
| 2119 | fi |
| 2120 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2121 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2122 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2123 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2125 | else |
| 2126 | ac_cv_prog_cc_stdc=no |
| 2127 | ac_save_CC=$CC |
| 2128 | cat >conftest.$ac_ext <<_ACEOF |
| 2129 | /* confdefs.h. */ |
| 2130 | _ACEOF |
| 2131 | cat confdefs.h >>conftest.$ac_ext |
| 2132 | cat >>conftest.$ac_ext <<_ACEOF |
| 2133 | /* end confdefs.h. */ |
| 2134 | #include <stdarg.h> |
| 2135 | #include <stdio.h> |
| 2136 | #include <sys/types.h> |
| 2137 | #include <sys/stat.h> |
| 2138 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2139 | struct buf { int x; }; |
| 2140 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2141 | static char *e (p, i) |
| 2142 | char **p; |
| 2143 | int i; |
| 2144 | { |
| 2145 | return p[i]; |
| 2146 | } |
| 2147 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2148 | { |
| 2149 | char *s; |
| 2150 | va_list v; |
| 2151 | va_start (v,p); |
| 2152 | s = g (p, va_arg (v,int)); |
| 2153 | va_end (v); |
| 2154 | return s; |
| 2155 | } |
| 2156 | |
| 2157 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2158 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2159 | These don't provoke an error unfortunately, instead are silently treated |
| 2160 | as 'x'. The following induces an error, until -std1 is added to get |
| 2161 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2162 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2163 | that's true only with -std1. */ |
| 2164 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2165 | |
| 2166 | int test (int i, double x); |
| 2167 | struct s1 {int (*f) (int a);}; |
| 2168 | struct s2 {int (*f) (double a);}; |
| 2169 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2170 | int argc; |
| 2171 | char **argv; |
| 2172 | int |
| 2173 | main () |
| 2174 | { |
| 2175 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2176 | ; |
| 2177 | return 0; |
| 2178 | } |
| 2179 | _ACEOF |
| 2180 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2181 | # breaks some systems' header files. |
| 2182 | # AIX -qlanglvl=ansi |
| 2183 | # Ultrix and OSF/1 -std1 |
| 2184 | # HP-UX 10.20 and later -Ae |
| 2185 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2186 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2187 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2188 | do |
| 2189 | CC="$ac_save_CC $ac_arg" |
| 2190 | rm -f conftest.$ac_objext |
| 2191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2192 | (eval $ac_compile) 2>conftest.er1 |
| 2193 | ac_status=$? |
| 2194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2195 | rm -f conftest.er1 |
| 2196 | cat conftest.err >&5 |
| 2197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2198 | (exit $ac_status); } && |
| 2199 | { ac_try='test -z "$ac_c_werror_flag" |
| 2200 | || test ! -s conftest.err' |
| 2201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2202 | (eval $ac_try) 2>&5 |
| 2203 | ac_status=$? |
| 2204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2205 | (exit $ac_status); }; } && |
| 2206 | { ac_try='test -s conftest.$ac_objext' |
| 2207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2208 | (eval $ac_try) 2>&5 |
| 2209 | ac_status=$? |
| 2210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2211 | (exit $ac_status); }; }; then |
| 2212 | ac_cv_prog_cc_stdc=$ac_arg |
| 2213 | break |
| 2214 | else |
| 2215 | echo "$as_me: failed program was:" >&5 |
| 2216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2217 | |
| 2218 | fi |
| 2219 | rm -f conftest.err conftest.$ac_objext |
| 2220 | done |
| 2221 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2222 | CC=$ac_save_CC |
| 2223 | |
| 2224 | fi |
| 2225 | |
| 2226 | case "x$ac_cv_prog_cc_stdc" in |
| 2227 | x|xno) |
| 2228 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2229 | echo "${ECHO_T}none needed" >&6 ;; |
| 2230 | *) |
| 2231 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2232 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2233 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2234 | esac |
| 2235 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2236 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2237 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2238 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2239 | # the declaration of exit, since it's the most demanding environment. |
| 2240 | cat >conftest.$ac_ext <<_ACEOF |
| 2241 | #ifndef __cplusplus |
| 2242 | choke me |
| 2243 | #endif |
| 2244 | _ACEOF |
| 2245 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2247 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2248 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2250 | rm -f conftest.er1 |
| 2251 | cat conftest.err >&5 |
| 2252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2253 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2254 | { ac_try='test -z "$ac_c_werror_flag" |
| 2255 | || test ! -s conftest.err' |
| 2256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2257 | (eval $ac_try) 2>&5 |
| 2258 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2260 | (exit $ac_status); }; } && |
| 2261 | { ac_try='test -s conftest.$ac_objext' |
| 2262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2263 | (eval $ac_try) 2>&5 |
| 2264 | ac_status=$? |
| 2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2266 | (exit $ac_status); }; }; then |
| 2267 | for ac_declaration in \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2268 | '' \ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2269 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2270 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2271 | 'extern "C" void exit (int) throw ();' \ |
| 2272 | 'extern "C" void exit (int);' \ |
| 2273 | 'void exit (int);' |
| 2274 | do |
| 2275 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2276 | /* confdefs.h. */ |
| 2277 | _ACEOF |
| 2278 | cat confdefs.h >>conftest.$ac_ext |
| 2279 | cat >>conftest.$ac_ext <<_ACEOF |
| 2280 | /* end confdefs.h. */ |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 2281 | $ac_declaration |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2282 | #include <stdlib.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2283 | int |
| 2284 | main () |
| 2285 | { |
| 2286 | exit (42); |
| 2287 | ; |
| 2288 | return 0; |
| 2289 | } |
| 2290 | _ACEOF |
| 2291 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2293 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2294 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2296 | rm -f conftest.er1 |
| 2297 | cat conftest.err >&5 |
| 2298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2299 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2300 | { ac_try='test -z "$ac_c_werror_flag" |
| 2301 | || test ! -s conftest.err' |
| 2302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2303 | (eval $ac_try) 2>&5 |
| 2304 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2306 | (exit $ac_status); }; } && |
| 2307 | { ac_try='test -s conftest.$ac_objext' |
| 2308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2309 | (eval $ac_try) 2>&5 |
| 2310 | ac_status=$? |
| 2311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2312 | (exit $ac_status); }; }; then |
| 2313 | : |
| 2314 | else |
| 2315 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2317 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2318 | continue |
| 2319 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2321 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2322 | /* confdefs.h. */ |
| 2323 | _ACEOF |
| 2324 | cat confdefs.h >>conftest.$ac_ext |
| 2325 | cat >>conftest.$ac_ext <<_ACEOF |
| 2326 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2327 | $ac_declaration |
| 2328 | int |
| 2329 | main () |
| 2330 | { |
| 2331 | exit (42); |
| 2332 | ; |
| 2333 | return 0; |
| 2334 | } |
| 2335 | _ACEOF |
| 2336 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2338 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2339 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2341 | rm -f conftest.er1 |
| 2342 | cat conftest.err >&5 |
| 2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2344 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2345 | { ac_try='test -z "$ac_c_werror_flag" |
| 2346 | || test ! -s conftest.err' |
| 2347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2348 | (eval $ac_try) 2>&5 |
| 2349 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2351 | (exit $ac_status); }; } && |
| 2352 | { ac_try='test -s conftest.$ac_objext' |
| 2353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2354 | (eval $ac_try) 2>&5 |
| 2355 | ac_status=$? |
| 2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2357 | (exit $ac_status); }; }; then |
| 2358 | break |
| 2359 | else |
| 2360 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2362 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2363 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2365 | done |
| 2366 | rm -f conftest* |
| 2367 | if test -n "$ac_declaration"; then |
| 2368 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2369 | echo $ac_declaration >>confdefs.h |
| 2370 | echo '#endif' >>confdefs.h |
| 2371 | fi |
| 2372 | |
| 2373 | else |
| 2374 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2376 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2377 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2379 | ac_ext=c |
| 2380 | ac_cpp='$CPP $CPPFLAGS' |
| 2381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2384 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2385 | ac_ext=cc |
| 2386 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2387 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2388 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2389 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2390 | if test -n "$ac_tool_prefix"; then |
| 2391 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2392 | do |
| 2393 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2394 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2397 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2399 | else |
| 2400 | if test -n "$CXX"; then |
| 2401 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2402 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2404 | for as_dir in $PATH |
| 2405 | do |
| 2406 | IFS=$as_save_IFS |
| 2407 | test -z "$as_dir" && as_dir=. |
| 2408 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2409 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2410 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2411 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2412 | break 2 |
| 2413 | fi |
| 2414 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2415 | done |
| 2416 | |
| 2417 | fi |
| 2418 | fi |
| 2419 | CXX=$ac_cv_prog_CXX |
| 2420 | if test -n "$CXX"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2421 | echo "$as_me:$LINENO: result: $CXX" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2422 | echo "${ECHO_T}$CXX" >&6 |
| 2423 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2424 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2425 | echo "${ECHO_T}no" >&6 |
| 2426 | fi |
| 2427 | |
| 2428 | test -n "$CXX" && break |
| 2429 | done |
| 2430 | fi |
| 2431 | if test -z "$CXX"; then |
| 2432 | ac_ct_CXX=$CXX |
| 2433 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2434 | do |
| 2435 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2436 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2439 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2441 | else |
| 2442 | if test -n "$ac_ct_CXX"; then |
| 2443 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2444 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2446 | for as_dir in $PATH |
| 2447 | do |
| 2448 | IFS=$as_save_IFS |
| 2449 | test -z "$as_dir" && as_dir=. |
| 2450 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2451 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2452 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2454 | break 2 |
| 2455 | fi |
| 2456 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2457 | done |
| 2458 | |
| 2459 | fi |
| 2460 | fi |
| 2461 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2462 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2463 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2464 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 2465 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2466 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2467 | echo "${ECHO_T}no" >&6 |
| 2468 | fi |
| 2469 | |
| 2470 | test -n "$ac_ct_CXX" && break |
| 2471 | done |
| 2472 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 2473 | |
| 2474 | CXX=$ac_ct_CXX |
| 2475 | fi |
| 2476 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2477 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2478 | # Provide some information about the compiler. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2479 | echo "$as_me:$LINENO:" \ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2480 | "checking for C++ compiler version" >&5 |
| 2481 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2482 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2483 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2484 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2486 | (exit $ac_status); } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2487 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2488 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2489 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2491 | (exit $ac_status); } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2492 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2493 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2494 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2496 | (exit $ac_status); } |
| 2497 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2498 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2499 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2500 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2502 | else |
| 2503 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2504 | /* confdefs.h. */ |
| 2505 | _ACEOF |
| 2506 | cat confdefs.h >>conftest.$ac_ext |
| 2507 | cat >>conftest.$ac_ext <<_ACEOF |
| 2508 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2509 | |
| 2510 | int |
| 2511 | main () |
| 2512 | { |
| 2513 | #ifndef __GNUC__ |
| 2514 | choke me |
| 2515 | #endif |
| 2516 | |
| 2517 | ; |
| 2518 | return 0; |
| 2519 | } |
| 2520 | _ACEOF |
| 2521 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2523 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2524 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2526 | rm -f conftest.er1 |
| 2527 | cat conftest.err >&5 |
| 2528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2529 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2530 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2531 | || test ! -s conftest.err' |
| 2532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2533 | (eval $ac_try) 2>&5 |
| 2534 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2536 | (exit $ac_status); }; } && |
| 2537 | { ac_try='test -s conftest.$ac_objext' |
| 2538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2539 | (eval $ac_try) 2>&5 |
| 2540 | ac_status=$? |
| 2541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2542 | (exit $ac_status); }; }; then |
| 2543 | ac_compiler_gnu=yes |
| 2544 | else |
| 2545 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2547 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2548 | ac_compiler_gnu=no |
| 2549 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2551 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2552 | |
| 2553 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2554 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2555 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2556 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2557 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2558 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2559 | CXXFLAGS="-g" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2560 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2561 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2562 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2564 | else |
| 2565 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2566 | /* confdefs.h. */ |
| 2567 | _ACEOF |
| 2568 | cat confdefs.h >>conftest.$ac_ext |
| 2569 | cat >>conftest.$ac_ext <<_ACEOF |
| 2570 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2571 | |
| 2572 | int |
| 2573 | main () |
| 2574 | { |
| 2575 | |
| 2576 | ; |
| 2577 | return 0; |
| 2578 | } |
| 2579 | _ACEOF |
| 2580 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2582 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2583 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2584 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2585 | rm -f conftest.er1 |
| 2586 | cat conftest.err >&5 |
| 2587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2588 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2589 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2590 | || test ! -s conftest.err' |
| 2591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2592 | (eval $ac_try) 2>&5 |
| 2593 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2595 | (exit $ac_status); }; } && |
| 2596 | { ac_try='test -s conftest.$ac_objext' |
| 2597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2598 | (eval $ac_try) 2>&5 |
| 2599 | ac_status=$? |
| 2600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2601 | (exit $ac_status); }; }; then |
| 2602 | ac_cv_prog_cxx_g=yes |
| 2603 | else |
| 2604 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2606 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2607 | ac_cv_prog_cxx_g=no |
| 2608 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2610 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2611 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2612 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 2613 | if test "$ac_test_CXXFLAGS" = set; then |
| 2614 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2615 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2616 | if test "$GXX" = yes; then |
| 2617 | CXXFLAGS="-g -O2" |
| 2618 | else |
| 2619 | CXXFLAGS="-g" |
| 2620 | fi |
| 2621 | else |
| 2622 | if test "$GXX" = yes; then |
| 2623 | CXXFLAGS="-O2" |
| 2624 | else |
| 2625 | CXXFLAGS= |
| 2626 | fi |
| 2627 | fi |
| 2628 | for ac_declaration in \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2629 | '' \ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2630 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2631 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2632 | 'extern "C" void exit (int) throw ();' \ |
| 2633 | 'extern "C" void exit (int);' \ |
| 2634 | 'void exit (int);' |
| 2635 | do |
| 2636 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2637 | /* confdefs.h. */ |
| 2638 | _ACEOF |
| 2639 | cat confdefs.h >>conftest.$ac_ext |
| 2640 | cat >>conftest.$ac_ext <<_ACEOF |
| 2641 | /* end confdefs.h. */ |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 2642 | $ac_declaration |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2643 | #include <stdlib.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2644 | int |
| 2645 | main () |
| 2646 | { |
| 2647 | exit (42); |
| 2648 | ; |
| 2649 | return 0; |
| 2650 | } |
| 2651 | _ACEOF |
| 2652 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2654 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2655 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2657 | rm -f conftest.er1 |
| 2658 | cat conftest.err >&5 |
| 2659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2660 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2661 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2662 | || test ! -s conftest.err' |
| 2663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2664 | (eval $ac_try) 2>&5 |
| 2665 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2667 | (exit $ac_status); }; } && |
| 2668 | { ac_try='test -s conftest.$ac_objext' |
| 2669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2670 | (eval $ac_try) 2>&5 |
| 2671 | ac_status=$? |
| 2672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2673 | (exit $ac_status); }; }; then |
| 2674 | : |
| 2675 | else |
| 2676 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2678 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2679 | continue |
| 2680 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2682 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2683 | /* confdefs.h. */ |
| 2684 | _ACEOF |
| 2685 | cat confdefs.h >>conftest.$ac_ext |
| 2686 | cat >>conftest.$ac_ext <<_ACEOF |
| 2687 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2688 | $ac_declaration |
| 2689 | int |
| 2690 | main () |
| 2691 | { |
| 2692 | exit (42); |
| 2693 | ; |
| 2694 | return 0; |
| 2695 | } |
| 2696 | _ACEOF |
| 2697 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2699 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2700 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2702 | rm -f conftest.er1 |
| 2703 | cat conftest.err >&5 |
| 2704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2705 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2706 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2707 | || test ! -s conftest.err' |
| 2708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2709 | (eval $ac_try) 2>&5 |
| 2710 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2712 | (exit $ac_status); }; } && |
| 2713 | { ac_try='test -s conftest.$ac_objext' |
| 2714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2715 | (eval $ac_try) 2>&5 |
| 2716 | ac_status=$? |
| 2717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2718 | (exit $ac_status); }; }; then |
| 2719 | break |
| 2720 | else |
| 2721 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2723 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2724 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2726 | done |
| 2727 | rm -f conftest* |
| 2728 | if test -n "$ac_declaration"; then |
| 2729 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2730 | echo $ac_declaration >>confdefs.h |
| 2731 | echo '#endif' >>confdefs.h |
| 2732 | fi |
| 2733 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2734 | ac_ext=c |
| 2735 | ac_cpp='$CPP $CPPFLAGS' |
| 2736 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2737 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2738 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2739 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2740 | ac_ext=c |
| 2741 | ac_cpp='$CPP $CPPFLAGS' |
| 2742 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2743 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2744 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2745 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2746 | |
| 2747 | |
| 2748 | |
| 2749 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2750 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 2751 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 2752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2753 | else |
| 2754 | ac_check_lib_save_LIBS=$LIBS |
| 2755 | LIBS="-lpthread $LIBS" |
| 2756 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2757 | /* confdefs.h. */ |
| 2758 | _ACEOF |
| 2759 | cat confdefs.h >>conftest.$ac_ext |
| 2760 | cat >>conftest.$ac_ext <<_ACEOF |
| 2761 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2762 | |
| 2763 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2764 | #ifdef __cplusplus |
| 2765 | extern "C" |
| 2766 | #endif |
| 2767 | /* We use char because int might match the return type of a gcc2 |
| 2768 | builtin and then its argument prototype would still apply. */ |
| 2769 | char pthread_create (); |
| 2770 | int |
| 2771 | main () |
| 2772 | { |
| 2773 | pthread_create (); |
| 2774 | ; |
| 2775 | return 0; |
| 2776 | } |
| 2777 | _ACEOF |
| 2778 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2780 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2781 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2783 | rm -f conftest.er1 |
| 2784 | cat conftest.err >&5 |
| 2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2786 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2787 | { ac_try='test -z "$ac_c_werror_flag" |
| 2788 | || test ! -s conftest.err' |
| 2789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2790 | (eval $ac_try) 2>&5 |
| 2791 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2793 | (exit $ac_status); }; } && |
| 2794 | { ac_try='test -s conftest$ac_exeext' |
| 2795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2796 | (eval $ac_try) 2>&5 |
| 2797 | ac_status=$? |
| 2798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2799 | (exit $ac_status); }; }; then |
| 2800 | ac_cv_lib_pthread_pthread_create=yes |
| 2801 | else |
| 2802 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2804 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2805 | ac_cv_lib_pthread_pthread_create=no |
| 2806 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2807 | rm -f conftest.err conftest.$ac_objext \ |
| 2808 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2809 | LIBS=$ac_check_lib_save_LIBS |
| 2810 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2811 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2812 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
| 2813 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2814 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2815 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2816 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2817 | |
| 2818 | LIBS="-lpthread $LIBS" |
| 2819 | |
| 2820 | fi |
| 2821 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2822 | |
| 2823 | echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2824 | echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6 |
| 2825 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then |
| 2826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2827 | else |
| 2828 | ac_check_lib_save_LIBS=$LIBS |
| 2829 | LIBS="-lwsock32 $LIBS" |
| 2830 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2831 | /* confdefs.h. */ |
| 2832 | _ACEOF |
| 2833 | cat confdefs.h >>conftest.$ac_ext |
| 2834 | cat >>conftest.$ac_ext <<_ACEOF |
| 2835 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2836 | |
| 2837 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2838 | #ifdef __cplusplus |
| 2839 | extern "C" |
| 2840 | #endif |
| 2841 | /* We use char because int might match the return type of a gcc2 |
| 2842 | builtin and then its argument prototype would still apply. */ |
| 2843 | char puts (); |
| 2844 | int |
| 2845 | main () |
| 2846 | { |
| 2847 | puts (); |
| 2848 | ; |
| 2849 | return 0; |
| 2850 | } |
| 2851 | _ACEOF |
| 2852 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2854 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2855 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2857 | rm -f conftest.er1 |
| 2858 | cat conftest.err >&5 |
| 2859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2860 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2861 | { ac_try='test -z "$ac_c_werror_flag" |
| 2862 | || test ! -s conftest.err' |
| 2863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2864 | (eval $ac_try) 2>&5 |
| 2865 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2867 | (exit $ac_status); }; } && |
| 2868 | { ac_try='test -s conftest$ac_exeext' |
| 2869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2870 | (eval $ac_try) 2>&5 |
| 2871 | ac_status=$? |
| 2872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2873 | (exit $ac_status); }; }; then |
| 2874 | ac_cv_lib_wsock32_puts=yes |
| 2875 | else |
| 2876 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2878 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2879 | ac_cv_lib_wsock32_puts=no |
| 2880 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2881 | rm -f conftest.err conftest.$ac_objext \ |
| 2882 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2883 | LIBS=$ac_check_lib_save_LIBS |
| 2884 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2885 | echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2886 | echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6 |
| 2887 | if test $ac_cv_lib_wsock32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2888 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2889 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2890 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2891 | |
| 2892 | LIBS="-lwsock32 $LIBS" |
| 2893 | |
| 2894 | fi |
| 2895 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2896 | |
| 2897 | echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2898 | echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6 |
| 2899 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then |
| 2900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2901 | else |
| 2902 | ac_check_lib_save_LIBS=$LIBS |
| 2903 | LIBS="-lws2_32 $LIBS" |
| 2904 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2905 | /* confdefs.h. */ |
| 2906 | _ACEOF |
| 2907 | cat confdefs.h >>conftest.$ac_ext |
| 2908 | cat >>conftest.$ac_ext <<_ACEOF |
| 2909 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2910 | |
| 2911 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2912 | #ifdef __cplusplus |
| 2913 | extern "C" |
| 2914 | #endif |
| 2915 | /* We use char because int might match the return type of a gcc2 |
| 2916 | builtin and then its argument prototype would still apply. */ |
| 2917 | char puts (); |
| 2918 | int |
| 2919 | main () |
| 2920 | { |
| 2921 | puts (); |
| 2922 | ; |
| 2923 | return 0; |
| 2924 | } |
| 2925 | _ACEOF |
| 2926 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2928 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2929 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2931 | rm -f conftest.er1 |
| 2932 | cat conftest.err >&5 |
| 2933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2934 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2935 | { ac_try='test -z "$ac_c_werror_flag" |
| 2936 | || test ! -s conftest.err' |
| 2937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2938 | (eval $ac_try) 2>&5 |
| 2939 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2941 | (exit $ac_status); }; } && |
| 2942 | { ac_try='test -s conftest$ac_exeext' |
| 2943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2944 | (eval $ac_try) 2>&5 |
| 2945 | ac_status=$? |
| 2946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2947 | (exit $ac_status); }; }; then |
| 2948 | ac_cv_lib_ws2_32_puts=yes |
| 2949 | else |
| 2950 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2952 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2953 | ac_cv_lib_ws2_32_puts=no |
| 2954 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2955 | rm -f conftest.err conftest.$ac_objext \ |
| 2956 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2957 | LIBS=$ac_check_lib_save_LIBS |
| 2958 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2959 | echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2960 | echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6 |
| 2961 | if test $ac_cv_lib_ws2_32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2962 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2963 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2964 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2965 | |
| 2966 | LIBS="-lws2_32 $LIBS" |
| 2967 | |
| 2968 | fi |
| 2969 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2970 | |
| 2971 | echo "$as_me:$LINENO: checking for puts in -lole32" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2972 | echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6 |
| 2973 | if test "${ac_cv_lib_ole32_puts+set}" = set; then |
| 2974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2975 | else |
| 2976 | ac_check_lib_save_LIBS=$LIBS |
| 2977 | LIBS="-lole32 $LIBS" |
| 2978 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2979 | /* confdefs.h. */ |
| 2980 | _ACEOF |
| 2981 | cat confdefs.h >>conftest.$ac_ext |
| 2982 | cat >>conftest.$ac_ext <<_ACEOF |
| 2983 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2984 | |
| 2985 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2986 | #ifdef __cplusplus |
| 2987 | extern "C" |
| 2988 | #endif |
| 2989 | /* We use char because int might match the return type of a gcc2 |
| 2990 | builtin and then its argument prototype would still apply. */ |
| 2991 | char puts (); |
| 2992 | int |
| 2993 | main () |
| 2994 | { |
| 2995 | puts (); |
| 2996 | ; |
| 2997 | return 0; |
| 2998 | } |
| 2999 | _ACEOF |
| 3000 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3002 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3003 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3005 | rm -f conftest.er1 |
| 3006 | cat conftest.err >&5 |
| 3007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3008 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3009 | { ac_try='test -z "$ac_c_werror_flag" |
| 3010 | || test ! -s conftest.err' |
| 3011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3012 | (eval $ac_try) 2>&5 |
| 3013 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3015 | (exit $ac_status); }; } && |
| 3016 | { ac_try='test -s conftest$ac_exeext' |
| 3017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3018 | (eval $ac_try) 2>&5 |
| 3019 | ac_status=$? |
| 3020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3021 | (exit $ac_status); }; }; then |
| 3022 | ac_cv_lib_ole32_puts=yes |
| 3023 | else |
| 3024 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3026 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3027 | ac_cv_lib_ole32_puts=no |
| 3028 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3029 | rm -f conftest.err conftest.$ac_objext \ |
| 3030 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3031 | LIBS=$ac_check_lib_save_LIBS |
| 3032 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3033 | echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3034 | echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6 |
| 3035 | if test $ac_cv_lib_ole32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3036 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3037 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3038 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3039 | |
| 3040 | LIBS="-lole32 $LIBS" |
| 3041 | |
| 3042 | fi |
| 3043 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3044 | |
| 3045 | echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3046 | echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6 |
| 3047 | if test "${ac_cv_lib_winmm_puts+set}" = set; then |
| 3048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3049 | else |
| 3050 | ac_check_lib_save_LIBS=$LIBS |
| 3051 | LIBS="-lwinmm $LIBS" |
| 3052 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3053 | /* confdefs.h. */ |
| 3054 | _ACEOF |
| 3055 | cat confdefs.h >>conftest.$ac_ext |
| 3056 | cat >>conftest.$ac_ext <<_ACEOF |
| 3057 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3058 | |
| 3059 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3060 | #ifdef __cplusplus |
| 3061 | extern "C" |
| 3062 | #endif |
| 3063 | /* We use char because int might match the return type of a gcc2 |
| 3064 | builtin and then its argument prototype would still apply. */ |
| 3065 | char puts (); |
| 3066 | int |
| 3067 | main () |
| 3068 | { |
| 3069 | puts (); |
| 3070 | ; |
| 3071 | return 0; |
| 3072 | } |
| 3073 | _ACEOF |
| 3074 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3076 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3077 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3079 | rm -f conftest.er1 |
| 3080 | cat conftest.err >&5 |
| 3081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3082 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3083 | { ac_try='test -z "$ac_c_werror_flag" |
| 3084 | || test ! -s conftest.err' |
| 3085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3086 | (eval $ac_try) 2>&5 |
| 3087 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3089 | (exit $ac_status); }; } && |
| 3090 | { ac_try='test -s conftest$ac_exeext' |
| 3091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3092 | (eval $ac_try) 2>&5 |
| 3093 | ac_status=$? |
| 3094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3095 | (exit $ac_status); }; }; then |
| 3096 | ac_cv_lib_winmm_puts=yes |
| 3097 | else |
| 3098 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3100 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3101 | ac_cv_lib_winmm_puts=no |
| 3102 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3103 | rm -f conftest.err conftest.$ac_objext \ |
| 3104 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3105 | LIBS=$ac_check_lib_save_LIBS |
| 3106 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3107 | echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3108 | echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6 |
| 3109 | if test $ac_cv_lib_winmm_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3110 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3111 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3112 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3113 | |
| 3114 | LIBS="-lwinmm $LIBS" |
| 3115 | |
| 3116 | fi |
| 3117 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3118 | |
| 3119 | echo "$as_me:$LINENO: checking for puts in -lsocket" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3120 | echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6 |
| 3121 | if test "${ac_cv_lib_socket_puts+set}" = set; then |
| 3122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3123 | else |
| 3124 | ac_check_lib_save_LIBS=$LIBS |
| 3125 | LIBS="-lsocket $LIBS" |
| 3126 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3127 | /* confdefs.h. */ |
| 3128 | _ACEOF |
| 3129 | cat confdefs.h >>conftest.$ac_ext |
| 3130 | cat >>conftest.$ac_ext <<_ACEOF |
| 3131 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3132 | |
| 3133 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3134 | #ifdef __cplusplus |
| 3135 | extern "C" |
| 3136 | #endif |
| 3137 | /* We use char because int might match the return type of a gcc2 |
| 3138 | builtin and then its argument prototype would still apply. */ |
| 3139 | char puts (); |
| 3140 | int |
| 3141 | main () |
| 3142 | { |
| 3143 | puts (); |
| 3144 | ; |
| 3145 | return 0; |
| 3146 | } |
| 3147 | _ACEOF |
| 3148 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3150 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3151 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3153 | rm -f conftest.er1 |
| 3154 | cat conftest.err >&5 |
| 3155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3156 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3157 | { ac_try='test -z "$ac_c_werror_flag" |
| 3158 | || test ! -s conftest.err' |
| 3159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3160 | (eval $ac_try) 2>&5 |
| 3161 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3163 | (exit $ac_status); }; } && |
| 3164 | { ac_try='test -s conftest$ac_exeext' |
| 3165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3166 | (eval $ac_try) 2>&5 |
| 3167 | ac_status=$? |
| 3168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3169 | (exit $ac_status); }; }; then |
| 3170 | ac_cv_lib_socket_puts=yes |
| 3171 | else |
| 3172 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3174 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3175 | ac_cv_lib_socket_puts=no |
| 3176 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3177 | rm -f conftest.err conftest.$ac_objext \ |
| 3178 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3179 | LIBS=$ac_check_lib_save_LIBS |
| 3180 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3181 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3182 | echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6 |
| 3183 | if test $ac_cv_lib_socket_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3184 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3185 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3186 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3187 | |
| 3188 | LIBS="-lsocket $LIBS" |
| 3189 | |
| 3190 | fi |
| 3191 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3192 | |
| 3193 | echo "$as_me:$LINENO: checking for puts in -lrt" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3194 | echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6 |
| 3195 | if test "${ac_cv_lib_rt_puts+set}" = set; then |
| 3196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3197 | else |
| 3198 | ac_check_lib_save_LIBS=$LIBS |
| 3199 | LIBS="-lrt $LIBS" |
| 3200 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3201 | /* confdefs.h. */ |
| 3202 | _ACEOF |
| 3203 | cat confdefs.h >>conftest.$ac_ext |
| 3204 | cat >>conftest.$ac_ext <<_ACEOF |
| 3205 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3206 | |
| 3207 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3208 | #ifdef __cplusplus |
| 3209 | extern "C" |
| 3210 | #endif |
| 3211 | /* We use char because int might match the return type of a gcc2 |
| 3212 | builtin and then its argument prototype would still apply. */ |
| 3213 | char puts (); |
| 3214 | int |
| 3215 | main () |
| 3216 | { |
| 3217 | puts (); |
| 3218 | ; |
| 3219 | return 0; |
| 3220 | } |
| 3221 | _ACEOF |
| 3222 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3224 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3225 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3227 | rm -f conftest.er1 |
| 3228 | cat conftest.err >&5 |
| 3229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3230 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3231 | { ac_try='test -z "$ac_c_werror_flag" |
| 3232 | || test ! -s conftest.err' |
| 3233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3234 | (eval $ac_try) 2>&5 |
| 3235 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3237 | (exit $ac_status); }; } && |
| 3238 | { ac_try='test -s conftest$ac_exeext' |
| 3239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3240 | (eval $ac_try) 2>&5 |
| 3241 | ac_status=$? |
| 3242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3243 | (exit $ac_status); }; }; then |
| 3244 | ac_cv_lib_rt_puts=yes |
| 3245 | else |
| 3246 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3248 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3249 | ac_cv_lib_rt_puts=no |
| 3250 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3251 | rm -f conftest.err conftest.$ac_objext \ |
| 3252 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3253 | LIBS=$ac_check_lib_save_LIBS |
| 3254 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3255 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3256 | echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6 |
| 3257 | if test $ac_cv_lib_rt_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3258 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3259 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3260 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3261 | |
| 3262 | LIBS="-lrt $LIBS" |
| 3263 | |
| 3264 | fi |
| 3265 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3266 | |
| 3267 | echo "$as_me:$LINENO: checking for puts in -lnsl" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3268 | echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6 |
| 3269 | if test "${ac_cv_lib_nsl_puts+set}" = set; then |
| 3270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3271 | else |
| 3272 | ac_check_lib_save_LIBS=$LIBS |
| 3273 | LIBS="-lnsl $LIBS" |
| 3274 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3275 | /* confdefs.h. */ |
| 3276 | _ACEOF |
| 3277 | cat confdefs.h >>conftest.$ac_ext |
| 3278 | cat >>conftest.$ac_ext <<_ACEOF |
| 3279 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3280 | |
| 3281 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3282 | #ifdef __cplusplus |
| 3283 | extern "C" |
| 3284 | #endif |
| 3285 | /* We use char because int might match the return type of a gcc2 |
| 3286 | builtin and then its argument prototype would still apply. */ |
| 3287 | char puts (); |
| 3288 | int |
| 3289 | main () |
| 3290 | { |
| 3291 | puts (); |
| 3292 | ; |
| 3293 | return 0; |
| 3294 | } |
| 3295 | _ACEOF |
| 3296 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3298 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3299 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3301 | rm -f conftest.er1 |
| 3302 | cat conftest.err >&5 |
| 3303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3304 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3305 | { ac_try='test -z "$ac_c_werror_flag" |
| 3306 | || test ! -s conftest.err' |
| 3307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3308 | (eval $ac_try) 2>&5 |
| 3309 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3311 | (exit $ac_status); }; } && |
| 3312 | { ac_try='test -s conftest$ac_exeext' |
| 3313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3314 | (eval $ac_try) 2>&5 |
| 3315 | ac_status=$? |
| 3316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3317 | (exit $ac_status); }; }; then |
| 3318 | ac_cv_lib_nsl_puts=yes |
| 3319 | else |
| 3320 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3322 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3323 | ac_cv_lib_nsl_puts=no |
| 3324 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3325 | rm -f conftest.err conftest.$ac_objext \ |
| 3326 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3327 | LIBS=$ac_check_lib_save_LIBS |
| 3328 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3329 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3330 | echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6 |
| 3331 | if test $ac_cv_lib_nsl_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3332 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3333 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3334 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3335 | |
| 3336 | LIBS="-lnsl $LIBS" |
| 3337 | |
| 3338 | fi |
| 3339 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3340 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3341 | echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 3342 | echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6 |
| 3343 | cat >>confdefs.h <<_ACEOF |
| 3344 | #define PJ_M_NAME "$target_cpu" |
| 3345 | _ACEOF |
| 3346 | |
| 3347 | |
| 3348 | echo "$as_me:$LINENO: checking memory alignment" >&5 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3349 | echo $ECHO_N "checking memory alignment... $ECHO_C" >&6 |
| 3350 | case $target in |
| 3351 | ia64-* | x86_64-* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3352 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3353 | #define PJ_POOL_ALIGNMENT 8 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3354 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3355 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3356 | echo "$as_me:$LINENO: result: 8 bytes" >&5 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3357 | echo "${ECHO_T}8 bytes" >&6 |
| 3358 | ;; |
| 3359 | * ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3360 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3361 | #define PJ_POOL_ALIGNMENT 4 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3362 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3363 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3364 | echo "$as_me:$LINENO: result: 4 bytes (default)" >&5 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3365 | echo "${ECHO_T}4 bytes (default)" >&6 |
| 3366 | ;; |
| 3367 | esac |
| 3368 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3369 | |
| 3370 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3371 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 3372 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 3373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3374 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3375 | # See if sys/param.h defines the BYTE_ORDER macro. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3376 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3377 | /* confdefs.h. */ |
| 3378 | _ACEOF |
| 3379 | cat confdefs.h >>conftest.$ac_ext |
| 3380 | cat >>conftest.$ac_ext <<_ACEOF |
| 3381 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3382 | #include <sys/types.h> |
| 3383 | #include <sys/param.h> |
| 3384 | |
| 3385 | int |
| 3386 | main () |
| 3387 | { |
| 3388 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 3389 | bogus endian macros |
| 3390 | #endif |
| 3391 | |
| 3392 | ; |
| 3393 | return 0; |
| 3394 | } |
| 3395 | _ACEOF |
| 3396 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3398 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3399 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3401 | rm -f conftest.er1 |
| 3402 | cat conftest.err >&5 |
| 3403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3404 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3405 | { ac_try='test -z "$ac_c_werror_flag" |
| 3406 | || test ! -s conftest.err' |
| 3407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3408 | (eval $ac_try) 2>&5 |
| 3409 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3411 | (exit $ac_status); }; } && |
| 3412 | { ac_try='test -s conftest.$ac_objext' |
| 3413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3414 | (eval $ac_try) 2>&5 |
| 3415 | ac_status=$? |
| 3416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3417 | (exit $ac_status); }; }; then |
| 3418 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 3419 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3420 | /* confdefs.h. */ |
| 3421 | _ACEOF |
| 3422 | cat confdefs.h >>conftest.$ac_ext |
| 3423 | cat >>conftest.$ac_ext <<_ACEOF |
| 3424 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3425 | #include <sys/types.h> |
| 3426 | #include <sys/param.h> |
| 3427 | |
| 3428 | int |
| 3429 | main () |
| 3430 | { |
| 3431 | #if BYTE_ORDER != BIG_ENDIAN |
| 3432 | not big endian |
| 3433 | #endif |
| 3434 | |
| 3435 | ; |
| 3436 | return 0; |
| 3437 | } |
| 3438 | _ACEOF |
| 3439 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3441 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3442 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3444 | rm -f conftest.er1 |
| 3445 | cat conftest.err >&5 |
| 3446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3447 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3448 | { ac_try='test -z "$ac_c_werror_flag" |
| 3449 | || test ! -s conftest.err' |
| 3450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3451 | (eval $ac_try) 2>&5 |
| 3452 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3454 | (exit $ac_status); }; } && |
| 3455 | { ac_try='test -s conftest.$ac_objext' |
| 3456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3457 | (eval $ac_try) 2>&5 |
| 3458 | ac_status=$? |
| 3459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3460 | (exit $ac_status); }; }; then |
| 3461 | ac_cv_c_bigendian=yes |
| 3462 | else |
| 3463 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3465 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3466 | ac_cv_c_bigendian=no |
| 3467 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3469 | else |
| 3470 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3472 | |
| 3473 | # It does not; compile a test program. |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3474 | if test "$cross_compiling" = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3475 | # try to guess the endianness by grepping values into an object file |
| 3476 | ac_cv_c_bigendian=unknown |
| 3477 | cat >conftest.$ac_ext <<_ACEOF |
| 3478 | /* confdefs.h. */ |
| 3479 | _ACEOF |
| 3480 | cat confdefs.h >>conftest.$ac_ext |
| 3481 | cat >>conftest.$ac_ext <<_ACEOF |
| 3482 | /* end confdefs.h. */ |
| 3483 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 3484 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 3485 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 3486 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 3487 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 3488 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 3489 | int |
| 3490 | main () |
| 3491 | { |
| 3492 | _ascii (); _ebcdic (); |
| 3493 | ; |
| 3494 | return 0; |
| 3495 | } |
| 3496 | _ACEOF |
| 3497 | rm -f conftest.$ac_objext |
| 3498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3499 | (eval $ac_compile) 2>conftest.er1 |
| 3500 | ac_status=$? |
| 3501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3502 | rm -f conftest.er1 |
| 3503 | cat conftest.err >&5 |
| 3504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3505 | (exit $ac_status); } && |
| 3506 | { ac_try='test -z "$ac_c_werror_flag" |
| 3507 | || test ! -s conftest.err' |
| 3508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3509 | (eval $ac_try) 2>&5 |
| 3510 | ac_status=$? |
| 3511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3512 | (exit $ac_status); }; } && |
| 3513 | { ac_try='test -s conftest.$ac_objext' |
| 3514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3515 | (eval $ac_try) 2>&5 |
| 3516 | ac_status=$? |
| 3517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3518 | (exit $ac_status); }; }; then |
| 3519 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 3520 | ac_cv_c_bigendian=yes |
| 3521 | fi |
| 3522 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 3523 | if test "$ac_cv_c_bigendian" = unknown; then |
| 3524 | ac_cv_c_bigendian=no |
| 3525 | else |
| 3526 | # finding both strings is unlikely to happen, but who knows? |
| 3527 | ac_cv_c_bigendian=unknown |
| 3528 | fi |
| 3529 | fi |
| 3530 | else |
| 3531 | echo "$as_me: failed program was:" >&5 |
| 3532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3533 | |
| 3534 | fi |
| 3535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3536 | else |
| 3537 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3538 | /* confdefs.h. */ |
| 3539 | _ACEOF |
| 3540 | cat confdefs.h >>conftest.$ac_ext |
| 3541 | cat >>conftest.$ac_ext <<_ACEOF |
| 3542 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3543 | int |
| 3544 | main () |
| 3545 | { |
| 3546 | /* Are we little or big endian? From Harbison&Steele. */ |
| 3547 | union |
| 3548 | { |
| 3549 | long l; |
| 3550 | char c[sizeof (long)]; |
| 3551 | } u; |
| 3552 | u.l = 1; |
| 3553 | exit (u.c[sizeof (long) - 1] == 1); |
| 3554 | } |
| 3555 | _ACEOF |
| 3556 | rm -f conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3558 | (eval $ac_link) 2>&5 |
| 3559 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3561 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3563 | (eval $ac_try) 2>&5 |
| 3564 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3566 | (exit $ac_status); }; }; then |
| 3567 | ac_cv_c_bigendian=no |
| 3568 | else |
| 3569 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3570 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3572 | |
| 3573 | ( exit $ac_status ) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3574 | ac_cv_c_bigendian=yes |
| 3575 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3576 | 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] | 3577 | fi |
| 3578 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3580 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3581 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3582 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3583 | case $ac_cv_c_bigendian in |
| 3584 | yes) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3585 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3586 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 3587 | #define WORDS_BIGENDIAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3588 | _ACEOF |
| 3589 | ;; |
| 3590 | no) |
| 3591 | ;; |
| 3592 | *) |
| 3593 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 3594 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 3595 | echo "$as_me: error: unknown endianness |
| 3596 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 3597 | { (exit 1); exit 1; }; } ;; |
| 3598 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3599 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3600 | |
| 3601 | case $target in |
| 3602 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3603 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3604 | #define PJ_WIN32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3605 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3606 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3607 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3608 | #define PJ_WIN32_WINNT 0x0400 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3609 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3610 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3611 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3612 | #define WIN32_LEAN_AND_MEAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3613 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3614 | |
| 3615 | ;; |
| 3616 | *darwin*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3617 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3618 | #define PJ_DARWINOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3619 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3620 | |
| 3621 | ;; |
| 3622 | *linux*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3623 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3624 | #define PJ_LINUX 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3625 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3626 | |
| 3627 | ;; |
| 3628 | *rtems*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3629 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3630 | #define PJ_RTEMS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3631 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3632 | |
| 3633 | ;; |
| 3634 | *sunos* | *solaris* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3635 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3636 | #define PJ_SUNOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3637 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3638 | |
| 3639 | ;; |
| 3640 | *) |
| 3641 | ;; |
| 3642 | esac |
| 3643 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3644 | |
| 3645 | |
| 3646 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3647 | # Check whether --enable-floating-point or --disable-floating-point was given. |
| 3648 | if test "${enable_floating_point+set}" = set; then |
| 3649 | enableval="$enable_floating_point" |
| 3650 | if test "$enable_floating_point" = "no"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3651 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3652 | #define PJ_HAS_FLOATING_POINT 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3653 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3654 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3655 | echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3656 | echo "${ECHO_T}Checking if floating point is disabled... yes" >&6 |
| 3657 | fi |
| 3658 | else |
| 3659 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3660 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3661 | #define PJ_HAS_FLOATING_POINT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3662 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3663 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3664 | echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3665 | echo "${ECHO_T}Checking if floating point is disabled... no" >&6 |
| 3666 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3667 | echo "$as_me:$LINENO: checking for fmod in -lm" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3668 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6 |
| 3669 | if test "${ac_cv_lib_m_fmod+set}" = set; then |
| 3670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3671 | else |
| 3672 | ac_check_lib_save_LIBS=$LIBS |
| 3673 | LIBS="-lm $LIBS" |
| 3674 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3675 | /* confdefs.h. */ |
| 3676 | _ACEOF |
| 3677 | cat confdefs.h >>conftest.$ac_ext |
| 3678 | cat >>conftest.$ac_ext <<_ACEOF |
| 3679 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3680 | |
| 3681 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3682 | #ifdef __cplusplus |
| 3683 | extern "C" |
| 3684 | #endif |
| 3685 | /* We use char because int might match the return type of a gcc2 |
| 3686 | builtin and then its argument prototype would still apply. */ |
| 3687 | char fmod (); |
| 3688 | int |
| 3689 | main () |
| 3690 | { |
| 3691 | fmod (); |
| 3692 | ; |
| 3693 | return 0; |
| 3694 | } |
| 3695 | _ACEOF |
| 3696 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3698 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3699 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3701 | rm -f conftest.er1 |
| 3702 | cat conftest.err >&5 |
| 3703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3704 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3705 | { ac_try='test -z "$ac_c_werror_flag" |
| 3706 | || test ! -s conftest.err' |
| 3707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 3708 | (eval $ac_try) 2>&5 |
| 3709 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3711 | (exit $ac_status); }; } && |
| 3712 | { ac_try='test -s conftest$ac_exeext' |
| 3713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3714 | (eval $ac_try) 2>&5 |
| 3715 | ac_status=$? |
| 3716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3717 | (exit $ac_status); }; }; then |
| 3718 | ac_cv_lib_m_fmod=yes |
| 3719 | else |
| 3720 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3722 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3723 | ac_cv_lib_m_fmod=no |
| 3724 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3725 | rm -f conftest.err conftest.$ac_objext \ |
| 3726 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3727 | LIBS=$ac_check_lib_save_LIBS |
| 3728 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3729 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3730 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6 |
| 3731 | if test $ac_cv_lib_m_fmod = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3732 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3733 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3734 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3735 | |
| 3736 | LIBS="-lm $LIBS" |
| 3737 | |
| 3738 | fi |
| 3739 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3740 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3741 | fi; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3742 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3743 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3744 | ac_ext=c |
| 3745 | ac_cpp='$CPP $CPPFLAGS' |
| 3746 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3747 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3748 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3749 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3750 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3751 | # On Suns, sometimes $CPP names a directory. |
| 3752 | if test -n "$CPP" && test -d "$CPP"; then |
| 3753 | CPP= |
| 3754 | fi |
| 3755 | if test -z "$CPP"; then |
| 3756 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3758 | else |
| 3759 | # Double quotes because CPP needs to be expanded |
| 3760 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3761 | do |
| 3762 | ac_preproc_ok=false |
| 3763 | for ac_c_preproc_warn_flag in '' yes |
| 3764 | do |
| 3765 | # Use a header file that comes with gcc, so configuring glibc |
| 3766 | # with a fresh cross-compiler works. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3767 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3768 | # <limits.h> exists even on freestanding compilers. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3769 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3770 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3771 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3772 | /* confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3773 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3774 | cat confdefs.h >>conftest.$ac_ext |
| 3775 | cat >>conftest.$ac_ext <<_ACEOF |
| 3776 | /* end confdefs.h. */ |
| 3777 | #ifdef __STDC__ |
| 3778 | # include <limits.h> |
| 3779 | #else |
| 3780 | # include <assert.h> |
| 3781 | #endif |
| 3782 | Syntax error |
| 3783 | _ACEOF |
| 3784 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3785 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3786 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3787 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3788 | rm -f conftest.er1 |
| 3789 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3791 | (exit $ac_status); } >/dev/null; then |
| 3792 | if test -s conftest.err; then |
| 3793 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3794 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3795 | else |
| 3796 | ac_cpp_err= |
| 3797 | fi |
| 3798 | else |
| 3799 | ac_cpp_err=yes |
| 3800 | fi |
| 3801 | if test -z "$ac_cpp_err"; then |
| 3802 | : |
| 3803 | else |
| 3804 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3806 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3807 | # Broken: fails on valid input. |
| 3808 | continue |
| 3809 | fi |
| 3810 | rm -f conftest.err conftest.$ac_ext |
| 3811 | |
| 3812 | # OK, works on sane cases. Now check whether non-existent headers |
| 3813 | # can be detected and how. |
| 3814 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3815 | /* confdefs.h. */ |
| 3816 | _ACEOF |
| 3817 | cat confdefs.h >>conftest.$ac_ext |
| 3818 | cat >>conftest.$ac_ext <<_ACEOF |
| 3819 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3820 | #include <ac_nonexistent.h> |
| 3821 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3822 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3823 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3824 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3825 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3826 | rm -f conftest.er1 |
| 3827 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3829 | (exit $ac_status); } >/dev/null; then |
| 3830 | if test -s conftest.err; then |
| 3831 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3832 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3833 | else |
| 3834 | ac_cpp_err= |
| 3835 | fi |
| 3836 | else |
| 3837 | ac_cpp_err=yes |
| 3838 | fi |
| 3839 | if test -z "$ac_cpp_err"; then |
| 3840 | # Broken: success on invalid input. |
| 3841 | continue |
| 3842 | else |
| 3843 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3845 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3846 | # Passes both tests. |
| 3847 | ac_preproc_ok=: |
| 3848 | break |
| 3849 | fi |
| 3850 | rm -f conftest.err conftest.$ac_ext |
| 3851 | |
| 3852 | done |
| 3853 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3854 | rm -f conftest.err conftest.$ac_ext |
| 3855 | if $ac_preproc_ok; then |
| 3856 | break |
| 3857 | fi |
| 3858 | |
| 3859 | done |
| 3860 | ac_cv_prog_CPP=$CPP |
| 3861 | |
| 3862 | fi |
| 3863 | CPP=$ac_cv_prog_CPP |
| 3864 | else |
| 3865 | ac_cv_prog_CPP=$CPP |
| 3866 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3867 | echo "$as_me:$LINENO: result: $CPP" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3868 | echo "${ECHO_T}$CPP" >&6 |
| 3869 | ac_preproc_ok=false |
| 3870 | for ac_c_preproc_warn_flag in '' yes |
| 3871 | do |
| 3872 | # Use a header file that comes with gcc, so configuring glibc |
| 3873 | # with a fresh cross-compiler works. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3874 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3875 | # <limits.h> exists even on freestanding compilers. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3876 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3877 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3878 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3879 | /* confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3880 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3881 | cat confdefs.h >>conftest.$ac_ext |
| 3882 | cat >>conftest.$ac_ext <<_ACEOF |
| 3883 | /* end confdefs.h. */ |
| 3884 | #ifdef __STDC__ |
| 3885 | # include <limits.h> |
| 3886 | #else |
| 3887 | # include <assert.h> |
| 3888 | #endif |
| 3889 | Syntax error |
| 3890 | _ACEOF |
| 3891 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3892 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3893 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3894 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3895 | rm -f conftest.er1 |
| 3896 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3898 | (exit $ac_status); } >/dev/null; then |
| 3899 | if test -s conftest.err; then |
| 3900 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3901 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3902 | else |
| 3903 | ac_cpp_err= |
| 3904 | fi |
| 3905 | else |
| 3906 | ac_cpp_err=yes |
| 3907 | fi |
| 3908 | if test -z "$ac_cpp_err"; then |
| 3909 | : |
| 3910 | else |
| 3911 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3913 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3914 | # Broken: fails on valid input. |
| 3915 | continue |
| 3916 | fi |
| 3917 | rm -f conftest.err conftest.$ac_ext |
| 3918 | |
| 3919 | # OK, works on sane cases. Now check whether non-existent headers |
| 3920 | # can be detected and how. |
| 3921 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3922 | /* confdefs.h. */ |
| 3923 | _ACEOF |
| 3924 | cat confdefs.h >>conftest.$ac_ext |
| 3925 | cat >>conftest.$ac_ext <<_ACEOF |
| 3926 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3927 | #include <ac_nonexistent.h> |
| 3928 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3929 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3930 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3931 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3932 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3933 | rm -f conftest.er1 |
| 3934 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3936 | (exit $ac_status); } >/dev/null; then |
| 3937 | if test -s conftest.err; then |
| 3938 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3939 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3940 | else |
| 3941 | ac_cpp_err= |
| 3942 | fi |
| 3943 | else |
| 3944 | ac_cpp_err=yes |
| 3945 | fi |
| 3946 | if test -z "$ac_cpp_err"; then |
| 3947 | # Broken: success on invalid input. |
| 3948 | continue |
| 3949 | else |
| 3950 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3952 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3953 | # Passes both tests. |
| 3954 | ac_preproc_ok=: |
| 3955 | break |
| 3956 | fi |
| 3957 | rm -f conftest.err conftest.$ac_ext |
| 3958 | |
| 3959 | done |
| 3960 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3961 | rm -f conftest.err conftest.$ac_ext |
| 3962 | if $ac_preproc_ok; then |
| 3963 | : |
| 3964 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3965 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3966 | See \`config.log' for more details." >&5 |
| 3967 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3968 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3969 | { (exit 1); exit 1; }; } |
| 3970 | fi |
| 3971 | |
| 3972 | ac_ext=c |
| 3973 | ac_cpp='$CPP $CPPFLAGS' |
| 3974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3975 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3976 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3977 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3978 | |
| 3979 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3980 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3981 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3983 | else |
| 3984 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3985 | then ac_cv_prog_egrep='grep -E' |
| 3986 | else ac_cv_prog_egrep='egrep' |
| 3987 | fi |
| 3988 | fi |
| 3989 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3990 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3991 | EGREP=$ac_cv_prog_egrep |
| 3992 | |
| 3993 | |
| 3994 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3995 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3996 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3998 | else |
| 3999 | cat >conftest.$ac_ext <<_ACEOF |
| 4000 | /* confdefs.h. */ |
| 4001 | _ACEOF |
| 4002 | cat confdefs.h >>conftest.$ac_ext |
| 4003 | cat >>conftest.$ac_ext <<_ACEOF |
| 4004 | /* end confdefs.h. */ |
| 4005 | #include <stdlib.h> |
| 4006 | #include <stdarg.h> |
| 4007 | #include <string.h> |
| 4008 | #include <float.h> |
| 4009 | |
| 4010 | int |
| 4011 | main () |
| 4012 | { |
| 4013 | |
| 4014 | ; |
| 4015 | return 0; |
| 4016 | } |
| 4017 | _ACEOF |
| 4018 | rm -f conftest.$ac_objext |
| 4019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4020 | (eval $ac_compile) 2>conftest.er1 |
| 4021 | ac_status=$? |
| 4022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4023 | rm -f conftest.er1 |
| 4024 | cat conftest.err >&5 |
| 4025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4026 | (exit $ac_status); } && |
| 4027 | { ac_try='test -z "$ac_c_werror_flag" |
| 4028 | || test ! -s conftest.err' |
| 4029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4030 | (eval $ac_try) 2>&5 |
| 4031 | ac_status=$? |
| 4032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4033 | (exit $ac_status); }; } && |
| 4034 | { ac_try='test -s conftest.$ac_objext' |
| 4035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4036 | (eval $ac_try) 2>&5 |
| 4037 | ac_status=$? |
| 4038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4039 | (exit $ac_status); }; }; then |
| 4040 | ac_cv_header_stdc=yes |
| 4041 | else |
| 4042 | echo "$as_me: failed program was:" >&5 |
| 4043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4044 | |
| 4045 | ac_cv_header_stdc=no |
| 4046 | fi |
| 4047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4048 | |
| 4049 | if test $ac_cv_header_stdc = yes; then |
| 4050 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4051 | cat >conftest.$ac_ext <<_ACEOF |
| 4052 | /* confdefs.h. */ |
| 4053 | _ACEOF |
| 4054 | cat confdefs.h >>conftest.$ac_ext |
| 4055 | cat >>conftest.$ac_ext <<_ACEOF |
| 4056 | /* end confdefs.h. */ |
| 4057 | #include <string.h> |
| 4058 | |
| 4059 | _ACEOF |
| 4060 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4061 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4062 | : |
| 4063 | else |
| 4064 | ac_cv_header_stdc=no |
| 4065 | fi |
| 4066 | rm -f conftest* |
| 4067 | |
| 4068 | fi |
| 4069 | |
| 4070 | if test $ac_cv_header_stdc = yes; then |
| 4071 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4072 | cat >conftest.$ac_ext <<_ACEOF |
| 4073 | /* confdefs.h. */ |
| 4074 | _ACEOF |
| 4075 | cat confdefs.h >>conftest.$ac_ext |
| 4076 | cat >>conftest.$ac_ext <<_ACEOF |
| 4077 | /* end confdefs.h. */ |
| 4078 | #include <stdlib.h> |
| 4079 | |
| 4080 | _ACEOF |
| 4081 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4082 | $EGREP "free" >/dev/null 2>&1; then |
| 4083 | : |
| 4084 | else |
| 4085 | ac_cv_header_stdc=no |
| 4086 | fi |
| 4087 | rm -f conftest* |
| 4088 | |
| 4089 | fi |
| 4090 | |
| 4091 | if test $ac_cv_header_stdc = yes; then |
| 4092 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4093 | if test "$cross_compiling" = yes; then |
| 4094 | : |
| 4095 | else |
| 4096 | cat >conftest.$ac_ext <<_ACEOF |
| 4097 | /* confdefs.h. */ |
| 4098 | _ACEOF |
| 4099 | cat confdefs.h >>conftest.$ac_ext |
| 4100 | cat >>conftest.$ac_ext <<_ACEOF |
| 4101 | /* end confdefs.h. */ |
| 4102 | #include <ctype.h> |
| 4103 | #if ((' ' & 0x0FF) == 0x020) |
| 4104 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4105 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4106 | #else |
| 4107 | # define ISLOWER(c) \ |
| 4108 | (('a' <= (c) && (c) <= 'i') \ |
| 4109 | || ('j' <= (c) && (c) <= 'r') \ |
| 4110 | || ('s' <= (c) && (c) <= 'z')) |
| 4111 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4112 | #endif |
| 4113 | |
| 4114 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4115 | int |
| 4116 | main () |
| 4117 | { |
| 4118 | int i; |
| 4119 | for (i = 0; i < 256; i++) |
| 4120 | if (XOR (islower (i), ISLOWER (i)) |
| 4121 | || toupper (i) != TOUPPER (i)) |
| 4122 | exit(2); |
| 4123 | exit (0); |
| 4124 | } |
| 4125 | _ACEOF |
| 4126 | rm -f conftest$ac_exeext |
| 4127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4128 | (eval $ac_link) 2>&5 |
| 4129 | ac_status=$? |
| 4130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4131 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4133 | (eval $ac_try) 2>&5 |
| 4134 | ac_status=$? |
| 4135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4136 | (exit $ac_status); }; }; then |
| 4137 | : |
| 4138 | else |
| 4139 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4140 | echo "$as_me: failed program was:" >&5 |
| 4141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4142 | |
| 4143 | ( exit $ac_status ) |
| 4144 | ac_cv_header_stdc=no |
| 4145 | fi |
| 4146 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4147 | fi |
| 4148 | fi |
| 4149 | fi |
| 4150 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4151 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4152 | if test $ac_cv_header_stdc = yes; then |
| 4153 | |
| 4154 | cat >>confdefs.h <<\_ACEOF |
| 4155 | #define STDC_HEADERS 1 |
| 4156 | _ACEOF |
| 4157 | |
| 4158 | fi |
| 4159 | |
| 4160 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4161 | |
| 4162 | |
| 4163 | |
| 4164 | |
| 4165 | |
| 4166 | |
| 4167 | |
| 4168 | |
| 4169 | |
| 4170 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4171 | inttypes.h stdint.h unistd.h |
| 4172 | do |
| 4173 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4174 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4175 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4176 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4178 | else |
| 4179 | cat >conftest.$ac_ext <<_ACEOF |
| 4180 | /* confdefs.h. */ |
| 4181 | _ACEOF |
| 4182 | cat confdefs.h >>conftest.$ac_ext |
| 4183 | cat >>conftest.$ac_ext <<_ACEOF |
| 4184 | /* end confdefs.h. */ |
| 4185 | $ac_includes_default |
| 4186 | |
| 4187 | #include <$ac_header> |
| 4188 | _ACEOF |
| 4189 | rm -f conftest.$ac_objext |
| 4190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4191 | (eval $ac_compile) 2>conftest.er1 |
| 4192 | ac_status=$? |
| 4193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4194 | rm -f conftest.er1 |
| 4195 | cat conftest.err >&5 |
| 4196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4197 | (exit $ac_status); } && |
| 4198 | { ac_try='test -z "$ac_c_werror_flag" |
| 4199 | || test ! -s conftest.err' |
| 4200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4201 | (eval $ac_try) 2>&5 |
| 4202 | ac_status=$? |
| 4203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4204 | (exit $ac_status); }; } && |
| 4205 | { ac_try='test -s conftest.$ac_objext' |
| 4206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4207 | (eval $ac_try) 2>&5 |
| 4208 | ac_status=$? |
| 4209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4210 | (exit $ac_status); }; }; then |
| 4211 | eval "$as_ac_Header=yes" |
| 4212 | else |
| 4213 | echo "$as_me: failed program was:" >&5 |
| 4214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4215 | |
| 4216 | eval "$as_ac_Header=no" |
| 4217 | fi |
| 4218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4219 | fi |
| 4220 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4221 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4222 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4223 | cat >>confdefs.h <<_ACEOF |
| 4224 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4225 | _ACEOF |
| 4226 | |
| 4227 | fi |
| 4228 | |
| 4229 | done |
| 4230 | |
| 4231 | |
| 4232 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4233 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 4234 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
| 4235 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4237 | fi |
| 4238 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4239 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
| 4240 | else |
| 4241 | # Is the header compilable? |
| 4242 | echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
| 4243 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 |
| 4244 | cat >conftest.$ac_ext <<_ACEOF |
| 4245 | /* confdefs.h. */ |
| 4246 | _ACEOF |
| 4247 | cat confdefs.h >>conftest.$ac_ext |
| 4248 | cat >>conftest.$ac_ext <<_ACEOF |
| 4249 | /* end confdefs.h. */ |
| 4250 | $ac_includes_default |
| 4251 | #include <arpa/inet.h> |
| 4252 | _ACEOF |
| 4253 | rm -f conftest.$ac_objext |
| 4254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4255 | (eval $ac_compile) 2>conftest.er1 |
| 4256 | ac_status=$? |
| 4257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4258 | rm -f conftest.er1 |
| 4259 | cat conftest.err >&5 |
| 4260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4261 | (exit $ac_status); } && |
| 4262 | { ac_try='test -z "$ac_c_werror_flag" |
| 4263 | || test ! -s conftest.err' |
| 4264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4265 | (eval $ac_try) 2>&5 |
| 4266 | ac_status=$? |
| 4267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4268 | (exit $ac_status); }; } && |
| 4269 | { ac_try='test -s conftest.$ac_objext' |
| 4270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4271 | (eval $ac_try) 2>&5 |
| 4272 | ac_status=$? |
| 4273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4274 | (exit $ac_status); }; }; then |
| 4275 | ac_header_compiler=yes |
| 4276 | else |
| 4277 | echo "$as_me: failed program was:" >&5 |
| 4278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4279 | |
| 4280 | ac_header_compiler=no |
| 4281 | fi |
| 4282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4283 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4284 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4285 | |
| 4286 | # Is the header present? |
| 4287 | echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
| 4288 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 |
| 4289 | cat >conftest.$ac_ext <<_ACEOF |
| 4290 | /* confdefs.h. */ |
| 4291 | _ACEOF |
| 4292 | cat confdefs.h >>conftest.$ac_ext |
| 4293 | cat >>conftest.$ac_ext <<_ACEOF |
| 4294 | /* end confdefs.h. */ |
| 4295 | #include <arpa/inet.h> |
| 4296 | _ACEOF |
| 4297 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4298 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4299 | ac_status=$? |
| 4300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4301 | rm -f conftest.er1 |
| 4302 | cat conftest.err >&5 |
| 4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4304 | (exit $ac_status); } >/dev/null; then |
| 4305 | if test -s conftest.err; then |
| 4306 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4307 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4308 | else |
| 4309 | ac_cpp_err= |
| 4310 | fi |
| 4311 | else |
| 4312 | ac_cpp_err=yes |
| 4313 | fi |
| 4314 | if test -z "$ac_cpp_err"; then |
| 4315 | ac_header_preproc=yes |
| 4316 | else |
| 4317 | echo "$as_me: failed program was:" >&5 |
| 4318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4319 | |
| 4320 | ac_header_preproc=no |
| 4321 | fi |
| 4322 | rm -f conftest.err conftest.$ac_ext |
| 4323 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4324 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4325 | |
| 4326 | # So? What about this header? |
| 4327 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4328 | yes:no: ) |
| 4329 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4330 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4331 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
| 4332 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} |
| 4333 | ac_header_preproc=yes |
| 4334 | ;; |
| 4335 | no:yes:* ) |
| 4336 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
| 4337 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} |
| 4338 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
| 4339 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} |
| 4340 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 |
| 4341 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} |
| 4342 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4343 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4344 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
| 4345 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
| 4346 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
| 4347 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} |
| 4348 | ( |
| 4349 | cat <<\_ASBOX |
| 4350 | ## ------------------------------------ ## |
| 4351 | ## Report this to the pjproject lists. ## |
| 4352 | ## ------------------------------------ ## |
| 4353 | _ASBOX |
| 4354 | ) | |
| 4355 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4356 | ;; |
| 4357 | esac |
| 4358 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4359 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
| 4360 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4362 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4363 | ac_cv_header_arpa_inet_h=$ac_header_preproc |
| 4364 | fi |
| 4365 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4366 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
| 4367 | |
| 4368 | fi |
| 4369 | if test $ac_cv_header_arpa_inet_h = yes; then |
| 4370 | cat >>confdefs.h <<\_ACEOF |
| 4371 | #define PJ_HAS_ARPA_INET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4372 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4373 | |
| 4374 | fi |
| 4375 | |
| 4376 | |
| 4377 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4378 | echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 4379 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6 |
| 4380 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4382 | fi |
| 4383 | echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 4384 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6 |
| 4385 | else |
| 4386 | # Is the header compilable? |
| 4387 | echo "$as_me:$LINENO: checking assert.h usability" >&5 |
| 4388 | echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6 |
| 4389 | cat >conftest.$ac_ext <<_ACEOF |
| 4390 | /* confdefs.h. */ |
| 4391 | _ACEOF |
| 4392 | cat confdefs.h >>conftest.$ac_ext |
| 4393 | cat >>conftest.$ac_ext <<_ACEOF |
| 4394 | /* end confdefs.h. */ |
| 4395 | $ac_includes_default |
| 4396 | #include <assert.h> |
| 4397 | _ACEOF |
| 4398 | rm -f conftest.$ac_objext |
| 4399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4400 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4401 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4402 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4403 | rm -f conftest.er1 |
| 4404 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4406 | (exit $ac_status); } && |
| 4407 | { ac_try='test -z "$ac_c_werror_flag" |
| 4408 | || test ! -s conftest.err' |
| 4409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4410 | (eval $ac_try) 2>&5 |
| 4411 | ac_status=$? |
| 4412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4413 | (exit $ac_status); }; } && |
| 4414 | { ac_try='test -s conftest.$ac_objext' |
| 4415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4416 | (eval $ac_try) 2>&5 |
| 4417 | ac_status=$? |
| 4418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4419 | (exit $ac_status); }; }; then |
| 4420 | ac_header_compiler=yes |
| 4421 | else |
| 4422 | echo "$as_me: failed program was:" >&5 |
| 4423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4424 | |
| 4425 | ac_header_compiler=no |
| 4426 | fi |
| 4427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4428 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4429 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4430 | |
| 4431 | # Is the header present? |
| 4432 | echo "$as_me:$LINENO: checking assert.h presence" >&5 |
| 4433 | echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6 |
| 4434 | cat >conftest.$ac_ext <<_ACEOF |
| 4435 | /* confdefs.h. */ |
| 4436 | _ACEOF |
| 4437 | cat confdefs.h >>conftest.$ac_ext |
| 4438 | cat >>conftest.$ac_ext <<_ACEOF |
| 4439 | /* end confdefs.h. */ |
| 4440 | #include <assert.h> |
| 4441 | _ACEOF |
| 4442 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4443 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4444 | ac_status=$? |
| 4445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4446 | rm -f conftest.er1 |
| 4447 | cat conftest.err >&5 |
| 4448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4449 | (exit $ac_status); } >/dev/null; then |
| 4450 | if test -s conftest.err; then |
| 4451 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4452 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4453 | else |
| 4454 | ac_cpp_err= |
| 4455 | fi |
| 4456 | else |
| 4457 | ac_cpp_err=yes |
| 4458 | fi |
| 4459 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4460 | ac_header_preproc=yes |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4461 | else |
| 4462 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4464 | |
| 4465 | ac_header_preproc=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4466 | fi |
| 4467 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4468 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4469 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4470 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4471 | # So? What about this header? |
| 4472 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4473 | yes:no: ) |
| 4474 | { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4475 | echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4476 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5 |
| 4477 | echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;} |
| 4478 | ac_header_preproc=yes |
| 4479 | ;; |
| 4480 | no:yes:* ) |
| 4481 | { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5 |
| 4482 | echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;} |
| 4483 | { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5 |
| 4484 | echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;} |
| 4485 | { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5 |
| 4486 | echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;} |
| 4487 | { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4488 | echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4489 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5 |
| 4490 | echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;} |
| 4491 | { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5 |
| 4492 | echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;} |
| 4493 | ( |
| 4494 | cat <<\_ASBOX |
| 4495 | ## ------------------------------------ ## |
| 4496 | ## Report this to the pjproject lists. ## |
| 4497 | ## ------------------------------------ ## |
| 4498 | _ASBOX |
| 4499 | ) | |
| 4500 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4501 | ;; |
| 4502 | esac |
| 4503 | echo "$as_me:$LINENO: checking for assert.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4504 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6 |
| 4505 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4507 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4508 | ac_cv_header_assert_h=$ac_header_preproc |
| 4509 | fi |
| 4510 | echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 4511 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6 |
| 4512 | |
| 4513 | fi |
| 4514 | if test $ac_cv_header_assert_h = yes; then |
| 4515 | cat >>confdefs.h <<\_ACEOF |
| 4516 | #define PJ_HAS_ASSERT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4517 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4518 | |
| 4519 | fi |
| 4520 | |
| 4521 | |
| 4522 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4523 | echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 4524 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6 |
| 4525 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4527 | fi |
| 4528 | echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 4529 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6 |
| 4530 | else |
| 4531 | # Is the header compilable? |
| 4532 | echo "$as_me:$LINENO: checking ctype.h usability" >&5 |
| 4533 | echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6 |
| 4534 | cat >conftest.$ac_ext <<_ACEOF |
| 4535 | /* confdefs.h. */ |
| 4536 | _ACEOF |
| 4537 | cat confdefs.h >>conftest.$ac_ext |
| 4538 | cat >>conftest.$ac_ext <<_ACEOF |
| 4539 | /* end confdefs.h. */ |
| 4540 | $ac_includes_default |
| 4541 | #include <ctype.h> |
| 4542 | _ACEOF |
| 4543 | rm -f conftest.$ac_objext |
| 4544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4545 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4546 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4547 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4548 | rm -f conftest.er1 |
| 4549 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4551 | (exit $ac_status); } && |
| 4552 | { ac_try='test -z "$ac_c_werror_flag" |
| 4553 | || test ! -s conftest.err' |
| 4554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4555 | (eval $ac_try) 2>&5 |
| 4556 | ac_status=$? |
| 4557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4558 | (exit $ac_status); }; } && |
| 4559 | { ac_try='test -s conftest.$ac_objext' |
| 4560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4561 | (eval $ac_try) 2>&5 |
| 4562 | ac_status=$? |
| 4563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4564 | (exit $ac_status); }; }; then |
| 4565 | ac_header_compiler=yes |
| 4566 | else |
| 4567 | echo "$as_me: failed program was:" >&5 |
| 4568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4569 | |
| 4570 | ac_header_compiler=no |
| 4571 | fi |
| 4572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4573 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4574 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4575 | |
| 4576 | # Is the header present? |
| 4577 | echo "$as_me:$LINENO: checking ctype.h presence" >&5 |
| 4578 | echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6 |
| 4579 | cat >conftest.$ac_ext <<_ACEOF |
| 4580 | /* confdefs.h. */ |
| 4581 | _ACEOF |
| 4582 | cat confdefs.h >>conftest.$ac_ext |
| 4583 | cat >>conftest.$ac_ext <<_ACEOF |
| 4584 | /* end confdefs.h. */ |
| 4585 | #include <ctype.h> |
| 4586 | _ACEOF |
| 4587 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4588 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4589 | ac_status=$? |
| 4590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4591 | rm -f conftest.er1 |
| 4592 | cat conftest.err >&5 |
| 4593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4594 | (exit $ac_status); } >/dev/null; then |
| 4595 | if test -s conftest.err; then |
| 4596 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4597 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4598 | else |
| 4599 | ac_cpp_err= |
| 4600 | fi |
| 4601 | else |
| 4602 | ac_cpp_err=yes |
| 4603 | fi |
| 4604 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4605 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4606 | else |
| 4607 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4609 | |
| 4610 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4611 | fi |
| 4612 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4613 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4614 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4615 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4616 | # So? What about this header? |
| 4617 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4618 | yes:no: ) |
| 4619 | { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4620 | echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4621 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5 |
| 4622 | echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;} |
| 4623 | ac_header_preproc=yes |
| 4624 | ;; |
| 4625 | no:yes:* ) |
| 4626 | { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5 |
| 4627 | echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;} |
| 4628 | { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5 |
| 4629 | echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;} |
| 4630 | { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5 |
| 4631 | echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;} |
| 4632 | { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4633 | echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4634 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5 |
| 4635 | echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;} |
| 4636 | { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5 |
| 4637 | echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;} |
| 4638 | ( |
| 4639 | cat <<\_ASBOX |
| 4640 | ## ------------------------------------ ## |
| 4641 | ## Report this to the pjproject lists. ## |
| 4642 | ## ------------------------------------ ## |
| 4643 | _ASBOX |
| 4644 | ) | |
| 4645 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4646 | ;; |
| 4647 | esac |
| 4648 | echo "$as_me:$LINENO: checking for ctype.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4649 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6 |
| 4650 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4652 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4653 | ac_cv_header_ctype_h=$ac_header_preproc |
| 4654 | fi |
| 4655 | echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 4656 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6 |
| 4657 | |
| 4658 | fi |
| 4659 | if test $ac_cv_header_ctype_h = yes; then |
| 4660 | cat >>confdefs.h <<\_ACEOF |
| 4661 | #define PJ_HAS_CTYPE_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4662 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4663 | |
| 4664 | fi |
| 4665 | |
| 4666 | |
| 4667 | |
| 4668 | case $target in |
| 4669 | *mingw* | *cygw* | *win32* | *w32* ) |
| 4670 | cat >>confdefs.h <<\_ACEOF |
| 4671 | #define PJ_HAS_ERRNO_H 0 |
| 4672 | _ACEOF |
| 4673 | |
| 4674 | ;; |
| 4675 | *) |
| 4676 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4677 | echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 4678 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 |
| 4679 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4681 | fi |
| 4682 | echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 4683 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6 |
| 4684 | else |
| 4685 | # Is the header compilable? |
| 4686 | echo "$as_me:$LINENO: checking errno.h usability" >&5 |
| 4687 | echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6 |
| 4688 | cat >conftest.$ac_ext <<_ACEOF |
| 4689 | /* confdefs.h. */ |
| 4690 | _ACEOF |
| 4691 | cat confdefs.h >>conftest.$ac_ext |
| 4692 | cat >>conftest.$ac_ext <<_ACEOF |
| 4693 | /* end confdefs.h. */ |
| 4694 | $ac_includes_default |
| 4695 | #include <errno.h> |
| 4696 | _ACEOF |
| 4697 | rm -f conftest.$ac_objext |
| 4698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4699 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4700 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4701 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4702 | rm -f conftest.er1 |
| 4703 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4705 | (exit $ac_status); } && |
| 4706 | { ac_try='test -z "$ac_c_werror_flag" |
| 4707 | || test ! -s conftest.err' |
| 4708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4709 | (eval $ac_try) 2>&5 |
| 4710 | ac_status=$? |
| 4711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4712 | (exit $ac_status); }; } && |
| 4713 | { ac_try='test -s conftest.$ac_objext' |
| 4714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4715 | (eval $ac_try) 2>&5 |
| 4716 | ac_status=$? |
| 4717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4718 | (exit $ac_status); }; }; then |
| 4719 | ac_header_compiler=yes |
| 4720 | else |
| 4721 | echo "$as_me: failed program was:" >&5 |
| 4722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4723 | |
| 4724 | ac_header_compiler=no |
| 4725 | fi |
| 4726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4727 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4728 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4729 | |
| 4730 | # Is the header present? |
| 4731 | echo "$as_me:$LINENO: checking errno.h presence" >&5 |
| 4732 | echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6 |
| 4733 | cat >conftest.$ac_ext <<_ACEOF |
| 4734 | /* confdefs.h. */ |
| 4735 | _ACEOF |
| 4736 | cat confdefs.h >>conftest.$ac_ext |
| 4737 | cat >>conftest.$ac_ext <<_ACEOF |
| 4738 | /* end confdefs.h. */ |
| 4739 | #include <errno.h> |
| 4740 | _ACEOF |
| 4741 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4742 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4743 | ac_status=$? |
| 4744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4745 | rm -f conftest.er1 |
| 4746 | cat conftest.err >&5 |
| 4747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4748 | (exit $ac_status); } >/dev/null; then |
| 4749 | if test -s conftest.err; then |
| 4750 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4751 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4752 | else |
| 4753 | ac_cpp_err= |
| 4754 | fi |
| 4755 | else |
| 4756 | ac_cpp_err=yes |
| 4757 | fi |
| 4758 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4759 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4760 | else |
| 4761 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4763 | |
| 4764 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4765 | fi |
| 4766 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4767 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4768 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4769 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4770 | # So? What about this header? |
| 4771 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4772 | yes:no: ) |
| 4773 | { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4774 | echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4775 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 |
| 4776 | echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} |
| 4777 | ac_header_preproc=yes |
| 4778 | ;; |
| 4779 | no:yes:* ) |
| 4780 | { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 |
| 4781 | echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} |
| 4782 | { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 |
| 4783 | echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} |
| 4784 | { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 |
| 4785 | echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} |
| 4786 | { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4787 | echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4788 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 |
| 4789 | echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} |
| 4790 | { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 |
| 4791 | echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} |
| 4792 | ( |
| 4793 | cat <<\_ASBOX |
| 4794 | ## ------------------------------------ ## |
| 4795 | ## Report this to the pjproject lists. ## |
| 4796 | ## ------------------------------------ ## |
| 4797 | _ASBOX |
| 4798 | ) | |
| 4799 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4800 | ;; |
| 4801 | esac |
| 4802 | echo "$as_me:$LINENO: checking for errno.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4803 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 |
| 4804 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4806 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4807 | ac_cv_header_errno_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4808 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4809 | echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4810 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4811 | |
| 4812 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4813 | if test $ac_cv_header_errno_h = yes; then |
| 4814 | cat >>confdefs.h <<\_ACEOF |
| 4815 | #define PJ_HAS_ERRNO_H 1 |
| 4816 | _ACEOF |
| 4817 | |
| 4818 | fi |
| 4819 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4820 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4821 | ;; |
| 4822 | esac |
| 4823 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4824 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 4825 | echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 4826 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6 |
| 4827 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 4828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4829 | fi |
| 4830 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 4831 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6 |
| 4832 | else |
| 4833 | # Is the header compilable? |
| 4834 | echo "$as_me:$LINENO: checking linux/socket.h usability" >&5 |
| 4835 | echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6 |
| 4836 | cat >conftest.$ac_ext <<_ACEOF |
| 4837 | /* confdefs.h. */ |
| 4838 | _ACEOF |
| 4839 | cat confdefs.h >>conftest.$ac_ext |
| 4840 | cat >>conftest.$ac_ext <<_ACEOF |
| 4841 | /* end confdefs.h. */ |
| 4842 | $ac_includes_default |
| 4843 | #include <linux/socket.h> |
| 4844 | _ACEOF |
| 4845 | rm -f conftest.$ac_objext |
| 4846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4847 | (eval $ac_compile) 2>conftest.er1 |
| 4848 | ac_status=$? |
| 4849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4850 | rm -f conftest.er1 |
| 4851 | cat conftest.err >&5 |
| 4852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4853 | (exit $ac_status); } && |
| 4854 | { ac_try='test -z "$ac_c_werror_flag" |
| 4855 | || test ! -s conftest.err' |
| 4856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4857 | (eval $ac_try) 2>&5 |
| 4858 | ac_status=$? |
| 4859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4860 | (exit $ac_status); }; } && |
| 4861 | { ac_try='test -s conftest.$ac_objext' |
| 4862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4863 | (eval $ac_try) 2>&5 |
| 4864 | ac_status=$? |
| 4865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4866 | (exit $ac_status); }; }; then |
| 4867 | ac_header_compiler=yes |
| 4868 | else |
| 4869 | echo "$as_me: failed program was:" >&5 |
| 4870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4871 | |
| 4872 | ac_header_compiler=no |
| 4873 | fi |
| 4874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4875 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4876 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4877 | |
| 4878 | # Is the header present? |
| 4879 | echo "$as_me:$LINENO: checking linux/socket.h presence" >&5 |
| 4880 | echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6 |
| 4881 | cat >conftest.$ac_ext <<_ACEOF |
| 4882 | /* confdefs.h. */ |
| 4883 | _ACEOF |
| 4884 | cat confdefs.h >>conftest.$ac_ext |
| 4885 | cat >>conftest.$ac_ext <<_ACEOF |
| 4886 | /* end confdefs.h. */ |
| 4887 | #include <linux/socket.h> |
| 4888 | _ACEOF |
| 4889 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4890 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4891 | ac_status=$? |
| 4892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4893 | rm -f conftest.er1 |
| 4894 | cat conftest.err >&5 |
| 4895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4896 | (exit $ac_status); } >/dev/null; then |
| 4897 | if test -s conftest.err; then |
| 4898 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4899 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4900 | else |
| 4901 | ac_cpp_err= |
| 4902 | fi |
| 4903 | else |
| 4904 | ac_cpp_err=yes |
| 4905 | fi |
| 4906 | if test -z "$ac_cpp_err"; then |
| 4907 | ac_header_preproc=yes |
| 4908 | else |
| 4909 | echo "$as_me: failed program was:" >&5 |
| 4910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4911 | |
| 4912 | ac_header_preproc=no |
| 4913 | fi |
| 4914 | rm -f conftest.err conftest.$ac_ext |
| 4915 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4916 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4917 | |
| 4918 | # So? What about this header? |
| 4919 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4920 | yes:no: ) |
| 4921 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4922 | echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4923 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5 |
| 4924 | echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;} |
| 4925 | ac_header_preproc=yes |
| 4926 | ;; |
| 4927 | no:yes:* ) |
| 4928 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5 |
| 4929 | echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;} |
| 4930 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5 |
| 4931 | echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;} |
| 4932 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5 |
| 4933 | echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;} |
| 4934 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4935 | echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4936 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5 |
| 4937 | echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;} |
| 4938 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5 |
| 4939 | echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;} |
| 4940 | ( |
| 4941 | cat <<\_ASBOX |
| 4942 | ## ------------------------------------ ## |
| 4943 | ## Report this to the pjproject lists. ## |
| 4944 | ## ------------------------------------ ## |
| 4945 | _ASBOX |
| 4946 | ) | |
| 4947 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4948 | ;; |
| 4949 | esac |
| 4950 | echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4951 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6 |
| 4952 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 4953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4954 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4955 | ac_cv_header_linux_socket_h=$ac_header_preproc |
| 4956 | fi |
| 4957 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 4958 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6 |
| 4959 | |
| 4960 | fi |
| 4961 | if test $ac_cv_header_linux_socket_h = yes; then |
| 4962 | cat >>confdefs.h <<\_ACEOF |
| 4963 | #define PJ_HAS_LINUX_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4964 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4965 | |
| 4966 | fi |
| 4967 | |
| 4968 | |
| 4969 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 4970 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 4971 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 |
| 4972 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 4973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4974 | fi |
| 4975 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 4976 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 |
| 4977 | else |
| 4978 | # Is the header compilable? |
| 4979 | echo "$as_me:$LINENO: checking malloc.h usability" >&5 |
| 4980 | echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6 |
| 4981 | cat >conftest.$ac_ext <<_ACEOF |
| 4982 | /* confdefs.h. */ |
| 4983 | _ACEOF |
| 4984 | cat confdefs.h >>conftest.$ac_ext |
| 4985 | cat >>conftest.$ac_ext <<_ACEOF |
| 4986 | /* end confdefs.h. */ |
| 4987 | $ac_includes_default |
| 4988 | #include <malloc.h> |
| 4989 | _ACEOF |
| 4990 | rm -f conftest.$ac_objext |
| 4991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4992 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4993 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4994 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4995 | rm -f conftest.er1 |
| 4996 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4998 | (exit $ac_status); } && |
| 4999 | { ac_try='test -z "$ac_c_werror_flag" |
| 5000 | || test ! -s conftest.err' |
| 5001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5002 | (eval $ac_try) 2>&5 |
| 5003 | ac_status=$? |
| 5004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5005 | (exit $ac_status); }; } && |
| 5006 | { ac_try='test -s conftest.$ac_objext' |
| 5007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5008 | (eval $ac_try) 2>&5 |
| 5009 | ac_status=$? |
| 5010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5011 | (exit $ac_status); }; }; then |
| 5012 | ac_header_compiler=yes |
| 5013 | else |
| 5014 | echo "$as_me: failed program was:" >&5 |
| 5015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5016 | |
| 5017 | ac_header_compiler=no |
| 5018 | fi |
| 5019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5020 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5021 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5022 | |
| 5023 | # Is the header present? |
| 5024 | echo "$as_me:$LINENO: checking malloc.h presence" >&5 |
| 5025 | echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6 |
| 5026 | cat >conftest.$ac_ext <<_ACEOF |
| 5027 | /* confdefs.h. */ |
| 5028 | _ACEOF |
| 5029 | cat confdefs.h >>conftest.$ac_ext |
| 5030 | cat >>conftest.$ac_ext <<_ACEOF |
| 5031 | /* end confdefs.h. */ |
| 5032 | #include <malloc.h> |
| 5033 | _ACEOF |
| 5034 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5035 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5036 | ac_status=$? |
| 5037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5038 | rm -f conftest.er1 |
| 5039 | cat conftest.err >&5 |
| 5040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5041 | (exit $ac_status); } >/dev/null; then |
| 5042 | if test -s conftest.err; then |
| 5043 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5044 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5045 | else |
| 5046 | ac_cpp_err= |
| 5047 | fi |
| 5048 | else |
| 5049 | ac_cpp_err=yes |
| 5050 | fi |
| 5051 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5052 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5053 | else |
| 5054 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5056 | |
| 5057 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5058 | fi |
| 5059 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5060 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5061 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5062 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5063 | # So? What about this header? |
| 5064 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5065 | yes:no: ) |
| 5066 | { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5067 | echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5068 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 |
| 5069 | echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} |
| 5070 | ac_header_preproc=yes |
| 5071 | ;; |
| 5072 | no:yes:* ) |
| 5073 | { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 |
| 5074 | echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} |
| 5075 | { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 |
| 5076 | echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} |
| 5077 | { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 |
| 5078 | echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} |
| 5079 | { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5080 | echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5081 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 |
| 5082 | echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} |
| 5083 | { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 |
| 5084 | echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} |
| 5085 | ( |
| 5086 | cat <<\_ASBOX |
| 5087 | ## ------------------------------------ ## |
| 5088 | ## Report this to the pjproject lists. ## |
| 5089 | ## ------------------------------------ ## |
| 5090 | _ASBOX |
| 5091 | ) | |
| 5092 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5093 | ;; |
| 5094 | esac |
| 5095 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5096 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 |
| 5097 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5099 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5100 | ac_cv_header_malloc_h=$ac_header_preproc |
| 5101 | fi |
| 5102 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5103 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 |
| 5104 | |
| 5105 | fi |
| 5106 | if test $ac_cv_header_malloc_h = yes; then |
| 5107 | cat >>confdefs.h <<\_ACEOF |
| 5108 | #define PJ_HAS_MALLOC_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5109 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5110 | |
| 5111 | fi |
| 5112 | |
| 5113 | |
| 5114 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5115 | echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 5116 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6 |
| 5117 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5119 | fi |
| 5120 | echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5121 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6 |
| 5122 | else |
| 5123 | # Is the header compilable? |
| 5124 | echo "$as_me:$LINENO: checking netdb.h usability" >&5 |
| 5125 | echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6 |
| 5126 | cat >conftest.$ac_ext <<_ACEOF |
| 5127 | /* confdefs.h. */ |
| 5128 | _ACEOF |
| 5129 | cat confdefs.h >>conftest.$ac_ext |
| 5130 | cat >>conftest.$ac_ext <<_ACEOF |
| 5131 | /* end confdefs.h. */ |
| 5132 | $ac_includes_default |
| 5133 | #include <netdb.h> |
| 5134 | _ACEOF |
| 5135 | rm -f conftest.$ac_objext |
| 5136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5137 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5138 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5139 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5140 | rm -f conftest.er1 |
| 5141 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5143 | (exit $ac_status); } && |
| 5144 | { ac_try='test -z "$ac_c_werror_flag" |
| 5145 | || test ! -s conftest.err' |
| 5146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5147 | (eval $ac_try) 2>&5 |
| 5148 | ac_status=$? |
| 5149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5150 | (exit $ac_status); }; } && |
| 5151 | { ac_try='test -s conftest.$ac_objext' |
| 5152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5153 | (eval $ac_try) 2>&5 |
| 5154 | ac_status=$? |
| 5155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5156 | (exit $ac_status); }; }; then |
| 5157 | ac_header_compiler=yes |
| 5158 | else |
| 5159 | echo "$as_me: failed program was:" >&5 |
| 5160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5161 | |
| 5162 | ac_header_compiler=no |
| 5163 | fi |
| 5164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5165 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5166 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5167 | |
| 5168 | # Is the header present? |
| 5169 | echo "$as_me:$LINENO: checking netdb.h presence" >&5 |
| 5170 | echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6 |
| 5171 | cat >conftest.$ac_ext <<_ACEOF |
| 5172 | /* confdefs.h. */ |
| 5173 | _ACEOF |
| 5174 | cat confdefs.h >>conftest.$ac_ext |
| 5175 | cat >>conftest.$ac_ext <<_ACEOF |
| 5176 | /* end confdefs.h. */ |
| 5177 | #include <netdb.h> |
| 5178 | _ACEOF |
| 5179 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5180 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5181 | ac_status=$? |
| 5182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5183 | rm -f conftest.er1 |
| 5184 | cat conftest.err >&5 |
| 5185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5186 | (exit $ac_status); } >/dev/null; then |
| 5187 | if test -s conftest.err; then |
| 5188 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5189 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5190 | else |
| 5191 | ac_cpp_err= |
| 5192 | fi |
| 5193 | else |
| 5194 | ac_cpp_err=yes |
| 5195 | fi |
| 5196 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5197 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5198 | else |
| 5199 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5201 | |
| 5202 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5203 | fi |
| 5204 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5205 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5206 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5207 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5208 | # So? What about this header? |
| 5209 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5210 | yes:no: ) |
| 5211 | { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5212 | echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5213 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5 |
| 5214 | echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;} |
| 5215 | ac_header_preproc=yes |
| 5216 | ;; |
| 5217 | no:yes:* ) |
| 5218 | { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5 |
| 5219 | echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;} |
| 5220 | { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5 |
| 5221 | echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;} |
| 5222 | { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5 |
| 5223 | echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;} |
| 5224 | { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5225 | echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5226 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5 |
| 5227 | echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;} |
| 5228 | { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5 |
| 5229 | echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;} |
| 5230 | ( |
| 5231 | cat <<\_ASBOX |
| 5232 | ## ------------------------------------ ## |
| 5233 | ## Report this to the pjproject lists. ## |
| 5234 | ## ------------------------------------ ## |
| 5235 | _ASBOX |
| 5236 | ) | |
| 5237 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5238 | ;; |
| 5239 | esac |
| 5240 | echo "$as_me:$LINENO: checking for netdb.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5241 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6 |
| 5242 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5244 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5245 | ac_cv_header_netdb_h=$ac_header_preproc |
| 5246 | fi |
| 5247 | echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5248 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6 |
| 5249 | |
| 5250 | fi |
| 5251 | if test $ac_cv_header_netdb_h = yes; then |
| 5252 | cat >>confdefs.h <<\_ACEOF |
| 5253 | #define PJ_HAS_NETDB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5254 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5255 | |
| 5256 | fi |
| 5257 | |
| 5258 | |
| 5259 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5260 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 5261 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
| 5262 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5264 | fi |
| 5265 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 5266 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
| 5267 | else |
| 5268 | # Is the header compilable? |
| 5269 | echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
| 5270 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 |
| 5271 | cat >conftest.$ac_ext <<_ACEOF |
| 5272 | /* confdefs.h. */ |
| 5273 | _ACEOF |
| 5274 | cat confdefs.h >>conftest.$ac_ext |
| 5275 | cat >>conftest.$ac_ext <<_ACEOF |
| 5276 | /* end confdefs.h. */ |
| 5277 | $ac_includes_default |
| 5278 | #include <netinet/in.h> |
| 5279 | _ACEOF |
| 5280 | rm -f conftest.$ac_objext |
| 5281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5282 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5283 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5284 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5285 | rm -f conftest.er1 |
| 5286 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5288 | (exit $ac_status); } && |
| 5289 | { ac_try='test -z "$ac_c_werror_flag" |
| 5290 | || test ! -s conftest.err' |
| 5291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5292 | (eval $ac_try) 2>&5 |
| 5293 | ac_status=$? |
| 5294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5295 | (exit $ac_status); }; } && |
| 5296 | { ac_try='test -s conftest.$ac_objext' |
| 5297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5298 | (eval $ac_try) 2>&5 |
| 5299 | ac_status=$? |
| 5300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5301 | (exit $ac_status); }; }; then |
| 5302 | ac_header_compiler=yes |
| 5303 | else |
| 5304 | echo "$as_me: failed program was:" >&5 |
| 5305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5306 | |
| 5307 | ac_header_compiler=no |
| 5308 | fi |
| 5309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5310 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5311 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5312 | |
| 5313 | # Is the header present? |
| 5314 | echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
| 5315 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 |
| 5316 | cat >conftest.$ac_ext <<_ACEOF |
| 5317 | /* confdefs.h. */ |
| 5318 | _ACEOF |
| 5319 | cat confdefs.h >>conftest.$ac_ext |
| 5320 | cat >>conftest.$ac_ext <<_ACEOF |
| 5321 | /* end confdefs.h. */ |
| 5322 | #include <netinet/in.h> |
| 5323 | _ACEOF |
| 5324 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5325 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5326 | ac_status=$? |
| 5327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5328 | rm -f conftest.er1 |
| 5329 | cat conftest.err >&5 |
| 5330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5331 | (exit $ac_status); } >/dev/null; then |
| 5332 | if test -s conftest.err; then |
| 5333 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5334 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5335 | else |
| 5336 | ac_cpp_err= |
| 5337 | fi |
| 5338 | else |
| 5339 | ac_cpp_err=yes |
| 5340 | fi |
| 5341 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5342 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5343 | else |
| 5344 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5346 | |
| 5347 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5348 | fi |
| 5349 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5350 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5351 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5352 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5353 | # So? What about this header? |
| 5354 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5355 | yes:no: ) |
| 5356 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5357 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5358 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
| 5359 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} |
| 5360 | ac_header_preproc=yes |
| 5361 | ;; |
| 5362 | no:yes:* ) |
| 5363 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
| 5364 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} |
| 5365 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
| 5366 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} |
| 5367 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 |
| 5368 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} |
| 5369 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5370 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5371 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
| 5372 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
| 5373 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
| 5374 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} |
| 5375 | ( |
| 5376 | cat <<\_ASBOX |
| 5377 | ## ------------------------------------ ## |
| 5378 | ## Report this to the pjproject lists. ## |
| 5379 | ## ------------------------------------ ## |
| 5380 | _ASBOX |
| 5381 | ) | |
| 5382 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5383 | ;; |
| 5384 | esac |
| 5385 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5386 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
| 5387 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5389 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5390 | ac_cv_header_netinet_in_h=$ac_header_preproc |
| 5391 | fi |
| 5392 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 5393 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
| 5394 | |
| 5395 | fi |
| 5396 | if test $ac_cv_header_netinet_in_h = yes; then |
| 5397 | cat >>confdefs.h <<\_ACEOF |
| 5398 | #define PJ_HAS_NETINET_IN_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5399 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5400 | |
| 5401 | fi |
| 5402 | |
| 5403 | |
| 5404 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 5405 | echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 5406 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6 |
| 5407 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 5408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5409 | fi |
| 5410 | echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 5411 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6 |
| 5412 | else |
| 5413 | # Is the header compilable? |
| 5414 | echo "$as_me:$LINENO: checking setjmp.h usability" >&5 |
| 5415 | echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6 |
| 5416 | cat >conftest.$ac_ext <<_ACEOF |
| 5417 | /* confdefs.h. */ |
| 5418 | _ACEOF |
| 5419 | cat confdefs.h >>conftest.$ac_ext |
| 5420 | cat >>conftest.$ac_ext <<_ACEOF |
| 5421 | /* end confdefs.h. */ |
| 5422 | $ac_includes_default |
| 5423 | #include <setjmp.h> |
| 5424 | _ACEOF |
| 5425 | rm -f conftest.$ac_objext |
| 5426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5427 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5428 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5429 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5430 | rm -f conftest.er1 |
| 5431 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5433 | (exit $ac_status); } && |
| 5434 | { ac_try='test -z "$ac_c_werror_flag" |
| 5435 | || test ! -s conftest.err' |
| 5436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5437 | (eval $ac_try) 2>&5 |
| 5438 | ac_status=$? |
| 5439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5440 | (exit $ac_status); }; } && |
| 5441 | { ac_try='test -s conftest.$ac_objext' |
| 5442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5443 | (eval $ac_try) 2>&5 |
| 5444 | ac_status=$? |
| 5445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5446 | (exit $ac_status); }; }; then |
| 5447 | ac_header_compiler=yes |
| 5448 | else |
| 5449 | echo "$as_me: failed program was:" >&5 |
| 5450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5451 | |
| 5452 | ac_header_compiler=no |
| 5453 | fi |
| 5454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5455 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5456 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5457 | |
| 5458 | # Is the header present? |
| 5459 | echo "$as_me:$LINENO: checking setjmp.h presence" >&5 |
| 5460 | echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6 |
| 5461 | cat >conftest.$ac_ext <<_ACEOF |
| 5462 | /* confdefs.h. */ |
| 5463 | _ACEOF |
| 5464 | cat confdefs.h >>conftest.$ac_ext |
| 5465 | cat >>conftest.$ac_ext <<_ACEOF |
| 5466 | /* end confdefs.h. */ |
| 5467 | #include <setjmp.h> |
| 5468 | _ACEOF |
| 5469 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5470 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5471 | ac_status=$? |
| 5472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5473 | rm -f conftest.er1 |
| 5474 | cat conftest.err >&5 |
| 5475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5476 | (exit $ac_status); } >/dev/null; then |
| 5477 | if test -s conftest.err; then |
| 5478 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5479 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5480 | else |
| 5481 | ac_cpp_err= |
| 5482 | fi |
| 5483 | else |
| 5484 | ac_cpp_err=yes |
| 5485 | fi |
| 5486 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5487 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5488 | else |
| 5489 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5491 | |
| 5492 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5493 | fi |
| 5494 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5495 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5496 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5497 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5498 | # So? What about this header? |
| 5499 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5500 | yes:no: ) |
| 5501 | { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5502 | echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5503 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5 |
| 5504 | echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;} |
| 5505 | ac_header_preproc=yes |
| 5506 | ;; |
| 5507 | no:yes:* ) |
| 5508 | { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5 |
| 5509 | echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;} |
| 5510 | { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5 |
| 5511 | echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;} |
| 5512 | { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5 |
| 5513 | echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;} |
| 5514 | { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5515 | echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5516 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5 |
| 5517 | echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;} |
| 5518 | { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5 |
| 5519 | echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;} |
| 5520 | ( |
| 5521 | cat <<\_ASBOX |
| 5522 | ## ------------------------------------ ## |
| 5523 | ## Report this to the pjproject lists. ## |
| 5524 | ## ------------------------------------ ## |
| 5525 | _ASBOX |
| 5526 | ) | |
| 5527 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5528 | ;; |
| 5529 | esac |
| 5530 | echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5531 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6 |
| 5532 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 5533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5534 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5535 | ac_cv_header_setjmp_h=$ac_header_preproc |
| 5536 | fi |
| 5537 | echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 5538 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6 |
| 5539 | |
| 5540 | fi |
| 5541 | if test $ac_cv_header_setjmp_h = yes; then |
| 5542 | cat >>confdefs.h <<\_ACEOF |
| 5543 | #define PJ_HAS_SETJMP_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5544 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5545 | |
| 5546 | fi |
| 5547 | |
| 5548 | |
| 5549 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 5550 | echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 5551 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 |
| 5552 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 5553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5554 | fi |
| 5555 | echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 5556 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 |
| 5557 | else |
| 5558 | # Is the header compilable? |
| 5559 | echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
| 5560 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6 |
| 5561 | cat >conftest.$ac_ext <<_ACEOF |
| 5562 | /* confdefs.h. */ |
| 5563 | _ACEOF |
| 5564 | cat confdefs.h >>conftest.$ac_ext |
| 5565 | cat >>conftest.$ac_ext <<_ACEOF |
| 5566 | /* end confdefs.h. */ |
| 5567 | $ac_includes_default |
| 5568 | #include <stdarg.h> |
| 5569 | _ACEOF |
| 5570 | rm -f conftest.$ac_objext |
| 5571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5572 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5573 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5574 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5575 | rm -f conftest.er1 |
| 5576 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5578 | (exit $ac_status); } && |
| 5579 | { ac_try='test -z "$ac_c_werror_flag" |
| 5580 | || test ! -s conftest.err' |
| 5581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5582 | (eval $ac_try) 2>&5 |
| 5583 | ac_status=$? |
| 5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5585 | (exit $ac_status); }; } && |
| 5586 | { ac_try='test -s conftest.$ac_objext' |
| 5587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5588 | (eval $ac_try) 2>&5 |
| 5589 | ac_status=$? |
| 5590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5591 | (exit $ac_status); }; }; then |
| 5592 | ac_header_compiler=yes |
| 5593 | else |
| 5594 | echo "$as_me: failed program was:" >&5 |
| 5595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5596 | |
| 5597 | ac_header_compiler=no |
| 5598 | fi |
| 5599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5600 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5601 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5602 | |
| 5603 | # Is the header present? |
| 5604 | echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
| 5605 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6 |
| 5606 | cat >conftest.$ac_ext <<_ACEOF |
| 5607 | /* confdefs.h. */ |
| 5608 | _ACEOF |
| 5609 | cat confdefs.h >>conftest.$ac_ext |
| 5610 | cat >>conftest.$ac_ext <<_ACEOF |
| 5611 | /* end confdefs.h. */ |
| 5612 | #include <stdarg.h> |
| 5613 | _ACEOF |
| 5614 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5615 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5616 | ac_status=$? |
| 5617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5618 | rm -f conftest.er1 |
| 5619 | cat conftest.err >&5 |
| 5620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5621 | (exit $ac_status); } >/dev/null; then |
| 5622 | if test -s conftest.err; then |
| 5623 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5624 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5625 | else |
| 5626 | ac_cpp_err= |
| 5627 | fi |
| 5628 | else |
| 5629 | ac_cpp_err=yes |
| 5630 | fi |
| 5631 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5632 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5633 | else |
| 5634 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5636 | |
| 5637 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5638 | fi |
| 5639 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5640 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5641 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5642 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5643 | # So? What about this header? |
| 5644 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5645 | yes:no: ) |
| 5646 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5647 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5648 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 |
| 5649 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} |
| 5650 | ac_header_preproc=yes |
| 5651 | ;; |
| 5652 | no:yes:* ) |
| 5653 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 |
| 5654 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} |
| 5655 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 |
| 5656 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} |
| 5657 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 |
| 5658 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} |
| 5659 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5660 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5661 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 |
| 5662 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} |
| 5663 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 |
| 5664 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} |
| 5665 | ( |
| 5666 | cat <<\_ASBOX |
| 5667 | ## ------------------------------------ ## |
| 5668 | ## Report this to the pjproject lists. ## |
| 5669 | ## ------------------------------------ ## |
| 5670 | _ASBOX |
| 5671 | ) | |
| 5672 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5673 | ;; |
| 5674 | esac |
| 5675 | echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5676 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 |
| 5677 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 5678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5679 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5680 | ac_cv_header_stdarg_h=$ac_header_preproc |
| 5681 | fi |
| 5682 | echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 5683 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 |
| 5684 | |
| 5685 | fi |
| 5686 | if test $ac_cv_header_stdarg_h = yes; then |
| 5687 | cat >>confdefs.h <<\_ACEOF |
| 5688 | #define PJ_HAS_STDARG_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5689 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5690 | |
| 5691 | fi |
| 5692 | |
| 5693 | |
| 5694 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 5695 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 5696 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 |
| 5697 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 5698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5699 | fi |
| 5700 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 5701 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 |
| 5702 | else |
| 5703 | # Is the header compilable? |
| 5704 | echo "$as_me:$LINENO: checking stddef.h usability" >&5 |
| 5705 | echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6 |
| 5706 | cat >conftest.$ac_ext <<_ACEOF |
| 5707 | /* confdefs.h. */ |
| 5708 | _ACEOF |
| 5709 | cat confdefs.h >>conftest.$ac_ext |
| 5710 | cat >>conftest.$ac_ext <<_ACEOF |
| 5711 | /* end confdefs.h. */ |
| 5712 | $ac_includes_default |
| 5713 | #include <stddef.h> |
| 5714 | _ACEOF |
| 5715 | rm -f conftest.$ac_objext |
| 5716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5717 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5718 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5719 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5720 | rm -f conftest.er1 |
| 5721 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5723 | (exit $ac_status); } && |
| 5724 | { ac_try='test -z "$ac_c_werror_flag" |
| 5725 | || test ! -s conftest.err' |
| 5726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5727 | (eval $ac_try) 2>&5 |
| 5728 | ac_status=$? |
| 5729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5730 | (exit $ac_status); }; } && |
| 5731 | { ac_try='test -s conftest.$ac_objext' |
| 5732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5733 | (eval $ac_try) 2>&5 |
| 5734 | ac_status=$? |
| 5735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5736 | (exit $ac_status); }; }; then |
| 5737 | ac_header_compiler=yes |
| 5738 | else |
| 5739 | echo "$as_me: failed program was:" >&5 |
| 5740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5741 | |
| 5742 | ac_header_compiler=no |
| 5743 | fi |
| 5744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5745 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5746 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5747 | |
| 5748 | # Is the header present? |
| 5749 | echo "$as_me:$LINENO: checking stddef.h presence" >&5 |
| 5750 | echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6 |
| 5751 | cat >conftest.$ac_ext <<_ACEOF |
| 5752 | /* confdefs.h. */ |
| 5753 | _ACEOF |
| 5754 | cat confdefs.h >>conftest.$ac_ext |
| 5755 | cat >>conftest.$ac_ext <<_ACEOF |
| 5756 | /* end confdefs.h. */ |
| 5757 | #include <stddef.h> |
| 5758 | _ACEOF |
| 5759 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5760 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5761 | ac_status=$? |
| 5762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5763 | rm -f conftest.er1 |
| 5764 | cat conftest.err >&5 |
| 5765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5766 | (exit $ac_status); } >/dev/null; then |
| 5767 | if test -s conftest.err; then |
| 5768 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5769 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5770 | else |
| 5771 | ac_cpp_err= |
| 5772 | fi |
| 5773 | else |
| 5774 | ac_cpp_err=yes |
| 5775 | fi |
| 5776 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5777 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5778 | else |
| 5779 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5781 | |
| 5782 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5783 | fi |
| 5784 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5785 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5786 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5787 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5788 | # So? What about this header? |
| 5789 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5790 | yes:no: ) |
| 5791 | { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5792 | echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5793 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5 |
| 5794 | echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;} |
| 5795 | ac_header_preproc=yes |
| 5796 | ;; |
| 5797 | no:yes:* ) |
| 5798 | { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5 |
| 5799 | echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;} |
| 5800 | { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5 |
| 5801 | echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;} |
| 5802 | { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 |
| 5803 | echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;} |
| 5804 | { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5805 | echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5806 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5 |
| 5807 | echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;} |
| 5808 | { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5 |
| 5809 | echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;} |
| 5810 | ( |
| 5811 | cat <<\_ASBOX |
| 5812 | ## ------------------------------------ ## |
| 5813 | ## Report this to the pjproject lists. ## |
| 5814 | ## ------------------------------------ ## |
| 5815 | _ASBOX |
| 5816 | ) | |
| 5817 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5818 | ;; |
| 5819 | esac |
| 5820 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5821 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 |
| 5822 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 5823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5824 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5825 | ac_cv_header_stddef_h=$ac_header_preproc |
| 5826 | fi |
| 5827 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 5828 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 |
| 5829 | |
| 5830 | fi |
| 5831 | if test $ac_cv_header_stddef_h = yes; then |
| 5832 | cat >>confdefs.h <<\_ACEOF |
| 5833 | #define PJ_HAS_STDDEF_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5834 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5835 | |
| 5836 | fi |
| 5837 | |
| 5838 | |
| 5839 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 5840 | echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 5841 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6 |
| 5842 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 5843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5844 | fi |
| 5845 | echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 5846 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6 |
| 5847 | else |
| 5848 | # Is the header compilable? |
| 5849 | echo "$as_me:$LINENO: checking stdio.h usability" >&5 |
| 5850 | echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6 |
| 5851 | cat >conftest.$ac_ext <<_ACEOF |
| 5852 | /* confdefs.h. */ |
| 5853 | _ACEOF |
| 5854 | cat confdefs.h >>conftest.$ac_ext |
| 5855 | cat >>conftest.$ac_ext <<_ACEOF |
| 5856 | /* end confdefs.h. */ |
| 5857 | $ac_includes_default |
| 5858 | #include <stdio.h> |
| 5859 | _ACEOF |
| 5860 | rm -f conftest.$ac_objext |
| 5861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5862 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5863 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5864 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5865 | rm -f conftest.er1 |
| 5866 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5868 | (exit $ac_status); } && |
| 5869 | { ac_try='test -z "$ac_c_werror_flag" |
| 5870 | || test ! -s conftest.err' |
| 5871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5872 | (eval $ac_try) 2>&5 |
| 5873 | ac_status=$? |
| 5874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5875 | (exit $ac_status); }; } && |
| 5876 | { ac_try='test -s conftest.$ac_objext' |
| 5877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5878 | (eval $ac_try) 2>&5 |
| 5879 | ac_status=$? |
| 5880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5881 | (exit $ac_status); }; }; then |
| 5882 | ac_header_compiler=yes |
| 5883 | else |
| 5884 | echo "$as_me: failed program was:" >&5 |
| 5885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5886 | |
| 5887 | ac_header_compiler=no |
| 5888 | fi |
| 5889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5890 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5891 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5892 | |
| 5893 | # Is the header present? |
| 5894 | echo "$as_me:$LINENO: checking stdio.h presence" >&5 |
| 5895 | echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6 |
| 5896 | cat >conftest.$ac_ext <<_ACEOF |
| 5897 | /* confdefs.h. */ |
| 5898 | _ACEOF |
| 5899 | cat confdefs.h >>conftest.$ac_ext |
| 5900 | cat >>conftest.$ac_ext <<_ACEOF |
| 5901 | /* end confdefs.h. */ |
| 5902 | #include <stdio.h> |
| 5903 | _ACEOF |
| 5904 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5905 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5906 | ac_status=$? |
| 5907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5908 | rm -f conftest.er1 |
| 5909 | cat conftest.err >&5 |
| 5910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5911 | (exit $ac_status); } >/dev/null; then |
| 5912 | if test -s conftest.err; then |
| 5913 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5914 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5915 | else |
| 5916 | ac_cpp_err= |
| 5917 | fi |
| 5918 | else |
| 5919 | ac_cpp_err=yes |
| 5920 | fi |
| 5921 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5922 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5923 | else |
| 5924 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5926 | |
| 5927 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5928 | fi |
| 5929 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5930 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5931 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5932 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5933 | # So? What about this header? |
| 5934 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5935 | yes:no: ) |
| 5936 | { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5937 | echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5938 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5 |
| 5939 | echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;} |
| 5940 | ac_header_preproc=yes |
| 5941 | ;; |
| 5942 | no:yes:* ) |
| 5943 | { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5 |
| 5944 | echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;} |
| 5945 | { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5 |
| 5946 | echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;} |
| 5947 | { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5 |
| 5948 | echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;} |
| 5949 | { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5950 | echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5951 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5 |
| 5952 | echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;} |
| 5953 | { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5 |
| 5954 | echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;} |
| 5955 | ( |
| 5956 | cat <<\_ASBOX |
| 5957 | ## ------------------------------------ ## |
| 5958 | ## Report this to the pjproject lists. ## |
| 5959 | ## ------------------------------------ ## |
| 5960 | _ASBOX |
| 5961 | ) | |
| 5962 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5963 | ;; |
| 5964 | esac |
| 5965 | echo "$as_me:$LINENO: checking for stdio.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5966 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6 |
| 5967 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 5968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5969 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5970 | ac_cv_header_stdio_h=$ac_header_preproc |
| 5971 | fi |
| 5972 | echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 5973 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6 |
| 5974 | |
| 5975 | fi |
| 5976 | if test $ac_cv_header_stdio_h = yes; then |
| 5977 | cat >>confdefs.h <<\_ACEOF |
| 5978 | #define PJ_HAS_STDIO_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5979 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5980 | |
| 5981 | fi |
| 5982 | |
| 5983 | |
| 5984 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 5985 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 5986 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 |
| 5987 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 5988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5989 | fi |
| 5990 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 5991 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 |
| 5992 | else |
| 5993 | # Is the header compilable? |
| 5994 | echo "$as_me:$LINENO: checking stdlib.h usability" >&5 |
| 5995 | echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6 |
| 5996 | cat >conftest.$ac_ext <<_ACEOF |
| 5997 | /* confdefs.h. */ |
| 5998 | _ACEOF |
| 5999 | cat confdefs.h >>conftest.$ac_ext |
| 6000 | cat >>conftest.$ac_ext <<_ACEOF |
| 6001 | /* end confdefs.h. */ |
| 6002 | $ac_includes_default |
| 6003 | #include <stdlib.h> |
| 6004 | _ACEOF |
| 6005 | rm -f conftest.$ac_objext |
| 6006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6007 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6008 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6009 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6010 | rm -f conftest.er1 |
| 6011 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6013 | (exit $ac_status); } && |
| 6014 | { ac_try='test -z "$ac_c_werror_flag" |
| 6015 | || test ! -s conftest.err' |
| 6016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6017 | (eval $ac_try) 2>&5 |
| 6018 | ac_status=$? |
| 6019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6020 | (exit $ac_status); }; } && |
| 6021 | { ac_try='test -s conftest.$ac_objext' |
| 6022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6023 | (eval $ac_try) 2>&5 |
| 6024 | ac_status=$? |
| 6025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6026 | (exit $ac_status); }; }; then |
| 6027 | ac_header_compiler=yes |
| 6028 | else |
| 6029 | echo "$as_me: failed program was:" >&5 |
| 6030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6031 | |
| 6032 | ac_header_compiler=no |
| 6033 | fi |
| 6034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6035 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6036 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6037 | |
| 6038 | # Is the header present? |
| 6039 | echo "$as_me:$LINENO: checking stdlib.h presence" >&5 |
| 6040 | echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6 |
| 6041 | cat >conftest.$ac_ext <<_ACEOF |
| 6042 | /* confdefs.h. */ |
| 6043 | _ACEOF |
| 6044 | cat confdefs.h >>conftest.$ac_ext |
| 6045 | cat >>conftest.$ac_ext <<_ACEOF |
| 6046 | /* end confdefs.h. */ |
| 6047 | #include <stdlib.h> |
| 6048 | _ACEOF |
| 6049 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6050 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6051 | ac_status=$? |
| 6052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6053 | rm -f conftest.er1 |
| 6054 | cat conftest.err >&5 |
| 6055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6056 | (exit $ac_status); } >/dev/null; then |
| 6057 | if test -s conftest.err; then |
| 6058 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6059 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6060 | else |
| 6061 | ac_cpp_err= |
| 6062 | fi |
| 6063 | else |
| 6064 | ac_cpp_err=yes |
| 6065 | fi |
| 6066 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6067 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6068 | else |
| 6069 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6071 | |
| 6072 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6073 | fi |
| 6074 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6075 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6076 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6077 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6078 | # So? What about this header? |
| 6079 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6080 | yes:no: ) |
| 6081 | { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6082 | echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6083 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 |
| 6084 | echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} |
| 6085 | ac_header_preproc=yes |
| 6086 | ;; |
| 6087 | no:yes:* ) |
| 6088 | { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 |
| 6089 | echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} |
| 6090 | { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 |
| 6091 | echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} |
| 6092 | { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 |
| 6093 | echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} |
| 6094 | { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6095 | echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6096 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 |
| 6097 | echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} |
| 6098 | { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 |
| 6099 | echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} |
| 6100 | ( |
| 6101 | cat <<\_ASBOX |
| 6102 | ## ------------------------------------ ## |
| 6103 | ## Report this to the pjproject lists. ## |
| 6104 | ## ------------------------------------ ## |
| 6105 | _ASBOX |
| 6106 | ) | |
| 6107 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6108 | ;; |
| 6109 | esac |
| 6110 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6111 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 |
| 6112 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 6113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6114 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6115 | ac_cv_header_stdlib_h=$ac_header_preproc |
| 6116 | fi |
| 6117 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 6118 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 |
| 6119 | |
| 6120 | fi |
| 6121 | if test $ac_cv_header_stdlib_h = yes; then |
| 6122 | cat >>confdefs.h <<\_ACEOF |
| 6123 | #define PJ_HAS_STDLIB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6124 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6125 | |
| 6126 | fi |
| 6127 | |
| 6128 | |
| 6129 | if test "${ac_cv_header_string_h+set}" = set; then |
| 6130 | echo "$as_me:$LINENO: checking for string.h" >&5 |
| 6131 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 |
| 6132 | if test "${ac_cv_header_string_h+set}" = set; then |
| 6133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6134 | fi |
| 6135 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 6136 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 |
| 6137 | else |
| 6138 | # Is the header compilable? |
| 6139 | echo "$as_me:$LINENO: checking string.h usability" >&5 |
| 6140 | echo $ECHO_N "checking string.h usability... $ECHO_C" >&6 |
| 6141 | cat >conftest.$ac_ext <<_ACEOF |
| 6142 | /* confdefs.h. */ |
| 6143 | _ACEOF |
| 6144 | cat confdefs.h >>conftest.$ac_ext |
| 6145 | cat >>conftest.$ac_ext <<_ACEOF |
| 6146 | /* end confdefs.h. */ |
| 6147 | $ac_includes_default |
| 6148 | #include <string.h> |
| 6149 | _ACEOF |
| 6150 | rm -f conftest.$ac_objext |
| 6151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6152 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6153 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6154 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6155 | rm -f conftest.er1 |
| 6156 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6158 | (exit $ac_status); } && |
| 6159 | { ac_try='test -z "$ac_c_werror_flag" |
| 6160 | || test ! -s conftest.err' |
| 6161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6162 | (eval $ac_try) 2>&5 |
| 6163 | ac_status=$? |
| 6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6165 | (exit $ac_status); }; } && |
| 6166 | { ac_try='test -s conftest.$ac_objext' |
| 6167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6168 | (eval $ac_try) 2>&5 |
| 6169 | ac_status=$? |
| 6170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6171 | (exit $ac_status); }; }; then |
| 6172 | ac_header_compiler=yes |
| 6173 | else |
| 6174 | echo "$as_me: failed program was:" >&5 |
| 6175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6176 | |
| 6177 | ac_header_compiler=no |
| 6178 | fi |
| 6179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6180 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6181 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6182 | |
| 6183 | # Is the header present? |
| 6184 | echo "$as_me:$LINENO: checking string.h presence" >&5 |
| 6185 | echo $ECHO_N "checking string.h presence... $ECHO_C" >&6 |
| 6186 | cat >conftest.$ac_ext <<_ACEOF |
| 6187 | /* confdefs.h. */ |
| 6188 | _ACEOF |
| 6189 | cat confdefs.h >>conftest.$ac_ext |
| 6190 | cat >>conftest.$ac_ext <<_ACEOF |
| 6191 | /* end confdefs.h. */ |
| 6192 | #include <string.h> |
| 6193 | _ACEOF |
| 6194 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6195 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6196 | ac_status=$? |
| 6197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6198 | rm -f conftest.er1 |
| 6199 | cat conftest.err >&5 |
| 6200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6201 | (exit $ac_status); } >/dev/null; then |
| 6202 | if test -s conftest.err; then |
| 6203 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6204 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6205 | else |
| 6206 | ac_cpp_err= |
| 6207 | fi |
| 6208 | else |
| 6209 | ac_cpp_err=yes |
| 6210 | fi |
| 6211 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6212 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6213 | else |
| 6214 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6216 | |
| 6217 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6218 | fi |
| 6219 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6220 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6221 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6222 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6223 | # So? What about this header? |
| 6224 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6225 | yes:no: ) |
| 6226 | { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6227 | echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6228 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 |
| 6229 | echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} |
| 6230 | ac_header_preproc=yes |
| 6231 | ;; |
| 6232 | no:yes:* ) |
| 6233 | { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 |
| 6234 | echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} |
| 6235 | { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 |
| 6236 | echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} |
| 6237 | { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 |
| 6238 | echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} |
| 6239 | { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6240 | echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6241 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 |
| 6242 | echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} |
| 6243 | { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 |
| 6244 | echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} |
| 6245 | ( |
| 6246 | cat <<\_ASBOX |
| 6247 | ## ------------------------------------ ## |
| 6248 | ## Report this to the pjproject lists. ## |
| 6249 | ## ------------------------------------ ## |
| 6250 | _ASBOX |
| 6251 | ) | |
| 6252 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6253 | ;; |
| 6254 | esac |
| 6255 | echo "$as_me:$LINENO: checking for string.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6256 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 |
| 6257 | if test "${ac_cv_header_string_h+set}" = set; then |
| 6258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6259 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6260 | ac_cv_header_string_h=$ac_header_preproc |
| 6261 | fi |
| 6262 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 6263 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 |
| 6264 | |
| 6265 | fi |
| 6266 | if test $ac_cv_header_string_h = yes; then |
| 6267 | cat >>confdefs.h <<\_ACEOF |
| 6268 | #define PJ_HAS_STRING_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6269 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6270 | |
| 6271 | fi |
| 6272 | |
| 6273 | |
| 6274 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 6275 | echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 6276 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6 |
| 6277 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 6278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6279 | fi |
| 6280 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 6281 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6 |
| 6282 | else |
| 6283 | # Is the header compilable? |
| 6284 | echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5 |
| 6285 | echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6 |
| 6286 | cat >conftest.$ac_ext <<_ACEOF |
| 6287 | /* confdefs.h. */ |
| 6288 | _ACEOF |
| 6289 | cat confdefs.h >>conftest.$ac_ext |
| 6290 | cat >>conftest.$ac_ext <<_ACEOF |
| 6291 | /* end confdefs.h. */ |
| 6292 | $ac_includes_default |
| 6293 | #include <sys/ioctl.h> |
| 6294 | _ACEOF |
| 6295 | rm -f conftest.$ac_objext |
| 6296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6297 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6298 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6299 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6300 | rm -f conftest.er1 |
| 6301 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6303 | (exit $ac_status); } && |
| 6304 | { ac_try='test -z "$ac_c_werror_flag" |
| 6305 | || test ! -s conftest.err' |
| 6306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6307 | (eval $ac_try) 2>&5 |
| 6308 | ac_status=$? |
| 6309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6310 | (exit $ac_status); }; } && |
| 6311 | { ac_try='test -s conftest.$ac_objext' |
| 6312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6313 | (eval $ac_try) 2>&5 |
| 6314 | ac_status=$? |
| 6315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6316 | (exit $ac_status); }; }; then |
| 6317 | ac_header_compiler=yes |
| 6318 | else |
| 6319 | echo "$as_me: failed program was:" >&5 |
| 6320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6321 | |
| 6322 | ac_header_compiler=no |
| 6323 | fi |
| 6324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6325 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6326 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6327 | |
| 6328 | # Is the header present? |
| 6329 | echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5 |
| 6330 | echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6 |
| 6331 | cat >conftest.$ac_ext <<_ACEOF |
| 6332 | /* confdefs.h. */ |
| 6333 | _ACEOF |
| 6334 | cat confdefs.h >>conftest.$ac_ext |
| 6335 | cat >>conftest.$ac_ext <<_ACEOF |
| 6336 | /* end confdefs.h. */ |
| 6337 | #include <sys/ioctl.h> |
| 6338 | _ACEOF |
| 6339 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6340 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6341 | ac_status=$? |
| 6342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6343 | rm -f conftest.er1 |
| 6344 | cat conftest.err >&5 |
| 6345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6346 | (exit $ac_status); } >/dev/null; then |
| 6347 | if test -s conftest.err; then |
| 6348 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6349 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6350 | else |
| 6351 | ac_cpp_err= |
| 6352 | fi |
| 6353 | else |
| 6354 | ac_cpp_err=yes |
| 6355 | fi |
| 6356 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6357 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6358 | else |
| 6359 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6361 | |
| 6362 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6363 | fi |
| 6364 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6365 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6366 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6367 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6368 | # So? What about this header? |
| 6369 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6370 | yes:no: ) |
| 6371 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6372 | echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6373 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5 |
| 6374 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;} |
| 6375 | ac_header_preproc=yes |
| 6376 | ;; |
| 6377 | no:yes:* ) |
| 6378 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5 |
| 6379 | echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;} |
| 6380 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5 |
| 6381 | echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;} |
| 6382 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5 |
| 6383 | echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;} |
| 6384 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6385 | echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6386 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5 |
| 6387 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;} |
| 6388 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5 |
| 6389 | echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;} |
| 6390 | ( |
| 6391 | cat <<\_ASBOX |
| 6392 | ## ------------------------------------ ## |
| 6393 | ## Report this to the pjproject lists. ## |
| 6394 | ## ------------------------------------ ## |
| 6395 | _ASBOX |
| 6396 | ) | |
| 6397 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6398 | ;; |
| 6399 | esac |
| 6400 | echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6401 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6 |
| 6402 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 6403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6404 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6405 | ac_cv_header_sys_ioctl_h=$ac_header_preproc |
| 6406 | fi |
| 6407 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 6408 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6 |
| 6409 | |
| 6410 | fi |
| 6411 | if test $ac_cv_header_sys_ioctl_h = yes; then |
| 6412 | cat >>confdefs.h <<\_ACEOF |
| 6413 | #define PJ_HAS_SYS_IOCTL_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6414 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6415 | |
| 6416 | fi |
| 6417 | |
| 6418 | |
| 6419 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 6420 | echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 6421 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6 |
| 6422 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 6423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6424 | fi |
| 6425 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 6426 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6 |
| 6427 | else |
| 6428 | # Is the header compilable? |
| 6429 | echo "$as_me:$LINENO: checking sys/select.h usability" >&5 |
| 6430 | echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6 |
| 6431 | cat >conftest.$ac_ext <<_ACEOF |
| 6432 | /* confdefs.h. */ |
| 6433 | _ACEOF |
| 6434 | cat confdefs.h >>conftest.$ac_ext |
| 6435 | cat >>conftest.$ac_ext <<_ACEOF |
| 6436 | /* end confdefs.h. */ |
| 6437 | $ac_includes_default |
| 6438 | #include <sys/select.h> |
| 6439 | _ACEOF |
| 6440 | rm -f conftest.$ac_objext |
| 6441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6442 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6443 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6444 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6445 | rm -f conftest.er1 |
| 6446 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6448 | (exit $ac_status); } && |
| 6449 | { ac_try='test -z "$ac_c_werror_flag" |
| 6450 | || test ! -s conftest.err' |
| 6451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6452 | (eval $ac_try) 2>&5 |
| 6453 | ac_status=$? |
| 6454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6455 | (exit $ac_status); }; } && |
| 6456 | { ac_try='test -s conftest.$ac_objext' |
| 6457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6458 | (eval $ac_try) 2>&5 |
| 6459 | ac_status=$? |
| 6460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6461 | (exit $ac_status); }; }; then |
| 6462 | ac_header_compiler=yes |
| 6463 | else |
| 6464 | echo "$as_me: failed program was:" >&5 |
| 6465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6466 | |
| 6467 | ac_header_compiler=no |
| 6468 | fi |
| 6469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6470 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6471 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6472 | |
| 6473 | # Is the header present? |
| 6474 | echo "$as_me:$LINENO: checking sys/select.h presence" >&5 |
| 6475 | echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6 |
| 6476 | cat >conftest.$ac_ext <<_ACEOF |
| 6477 | /* confdefs.h. */ |
| 6478 | _ACEOF |
| 6479 | cat confdefs.h >>conftest.$ac_ext |
| 6480 | cat >>conftest.$ac_ext <<_ACEOF |
| 6481 | /* end confdefs.h. */ |
| 6482 | #include <sys/select.h> |
| 6483 | _ACEOF |
| 6484 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6485 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6486 | ac_status=$? |
| 6487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6488 | rm -f conftest.er1 |
| 6489 | cat conftest.err >&5 |
| 6490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6491 | (exit $ac_status); } >/dev/null; then |
| 6492 | if test -s conftest.err; then |
| 6493 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6494 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6495 | else |
| 6496 | ac_cpp_err= |
| 6497 | fi |
| 6498 | else |
| 6499 | ac_cpp_err=yes |
| 6500 | fi |
| 6501 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6502 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6503 | else |
| 6504 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6506 | |
| 6507 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6508 | fi |
| 6509 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6510 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6511 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6512 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6513 | # So? What about this header? |
| 6514 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6515 | yes:no: ) |
| 6516 | { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6517 | echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6518 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 |
| 6519 | echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} |
| 6520 | ac_header_preproc=yes |
| 6521 | ;; |
| 6522 | no:yes:* ) |
| 6523 | { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 |
| 6524 | echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} |
| 6525 | { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 |
| 6526 | echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} |
| 6527 | { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 |
| 6528 | echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} |
| 6529 | { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6530 | echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6531 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 |
| 6532 | echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} |
| 6533 | { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 |
| 6534 | echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} |
| 6535 | ( |
| 6536 | cat <<\_ASBOX |
| 6537 | ## ------------------------------------ ## |
| 6538 | ## Report this to the pjproject lists. ## |
| 6539 | ## ------------------------------------ ## |
| 6540 | _ASBOX |
| 6541 | ) | |
| 6542 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6543 | ;; |
| 6544 | esac |
| 6545 | echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6546 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6 |
| 6547 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 6548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6549 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6550 | ac_cv_header_sys_select_h=$ac_header_preproc |
| 6551 | fi |
| 6552 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 6553 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6 |
| 6554 | |
| 6555 | fi |
| 6556 | if test $ac_cv_header_sys_select_h = yes; then |
| 6557 | cat >>confdefs.h <<\_ACEOF |
| 6558 | #define PJ_HAS_SYS_SELECT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6559 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6560 | |
| 6561 | fi |
| 6562 | |
| 6563 | |
| 6564 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 6565 | echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 6566 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
| 6567 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 6568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6569 | fi |
| 6570 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 6571 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
| 6572 | else |
| 6573 | # Is the header compilable? |
| 6574 | echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 |
| 6575 | echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6 |
| 6576 | cat >conftest.$ac_ext <<_ACEOF |
| 6577 | /* confdefs.h. */ |
| 6578 | _ACEOF |
| 6579 | cat confdefs.h >>conftest.$ac_ext |
| 6580 | cat >>conftest.$ac_ext <<_ACEOF |
| 6581 | /* end confdefs.h. */ |
| 6582 | $ac_includes_default |
| 6583 | #include <sys/socket.h> |
| 6584 | _ACEOF |
| 6585 | rm -f conftest.$ac_objext |
| 6586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6587 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6588 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6589 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6590 | rm -f conftest.er1 |
| 6591 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6593 | (exit $ac_status); } && |
| 6594 | { ac_try='test -z "$ac_c_werror_flag" |
| 6595 | || test ! -s conftest.err' |
| 6596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6597 | (eval $ac_try) 2>&5 |
| 6598 | ac_status=$? |
| 6599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6600 | (exit $ac_status); }; } && |
| 6601 | { ac_try='test -s conftest.$ac_objext' |
| 6602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6603 | (eval $ac_try) 2>&5 |
| 6604 | ac_status=$? |
| 6605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6606 | (exit $ac_status); }; }; then |
| 6607 | ac_header_compiler=yes |
| 6608 | else |
| 6609 | echo "$as_me: failed program was:" >&5 |
| 6610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6611 | |
| 6612 | ac_header_compiler=no |
| 6613 | fi |
| 6614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6615 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6616 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6617 | |
| 6618 | # Is the header present? |
| 6619 | echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 |
| 6620 | echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6 |
| 6621 | cat >conftest.$ac_ext <<_ACEOF |
| 6622 | /* confdefs.h. */ |
| 6623 | _ACEOF |
| 6624 | cat confdefs.h >>conftest.$ac_ext |
| 6625 | cat >>conftest.$ac_ext <<_ACEOF |
| 6626 | /* end confdefs.h. */ |
| 6627 | #include <sys/socket.h> |
| 6628 | _ACEOF |
| 6629 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6630 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6631 | ac_status=$? |
| 6632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6633 | rm -f conftest.er1 |
| 6634 | cat conftest.err >&5 |
| 6635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6636 | (exit $ac_status); } >/dev/null; then |
| 6637 | if test -s conftest.err; then |
| 6638 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6639 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6640 | else |
| 6641 | ac_cpp_err= |
| 6642 | fi |
| 6643 | else |
| 6644 | ac_cpp_err=yes |
| 6645 | fi |
| 6646 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6647 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6648 | else |
| 6649 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6651 | |
| 6652 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6653 | fi |
| 6654 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6655 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6656 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6657 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6658 | # So? What about this header? |
| 6659 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6660 | yes:no: ) |
| 6661 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6662 | echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6663 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5 |
| 6664 | echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;} |
| 6665 | ac_header_preproc=yes |
| 6666 | ;; |
| 6667 | no:yes:* ) |
| 6668 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 |
| 6669 | echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} |
| 6670 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 |
| 6671 | echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} |
| 6672 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5 |
| 6673 | echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;} |
| 6674 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6675 | echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6676 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 |
| 6677 | echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} |
| 6678 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5 |
| 6679 | echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;} |
| 6680 | ( |
| 6681 | cat <<\_ASBOX |
| 6682 | ## ------------------------------------ ## |
| 6683 | ## Report this to the pjproject lists. ## |
| 6684 | ## ------------------------------------ ## |
| 6685 | _ASBOX |
| 6686 | ) | |
| 6687 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6688 | ;; |
| 6689 | esac |
| 6690 | echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6691 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
| 6692 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 6693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6694 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6695 | ac_cv_header_sys_socket_h=$ac_header_preproc |
| 6696 | fi |
| 6697 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 6698 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
| 6699 | |
| 6700 | fi |
| 6701 | if test $ac_cv_header_sys_socket_h = yes; then |
| 6702 | cat >>confdefs.h <<\_ACEOF |
| 6703 | #define PJ_HAS_SYS_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6704 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6705 | |
| 6706 | fi |
| 6707 | |
| 6708 | |
| 6709 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 6710 | echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 6711 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6 |
| 6712 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 6713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6714 | fi |
| 6715 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 6716 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6 |
| 6717 | else |
| 6718 | # Is the header compilable? |
| 6719 | echo "$as_me:$LINENO: checking sys/time.h usability" >&5 |
| 6720 | echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6 |
| 6721 | cat >conftest.$ac_ext <<_ACEOF |
| 6722 | /* confdefs.h. */ |
| 6723 | _ACEOF |
| 6724 | cat confdefs.h >>conftest.$ac_ext |
| 6725 | cat >>conftest.$ac_ext <<_ACEOF |
| 6726 | /* end confdefs.h. */ |
| 6727 | $ac_includes_default |
| 6728 | #include <sys/time.h> |
| 6729 | _ACEOF |
| 6730 | rm -f conftest.$ac_objext |
| 6731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6732 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6733 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6734 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6735 | rm -f conftest.er1 |
| 6736 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6738 | (exit $ac_status); } && |
| 6739 | { ac_try='test -z "$ac_c_werror_flag" |
| 6740 | || test ! -s conftest.err' |
| 6741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6742 | (eval $ac_try) 2>&5 |
| 6743 | ac_status=$? |
| 6744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6745 | (exit $ac_status); }; } && |
| 6746 | { ac_try='test -s conftest.$ac_objext' |
| 6747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6748 | (eval $ac_try) 2>&5 |
| 6749 | ac_status=$? |
| 6750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6751 | (exit $ac_status); }; }; then |
| 6752 | ac_header_compiler=yes |
| 6753 | else |
| 6754 | echo "$as_me: failed program was:" >&5 |
| 6755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6756 | |
| 6757 | ac_header_compiler=no |
| 6758 | fi |
| 6759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6760 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6761 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6762 | |
| 6763 | # Is the header present? |
| 6764 | echo "$as_me:$LINENO: checking sys/time.h presence" >&5 |
| 6765 | echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6 |
| 6766 | cat >conftest.$ac_ext <<_ACEOF |
| 6767 | /* confdefs.h. */ |
| 6768 | _ACEOF |
| 6769 | cat confdefs.h >>conftest.$ac_ext |
| 6770 | cat >>conftest.$ac_ext <<_ACEOF |
| 6771 | /* end confdefs.h. */ |
| 6772 | #include <sys/time.h> |
| 6773 | _ACEOF |
| 6774 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6775 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6776 | ac_status=$? |
| 6777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6778 | rm -f conftest.er1 |
| 6779 | cat conftest.err >&5 |
| 6780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6781 | (exit $ac_status); } >/dev/null; then |
| 6782 | if test -s conftest.err; then |
| 6783 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6784 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6785 | else |
| 6786 | ac_cpp_err= |
| 6787 | fi |
| 6788 | else |
| 6789 | ac_cpp_err=yes |
| 6790 | fi |
| 6791 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6792 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6793 | else |
| 6794 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6796 | |
| 6797 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6798 | fi |
| 6799 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6800 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6801 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6802 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6803 | # So? What about this header? |
| 6804 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6805 | yes:no: ) |
| 6806 | { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6807 | echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6808 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5 |
| 6809 | echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;} |
| 6810 | ac_header_preproc=yes |
| 6811 | ;; |
| 6812 | no:yes:* ) |
| 6813 | { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5 |
| 6814 | echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;} |
| 6815 | { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5 |
| 6816 | echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;} |
| 6817 | { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5 |
| 6818 | echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;} |
| 6819 | { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6820 | echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6821 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5 |
| 6822 | echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;} |
| 6823 | { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5 |
| 6824 | echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;} |
| 6825 | ( |
| 6826 | cat <<\_ASBOX |
| 6827 | ## ------------------------------------ ## |
| 6828 | ## Report this to the pjproject lists. ## |
| 6829 | ## ------------------------------------ ## |
| 6830 | _ASBOX |
| 6831 | ) | |
| 6832 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6833 | ;; |
| 6834 | esac |
| 6835 | echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6836 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6 |
| 6837 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 6838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6839 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6840 | ac_cv_header_sys_time_h=$ac_header_preproc |
| 6841 | fi |
| 6842 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 6843 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6 |
| 6844 | |
| 6845 | fi |
| 6846 | if test $ac_cv_header_sys_time_h = yes; then |
| 6847 | cat >>confdefs.h <<\_ACEOF |
| 6848 | #define PJ_HAS_SYS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6849 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6850 | |
| 6851 | fi |
| 6852 | |
| 6853 | |
| 6854 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 6855 | echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 6856 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6 |
| 6857 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 6858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6859 | fi |
| 6860 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 6861 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6 |
| 6862 | else |
| 6863 | # Is the header compilable? |
| 6864 | echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5 |
| 6865 | echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6 |
| 6866 | cat >conftest.$ac_ext <<_ACEOF |
| 6867 | /* confdefs.h. */ |
| 6868 | _ACEOF |
| 6869 | cat confdefs.h >>conftest.$ac_ext |
| 6870 | cat >>conftest.$ac_ext <<_ACEOF |
| 6871 | /* end confdefs.h. */ |
| 6872 | $ac_includes_default |
| 6873 | #include <sys/timeb.h> |
| 6874 | _ACEOF |
| 6875 | rm -f conftest.$ac_objext |
| 6876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6877 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6878 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6879 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6880 | rm -f conftest.er1 |
| 6881 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6883 | (exit $ac_status); } && |
| 6884 | { ac_try='test -z "$ac_c_werror_flag" |
| 6885 | || test ! -s conftest.err' |
| 6886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6887 | (eval $ac_try) 2>&5 |
| 6888 | ac_status=$? |
| 6889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6890 | (exit $ac_status); }; } && |
| 6891 | { ac_try='test -s conftest.$ac_objext' |
| 6892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6893 | (eval $ac_try) 2>&5 |
| 6894 | ac_status=$? |
| 6895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6896 | (exit $ac_status); }; }; then |
| 6897 | ac_header_compiler=yes |
| 6898 | else |
| 6899 | echo "$as_me: failed program was:" >&5 |
| 6900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6901 | |
| 6902 | ac_header_compiler=no |
| 6903 | fi |
| 6904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6905 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6906 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6907 | |
| 6908 | # Is the header present? |
| 6909 | echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5 |
| 6910 | echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6 |
| 6911 | cat >conftest.$ac_ext <<_ACEOF |
| 6912 | /* confdefs.h. */ |
| 6913 | _ACEOF |
| 6914 | cat confdefs.h >>conftest.$ac_ext |
| 6915 | cat >>conftest.$ac_ext <<_ACEOF |
| 6916 | /* end confdefs.h. */ |
| 6917 | #include <sys/timeb.h> |
| 6918 | _ACEOF |
| 6919 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6920 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6921 | ac_status=$? |
| 6922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6923 | rm -f conftest.er1 |
| 6924 | cat conftest.err >&5 |
| 6925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6926 | (exit $ac_status); } >/dev/null; then |
| 6927 | if test -s conftest.err; then |
| 6928 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6929 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6930 | else |
| 6931 | ac_cpp_err= |
| 6932 | fi |
| 6933 | else |
| 6934 | ac_cpp_err=yes |
| 6935 | fi |
| 6936 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6937 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6938 | else |
| 6939 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6941 | |
| 6942 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6943 | fi |
| 6944 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6945 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6946 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6947 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6948 | # So? What about this header? |
| 6949 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6950 | yes:no: ) |
| 6951 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6952 | echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6953 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5 |
| 6954 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;} |
| 6955 | ac_header_preproc=yes |
| 6956 | ;; |
| 6957 | no:yes:* ) |
| 6958 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5 |
| 6959 | echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;} |
| 6960 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5 |
| 6961 | echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;} |
| 6962 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5 |
| 6963 | echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;} |
| 6964 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6965 | echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6966 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5 |
| 6967 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;} |
| 6968 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5 |
| 6969 | echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;} |
| 6970 | ( |
| 6971 | cat <<\_ASBOX |
| 6972 | ## ------------------------------------ ## |
| 6973 | ## Report this to the pjproject lists. ## |
| 6974 | ## ------------------------------------ ## |
| 6975 | _ASBOX |
| 6976 | ) | |
| 6977 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6978 | ;; |
| 6979 | esac |
| 6980 | echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6981 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6 |
| 6982 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 6983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6984 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6985 | ac_cv_header_sys_timeb_h=$ac_header_preproc |
| 6986 | fi |
| 6987 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 6988 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6 |
| 6989 | |
| 6990 | fi |
| 6991 | if test $ac_cv_header_sys_timeb_h = yes; then |
| 6992 | cat >>confdefs.h <<\_ACEOF |
| 6993 | #define PJ_HAS_SYS_TIMEB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6994 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6995 | |
| 6996 | fi |
| 6997 | |
| 6998 | |
| 6999 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 7000 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 7001 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
| 7002 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 7003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7004 | fi |
| 7005 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 7006 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
| 7007 | else |
| 7008 | # Is the header compilable? |
| 7009 | echo "$as_me:$LINENO: checking sys/types.h usability" >&5 |
| 7010 | echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6 |
| 7011 | cat >conftest.$ac_ext <<_ACEOF |
| 7012 | /* confdefs.h. */ |
| 7013 | _ACEOF |
| 7014 | cat confdefs.h >>conftest.$ac_ext |
| 7015 | cat >>conftest.$ac_ext <<_ACEOF |
| 7016 | /* end confdefs.h. */ |
| 7017 | $ac_includes_default |
| 7018 | #include <sys/types.h> |
| 7019 | _ACEOF |
| 7020 | rm -f conftest.$ac_objext |
| 7021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7022 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7023 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7024 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7025 | rm -f conftest.er1 |
| 7026 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7028 | (exit $ac_status); } && |
| 7029 | { ac_try='test -z "$ac_c_werror_flag" |
| 7030 | || test ! -s conftest.err' |
| 7031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7032 | (eval $ac_try) 2>&5 |
| 7033 | ac_status=$? |
| 7034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7035 | (exit $ac_status); }; } && |
| 7036 | { ac_try='test -s conftest.$ac_objext' |
| 7037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7038 | (eval $ac_try) 2>&5 |
| 7039 | ac_status=$? |
| 7040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7041 | (exit $ac_status); }; }; then |
| 7042 | ac_header_compiler=yes |
| 7043 | else |
| 7044 | echo "$as_me: failed program was:" >&5 |
| 7045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7046 | |
| 7047 | ac_header_compiler=no |
| 7048 | fi |
| 7049 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7050 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7051 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7052 | |
| 7053 | # Is the header present? |
| 7054 | echo "$as_me:$LINENO: checking sys/types.h presence" >&5 |
| 7055 | echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6 |
| 7056 | cat >conftest.$ac_ext <<_ACEOF |
| 7057 | /* confdefs.h. */ |
| 7058 | _ACEOF |
| 7059 | cat confdefs.h >>conftest.$ac_ext |
| 7060 | cat >>conftest.$ac_ext <<_ACEOF |
| 7061 | /* end confdefs.h. */ |
| 7062 | #include <sys/types.h> |
| 7063 | _ACEOF |
| 7064 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7065 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7066 | ac_status=$? |
| 7067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7068 | rm -f conftest.er1 |
| 7069 | cat conftest.err >&5 |
| 7070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7071 | (exit $ac_status); } >/dev/null; then |
| 7072 | if test -s conftest.err; then |
| 7073 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7074 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7075 | else |
| 7076 | ac_cpp_err= |
| 7077 | fi |
| 7078 | else |
| 7079 | ac_cpp_err=yes |
| 7080 | fi |
| 7081 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7082 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7083 | else |
| 7084 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7086 | |
| 7087 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7088 | fi |
| 7089 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7090 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7091 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7092 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7093 | # So? What about this header? |
| 7094 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7095 | yes:no: ) |
| 7096 | { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7097 | echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7098 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 |
| 7099 | echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} |
| 7100 | ac_header_preproc=yes |
| 7101 | ;; |
| 7102 | no:yes:* ) |
| 7103 | { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 |
| 7104 | echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} |
| 7105 | { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 |
| 7106 | echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} |
| 7107 | { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 |
| 7108 | echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} |
| 7109 | { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7110 | echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7111 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 |
| 7112 | echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} |
| 7113 | { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 |
| 7114 | echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} |
| 7115 | ( |
| 7116 | cat <<\_ASBOX |
| 7117 | ## ------------------------------------ ## |
| 7118 | ## Report this to the pjproject lists. ## |
| 7119 | ## ------------------------------------ ## |
| 7120 | _ASBOX |
| 7121 | ) | |
| 7122 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7123 | ;; |
| 7124 | esac |
| 7125 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7126 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
| 7127 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 7128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7129 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7130 | ac_cv_header_sys_types_h=$ac_header_preproc |
| 7131 | fi |
| 7132 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 7133 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
| 7134 | |
| 7135 | fi |
| 7136 | if test $ac_cv_header_sys_types_h = yes; then |
| 7137 | cat >>confdefs.h <<\_ACEOF |
| 7138 | #define PJ_HAS_SYS_TYPES_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7139 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7140 | |
| 7141 | fi |
| 7142 | |
| 7143 | |
| 7144 | if test "${ac_cv_header_time_h+set}" = set; then |
| 7145 | echo "$as_me:$LINENO: checking for time.h" >&5 |
| 7146 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6 |
| 7147 | if test "${ac_cv_header_time_h+set}" = set; then |
| 7148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7149 | fi |
| 7150 | echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 7151 | echo "${ECHO_T}$ac_cv_header_time_h" >&6 |
| 7152 | else |
| 7153 | # Is the header compilable? |
| 7154 | echo "$as_me:$LINENO: checking time.h usability" >&5 |
| 7155 | echo $ECHO_N "checking time.h usability... $ECHO_C" >&6 |
| 7156 | cat >conftest.$ac_ext <<_ACEOF |
| 7157 | /* confdefs.h. */ |
| 7158 | _ACEOF |
| 7159 | cat confdefs.h >>conftest.$ac_ext |
| 7160 | cat >>conftest.$ac_ext <<_ACEOF |
| 7161 | /* end confdefs.h. */ |
| 7162 | $ac_includes_default |
| 7163 | #include <time.h> |
| 7164 | _ACEOF |
| 7165 | rm -f conftest.$ac_objext |
| 7166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7167 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7168 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7169 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7170 | rm -f conftest.er1 |
| 7171 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7173 | (exit $ac_status); } && |
| 7174 | { ac_try='test -z "$ac_c_werror_flag" |
| 7175 | || test ! -s conftest.err' |
| 7176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7177 | (eval $ac_try) 2>&5 |
| 7178 | ac_status=$? |
| 7179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7180 | (exit $ac_status); }; } && |
| 7181 | { ac_try='test -s conftest.$ac_objext' |
| 7182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7183 | (eval $ac_try) 2>&5 |
| 7184 | ac_status=$? |
| 7185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7186 | (exit $ac_status); }; }; then |
| 7187 | ac_header_compiler=yes |
| 7188 | else |
| 7189 | echo "$as_me: failed program was:" >&5 |
| 7190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7191 | |
| 7192 | ac_header_compiler=no |
| 7193 | fi |
| 7194 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7195 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7196 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7197 | |
| 7198 | # Is the header present? |
| 7199 | echo "$as_me:$LINENO: checking time.h presence" >&5 |
| 7200 | echo $ECHO_N "checking time.h presence... $ECHO_C" >&6 |
| 7201 | cat >conftest.$ac_ext <<_ACEOF |
| 7202 | /* confdefs.h. */ |
| 7203 | _ACEOF |
| 7204 | cat confdefs.h >>conftest.$ac_ext |
| 7205 | cat >>conftest.$ac_ext <<_ACEOF |
| 7206 | /* end confdefs.h. */ |
| 7207 | #include <time.h> |
| 7208 | _ACEOF |
| 7209 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7210 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7211 | ac_status=$? |
| 7212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7213 | rm -f conftest.er1 |
| 7214 | cat conftest.err >&5 |
| 7215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7216 | (exit $ac_status); } >/dev/null; then |
| 7217 | if test -s conftest.err; then |
| 7218 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7219 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7220 | else |
| 7221 | ac_cpp_err= |
| 7222 | fi |
| 7223 | else |
| 7224 | ac_cpp_err=yes |
| 7225 | fi |
| 7226 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7227 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7228 | else |
| 7229 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7231 | |
| 7232 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7233 | fi |
| 7234 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7235 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7236 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7237 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7238 | # So? What about this header? |
| 7239 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7240 | yes:no: ) |
| 7241 | { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7242 | echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7243 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5 |
| 7244 | echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;} |
| 7245 | ac_header_preproc=yes |
| 7246 | ;; |
| 7247 | no:yes:* ) |
| 7248 | { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5 |
| 7249 | echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;} |
| 7250 | { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5 |
| 7251 | echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;} |
| 7252 | { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5 |
| 7253 | echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;} |
| 7254 | { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7255 | echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7256 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5 |
| 7257 | echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;} |
| 7258 | { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5 |
| 7259 | echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;} |
| 7260 | ( |
| 7261 | cat <<\_ASBOX |
| 7262 | ## ------------------------------------ ## |
| 7263 | ## Report this to the pjproject lists. ## |
| 7264 | ## ------------------------------------ ## |
| 7265 | _ASBOX |
| 7266 | ) | |
| 7267 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7268 | ;; |
| 7269 | esac |
| 7270 | echo "$as_me:$LINENO: checking for time.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7271 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6 |
| 7272 | if test "${ac_cv_header_time_h+set}" = set; then |
| 7273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7274 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7275 | ac_cv_header_time_h=$ac_header_preproc |
| 7276 | fi |
| 7277 | echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 7278 | echo "${ECHO_T}$ac_cv_header_time_h" >&6 |
| 7279 | |
| 7280 | fi |
| 7281 | if test $ac_cv_header_time_h = yes; then |
| 7282 | cat >>confdefs.h <<\_ACEOF |
| 7283 | #define PJ_HAS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7284 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7285 | |
| 7286 | fi |
| 7287 | |
| 7288 | |
| 7289 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 7290 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 7291 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 |
| 7292 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 7293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7294 | fi |
| 7295 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 7296 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 |
| 7297 | else |
| 7298 | # Is the header compilable? |
| 7299 | echo "$as_me:$LINENO: checking unistd.h usability" >&5 |
| 7300 | echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6 |
| 7301 | cat >conftest.$ac_ext <<_ACEOF |
| 7302 | /* confdefs.h. */ |
| 7303 | _ACEOF |
| 7304 | cat confdefs.h >>conftest.$ac_ext |
| 7305 | cat >>conftest.$ac_ext <<_ACEOF |
| 7306 | /* end confdefs.h. */ |
| 7307 | $ac_includes_default |
| 7308 | #include <unistd.h> |
| 7309 | _ACEOF |
| 7310 | rm -f conftest.$ac_objext |
| 7311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7312 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7313 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7314 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7315 | rm -f conftest.er1 |
| 7316 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7318 | (exit $ac_status); } && |
| 7319 | { ac_try='test -z "$ac_c_werror_flag" |
| 7320 | || test ! -s conftest.err' |
| 7321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7322 | (eval $ac_try) 2>&5 |
| 7323 | ac_status=$? |
| 7324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7325 | (exit $ac_status); }; } && |
| 7326 | { ac_try='test -s conftest.$ac_objext' |
| 7327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7328 | (eval $ac_try) 2>&5 |
| 7329 | ac_status=$? |
| 7330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7331 | (exit $ac_status); }; }; then |
| 7332 | ac_header_compiler=yes |
| 7333 | else |
| 7334 | echo "$as_me: failed program was:" >&5 |
| 7335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7336 | |
| 7337 | ac_header_compiler=no |
| 7338 | fi |
| 7339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7340 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7341 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7342 | |
| 7343 | # Is the header present? |
| 7344 | echo "$as_me:$LINENO: checking unistd.h presence" >&5 |
| 7345 | echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6 |
| 7346 | cat >conftest.$ac_ext <<_ACEOF |
| 7347 | /* confdefs.h. */ |
| 7348 | _ACEOF |
| 7349 | cat confdefs.h >>conftest.$ac_ext |
| 7350 | cat >>conftest.$ac_ext <<_ACEOF |
| 7351 | /* end confdefs.h. */ |
| 7352 | #include <unistd.h> |
| 7353 | _ACEOF |
| 7354 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7355 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7356 | ac_status=$? |
| 7357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7358 | rm -f conftest.er1 |
| 7359 | cat conftest.err >&5 |
| 7360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7361 | (exit $ac_status); } >/dev/null; then |
| 7362 | if test -s conftest.err; then |
| 7363 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7364 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7365 | else |
| 7366 | ac_cpp_err= |
| 7367 | fi |
| 7368 | else |
| 7369 | ac_cpp_err=yes |
| 7370 | fi |
| 7371 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7372 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7373 | else |
| 7374 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7376 | |
| 7377 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7378 | fi |
| 7379 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7380 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7381 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7382 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7383 | # So? What about this header? |
| 7384 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7385 | yes:no: ) |
| 7386 | { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7387 | echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7388 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 |
| 7389 | echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} |
| 7390 | ac_header_preproc=yes |
| 7391 | ;; |
| 7392 | no:yes:* ) |
| 7393 | { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 |
| 7394 | echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} |
| 7395 | { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 |
| 7396 | echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} |
| 7397 | { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 |
| 7398 | echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} |
| 7399 | { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7400 | echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7401 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 |
| 7402 | echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} |
| 7403 | { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 |
| 7404 | echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} |
| 7405 | ( |
| 7406 | cat <<\_ASBOX |
| 7407 | ## ------------------------------------ ## |
| 7408 | ## Report this to the pjproject lists. ## |
| 7409 | ## ------------------------------------ ## |
| 7410 | _ASBOX |
| 7411 | ) | |
| 7412 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7413 | ;; |
| 7414 | esac |
| 7415 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7416 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 |
| 7417 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 7418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7419 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7420 | ac_cv_header_unistd_h=$ac_header_preproc |
| 7421 | fi |
| 7422 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 7423 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 |
| 7424 | |
| 7425 | fi |
| 7426 | if test $ac_cv_header_unistd_h = yes; then |
| 7427 | cat >>confdefs.h <<\_ACEOF |
| 7428 | #define PJ_HAS_UNISTD_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7429 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7430 | |
| 7431 | fi |
| 7432 | |
| 7433 | |
| 7434 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 7435 | echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
| 7436 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6 |
| 7437 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 7438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7439 | fi |
| 7440 | echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 7441 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6 |
| 7442 | else |
| 7443 | # Is the header compilable? |
| 7444 | echo "$as_me:$LINENO: checking mswsock.h usability" >&5 |
| 7445 | echo $ECHO_N "checking mswsock.h usability... $ECHO_C" >&6 |
| 7446 | cat >conftest.$ac_ext <<_ACEOF |
| 7447 | /* confdefs.h. */ |
| 7448 | _ACEOF |
| 7449 | cat confdefs.h >>conftest.$ac_ext |
| 7450 | cat >>conftest.$ac_ext <<_ACEOF |
| 7451 | /* end confdefs.h. */ |
| 7452 | $ac_includes_default |
| 7453 | #include <mswsock.h> |
| 7454 | _ACEOF |
| 7455 | rm -f conftest.$ac_objext |
| 7456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7457 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7458 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7459 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7460 | rm -f conftest.er1 |
| 7461 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7463 | (exit $ac_status); } && |
| 7464 | { ac_try='test -z "$ac_c_werror_flag" |
| 7465 | || test ! -s conftest.err' |
| 7466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7467 | (eval $ac_try) 2>&5 |
| 7468 | ac_status=$? |
| 7469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7470 | (exit $ac_status); }; } && |
| 7471 | { ac_try='test -s conftest.$ac_objext' |
| 7472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7473 | (eval $ac_try) 2>&5 |
| 7474 | ac_status=$? |
| 7475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7476 | (exit $ac_status); }; }; then |
| 7477 | ac_header_compiler=yes |
| 7478 | else |
| 7479 | echo "$as_me: failed program was:" >&5 |
| 7480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7481 | |
| 7482 | ac_header_compiler=no |
| 7483 | fi |
| 7484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7485 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7486 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7487 | |
| 7488 | # Is the header present? |
| 7489 | echo "$as_me:$LINENO: checking mswsock.h presence" >&5 |
| 7490 | echo $ECHO_N "checking mswsock.h presence... $ECHO_C" >&6 |
| 7491 | cat >conftest.$ac_ext <<_ACEOF |
| 7492 | /* confdefs.h. */ |
| 7493 | _ACEOF |
| 7494 | cat confdefs.h >>conftest.$ac_ext |
| 7495 | cat >>conftest.$ac_ext <<_ACEOF |
| 7496 | /* end confdefs.h. */ |
| 7497 | #include <mswsock.h> |
| 7498 | _ACEOF |
| 7499 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7500 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7501 | ac_status=$? |
| 7502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7503 | rm -f conftest.er1 |
| 7504 | cat conftest.err >&5 |
| 7505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7506 | (exit $ac_status); } >/dev/null; then |
| 7507 | if test -s conftest.err; then |
| 7508 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7509 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7510 | else |
| 7511 | ac_cpp_err= |
| 7512 | fi |
| 7513 | else |
| 7514 | ac_cpp_err=yes |
| 7515 | fi |
| 7516 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7517 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7518 | else |
| 7519 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7521 | |
| 7522 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7523 | fi |
| 7524 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7525 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7526 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7527 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7528 | # So? What about this header? |
| 7529 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7530 | yes:no: ) |
| 7531 | { echo "$as_me:$LINENO: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7532 | echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7533 | { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5 |
| 7534 | echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;} |
| 7535 | ac_header_preproc=yes |
| 7536 | ;; |
| 7537 | no:yes:* ) |
| 7538 | { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5 |
| 7539 | echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;} |
| 7540 | { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5 |
| 7541 | echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;} |
| 7542 | { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5 |
| 7543 | echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;} |
| 7544 | { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7545 | echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7546 | { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5 |
| 7547 | echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;} |
| 7548 | { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5 |
| 7549 | echo "$as_me: WARNING: mswsock.h: in the future, the compiler will take precedence" >&2;} |
| 7550 | ( |
| 7551 | cat <<\_ASBOX |
| 7552 | ## ------------------------------------ ## |
| 7553 | ## Report this to the pjproject lists. ## |
| 7554 | ## ------------------------------------ ## |
| 7555 | _ASBOX |
| 7556 | ) | |
| 7557 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7558 | ;; |
| 7559 | esac |
| 7560 | echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7561 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6 |
| 7562 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 7563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7564 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7565 | ac_cv_header_mswsock_h=$ac_header_preproc |
| 7566 | fi |
| 7567 | echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 7568 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6 |
| 7569 | |
| 7570 | fi |
| 7571 | if test $ac_cv_header_mswsock_h = yes; then |
| 7572 | cat >>confdefs.h <<\_ACEOF |
| 7573 | #define PJ_HAS_MSWSOCK_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7574 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7575 | |
| 7576 | fi |
| 7577 | |
| 7578 | |
| 7579 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 7580 | echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 7581 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6 |
| 7582 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 7583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7584 | fi |
| 7585 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 7586 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6 |
| 7587 | else |
| 7588 | # Is the header compilable? |
| 7589 | echo "$as_me:$LINENO: checking winsock.h usability" >&5 |
| 7590 | echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6 |
| 7591 | cat >conftest.$ac_ext <<_ACEOF |
| 7592 | /* confdefs.h. */ |
| 7593 | _ACEOF |
| 7594 | cat confdefs.h >>conftest.$ac_ext |
| 7595 | cat >>conftest.$ac_ext <<_ACEOF |
| 7596 | /* end confdefs.h. */ |
| 7597 | $ac_includes_default |
| 7598 | #include <winsock.h> |
| 7599 | _ACEOF |
| 7600 | rm -f conftest.$ac_objext |
| 7601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7602 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7603 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7604 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7605 | rm -f conftest.er1 |
| 7606 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7608 | (exit $ac_status); } && |
| 7609 | { ac_try='test -z "$ac_c_werror_flag" |
| 7610 | || test ! -s conftest.err' |
| 7611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7612 | (eval $ac_try) 2>&5 |
| 7613 | ac_status=$? |
| 7614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7615 | (exit $ac_status); }; } && |
| 7616 | { ac_try='test -s conftest.$ac_objext' |
| 7617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7618 | (eval $ac_try) 2>&5 |
| 7619 | ac_status=$? |
| 7620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7621 | (exit $ac_status); }; }; then |
| 7622 | ac_header_compiler=yes |
| 7623 | else |
| 7624 | echo "$as_me: failed program was:" >&5 |
| 7625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7626 | |
| 7627 | ac_header_compiler=no |
| 7628 | fi |
| 7629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7630 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7631 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7632 | |
| 7633 | # Is the header present? |
| 7634 | echo "$as_me:$LINENO: checking winsock.h presence" >&5 |
| 7635 | echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6 |
| 7636 | cat >conftest.$ac_ext <<_ACEOF |
| 7637 | /* confdefs.h. */ |
| 7638 | _ACEOF |
| 7639 | cat confdefs.h >>conftest.$ac_ext |
| 7640 | cat >>conftest.$ac_ext <<_ACEOF |
| 7641 | /* end confdefs.h. */ |
| 7642 | #include <winsock.h> |
| 7643 | _ACEOF |
| 7644 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7645 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7646 | ac_status=$? |
| 7647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7648 | rm -f conftest.er1 |
| 7649 | cat conftest.err >&5 |
| 7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7651 | (exit $ac_status); } >/dev/null; then |
| 7652 | if test -s conftest.err; then |
| 7653 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7654 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7655 | else |
| 7656 | ac_cpp_err= |
| 7657 | fi |
| 7658 | else |
| 7659 | ac_cpp_err=yes |
| 7660 | fi |
| 7661 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7662 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7663 | else |
| 7664 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7666 | |
| 7667 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7668 | fi |
| 7669 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7670 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7671 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7672 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7673 | # So? What about this header? |
| 7674 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7675 | yes:no: ) |
| 7676 | { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7677 | echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7678 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5 |
| 7679 | echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;} |
| 7680 | ac_header_preproc=yes |
| 7681 | ;; |
| 7682 | no:yes:* ) |
| 7683 | { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5 |
| 7684 | echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;} |
| 7685 | { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5 |
| 7686 | echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;} |
| 7687 | { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5 |
| 7688 | echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;} |
| 7689 | { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7690 | echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7691 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5 |
| 7692 | echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;} |
| 7693 | { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5 |
| 7694 | echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;} |
| 7695 | ( |
| 7696 | cat <<\_ASBOX |
| 7697 | ## ------------------------------------ ## |
| 7698 | ## Report this to the pjproject lists. ## |
| 7699 | ## ------------------------------------ ## |
| 7700 | _ASBOX |
| 7701 | ) | |
| 7702 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7703 | ;; |
| 7704 | esac |
| 7705 | echo "$as_me:$LINENO: checking for winsock.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7706 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6 |
| 7707 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 7708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7709 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7710 | ac_cv_header_winsock_h=$ac_header_preproc |
| 7711 | fi |
| 7712 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 7713 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6 |
| 7714 | |
| 7715 | fi |
| 7716 | if test $ac_cv_header_winsock_h = yes; then |
| 7717 | cat >>confdefs.h <<\_ACEOF |
| 7718 | #define PJ_HAS_WINSOCK_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7719 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7720 | |
| 7721 | fi |
| 7722 | |
| 7723 | |
| 7724 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 7725 | echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 7726 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6 |
| 7727 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 7728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7729 | fi |
| 7730 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 7731 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6 |
| 7732 | else |
| 7733 | # Is the header compilable? |
| 7734 | echo "$as_me:$LINENO: checking winsock2.h usability" >&5 |
| 7735 | echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6 |
| 7736 | cat >conftest.$ac_ext <<_ACEOF |
| 7737 | /* confdefs.h. */ |
| 7738 | _ACEOF |
| 7739 | cat confdefs.h >>conftest.$ac_ext |
| 7740 | cat >>conftest.$ac_ext <<_ACEOF |
| 7741 | /* end confdefs.h. */ |
| 7742 | $ac_includes_default |
| 7743 | #include <winsock2.h> |
| 7744 | _ACEOF |
| 7745 | rm -f conftest.$ac_objext |
| 7746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7747 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7748 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7749 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7750 | rm -f conftest.er1 |
| 7751 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7753 | (exit $ac_status); } && |
| 7754 | { ac_try='test -z "$ac_c_werror_flag" |
| 7755 | || test ! -s conftest.err' |
| 7756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7757 | (eval $ac_try) 2>&5 |
| 7758 | ac_status=$? |
| 7759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7760 | (exit $ac_status); }; } && |
| 7761 | { ac_try='test -s conftest.$ac_objext' |
| 7762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7763 | (eval $ac_try) 2>&5 |
| 7764 | ac_status=$? |
| 7765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7766 | (exit $ac_status); }; }; then |
| 7767 | ac_header_compiler=yes |
| 7768 | else |
| 7769 | echo "$as_me: failed program was:" >&5 |
| 7770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7771 | |
| 7772 | ac_header_compiler=no |
| 7773 | fi |
| 7774 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7775 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7776 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7777 | |
| 7778 | # Is the header present? |
| 7779 | echo "$as_me:$LINENO: checking winsock2.h presence" >&5 |
| 7780 | echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6 |
| 7781 | cat >conftest.$ac_ext <<_ACEOF |
| 7782 | /* confdefs.h. */ |
| 7783 | _ACEOF |
| 7784 | cat confdefs.h >>conftest.$ac_ext |
| 7785 | cat >>conftest.$ac_ext <<_ACEOF |
| 7786 | /* end confdefs.h. */ |
| 7787 | #include <winsock2.h> |
| 7788 | _ACEOF |
| 7789 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7790 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7791 | ac_status=$? |
| 7792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7793 | rm -f conftest.er1 |
| 7794 | cat conftest.err >&5 |
| 7795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7796 | (exit $ac_status); } >/dev/null; then |
| 7797 | if test -s conftest.err; then |
| 7798 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7799 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7800 | else |
| 7801 | ac_cpp_err= |
| 7802 | fi |
| 7803 | else |
| 7804 | ac_cpp_err=yes |
| 7805 | fi |
| 7806 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7807 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7808 | else |
| 7809 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7811 | |
| 7812 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7813 | fi |
| 7814 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7815 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7816 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7817 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7818 | # So? What about this header? |
| 7819 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7820 | yes:no: ) |
| 7821 | { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7822 | echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7823 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 |
| 7824 | echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} |
| 7825 | ac_header_preproc=yes |
| 7826 | ;; |
| 7827 | no:yes:* ) |
| 7828 | { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 |
| 7829 | echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} |
| 7830 | { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 |
| 7831 | echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} |
| 7832 | { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 |
| 7833 | echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} |
| 7834 | { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7835 | echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7836 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 |
| 7837 | echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} |
| 7838 | { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 |
| 7839 | echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} |
| 7840 | ( |
| 7841 | cat <<\_ASBOX |
| 7842 | ## ------------------------------------ ## |
| 7843 | ## Report this to the pjproject lists. ## |
| 7844 | ## ------------------------------------ ## |
| 7845 | _ASBOX |
| 7846 | ) | |
| 7847 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7848 | ;; |
| 7849 | esac |
| 7850 | echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7851 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6 |
| 7852 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 7853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7854 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7855 | ac_cv_header_winsock2_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7856 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7857 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7858 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7859 | |
| 7860 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7861 | if test $ac_cv_header_winsock2_h = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7862 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7863 | #define PJ_HAS_WINSOCK2_H 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7864 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7865 | |
| 7866 | fi |
| 7867 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7868 | |
| 7869 | |
| 7870 | echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7871 | echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7872 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7873 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7874 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7875 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7876 | |
| 7877 | echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7878 | echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7879 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7880 | #define PJ_HAS_ERRNO_VAR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7881 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7882 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7883 | |
| 7884 | echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7885 | echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7886 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7887 | #define PJ_HAS_HIGH_RES_TIMER 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7888 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7889 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7890 | |
| 7891 | echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7892 | echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7893 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7894 | #define PJ_HAS_MALLOC 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7895 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7896 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7897 | |
| 7898 | echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7899 | echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7900 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7901 | #define PJ_NATIVE_STRING_IS_UNICODE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7902 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7903 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7904 | |
| 7905 | echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7906 | echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7907 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7908 | #define PJ_ATOMIC_VALUE_TYPE long |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7909 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7910 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7911 | |
| 7912 | echo "$as_me:$LINENO: checking if inet_aton is available" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7913 | echo $ECHO_N "checking if inet_aton is available... $ECHO_C" >&6 |
| 7914 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7915 | /* confdefs.h. */ |
| 7916 | _ACEOF |
| 7917 | cat confdefs.h >>conftest.$ac_ext |
| 7918 | cat >>conftest.$ac_ext <<_ACEOF |
| 7919 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 7920 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7921 | int |
| 7922 | main () |
| 7923 | { |
| 7924 | inet_aton(0, 0); |
| 7925 | ; |
| 7926 | return 0; |
| 7927 | } |
| 7928 | _ACEOF |
| 7929 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7931 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7932 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7934 | rm -f conftest.er1 |
| 7935 | cat conftest.err >&5 |
| 7936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7937 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7938 | { ac_try='test -z "$ac_c_werror_flag" |
| 7939 | || test ! -s conftest.err' |
| 7940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 7941 | (eval $ac_try) 2>&5 |
| 7942 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7944 | (exit $ac_status); }; } && |
| 7945 | { ac_try='test -s conftest.$ac_objext' |
| 7946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7947 | (eval $ac_try) 2>&5 |
| 7948 | ac_status=$? |
| 7949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7950 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7951 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7952 | #define PJ_SOCK_HAS_INET_ATON 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7953 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7954 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7955 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7956 | echo "${ECHO_T}yes" >&6 |
| 7957 | else |
| 7958 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7960 | |
| 7961 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7962 | echo "${ECHO_T}no" >&6 |
| 7963 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7965 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7966 | echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7967 | echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6 |
| 7968 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7969 | /* confdefs.h. */ |
| 7970 | _ACEOF |
| 7971 | cat confdefs.h >>conftest.$ac_ext |
| 7972 | cat >>conftest.$ac_ext <<_ACEOF |
| 7973 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 7974 | #include <sys/types.h> |
| 7975 | #include <sys/socket.h> |
| 7976 | #include <netinet/in.h> |
| 7977 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7978 | int |
| 7979 | main () |
| 7980 | { |
| 7981 | struct sockaddr_in a; a.sin_len=0; |
| 7982 | ; |
| 7983 | return 0; |
| 7984 | } |
| 7985 | _ACEOF |
| 7986 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7988 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7989 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7991 | rm -f conftest.er1 |
| 7992 | cat conftest.err >&5 |
| 7993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7994 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7995 | { ac_try='test -z "$ac_c_werror_flag" |
| 7996 | || test ! -s conftest.err' |
| 7997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 7998 | (eval $ac_try) 2>&5 |
| 7999 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8001 | (exit $ac_status); }; } && |
| 8002 | { ac_try='test -s conftest.$ac_objext' |
| 8003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8004 | (eval $ac_try) 2>&5 |
| 8005 | ac_status=$? |
| 8006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8007 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8008 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8009 | #define PJ_SOCKADDR_HAS_LEN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8010 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8011 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8012 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8013 | echo "${ECHO_T}yes" >&6 |
| 8014 | else |
| 8015 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8017 | |
| 8018 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8019 | echo "${ECHO_T}no" >&6 |
| 8020 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8022 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8023 | echo "$as_me:$LINENO: checking if socklen_t is available" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8024 | echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6 |
| 8025 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8026 | /* confdefs.h. */ |
| 8027 | _ACEOF |
| 8028 | cat confdefs.h >>conftest.$ac_ext |
| 8029 | cat >>conftest.$ac_ext <<_ACEOF |
| 8030 | /* end confdefs.h. */ |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 8031 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8032 | int |
| 8033 | main () |
| 8034 | { |
| 8035 | socklen_t xxx = 0; |
| 8036 | ; |
| 8037 | return 0; |
| 8038 | } |
| 8039 | _ACEOF |
| 8040 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8042 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8043 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8045 | rm -f conftest.er1 |
| 8046 | cat conftest.err >&5 |
| 8047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8048 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8049 | { ac_try='test -z "$ac_c_werror_flag" |
| 8050 | || test ! -s conftest.err' |
| 8051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 8052 | (eval $ac_try) 2>&5 |
| 8053 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8055 | (exit $ac_status); }; } && |
| 8056 | { ac_try='test -s conftest.$ac_objext' |
| 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 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8061 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8062 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8063 | #define PJ_HAS_SOCKLEN_T 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8064 | _ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8065 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8066 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8067 | echo "${ECHO_T}yes" >&6 |
| 8068 | else |
| 8069 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8071 | |
| 8072 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8073 | echo "${ECHO_T}no" >&6 |
| 8074 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 8076 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8077 | echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8078 | echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8079 | case $target in |
| 8080 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8081 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8082 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8083 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8084 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8085 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8086 | echo "${ECHO_T}yes" >&6 |
| 8087 | ;; |
| 8088 | *) |
| 8089 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8090 | /* confdefs.h. */ |
| 8091 | _ACEOF |
| 8092 | cat confdefs.h >>conftest.$ac_ext |
| 8093 | cat >>conftest.$ac_ext <<_ACEOF |
| 8094 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 8095 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8096 | #include <sys/socket.h> |
| 8097 | #include <netinet/in.h> |
| 8098 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8099 | int |
| 8100 | main () |
| 8101 | { |
| 8102 | int i=SO_ERROR; |
| 8103 | ; |
| 8104 | return 0; |
| 8105 | } |
| 8106 | _ACEOF |
| 8107 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8109 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8110 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8112 | rm -f conftest.er1 |
| 8113 | cat conftest.err >&5 |
| 8114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8115 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8116 | { ac_try='test -z "$ac_c_werror_flag" |
| 8117 | || test ! -s conftest.err' |
| 8118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 8119 | (eval $ac_try) 2>&5 |
| 8120 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8122 | (exit $ac_status); }; } && |
| 8123 | { ac_try='test -s conftest.$ac_objext' |
| 8124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8125 | (eval $ac_try) 2>&5 |
| 8126 | ac_status=$? |
| 8127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8128 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8129 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8130 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8131 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8132 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8133 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8134 | echo "${ECHO_T}yes" >&6 |
| 8135 | else |
| 8136 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8138 | |
| 8139 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8140 | echo "${ECHO_T}no" >&6 |
| 8141 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8143 | ;; |
| 8144 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8145 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8146 | |
| 8147 | echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8148 | echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6 |
| 8149 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8150 | /* confdefs.h. */ |
| 8151 | _ACEOF |
| 8152 | cat confdefs.h >>conftest.$ac_ext |
| 8153 | cat >>conftest.$ac_ext <<_ACEOF |
| 8154 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8155 | #include <pthread.h> |
| 8156 | int |
| 8157 | main () |
| 8158 | { |
| 8159 | pthread_rwlock_t *x; |
| 8160 | ; |
| 8161 | return 0; |
| 8162 | } |
| 8163 | _ACEOF |
| 8164 | rm -f conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8166 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8167 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8169 | rm -f conftest.er1 |
| 8170 | cat conftest.err >&5 |
| 8171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8172 | (exit $ac_status); } && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8173 | { ac_try='test -z "$ac_c_werror_flag" |
| 8174 | || test ! -s conftest.err' |
| 8175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 8176 | (eval $ac_try) 2>&5 |
| 8177 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8179 | (exit $ac_status); }; } && |
| 8180 | { ac_try='test -s conftest.$ac_objext' |
| 8181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8182 | (eval $ac_try) 2>&5 |
| 8183 | ac_status=$? |
| 8184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8185 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8186 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8187 | #define PJ_EMULATE_RWMUTEX 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8188 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8189 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8190 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8191 | echo "${ECHO_T}yes" >&6 |
| 8192 | else |
| 8193 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8194 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8195 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8196 | cat >>confdefs.h <<\_ACEOF |
| 8197 | #define PJ_EMULATE_RWMUTEX 1 |
| 8198 | _ACEOF |
| 8199 | |
| 8200 | echo "$as_me:$LINENO: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8201 | echo "${ECHO_T}no" >&6 |
| 8202 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8204 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8205 | |
| 8206 | case $target in |
| 8207 | *mingw* | *cygw* | *win32* | *w32* ) |
| 8208 | ac_os_objs="os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o ioqueue_select.o" |
| 8209 | ;; |
| 8210 | *) |
| 8211 | ac_os_objs="os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o guid_simple.o ioqueue_select.o" |
| 8212 | ;; |
| 8213 | esac |
| 8214 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8215 | |
| 8216 | |
| 8217 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 8218 | # Check whether --enable-sound or --disable-sound was given. |
| 8219 | if test "${enable_sound+set}" = set; then |
| 8220 | enableval="$enable_sound" |
| 8221 | if test "$enable_sound" = "no"; then |
| 8222 | ac_pjmedia_snd=null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8223 | echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 8224 | echo "${ECHO_T}Checking if sound is disabled... yes" >&6 |
| 8225 | fi |
| 8226 | |
| 8227 | fi; |
| 8228 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8229 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 8230 | if test "$enable_sound" = "no"; then |
| 8231 | true; |
| 8232 | else |
| 8233 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 8234 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 8235 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 8236 | if test "`uname -r`" = "6.8"; then |
| 8237 | #ac_pa_cflags="-DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS" |
| 8238 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 8239 | ac_pjmedia_snd=pa_old_darwinos |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8240 | echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5 |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 8241 | echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6 |
| 8242 | else |
| 8243 | ac_pjmedia_snd=pa_darwinos |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8244 | echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 8245 | echo "${ECHO_T}Checking sound device backend... coreaudio" >&6 |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 8246 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 8247 | ;; |
| 8248 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8249 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8250 | echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8251 | echo "${ECHO_T}Checking sound device backend... win32 sound" >&6 |
| 8252 | ;; |
| 8253 | *rtems*) |
| 8254 | ac_pjmedia_snd=null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8255 | echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8256 | echo "${ECHO_T}Checking sound device backend... null sound" >&6 |
| 8257 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8258 | *) |
| 8259 | ac_pjmedia_snd=pa_unix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8260 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 8261 | echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8262 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6 |
| 8263 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 8264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8265 | fi |
| 8266 | echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 8267 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8268 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8269 | # Is the header compilable? |
| 8270 | echo "$as_me:$LINENO: checking alsa/version.h usability" >&5 |
| 8271 | echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6 |
| 8272 | cat >conftest.$ac_ext <<_ACEOF |
| 8273 | /* confdefs.h. */ |
| 8274 | _ACEOF |
| 8275 | cat confdefs.h >>conftest.$ac_ext |
| 8276 | cat >>conftest.$ac_ext <<_ACEOF |
| 8277 | /* end confdefs.h. */ |
| 8278 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8279 | #include <alsa/version.h> |
| 8280 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8281 | rm -f conftest.$ac_objext |
| 8282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8283 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8284 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8285 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8286 | rm -f conftest.er1 |
| 8287 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8289 | (exit $ac_status); } && |
| 8290 | { ac_try='test -z "$ac_c_werror_flag" |
| 8291 | || test ! -s conftest.err' |
| 8292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8293 | (eval $ac_try) 2>&5 |
| 8294 | ac_status=$? |
| 8295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8296 | (exit $ac_status); }; } && |
| 8297 | { ac_try='test -s conftest.$ac_objext' |
| 8298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8299 | (eval $ac_try) 2>&5 |
| 8300 | ac_status=$? |
| 8301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8302 | (exit $ac_status); }; }; then |
| 8303 | ac_header_compiler=yes |
| 8304 | else |
| 8305 | echo "$as_me: failed program was:" >&5 |
| 8306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8307 | |
| 8308 | ac_header_compiler=no |
| 8309 | fi |
| 8310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8311 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8312 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8313 | |
| 8314 | # Is the header present? |
| 8315 | echo "$as_me:$LINENO: checking alsa/version.h presence" >&5 |
| 8316 | echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6 |
| 8317 | cat >conftest.$ac_ext <<_ACEOF |
| 8318 | /* confdefs.h. */ |
| 8319 | _ACEOF |
| 8320 | cat confdefs.h >>conftest.$ac_ext |
| 8321 | cat >>conftest.$ac_ext <<_ACEOF |
| 8322 | /* end confdefs.h. */ |
| 8323 | #include <alsa/version.h> |
| 8324 | _ACEOF |
| 8325 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8326 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8327 | ac_status=$? |
| 8328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8329 | rm -f conftest.er1 |
| 8330 | cat conftest.err >&5 |
| 8331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8332 | (exit $ac_status); } >/dev/null; then |
| 8333 | if test -s conftest.err; then |
| 8334 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8335 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8336 | else |
| 8337 | ac_cpp_err= |
| 8338 | fi |
| 8339 | else |
| 8340 | ac_cpp_err=yes |
| 8341 | fi |
| 8342 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8343 | ac_header_preproc=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8344 | else |
| 8345 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8347 | |
| 8348 | ac_header_preproc=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8349 | fi |
| 8350 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8351 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8352 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8353 | |
| 8354 | # So? What about this header? |
| 8355 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8356 | yes:no: ) |
| 8357 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8358 | echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8359 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5 |
| 8360 | echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;} |
| 8361 | ac_header_preproc=yes |
| 8362 | ;; |
| 8363 | no:yes:* ) |
| 8364 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5 |
| 8365 | echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;} |
| 8366 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5 |
| 8367 | echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;} |
| 8368 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5 |
| 8369 | echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;} |
| 8370 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8371 | echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8372 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5 |
| 8373 | echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;} |
| 8374 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5 |
| 8375 | echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;} |
| 8376 | ( |
| 8377 | cat <<\_ASBOX |
| 8378 | ## ------------------------------------ ## |
| 8379 | ## Report this to the pjproject lists. ## |
| 8380 | ## ------------------------------------ ## |
| 8381 | _ASBOX |
| 8382 | ) | |
| 8383 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8384 | ;; |
| 8385 | esac |
| 8386 | echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 8387 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6 |
| 8388 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 8389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8390 | else |
| 8391 | ac_cv_header_alsa_version_h=$ac_header_preproc |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8392 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8393 | echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8394 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8395 | |
| 8396 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8397 | if test $ac_cv_header_alsa_version_h = yes; then |
| 8398 | ac_pa_use_alsa=1 |
| 8399 | |
| 8400 | LIBS="$LIBS -lasound" |
| 8401 | |
| 8402 | else |
| 8403 | ac_pa_use_alsa=0 |
| 8404 | |
| 8405 | fi |
| 8406 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8407 | |
| 8408 | echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8409 | echo "${ECHO_T}Checking sound device backend... unix" >&6 |
| 8410 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 8411 | esac |
| 8412 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8413 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8414 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8415 | # Check whether --enable-small-filter or --disable-small-filter was given. |
| 8416 | if test "${enable_small_filter+set}" = set; then |
| 8417 | enableval="$enable_small_filter" |
| 8418 | if test "$enable_small_filter" = "no"; then |
| 8419 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8420 | echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8421 | echo "${ECHO_T}Checking if small filter is disabled... yes" >&6 |
| 8422 | fi |
| 8423 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8424 | echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8425 | echo "${ECHO_T}Checking if small filter is disabled... no" >&6 |
| 8426 | fi; |
| 8427 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8428 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8429 | # Check whether --enable-large-filter or --disable-large-filter was given. |
| 8430 | if test "${enable_large_filter+set}" = set; then |
| 8431 | enableval="$enable_large_filter" |
| 8432 | if test "$enable_large_filter" = "no"; then |
| 8433 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8434 | echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8435 | echo "${ECHO_T}Checking if large filter is disabled... yes" >&6 |
| 8436 | fi |
| 8437 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8438 | echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8439 | echo "${ECHO_T}Checking if large filter is disabled... no" >&6 |
| 8440 | fi; |
| 8441 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8442 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8443 | # Check whether --enable-g711-plc or --disable-g711-plc was given. |
| 8444 | if test "${enable_g711_plc+set}" = set; then |
| 8445 | enableval="$enable_g711_plc" |
| 8446 | if test "$enable_g711_plc" = "no"; then |
| 8447 | ac_no_g711_plc='-DPJMEDIA_HAS_G711_PLC=0' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8448 | echo "$as_me:$LINENO: result: Checking if G.711 Annex A PLC is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8449 | echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...yes" >&6 |
| 8450 | fi |
| 8451 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8452 | echo "$as_me:$LINENO: result: Checking if G.711 Annex A PLC is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8453 | echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...no" >&6 |
| 8454 | fi; |
| 8455 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8456 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8457 | # Check whether --enable-speex-aec or --disable-speex-aec was given. |
| 8458 | if test "${enable_speex_aec+set}" = set; then |
| 8459 | enableval="$enable_speex_aec" |
| 8460 | if test "$enable_speex_aec" = "no"; then |
| 8461 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8462 | echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8463 | echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6 |
| 8464 | fi |
| 8465 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8466 | echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8467 | echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6 |
| 8468 | fi; |
| 8469 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8470 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8471 | # Check whether --enable-g711-codec or --disable-g711-codec was given. |
| 8472 | if test "${enable_g711_codec+set}" = set; then |
| 8473 | enableval="$enable_g711_codec" |
| 8474 | if test "$enable_g711_codec" = "no"; then |
| 8475 | ac_no_g711_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame^] | 8476 | cat >>confdefs.h <<\_ACEOF |
| 8477 | #define PJMEDIA_HAS_G711_CODEC 0 |
| 8478 | _ACEOF |
| 8479 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8480 | echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8481 | echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6 |
| 8482 | fi |
| 8483 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8484 | echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8485 | echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6 |
| 8486 | fi; |
| 8487 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8488 | |
| 8489 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8490 | # Check whether --enable-l16-codec or --disable-l16-codec was given. |
| 8491 | if test "${enable_l16_codec+set}" = set; then |
| 8492 | enableval="$enable_l16_codec" |
| 8493 | if test "$enable_l16_codec" = "no"; then |
| 8494 | ac_no_l16_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame^] | 8495 | cat >>confdefs.h <<\_ACEOF |
| 8496 | #define PJMEDIA_HAS_L16_CODEC 0 |
| 8497 | _ACEOF |
| 8498 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8499 | echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8500 | echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6 |
| 8501 | fi |
| 8502 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8503 | echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5 |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 8504 | echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8505 | fi; |
| 8506 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8507 | |
| 8508 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8509 | # Check whether --enable-gsm-codec or --disable-gsm-codec was given. |
| 8510 | if test "${enable_gsm_codec+set}" = set; then |
| 8511 | enableval="$enable_gsm_codec" |
| 8512 | if test "$enable_gsm_codec" = "no"; then |
| 8513 | ac_no_gsm_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame^] | 8514 | cat >>confdefs.h <<\_ACEOF |
| 8515 | #define PJMEDIA_HAS_GSM_CODEC 0 |
| 8516 | _ACEOF |
| 8517 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8518 | echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8519 | echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6 |
| 8520 | fi |
| 8521 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8522 | echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8523 | echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6 |
| 8524 | fi; |
| 8525 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8526 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8527 | # Check whether --enable-speex-codec or --disable-speex-codec was given. |
| 8528 | if test "${enable_speex_codec+set}" = set; then |
| 8529 | enableval="$enable_speex_codec" |
| 8530 | if test "$enable_speex_codec" = "no"; then |
| 8531 | ac_no_speex_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame^] | 8532 | cat >>confdefs.h <<\_ACEOF |
| 8533 | #define PJMEDIA_HAS_SPEEX_CODEC 0 |
| 8534 | _ACEOF |
| 8535 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8536 | echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8537 | echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6 |
| 8538 | fi |
| 8539 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8540 | echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8541 | echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6 |
| 8542 | fi; |
| 8543 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8544 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8545 | # Check whether --enable-ilbc-codec or --disable-ilbc-codec was given. |
| 8546 | if test "${enable_ilbc_codec+set}" = set; then |
| 8547 | enableval="$enable_ilbc_codec" |
| 8548 | if test "$enable_ilbc_codec" = "no"; then |
| 8549 | ac_no_ilbc_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame^] | 8550 | cat >>confdefs.h <<\_ACEOF |
| 8551 | #define PJMEDIA_HAS_ILBC_CODEC 0 |
| 8552 | _ACEOF |
| 8553 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8554 | echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8555 | echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6 |
| 8556 | fi |
| 8557 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8558 | echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8559 | echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6 |
| 8560 | fi; |
| 8561 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8562 | |
| 8563 | |
| 8564 | |
| 8565 | |
| 8566 | # Check whether --enable-ssl or --disable-ssl was given. |
| 8567 | if test "${enable_ssl+set}" = set; then |
| 8568 | enableval="$enable_ssl" |
| 8569 | |
| 8570 | if test "$enable_ssl" = "no"; then |
| 8571 | ac_no_ssl=1 |
| 8572 | echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5 |
| 8573 | echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6 |
| 8574 | fi |
| 8575 | |
| 8576 | else |
| 8577 | |
| 8578 | echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5 |
| 8579 | echo "${ECHO_T}checking for OpenSSL installations.." >&6 |
| 8580 | |
| 8581 | |
| 8582 | |
| 8583 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 8584 | echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 8585 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 |
| 8586 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 8587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8588 | fi |
| 8589 | echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 8590 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 |
| 8591 | else |
| 8592 | # Is the header compilable? |
| 8593 | echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 |
| 8594 | echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6 |
| 8595 | cat >conftest.$ac_ext <<_ACEOF |
| 8596 | /* confdefs.h. */ |
| 8597 | _ACEOF |
| 8598 | cat confdefs.h >>conftest.$ac_ext |
| 8599 | cat >>conftest.$ac_ext <<_ACEOF |
| 8600 | /* end confdefs.h. */ |
| 8601 | $ac_includes_default |
| 8602 | #include <openssl/ssl.h> |
| 8603 | _ACEOF |
| 8604 | rm -f conftest.$ac_objext |
| 8605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8606 | (eval $ac_compile) 2>conftest.er1 |
| 8607 | ac_status=$? |
| 8608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8609 | rm -f conftest.er1 |
| 8610 | cat conftest.err >&5 |
| 8611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8612 | (exit $ac_status); } && |
| 8613 | { ac_try='test -z "$ac_c_werror_flag" |
| 8614 | || test ! -s conftest.err' |
| 8615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8616 | (eval $ac_try) 2>&5 |
| 8617 | ac_status=$? |
| 8618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8619 | (exit $ac_status); }; } && |
| 8620 | { ac_try='test -s conftest.$ac_objext' |
| 8621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8622 | (eval $ac_try) 2>&5 |
| 8623 | ac_status=$? |
| 8624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8625 | (exit $ac_status); }; }; then |
| 8626 | ac_header_compiler=yes |
| 8627 | else |
| 8628 | echo "$as_me: failed program was:" >&5 |
| 8629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8630 | |
| 8631 | ac_header_compiler=no |
| 8632 | fi |
| 8633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8634 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8635 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8636 | |
| 8637 | # Is the header present? |
| 8638 | echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 |
| 8639 | echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6 |
| 8640 | cat >conftest.$ac_ext <<_ACEOF |
| 8641 | /* confdefs.h. */ |
| 8642 | _ACEOF |
| 8643 | cat confdefs.h >>conftest.$ac_ext |
| 8644 | cat >>conftest.$ac_ext <<_ACEOF |
| 8645 | /* end confdefs.h. */ |
| 8646 | #include <openssl/ssl.h> |
| 8647 | _ACEOF |
| 8648 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8649 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8650 | ac_status=$? |
| 8651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8652 | rm -f conftest.er1 |
| 8653 | cat conftest.err >&5 |
| 8654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8655 | (exit $ac_status); } >/dev/null; then |
| 8656 | if test -s conftest.err; then |
| 8657 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8658 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8659 | else |
| 8660 | ac_cpp_err= |
| 8661 | fi |
| 8662 | else |
| 8663 | ac_cpp_err=yes |
| 8664 | fi |
| 8665 | if test -z "$ac_cpp_err"; then |
| 8666 | ac_header_preproc=yes |
| 8667 | else |
| 8668 | echo "$as_me: failed program was:" >&5 |
| 8669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8670 | |
| 8671 | ac_header_preproc=no |
| 8672 | fi |
| 8673 | rm -f conftest.err conftest.$ac_ext |
| 8674 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8675 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8676 | |
| 8677 | # So? What about this header? |
| 8678 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8679 | yes:no: ) |
| 8680 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8681 | echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8682 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 |
| 8683 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} |
| 8684 | ac_header_preproc=yes |
| 8685 | ;; |
| 8686 | no:yes:* ) |
| 8687 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 |
| 8688 | echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} |
| 8689 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 |
| 8690 | echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} |
| 8691 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 |
| 8692 | echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} |
| 8693 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8694 | echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8695 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 |
| 8696 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} |
| 8697 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 |
| 8698 | echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} |
| 8699 | ( |
| 8700 | cat <<\_ASBOX |
| 8701 | ## ------------------------------------ ## |
| 8702 | ## Report this to the pjproject lists. ## |
| 8703 | ## ------------------------------------ ## |
| 8704 | _ASBOX |
| 8705 | ) | |
| 8706 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8707 | ;; |
| 8708 | esac |
| 8709 | echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 8710 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 |
| 8711 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 8712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8713 | else |
| 8714 | ac_cv_header_openssl_ssl_h=$ac_header_preproc |
| 8715 | fi |
| 8716 | echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 8717 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 |
| 8718 | |
| 8719 | fi |
| 8720 | if test $ac_cv_header_openssl_ssl_h = yes; then |
| 8721 | openssl_h_present=1 |
| 8722 | fi |
| 8723 | |
| 8724 | |
| 8725 | echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 |
| 8726 | echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6 |
| 8727 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then |
| 8728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8729 | else |
| 8730 | ac_check_lib_save_LIBS=$LIBS |
| 8731 | LIBS="-lssl $LIBS" |
| 8732 | cat >conftest.$ac_ext <<_ACEOF |
| 8733 | /* confdefs.h. */ |
| 8734 | _ACEOF |
| 8735 | cat confdefs.h >>conftest.$ac_ext |
| 8736 | cat >>conftest.$ac_ext <<_ACEOF |
| 8737 | /* end confdefs.h. */ |
| 8738 | |
| 8739 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8740 | #ifdef __cplusplus |
| 8741 | extern "C" |
| 8742 | #endif |
| 8743 | /* We use char because int might match the return type of a gcc2 |
| 8744 | builtin and then its argument prototype would still apply. */ |
| 8745 | char SSL_library_init (); |
| 8746 | int |
| 8747 | main () |
| 8748 | { |
| 8749 | SSL_library_init (); |
| 8750 | ; |
| 8751 | return 0; |
| 8752 | } |
| 8753 | _ACEOF |
| 8754 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8756 | (eval $ac_link) 2>conftest.er1 |
| 8757 | ac_status=$? |
| 8758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8759 | rm -f conftest.er1 |
| 8760 | cat conftest.err >&5 |
| 8761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8762 | (exit $ac_status); } && |
| 8763 | { ac_try='test -z "$ac_c_werror_flag" |
| 8764 | || test ! -s conftest.err' |
| 8765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8766 | (eval $ac_try) 2>&5 |
| 8767 | ac_status=$? |
| 8768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8769 | (exit $ac_status); }; } && |
| 8770 | { ac_try='test -s conftest$ac_exeext' |
| 8771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8772 | (eval $ac_try) 2>&5 |
| 8773 | ac_status=$? |
| 8774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8775 | (exit $ac_status); }; }; then |
| 8776 | ac_cv_lib_ssl_SSL_library_init=yes |
| 8777 | else |
| 8778 | echo "$as_me: failed program was:" >&5 |
| 8779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8780 | |
| 8781 | ac_cv_lib_ssl_SSL_library_init=no |
| 8782 | fi |
| 8783 | rm -f conftest.err conftest.$ac_objext \ |
| 8784 | conftest$ac_exeext conftest.$ac_ext |
| 8785 | LIBS=$ac_check_lib_save_LIBS |
| 8786 | fi |
| 8787 | echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 8788 | echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6 |
| 8789 | if test $ac_cv_lib_ssl_SSL_library_init = yes; then |
| 8790 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 8791 | fi |
| 8792 | |
| 8793 | echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 8794 | echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6 |
| 8795 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then |
| 8796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8797 | else |
| 8798 | ac_check_lib_save_LIBS=$LIBS |
| 8799 | LIBS="-lcrypto $LIBS" |
| 8800 | cat >conftest.$ac_ext <<_ACEOF |
| 8801 | /* confdefs.h. */ |
| 8802 | _ACEOF |
| 8803 | cat confdefs.h >>conftest.$ac_ext |
| 8804 | cat >>conftest.$ac_ext <<_ACEOF |
| 8805 | /* end confdefs.h. */ |
| 8806 | |
| 8807 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8808 | #ifdef __cplusplus |
| 8809 | extern "C" |
| 8810 | #endif |
| 8811 | /* We use char because int might match the return type of a gcc2 |
| 8812 | builtin and then its argument prototype would still apply. */ |
| 8813 | char ERR_load_BIO_strings (); |
| 8814 | int |
| 8815 | main () |
| 8816 | { |
| 8817 | ERR_load_BIO_strings (); |
| 8818 | ; |
| 8819 | return 0; |
| 8820 | } |
| 8821 | _ACEOF |
| 8822 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8824 | (eval $ac_link) 2>conftest.er1 |
| 8825 | ac_status=$? |
| 8826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8827 | rm -f conftest.er1 |
| 8828 | cat conftest.err >&5 |
| 8829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8830 | (exit $ac_status); } && |
| 8831 | { ac_try='test -z "$ac_c_werror_flag" |
| 8832 | || test ! -s conftest.err' |
| 8833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8834 | (eval $ac_try) 2>&5 |
| 8835 | ac_status=$? |
| 8836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8837 | (exit $ac_status); }; } && |
| 8838 | { ac_try='test -s conftest$ac_exeext' |
| 8839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8840 | (eval $ac_try) 2>&5 |
| 8841 | ac_status=$? |
| 8842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8843 | (exit $ac_status); }; }; then |
| 8844 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 8845 | else |
| 8846 | echo "$as_me: failed program was:" >&5 |
| 8847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8848 | |
| 8849 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
| 8850 | fi |
| 8851 | rm -f conftest.err conftest.$ac_objext \ |
| 8852 | conftest$ac_exeext conftest.$ac_ext |
| 8853 | LIBS=$ac_check_lib_save_LIBS |
| 8854 | fi |
| 8855 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 8856 | echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6 |
| 8857 | if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then |
| 8858 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 8859 | fi |
| 8860 | |
| 8861 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
| 8862 | echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5 |
| 8863 | echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6 |
| 8864 | cat >>confdefs.h <<\_ACEOF |
| 8865 | #define PJSIP_HAS_TLS_TRANSPORT 1 |
| 8866 | _ACEOF |
| 8867 | |
| 8868 | else |
| 8869 | echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 8870 | echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6 |
| 8871 | fi |
| 8872 | |
| 8873 | fi; |
| 8874 | |
| 8875 | |
| 8876 | |
| 8877 | |
| 8878 | echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8879 | echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8880 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8881 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8882 | #define PJ_SELECT_NEEDS_NFDS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8883 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8884 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8885 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8886 | echo "${ECHO_T}yes" >&6 |
| 8887 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8888 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8889 | #define PJ_SELECT_NEEDS_NFDS 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8890 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8891 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8892 | echo "$as_me:$LINENO: result: no (default)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8893 | echo "${ECHO_T}no (default)" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8894 | echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8895 | echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6 |
| 8896 | ;; |
| 8897 | esac |
| 8898 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8899 | echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8900 | echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6 |
| 8901 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8902 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8903 | #define PJ_THREAD_SET_STACK_SIZE 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8904 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8905 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8906 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8907 | echo "${ECHO_T}yes" >&6 |
| 8908 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8909 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8910 | #define PJ_THREAD_SET_STACK_SIZE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8911 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8912 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8913 | echo "$as_me:$LINENO: result: no (default)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8914 | echo "${ECHO_T}no (default)" >&6 |
| 8915 | ;; |
| 8916 | esac |
| 8917 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8918 | echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8919 | echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6 |
| 8920 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8921 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8922 | #define PJ_THREAD_ALLOCATE_STACK 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8923 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8924 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8925 | echo "$as_me:$LINENO: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8926 | echo "${ECHO_T}yes" >&6 |
| 8927 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8928 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8929 | #define PJ_THREAD_ALLOCATE_STACK 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8930 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8931 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8932 | echo "$as_me:$LINENO: result: no (default)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8933 | echo "${ECHO_T}no (default)" >&6 |
| 8934 | ;; |
| 8935 | esac |
| 8936 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8937 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8938 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8939 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8940 | #define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8941 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8942 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8943 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8944 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8945 | #define PJ_BLOCKING_ERROR_VAL EAGAIN |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8946 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8947 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8948 | echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8949 | echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6 |
| 8950 | ;; |
| 8951 | esac |
| 8952 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8953 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8954 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8955 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8956 | #define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8957 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8958 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8959 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8960 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8961 | #define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8962 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8963 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8964 | echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8965 | echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6 |
| 8966 | ;; |
| 8967 | esac |
| 8968 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8969 | |
| 8970 | |
| 8971 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8972 | if test "$build" = "$host"; then |
| 8973 | ac_cross_compile= |
| 8974 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 8975 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8976 | fi |
| 8977 | ac_linux_poll=select |
| 8978 | |
| 8979 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8980 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8981 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8982 | case $target in |
| 8983 | *rtems*) |
| 8984 | ac_main_obj=main_rtems.o |
| 8985 | ;; |
| 8986 | *) |
| 8987 | ac_main_obj=main.o |
| 8988 | ;; |
| 8989 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8990 | |
| 8991 | cat >confcache <<\_ACEOF |
| 8992 | # This file is a shell script that caches the results of configure |
| 8993 | # tests run on this system so they can be shared between configure |
| 8994 | # scripts and configure runs, see configure's option --config-cache. |
| 8995 | # It is not useful on other systems. If it contains results you don't |
| 8996 | # want to keep, you may remove or edit it. |
| 8997 | # |
| 8998 | # config.status only pays attention to the cache file if you give it |
| 8999 | # the --recheck option to rerun configure. |
| 9000 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9001 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9002 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 9003 | # following values. |
| 9004 | |
| 9005 | _ACEOF |
| 9006 | |
| 9007 | # The following way of writing the cache mishandles newlines in values, |
| 9008 | # but we know of no workaround that is simple, portable, and efficient. |
| 9009 | # So, don't put newlines in cache variables' values. |
| 9010 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 9011 | # and sets the high bit in the cache file unless we assign to the vars. |
| 9012 | { |
| 9013 | (set) 2>&1 | |
| 9014 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 9015 | *ac_space=\ *) |
| 9016 | # `set' does not quote correctly, so add quotes (double-quote |
| 9017 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 9018 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9019 | "s/'/'\\\\''/g; |
| 9020 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9021 | ;; |
| 9022 | *) |
| 9023 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 9024 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9025 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9026 | ;; |
| 9027 | esac; |
| 9028 | } | |
| 9029 | sed ' |
| 9030 | t clear |
| 9031 | : clear |
| 9032 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 9033 | t end |
| 9034 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 9035 | : end' >>confcache |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9036 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9037 | if test -w $cache_file; then |
| 9038 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 9039 | cat confcache >$cache_file |
| 9040 | else |
| 9041 | echo "not updating unwritable cache $cache_file" |
| 9042 | fi |
| 9043 | fi |
| 9044 | rm -f confcache |
| 9045 | |
| 9046 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 9047 | # Let make expand exec_prefix. |
| 9048 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 9049 | |
| 9050 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 9051 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 9052 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 9053 | # (actually we leave an empty line to preserve line numbers). |
| 9054 | if test "x$srcdir" = x.; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9055 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9056 | s/:*\$(srcdir):*/:/; |
| 9057 | s/:*\${srcdir}:*/:/; |
| 9058 | s/:*@srcdir@:*/:/; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9059 | s/^\([^=]*=[ ]*\):*/\1/; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9060 | s/:*$//; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9061 | s/^[^=]*=[ ]*$//; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9062 | }' |
| 9063 | fi |
| 9064 | |
| 9065 | DEFS=-DHAVE_CONFIG_H |
| 9066 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9067 | ac_libobjs= |
| 9068 | ac_ltlibobjs= |
| 9069 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 9070 | # 1. Remove the extension, and $U if already installed. |
| 9071 | ac_i=`echo "$ac_i" | |
| 9072 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 9073 | # 2. Add them. |
| 9074 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 9075 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 9076 | done |
| 9077 | LIBOBJS=$ac_libobjs |
| 9078 | |
| 9079 | LTLIBOBJS=$ac_ltlibobjs |
| 9080 | |
| 9081 | |
| 9082 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9083 | : ${CONFIG_STATUS=./config.status} |
| 9084 | ac_clean_files_save=$ac_clean_files |
| 9085 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9086 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9087 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 9088 | cat >$CONFIG_STATUS <<_ACEOF |
| 9089 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9090 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9091 | # Run this file to recreate the current configuration. |
| 9092 | # Compiler output produced by configure, useful for debugging |
| 9093 | # configure, is in config.log if it exists. |
| 9094 | |
| 9095 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9096 | ac_cs_recheck=false |
| 9097 | ac_cs_silent=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9098 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 9099 | _ACEOF |
| 9100 | |
| 9101 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9102 | ## --------------------- ## |
| 9103 | ## M4sh Initialization. ## |
| 9104 | ## --------------------- ## |
| 9105 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9106 | # Be Bourne compatible |
| 9107 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 9108 | emulate sh |
| 9109 | NULLCMD=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9110 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 9111 | # is contrary to our usage. Disable this feature. |
| 9112 | alias -g '${1+"$@"}'='"$@"' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9113 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 9114 | set -o posix |
| 9115 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9116 | DUALCASE=1; export DUALCASE # for MKS sh |
| 9117 | |
| 9118 | # Support unset when possible. |
| 9119 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 9120 | as_unset=unset |
| 9121 | else |
| 9122 | as_unset=false |
| 9123 | fi |
| 9124 | |
| 9125 | |
| 9126 | # Work around bugs in pre-3.0 UWIN ksh. |
| 9127 | $as_unset ENV MAIL MAILPATH |
| 9128 | PS1='$ ' |
| 9129 | PS2='> ' |
| 9130 | PS4='+ ' |
| 9131 | |
| 9132 | # NLS nuisances. |
| 9133 | for as_var in \ |
| 9134 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 9135 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 9136 | LC_TELEPHONE LC_TIME |
| 9137 | do |
| 9138 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 9139 | eval $as_var=C; export $as_var |
| 9140 | else |
| 9141 | $as_unset $as_var |
| 9142 | fi |
| 9143 | done |
| 9144 | |
| 9145 | # Required to use basename. |
| 9146 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9147 | as_expr=expr |
| 9148 | else |
| 9149 | as_expr=false |
| 9150 | fi |
| 9151 | |
| 9152 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 9153 | as_basename=basename |
| 9154 | else |
| 9155 | as_basename=false |
| 9156 | fi |
| 9157 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9158 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9159 | # Name of the executable. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9160 | as_me=`$as_basename "$0" || |
| 9161 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 9162 | X"$0" : 'X\(//\)$' \| \ |
| 9163 | X"$0" : 'X\(/\)$' \| \ |
| 9164 | . : '\(.\)' 2>/dev/null || |
| 9165 | echo X/"$0" | |
| 9166 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 9167 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 9168 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 9169 | s/.*/./; q'` |
| 9170 | |
| 9171 | |
| 9172 | # PATH needs CR, and LINENO needs CR and PATH. |
| 9173 | # Avoid depending upon Character Ranges. |
| 9174 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 9175 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 9176 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 9177 | as_cr_digits='0123456789' |
| 9178 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 9179 | |
| 9180 | # The user is always right. |
| 9181 | if test "${PATH_SEPARATOR+set}" != set; then |
| 9182 | echo "#! /bin/sh" >conf$$.sh |
| 9183 | echo "exit 0" >>conf$$.sh |
| 9184 | chmod +x conf$$.sh |
| 9185 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 9186 | PATH_SEPARATOR=';' |
| 9187 | else |
| 9188 | PATH_SEPARATOR=: |
| 9189 | fi |
| 9190 | rm -f conf$$.sh |
| 9191 | fi |
| 9192 | |
| 9193 | |
| 9194 | as_lineno_1=$LINENO |
| 9195 | as_lineno_2=$LINENO |
| 9196 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9197 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9198 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 9199 | # Find who we are. Look in the path if we contain no path at all |
| 9200 | # relative or not. |
| 9201 | case $0 in |
| 9202 | *[\\/]* ) as_myself=$0 ;; |
| 9203 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9204 | for as_dir in $PATH |
| 9205 | do |
| 9206 | IFS=$as_save_IFS |
| 9207 | test -z "$as_dir" && as_dir=. |
| 9208 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 9209 | done |
| 9210 | |
| 9211 | ;; |
| 9212 | esac |
| 9213 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 9214 | # in which case we are not to be found in the path. |
| 9215 | if test "x$as_myself" = x; then |
| 9216 | as_myself=$0 |
| 9217 | fi |
| 9218 | if test ! -f "$as_myself"; then |
| 9219 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 9220 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 9221 | { (exit 1); exit 1; }; } |
| 9222 | fi |
| 9223 | case $CONFIG_SHELL in |
| 9224 | '') |
| 9225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9226 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 9227 | do |
| 9228 | IFS=$as_save_IFS |
| 9229 | test -z "$as_dir" && as_dir=. |
| 9230 | for as_base in sh bash ksh sh5; do |
| 9231 | case $as_dir in |
| 9232 | /*) |
| 9233 | if ("$as_dir/$as_base" -c ' |
| 9234 | as_lineno_1=$LINENO |
| 9235 | as_lineno_2=$LINENO |
| 9236 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9237 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9238 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 9239 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 9240 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 9241 | CONFIG_SHELL=$as_dir/$as_base |
| 9242 | export CONFIG_SHELL |
| 9243 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 9244 | fi;; |
| 9245 | esac |
| 9246 | done |
| 9247 | done |
| 9248 | ;; |
| 9249 | esac |
| 9250 | |
| 9251 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 9252 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 9253 | # line-number line before each line; the second 'sed' does the real |
| 9254 | # work. The second script uses 'N' to pair each line-number line |
| 9255 | # with the numbered line, and appends trailing '-' during |
| 9256 | # substitution so that $LINENO is not a special case at line end. |
| 9257 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 9258 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 9259 | sed '=' <$as_myself | |
| 9260 | sed ' |
| 9261 | N |
| 9262 | s,$,-, |
| 9263 | : loop |
| 9264 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 9265 | t loop |
| 9266 | s,-$,, |
| 9267 | s,^['$as_cr_digits']*\n,, |
| 9268 | ' >$as_me.lineno && |
| 9269 | chmod +x $as_me.lineno || |
| 9270 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 9271 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 9272 | { (exit 1); exit 1; }; } |
| 9273 | |
| 9274 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 9275 | # (the dirname of $[0] is not the place where we might find the |
| 9276 | # original and so on. Autoconf is especially sensible to this). |
| 9277 | . ./$as_me.lineno |
| 9278 | # Exit status is that of the last command. |
| 9279 | exit |
| 9280 | } |
| 9281 | |
| 9282 | |
| 9283 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 9284 | *c*,-n*) ECHO_N= ECHO_C=' |
| 9285 | ' ECHO_T=' ' ;; |
| 9286 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 9287 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 9288 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9289 | |
| 9290 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9291 | as_expr=expr |
| 9292 | else |
| 9293 | as_expr=false |
| 9294 | fi |
| 9295 | |
| 9296 | rm -f conf$$ conf$$.exe conf$$.file |
| 9297 | echo >conf$$.file |
| 9298 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 9299 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 9300 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 9301 | if test -f conf$$.exe; then |
| 9302 | # Don't use ln at all; we don't have any links |
| 9303 | as_ln_s='cp -p' |
| 9304 | else |
| 9305 | as_ln_s='ln -s' |
| 9306 | fi |
| 9307 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 9308 | as_ln_s=ln |
| 9309 | else |
| 9310 | as_ln_s='cp -p' |
| 9311 | fi |
| 9312 | rm -f conf$$ conf$$.exe conf$$.file |
| 9313 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9314 | if mkdir -p . 2>/dev/null; then |
| 9315 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 9316 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9317 | test -d ./-p && rmdir ./-p |
| 9318 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 9319 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9320 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9321 | as_executable_p="test -f" |
| 9322 | |
| 9323 | # Sed expression to map a string onto a valid CPP name. |
| 9324 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 9325 | |
| 9326 | # Sed expression to map a string onto a valid variable name. |
| 9327 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 9328 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9329 | |
| 9330 | # IFS |
| 9331 | # We need space, tab and new line, in precisely that order. |
| 9332 | as_nl=' |
| 9333 | ' |
| 9334 | IFS=" $as_nl" |
| 9335 | |
| 9336 | # CDPATH. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9337 | $as_unset CDPATH |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9338 | |
| 9339 | exec 6>&1 |
| 9340 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9341 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 9342 | # report actual input values of CONFIG_FILES etc. instead of their |
| 9343 | # values after options handling. Logging --version etc. is OK. |
| 9344 | exec 5>>config.log |
| 9345 | { |
| 9346 | echo |
| 9347 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 9348 | ## Running $as_me. ## |
| 9349 | _ASBOX |
| 9350 | } >&5 |
| 9351 | cat >&5 <<_CSEOF |
| 9352 | |
| 9353 | This file was extended by pjproject $as_me 0.5.8, which was |
| 9354 | generated by GNU Autoconf 2.59. Invocation command line was |
| 9355 | |
| 9356 | CONFIG_FILES = $CONFIG_FILES |
| 9357 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 9358 | CONFIG_LINKS = $CONFIG_LINKS |
| 9359 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 9360 | $ $0 $@ |
| 9361 | |
| 9362 | _CSEOF |
| 9363 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 9364 | echo >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9365 | _ACEOF |
| 9366 | |
| 9367 | # Files that config.status was made for. |
| 9368 | if test -n "$ac_config_files"; then |
| 9369 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 9370 | fi |
| 9371 | |
| 9372 | if test -n "$ac_config_headers"; then |
| 9373 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 9374 | fi |
| 9375 | |
| 9376 | if test -n "$ac_config_links"; then |
| 9377 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 9378 | fi |
| 9379 | |
| 9380 | if test -n "$ac_config_commands"; then |
| 9381 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 9382 | fi |
| 9383 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9384 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9385 | |
| 9386 | ac_cs_usage="\ |
| 9387 | \`$as_me' instantiates files from templates according to the |
| 9388 | current configuration. |
| 9389 | |
| 9390 | Usage: $0 [OPTIONS] [FILE]... |
| 9391 | |
| 9392 | -h, --help print this help, then exit |
| 9393 | -V, --version print version number, then exit |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9394 | -q, --quiet do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9395 | -d, --debug don't remove temporary files |
| 9396 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9397 | --file=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9398 | instantiate the configuration file FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9399 | --header=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9400 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9401 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9402 | Configuration files: |
| 9403 | $config_files |
| 9404 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9405 | Configuration headers: |
| 9406 | $config_headers |
| 9407 | |
| 9408 | Report bugs to <bug-autoconf@gnu.org>." |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9409 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9410 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9411 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9412 | ac_cs_version="\\ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9413 | pjproject config.status 0.5.8 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9414 | configured by $0, generated by GNU Autoconf 2.59, |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9415 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 9416 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9417 | Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9418 | This config.status script is free software; the Free Software Foundation |
| 9419 | gives unlimited permission to copy, distribute and modify it." |
| 9420 | srcdir=$srcdir |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9421 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9422 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9423 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9424 | # If no file are specified by the user, then we need to provide default |
| 9425 | # value. By we need to know if files were specified by the user. |
| 9426 | ac_need_defaults=: |
| 9427 | while test $# != 0 |
| 9428 | do |
| 9429 | case $1 in |
| 9430 | --*=*) |
| 9431 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 9432 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9433 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9434 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9435 | -*) |
| 9436 | ac_option=$1 |
| 9437 | ac_optarg=$2 |
| 9438 | ac_shift=shift |
| 9439 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9440 | *) # This is not an option, so the user has probably given explicit |
| 9441 | # arguments. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9442 | ac_option=$1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9443 | ac_need_defaults=false;; |
| 9444 | esac |
| 9445 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9446 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9447 | # Handling of the options. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9448 | _ACEOF |
| 9449 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9450 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9451 | ac_cs_recheck=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9452 | --version | --vers* | -V ) |
| 9453 | echo "$ac_cs_version"; exit 0 ;; |
| 9454 | --he | --h) |
| 9455 | # Conflict between --help and --header |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9456 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9457 | Try \`$0 --help' for more information." >&5 |
| 9458 | echo "$as_me: error: ambiguous option: $1 |
| 9459 | Try \`$0 --help' for more information." >&2;} |
| 9460 | { (exit 1); exit 1; }; };; |
| 9461 | --help | --hel | -h ) |
| 9462 | echo "$ac_cs_usage"; exit 0 ;; |
| 9463 | --debug | --d* | -d ) |
| 9464 | debug=: ;; |
| 9465 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9466 | $ac_shift |
| 9467 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9468 | ac_need_defaults=false;; |
| 9469 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9470 | $ac_shift |
| 9471 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9472 | ac_need_defaults=false;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9473 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 9474 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 9475 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9476 | |
| 9477 | # This is an error. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9478 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9479 | Try \`$0 --help' for more information." >&5 |
| 9480 | echo "$as_me: error: unrecognized option: $1 |
| 9481 | Try \`$0 --help' for more information." >&2;} |
| 9482 | { (exit 1); exit 1; }; } ;; |
| 9483 | |
| 9484 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 9485 | |
| 9486 | esac |
| 9487 | shift |
| 9488 | done |
| 9489 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9490 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9491 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9492 | if $ac_cs_silent; then |
| 9493 | exec 6>/dev/null |
| 9494 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 9495 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9496 | |
| 9497 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9498 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9499 | if \$ac_cs_recheck; then |
| 9500 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 9501 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 9502 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9503 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9504 | _ACEOF |
| 9505 | |
| 9506 | |
| 9507 | |
| 9508 | |
| 9509 | |
| 9510 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9511 | for ac_config_target in $ac_config_targets |
| 9512 | do |
| 9513 | case "$ac_config_target" in |
| 9514 | # Handling of arguments. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9515 | "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 9516 | "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
| 9517 | "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 9518 | "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 9519 | "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 9520 | "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9521 | "pjlib/include/pj/compat/os_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9522 | "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame^] | 9523 | "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 9524 | "pjmedia/include/pjmedia-codec/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9525 | "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
| 9526 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9527 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 9528 | { (exit 1); exit 1; }; };; |
| 9529 | esac |
| 9530 | done |
| 9531 | |
| 9532 | # If the user did not use the arguments to specify the items to instantiate, |
| 9533 | # then the envvar interface is used. Set only those that are not. |
| 9534 | # We use the long form for the default assignment because of an extremely |
| 9535 | # bizarre bug on SunOS 4.1.3. |
| 9536 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9537 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9538 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 9539 | fi |
| 9540 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9541 | # Have a temporary directory for convenience. Make it in the build tree |
| 9542 | # simply because there is no reason to put it here, and in addition, |
| 9543 | # creating and moving files from /tmp can sometimes cause problems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9544 | # Create a temporary directory, and hook for its removal unless debugging. |
| 9545 | $debug || |
| 9546 | { |
| 9547 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 9548 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 9549 | } |
| 9550 | |
| 9551 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9552 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9553 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9554 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9555 | test -n "$tmp" && test -d "$tmp" |
| 9556 | } || |
| 9557 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9558 | tmp=./confstat$$-$RANDOM |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9559 | (umask 077 && mkdir $tmp) |
| 9560 | } || |
| 9561 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9562 | echo "$me: cannot create a temporary directory in ." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9563 | { (exit 1); exit 1; } |
| 9564 | } |
| 9565 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9566 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9567 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9568 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9569 | |
| 9570 | # |
| 9571 | # CONFIG_FILES section. |
| 9572 | # |
| 9573 | |
| 9574 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 9575 | # This happens for instance when ./config.status config.h |
| 9576 | if test -n "\$CONFIG_FILES"; then |
| 9577 | # Protect against being on the right side of a sed subst in config.status. |
| 9578 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 9579 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 9580 | s,@SHELL@,$SHELL,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9581 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 9582 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 9583 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 9584 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 9585 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 9586 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9587 | s,@exec_prefix@,$exec_prefix,;t t |
| 9588 | s,@prefix@,$prefix,;t t |
| 9589 | s,@program_transform_name@,$program_transform_name,;t t |
| 9590 | s,@bindir@,$bindir,;t t |
| 9591 | s,@sbindir@,$sbindir,;t t |
| 9592 | s,@libexecdir@,$libexecdir,;t t |
| 9593 | s,@datadir@,$datadir,;t t |
| 9594 | s,@sysconfdir@,$sysconfdir,;t t |
| 9595 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 9596 | s,@localstatedir@,$localstatedir,;t t |
| 9597 | s,@libdir@,$libdir,;t t |
| 9598 | s,@includedir@,$includedir,;t t |
| 9599 | s,@oldincludedir@,$oldincludedir,;t t |
| 9600 | s,@infodir@,$infodir,;t t |
| 9601 | s,@mandir@,$mandir,;t t |
| 9602 | s,@build_alias@,$build_alias,;t t |
| 9603 | s,@host_alias@,$host_alias,;t t |
| 9604 | s,@target_alias@,$target_alias,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9605 | s,@DEFS@,$DEFS,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9606 | s,@ECHO_C@,$ECHO_C,;t t |
| 9607 | s,@ECHO_N@,$ECHO_N,;t t |
| 9608 | s,@ECHO_T@,$ECHO_T,;t t |
| 9609 | s,@LIBS@,$LIBS,;t t |
| 9610 | s,@build@,$build,;t t |
| 9611 | s,@build_cpu@,$build_cpu,;t t |
| 9612 | s,@build_vendor@,$build_vendor,;t t |
| 9613 | s,@build_os@,$build_os,;t t |
| 9614 | s,@host@,$host,;t t |
| 9615 | s,@host_cpu@,$host_cpu,;t t |
| 9616 | s,@host_vendor@,$host_vendor,;t t |
| 9617 | s,@host_os@,$host_os,;t t |
| 9618 | s,@target@,$target,;t t |
| 9619 | s,@target_cpu@,$target_cpu,;t t |
| 9620 | s,@target_vendor@,$target_vendor,;t t |
| 9621 | s,@target_os@,$target_os,;t t |
| 9622 | s,@CC@,$CC,;t t |
| 9623 | s,@CFLAGS@,$CFLAGS,;t t |
| 9624 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 9625 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 9626 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 9627 | s,@EXEEXT@,$EXEEXT,;t t |
| 9628 | s,@OBJEXT@,$OBJEXT,;t t |
| 9629 | s,@CXX@,$CXX,;t t |
| 9630 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 9631 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9632 | s,@CPP@,$CPP,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9633 | s,@EGREP@,$EGREP,;t t |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9634 | s,@ac_os_objs@,$ac_os_objs,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9635 | s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 9636 | s,@ac_pa_cflags@,$ac_pa_cflags,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9637 | s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t |
| 9638 | s,@ac_no_small_filter@,$ac_no_small_filter,;t t |
| 9639 | s,@ac_no_large_filter@,$ac_no_large_filter,;t t |
| 9640 | s,@ac_no_g711_plc@,$ac_no_g711_plc,;t t |
| 9641 | s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t |
| 9642 | s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t |
| 9643 | s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t |
| 9644 | s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t |
| 9645 | s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t |
| 9646 | s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9647 | s,@ac_no_ssl@,$ac_no_ssl,;t t |
| 9648 | s,@openssl_h_present@,$openssl_h_present,;t t |
| 9649 | s,@libssl_present@,$libssl_present,;t t |
| 9650 | s,@libcrypto_present@,$libcrypto_present,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9651 | s,@ac_cross_compile@,$ac_cross_compile,;t t |
| 9652 | s,@ac_linux_poll@,$ac_linux_poll,;t t |
| 9653 | s,@ac_host@,$ac_host,;t t |
| 9654 | s,@ac_main_obj@,$ac_main_obj,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9655 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 9656 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9657 | CEOF |
| 9658 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9659 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9660 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9661 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9662 | # Split the substitutions into bite-sized pieces for seds with |
| 9663 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 9664 | ac_max_sed_lines=48 |
| 9665 | ac_sed_frag=1 # Number of current file. |
| 9666 | ac_beg=1 # First line for current file. |
| 9667 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 9668 | ac_more_lines=: |
| 9669 | ac_sed_cmds= |
| 9670 | while $ac_more_lines; do |
| 9671 | if test $ac_beg -gt 1; then |
| 9672 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 9673 | else |
| 9674 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 9675 | fi |
| 9676 | if test ! -s $tmp/subs.frag; then |
| 9677 | ac_more_lines=false |
| 9678 | else |
| 9679 | # The purpose of the label and of the branching condition is to |
| 9680 | # speed up the sed processing (if there are no `@' at all, there |
| 9681 | # is no need to browse any of the substitutions). |
| 9682 | # These are the two extra sed commands mentioned above. |
| 9683 | (echo ':t |
| 9684 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 9685 | if test -z "$ac_sed_cmds"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9686 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9687 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9688 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9689 | fi |
| 9690 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 9691 | ac_beg=$ac_end |
| 9692 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 9693 | fi |
| 9694 | done |
| 9695 | if test -z "$ac_sed_cmds"; then |
| 9696 | ac_sed_cmds=cat |
| 9697 | fi |
| 9698 | fi # test -n "$CONFIG_FILES" |
| 9699 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9700 | _ACEOF |
| 9701 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9702 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 9703 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 9704 | case $ac_file in |
| 9705 | - | *:- | *:-:* ) # input from stdin |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9706 | cat >$tmp/stdin |
| 9707 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9708 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9709 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9710 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9711 | * ) ac_file_in=$ac_file.in ;; |
| 9712 | esac |
| 9713 | |
| 9714 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9715 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 9716 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9717 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 9718 | X"$ac_file" : 'X\(//\)$' \| \ |
| 9719 | X"$ac_file" : 'X\(/\)' \| \ |
| 9720 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9721 | echo X"$ac_file" | |
| 9722 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9723 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9724 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9725 | /^X\(\/\).*/{ s//\1/; q; } |
| 9726 | s/.*/./; q'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9727 | { if $as_mkdir_p; then |
| 9728 | mkdir -p "$ac_dir" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9729 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9730 | as_dir="$ac_dir" |
| 9731 | as_dirs= |
| 9732 | while test ! -d "$as_dir"; do |
| 9733 | as_dirs="$as_dir $as_dirs" |
| 9734 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 9735 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9736 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 9737 | X"$as_dir" : 'X\(//\)$' \| \ |
| 9738 | X"$as_dir" : 'X\(/\)' \| \ |
| 9739 | . : '\(.\)' 2>/dev/null || |
| 9740 | echo X"$as_dir" | |
| 9741 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9742 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9743 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9744 | /^X\(\/\).*/{ s//\1/; q; } |
| 9745 | s/.*/./; q'` |
| 9746 | done |
| 9747 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 9748 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 9749 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 9750 | { (exit 1); exit 1; }; }; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9751 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9752 | ac_builddir=. |
| 9753 | |
| 9754 | if test "$ac_dir" != .; then |
| 9755 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 9756 | # A "../" for each directory in $ac_dir_suffix. |
| 9757 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 9758 | else |
| 9759 | ac_dir_suffix= ac_top_builddir= |
| 9760 | fi |
| 9761 | |
| 9762 | case $srcdir in |
| 9763 | .) # No --srcdir option. We are building in place. |
| 9764 | ac_srcdir=. |
| 9765 | if test -z "$ac_top_builddir"; then |
| 9766 | ac_top_srcdir=. |
| 9767 | else |
| 9768 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 9769 | fi ;; |
| 9770 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 9771 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 9772 | ac_top_srcdir=$srcdir ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9773 | *) # Relative path. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9774 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 9775 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 9776 | esac |
| 9777 | |
| 9778 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 9779 | # the directories may not exist. |
| 9780 | case `pwd` in |
| 9781 | .) ac_abs_builddir="$ac_dir";; |
| 9782 | *) |
| 9783 | case "$ac_dir" in |
| 9784 | .) ac_abs_builddir=`pwd`;; |
| 9785 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 9786 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 9787 | esac;; |
| 9788 | esac |
| 9789 | case $ac_abs_builddir in |
| 9790 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 9791 | *) |
| 9792 | case ${ac_top_builddir}. in |
| 9793 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 9794 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 9795 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 9796 | esac;; |
| 9797 | esac |
| 9798 | case $ac_abs_builddir in |
| 9799 | .) ac_abs_srcdir=$ac_srcdir;; |
| 9800 | *) |
| 9801 | case $ac_srcdir in |
| 9802 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 9803 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 9804 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 9805 | esac;; |
| 9806 | esac |
| 9807 | case $ac_abs_builddir in |
| 9808 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 9809 | *) |
| 9810 | case $ac_top_srcdir in |
| 9811 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 9812 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 9813 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 9814 | esac;; |
| 9815 | esac |
| 9816 | |
| 9817 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9818 | |
| 9819 | if test x"$ac_file" != x-; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9820 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9821 | echo "$as_me: creating $ac_file" >&6;} |
| 9822 | rm -f "$ac_file" |
| 9823 | fi |
| 9824 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 9825 | # use $as_me), people would be surprised to read: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9826 | # /* config.h. Generated by config.status. */ |
| 9827 | if test x"$ac_file" = x-; then |
| 9828 | configure_input= |
| 9829 | else |
| 9830 | configure_input="$ac_file. " |
| 9831 | fi |
| 9832 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 9833 | sed 's,.*/,,'` by configure." |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9834 | |
| 9835 | # First look for the input files in the build tree, otherwise in the |
| 9836 | # src tree. |
| 9837 | ac_file_inputs=`IFS=: |
| 9838 | for f in $ac_file_in; do |
| 9839 | case $f in |
| 9840 | -) echo $tmp/stdin ;; |
| 9841 | [\\/$]*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9842 | # Absolute (can't be DOS-style, as IFS=:) |
| 9843 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9844 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9845 | { (exit 1); exit 1; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9846 | echo "$f";; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9847 | *) # Relative |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9848 | if test -f "$f"; then |
| 9849 | # Build tree |
| 9850 | echo "$f" |
| 9851 | elif test -f "$srcdir/$f"; then |
| 9852 | # Source tree |
| 9853 | echo "$srcdir/$f" |
| 9854 | else |
| 9855 | # /dev/null tree |
| 9856 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9857 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9858 | { (exit 1); exit 1; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9859 | fi;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9860 | esac |
| 9861 | done` || { (exit 1); exit 1; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9862 | _ACEOF |
| 9863 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9864 | sed "$ac_vpsub |
| 9865 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9866 | _ACEOF |
| 9867 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9868 | :t |
| 9869 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 9870 | s,@configure_input@,$configure_input,;t t |
| 9871 | s,@srcdir@,$ac_srcdir,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9872 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9873 | s,@top_srcdir@,$ac_top_srcdir,;t t |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9874 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 9875 | s,@builddir@,$ac_builddir,;t t |
| 9876 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 9877 | s,@top_builddir@,$ac_top_builddir,;t t |
| 9878 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9879 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 9880 | rm -f $tmp/stdin |
| 9881 | if test x"$ac_file" != x-; then |
| 9882 | mv $tmp/out $ac_file |
| 9883 | else |
| 9884 | cat $tmp/out |
| 9885 | rm -f $tmp/out |
| 9886 | fi |
| 9887 | |
| 9888 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9889 | _ACEOF |
| 9890 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9891 | |
| 9892 | # |
| 9893 | # CONFIG_HEADER section. |
| 9894 | # |
| 9895 | |
| 9896 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 9897 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 9898 | # |
| 9899 | # ac_d sets the value in "#define NAME VALUE" lines. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9900 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 9901 | ac_dB='[ ].*$,\1#\2' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9902 | ac_dC=' ' |
| 9903 | ac_dD=',;t' |
| 9904 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9905 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9906 | ac_uB='$,\1#\2define\3' |
| 9907 | ac_uC=' ' |
| 9908 | ac_uD=',;t' |
| 9909 | |
| 9910 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 9911 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 9912 | case $ac_file in |
| 9913 | - | *:- | *:-:* ) # input from stdin |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9914 | cat >$tmp/stdin |
| 9915 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9916 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9917 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9918 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9919 | * ) ac_file_in=$ac_file.in ;; |
| 9920 | esac |
| 9921 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9922 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9923 | echo "$as_me: creating $ac_file" >&6;} |
| 9924 | |
| 9925 | # First look for the input files in the build tree, otherwise in the |
| 9926 | # src tree. |
| 9927 | ac_file_inputs=`IFS=: |
| 9928 | for f in $ac_file_in; do |
| 9929 | case $f in |
| 9930 | -) echo $tmp/stdin ;; |
| 9931 | [\\/$]*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9932 | # Absolute (can't be DOS-style, as IFS=:) |
| 9933 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9934 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9935 | { (exit 1); exit 1; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9936 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 9937 | echo "$f";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9938 | *) # Relative |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9939 | if test -f "$f"; then |
| 9940 | # Build tree |
| 9941 | echo "$f" |
| 9942 | elif test -f "$srcdir/$f"; then |
| 9943 | # Source tree |
| 9944 | echo "$srcdir/$f" |
| 9945 | else |
| 9946 | # /dev/null tree |
| 9947 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9948 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9949 | { (exit 1); exit 1; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9950 | fi;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9951 | esac |
| 9952 | done` || { (exit 1); exit 1; } |
| 9953 | # Remove the trailing spaces. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9954 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9955 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9956 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9957 | |
| 9958 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 9959 | # `conftest.undefs', that substitutes the proper values into |
| 9960 | # config.h.in to produce config.h. The first handles `#define' |
| 9961 | # templates, and the second `#undef' templates. |
| 9962 | # And first: Protect against being on the right side of a sed subst in |
| 9963 | # config.status. Protect against being in an unquoted here document |
| 9964 | # in config.status. |
| 9965 | rm -f conftest.defines conftest.undefs |
| 9966 | # Using a here document instead of a string reduces the quoting nightmare. |
| 9967 | # Putting comments in sed scripts is not portable. |
| 9968 | # |
| 9969 | # `end' is used to avoid that the second main sed command (meant for |
| 9970 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 9971 | # See the Autoconf documentation for `clear'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9972 | cat >confdef2sed.sed <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9973 | s/[\\&,]/\\&/g |
| 9974 | s,[\\$`],\\&,g |
| 9975 | t clear |
| 9976 | : clear |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9977 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9978 | t end |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9979 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9980 | : end |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9981 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9982 | # If some macros were called several times there might be several times |
| 9983 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 9984 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 9985 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 9986 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 9987 | rm -f confdef2sed.sed |
| 9988 | |
| 9989 | # This sed command replaces #undef with comments. This is necessary, for |
| 9990 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 9991 | # on some systems where configure will not decide to define it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9992 | cat >>conftest.undefs <<\_ACEOF |
| 9993 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 9994 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9995 | |
| 9996 | # Break up conftest.defines because some shells have a limit on the size |
| 9997 | # of here documents, and old seds have small limits too (100 cmds). |
| 9998 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9999 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10000 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 10001 | echo ' :' >>$CONFIG_STATUS |
| 10002 | rm -f conftest.tail |
| 10003 | while grep . conftest.defines >/dev/null |
| 10004 | do |
| 10005 | # Write a limited-size here document to $tmp/defines.sed. |
| 10006 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 10007 | # Speed up: don't consider the non `#define' lines. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10008 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10009 | # Work around the forget-to-reset-the-flag bug. |
| 10010 | echo 't clr' >>$CONFIG_STATUS |
| 10011 | echo ': clr' >>$CONFIG_STATUS |
| 10012 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 10013 | echo 'CEOF |
| 10014 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 10015 | rm -f $tmp/in |
| 10016 | mv $tmp/out $tmp/in |
| 10017 | ' >>$CONFIG_STATUS |
| 10018 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 10019 | rm -f conftest.defines |
| 10020 | mv conftest.tail conftest.defines |
| 10021 | done |
| 10022 | rm -f conftest.defines |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10023 | echo ' fi # grep' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10024 | echo >>$CONFIG_STATUS |
| 10025 | |
| 10026 | # Break up conftest.undefs because some shells have a limit on the size |
| 10027 | # of here documents, and old seds have small limits too (100 cmds). |
| 10028 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 10029 | rm -f conftest.tail |
| 10030 | while grep . conftest.undefs >/dev/null |
| 10031 | do |
| 10032 | # Write a limited-size here document to $tmp/undefs.sed. |
| 10033 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 10034 | # Speed up: don't consider the non `#undef' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10035 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10036 | # Work around the forget-to-reset-the-flag bug. |
| 10037 | echo 't clr' >>$CONFIG_STATUS |
| 10038 | echo ': clr' >>$CONFIG_STATUS |
| 10039 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 10040 | echo 'CEOF |
| 10041 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 10042 | rm -f $tmp/in |
| 10043 | mv $tmp/out $tmp/in |
| 10044 | ' >>$CONFIG_STATUS |
| 10045 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 10046 | rm -f conftest.undefs |
| 10047 | mv conftest.tail conftest.undefs |
| 10048 | done |
| 10049 | rm -f conftest.undefs |
| 10050 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10051 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10052 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10053 | # use $as_me), people would be surprised to read: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10054 | # /* config.h. Generated by config.status. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10055 | if test x"$ac_file" = x-; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10056 | echo "/* Generated by configure. */" >$tmp/config.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10057 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10058 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10059 | fi |
| 10060 | cat $tmp/in >>$tmp/config.h |
| 10061 | rm -f $tmp/in |
| 10062 | if test x"$ac_file" != x-; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10063 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 10064 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10065 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 10066 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10067 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 10068 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10069 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 10070 | X"$ac_file" : 'X\(//\)$' \| \ |
| 10071 | X"$ac_file" : 'X\(/\)' \| \ |
| 10072 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10073 | echo X"$ac_file" | |
| 10074 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10075 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10076 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10077 | /^X\(\/\).*/{ s//\1/; q; } |
| 10078 | s/.*/./; q'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10079 | { if $as_mkdir_p; then |
| 10080 | mkdir -p "$ac_dir" |
| 10081 | else |
| 10082 | as_dir="$ac_dir" |
| 10083 | as_dirs= |
| 10084 | while test ! -d "$as_dir"; do |
| 10085 | as_dirs="$as_dir $as_dirs" |
| 10086 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10087 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10088 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10089 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10090 | X"$as_dir" : 'X\(/\)' \| \ |
| 10091 | . : '\(.\)' 2>/dev/null || |
| 10092 | echo X"$as_dir" | |
| 10093 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10094 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10095 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10096 | /^X\(\/\).*/{ s//\1/; q; } |
| 10097 | s/.*/./; q'` |
| 10098 | done |
| 10099 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10100 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 10101 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 10102 | { (exit 1); exit 1; }; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10103 | |
| 10104 | rm -f $ac_file |
| 10105 | mv $tmp/config.h $ac_file |
| 10106 | fi |
| 10107 | else |
| 10108 | cat $tmp/config.h |
| 10109 | rm -f $tmp/config.h |
| 10110 | fi |
| 10111 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10112 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10113 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10114 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10115 | |
| 10116 | { (exit 0); exit 0; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10117 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10118 | chmod +x $CONFIG_STATUS |
| 10119 | ac_clean_files=$ac_clean_files_save |
| 10120 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10121 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10122 | # configure is writing to config.log, and then calls config.status. |
| 10123 | # config.status does its own redirection, appending to config.log. |
| 10124 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 10125 | # by configure, so config.status won't be able to write to it; its |
| 10126 | # output is simply discarded. So we exec the FD to /dev/null, |
| 10127 | # effectively closing config.log, so it can be properly (re)opened and |
| 10128 | # appended to by config.status. When coming back to configure, we |
| 10129 | # need to make the FD available again. |
| 10130 | if test "$no_create" != yes; then |
| 10131 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10132 | ac_config_status_args= |
| 10133 | test "$silent" = yes && |
| 10134 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10135 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10136 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10137 | exec 5>>config.log |
| 10138 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 10139 | # would make configure fail if this is the last instruction. |
| 10140 | $ac_cs_success || { (exit 1); exit 1; } |
| 10141 | fi |
| 10142 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10143 | |