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 | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3 | # Generated by Autoconf 2.52 for pjproject 0.5.8. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4 | # |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 6 | # Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10 | # Avoid depending upon Character Ranges. |
| 11 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 12 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14 | as_cr_digits='0123456789' |
| 15 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 17 | # Sed expression to map a string onto a valid variable name. |
| 18 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 19 | |
| 20 | # Sed expression to map a string onto a valid CPP name. |
| 21 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 22 | |
| 23 | # Be Bourne compatible |
| 24 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 25 | emulate sh |
| 26 | NULLCMD=: |
| 27 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 28 | set -o posix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 29 | fi |
| 30 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 31 | # Name of the executable. |
| 32 | as_me=`echo "$0" |sed 's,.*[\\/],,'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 33 | |
| 34 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 35 | as_expr=expr |
| 36 | else |
| 37 | as_expr=false |
| 38 | fi |
| 39 | |
| 40 | rm -f conf$$ conf$$.exe conf$$.file |
| 41 | echo >conf$$.file |
| 42 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 43 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 44 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 45 | if test -f conf$$.exe; then |
| 46 | # Don't use ln at all; we don't have any links |
| 47 | as_ln_s='cp -p' |
| 48 | else |
| 49 | as_ln_s='ln -s' |
| 50 | fi |
| 51 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 52 | as_ln_s=ln |
| 53 | else |
| 54 | as_ln_s='cp -p' |
| 55 | fi |
| 56 | rm -f conf$$ conf$$.exe conf$$.file |
| 57 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 58 | as_executable_p="test -f" |
| 59 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 60 | # Support unset when possible. |
| 61 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 62 | as_unset=unset |
| 63 | else |
| 64 | as_unset=false |
| 65 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 66 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 67 | # NLS nuisances. |
| 68 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
| 69 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
| 70 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
| 71 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
| 72 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
| 73 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
| 74 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
| 75 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 76 | |
| 77 | # IFS |
| 78 | # We need space, tab and new line, in precisely that order. |
| 79 | as_nl=' |
| 80 | ' |
| 81 | IFS=" $as_nl" |
| 82 | |
| 83 | # CDPATH. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 84 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 85 | |
| 86 | # Name of the host. |
| 87 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 88 | # so uname gets run too. |
| 89 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 90 | |
| 91 | exec 6>&1 |
| 92 | |
| 93 | # |
| 94 | # Initializations. |
| 95 | # |
| 96 | ac_default_prefix=/usr/local |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 97 | cross_compiling=no |
| 98 | subdirs= |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 99 | MFLAGS= MAKEFLAGS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 100 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 101 | |
| 102 | # Maximum number of lines to put in a shell here document. |
| 103 | # This variable seems obsolete. It should probably be removed, and |
| 104 | # only ac_max_sed_lines should be used. |
| 105 | : ${ac_max_here_lines=38} |
| 106 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 107 | # Initialize some variables set by options. |
| 108 | ac_init_help= |
| 109 | ac_init_version=false |
| 110 | # The variables have the same names as the options, with |
| 111 | # dashes changed to underlines. |
| 112 | cache_file=/dev/null |
| 113 | exec_prefix=NONE |
| 114 | no_create= |
| 115 | no_recursion= |
| 116 | prefix=NONE |
| 117 | program_prefix=NONE |
| 118 | program_suffix=NONE |
| 119 | program_transform_name=s,x,x, |
| 120 | silent= |
| 121 | site= |
| 122 | srcdir= |
| 123 | verbose= |
| 124 | x_includes=NONE |
| 125 | x_libraries=NONE |
| 126 | |
| 127 | # Installation directory options. |
| 128 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 129 | # and all the variables that are supposed to be based on exec_prefix |
| 130 | # by default will actually change. |
| 131 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 132 | bindir='${exec_prefix}/bin' |
| 133 | sbindir='${exec_prefix}/sbin' |
| 134 | libexecdir='${exec_prefix}/libexec' |
| 135 | datadir='${prefix}/share' |
| 136 | sysconfdir='${prefix}/etc' |
| 137 | sharedstatedir='${prefix}/com' |
| 138 | localstatedir='${prefix}/var' |
| 139 | libdir='${exec_prefix}/lib' |
| 140 | includedir='${prefix}/include' |
| 141 | oldincludedir='/usr/include' |
| 142 | infodir='${prefix}/info' |
| 143 | mandir='${prefix}/man' |
| 144 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 145 | # Identity of this package. |
| 146 | PACKAGE_NAME='pjproject' |
| 147 | PACKAGE_TARNAME='pjproject' |
| 148 | PACKAGE_VERSION='0.5.8' |
| 149 | PACKAGE_STRING='pjproject 0.5.8' |
| 150 | PACKAGE_BUGREPORT='' |
| 151 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 152 | ac_prev= |
| 153 | for ac_option |
| 154 | do |
| 155 | # If the previous option needs an argument, assign it. |
| 156 | if test -n "$ac_prev"; then |
| 157 | eval "$ac_prev=\$ac_option" |
| 158 | ac_prev= |
| 159 | continue |
| 160 | fi |
| 161 | |
| 162 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 163 | |
| 164 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 165 | |
| 166 | case $ac_option in |
| 167 | |
| 168 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 169 | ac_prev=bindir ;; |
| 170 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 171 | bindir=$ac_optarg ;; |
| 172 | |
| 173 | -build | --build | --buil | --bui | --bu) |
| 174 | ac_prev=build_alias ;; |
| 175 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 176 | build_alias=$ac_optarg ;; |
| 177 | |
| 178 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 179 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 180 | ac_prev=cache_file ;; |
| 181 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 182 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 183 | cache_file=$ac_optarg ;; |
| 184 | |
| 185 | --config-cache | -C) |
| 186 | cache_file=config.cache ;; |
| 187 | |
| 188 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 189 | ac_prev=datadir ;; |
| 190 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 191 | | --da=*) |
| 192 | datadir=$ac_optarg ;; |
| 193 | |
| 194 | -disable-* | --disable-*) |
| 195 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 196 | # Reject names that are not valid shell variable names. |
| 197 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 198 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 199 | { (exit 1); exit 1; }; } |
| 200 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 201 | eval "enable_$ac_feature=no" ;; |
| 202 | |
| 203 | -enable-* | --enable-*) |
| 204 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 205 | # Reject names that are not valid shell variable names. |
| 206 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 207 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 208 | { (exit 1); exit 1; }; } |
| 209 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 210 | case $ac_option in |
| 211 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 212 | *) ac_optarg=yes ;; |
| 213 | esac |
| 214 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 215 | |
| 216 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 217 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 218 | | --exec | --exe | --ex) |
| 219 | ac_prev=exec_prefix ;; |
| 220 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 221 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 222 | | --exec=* | --exe=* | --ex=*) |
| 223 | exec_prefix=$ac_optarg ;; |
| 224 | |
| 225 | -gas | --gas | --ga | --g) |
| 226 | # Obsolete; use --with-gas. |
| 227 | with_gas=yes ;; |
| 228 | |
| 229 | -help | --help | --hel | --he | -h) |
| 230 | ac_init_help=long ;; |
| 231 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 232 | ac_init_help=recursive ;; |
| 233 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 234 | ac_init_help=short ;; |
| 235 | |
| 236 | -host | --host | --hos | --ho) |
| 237 | ac_prev=host_alias ;; |
| 238 | -host=* | --host=* | --hos=* | --ho=*) |
| 239 | host_alias=$ac_optarg ;; |
| 240 | |
| 241 | -includedir | --includedir | --includedi | --included | --include \ |
| 242 | | --includ | --inclu | --incl | --inc) |
| 243 | ac_prev=includedir ;; |
| 244 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 245 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 246 | includedir=$ac_optarg ;; |
| 247 | |
| 248 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 249 | ac_prev=infodir ;; |
| 250 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 251 | infodir=$ac_optarg ;; |
| 252 | |
| 253 | -libdir | --libdir | --libdi | --libd) |
| 254 | ac_prev=libdir ;; |
| 255 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 256 | libdir=$ac_optarg ;; |
| 257 | |
| 258 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 259 | | --libexe | --libex | --libe) |
| 260 | ac_prev=libexecdir ;; |
| 261 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 262 | | --libexe=* | --libex=* | --libe=*) |
| 263 | libexecdir=$ac_optarg ;; |
| 264 | |
| 265 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 266 | | --localstate | --localstat | --localsta | --localst \ |
| 267 | | --locals | --local | --loca | --loc | --lo) |
| 268 | ac_prev=localstatedir ;; |
| 269 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 270 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 271 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 272 | localstatedir=$ac_optarg ;; |
| 273 | |
| 274 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 275 | ac_prev=mandir ;; |
| 276 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 277 | mandir=$ac_optarg ;; |
| 278 | |
| 279 | -nfp | --nfp | --nf) |
| 280 | # Obsolete; use --without-fp. |
| 281 | with_fp=no ;; |
| 282 | |
| 283 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 284 | | --no-cr | --no-c) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 285 | no_create=yes ;; |
| 286 | |
| 287 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 288 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 289 | no_recursion=yes ;; |
| 290 | |
| 291 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 292 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 293 | | --oldin | --oldi | --old | --ol | --o) |
| 294 | ac_prev=oldincludedir ;; |
| 295 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 296 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 297 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 298 | oldincludedir=$ac_optarg ;; |
| 299 | |
| 300 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 301 | ac_prev=prefix ;; |
| 302 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 303 | prefix=$ac_optarg ;; |
| 304 | |
| 305 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 306 | | --program-pre | --program-pr | --program-p) |
| 307 | ac_prev=program_prefix ;; |
| 308 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 309 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 310 | program_prefix=$ac_optarg ;; |
| 311 | |
| 312 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 313 | | --program-suf | --program-su | --program-s) |
| 314 | ac_prev=program_suffix ;; |
| 315 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 316 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 317 | program_suffix=$ac_optarg ;; |
| 318 | |
| 319 | -program-transform-name | --program-transform-name \ |
| 320 | | --program-transform-nam | --program-transform-na \ |
| 321 | | --program-transform-n | --program-transform- \ |
| 322 | | --program-transform | --program-transfor \ |
| 323 | | --program-transfo | --program-transf \ |
| 324 | | --program-trans | --program-tran \ |
| 325 | | --progr-tra | --program-tr | --program-t) |
| 326 | ac_prev=program_transform_name ;; |
| 327 | -program-transform-name=* | --program-transform-name=* \ |
| 328 | | --program-transform-nam=* | --program-transform-na=* \ |
| 329 | | --program-transform-n=* | --program-transform-=* \ |
| 330 | | --program-transform=* | --program-transfor=* \ |
| 331 | | --program-transfo=* | --program-transf=* \ |
| 332 | | --program-trans=* | --program-tran=* \ |
| 333 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 334 | program_transform_name=$ac_optarg ;; |
| 335 | |
| 336 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 337 | | -silent | --silent | --silen | --sile | --sil) |
| 338 | silent=yes ;; |
| 339 | |
| 340 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 341 | ac_prev=sbindir ;; |
| 342 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 343 | | --sbi=* | --sb=*) |
| 344 | sbindir=$ac_optarg ;; |
| 345 | |
| 346 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 347 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 348 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 349 | | --sha | --sh) |
| 350 | ac_prev=sharedstatedir ;; |
| 351 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 352 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 353 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 354 | | --sha=* | --sh=*) |
| 355 | sharedstatedir=$ac_optarg ;; |
| 356 | |
| 357 | -site | --site | --sit) |
| 358 | ac_prev=site ;; |
| 359 | -site=* | --site=* | --sit=*) |
| 360 | site=$ac_optarg ;; |
| 361 | |
| 362 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 363 | ac_prev=srcdir ;; |
| 364 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 365 | srcdir=$ac_optarg ;; |
| 366 | |
| 367 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 368 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 369 | ac_prev=sysconfdir ;; |
| 370 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 371 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 372 | sysconfdir=$ac_optarg ;; |
| 373 | |
| 374 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 375 | ac_prev=target_alias ;; |
| 376 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 377 | target_alias=$ac_optarg ;; |
| 378 | |
| 379 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 380 | verbose=yes ;; |
| 381 | |
| 382 | -version | --version | --versio | --versi | --vers | -V) |
| 383 | ac_init_version=: ;; |
| 384 | |
| 385 | -with-* | --with-*) |
| 386 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 387 | # Reject names that are not valid shell variable names. |
| 388 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 389 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 390 | { (exit 1); exit 1; }; } |
| 391 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 392 | case $ac_option in |
| 393 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 394 | *) ac_optarg=yes ;; |
| 395 | esac |
| 396 | eval "with_$ac_package='$ac_optarg'" ;; |
| 397 | |
| 398 | -without-* | --without-*) |
| 399 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 400 | # Reject names that are not valid shell variable names. |
| 401 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 402 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 403 | { (exit 1); exit 1; }; } |
| 404 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 405 | eval "with_$ac_package=no" ;; |
| 406 | |
| 407 | --x) |
| 408 | # Obsolete; use --with-x. |
| 409 | with_x=yes ;; |
| 410 | |
| 411 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 412 | | --x-incl | --x-inc | --x-in | --x-i) |
| 413 | ac_prev=x_includes ;; |
| 414 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 415 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 416 | x_includes=$ac_optarg ;; |
| 417 | |
| 418 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 419 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 420 | ac_prev=x_libraries ;; |
| 421 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 422 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 423 | x_libraries=$ac_optarg ;; |
| 424 | |
| 425 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 426 | Try \`$0 --help' for more information." >&2 |
| 427 | { (exit 1); exit 1; }; } |
| 428 | ;; |
| 429 | |
| 430 | *=*) |
| 431 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 432 | # Reject names that are not valid shell variable names. |
| 433 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 434 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 435 | { (exit 1); exit 1; }; } |
| 436 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 437 | eval "$ac_envvar='$ac_optarg'" |
| 438 | export $ac_envvar ;; |
| 439 | |
| 440 | *) |
| 441 | # FIXME: should be removed in autoconf 3.0. |
| 442 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 443 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 444 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 445 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 446 | ;; |
| 447 | |
| 448 | esac |
| 449 | done |
| 450 | |
| 451 | if test -n "$ac_prev"; then |
| 452 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 453 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 454 | { (exit 1); exit 1; }; } |
| 455 | fi |
| 456 | |
| 457 | # Be sure to have absolute paths. |
| 458 | for ac_var in exec_prefix prefix |
| 459 | do |
| 460 | eval ac_val=$`echo $ac_var` |
| 461 | case $ac_val in |
| 462 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 463 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 464 | { (exit 1); exit 1; }; };; |
| 465 | esac |
| 466 | done |
| 467 | |
| 468 | # Be sure to have absolute paths. |
| 469 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 470 | localstatedir libdir includedir oldincludedir infodir mandir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 471 | do |
| 472 | eval ac_val=$`echo $ac_var` |
| 473 | case $ac_val in |
| 474 | [\\/$]* | ?:[\\/]* ) ;; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 475 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 476 | { (exit 1); exit 1; }; };; |
| 477 | esac |
| 478 | done |
| 479 | |
| 480 | # There might be people who depend on the old broken behavior: `$host' |
| 481 | # used to hold the argument of --host etc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 482 | build=$build_alias |
| 483 | host=$host_alias |
| 484 | target=$target_alias |
| 485 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 486 | # FIXME: should be removed in autoconf 3.0. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 487 | if test "x$host_alias" != x; then |
| 488 | if test "x$build_alias" = x; then |
| 489 | cross_compiling=maybe |
| 490 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 491 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 492 | elif test "x$build_alias" != "x$host_alias"; then |
| 493 | cross_compiling=yes |
| 494 | fi |
| 495 | fi |
| 496 | |
| 497 | ac_tool_prefix= |
| 498 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 499 | |
| 500 | test "$silent" = yes && exec 6>/dev/null |
| 501 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 502 | # Find the source files, if location was not specified. |
| 503 | if test -z "$srcdir"; then |
| 504 | ac_srcdir_defaulted=yes |
| 505 | # Try the directory containing this script, then its parent. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 506 | ac_prog=$0 |
| 507 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
| 508 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 509 | srcdir=$ac_confdir |
| 510 | if test ! -r $srcdir/$ac_unique_file; then |
| 511 | srcdir=.. |
| 512 | fi |
| 513 | else |
| 514 | ac_srcdir_defaulted=no |
| 515 | fi |
| 516 | if test ! -r $srcdir/$ac_unique_file; then |
| 517 | if test "$ac_srcdir_defaulted" = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 518 | { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 519 | { (exit 1); exit 1; }; } |
| 520 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 521 | { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 522 | { (exit 1); exit 1; }; } |
| 523 | fi |
| 524 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 525 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 526 | ac_env_build_alias_set=${build_alias+set} |
| 527 | ac_env_build_alias_value=$build_alias |
| 528 | ac_cv_env_build_alias_set=${build_alias+set} |
| 529 | ac_cv_env_build_alias_value=$build_alias |
| 530 | ac_env_host_alias_set=${host_alias+set} |
| 531 | ac_env_host_alias_value=$host_alias |
| 532 | ac_cv_env_host_alias_set=${host_alias+set} |
| 533 | ac_cv_env_host_alias_value=$host_alias |
| 534 | ac_env_target_alias_set=${target_alias+set} |
| 535 | ac_env_target_alias_value=$target_alias |
| 536 | ac_cv_env_target_alias_set=${target_alias+set} |
| 537 | ac_cv_env_target_alias_value=$target_alias |
| 538 | ac_env_CC_set=${CC+set} |
| 539 | ac_env_CC_value=$CC |
| 540 | ac_cv_env_CC_set=${CC+set} |
| 541 | ac_cv_env_CC_value=$CC |
| 542 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 543 | ac_env_CFLAGS_value=$CFLAGS |
| 544 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 545 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 546 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 547 | ac_env_LDFLAGS_value=$LDFLAGS |
| 548 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 549 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 550 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 551 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 552 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 553 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 554 | ac_env_CXX_set=${CXX+set} |
| 555 | ac_env_CXX_value=$CXX |
| 556 | ac_cv_env_CXX_set=${CXX+set} |
| 557 | ac_cv_env_CXX_value=$CXX |
| 558 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 559 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 560 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 561 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 562 | ac_env_CPP_set=${CPP+set} |
| 563 | ac_env_CPP_value=$CPP |
| 564 | ac_cv_env_CPP_set=${CPP+set} |
| 565 | ac_cv_env_CPP_value=$CPP |
| 566 | |
| 567 | # |
| 568 | # Report the --help message. |
| 569 | # |
| 570 | if test "$ac_init_help" = "long"; then |
| 571 | # Omit some internal or obsolete options to make the list less imposing. |
| 572 | # This message is too long to be a string in the A/UX 3.1 sh. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 573 | cat <<EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 574 | \`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] | 575 | |
| 576 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 577 | |
| 578 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 579 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 580 | |
| 581 | Defaults for the options are specified in brackets. |
| 582 | |
| 583 | Configuration: |
| 584 | -h, --help display this help and exit |
| 585 | --help=short display options specific to this package |
| 586 | --help=recursive display the short help of all the included packages |
| 587 | -V, --version display version information and exit |
| 588 | -q, --quiet, --silent do not print \`checking...' messages |
| 589 | --cache-file=FILE cache test results in FILE [disabled] |
| 590 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 591 | -n, --no-create do not create output files |
| 592 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 593 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 594 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 595 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 596 | cat <<EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 597 | Installation directories: |
| 598 | --prefix=PREFIX install architecture-independent files in PREFIX |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 599 | [$ac_default_prefix] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 600 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 601 | [PREFIX] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 602 | |
| 603 | By default, \`make install' will install all the files in |
| 604 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 605 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 606 | for instance \`--prefix=\$HOME'. |
| 607 | |
| 608 | For better control, use the options below. |
| 609 | |
| 610 | Fine tuning of the installation directories: |
| 611 | --bindir=DIR user executables [EPREFIX/bin] |
| 612 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 613 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 614 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 615 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 616 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 617 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 618 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 619 | --includedir=DIR C header files [PREFIX/include] |
| 620 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 621 | --infodir=DIR info documentation [PREFIX/info] |
| 622 | --mandir=DIR man documentation [PREFIX/man] |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 623 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 624 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 625 | cat <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 626 | |
| 627 | System types: |
| 628 | --build=BUILD configure for building on BUILD [guessed] |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 629 | --host=HOST build programs to run on HOST [BUILD] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 630 | --target=TARGET configure for building compilers for TARGET [HOST] |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 631 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 632 | fi |
| 633 | |
| 634 | if test -n "$ac_init_help"; then |
| 635 | case $ac_init_help in |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 636 | short | recursive ) echo "Configuration of pjproject 0.5.8:";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 637 | esac |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 638 | cat <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 639 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 640 | Optional Features: |
| 641 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 642 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 643 | --disable-floating-point |
| 644 | Disable floating point where possible |
| 645 | --disable-small-filter Exclude small filter in resampling |
| 646 | --disable-large-filter Exclude large filter in resampling |
| 647 | --disable-g711-plc Exclude G.711 Annex A PLC |
| 648 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 649 | --disable-g711-codec Exclude G.711 codecs from the build |
| 650 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 651 | --disable-gsm-codec Exclude GSM codec in the build |
| 652 | --disable-speex-codec Exclude Speex codecs in the build |
| 653 | --disable-ilbc-codec Exclude iLBC codec in the build |
| 654 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 655 | Some influential environment variables: |
| 656 | CC C compiler command |
| 657 | CFLAGS C compiler flags |
| 658 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 659 | nonstandard directory <lib dir> |
| 660 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 661 | headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 662 | CXX C++ compiler command |
| 663 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 664 | CPP C preprocessor |
| 665 | |
| 666 | Use these variables to override the choices made by `configure' or to help |
| 667 | it to find libraries and programs with nonstandard names/locations. |
| 668 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 669 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 670 | fi |
| 671 | |
| 672 | if test "$ac_init_help" = "recursive"; then |
| 673 | # If there are subdirs, report their specific --help. |
| 674 | ac_popdir=`pwd` |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 675 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue |
| 676 | cd $ac_subdir |
| 677 | # A "../" for each directory in /$ac_subdir. |
| 678 | ac_dots=`echo $ac_subdir | |
| 679 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 680 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 681 | case $srcdir in |
| 682 | .) # No --srcdir option. We are building in place. |
| 683 | ac_sub_srcdir=$srcdir ;; |
| 684 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 685 | ac_sub_srcdir=$srcdir/$ac_subdir ;; |
| 686 | *) # Relative path. |
| 687 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; |
| 688 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 689 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 690 | # Check for guested configure; otherwise get Cygnus style configure. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 691 | if test -f $ac_sub_srcdir/configure.gnu; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 692 | echo |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 693 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive |
| 694 | elif test -f $ac_sub_srcdir/configure; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 695 | echo |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 696 | $SHELL $ac_sub_srcdir/configure --help=recursive |
| 697 | elif test -f $ac_sub_srcdir/configure.ac || |
| 698 | test -f $ac_sub_srcdir/configure.in; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 699 | echo |
| 700 | $ac_configure --help |
| 701 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 702 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 703 | fi |
| 704 | cd $ac_popdir |
| 705 | done |
| 706 | fi |
| 707 | |
| 708 | test -n "$ac_init_help" && exit 0 |
| 709 | if $ac_init_version; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 710 | cat <<\EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 711 | pjproject configure 0.5.8 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 712 | generated by GNU Autoconf 2.52 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 713 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 714 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 715 | Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 716 | This configure script is free software; the Free Software Foundation |
| 717 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 718 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 719 | exit 0 |
| 720 | fi |
| 721 | exec 5>config.log |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 722 | cat >&5 <<EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 723 | This file contains any messages produced by compilers while |
| 724 | running configure, to aid debugging if configure makes a mistake. |
| 725 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 726 | It was created by pjproject $as_me 0.5.8, which was |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 727 | generated by GNU Autoconf 2.52. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 728 | |
| 729 | $ $0 $@ |
| 730 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 731 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 732 | { |
| 733 | cat <<_ASUNAME |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 734 | ## ---------- ## |
| 735 | ## Platform. ## |
| 736 | ## ---------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 737 | |
| 738 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 739 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 740 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 741 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 742 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 743 | |
| 744 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 745 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 746 | |
| 747 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 748 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 749 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 750 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 751 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 752 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 753 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 754 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 755 | PATH = $PATH |
| 756 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 757 | _ASUNAME |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 758 | } >&5 |
| 759 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 760 | cat >&5 <<EOF |
| 761 | ## ------------ ## |
| 762 | ## Core tests. ## |
| 763 | ## ------------ ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 764 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 765 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 766 | |
| 767 | # Keep a trace of the command line. |
| 768 | # Strip out --no-create and --no-recursion so they do not pile up. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 769 | # Also quote any args containing shell meta-characters. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 770 | ac_configure_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 771 | ac_sep= |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 772 | for ac_arg |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 773 | do |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 774 | case $ac_arg in |
| 775 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 776 | | --no-cr | --no-c) ;; |
| 777 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 778 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 779 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 780 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` |
| 781 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 782 | ac_sep=" " ;; |
| 783 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" |
| 784 | ac_sep=" " ;; |
| 785 | esac |
| 786 | # Get rid of the leading space. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 787 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 788 | |
| 789 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 790 | # config.log. We remove comments because anyway the quotes in there |
| 791 | # would cause problems or look ugly. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 792 | trap 'exit_status=$? |
| 793 | # Save into config.log some information that might help in debugging. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 794 | echo >&5 |
| 795 | echo "## ----------------- ##" >&5 |
| 796 | echo "## Cache variables. ##" >&5 |
| 797 | echo "## ----------------- ##" >&5 |
| 798 | echo >&5 |
| 799 | # The following way of writing the cache mishandles newlines in values, |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 800 | { |
| 801 | (set) 2>&1 | |
| 802 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 803 | *ac_space=\ *) |
| 804 | sed -n \ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 805 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 806 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 807 | ;; |
| 808 | *) |
| 809 | sed -n \ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 810 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 811 | ;; |
| 812 | esac; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 813 | } >&5 |
| 814 | sed "/^$/d" confdefs.h >conftest.log |
| 815 | if test -s conftest.log; then |
| 816 | echo >&5 |
| 817 | echo "## ------------ ##" >&5 |
| 818 | echo "## confdefs.h. ##" >&5 |
| 819 | echo "## ------------ ##" >&5 |
| 820 | echo >&5 |
| 821 | cat conftest.log >&5 |
| 822 | fi |
| 823 | (echo; echo) >&5 |
| 824 | test "$ac_signal" != 0 && |
| 825 | echo "$as_me: caught signal $ac_signal" >&5 |
| 826 | echo "$as_me: exit $exit_status" >&5 |
| 827 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 828 | exit $exit_status |
| 829 | ' 0 |
| 830 | for ac_signal in 1 2 13 15; do |
| 831 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 832 | done |
| 833 | ac_signal=0 |
| 834 | |
| 835 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 836 | rm -rf conftest* confdefs.h |
| 837 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 838 | echo >confdefs.h |
| 839 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 840 | # Let the site file select an alternate cache file if it wants to. |
| 841 | # Prefer explicitly selected file to automatically selected ones. |
| 842 | if test -z "$CONFIG_SITE"; then |
| 843 | if test "x$prefix" != xNONE; then |
| 844 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 845 | else |
| 846 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 847 | fi |
| 848 | fi |
| 849 | for ac_site_file in $CONFIG_SITE; do |
| 850 | if test -r "$ac_site_file"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 851 | { echo "$as_me:851: loading site script $ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 852 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 853 | cat "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 854 | . "$ac_site_file" |
| 855 | fi |
| 856 | done |
| 857 | |
| 858 | if test -r "$cache_file"; then |
| 859 | # Some versions of bash will fail to source /dev/null (special |
| 860 | # files actually), so we avoid doing that. |
| 861 | if test -f "$cache_file"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 862 | { echo "$as_me:862: loading cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 863 | echo "$as_me: loading cache $cache_file" >&6;} |
| 864 | case $cache_file in |
| 865 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 866 | *) . ./$cache_file;; |
| 867 | esac |
| 868 | fi |
| 869 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 870 | { echo "$as_me:870: creating cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 871 | echo "$as_me: creating cache $cache_file" >&6;} |
| 872 | >$cache_file |
| 873 | fi |
| 874 | |
| 875 | # Check that the precious variables saved in the cache have kept the same |
| 876 | # value. |
| 877 | ac_cache_corrupted=false |
| 878 | for ac_var in `(set) 2>&1 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 879 | 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] | 880 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 881 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 882 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 883 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 884 | case $ac_old_set,$ac_new_set in |
| 885 | set,) |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 886 | { echo "$as_me:886: 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] | 887 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 888 | ac_cache_corrupted=: ;; |
| 889 | ,set) |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 890 | { echo "$as_me:890: error: \`$ac_var' was not set in the previous run" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 891 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 892 | ac_cache_corrupted=: ;; |
| 893 | ,);; |
| 894 | *) |
| 895 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 896 | { echo "$as_me:896: error: \`$ac_var' has changed since the previous run:" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 897 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 898 | { echo "$as_me:898: former value: $ac_old_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 899 | echo "$as_me: former value: $ac_old_val" >&2;} |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 900 | { echo "$as_me:900: current value: $ac_new_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 901 | echo "$as_me: current value: $ac_new_val" >&2;} |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 902 | ac_cache_corrupted=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 903 | fi;; |
| 904 | esac |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 905 | # Pass precious variables to config.status. It doesn't matter if |
| 906 | # we pass some twice (in addition to the command line arguments). |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 907 | if test "$ac_new_set" = set; then |
| 908 | case $ac_new_val in |
| 909 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 910 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` |
| 911 | ac_configure_args="$ac_configure_args '$ac_arg'" |
| 912 | ;; |
| 913 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" |
| 914 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 915 | esac |
| 916 | fi |
| 917 | done |
| 918 | if $ac_cache_corrupted; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 919 | { echo "$as_me:919: error: changes in the environment can compromise the build" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 920 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 921 | { { echo "$as_me:921: 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] | 922 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 923 | { (exit 1); exit 1; }; } |
| 924 | fi |
| 925 | |
| 926 | ac_ext=c |
| 927 | ac_cpp='$CPP $CPPFLAGS' |
| 928 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 929 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 930 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 931 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 932 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 933 | *c*,-n*) ECHO_N= ECHO_C=' |
| 934 | ' ECHO_T=' ' ;; |
| 935 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 936 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 937 | esac |
| 938 | echo "#! $SHELL" >conftest.sh |
| 939 | echo "exit 0" >>conftest.sh |
| 940 | chmod +x conftest.sh |
| 941 | if { (echo "$as_me:941: PATH=\".;.\"; conftest.sh") >&5 |
| 942 | (PATH=".;."; conftest.sh) 2>&5 |
| 943 | ac_status=$? |
| 944 | echo "$as_me:944: \$? = $ac_status" >&5 |
| 945 | (exit $ac_status); }; then |
| 946 | ac_path_separator=';' |
| 947 | else |
| 948 | ac_path_separator=: |
| 949 | fi |
| 950 | PATH_SEPARATOR="$ac_path_separator" |
| 951 | rm -f conftest.sh |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 952 | |
| 953 | ac_aux_dir= |
| 954 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 955 | if test -f $ac_dir/install-sh; then |
| 956 | ac_aux_dir=$ac_dir |
| 957 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 958 | break |
| 959 | elif test -f $ac_dir/install.sh; then |
| 960 | ac_aux_dir=$ac_dir |
| 961 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 962 | break |
| 963 | elif test -f $ac_dir/shtool; then |
| 964 | ac_aux_dir=$ac_dir |
| 965 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 966 | break |
| 967 | fi |
| 968 | done |
| 969 | if test -z "$ac_aux_dir"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 970 | { { echo "$as_me:970: 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] | 971 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 972 | { (exit 1); exit 1; }; } |
| 973 | fi |
| 974 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 975 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 976 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 977 | |
| 978 | # Make sure we can run config.sub. |
| 979 | $ac_config_sub sun4 >/dev/null 2>&1 || |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 980 | { { echo "$as_me:980: error: cannot run $ac_config_sub" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 981 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 982 | { (exit 1); exit 1; }; } |
| 983 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 984 | echo "$as_me:984: checking build system type" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 985 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 986 | if test "${ac_cv_build+set}" = set; then |
| 987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 988 | else |
| 989 | ac_cv_build_alias=$build_alias |
| 990 | test -z "$ac_cv_build_alias" && |
| 991 | ac_cv_build_alias=`$ac_config_guess` |
| 992 | test -z "$ac_cv_build_alias" && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 993 | { { echo "$as_me:993: error: cannot guess build type; you must specify one" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 994 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 995 | { (exit 1); exit 1; }; } |
| 996 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 997 | { { echo "$as_me:997: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
| 998 | 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] | 999 | { (exit 1); exit 1; }; } |
| 1000 | |
| 1001 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1002 | echo "$as_me:1002: result: $ac_cv_build" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1003 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1004 | build=$ac_cv_build |
| 1005 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1006 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1007 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1008 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1009 | echo "$as_me:1009: checking host system type" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1010 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1011 | if test "${ac_cv_host+set}" = set; then |
| 1012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1013 | else |
| 1014 | ac_cv_host_alias=$host_alias |
| 1015 | test -z "$ac_cv_host_alias" && |
| 1016 | ac_cv_host_alias=$ac_cv_build_alias |
| 1017 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1018 | { { echo "$as_me:1018: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1019 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1020 | { (exit 1); exit 1; }; } |
| 1021 | |
| 1022 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1023 | echo "$as_me:1023: result: $ac_cv_host" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1024 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1025 | host=$ac_cv_host |
| 1026 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1027 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1028 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1029 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1030 | echo "$as_me:1030: checking target system type" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1031 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1032 | if test "${ac_cv_target+set}" = set; then |
| 1033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1034 | else |
| 1035 | ac_cv_target_alias=$target_alias |
| 1036 | test "x$ac_cv_target_alias" = "x" && |
| 1037 | ac_cv_target_alias=$ac_cv_host_alias |
| 1038 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1039 | { { echo "$as_me:1039: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1040 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1041 | { (exit 1); exit 1; }; } |
| 1042 | |
| 1043 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1044 | echo "$as_me:1044: result: $ac_cv_target" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1045 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1046 | target=$ac_cv_target |
| 1047 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1048 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1049 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1050 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1051 | # The aliases save the names the user supplied, while $host etc. |
| 1052 | # will get canonicalized. |
| 1053 | test -n "$target_alias" && |
| 1054 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1055 | NONENONEs,x,x, && |
| 1056 | program_prefix=${target_alias}- |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1057 | ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1058 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1059 | 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" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1060 | |
| 1061 | ac_ext=c |
| 1062 | ac_cpp='$CPP $CPPFLAGS' |
| 1063 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1064 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1065 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1066 | if test -n "$ac_tool_prefix"; then |
| 1067 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1068 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1069 | echo "$as_me:1069: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1070 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1071 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1073 | else |
| 1074 | if test -n "$CC"; then |
| 1075 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1076 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1077 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1078 | ac_dummy="$PATH" |
| 1079 | for ac_dir in $ac_dummy; do |
| 1080 | IFS=$ac_save_IFS |
| 1081 | test -z "$ac_dir" && ac_dir=. |
| 1082 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1083 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1084 | echo "$as_me:1084: found $ac_dir/$ac_word" >&5 |
| 1085 | break |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1086 | done |
| 1087 | |
| 1088 | fi |
| 1089 | fi |
| 1090 | CC=$ac_cv_prog_CC |
| 1091 | if test -n "$CC"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1092 | echo "$as_me:1092: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1093 | echo "${ECHO_T}$CC" >&6 |
| 1094 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1095 | echo "$as_me:1095: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1096 | echo "${ECHO_T}no" >&6 |
| 1097 | fi |
| 1098 | |
| 1099 | fi |
| 1100 | if test -z "$ac_cv_prog_CC"; then |
| 1101 | ac_ct_CC=$CC |
| 1102 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1103 | set dummy gcc; ac_word=$2 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1104 | echo "$as_me:1104: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1105 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1106 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1108 | else |
| 1109 | if test -n "$ac_ct_CC"; then |
| 1110 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1111 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1112 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1113 | ac_dummy="$PATH" |
| 1114 | for ac_dir in $ac_dummy; do |
| 1115 | IFS=$ac_save_IFS |
| 1116 | test -z "$ac_dir" && ac_dir=. |
| 1117 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1118 | ac_cv_prog_ac_ct_CC="gcc" |
| 1119 | echo "$as_me:1119: found $ac_dir/$ac_word" >&5 |
| 1120 | break |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1121 | done |
| 1122 | |
| 1123 | fi |
| 1124 | fi |
| 1125 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1126 | if test -n "$ac_ct_CC"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1127 | echo "$as_me:1127: result: $ac_ct_CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1128 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1129 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1130 | echo "$as_me:1130: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1131 | echo "${ECHO_T}no" >&6 |
| 1132 | fi |
| 1133 | |
| 1134 | CC=$ac_ct_CC |
| 1135 | else |
| 1136 | CC="$ac_cv_prog_CC" |
| 1137 | fi |
| 1138 | |
| 1139 | if test -z "$CC"; then |
| 1140 | if test -n "$ac_tool_prefix"; then |
| 1141 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1142 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1143 | echo "$as_me:1143: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1145 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1147 | else |
| 1148 | if test -n "$CC"; then |
| 1149 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1150 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1151 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1152 | ac_dummy="$PATH" |
| 1153 | for ac_dir in $ac_dummy; do |
| 1154 | IFS=$ac_save_IFS |
| 1155 | test -z "$ac_dir" && ac_dir=. |
| 1156 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1157 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1158 | echo "$as_me:1158: found $ac_dir/$ac_word" >&5 |
| 1159 | break |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1160 | done |
| 1161 | |
| 1162 | fi |
| 1163 | fi |
| 1164 | CC=$ac_cv_prog_CC |
| 1165 | if test -n "$CC"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1166 | echo "$as_me:1166: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1167 | echo "${ECHO_T}$CC" >&6 |
| 1168 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1169 | echo "$as_me:1169: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1170 | echo "${ECHO_T}no" >&6 |
| 1171 | fi |
| 1172 | |
| 1173 | fi |
| 1174 | if test -z "$ac_cv_prog_CC"; then |
| 1175 | ac_ct_CC=$CC |
| 1176 | # Extract the first word of "cc", so it can be a program name with args. |
| 1177 | set dummy cc; ac_word=$2 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1178 | echo "$as_me:1178: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1179 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1180 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1182 | else |
| 1183 | if test -n "$ac_ct_CC"; then |
| 1184 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1185 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1186 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1187 | ac_dummy="$PATH" |
| 1188 | for ac_dir in $ac_dummy; do |
| 1189 | IFS=$ac_save_IFS |
| 1190 | test -z "$ac_dir" && ac_dir=. |
| 1191 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1192 | ac_cv_prog_ac_ct_CC="cc" |
| 1193 | echo "$as_me:1193: found $ac_dir/$ac_word" >&5 |
| 1194 | break |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1195 | done |
| 1196 | |
| 1197 | fi |
| 1198 | fi |
| 1199 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1200 | if test -n "$ac_ct_CC"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1201 | echo "$as_me:1201: result: $ac_ct_CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1202 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1203 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1204 | echo "$as_me:1204: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1205 | echo "${ECHO_T}no" >&6 |
| 1206 | fi |
| 1207 | |
| 1208 | CC=$ac_ct_CC |
| 1209 | else |
| 1210 | CC="$ac_cv_prog_CC" |
| 1211 | fi |
| 1212 | |
| 1213 | fi |
| 1214 | if test -z "$CC"; then |
| 1215 | # Extract the first word of "cc", so it can be a program name with args. |
| 1216 | set dummy cc; ac_word=$2 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1217 | echo "$as_me:1217: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1218 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1219 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1221 | else |
| 1222 | if test -n "$CC"; then |
| 1223 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1224 | else |
| 1225 | ac_prog_rejected=no |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1226 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1227 | ac_dummy="$PATH" |
| 1228 | for ac_dir in $ac_dummy; do |
| 1229 | IFS=$ac_save_IFS |
| 1230 | test -z "$ac_dir" && ac_dir=. |
| 1231 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1232 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 1233 | ac_prog_rejected=yes |
| 1234 | continue |
| 1235 | fi |
| 1236 | ac_cv_prog_CC="cc" |
| 1237 | echo "$as_me:1237: found $ac_dir/$ac_word" >&5 |
| 1238 | break |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1239 | done |
| 1240 | |
| 1241 | if test $ac_prog_rejected = yes; then |
| 1242 | # We found a bogon in the path, so make sure we never use it. |
| 1243 | set dummy $ac_cv_prog_CC |
| 1244 | shift |
| 1245 | if test $# != 0; then |
| 1246 | # We chose a different compiler from the bogus one. |
| 1247 | # However, it has the same basename, so the bogon will be chosen |
| 1248 | # first if we set CC to just the basename; use the full file name. |
| 1249 | shift |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1250 | set dummy "$ac_dir/$ac_word" ${1+"$@"} |
| 1251 | shift |
| 1252 | ac_cv_prog_CC="$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1253 | fi |
| 1254 | fi |
| 1255 | fi |
| 1256 | fi |
| 1257 | CC=$ac_cv_prog_CC |
| 1258 | if test -n "$CC"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1259 | echo "$as_me:1259: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1260 | echo "${ECHO_T}$CC" >&6 |
| 1261 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1262 | echo "$as_me:1262: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1263 | echo "${ECHO_T}no" >&6 |
| 1264 | fi |
| 1265 | |
| 1266 | fi |
| 1267 | if test -z "$CC"; then |
| 1268 | if test -n "$ac_tool_prefix"; then |
| 1269 | for ac_prog in cl |
| 1270 | do |
| 1271 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1272 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1273 | echo "$as_me:1273: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1274 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1275 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1277 | else |
| 1278 | if test -n "$CC"; then |
| 1279 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1280 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1281 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1282 | ac_dummy="$PATH" |
| 1283 | for ac_dir in $ac_dummy; do |
| 1284 | IFS=$ac_save_IFS |
| 1285 | test -z "$ac_dir" && ac_dir=. |
| 1286 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1287 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1288 | echo "$as_me:1288: found $ac_dir/$ac_word" >&5 |
| 1289 | break |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1290 | done |
| 1291 | |
| 1292 | fi |
| 1293 | fi |
| 1294 | CC=$ac_cv_prog_CC |
| 1295 | if test -n "$CC"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1296 | echo "$as_me:1296: result: $CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1297 | echo "${ECHO_T}$CC" >&6 |
| 1298 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1299 | echo "$as_me:1299: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1300 | echo "${ECHO_T}no" >&6 |
| 1301 | fi |
| 1302 | |
| 1303 | test -n "$CC" && break |
| 1304 | done |
| 1305 | fi |
| 1306 | if test -z "$CC"; then |
| 1307 | ac_ct_CC=$CC |
| 1308 | for ac_prog in cl |
| 1309 | do |
| 1310 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1311 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1312 | echo "$as_me:1312: checking for $ac_word" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1314 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1316 | else |
| 1317 | if test -n "$ac_ct_CC"; then |
| 1318 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1319 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1320 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1321 | ac_dummy="$PATH" |
| 1322 | for ac_dir in $ac_dummy; do |
| 1323 | IFS=$ac_save_IFS |
| 1324 | test -z "$ac_dir" && ac_dir=. |
| 1325 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1326 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1327 | echo "$as_me:1327: found $ac_dir/$ac_word" >&5 |
| 1328 | break |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1329 | done |
| 1330 | |
| 1331 | fi |
| 1332 | fi |
| 1333 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1334 | if test -n "$ac_ct_CC"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1335 | echo "$as_me:1335: result: $ac_ct_CC" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1336 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1337 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1338 | echo "$as_me:1338: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1339 | echo "${ECHO_T}no" >&6 |
| 1340 | fi |
| 1341 | |
| 1342 | test -n "$ac_ct_CC" && break |
| 1343 | done |
| 1344 | |
| 1345 | CC=$ac_ct_CC |
| 1346 | fi |
| 1347 | |
| 1348 | fi |
| 1349 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1350 | test -z "$CC" && { { echo "$as_me:1350: error: no acceptable cc found in \$PATH" >&5 |
| 1351 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1352 | { (exit 1); exit 1; }; } |
| 1353 | |
| 1354 | # Provide some information about the compiler. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1355 | echo "$as_me:1355:" \ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1356 | "checking for C compiler version" >&5 |
| 1357 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1358 | { (eval echo "$as_me:1358: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1359 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1360 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1361 | echo "$as_me:1361: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1362 | (exit $ac_status); } |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1363 | { (eval echo "$as_me:1363: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1364 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1365 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1366 | echo "$as_me:1366: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1367 | (exit $ac_status); } |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1368 | { (eval echo "$as_me:1368: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1369 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1370 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1371 | echo "$as_me:1371: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1372 | (exit $ac_status); } |
| 1373 | |
| 1374 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1375 | #line 1375 "configure" |
| 1376 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1377 | |
| 1378 | int |
| 1379 | main () |
| 1380 | { |
| 1381 | |
| 1382 | ; |
| 1383 | return 0; |
| 1384 | } |
| 1385 | _ACEOF |
| 1386 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1387 | ac_clean_files="$ac_clean_files a.out a.exe" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1388 | # Try to create an executable without -o first, disregard a.out. |
| 1389 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1390 | # of exeext. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1391 | echo "$as_me:1391: checking for C compiler default output" >&5 |
| 1392 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1393 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1394 | if { (eval echo "$as_me:1394: \"$ac_link_default\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1395 | (eval $ac_link_default) 2>&5 |
| 1396 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1397 | echo "$as_me:1397: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1398 | (exit $ac_status); }; then |
| 1399 | # Find the output, starting from the most likely. This scheme is |
| 1400 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1401 | # resort. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1402 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; |
| 1403 | ls a.out conftest 2>/dev/null; |
| 1404 | ls a.* conftest.* 2>/dev/null`; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1405 | case $ac_file in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1406 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1407 | a.out ) # We found the default executable, but exeext='' is most |
| 1408 | # certainly right. |
| 1409 | break;; |
| 1410 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1411 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1412 | export ac_cv_exeext |
| 1413 | break;; |
| 1414 | * ) break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1415 | esac |
| 1416 | done |
| 1417 | else |
| 1418 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1419 | cat conftest.$ac_ext >&5 |
| 1420 | { { echo "$as_me:1420: error: C compiler cannot create executables" >&5 |
| 1421 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1422 | { (exit 77); exit 77; }; } |
| 1423 | fi |
| 1424 | |
| 1425 | ac_exeext=$ac_cv_exeext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1426 | echo "$as_me:1426: result: $ac_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1427 | echo "${ECHO_T}$ac_file" >&6 |
| 1428 | |
| 1429 | # Check the compiler produces executables we can run. If not, either |
| 1430 | # the compiler is broken, or we cross compile. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1431 | echo "$as_me:1431: checking whether the C compiler works" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1432 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1433 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1434 | # If not cross compiling, check that we can run a simple program. |
| 1435 | if test "$cross_compiling" != yes; then |
| 1436 | if { ac_try='./$ac_file' |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1437 | { (eval echo "$as_me:1437: \"$ac_try\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1438 | (eval $ac_try) 2>&5 |
| 1439 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1440 | echo "$as_me:1440: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1441 | (exit $ac_status); }; }; then |
| 1442 | cross_compiling=no |
| 1443 | else |
| 1444 | if test "$cross_compiling" = maybe; then |
| 1445 | cross_compiling=yes |
| 1446 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1447 | { { echo "$as_me:1447: error: cannot run C compiled programs. |
| 1448 | If you meant to cross compile, use \`--host'." >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1449 | echo "$as_me: error: cannot run C compiled programs. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1450 | If you meant to cross compile, use \`--host'." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1451 | { (exit 1); exit 1; }; } |
| 1452 | fi |
| 1453 | fi |
| 1454 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1455 | echo "$as_me:1455: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1456 | echo "${ECHO_T}yes" >&6 |
| 1457 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1458 | rm -f a.out a.exe conftest$ac_cv_exeext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1459 | ac_clean_files=$ac_clean_files_save |
| 1460 | # Check the compiler produces executables we can run. If not, either |
| 1461 | # the compiler is broken, or we cross compile. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1462 | echo "$as_me:1462: checking whether we are cross compiling" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1463 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1464 | echo "$as_me:1464: result: $cross_compiling" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1465 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1466 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1467 | echo "$as_me:1467: checking for executable suffix" >&5 |
| 1468 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
| 1469 | if { (eval echo "$as_me:1469: \"$ac_link\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1470 | (eval $ac_link) 2>&5 |
| 1471 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1472 | echo "$as_me:1472: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1473 | (exit $ac_status); }; then |
| 1474 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1475 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1476 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1477 | # `rm'. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1478 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1479 | case $ac_file in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1480 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1481 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1482 | export ac_cv_exeext |
| 1483 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1484 | * ) break;; |
| 1485 | esac |
| 1486 | done |
| 1487 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1488 | { { echo "$as_me:1488: error: cannot compute EXEEXT: cannot compile and link" >&5 |
| 1489 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1490 | { (exit 1); exit 1; }; } |
| 1491 | fi |
| 1492 | |
| 1493 | rm -f conftest$ac_cv_exeext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1494 | echo "$as_me:1494: result: $ac_cv_exeext" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1495 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1496 | |
| 1497 | rm -f conftest.$ac_ext |
| 1498 | EXEEXT=$ac_cv_exeext |
| 1499 | ac_exeext=$EXEEXT |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1500 | echo "$as_me:1500: checking for object suffix" >&5 |
| 1501 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1502 | if test "${ac_cv_objext+set}" = set; then |
| 1503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1504 | else |
| 1505 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1506 | #line 1506 "configure" |
| 1507 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1508 | |
| 1509 | int |
| 1510 | main () |
| 1511 | { |
| 1512 | |
| 1513 | ; |
| 1514 | return 0; |
| 1515 | } |
| 1516 | _ACEOF |
| 1517 | rm -f conftest.o conftest.obj |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1518 | if { (eval echo "$as_me:1518: \"$ac_compile\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1519 | (eval $ac_compile) 2>&5 |
| 1520 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1521 | echo "$as_me:1521: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1522 | (exit $ac_status); }; then |
| 1523 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1524 | case $ac_file in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1525 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1526 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1527 | break;; |
| 1528 | esac |
| 1529 | done |
| 1530 | else |
| 1531 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1532 | cat conftest.$ac_ext >&5 |
| 1533 | { { echo "$as_me:1533: error: cannot compute OBJEXT: cannot compile" >&5 |
| 1534 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1535 | { (exit 1); exit 1; }; } |
| 1536 | fi |
| 1537 | |
| 1538 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1539 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1540 | echo "$as_me:1540: result: $ac_cv_objext" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1541 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1542 | OBJEXT=$ac_cv_objext |
| 1543 | ac_objext=$OBJEXT |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1544 | echo "$as_me:1544: checking whether we are using the GNU C compiler" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1545 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1546 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1548 | else |
| 1549 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1550 | #line 1550 "configure" |
| 1551 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1552 | |
| 1553 | int |
| 1554 | main () |
| 1555 | { |
| 1556 | #ifndef __GNUC__ |
| 1557 | choke me |
| 1558 | #endif |
| 1559 | |
| 1560 | ; |
| 1561 | return 0; |
| 1562 | } |
| 1563 | _ACEOF |
| 1564 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1565 | if { (eval echo "$as_me:1565: \"$ac_compile\"") >&5 |
| 1566 | (eval $ac_compile) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1567 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1568 | echo "$as_me:1568: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1569 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1570 | { ac_try='test -s conftest.$ac_objext' |
| 1571 | { (eval echo "$as_me:1571: \"$ac_try\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1572 | (eval $ac_try) 2>&5 |
| 1573 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1574 | echo "$as_me:1574: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1575 | (exit $ac_status); }; }; then |
| 1576 | ac_compiler_gnu=yes |
| 1577 | else |
| 1578 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1579 | cat conftest.$ac_ext >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1580 | ac_compiler_gnu=no |
| 1581 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1582 | rm -f conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1583 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 1584 | |
| 1585 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1586 | echo "$as_me:1586: result: $ac_cv_c_compiler_gnu" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1587 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1588 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1589 | ac_test_CFLAGS=${CFLAGS+set} |
| 1590 | ac_save_CFLAGS=$CFLAGS |
| 1591 | CFLAGS="-g" |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1592 | echo "$as_me:1592: checking whether $CC accepts -g" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1593 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1594 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1596 | else |
| 1597 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1598 | #line 1598 "configure" |
| 1599 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1600 | |
| 1601 | int |
| 1602 | main () |
| 1603 | { |
| 1604 | |
| 1605 | ; |
| 1606 | return 0; |
| 1607 | } |
| 1608 | _ACEOF |
| 1609 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1610 | if { (eval echo "$as_me:1610: \"$ac_compile\"") >&5 |
| 1611 | (eval $ac_compile) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1612 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1613 | echo "$as_me:1613: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1614 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1615 | { ac_try='test -s conftest.$ac_objext' |
| 1616 | { (eval echo "$as_me:1616: \"$ac_try\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1617 | (eval $ac_try) 2>&5 |
| 1618 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1619 | echo "$as_me:1619: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1620 | (exit $ac_status); }; }; then |
| 1621 | ac_cv_prog_cc_g=yes |
| 1622 | else |
| 1623 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1624 | cat conftest.$ac_ext >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1625 | ac_cv_prog_cc_g=no |
| 1626 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1627 | rm -f conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1628 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1629 | echo "$as_me:1629: result: $ac_cv_prog_cc_g" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1630 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 1631 | if test "$ac_test_CFLAGS" = set; then |
| 1632 | CFLAGS=$ac_save_CFLAGS |
| 1633 | elif test $ac_cv_prog_cc_g = yes; then |
| 1634 | if test "$GCC" = yes; then |
| 1635 | CFLAGS="-g -O2" |
| 1636 | else |
| 1637 | CFLAGS="-g" |
| 1638 | fi |
| 1639 | else |
| 1640 | if test "$GCC" = yes; then |
| 1641 | CFLAGS="-O2" |
| 1642 | else |
| 1643 | CFLAGS= |
| 1644 | fi |
| 1645 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1646 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 1647 | # in C++ we need to declare it. In case someone uses the same compiler |
| 1648 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 1649 | # the declaration of exit, since it's the most demanding environment. |
| 1650 | cat >conftest.$ac_ext <<_ACEOF |
| 1651 | #ifndef __cplusplus |
| 1652 | choke me |
| 1653 | #endif |
| 1654 | _ACEOF |
| 1655 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1656 | if { (eval echo "$as_me:1656: \"$ac_compile\"") >&5 |
| 1657 | (eval $ac_compile) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1658 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1659 | echo "$as_me:1659: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1660 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1661 | { ac_try='test -s conftest.$ac_objext' |
| 1662 | { (eval echo "$as_me:1662: \"$ac_try\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1663 | (eval $ac_try) 2>&5 |
| 1664 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1665 | echo "$as_me:1665: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1666 | (exit $ac_status); }; }; then |
| 1667 | for ac_declaration in \ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1668 | ''\ |
| 1669 | '#include <stdlib.h>' \ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1670 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 1671 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 1672 | 'extern "C" void exit (int) throw ();' \ |
| 1673 | 'extern "C" void exit (int);' \ |
| 1674 | 'void exit (int);' |
| 1675 | do |
| 1676 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1677 | #line 1677 "configure" |
| 1678 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1679 | #include <stdlib.h> |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1680 | $ac_declaration |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1681 | int |
| 1682 | main () |
| 1683 | { |
| 1684 | exit (42); |
| 1685 | ; |
| 1686 | return 0; |
| 1687 | } |
| 1688 | _ACEOF |
| 1689 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1690 | if { (eval echo "$as_me:1690: \"$ac_compile\"") >&5 |
| 1691 | (eval $ac_compile) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1692 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1693 | echo "$as_me:1693: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1694 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1695 | { ac_try='test -s conftest.$ac_objext' |
| 1696 | { (eval echo "$as_me:1696: \"$ac_try\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1697 | (eval $ac_try) 2>&5 |
| 1698 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1699 | echo "$as_me:1699: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1700 | (exit $ac_status); }; }; then |
| 1701 | : |
| 1702 | else |
| 1703 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1704 | cat conftest.$ac_ext >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1705 | continue |
| 1706 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1707 | rm -f conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1708 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1709 | #line 1709 "configure" |
| 1710 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1711 | $ac_declaration |
| 1712 | int |
| 1713 | main () |
| 1714 | { |
| 1715 | exit (42); |
| 1716 | ; |
| 1717 | return 0; |
| 1718 | } |
| 1719 | _ACEOF |
| 1720 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1721 | if { (eval echo "$as_me:1721: \"$ac_compile\"") >&5 |
| 1722 | (eval $ac_compile) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1723 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1724 | echo "$as_me:1724: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1725 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1726 | { ac_try='test -s conftest.$ac_objext' |
| 1727 | { (eval echo "$as_me:1727: \"$ac_try\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1728 | (eval $ac_try) 2>&5 |
| 1729 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1730 | echo "$as_me:1730: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1731 | (exit $ac_status); }; }; then |
| 1732 | break |
| 1733 | else |
| 1734 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1735 | cat conftest.$ac_ext >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1736 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1737 | rm -f conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1738 | done |
| 1739 | rm -f conftest* |
| 1740 | if test -n "$ac_declaration"; then |
| 1741 | echo '#ifdef __cplusplus' >>confdefs.h |
| 1742 | echo $ac_declaration >>confdefs.h |
| 1743 | echo '#endif' >>confdefs.h |
| 1744 | fi |
| 1745 | |
| 1746 | else |
| 1747 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1748 | cat conftest.$ac_ext >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1749 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1750 | rm -f conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1751 | ac_ext=c |
| 1752 | ac_cpp='$CPP $CPPFLAGS' |
| 1753 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1754 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1755 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1756 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1757 | ac_ext=cc |
| 1758 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 1759 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1760 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1761 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1762 | if test -n "$ac_tool_prefix"; then |
| 1763 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 1764 | do |
| 1765 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1766 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1767 | echo "$as_me:1767: checking for $ac_word" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1769 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1771 | else |
| 1772 | if test -n "$CXX"; then |
| 1773 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1774 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1775 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1776 | ac_dummy="$PATH" |
| 1777 | for ac_dir in $ac_dummy; do |
| 1778 | IFS=$ac_save_IFS |
| 1779 | test -z "$ac_dir" && ac_dir=. |
| 1780 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1781 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 1782 | echo "$as_me:1782: found $ac_dir/$ac_word" >&5 |
| 1783 | break |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1784 | done |
| 1785 | |
| 1786 | fi |
| 1787 | fi |
| 1788 | CXX=$ac_cv_prog_CXX |
| 1789 | if test -n "$CXX"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1790 | echo "$as_me:1790: result: $CXX" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1791 | echo "${ECHO_T}$CXX" >&6 |
| 1792 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1793 | echo "$as_me:1793: result: no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1794 | echo "${ECHO_T}no" >&6 |
| 1795 | fi |
| 1796 | |
| 1797 | test -n "$CXX" && break |
| 1798 | done |
| 1799 | fi |
| 1800 | if test -z "$CXX"; then |
| 1801 | ac_ct_CXX=$CXX |
| 1802 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 1803 | do |
| 1804 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1805 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1806 | echo "$as_me:1806: checking for $ac_word" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1808 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 1809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1810 | else |
| 1811 | if test -n "$ac_ct_CXX"; then |
| 1812 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 1813 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1814 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1815 | ac_dummy="$PATH" |
| 1816 | for ac_dir in $ac_dummy; do |
| 1817 | IFS=$ac_save_IFS |
| 1818 | test -z "$ac_dir" && ac_dir=. |
| 1819 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1820 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 1821 | echo "$as_me:1821: found $ac_dir/$ac_word" >&5 |
| 1822 | break |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1823 | done |
| 1824 | |
| 1825 | fi |
| 1826 | fi |
| 1827 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 1828 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1829 | echo "$as_me:1829: result: $ac_ct_CXX" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1830 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 1831 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1832 | echo "$as_me:1832: result: no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1833 | echo "${ECHO_T}no" >&6 |
| 1834 | fi |
| 1835 | |
| 1836 | test -n "$ac_ct_CXX" && break |
| 1837 | done |
| 1838 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 1839 | |
| 1840 | CXX=$ac_ct_CXX |
| 1841 | fi |
| 1842 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1843 | # Provide some information about the compiler. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1844 | echo "$as_me:1844:" \ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1845 | "checking for C++ compiler version" >&5 |
| 1846 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1847 | { (eval echo "$as_me:1847: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1848 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1849 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1850 | echo "$as_me:1850: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1851 | (exit $ac_status); } |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1852 | { (eval echo "$as_me:1852: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1853 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1854 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1855 | echo "$as_me:1855: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1856 | (exit $ac_status); } |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1857 | { (eval echo "$as_me:1857: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1858 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1859 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1860 | echo "$as_me:1860: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1861 | (exit $ac_status); } |
| 1862 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1863 | echo "$as_me:1863: checking whether we are using the GNU C++ compiler" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1864 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 1865 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 1866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1867 | else |
| 1868 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1869 | #line 1869 "configure" |
| 1870 | #include "confdefs.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1871 | |
| 1872 | int |
| 1873 | main () |
| 1874 | { |
| 1875 | #ifndef __GNUC__ |
| 1876 | choke me |
| 1877 | #endif |
| 1878 | |
| 1879 | ; |
| 1880 | return 0; |
| 1881 | } |
| 1882 | _ACEOF |
| 1883 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1884 | if { (eval echo "$as_me:1884: \"$ac_compile\"") >&5 |
| 1885 | (eval $ac_compile) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1886 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1887 | echo "$as_me:1887: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1888 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1889 | { ac_try='test -s conftest.$ac_objext' |
| 1890 | { (eval echo "$as_me:1890: \"$ac_try\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1891 | (eval $ac_try) 2>&5 |
| 1892 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1893 | echo "$as_me:1893: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1894 | (exit $ac_status); }; }; then |
| 1895 | ac_compiler_gnu=yes |
| 1896 | else |
| 1897 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1898 | cat conftest.$ac_ext >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1899 | ac_compiler_gnu=no |
| 1900 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1901 | rm -f conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1902 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 1903 | |
| 1904 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1905 | echo "$as_me:1905: result: $ac_cv_cxx_compiler_gnu" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1906 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 1907 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 1908 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 1909 | ac_save_CXXFLAGS=$CXXFLAGS |
| 1910 | CXXFLAGS="-g" |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1911 | echo "$as_me:1911: checking whether $CXX accepts -g" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1912 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 1913 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 1914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1915 | else |
| 1916 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1917 | #line 1917 "configure" |
| 1918 | #include "confdefs.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1919 | |
| 1920 | int |
| 1921 | main () |
| 1922 | { |
| 1923 | |
| 1924 | ; |
| 1925 | return 0; |
| 1926 | } |
| 1927 | _ACEOF |
| 1928 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1929 | if { (eval echo "$as_me:1929: \"$ac_compile\"") >&5 |
| 1930 | (eval $ac_compile) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1931 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1932 | echo "$as_me:1932: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1933 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1934 | { ac_try='test -s conftest.$ac_objext' |
| 1935 | { (eval echo "$as_me:1935: \"$ac_try\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1936 | (eval $ac_try) 2>&5 |
| 1937 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1938 | echo "$as_me:1938: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1939 | (exit $ac_status); }; }; then |
| 1940 | ac_cv_prog_cxx_g=yes |
| 1941 | else |
| 1942 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1943 | cat conftest.$ac_ext >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1944 | ac_cv_prog_cxx_g=no |
| 1945 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1946 | rm -f conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1947 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1948 | echo "$as_me:1948: result: $ac_cv_prog_cxx_g" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1949 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 1950 | if test "$ac_test_CXXFLAGS" = set; then |
| 1951 | CXXFLAGS=$ac_save_CXXFLAGS |
| 1952 | elif test $ac_cv_prog_cxx_g = yes; then |
| 1953 | if test "$GXX" = yes; then |
| 1954 | CXXFLAGS="-g -O2" |
| 1955 | else |
| 1956 | CXXFLAGS="-g" |
| 1957 | fi |
| 1958 | else |
| 1959 | if test "$GXX" = yes; then |
| 1960 | CXXFLAGS="-O2" |
| 1961 | else |
| 1962 | CXXFLAGS= |
| 1963 | fi |
| 1964 | fi |
| 1965 | for ac_declaration in \ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1966 | ''\ |
| 1967 | '#include <stdlib.h>' \ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1968 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 1969 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 1970 | 'extern "C" void exit (int) throw ();' \ |
| 1971 | 'extern "C" void exit (int);' \ |
| 1972 | 'void exit (int);' |
| 1973 | do |
| 1974 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1975 | #line 1975 "configure" |
| 1976 | #include "confdefs.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1977 | #include <stdlib.h> |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1978 | $ac_declaration |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1979 | int |
| 1980 | main () |
| 1981 | { |
| 1982 | exit (42); |
| 1983 | ; |
| 1984 | return 0; |
| 1985 | } |
| 1986 | _ACEOF |
| 1987 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1988 | if { (eval echo "$as_me:1988: \"$ac_compile\"") >&5 |
| 1989 | (eval $ac_compile) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1990 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1991 | echo "$as_me:1991: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1992 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1993 | { ac_try='test -s conftest.$ac_objext' |
| 1994 | { (eval echo "$as_me:1994: \"$ac_try\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1995 | (eval $ac_try) 2>&5 |
| 1996 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 1997 | echo "$as_me:1997: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1998 | (exit $ac_status); }; }; then |
| 1999 | : |
| 2000 | else |
| 2001 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2002 | cat conftest.$ac_ext >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2003 | continue |
| 2004 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2005 | rm -f conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2006 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2007 | #line 2007 "configure" |
| 2008 | #include "confdefs.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2009 | $ac_declaration |
| 2010 | int |
| 2011 | main () |
| 2012 | { |
| 2013 | exit (42); |
| 2014 | ; |
| 2015 | return 0; |
| 2016 | } |
| 2017 | _ACEOF |
| 2018 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2019 | if { (eval echo "$as_me:2019: \"$ac_compile\"") >&5 |
| 2020 | (eval $ac_compile) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2021 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2022 | echo "$as_me:2022: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2023 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2024 | { ac_try='test -s conftest.$ac_objext' |
| 2025 | { (eval echo "$as_me:2025: \"$ac_try\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2026 | (eval $ac_try) 2>&5 |
| 2027 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2028 | echo "$as_me:2028: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2029 | (exit $ac_status); }; }; then |
| 2030 | break |
| 2031 | else |
| 2032 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2033 | cat conftest.$ac_ext >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2034 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2035 | rm -f conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2036 | done |
| 2037 | rm -f conftest* |
| 2038 | if test -n "$ac_declaration"; then |
| 2039 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2040 | echo $ac_declaration >>confdefs.h |
| 2041 | echo '#endif' >>confdefs.h |
| 2042 | fi |
| 2043 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2044 | ac_ext=c |
| 2045 | ac_cpp='$CPP $CPPFLAGS' |
| 2046 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2047 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2048 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2049 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2050 | ac_ext=c |
| 2051 | ac_cpp='$CPP $CPPFLAGS' |
| 2052 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2053 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2054 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2055 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2056 | echo "$as_me:2056: checking for pthread_create in -lpthread" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2057 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 2058 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 2059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2060 | else |
| 2061 | ac_check_lib_save_LIBS=$LIBS |
| 2062 | LIBS="-lpthread $LIBS" |
| 2063 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2064 | #line 2064 "configure" |
| 2065 | #include "confdefs.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2066 | |
| 2067 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2068 | #ifdef __cplusplus |
| 2069 | extern "C" |
| 2070 | #endif |
| 2071 | /* We use char because int might match the return type of a gcc2 |
| 2072 | builtin and then its argument prototype would still apply. */ |
| 2073 | char pthread_create (); |
| 2074 | int |
| 2075 | main () |
| 2076 | { |
| 2077 | pthread_create (); |
| 2078 | ; |
| 2079 | return 0; |
| 2080 | } |
| 2081 | _ACEOF |
| 2082 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2083 | if { (eval echo "$as_me:2083: \"$ac_link\"") >&5 |
| 2084 | (eval $ac_link) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2085 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2086 | echo "$as_me:2086: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2087 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2088 | { ac_try='test -s conftest$ac_exeext' |
| 2089 | { (eval echo "$as_me:2089: \"$ac_try\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2090 | (eval $ac_try) 2>&5 |
| 2091 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2092 | echo "$as_me:2092: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2093 | (exit $ac_status); }; }; then |
| 2094 | ac_cv_lib_pthread_pthread_create=yes |
| 2095 | else |
| 2096 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2097 | cat conftest.$ac_ext >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2098 | ac_cv_lib_pthread_pthread_create=no |
| 2099 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2100 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2101 | LIBS=$ac_check_lib_save_LIBS |
| 2102 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2103 | echo "$as_me:2103: result: $ac_cv_lib_pthread_pthread_create" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2104 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
| 2105 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2106 | cat >>confdefs.h <<EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2107 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2108 | EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2109 | |
| 2110 | LIBS="-lpthread $LIBS" |
| 2111 | |
| 2112 | fi |
| 2113 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2114 | echo "$as_me:2114: result: Setting PJ_M_NAME to $target_cpu" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2115 | echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2116 | cat >>confdefs.h <<EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2117 | #define PJ_M_NAME "$target_cpu" |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2118 | EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2119 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2120 | echo "$as_me:2120: checking whether byte ordering is bigendian" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2121 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 2122 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 2123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2124 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2125 | ac_cv_c_bigendian=unknown |
| 2126 | # See if sys/param.h defines the BYTE_ORDER macro. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2127 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2128 | #line 2128 "configure" |
| 2129 | #include "confdefs.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2130 | #include <sys/types.h> |
| 2131 | #include <sys/param.h> |
| 2132 | |
| 2133 | int |
| 2134 | main () |
| 2135 | { |
| 2136 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 2137 | bogus endian macros |
| 2138 | #endif |
| 2139 | |
| 2140 | ; |
| 2141 | return 0; |
| 2142 | } |
| 2143 | _ACEOF |
| 2144 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2145 | if { (eval echo "$as_me:2145: \"$ac_compile\"") >&5 |
| 2146 | (eval $ac_compile) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2147 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2148 | echo "$as_me:2148: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2149 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2150 | { ac_try='test -s conftest.$ac_objext' |
| 2151 | { (eval echo "$as_me:2151: \"$ac_try\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2152 | (eval $ac_try) 2>&5 |
| 2153 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2154 | echo "$as_me:2154: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2155 | (exit $ac_status); }; }; then |
| 2156 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 2157 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2158 | #line 2158 "configure" |
| 2159 | #include "confdefs.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2160 | #include <sys/types.h> |
| 2161 | #include <sys/param.h> |
| 2162 | |
| 2163 | int |
| 2164 | main () |
| 2165 | { |
| 2166 | #if BYTE_ORDER != BIG_ENDIAN |
| 2167 | not big endian |
| 2168 | #endif |
| 2169 | |
| 2170 | ; |
| 2171 | return 0; |
| 2172 | } |
| 2173 | _ACEOF |
| 2174 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2175 | if { (eval echo "$as_me:2175: \"$ac_compile\"") >&5 |
| 2176 | (eval $ac_compile) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2177 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2178 | echo "$as_me:2178: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2179 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2180 | { ac_try='test -s conftest.$ac_objext' |
| 2181 | { (eval echo "$as_me:2181: \"$ac_try\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2182 | (eval $ac_try) 2>&5 |
| 2183 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2184 | echo "$as_me:2184: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2185 | (exit $ac_status); }; }; then |
| 2186 | ac_cv_c_bigendian=yes |
| 2187 | else |
| 2188 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2189 | cat conftest.$ac_ext >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2190 | ac_cv_c_bigendian=no |
| 2191 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2192 | rm -f conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2193 | else |
| 2194 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2195 | cat conftest.$ac_ext >&5 |
| 2196 | fi |
| 2197 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2198 | if test $ac_cv_c_bigendian = unknown; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2199 | if test "$cross_compiling" = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2200 | { { echo "$as_me:2200: error: cannot run test program while cross compiling" >&5 |
| 2201 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 2202 | { (exit 1); exit 1; }; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2203 | else |
| 2204 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2205 | #line 2205 "configure" |
| 2206 | #include "confdefs.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2207 | int |
| 2208 | main () |
| 2209 | { |
| 2210 | /* Are we little or big endian? From Harbison&Steele. */ |
| 2211 | union |
| 2212 | { |
| 2213 | long l; |
| 2214 | char c[sizeof (long)]; |
| 2215 | } u; |
| 2216 | u.l = 1; |
| 2217 | exit (u.c[sizeof (long) - 1] == 1); |
| 2218 | } |
| 2219 | _ACEOF |
| 2220 | rm -f conftest$ac_exeext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2221 | if { (eval echo "$as_me:2221: \"$ac_link\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2222 | (eval $ac_link) 2>&5 |
| 2223 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2224 | echo "$as_me:2224: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2225 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2226 | { (eval echo "$as_me:2226: \"$ac_try\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2227 | (eval $ac_try) 2>&5 |
| 2228 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2229 | echo "$as_me:2229: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2230 | (exit $ac_status); }; }; then |
| 2231 | ac_cv_c_bigendian=no |
| 2232 | else |
| 2233 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2234 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2235 | cat conftest.$ac_ext >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2236 | ac_cv_c_bigendian=yes |
| 2237 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2238 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2239 | fi |
| 2240 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2241 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2242 | echo "$as_me:2242: result: $ac_cv_c_bigendian" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2243 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2244 | if test $ac_cv_c_bigendian = yes; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2245 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2246 | cat >>confdefs.h <<\EOF |
| 2247 | #define WORDS_BIGENDIAN 1 |
| 2248 | EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2249 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2250 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2251 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2252 | # Check whether --enable-floating-point or --disable-floating-point was given. |
| 2253 | if test "${enable_floating_point+set}" = set; then |
| 2254 | enableval="$enable_floating_point" |
| 2255 | if test "$enable_floating_point" = "no"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2256 | cat >>confdefs.h <<\EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2257 | #define PJ_HAS_FLOATING_POINT 0 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2258 | EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2259 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2260 | echo "$as_me:2260: result: Checking if floating point is disabled... yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2261 | echo "${ECHO_T}Checking if floating point is disabled... yes" >&6 |
| 2262 | fi |
| 2263 | else |
| 2264 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2265 | cat >>confdefs.h <<\EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2266 | #define PJ_HAS_FLOATING_POINT 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2267 | EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2268 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2269 | echo "$as_me:2269: result: Checking if floating point is disabled... no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2270 | echo "${ECHO_T}Checking if floating point is disabled... no" >&6 |
| 2271 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2272 | echo "$as_me:2272: checking for fmod in -lm" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2273 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6 |
| 2274 | if test "${ac_cv_lib_m_fmod+set}" = set; then |
| 2275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2276 | else |
| 2277 | ac_check_lib_save_LIBS=$LIBS |
| 2278 | LIBS="-lm $LIBS" |
| 2279 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2280 | #line 2280 "configure" |
| 2281 | #include "confdefs.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2282 | |
| 2283 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2284 | #ifdef __cplusplus |
| 2285 | extern "C" |
| 2286 | #endif |
| 2287 | /* We use char because int might match the return type of a gcc2 |
| 2288 | builtin and then its argument prototype would still apply. */ |
| 2289 | char fmod (); |
| 2290 | int |
| 2291 | main () |
| 2292 | { |
| 2293 | fmod (); |
| 2294 | ; |
| 2295 | return 0; |
| 2296 | } |
| 2297 | _ACEOF |
| 2298 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2299 | if { (eval echo "$as_me:2299: \"$ac_link\"") >&5 |
| 2300 | (eval $ac_link) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2301 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2302 | echo "$as_me:2302: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2303 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2304 | { ac_try='test -s conftest$ac_exeext' |
| 2305 | { (eval echo "$as_me:2305: \"$ac_try\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2306 | (eval $ac_try) 2>&5 |
| 2307 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2308 | echo "$as_me:2308: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2309 | (exit $ac_status); }; }; then |
| 2310 | ac_cv_lib_m_fmod=yes |
| 2311 | else |
| 2312 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2313 | cat conftest.$ac_ext >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2314 | ac_cv_lib_m_fmod=no |
| 2315 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2316 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2317 | LIBS=$ac_check_lib_save_LIBS |
| 2318 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2319 | echo "$as_me:2319: result: $ac_cv_lib_m_fmod" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2320 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6 |
| 2321 | if test $ac_cv_lib_m_fmod = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2322 | cat >>confdefs.h <<EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2323 | #define HAVE_LIBM 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2324 | EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2325 | |
| 2326 | LIBS="-lm $LIBS" |
| 2327 | |
| 2328 | fi |
| 2329 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2330 | fi; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2331 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2332 | ac_ext=c |
| 2333 | ac_cpp='$CPP $CPPFLAGS' |
| 2334 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2335 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2336 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2337 | echo "$as_me:2337: checking how to run the C preprocessor" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2338 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2339 | # On Suns, sometimes $CPP names a directory. |
| 2340 | if test -n "$CPP" && test -d "$CPP"; then |
| 2341 | CPP= |
| 2342 | fi |
| 2343 | if test -z "$CPP"; then |
| 2344 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2346 | else |
| 2347 | # Double quotes because CPP needs to be expanded |
| 2348 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2349 | do |
| 2350 | ac_preproc_ok=false |
| 2351 | for ac_c_preproc_warn_flag in '' yes |
| 2352 | do |
| 2353 | # Use a header file that comes with gcc, so configuring glibc |
| 2354 | # with a fresh cross-compiler works. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2355 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2356 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2357 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2358 | #line 2358 "configure" |
| 2359 | #include "confdefs.h" |
| 2360 | #include <assert.h> |
| 2361 | Syntax error |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2362 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2363 | if { (eval echo "$as_me:2363: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2364 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2365 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2366 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2367 | rm -f conftest.er1 |
| 2368 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2369 | echo "$as_me:2369: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2370 | (exit $ac_status); } >/dev/null; then |
| 2371 | if test -s conftest.err; then |
| 2372 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2373 | else |
| 2374 | ac_cpp_err= |
| 2375 | fi |
| 2376 | else |
| 2377 | ac_cpp_err=yes |
| 2378 | fi |
| 2379 | if test -z "$ac_cpp_err"; then |
| 2380 | : |
| 2381 | else |
| 2382 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2383 | cat conftest.$ac_ext >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2384 | # Broken: fails on valid input. |
| 2385 | continue |
| 2386 | fi |
| 2387 | rm -f conftest.err conftest.$ac_ext |
| 2388 | |
| 2389 | # OK, works on sane cases. Now check whether non-existent headers |
| 2390 | # can be detected and how. |
| 2391 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2392 | #line 2392 "configure" |
| 2393 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2394 | #include <ac_nonexistent.h> |
| 2395 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2396 | if { (eval echo "$as_me:2396: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2397 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2398 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2399 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2400 | rm -f conftest.er1 |
| 2401 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2402 | echo "$as_me:2402: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2403 | (exit $ac_status); } >/dev/null; then |
| 2404 | if test -s conftest.err; then |
| 2405 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2406 | else |
| 2407 | ac_cpp_err= |
| 2408 | fi |
| 2409 | else |
| 2410 | ac_cpp_err=yes |
| 2411 | fi |
| 2412 | if test -z "$ac_cpp_err"; then |
| 2413 | # Broken: success on invalid input. |
| 2414 | continue |
| 2415 | else |
| 2416 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2417 | cat conftest.$ac_ext >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2418 | # Passes both tests. |
| 2419 | ac_preproc_ok=: |
| 2420 | break |
| 2421 | fi |
| 2422 | rm -f conftest.err conftest.$ac_ext |
| 2423 | |
| 2424 | done |
| 2425 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2426 | rm -f conftest.err conftest.$ac_ext |
| 2427 | if $ac_preproc_ok; then |
| 2428 | break |
| 2429 | fi |
| 2430 | |
| 2431 | done |
| 2432 | ac_cv_prog_CPP=$CPP |
| 2433 | |
| 2434 | fi |
| 2435 | CPP=$ac_cv_prog_CPP |
| 2436 | else |
| 2437 | ac_cv_prog_CPP=$CPP |
| 2438 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2439 | echo "$as_me:2439: result: $CPP" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2440 | echo "${ECHO_T}$CPP" >&6 |
| 2441 | ac_preproc_ok=false |
| 2442 | for ac_c_preproc_warn_flag in '' yes |
| 2443 | do |
| 2444 | # Use a header file that comes with gcc, so configuring glibc |
| 2445 | # with a fresh cross-compiler works. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2446 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2447 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2448 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2449 | #line 2449 "configure" |
| 2450 | #include "confdefs.h" |
| 2451 | #include <assert.h> |
| 2452 | Syntax error |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2453 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2454 | if { (eval echo "$as_me:2454: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2455 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2456 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2457 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2458 | rm -f conftest.er1 |
| 2459 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2460 | echo "$as_me:2460: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2461 | (exit $ac_status); } >/dev/null; then |
| 2462 | if test -s conftest.err; then |
| 2463 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2464 | else |
| 2465 | ac_cpp_err= |
| 2466 | fi |
| 2467 | else |
| 2468 | ac_cpp_err=yes |
| 2469 | fi |
| 2470 | if test -z "$ac_cpp_err"; then |
| 2471 | : |
| 2472 | else |
| 2473 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2474 | cat conftest.$ac_ext >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2475 | # Broken: fails on valid input. |
| 2476 | continue |
| 2477 | fi |
| 2478 | rm -f conftest.err conftest.$ac_ext |
| 2479 | |
| 2480 | # OK, works on sane cases. Now check whether non-existent headers |
| 2481 | # can be detected and how. |
| 2482 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2483 | #line 2483 "configure" |
| 2484 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2485 | #include <ac_nonexistent.h> |
| 2486 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2487 | if { (eval echo "$as_me:2487: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2488 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2489 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2490 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2491 | rm -f conftest.er1 |
| 2492 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2493 | echo "$as_me:2493: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2494 | (exit $ac_status); } >/dev/null; then |
| 2495 | if test -s conftest.err; then |
| 2496 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2497 | else |
| 2498 | ac_cpp_err= |
| 2499 | fi |
| 2500 | else |
| 2501 | ac_cpp_err=yes |
| 2502 | fi |
| 2503 | if test -z "$ac_cpp_err"; then |
| 2504 | # Broken: success on invalid input. |
| 2505 | continue |
| 2506 | else |
| 2507 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2508 | cat conftest.$ac_ext >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2509 | # Passes both tests. |
| 2510 | ac_preproc_ok=: |
| 2511 | break |
| 2512 | fi |
| 2513 | rm -f conftest.err conftest.$ac_ext |
| 2514 | |
| 2515 | done |
| 2516 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2517 | rm -f conftest.err conftest.$ac_ext |
| 2518 | if $ac_preproc_ok; then |
| 2519 | : |
| 2520 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2521 | { { echo "$as_me:2521: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2522 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2523 | { (exit 1); exit 1; }; } |
| 2524 | fi |
| 2525 | |
| 2526 | ac_ext=c |
| 2527 | ac_cpp='$CPP $CPPFLAGS' |
| 2528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2531 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2532 | echo "$as_me:2532: checking for arpa/inet.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2533 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
| 2534 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 2535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2536 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2537 | cat >conftest.$ac_ext <<_ACEOF |
| 2538 | #line 2538 "configure" |
| 2539 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2540 | #include <arpa/inet.h> |
| 2541 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2542 | if { (eval echo "$as_me:2542: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2543 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2544 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2545 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2546 | rm -f conftest.er1 |
| 2547 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2548 | echo "$as_me:2548: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2549 | (exit $ac_status); } >/dev/null; then |
| 2550 | if test -s conftest.err; then |
| 2551 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2552 | else |
| 2553 | ac_cpp_err= |
| 2554 | fi |
| 2555 | else |
| 2556 | ac_cpp_err=yes |
| 2557 | fi |
| 2558 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2559 | ac_cv_header_arpa_inet_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2560 | else |
| 2561 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2562 | cat conftest.$ac_ext >&5 |
| 2563 | ac_cv_header_arpa_inet_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2564 | fi |
| 2565 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2566 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2567 | echo "$as_me:2567: result: $ac_cv_header_arpa_inet_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2568 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2569 | if test $ac_cv_header_arpa_inet_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2570 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2571 | #define PJ_HAS_ARPA_INET_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2572 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2573 | |
| 2574 | fi |
| 2575 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2576 | echo "$as_me:2576: checking for assert.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2577 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6 |
| 2578 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 2579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2580 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2581 | cat >conftest.$ac_ext <<_ACEOF |
| 2582 | #line 2582 "configure" |
| 2583 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2584 | #include <assert.h> |
| 2585 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2586 | if { (eval echo "$as_me:2586: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2587 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2588 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2589 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2590 | rm -f conftest.er1 |
| 2591 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2592 | echo "$as_me:2592: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2593 | (exit $ac_status); } >/dev/null; then |
| 2594 | if test -s conftest.err; then |
| 2595 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2596 | else |
| 2597 | ac_cpp_err= |
| 2598 | fi |
| 2599 | else |
| 2600 | ac_cpp_err=yes |
| 2601 | fi |
| 2602 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2603 | ac_cv_header_assert_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2604 | else |
| 2605 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2606 | cat conftest.$ac_ext >&5 |
| 2607 | ac_cv_header_assert_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2608 | fi |
| 2609 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2610 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2611 | echo "$as_me:2611: result: $ac_cv_header_assert_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2612 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2613 | if test $ac_cv_header_assert_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2614 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2615 | #define PJ_HAS_ASSERT_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2616 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2617 | |
| 2618 | fi |
| 2619 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2620 | echo "$as_me:2620: checking for ctype.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2621 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6 |
| 2622 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 2623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2624 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2625 | cat >conftest.$ac_ext <<_ACEOF |
| 2626 | #line 2626 "configure" |
| 2627 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2628 | #include <ctype.h> |
| 2629 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2630 | if { (eval echo "$as_me:2630: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2631 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2632 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2633 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2634 | rm -f conftest.er1 |
| 2635 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2636 | echo "$as_me:2636: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2637 | (exit $ac_status); } >/dev/null; then |
| 2638 | if test -s conftest.err; then |
| 2639 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2640 | else |
| 2641 | ac_cpp_err= |
| 2642 | fi |
| 2643 | else |
| 2644 | ac_cpp_err=yes |
| 2645 | fi |
| 2646 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2647 | ac_cv_header_ctype_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2648 | else |
| 2649 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2650 | cat conftest.$ac_ext >&5 |
| 2651 | ac_cv_header_ctype_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2652 | fi |
| 2653 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2654 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2655 | echo "$as_me:2655: result: $ac_cv_header_ctype_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2656 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2657 | if test $ac_cv_header_ctype_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2658 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2659 | #define PJ_HAS_CTYPE_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2660 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2661 | |
| 2662 | fi |
| 2663 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2664 | echo "$as_me:2664: checking for errno.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2665 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 |
| 2666 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 2667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2668 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2669 | cat >conftest.$ac_ext <<_ACEOF |
| 2670 | #line 2670 "configure" |
| 2671 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2672 | #include <errno.h> |
| 2673 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2674 | if { (eval echo "$as_me:2674: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2675 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2676 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2677 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2678 | rm -f conftest.er1 |
| 2679 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2680 | echo "$as_me:2680: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2681 | (exit $ac_status); } >/dev/null; then |
| 2682 | if test -s conftest.err; then |
| 2683 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2684 | else |
| 2685 | ac_cpp_err= |
| 2686 | fi |
| 2687 | else |
| 2688 | ac_cpp_err=yes |
| 2689 | fi |
| 2690 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2691 | ac_cv_header_errno_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2692 | else |
| 2693 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2694 | cat conftest.$ac_ext >&5 |
| 2695 | ac_cv_header_errno_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2696 | fi |
| 2697 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2698 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2699 | echo "$as_me:2699: result: $ac_cv_header_errno_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2700 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2701 | if test $ac_cv_header_errno_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2702 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2703 | #define PJ_HAS_ERRNO_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2704 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2705 | |
| 2706 | fi |
| 2707 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2708 | echo "$as_me:2708: checking for linux/socket.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2709 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6 |
| 2710 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 2711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2712 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2713 | cat >conftest.$ac_ext <<_ACEOF |
| 2714 | #line 2714 "configure" |
| 2715 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2716 | #include <linux/socket.h> |
| 2717 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2718 | if { (eval echo "$as_me:2718: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2719 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2720 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2721 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2722 | rm -f conftest.er1 |
| 2723 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2724 | echo "$as_me:2724: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2725 | (exit $ac_status); } >/dev/null; then |
| 2726 | if test -s conftest.err; then |
| 2727 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2728 | else |
| 2729 | ac_cpp_err= |
| 2730 | fi |
| 2731 | else |
| 2732 | ac_cpp_err=yes |
| 2733 | fi |
| 2734 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2735 | ac_cv_header_linux_socket_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2736 | else |
| 2737 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2738 | cat conftest.$ac_ext >&5 |
| 2739 | ac_cv_header_linux_socket_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2740 | fi |
| 2741 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2742 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2743 | echo "$as_me:2743: result: $ac_cv_header_linux_socket_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2744 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2745 | if test $ac_cv_header_linux_socket_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2746 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2747 | #define PJ_HAS_LINUX_SOCKET_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2748 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2749 | |
| 2750 | fi |
| 2751 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2752 | echo "$as_me:2752: checking for malloc.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2753 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 |
| 2754 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 2755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2756 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2757 | cat >conftest.$ac_ext <<_ACEOF |
| 2758 | #line 2758 "configure" |
| 2759 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2760 | #include <malloc.h> |
| 2761 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2762 | if { (eval echo "$as_me:2762: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2763 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2764 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2765 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2766 | rm -f conftest.er1 |
| 2767 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2768 | echo "$as_me:2768: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2769 | (exit $ac_status); } >/dev/null; then |
| 2770 | if test -s conftest.err; then |
| 2771 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2772 | else |
| 2773 | ac_cpp_err= |
| 2774 | fi |
| 2775 | else |
| 2776 | ac_cpp_err=yes |
| 2777 | fi |
| 2778 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2779 | ac_cv_header_malloc_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2780 | else |
| 2781 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2782 | cat conftest.$ac_ext >&5 |
| 2783 | ac_cv_header_malloc_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2784 | fi |
| 2785 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2786 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2787 | echo "$as_me:2787: result: $ac_cv_header_malloc_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2788 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2789 | if test $ac_cv_header_malloc_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2790 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2791 | #define PJ_HAS_MALLOC_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2792 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2793 | |
| 2794 | fi |
| 2795 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2796 | echo "$as_me:2796: checking for netdb.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2797 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6 |
| 2798 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 2799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2800 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2801 | cat >conftest.$ac_ext <<_ACEOF |
| 2802 | #line 2802 "configure" |
| 2803 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2804 | #include <netdb.h> |
| 2805 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2806 | if { (eval echo "$as_me:2806: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2807 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2808 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2809 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2810 | rm -f conftest.er1 |
| 2811 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2812 | echo "$as_me:2812: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2813 | (exit $ac_status); } >/dev/null; then |
| 2814 | if test -s conftest.err; then |
| 2815 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2816 | else |
| 2817 | ac_cpp_err= |
| 2818 | fi |
| 2819 | else |
| 2820 | ac_cpp_err=yes |
| 2821 | fi |
| 2822 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2823 | ac_cv_header_netdb_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2824 | else |
| 2825 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2826 | cat conftest.$ac_ext >&5 |
| 2827 | ac_cv_header_netdb_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2828 | fi |
| 2829 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2830 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2831 | echo "$as_me:2831: result: $ac_cv_header_netdb_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2832 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2833 | if test $ac_cv_header_netdb_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2834 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2835 | #define PJ_HAS_NETDB_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2836 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2837 | |
| 2838 | fi |
| 2839 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2840 | echo "$as_me:2840: checking for netinet/in.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2841 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
| 2842 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 2843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2844 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2845 | cat >conftest.$ac_ext <<_ACEOF |
| 2846 | #line 2846 "configure" |
| 2847 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2848 | #include <netinet/in.h> |
| 2849 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2850 | if { (eval echo "$as_me:2850: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2851 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2852 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2853 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2854 | rm -f conftest.er1 |
| 2855 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2856 | echo "$as_me:2856: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2857 | (exit $ac_status); } >/dev/null; then |
| 2858 | if test -s conftest.err; then |
| 2859 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2860 | else |
| 2861 | ac_cpp_err= |
| 2862 | fi |
| 2863 | else |
| 2864 | ac_cpp_err=yes |
| 2865 | fi |
| 2866 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2867 | ac_cv_header_netinet_in_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2868 | else |
| 2869 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2870 | cat conftest.$ac_ext >&5 |
| 2871 | ac_cv_header_netinet_in_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2872 | fi |
| 2873 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2874 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2875 | echo "$as_me:2875: result: $ac_cv_header_netinet_in_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2876 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2877 | if test $ac_cv_header_netinet_in_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2878 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2879 | #define PJ_HAS_NETINET_IN_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2880 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2881 | |
| 2882 | fi |
| 2883 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2884 | echo "$as_me:2884: checking for setjmp.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2885 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6 |
| 2886 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 2887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2888 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2889 | cat >conftest.$ac_ext <<_ACEOF |
| 2890 | #line 2890 "configure" |
| 2891 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2892 | #include <setjmp.h> |
| 2893 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2894 | if { (eval echo "$as_me:2894: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2895 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2896 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2897 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2898 | rm -f conftest.er1 |
| 2899 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2900 | echo "$as_me:2900: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2901 | (exit $ac_status); } >/dev/null; then |
| 2902 | if test -s conftest.err; then |
| 2903 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2904 | else |
| 2905 | ac_cpp_err= |
| 2906 | fi |
| 2907 | else |
| 2908 | ac_cpp_err=yes |
| 2909 | fi |
| 2910 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2911 | ac_cv_header_setjmp_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2912 | else |
| 2913 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2914 | cat conftest.$ac_ext >&5 |
| 2915 | ac_cv_header_setjmp_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2916 | fi |
| 2917 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2918 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2919 | echo "$as_me:2919: result: $ac_cv_header_setjmp_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2920 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2921 | if test $ac_cv_header_setjmp_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2922 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2923 | #define PJ_HAS_SETJMP_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2924 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2925 | |
| 2926 | fi |
| 2927 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2928 | echo "$as_me:2928: checking for stdarg.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2929 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 |
| 2930 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 2931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2932 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2933 | cat >conftest.$ac_ext <<_ACEOF |
| 2934 | #line 2934 "configure" |
| 2935 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2936 | #include <stdarg.h> |
| 2937 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2938 | if { (eval echo "$as_me:2938: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2939 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2940 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2941 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2942 | rm -f conftest.er1 |
| 2943 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2944 | echo "$as_me:2944: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2945 | (exit $ac_status); } >/dev/null; then |
| 2946 | if test -s conftest.err; then |
| 2947 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2948 | else |
| 2949 | ac_cpp_err= |
| 2950 | fi |
| 2951 | else |
| 2952 | ac_cpp_err=yes |
| 2953 | fi |
| 2954 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2955 | ac_cv_header_stdarg_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2956 | else |
| 2957 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2958 | cat conftest.$ac_ext >&5 |
| 2959 | ac_cv_header_stdarg_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2960 | fi |
| 2961 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2962 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2963 | echo "$as_me:2963: result: $ac_cv_header_stdarg_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2964 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2965 | if test $ac_cv_header_stdarg_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2966 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2967 | #define PJ_HAS_STDARG_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2968 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2969 | |
| 2970 | fi |
| 2971 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2972 | echo "$as_me:2972: checking for stddef.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2973 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 |
| 2974 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 2975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2976 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2977 | cat >conftest.$ac_ext <<_ACEOF |
| 2978 | #line 2978 "configure" |
| 2979 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2980 | #include <stddef.h> |
| 2981 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2982 | if { (eval echo "$as_me:2982: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2983 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2984 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2985 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2986 | rm -f conftest.er1 |
| 2987 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2988 | echo "$as_me:2988: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2989 | (exit $ac_status); } >/dev/null; then |
| 2990 | if test -s conftest.err; then |
| 2991 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2992 | else |
| 2993 | ac_cpp_err= |
| 2994 | fi |
| 2995 | else |
| 2996 | ac_cpp_err=yes |
| 2997 | fi |
| 2998 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 2999 | ac_cv_header_stddef_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3000 | else |
| 3001 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3002 | cat conftest.$ac_ext >&5 |
| 3003 | ac_cv_header_stddef_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3004 | fi |
| 3005 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3006 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3007 | echo "$as_me:3007: result: $ac_cv_header_stddef_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3008 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3009 | if test $ac_cv_header_stddef_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3010 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3011 | #define PJ_HAS_STDDEF_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3012 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3013 | |
| 3014 | fi |
| 3015 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3016 | echo "$as_me:3016: checking for stdio.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3017 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6 |
| 3018 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 3019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3020 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3021 | cat >conftest.$ac_ext <<_ACEOF |
| 3022 | #line 3022 "configure" |
| 3023 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3024 | #include <stdio.h> |
| 3025 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3026 | if { (eval echo "$as_me:3026: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3027 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3028 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3029 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3030 | rm -f conftest.er1 |
| 3031 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3032 | echo "$as_me:3032: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3033 | (exit $ac_status); } >/dev/null; then |
| 3034 | if test -s conftest.err; then |
| 3035 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3036 | else |
| 3037 | ac_cpp_err= |
| 3038 | fi |
| 3039 | else |
| 3040 | ac_cpp_err=yes |
| 3041 | fi |
| 3042 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3043 | ac_cv_header_stdio_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3044 | else |
| 3045 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3046 | cat conftest.$ac_ext >&5 |
| 3047 | ac_cv_header_stdio_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3048 | fi |
| 3049 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3050 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3051 | echo "$as_me:3051: result: $ac_cv_header_stdio_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3052 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3053 | if test $ac_cv_header_stdio_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3054 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3055 | #define PJ_HAS_STDIO_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3056 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3057 | |
| 3058 | fi |
| 3059 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3060 | echo "$as_me:3060: checking for stdlib.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3061 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 |
| 3062 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 3063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3064 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3065 | cat >conftest.$ac_ext <<_ACEOF |
| 3066 | #line 3066 "configure" |
| 3067 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3068 | #include <stdlib.h> |
| 3069 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3070 | if { (eval echo "$as_me:3070: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3071 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3072 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3073 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3074 | rm -f conftest.er1 |
| 3075 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3076 | echo "$as_me:3076: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3077 | (exit $ac_status); } >/dev/null; then |
| 3078 | if test -s conftest.err; then |
| 3079 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3080 | else |
| 3081 | ac_cpp_err= |
| 3082 | fi |
| 3083 | else |
| 3084 | ac_cpp_err=yes |
| 3085 | fi |
| 3086 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3087 | ac_cv_header_stdlib_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3088 | else |
| 3089 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3090 | cat conftest.$ac_ext >&5 |
| 3091 | ac_cv_header_stdlib_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3092 | fi |
| 3093 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3094 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3095 | echo "$as_me:3095: result: $ac_cv_header_stdlib_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3096 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3097 | if test $ac_cv_header_stdlib_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3098 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3099 | #define PJ_HAS_STDLIB_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3100 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3101 | |
| 3102 | fi |
| 3103 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3104 | echo "$as_me:3104: checking for string.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3105 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 |
| 3106 | if test "${ac_cv_header_string_h+set}" = set; then |
| 3107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3108 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3109 | cat >conftest.$ac_ext <<_ACEOF |
| 3110 | #line 3110 "configure" |
| 3111 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3112 | #include <string.h> |
| 3113 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3114 | if { (eval echo "$as_me:3114: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3115 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3116 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3117 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3118 | rm -f conftest.er1 |
| 3119 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3120 | echo "$as_me:3120: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3121 | (exit $ac_status); } >/dev/null; then |
| 3122 | if test -s conftest.err; then |
| 3123 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3124 | else |
| 3125 | ac_cpp_err= |
| 3126 | fi |
| 3127 | else |
| 3128 | ac_cpp_err=yes |
| 3129 | fi |
| 3130 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3131 | ac_cv_header_string_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3132 | else |
| 3133 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3134 | cat conftest.$ac_ext >&5 |
| 3135 | ac_cv_header_string_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3136 | fi |
| 3137 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3138 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3139 | echo "$as_me:3139: result: $ac_cv_header_string_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3140 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3141 | if test $ac_cv_header_string_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3142 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3143 | #define PJ_HAS_STRING_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3144 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3145 | |
| 3146 | fi |
| 3147 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3148 | echo "$as_me:3148: checking for sys/ioctl.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3149 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6 |
| 3150 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 3151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3152 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3153 | cat >conftest.$ac_ext <<_ACEOF |
| 3154 | #line 3154 "configure" |
| 3155 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3156 | #include <sys/ioctl.h> |
| 3157 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3158 | if { (eval echo "$as_me:3158: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3159 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3160 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3161 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3162 | rm -f conftest.er1 |
| 3163 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3164 | echo "$as_me:3164: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3165 | (exit $ac_status); } >/dev/null; then |
| 3166 | if test -s conftest.err; then |
| 3167 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3168 | else |
| 3169 | ac_cpp_err= |
| 3170 | fi |
| 3171 | else |
| 3172 | ac_cpp_err=yes |
| 3173 | fi |
| 3174 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3175 | ac_cv_header_sys_ioctl_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3176 | else |
| 3177 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3178 | cat conftest.$ac_ext >&5 |
| 3179 | ac_cv_header_sys_ioctl_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3180 | fi |
| 3181 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3182 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3183 | echo "$as_me:3183: result: $ac_cv_header_sys_ioctl_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3184 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3185 | if test $ac_cv_header_sys_ioctl_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3186 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3187 | #define PJ_HAS_SYS_IOCTL_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3188 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3189 | |
| 3190 | fi |
| 3191 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3192 | echo "$as_me:3192: checking for sys/select.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3193 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6 |
| 3194 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 3195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3196 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3197 | cat >conftest.$ac_ext <<_ACEOF |
| 3198 | #line 3198 "configure" |
| 3199 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3200 | #include <sys/select.h> |
| 3201 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3202 | if { (eval echo "$as_me:3202: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3203 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3204 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3205 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3206 | rm -f conftest.er1 |
| 3207 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3208 | echo "$as_me:3208: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3209 | (exit $ac_status); } >/dev/null; then |
| 3210 | if test -s conftest.err; then |
| 3211 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3212 | else |
| 3213 | ac_cpp_err= |
| 3214 | fi |
| 3215 | else |
| 3216 | ac_cpp_err=yes |
| 3217 | fi |
| 3218 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3219 | ac_cv_header_sys_select_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3220 | else |
| 3221 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3222 | cat conftest.$ac_ext >&5 |
| 3223 | ac_cv_header_sys_select_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3224 | fi |
| 3225 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3226 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3227 | echo "$as_me:3227: result: $ac_cv_header_sys_select_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3228 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3229 | if test $ac_cv_header_sys_select_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3230 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3231 | #define PJ_HAS_SYS_SELECT_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3232 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3233 | |
| 3234 | fi |
| 3235 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3236 | echo "$as_me:3236: checking for sys/socket.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3237 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
| 3238 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 3239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3240 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3241 | cat >conftest.$ac_ext <<_ACEOF |
| 3242 | #line 3242 "configure" |
| 3243 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3244 | #include <sys/socket.h> |
| 3245 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3246 | if { (eval echo "$as_me:3246: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3247 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3248 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3249 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3250 | rm -f conftest.er1 |
| 3251 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3252 | echo "$as_me:3252: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3253 | (exit $ac_status); } >/dev/null; then |
| 3254 | if test -s conftest.err; then |
| 3255 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3256 | else |
| 3257 | ac_cpp_err= |
| 3258 | fi |
| 3259 | else |
| 3260 | ac_cpp_err=yes |
| 3261 | fi |
| 3262 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3263 | ac_cv_header_sys_socket_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3264 | else |
| 3265 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3266 | cat conftest.$ac_ext >&5 |
| 3267 | ac_cv_header_sys_socket_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3268 | fi |
| 3269 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3270 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3271 | echo "$as_me:3271: result: $ac_cv_header_sys_socket_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3272 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3273 | if test $ac_cv_header_sys_socket_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3274 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3275 | #define PJ_HAS_SYS_SOCKET_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3276 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3277 | |
| 3278 | fi |
| 3279 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3280 | echo "$as_me:3280: checking for sys/time.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3281 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6 |
| 3282 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 3283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3284 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3285 | cat >conftest.$ac_ext <<_ACEOF |
| 3286 | #line 3286 "configure" |
| 3287 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3288 | #include <sys/time.h> |
| 3289 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3290 | if { (eval echo "$as_me:3290: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3291 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3292 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3293 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3294 | rm -f conftest.er1 |
| 3295 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3296 | echo "$as_me:3296: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3297 | (exit $ac_status); } >/dev/null; then |
| 3298 | if test -s conftest.err; then |
| 3299 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3300 | else |
| 3301 | ac_cpp_err= |
| 3302 | fi |
| 3303 | else |
| 3304 | ac_cpp_err=yes |
| 3305 | fi |
| 3306 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3307 | ac_cv_header_sys_time_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3308 | else |
| 3309 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3310 | cat conftest.$ac_ext >&5 |
| 3311 | ac_cv_header_sys_time_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3312 | fi |
| 3313 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3314 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3315 | echo "$as_me:3315: result: $ac_cv_header_sys_time_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3316 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3317 | if test $ac_cv_header_sys_time_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3318 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3319 | #define PJ_HAS_SYS_TIME_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3320 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3321 | |
| 3322 | fi |
| 3323 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3324 | echo "$as_me:3324: checking for sys/timeb.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3325 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6 |
| 3326 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 3327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3328 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3329 | cat >conftest.$ac_ext <<_ACEOF |
| 3330 | #line 3330 "configure" |
| 3331 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3332 | #include <sys/timeb.h> |
| 3333 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3334 | if { (eval echo "$as_me:3334: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3335 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3336 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3337 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3338 | rm -f conftest.er1 |
| 3339 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3340 | echo "$as_me:3340: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3341 | (exit $ac_status); } >/dev/null; then |
| 3342 | if test -s conftest.err; then |
| 3343 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3344 | else |
| 3345 | ac_cpp_err= |
| 3346 | fi |
| 3347 | else |
| 3348 | ac_cpp_err=yes |
| 3349 | fi |
| 3350 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3351 | ac_cv_header_sys_timeb_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3352 | else |
| 3353 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3354 | cat conftest.$ac_ext >&5 |
| 3355 | ac_cv_header_sys_timeb_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3356 | fi |
| 3357 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3358 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3359 | echo "$as_me:3359: result: $ac_cv_header_sys_timeb_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3360 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3361 | if test $ac_cv_header_sys_timeb_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3362 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3363 | #define PJ_HAS_SYS_TIMEB_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3364 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3365 | |
| 3366 | fi |
| 3367 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3368 | echo "$as_me:3368: checking for sys/types.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3369 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
| 3370 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 3371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3372 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3373 | cat >conftest.$ac_ext <<_ACEOF |
| 3374 | #line 3374 "configure" |
| 3375 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3376 | #include <sys/types.h> |
| 3377 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3378 | if { (eval echo "$as_me:3378: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3379 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3380 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3381 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3382 | rm -f conftest.er1 |
| 3383 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3384 | echo "$as_me:3384: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3385 | (exit $ac_status); } >/dev/null; then |
| 3386 | if test -s conftest.err; then |
| 3387 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3388 | else |
| 3389 | ac_cpp_err= |
| 3390 | fi |
| 3391 | else |
| 3392 | ac_cpp_err=yes |
| 3393 | fi |
| 3394 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3395 | ac_cv_header_sys_types_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3396 | else |
| 3397 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3398 | cat conftest.$ac_ext >&5 |
| 3399 | ac_cv_header_sys_types_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3400 | fi |
| 3401 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3402 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3403 | echo "$as_me:3403: result: $ac_cv_header_sys_types_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3404 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3405 | if test $ac_cv_header_sys_types_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3406 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3407 | #define PJ_HAS_SYS_TYPES_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3408 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3409 | |
| 3410 | fi |
| 3411 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3412 | echo "$as_me:3412: checking for time.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3413 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6 |
| 3414 | if test "${ac_cv_header_time_h+set}" = set; then |
| 3415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3416 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3417 | cat >conftest.$ac_ext <<_ACEOF |
| 3418 | #line 3418 "configure" |
| 3419 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3420 | #include <time.h> |
| 3421 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3422 | if { (eval echo "$as_me:3422: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3423 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3424 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3425 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3426 | rm -f conftest.er1 |
| 3427 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3428 | echo "$as_me:3428: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3429 | (exit $ac_status); } >/dev/null; then |
| 3430 | if test -s conftest.err; then |
| 3431 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3432 | else |
| 3433 | ac_cpp_err= |
| 3434 | fi |
| 3435 | else |
| 3436 | ac_cpp_err=yes |
| 3437 | fi |
| 3438 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3439 | ac_cv_header_time_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3440 | else |
| 3441 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3442 | cat conftest.$ac_ext >&5 |
| 3443 | ac_cv_header_time_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3444 | fi |
| 3445 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3446 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3447 | echo "$as_me:3447: result: $ac_cv_header_time_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3448 | echo "${ECHO_T}$ac_cv_header_time_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3449 | if test $ac_cv_header_time_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3450 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3451 | #define PJ_HAS_TIME_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3452 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3453 | |
| 3454 | fi |
| 3455 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3456 | echo "$as_me:3456: checking for unistd.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3457 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 |
| 3458 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 3459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3460 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3461 | cat >conftest.$ac_ext <<_ACEOF |
| 3462 | #line 3462 "configure" |
| 3463 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3464 | #include <unistd.h> |
| 3465 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3466 | if { (eval echo "$as_me:3466: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3467 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3468 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3469 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3470 | rm -f conftest.er1 |
| 3471 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3472 | echo "$as_me:3472: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3473 | (exit $ac_status); } >/dev/null; then |
| 3474 | if test -s conftest.err; then |
| 3475 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3476 | else |
| 3477 | ac_cpp_err= |
| 3478 | fi |
| 3479 | else |
| 3480 | ac_cpp_err=yes |
| 3481 | fi |
| 3482 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3483 | ac_cv_header_unistd_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3484 | else |
| 3485 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3486 | cat conftest.$ac_ext >&5 |
| 3487 | ac_cv_header_unistd_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3488 | fi |
| 3489 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3490 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3491 | echo "$as_me:3491: result: $ac_cv_header_unistd_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3492 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3493 | if test $ac_cv_header_unistd_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3494 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3495 | #define PJ_HAS_UNISTD_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3496 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3497 | |
| 3498 | fi |
| 3499 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3500 | echo "$as_me:3500: checking for mswsock.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3501 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6 |
| 3502 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 3503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3504 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3505 | cat >conftest.$ac_ext <<_ACEOF |
| 3506 | #line 3506 "configure" |
| 3507 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3508 | #include <mswsock.h> |
| 3509 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3510 | if { (eval echo "$as_me:3510: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3511 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3512 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3513 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3514 | rm -f conftest.er1 |
| 3515 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3516 | echo "$as_me:3516: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3517 | (exit $ac_status); } >/dev/null; then |
| 3518 | if test -s conftest.err; then |
| 3519 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3520 | else |
| 3521 | ac_cpp_err= |
| 3522 | fi |
| 3523 | else |
| 3524 | ac_cpp_err=yes |
| 3525 | fi |
| 3526 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3527 | ac_cv_header_mswsock_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3528 | else |
| 3529 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3530 | cat conftest.$ac_ext >&5 |
| 3531 | ac_cv_header_mswsock_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3532 | fi |
| 3533 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3534 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3535 | echo "$as_me:3535: result: $ac_cv_header_mswsock_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3536 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3537 | if test $ac_cv_header_mswsock_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3538 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3539 | #define PJ_HAS_MSWSOCK_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3540 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3541 | |
| 3542 | fi |
| 3543 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3544 | echo "$as_me:3544: checking for winsock.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3545 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6 |
| 3546 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 3547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3548 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3549 | cat >conftest.$ac_ext <<_ACEOF |
| 3550 | #line 3550 "configure" |
| 3551 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3552 | #include <winsock.h> |
| 3553 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3554 | if { (eval echo "$as_me:3554: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3555 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3556 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3557 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3558 | rm -f conftest.er1 |
| 3559 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3560 | echo "$as_me:3560: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3561 | (exit $ac_status); } >/dev/null; then |
| 3562 | if test -s conftest.err; then |
| 3563 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3564 | else |
| 3565 | ac_cpp_err= |
| 3566 | fi |
| 3567 | else |
| 3568 | ac_cpp_err=yes |
| 3569 | fi |
| 3570 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3571 | ac_cv_header_winsock_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3572 | else |
| 3573 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3574 | cat conftest.$ac_ext >&5 |
| 3575 | ac_cv_header_winsock_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3576 | fi |
| 3577 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3578 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3579 | echo "$as_me:3579: result: $ac_cv_header_winsock_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3580 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3581 | if test $ac_cv_header_winsock_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3582 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3583 | #define PJ_HAS_WINSOCK_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3584 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3585 | |
| 3586 | fi |
| 3587 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3588 | echo "$as_me:3588: checking for winsock2.h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3589 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6 |
| 3590 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 3591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3592 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3593 | cat >conftest.$ac_ext <<_ACEOF |
| 3594 | #line 3594 "configure" |
| 3595 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3596 | #include <winsock2.h> |
| 3597 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3598 | if { (eval echo "$as_me:3598: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3599 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3600 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3601 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3602 | rm -f conftest.er1 |
| 3603 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3604 | echo "$as_me:3604: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3605 | (exit $ac_status); } >/dev/null; then |
| 3606 | if test -s conftest.err; then |
| 3607 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3608 | else |
| 3609 | ac_cpp_err= |
| 3610 | fi |
| 3611 | else |
| 3612 | ac_cpp_err=yes |
| 3613 | fi |
| 3614 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3615 | ac_cv_header_winsock2_h=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3616 | else |
| 3617 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3618 | cat conftest.$ac_ext >&5 |
| 3619 | ac_cv_header_winsock2_h=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3620 | fi |
| 3621 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3622 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3623 | echo "$as_me:3623: result: $ac_cv_header_winsock2_h" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3624 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3625 | if test $ac_cv_header_winsock2_h = yes; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3626 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3627 | #define PJ_HAS_WINSOCK2_H 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3628 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3629 | |
| 3630 | fi |
| 3631 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3632 | echo "$as_me:3632: result: Setting PJ_OS_NAME to $target" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3633 | echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3634 | cat >>confdefs.h <<EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3635 | #define PJ_OS_NAME "$target" |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3636 | EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3637 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3638 | echo "$as_me:3638: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3639 | echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3640 | cat >>confdefs.h <<\EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3641 | #define PJ_HAS_ERRNO_VAR 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3642 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3643 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3644 | echo "$as_me:3644: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3645 | echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3646 | cat >>confdefs.h <<\EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3647 | #define PJ_HAS_HIGH_RES_TIMER 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3648 | EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3649 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3650 | echo "$as_me:3650: result: Setting PJ_HAS_MALLOC to 1" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3651 | echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3652 | cat >>confdefs.h <<\EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3653 | #define PJ_HAS_MALLOC 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3654 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3655 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3656 | echo "$as_me:3656: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3657 | echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3658 | cat >>confdefs.h <<\EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3659 | #define PJ_NATIVE_STRING_IS_UNICODE 0 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3660 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3661 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3662 | echo "$as_me:3662: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3663 | echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3664 | cat >>confdefs.h <<\EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3665 | #define PJ_ATOMIC_VALUE_TYPE long |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3666 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3667 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3668 | echo "$as_me:3668: checking if inet_aton is available" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3669 | echo $ECHO_N "checking if inet_aton is available... $ECHO_C" >&6 |
| 3670 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3671 | #line 3671 "configure" |
| 3672 | #include "confdefs.h" |
| 3673 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3674 | int |
| 3675 | main () |
| 3676 | { |
| 3677 | inet_aton(0, 0); |
| 3678 | ; |
| 3679 | return 0; |
| 3680 | } |
| 3681 | _ACEOF |
| 3682 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3683 | if { (eval echo "$as_me:3683: \"$ac_compile\"") >&5 |
| 3684 | (eval $ac_compile) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3685 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3686 | echo "$as_me:3686: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3687 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3688 | { ac_try='test -s conftest.$ac_objext' |
| 3689 | { (eval echo "$as_me:3689: \"$ac_try\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3690 | (eval $ac_try) 2>&5 |
| 3691 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3692 | echo "$as_me:3692: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3693 | (exit $ac_status); }; }; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3694 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3695 | #define PJ_SOCK_HAS_INET_ATON 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3696 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3697 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3698 | echo "$as_me:3698: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3699 | echo "${ECHO_T}yes" >&6 |
| 3700 | else |
| 3701 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3702 | cat conftest.$ac_ext >&5 |
| 3703 | echo "$as_me:3703: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3704 | echo "${ECHO_T}no" >&6 |
| 3705 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3706 | rm -f conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3707 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3708 | echo "$as_me:3708: checking if sockaddr_in has sin_len member" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3709 | echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6 |
| 3710 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3711 | #line 3711 "configure" |
| 3712 | #include "confdefs.h" |
| 3713 | #include <sys/types.h> |
| 3714 | #include <sys/socket.h> |
| 3715 | #include <netinet/in.h> |
| 3716 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3717 | int |
| 3718 | main () |
| 3719 | { |
| 3720 | struct sockaddr_in a; a.sin_len=0; |
| 3721 | ; |
| 3722 | return 0; |
| 3723 | } |
| 3724 | _ACEOF |
| 3725 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3726 | if { (eval echo "$as_me:3726: \"$ac_compile\"") >&5 |
| 3727 | (eval $ac_compile) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3728 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3729 | echo "$as_me:3729: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3730 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3731 | { ac_try='test -s conftest.$ac_objext' |
| 3732 | { (eval echo "$as_me:3732: \"$ac_try\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3733 | (eval $ac_try) 2>&5 |
| 3734 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3735 | echo "$as_me:3735: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3736 | (exit $ac_status); }; }; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3737 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3738 | #define PJ_SOCKADDR_HAS_LEN 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3739 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3740 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3741 | echo "$as_me:3741: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3742 | echo "${ECHO_T}yes" >&6 |
| 3743 | else |
| 3744 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3745 | cat conftest.$ac_ext >&5 |
| 3746 | echo "$as_me:3746: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3747 | echo "${ECHO_T}no" >&6 |
| 3748 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3749 | rm -f conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3750 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3751 | echo "$as_me:3751: checking if socklen_t is available" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 3752 | echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6 |
| 3753 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3754 | #line 3754 "configure" |
| 3755 | #include "confdefs.h" |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 3756 | #include <unistd.h> |
| 3757 | int |
| 3758 | main () |
| 3759 | { |
| 3760 | socklen_t xxx = 0; |
| 3761 | ; |
| 3762 | return 0; |
| 3763 | } |
| 3764 | _ACEOF |
| 3765 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3766 | if { (eval echo "$as_me:3766: \"$ac_compile\"") >&5 |
| 3767 | (eval $ac_compile) 2>&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 3768 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3769 | echo "$as_me:3769: \$? = $ac_status" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 3770 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3771 | { ac_try='test -s conftest.$ac_objext' |
| 3772 | { (eval echo "$as_me:3772: \"$ac_try\"") >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 3773 | (eval $ac_try) 2>&5 |
| 3774 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3775 | echo "$as_me:3775: \$? = $ac_status" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 3776 | (exit $ac_status); }; }; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3777 | cat >>confdefs.h <<\EOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 3778 | #define PJ_HAS_SOCKLEN_T 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3779 | EOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 3780 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3781 | echo "$as_me:3781: result: yes" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 3782 | echo "${ECHO_T}yes" >&6 |
| 3783 | else |
| 3784 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3785 | cat conftest.$ac_ext >&5 |
| 3786 | echo "$as_me:3786: result: no" >&5 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 3787 | echo "${ECHO_T}no" >&6 |
| 3788 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3789 | rm -f conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 3790 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3791 | echo "$as_me:3791: checking if SO_ERROR is available" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3792 | echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6 |
| 3793 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3794 | #line 3794 "configure" |
| 3795 | #include "confdefs.h" |
| 3796 | #include <sys/types.h> |
| 3797 | #include <sys/socket.h> |
| 3798 | #include <netinet/in.h> |
| 3799 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3800 | int |
| 3801 | main () |
| 3802 | { |
| 3803 | int i=SO_ERROR; |
| 3804 | ; |
| 3805 | return 0; |
| 3806 | } |
| 3807 | _ACEOF |
| 3808 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3809 | if { (eval echo "$as_me:3809: \"$ac_compile\"") >&5 |
| 3810 | (eval $ac_compile) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3811 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3812 | echo "$as_me:3812: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3813 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3814 | { ac_try='test -s conftest.$ac_objext' |
| 3815 | { (eval echo "$as_me:3815: \"$ac_try\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3816 | (eval $ac_try) 2>&5 |
| 3817 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3818 | echo "$as_me:3818: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3819 | (exit $ac_status); }; }; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3820 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3821 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3822 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3823 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3824 | echo "$as_me:3824: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3825 | echo "${ECHO_T}yes" >&6 |
| 3826 | else |
| 3827 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3828 | cat conftest.$ac_ext >&5 |
| 3829 | echo "$as_me:3829: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3830 | echo "${ECHO_T}no" >&6 |
| 3831 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3832 | rm -f conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3833 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3834 | echo "$as_me:3834: checking if pthread_rwlock_t is available" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3835 | echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6 |
| 3836 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3837 | #line 3837 "configure" |
| 3838 | #include "confdefs.h" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3839 | #include <pthread.h> |
| 3840 | int |
| 3841 | main () |
| 3842 | { |
| 3843 | pthread_rwlock_t *x; |
| 3844 | ; |
| 3845 | return 0; |
| 3846 | } |
| 3847 | _ACEOF |
| 3848 | rm -f conftest.$ac_objext |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3849 | if { (eval echo "$as_me:3849: \"$ac_compile\"") >&5 |
| 3850 | (eval $ac_compile) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3851 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3852 | echo "$as_me:3852: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3853 | (exit $ac_status); } && |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3854 | { ac_try='test -s conftest.$ac_objext' |
| 3855 | { (eval echo "$as_me:3855: \"$ac_try\"") >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3856 | (eval $ac_try) 2>&5 |
| 3857 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3858 | echo "$as_me:3858: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3859 | (exit $ac_status); }; }; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3860 | cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3861 | #define PJ_EMULATE_RWMUTEX 0 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3862 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3863 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3864 | echo "$as_me:3864: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3865 | echo "${ECHO_T}yes" >&6 |
| 3866 | else |
| 3867 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3868 | cat conftest.$ac_ext >&5 |
| 3869 | cat >>confdefs.h <<\EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3870 | #define PJ_EMULATE_RWMUTEX 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3871 | EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3872 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3873 | echo "$as_me:3873: result: no" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3874 | echo "${ECHO_T}no" >&6 |
| 3875 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3876 | rm -f conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3877 | |
| 3878 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3879 | *darwin*) |
| 3880 | ac_pjmedia_snd=pa_darwinos |
| 3881 | echo "$as_me:3881: result: Checking sound device backend... coreaudio" >&5 |
| 3882 | echo "${ECHO_T}Checking sound device backend... coreaudio" >&6 |
| 3883 | LIBS="$LIBS -framework CoreAudio" |
| 3884 | ;; |
| 3885 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3886 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3887 | echo "$as_me:3887: result: Checking sound device backend... win32 sound" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3888 | echo "${ECHO_T}Checking sound device backend... win32 sound" >&6 |
| 3889 | ;; |
| 3890 | *rtems*) |
| 3891 | ac_pjmedia_snd=null |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3892 | echo "$as_me:3892: result: Checking sound device backend... null sound" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3893 | echo "${ECHO_T}Checking sound device backend... null sound" >&6 |
| 3894 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3895 | *) |
| 3896 | ac_pjmedia_snd=pa_unix |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3897 | echo "$as_me:3897: checking for alsa/version.h" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3898 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6 |
| 3899 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 3900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3901 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3902 | cat >conftest.$ac_ext <<_ACEOF |
| 3903 | #line 3903 "configure" |
| 3904 | #include "confdefs.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3905 | #include <alsa/version.h> |
| 3906 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3907 | if { (eval echo "$as_me:3907: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3908 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3909 | ac_status=$? |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3910 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3911 | rm -f conftest.er1 |
| 3912 | cat conftest.err >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3913 | echo "$as_me:3913: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3914 | (exit $ac_status); } >/dev/null; then |
| 3915 | if test -s conftest.err; then |
| 3916 | ac_cpp_err=$ac_c_preproc_warn_flag |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3917 | else |
| 3918 | ac_cpp_err= |
| 3919 | fi |
| 3920 | else |
| 3921 | ac_cpp_err=yes |
| 3922 | fi |
| 3923 | if test -z "$ac_cpp_err"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3924 | ac_cv_header_alsa_version_h=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3925 | else |
| 3926 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3927 | cat conftest.$ac_ext >&5 |
| 3928 | ac_cv_header_alsa_version_h=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3929 | fi |
| 3930 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3931 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3932 | echo "$as_me:3932: result: $ac_cv_header_alsa_version_h" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3933 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3934 | if test $ac_cv_header_alsa_version_h = yes; then |
| 3935 | ac_pa_use_alsa=1 |
| 3936 | |
| 3937 | LIBS="$LIBS -lasound" |
| 3938 | |
| 3939 | else |
| 3940 | ac_pa_use_alsa=0 |
| 3941 | |
| 3942 | fi |
| 3943 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3944 | echo "$as_me:3944: result: Checking sound device backend... unix" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3945 | echo "${ECHO_T}Checking sound device backend... unix" >&6 |
| 3946 | ;; |
| 3947 | esac |
| 3948 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3949 | # Check whether --enable-small-filter or --disable-small-filter was given. |
| 3950 | if test "${enable_small_filter+set}" = set; then |
| 3951 | enableval="$enable_small_filter" |
| 3952 | if test "$enable_small_filter" = "no"; then |
| 3953 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3954 | echo "$as_me:3954: result: Checking if small filter is disabled... yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3955 | echo "${ECHO_T}Checking if small filter is disabled... yes" >&6 |
| 3956 | fi |
| 3957 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3958 | echo "$as_me:3958: result: Checking if small filter is disabled... no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3959 | echo "${ECHO_T}Checking if small filter is disabled... no" >&6 |
| 3960 | fi; |
| 3961 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3962 | # Check whether --enable-large-filter or --disable-large-filter was given. |
| 3963 | if test "${enable_large_filter+set}" = set; then |
| 3964 | enableval="$enable_large_filter" |
| 3965 | if test "$enable_large_filter" = "no"; then |
| 3966 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3967 | echo "$as_me:3967: result: Checking if large filter is disabled... yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3968 | echo "${ECHO_T}Checking if large filter is disabled... yes" >&6 |
| 3969 | fi |
| 3970 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3971 | echo "$as_me:3971: result: Checking if large filter is disabled... no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3972 | echo "${ECHO_T}Checking if large filter is disabled... no" >&6 |
| 3973 | fi; |
| 3974 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3975 | # Check whether --enable-g711-plc or --disable-g711-plc was given. |
| 3976 | if test "${enable_g711_plc+set}" = set; then |
| 3977 | enableval="$enable_g711_plc" |
| 3978 | if test "$enable_g711_plc" = "no"; then |
| 3979 | ac_no_g711_plc='-DPJMEDIA_HAS_G711_PLC=0' |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3980 | echo "$as_me:3980: result: Checking if G.711 Annex A PLC is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3981 | echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...yes" >&6 |
| 3982 | fi |
| 3983 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3984 | echo "$as_me:3984: result: Checking if G.711 Annex A PLC is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3985 | echo "${ECHO_T}Checking if G.711 Annex A PLC is disabled...no" >&6 |
| 3986 | fi; |
| 3987 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3988 | # Check whether --enable-speex-aec or --disable-speex-aec was given. |
| 3989 | if test "${enable_speex_aec+set}" = set; then |
| 3990 | enableval="$enable_speex_aec" |
| 3991 | if test "$enable_speex_aec" = "no"; then |
| 3992 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3993 | echo "$as_me:3993: result: Checking if Speex AEC is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3994 | echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6 |
| 3995 | fi |
| 3996 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 3997 | echo "$as_me:3997: result: Checking if Speex AEC is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3998 | echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6 |
| 3999 | fi; |
| 4000 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4001 | # Check whether --enable-g711-codec or --disable-g711-codec was given. |
| 4002 | if test "${enable_g711_codec+set}" = set; then |
| 4003 | enableval="$enable_g711_codec" |
| 4004 | if test "$enable_g711_codec" = "no"; then |
| 4005 | ac_no_g711_codec=1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4006 | echo "$as_me:4006: result: Checking if G.711 codec is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4007 | echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6 |
| 4008 | fi |
| 4009 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4010 | echo "$as_me:4010: result: Checking if G.711 codec is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4011 | echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6 |
| 4012 | fi; |
| 4013 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4014 | # Check whether --enable-l16-codec or --disable-l16-codec was given. |
| 4015 | if test "${enable_l16_codec+set}" = set; then |
| 4016 | enableval="$enable_l16_codec" |
| 4017 | if test "$enable_l16_codec" = "no"; then |
| 4018 | ac_no_l16_codec=1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4019 | echo "$as_me:4019: result: Checking if L16 codecs are disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4020 | echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6 |
| 4021 | fi |
| 4022 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4023 | echo "$as_me:4023: result: Checking if G.711 codec is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4024 | echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6 |
| 4025 | fi; |
| 4026 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4027 | # Check whether --enable-gsm-codec or --disable-gsm-codec was given. |
| 4028 | if test "${enable_gsm_codec+set}" = set; then |
| 4029 | enableval="$enable_gsm_codec" |
| 4030 | if test "$enable_gsm_codec" = "no"; then |
| 4031 | ac_no_gsm_codec=1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4032 | echo "$as_me:4032: result: Checking if GSM codec is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4033 | echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6 |
| 4034 | fi |
| 4035 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4036 | echo "$as_me:4036: result: Checking if GSM codec is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4037 | echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6 |
| 4038 | fi; |
| 4039 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4040 | # Check whether --enable-speex-codec or --disable-speex-codec was given. |
| 4041 | if test "${enable_speex_codec+set}" = set; then |
| 4042 | enableval="$enable_speex_codec" |
| 4043 | if test "$enable_speex_codec" = "no"; then |
| 4044 | ac_no_speex_codec=1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4045 | echo "$as_me:4045: result: Checking if Speex codec is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4046 | echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6 |
| 4047 | fi |
| 4048 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4049 | echo "$as_me:4049: result: Checking if Speex codec is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4050 | echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6 |
| 4051 | fi; |
| 4052 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4053 | # Check whether --enable-ilbc-codec or --disable-ilbc-codec was given. |
| 4054 | if test "${enable_ilbc_codec+set}" = set; then |
| 4055 | enableval="$enable_ilbc_codec" |
| 4056 | if test "$enable_ilbc_codec" = "no"; then |
| 4057 | ac_no_ilbc_codec=1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4058 | echo "$as_me:4058: result: Checking if iLBC codec is disabled...yes" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4059 | echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6 |
| 4060 | fi |
| 4061 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4062 | echo "$as_me:4062: result: Checking if iLBC codec is disabled...no" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4063 | echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6 |
| 4064 | fi; |
| 4065 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4066 | echo "$as_me:4066: checking if select() needs correct nfds" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4067 | echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4068 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4069 | *rtems*) cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4070 | #define PJ_SELECT_NEEDS_NFDS 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4071 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4072 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4073 | echo "$as_me:4073: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4074 | echo "${ECHO_T}yes" >&6 |
| 4075 | ;; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4076 | *) cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4077 | #define PJ_SELECT_NEEDS_NFDS 0 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4078 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4079 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4080 | echo "$as_me:4080: result: no (default)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4081 | echo "${ECHO_T}no (default)" >&6 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4082 | echo "$as_me:4082: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4083 | echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6 |
| 4084 | ;; |
| 4085 | esac |
| 4086 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4087 | echo "$as_me:4087: checking if pj_thread_create() should enforce stack size" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4088 | echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6 |
| 4089 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4090 | *rtems*) cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4091 | #define PJ_THREAD_SET_STACK_SIZE 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4092 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4093 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4094 | echo "$as_me:4094: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4095 | echo "${ECHO_T}yes" >&6 |
| 4096 | ;; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4097 | *) cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4098 | #define PJ_THREAD_SET_STACK_SIZE 0 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4099 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4100 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4101 | echo "$as_me:4101: result: no (default)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4102 | echo "${ECHO_T}no (default)" >&6 |
| 4103 | ;; |
| 4104 | esac |
| 4105 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4106 | echo "$as_me:4106: checking if pj_thread_create() should allocate stack" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4107 | echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6 |
| 4108 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4109 | *rtems*) cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4110 | #define PJ_THREAD_ALLOCATE_STACK 1 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4111 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4112 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4113 | echo "$as_me:4113: result: yes" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4114 | echo "${ECHO_T}yes" >&6 |
| 4115 | ;; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4116 | *) cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4117 | #define PJ_THREAD_ALLOCATE_STACK 0 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4118 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4119 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4120 | echo "$as_me:4120: result: no (default)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4121 | echo "${ECHO_T}no (default)" >&6 |
| 4122 | ;; |
| 4123 | esac |
| 4124 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4125 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4126 | *) cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4127 | #define PJ_BLOCKING_ERROR_VAL EAGAIN |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4128 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4129 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4130 | echo "$as_me:4130: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4131 | echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6 |
| 4132 | ;; |
| 4133 | esac |
| 4134 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4135 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4136 | *) cat >>confdefs.h <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4137 | #define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4138 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4139 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4140 | echo "$as_me:4140: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4141 | echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6 |
| 4142 | ;; |
| 4143 | esac |
| 4144 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4145 | if test "$build" = "$host"; then |
| 4146 | ac_cross_compile= |
| 4147 | else |
| 4148 | ac_cross_compile=${host}- |
| 4149 | fi |
| 4150 | ac_linux_poll=select |
| 4151 | |
| 4152 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4153 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4154 | case $target in |
| 4155 | *rtems*) |
| 4156 | ac_main_obj=main_rtems.o |
| 4157 | ;; |
| 4158 | *) |
| 4159 | ac_main_obj=main.o |
| 4160 | ;; |
| 4161 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4162 | |
| 4163 | cat >confcache <<\_ACEOF |
| 4164 | # This file is a shell script that caches the results of configure |
| 4165 | # tests run on this system so they can be shared between configure |
| 4166 | # scripts and configure runs, see configure's option --config-cache. |
| 4167 | # It is not useful on other systems. If it contains results you don't |
| 4168 | # want to keep, you may remove or edit it. |
| 4169 | # |
| 4170 | # config.status only pays attention to the cache file if you give it |
| 4171 | # the --recheck option to rerun configure. |
| 4172 | # |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4173 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4174 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 4175 | # following values. |
| 4176 | |
| 4177 | _ACEOF |
| 4178 | |
| 4179 | # The following way of writing the cache mishandles newlines in values, |
| 4180 | # but we know of no workaround that is simple, portable, and efficient. |
| 4181 | # So, don't put newlines in cache variables' values. |
| 4182 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 4183 | # and sets the high bit in the cache file unless we assign to the vars. |
| 4184 | { |
| 4185 | (set) 2>&1 | |
| 4186 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 4187 | *ac_space=\ *) |
| 4188 | # `set' does not quote correctly, so add quotes (double-quote |
| 4189 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 4190 | sed -n \ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4191 | "s/'/'\\\\''/g; |
| 4192 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4193 | ;; |
| 4194 | *) |
| 4195 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 4196 | sed -n \ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4197 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4198 | ;; |
| 4199 | esac; |
| 4200 | } | |
| 4201 | sed ' |
| 4202 | t clear |
| 4203 | : clear |
| 4204 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 4205 | t end |
| 4206 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 4207 | : end' >>confcache |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4208 | if cmp -s $cache_file confcache; then :; else |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4209 | if test -w $cache_file; then |
| 4210 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 4211 | cat confcache >$cache_file |
| 4212 | else |
| 4213 | echo "not updating unwritable cache $cache_file" |
| 4214 | fi |
| 4215 | fi |
| 4216 | rm -f confcache |
| 4217 | |
| 4218 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 4219 | # Let make expand exec_prefix. |
| 4220 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 4221 | |
| 4222 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 4223 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 4224 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 4225 | # (actually we leave an empty line to preserve line numbers). |
| 4226 | if test "x$srcdir" = x.; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4227 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4228 | s/:*\$(srcdir):*/:/; |
| 4229 | s/:*\${srcdir}:*/:/; |
| 4230 | s/:*@srcdir@:*/:/; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4231 | s/^\([^=]*=[ ]*\):*/\1/; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4232 | s/:*$//; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4233 | s/^[^=]*=[ ]*$//; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4234 | }' |
| 4235 | fi |
| 4236 | |
| 4237 | DEFS=-DHAVE_CONFIG_H |
| 4238 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4239 | : ${CONFIG_STATUS=./config.status} |
| 4240 | ac_clean_files_save=$ac_clean_files |
| 4241 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4242 | { echo "$as_me:4242: creating $CONFIG_STATUS" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4243 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 4244 | cat >$CONFIG_STATUS <<_ACEOF |
| 4245 | #! $SHELL |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4246 | # Generated automatically by configure. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4247 | # Run this file to recreate the current configuration. |
| 4248 | # Compiler output produced by configure, useful for debugging |
| 4249 | # configure, is in config.log if it exists. |
| 4250 | |
| 4251 | debug=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4252 | SHELL=\${CONFIG_SHELL-$SHELL} |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4253 | ac_cs_invocation="\$0 \$@" |
| 4254 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4255 | _ACEOF |
| 4256 | |
| 4257 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4258 | # Be Bourne compatible |
| 4259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 4260 | emulate sh |
| 4261 | NULLCMD=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4262 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 4263 | set -o posix |
| 4264 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4265 | |
| 4266 | # Name of the executable. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4267 | as_me=`echo "$0" |sed 's,.*[\\/],,'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4268 | |
| 4269 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 4270 | as_expr=expr |
| 4271 | else |
| 4272 | as_expr=false |
| 4273 | fi |
| 4274 | |
| 4275 | rm -f conf$$ conf$$.exe conf$$.file |
| 4276 | echo >conf$$.file |
| 4277 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 4278 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 4279 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 4280 | if test -f conf$$.exe; then |
| 4281 | # Don't use ln at all; we don't have any links |
| 4282 | as_ln_s='cp -p' |
| 4283 | else |
| 4284 | as_ln_s='ln -s' |
| 4285 | fi |
| 4286 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 4287 | as_ln_s=ln |
| 4288 | else |
| 4289 | as_ln_s='cp -p' |
| 4290 | fi |
| 4291 | rm -f conf$$ conf$$.exe conf$$.file |
| 4292 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4293 | as_executable_p="test -f" |
| 4294 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4295 | # Support unset when possible. |
| 4296 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 4297 | as_unset=unset |
| 4298 | else |
| 4299 | as_unset=false |
| 4300 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4301 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4302 | # NLS nuisances. |
| 4303 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
| 4304 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
| 4305 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
| 4306 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
| 4307 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
| 4308 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
| 4309 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
| 4310 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4311 | |
| 4312 | # IFS |
| 4313 | # We need space, tab and new line, in precisely that order. |
| 4314 | as_nl=' |
| 4315 | ' |
| 4316 | IFS=" $as_nl" |
| 4317 | |
| 4318 | # CDPATH. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4319 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4320 | |
| 4321 | exec 6>&1 |
| 4322 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4323 | _ACEOF |
| 4324 | |
| 4325 | # Files that config.status was made for. |
| 4326 | if test -n "$ac_config_files"; then |
| 4327 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 4328 | fi |
| 4329 | |
| 4330 | if test -n "$ac_config_headers"; then |
| 4331 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 4332 | fi |
| 4333 | |
| 4334 | if test -n "$ac_config_links"; then |
| 4335 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 4336 | fi |
| 4337 | |
| 4338 | if test -n "$ac_config_commands"; then |
| 4339 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 4340 | fi |
| 4341 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4342 | cat >>$CONFIG_STATUS <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4343 | |
| 4344 | ac_cs_usage="\ |
| 4345 | \`$as_me' instantiates files from templates according to the |
| 4346 | current configuration. |
| 4347 | |
| 4348 | Usage: $0 [OPTIONS] [FILE]... |
| 4349 | |
| 4350 | -h, --help print this help, then exit |
| 4351 | -V, --version print version number, then exit |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4352 | -d, --debug don't remove temporary files |
| 4353 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4354 | --file=FILE[:TEMPLATE] |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4355 | instantiate the configuration file FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4356 | --header=FILE[:TEMPLATE] |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4357 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4358 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4359 | Configuration files: |
| 4360 | $config_files |
| 4361 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4362 | Configuration headers: |
| 4363 | $config_headers |
| 4364 | |
| 4365 | Report bugs to <bug-autoconf@gnu.org>." |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4366 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4367 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4368 | cat >>$CONFIG_STATUS <<EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4369 | ac_cs_version="\\ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4370 | pjproject config.status 0.5.8 |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4371 | configured by $0, generated by GNU Autoconf 2.52, |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4372 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 4373 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4374 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 4375 | Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4376 | This config.status script is free software; the Free Software Foundation |
| 4377 | gives unlimited permission to copy, distribute and modify it." |
| 4378 | srcdir=$srcdir |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4379 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4380 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4381 | cat >>$CONFIG_STATUS <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4382 | # If no file are specified by the user, then we need to provide default |
| 4383 | # value. By we need to know if files were specified by the user. |
| 4384 | ac_need_defaults=: |
| 4385 | while test $# != 0 |
| 4386 | do |
| 4387 | case $1 in |
| 4388 | --*=*) |
| 4389 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 4390 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4391 | shift |
| 4392 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 4393 | shift |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4394 | ;; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4395 | -*);; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4396 | *) # This is not an option, so the user has probably given explicit |
| 4397 | # arguments. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4398 | ac_need_defaults=false;; |
| 4399 | esac |
| 4400 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4401 | case $1 in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4402 | # Handling of the options. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4403 | EOF |
| 4404 | cat >>$CONFIG_STATUS <<EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4405 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4406 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 4407 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 4408 | EOF |
| 4409 | cat >>$CONFIG_STATUS <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4410 | --version | --vers* | -V ) |
| 4411 | echo "$ac_cs_version"; exit 0 ;; |
| 4412 | --he | --h) |
| 4413 | # Conflict between --help and --header |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4414 | { { echo "$as_me:4414: error: ambiguous option: $1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4415 | Try \`$0 --help' for more information." >&5 |
| 4416 | echo "$as_me: error: ambiguous option: $1 |
| 4417 | Try \`$0 --help' for more information." >&2;} |
| 4418 | { (exit 1); exit 1; }; };; |
| 4419 | --help | --hel | -h ) |
| 4420 | echo "$ac_cs_usage"; exit 0 ;; |
| 4421 | --debug | --d* | -d ) |
| 4422 | debug=: ;; |
| 4423 | --file | --fil | --fi | --f ) |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4424 | shift |
| 4425 | CONFIG_FILES="$CONFIG_FILES $1" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4426 | ac_need_defaults=false;; |
| 4427 | --header | --heade | --head | --hea ) |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4428 | shift |
| 4429 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4430 | ac_need_defaults=false;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4431 | |
| 4432 | # This is an error. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4433 | -*) { { echo "$as_me:4433: error: unrecognized option: $1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4434 | Try \`$0 --help' for more information." >&5 |
| 4435 | echo "$as_me: error: unrecognized option: $1 |
| 4436 | Try \`$0 --help' for more information." >&2;} |
| 4437 | { (exit 1); exit 1; }; } ;; |
| 4438 | |
| 4439 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 4440 | |
| 4441 | esac |
| 4442 | shift |
| 4443 | done |
| 4444 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4445 | exec 5>>config.log |
| 4446 | cat >&5 << _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4447 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4448 | ## ----------------------- ## |
| 4449 | ## Running config.status. ## |
| 4450 | ## ----------------------- ## |
| 4451 | |
| 4452 | This file was extended by $as_me (pjproject 0.5.8) 2.52, executed with |
| 4453 | CONFIG_FILES = $CONFIG_FILES |
| 4454 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 4455 | CONFIG_LINKS = $CONFIG_LINKS |
| 4456 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 4457 | > $ac_cs_invocation |
| 4458 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4459 | |
| 4460 | _ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4461 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4462 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4463 | cat >>$CONFIG_STATUS <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4464 | for ac_config_target in $ac_config_targets |
| 4465 | do |
| 4466 | case "$ac_config_target" in |
| 4467 | # Handling of arguments. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4468 | "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 4469 | "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
| 4470 | "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 4471 | "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 4472 | "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 4473 | "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] | 4474 | "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] | 4475 | "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4476 | *) { { echo "$as_me:4476: error: invalid argument: $ac_config_target" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4477 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 4478 | { (exit 1); exit 1; }; };; |
| 4479 | esac |
| 4480 | done |
| 4481 | |
| 4482 | # If the user did not use the arguments to specify the items to instantiate, |
| 4483 | # then the envvar interface is used. Set only those that are not. |
| 4484 | # We use the long form for the default assignment because of an extremely |
| 4485 | # bizarre bug on SunOS 4.1.3. |
| 4486 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4487 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4488 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 4489 | fi |
| 4490 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4491 | # Create a temporary directory, and hook for its removal unless debugging. |
| 4492 | $debug || |
| 4493 | { |
| 4494 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 4495 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 4496 | } |
| 4497 | |
| 4498 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4499 | : ${TMPDIR=/tmp} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4500 | { |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4501 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4502 | test -n "$tmp" && test -d "$tmp" |
| 4503 | } || |
| 4504 | { |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4505 | tmp=$TMPDIR/cs$$-$RANDOM |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4506 | (umask 077 && mkdir $tmp) |
| 4507 | } || |
| 4508 | { |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4509 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4510 | { (exit 1); exit 1; } |
| 4511 | } |
| 4512 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4513 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4514 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4515 | cat >>$CONFIG_STATUS <<EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4516 | |
| 4517 | # |
| 4518 | # CONFIG_FILES section. |
| 4519 | # |
| 4520 | |
| 4521 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 4522 | # This happens for instance when ./config.status config.h |
| 4523 | if test -n "\$CONFIG_FILES"; then |
| 4524 | # Protect against being on the right side of a sed subst in config.status. |
| 4525 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 4526 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 4527 | s,@SHELL@,$SHELL,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4528 | s,@exec_prefix@,$exec_prefix,;t t |
| 4529 | s,@prefix@,$prefix,;t t |
| 4530 | s,@program_transform_name@,$program_transform_name,;t t |
| 4531 | s,@bindir@,$bindir,;t t |
| 4532 | s,@sbindir@,$sbindir,;t t |
| 4533 | s,@libexecdir@,$libexecdir,;t t |
| 4534 | s,@datadir@,$datadir,;t t |
| 4535 | s,@sysconfdir@,$sysconfdir,;t t |
| 4536 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 4537 | s,@localstatedir@,$localstatedir,;t t |
| 4538 | s,@libdir@,$libdir,;t t |
| 4539 | s,@includedir@,$includedir,;t t |
| 4540 | s,@oldincludedir@,$oldincludedir,;t t |
| 4541 | s,@infodir@,$infodir,;t t |
| 4542 | s,@mandir@,$mandir,;t t |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4543 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 4544 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 4545 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 4546 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 4547 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4548 | s,@build_alias@,$build_alias,;t t |
| 4549 | s,@host_alias@,$host_alias,;t t |
| 4550 | s,@target_alias@,$target_alias,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4551 | s,@ECHO_C@,$ECHO_C,;t t |
| 4552 | s,@ECHO_N@,$ECHO_N,;t t |
| 4553 | s,@ECHO_T@,$ECHO_T,;t t |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4554 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 4555 | s,@DEFS@,$DEFS,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4556 | s,@LIBS@,$LIBS,;t t |
| 4557 | s,@build@,$build,;t t |
| 4558 | s,@build_cpu@,$build_cpu,;t t |
| 4559 | s,@build_vendor@,$build_vendor,;t t |
| 4560 | s,@build_os@,$build_os,;t t |
| 4561 | s,@host@,$host,;t t |
| 4562 | s,@host_cpu@,$host_cpu,;t t |
| 4563 | s,@host_vendor@,$host_vendor,;t t |
| 4564 | s,@host_os@,$host_os,;t t |
| 4565 | s,@target@,$target,;t t |
| 4566 | s,@target_cpu@,$target_cpu,;t t |
| 4567 | s,@target_vendor@,$target_vendor,;t t |
| 4568 | s,@target_os@,$target_os,;t t |
| 4569 | s,@CC@,$CC,;t t |
| 4570 | s,@CFLAGS@,$CFLAGS,;t t |
| 4571 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 4572 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 4573 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 4574 | s,@EXEEXT@,$EXEEXT,;t t |
| 4575 | s,@OBJEXT@,$OBJEXT,;t t |
| 4576 | s,@CXX@,$CXX,;t t |
| 4577 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 4578 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4579 | s,@CPP@,$CPP,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4580 | s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t |
| 4581 | s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t |
| 4582 | s,@ac_no_small_filter@,$ac_no_small_filter,;t t |
| 4583 | s,@ac_no_large_filter@,$ac_no_large_filter,;t t |
| 4584 | s,@ac_no_g711_plc@,$ac_no_g711_plc,;t t |
| 4585 | s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t |
| 4586 | s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t |
| 4587 | s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t |
| 4588 | s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t |
| 4589 | s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t |
| 4590 | s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t |
| 4591 | s,@ac_cross_compile@,$ac_cross_compile,;t t |
| 4592 | s,@ac_linux_poll@,$ac_linux_poll,;t t |
| 4593 | s,@ac_host@,$ac_host,;t t |
| 4594 | s,@ac_main_obj@,$ac_main_obj,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4595 | CEOF |
| 4596 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4597 | EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4598 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4599 | cat >>$CONFIG_STATUS <<\EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4600 | # Split the substitutions into bite-sized pieces for seds with |
| 4601 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 4602 | ac_max_sed_lines=48 |
| 4603 | ac_sed_frag=1 # Number of current file. |
| 4604 | ac_beg=1 # First line for current file. |
| 4605 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 4606 | ac_more_lines=: |
| 4607 | ac_sed_cmds= |
| 4608 | while $ac_more_lines; do |
| 4609 | if test $ac_beg -gt 1; then |
| 4610 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 4611 | else |
| 4612 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 4613 | fi |
| 4614 | if test ! -s $tmp/subs.frag; then |
| 4615 | ac_more_lines=false |
| 4616 | else |
| 4617 | # The purpose of the label and of the branching condition is to |
| 4618 | # speed up the sed processing (if there are no `@' at all, there |
| 4619 | # is no need to browse any of the substitutions). |
| 4620 | # These are the two extra sed commands mentioned above. |
| 4621 | (echo ':t |
| 4622 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 4623 | if test -z "$ac_sed_cmds"; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4624 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4625 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4626 | 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] | 4627 | fi |
| 4628 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 4629 | ac_beg=$ac_end |
| 4630 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 4631 | fi |
| 4632 | done |
| 4633 | if test -z "$ac_sed_cmds"; then |
| 4634 | ac_sed_cmds=cat |
| 4635 | fi |
| 4636 | fi # test -n "$CONFIG_FILES" |
| 4637 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4638 | EOF |
| 4639 | cat >>$CONFIG_STATUS <<\EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4640 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 4641 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 4642 | case $ac_file in |
| 4643 | - | *:- | *:-:* ) # input from stdin |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4644 | cat >$tmp/stdin |
| 4645 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 4646 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4647 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4648 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4649 | * ) ac_file_in=$ac_file.in ;; |
| 4650 | esac |
| 4651 | |
| 4652 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4653 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 4654 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 4655 | X"$ac_file" : 'X\(//\)$' \| \ |
| 4656 | X"$ac_file" : 'X\(/\)' \| \ |
| 4657 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4658 | echo X"$ac_file" | |
| 4659 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 4660 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 4661 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 4662 | /^X\(\/\).*/{ s//\1/; q; } |
| 4663 | s/.*/./; q'` |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4664 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 4665 | { case "$ac_dir" in |
| 4666 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 4667 | *) as_incr_dir=.;; |
| 4668 | esac |
| 4669 | as_dummy="$ac_dir" |
| 4670 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 4671 | case $as_mkdir_dir in |
| 4672 | # Skip DOS drivespec |
| 4673 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 4674 | *) |
| 4675 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 4676 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
| 4677 | ;; |
| 4678 | esac |
| 4679 | done; } |
| 4680 | |
| 4681 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" |
| 4682 | # A "../" for each directory in $ac_dir_suffix. |
| 4683 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4684 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4685 | ac_dir_suffix= ac_dots= |
| 4686 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4687 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4688 | case $srcdir in |
| 4689 | .) ac_srcdir=. |
| 4690 | if test -z "$ac_dots"; then |
| 4691 | ac_top_srcdir=. |
| 4692 | else |
| 4693 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` |
| 4694 | fi ;; |
| 4695 | [\\/]* | ?:[\\/]* ) |
| 4696 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 4697 | ac_top_srcdir=$srcdir ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4698 | *) # Relative path. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4699 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
| 4700 | ac_top_srcdir=$ac_dots$srcdir ;; |
| 4701 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4702 | |
| 4703 | if test x"$ac_file" != x-; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4704 | { echo "$as_me:4704: creating $ac_file" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4705 | echo "$as_me: creating $ac_file" >&6;} |
| 4706 | rm -f "$ac_file" |
| 4707 | fi |
| 4708 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 4709 | # use $as_me), people would be surprised to read: |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4710 | # /* config.h. Generated automatically by config.status. */ |
| 4711 | configure_input="Generated automatically from `echo $ac_file_in | |
| 4712 | sed 's,.*/,,'` by configure." |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4713 | |
| 4714 | # First look for the input files in the build tree, otherwise in the |
| 4715 | # src tree. |
| 4716 | ac_file_inputs=`IFS=: |
| 4717 | for f in $ac_file_in; do |
| 4718 | case $f in |
| 4719 | -) echo $tmp/stdin ;; |
| 4720 | [\\/$]*) |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4721 | # Absolute (can't be DOS-style, as IFS=:) |
| 4722 | test -f "$f" || { { echo "$as_me:4722: error: cannot find input file: $f" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4723 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 4724 | { (exit 1); exit 1; }; } |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4725 | echo $f;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4726 | *) # Relative |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4727 | if test -f "$f"; then |
| 4728 | # Build tree |
| 4729 | echo $f |
| 4730 | elif test -f "$srcdir/$f"; then |
| 4731 | # Source tree |
| 4732 | echo $srcdir/$f |
| 4733 | else |
| 4734 | # /dev/null tree |
| 4735 | { { echo "$as_me:4735: error: cannot find input file: $f" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4736 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 4737 | { (exit 1); exit 1; }; } |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4738 | fi;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4739 | esac |
| 4740 | done` || { (exit 1); exit 1; } |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4741 | EOF |
| 4742 | cat >>$CONFIG_STATUS <<EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4743 | sed "$ac_vpsub |
| 4744 | $extrasub |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4745 | EOF |
| 4746 | cat >>$CONFIG_STATUS <<\EOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4747 | :t |
| 4748 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 4749 | s,@configure_input@,$configure_input,;t t |
| 4750 | s,@srcdir@,$ac_srcdir,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4751 | s,@top_srcdir@,$ac_top_srcdir,;t t |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4752 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 4753 | rm -f $tmp/stdin |
| 4754 | if test x"$ac_file" != x-; then |
| 4755 | mv $tmp/out $ac_file |
| 4756 | else |
| 4757 | cat $tmp/out |
| 4758 | rm -f $tmp/out |
| 4759 | fi |
| 4760 | |
| 4761 | done |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4762 | EOF |
| 4763 | cat >>$CONFIG_STATUS <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4764 | |
| 4765 | # |
| 4766 | # CONFIG_HEADER section. |
| 4767 | # |
| 4768 | |
| 4769 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 4770 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 4771 | # |
| 4772 | # ac_d sets the value in "#define NAME VALUE" lines. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4773 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 4774 | ac_dB='[ ].*$,\1#\2' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4775 | ac_dC=' ' |
| 4776 | ac_dD=',;t' |
| 4777 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4778 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4779 | ac_uB='$,\1#\2define\3' |
| 4780 | ac_uC=' ' |
| 4781 | ac_uD=',;t' |
| 4782 | |
| 4783 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 4784 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 4785 | case $ac_file in |
| 4786 | - | *:- | *:-:* ) # input from stdin |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4787 | cat >$tmp/stdin |
| 4788 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 4789 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4790 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4791 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4792 | * ) ac_file_in=$ac_file.in ;; |
| 4793 | esac |
| 4794 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4795 | test x"$ac_file" != x- && { echo "$as_me:4795: creating $ac_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4796 | echo "$as_me: creating $ac_file" >&6;} |
| 4797 | |
| 4798 | # First look for the input files in the build tree, otherwise in the |
| 4799 | # src tree. |
| 4800 | ac_file_inputs=`IFS=: |
| 4801 | for f in $ac_file_in; do |
| 4802 | case $f in |
| 4803 | -) echo $tmp/stdin ;; |
| 4804 | [\\/$]*) |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4805 | # Absolute (can't be DOS-style, as IFS=:) |
| 4806 | test -f "$f" || { { echo "$as_me:4806: error: cannot find input file: $f" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4807 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 4808 | { (exit 1); exit 1; }; } |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4809 | echo $f;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4810 | *) # Relative |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4811 | if test -f "$f"; then |
| 4812 | # Build tree |
| 4813 | echo $f |
| 4814 | elif test -f "$srcdir/$f"; then |
| 4815 | # Source tree |
| 4816 | echo $srcdir/$f |
| 4817 | else |
| 4818 | # /dev/null tree |
| 4819 | { { echo "$as_me:4819: error: cannot find input file: $f" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4820 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 4821 | { (exit 1); exit 1; }; } |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4822 | fi;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4823 | esac |
| 4824 | done` || { (exit 1); exit 1; } |
| 4825 | # Remove the trailing spaces. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4826 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4827 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4828 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4829 | |
| 4830 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 4831 | # `conftest.undefs', that substitutes the proper values into |
| 4832 | # config.h.in to produce config.h. The first handles `#define' |
| 4833 | # templates, and the second `#undef' templates. |
| 4834 | # And first: Protect against being on the right side of a sed subst in |
| 4835 | # config.status. Protect against being in an unquoted here document |
| 4836 | # in config.status. |
| 4837 | rm -f conftest.defines conftest.undefs |
| 4838 | # Using a here document instead of a string reduces the quoting nightmare. |
| 4839 | # Putting comments in sed scripts is not portable. |
| 4840 | # |
| 4841 | # `end' is used to avoid that the second main sed command (meant for |
| 4842 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 4843 | # See the Autoconf documentation for `clear'. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4844 | cat >confdef2sed.sed <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4845 | s/[\\&,]/\\&/g |
| 4846 | s,[\\$`],\\&,g |
| 4847 | t clear |
| 4848 | : clear |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4849 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4850 | t end |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4851 | 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] | 4852 | : end |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4853 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4854 | # If some macros were called several times there might be several times |
| 4855 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 4856 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 4857 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 4858 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 4859 | rm -f confdef2sed.sed |
| 4860 | |
| 4861 | # This sed command replaces #undef with comments. This is necessary, for |
| 4862 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 4863 | # on some systems where configure will not decide to define it. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4864 | cat >>conftest.undefs <<\EOF |
| 4865 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 4866 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4867 | |
| 4868 | # Break up conftest.defines because some shells have a limit on the size |
| 4869 | # of here documents, and old seds have small limits too (100 cmds). |
| 4870 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4871 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4872 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 4873 | echo ' :' >>$CONFIG_STATUS |
| 4874 | rm -f conftest.tail |
| 4875 | while grep . conftest.defines >/dev/null |
| 4876 | do |
| 4877 | # Write a limited-size here document to $tmp/defines.sed. |
| 4878 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 4879 | # Speed up: don't consider the non `#define' lines. |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4880 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4881 | # Work around the forget-to-reset-the-flag bug. |
| 4882 | echo 't clr' >>$CONFIG_STATUS |
| 4883 | echo ': clr' >>$CONFIG_STATUS |
| 4884 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 4885 | echo 'CEOF |
| 4886 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 4887 | rm -f $tmp/in |
| 4888 | mv $tmp/out $tmp/in |
| 4889 | ' >>$CONFIG_STATUS |
| 4890 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 4891 | rm -f conftest.defines |
| 4892 | mv conftest.tail conftest.defines |
| 4893 | done |
| 4894 | rm -f conftest.defines |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4895 | echo ' fi # egrep' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4896 | echo >>$CONFIG_STATUS |
| 4897 | |
| 4898 | # Break up conftest.undefs because some shells have a limit on the size |
| 4899 | # of here documents, and old seds have small limits too (100 cmds). |
| 4900 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 4901 | rm -f conftest.tail |
| 4902 | while grep . conftest.undefs >/dev/null |
| 4903 | do |
| 4904 | # Write a limited-size here document to $tmp/undefs.sed. |
| 4905 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 4906 | # Speed up: don't consider the non `#undef' |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4907 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4908 | # Work around the forget-to-reset-the-flag bug. |
| 4909 | echo 't clr' >>$CONFIG_STATUS |
| 4910 | echo ': clr' >>$CONFIG_STATUS |
| 4911 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 4912 | echo 'CEOF |
| 4913 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 4914 | rm -f $tmp/in |
| 4915 | mv $tmp/out $tmp/in |
| 4916 | ' >>$CONFIG_STATUS |
| 4917 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 4918 | rm -f conftest.undefs |
| 4919 | mv conftest.tail conftest.undefs |
| 4920 | done |
| 4921 | rm -f conftest.undefs |
| 4922 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4923 | cat >>$CONFIG_STATUS <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4924 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 4925 | # use $as_me), people would be surprised to read: |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4926 | # /* config.h. Generated automatically by config.status. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4927 | if test x"$ac_file" = x-; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4928 | echo "/* Generated automatically by configure. */" >$tmp/config.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4929 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4930 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4931 | fi |
| 4932 | cat $tmp/in >>$tmp/config.h |
| 4933 | rm -f $tmp/in |
| 4934 | if test x"$ac_file" != x-; then |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4935 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 4936 | { echo "$as_me:4936: $ac_file is unchanged" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4937 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 4938 | else |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4939 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 4940 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 4941 | X"$ac_file" : 'X\(//\)$' \| \ |
| 4942 | X"$ac_file" : 'X\(/\)' \| \ |
| 4943 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4944 | echo X"$ac_file" | |
| 4945 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 4946 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 4947 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 4948 | /^X\(\/\).*/{ s//\1/; q; } |
| 4949 | s/.*/./; q'` |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4950 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 4951 | { case "$ac_dir" in |
| 4952 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 4953 | *) as_incr_dir=.;; |
| 4954 | esac |
| 4955 | as_dummy="$ac_dir" |
| 4956 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 4957 | case $as_mkdir_dir in |
| 4958 | # Skip DOS drivespec |
| 4959 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 4960 | *) |
| 4961 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 4962 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
| 4963 | ;; |
| 4964 | esac |
| 4965 | done; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4966 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4967 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4968 | rm -f $ac_file |
| 4969 | mv $tmp/config.h $ac_file |
| 4970 | fi |
| 4971 | else |
| 4972 | cat $tmp/config.h |
| 4973 | rm -f $tmp/config.h |
| 4974 | fi |
| 4975 | done |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4976 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4977 | |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4978 | cat >>$CONFIG_STATUS <<\EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4979 | |
| 4980 | { (exit 0); exit 0; } |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4981 | EOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4982 | chmod +x $CONFIG_STATUS |
| 4983 | ac_clean_files=$ac_clean_files_save |
| 4984 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4985 | # configure is writing to config.log, and then calls config.status. |
| 4986 | # config.status does its own redirection, appending to config.log. |
| 4987 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 4988 | # by configure, so config.status won't be able to write to it; its |
| 4989 | # output is simply discarded. So we exec the FD to /dev/null, |
| 4990 | # effectively closing config.log, so it can be properly (re)opened and |
| 4991 | # appended to by config.status. When coming back to configure, we |
| 4992 | # need to make the FD available again. |
| 4993 | if test "$no_create" != yes; then |
| 4994 | ac_cs_success=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4995 | exec 5>/dev/null |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame^] | 4996 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4997 | exec 5>>config.log |
| 4998 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 4999 | # would make configure fail if this is the last instruction. |
| 5000 | $ac_cs_success || { (exit 1); exit 1; } |
| 5001 | fi |
| 5002 | |