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. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.61 for pjproject 1.x. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4 | # |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6 | # 2002, 2003, 2004, 2005, 2006 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. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13 | # Be more Bourne compatible |
| 14 | DUALCASE=1; export DUALCASE # for MKS sh |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 16 | emulate sh |
| 17 | NULLCMD=: |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 21 | setopt NO_GLOB_SUBST |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 22 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 23 | case `(set -o) 2>/dev/null` in |
| 24 | *posix*) set -o posix ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 25 | esac |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 26 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 27 | fi |
| 28 | |
| 29 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 30 | |
| 31 | |
| 32 | # PATH needs CR |
| 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 39 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 42 | echo "#! /bin/sh" >conf$$.sh |
| 43 | echo "exit 0" >>conf$$.sh |
| 44 | chmod +x conf$$.sh |
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 46 | PATH_SEPARATOR=';' |
| 47 | else |
| 48 | PATH_SEPARATOR=: |
| 49 | fi |
| 50 | rm -f conf$$.sh |
| 51 | fi |
| 52 | |
| 53 | # Support unset when possible. |
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | as_unset=unset |
| 56 | else |
| 57 | as_unset=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 58 | fi |
| 59 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 60 | |
| 61 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
| 63 | # there to prevent editors from complaining about space-tab. |
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 65 | # splitting by setting IFS to empty value.) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 66 | as_nl=' |
| 67 | ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 71 | case $0 in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 74 | for as_dir in $PATH |
| 75 | do |
| 76 | IFS=$as_save_IFS |
| 77 | test -z "$as_dir" && as_dir=. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 79 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 81 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 82 | ;; |
| 83 | esac |
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 85 | # in which case we are not to be found in the path. |
| 86 | if test "x$as_myself" = x; then |
| 87 | as_myself=$0 |
| 88 | fi |
| 89 | if test ! -f "$as_myself"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 92 | fi |
| 93 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 94 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 103 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 106 | LC_TELEPHONE LC_TIME |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 107 | do |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 110 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 112 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 113 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 114 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 115 | # Required to use basename. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 118 | as_expr=expr |
| 119 | else |
| 120 | as_expr=false |
| 121 | fi |
| 122 | |
| 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | as_basename=basename |
| 125 | else |
| 126 | as_basename=false |
| 127 | fi |
| 128 | |
| 129 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 130 | # Name of the executable. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 135 | echo X/"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\/\)$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\).*/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | s/.*/./; q'` |
| 149 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 152 | |
| 153 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 154 | if test "x$CONFIG_SHELL" = x; then |
| 155 | if (eval ":") 2>/dev/null; then |
| 156 | as_have_required=yes |
| 157 | else |
| 158 | as_have_required=no |
| 159 | fi |
| 160 | |
| 161 | if test $as_have_required = yes && (eval ": |
| 162 | (as_func_return () { |
| 163 | (exit \$1) |
| 164 | } |
| 165 | as_func_success () { |
| 166 | as_func_return 0 |
| 167 | } |
| 168 | as_func_failure () { |
| 169 | as_func_return 1 |
| 170 | } |
| 171 | as_func_ret_success () { |
| 172 | return 0 |
| 173 | } |
| 174 | as_func_ret_failure () { |
| 175 | return 1 |
| 176 | } |
| 177 | |
| 178 | exitcode=0 |
| 179 | if as_func_success; then |
| 180 | : |
| 181 | else |
| 182 | exitcode=1 |
| 183 | echo as_func_success failed. |
| 184 | fi |
| 185 | |
| 186 | if as_func_failure; then |
| 187 | exitcode=1 |
| 188 | echo as_func_failure succeeded. |
| 189 | fi |
| 190 | |
| 191 | if as_func_ret_success; then |
| 192 | : |
| 193 | else |
| 194 | exitcode=1 |
| 195 | echo as_func_ret_success failed. |
| 196 | fi |
| 197 | |
| 198 | if as_func_ret_failure; then |
| 199 | exitcode=1 |
| 200 | echo as_func_ret_failure succeeded. |
| 201 | fi |
| 202 | |
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 204 | : |
| 205 | else |
| 206 | exitcode=1 |
| 207 | echo positional parameters were not saved. |
| 208 | fi |
| 209 | |
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 211 | |
| 212 | ( |
| 213 | as_lineno_1=\$LINENO |
| 214 | as_lineno_2=\$LINENO |
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 217 | ") 2> /dev/null; then |
| 218 | : |
| 219 | else |
| 220 | as_candidate_shells= |
| 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
| 226 | case $as_dir in |
| 227 | /*) |
| 228 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 230 | done;; |
| 231 | esac |
| 232 | done |
| 233 | IFS=$as_save_IFS |
| 234 | |
| 235 | |
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
| 237 | # Try only shells that exist, to save several forks. |
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 241 | emulate sh |
| 242 | NULLCMD=: |
| 243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 244 | # is contrary to our usage. Disable this feature. |
| 245 | alias -g '${1+"$@"}'='"$@"' |
| 246 | setopt NO_GLOB_SUBST |
| 247 | else |
| 248 | case `(set -o) 2>/dev/null` in |
| 249 | *posix*) set -o posix ;; |
| 250 | esac |
| 251 | |
| 252 | fi |
| 253 | |
| 254 | |
| 255 | : |
| 256 | _ASEOF |
| 257 | }; then |
| 258 | CONFIG_SHELL=$as_shell |
| 259 | as_have_required=yes |
| 260 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
| 269 | case `(set -o) 2>/dev/null` in |
| 270 | *posix*) set -o posix ;; |
| 271 | esac |
| 272 | |
| 273 | fi |
| 274 | |
| 275 | |
| 276 | : |
| 277 | (as_func_return () { |
| 278 | (exit $1) |
| 279 | } |
| 280 | as_func_success () { |
| 281 | as_func_return 0 |
| 282 | } |
| 283 | as_func_failure () { |
| 284 | as_func_return 1 |
| 285 | } |
| 286 | as_func_ret_success () { |
| 287 | return 0 |
| 288 | } |
| 289 | as_func_ret_failure () { |
| 290 | return 1 |
| 291 | } |
| 292 | |
| 293 | exitcode=0 |
| 294 | if as_func_success; then |
| 295 | : |
| 296 | else |
| 297 | exitcode=1 |
| 298 | echo as_func_success failed. |
| 299 | fi |
| 300 | |
| 301 | if as_func_failure; then |
| 302 | exitcode=1 |
| 303 | echo as_func_failure succeeded. |
| 304 | fi |
| 305 | |
| 306 | if as_func_ret_success; then |
| 307 | : |
| 308 | else |
| 309 | exitcode=1 |
| 310 | echo as_func_ret_success failed. |
| 311 | fi |
| 312 | |
| 313 | if as_func_ret_failure; then |
| 314 | exitcode=1 |
| 315 | echo as_func_ret_failure succeeded. |
| 316 | fi |
| 317 | |
| 318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 319 | : |
| 320 | else |
| 321 | exitcode=1 |
| 322 | echo positional parameters were not saved. |
| 323 | fi |
| 324 | |
| 325 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 326 | |
| 327 | ( |
| 328 | as_lineno_1=$LINENO |
| 329 | as_lineno_2=$LINENO |
| 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 332 | |
| 333 | _ASEOF |
| 334 | }; then |
| 335 | break |
| 336 | fi |
| 337 | |
| 338 | fi |
| 339 | |
| 340 | done |
| 341 | |
| 342 | if test "x$CONFIG_SHELL" != x; then |
| 343 | for as_var in BASH_ENV ENV |
| 344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 345 | done |
| 346 | export CONFIG_SHELL |
| 347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 348 | fi |
| 349 | |
| 350 | |
| 351 | if test $as_have_required = no; then |
| 352 | echo This script requires a shell more modern than all the |
| 353 | echo shells that I found on your system. Please install a |
| 354 | echo modern shell, or manually run the script under such a |
| 355 | echo shell if you do have one. |
| 356 | { (exit 1); exit 1; } |
| 357 | fi |
| 358 | |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | fi |
| 363 | |
| 364 | |
| 365 | |
| 366 | (eval "as_func_return () { |
| 367 | (exit \$1) |
| 368 | } |
| 369 | as_func_success () { |
| 370 | as_func_return 0 |
| 371 | } |
| 372 | as_func_failure () { |
| 373 | as_func_return 1 |
| 374 | } |
| 375 | as_func_ret_success () { |
| 376 | return 0 |
| 377 | } |
| 378 | as_func_ret_failure () { |
| 379 | return 1 |
| 380 | } |
| 381 | |
| 382 | exitcode=0 |
| 383 | if as_func_success; then |
| 384 | : |
| 385 | else |
| 386 | exitcode=1 |
| 387 | echo as_func_success failed. |
| 388 | fi |
| 389 | |
| 390 | if as_func_failure; then |
| 391 | exitcode=1 |
| 392 | echo as_func_failure succeeded. |
| 393 | fi |
| 394 | |
| 395 | if as_func_ret_success; then |
| 396 | : |
| 397 | else |
| 398 | exitcode=1 |
| 399 | echo as_func_ret_success failed. |
| 400 | fi |
| 401 | |
| 402 | if as_func_ret_failure; then |
| 403 | exitcode=1 |
| 404 | echo as_func_ret_failure succeeded. |
| 405 | fi |
| 406 | |
| 407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 408 | : |
| 409 | else |
| 410 | exitcode=1 |
| 411 | echo positional parameters were not saved. |
| 412 | fi |
| 413 | |
| 414 | test \$exitcode = 0") || { |
| 415 | echo No shell found that supports shell functions. |
| 416 | echo Please tell autoconf@gnu.org about your system, |
| 417 | echo including any error possibly output before this |
| 418 | echo message |
| 419 | } |
| 420 | |
| 421 | |
| 422 | |
| 423 | as_lineno_1=$LINENO |
| 424 | as_lineno_2=$LINENO |
| 425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 427 | |
| 428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 429 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 430 | # line-number line after each line using $LINENO; the second 'sed' |
| 431 | # does the real work. The second script uses 'N' to pair each |
| 432 | # line-number line with the line containing $LINENO, and appends |
| 433 | # trailing '-' during substitution so that $LINENO is not a special |
| 434 | # case at line end. |
| 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 438 | sed -n ' |
| 439 | p |
| 440 | /[$]LINENO/= |
| 441 | ' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 442 | sed ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 443 | s/[$]LINENO.*/&-/ |
| 444 | t lineno |
| 445 | b |
| 446 | :lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 447 | N |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 448 | :loop |
| 449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 450 | t loop |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 451 | s/-\n.*// |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 452 | ' >$as_me.lineno && |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 453 | chmod +x "$as_me.lineno" || |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 455 | { (exit 1); exit 1; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 456 | |
| 457 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 458 | # (the dirname of $[0] is not the place where we might find the |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 459 | # original and so on. Autoconf is especially sensitive to this). |
| 460 | . "./$as_me.lineno" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 461 | # Exit status is that of the last command. |
| 462 | exit |
| 463 | } |
| 464 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 465 | |
| 466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 467 | as_dirname=dirname |
| 468 | else |
| 469 | as_dirname=false |
| 470 | fi |
| 471 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 472 | ECHO_C= ECHO_N= ECHO_T= |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 473 | case `echo -n x` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 474 | -n*) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 475 | case `echo 'x\c'` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 477 | *) ECHO_C='\c';; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 478 | esac;; |
| 479 | *) |
| 480 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 481 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 482 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 485 | as_expr=expr |
| 486 | else |
| 487 | as_expr=false |
| 488 | fi |
| 489 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 490 | rm -f conf$$ conf$$.exe conf$$.file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 491 | if test -d conf$$.dir; then |
| 492 | rm -f conf$$.dir/conf$$.file |
| 493 | else |
| 494 | rm -f conf$$.dir |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 495 | mkdir conf$$.dir |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 496 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 497 | echo >conf$$.file |
| 498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 499 | as_ln_s='ln -s' |
| 500 | # ... but there are two gotchas: |
| 501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 503 | # In both cases, we have to default to `cp -p'. |
| 504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 505 | as_ln_s='cp -p' |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 507 | as_ln_s=ln |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 508 | else |
| 509 | as_ln_s='cp -p' |
| 510 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 512 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 513 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 514 | if mkdir -p . 2>/dev/null; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 515 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 516 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 517 | test -d ./-p && rmdir ./-p |
| 518 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 519 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 520 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 521 | if test -x / >/dev/null 2>&1; then |
| 522 | as_test_x='test -x' |
| 523 | else |
| 524 | if ls -dL / >/dev/null 2>&1; then |
| 525 | as_ls_L_option=L |
| 526 | else |
| 527 | as_ls_L_option= |
| 528 | fi |
| 529 | as_test_x=' |
| 530 | eval sh -c '\'' |
| 531 | if test -d "$1"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 532 | test -d "$1/."; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 533 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 534 | case $1 in |
| 535 | -*)set "./$1";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 536 | esac; |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 538 | ???[sx]*):;;*)false;;esac;fi |
| 539 | '\'' sh |
| 540 | ' |
| 541 | fi |
| 542 | as_executable_p=$as_test_x |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 543 | |
| 544 | # Sed expression to map a string onto a valid CPP name. |
| 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 546 | |
| 547 | # Sed expression to map a string onto a valid variable name. |
| 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 549 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 550 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 551 | |
| 552 | exec 7<&0 </dev/null 6>&1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 553 | |
| 554 | # Name of the host. |
| 555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 556 | # so uname gets run too. |
| 557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 558 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 559 | # |
| 560 | # Initializations. |
| 561 | # |
| 562 | ac_default_prefix=/usr/local |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 563 | ac_clean_files= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 564 | ac_config_libobj_dir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 565 | LIBOBJS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 566 | cross_compiling=no |
| 567 | subdirs= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 568 | MFLAGS= |
| 569 | MAKEFLAGS= |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 570 | SHELL=${CONFIG_SHELL-/bin/sh} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 571 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 572 | # Identity of this package. |
| 573 | PACKAGE_NAME='pjproject' |
| 574 | PACKAGE_TARNAME='pjproject' |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 575 | PACKAGE_VERSION='1.x' |
| 576 | PACKAGE_STRING='pjproject 1.x' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 577 | PACKAGE_BUGREPORT='' |
| 578 | |
| 579 | # Factoring default headers for most tests. |
| 580 | ac_includes_default="\ |
| 581 | #include <stdio.h> |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 582 | #ifdef HAVE_SYS_TYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 583 | # include <sys/types.h> |
| 584 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 585 | #ifdef HAVE_SYS_STAT_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 586 | # include <sys/stat.h> |
| 587 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 588 | #ifdef STDC_HEADERS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 589 | # include <stdlib.h> |
| 590 | # include <stddef.h> |
| 591 | #else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 592 | # ifdef HAVE_STDLIB_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 593 | # include <stdlib.h> |
| 594 | # endif |
| 595 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 596 | #ifdef HAVE_STRING_H |
| 597 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 598 | # include <memory.h> |
| 599 | # endif |
| 600 | # include <string.h> |
| 601 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 602 | #ifdef HAVE_STRINGS_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 603 | # include <strings.h> |
| 604 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 605 | #ifdef HAVE_INTTYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 606 | # include <inttypes.h> |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 607 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 608 | #ifdef HAVE_STDINT_H |
| 609 | # include <stdint.h> |
| 610 | #endif |
| 611 | #ifdef HAVE_UNISTD_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 612 | # include <unistd.h> |
| 613 | #endif" |
| 614 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 615 | ac_subst_vars='SHELL |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 616 | PATH_SEPARATOR |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 617 | PACKAGE_NAME |
| 618 | PACKAGE_TARNAME |
| 619 | PACKAGE_VERSION |
| 620 | PACKAGE_STRING |
| 621 | PACKAGE_BUGREPORT |
| 622 | exec_prefix |
| 623 | prefix |
| 624 | program_transform_name |
| 625 | bindir |
| 626 | sbindir |
| 627 | libexecdir |
| 628 | datarootdir |
| 629 | datadir |
| 630 | sysconfdir |
| 631 | sharedstatedir |
| 632 | localstatedir |
| 633 | includedir |
| 634 | oldincludedir |
| 635 | docdir |
| 636 | infodir |
| 637 | htmldir |
| 638 | dvidir |
| 639 | pdfdir |
| 640 | psdir |
| 641 | libdir |
| 642 | localedir |
| 643 | mandir |
| 644 | DEFS |
| 645 | ECHO_C |
| 646 | ECHO_N |
| 647 | ECHO_T |
| 648 | LIBS |
| 649 | build_alias |
| 650 | host_alias |
| 651 | target_alias |
| 652 | build |
| 653 | build_cpu |
| 654 | build_vendor |
| 655 | build_os |
| 656 | host |
| 657 | host_cpu |
| 658 | host_vendor |
| 659 | host_os |
| 660 | target |
| 661 | target_cpu |
| 662 | target_vendor |
| 663 | target_os |
| 664 | CC |
| 665 | CFLAGS |
| 666 | LDFLAGS |
| 667 | CPPFLAGS |
| 668 | ac_ct_CC |
| 669 | EXEEXT |
| 670 | OBJEXT |
| 671 | CXX |
| 672 | CXXFLAGS |
| 673 | ac_ct_CXX |
| 674 | AR |
| 675 | LD |
| 676 | LDOUT |
| 677 | RANLIB |
| 678 | LIBEXT |
| 679 | LIBEXT2 |
| 680 | CC_OUT |
| 681 | CC_INC |
| 682 | CC_DEF |
| 683 | CC_OPTIMIZE |
| 684 | CC_CFLAGS |
| 685 | ac_pjdir |
| 686 | ac_build_mak_vars |
| 687 | CPP |
| 688 | GREP |
| 689 | EGREP |
| 690 | ac_os_objs |
| 691 | ac_external_speex |
| 692 | ac_external_gsm |
| 693 | ac_pjmedia_snd |
| 694 | ac_external_pa |
| 695 | ac_pa_cflags |
| 696 | ac_pa_use_alsa |
| 697 | ac_pa_use_oss |
| 698 | ac_no_small_filter |
| 699 | ac_no_large_filter |
| 700 | ac_no_speex_aec |
| 701 | ac_no_g711_codec |
| 702 | ac_no_l16_codec |
| 703 | ac_no_gsm_codec |
| 704 | ac_no_g722_codec |
| 705 | ac_no_g7221_codec |
| 706 | ac_no_speex_codec |
| 707 | ac_no_ilbc_codec |
| 708 | ac_no_ssl |
| 709 | openssl_h_present |
| 710 | libssl_present |
| 711 | libcrypto_present |
| 712 | ac_cross_compile |
| 713 | ac_linux_poll |
| 714 | ac_host |
| 715 | ac_main_obj |
| 716 | LIBOBJS |
| 717 | LTLIBOBJS' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 718 | ac_subst_files='' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 719 | ac_precious_vars='build_alias |
| 720 | host_alias |
| 721 | target_alias |
| 722 | CC |
| 723 | CFLAGS |
| 724 | LDFLAGS |
| 725 | LIBS |
| 726 | CPPFLAGS |
| 727 | CXX |
| 728 | CXXFLAGS |
| 729 | CCC |
| 730 | CPP' |
| 731 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 732 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 733 | # Initialize some variables set by options. |
| 734 | ac_init_help= |
| 735 | ac_init_version=false |
| 736 | # The variables have the same names as the options, with |
| 737 | # dashes changed to underlines. |
| 738 | cache_file=/dev/null |
| 739 | exec_prefix=NONE |
| 740 | no_create= |
| 741 | no_recursion= |
| 742 | prefix=NONE |
| 743 | program_prefix=NONE |
| 744 | program_suffix=NONE |
| 745 | program_transform_name=s,x,x, |
| 746 | silent= |
| 747 | site= |
| 748 | srcdir= |
| 749 | verbose= |
| 750 | x_includes=NONE |
| 751 | x_libraries=NONE |
| 752 | |
| 753 | # Installation directory options. |
| 754 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 755 | # and all the variables that are supposed to be based on exec_prefix |
| 756 | # by default will actually change. |
| 757 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 758 | # (The list follows the same order as the GNU Coding Standards.) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 759 | bindir='${exec_prefix}/bin' |
| 760 | sbindir='${exec_prefix}/sbin' |
| 761 | libexecdir='${exec_prefix}/libexec' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 762 | datarootdir='${prefix}/share' |
| 763 | datadir='${datarootdir}' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 764 | sysconfdir='${prefix}/etc' |
| 765 | sharedstatedir='${prefix}/com' |
| 766 | localstatedir='${prefix}/var' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 767 | includedir='${prefix}/include' |
| 768 | oldincludedir='/usr/include' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 769 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 770 | infodir='${datarootdir}/info' |
| 771 | htmldir='${docdir}' |
| 772 | dvidir='${docdir}' |
| 773 | pdfdir='${docdir}' |
| 774 | psdir='${docdir}' |
| 775 | libdir='${exec_prefix}/lib' |
| 776 | localedir='${datarootdir}/locale' |
| 777 | mandir='${datarootdir}/man' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 778 | |
| 779 | ac_prev= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 780 | ac_dashdash= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 781 | for ac_option |
| 782 | do |
| 783 | # If the previous option needs an argument, assign it. |
| 784 | if test -n "$ac_prev"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 785 | eval $ac_prev=\$ac_option |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 786 | ac_prev= |
| 787 | continue |
| 788 | fi |
| 789 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 790 | case $ac_option in |
| 791 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 792 | *) ac_optarg=yes ;; |
| 793 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 794 | |
| 795 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 796 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 797 | case $ac_dashdash$ac_option in |
| 798 | --) |
| 799 | ac_dashdash=yes ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 800 | |
| 801 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 802 | ac_prev=bindir ;; |
| 803 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 804 | bindir=$ac_optarg ;; |
| 805 | |
| 806 | -build | --build | --buil | --bui | --bu) |
| 807 | ac_prev=build_alias ;; |
| 808 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 809 | build_alias=$ac_optarg ;; |
| 810 | |
| 811 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 812 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 813 | ac_prev=cache_file ;; |
| 814 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 815 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 816 | cache_file=$ac_optarg ;; |
| 817 | |
| 818 | --config-cache | -C) |
| 819 | cache_file=config.cache ;; |
| 820 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 821 | -datadir | --datadir | --datadi | --datad) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 822 | ac_prev=datadir ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 823 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 824 | datadir=$ac_optarg ;; |
| 825 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 826 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 827 | | --dataroo | --dataro | --datar) |
| 828 | ac_prev=datarootdir ;; |
| 829 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 830 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 831 | datarootdir=$ac_optarg ;; |
| 832 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 833 | -disable-* | --disable-*) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 834 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 835 | # Reject names that are not valid shell variable names. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 836 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 837 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 838 | { (exit 1); exit 1; }; } |
| 839 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 840 | eval enable_$ac_feature=no ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 841 | |
| 842 | -docdir | --docdir | --docdi | --doc | --do) |
| 843 | ac_prev=docdir ;; |
| 844 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 845 | docdir=$ac_optarg ;; |
| 846 | |
| 847 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 848 | ac_prev=dvidir ;; |
| 849 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 850 | dvidir=$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 851 | |
| 852 | -enable-* | --enable-*) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 853 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 854 | # Reject names that are not valid shell variable names. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 855 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 856 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 857 | { (exit 1); exit 1; }; } |
| 858 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 859 | eval enable_$ac_feature=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 860 | |
| 861 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 862 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 863 | | --exec | --exe | --ex) |
| 864 | ac_prev=exec_prefix ;; |
| 865 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 866 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 867 | | --exec=* | --exe=* | --ex=*) |
| 868 | exec_prefix=$ac_optarg ;; |
| 869 | |
| 870 | -gas | --gas | --ga | --g) |
| 871 | # Obsolete; use --with-gas. |
| 872 | with_gas=yes ;; |
| 873 | |
| 874 | -help | --help | --hel | --he | -h) |
| 875 | ac_init_help=long ;; |
| 876 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 877 | ac_init_help=recursive ;; |
| 878 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 879 | ac_init_help=short ;; |
| 880 | |
| 881 | -host | --host | --hos | --ho) |
| 882 | ac_prev=host_alias ;; |
| 883 | -host=* | --host=* | --hos=* | --ho=*) |
| 884 | host_alias=$ac_optarg ;; |
| 885 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 886 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 887 | ac_prev=htmldir ;; |
| 888 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 889 | | --ht=*) |
| 890 | htmldir=$ac_optarg ;; |
| 891 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 892 | -includedir | --includedir | --includedi | --included | --include \ |
| 893 | | --includ | --inclu | --incl | --inc) |
| 894 | ac_prev=includedir ;; |
| 895 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 896 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 897 | includedir=$ac_optarg ;; |
| 898 | |
| 899 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 900 | ac_prev=infodir ;; |
| 901 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 902 | infodir=$ac_optarg ;; |
| 903 | |
| 904 | -libdir | --libdir | --libdi | --libd) |
| 905 | ac_prev=libdir ;; |
| 906 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 907 | libdir=$ac_optarg ;; |
| 908 | |
| 909 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 910 | | --libexe | --libex | --libe) |
| 911 | ac_prev=libexecdir ;; |
| 912 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 913 | | --libexe=* | --libex=* | --libe=*) |
| 914 | libexecdir=$ac_optarg ;; |
| 915 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 916 | -localedir | --localedir | --localedi | --localed | --locale) |
| 917 | ac_prev=localedir ;; |
| 918 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 919 | localedir=$ac_optarg ;; |
| 920 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 921 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 922 | | --localstate | --localstat | --localsta | --localst | --locals) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 923 | ac_prev=localstatedir ;; |
| 924 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 925 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 926 | localstatedir=$ac_optarg ;; |
| 927 | |
| 928 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 929 | ac_prev=mandir ;; |
| 930 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 931 | mandir=$ac_optarg ;; |
| 932 | |
| 933 | -nfp | --nfp | --nf) |
| 934 | # Obsolete; use --without-fp. |
| 935 | with_fp=no ;; |
| 936 | |
| 937 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 938 | | --no-cr | --no-c | -n) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 939 | no_create=yes ;; |
| 940 | |
| 941 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 942 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 943 | no_recursion=yes ;; |
| 944 | |
| 945 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 946 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 947 | | --oldin | --oldi | --old | --ol | --o) |
| 948 | ac_prev=oldincludedir ;; |
| 949 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 950 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 951 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 952 | oldincludedir=$ac_optarg ;; |
| 953 | |
| 954 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 955 | ac_prev=prefix ;; |
| 956 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 957 | prefix=$ac_optarg ;; |
| 958 | |
| 959 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 960 | | --program-pre | --program-pr | --program-p) |
| 961 | ac_prev=program_prefix ;; |
| 962 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 963 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 964 | program_prefix=$ac_optarg ;; |
| 965 | |
| 966 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 967 | | --program-suf | --program-su | --program-s) |
| 968 | ac_prev=program_suffix ;; |
| 969 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 970 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 971 | program_suffix=$ac_optarg ;; |
| 972 | |
| 973 | -program-transform-name | --program-transform-name \ |
| 974 | | --program-transform-nam | --program-transform-na \ |
| 975 | | --program-transform-n | --program-transform- \ |
| 976 | | --program-transform | --program-transfor \ |
| 977 | | --program-transfo | --program-transf \ |
| 978 | | --program-trans | --program-tran \ |
| 979 | | --progr-tra | --program-tr | --program-t) |
| 980 | ac_prev=program_transform_name ;; |
| 981 | -program-transform-name=* | --program-transform-name=* \ |
| 982 | | --program-transform-nam=* | --program-transform-na=* \ |
| 983 | | --program-transform-n=* | --program-transform-=* \ |
| 984 | | --program-transform=* | --program-transfor=* \ |
| 985 | | --program-transfo=* | --program-transf=* \ |
| 986 | | --program-trans=* | --program-tran=* \ |
| 987 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 988 | program_transform_name=$ac_optarg ;; |
| 989 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 990 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 991 | ac_prev=pdfdir ;; |
| 992 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 993 | pdfdir=$ac_optarg ;; |
| 994 | |
| 995 | -psdir | --psdir | --psdi | --psd | --ps) |
| 996 | ac_prev=psdir ;; |
| 997 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 998 | psdir=$ac_optarg ;; |
| 999 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1000 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1001 | | -silent | --silent | --silen | --sile | --sil) |
| 1002 | silent=yes ;; |
| 1003 | |
| 1004 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1005 | ac_prev=sbindir ;; |
| 1006 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1007 | | --sbi=* | --sb=*) |
| 1008 | sbindir=$ac_optarg ;; |
| 1009 | |
| 1010 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1011 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1012 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1013 | | --sha | --sh) |
| 1014 | ac_prev=sharedstatedir ;; |
| 1015 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1016 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1017 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1018 | | --sha=* | --sh=*) |
| 1019 | sharedstatedir=$ac_optarg ;; |
| 1020 | |
| 1021 | -site | --site | --sit) |
| 1022 | ac_prev=site ;; |
| 1023 | -site=* | --site=* | --sit=*) |
| 1024 | site=$ac_optarg ;; |
| 1025 | |
| 1026 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1027 | ac_prev=srcdir ;; |
| 1028 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1029 | srcdir=$ac_optarg ;; |
| 1030 | |
| 1031 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1032 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1033 | ac_prev=sysconfdir ;; |
| 1034 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1035 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1036 | sysconfdir=$ac_optarg ;; |
| 1037 | |
| 1038 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1039 | ac_prev=target_alias ;; |
| 1040 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1041 | target_alias=$ac_optarg ;; |
| 1042 | |
| 1043 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1044 | verbose=yes ;; |
| 1045 | |
| 1046 | -version | --version | --versio | --versi | --vers | -V) |
| 1047 | ac_init_version=: ;; |
| 1048 | |
| 1049 | -with-* | --with-*) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1050 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1051 | # Reject names that are not valid shell variable names. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1052 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1053 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1054 | { (exit 1); exit 1; }; } |
| 1055 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1056 | eval with_$ac_package=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1057 | |
| 1058 | -without-* | --without-*) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1059 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1060 | # Reject names that are not valid shell variable names. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1061 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1062 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1063 | { (exit 1); exit 1; }; } |
| 1064 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1065 | eval with_$ac_package=no ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1066 | |
| 1067 | --x) |
| 1068 | # Obsolete; use --with-x. |
| 1069 | with_x=yes ;; |
| 1070 | |
| 1071 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1072 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1073 | ac_prev=x_includes ;; |
| 1074 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1075 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1076 | x_includes=$ac_optarg ;; |
| 1077 | |
| 1078 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1079 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1080 | ac_prev=x_libraries ;; |
| 1081 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1082 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1083 | x_libraries=$ac_optarg ;; |
| 1084 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1085 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1086 | Try \`$0 --help' for more information." >&2 |
| 1087 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1088 | ;; |
| 1089 | |
| 1090 | *=*) |
| 1091 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1092 | # Reject names that are not valid shell variable names. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1093 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1094 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1095 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1096 | eval $ac_envvar=\$ac_optarg |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1097 | export $ac_envvar ;; |
| 1098 | |
| 1099 | *) |
| 1100 | # FIXME: should be removed in autoconf 3.0. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1101 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1102 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1103 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1104 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1105 | ;; |
| 1106 | |
| 1107 | esac |
| 1108 | done |
| 1109 | |
| 1110 | if test -n "$ac_prev"; then |
| 1111 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1112 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1113 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1114 | fi |
| 1115 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1116 | # Be sure to have absolute directory names. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1117 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1118 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1119 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1120 | libdir localedir mandir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1121 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1122 | eval ac_val=\$$ac_var |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1123 | case $ac_val in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1124 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1125 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1126 | esac |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1127 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1128 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1129 | done |
| 1130 | |
| 1131 | # There might be people who depend on the old broken behavior: `$host' |
| 1132 | # used to hold the argument of --host etc. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1133 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1134 | build=$build_alias |
| 1135 | host=$host_alias |
| 1136 | target=$target_alias |
| 1137 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1138 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1139 | if test "x$host_alias" != x; then |
| 1140 | if test "x$build_alias" = x; then |
| 1141 | cross_compiling=maybe |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1142 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1143 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1144 | elif test "x$build_alias" != "x$host_alias"; then |
| 1145 | cross_compiling=yes |
| 1146 | fi |
| 1147 | fi |
| 1148 | |
| 1149 | ac_tool_prefix= |
| 1150 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1151 | |
| 1152 | test "$silent" = yes && exec 6>/dev/null |
| 1153 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1154 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1155 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1156 | ac_ls_di=`ls -di .` && |
| 1157 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1158 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1159 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1160 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1161 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1162 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1163 | |
| 1164 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1165 | # Find the source files, if location was not specified. |
| 1166 | if test -z "$srcdir"; then |
| 1167 | ac_srcdir_defaulted=yes |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1168 | # Try the directory containing this script, then the parent directory. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1169 | ac_confdir=`$as_dirname -- "$0" || |
| 1170 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1171 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1172 | X"$0" : 'X\(//\)$' \| \ |
| 1173 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1174 | echo X"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1175 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1176 | s//\1/ |
| 1177 | q |
| 1178 | } |
| 1179 | /^X\(\/\/\)[^/].*/{ |
| 1180 | s//\1/ |
| 1181 | q |
| 1182 | } |
| 1183 | /^X\(\/\/\)$/{ |
| 1184 | s//\1/ |
| 1185 | q |
| 1186 | } |
| 1187 | /^X\(\/\).*/{ |
| 1188 | s//\1/ |
| 1189 | q |
| 1190 | } |
| 1191 | s/.*/./; q'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1192 | srcdir=$ac_confdir |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1193 | if test ! -r "$srcdir/$ac_unique_file"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1194 | srcdir=.. |
| 1195 | fi |
| 1196 | else |
| 1197 | ac_srcdir_defaulted=no |
| 1198 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1199 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1200 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1201 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1202 | { (exit 1); exit 1; }; } |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1203 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1204 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1205 | ac_abs_confdir=`( |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1206 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1207 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1208 | pwd)` |
| 1209 | # When building in place, set srcdir=. |
| 1210 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1211 | srcdir=. |
| 1212 | fi |
| 1213 | # Remove unnecessary trailing slashes from srcdir. |
| 1214 | # Double slashes in file names in object file debugging info |
| 1215 | # mess up M-x gdb in Emacs. |
| 1216 | case $srcdir in |
| 1217 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1218 | esac |
| 1219 | for ac_var in $ac_precious_vars; do |
| 1220 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1221 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1222 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1223 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1224 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1225 | |
| 1226 | # |
| 1227 | # Report the --help message. |
| 1228 | # |
| 1229 | if test "$ac_init_help" = "long"; then |
| 1230 | # Omit some internal or obsolete options to make the list less imposing. |
| 1231 | # This message is too long to be a string in the A/UX 3.1 sh. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1232 | cat <<_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1233 | \`configure' configures pjproject 1.x to adapt to many kinds of systems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1234 | |
| 1235 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1236 | |
| 1237 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1238 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1239 | |
| 1240 | Defaults for the options are specified in brackets. |
| 1241 | |
| 1242 | Configuration: |
| 1243 | -h, --help display this help and exit |
| 1244 | --help=short display options specific to this package |
| 1245 | --help=recursive display the short help of all the included packages |
| 1246 | -V, --version display version information and exit |
| 1247 | -q, --quiet, --silent do not print \`checking...' messages |
| 1248 | --cache-file=FILE cache test results in FILE [disabled] |
| 1249 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1250 | -n, --no-create do not create output files |
| 1251 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1252 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1253 | Installation directories: |
| 1254 | --prefix=PREFIX install architecture-independent files in PREFIX |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1255 | [$ac_default_prefix] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1256 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1257 | [PREFIX] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1258 | |
| 1259 | By default, \`make install' will install all the files in |
| 1260 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1261 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1262 | for instance \`--prefix=\$HOME'. |
| 1263 | |
| 1264 | For better control, use the options below. |
| 1265 | |
| 1266 | Fine tuning of the installation directories: |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1267 | --bindir=DIR user executables [EPREFIX/bin] |
| 1268 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1269 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1270 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1271 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1272 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1273 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1274 | --includedir=DIR C header files [PREFIX/include] |
| 1275 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1276 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1277 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1278 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1279 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1280 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1281 | --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject] |
| 1282 | --htmldir=DIR html documentation [DOCDIR] |
| 1283 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1284 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1285 | --psdir=DIR ps documentation [DOCDIR] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1286 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1287 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1288 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1289 | |
| 1290 | System types: |
| 1291 | --build=BUILD configure for building on BUILD [guessed] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1292 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1293 | --target=TARGET configure for building compilers for TARGET [HOST] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1294 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1295 | fi |
| 1296 | |
| 1297 | if test -n "$ac_init_help"; then |
| 1298 | case $ac_init_help in |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1299 | short | recursive ) echo "Configuration of pjproject 1.x:";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1300 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1301 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1302 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1303 | Optional Features: |
| 1304 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1305 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1306 | --disable-floating-point |
| 1307 | Disable floating point where possible |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1308 | --enable-epoll Use /dev/epoll ioqueue on Linux (experimental) |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 1309 | --disable-sound Exclude sound (i.e. use null sound) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1310 | --disable-oss Disable OSS audio (default: not disabled) |
| 1311 | |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 1312 | --enable-ext-sound PJMEDIA will not provide any sound device backend |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1313 | --disable-small-filter Exclude small filter in resampling |
| 1314 | --disable-large-filter Exclude large filter in resampling |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1315 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 1316 | --disable-g711-codec Exclude G.711 codecs from the build |
| 1317 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 1318 | --disable-gsm-codec Exclude GSM codec in the build |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 1319 | --disable-g722-codec Exclude G.722 codec in the build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1320 | --disable-g7221-codec Exclude G.7221 codec in the build |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1321 | --disable-speex-codec Exclude Speex codecs in the build |
| 1322 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 1323 | --enable-libsamplerate Link with libsamplerate when available. Note that |
| 1324 | PJMEDIA_RESAMPLE_IMP must also be configured |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1325 | --enable-ipp Enable Intel IPP support. Specify the Intel IPP |
| 1326 | package and samples location using IPPROOT and |
| 1327 | IPPSAMPLES env var or with --with-ipp and |
| 1328 | --with-ipp-samples options |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 1329 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1330 | |
| 1331 | |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1332 | Optional Packages: |
| 1333 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1334 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1335 | --with-external-speex Use external Speex development files, not the one in |
| 1336 | "third_party" directory. When this option is set, |
| 1337 | make sure that Speex is accessible to use (hint: use |
| 1338 | CFLAGS and LDFLAGS env var to set the include/lib |
| 1339 | paths) |
| 1340 | --with-external-gsm Use external GSM codec library, not the one in |
| 1341 | "third_party" directory. When this option is set, |
| 1342 | make sure that the GSM include/lib files are |
| 1343 | accessible to use (hint: use CFLAGS and LDFLAGS env |
| 1344 | var to set the include/lib paths) |
| 1345 | --with-external-pa Use external PortAudio development files, not the |
| 1346 | one in "third_party" directory. When this option is |
| 1347 | set, make sure that PortAudio is accessible to use |
| 1348 | (hint: use CFLAGS and LDFLAGS env var to set the |
| 1349 | include/lib paths) |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 1350 | --with-ipp=DIR Specify the Intel IPP location |
| 1351 | --with-ipp-samples=DIR Specify the Intel IPP samples location |
| 1352 | --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 1353 | "em64t. Default is blank for IA32" |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1354 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1355 | Some influential environment variables: |
| 1356 | CC C compiler command |
| 1357 | CFLAGS C compiler flags |
| 1358 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1359 | nonstandard directory <lib dir> |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1360 | LIBS libraries to pass to the linker, e.g. -l<library> |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1361 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1362 | you have headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1363 | CXX C++ compiler command |
| 1364 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1365 | CPP C preprocessor |
| 1366 | |
| 1367 | Use these variables to override the choices made by `configure' or to help |
| 1368 | it to find libraries and programs with nonstandard names/locations. |
| 1369 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1370 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1371 | ac_status=$? |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1372 | fi |
| 1373 | |
| 1374 | if test "$ac_init_help" = "recursive"; then |
| 1375 | # If there are subdirs, report their specific --help. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1376 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1377 | test -d "$ac_dir" || continue |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1378 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1379 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1380 | case "$ac_dir" in |
| 1381 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1382 | *) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1383 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1384 | # A ".." for each directory in $ac_dir_suffix. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1385 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1386 | case $ac_top_builddir_sub in |
| 1387 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1388 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1389 | esac ;; |
| 1390 | esac |
| 1391 | ac_abs_top_builddir=$ac_pwd |
| 1392 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1393 | # for backward compatibility: |
| 1394 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1395 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1396 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1397 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1398 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1399 | ac_top_srcdir=$ac_top_builddir_sub |
| 1400 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1401 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1402 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1403 | ac_top_srcdir=$srcdir |
| 1404 | ac_abs_top_srcdir=$srcdir ;; |
| 1405 | *) # Relative name. |
| 1406 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1407 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1408 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1409 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1410 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1411 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1412 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1413 | # Check for guested configure. |
| 1414 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1415 | echo && |
| 1416 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1417 | elif test -f "$ac_srcdir/configure"; then |
| 1418 | echo && |
| 1419 | $SHELL "$ac_srcdir/configure" --help=recursive |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1420 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1421 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1422 | fi || ac_status=$? |
| 1423 | cd "$ac_pwd" || { ac_status=$?; break; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1424 | done |
| 1425 | fi |
| 1426 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1427 | test -n "$ac_init_help" && exit $ac_status |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1428 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1429 | cat <<\_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1430 | pjproject configure 1.x |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1431 | generated by GNU Autoconf 2.61 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1432 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1433 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1434 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1435 | This configure script is free software; the Free Software Foundation |
| 1436 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1437 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1438 | exit |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1439 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1440 | cat >config.log <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1441 | This file contains any messages produced by compilers while |
| 1442 | running configure, to aid debugging if configure makes a mistake. |
| 1443 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1444 | It was created by pjproject $as_me 1.x, which was |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1445 | generated by GNU Autoconf 2.61. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1446 | |
| 1447 | $ $0 $@ |
| 1448 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1449 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1450 | exec 5>>config.log |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1451 | { |
| 1452 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1453 | ## --------- ## |
| 1454 | ## Platform. ## |
| 1455 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1456 | |
| 1457 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1458 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1459 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1460 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1461 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1462 | |
| 1463 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1464 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1465 | |
| 1466 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1467 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1468 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1469 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1470 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1471 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1472 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1473 | |
| 1474 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1475 | |
| 1476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1477 | for as_dir in $PATH |
| 1478 | do |
| 1479 | IFS=$as_save_IFS |
| 1480 | test -z "$as_dir" && as_dir=. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1481 | echo "PATH: $as_dir" |
| 1482 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1483 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1484 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1485 | } >&5 |
| 1486 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1487 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1488 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1489 | |
| 1490 | ## ----------- ## |
| 1491 | ## Core tests. ## |
| 1492 | ## ----------- ## |
| 1493 | |
| 1494 | _ACEOF |
| 1495 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1496 | |
| 1497 | # Keep a trace of the command line. |
| 1498 | # Strip out --no-create and --no-recursion so they do not pile up. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1499 | # Strip out --silent because we don't want to record it for future runs. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1500 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1501 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1502 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1503 | ac_configure_args0= |
| 1504 | ac_configure_args1= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1505 | ac_must_keep_next=false |
| 1506 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1507 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1508 | for ac_arg |
| 1509 | do |
| 1510 | case $ac_arg in |
| 1511 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1512 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1513 | | -silent | --silent | --silen | --sile | --sil) |
| 1514 | continue ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1515 | *\'*) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1516 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1517 | esac |
| 1518 | case $ac_pass in |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1519 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1520 | 2) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1521 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1522 | if test $ac_must_keep_next = true; then |
| 1523 | ac_must_keep_next=false # Got value, back to normal. |
| 1524 | else |
| 1525 | case $ac_arg in |
| 1526 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1527 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1528 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1529 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1530 | case "$ac_configure_args0 " in |
| 1531 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1532 | esac |
| 1533 | ;; |
| 1534 | -* ) ac_must_keep_next=true ;; |
| 1535 | esac |
| 1536 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1537 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1538 | ;; |
| 1539 | esac |
| 1540 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1541 | done |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1542 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1543 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1544 | |
| 1545 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1546 | # config.log. We remove comments because anyway the quotes in there |
| 1547 | # would cause problems or look ugly. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1548 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1549 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1550 | trap 'exit_status=$? |
| 1551 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1552 | { |
| 1553 | echo |
| 1554 | |
| 1555 | cat <<\_ASBOX |
| 1556 | ## ---------------- ## |
| 1557 | ## Cache variables. ## |
| 1558 | ## ---------------- ## |
| 1559 | _ASBOX |
| 1560 | echo |
| 1561 | # The following way of writing the cache mishandles newlines in values, |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1562 | ( |
| 1563 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1564 | eval ac_val=\$$ac_var |
| 1565 | case $ac_val in #( |
| 1566 | *${as_nl}*) |
| 1567 | case $ac_var in #( |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1568 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1569 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1570 | esac |
| 1571 | case $ac_var in #( |
| 1572 | _ | IFS | as_nl) ;; #( |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1573 | *) $as_unset $ac_var ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1574 | esac ;; |
| 1575 | esac |
| 1576 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1577 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1578 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1579 | *${as_nl}ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1580 | sed -n \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1581 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1582 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1583 | ;; #( |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1584 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1585 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 1586 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1587 | esac | |
| 1588 | sort |
| 1589 | ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1590 | echo |
| 1591 | |
| 1592 | cat <<\_ASBOX |
| 1593 | ## ----------------- ## |
| 1594 | ## Output variables. ## |
| 1595 | ## ----------------- ## |
| 1596 | _ASBOX |
| 1597 | echo |
| 1598 | for ac_var in $ac_subst_vars |
| 1599 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1600 | eval ac_val=\$$ac_var |
| 1601 | case $ac_val in |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1602 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1603 | esac |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1604 | echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1605 | done | sort |
| 1606 | echo |
| 1607 | |
| 1608 | if test -n "$ac_subst_files"; then |
| 1609 | cat <<\_ASBOX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1610 | ## ------------------- ## |
| 1611 | ## File substitutions. ## |
| 1612 | ## ------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1613 | _ASBOX |
| 1614 | echo |
| 1615 | for ac_var in $ac_subst_files |
| 1616 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1617 | eval ac_val=\$$ac_var |
| 1618 | case $ac_val in |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1619 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1620 | esac |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1621 | echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1622 | done | sort |
| 1623 | echo |
| 1624 | fi |
| 1625 | |
| 1626 | if test -s confdefs.h; then |
| 1627 | cat <<\_ASBOX |
| 1628 | ## ----------- ## |
| 1629 | ## confdefs.h. ## |
| 1630 | ## ----------- ## |
| 1631 | _ASBOX |
| 1632 | echo |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1633 | cat confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1634 | echo |
| 1635 | fi |
| 1636 | test "$ac_signal" != 0 && |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1637 | echo "$as_me: caught signal $ac_signal" |
| 1638 | echo "$as_me: exit $exit_status" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1639 | } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1640 | rm -f core *.core core.conftest.* && |
| 1641 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1642 | exit $exit_status |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1643 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1644 | for ac_signal in 1 2 13 15; do |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1645 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1646 | done |
| 1647 | ac_signal=0 |
| 1648 | |
| 1649 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1650 | rm -f -r conftest* confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1651 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1652 | # Predefined preprocessor variables. |
| 1653 | |
| 1654 | cat >>confdefs.h <<_ACEOF |
| 1655 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1656 | _ACEOF |
| 1657 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1658 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1659 | cat >>confdefs.h <<_ACEOF |
| 1660 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1661 | _ACEOF |
| 1662 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1663 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1664 | cat >>confdefs.h <<_ACEOF |
| 1665 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1666 | _ACEOF |
| 1667 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1668 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1669 | cat >>confdefs.h <<_ACEOF |
| 1670 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1671 | _ACEOF |
| 1672 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1673 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1674 | cat >>confdefs.h <<_ACEOF |
| 1675 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1676 | _ACEOF |
| 1677 | |
| 1678 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1679 | # Let the site file select an alternate cache file if it wants to. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1680 | # Prefer explicitly selected file to automatically selected ones. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1681 | if test -n "$CONFIG_SITE"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1682 | set x "$CONFIG_SITE" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1683 | elif test "x$prefix" != xNONE; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1684 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1685 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1686 | set x "$ac_default_prefix/share/config.site" \ |
| 1687 | "$ac_default_prefix/etc/config.site" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1688 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1689 | shift |
| 1690 | for ac_site_file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1691 | do |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1692 | if test -r "$ac_site_file"; then |
| 1693 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1694 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1695 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1696 | . "$ac_site_file" |
| 1697 | fi |
| 1698 | done |
| 1699 | |
| 1700 | if test -r "$cache_file"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1701 | # Some versions of bash will fail to source /dev/null (special |
| 1702 | # files actually), so we avoid doing that. |
| 1703 | if test -f "$cache_file"; then |
| 1704 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1705 | echo "$as_me: loading cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1706 | case $cache_file in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1707 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1708 | *) . "./$cache_file";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1709 | esac |
| 1710 | fi |
| 1711 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1712 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1713 | echo "$as_me: creating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1714 | >$cache_file |
| 1715 | fi |
| 1716 | |
| 1717 | # Check that the precious variables saved in the cache have kept the same |
| 1718 | # value. |
| 1719 | ac_cache_corrupted=false |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1720 | for ac_var in $ac_precious_vars; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1721 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1722 | eval ac_new_set=\$ac_env_${ac_var}_set |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1723 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1724 | eval ac_new_val=\$ac_env_${ac_var}_value |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1725 | case $ac_old_set,$ac_new_set in |
| 1726 | set,) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1727 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1728 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1729 | ac_cache_corrupted=: ;; |
| 1730 | ,set) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1731 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1732 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1733 | ac_cache_corrupted=: ;; |
| 1734 | ,);; |
| 1735 | *) |
| 1736 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1737 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1738 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1739 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1740 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1741 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1742 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1743 | ac_cache_corrupted=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1744 | fi;; |
| 1745 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1746 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1747 | if test "$ac_new_set" = set; then |
| 1748 | case $ac_new_val in |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1749 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1750 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1751 | esac |
| 1752 | case " $ac_configure_args " in |
| 1753 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1754 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1755 | esac |
| 1756 | fi |
| 1757 | done |
| 1758 | if $ac_cache_corrupted; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1759 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1760 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1761 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1762 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1763 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1764 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1765 | |
| 1766 | |
| 1767 | |
| 1768 | |
| 1769 | |
| 1770 | |
| 1771 | |
| 1772 | |
| 1773 | |
| 1774 | |
| 1775 | |
| 1776 | |
| 1777 | |
| 1778 | |
| 1779 | |
| 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1789 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1790 | ac_ext=c |
| 1791 | ac_cpp='$CPP $CPPFLAGS' |
| 1792 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1793 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1794 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1795 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1796 | |
| 1797 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 1798 | host_orig="$host" |
| 1799 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1800 | ac_aux_dir= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1801 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1802 | if test -f "$ac_dir/install-sh"; then |
| 1803 | ac_aux_dir=$ac_dir |
| 1804 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1805 | break |
| 1806 | elif test -f "$ac_dir/install.sh"; then |
| 1807 | ac_aux_dir=$ac_dir |
| 1808 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1809 | break |
| 1810 | elif test -f "$ac_dir/shtool"; then |
| 1811 | ac_aux_dir=$ac_dir |
| 1812 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1813 | break |
| 1814 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1815 | done |
| 1816 | if test -z "$ac_aux_dir"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1817 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 1818 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
| 1819 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1820 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1821 | |
| 1822 | # These three variables are undocumented and unsupported, |
| 1823 | # and are intended to be withdrawn in a future Autoconf release. |
| 1824 | # They can cause serious problems if a builder's source tree is in a directory |
| 1825 | # whose full name contains unusual characters. |
| 1826 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1827 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1828 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1829 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1830 | |
| 1831 | # Make sure we can run config.sub. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1832 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1833 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1834 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 1835 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1836 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1837 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1838 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 1839 | if test "${ac_cv_build+set}" = set; then |
| 1840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1841 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1842 | ac_build_alias=$build_alias |
| 1843 | test "x$ac_build_alias" = x && |
| 1844 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1845 | test "x$ac_build_alias" = x && |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1846 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1847 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1848 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1849 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1850 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1851 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 1852 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1853 | |
| 1854 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1855 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1856 | echo "${ECHO_T}$ac_cv_build" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1857 | case $ac_cv_build in |
| 1858 | *-*-*) ;; |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1859 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1860 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1861 | { (exit 1); exit 1; }; };; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1862 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1863 | build=$ac_cv_build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1864 | ac_save_IFS=$IFS; IFS='-' |
| 1865 | set x $ac_cv_build |
| 1866 | shift |
| 1867 | build_cpu=$1 |
| 1868 | build_vendor=$2 |
| 1869 | shift; shift |
| 1870 | # Remember, the first character of IFS is used to create $*, |
| 1871 | # except with old shells: |
| 1872 | build_os=$* |
| 1873 | IFS=$ac_save_IFS |
| 1874 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1875 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1876 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1877 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1878 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 1879 | if test "${ac_cv_host+set}" = set; then |
| 1880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1881 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1882 | if test "x$host_alias" = x; then |
| 1883 | ac_cv_host=$ac_cv_build |
| 1884 | else |
| 1885 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1886 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1887 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 1888 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1889 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1890 | |
| 1891 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1892 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1893 | echo "${ECHO_T}$ac_cv_host" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1894 | case $ac_cv_host in |
| 1895 | *-*-*) ;; |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1896 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1897 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1898 | { (exit 1); exit 1; }; };; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1899 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1900 | host=$ac_cv_host |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1901 | ac_save_IFS=$IFS; IFS='-' |
| 1902 | set x $ac_cv_host |
| 1903 | shift |
| 1904 | host_cpu=$1 |
| 1905 | host_vendor=$2 |
| 1906 | shift; shift |
| 1907 | # Remember, the first character of IFS is used to create $*, |
| 1908 | # except with old shells: |
| 1909 | host_os=$* |
| 1910 | IFS=$ac_save_IFS |
| 1911 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1912 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1913 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1914 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 1915 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 1916 | if test "${ac_cv_target+set}" = set; then |
| 1917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1918 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1919 | if test "x$target_alias" = x; then |
| 1920 | ac_cv_target=$ac_cv_host |
| 1921 | else |
| 1922 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1923 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 1924 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 1925 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1926 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1927 | |
| 1928 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1929 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1930 | echo "${ECHO_T}$ac_cv_target" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1931 | case $ac_cv_target in |
| 1932 | *-*-*) ;; |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1933 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 1934 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 1935 | { (exit 1); exit 1; }; };; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1936 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1937 | target=$ac_cv_target |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1938 | ac_save_IFS=$IFS; IFS='-' |
| 1939 | set x $ac_cv_target |
| 1940 | shift |
| 1941 | target_cpu=$1 |
| 1942 | target_vendor=$2 |
| 1943 | shift; shift |
| 1944 | # Remember, the first character of IFS is used to create $*, |
| 1945 | # except with old shells: |
| 1946 | target_os=$* |
| 1947 | IFS=$ac_save_IFS |
| 1948 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1949 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1950 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1951 | # The aliases save the names the user supplied, while $host etc. |
| 1952 | # will get canonicalized. |
| 1953 | test -n "$target_alias" && |
| 1954 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1955 | NONENONEs,x,x, && |
| 1956 | program_prefix=${target_alias}- |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1957 | ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1958 | |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 1959 | ac_config_files="$ac_config_files build.mak build/os-auto.mak build/cc-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/os-auto.mak third_party/build/portaudio/os-auto.mak" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1960 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1961 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 1962 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1963 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 1964 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1965 | else |
| 1966 | CFLAGS="$CFLAGS" |
| 1967 | fi |
| 1968 | |
| 1969 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 1970 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1971 | ac_ext=c |
| 1972 | ac_cpp='$CPP $CPPFLAGS' |
| 1973 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1974 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1975 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1976 | if test -n "$ac_tool_prefix"; then |
| 1977 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1978 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1979 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1980 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1981 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1983 | else |
| 1984 | if test -n "$CC"; then |
| 1985 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1986 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1988 | for as_dir in $PATH |
| 1989 | do |
| 1990 | IFS=$as_save_IFS |
| 1991 | test -z "$as_dir" && as_dir=. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1992 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1993 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1994 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1995 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1996 | break 2 |
| 1997 | fi |
| 1998 | done |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 1999 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2000 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2001 | |
| 2002 | fi |
| 2003 | fi |
| 2004 | CC=$ac_cv_prog_CC |
| 2005 | if test -n "$CC"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2006 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2007 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2008 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2009 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2010 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2011 | fi |
| 2012 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2013 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2014 | fi |
| 2015 | if test -z "$ac_cv_prog_CC"; then |
| 2016 | ac_ct_CC=$CC |
| 2017 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2018 | set dummy gcc; ac_word=$2 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2019 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2020 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2021 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2023 | else |
| 2024 | if test -n "$ac_ct_CC"; then |
| 2025 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2026 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2028 | for as_dir in $PATH |
| 2029 | do |
| 2030 | IFS=$as_save_IFS |
| 2031 | test -z "$as_dir" && as_dir=. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2032 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2033 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2034 | ac_cv_prog_ac_ct_CC="gcc" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2035 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2036 | break 2 |
| 2037 | fi |
| 2038 | done |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2039 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2040 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2041 | |
| 2042 | fi |
| 2043 | fi |
| 2044 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2045 | if test -n "$ac_ct_CC"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2046 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2047 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2048 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2049 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2050 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2051 | fi |
| 2052 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2053 | if test "x$ac_ct_CC" = x; then |
| 2054 | CC="" |
| 2055 | else |
| 2056 | case $cross_compiling:$ac_tool_warned in |
| 2057 | yes:) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2058 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2059 | whose name does not start with the host triplet. If you think this |
| 2060 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2061 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2062 | whose name does not start with the host triplet. If you think this |
| 2063 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2064 | ac_tool_warned=yes ;; |
| 2065 | esac |
| 2066 | CC=$ac_ct_CC |
| 2067 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2068 | else |
| 2069 | CC="$ac_cv_prog_CC" |
| 2070 | fi |
| 2071 | |
| 2072 | if test -z "$CC"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2073 | if test -n "$ac_tool_prefix"; then |
| 2074 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2075 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2076 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2078 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2080 | else |
| 2081 | if test -n "$CC"; then |
| 2082 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2083 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2085 | for as_dir in $PATH |
| 2086 | do |
| 2087 | IFS=$as_save_IFS |
| 2088 | test -z "$as_dir" && as_dir=. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2089 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2091 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2092 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2093 | break 2 |
| 2094 | fi |
| 2095 | done |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2096 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2097 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2098 | |
| 2099 | fi |
| 2100 | fi |
| 2101 | CC=$ac_cv_prog_CC |
| 2102 | if test -n "$CC"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2103 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2104 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2105 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2106 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2107 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2108 | fi |
| 2109 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2110 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2111 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2112 | fi |
| 2113 | if test -z "$CC"; then |
| 2114 | # Extract the first word of "cc", so it can be a program name with args. |
| 2115 | set dummy cc; ac_word=$2 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2116 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2117 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2118 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2120 | else |
| 2121 | if test -n "$CC"; then |
| 2122 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2123 | else |
| 2124 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2126 | for as_dir in $PATH |
| 2127 | do |
| 2128 | IFS=$as_save_IFS |
| 2129 | test -z "$as_dir" && as_dir=. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2130 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2131 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2132 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2133 | ac_prog_rejected=yes |
| 2134 | continue |
| 2135 | fi |
| 2136 | ac_cv_prog_CC="cc" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2137 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2138 | break 2 |
| 2139 | fi |
| 2140 | done |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2141 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2142 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2143 | |
| 2144 | if test $ac_prog_rejected = yes; then |
| 2145 | # We found a bogon in the path, so make sure we never use it. |
| 2146 | set dummy $ac_cv_prog_CC |
| 2147 | shift |
| 2148 | if test $# != 0; then |
| 2149 | # We chose a different compiler from the bogus one. |
| 2150 | # However, it has the same basename, so the bogon will be chosen |
| 2151 | # first if we set CC to just the basename; use the full file name. |
| 2152 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2153 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2154 | fi |
| 2155 | fi |
| 2156 | fi |
| 2157 | fi |
| 2158 | CC=$ac_cv_prog_CC |
| 2159 | if test -n "$CC"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2160 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2161 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2162 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2163 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2164 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2165 | fi |
| 2166 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2167 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2168 | fi |
| 2169 | if test -z "$CC"; then |
| 2170 | if test -n "$ac_tool_prefix"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2171 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2172 | do |
| 2173 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2174 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2175 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2177 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2179 | else |
| 2180 | if test -n "$CC"; then |
| 2181 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2182 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2184 | for as_dir in $PATH |
| 2185 | do |
| 2186 | IFS=$as_save_IFS |
| 2187 | test -z "$as_dir" && as_dir=. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2188 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2189 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2190 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2192 | break 2 |
| 2193 | fi |
| 2194 | done |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2195 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2196 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2197 | |
| 2198 | fi |
| 2199 | fi |
| 2200 | CC=$ac_cv_prog_CC |
| 2201 | if test -n "$CC"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2202 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2203 | echo "${ECHO_T}$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2204 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2205 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2206 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2207 | fi |
| 2208 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2209 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2210 | test -n "$CC" && break |
| 2211 | done |
| 2212 | fi |
| 2213 | if test -z "$CC"; then |
| 2214 | ac_ct_CC=$CC |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2215 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2216 | do |
| 2217 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2218 | set dummy $ac_prog; ac_word=$2 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2219 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2220 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2221 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2223 | else |
| 2224 | if test -n "$ac_ct_CC"; then |
| 2225 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2226 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2228 | for as_dir in $PATH |
| 2229 | do |
| 2230 | IFS=$as_save_IFS |
| 2231 | test -z "$as_dir" && as_dir=. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2232 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2234 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2235 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2236 | break 2 |
| 2237 | fi |
| 2238 | done |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2239 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2240 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2241 | |
| 2242 | fi |
| 2243 | fi |
| 2244 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2245 | if test -n "$ac_ct_CC"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2246 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2247 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2248 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2249 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2250 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2251 | fi |
| 2252 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2253 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2254 | test -n "$ac_ct_CC" && break |
| 2255 | done |
| 2256 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2257 | if test "x$ac_ct_CC" = x; then |
| 2258 | CC="" |
| 2259 | else |
| 2260 | case $cross_compiling:$ac_tool_warned in |
| 2261 | yes:) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2262 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2263 | whose name does not start with the host triplet. If you think this |
| 2264 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2265 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2266 | whose name does not start with the host triplet. If you think this |
| 2267 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2268 | ac_tool_warned=yes ;; |
| 2269 | esac |
| 2270 | CC=$ac_ct_CC |
| 2271 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2272 | fi |
| 2273 | |
| 2274 | fi |
| 2275 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2276 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2277 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2278 | See \`config.log' for more details." >&5 |
| 2279 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2280 | See \`config.log' for more details." >&2;} |
| 2281 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2282 | |
| 2283 | # Provide some information about the compiler. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2284 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2285 | ac_compiler=`set X $ac_compile; echo $2` |
| 2286 | { (ac_try="$ac_compiler --version >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2287 | case "(($ac_try" in |
| 2288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2289 | *) ac_try_echo=$ac_try;; |
| 2290 | esac |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2292 | (eval "$ac_compiler --version >&5") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2293 | ac_status=$? |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2295 | (exit $ac_status); } |
| 2296 | { (ac_try="$ac_compiler -v >&5" |
| 2297 | case "(($ac_try" in |
| 2298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2299 | *) ac_try_echo=$ac_try;; |
| 2300 | esac |
| 2301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2302 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2303 | ac_status=$? |
| 2304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2305 | (exit $ac_status); } |
| 2306 | { (ac_try="$ac_compiler -V >&5" |
| 2307 | case "(($ac_try" in |
| 2308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2309 | *) ac_try_echo=$ac_try;; |
| 2310 | esac |
| 2311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2312 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2313 | ac_status=$? |
| 2314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2315 | (exit $ac_status); } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2316 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2317 | cat >conftest.$ac_ext <<_ACEOF |
| 2318 | /* confdefs.h. */ |
| 2319 | _ACEOF |
| 2320 | cat confdefs.h >>conftest.$ac_ext |
| 2321 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2322 | /* end confdefs.h. */ |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2323 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2324 | int |
| 2325 | main () |
| 2326 | { |
| 2327 | |
| 2328 | ; |
| 2329 | return 0; |
| 2330 | } |
| 2331 | _ACEOF |
| 2332 | ac_clean_files_save=$ac_clean_files |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2333 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2334 | # Try to create an executable without -o first, disregard a.out. |
| 2335 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2336 | # of exeext. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2337 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2338 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2339 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2340 | # |
| 2341 | # List of possible output files, starting from the most likely. |
| 2342 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2343 | # only as a last resort. b.out is created by i960 compilers. |
| 2344 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2345 | # |
| 2346 | # The IRIX 6 linker writes into existing files which may not be |
| 2347 | # executable, retaining their permissions. Remove them first so a |
| 2348 | # subsequent execution test works. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2349 | ac_rmfiles= |
| 2350 | for ac_file in $ac_files |
| 2351 | do |
| 2352 | case $ac_file in |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2353 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2354 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2355 | esac |
| 2356 | done |
| 2357 | rm -f $ac_rmfiles |
| 2358 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2359 | if { (ac_try="$ac_link_default" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2360 | case "(($ac_try" in |
| 2361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2362 | *) ac_try_echo=$ac_try;; |
| 2363 | esac |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2365 | (eval "$ac_link_default") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2366 | ac_status=$? |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2368 | (exit $ac_status); }; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2369 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2370 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2371 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2372 | # so that the user can short-circuit this test for compilers unknown to |
| 2373 | # Autoconf. |
| 2374 | for ac_file in $ac_files '' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2375 | do |
| 2376 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2377 | case $ac_file in |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2378 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2379 | ;; |
| 2380 | [ab].out ) |
| 2381 | # We found the default executable, but exeext='' is most |
| 2382 | # certainly right. |
| 2383 | break;; |
| 2384 | *.* ) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2385 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2386 | then :; else |
| 2387 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2388 | fi |
| 2389 | # We set ac_cv_exeext here because the later test for it is not |
| 2390 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2391 | # argument, so we may need to know it at that point already. |
| 2392 | # Even if this section looks crufty: it has the advantage of |
| 2393 | # actually working. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2394 | break;; |
| 2395 | * ) |
| 2396 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2397 | esac |
| 2398 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2399 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2400 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2401 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2402 | ac_file='' |
| 2403 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2404 | |
| 2405 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2406 | echo "${ECHO_T}$ac_file" >&6; } |
| 2407 | if test -z "$ac_file"; then |
| 2408 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2410 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2411 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2412 | See \`config.log' for more details." >&5 |
| 2413 | echo "$as_me: error: C compiler cannot create executables |
| 2414 | See \`config.log' for more details." >&2;} |
| 2415 | { (exit 77); exit 77; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2416 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2417 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2418 | ac_exeext=$ac_cv_exeext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2419 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2420 | # Check that the compiler produces executables we can run. If not, either |
| 2421 | # the compiler is broken, or we cross compile. |
| 2422 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2423 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2424 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2425 | # If not cross compiling, check that we can run a simple program. |
| 2426 | if test "$cross_compiling" != yes; then |
| 2427 | if { ac_try='./$ac_file' |
| 2428 | { (case "(($ac_try" in |
| 2429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2430 | *) ac_try_echo=$ac_try;; |
| 2431 | esac |
| 2432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2433 | (eval "$ac_try") 2>&5 |
| 2434 | ac_status=$? |
| 2435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2436 | (exit $ac_status); }; }; then |
| 2437 | cross_compiling=no |
| 2438 | else |
| 2439 | if test "$cross_compiling" = maybe; then |
| 2440 | cross_compiling=yes |
| 2441 | else |
| 2442 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2443 | If you meant to cross compile, use \`--host'. |
| 2444 | See \`config.log' for more details." >&5 |
| 2445 | echo "$as_me: error: cannot run C compiled programs. |
| 2446 | If you meant to cross compile, use \`--host'. |
| 2447 | See \`config.log' for more details." >&2;} |
| 2448 | { (exit 1); exit 1; }; } |
| 2449 | fi |
| 2450 | fi |
| 2451 | fi |
| 2452 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2453 | echo "${ECHO_T}yes" >&6; } |
| 2454 | |
| 2455 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2456 | ac_clean_files=$ac_clean_files_save |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2457 | # Check that the compiler produces executables we can run. If not, either |
| 2458 | # the compiler is broken, or we cross compile. |
| 2459 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2460 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2461 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2462 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2463 | |
| 2464 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2465 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2466 | if { (ac_try="$ac_link" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2467 | case "(($ac_try" in |
| 2468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2469 | *) ac_try_echo=$ac_try;; |
| 2470 | esac |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2472 | (eval "$ac_link") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2473 | ac_status=$? |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2475 | (exit $ac_status); }; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2476 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2477 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2478 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2479 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2480 | for ac_file in conftest.exe conftest conftest.*; do |
| 2481 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2482 | case $ac_file in |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2483 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2484 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2485 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2486 | * ) break;; |
| 2487 | esac |
| 2488 | done |
| 2489 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2490 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2491 | See \`config.log' for more details." >&5 |
| 2492 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2493 | See \`config.log' for more details." >&2;} |
| 2494 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2495 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2496 | |
| 2497 | rm -f conftest$ac_cv_exeext |
| 2498 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2499 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2500 | |
| 2501 | rm -f conftest.$ac_ext |
| 2502 | EXEEXT=$ac_cv_exeext |
| 2503 | ac_exeext=$EXEEXT |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2504 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2505 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2506 | if test "${ac_cv_objext+set}" = set; then |
| 2507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2508 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2509 | cat >conftest.$ac_ext <<_ACEOF |
| 2510 | /* confdefs.h. */ |
| 2511 | _ACEOF |
| 2512 | cat confdefs.h >>conftest.$ac_ext |
| 2513 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2514 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2515 | |
| 2516 | int |
| 2517 | main () |
| 2518 | { |
| 2519 | |
| 2520 | ; |
| 2521 | return 0; |
| 2522 | } |
| 2523 | _ACEOF |
| 2524 | rm -f conftest.o conftest.obj |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2525 | if { (ac_try="$ac_compile" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2526 | case "(($ac_try" in |
| 2527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2528 | *) ac_try_echo=$ac_try;; |
| 2529 | esac |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2531 | (eval "$ac_compile") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2532 | ac_status=$? |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2534 | (exit $ac_status); }; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2535 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2536 | test -f "$ac_file" || continue; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2537 | case $ac_file in |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2538 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2539 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2540 | break;; |
| 2541 | esac |
| 2542 | done |
| 2543 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2544 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2546 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2547 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2548 | See \`config.log' for more details." >&5 |
| 2549 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2550 | See \`config.log' for more details." >&2;} |
| 2551 | { (exit 1); exit 1; }; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2552 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2553 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2554 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2555 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2556 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2557 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2558 | OBJEXT=$ac_cv_objext |
| 2559 | ac_objext=$OBJEXT |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2560 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2561 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2562 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2564 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2565 | cat >conftest.$ac_ext <<_ACEOF |
| 2566 | /* confdefs.h. */ |
| 2567 | _ACEOF |
| 2568 | cat confdefs.h >>conftest.$ac_ext |
| 2569 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2570 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2571 | |
| 2572 | int |
| 2573 | main () |
| 2574 | { |
| 2575 | #ifndef __GNUC__ |
| 2576 | choke me |
| 2577 | #endif |
| 2578 | |
| 2579 | ; |
| 2580 | return 0; |
| 2581 | } |
| 2582 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2583 | rm -f conftest.$ac_objext |
| 2584 | if { (ac_try="$ac_compile" |
| 2585 | case "(($ac_try" in |
| 2586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2587 | *) ac_try_echo=$ac_try;; |
| 2588 | esac |
| 2589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2590 | (eval "$ac_compile") 2>conftest.er1 |
| 2591 | ac_status=$? |
| 2592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2593 | rm -f conftest.er1 |
| 2594 | cat conftest.err >&5 |
| 2595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2596 | (exit $ac_status); } && { |
| 2597 | test -z "$ac_c_werror_flag" || |
| 2598 | test ! -s conftest.err |
| 2599 | } && test -s conftest.$ac_objext; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2600 | ac_compiler_gnu=yes |
| 2601 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2602 | echo "$as_me: failed program was:" >&5 |
| 2603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2604 | |
| 2605 | ac_compiler_gnu=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2606 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2607 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2609 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2610 | |
| 2611 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2612 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2613 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2614 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2615 | ac_test_CFLAGS=${CFLAGS+set} |
| 2616 | ac_save_CFLAGS=$CFLAGS |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2617 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2618 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 2619 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2621 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2622 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2623 | ac_c_werror_flag=yes |
| 2624 | ac_cv_prog_cc_g=no |
| 2625 | CFLAGS="-g" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2626 | cat >conftest.$ac_ext <<_ACEOF |
| 2627 | /* confdefs.h. */ |
| 2628 | _ACEOF |
| 2629 | cat confdefs.h >>conftest.$ac_ext |
| 2630 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2631 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2632 | |
| 2633 | int |
| 2634 | main () |
| 2635 | { |
| 2636 | |
| 2637 | ; |
| 2638 | return 0; |
| 2639 | } |
| 2640 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2641 | rm -f conftest.$ac_objext |
| 2642 | if { (ac_try="$ac_compile" |
| 2643 | case "(($ac_try" in |
| 2644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2645 | *) ac_try_echo=$ac_try;; |
| 2646 | esac |
| 2647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2648 | (eval "$ac_compile") 2>conftest.er1 |
| 2649 | ac_status=$? |
| 2650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2651 | rm -f conftest.er1 |
| 2652 | cat conftest.err >&5 |
| 2653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2654 | (exit $ac_status); } && { |
| 2655 | test -z "$ac_c_werror_flag" || |
| 2656 | test ! -s conftest.err |
| 2657 | } && test -s conftest.$ac_objext; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2658 | ac_cv_prog_cc_g=yes |
| 2659 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2660 | echo "$as_me: failed program was:" >&5 |
| 2661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2662 | |
| 2663 | CFLAGS="" |
| 2664 | cat >conftest.$ac_ext <<_ACEOF |
| 2665 | /* confdefs.h. */ |
| 2666 | _ACEOF |
| 2667 | cat confdefs.h >>conftest.$ac_ext |
| 2668 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2669 | /* end confdefs.h. */ |
| 2670 | |
| 2671 | int |
| 2672 | main () |
| 2673 | { |
| 2674 | |
| 2675 | ; |
| 2676 | return 0; |
| 2677 | } |
| 2678 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2679 | rm -f conftest.$ac_objext |
| 2680 | if { (ac_try="$ac_compile" |
| 2681 | case "(($ac_try" in |
| 2682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2683 | *) ac_try_echo=$ac_try;; |
| 2684 | esac |
| 2685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2686 | (eval "$ac_compile") 2>conftest.er1 |
| 2687 | ac_status=$? |
| 2688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2689 | rm -f conftest.er1 |
| 2690 | cat conftest.err >&5 |
| 2691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2692 | (exit $ac_status); } && { |
| 2693 | test -z "$ac_c_werror_flag" || |
| 2694 | test ! -s conftest.err |
| 2695 | } && test -s conftest.$ac_objext; then |
| 2696 | : |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2697 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2698 | echo "$as_me: failed program was:" >&5 |
| 2699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2700 | |
| 2701 | ac_c_werror_flag=$ac_save_c_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2702 | CFLAGS="-g" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2703 | cat >conftest.$ac_ext <<_ACEOF |
| 2704 | /* confdefs.h. */ |
| 2705 | _ACEOF |
| 2706 | cat confdefs.h >>conftest.$ac_ext |
| 2707 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2708 | /* end confdefs.h. */ |
| 2709 | |
| 2710 | int |
| 2711 | main () |
| 2712 | { |
| 2713 | |
| 2714 | ; |
| 2715 | return 0; |
| 2716 | } |
| 2717 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2718 | rm -f conftest.$ac_objext |
| 2719 | if { (ac_try="$ac_compile" |
| 2720 | case "(($ac_try" in |
| 2721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2722 | *) ac_try_echo=$ac_try;; |
| 2723 | esac |
| 2724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2725 | (eval "$ac_compile") 2>conftest.er1 |
| 2726 | ac_status=$? |
| 2727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2728 | rm -f conftest.er1 |
| 2729 | cat conftest.err >&5 |
| 2730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2731 | (exit $ac_status); } && { |
| 2732 | test -z "$ac_c_werror_flag" || |
| 2733 | test ! -s conftest.err |
| 2734 | } && test -s conftest.$ac_objext; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2735 | ac_cv_prog_cc_g=yes |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2736 | else |
| 2737 | echo "$as_me: failed program was:" >&5 |
| 2738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2739 | |
| 2740 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2741 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2742 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2744 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2745 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2747 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2748 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2750 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2751 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2752 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2753 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2754 | if test "$ac_test_CFLAGS" = set; then |
| 2755 | CFLAGS=$ac_save_CFLAGS |
| 2756 | elif test $ac_cv_prog_cc_g = yes; then |
| 2757 | if test "$GCC" = yes; then |
| 2758 | CFLAGS="-g -O2" |
| 2759 | else |
| 2760 | CFLAGS="-g" |
| 2761 | fi |
| 2762 | else |
| 2763 | if test "$GCC" = yes; then |
| 2764 | CFLAGS="-O2" |
| 2765 | else |
| 2766 | CFLAGS= |
| 2767 | fi |
| 2768 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2769 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2770 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2771 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2773 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2774 | ac_cv_prog_cc_c89=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2775 | ac_save_CC=$CC |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2776 | cat >conftest.$ac_ext <<_ACEOF |
| 2777 | /* confdefs.h. */ |
| 2778 | _ACEOF |
| 2779 | cat confdefs.h >>conftest.$ac_ext |
| 2780 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2781 | /* end confdefs.h. */ |
| 2782 | #include <stdarg.h> |
| 2783 | #include <stdio.h> |
| 2784 | #include <sys/types.h> |
| 2785 | #include <sys/stat.h> |
| 2786 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2787 | struct buf { int x; }; |
| 2788 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2789 | static char *e (p, i) |
| 2790 | char **p; |
| 2791 | int i; |
| 2792 | { |
| 2793 | return p[i]; |
| 2794 | } |
| 2795 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2796 | { |
| 2797 | char *s; |
| 2798 | va_list v; |
| 2799 | va_start (v,p); |
| 2800 | s = g (p, va_arg (v,int)); |
| 2801 | va_end (v); |
| 2802 | return s; |
| 2803 | } |
| 2804 | |
| 2805 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2806 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2807 | These don't provoke an error unfortunately, instead are silently treated |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2808 | as 'x'. The following induces an error, until -std is added to get |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2809 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2810 | array size at least. It's necessary to write '\x00'==0 to get something |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2811 | that's true only with -std. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2812 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2813 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2814 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2815 | inside strings and character constants. */ |
| 2816 | #define FOO(x) 'x' |
| 2817 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2818 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2819 | int test (int i, double x); |
| 2820 | struct s1 {int (*f) (int a);}; |
| 2821 | struct s2 {int (*f) (double a);}; |
| 2822 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2823 | int argc; |
| 2824 | char **argv; |
| 2825 | int |
| 2826 | main () |
| 2827 | { |
| 2828 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2829 | ; |
| 2830 | return 0; |
| 2831 | } |
| 2832 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2833 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2834 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2835 | do |
| 2836 | CC="$ac_save_CC $ac_arg" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2837 | rm -f conftest.$ac_objext |
| 2838 | if { (ac_try="$ac_compile" |
| 2839 | case "(($ac_try" in |
| 2840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2841 | *) ac_try_echo=$ac_try;; |
| 2842 | esac |
| 2843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2844 | (eval "$ac_compile") 2>conftest.er1 |
| 2845 | ac_status=$? |
| 2846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2847 | rm -f conftest.er1 |
| 2848 | cat conftest.err >&5 |
| 2849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2850 | (exit $ac_status); } && { |
| 2851 | test -z "$ac_c_werror_flag" || |
| 2852 | test ! -s conftest.err |
| 2853 | } && test -s conftest.$ac_objext; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2854 | ac_cv_prog_cc_c89=$ac_arg |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2855 | else |
| 2856 | echo "$as_me: failed program was:" >&5 |
| 2857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2858 | |
| 2859 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2860 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2861 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2862 | rm -f core conftest.err conftest.$ac_objext |
| 2863 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2864 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2865 | rm -f conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2866 | CC=$ac_save_CC |
| 2867 | |
| 2868 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2869 | # AC_CACHE_VAL |
| 2870 | case "x$ac_cv_prog_cc_c89" in |
| 2871 | x) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2872 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2873 | echo "${ECHO_T}none needed" >&6; } ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2874 | xno) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2875 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2876 | echo "${ECHO_T}unsupported" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2877 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2878 | CC="$CC $ac_cv_prog_cc_c89" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2879 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2880 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2881 | esac |
| 2882 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2883 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2884 | ac_ext=c |
| 2885 | ac_cpp='$CPP $CPPFLAGS' |
| 2886 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2887 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2888 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2889 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2890 | ac_ext=cpp |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2891 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2892 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2893 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2894 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2895 | if test -z "$CXX"; then |
| 2896 | if test -n "$CCC"; then |
| 2897 | CXX=$CCC |
| 2898 | else |
| 2899 | if test -n "$ac_tool_prefix"; then |
| 2900 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2901 | do |
| 2902 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2903 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2904 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2905 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2906 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2908 | else |
| 2909 | if test -n "$CXX"; then |
| 2910 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2911 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2913 | for as_dir in $PATH |
| 2914 | do |
| 2915 | IFS=$as_save_IFS |
| 2916 | test -z "$as_dir" && as_dir=. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2917 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2918 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2919 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2920 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2921 | break 2 |
| 2922 | fi |
| 2923 | done |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2924 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2925 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2926 | |
| 2927 | fi |
| 2928 | fi |
| 2929 | CXX=$ac_cv_prog_CXX |
| 2930 | if test -n "$CXX"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2931 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2932 | echo "${ECHO_T}$CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2933 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2934 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2935 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2936 | fi |
| 2937 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2938 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2939 | test -n "$CXX" && break |
| 2940 | done |
| 2941 | fi |
| 2942 | if test -z "$CXX"; then |
| 2943 | ac_ct_CXX=$CXX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2944 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2945 | do |
| 2946 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2947 | set dummy $ac_prog; ac_word=$2 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2948 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2950 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2952 | else |
| 2953 | if test -n "$ac_ct_CXX"; then |
| 2954 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2955 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2957 | for as_dir in $PATH |
| 2958 | do |
| 2959 | IFS=$as_save_IFS |
| 2960 | test -z "$as_dir" && as_dir=. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2961 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2963 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2965 | break 2 |
| 2966 | fi |
| 2967 | done |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2968 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2969 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2970 | |
| 2971 | fi |
| 2972 | fi |
| 2973 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2974 | if test -n "$ac_ct_CXX"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2975 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2976 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2977 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2978 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2979 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2980 | fi |
| 2981 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2982 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2983 | test -n "$ac_ct_CXX" && break |
| 2984 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2985 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2986 | if test "x$ac_ct_CXX" = x; then |
| 2987 | CXX="g++" |
| 2988 | else |
| 2989 | case $cross_compiling:$ac_tool_warned in |
| 2990 | yes:) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 2991 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2992 | whose name does not start with the host triplet. If you think this |
| 2993 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2994 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2995 | whose name does not start with the host triplet. If you think this |
| 2996 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2997 | ac_tool_warned=yes ;; |
| 2998 | esac |
| 2999 | CXX=$ac_ct_CXX |
| 3000 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3001 | fi |
| 3002 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3003 | fi |
| 3004 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3005 | # Provide some information about the compiler. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3006 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 3007 | ac_compiler=`set X $ac_compile; echo $2` |
| 3008 | { (ac_try="$ac_compiler --version >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3009 | case "(($ac_try" in |
| 3010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3011 | *) ac_try_echo=$ac_try;; |
| 3012 | esac |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3014 | (eval "$ac_compiler --version >&5") 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3015 | ac_status=$? |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3017 | (exit $ac_status); } |
| 3018 | { (ac_try="$ac_compiler -v >&5" |
| 3019 | case "(($ac_try" in |
| 3020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3021 | *) ac_try_echo=$ac_try;; |
| 3022 | esac |
| 3023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3024 | (eval "$ac_compiler -v >&5") 2>&5 |
| 3025 | ac_status=$? |
| 3026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3027 | (exit $ac_status); } |
| 3028 | { (ac_try="$ac_compiler -V >&5" |
| 3029 | case "(($ac_try" in |
| 3030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3031 | *) ac_try_echo=$ac_try;; |
| 3032 | esac |
| 3033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3034 | (eval "$ac_compiler -V >&5") 2>&5 |
| 3035 | ac_status=$? |
| 3036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3037 | (exit $ac_status); } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3038 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3039 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3040 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 3041 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3043 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3044 | cat >conftest.$ac_ext <<_ACEOF |
| 3045 | /* confdefs.h. */ |
| 3046 | _ACEOF |
| 3047 | cat confdefs.h >>conftest.$ac_ext |
| 3048 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3049 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3050 | |
| 3051 | int |
| 3052 | main () |
| 3053 | { |
| 3054 | #ifndef __GNUC__ |
| 3055 | choke me |
| 3056 | #endif |
| 3057 | |
| 3058 | ; |
| 3059 | return 0; |
| 3060 | } |
| 3061 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3062 | rm -f conftest.$ac_objext |
| 3063 | if { (ac_try="$ac_compile" |
| 3064 | case "(($ac_try" in |
| 3065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3066 | *) ac_try_echo=$ac_try;; |
| 3067 | esac |
| 3068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3069 | (eval "$ac_compile") 2>conftest.er1 |
| 3070 | ac_status=$? |
| 3071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3072 | rm -f conftest.er1 |
| 3073 | cat conftest.err >&5 |
| 3074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3075 | (exit $ac_status); } && { |
| 3076 | test -z "$ac_cxx_werror_flag" || |
| 3077 | test ! -s conftest.err |
| 3078 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3079 | ac_compiler_gnu=yes |
| 3080 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3081 | echo "$as_me: failed program was:" >&5 |
| 3082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3083 | |
| 3084 | ac_compiler_gnu=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3085 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3086 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3088 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3089 | |
| 3090 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3091 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3092 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 3093 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3094 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3095 | ac_save_CXXFLAGS=$CXXFLAGS |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3096 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3097 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 3098 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3100 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3101 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3102 | ac_cxx_werror_flag=yes |
| 3103 | ac_cv_prog_cxx_g=no |
| 3104 | CXXFLAGS="-g" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3105 | cat >conftest.$ac_ext <<_ACEOF |
| 3106 | /* confdefs.h. */ |
| 3107 | _ACEOF |
| 3108 | cat confdefs.h >>conftest.$ac_ext |
| 3109 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3110 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3111 | |
| 3112 | int |
| 3113 | main () |
| 3114 | { |
| 3115 | |
| 3116 | ; |
| 3117 | return 0; |
| 3118 | } |
| 3119 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3120 | rm -f conftest.$ac_objext |
| 3121 | if { (ac_try="$ac_compile" |
| 3122 | case "(($ac_try" in |
| 3123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3124 | *) ac_try_echo=$ac_try;; |
| 3125 | esac |
| 3126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3127 | (eval "$ac_compile") 2>conftest.er1 |
| 3128 | ac_status=$? |
| 3129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3130 | rm -f conftest.er1 |
| 3131 | cat conftest.err >&5 |
| 3132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3133 | (exit $ac_status); } && { |
| 3134 | test -z "$ac_cxx_werror_flag" || |
| 3135 | test ! -s conftest.err |
| 3136 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3137 | ac_cv_prog_cxx_g=yes |
| 3138 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3139 | echo "$as_me: failed program was:" >&5 |
| 3140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3141 | |
| 3142 | CXXFLAGS="" |
| 3143 | cat >conftest.$ac_ext <<_ACEOF |
| 3144 | /* confdefs.h. */ |
| 3145 | _ACEOF |
| 3146 | cat confdefs.h >>conftest.$ac_ext |
| 3147 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3148 | /* end confdefs.h. */ |
| 3149 | |
| 3150 | int |
| 3151 | main () |
| 3152 | { |
| 3153 | |
| 3154 | ; |
| 3155 | return 0; |
| 3156 | } |
| 3157 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3158 | rm -f conftest.$ac_objext |
| 3159 | if { (ac_try="$ac_compile" |
| 3160 | case "(($ac_try" in |
| 3161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3162 | *) ac_try_echo=$ac_try;; |
| 3163 | esac |
| 3164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3165 | (eval "$ac_compile") 2>conftest.er1 |
| 3166 | ac_status=$? |
| 3167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3168 | rm -f conftest.er1 |
| 3169 | cat conftest.err >&5 |
| 3170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3171 | (exit $ac_status); } && { |
| 3172 | test -z "$ac_cxx_werror_flag" || |
| 3173 | test ! -s conftest.err |
| 3174 | } && test -s conftest.$ac_objext; then |
| 3175 | : |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3176 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3177 | echo "$as_me: failed program was:" >&5 |
| 3178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3179 | |
| 3180 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3181 | CXXFLAGS="-g" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3182 | cat >conftest.$ac_ext <<_ACEOF |
| 3183 | /* confdefs.h. */ |
| 3184 | _ACEOF |
| 3185 | cat confdefs.h >>conftest.$ac_ext |
| 3186 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3187 | /* end confdefs.h. */ |
| 3188 | |
| 3189 | int |
| 3190 | main () |
| 3191 | { |
| 3192 | |
| 3193 | ; |
| 3194 | return 0; |
| 3195 | } |
| 3196 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3197 | rm -f conftest.$ac_objext |
| 3198 | if { (ac_try="$ac_compile" |
| 3199 | case "(($ac_try" in |
| 3200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3201 | *) ac_try_echo=$ac_try;; |
| 3202 | esac |
| 3203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3204 | (eval "$ac_compile") 2>conftest.er1 |
| 3205 | ac_status=$? |
| 3206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3207 | rm -f conftest.er1 |
| 3208 | cat conftest.err >&5 |
| 3209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3210 | (exit $ac_status); } && { |
| 3211 | test -z "$ac_cxx_werror_flag" || |
| 3212 | test ! -s conftest.err |
| 3213 | } && test -s conftest.$ac_objext; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3214 | ac_cv_prog_cxx_g=yes |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3215 | else |
| 3216 | echo "$as_me: failed program was:" >&5 |
| 3217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3218 | |
| 3219 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3220 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3221 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3223 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3224 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3226 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3227 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3229 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3230 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3231 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3232 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3233 | if test "$ac_test_CXXFLAGS" = set; then |
| 3234 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3235 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3236 | if test "$GXX" = yes; then |
| 3237 | CXXFLAGS="-g -O2" |
| 3238 | else |
| 3239 | CXXFLAGS="-g" |
| 3240 | fi |
| 3241 | else |
| 3242 | if test "$GXX" = yes; then |
| 3243 | CXXFLAGS="-O2" |
| 3244 | else |
| 3245 | CXXFLAGS= |
| 3246 | fi |
| 3247 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3248 | ac_ext=c |
| 3249 | ac_cpp='$CPP $CPPFLAGS' |
| 3250 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3251 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3252 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3253 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3254 | ac_ext=c |
| 3255 | ac_cpp='$CPP $CPPFLAGS' |
| 3256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3259 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3260 | |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3261 | if test -z "$CROSS_COMPILE"; then |
| 3262 | CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'` |
| 3263 | fi |
| 3264 | |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 3265 | if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3266 | |
| 3267 | if test "$LD" = ""; then LD="$CC"; fi |
| 3268 | |
| 3269 | if test "$LDOUT" = ""; then LDOUT="-o"; fi |
| 3270 | |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 3271 | if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3272 | |
| 3273 | if test "$OBJEXT" = ""; then OBJEXT='o'; fi |
| 3274 | |
| 3275 | if test "$LIBEXT" = ""; then LIBEXT='a'; fi |
| 3276 | |
| 3277 | if test "$LIBEXT2" = ""; then LIBEXT2=""; fi |
| 3278 | |
| 3279 | if test "$CC_OUT" = ""; then CC_OUT="-o"; fi |
| 3280 | |
| 3281 | if test "$CC_INC" = ""; then CC_INC="-I"; fi |
| 3282 | |
| 3283 | if test "$CC_DEF" = ""; then CC_DEF="-D"; fi |
| 3284 | |
| 3285 | if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi |
| 3286 | |
| 3287 | if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi |
| 3288 | |
| 3289 | |
| 3290 | |
| 3291 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3292 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3293 | |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3294 | |
| 3295 | case $host in |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3296 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3297 | if pwd -W 2&> /dev/null; then |
| 3298 | ac_pjdir=`pwd -W` |
| 3299 | else |
| 3300 | # We're probably cross-compiling mingw on Linux |
| 3301 | ac_pjdir=`pwd` |
| 3302 | fi |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3303 | ;; |
| 3304 | *) |
| 3305 | ac_pjdir=`pwd` |
| 3306 | ;; |
| 3307 | esac |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 3308 | |
| 3309 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3310 | |
| 3311 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 3312 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
| 3313 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 3314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3315 | else |
| 3316 | ac_check_lib_save_LIBS=$LIBS |
| 3317 | LIBS="-lpthread $LIBS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3318 | cat >conftest.$ac_ext <<_ACEOF |
| 3319 | /* confdefs.h. */ |
| 3320 | _ACEOF |
| 3321 | cat confdefs.h >>conftest.$ac_ext |
| 3322 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3323 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3324 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3325 | /* Override any GCC internal prototype to avoid an error. |
| 3326 | Use char because int might match the return type of a GCC |
| 3327 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3328 | #ifdef __cplusplus |
| 3329 | extern "C" |
| 3330 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3331 | char pthread_create (); |
| 3332 | int |
| 3333 | main () |
| 3334 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3335 | return pthread_create (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3336 | ; |
| 3337 | return 0; |
| 3338 | } |
| 3339 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3340 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3341 | if { (ac_try="$ac_link" |
| 3342 | case "(($ac_try" in |
| 3343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3344 | *) ac_try_echo=$ac_try;; |
| 3345 | esac |
| 3346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3347 | (eval "$ac_link") 2>conftest.er1 |
| 3348 | ac_status=$? |
| 3349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3350 | rm -f conftest.er1 |
| 3351 | cat conftest.err >&5 |
| 3352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3353 | (exit $ac_status); } && { |
| 3354 | test -z "$ac_c_werror_flag" || |
| 3355 | test ! -s conftest.err |
| 3356 | } && test -s conftest$ac_exeext && |
| 3357 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3358 | ac_cv_lib_pthread_pthread_create=yes |
| 3359 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3360 | echo "$as_me: failed program was:" >&5 |
| 3361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3362 | |
| 3363 | ac_cv_lib_pthread_pthread_create=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3364 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3365 | |
| 3366 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3367 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3368 | LIBS=$ac_check_lib_save_LIBS |
| 3369 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3370 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 3371 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
| 3372 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3373 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3374 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3375 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3376 | |
| 3377 | LIBS="-lpthread $LIBS" |
| 3378 | |
| 3379 | fi |
| 3380 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3381 | |
| 3382 | { echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5 |
| 3383 | echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6; } |
| 3384 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then |
| 3385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3386 | else |
| 3387 | ac_check_lib_save_LIBS=$LIBS |
| 3388 | LIBS="-lwsock32 $LIBS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3389 | cat >conftest.$ac_ext <<_ACEOF |
| 3390 | /* confdefs.h. */ |
| 3391 | _ACEOF |
| 3392 | cat confdefs.h >>conftest.$ac_ext |
| 3393 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3394 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3395 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3396 | /* Override any GCC internal prototype to avoid an error. |
| 3397 | Use char because int might match the return type of a GCC |
| 3398 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3399 | #ifdef __cplusplus |
| 3400 | extern "C" |
| 3401 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3402 | char puts (); |
| 3403 | int |
| 3404 | main () |
| 3405 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3406 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3407 | ; |
| 3408 | return 0; |
| 3409 | } |
| 3410 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3411 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3412 | if { (ac_try="$ac_link" |
| 3413 | case "(($ac_try" in |
| 3414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3415 | *) ac_try_echo=$ac_try;; |
| 3416 | esac |
| 3417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3418 | (eval "$ac_link") 2>conftest.er1 |
| 3419 | ac_status=$? |
| 3420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3421 | rm -f conftest.er1 |
| 3422 | cat conftest.err >&5 |
| 3423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3424 | (exit $ac_status); } && { |
| 3425 | test -z "$ac_c_werror_flag" || |
| 3426 | test ! -s conftest.err |
| 3427 | } && test -s conftest$ac_exeext && |
| 3428 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3429 | ac_cv_lib_wsock32_puts=yes |
| 3430 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3431 | echo "$as_me: failed program was:" >&5 |
| 3432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3433 | |
| 3434 | ac_cv_lib_wsock32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3435 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3436 | |
| 3437 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3438 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3439 | LIBS=$ac_check_lib_save_LIBS |
| 3440 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3441 | { echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5 |
| 3442 | echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6; } |
| 3443 | if test $ac_cv_lib_wsock32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3444 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3445 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3446 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3447 | |
| 3448 | LIBS="-lwsock32 $LIBS" |
| 3449 | |
| 3450 | fi |
| 3451 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3452 | |
| 3453 | { echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5 |
| 3454 | echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6; } |
| 3455 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then |
| 3456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3457 | else |
| 3458 | ac_check_lib_save_LIBS=$LIBS |
| 3459 | LIBS="-lws2_32 $LIBS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3460 | cat >conftest.$ac_ext <<_ACEOF |
| 3461 | /* confdefs.h. */ |
| 3462 | _ACEOF |
| 3463 | cat confdefs.h >>conftest.$ac_ext |
| 3464 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3465 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3466 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3467 | /* Override any GCC internal prototype to avoid an error. |
| 3468 | Use char because int might match the return type of a GCC |
| 3469 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3470 | #ifdef __cplusplus |
| 3471 | extern "C" |
| 3472 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3473 | char puts (); |
| 3474 | int |
| 3475 | main () |
| 3476 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3477 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3478 | ; |
| 3479 | return 0; |
| 3480 | } |
| 3481 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3482 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3483 | if { (ac_try="$ac_link" |
| 3484 | case "(($ac_try" in |
| 3485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3486 | *) ac_try_echo=$ac_try;; |
| 3487 | esac |
| 3488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3489 | (eval "$ac_link") 2>conftest.er1 |
| 3490 | ac_status=$? |
| 3491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3492 | rm -f conftest.er1 |
| 3493 | cat conftest.err >&5 |
| 3494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3495 | (exit $ac_status); } && { |
| 3496 | test -z "$ac_c_werror_flag" || |
| 3497 | test ! -s conftest.err |
| 3498 | } && test -s conftest$ac_exeext && |
| 3499 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3500 | ac_cv_lib_ws2_32_puts=yes |
| 3501 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3502 | echo "$as_me: failed program was:" >&5 |
| 3503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3504 | |
| 3505 | ac_cv_lib_ws2_32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3506 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3507 | |
| 3508 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3509 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3510 | LIBS=$ac_check_lib_save_LIBS |
| 3511 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3512 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5 |
| 3513 | echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6; } |
| 3514 | if test $ac_cv_lib_ws2_32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3515 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3516 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3517 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3518 | |
| 3519 | LIBS="-lws2_32 $LIBS" |
| 3520 | |
| 3521 | fi |
| 3522 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3523 | |
| 3524 | { echo "$as_me:$LINENO: checking for puts in -lole32" >&5 |
| 3525 | echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6; } |
| 3526 | if test "${ac_cv_lib_ole32_puts+set}" = set; then |
| 3527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3528 | else |
| 3529 | ac_check_lib_save_LIBS=$LIBS |
| 3530 | LIBS="-lole32 $LIBS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3531 | cat >conftest.$ac_ext <<_ACEOF |
| 3532 | /* confdefs.h. */ |
| 3533 | _ACEOF |
| 3534 | cat confdefs.h >>conftest.$ac_ext |
| 3535 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3536 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3537 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3538 | /* Override any GCC internal prototype to avoid an error. |
| 3539 | Use char because int might match the return type of a GCC |
| 3540 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3541 | #ifdef __cplusplus |
| 3542 | extern "C" |
| 3543 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3544 | char puts (); |
| 3545 | int |
| 3546 | main () |
| 3547 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3548 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3549 | ; |
| 3550 | return 0; |
| 3551 | } |
| 3552 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3553 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3554 | if { (ac_try="$ac_link" |
| 3555 | case "(($ac_try" in |
| 3556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3557 | *) ac_try_echo=$ac_try;; |
| 3558 | esac |
| 3559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3560 | (eval "$ac_link") 2>conftest.er1 |
| 3561 | ac_status=$? |
| 3562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3563 | rm -f conftest.er1 |
| 3564 | cat conftest.err >&5 |
| 3565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3566 | (exit $ac_status); } && { |
| 3567 | test -z "$ac_c_werror_flag" || |
| 3568 | test ! -s conftest.err |
| 3569 | } && test -s conftest$ac_exeext && |
| 3570 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3571 | ac_cv_lib_ole32_puts=yes |
| 3572 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3573 | echo "$as_me: failed program was:" >&5 |
| 3574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3575 | |
| 3576 | ac_cv_lib_ole32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3577 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3578 | |
| 3579 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3580 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3581 | LIBS=$ac_check_lib_save_LIBS |
| 3582 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3583 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5 |
| 3584 | echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6; } |
| 3585 | if test $ac_cv_lib_ole32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3586 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3587 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3588 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3589 | |
| 3590 | LIBS="-lole32 $LIBS" |
| 3591 | |
| 3592 | fi |
| 3593 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3594 | |
| 3595 | { echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5 |
| 3596 | echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6; } |
| 3597 | if test "${ac_cv_lib_winmm_puts+set}" = set; then |
| 3598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3599 | else |
| 3600 | ac_check_lib_save_LIBS=$LIBS |
| 3601 | LIBS="-lwinmm $LIBS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3602 | cat >conftest.$ac_ext <<_ACEOF |
| 3603 | /* confdefs.h. */ |
| 3604 | _ACEOF |
| 3605 | cat confdefs.h >>conftest.$ac_ext |
| 3606 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3607 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3608 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3609 | /* Override any GCC internal prototype to avoid an error. |
| 3610 | Use char because int might match the return type of a GCC |
| 3611 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3612 | #ifdef __cplusplus |
| 3613 | extern "C" |
| 3614 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3615 | char puts (); |
| 3616 | int |
| 3617 | main () |
| 3618 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3619 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3620 | ; |
| 3621 | return 0; |
| 3622 | } |
| 3623 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3624 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3625 | if { (ac_try="$ac_link" |
| 3626 | case "(($ac_try" in |
| 3627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3628 | *) ac_try_echo=$ac_try;; |
| 3629 | esac |
| 3630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3631 | (eval "$ac_link") 2>conftest.er1 |
| 3632 | ac_status=$? |
| 3633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3634 | rm -f conftest.er1 |
| 3635 | cat conftest.err >&5 |
| 3636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3637 | (exit $ac_status); } && { |
| 3638 | test -z "$ac_c_werror_flag" || |
| 3639 | test ! -s conftest.err |
| 3640 | } && test -s conftest$ac_exeext && |
| 3641 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3642 | ac_cv_lib_winmm_puts=yes |
| 3643 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3644 | echo "$as_me: failed program was:" >&5 |
| 3645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3646 | |
| 3647 | ac_cv_lib_winmm_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3648 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3649 | |
| 3650 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3651 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3652 | LIBS=$ac_check_lib_save_LIBS |
| 3653 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3654 | { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5 |
| 3655 | echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6; } |
| 3656 | if test $ac_cv_lib_winmm_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3657 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3658 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3659 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3660 | |
| 3661 | LIBS="-lwinmm $LIBS" |
| 3662 | |
| 3663 | fi |
| 3664 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3665 | |
| 3666 | { echo "$as_me:$LINENO: checking for puts in -lsocket" >&5 |
| 3667 | echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6; } |
| 3668 | if test "${ac_cv_lib_socket_puts+set}" = set; then |
| 3669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3670 | else |
| 3671 | ac_check_lib_save_LIBS=$LIBS |
| 3672 | LIBS="-lsocket $LIBS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3673 | cat >conftest.$ac_ext <<_ACEOF |
| 3674 | /* confdefs.h. */ |
| 3675 | _ACEOF |
| 3676 | cat confdefs.h >>conftest.$ac_ext |
| 3677 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3678 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3679 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3680 | /* Override any GCC internal prototype to avoid an error. |
| 3681 | Use char because int might match the return type of a GCC |
| 3682 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3683 | #ifdef __cplusplus |
| 3684 | extern "C" |
| 3685 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3686 | char puts (); |
| 3687 | int |
| 3688 | main () |
| 3689 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3690 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3691 | ; |
| 3692 | return 0; |
| 3693 | } |
| 3694 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3695 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3696 | if { (ac_try="$ac_link" |
| 3697 | case "(($ac_try" in |
| 3698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3699 | *) ac_try_echo=$ac_try;; |
| 3700 | esac |
| 3701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3702 | (eval "$ac_link") 2>conftest.er1 |
| 3703 | ac_status=$? |
| 3704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3705 | rm -f conftest.er1 |
| 3706 | cat conftest.err >&5 |
| 3707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3708 | (exit $ac_status); } && { |
| 3709 | test -z "$ac_c_werror_flag" || |
| 3710 | test ! -s conftest.err |
| 3711 | } && test -s conftest$ac_exeext && |
| 3712 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3713 | ac_cv_lib_socket_puts=yes |
| 3714 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3715 | echo "$as_me: failed program was:" >&5 |
| 3716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3717 | |
| 3718 | ac_cv_lib_socket_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3719 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3720 | |
| 3721 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3722 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3723 | LIBS=$ac_check_lib_save_LIBS |
| 3724 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3725 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5 |
| 3726 | echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6; } |
| 3727 | if test $ac_cv_lib_socket_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3728 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3729 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3730 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3731 | |
| 3732 | LIBS="-lsocket $LIBS" |
| 3733 | |
| 3734 | fi |
| 3735 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3736 | |
| 3737 | { echo "$as_me:$LINENO: checking for puts in -lrt" >&5 |
| 3738 | echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6; } |
| 3739 | if test "${ac_cv_lib_rt_puts+set}" = set; then |
| 3740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3741 | else |
| 3742 | ac_check_lib_save_LIBS=$LIBS |
| 3743 | LIBS="-lrt $LIBS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3744 | cat >conftest.$ac_ext <<_ACEOF |
| 3745 | /* confdefs.h. */ |
| 3746 | _ACEOF |
| 3747 | cat confdefs.h >>conftest.$ac_ext |
| 3748 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3749 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3750 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3751 | /* Override any GCC internal prototype to avoid an error. |
| 3752 | Use char because int might match the return type of a GCC |
| 3753 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3754 | #ifdef __cplusplus |
| 3755 | extern "C" |
| 3756 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3757 | char puts (); |
| 3758 | int |
| 3759 | main () |
| 3760 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3761 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3762 | ; |
| 3763 | return 0; |
| 3764 | } |
| 3765 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3766 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3767 | if { (ac_try="$ac_link" |
| 3768 | case "(($ac_try" in |
| 3769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3770 | *) ac_try_echo=$ac_try;; |
| 3771 | esac |
| 3772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3773 | (eval "$ac_link") 2>conftest.er1 |
| 3774 | ac_status=$? |
| 3775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3776 | rm -f conftest.er1 |
| 3777 | cat conftest.err >&5 |
| 3778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3779 | (exit $ac_status); } && { |
| 3780 | test -z "$ac_c_werror_flag" || |
| 3781 | test ! -s conftest.err |
| 3782 | } && test -s conftest$ac_exeext && |
| 3783 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3784 | ac_cv_lib_rt_puts=yes |
| 3785 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3786 | echo "$as_me: failed program was:" >&5 |
| 3787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3788 | |
| 3789 | ac_cv_lib_rt_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3790 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3791 | |
| 3792 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3793 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3794 | LIBS=$ac_check_lib_save_LIBS |
| 3795 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3796 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5 |
| 3797 | echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6; } |
| 3798 | if test $ac_cv_lib_rt_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3799 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3800 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3801 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3802 | |
| 3803 | LIBS="-lrt $LIBS" |
| 3804 | |
| 3805 | fi |
| 3806 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3807 | |
| 3808 | { echo "$as_me:$LINENO: checking for puts in -lnsl" >&5 |
| 3809 | echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6; } |
| 3810 | if test "${ac_cv_lib_nsl_puts+set}" = set; then |
| 3811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3812 | else |
| 3813 | ac_check_lib_save_LIBS=$LIBS |
| 3814 | LIBS="-lnsl $LIBS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3815 | cat >conftest.$ac_ext <<_ACEOF |
| 3816 | /* confdefs.h. */ |
| 3817 | _ACEOF |
| 3818 | cat confdefs.h >>conftest.$ac_ext |
| 3819 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3820 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3821 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3822 | /* Override any GCC internal prototype to avoid an error. |
| 3823 | Use char because int might match the return type of a GCC |
| 3824 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3825 | #ifdef __cplusplus |
| 3826 | extern "C" |
| 3827 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3828 | char puts (); |
| 3829 | int |
| 3830 | main () |
| 3831 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3832 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3833 | ; |
| 3834 | return 0; |
| 3835 | } |
| 3836 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3837 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3838 | if { (ac_try="$ac_link" |
| 3839 | case "(($ac_try" in |
| 3840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3841 | *) ac_try_echo=$ac_try;; |
| 3842 | esac |
| 3843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3844 | (eval "$ac_link") 2>conftest.er1 |
| 3845 | ac_status=$? |
| 3846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3847 | rm -f conftest.er1 |
| 3848 | cat conftest.err >&5 |
| 3849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3850 | (exit $ac_status); } && { |
| 3851 | test -z "$ac_c_werror_flag" || |
| 3852 | test ! -s conftest.err |
| 3853 | } && test -s conftest$ac_exeext && |
| 3854 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3855 | ac_cv_lib_nsl_puts=yes |
| 3856 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3857 | echo "$as_me: failed program was:" >&5 |
| 3858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3859 | |
| 3860 | ac_cv_lib_nsl_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3861 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3862 | |
| 3863 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3864 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3865 | LIBS=$ac_check_lib_save_LIBS |
| 3866 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3867 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5 |
| 3868 | echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6; } |
| 3869 | if test $ac_cv_lib_nsl_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3870 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3871 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3872 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3873 | |
| 3874 | LIBS="-lnsl $LIBS" |
| 3875 | |
| 3876 | fi |
| 3877 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3878 | |
| 3879 | { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3880 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; } |
| 3881 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3883 | else |
| 3884 | ac_check_lib_save_LIBS=$LIBS |
| 3885 | LIBS="-luuid $LIBS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3886 | cat >conftest.$ac_ext <<_ACEOF |
| 3887 | /* confdefs.h. */ |
| 3888 | _ACEOF |
| 3889 | cat confdefs.h >>conftest.$ac_ext |
| 3890 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3891 | /* end confdefs.h. */ |
| 3892 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3893 | /* Override any GCC internal prototype to avoid an error. |
| 3894 | Use char because int might match the return type of a GCC |
| 3895 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3896 | #ifdef __cplusplus |
| 3897 | extern "C" |
| 3898 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3899 | char uuid_generate (); |
| 3900 | int |
| 3901 | main () |
| 3902 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3903 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3904 | ; |
| 3905 | return 0; |
| 3906 | } |
| 3907 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3908 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3909 | if { (ac_try="$ac_link" |
| 3910 | case "(($ac_try" in |
| 3911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3912 | *) ac_try_echo=$ac_try;; |
| 3913 | esac |
| 3914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3915 | (eval "$ac_link") 2>conftest.er1 |
| 3916 | ac_status=$? |
| 3917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3918 | rm -f conftest.er1 |
| 3919 | cat conftest.err >&5 |
| 3920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3921 | (exit $ac_status); } && { |
| 3922 | test -z "$ac_c_werror_flag" || |
| 3923 | test ! -s conftest.err |
| 3924 | } && test -s conftest$ac_exeext && |
| 3925 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3926 | ac_cv_lib_uuid_uuid_generate=yes |
| 3927 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3928 | echo "$as_me: failed program was:" >&5 |
| 3929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3930 | |
| 3931 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3932 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3933 | |
| 3934 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3935 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3936 | LIBS=$ac_check_lib_save_LIBS |
| 3937 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3938 | { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3939 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 3940 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3941 | cat >>confdefs.h <<_ACEOF |
| 3942 | #define HAVE_LIBUUID 1 |
| 3943 | _ACEOF |
| 3944 | |
| 3945 | LIBS="-luuid $LIBS" |
| 3946 | |
| 3947 | fi |
| 3948 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3949 | { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3950 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; } |
| 3951 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3953 | else |
| 3954 | ac_check_lib_save_LIBS=$LIBS |
| 3955 | LIBS="-luuid $LIBS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3956 | cat >conftest.$ac_ext <<_ACEOF |
| 3957 | /* confdefs.h. */ |
| 3958 | _ACEOF |
| 3959 | cat confdefs.h >>conftest.$ac_ext |
| 3960 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3961 | /* end confdefs.h. */ |
| 3962 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3963 | /* Override any GCC internal prototype to avoid an error. |
| 3964 | Use char because int might match the return type of a GCC |
| 3965 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3966 | #ifdef __cplusplus |
| 3967 | extern "C" |
| 3968 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3969 | char uuid_generate (); |
| 3970 | int |
| 3971 | main () |
| 3972 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3973 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3974 | ; |
| 3975 | return 0; |
| 3976 | } |
| 3977 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3978 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3979 | if { (ac_try="$ac_link" |
| 3980 | case "(($ac_try" in |
| 3981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3982 | *) ac_try_echo=$ac_try;; |
| 3983 | esac |
| 3984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3985 | (eval "$ac_link") 2>conftest.er1 |
| 3986 | ac_status=$? |
| 3987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3988 | rm -f conftest.er1 |
| 3989 | cat conftest.err >&5 |
| 3990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3991 | (exit $ac_status); } && { |
| 3992 | test -z "$ac_c_werror_flag" || |
| 3993 | test ! -s conftest.err |
| 3994 | } && test -s conftest$ac_exeext && |
| 3995 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3996 | ac_cv_lib_uuid_uuid_generate=yes |
| 3997 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 3998 | echo "$as_me: failed program was:" >&5 |
| 3999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4000 | |
| 4001 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4002 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4003 | |
| 4004 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4005 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4006 | LIBS=$ac_check_lib_save_LIBS |
| 4007 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4008 | { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 4009 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 4010 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4011 | ac_has_uuid_lib=1 |
| 4012 | fi |
| 4013 | |
| 4014 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4015 | { echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 4016 | echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4017 | cat >>confdefs.h <<_ACEOF |
| 4018 | #define PJ_M_NAME "$target_cpu" |
| 4019 | _ACEOF |
| 4020 | |
| 4021 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4022 | { echo "$as_me:$LINENO: checking memory alignment" >&5 |
| 4023 | echo $ECHO_N "checking memory alignment... $ECHO_C" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 4024 | case $target in |
Benny Prijono | b18e950 | 2010-05-19 05:51:38 +0000 | [diff] [blame] | 4025 | sparc64-* | ia64-* | x86_64-* ) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4026 | cat >>confdefs.h <<\_ACEOF |
| 4027 | #define PJ_POOL_ALIGNMENT 8 |
| 4028 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 4029 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4030 | { echo "$as_me:$LINENO: result: 8 bytes" >&5 |
| 4031 | echo "${ECHO_T}8 bytes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 4032 | ;; |
| 4033 | * ) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4034 | cat >>confdefs.h <<\_ACEOF |
| 4035 | #define PJ_POOL_ALIGNMENT 4 |
| 4036 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 4037 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4038 | { echo "$as_me:$LINENO: result: 4 bytes (default)" >&5 |
| 4039 | echo "${ECHO_T}4 bytes (default)" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 4040 | ;; |
| 4041 | esac |
| 4042 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4043 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4044 | ac_ext=c |
| 4045 | ac_cpp='$CPP $CPPFLAGS' |
| 4046 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4047 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4048 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4049 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4050 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4051 | # On Suns, sometimes $CPP names a directory. |
| 4052 | if test -n "$CPP" && test -d "$CPP"; then |
| 4053 | CPP= |
| 4054 | fi |
| 4055 | if test -z "$CPP"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4056 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4058 | else |
| 4059 | # Double quotes because CPP needs to be expanded |
| 4060 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4061 | do |
| 4062 | ac_preproc_ok=false |
| 4063 | for ac_c_preproc_warn_flag in '' yes |
| 4064 | do |
| 4065 | # Use a header file that comes with gcc, so configuring glibc |
| 4066 | # with a fresh cross-compiler works. |
| 4067 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4068 | # <limits.h> exists even on freestanding compilers. |
| 4069 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4070 | # not just through cpp. "Syntax error" is here to catch this case. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4071 | cat >conftest.$ac_ext <<_ACEOF |
| 4072 | /* confdefs.h. */ |
| 4073 | _ACEOF |
| 4074 | cat confdefs.h >>conftest.$ac_ext |
| 4075 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4076 | /* end confdefs.h. */ |
| 4077 | #ifdef __STDC__ |
| 4078 | # include <limits.h> |
| 4079 | #else |
| 4080 | # include <assert.h> |
| 4081 | #endif |
| 4082 | Syntax error |
| 4083 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4084 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4085 | case "(($ac_try" in |
| 4086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4087 | *) ac_try_echo=$ac_try;; |
| 4088 | esac |
| 4089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4090 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4091 | ac_status=$? |
| 4092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4093 | rm -f conftest.er1 |
| 4094 | cat conftest.err >&5 |
| 4095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4096 | (exit $ac_status); } >/dev/null && { |
| 4097 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4098 | test ! -s conftest.err |
| 4099 | }; then |
| 4100 | : |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4101 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4102 | echo "$as_me: failed program was:" >&5 |
| 4103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4104 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4105 | # Broken: fails on valid input. |
| 4106 | continue |
| 4107 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4108 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4109 | rm -f conftest.err conftest.$ac_ext |
| 4110 | |
| 4111 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4112 | # can be detected and how. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4113 | cat >conftest.$ac_ext <<_ACEOF |
| 4114 | /* confdefs.h. */ |
| 4115 | _ACEOF |
| 4116 | cat confdefs.h >>conftest.$ac_ext |
| 4117 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4118 | /* end confdefs.h. */ |
| 4119 | #include <ac_nonexistent.h> |
| 4120 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4121 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4122 | case "(($ac_try" in |
| 4123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4124 | *) ac_try_echo=$ac_try;; |
| 4125 | esac |
| 4126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4127 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4128 | ac_status=$? |
| 4129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4130 | rm -f conftest.er1 |
| 4131 | cat conftest.err >&5 |
| 4132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4133 | (exit $ac_status); } >/dev/null && { |
| 4134 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4135 | test ! -s conftest.err |
| 4136 | }; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4137 | # Broken: success on invalid input. |
| 4138 | continue |
| 4139 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4140 | echo "$as_me: failed program was:" >&5 |
| 4141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4142 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4143 | # Passes both tests. |
| 4144 | ac_preproc_ok=: |
| 4145 | break |
| 4146 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4147 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4148 | rm -f conftest.err conftest.$ac_ext |
| 4149 | |
| 4150 | done |
| 4151 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4152 | rm -f conftest.err conftest.$ac_ext |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4153 | if $ac_preproc_ok; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4154 | break |
| 4155 | fi |
| 4156 | |
| 4157 | done |
| 4158 | ac_cv_prog_CPP=$CPP |
| 4159 | |
| 4160 | fi |
| 4161 | CPP=$ac_cv_prog_CPP |
| 4162 | else |
| 4163 | ac_cv_prog_CPP=$CPP |
| 4164 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4165 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4166 | echo "${ECHO_T}$CPP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4167 | ac_preproc_ok=false |
| 4168 | for ac_c_preproc_warn_flag in '' yes |
| 4169 | do |
| 4170 | # Use a header file that comes with gcc, so configuring glibc |
| 4171 | # with a fresh cross-compiler works. |
| 4172 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4173 | # <limits.h> exists even on freestanding compilers. |
| 4174 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4175 | # not just through cpp. "Syntax error" is here to catch this case. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4176 | cat >conftest.$ac_ext <<_ACEOF |
| 4177 | /* confdefs.h. */ |
| 4178 | _ACEOF |
| 4179 | cat confdefs.h >>conftest.$ac_ext |
| 4180 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4181 | /* end confdefs.h. */ |
| 4182 | #ifdef __STDC__ |
| 4183 | # include <limits.h> |
| 4184 | #else |
| 4185 | # include <assert.h> |
| 4186 | #endif |
| 4187 | Syntax error |
| 4188 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4189 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4190 | case "(($ac_try" in |
| 4191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4192 | *) ac_try_echo=$ac_try;; |
| 4193 | esac |
| 4194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4195 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4196 | ac_status=$? |
| 4197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4198 | rm -f conftest.er1 |
| 4199 | cat conftest.err >&5 |
| 4200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4201 | (exit $ac_status); } >/dev/null && { |
| 4202 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4203 | test ! -s conftest.err |
| 4204 | }; then |
| 4205 | : |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4206 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4207 | echo "$as_me: failed program was:" >&5 |
| 4208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4209 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4210 | # Broken: fails on valid input. |
| 4211 | continue |
| 4212 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4213 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4214 | rm -f conftest.err conftest.$ac_ext |
| 4215 | |
| 4216 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4217 | # can be detected and how. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4218 | cat >conftest.$ac_ext <<_ACEOF |
| 4219 | /* confdefs.h. */ |
| 4220 | _ACEOF |
| 4221 | cat confdefs.h >>conftest.$ac_ext |
| 4222 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4223 | /* end confdefs.h. */ |
| 4224 | #include <ac_nonexistent.h> |
| 4225 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4226 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4227 | case "(($ac_try" in |
| 4228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4229 | *) ac_try_echo=$ac_try;; |
| 4230 | esac |
| 4231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4232 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4233 | ac_status=$? |
| 4234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4235 | rm -f conftest.er1 |
| 4236 | cat conftest.err >&5 |
| 4237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4238 | (exit $ac_status); } >/dev/null && { |
| 4239 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4240 | test ! -s conftest.err |
| 4241 | }; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4242 | # Broken: success on invalid input. |
| 4243 | continue |
| 4244 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4245 | echo "$as_me: failed program was:" >&5 |
| 4246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4247 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4248 | # Passes both tests. |
| 4249 | ac_preproc_ok=: |
| 4250 | break |
| 4251 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4252 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4253 | rm -f conftest.err conftest.$ac_ext |
| 4254 | |
| 4255 | done |
| 4256 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4257 | rm -f conftest.err conftest.$ac_ext |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4258 | if $ac_preproc_ok; then |
| 4259 | : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4260 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4261 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4262 | See \`config.log' for more details." >&5 |
| 4263 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4264 | See \`config.log' for more details." >&2;} |
| 4265 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4266 | fi |
| 4267 | |
| 4268 | ac_ext=c |
| 4269 | ac_cpp='$CPP $CPPFLAGS' |
| 4270 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4271 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4272 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4273 | |
| 4274 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4275 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 4276 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 4277 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4279 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4280 | # Extract the first word of "grep ggrep" to use in msg output |
| 4281 | if test -z "$GREP"; then |
| 4282 | set dummy grep ggrep; ac_prog_name=$2 |
| 4283 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4285 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4286 | ac_path_GREP_found=false |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4287 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4289 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4290 | do |
| 4291 | IFS=$as_save_IFS |
| 4292 | test -z "$as_dir" && as_dir=. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4293 | for ac_prog in grep ggrep; do |
| 4294 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4295 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4296 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4297 | # Check for GNU ac_path_GREP and select it if it is found. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4298 | # Check for GNU $ac_path_GREP |
| 4299 | case `"$ac_path_GREP" --version 2>&1` in |
| 4300 | *GNU*) |
| 4301 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4302 | *) |
| 4303 | ac_count=0 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4304 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4305 | while : |
| 4306 | do |
| 4307 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4308 | mv "conftest.tmp" "conftest.in" |
| 4309 | cp "conftest.in" "conftest.nl" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4310 | echo 'GREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4311 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4312 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4313 | ac_count=`expr $ac_count + 1` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4314 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4315 | # Best one so far, save it but keep looking for a better one |
| 4316 | ac_cv_path_GREP="$ac_path_GREP" |
| 4317 | ac_path_GREP_max=$ac_count |
| 4318 | fi |
| 4319 | # 10*(2^10) chars as input seems more than enough |
| 4320 | test $ac_count -gt 10 && break |
| 4321 | done |
| 4322 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4323 | esac |
| 4324 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4325 | |
| 4326 | $ac_path_GREP_found && break 3 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4327 | done |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4328 | done |
| 4329 | |
| 4330 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4331 | IFS=$as_save_IFS |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4332 | |
| 4333 | |
| 4334 | fi |
| 4335 | |
| 4336 | GREP="$ac_cv_path_GREP" |
| 4337 | if test -z "$GREP"; then |
| 4338 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4339 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4340 | { (exit 1); exit 1; }; } |
| 4341 | fi |
| 4342 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4343 | else |
| 4344 | ac_cv_path_GREP=$GREP |
| 4345 | fi |
| 4346 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4347 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4348 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4349 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 4350 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4351 | GREP="$ac_cv_path_GREP" |
| 4352 | |
| 4353 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4354 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4355 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4356 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4358 | else |
| 4359 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4360 | then ac_cv_path_EGREP="$GREP -E" |
| 4361 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4362 | # Extract the first word of "egrep" to use in msg output |
| 4363 | if test -z "$EGREP"; then |
| 4364 | set dummy egrep; ac_prog_name=$2 |
| 4365 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4367 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4368 | ac_path_EGREP_found=false |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4369 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4371 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4372 | do |
| 4373 | IFS=$as_save_IFS |
| 4374 | test -z "$as_dir" && as_dir=. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4375 | for ac_prog in egrep; do |
| 4376 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4377 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4378 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4379 | # Check for GNU ac_path_EGREP and select it if it is found. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4380 | # Check for GNU $ac_path_EGREP |
| 4381 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4382 | *GNU*) |
| 4383 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4384 | *) |
| 4385 | ac_count=0 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4386 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4387 | while : |
| 4388 | do |
| 4389 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4390 | mv "conftest.tmp" "conftest.in" |
| 4391 | cp "conftest.in" "conftest.nl" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4392 | echo 'EGREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4393 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4394 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4395 | ac_count=`expr $ac_count + 1` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4396 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4397 | # Best one so far, save it but keep looking for a better one |
| 4398 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4399 | ac_path_EGREP_max=$ac_count |
| 4400 | fi |
| 4401 | # 10*(2^10) chars as input seems more than enough |
| 4402 | test $ac_count -gt 10 && break |
| 4403 | done |
| 4404 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4405 | esac |
| 4406 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4407 | |
| 4408 | $ac_path_EGREP_found && break 3 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4409 | done |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4410 | done |
| 4411 | |
| 4412 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4413 | IFS=$as_save_IFS |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4414 | |
| 4415 | |
| 4416 | fi |
| 4417 | |
| 4418 | EGREP="$ac_cv_path_EGREP" |
| 4419 | if test -z "$EGREP"; then |
| 4420 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4421 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4422 | { (exit 1); exit 1; }; } |
| 4423 | fi |
| 4424 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4425 | else |
| 4426 | ac_cv_path_EGREP=$EGREP |
| 4427 | fi |
| 4428 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4429 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4430 | fi |
| 4431 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4432 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4433 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4434 | EGREP="$ac_cv_path_EGREP" |
| 4435 | |
| 4436 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4437 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4438 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 4439 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4441 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4442 | cat >conftest.$ac_ext <<_ACEOF |
| 4443 | /* confdefs.h. */ |
| 4444 | _ACEOF |
| 4445 | cat confdefs.h >>conftest.$ac_ext |
| 4446 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4447 | /* end confdefs.h. */ |
| 4448 | #include <stdlib.h> |
| 4449 | #include <stdarg.h> |
| 4450 | #include <string.h> |
| 4451 | #include <float.h> |
| 4452 | |
| 4453 | int |
| 4454 | main () |
| 4455 | { |
| 4456 | |
| 4457 | ; |
| 4458 | return 0; |
| 4459 | } |
| 4460 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4461 | rm -f conftest.$ac_objext |
| 4462 | if { (ac_try="$ac_compile" |
| 4463 | case "(($ac_try" in |
| 4464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4465 | *) ac_try_echo=$ac_try;; |
| 4466 | esac |
| 4467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4468 | (eval "$ac_compile") 2>conftest.er1 |
| 4469 | ac_status=$? |
| 4470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4471 | rm -f conftest.er1 |
| 4472 | cat conftest.err >&5 |
| 4473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4474 | (exit $ac_status); } && { |
| 4475 | test -z "$ac_c_werror_flag" || |
| 4476 | test ! -s conftest.err |
| 4477 | } && test -s conftest.$ac_objext; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4478 | ac_cv_header_stdc=yes |
| 4479 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4480 | echo "$as_me: failed program was:" >&5 |
| 4481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4482 | |
| 4483 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4484 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4485 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4487 | |
| 4488 | if test $ac_cv_header_stdc = yes; then |
| 4489 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4490 | cat >conftest.$ac_ext <<_ACEOF |
| 4491 | /* confdefs.h. */ |
| 4492 | _ACEOF |
| 4493 | cat confdefs.h >>conftest.$ac_ext |
| 4494 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4495 | /* end confdefs.h. */ |
| 4496 | #include <string.h> |
| 4497 | |
| 4498 | _ACEOF |
| 4499 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4500 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4501 | : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4502 | else |
| 4503 | ac_cv_header_stdc=no |
| 4504 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4505 | rm -f -r conftest* |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4506 | |
| 4507 | fi |
| 4508 | |
| 4509 | if test $ac_cv_header_stdc = yes; then |
| 4510 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4511 | cat >conftest.$ac_ext <<_ACEOF |
| 4512 | /* confdefs.h. */ |
| 4513 | _ACEOF |
| 4514 | cat confdefs.h >>conftest.$ac_ext |
| 4515 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4516 | /* end confdefs.h. */ |
| 4517 | #include <stdlib.h> |
| 4518 | |
| 4519 | _ACEOF |
| 4520 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4521 | $EGREP "free" >/dev/null 2>&1; then |
| 4522 | : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4523 | else |
| 4524 | ac_cv_header_stdc=no |
| 4525 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4526 | rm -f -r conftest* |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4527 | |
| 4528 | fi |
| 4529 | |
| 4530 | if test $ac_cv_header_stdc = yes; then |
| 4531 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4532 | if test "$cross_compiling" = yes; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4533 | : |
| 4534 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4535 | cat >conftest.$ac_ext <<_ACEOF |
| 4536 | /* confdefs.h. */ |
| 4537 | _ACEOF |
| 4538 | cat confdefs.h >>conftest.$ac_ext |
| 4539 | cat >>conftest.$ac_ext <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4540 | /* end confdefs.h. */ |
| 4541 | #include <ctype.h> |
| 4542 | #include <stdlib.h> |
| 4543 | #if ((' ' & 0x0FF) == 0x020) |
| 4544 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4545 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4546 | #else |
| 4547 | # define ISLOWER(c) \ |
| 4548 | (('a' <= (c) && (c) <= 'i') \ |
| 4549 | || ('j' <= (c) && (c) <= 'r') \ |
| 4550 | || ('s' <= (c) && (c) <= 'z')) |
| 4551 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4552 | #endif |
| 4553 | |
| 4554 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4555 | int |
| 4556 | main () |
| 4557 | { |
| 4558 | int i; |
| 4559 | for (i = 0; i < 256; i++) |
| 4560 | if (XOR (islower (i), ISLOWER (i)) |
| 4561 | || toupper (i) != TOUPPER (i)) |
| 4562 | return 2; |
| 4563 | return 0; |
| 4564 | } |
| 4565 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4566 | rm -f conftest$ac_exeext |
| 4567 | if { (ac_try="$ac_link" |
| 4568 | case "(($ac_try" in |
| 4569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4570 | *) ac_try_echo=$ac_try;; |
| 4571 | esac |
| 4572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4573 | (eval "$ac_link") 2>&5 |
| 4574 | ac_status=$? |
| 4575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4576 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4577 | { (case "(($ac_try" in |
| 4578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4579 | *) ac_try_echo=$ac_try;; |
| 4580 | esac |
| 4581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4582 | (eval "$ac_try") 2>&5 |
| 4583 | ac_status=$? |
| 4584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4585 | (exit $ac_status); }; }; then |
| 4586 | : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4587 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4588 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4589 | echo "$as_me: failed program was:" >&5 |
| 4590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4591 | |
| 4592 | ( exit $ac_status ) |
| 4593 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4594 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4595 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4596 | fi |
| 4597 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4598 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4599 | fi |
| 4600 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4601 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4602 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4603 | if test $ac_cv_header_stdc = yes; then |
| 4604 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4605 | cat >>confdefs.h <<\_ACEOF |
| 4606 | #define STDC_HEADERS 1 |
| 4607 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4608 | |
| 4609 | fi |
| 4610 | |
| 4611 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4612 | |
| 4613 | |
| 4614 | |
| 4615 | |
| 4616 | |
| 4617 | |
| 4618 | |
| 4619 | |
| 4620 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4621 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4622 | inttypes.h stdint.h unistd.h |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4623 | do |
| 4624 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4625 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4626 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4627 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4629 | else |
| 4630 | cat >conftest.$ac_ext <<_ACEOF |
| 4631 | /* confdefs.h. */ |
| 4632 | _ACEOF |
| 4633 | cat confdefs.h >>conftest.$ac_ext |
| 4634 | cat >>conftest.$ac_ext <<_ACEOF |
| 4635 | /* end confdefs.h. */ |
| 4636 | $ac_includes_default |
| 4637 | |
| 4638 | #include <$ac_header> |
| 4639 | _ACEOF |
| 4640 | rm -f conftest.$ac_objext |
| 4641 | if { (ac_try="$ac_compile" |
| 4642 | case "(($ac_try" in |
| 4643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4644 | *) ac_try_echo=$ac_try;; |
| 4645 | esac |
| 4646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4647 | (eval "$ac_compile") 2>conftest.er1 |
| 4648 | ac_status=$? |
| 4649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4650 | rm -f conftest.er1 |
| 4651 | cat conftest.err >&5 |
| 4652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4653 | (exit $ac_status); } && { |
| 4654 | test -z "$ac_c_werror_flag" || |
| 4655 | test ! -s conftest.err |
| 4656 | } && test -s conftest.$ac_objext; then |
| 4657 | eval "$as_ac_Header=yes" |
| 4658 | else |
| 4659 | echo "$as_me: failed program was:" >&5 |
| 4660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4661 | |
| 4662 | eval "$as_ac_Header=no" |
| 4663 | fi |
| 4664 | |
| 4665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4666 | fi |
| 4667 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4668 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4669 | echo "${ECHO_T}$ac_res" >&6; } |
| 4670 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4671 | cat >>confdefs.h <<_ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4672 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4673 | _ACEOF |
| 4674 | |
| 4675 | fi |
| 4676 | |
| 4677 | done |
| 4678 | |
| 4679 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4680 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4681 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4682 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4684 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4685 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4686 | cat >conftest.$ac_ext <<_ACEOF |
| 4687 | /* confdefs.h. */ |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4688 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4689 | cat confdefs.h >>conftest.$ac_ext |
| 4690 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4691 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4692 | #include <sys/types.h> |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4693 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4694 | |
| 4695 | int |
| 4696 | main () |
| 4697 | { |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4698 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 4699 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| 4700 | bogus endian macros |
| 4701 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4702 | |
| 4703 | ; |
| 4704 | return 0; |
| 4705 | } |
| 4706 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4707 | rm -f conftest.$ac_objext |
| 4708 | if { (ac_try="$ac_compile" |
| 4709 | case "(($ac_try" in |
| 4710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4711 | *) ac_try_echo=$ac_try;; |
| 4712 | esac |
| 4713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4714 | (eval "$ac_compile") 2>conftest.er1 |
| 4715 | ac_status=$? |
| 4716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4717 | rm -f conftest.er1 |
| 4718 | cat conftest.err >&5 |
| 4719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4720 | (exit $ac_status); } && { |
| 4721 | test -z "$ac_c_werror_flag" || |
| 4722 | test ! -s conftest.err |
| 4723 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4724 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4725 | cat >conftest.$ac_ext <<_ACEOF |
| 4726 | /* confdefs.h. */ |
| 4727 | _ACEOF |
| 4728 | cat confdefs.h >>conftest.$ac_ext |
| 4729 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4730 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4731 | #include <sys/types.h> |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4732 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4733 | |
| 4734 | int |
| 4735 | main () |
| 4736 | { |
| 4737 | #if BYTE_ORDER != BIG_ENDIAN |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4738 | not big endian |
| 4739 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4740 | |
| 4741 | ; |
| 4742 | return 0; |
| 4743 | } |
| 4744 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4745 | rm -f conftest.$ac_objext |
| 4746 | if { (ac_try="$ac_compile" |
| 4747 | case "(($ac_try" in |
| 4748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4749 | *) ac_try_echo=$ac_try;; |
| 4750 | esac |
| 4751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4752 | (eval "$ac_compile") 2>conftest.er1 |
| 4753 | ac_status=$? |
| 4754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4755 | rm -f conftest.er1 |
| 4756 | cat conftest.err >&5 |
| 4757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4758 | (exit $ac_status); } && { |
| 4759 | test -z "$ac_c_werror_flag" || |
| 4760 | test ! -s conftest.err |
| 4761 | } && test -s conftest.$ac_objext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4762 | ac_cv_c_bigendian=yes |
| 4763 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4764 | echo "$as_me: failed program was:" >&5 |
| 4765 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4766 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4767 | ac_cv_c_bigendian=no |
| 4768 | fi |
| 4769 | |
| 4770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4771 | else |
| 4772 | echo "$as_me: failed program was:" >&5 |
| 4773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4774 | |
| 4775 | # It does not; compile a test program. |
| 4776 | if test "$cross_compiling" = yes; then |
| 4777 | # try to guess the endianness by grepping values into an object file |
| 4778 | ac_cv_c_bigendian=unknown |
| 4779 | cat >conftest.$ac_ext <<_ACEOF |
| 4780 | /* confdefs.h. */ |
| 4781 | _ACEOF |
| 4782 | cat confdefs.h >>conftest.$ac_ext |
| 4783 | cat >>conftest.$ac_ext <<_ACEOF |
| 4784 | /* end confdefs.h. */ |
| 4785 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4786 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4787 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4788 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4789 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4790 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4791 | int |
| 4792 | main () |
| 4793 | { |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4794 | _ascii (); _ebcdic (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4795 | ; |
| 4796 | return 0; |
| 4797 | } |
| 4798 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4799 | rm -f conftest.$ac_objext |
| 4800 | if { (ac_try="$ac_compile" |
| 4801 | case "(($ac_try" in |
| 4802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4803 | *) ac_try_echo=$ac_try;; |
| 4804 | esac |
| 4805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4806 | (eval "$ac_compile") 2>conftest.er1 |
| 4807 | ac_status=$? |
| 4808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4809 | rm -f conftest.er1 |
| 4810 | cat conftest.err >&5 |
| 4811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4812 | (exit $ac_status); } && { |
| 4813 | test -z "$ac_c_werror_flag" || |
| 4814 | test ! -s conftest.err |
| 4815 | } && test -s conftest.$ac_objext; then |
| 4816 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4817 | ac_cv_c_bigendian=yes |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4818 | fi |
| 4819 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4820 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4821 | ac_cv_c_bigendian=no |
| 4822 | else |
| 4823 | # finding both strings is unlikely to happen, but who knows? |
| 4824 | ac_cv_c_bigendian=unknown |
| 4825 | fi |
| 4826 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4827 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4828 | echo "$as_me: failed program was:" >&5 |
| 4829 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4830 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4831 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4832 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4833 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4835 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4836 | cat >conftest.$ac_ext <<_ACEOF |
| 4837 | /* confdefs.h. */ |
| 4838 | _ACEOF |
| 4839 | cat confdefs.h >>conftest.$ac_ext |
| 4840 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4841 | /* end confdefs.h. */ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4842 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4843 | int |
| 4844 | main () |
| 4845 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4846 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4847 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4848 | union |
| 4849 | { |
| 4850 | long int l; |
| 4851 | char c[sizeof (long int)]; |
| 4852 | } u; |
| 4853 | u.l = 1; |
| 4854 | return u.c[sizeof (long int) - 1] == 1; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4855 | |
| 4856 | ; |
| 4857 | return 0; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4858 | } |
| 4859 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4860 | rm -f conftest$ac_exeext |
| 4861 | if { (ac_try="$ac_link" |
| 4862 | case "(($ac_try" in |
| 4863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4864 | *) ac_try_echo=$ac_try;; |
| 4865 | esac |
| 4866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4867 | (eval "$ac_link") 2>&5 |
| 4868 | ac_status=$? |
| 4869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4870 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4871 | { (case "(($ac_try" in |
| 4872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4873 | *) ac_try_echo=$ac_try;; |
| 4874 | esac |
| 4875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4876 | (eval "$ac_try") 2>&5 |
| 4877 | ac_status=$? |
| 4878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4879 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4880 | ac_cv_c_bigendian=no |
| 4881 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4882 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4883 | echo "$as_me: failed program was:" >&5 |
| 4884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4885 | |
| 4886 | ( exit $ac_status ) |
| 4887 | ac_cv_c_bigendian=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4888 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4889 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4890 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4891 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4892 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4893 | fi |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4894 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4896 | fi |
| 4897 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4898 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4899 | case $ac_cv_c_bigendian in |
| 4900 | yes) |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4901 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4902 | cat >>confdefs.h <<\_ACEOF |
| 4903 | #define WORDS_BIGENDIAN 1 |
| 4904 | _ACEOF |
| 4905 | ;; |
| 4906 | no) |
| 4907 | ;; |
| 4908 | *) |
| 4909 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4910 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4911 | echo "$as_me: error: unknown endianness |
| 4912 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4913 | { (exit 1); exit 1; }; } ;; |
| 4914 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4915 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4916 | |
| 4917 | case $target in |
| 4918 | *mingw* | *cygw* | *win32* | *w32* ) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4919 | cat >>confdefs.h <<\_ACEOF |
| 4920 | #define PJ_WIN32 1 |
| 4921 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4922 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4923 | cat >>confdefs.h <<\_ACEOF |
| 4924 | #define PJ_WIN32_WINNT 0x0400 |
| 4925 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4926 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4927 | cat >>confdefs.h <<\_ACEOF |
| 4928 | #define WIN32_LEAN_AND_MEAN 1 |
| 4929 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4930 | |
| 4931 | ;; |
| 4932 | *darwin*) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4933 | cat >>confdefs.h <<\_ACEOF |
| 4934 | #define PJ_DARWINOS 1 |
| 4935 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4936 | |
| 4937 | ;; |
| 4938 | *linux*) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4939 | cat >>confdefs.h <<\_ACEOF |
| 4940 | #define PJ_LINUX 1 |
| 4941 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4942 | |
| 4943 | ;; |
| 4944 | *rtems*) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4945 | cat >>confdefs.h <<\_ACEOF |
| 4946 | #define PJ_RTEMS 1 |
| 4947 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4948 | |
| 4949 | ;; |
| 4950 | *sunos* | *solaris* ) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4951 | cat >>confdefs.h <<\_ACEOF |
| 4952 | #define PJ_SUNOS 1 |
| 4953 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4954 | |
| 4955 | ;; |
| 4956 | *) |
| 4957 | ;; |
| 4958 | esac |
| 4959 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4960 | |
| 4961 | |
| 4962 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4963 | # Check whether --enable-floating-point was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4964 | if test "${enable_floating_point+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4965 | enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4966 | cat >>confdefs.h <<\_ACEOF |
| 4967 | #define PJ_HAS_FLOATING_POINT 0 |
| 4968 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4969 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4970 | { echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5 |
| 4971 | echo "${ECHO_T}Checking if floating point is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4972 | fi |
| 4973 | else |
| 4974 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4975 | cat >>confdefs.h <<\_ACEOF |
| 4976 | #define PJ_HAS_FLOATING_POINT 1 |
| 4977 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4978 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4979 | { echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5 |
| 4980 | echo "${ECHO_T}Checking if floating point is disabled... no" >&6; } |
| 4981 | |
| 4982 | { echo "$as_me:$LINENO: checking for fmod in -lm" >&5 |
| 4983 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; } |
| 4984 | if test "${ac_cv_lib_m_fmod+set}" = set; then |
| 4985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4986 | else |
| 4987 | ac_check_lib_save_LIBS=$LIBS |
| 4988 | LIBS="-lm $LIBS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4989 | cat >conftest.$ac_ext <<_ACEOF |
| 4990 | /* confdefs.h. */ |
| 4991 | _ACEOF |
| 4992 | cat confdefs.h >>conftest.$ac_ext |
| 4993 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4994 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4995 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4996 | /* Override any GCC internal prototype to avoid an error. |
| 4997 | Use char because int might match the return type of a GCC |
| 4998 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4999 | #ifdef __cplusplus |
| 5000 | extern "C" |
| 5001 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5002 | char fmod (); |
| 5003 | int |
| 5004 | main () |
| 5005 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5006 | return fmod (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5007 | ; |
| 5008 | return 0; |
| 5009 | } |
| 5010 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 5011 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5012 | if { (ac_try="$ac_link" |
| 5013 | case "(($ac_try" in |
| 5014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5015 | *) ac_try_echo=$ac_try;; |
| 5016 | esac |
| 5017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5018 | (eval "$ac_link") 2>conftest.er1 |
| 5019 | ac_status=$? |
| 5020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5021 | rm -f conftest.er1 |
| 5022 | cat conftest.err >&5 |
| 5023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5024 | (exit $ac_status); } && { |
| 5025 | test -z "$ac_c_werror_flag" || |
| 5026 | test ! -s conftest.err |
| 5027 | } && test -s conftest$ac_exeext && |
| 5028 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5029 | ac_cv_lib_m_fmod=yes |
| 5030 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 5031 | echo "$as_me: failed program was:" >&5 |
| 5032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5033 | |
| 5034 | ac_cv_lib_m_fmod=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5035 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 5036 | |
| 5037 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5038 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5039 | LIBS=$ac_check_lib_save_LIBS |
| 5040 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 5041 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 |
| 5042 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; } |
| 5043 | if test $ac_cv_lib_m_fmod = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5044 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5045 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5046 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5047 | |
| 5048 | LIBS="-lm $LIBS" |
| 5049 | |
| 5050 | fi |
| 5051 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5052 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5053 | fi |
| 5054 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5055 | |
| 5056 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 5057 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 5058 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 5059 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } |
| 5060 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 5061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5062 | fi |
| 5063 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 5064 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } |
| 5065 | else |
| 5066 | # Is the header compilable? |
| 5067 | { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
| 5068 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; } |
| 5069 | cat >conftest.$ac_ext <<_ACEOF |
| 5070 | /* confdefs.h. */ |
| 5071 | _ACEOF |
| 5072 | cat confdefs.h >>conftest.$ac_ext |
| 5073 | cat >>conftest.$ac_ext <<_ACEOF |
| 5074 | /* end confdefs.h. */ |
| 5075 | $ac_includes_default |
| 5076 | #include <arpa/inet.h> |
| 5077 | _ACEOF |
| 5078 | rm -f conftest.$ac_objext |
| 5079 | if { (ac_try="$ac_compile" |
| 5080 | case "(($ac_try" in |
| 5081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5082 | *) ac_try_echo=$ac_try;; |
| 5083 | esac |
| 5084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5085 | (eval "$ac_compile") 2>conftest.er1 |
| 5086 | ac_status=$? |
| 5087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5088 | rm -f conftest.er1 |
| 5089 | cat conftest.err >&5 |
| 5090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5091 | (exit $ac_status); } && { |
| 5092 | test -z "$ac_c_werror_flag" || |
| 5093 | test ! -s conftest.err |
| 5094 | } && test -s conftest.$ac_objext; then |
| 5095 | ac_header_compiler=yes |
| 5096 | else |
| 5097 | echo "$as_me: failed program was:" >&5 |
| 5098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5099 | |
| 5100 | ac_header_compiler=no |
| 5101 | fi |
| 5102 | |
| 5103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5104 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5105 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5106 | |
| 5107 | # Is the header present? |
| 5108 | { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
| 5109 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; } |
| 5110 | cat >conftest.$ac_ext <<_ACEOF |
| 5111 | /* confdefs.h. */ |
| 5112 | _ACEOF |
| 5113 | cat confdefs.h >>conftest.$ac_ext |
| 5114 | cat >>conftest.$ac_ext <<_ACEOF |
| 5115 | /* end confdefs.h. */ |
| 5116 | #include <arpa/inet.h> |
| 5117 | _ACEOF |
| 5118 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5119 | case "(($ac_try" in |
| 5120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5121 | *) ac_try_echo=$ac_try;; |
| 5122 | esac |
| 5123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5124 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5125 | ac_status=$? |
| 5126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5127 | rm -f conftest.er1 |
| 5128 | cat conftest.err >&5 |
| 5129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5130 | (exit $ac_status); } >/dev/null && { |
| 5131 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5132 | test ! -s conftest.err |
| 5133 | }; then |
| 5134 | ac_header_preproc=yes |
| 5135 | else |
| 5136 | echo "$as_me: failed program was:" >&5 |
| 5137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5138 | |
| 5139 | ac_header_preproc=no |
| 5140 | fi |
| 5141 | |
| 5142 | rm -f conftest.err conftest.$ac_ext |
| 5143 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5144 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5145 | |
| 5146 | # So? What about this header? |
| 5147 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5148 | yes:no: ) |
| 5149 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5150 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5151 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
| 5152 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} |
| 5153 | ac_header_preproc=yes |
| 5154 | ;; |
| 5155 | no:yes:* ) |
| 5156 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
| 5157 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} |
| 5158 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
| 5159 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} |
| 5160 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 |
| 5161 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} |
| 5162 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5163 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5164 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
| 5165 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
| 5166 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
| 5167 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} |
| 5168 | |
| 5169 | ;; |
| 5170 | esac |
| 5171 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 5172 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } |
| 5173 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 5174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5175 | else |
| 5176 | ac_cv_header_arpa_inet_h=$ac_header_preproc |
| 5177 | fi |
| 5178 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 5179 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } |
| 5180 | |
| 5181 | fi |
| 5182 | if test $ac_cv_header_arpa_inet_h = yes; then |
| 5183 | cat >>confdefs.h <<\_ACEOF |
| 5184 | #define PJ_HAS_ARPA_INET_H 1 |
| 5185 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5186 | |
| 5187 | fi |
| 5188 | |
| 5189 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 5190 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 5191 | { echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 5192 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } |
| 5193 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 5194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5195 | fi |
| 5196 | { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 5197 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } |
| 5198 | else |
| 5199 | # Is the header compilable? |
| 5200 | { echo "$as_me:$LINENO: checking assert.h usability" >&5 |
| 5201 | echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; } |
| 5202 | cat >conftest.$ac_ext <<_ACEOF |
| 5203 | /* confdefs.h. */ |
| 5204 | _ACEOF |
| 5205 | cat confdefs.h >>conftest.$ac_ext |
| 5206 | cat >>conftest.$ac_ext <<_ACEOF |
| 5207 | /* end confdefs.h. */ |
| 5208 | $ac_includes_default |
| 5209 | #include <assert.h> |
| 5210 | _ACEOF |
| 5211 | rm -f conftest.$ac_objext |
| 5212 | if { (ac_try="$ac_compile" |
| 5213 | case "(($ac_try" in |
| 5214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5215 | *) ac_try_echo=$ac_try;; |
| 5216 | esac |
| 5217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5218 | (eval "$ac_compile") 2>conftest.er1 |
| 5219 | ac_status=$? |
| 5220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5221 | rm -f conftest.er1 |
| 5222 | cat conftest.err >&5 |
| 5223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5224 | (exit $ac_status); } && { |
| 5225 | test -z "$ac_c_werror_flag" || |
| 5226 | test ! -s conftest.err |
| 5227 | } && test -s conftest.$ac_objext; then |
| 5228 | ac_header_compiler=yes |
| 5229 | else |
| 5230 | echo "$as_me: failed program was:" >&5 |
| 5231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5232 | |
| 5233 | ac_header_compiler=no |
| 5234 | fi |
| 5235 | |
| 5236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5237 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5238 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5239 | |
| 5240 | # Is the header present? |
| 5241 | { echo "$as_me:$LINENO: checking assert.h presence" >&5 |
| 5242 | echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; } |
| 5243 | cat >conftest.$ac_ext <<_ACEOF |
| 5244 | /* confdefs.h. */ |
| 5245 | _ACEOF |
| 5246 | cat confdefs.h >>conftest.$ac_ext |
| 5247 | cat >>conftest.$ac_ext <<_ACEOF |
| 5248 | /* end confdefs.h. */ |
| 5249 | #include <assert.h> |
| 5250 | _ACEOF |
| 5251 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5252 | case "(($ac_try" in |
| 5253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5254 | *) ac_try_echo=$ac_try;; |
| 5255 | esac |
| 5256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5257 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5258 | ac_status=$? |
| 5259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5260 | rm -f conftest.er1 |
| 5261 | cat conftest.err >&5 |
| 5262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5263 | (exit $ac_status); } >/dev/null && { |
| 5264 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5265 | test ! -s conftest.err |
| 5266 | }; then |
| 5267 | ac_header_preproc=yes |
| 5268 | else |
| 5269 | echo "$as_me: failed program was:" >&5 |
| 5270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5271 | |
| 5272 | ac_header_preproc=no |
| 5273 | fi |
| 5274 | |
| 5275 | rm -f conftest.err conftest.$ac_ext |
| 5276 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5277 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5278 | |
| 5279 | # So? What about this header? |
| 5280 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5281 | yes:no: ) |
| 5282 | { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5283 | echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5284 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5 |
| 5285 | echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;} |
| 5286 | ac_header_preproc=yes |
| 5287 | ;; |
| 5288 | no:yes:* ) |
| 5289 | { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5 |
| 5290 | echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;} |
| 5291 | { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5 |
| 5292 | echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;} |
| 5293 | { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5 |
| 5294 | echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;} |
| 5295 | { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5296 | echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5297 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5 |
| 5298 | echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;} |
| 5299 | { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5 |
| 5300 | echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;} |
| 5301 | |
| 5302 | ;; |
| 5303 | esac |
| 5304 | { echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 5305 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } |
| 5306 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 5307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5308 | else |
| 5309 | ac_cv_header_assert_h=$ac_header_preproc |
| 5310 | fi |
| 5311 | { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 5312 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } |
| 5313 | |
| 5314 | fi |
| 5315 | if test $ac_cv_header_assert_h = yes; then |
| 5316 | cat >>confdefs.h <<\_ACEOF |
| 5317 | #define PJ_HAS_ASSERT_H 1 |
| 5318 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5319 | |
| 5320 | fi |
| 5321 | |
| 5322 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 5323 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 5324 | { echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 5325 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } |
| 5326 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 5327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5328 | fi |
| 5329 | { echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 5330 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } |
| 5331 | else |
| 5332 | # Is the header compilable? |
| 5333 | { echo "$as_me:$LINENO: checking ctype.h usability" >&5 |
| 5334 | echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6; } |
| 5335 | cat >conftest.$ac_ext <<_ACEOF |
| 5336 | /* confdefs.h. */ |
| 5337 | _ACEOF |
| 5338 | cat confdefs.h >>conftest.$ac_ext |
| 5339 | cat >>conftest.$ac_ext <<_ACEOF |
| 5340 | /* end confdefs.h. */ |
| 5341 | $ac_includes_default |
| 5342 | #include <ctype.h> |
| 5343 | _ACEOF |
| 5344 | rm -f conftest.$ac_objext |
| 5345 | if { (ac_try="$ac_compile" |
| 5346 | case "(($ac_try" in |
| 5347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5348 | *) ac_try_echo=$ac_try;; |
| 5349 | esac |
| 5350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5351 | (eval "$ac_compile") 2>conftest.er1 |
| 5352 | ac_status=$? |
| 5353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5354 | rm -f conftest.er1 |
| 5355 | cat conftest.err >&5 |
| 5356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5357 | (exit $ac_status); } && { |
| 5358 | test -z "$ac_c_werror_flag" || |
| 5359 | test ! -s conftest.err |
| 5360 | } && test -s conftest.$ac_objext; then |
| 5361 | ac_header_compiler=yes |
| 5362 | else |
| 5363 | echo "$as_me: failed program was:" >&5 |
| 5364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5365 | |
| 5366 | ac_header_compiler=no |
| 5367 | fi |
| 5368 | |
| 5369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5370 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5371 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5372 | |
| 5373 | # Is the header present? |
| 5374 | { echo "$as_me:$LINENO: checking ctype.h presence" >&5 |
| 5375 | echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6; } |
| 5376 | cat >conftest.$ac_ext <<_ACEOF |
| 5377 | /* confdefs.h. */ |
| 5378 | _ACEOF |
| 5379 | cat confdefs.h >>conftest.$ac_ext |
| 5380 | cat >>conftest.$ac_ext <<_ACEOF |
| 5381 | /* end confdefs.h. */ |
| 5382 | #include <ctype.h> |
| 5383 | _ACEOF |
| 5384 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5385 | case "(($ac_try" in |
| 5386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5387 | *) ac_try_echo=$ac_try;; |
| 5388 | esac |
| 5389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5390 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5391 | ac_status=$? |
| 5392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5393 | rm -f conftest.er1 |
| 5394 | cat conftest.err >&5 |
| 5395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5396 | (exit $ac_status); } >/dev/null && { |
| 5397 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5398 | test ! -s conftest.err |
| 5399 | }; then |
| 5400 | ac_header_preproc=yes |
| 5401 | else |
| 5402 | echo "$as_me: failed program was:" >&5 |
| 5403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5404 | |
| 5405 | ac_header_preproc=no |
| 5406 | fi |
| 5407 | |
| 5408 | rm -f conftest.err conftest.$ac_ext |
| 5409 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5410 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5411 | |
| 5412 | # So? What about this header? |
| 5413 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5414 | yes:no: ) |
| 5415 | { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5416 | echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5417 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5 |
| 5418 | echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;} |
| 5419 | ac_header_preproc=yes |
| 5420 | ;; |
| 5421 | no:yes:* ) |
| 5422 | { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5 |
| 5423 | echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;} |
| 5424 | { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5 |
| 5425 | echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;} |
| 5426 | { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5 |
| 5427 | echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;} |
| 5428 | { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5429 | echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5430 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5 |
| 5431 | echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;} |
| 5432 | { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5 |
| 5433 | echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;} |
| 5434 | |
| 5435 | ;; |
| 5436 | esac |
| 5437 | { echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 5438 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } |
| 5439 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 5440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5441 | else |
| 5442 | ac_cv_header_ctype_h=$ac_header_preproc |
| 5443 | fi |
| 5444 | { echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 5445 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } |
| 5446 | |
| 5447 | fi |
| 5448 | if test $ac_cv_header_ctype_h = yes; then |
| 5449 | cat >>confdefs.h <<\_ACEOF |
| 5450 | #define PJ_HAS_CTYPE_H 1 |
| 5451 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5452 | |
| 5453 | fi |
| 5454 | |
| 5455 | |
| 5456 | |
| 5457 | case $target in |
| 5458 | *mingw* | *cygw* | *win32* | *w32* ) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 5459 | cat >>confdefs.h <<\_ACEOF |
| 5460 | #define PJ_HAS_ERRNO_H 0 |
| 5461 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5462 | |
| 5463 | ;; |
| 5464 | *) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 5465 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 5466 | { echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 5467 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } |
| 5468 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 5469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5470 | fi |
| 5471 | { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 5472 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } |
| 5473 | else |
| 5474 | # Is the header compilable? |
| 5475 | { echo "$as_me:$LINENO: checking errno.h usability" >&5 |
| 5476 | echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } |
| 5477 | cat >conftest.$ac_ext <<_ACEOF |
| 5478 | /* confdefs.h. */ |
| 5479 | _ACEOF |
| 5480 | cat confdefs.h >>conftest.$ac_ext |
| 5481 | cat >>conftest.$ac_ext <<_ACEOF |
| 5482 | /* end confdefs.h. */ |
| 5483 | $ac_includes_default |
| 5484 | #include <errno.h> |
| 5485 | _ACEOF |
| 5486 | rm -f conftest.$ac_objext |
| 5487 | if { (ac_try="$ac_compile" |
| 5488 | case "(($ac_try" in |
| 5489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5490 | *) ac_try_echo=$ac_try;; |
| 5491 | esac |
| 5492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5493 | (eval "$ac_compile") 2>conftest.er1 |
| 5494 | ac_status=$? |
| 5495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5496 | rm -f conftest.er1 |
| 5497 | cat conftest.err >&5 |
| 5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5499 | (exit $ac_status); } && { |
| 5500 | test -z "$ac_c_werror_flag" || |
| 5501 | test ! -s conftest.err |
| 5502 | } && test -s conftest.$ac_objext; then |
| 5503 | ac_header_compiler=yes |
| 5504 | else |
| 5505 | echo "$as_me: failed program was:" >&5 |
| 5506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5507 | |
| 5508 | ac_header_compiler=no |
| 5509 | fi |
| 5510 | |
| 5511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5512 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5513 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5514 | |
| 5515 | # Is the header present? |
| 5516 | { echo "$as_me:$LINENO: checking errno.h presence" >&5 |
| 5517 | echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } |
| 5518 | cat >conftest.$ac_ext <<_ACEOF |
| 5519 | /* confdefs.h. */ |
| 5520 | _ACEOF |
| 5521 | cat confdefs.h >>conftest.$ac_ext |
| 5522 | cat >>conftest.$ac_ext <<_ACEOF |
| 5523 | /* end confdefs.h. */ |
| 5524 | #include <errno.h> |
| 5525 | _ACEOF |
| 5526 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5527 | case "(($ac_try" in |
| 5528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5529 | *) ac_try_echo=$ac_try;; |
| 5530 | esac |
| 5531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5532 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5533 | ac_status=$? |
| 5534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5535 | rm -f conftest.er1 |
| 5536 | cat conftest.err >&5 |
| 5537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5538 | (exit $ac_status); } >/dev/null && { |
| 5539 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5540 | test ! -s conftest.err |
| 5541 | }; then |
| 5542 | ac_header_preproc=yes |
| 5543 | else |
| 5544 | echo "$as_me: failed program was:" >&5 |
| 5545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5546 | |
| 5547 | ac_header_preproc=no |
| 5548 | fi |
| 5549 | |
| 5550 | rm -f conftest.err conftest.$ac_ext |
| 5551 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5552 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5553 | |
| 5554 | # So? What about this header? |
| 5555 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5556 | yes:no: ) |
| 5557 | { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5558 | echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5559 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 |
| 5560 | echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} |
| 5561 | ac_header_preproc=yes |
| 5562 | ;; |
| 5563 | no:yes:* ) |
| 5564 | { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 |
| 5565 | echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} |
| 5566 | { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 |
| 5567 | echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} |
| 5568 | { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 |
| 5569 | echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} |
| 5570 | { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5571 | echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5572 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 |
| 5573 | echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} |
| 5574 | { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 |
| 5575 | echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} |
| 5576 | |
| 5577 | ;; |
| 5578 | esac |
| 5579 | { echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 5580 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } |
| 5581 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 5582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5583 | else |
| 5584 | ac_cv_header_errno_h=$ac_header_preproc |
| 5585 | fi |
| 5586 | { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 5587 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } |
| 5588 | |
| 5589 | fi |
| 5590 | if test $ac_cv_header_errno_h = yes; then |
| 5591 | cat >>confdefs.h <<\_ACEOF |
| 5592 | #define PJ_HAS_ERRNO_H 1 |
| 5593 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5594 | |
| 5595 | fi |
| 5596 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5597 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5598 | ;; |
| 5599 | esac |
| 5600 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 5601 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5602 | { echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 5603 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } |
| 5604 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5606 | fi |
| 5607 | { echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 5608 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } |
| 5609 | else |
| 5610 | # Is the header compilable? |
| 5611 | { echo "$as_me:$LINENO: checking fcntl.h usability" >&5 |
| 5612 | echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6; } |
| 5613 | cat >conftest.$ac_ext <<_ACEOF |
| 5614 | /* confdefs.h. */ |
| 5615 | _ACEOF |
| 5616 | cat confdefs.h >>conftest.$ac_ext |
| 5617 | cat >>conftest.$ac_ext <<_ACEOF |
| 5618 | /* end confdefs.h. */ |
| 5619 | $ac_includes_default |
| 5620 | #include <fcntl.h> |
| 5621 | _ACEOF |
| 5622 | rm -f conftest.$ac_objext |
| 5623 | if { (ac_try="$ac_compile" |
| 5624 | case "(($ac_try" in |
| 5625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5626 | *) ac_try_echo=$ac_try;; |
| 5627 | esac |
| 5628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5629 | (eval "$ac_compile") 2>conftest.er1 |
| 5630 | ac_status=$? |
| 5631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5632 | rm -f conftest.er1 |
| 5633 | cat conftest.err >&5 |
| 5634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5635 | (exit $ac_status); } && { |
| 5636 | test -z "$ac_c_werror_flag" || |
| 5637 | test ! -s conftest.err |
| 5638 | } && test -s conftest.$ac_objext; then |
| 5639 | ac_header_compiler=yes |
| 5640 | else |
| 5641 | echo "$as_me: failed program was:" >&5 |
| 5642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5643 | |
| 5644 | ac_header_compiler=no |
| 5645 | fi |
| 5646 | |
| 5647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5648 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5649 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5650 | |
| 5651 | # Is the header present? |
| 5652 | { echo "$as_me:$LINENO: checking fcntl.h presence" >&5 |
| 5653 | echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6; } |
| 5654 | cat >conftest.$ac_ext <<_ACEOF |
| 5655 | /* confdefs.h. */ |
| 5656 | _ACEOF |
| 5657 | cat confdefs.h >>conftest.$ac_ext |
| 5658 | cat >>conftest.$ac_ext <<_ACEOF |
| 5659 | /* end confdefs.h. */ |
| 5660 | #include <fcntl.h> |
| 5661 | _ACEOF |
| 5662 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5663 | case "(($ac_try" in |
| 5664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5665 | *) ac_try_echo=$ac_try;; |
| 5666 | esac |
| 5667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5668 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5669 | ac_status=$? |
| 5670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5671 | rm -f conftest.er1 |
| 5672 | cat conftest.err >&5 |
| 5673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5674 | (exit $ac_status); } >/dev/null && { |
| 5675 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5676 | test ! -s conftest.err |
| 5677 | }; then |
| 5678 | ac_header_preproc=yes |
| 5679 | else |
| 5680 | echo "$as_me: failed program was:" >&5 |
| 5681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5682 | |
| 5683 | ac_header_preproc=no |
| 5684 | fi |
| 5685 | |
| 5686 | rm -f conftest.err conftest.$ac_ext |
| 5687 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5688 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5689 | |
| 5690 | # So? What about this header? |
| 5691 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5692 | yes:no: ) |
| 5693 | { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5694 | echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5695 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5 |
| 5696 | echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;} |
| 5697 | ac_header_preproc=yes |
| 5698 | ;; |
| 5699 | no:yes:* ) |
| 5700 | { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5 |
| 5701 | echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;} |
| 5702 | { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5 |
| 5703 | echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;} |
| 5704 | { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5 |
| 5705 | echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;} |
| 5706 | { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5707 | echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5708 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5 |
| 5709 | echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;} |
| 5710 | { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5 |
| 5711 | echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;} |
| 5712 | |
| 5713 | ;; |
| 5714 | esac |
| 5715 | { echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 5716 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } |
| 5717 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5719 | else |
| 5720 | ac_cv_header_fcntl_h=$ac_header_preproc |
| 5721 | fi |
| 5722 | { echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 5723 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } |
| 5724 | |
| 5725 | fi |
| 5726 | if test $ac_cv_header_fcntl_h = yes; then |
| 5727 | cat >>confdefs.h <<\_ACEOF |
| 5728 | #define PJ_HAS_FCNTL_H 1 |
| 5729 | _ACEOF |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5730 | |
| 5731 | fi |
| 5732 | |
| 5733 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 5734 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5735 | { echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5736 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } |
| 5737 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5739 | fi |
| 5740 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5741 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } |
| 5742 | else |
| 5743 | # Is the header compilable? |
| 5744 | { echo "$as_me:$LINENO: checking linux/socket.h usability" >&5 |
| 5745 | echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6; } |
| 5746 | cat >conftest.$ac_ext <<_ACEOF |
| 5747 | /* confdefs.h. */ |
| 5748 | _ACEOF |
| 5749 | cat confdefs.h >>conftest.$ac_ext |
| 5750 | cat >>conftest.$ac_ext <<_ACEOF |
| 5751 | /* end confdefs.h. */ |
| 5752 | $ac_includes_default |
| 5753 | #include <linux/socket.h> |
| 5754 | _ACEOF |
| 5755 | rm -f conftest.$ac_objext |
| 5756 | if { (ac_try="$ac_compile" |
| 5757 | case "(($ac_try" in |
| 5758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5759 | *) ac_try_echo=$ac_try;; |
| 5760 | esac |
| 5761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5762 | (eval "$ac_compile") 2>conftest.er1 |
| 5763 | ac_status=$? |
| 5764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5765 | rm -f conftest.er1 |
| 5766 | cat conftest.err >&5 |
| 5767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5768 | (exit $ac_status); } && { |
| 5769 | test -z "$ac_c_werror_flag" || |
| 5770 | test ! -s conftest.err |
| 5771 | } && test -s conftest.$ac_objext; then |
| 5772 | ac_header_compiler=yes |
| 5773 | else |
| 5774 | echo "$as_me: failed program was:" >&5 |
| 5775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5776 | |
| 5777 | ac_header_compiler=no |
| 5778 | fi |
| 5779 | |
| 5780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5781 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5782 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5783 | |
| 5784 | # Is the header present? |
| 5785 | { echo "$as_me:$LINENO: checking linux/socket.h presence" >&5 |
| 5786 | echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6; } |
| 5787 | cat >conftest.$ac_ext <<_ACEOF |
| 5788 | /* confdefs.h. */ |
| 5789 | _ACEOF |
| 5790 | cat confdefs.h >>conftest.$ac_ext |
| 5791 | cat >>conftest.$ac_ext <<_ACEOF |
| 5792 | /* end confdefs.h. */ |
| 5793 | #include <linux/socket.h> |
| 5794 | _ACEOF |
| 5795 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5796 | case "(($ac_try" in |
| 5797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5798 | *) ac_try_echo=$ac_try;; |
| 5799 | esac |
| 5800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5801 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5802 | ac_status=$? |
| 5803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5804 | rm -f conftest.er1 |
| 5805 | cat conftest.err >&5 |
| 5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5807 | (exit $ac_status); } >/dev/null && { |
| 5808 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5809 | test ! -s conftest.err |
| 5810 | }; then |
| 5811 | ac_header_preproc=yes |
| 5812 | else |
| 5813 | echo "$as_me: failed program was:" >&5 |
| 5814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5815 | |
| 5816 | ac_header_preproc=no |
| 5817 | fi |
| 5818 | |
| 5819 | rm -f conftest.err conftest.$ac_ext |
| 5820 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5821 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5822 | |
| 5823 | # So? What about this header? |
| 5824 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5825 | yes:no: ) |
| 5826 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5827 | echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5828 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5 |
| 5829 | echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;} |
| 5830 | ac_header_preproc=yes |
| 5831 | ;; |
| 5832 | no:yes:* ) |
| 5833 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5 |
| 5834 | echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;} |
| 5835 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5 |
| 5836 | echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;} |
| 5837 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5 |
| 5838 | echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;} |
| 5839 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5840 | echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5841 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5 |
| 5842 | echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;} |
| 5843 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5 |
| 5844 | echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;} |
| 5845 | |
| 5846 | ;; |
| 5847 | esac |
| 5848 | { echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5849 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } |
| 5850 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5852 | else |
| 5853 | ac_cv_header_linux_socket_h=$ac_header_preproc |
| 5854 | fi |
| 5855 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5856 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } |
| 5857 | |
| 5858 | fi |
| 5859 | if test $ac_cv_header_linux_socket_h = yes; then |
| 5860 | cat >>confdefs.h <<\_ACEOF |
| 5861 | #define PJ_HAS_LINUX_SOCKET_H 1 |
| 5862 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5863 | |
| 5864 | fi |
| 5865 | |
| 5866 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 5867 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5868 | { echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5869 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } |
| 5870 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5872 | fi |
| 5873 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5874 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } |
| 5875 | else |
| 5876 | # Is the header compilable? |
| 5877 | { echo "$as_me:$LINENO: checking malloc.h usability" >&5 |
| 5878 | echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; } |
| 5879 | cat >conftest.$ac_ext <<_ACEOF |
| 5880 | /* confdefs.h. */ |
| 5881 | _ACEOF |
| 5882 | cat confdefs.h >>conftest.$ac_ext |
| 5883 | cat >>conftest.$ac_ext <<_ACEOF |
| 5884 | /* end confdefs.h. */ |
| 5885 | $ac_includes_default |
| 5886 | #include <malloc.h> |
| 5887 | _ACEOF |
| 5888 | rm -f conftest.$ac_objext |
| 5889 | if { (ac_try="$ac_compile" |
| 5890 | case "(($ac_try" in |
| 5891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5892 | *) ac_try_echo=$ac_try;; |
| 5893 | esac |
| 5894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5895 | (eval "$ac_compile") 2>conftest.er1 |
| 5896 | ac_status=$? |
| 5897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5898 | rm -f conftest.er1 |
| 5899 | cat conftest.err >&5 |
| 5900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5901 | (exit $ac_status); } && { |
| 5902 | test -z "$ac_c_werror_flag" || |
| 5903 | test ! -s conftest.err |
| 5904 | } && test -s conftest.$ac_objext; then |
| 5905 | ac_header_compiler=yes |
| 5906 | else |
| 5907 | echo "$as_me: failed program was:" >&5 |
| 5908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5909 | |
| 5910 | ac_header_compiler=no |
| 5911 | fi |
| 5912 | |
| 5913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5914 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5915 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5916 | |
| 5917 | # Is the header present? |
| 5918 | { echo "$as_me:$LINENO: checking malloc.h presence" >&5 |
| 5919 | echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; } |
| 5920 | cat >conftest.$ac_ext <<_ACEOF |
| 5921 | /* confdefs.h. */ |
| 5922 | _ACEOF |
| 5923 | cat confdefs.h >>conftest.$ac_ext |
| 5924 | cat >>conftest.$ac_ext <<_ACEOF |
| 5925 | /* end confdefs.h. */ |
| 5926 | #include <malloc.h> |
| 5927 | _ACEOF |
| 5928 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5929 | case "(($ac_try" in |
| 5930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5931 | *) ac_try_echo=$ac_try;; |
| 5932 | esac |
| 5933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5934 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5935 | ac_status=$? |
| 5936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5937 | rm -f conftest.er1 |
| 5938 | cat conftest.err >&5 |
| 5939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5940 | (exit $ac_status); } >/dev/null && { |
| 5941 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5942 | test ! -s conftest.err |
| 5943 | }; then |
| 5944 | ac_header_preproc=yes |
| 5945 | else |
| 5946 | echo "$as_me: failed program was:" >&5 |
| 5947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5948 | |
| 5949 | ac_header_preproc=no |
| 5950 | fi |
| 5951 | |
| 5952 | rm -f conftest.err conftest.$ac_ext |
| 5953 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5954 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5955 | |
| 5956 | # So? What about this header? |
| 5957 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5958 | yes:no: ) |
| 5959 | { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5960 | echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5961 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 |
| 5962 | echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} |
| 5963 | ac_header_preproc=yes |
| 5964 | ;; |
| 5965 | no:yes:* ) |
| 5966 | { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 |
| 5967 | echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} |
| 5968 | { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 |
| 5969 | echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} |
| 5970 | { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 |
| 5971 | echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} |
| 5972 | { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5973 | echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5974 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 |
| 5975 | echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} |
| 5976 | { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 |
| 5977 | echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} |
| 5978 | |
| 5979 | ;; |
| 5980 | esac |
| 5981 | { echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5982 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } |
| 5983 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5985 | else |
| 5986 | ac_cv_header_malloc_h=$ac_header_preproc |
| 5987 | fi |
| 5988 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5989 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } |
| 5990 | |
| 5991 | fi |
| 5992 | if test $ac_cv_header_malloc_h = yes; then |
| 5993 | cat >>confdefs.h <<\_ACEOF |
| 5994 | #define PJ_HAS_MALLOC_H 1 |
| 5995 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5996 | |
| 5997 | fi |
| 5998 | |
| 5999 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6000 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 6001 | { echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 6002 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } |
| 6003 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 6004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6005 | fi |
| 6006 | { echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 6007 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } |
| 6008 | else |
| 6009 | # Is the header compilable? |
| 6010 | { echo "$as_me:$LINENO: checking netdb.h usability" >&5 |
| 6011 | echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6; } |
| 6012 | cat >conftest.$ac_ext <<_ACEOF |
| 6013 | /* confdefs.h. */ |
| 6014 | _ACEOF |
| 6015 | cat confdefs.h >>conftest.$ac_ext |
| 6016 | cat >>conftest.$ac_ext <<_ACEOF |
| 6017 | /* end confdefs.h. */ |
| 6018 | $ac_includes_default |
| 6019 | #include <netdb.h> |
| 6020 | _ACEOF |
| 6021 | rm -f conftest.$ac_objext |
| 6022 | if { (ac_try="$ac_compile" |
| 6023 | case "(($ac_try" in |
| 6024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6025 | *) ac_try_echo=$ac_try;; |
| 6026 | esac |
| 6027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6028 | (eval "$ac_compile") 2>conftest.er1 |
| 6029 | ac_status=$? |
| 6030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6031 | rm -f conftest.er1 |
| 6032 | cat conftest.err >&5 |
| 6033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6034 | (exit $ac_status); } && { |
| 6035 | test -z "$ac_c_werror_flag" || |
| 6036 | test ! -s conftest.err |
| 6037 | } && test -s conftest.$ac_objext; then |
| 6038 | ac_header_compiler=yes |
| 6039 | else |
| 6040 | echo "$as_me: failed program was:" >&5 |
| 6041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6042 | |
| 6043 | ac_header_compiler=no |
| 6044 | fi |
| 6045 | |
| 6046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6047 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6048 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 6049 | |
| 6050 | # Is the header present? |
| 6051 | { echo "$as_me:$LINENO: checking netdb.h presence" >&5 |
| 6052 | echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6; } |
| 6053 | cat >conftest.$ac_ext <<_ACEOF |
| 6054 | /* confdefs.h. */ |
| 6055 | _ACEOF |
| 6056 | cat confdefs.h >>conftest.$ac_ext |
| 6057 | cat >>conftest.$ac_ext <<_ACEOF |
| 6058 | /* end confdefs.h. */ |
| 6059 | #include <netdb.h> |
| 6060 | _ACEOF |
| 6061 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6062 | case "(($ac_try" in |
| 6063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6064 | *) ac_try_echo=$ac_try;; |
| 6065 | esac |
| 6066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6067 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6068 | ac_status=$? |
| 6069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6070 | rm -f conftest.er1 |
| 6071 | cat conftest.err >&5 |
| 6072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6073 | (exit $ac_status); } >/dev/null && { |
| 6074 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6075 | test ! -s conftest.err |
| 6076 | }; then |
| 6077 | ac_header_preproc=yes |
| 6078 | else |
| 6079 | echo "$as_me: failed program was:" >&5 |
| 6080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6081 | |
| 6082 | ac_header_preproc=no |
| 6083 | fi |
| 6084 | |
| 6085 | rm -f conftest.err conftest.$ac_ext |
| 6086 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6087 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 6088 | |
| 6089 | # So? What about this header? |
| 6090 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6091 | yes:no: ) |
| 6092 | { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6093 | echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6094 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5 |
| 6095 | echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;} |
| 6096 | ac_header_preproc=yes |
| 6097 | ;; |
| 6098 | no:yes:* ) |
| 6099 | { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5 |
| 6100 | echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;} |
| 6101 | { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5 |
| 6102 | echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;} |
| 6103 | { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5 |
| 6104 | echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;} |
| 6105 | { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6106 | echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6107 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5 |
| 6108 | echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;} |
| 6109 | { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5 |
| 6110 | echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;} |
| 6111 | |
| 6112 | ;; |
| 6113 | esac |
| 6114 | { echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 6115 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } |
| 6116 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 6117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6118 | else |
| 6119 | ac_cv_header_netdb_h=$ac_header_preproc |
| 6120 | fi |
| 6121 | { echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 6122 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } |
| 6123 | |
| 6124 | fi |
| 6125 | if test $ac_cv_header_netdb_h = yes; then |
| 6126 | cat >>confdefs.h <<\_ACEOF |
| 6127 | #define PJ_HAS_NETDB_H 1 |
| 6128 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6129 | |
| 6130 | fi |
| 6131 | |
| 6132 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6133 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
| 6134 | { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 |
| 6135 | echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; } |
| 6136 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
| 6137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6138 | fi |
| 6139 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 |
| 6140 | echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; } |
| 6141 | else |
| 6142 | # Is the header compilable? |
| 6143 | { echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5 |
| 6144 | echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6; } |
| 6145 | cat >conftest.$ac_ext <<_ACEOF |
| 6146 | /* confdefs.h. */ |
| 6147 | _ACEOF |
| 6148 | cat confdefs.h >>conftest.$ac_ext |
| 6149 | cat >>conftest.$ac_ext <<_ACEOF |
| 6150 | /* end confdefs.h. */ |
| 6151 | $ac_includes_default |
| 6152 | #include <netinet/in_systm.h> |
| 6153 | _ACEOF |
| 6154 | rm -f conftest.$ac_objext |
| 6155 | if { (ac_try="$ac_compile" |
| 6156 | case "(($ac_try" in |
| 6157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6158 | *) ac_try_echo=$ac_try;; |
| 6159 | esac |
| 6160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6161 | (eval "$ac_compile") 2>conftest.er1 |
| 6162 | ac_status=$? |
| 6163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6164 | rm -f conftest.er1 |
| 6165 | cat conftest.err >&5 |
| 6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6167 | (exit $ac_status); } && { |
| 6168 | test -z "$ac_c_werror_flag" || |
| 6169 | test ! -s conftest.err |
| 6170 | } && test -s conftest.$ac_objext; then |
| 6171 | ac_header_compiler=yes |
| 6172 | else |
| 6173 | echo "$as_me: failed program was:" >&5 |
| 6174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6175 | |
| 6176 | ac_header_compiler=no |
| 6177 | fi |
| 6178 | |
| 6179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6180 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6181 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 6182 | |
| 6183 | # Is the header present? |
| 6184 | { echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5 |
| 6185 | echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6; } |
| 6186 | cat >conftest.$ac_ext <<_ACEOF |
| 6187 | /* confdefs.h. */ |
| 6188 | _ACEOF |
| 6189 | cat confdefs.h >>conftest.$ac_ext |
| 6190 | cat >>conftest.$ac_ext <<_ACEOF |
| 6191 | /* end confdefs.h. */ |
| 6192 | #include <netinet/in_systm.h> |
| 6193 | _ACEOF |
| 6194 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6195 | case "(($ac_try" in |
| 6196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6197 | *) ac_try_echo=$ac_try;; |
| 6198 | esac |
| 6199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6200 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6201 | ac_status=$? |
| 6202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6203 | rm -f conftest.er1 |
| 6204 | cat conftest.err >&5 |
| 6205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6206 | (exit $ac_status); } >/dev/null && { |
| 6207 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6208 | test ! -s conftest.err |
| 6209 | }; then |
| 6210 | ac_header_preproc=yes |
| 6211 | else |
| 6212 | echo "$as_me: failed program was:" >&5 |
| 6213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6214 | |
| 6215 | ac_header_preproc=no |
| 6216 | fi |
| 6217 | |
| 6218 | rm -f conftest.err conftest.$ac_ext |
| 6219 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6220 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 6221 | |
| 6222 | # So? What about this header? |
| 6223 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6224 | yes:no: ) |
| 6225 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6226 | echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6227 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5 |
| 6228 | echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;} |
| 6229 | ac_header_preproc=yes |
| 6230 | ;; |
| 6231 | no:yes:* ) |
| 6232 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5 |
| 6233 | echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;} |
| 6234 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5 |
| 6235 | echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;} |
| 6236 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5 |
| 6237 | echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;} |
| 6238 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6239 | echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6240 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5 |
| 6241 | echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;} |
| 6242 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5 |
| 6243 | echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;} |
| 6244 | |
| 6245 | ;; |
| 6246 | esac |
| 6247 | { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 |
| 6248 | echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; } |
| 6249 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
| 6250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6251 | else |
| 6252 | ac_cv_header_netinet_in_systm_h=$ac_header_preproc |
| 6253 | fi |
| 6254 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 |
| 6255 | echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; } |
| 6256 | |
| 6257 | fi |
| 6258 | if test $ac_cv_header_netinet_in_systm_h = yes; then |
| 6259 | cat >>confdefs.h <<\_ACEOF |
| 6260 | #define PJ_HAS_NETINET_IN_SYSTM_H 1 |
| 6261 | _ACEOF |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6262 | |
| 6263 | fi |
| 6264 | |
| 6265 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6266 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 6267 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 6268 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } |
| 6269 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 6270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6271 | fi |
| 6272 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 6273 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } |
| 6274 | else |
| 6275 | # Is the header compilable? |
| 6276 | { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
| 6277 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; } |
| 6278 | cat >conftest.$ac_ext <<_ACEOF |
| 6279 | /* confdefs.h. */ |
| 6280 | _ACEOF |
| 6281 | cat confdefs.h >>conftest.$ac_ext |
| 6282 | cat >>conftest.$ac_ext <<_ACEOF |
| 6283 | /* end confdefs.h. */ |
| 6284 | $ac_includes_default |
| 6285 | #include <netinet/in.h> |
| 6286 | _ACEOF |
| 6287 | rm -f conftest.$ac_objext |
| 6288 | if { (ac_try="$ac_compile" |
| 6289 | case "(($ac_try" in |
| 6290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6291 | *) ac_try_echo=$ac_try;; |
| 6292 | esac |
| 6293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6294 | (eval "$ac_compile") 2>conftest.er1 |
| 6295 | ac_status=$? |
| 6296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6297 | rm -f conftest.er1 |
| 6298 | cat conftest.err >&5 |
| 6299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6300 | (exit $ac_status); } && { |
| 6301 | test -z "$ac_c_werror_flag" || |
| 6302 | test ! -s conftest.err |
| 6303 | } && test -s conftest.$ac_objext; then |
| 6304 | ac_header_compiler=yes |
| 6305 | else |
| 6306 | echo "$as_me: failed program was:" >&5 |
| 6307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6308 | |
| 6309 | ac_header_compiler=no |
| 6310 | fi |
| 6311 | |
| 6312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6313 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6314 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 6315 | |
| 6316 | # Is the header present? |
| 6317 | { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
| 6318 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; } |
| 6319 | cat >conftest.$ac_ext <<_ACEOF |
| 6320 | /* confdefs.h. */ |
| 6321 | _ACEOF |
| 6322 | cat confdefs.h >>conftest.$ac_ext |
| 6323 | cat >>conftest.$ac_ext <<_ACEOF |
| 6324 | /* end confdefs.h. */ |
| 6325 | #include <netinet/in.h> |
| 6326 | _ACEOF |
| 6327 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6328 | case "(($ac_try" in |
| 6329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6330 | *) ac_try_echo=$ac_try;; |
| 6331 | esac |
| 6332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6333 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6334 | ac_status=$? |
| 6335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6336 | rm -f conftest.er1 |
| 6337 | cat conftest.err >&5 |
| 6338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6339 | (exit $ac_status); } >/dev/null && { |
| 6340 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6341 | test ! -s conftest.err |
| 6342 | }; then |
| 6343 | ac_header_preproc=yes |
| 6344 | else |
| 6345 | echo "$as_me: failed program was:" >&5 |
| 6346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6347 | |
| 6348 | ac_header_preproc=no |
| 6349 | fi |
| 6350 | |
| 6351 | rm -f conftest.err conftest.$ac_ext |
| 6352 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6353 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 6354 | |
| 6355 | # So? What about this header? |
| 6356 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6357 | yes:no: ) |
| 6358 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6359 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6360 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
| 6361 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} |
| 6362 | ac_header_preproc=yes |
| 6363 | ;; |
| 6364 | no:yes:* ) |
| 6365 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
| 6366 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} |
| 6367 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
| 6368 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} |
| 6369 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 |
| 6370 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} |
| 6371 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6372 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6373 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
| 6374 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
| 6375 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
| 6376 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} |
| 6377 | |
| 6378 | ;; |
| 6379 | esac |
| 6380 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 6381 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } |
| 6382 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 6383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6384 | else |
| 6385 | ac_cv_header_netinet_in_h=$ac_header_preproc |
| 6386 | fi |
| 6387 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 6388 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } |
| 6389 | |
| 6390 | fi |
| 6391 | if test $ac_cv_header_netinet_in_h = yes; then |
| 6392 | cat >>confdefs.h <<\_ACEOF |
| 6393 | #define PJ_HAS_NETINET_IN_H 1 |
| 6394 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6395 | |
| 6396 | fi |
| 6397 | |
| 6398 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6399 | { echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
| 6400 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; } |
| 6401 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 6402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6403 | else |
| 6404 | cat >conftest.$ac_ext <<_ACEOF |
| 6405 | /* confdefs.h. */ |
| 6406 | _ACEOF |
| 6407 | cat confdefs.h >>conftest.$ac_ext |
| 6408 | cat >>conftest.$ac_ext <<_ACEOF |
| 6409 | /* end confdefs.h. */ |
| 6410 | #if PJ_HAS_SYS_TYPES_H |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6411 | # include <sys/types.h> |
| 6412 | #endif |
| 6413 | #if PJ_HAS_NETINET_IN_SYSTM_H |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6414 | # include <netinet/in_systm.h> |
| 6415 | #endif |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6416 | #if PJ_HAS_NETINET_IN_H |
| 6417 | # include <netinet/in.h> |
| 6418 | #endif |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 6419 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6420 | |
| 6421 | #include <netinet/ip.h> |
| 6422 | _ACEOF |
| 6423 | rm -f conftest.$ac_objext |
| 6424 | if { (ac_try="$ac_compile" |
| 6425 | case "(($ac_try" in |
| 6426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6427 | *) ac_try_echo=$ac_try;; |
| 6428 | esac |
| 6429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6430 | (eval "$ac_compile") 2>conftest.er1 |
| 6431 | ac_status=$? |
| 6432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6433 | rm -f conftest.er1 |
| 6434 | cat conftest.err >&5 |
| 6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6436 | (exit $ac_status); } && { |
| 6437 | test -z "$ac_c_werror_flag" || |
| 6438 | test ! -s conftest.err |
| 6439 | } && test -s conftest.$ac_objext; then |
| 6440 | ac_cv_header_netinet_ip_h=yes |
| 6441 | else |
| 6442 | echo "$as_me: failed program was:" >&5 |
| 6443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6444 | |
| 6445 | ac_cv_header_netinet_ip_h=no |
| 6446 | fi |
| 6447 | |
| 6448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6449 | fi |
| 6450 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 6451 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; } |
| 6452 | if test $ac_cv_header_netinet_ip_h = yes; then |
| 6453 | cat >>confdefs.h <<\_ACEOF |
| 6454 | #define PJ_HAS_NETINET_IP_H 1 |
| 6455 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6456 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6457 | fi |
| 6458 | |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 6459 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6460 | if test "${ac_cv_header_netinet_tcp_h+set}" = set; then |
| 6461 | { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5 |
| 6462 | echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; } |
| 6463 | if test "${ac_cv_header_netinet_tcp_h+set}" = set; then |
| 6464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6465 | fi |
| 6466 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5 |
| 6467 | echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; } |
| 6468 | else |
| 6469 | # Is the header compilable? |
| 6470 | { echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5 |
| 6471 | echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; } |
| 6472 | cat >conftest.$ac_ext <<_ACEOF |
| 6473 | /* confdefs.h. */ |
| 6474 | _ACEOF |
| 6475 | cat confdefs.h >>conftest.$ac_ext |
| 6476 | cat >>conftest.$ac_ext <<_ACEOF |
| 6477 | /* end confdefs.h. */ |
| 6478 | $ac_includes_default |
| 6479 | #include <netinet/tcp.h> |
| 6480 | _ACEOF |
| 6481 | rm -f conftest.$ac_objext |
| 6482 | if { (ac_try="$ac_compile" |
| 6483 | case "(($ac_try" in |
| 6484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6485 | *) ac_try_echo=$ac_try;; |
| 6486 | esac |
| 6487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6488 | (eval "$ac_compile") 2>conftest.er1 |
| 6489 | ac_status=$? |
| 6490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6491 | rm -f conftest.er1 |
| 6492 | cat conftest.err >&5 |
| 6493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6494 | (exit $ac_status); } && { |
| 6495 | test -z "$ac_c_werror_flag" || |
| 6496 | test ! -s conftest.err |
| 6497 | } && test -s conftest.$ac_objext; then |
| 6498 | ac_header_compiler=yes |
| 6499 | else |
| 6500 | echo "$as_me: failed program was:" >&5 |
| 6501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6502 | |
| 6503 | ac_header_compiler=no |
| 6504 | fi |
| 6505 | |
| 6506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6507 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6508 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 6509 | |
| 6510 | # Is the header present? |
| 6511 | { echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5 |
| 6512 | echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; } |
| 6513 | cat >conftest.$ac_ext <<_ACEOF |
| 6514 | /* confdefs.h. */ |
| 6515 | _ACEOF |
| 6516 | cat confdefs.h >>conftest.$ac_ext |
| 6517 | cat >>conftest.$ac_ext <<_ACEOF |
| 6518 | /* end confdefs.h. */ |
| 6519 | #include <netinet/tcp.h> |
| 6520 | _ACEOF |
| 6521 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6522 | case "(($ac_try" in |
| 6523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6524 | *) ac_try_echo=$ac_try;; |
| 6525 | esac |
| 6526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6527 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6528 | ac_status=$? |
| 6529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6530 | rm -f conftest.er1 |
| 6531 | cat conftest.err >&5 |
| 6532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6533 | (exit $ac_status); } >/dev/null && { |
| 6534 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6535 | test ! -s conftest.err |
| 6536 | }; then |
| 6537 | ac_header_preproc=yes |
| 6538 | else |
| 6539 | echo "$as_me: failed program was:" >&5 |
| 6540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6541 | |
| 6542 | ac_header_preproc=no |
| 6543 | fi |
| 6544 | |
| 6545 | rm -f conftest.err conftest.$ac_ext |
| 6546 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6547 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 6548 | |
| 6549 | # So? What about this header? |
| 6550 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6551 | yes:no: ) |
| 6552 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6553 | echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6554 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5 |
| 6555 | echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;} |
| 6556 | ac_header_preproc=yes |
| 6557 | ;; |
| 6558 | no:yes:* ) |
| 6559 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5 |
| 6560 | echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;} |
| 6561 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5 |
| 6562 | echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;} |
| 6563 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5 |
| 6564 | echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;} |
| 6565 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6566 | echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6567 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5 |
| 6568 | echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;} |
| 6569 | { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5 |
| 6570 | echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;} |
| 6571 | |
| 6572 | ;; |
| 6573 | esac |
| 6574 | { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5 |
| 6575 | echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; } |
| 6576 | if test "${ac_cv_header_netinet_tcp_h+set}" = set; then |
| 6577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6578 | else |
| 6579 | ac_cv_header_netinet_tcp_h=$ac_header_preproc |
| 6580 | fi |
| 6581 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5 |
| 6582 | echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; } |
| 6583 | |
| 6584 | fi |
| 6585 | if test $ac_cv_header_netinet_tcp_h = yes; then |
| 6586 | cat >>confdefs.h <<\_ACEOF |
| 6587 | #define PJ_HAS_NETINET_TCP_H 1 |
| 6588 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6589 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6590 | fi |
| 6591 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6592 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6593 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 6594 | { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 6595 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } |
| 6596 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 6597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6598 | fi |
| 6599 | { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 6600 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } |
| 6601 | else |
| 6602 | # Is the header compilable? |
| 6603 | { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5 |
| 6604 | echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; } |
| 6605 | cat >conftest.$ac_ext <<_ACEOF |
| 6606 | /* confdefs.h. */ |
| 6607 | _ACEOF |
| 6608 | cat confdefs.h >>conftest.$ac_ext |
| 6609 | cat >>conftest.$ac_ext <<_ACEOF |
| 6610 | /* end confdefs.h. */ |
| 6611 | $ac_includes_default |
| 6612 | #include <ifaddrs.h> |
| 6613 | _ACEOF |
| 6614 | rm -f conftest.$ac_objext |
| 6615 | if { (ac_try="$ac_compile" |
| 6616 | case "(($ac_try" in |
| 6617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6618 | *) ac_try_echo=$ac_try;; |
| 6619 | esac |
| 6620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6621 | (eval "$ac_compile") 2>conftest.er1 |
| 6622 | ac_status=$? |
| 6623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6624 | rm -f conftest.er1 |
| 6625 | cat conftest.err >&5 |
| 6626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6627 | (exit $ac_status); } && { |
| 6628 | test -z "$ac_c_werror_flag" || |
| 6629 | test ! -s conftest.err |
| 6630 | } && test -s conftest.$ac_objext; then |
| 6631 | ac_header_compiler=yes |
| 6632 | else |
| 6633 | echo "$as_me: failed program was:" >&5 |
| 6634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6635 | |
| 6636 | ac_header_compiler=no |
| 6637 | fi |
| 6638 | |
| 6639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6640 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6641 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 6642 | |
| 6643 | # Is the header present? |
| 6644 | { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5 |
| 6645 | echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; } |
| 6646 | cat >conftest.$ac_ext <<_ACEOF |
| 6647 | /* confdefs.h. */ |
| 6648 | _ACEOF |
| 6649 | cat confdefs.h >>conftest.$ac_ext |
| 6650 | cat >>conftest.$ac_ext <<_ACEOF |
| 6651 | /* end confdefs.h. */ |
| 6652 | #include <ifaddrs.h> |
| 6653 | _ACEOF |
| 6654 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6655 | case "(($ac_try" in |
| 6656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6657 | *) ac_try_echo=$ac_try;; |
| 6658 | esac |
| 6659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6660 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6661 | ac_status=$? |
| 6662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6663 | rm -f conftest.er1 |
| 6664 | cat conftest.err >&5 |
| 6665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6666 | (exit $ac_status); } >/dev/null && { |
| 6667 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6668 | test ! -s conftest.err |
| 6669 | }; then |
| 6670 | ac_header_preproc=yes |
| 6671 | else |
| 6672 | echo "$as_me: failed program was:" >&5 |
| 6673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6674 | |
| 6675 | ac_header_preproc=no |
| 6676 | fi |
| 6677 | |
| 6678 | rm -f conftest.err conftest.$ac_ext |
| 6679 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6680 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 6681 | |
| 6682 | # So? What about this header? |
| 6683 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6684 | yes:no: ) |
| 6685 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6686 | echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6687 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5 |
| 6688 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;} |
| 6689 | ac_header_preproc=yes |
| 6690 | ;; |
| 6691 | no:yes:* ) |
| 6692 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5 |
| 6693 | echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;} |
| 6694 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5 |
| 6695 | echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;} |
| 6696 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5 |
| 6697 | echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;} |
| 6698 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6699 | echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6700 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5 |
| 6701 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;} |
| 6702 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5 |
| 6703 | echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;} |
| 6704 | |
| 6705 | ;; |
| 6706 | esac |
| 6707 | { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 6708 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } |
| 6709 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 6710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6711 | else |
| 6712 | ac_cv_header_ifaddrs_h=$ac_header_preproc |
| 6713 | fi |
| 6714 | { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 6715 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } |
| 6716 | |
| 6717 | fi |
| 6718 | if test $ac_cv_header_ifaddrs_h = yes; then |
| 6719 | { echo "$as_me:$LINENO: checking for getifaddrs" >&5 |
| 6720 | echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; } |
| 6721 | if test "${ac_cv_func_getifaddrs+set}" = set; then |
| 6722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6723 | else |
| 6724 | cat >conftest.$ac_ext <<_ACEOF |
| 6725 | /* confdefs.h. */ |
| 6726 | _ACEOF |
| 6727 | cat confdefs.h >>conftest.$ac_ext |
| 6728 | cat >>conftest.$ac_ext <<_ACEOF |
| 6729 | /* end confdefs.h. */ |
| 6730 | /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs. |
| 6731 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6732 | #define getifaddrs innocuous_getifaddrs |
| 6733 | |
| 6734 | /* System header to define __stub macros and hopefully few prototypes, |
| 6735 | which can conflict with char getifaddrs (); below. |
| 6736 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6737 | <limits.h> exists even on freestanding compilers. */ |
| 6738 | |
| 6739 | #ifdef __STDC__ |
| 6740 | # include <limits.h> |
| 6741 | #else |
| 6742 | # include <assert.h> |
| 6743 | #endif |
| 6744 | |
| 6745 | #undef getifaddrs |
| 6746 | |
| 6747 | /* Override any GCC internal prototype to avoid an error. |
| 6748 | Use char because int might match the return type of a GCC |
| 6749 | builtin and then its argument prototype would still apply. */ |
| 6750 | #ifdef __cplusplus |
| 6751 | extern "C" |
| 6752 | #endif |
| 6753 | char getifaddrs (); |
| 6754 | /* The GNU C library defines this for functions which it implements |
| 6755 | to always fail with ENOSYS. Some functions are actually named |
| 6756 | something starting with __ and the normal name is an alias. */ |
| 6757 | #if defined __stub_getifaddrs || defined __stub___getifaddrs |
| 6758 | choke me |
| 6759 | #endif |
| 6760 | |
| 6761 | int |
| 6762 | main () |
| 6763 | { |
| 6764 | return getifaddrs (); |
| 6765 | ; |
| 6766 | return 0; |
| 6767 | } |
| 6768 | _ACEOF |
| 6769 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6770 | if { (ac_try="$ac_link" |
| 6771 | case "(($ac_try" in |
| 6772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6773 | *) ac_try_echo=$ac_try;; |
| 6774 | esac |
| 6775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6776 | (eval "$ac_link") 2>conftest.er1 |
| 6777 | ac_status=$? |
| 6778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6779 | rm -f conftest.er1 |
| 6780 | cat conftest.err >&5 |
| 6781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6782 | (exit $ac_status); } && { |
| 6783 | test -z "$ac_c_werror_flag" || |
| 6784 | test ! -s conftest.err |
| 6785 | } && test -s conftest$ac_exeext && |
| 6786 | $as_test_x conftest$ac_exeext; then |
| 6787 | ac_cv_func_getifaddrs=yes |
| 6788 | else |
| 6789 | echo "$as_me: failed program was:" >&5 |
| 6790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6791 | |
| 6792 | ac_cv_func_getifaddrs=no |
| 6793 | fi |
| 6794 | |
| 6795 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6796 | conftest$ac_exeext conftest.$ac_ext |
| 6797 | fi |
| 6798 | { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5 |
| 6799 | echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; } |
| 6800 | if test $ac_cv_func_getifaddrs = yes; then |
| 6801 | cat >>confdefs.h <<\_ACEOF |
| 6802 | #define PJ_HAS_IFADDRS_H 1 |
| 6803 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6804 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6805 | fi |
| 6806 | |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 6807 | fi |
| 6808 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6809 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6810 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6811 | { echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 6812 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; } |
| 6813 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6815 | fi |
| 6816 | { echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6817 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; } |
| 6818 | else |
| 6819 | # Is the header compilable? |
| 6820 | { echo "$as_me:$LINENO: checking semaphore.h usability" >&5 |
| 6821 | echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6; } |
| 6822 | cat >conftest.$ac_ext <<_ACEOF |
| 6823 | /* confdefs.h. */ |
| 6824 | _ACEOF |
| 6825 | cat confdefs.h >>conftest.$ac_ext |
| 6826 | cat >>conftest.$ac_ext <<_ACEOF |
| 6827 | /* end confdefs.h. */ |
| 6828 | $ac_includes_default |
| 6829 | #include <semaphore.h> |
| 6830 | _ACEOF |
| 6831 | rm -f conftest.$ac_objext |
| 6832 | if { (ac_try="$ac_compile" |
| 6833 | case "(($ac_try" in |
| 6834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6835 | *) ac_try_echo=$ac_try;; |
| 6836 | esac |
| 6837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6838 | (eval "$ac_compile") 2>conftest.er1 |
| 6839 | ac_status=$? |
| 6840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6841 | rm -f conftest.er1 |
| 6842 | cat conftest.err >&5 |
| 6843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6844 | (exit $ac_status); } && { |
| 6845 | test -z "$ac_c_werror_flag" || |
| 6846 | test ! -s conftest.err |
| 6847 | } && test -s conftest.$ac_objext; then |
| 6848 | ac_header_compiler=yes |
| 6849 | else |
| 6850 | echo "$as_me: failed program was:" >&5 |
| 6851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6852 | |
| 6853 | ac_header_compiler=no |
| 6854 | fi |
| 6855 | |
| 6856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6857 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6858 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 6859 | |
| 6860 | # Is the header present? |
| 6861 | { echo "$as_me:$LINENO: checking semaphore.h presence" >&5 |
| 6862 | echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6; } |
| 6863 | cat >conftest.$ac_ext <<_ACEOF |
| 6864 | /* confdefs.h. */ |
| 6865 | _ACEOF |
| 6866 | cat confdefs.h >>conftest.$ac_ext |
| 6867 | cat >>conftest.$ac_ext <<_ACEOF |
| 6868 | /* end confdefs.h. */ |
| 6869 | #include <semaphore.h> |
| 6870 | _ACEOF |
| 6871 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6872 | case "(($ac_try" in |
| 6873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6874 | *) ac_try_echo=$ac_try;; |
| 6875 | esac |
| 6876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6877 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6878 | ac_status=$? |
| 6879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6880 | rm -f conftest.er1 |
| 6881 | cat conftest.err >&5 |
| 6882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6883 | (exit $ac_status); } >/dev/null && { |
| 6884 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6885 | test ! -s conftest.err |
| 6886 | }; then |
| 6887 | ac_header_preproc=yes |
| 6888 | else |
| 6889 | echo "$as_me: failed program was:" >&5 |
| 6890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6891 | |
| 6892 | ac_header_preproc=no |
| 6893 | fi |
| 6894 | |
| 6895 | rm -f conftest.err conftest.$ac_ext |
| 6896 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6897 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 6898 | |
| 6899 | # So? What about this header? |
| 6900 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6901 | yes:no: ) |
| 6902 | { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6903 | echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6904 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5 |
| 6905 | echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;} |
| 6906 | ac_header_preproc=yes |
| 6907 | ;; |
| 6908 | no:yes:* ) |
| 6909 | { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5 |
| 6910 | echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;} |
| 6911 | { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5 |
| 6912 | echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;} |
| 6913 | { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5 |
| 6914 | echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;} |
| 6915 | { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6916 | echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6917 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5 |
| 6918 | echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;} |
| 6919 | { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5 |
| 6920 | echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;} |
| 6921 | |
| 6922 | ;; |
| 6923 | esac |
| 6924 | { echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 6925 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; } |
| 6926 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6928 | else |
| 6929 | ac_cv_header_semaphore_h=$ac_header_preproc |
| 6930 | fi |
| 6931 | { echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6932 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; } |
| 6933 | |
| 6934 | fi |
| 6935 | if test $ac_cv_header_semaphore_h = yes; then |
| 6936 | cat >>confdefs.h <<\_ACEOF |
| 6937 | #define PJ_HAS_SEMAPHORE_H 1 |
| 6938 | _ACEOF |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 6939 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 6940 | fi |
| 6941 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 6942 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 6943 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6944 | { echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6945 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } |
| 6946 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6948 | fi |
| 6949 | { echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6950 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } |
| 6951 | else |
| 6952 | # Is the header compilable? |
| 6953 | { echo "$as_me:$LINENO: checking setjmp.h usability" >&5 |
| 6954 | echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6; } |
| 6955 | cat >conftest.$ac_ext <<_ACEOF |
| 6956 | /* confdefs.h. */ |
| 6957 | _ACEOF |
| 6958 | cat confdefs.h >>conftest.$ac_ext |
| 6959 | cat >>conftest.$ac_ext <<_ACEOF |
| 6960 | /* end confdefs.h. */ |
| 6961 | $ac_includes_default |
| 6962 | #include <setjmp.h> |
| 6963 | _ACEOF |
| 6964 | rm -f conftest.$ac_objext |
| 6965 | if { (ac_try="$ac_compile" |
| 6966 | case "(($ac_try" in |
| 6967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6968 | *) ac_try_echo=$ac_try;; |
| 6969 | esac |
| 6970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6971 | (eval "$ac_compile") 2>conftest.er1 |
| 6972 | ac_status=$? |
| 6973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6974 | rm -f conftest.er1 |
| 6975 | cat conftest.err >&5 |
| 6976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6977 | (exit $ac_status); } && { |
| 6978 | test -z "$ac_c_werror_flag" || |
| 6979 | test ! -s conftest.err |
| 6980 | } && test -s conftest.$ac_objext; then |
| 6981 | ac_header_compiler=yes |
| 6982 | else |
| 6983 | echo "$as_me: failed program was:" >&5 |
| 6984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6985 | |
| 6986 | ac_header_compiler=no |
| 6987 | fi |
| 6988 | |
| 6989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6990 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6991 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 6992 | |
| 6993 | # Is the header present? |
| 6994 | { echo "$as_me:$LINENO: checking setjmp.h presence" >&5 |
| 6995 | echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6; } |
| 6996 | cat >conftest.$ac_ext <<_ACEOF |
| 6997 | /* confdefs.h. */ |
| 6998 | _ACEOF |
| 6999 | cat confdefs.h >>conftest.$ac_ext |
| 7000 | cat >>conftest.$ac_ext <<_ACEOF |
| 7001 | /* end confdefs.h. */ |
| 7002 | #include <setjmp.h> |
| 7003 | _ACEOF |
| 7004 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7005 | case "(($ac_try" in |
| 7006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7007 | *) ac_try_echo=$ac_try;; |
| 7008 | esac |
| 7009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7010 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7011 | ac_status=$? |
| 7012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7013 | rm -f conftest.er1 |
| 7014 | cat conftest.err >&5 |
| 7015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7016 | (exit $ac_status); } >/dev/null && { |
| 7017 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7018 | test ! -s conftest.err |
| 7019 | }; then |
| 7020 | ac_header_preproc=yes |
| 7021 | else |
| 7022 | echo "$as_me: failed program was:" >&5 |
| 7023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7024 | |
| 7025 | ac_header_preproc=no |
| 7026 | fi |
| 7027 | |
| 7028 | rm -f conftest.err conftest.$ac_ext |
| 7029 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7030 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7031 | |
| 7032 | # So? What about this header? |
| 7033 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7034 | yes:no: ) |
| 7035 | { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7036 | echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7037 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5 |
| 7038 | echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;} |
| 7039 | ac_header_preproc=yes |
| 7040 | ;; |
| 7041 | no:yes:* ) |
| 7042 | { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5 |
| 7043 | echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;} |
| 7044 | { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5 |
| 7045 | echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;} |
| 7046 | { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5 |
| 7047 | echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;} |
| 7048 | { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7049 | echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7050 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5 |
| 7051 | echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;} |
| 7052 | { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5 |
| 7053 | echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;} |
| 7054 | |
| 7055 | ;; |
| 7056 | esac |
| 7057 | { echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 7058 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } |
| 7059 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 7060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7061 | else |
| 7062 | ac_cv_header_setjmp_h=$ac_header_preproc |
| 7063 | fi |
| 7064 | { echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 7065 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } |
| 7066 | |
| 7067 | fi |
| 7068 | if test $ac_cv_header_setjmp_h = yes; then |
| 7069 | cat >>confdefs.h <<\_ACEOF |
| 7070 | #define PJ_HAS_SETJMP_H 1 |
| 7071 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7072 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7073 | fi |
| 7074 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7075 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7076 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 7077 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 7078 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } |
| 7079 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 7080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7081 | fi |
| 7082 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 7083 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } |
| 7084 | else |
| 7085 | # Is the header compilable? |
| 7086 | { echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
| 7087 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } |
| 7088 | cat >conftest.$ac_ext <<_ACEOF |
| 7089 | /* confdefs.h. */ |
| 7090 | _ACEOF |
| 7091 | cat confdefs.h >>conftest.$ac_ext |
| 7092 | cat >>conftest.$ac_ext <<_ACEOF |
| 7093 | /* end confdefs.h. */ |
| 7094 | $ac_includes_default |
| 7095 | #include <stdarg.h> |
| 7096 | _ACEOF |
| 7097 | rm -f conftest.$ac_objext |
| 7098 | if { (ac_try="$ac_compile" |
| 7099 | case "(($ac_try" in |
| 7100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7101 | *) ac_try_echo=$ac_try;; |
| 7102 | esac |
| 7103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7104 | (eval "$ac_compile") 2>conftest.er1 |
| 7105 | ac_status=$? |
| 7106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7107 | rm -f conftest.er1 |
| 7108 | cat conftest.err >&5 |
| 7109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7110 | (exit $ac_status); } && { |
| 7111 | test -z "$ac_c_werror_flag" || |
| 7112 | test ! -s conftest.err |
| 7113 | } && test -s conftest.$ac_objext; then |
| 7114 | ac_header_compiler=yes |
| 7115 | else |
| 7116 | echo "$as_me: failed program was:" >&5 |
| 7117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7118 | |
| 7119 | ac_header_compiler=no |
| 7120 | fi |
| 7121 | |
| 7122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7123 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7124 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7125 | |
| 7126 | # Is the header present? |
| 7127 | { echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
| 7128 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } |
| 7129 | cat >conftest.$ac_ext <<_ACEOF |
| 7130 | /* confdefs.h. */ |
| 7131 | _ACEOF |
| 7132 | cat confdefs.h >>conftest.$ac_ext |
| 7133 | cat >>conftest.$ac_ext <<_ACEOF |
| 7134 | /* end confdefs.h. */ |
| 7135 | #include <stdarg.h> |
| 7136 | _ACEOF |
| 7137 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7138 | case "(($ac_try" in |
| 7139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7140 | *) ac_try_echo=$ac_try;; |
| 7141 | esac |
| 7142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7143 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7144 | ac_status=$? |
| 7145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7146 | rm -f conftest.er1 |
| 7147 | cat conftest.err >&5 |
| 7148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7149 | (exit $ac_status); } >/dev/null && { |
| 7150 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7151 | test ! -s conftest.err |
| 7152 | }; then |
| 7153 | ac_header_preproc=yes |
| 7154 | else |
| 7155 | echo "$as_me: failed program was:" >&5 |
| 7156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7157 | |
| 7158 | ac_header_preproc=no |
| 7159 | fi |
| 7160 | |
| 7161 | rm -f conftest.err conftest.$ac_ext |
| 7162 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7163 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7164 | |
| 7165 | # So? What about this header? |
| 7166 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7167 | yes:no: ) |
| 7168 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7169 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7170 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 |
| 7171 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} |
| 7172 | ac_header_preproc=yes |
| 7173 | ;; |
| 7174 | no:yes:* ) |
| 7175 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 |
| 7176 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} |
| 7177 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 |
| 7178 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} |
| 7179 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 |
| 7180 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} |
| 7181 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7182 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7183 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 |
| 7184 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} |
| 7185 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 |
| 7186 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} |
| 7187 | |
| 7188 | ;; |
| 7189 | esac |
| 7190 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 7191 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } |
| 7192 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 7193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7194 | else |
| 7195 | ac_cv_header_stdarg_h=$ac_header_preproc |
| 7196 | fi |
| 7197 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 7198 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } |
| 7199 | |
| 7200 | fi |
| 7201 | if test $ac_cv_header_stdarg_h = yes; then |
| 7202 | cat >>confdefs.h <<\_ACEOF |
| 7203 | #define PJ_HAS_STDARG_H 1 |
| 7204 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7205 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7206 | fi |
| 7207 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7208 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7209 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 7210 | { echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 7211 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } |
| 7212 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 7213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7214 | fi |
| 7215 | { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 7216 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } |
| 7217 | else |
| 7218 | # Is the header compilable? |
| 7219 | { echo "$as_me:$LINENO: checking stddef.h usability" >&5 |
| 7220 | echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; } |
| 7221 | cat >conftest.$ac_ext <<_ACEOF |
| 7222 | /* confdefs.h. */ |
| 7223 | _ACEOF |
| 7224 | cat confdefs.h >>conftest.$ac_ext |
| 7225 | cat >>conftest.$ac_ext <<_ACEOF |
| 7226 | /* end confdefs.h. */ |
| 7227 | $ac_includes_default |
| 7228 | #include <stddef.h> |
| 7229 | _ACEOF |
| 7230 | rm -f conftest.$ac_objext |
| 7231 | if { (ac_try="$ac_compile" |
| 7232 | case "(($ac_try" in |
| 7233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7234 | *) ac_try_echo=$ac_try;; |
| 7235 | esac |
| 7236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7237 | (eval "$ac_compile") 2>conftest.er1 |
| 7238 | ac_status=$? |
| 7239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7240 | rm -f conftest.er1 |
| 7241 | cat conftest.err >&5 |
| 7242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7243 | (exit $ac_status); } && { |
| 7244 | test -z "$ac_c_werror_flag" || |
| 7245 | test ! -s conftest.err |
| 7246 | } && test -s conftest.$ac_objext; then |
| 7247 | ac_header_compiler=yes |
| 7248 | else |
| 7249 | echo "$as_me: failed program was:" >&5 |
| 7250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7251 | |
| 7252 | ac_header_compiler=no |
| 7253 | fi |
| 7254 | |
| 7255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7256 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7257 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7258 | |
| 7259 | # Is the header present? |
| 7260 | { echo "$as_me:$LINENO: checking stddef.h presence" >&5 |
| 7261 | echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; } |
| 7262 | cat >conftest.$ac_ext <<_ACEOF |
| 7263 | /* confdefs.h. */ |
| 7264 | _ACEOF |
| 7265 | cat confdefs.h >>conftest.$ac_ext |
| 7266 | cat >>conftest.$ac_ext <<_ACEOF |
| 7267 | /* end confdefs.h. */ |
| 7268 | #include <stddef.h> |
| 7269 | _ACEOF |
| 7270 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7271 | case "(($ac_try" in |
| 7272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7273 | *) ac_try_echo=$ac_try;; |
| 7274 | esac |
| 7275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7276 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7277 | ac_status=$? |
| 7278 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7279 | rm -f conftest.er1 |
| 7280 | cat conftest.err >&5 |
| 7281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7282 | (exit $ac_status); } >/dev/null && { |
| 7283 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7284 | test ! -s conftest.err |
| 7285 | }; then |
| 7286 | ac_header_preproc=yes |
| 7287 | else |
| 7288 | echo "$as_me: failed program was:" >&5 |
| 7289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7290 | |
| 7291 | ac_header_preproc=no |
| 7292 | fi |
| 7293 | |
| 7294 | rm -f conftest.err conftest.$ac_ext |
| 7295 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7296 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7297 | |
| 7298 | # So? What about this header? |
| 7299 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7300 | yes:no: ) |
| 7301 | { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7302 | echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7303 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5 |
| 7304 | echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;} |
| 7305 | ac_header_preproc=yes |
| 7306 | ;; |
| 7307 | no:yes:* ) |
| 7308 | { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5 |
| 7309 | echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;} |
| 7310 | { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5 |
| 7311 | echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;} |
| 7312 | { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 |
| 7313 | echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;} |
| 7314 | { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7315 | echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7316 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5 |
| 7317 | echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;} |
| 7318 | { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5 |
| 7319 | echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;} |
| 7320 | |
| 7321 | ;; |
| 7322 | esac |
| 7323 | { echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 7324 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } |
| 7325 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 7326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7327 | else |
| 7328 | ac_cv_header_stddef_h=$ac_header_preproc |
| 7329 | fi |
| 7330 | { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 7331 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } |
| 7332 | |
| 7333 | fi |
| 7334 | if test $ac_cv_header_stddef_h = yes; then |
| 7335 | cat >>confdefs.h <<\_ACEOF |
| 7336 | #define PJ_HAS_STDDEF_H 1 |
| 7337 | _ACEOF |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 7338 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 7339 | fi |
| 7340 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 7341 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7342 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 7343 | { echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 7344 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } |
| 7345 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 7346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7347 | fi |
| 7348 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 7349 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } |
| 7350 | else |
| 7351 | # Is the header compilable? |
| 7352 | { echo "$as_me:$LINENO: checking stdio.h usability" >&5 |
| 7353 | echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; } |
| 7354 | cat >conftest.$ac_ext <<_ACEOF |
| 7355 | /* confdefs.h. */ |
| 7356 | _ACEOF |
| 7357 | cat confdefs.h >>conftest.$ac_ext |
| 7358 | cat >>conftest.$ac_ext <<_ACEOF |
| 7359 | /* end confdefs.h. */ |
| 7360 | $ac_includes_default |
| 7361 | #include <stdio.h> |
| 7362 | _ACEOF |
| 7363 | rm -f conftest.$ac_objext |
| 7364 | if { (ac_try="$ac_compile" |
| 7365 | case "(($ac_try" in |
| 7366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7367 | *) ac_try_echo=$ac_try;; |
| 7368 | esac |
| 7369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7370 | (eval "$ac_compile") 2>conftest.er1 |
| 7371 | ac_status=$? |
| 7372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7373 | rm -f conftest.er1 |
| 7374 | cat conftest.err >&5 |
| 7375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7376 | (exit $ac_status); } && { |
| 7377 | test -z "$ac_c_werror_flag" || |
| 7378 | test ! -s conftest.err |
| 7379 | } && test -s conftest.$ac_objext; then |
| 7380 | ac_header_compiler=yes |
| 7381 | else |
| 7382 | echo "$as_me: failed program was:" >&5 |
| 7383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7384 | |
| 7385 | ac_header_compiler=no |
| 7386 | fi |
| 7387 | |
| 7388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7389 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7390 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7391 | |
| 7392 | # Is the header present? |
| 7393 | { echo "$as_me:$LINENO: checking stdio.h presence" >&5 |
| 7394 | echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; } |
| 7395 | cat >conftest.$ac_ext <<_ACEOF |
| 7396 | /* confdefs.h. */ |
| 7397 | _ACEOF |
| 7398 | cat confdefs.h >>conftest.$ac_ext |
| 7399 | cat >>conftest.$ac_ext <<_ACEOF |
| 7400 | /* end confdefs.h. */ |
| 7401 | #include <stdio.h> |
| 7402 | _ACEOF |
| 7403 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7404 | case "(($ac_try" in |
| 7405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7406 | *) ac_try_echo=$ac_try;; |
| 7407 | esac |
| 7408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7409 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7410 | ac_status=$? |
| 7411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7412 | rm -f conftest.er1 |
| 7413 | cat conftest.err >&5 |
| 7414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7415 | (exit $ac_status); } >/dev/null && { |
| 7416 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7417 | test ! -s conftest.err |
| 7418 | }; then |
| 7419 | ac_header_preproc=yes |
| 7420 | else |
| 7421 | echo "$as_me: failed program was:" >&5 |
| 7422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7423 | |
| 7424 | ac_header_preproc=no |
| 7425 | fi |
| 7426 | |
| 7427 | rm -f conftest.err conftest.$ac_ext |
| 7428 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7429 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7430 | |
| 7431 | # So? What about this header? |
| 7432 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7433 | yes:no: ) |
| 7434 | { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7435 | echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7436 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5 |
| 7437 | echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;} |
| 7438 | ac_header_preproc=yes |
| 7439 | ;; |
| 7440 | no:yes:* ) |
| 7441 | { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5 |
| 7442 | echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;} |
| 7443 | { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5 |
| 7444 | echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;} |
| 7445 | { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5 |
| 7446 | echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;} |
| 7447 | { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7448 | echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7449 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5 |
| 7450 | echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;} |
| 7451 | { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5 |
| 7452 | echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;} |
| 7453 | |
| 7454 | ;; |
| 7455 | esac |
| 7456 | { echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 7457 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } |
| 7458 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 7459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7460 | else |
| 7461 | ac_cv_header_stdio_h=$ac_header_preproc |
| 7462 | fi |
| 7463 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 7464 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } |
| 7465 | |
| 7466 | fi |
| 7467 | if test $ac_cv_header_stdio_h = yes; then |
| 7468 | cat >>confdefs.h <<\_ACEOF |
| 7469 | #define PJ_HAS_STDIO_H 1 |
| 7470 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7471 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7472 | fi |
| 7473 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7474 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7475 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 7476 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 7477 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
| 7478 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 7479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7480 | fi |
| 7481 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 7482 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } |
| 7483 | else |
| 7484 | # Is the header compilable? |
| 7485 | { echo "$as_me:$LINENO: checking stdint.h usability" >&5 |
| 7486 | echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; } |
| 7487 | cat >conftest.$ac_ext <<_ACEOF |
| 7488 | /* confdefs.h. */ |
| 7489 | _ACEOF |
| 7490 | cat confdefs.h >>conftest.$ac_ext |
| 7491 | cat >>conftest.$ac_ext <<_ACEOF |
| 7492 | /* end confdefs.h. */ |
| 7493 | $ac_includes_default |
| 7494 | #include <stdint.h> |
| 7495 | _ACEOF |
| 7496 | rm -f conftest.$ac_objext |
| 7497 | if { (ac_try="$ac_compile" |
| 7498 | case "(($ac_try" in |
| 7499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7500 | *) ac_try_echo=$ac_try;; |
| 7501 | esac |
| 7502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7503 | (eval "$ac_compile") 2>conftest.er1 |
| 7504 | ac_status=$? |
| 7505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7506 | rm -f conftest.er1 |
| 7507 | cat conftest.err >&5 |
| 7508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7509 | (exit $ac_status); } && { |
| 7510 | test -z "$ac_c_werror_flag" || |
| 7511 | test ! -s conftest.err |
| 7512 | } && test -s conftest.$ac_objext; then |
| 7513 | ac_header_compiler=yes |
| 7514 | else |
| 7515 | echo "$as_me: failed program was:" >&5 |
| 7516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7517 | |
| 7518 | ac_header_compiler=no |
| 7519 | fi |
| 7520 | |
| 7521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7522 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7523 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7524 | |
| 7525 | # Is the header present? |
| 7526 | { echo "$as_me:$LINENO: checking stdint.h presence" >&5 |
| 7527 | echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; } |
| 7528 | cat >conftest.$ac_ext <<_ACEOF |
| 7529 | /* confdefs.h. */ |
| 7530 | _ACEOF |
| 7531 | cat confdefs.h >>conftest.$ac_ext |
| 7532 | cat >>conftest.$ac_ext <<_ACEOF |
| 7533 | /* end confdefs.h. */ |
| 7534 | #include <stdint.h> |
| 7535 | _ACEOF |
| 7536 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7537 | case "(($ac_try" in |
| 7538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7539 | *) ac_try_echo=$ac_try;; |
| 7540 | esac |
| 7541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7542 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7543 | ac_status=$? |
| 7544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7545 | rm -f conftest.er1 |
| 7546 | cat conftest.err >&5 |
| 7547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7548 | (exit $ac_status); } >/dev/null && { |
| 7549 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7550 | test ! -s conftest.err |
| 7551 | }; then |
| 7552 | ac_header_preproc=yes |
| 7553 | else |
| 7554 | echo "$as_me: failed program was:" >&5 |
| 7555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7556 | |
| 7557 | ac_header_preproc=no |
| 7558 | fi |
| 7559 | |
| 7560 | rm -f conftest.err conftest.$ac_ext |
| 7561 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7562 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7563 | |
| 7564 | # So? What about this header? |
| 7565 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7566 | yes:no: ) |
| 7567 | { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7568 | echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7569 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 |
| 7570 | echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} |
| 7571 | ac_header_preproc=yes |
| 7572 | ;; |
| 7573 | no:yes:* ) |
| 7574 | { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 |
| 7575 | echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} |
| 7576 | { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 |
| 7577 | echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} |
| 7578 | { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 |
| 7579 | echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} |
| 7580 | { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7581 | echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7582 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 |
| 7583 | echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} |
| 7584 | { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 |
| 7585 | echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} |
| 7586 | |
| 7587 | ;; |
| 7588 | esac |
| 7589 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 7590 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
| 7591 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 7592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7593 | else |
| 7594 | ac_cv_header_stdint_h=$ac_header_preproc |
| 7595 | fi |
| 7596 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 7597 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } |
| 7598 | |
| 7599 | fi |
| 7600 | if test $ac_cv_header_stdint_h = yes; then |
| 7601 | cat >>confdefs.h <<\_ACEOF |
| 7602 | #define PJ_HAS_STDINT_H 1 |
| 7603 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7604 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7605 | fi |
| 7606 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7607 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7608 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7609 | { echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 7610 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } |
| 7611 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7613 | fi |
| 7614 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 7615 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } |
| 7616 | else |
| 7617 | # Is the header compilable? |
| 7618 | { echo "$as_me:$LINENO: checking stdlib.h usability" >&5 |
| 7619 | echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } |
| 7620 | cat >conftest.$ac_ext <<_ACEOF |
| 7621 | /* confdefs.h. */ |
| 7622 | _ACEOF |
| 7623 | cat confdefs.h >>conftest.$ac_ext |
| 7624 | cat >>conftest.$ac_ext <<_ACEOF |
| 7625 | /* end confdefs.h. */ |
| 7626 | $ac_includes_default |
| 7627 | #include <stdlib.h> |
| 7628 | _ACEOF |
| 7629 | rm -f conftest.$ac_objext |
| 7630 | if { (ac_try="$ac_compile" |
| 7631 | case "(($ac_try" in |
| 7632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7633 | *) ac_try_echo=$ac_try;; |
| 7634 | esac |
| 7635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7636 | (eval "$ac_compile") 2>conftest.er1 |
| 7637 | ac_status=$? |
| 7638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7639 | rm -f conftest.er1 |
| 7640 | cat conftest.err >&5 |
| 7641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7642 | (exit $ac_status); } && { |
| 7643 | test -z "$ac_c_werror_flag" || |
| 7644 | test ! -s conftest.err |
| 7645 | } && test -s conftest.$ac_objext; then |
| 7646 | ac_header_compiler=yes |
| 7647 | else |
| 7648 | echo "$as_me: failed program was:" >&5 |
| 7649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7650 | |
| 7651 | ac_header_compiler=no |
| 7652 | fi |
| 7653 | |
| 7654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7655 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7656 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7657 | |
| 7658 | # Is the header present? |
| 7659 | { echo "$as_me:$LINENO: checking stdlib.h presence" >&5 |
| 7660 | echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } |
| 7661 | cat >conftest.$ac_ext <<_ACEOF |
| 7662 | /* confdefs.h. */ |
| 7663 | _ACEOF |
| 7664 | cat confdefs.h >>conftest.$ac_ext |
| 7665 | cat >>conftest.$ac_ext <<_ACEOF |
| 7666 | /* end confdefs.h. */ |
| 7667 | #include <stdlib.h> |
| 7668 | _ACEOF |
| 7669 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7670 | case "(($ac_try" in |
| 7671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7672 | *) ac_try_echo=$ac_try;; |
| 7673 | esac |
| 7674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7675 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7676 | ac_status=$? |
| 7677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7678 | rm -f conftest.er1 |
| 7679 | cat conftest.err >&5 |
| 7680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7681 | (exit $ac_status); } >/dev/null && { |
| 7682 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7683 | test ! -s conftest.err |
| 7684 | }; then |
| 7685 | ac_header_preproc=yes |
| 7686 | else |
| 7687 | echo "$as_me: failed program was:" >&5 |
| 7688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7689 | |
| 7690 | ac_header_preproc=no |
| 7691 | fi |
| 7692 | |
| 7693 | rm -f conftest.err conftest.$ac_ext |
| 7694 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7695 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7696 | |
| 7697 | # So? What about this header? |
| 7698 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7699 | yes:no: ) |
| 7700 | { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7701 | echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7702 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 |
| 7703 | echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} |
| 7704 | ac_header_preproc=yes |
| 7705 | ;; |
| 7706 | no:yes:* ) |
| 7707 | { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 |
| 7708 | echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} |
| 7709 | { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 |
| 7710 | echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} |
| 7711 | { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 |
| 7712 | echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} |
| 7713 | { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7714 | echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7715 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 |
| 7716 | echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} |
| 7717 | { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 |
| 7718 | echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} |
| 7719 | |
| 7720 | ;; |
| 7721 | esac |
| 7722 | { echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 7723 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } |
| 7724 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7726 | else |
| 7727 | ac_cv_header_stdlib_h=$ac_header_preproc |
| 7728 | fi |
| 7729 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 7730 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } |
| 7731 | |
| 7732 | fi |
| 7733 | if test $ac_cv_header_stdlib_h = yes; then |
| 7734 | cat >>confdefs.h <<\_ACEOF |
| 7735 | #define PJ_HAS_STDLIB_H 1 |
| 7736 | _ACEOF |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 7737 | |
| 7738 | fi |
| 7739 | |
| 7740 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7741 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7742 | { echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7743 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } |
| 7744 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7746 | fi |
| 7747 | { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7748 | echo "${ECHO_T}$ac_cv_header_string_h" >&6; } |
| 7749 | else |
| 7750 | # Is the header compilable? |
| 7751 | { echo "$as_me:$LINENO: checking string.h usability" >&5 |
| 7752 | echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } |
| 7753 | cat >conftest.$ac_ext <<_ACEOF |
| 7754 | /* confdefs.h. */ |
| 7755 | _ACEOF |
| 7756 | cat confdefs.h >>conftest.$ac_ext |
| 7757 | cat >>conftest.$ac_ext <<_ACEOF |
| 7758 | /* end confdefs.h. */ |
| 7759 | $ac_includes_default |
| 7760 | #include <string.h> |
| 7761 | _ACEOF |
| 7762 | rm -f conftest.$ac_objext |
| 7763 | if { (ac_try="$ac_compile" |
| 7764 | case "(($ac_try" in |
| 7765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7766 | *) ac_try_echo=$ac_try;; |
| 7767 | esac |
| 7768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7769 | (eval "$ac_compile") 2>conftest.er1 |
| 7770 | ac_status=$? |
| 7771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7772 | rm -f conftest.er1 |
| 7773 | cat conftest.err >&5 |
| 7774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7775 | (exit $ac_status); } && { |
| 7776 | test -z "$ac_c_werror_flag" || |
| 7777 | test ! -s conftest.err |
| 7778 | } && test -s conftest.$ac_objext; then |
| 7779 | ac_header_compiler=yes |
| 7780 | else |
| 7781 | echo "$as_me: failed program was:" >&5 |
| 7782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7783 | |
| 7784 | ac_header_compiler=no |
| 7785 | fi |
| 7786 | |
| 7787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7788 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7789 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7790 | |
| 7791 | # Is the header present? |
| 7792 | { echo "$as_me:$LINENO: checking string.h presence" >&5 |
| 7793 | echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } |
| 7794 | cat >conftest.$ac_ext <<_ACEOF |
| 7795 | /* confdefs.h. */ |
| 7796 | _ACEOF |
| 7797 | cat confdefs.h >>conftest.$ac_ext |
| 7798 | cat >>conftest.$ac_ext <<_ACEOF |
| 7799 | /* end confdefs.h. */ |
| 7800 | #include <string.h> |
| 7801 | _ACEOF |
| 7802 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7803 | case "(($ac_try" in |
| 7804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7805 | *) ac_try_echo=$ac_try;; |
| 7806 | esac |
| 7807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7808 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7809 | ac_status=$? |
| 7810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7811 | rm -f conftest.er1 |
| 7812 | cat conftest.err >&5 |
| 7813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7814 | (exit $ac_status); } >/dev/null && { |
| 7815 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7816 | test ! -s conftest.err |
| 7817 | }; then |
| 7818 | ac_header_preproc=yes |
| 7819 | else |
| 7820 | echo "$as_me: failed program was:" >&5 |
| 7821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7822 | |
| 7823 | ac_header_preproc=no |
| 7824 | fi |
| 7825 | |
| 7826 | rm -f conftest.err conftest.$ac_ext |
| 7827 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7828 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7829 | |
| 7830 | # So? What about this header? |
| 7831 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7832 | yes:no: ) |
| 7833 | { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7834 | echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7835 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 |
| 7836 | echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} |
| 7837 | ac_header_preproc=yes |
| 7838 | ;; |
| 7839 | no:yes:* ) |
| 7840 | { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 |
| 7841 | echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} |
| 7842 | { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 |
| 7843 | echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} |
| 7844 | { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 |
| 7845 | echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} |
| 7846 | { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7847 | echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7848 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 |
| 7849 | echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} |
| 7850 | { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 |
| 7851 | echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} |
| 7852 | |
| 7853 | ;; |
| 7854 | esac |
| 7855 | { echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7856 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } |
| 7857 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7859 | else |
| 7860 | ac_cv_header_string_h=$ac_header_preproc |
| 7861 | fi |
| 7862 | { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7863 | echo "${ECHO_T}$ac_cv_header_string_h" >&6; } |
| 7864 | |
| 7865 | fi |
| 7866 | if test $ac_cv_header_string_h = yes; then |
| 7867 | cat >>confdefs.h <<\_ACEOF |
| 7868 | #define PJ_HAS_STRING_H 1 |
| 7869 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7870 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7871 | fi |
| 7872 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7873 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 7874 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7875 | { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7876 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } |
| 7877 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7879 | fi |
| 7880 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7881 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } |
| 7882 | else |
| 7883 | # Is the header compilable? |
| 7884 | { echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5 |
| 7885 | echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6; } |
| 7886 | cat >conftest.$ac_ext <<_ACEOF |
| 7887 | /* confdefs.h. */ |
| 7888 | _ACEOF |
| 7889 | cat confdefs.h >>conftest.$ac_ext |
| 7890 | cat >>conftest.$ac_ext <<_ACEOF |
| 7891 | /* end confdefs.h. */ |
| 7892 | $ac_includes_default |
| 7893 | #include <sys/ioctl.h> |
| 7894 | _ACEOF |
| 7895 | rm -f conftest.$ac_objext |
| 7896 | if { (ac_try="$ac_compile" |
| 7897 | case "(($ac_try" in |
| 7898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7899 | *) ac_try_echo=$ac_try;; |
| 7900 | esac |
| 7901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7902 | (eval "$ac_compile") 2>conftest.er1 |
| 7903 | ac_status=$? |
| 7904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7905 | rm -f conftest.er1 |
| 7906 | cat conftest.err >&5 |
| 7907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7908 | (exit $ac_status); } && { |
| 7909 | test -z "$ac_c_werror_flag" || |
| 7910 | test ! -s conftest.err |
| 7911 | } && test -s conftest.$ac_objext; then |
| 7912 | ac_header_compiler=yes |
| 7913 | else |
| 7914 | echo "$as_me: failed program was:" >&5 |
| 7915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7916 | |
| 7917 | ac_header_compiler=no |
| 7918 | fi |
| 7919 | |
| 7920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7921 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7922 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 7923 | |
| 7924 | # Is the header present? |
| 7925 | { echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5 |
| 7926 | echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6; } |
| 7927 | cat >conftest.$ac_ext <<_ACEOF |
| 7928 | /* confdefs.h. */ |
| 7929 | _ACEOF |
| 7930 | cat confdefs.h >>conftest.$ac_ext |
| 7931 | cat >>conftest.$ac_ext <<_ACEOF |
| 7932 | /* end confdefs.h. */ |
| 7933 | #include <sys/ioctl.h> |
| 7934 | _ACEOF |
| 7935 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7936 | case "(($ac_try" in |
| 7937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7938 | *) ac_try_echo=$ac_try;; |
| 7939 | esac |
| 7940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7941 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 7942 | ac_status=$? |
| 7943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7944 | rm -f conftest.er1 |
| 7945 | cat conftest.err >&5 |
| 7946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7947 | (exit $ac_status); } >/dev/null && { |
| 7948 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7949 | test ! -s conftest.err |
| 7950 | }; then |
| 7951 | ac_header_preproc=yes |
| 7952 | else |
| 7953 | echo "$as_me: failed program was:" >&5 |
| 7954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7955 | |
| 7956 | ac_header_preproc=no |
| 7957 | fi |
| 7958 | |
| 7959 | rm -f conftest.err conftest.$ac_ext |
| 7960 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7961 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 7962 | |
| 7963 | # So? What about this header? |
| 7964 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7965 | yes:no: ) |
| 7966 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7967 | echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7968 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5 |
| 7969 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;} |
| 7970 | ac_header_preproc=yes |
| 7971 | ;; |
| 7972 | no:yes:* ) |
| 7973 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5 |
| 7974 | echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;} |
| 7975 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5 |
| 7976 | echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;} |
| 7977 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5 |
| 7978 | echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;} |
| 7979 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7980 | echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7981 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5 |
| 7982 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;} |
| 7983 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5 |
| 7984 | echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;} |
| 7985 | |
| 7986 | ;; |
| 7987 | esac |
| 7988 | { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7989 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } |
| 7990 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7992 | else |
| 7993 | ac_cv_header_sys_ioctl_h=$ac_header_preproc |
| 7994 | fi |
| 7995 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7996 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } |
| 7997 | |
| 7998 | fi |
| 7999 | if test $ac_cv_header_sys_ioctl_h = yes; then |
| 8000 | cat >>confdefs.h <<\_ACEOF |
| 8001 | #define PJ_HAS_SYS_IOCTL_H 1 |
| 8002 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8003 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8004 | fi |
| 8005 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8006 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8007 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 8008 | { echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 8009 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } |
| 8010 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 8011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8012 | fi |
| 8013 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 8014 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } |
| 8015 | else |
| 8016 | # Is the header compilable? |
| 8017 | { echo "$as_me:$LINENO: checking sys/select.h usability" >&5 |
| 8018 | echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; } |
| 8019 | cat >conftest.$ac_ext <<_ACEOF |
| 8020 | /* confdefs.h. */ |
| 8021 | _ACEOF |
| 8022 | cat confdefs.h >>conftest.$ac_ext |
| 8023 | cat >>conftest.$ac_ext <<_ACEOF |
| 8024 | /* end confdefs.h. */ |
| 8025 | $ac_includes_default |
| 8026 | #include <sys/select.h> |
| 8027 | _ACEOF |
| 8028 | rm -f conftest.$ac_objext |
| 8029 | if { (ac_try="$ac_compile" |
| 8030 | case "(($ac_try" in |
| 8031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8032 | *) ac_try_echo=$ac_try;; |
| 8033 | esac |
| 8034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8035 | (eval "$ac_compile") 2>conftest.er1 |
| 8036 | ac_status=$? |
| 8037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8038 | rm -f conftest.er1 |
| 8039 | cat conftest.err >&5 |
| 8040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8041 | (exit $ac_status); } && { |
| 8042 | test -z "$ac_c_werror_flag" || |
| 8043 | test ! -s conftest.err |
| 8044 | } && test -s conftest.$ac_objext; then |
| 8045 | ac_header_compiler=yes |
| 8046 | else |
| 8047 | echo "$as_me: failed program was:" >&5 |
| 8048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8049 | |
| 8050 | ac_header_compiler=no |
| 8051 | fi |
| 8052 | |
| 8053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8054 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8055 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8056 | |
| 8057 | # Is the header present? |
| 8058 | { echo "$as_me:$LINENO: checking sys/select.h presence" >&5 |
| 8059 | echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; } |
| 8060 | cat >conftest.$ac_ext <<_ACEOF |
| 8061 | /* confdefs.h. */ |
| 8062 | _ACEOF |
| 8063 | cat confdefs.h >>conftest.$ac_ext |
| 8064 | cat >>conftest.$ac_ext <<_ACEOF |
| 8065 | /* end confdefs.h. */ |
| 8066 | #include <sys/select.h> |
| 8067 | _ACEOF |
| 8068 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8069 | case "(($ac_try" in |
| 8070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8071 | *) ac_try_echo=$ac_try;; |
| 8072 | esac |
| 8073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8074 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8075 | ac_status=$? |
| 8076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8077 | rm -f conftest.er1 |
| 8078 | cat conftest.err >&5 |
| 8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8080 | (exit $ac_status); } >/dev/null && { |
| 8081 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8082 | test ! -s conftest.err |
| 8083 | }; then |
| 8084 | ac_header_preproc=yes |
| 8085 | else |
| 8086 | echo "$as_me: failed program was:" >&5 |
| 8087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8088 | |
| 8089 | ac_header_preproc=no |
| 8090 | fi |
| 8091 | |
| 8092 | rm -f conftest.err conftest.$ac_ext |
| 8093 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8094 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8095 | |
| 8096 | # So? What about this header? |
| 8097 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8098 | yes:no: ) |
| 8099 | { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8100 | echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8101 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 |
| 8102 | echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} |
| 8103 | ac_header_preproc=yes |
| 8104 | ;; |
| 8105 | no:yes:* ) |
| 8106 | { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 |
| 8107 | echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} |
| 8108 | { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 |
| 8109 | echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} |
| 8110 | { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 |
| 8111 | echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} |
| 8112 | { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8113 | echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8114 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 |
| 8115 | echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} |
| 8116 | { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 |
| 8117 | echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} |
| 8118 | |
| 8119 | ;; |
| 8120 | esac |
| 8121 | { echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 8122 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } |
| 8123 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 8124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8125 | else |
| 8126 | ac_cv_header_sys_select_h=$ac_header_preproc |
| 8127 | fi |
| 8128 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 8129 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } |
| 8130 | |
| 8131 | fi |
| 8132 | if test $ac_cv_header_sys_select_h = yes; then |
| 8133 | cat >>confdefs.h <<\_ACEOF |
| 8134 | #define PJ_HAS_SYS_SELECT_H 1 |
| 8135 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8136 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8137 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8138 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 8139 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8140 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 8141 | { echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 8142 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } |
| 8143 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 8144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8145 | fi |
| 8146 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 8147 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } |
| 8148 | else |
| 8149 | # Is the header compilable? |
| 8150 | { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 |
| 8151 | echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; } |
| 8152 | cat >conftest.$ac_ext <<_ACEOF |
| 8153 | /* confdefs.h. */ |
| 8154 | _ACEOF |
| 8155 | cat confdefs.h >>conftest.$ac_ext |
| 8156 | cat >>conftest.$ac_ext <<_ACEOF |
| 8157 | /* end confdefs.h. */ |
| 8158 | $ac_includes_default |
| 8159 | #include <sys/socket.h> |
| 8160 | _ACEOF |
| 8161 | rm -f conftest.$ac_objext |
| 8162 | if { (ac_try="$ac_compile" |
| 8163 | case "(($ac_try" in |
| 8164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8165 | *) ac_try_echo=$ac_try;; |
| 8166 | esac |
| 8167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8168 | (eval "$ac_compile") 2>conftest.er1 |
| 8169 | ac_status=$? |
| 8170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8171 | rm -f conftest.er1 |
| 8172 | cat conftest.err >&5 |
| 8173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8174 | (exit $ac_status); } && { |
| 8175 | test -z "$ac_c_werror_flag" || |
| 8176 | test ! -s conftest.err |
| 8177 | } && test -s conftest.$ac_objext; then |
| 8178 | ac_header_compiler=yes |
| 8179 | else |
| 8180 | echo "$as_me: failed program was:" >&5 |
| 8181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8182 | |
| 8183 | ac_header_compiler=no |
| 8184 | fi |
| 8185 | |
| 8186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8187 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8188 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8189 | |
| 8190 | # Is the header present? |
| 8191 | { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 |
| 8192 | echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; } |
| 8193 | cat >conftest.$ac_ext <<_ACEOF |
| 8194 | /* confdefs.h. */ |
| 8195 | _ACEOF |
| 8196 | cat confdefs.h >>conftest.$ac_ext |
| 8197 | cat >>conftest.$ac_ext <<_ACEOF |
| 8198 | /* end confdefs.h. */ |
| 8199 | #include <sys/socket.h> |
| 8200 | _ACEOF |
| 8201 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8202 | case "(($ac_try" in |
| 8203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8204 | *) ac_try_echo=$ac_try;; |
| 8205 | esac |
| 8206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8207 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8208 | ac_status=$? |
| 8209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8210 | rm -f conftest.er1 |
| 8211 | cat conftest.err >&5 |
| 8212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8213 | (exit $ac_status); } >/dev/null && { |
| 8214 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8215 | test ! -s conftest.err |
| 8216 | }; then |
| 8217 | ac_header_preproc=yes |
| 8218 | else |
| 8219 | echo "$as_me: failed program was:" >&5 |
| 8220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8221 | |
| 8222 | ac_header_preproc=no |
| 8223 | fi |
| 8224 | |
| 8225 | rm -f conftest.err conftest.$ac_ext |
| 8226 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8227 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8228 | |
| 8229 | # So? What about this header? |
| 8230 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8231 | yes:no: ) |
| 8232 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8233 | echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8234 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5 |
| 8235 | echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;} |
| 8236 | ac_header_preproc=yes |
| 8237 | ;; |
| 8238 | no:yes:* ) |
| 8239 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 |
| 8240 | echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} |
| 8241 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 |
| 8242 | echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} |
| 8243 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5 |
| 8244 | echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;} |
| 8245 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8246 | echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8247 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 |
| 8248 | echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} |
| 8249 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5 |
| 8250 | echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;} |
| 8251 | |
| 8252 | ;; |
| 8253 | esac |
| 8254 | { echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 8255 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } |
| 8256 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 8257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8258 | else |
| 8259 | ac_cv_header_sys_socket_h=$ac_header_preproc |
| 8260 | fi |
| 8261 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 8262 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } |
| 8263 | |
| 8264 | fi |
| 8265 | if test $ac_cv_header_sys_socket_h = yes; then |
| 8266 | cat >>confdefs.h <<\_ACEOF |
| 8267 | #define PJ_HAS_SYS_SOCKET_H 1 |
| 8268 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8269 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8270 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8271 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8272 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8273 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 8274 | { echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 8275 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } |
| 8276 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 8277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8278 | fi |
| 8279 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 8280 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } |
| 8281 | else |
| 8282 | # Is the header compilable? |
| 8283 | { echo "$as_me:$LINENO: checking sys/time.h usability" >&5 |
| 8284 | echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6; } |
| 8285 | cat >conftest.$ac_ext <<_ACEOF |
| 8286 | /* confdefs.h. */ |
| 8287 | _ACEOF |
| 8288 | cat confdefs.h >>conftest.$ac_ext |
| 8289 | cat >>conftest.$ac_ext <<_ACEOF |
| 8290 | /* end confdefs.h. */ |
| 8291 | $ac_includes_default |
| 8292 | #include <sys/time.h> |
| 8293 | _ACEOF |
| 8294 | rm -f conftest.$ac_objext |
| 8295 | if { (ac_try="$ac_compile" |
| 8296 | case "(($ac_try" in |
| 8297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8298 | *) ac_try_echo=$ac_try;; |
| 8299 | esac |
| 8300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8301 | (eval "$ac_compile") 2>conftest.er1 |
| 8302 | ac_status=$? |
| 8303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8304 | rm -f conftest.er1 |
| 8305 | cat conftest.err >&5 |
| 8306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8307 | (exit $ac_status); } && { |
| 8308 | test -z "$ac_c_werror_flag" || |
| 8309 | test ! -s conftest.err |
| 8310 | } && test -s conftest.$ac_objext; then |
| 8311 | ac_header_compiler=yes |
| 8312 | else |
| 8313 | echo "$as_me: failed program was:" >&5 |
| 8314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8315 | |
| 8316 | ac_header_compiler=no |
| 8317 | fi |
| 8318 | |
| 8319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8320 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8321 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8322 | |
| 8323 | # Is the header present? |
| 8324 | { echo "$as_me:$LINENO: checking sys/time.h presence" >&5 |
| 8325 | echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6; } |
| 8326 | cat >conftest.$ac_ext <<_ACEOF |
| 8327 | /* confdefs.h. */ |
| 8328 | _ACEOF |
| 8329 | cat confdefs.h >>conftest.$ac_ext |
| 8330 | cat >>conftest.$ac_ext <<_ACEOF |
| 8331 | /* end confdefs.h. */ |
| 8332 | #include <sys/time.h> |
| 8333 | _ACEOF |
| 8334 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8335 | case "(($ac_try" in |
| 8336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8337 | *) ac_try_echo=$ac_try;; |
| 8338 | esac |
| 8339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8340 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8341 | ac_status=$? |
| 8342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8343 | rm -f conftest.er1 |
| 8344 | cat conftest.err >&5 |
| 8345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8346 | (exit $ac_status); } >/dev/null && { |
| 8347 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8348 | test ! -s conftest.err |
| 8349 | }; then |
| 8350 | ac_header_preproc=yes |
| 8351 | else |
| 8352 | echo "$as_me: failed program was:" >&5 |
| 8353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8354 | |
| 8355 | ac_header_preproc=no |
| 8356 | fi |
| 8357 | |
| 8358 | rm -f conftest.err conftest.$ac_ext |
| 8359 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8360 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8361 | |
| 8362 | # So? What about this header? |
| 8363 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8364 | yes:no: ) |
| 8365 | { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8366 | echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8367 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5 |
| 8368 | echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;} |
| 8369 | ac_header_preproc=yes |
| 8370 | ;; |
| 8371 | no:yes:* ) |
| 8372 | { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5 |
| 8373 | echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;} |
| 8374 | { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5 |
| 8375 | echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;} |
| 8376 | { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5 |
| 8377 | echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;} |
| 8378 | { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8379 | echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8380 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5 |
| 8381 | echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;} |
| 8382 | { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5 |
| 8383 | echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;} |
| 8384 | |
| 8385 | ;; |
| 8386 | esac |
| 8387 | { echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 8388 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } |
| 8389 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 8390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8391 | else |
| 8392 | ac_cv_header_sys_time_h=$ac_header_preproc |
| 8393 | fi |
| 8394 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 8395 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } |
| 8396 | |
| 8397 | fi |
| 8398 | if test $ac_cv_header_sys_time_h = yes; then |
| 8399 | cat >>confdefs.h <<\_ACEOF |
| 8400 | #define PJ_HAS_SYS_TIME_H 1 |
| 8401 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8402 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8403 | fi |
| 8404 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8405 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8406 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 8407 | { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 8408 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } |
| 8409 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 8410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8411 | fi |
| 8412 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 8413 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } |
| 8414 | else |
| 8415 | # Is the header compilable? |
| 8416 | { echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5 |
| 8417 | echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6; } |
| 8418 | cat >conftest.$ac_ext <<_ACEOF |
| 8419 | /* confdefs.h. */ |
| 8420 | _ACEOF |
| 8421 | cat confdefs.h >>conftest.$ac_ext |
| 8422 | cat >>conftest.$ac_ext <<_ACEOF |
| 8423 | /* end confdefs.h. */ |
| 8424 | $ac_includes_default |
| 8425 | #include <sys/timeb.h> |
| 8426 | _ACEOF |
| 8427 | rm -f conftest.$ac_objext |
| 8428 | if { (ac_try="$ac_compile" |
| 8429 | case "(($ac_try" in |
| 8430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8431 | *) ac_try_echo=$ac_try;; |
| 8432 | esac |
| 8433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8434 | (eval "$ac_compile") 2>conftest.er1 |
| 8435 | ac_status=$? |
| 8436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8437 | rm -f conftest.er1 |
| 8438 | cat conftest.err >&5 |
| 8439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8440 | (exit $ac_status); } && { |
| 8441 | test -z "$ac_c_werror_flag" || |
| 8442 | test ! -s conftest.err |
| 8443 | } && test -s conftest.$ac_objext; then |
| 8444 | ac_header_compiler=yes |
| 8445 | else |
| 8446 | echo "$as_me: failed program was:" >&5 |
| 8447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8448 | |
| 8449 | ac_header_compiler=no |
| 8450 | fi |
| 8451 | |
| 8452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8453 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8454 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8455 | |
| 8456 | # Is the header present? |
| 8457 | { echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5 |
| 8458 | echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6; } |
| 8459 | cat >conftest.$ac_ext <<_ACEOF |
| 8460 | /* confdefs.h. */ |
| 8461 | _ACEOF |
| 8462 | cat confdefs.h >>conftest.$ac_ext |
| 8463 | cat >>conftest.$ac_ext <<_ACEOF |
| 8464 | /* end confdefs.h. */ |
| 8465 | #include <sys/timeb.h> |
| 8466 | _ACEOF |
| 8467 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8468 | case "(($ac_try" in |
| 8469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8470 | *) ac_try_echo=$ac_try;; |
| 8471 | esac |
| 8472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8473 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8474 | ac_status=$? |
| 8475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8476 | rm -f conftest.er1 |
| 8477 | cat conftest.err >&5 |
| 8478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8479 | (exit $ac_status); } >/dev/null && { |
| 8480 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8481 | test ! -s conftest.err |
| 8482 | }; then |
| 8483 | ac_header_preproc=yes |
| 8484 | else |
| 8485 | echo "$as_me: failed program was:" >&5 |
| 8486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8487 | |
| 8488 | ac_header_preproc=no |
| 8489 | fi |
| 8490 | |
| 8491 | rm -f conftest.err conftest.$ac_ext |
| 8492 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8493 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8494 | |
| 8495 | # So? What about this header? |
| 8496 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8497 | yes:no: ) |
| 8498 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8499 | echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8500 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5 |
| 8501 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;} |
| 8502 | ac_header_preproc=yes |
| 8503 | ;; |
| 8504 | no:yes:* ) |
| 8505 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5 |
| 8506 | echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;} |
| 8507 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5 |
| 8508 | echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;} |
| 8509 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5 |
| 8510 | echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;} |
| 8511 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8512 | echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8513 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5 |
| 8514 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;} |
| 8515 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5 |
| 8516 | echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;} |
| 8517 | |
| 8518 | ;; |
| 8519 | esac |
| 8520 | { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 8521 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } |
| 8522 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 8523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8524 | else |
| 8525 | ac_cv_header_sys_timeb_h=$ac_header_preproc |
| 8526 | fi |
| 8527 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 8528 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } |
| 8529 | |
| 8530 | fi |
| 8531 | if test $ac_cv_header_sys_timeb_h = yes; then |
| 8532 | cat >>confdefs.h <<\_ACEOF |
| 8533 | #define PJ_HAS_SYS_TIMEB_H 1 |
| 8534 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8535 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8536 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8537 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 8538 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8539 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8540 | { echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 8541 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } |
| 8542 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8544 | fi |
| 8545 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 8546 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } |
| 8547 | else |
| 8548 | # Is the header compilable? |
| 8549 | { echo "$as_me:$LINENO: checking sys/types.h usability" >&5 |
| 8550 | echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; } |
| 8551 | cat >conftest.$ac_ext <<_ACEOF |
| 8552 | /* confdefs.h. */ |
| 8553 | _ACEOF |
| 8554 | cat confdefs.h >>conftest.$ac_ext |
| 8555 | cat >>conftest.$ac_ext <<_ACEOF |
| 8556 | /* end confdefs.h. */ |
| 8557 | $ac_includes_default |
| 8558 | #include <sys/types.h> |
| 8559 | _ACEOF |
| 8560 | rm -f conftest.$ac_objext |
| 8561 | if { (ac_try="$ac_compile" |
| 8562 | case "(($ac_try" in |
| 8563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8564 | *) ac_try_echo=$ac_try;; |
| 8565 | esac |
| 8566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8567 | (eval "$ac_compile") 2>conftest.er1 |
| 8568 | ac_status=$? |
| 8569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8570 | rm -f conftest.er1 |
| 8571 | cat conftest.err >&5 |
| 8572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8573 | (exit $ac_status); } && { |
| 8574 | test -z "$ac_c_werror_flag" || |
| 8575 | test ! -s conftest.err |
| 8576 | } && test -s conftest.$ac_objext; then |
| 8577 | ac_header_compiler=yes |
| 8578 | else |
| 8579 | echo "$as_me: failed program was:" >&5 |
| 8580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8581 | |
| 8582 | ac_header_compiler=no |
| 8583 | fi |
| 8584 | |
| 8585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8586 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8587 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8588 | |
| 8589 | # Is the header present? |
| 8590 | { echo "$as_me:$LINENO: checking sys/types.h presence" >&5 |
| 8591 | echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; } |
| 8592 | cat >conftest.$ac_ext <<_ACEOF |
| 8593 | /* confdefs.h. */ |
| 8594 | _ACEOF |
| 8595 | cat confdefs.h >>conftest.$ac_ext |
| 8596 | cat >>conftest.$ac_ext <<_ACEOF |
| 8597 | /* end confdefs.h. */ |
| 8598 | #include <sys/types.h> |
| 8599 | _ACEOF |
| 8600 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8601 | case "(($ac_try" in |
| 8602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8603 | *) ac_try_echo=$ac_try;; |
| 8604 | esac |
| 8605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8606 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8607 | ac_status=$? |
| 8608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8609 | rm -f conftest.er1 |
| 8610 | cat conftest.err >&5 |
| 8611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8612 | (exit $ac_status); } >/dev/null && { |
| 8613 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8614 | test ! -s conftest.err |
| 8615 | }; then |
| 8616 | ac_header_preproc=yes |
| 8617 | else |
| 8618 | echo "$as_me: failed program was:" >&5 |
| 8619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8620 | |
| 8621 | ac_header_preproc=no |
| 8622 | fi |
| 8623 | |
| 8624 | rm -f conftest.err conftest.$ac_ext |
| 8625 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8626 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8627 | |
| 8628 | # So? What about this header? |
| 8629 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8630 | yes:no: ) |
| 8631 | { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8632 | echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8633 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 |
| 8634 | echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} |
| 8635 | ac_header_preproc=yes |
| 8636 | ;; |
| 8637 | no:yes:* ) |
| 8638 | { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 |
| 8639 | echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} |
| 8640 | { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 |
| 8641 | echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} |
| 8642 | { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 |
| 8643 | echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} |
| 8644 | { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8645 | echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8646 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 |
| 8647 | echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} |
| 8648 | { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 |
| 8649 | echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} |
| 8650 | |
| 8651 | ;; |
| 8652 | esac |
| 8653 | { echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 8654 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } |
| 8655 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8657 | else |
| 8658 | ac_cv_header_sys_types_h=$ac_header_preproc |
| 8659 | fi |
| 8660 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 8661 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } |
| 8662 | |
| 8663 | fi |
| 8664 | if test $ac_cv_header_sys_types_h = yes; then |
| 8665 | cat >>confdefs.h <<\_ACEOF |
| 8666 | #define PJ_HAS_SYS_TYPES_H 1 |
| 8667 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8668 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8669 | fi |
| 8670 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8671 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8672 | if test "${ac_cv_header_sys_filio_h+set}" = set; then |
| 8673 | { echo "$as_me:$LINENO: checking for sys/filio.h" >&5 |
| 8674 | echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; } |
| 8675 | if test "${ac_cv_header_sys_filio_h+set}" = set; then |
| 8676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8677 | fi |
| 8678 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5 |
| 8679 | echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; } |
| 8680 | else |
| 8681 | # Is the header compilable? |
| 8682 | { echo "$as_me:$LINENO: checking sys/filio.h usability" >&5 |
| 8683 | echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6; } |
| 8684 | cat >conftest.$ac_ext <<_ACEOF |
| 8685 | /* confdefs.h. */ |
| 8686 | _ACEOF |
| 8687 | cat confdefs.h >>conftest.$ac_ext |
| 8688 | cat >>conftest.$ac_ext <<_ACEOF |
| 8689 | /* end confdefs.h. */ |
| 8690 | $ac_includes_default |
| 8691 | #include <sys/filio.h> |
| 8692 | _ACEOF |
| 8693 | rm -f conftest.$ac_objext |
| 8694 | if { (ac_try="$ac_compile" |
| 8695 | case "(($ac_try" in |
| 8696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8697 | *) ac_try_echo=$ac_try;; |
| 8698 | esac |
| 8699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8700 | (eval "$ac_compile") 2>conftest.er1 |
| 8701 | ac_status=$? |
| 8702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8703 | rm -f conftest.er1 |
| 8704 | cat conftest.err >&5 |
| 8705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8706 | (exit $ac_status); } && { |
| 8707 | test -z "$ac_c_werror_flag" || |
| 8708 | test ! -s conftest.err |
| 8709 | } && test -s conftest.$ac_objext; then |
| 8710 | ac_header_compiler=yes |
| 8711 | else |
| 8712 | echo "$as_me: failed program was:" >&5 |
| 8713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8714 | |
| 8715 | ac_header_compiler=no |
| 8716 | fi |
| 8717 | |
| 8718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8719 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8720 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8721 | |
| 8722 | # Is the header present? |
| 8723 | { echo "$as_me:$LINENO: checking sys/filio.h presence" >&5 |
| 8724 | echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6; } |
| 8725 | cat >conftest.$ac_ext <<_ACEOF |
| 8726 | /* confdefs.h. */ |
| 8727 | _ACEOF |
| 8728 | cat confdefs.h >>conftest.$ac_ext |
| 8729 | cat >>conftest.$ac_ext <<_ACEOF |
| 8730 | /* end confdefs.h. */ |
| 8731 | #include <sys/filio.h> |
| 8732 | _ACEOF |
| 8733 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8734 | case "(($ac_try" in |
| 8735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8736 | *) ac_try_echo=$ac_try;; |
| 8737 | esac |
| 8738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8739 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8740 | ac_status=$? |
| 8741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8742 | rm -f conftest.er1 |
| 8743 | cat conftest.err >&5 |
| 8744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8745 | (exit $ac_status); } >/dev/null && { |
| 8746 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8747 | test ! -s conftest.err |
| 8748 | }; then |
| 8749 | ac_header_preproc=yes |
| 8750 | else |
| 8751 | echo "$as_me: failed program was:" >&5 |
| 8752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8753 | |
| 8754 | ac_header_preproc=no |
| 8755 | fi |
| 8756 | |
| 8757 | rm -f conftest.err conftest.$ac_ext |
| 8758 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8759 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8760 | |
| 8761 | # So? What about this header? |
| 8762 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8763 | yes:no: ) |
| 8764 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8765 | echo "$as_me: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8766 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the compiler's result" >&5 |
| 8767 | echo "$as_me: WARNING: sys/filio.h: proceeding with the compiler's result" >&2;} |
| 8768 | ac_header_preproc=yes |
| 8769 | ;; |
| 8770 | no:yes:* ) |
| 8771 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: present but cannot be compiled" >&5 |
| 8772 | echo "$as_me: WARNING: sys/filio.h: present but cannot be compiled" >&2;} |
| 8773 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: check for missing prerequisite headers?" >&5 |
| 8774 | echo "$as_me: WARNING: sys/filio.h: check for missing prerequisite headers?" >&2;} |
| 8775 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: see the Autoconf documentation" >&5 |
| 8776 | echo "$as_me: WARNING: sys/filio.h: see the Autoconf documentation" >&2;} |
| 8777 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8778 | echo "$as_me: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8779 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&5 |
| 8780 | echo "$as_me: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&2;} |
| 8781 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&5 |
| 8782 | echo "$as_me: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&2;} |
| 8783 | |
| 8784 | ;; |
| 8785 | esac |
| 8786 | { echo "$as_me:$LINENO: checking for sys/filio.h" >&5 |
| 8787 | echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; } |
| 8788 | if test "${ac_cv_header_sys_filio_h+set}" = set; then |
| 8789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8790 | else |
| 8791 | ac_cv_header_sys_filio_h=$ac_header_preproc |
| 8792 | fi |
| 8793 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5 |
| 8794 | echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; } |
| 8795 | |
| 8796 | fi |
| 8797 | if test $ac_cv_header_sys_filio_h = yes; then |
| 8798 | cat >>confdefs.h <<\_ACEOF |
| 8799 | #define PJ_HAS_SYS_FILIO_H 1 |
| 8800 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8801 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8802 | fi |
| 8803 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8804 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8805 | if test "${ac_cv_header_sys_sockio_h+set}" = set; then |
| 8806 | { echo "$as_me:$LINENO: checking for sys/sockio.h" >&5 |
| 8807 | echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; } |
| 8808 | if test "${ac_cv_header_sys_sockio_h+set}" = set; then |
| 8809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8810 | fi |
| 8811 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5 |
| 8812 | echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; } |
| 8813 | else |
| 8814 | # Is the header compilable? |
| 8815 | { echo "$as_me:$LINENO: checking sys/sockio.h usability" >&5 |
| 8816 | echo $ECHO_N "checking sys/sockio.h usability... $ECHO_C" >&6; } |
| 8817 | cat >conftest.$ac_ext <<_ACEOF |
| 8818 | /* confdefs.h. */ |
| 8819 | _ACEOF |
| 8820 | cat confdefs.h >>conftest.$ac_ext |
| 8821 | cat >>conftest.$ac_ext <<_ACEOF |
| 8822 | /* end confdefs.h. */ |
| 8823 | $ac_includes_default |
| 8824 | #include <sys/sockio.h> |
| 8825 | _ACEOF |
| 8826 | rm -f conftest.$ac_objext |
| 8827 | if { (ac_try="$ac_compile" |
| 8828 | case "(($ac_try" in |
| 8829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8830 | *) ac_try_echo=$ac_try;; |
| 8831 | esac |
| 8832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8833 | (eval "$ac_compile") 2>conftest.er1 |
| 8834 | ac_status=$? |
| 8835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8836 | rm -f conftest.er1 |
| 8837 | cat conftest.err >&5 |
| 8838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8839 | (exit $ac_status); } && { |
| 8840 | test -z "$ac_c_werror_flag" || |
| 8841 | test ! -s conftest.err |
| 8842 | } && test -s conftest.$ac_objext; then |
| 8843 | ac_header_compiler=yes |
| 8844 | else |
| 8845 | echo "$as_me: failed program was:" >&5 |
| 8846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8847 | |
| 8848 | ac_header_compiler=no |
| 8849 | fi |
| 8850 | |
| 8851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8852 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8853 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8854 | |
| 8855 | # Is the header present? |
| 8856 | { echo "$as_me:$LINENO: checking sys/sockio.h presence" >&5 |
| 8857 | echo $ECHO_N "checking sys/sockio.h presence... $ECHO_C" >&6; } |
| 8858 | cat >conftest.$ac_ext <<_ACEOF |
| 8859 | /* confdefs.h. */ |
| 8860 | _ACEOF |
| 8861 | cat confdefs.h >>conftest.$ac_ext |
| 8862 | cat >>conftest.$ac_ext <<_ACEOF |
| 8863 | /* end confdefs.h. */ |
| 8864 | #include <sys/sockio.h> |
| 8865 | _ACEOF |
| 8866 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8867 | case "(($ac_try" in |
| 8868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8869 | *) ac_try_echo=$ac_try;; |
| 8870 | esac |
| 8871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8872 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8873 | ac_status=$? |
| 8874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8875 | rm -f conftest.er1 |
| 8876 | cat conftest.err >&5 |
| 8877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8878 | (exit $ac_status); } >/dev/null && { |
| 8879 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8880 | test ! -s conftest.err |
| 8881 | }; then |
| 8882 | ac_header_preproc=yes |
| 8883 | else |
| 8884 | echo "$as_me: failed program was:" >&5 |
| 8885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8886 | |
| 8887 | ac_header_preproc=no |
| 8888 | fi |
| 8889 | |
| 8890 | rm -f conftest.err conftest.$ac_ext |
| 8891 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8892 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8893 | |
| 8894 | # So? What about this header? |
| 8895 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8896 | yes:no: ) |
| 8897 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8898 | echo "$as_me: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8899 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the compiler's result" >&5 |
| 8900 | echo "$as_me: WARNING: sys/sockio.h: proceeding with the compiler's result" >&2;} |
| 8901 | ac_header_preproc=yes |
| 8902 | ;; |
| 8903 | no:yes:* ) |
| 8904 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: present but cannot be compiled" >&5 |
| 8905 | echo "$as_me: WARNING: sys/sockio.h: present but cannot be compiled" >&2;} |
| 8906 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&5 |
| 8907 | echo "$as_me: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&2;} |
| 8908 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: see the Autoconf documentation" >&5 |
| 8909 | echo "$as_me: WARNING: sys/sockio.h: see the Autoconf documentation" >&2;} |
| 8910 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8911 | echo "$as_me: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8912 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&5 |
| 8913 | echo "$as_me: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&2;} |
| 8914 | { echo "$as_me:$LINENO: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&5 |
| 8915 | echo "$as_me: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&2;} |
| 8916 | |
| 8917 | ;; |
| 8918 | esac |
| 8919 | { echo "$as_me:$LINENO: checking for sys/sockio.h" >&5 |
| 8920 | echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; } |
| 8921 | if test "${ac_cv_header_sys_sockio_h+set}" = set; then |
| 8922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8923 | else |
| 8924 | ac_cv_header_sys_sockio_h=$ac_header_preproc |
| 8925 | fi |
| 8926 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5 |
| 8927 | echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; } |
| 8928 | |
| 8929 | fi |
| 8930 | if test $ac_cv_header_sys_sockio_h = yes; then |
| 8931 | cat >>confdefs.h <<\_ACEOF |
| 8932 | #define PJ_HAS_SYS_SOCKIO_H 1 |
| 8933 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8934 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8935 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 8936 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8937 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 8938 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8939 | { echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8940 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } |
| 8941 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8943 | fi |
| 8944 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8945 | echo "${ECHO_T}$ac_cv_header_time_h" >&6; } |
| 8946 | else |
| 8947 | # Is the header compilable? |
| 8948 | { echo "$as_me:$LINENO: checking time.h usability" >&5 |
| 8949 | echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; } |
| 8950 | cat >conftest.$ac_ext <<_ACEOF |
| 8951 | /* confdefs.h. */ |
| 8952 | _ACEOF |
| 8953 | cat confdefs.h >>conftest.$ac_ext |
| 8954 | cat >>conftest.$ac_ext <<_ACEOF |
| 8955 | /* end confdefs.h. */ |
| 8956 | $ac_includes_default |
| 8957 | #include <time.h> |
| 8958 | _ACEOF |
| 8959 | rm -f conftest.$ac_objext |
| 8960 | if { (ac_try="$ac_compile" |
| 8961 | case "(($ac_try" in |
| 8962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8963 | *) ac_try_echo=$ac_try;; |
| 8964 | esac |
| 8965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8966 | (eval "$ac_compile") 2>conftest.er1 |
| 8967 | ac_status=$? |
| 8968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8969 | rm -f conftest.er1 |
| 8970 | cat conftest.err >&5 |
| 8971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8972 | (exit $ac_status); } && { |
| 8973 | test -z "$ac_c_werror_flag" || |
| 8974 | test ! -s conftest.err |
| 8975 | } && test -s conftest.$ac_objext; then |
| 8976 | ac_header_compiler=yes |
| 8977 | else |
| 8978 | echo "$as_me: failed program was:" >&5 |
| 8979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8980 | |
| 8981 | ac_header_compiler=no |
| 8982 | fi |
| 8983 | |
| 8984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8985 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8986 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8987 | |
| 8988 | # Is the header present? |
| 8989 | { echo "$as_me:$LINENO: checking time.h presence" >&5 |
| 8990 | echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; } |
| 8991 | cat >conftest.$ac_ext <<_ACEOF |
| 8992 | /* confdefs.h. */ |
| 8993 | _ACEOF |
| 8994 | cat confdefs.h >>conftest.$ac_ext |
| 8995 | cat >>conftest.$ac_ext <<_ACEOF |
| 8996 | /* end confdefs.h. */ |
| 8997 | #include <time.h> |
| 8998 | _ACEOF |
| 8999 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9000 | case "(($ac_try" in |
| 9001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9002 | *) ac_try_echo=$ac_try;; |
| 9003 | esac |
| 9004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9005 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9006 | ac_status=$? |
| 9007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9008 | rm -f conftest.er1 |
| 9009 | cat conftest.err >&5 |
| 9010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9011 | (exit $ac_status); } >/dev/null && { |
| 9012 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9013 | test ! -s conftest.err |
| 9014 | }; then |
| 9015 | ac_header_preproc=yes |
| 9016 | else |
| 9017 | echo "$as_me: failed program was:" >&5 |
| 9018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9019 | |
| 9020 | ac_header_preproc=no |
| 9021 | fi |
| 9022 | |
| 9023 | rm -f conftest.err conftest.$ac_ext |
| 9024 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9025 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9026 | |
| 9027 | # So? What about this header? |
| 9028 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9029 | yes:no: ) |
| 9030 | { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9031 | echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9032 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5 |
| 9033 | echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;} |
| 9034 | ac_header_preproc=yes |
| 9035 | ;; |
| 9036 | no:yes:* ) |
| 9037 | { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5 |
| 9038 | echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;} |
| 9039 | { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5 |
| 9040 | echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;} |
| 9041 | { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5 |
| 9042 | echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;} |
| 9043 | { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9044 | echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9045 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5 |
| 9046 | echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;} |
| 9047 | { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5 |
| 9048 | echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;} |
| 9049 | |
| 9050 | ;; |
| 9051 | esac |
| 9052 | { echo "$as_me:$LINENO: checking for time.h" >&5 |
| 9053 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } |
| 9054 | if test "${ac_cv_header_time_h+set}" = set; then |
| 9055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9056 | else |
| 9057 | ac_cv_header_time_h=$ac_header_preproc |
| 9058 | fi |
| 9059 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 9060 | echo "${ECHO_T}$ac_cv_header_time_h" >&6; } |
| 9061 | |
| 9062 | fi |
| 9063 | if test $ac_cv_header_time_h = yes; then |
| 9064 | cat >>confdefs.h <<\_ACEOF |
| 9065 | #define PJ_HAS_TIME_H 1 |
| 9066 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 9067 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 9068 | fi |
| 9069 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 9070 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9071 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 9072 | { echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 9073 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } |
| 9074 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 9075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9076 | fi |
| 9077 | { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 9078 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } |
| 9079 | else |
| 9080 | # Is the header compilable? |
| 9081 | { echo "$as_me:$LINENO: checking unistd.h usability" >&5 |
| 9082 | echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; } |
| 9083 | cat >conftest.$ac_ext <<_ACEOF |
| 9084 | /* confdefs.h. */ |
| 9085 | _ACEOF |
| 9086 | cat confdefs.h >>conftest.$ac_ext |
| 9087 | cat >>conftest.$ac_ext <<_ACEOF |
| 9088 | /* end confdefs.h. */ |
| 9089 | $ac_includes_default |
| 9090 | #include <unistd.h> |
| 9091 | _ACEOF |
| 9092 | rm -f conftest.$ac_objext |
| 9093 | if { (ac_try="$ac_compile" |
| 9094 | case "(($ac_try" in |
| 9095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9096 | *) ac_try_echo=$ac_try;; |
| 9097 | esac |
| 9098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9099 | (eval "$ac_compile") 2>conftest.er1 |
| 9100 | ac_status=$? |
| 9101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9102 | rm -f conftest.er1 |
| 9103 | cat conftest.err >&5 |
| 9104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9105 | (exit $ac_status); } && { |
| 9106 | test -z "$ac_c_werror_flag" || |
| 9107 | test ! -s conftest.err |
| 9108 | } && test -s conftest.$ac_objext; then |
| 9109 | ac_header_compiler=yes |
| 9110 | else |
| 9111 | echo "$as_me: failed program was:" >&5 |
| 9112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9113 | |
| 9114 | ac_header_compiler=no |
| 9115 | fi |
| 9116 | |
| 9117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9118 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9119 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9120 | |
| 9121 | # Is the header present? |
| 9122 | { echo "$as_me:$LINENO: checking unistd.h presence" >&5 |
| 9123 | echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; } |
| 9124 | cat >conftest.$ac_ext <<_ACEOF |
| 9125 | /* confdefs.h. */ |
| 9126 | _ACEOF |
| 9127 | cat confdefs.h >>conftest.$ac_ext |
| 9128 | cat >>conftest.$ac_ext <<_ACEOF |
| 9129 | /* end confdefs.h. */ |
| 9130 | #include <unistd.h> |
| 9131 | _ACEOF |
| 9132 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9133 | case "(($ac_try" in |
| 9134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9135 | *) ac_try_echo=$ac_try;; |
| 9136 | esac |
| 9137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9138 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9139 | ac_status=$? |
| 9140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9141 | rm -f conftest.er1 |
| 9142 | cat conftest.err >&5 |
| 9143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9144 | (exit $ac_status); } >/dev/null && { |
| 9145 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9146 | test ! -s conftest.err |
| 9147 | }; then |
| 9148 | ac_header_preproc=yes |
| 9149 | else |
| 9150 | echo "$as_me: failed program was:" >&5 |
| 9151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9152 | |
| 9153 | ac_header_preproc=no |
| 9154 | fi |
| 9155 | |
| 9156 | rm -f conftest.err conftest.$ac_ext |
| 9157 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9158 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9159 | |
| 9160 | # So? What about this header? |
| 9161 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9162 | yes:no: ) |
| 9163 | { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9164 | echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9165 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 |
| 9166 | echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} |
| 9167 | ac_header_preproc=yes |
| 9168 | ;; |
| 9169 | no:yes:* ) |
| 9170 | { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 |
| 9171 | echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} |
| 9172 | { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 |
| 9173 | echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} |
| 9174 | { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 |
| 9175 | echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} |
| 9176 | { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9177 | echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9178 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 |
| 9179 | echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} |
| 9180 | { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 |
| 9181 | echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} |
| 9182 | |
| 9183 | ;; |
| 9184 | esac |
| 9185 | { echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 9186 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } |
| 9187 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 9188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9189 | else |
| 9190 | ac_cv_header_unistd_h=$ac_header_preproc |
| 9191 | fi |
| 9192 | { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 9193 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } |
| 9194 | |
| 9195 | fi |
| 9196 | if test $ac_cv_header_unistd_h = yes; then |
| 9197 | cat >>confdefs.h <<\_ACEOF |
| 9198 | #define PJ_HAS_UNISTD_H 1 |
| 9199 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 9200 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 9201 | fi |
| 9202 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 9203 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9204 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 9205 | { echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 9206 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } |
| 9207 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 9208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9209 | fi |
| 9210 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 9211 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } |
| 9212 | else |
| 9213 | # Is the header compilable? |
| 9214 | { echo "$as_me:$LINENO: checking winsock.h usability" >&5 |
| 9215 | echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; } |
| 9216 | cat >conftest.$ac_ext <<_ACEOF |
| 9217 | /* confdefs.h. */ |
| 9218 | _ACEOF |
| 9219 | cat confdefs.h >>conftest.$ac_ext |
| 9220 | cat >>conftest.$ac_ext <<_ACEOF |
| 9221 | /* end confdefs.h. */ |
| 9222 | $ac_includes_default |
| 9223 | #include <winsock.h> |
| 9224 | _ACEOF |
| 9225 | rm -f conftest.$ac_objext |
| 9226 | if { (ac_try="$ac_compile" |
| 9227 | case "(($ac_try" in |
| 9228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9229 | *) ac_try_echo=$ac_try;; |
| 9230 | esac |
| 9231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9232 | (eval "$ac_compile") 2>conftest.er1 |
| 9233 | ac_status=$? |
| 9234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9235 | rm -f conftest.er1 |
| 9236 | cat conftest.err >&5 |
| 9237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9238 | (exit $ac_status); } && { |
| 9239 | test -z "$ac_c_werror_flag" || |
| 9240 | test ! -s conftest.err |
| 9241 | } && test -s conftest.$ac_objext; then |
| 9242 | ac_header_compiler=yes |
| 9243 | else |
| 9244 | echo "$as_me: failed program was:" >&5 |
| 9245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9246 | |
| 9247 | ac_header_compiler=no |
| 9248 | fi |
| 9249 | |
| 9250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9251 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9252 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9253 | |
| 9254 | # Is the header present? |
| 9255 | { echo "$as_me:$LINENO: checking winsock.h presence" >&5 |
| 9256 | echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; } |
| 9257 | cat >conftest.$ac_ext <<_ACEOF |
| 9258 | /* confdefs.h. */ |
| 9259 | _ACEOF |
| 9260 | cat confdefs.h >>conftest.$ac_ext |
| 9261 | cat >>conftest.$ac_ext <<_ACEOF |
| 9262 | /* end confdefs.h. */ |
| 9263 | #include <winsock.h> |
| 9264 | _ACEOF |
| 9265 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9266 | case "(($ac_try" in |
| 9267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9268 | *) ac_try_echo=$ac_try;; |
| 9269 | esac |
| 9270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9271 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9272 | ac_status=$? |
| 9273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9274 | rm -f conftest.er1 |
| 9275 | cat conftest.err >&5 |
| 9276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9277 | (exit $ac_status); } >/dev/null && { |
| 9278 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9279 | test ! -s conftest.err |
| 9280 | }; then |
| 9281 | ac_header_preproc=yes |
| 9282 | else |
| 9283 | echo "$as_me: failed program was:" >&5 |
| 9284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9285 | |
| 9286 | ac_header_preproc=no |
| 9287 | fi |
| 9288 | |
| 9289 | rm -f conftest.err conftest.$ac_ext |
| 9290 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9291 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9292 | |
| 9293 | # So? What about this header? |
| 9294 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9295 | yes:no: ) |
| 9296 | { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9297 | echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9298 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5 |
| 9299 | echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;} |
| 9300 | ac_header_preproc=yes |
| 9301 | ;; |
| 9302 | no:yes:* ) |
| 9303 | { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5 |
| 9304 | echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;} |
| 9305 | { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5 |
| 9306 | echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;} |
| 9307 | { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5 |
| 9308 | echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;} |
| 9309 | { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9310 | echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9311 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5 |
| 9312 | echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;} |
| 9313 | { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5 |
| 9314 | echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;} |
| 9315 | |
| 9316 | ;; |
| 9317 | esac |
| 9318 | { echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 9319 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } |
| 9320 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 9321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9322 | else |
| 9323 | ac_cv_header_winsock_h=$ac_header_preproc |
| 9324 | fi |
| 9325 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 9326 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } |
| 9327 | |
| 9328 | fi |
| 9329 | if test $ac_cv_header_winsock_h = yes; then |
| 9330 | cat >>confdefs.h <<\_ACEOF |
| 9331 | #define PJ_HAS_WINSOCK_H 1 |
| 9332 | _ACEOF |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 9333 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 9334 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 9335 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9336 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9337 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 9338 | { echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 9339 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } |
| 9340 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 9341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9342 | fi |
| 9343 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 9344 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } |
| 9345 | else |
| 9346 | # Is the header compilable? |
| 9347 | { echo "$as_me:$LINENO: checking winsock2.h usability" >&5 |
| 9348 | echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; } |
| 9349 | cat >conftest.$ac_ext <<_ACEOF |
| 9350 | /* confdefs.h. */ |
| 9351 | _ACEOF |
| 9352 | cat confdefs.h >>conftest.$ac_ext |
| 9353 | cat >>conftest.$ac_ext <<_ACEOF |
| 9354 | /* end confdefs.h. */ |
| 9355 | $ac_includes_default |
| 9356 | #include <winsock2.h> |
| 9357 | _ACEOF |
| 9358 | rm -f conftest.$ac_objext |
| 9359 | if { (ac_try="$ac_compile" |
| 9360 | case "(($ac_try" in |
| 9361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9362 | *) ac_try_echo=$ac_try;; |
| 9363 | esac |
| 9364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9365 | (eval "$ac_compile") 2>conftest.er1 |
| 9366 | ac_status=$? |
| 9367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9368 | rm -f conftest.er1 |
| 9369 | cat conftest.err >&5 |
| 9370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9371 | (exit $ac_status); } && { |
| 9372 | test -z "$ac_c_werror_flag" || |
| 9373 | test ! -s conftest.err |
| 9374 | } && test -s conftest.$ac_objext; then |
| 9375 | ac_header_compiler=yes |
| 9376 | else |
| 9377 | echo "$as_me: failed program was:" >&5 |
| 9378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9379 | |
| 9380 | ac_header_compiler=no |
| 9381 | fi |
| 9382 | |
| 9383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9384 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9385 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9386 | |
| 9387 | # Is the header present? |
| 9388 | { echo "$as_me:$LINENO: checking winsock2.h presence" >&5 |
| 9389 | echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; } |
| 9390 | cat >conftest.$ac_ext <<_ACEOF |
| 9391 | /* confdefs.h. */ |
| 9392 | _ACEOF |
| 9393 | cat confdefs.h >>conftest.$ac_ext |
| 9394 | cat >>conftest.$ac_ext <<_ACEOF |
| 9395 | /* end confdefs.h. */ |
| 9396 | #include <winsock2.h> |
| 9397 | _ACEOF |
| 9398 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9399 | case "(($ac_try" in |
| 9400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9401 | *) ac_try_echo=$ac_try;; |
| 9402 | esac |
| 9403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9404 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9405 | ac_status=$? |
| 9406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9407 | rm -f conftest.er1 |
| 9408 | cat conftest.err >&5 |
| 9409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9410 | (exit $ac_status); } >/dev/null && { |
| 9411 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9412 | test ! -s conftest.err |
| 9413 | }; then |
| 9414 | ac_header_preproc=yes |
| 9415 | else |
| 9416 | echo "$as_me: failed program was:" >&5 |
| 9417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9418 | |
| 9419 | ac_header_preproc=no |
| 9420 | fi |
| 9421 | |
| 9422 | rm -f conftest.err conftest.$ac_ext |
| 9423 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9424 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9425 | |
| 9426 | # So? What about this header? |
| 9427 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9428 | yes:no: ) |
| 9429 | { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9430 | echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9431 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 |
| 9432 | echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} |
| 9433 | ac_header_preproc=yes |
| 9434 | ;; |
| 9435 | no:yes:* ) |
| 9436 | { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 |
| 9437 | echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} |
| 9438 | { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 |
| 9439 | echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} |
| 9440 | { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 |
| 9441 | echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} |
| 9442 | { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9443 | echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9444 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 |
| 9445 | echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} |
| 9446 | { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 |
| 9447 | echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} |
| 9448 | |
| 9449 | ;; |
| 9450 | esac |
| 9451 | { echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 9452 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } |
| 9453 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 9454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9455 | else |
| 9456 | ac_cv_header_winsock2_h=$ac_header_preproc |
| 9457 | fi |
| 9458 | { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 9459 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } |
| 9460 | |
| 9461 | fi |
| 9462 | if test $ac_cv_header_winsock2_h = yes; then |
| 9463 | cat >>confdefs.h <<\_ACEOF |
| 9464 | #define PJ_HAS_WINSOCK2_H 1 |
| 9465 | _ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9466 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 9467 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 9468 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 9469 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9470 | { echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
| 9471 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; } |
| 9472 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 9473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9474 | else |
| 9475 | cat >conftest.$ac_ext <<_ACEOF |
| 9476 | /* confdefs.h. */ |
| 9477 | _ACEOF |
| 9478 | cat confdefs.h >>conftest.$ac_ext |
| 9479 | cat >>conftest.$ac_ext <<_ACEOF |
| 9480 | /* end confdefs.h. */ |
| 9481 | #if PJ_HAS_WINSOCK2_H |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9482 | # include <winsock2.h> |
| 9483 | #elif PJ_HAS_WINSOCK_H |
| 9484 | # include <winsock.h> |
| 9485 | #endif |
| 9486 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9487 | |
| 9488 | #include <mswsock.h> |
| 9489 | _ACEOF |
| 9490 | rm -f conftest.$ac_objext |
| 9491 | if { (ac_try="$ac_compile" |
| 9492 | case "(($ac_try" in |
| 9493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9494 | *) ac_try_echo=$ac_try;; |
| 9495 | esac |
| 9496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9497 | (eval "$ac_compile") 2>conftest.er1 |
| 9498 | ac_status=$? |
| 9499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9500 | rm -f conftest.er1 |
| 9501 | cat conftest.err >&5 |
| 9502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9503 | (exit $ac_status); } && { |
| 9504 | test -z "$ac_c_werror_flag" || |
| 9505 | test ! -s conftest.err |
| 9506 | } && test -s conftest.$ac_objext; then |
| 9507 | ac_cv_header_mswsock_h=yes |
| 9508 | else |
| 9509 | echo "$as_me: failed program was:" >&5 |
| 9510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9511 | |
| 9512 | ac_cv_header_mswsock_h=no |
| 9513 | fi |
| 9514 | |
| 9515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9516 | fi |
| 9517 | { echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 9518 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; } |
| 9519 | if test $ac_cv_header_mswsock_h = yes; then |
| 9520 | cat >>confdefs.h <<\_ACEOF |
| 9521 | #define PJ_HAS_MSWSOCK_H 1 |
| 9522 | _ACEOF |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 9523 | |
| 9524 | fi |
| 9525 | |
| 9526 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9527 | if test "${ac_cv_header_ws2tcpip_h+set}" = set; then |
| 9528 | { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5 |
| 9529 | echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; } |
| 9530 | if test "${ac_cv_header_ws2tcpip_h+set}" = set; then |
| 9531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9532 | fi |
| 9533 | { echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5 |
| 9534 | echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; } |
| 9535 | else |
| 9536 | # Is the header compilable? |
| 9537 | { echo "$as_me:$LINENO: checking ws2tcpip.h usability" >&5 |
| 9538 | echo $ECHO_N "checking ws2tcpip.h usability... $ECHO_C" >&6; } |
| 9539 | cat >conftest.$ac_ext <<_ACEOF |
| 9540 | /* confdefs.h. */ |
| 9541 | _ACEOF |
| 9542 | cat confdefs.h >>conftest.$ac_ext |
| 9543 | cat >>conftest.$ac_ext <<_ACEOF |
| 9544 | /* end confdefs.h. */ |
| 9545 | $ac_includes_default |
| 9546 | #include <ws2tcpip.h> |
| 9547 | _ACEOF |
| 9548 | rm -f conftest.$ac_objext |
| 9549 | if { (ac_try="$ac_compile" |
| 9550 | case "(($ac_try" in |
| 9551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9552 | *) ac_try_echo=$ac_try;; |
| 9553 | esac |
| 9554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9555 | (eval "$ac_compile") 2>conftest.er1 |
| 9556 | ac_status=$? |
| 9557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9558 | rm -f conftest.er1 |
| 9559 | cat conftest.err >&5 |
| 9560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9561 | (exit $ac_status); } && { |
| 9562 | test -z "$ac_c_werror_flag" || |
| 9563 | test ! -s conftest.err |
| 9564 | } && test -s conftest.$ac_objext; then |
| 9565 | ac_header_compiler=yes |
| 9566 | else |
| 9567 | echo "$as_me: failed program was:" >&5 |
| 9568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9569 | |
| 9570 | ac_header_compiler=no |
| 9571 | fi |
| 9572 | |
| 9573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9574 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9575 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9576 | |
| 9577 | # Is the header present? |
| 9578 | { echo "$as_me:$LINENO: checking ws2tcpip.h presence" >&5 |
| 9579 | echo $ECHO_N "checking ws2tcpip.h presence... $ECHO_C" >&6; } |
| 9580 | cat >conftest.$ac_ext <<_ACEOF |
| 9581 | /* confdefs.h. */ |
| 9582 | _ACEOF |
| 9583 | cat confdefs.h >>conftest.$ac_ext |
| 9584 | cat >>conftest.$ac_ext <<_ACEOF |
| 9585 | /* end confdefs.h. */ |
| 9586 | #include <ws2tcpip.h> |
| 9587 | _ACEOF |
| 9588 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9589 | case "(($ac_try" in |
| 9590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9591 | *) ac_try_echo=$ac_try;; |
| 9592 | esac |
| 9593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9594 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9595 | ac_status=$? |
| 9596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9597 | rm -f conftest.er1 |
| 9598 | cat conftest.err >&5 |
| 9599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9600 | (exit $ac_status); } >/dev/null && { |
| 9601 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9602 | test ! -s conftest.err |
| 9603 | }; then |
| 9604 | ac_header_preproc=yes |
| 9605 | else |
| 9606 | echo "$as_me: failed program was:" >&5 |
| 9607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9608 | |
| 9609 | ac_header_preproc=no |
| 9610 | fi |
| 9611 | |
| 9612 | rm -f conftest.err conftest.$ac_ext |
| 9613 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9614 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9615 | |
| 9616 | # So? What about this header? |
| 9617 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9618 | yes:no: ) |
| 9619 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9620 | echo "$as_me: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9621 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&5 |
| 9622 | echo "$as_me: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&2;} |
| 9623 | ac_header_preproc=yes |
| 9624 | ;; |
| 9625 | no:yes:* ) |
| 9626 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: present but cannot be compiled" >&5 |
| 9627 | echo "$as_me: WARNING: ws2tcpip.h: present but cannot be compiled" >&2;} |
| 9628 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&5 |
| 9629 | echo "$as_me: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&2;} |
| 9630 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: see the Autoconf documentation" >&5 |
| 9631 | echo "$as_me: WARNING: ws2tcpip.h: see the Autoconf documentation" >&2;} |
| 9632 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9633 | echo "$as_me: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9634 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&5 |
| 9635 | echo "$as_me: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&2;} |
| 9636 | { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&5 |
| 9637 | echo "$as_me: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&2;} |
| 9638 | |
| 9639 | ;; |
| 9640 | esac |
| 9641 | { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5 |
| 9642 | echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; } |
| 9643 | if test "${ac_cv_header_ws2tcpip_h+set}" = set; then |
| 9644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9645 | else |
| 9646 | ac_cv_header_ws2tcpip_h=$ac_header_preproc |
| 9647 | fi |
| 9648 | { echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5 |
| 9649 | echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; } |
| 9650 | |
| 9651 | fi |
| 9652 | if test $ac_cv_header_ws2tcpip_h = yes; then |
| 9653 | cat >>confdefs.h <<\_ACEOF |
| 9654 | #define PJ_HAS_WS2TCPIP_H 1 |
| 9655 | _ACEOF |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 9656 | |
| 9657 | fi |
| 9658 | |
| 9659 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9660 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 9661 | { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 9662 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } |
| 9663 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 9664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9665 | fi |
| 9666 | { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 9667 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } |
| 9668 | else |
| 9669 | # Is the header compilable? |
| 9670 | { echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 |
| 9671 | echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; } |
| 9672 | cat >conftest.$ac_ext <<_ACEOF |
| 9673 | /* confdefs.h. */ |
| 9674 | _ACEOF |
| 9675 | cat confdefs.h >>conftest.$ac_ext |
| 9676 | cat >>conftest.$ac_ext <<_ACEOF |
| 9677 | /* end confdefs.h. */ |
| 9678 | $ac_includes_default |
| 9679 | #include <uuid/uuid.h> |
| 9680 | _ACEOF |
| 9681 | rm -f conftest.$ac_objext |
| 9682 | if { (ac_try="$ac_compile" |
| 9683 | case "(($ac_try" in |
| 9684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9685 | *) ac_try_echo=$ac_try;; |
| 9686 | esac |
| 9687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9688 | (eval "$ac_compile") 2>conftest.er1 |
| 9689 | ac_status=$? |
| 9690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9691 | rm -f conftest.er1 |
| 9692 | cat conftest.err >&5 |
| 9693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9694 | (exit $ac_status); } && { |
| 9695 | test -z "$ac_c_werror_flag" || |
| 9696 | test ! -s conftest.err |
| 9697 | } && test -s conftest.$ac_objext; then |
| 9698 | ac_header_compiler=yes |
| 9699 | else |
| 9700 | echo "$as_me: failed program was:" >&5 |
| 9701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9702 | |
| 9703 | ac_header_compiler=no |
| 9704 | fi |
| 9705 | |
| 9706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9707 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9708 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9709 | |
| 9710 | # Is the header present? |
| 9711 | { echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 |
| 9712 | echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; } |
| 9713 | cat >conftest.$ac_ext <<_ACEOF |
| 9714 | /* confdefs.h. */ |
| 9715 | _ACEOF |
| 9716 | cat confdefs.h >>conftest.$ac_ext |
| 9717 | cat >>conftest.$ac_ext <<_ACEOF |
| 9718 | /* end confdefs.h. */ |
| 9719 | #include <uuid/uuid.h> |
| 9720 | _ACEOF |
| 9721 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9722 | case "(($ac_try" in |
| 9723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9724 | *) ac_try_echo=$ac_try;; |
| 9725 | esac |
| 9726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9727 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9728 | ac_status=$? |
| 9729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9730 | rm -f conftest.er1 |
| 9731 | cat conftest.err >&5 |
| 9732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9733 | (exit $ac_status); } >/dev/null && { |
| 9734 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9735 | test ! -s conftest.err |
| 9736 | }; then |
| 9737 | ac_header_preproc=yes |
| 9738 | else |
| 9739 | echo "$as_me: failed program was:" >&5 |
| 9740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9741 | |
| 9742 | ac_header_preproc=no |
| 9743 | fi |
| 9744 | |
| 9745 | rm -f conftest.err conftest.$ac_ext |
| 9746 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9747 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9748 | |
| 9749 | # So? What about this header? |
| 9750 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9751 | yes:no: ) |
| 9752 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9753 | echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9754 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5 |
| 9755 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;} |
| 9756 | ac_header_preproc=yes |
| 9757 | ;; |
| 9758 | no:yes:* ) |
| 9759 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5 |
| 9760 | echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;} |
| 9761 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5 |
| 9762 | echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;} |
| 9763 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5 |
| 9764 | echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;} |
| 9765 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9766 | echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9767 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5 |
| 9768 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;} |
| 9769 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5 |
| 9770 | echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;} |
| 9771 | |
| 9772 | ;; |
| 9773 | esac |
| 9774 | { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 9775 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } |
| 9776 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 9777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9778 | else |
| 9779 | ac_cv_header_uuid_uuid_h=$ac_header_preproc |
| 9780 | fi |
| 9781 | { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 9782 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } |
| 9783 | |
| 9784 | fi |
| 9785 | if test $ac_cv_header_uuid_uuid_h = yes; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9786 | ac_has_uuid_h=1 |
| 9787 | fi |
| 9788 | |
| 9789 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9790 | { echo "$as_me:$LINENO: checking for net/if.h" >&5 |
| 9791 | echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; } |
| 9792 | if test "${ac_cv_header_net_if_h+set}" = set; then |
| 9793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9794 | else |
| 9795 | cat >conftest.$ac_ext <<_ACEOF |
| 9796 | /* confdefs.h. */ |
| 9797 | _ACEOF |
| 9798 | cat confdefs.h >>conftest.$ac_ext |
| 9799 | cat >>conftest.$ac_ext <<_ACEOF |
| 9800 | /* end confdefs.h. */ |
| 9801 | #if PJ_HAS_SYS_TYPES_H |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 9802 | # include <sys/types.h> |
| 9803 | #endif |
| 9804 | #if PJ_HAS_SYS_SOCKET_H |
| 9805 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9806 | # include <sys/socket.h> |
| 9807 | #endif |
| 9808 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9809 | |
| 9810 | #include <net/if.h> |
| 9811 | _ACEOF |
| 9812 | rm -f conftest.$ac_objext |
| 9813 | if { (ac_try="$ac_compile" |
| 9814 | case "(($ac_try" in |
| 9815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9816 | *) ac_try_echo=$ac_try;; |
| 9817 | esac |
| 9818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9819 | (eval "$ac_compile") 2>conftest.er1 |
| 9820 | ac_status=$? |
| 9821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9822 | rm -f conftest.er1 |
| 9823 | cat conftest.err >&5 |
| 9824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9825 | (exit $ac_status); } && { |
| 9826 | test -z "$ac_c_werror_flag" || |
| 9827 | test ! -s conftest.err |
| 9828 | } && test -s conftest.$ac_objext; then |
| 9829 | ac_cv_header_net_if_h=yes |
| 9830 | else |
| 9831 | echo "$as_me: failed program was:" >&5 |
| 9832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9833 | |
| 9834 | ac_cv_header_net_if_h=no |
| 9835 | fi |
| 9836 | |
| 9837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9838 | fi |
| 9839 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 |
| 9840 | echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; } |
| 9841 | if test $ac_cv_header_net_if_h = yes; then |
| 9842 | cat >>confdefs.h <<\_ACEOF |
| 9843 | #define PJ_HAS_NET_IF_H 1 |
| 9844 | _ACEOF |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9845 | |
| 9846 | fi |
| 9847 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 9848 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9849 | { echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 |
| 9850 | echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9851 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9852 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9853 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9854 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9855 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9856 | { echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
| 9857 | echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6; } |
| 9858 | cat >>confdefs.h <<\_ACEOF |
| 9859 | #define PJ_HAS_ERRNO_VAR 1 |
| 9860 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9861 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9862 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9863 | { echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
| 9864 | echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } |
| 9865 | cat >>confdefs.h <<\_ACEOF |
| 9866 | #define PJ_HAS_HIGH_RES_TIMER 1 |
| 9867 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9868 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9869 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9870 | { echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5 |
| 9871 | echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6; } |
| 9872 | cat >>confdefs.h <<\_ACEOF |
| 9873 | #define PJ_HAS_MALLOC 1 |
| 9874 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9875 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9876 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9877 | { echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
| 9878 | echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } |
| 9879 | cat >>confdefs.h <<\_ACEOF |
| 9880 | #define PJ_NATIVE_STRING_IS_UNICODE 0 |
| 9881 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9882 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9883 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9884 | { echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
| 9885 | echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } |
| 9886 | cat >>confdefs.h <<\_ACEOF |
| 9887 | #define PJ_ATOMIC_VALUE_TYPE long |
| 9888 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9889 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9890 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9891 | { echo "$as_me:$LINENO: checking if inet_aton() is available" >&5 |
| 9892 | echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6; } |
| 9893 | cat >conftest.$ac_ext <<_ACEOF |
| 9894 | /* confdefs.h. */ |
| 9895 | _ACEOF |
| 9896 | cat confdefs.h >>conftest.$ac_ext |
| 9897 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9898 | /* end confdefs.h. */ |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9899 | #include <sys/types.h> |
| 9900 | #include <sys/socket.h> |
| 9901 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9902 | int |
| 9903 | main () |
| 9904 | { |
| 9905 | inet_aton(0, 0); |
| 9906 | ; |
| 9907 | return 0; |
| 9908 | } |
| 9909 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9910 | rm -f conftest.$ac_objext |
| 9911 | if { (ac_try="$ac_compile" |
| 9912 | case "(($ac_try" in |
| 9913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9914 | *) ac_try_echo=$ac_try;; |
| 9915 | esac |
| 9916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9917 | (eval "$ac_compile") 2>conftest.er1 |
| 9918 | ac_status=$? |
| 9919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9920 | rm -f conftest.er1 |
| 9921 | cat conftest.err >&5 |
| 9922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9923 | (exit $ac_status); } && { |
| 9924 | test -z "$ac_c_werror_flag" || |
| 9925 | test ! -s conftest.err |
| 9926 | } && test -s conftest.$ac_objext; then |
| 9927 | cat >>confdefs.h <<\_ACEOF |
| 9928 | #define PJ_SOCK_HAS_INET_ATON 1 |
| 9929 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9930 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9931 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9932 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9933 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9934 | echo "$as_me: failed program was:" >&5 |
| 9935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9936 | |
| 9937 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9938 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9939 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9940 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9942 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9943 | { echo "$as_me:$LINENO: checking if inet_pton() is available" >&5 |
| 9944 | echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6; } |
| 9945 | cat >conftest.$ac_ext <<_ACEOF |
| 9946 | /* confdefs.h. */ |
| 9947 | _ACEOF |
| 9948 | cat confdefs.h >>conftest.$ac_ext |
| 9949 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9950 | /* end confdefs.h. */ |
| 9951 | #include <sys/types.h> |
| 9952 | #include <sys/socket.h> |
| 9953 | #include <arpa/inet.h> |
| 9954 | int |
| 9955 | main () |
| 9956 | { |
| 9957 | inet_pton(0, 0, 0); |
| 9958 | ; |
| 9959 | return 0; |
| 9960 | } |
| 9961 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9962 | rm -f conftest.$ac_objext |
| 9963 | if { (ac_try="$ac_compile" |
| 9964 | case "(($ac_try" in |
| 9965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9966 | *) ac_try_echo=$ac_try;; |
| 9967 | esac |
| 9968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9969 | (eval "$ac_compile") 2>conftest.er1 |
| 9970 | ac_status=$? |
| 9971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9972 | rm -f conftest.er1 |
| 9973 | cat conftest.err >&5 |
| 9974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9975 | (exit $ac_status); } && { |
| 9976 | test -z "$ac_c_werror_flag" || |
| 9977 | test ! -s conftest.err |
| 9978 | } && test -s conftest.$ac_objext; then |
| 9979 | cat >>confdefs.h <<\_ACEOF |
| 9980 | #define PJ_SOCK_HAS_INET_PTON 1 |
| 9981 | _ACEOF |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9982 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9983 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9984 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9985 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9986 | echo "$as_me: failed program was:" >&5 |
| 9987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9988 | |
| 9989 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9990 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9991 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9992 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 9993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9994 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 9995 | { echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5 |
| 9996 | echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6; } |
| 9997 | cat >conftest.$ac_ext <<_ACEOF |
| 9998 | /* confdefs.h. */ |
| 9999 | _ACEOF |
| 10000 | cat confdefs.h >>conftest.$ac_ext |
| 10001 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10002 | /* end confdefs.h. */ |
| 10003 | #include <sys/types.h> |
| 10004 | #include <sys/socket.h> |
| 10005 | #include <arpa/inet.h> |
| 10006 | int |
| 10007 | main () |
| 10008 | { |
| 10009 | inet_ntop(0, 0, 0, 0); |
| 10010 | ; |
| 10011 | return 0; |
| 10012 | } |
| 10013 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10014 | rm -f conftest.$ac_objext |
| 10015 | if { (ac_try="$ac_compile" |
| 10016 | case "(($ac_try" in |
| 10017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10018 | *) ac_try_echo=$ac_try;; |
| 10019 | esac |
| 10020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10021 | (eval "$ac_compile") 2>conftest.er1 |
| 10022 | ac_status=$? |
| 10023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10024 | rm -f conftest.er1 |
| 10025 | cat conftest.err >&5 |
| 10026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10027 | (exit $ac_status); } && { |
| 10028 | test -z "$ac_c_werror_flag" || |
| 10029 | test ! -s conftest.err |
| 10030 | } && test -s conftest.$ac_objext; then |
| 10031 | cat >>confdefs.h <<\_ACEOF |
| 10032 | #define PJ_SOCK_HAS_INET_NTOP 1 |
| 10033 | _ACEOF |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10034 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10035 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10036 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10037 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10038 | echo "$as_me: failed program was:" >&5 |
| 10039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10040 | |
| 10041 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10042 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10043 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10044 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10046 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10047 | { echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5 |
| 10048 | echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6; } |
| 10049 | cat >conftest.$ac_ext <<_ACEOF |
| 10050 | /* confdefs.h. */ |
| 10051 | _ACEOF |
| 10052 | cat confdefs.h >>conftest.$ac_ext |
| 10053 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10054 | /* end confdefs.h. */ |
| 10055 | #include <sys/types.h> |
| 10056 | #include <sys/socket.h> |
| 10057 | #include <netdb.h> |
| 10058 | int |
| 10059 | main () |
| 10060 | { |
| 10061 | getaddrinfo(0, 0, 0, 0); |
| 10062 | ; |
| 10063 | return 0; |
| 10064 | } |
| 10065 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10066 | rm -f conftest.$ac_objext |
| 10067 | if { (ac_try="$ac_compile" |
| 10068 | case "(($ac_try" in |
| 10069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10070 | *) ac_try_echo=$ac_try;; |
| 10071 | esac |
| 10072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10073 | (eval "$ac_compile") 2>conftest.er1 |
| 10074 | ac_status=$? |
| 10075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10076 | rm -f conftest.er1 |
| 10077 | cat conftest.err >&5 |
| 10078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10079 | (exit $ac_status); } && { |
| 10080 | test -z "$ac_c_werror_flag" || |
| 10081 | test ! -s conftest.err |
| 10082 | } && test -s conftest.$ac_objext; then |
| 10083 | cat >>confdefs.h <<\_ACEOF |
| 10084 | #define PJ_SOCK_HAS_GETADDRINFO 1 |
| 10085 | _ACEOF |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10086 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10087 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10088 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10089 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10090 | echo "$as_me: failed program was:" >&5 |
| 10091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10092 | |
| 10093 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10094 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 10095 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10096 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10098 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10099 | { echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5 |
| 10100 | echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6; } |
| 10101 | cat >conftest.$ac_ext <<_ACEOF |
| 10102 | /* confdefs.h. */ |
| 10103 | _ACEOF |
| 10104 | cat confdefs.h >>conftest.$ac_ext |
| 10105 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10106 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10107 | #include <sys/types.h> |
| 10108 | #include <sys/socket.h> |
| 10109 | #include <netinet/in.h> |
| 10110 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10111 | int |
| 10112 | main () |
| 10113 | { |
| 10114 | struct sockaddr_in a; a.sin_len=0; |
| 10115 | ; |
| 10116 | return 0; |
| 10117 | } |
| 10118 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10119 | rm -f conftest.$ac_objext |
| 10120 | if { (ac_try="$ac_compile" |
| 10121 | case "(($ac_try" in |
| 10122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10123 | *) ac_try_echo=$ac_try;; |
| 10124 | esac |
| 10125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10126 | (eval "$ac_compile") 2>conftest.er1 |
| 10127 | ac_status=$? |
| 10128 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10129 | rm -f conftest.er1 |
| 10130 | cat conftest.err >&5 |
| 10131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10132 | (exit $ac_status); } && { |
| 10133 | test -z "$ac_c_werror_flag" || |
| 10134 | test ! -s conftest.err |
| 10135 | } && test -s conftest.$ac_objext; then |
| 10136 | cat >>confdefs.h <<\_ACEOF |
| 10137 | #define PJ_SOCKADDR_HAS_LEN 1 |
| 10138 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10139 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10140 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10141 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10142 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10143 | echo "$as_me: failed program was:" >&5 |
| 10144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10145 | |
| 10146 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10147 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10148 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10149 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10151 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10152 | { echo "$as_me:$LINENO: checking if socklen_t is available" >&5 |
| 10153 | echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6; } |
| 10154 | cat >conftest.$ac_ext <<_ACEOF |
| 10155 | /* confdefs.h. */ |
| 10156 | _ACEOF |
| 10157 | cat confdefs.h >>conftest.$ac_ext |
| 10158 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10159 | /* end confdefs.h. */ |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 10160 | #include <sys/types.h> |
| 10161 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 10162 | int |
| 10163 | main () |
| 10164 | { |
| 10165 | socklen_t xxx = 0; |
| 10166 | ; |
| 10167 | return 0; |
| 10168 | } |
| 10169 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10170 | rm -f conftest.$ac_objext |
| 10171 | if { (ac_try="$ac_compile" |
| 10172 | case "(($ac_try" in |
| 10173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10174 | *) ac_try_echo=$ac_try;; |
| 10175 | esac |
| 10176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10177 | (eval "$ac_compile") 2>conftest.er1 |
| 10178 | ac_status=$? |
| 10179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10180 | rm -f conftest.er1 |
| 10181 | cat conftest.err >&5 |
| 10182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10183 | (exit $ac_status); } && { |
| 10184 | test -z "$ac_c_werror_flag" || |
| 10185 | test ! -s conftest.err |
| 10186 | } && test -s conftest.$ac_objext; then |
| 10187 | cat >>confdefs.h <<\_ACEOF |
| 10188 | #define PJ_HAS_SOCKLEN_T 1 |
| 10189 | _ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 10190 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10191 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10192 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 10193 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10194 | echo "$as_me: failed program was:" >&5 |
| 10195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10196 | |
| 10197 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10198 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 10199 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10200 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10202 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10203 | { echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5 |
| 10204 | echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10205 | case $target in |
| 10206 | *mingw* | *cygw* | *win32* | *w32* ) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10207 | cat >>confdefs.h <<\_ACEOF |
| 10208 | #define PJ_HAS_SO_ERROR 1 |
| 10209 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10210 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10211 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10212 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10213 | ;; |
| 10214 | *) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10215 | cat >conftest.$ac_ext <<_ACEOF |
| 10216 | /* confdefs.h. */ |
| 10217 | _ACEOF |
| 10218 | cat confdefs.h >>conftest.$ac_ext |
| 10219 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10220 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10221 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10222 | #include <sys/socket.h> |
| 10223 | #include <netinet/in.h> |
| 10224 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10225 | int |
| 10226 | main () |
| 10227 | { |
| 10228 | int i=SO_ERROR; |
| 10229 | ; |
| 10230 | return 0; |
| 10231 | } |
| 10232 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10233 | rm -f conftest.$ac_objext |
| 10234 | if { (ac_try="$ac_compile" |
| 10235 | case "(($ac_try" in |
| 10236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10237 | *) ac_try_echo=$ac_try;; |
| 10238 | esac |
| 10239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10240 | (eval "$ac_compile") 2>conftest.er1 |
| 10241 | ac_status=$? |
| 10242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10243 | rm -f conftest.er1 |
| 10244 | cat conftest.err >&5 |
| 10245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10246 | (exit $ac_status); } && { |
| 10247 | test -z "$ac_c_werror_flag" || |
| 10248 | test ! -s conftest.err |
| 10249 | } && test -s conftest.$ac_objext; then |
| 10250 | cat >>confdefs.h <<\_ACEOF |
| 10251 | #define PJ_HAS_SO_ERROR 1 |
| 10252 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10253 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10254 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10255 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10256 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10257 | echo "$as_me: failed program was:" >&5 |
| 10258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10259 | |
| 10260 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10261 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10262 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10263 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10265 | ;; |
| 10266 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10267 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10268 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10269 | { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5 |
| 10270 | echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6; } |
| 10271 | cat >conftest.$ac_ext <<_ACEOF |
| 10272 | /* confdefs.h. */ |
| 10273 | _ACEOF |
| 10274 | cat confdefs.h >>conftest.$ac_ext |
| 10275 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10276 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10277 | #include <pthread.h> |
| 10278 | int |
| 10279 | main () |
| 10280 | { |
| 10281 | pthread_rwlock_t *x; |
| 10282 | ; |
| 10283 | return 0; |
| 10284 | } |
| 10285 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10286 | rm -f conftest.$ac_objext |
| 10287 | if { (ac_try="$ac_compile" |
| 10288 | case "(($ac_try" in |
| 10289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10290 | *) ac_try_echo=$ac_try;; |
| 10291 | esac |
| 10292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10293 | (eval "$ac_compile") 2>conftest.er1 |
| 10294 | ac_status=$? |
| 10295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10296 | rm -f conftest.er1 |
| 10297 | cat conftest.err >&5 |
| 10298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10299 | (exit $ac_status); } && { |
| 10300 | test -z "$ac_c_werror_flag" || |
| 10301 | test ! -s conftest.err |
| 10302 | } && test -s conftest.$ac_objext; then |
| 10303 | cat >>confdefs.h <<\_ACEOF |
| 10304 | #define PJ_EMULATE_RWMUTEX 0 |
| 10305 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10306 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10307 | ac_rwmutex="yes" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10308 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10309 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10310 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10311 | echo "$as_me: failed program was:" >&5 |
| 10312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10313 | |
| 10314 | cat >>confdefs.h <<\_ACEOF |
| 10315 | #define PJ_EMULATE_RWMUTEX 1 |
| 10316 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10317 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10318 | ac_rwmutex="no" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10319 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10320 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10321 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10322 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10324 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10325 | if test "$ac_rwmutex" = "no"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10326 | { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 |
| 10327 | echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6; } |
| 10328 | cat >conftest.$ac_ext <<_ACEOF |
| 10329 | /* confdefs.h. */ |
| 10330 | _ACEOF |
| 10331 | cat confdefs.h >>conftest.$ac_ext |
| 10332 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10333 | /* end confdefs.h. */ |
| 10334 | #define _POSIX_READER_WRITER_LOCKS |
| 10335 | #include <pthread.h> |
| 10336 | int |
| 10337 | main () |
| 10338 | { |
| 10339 | pthread_rwlock_t *x; |
| 10340 | ; |
| 10341 | return 0; |
| 10342 | } |
| 10343 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10344 | rm -f conftest.$ac_objext |
| 10345 | if { (ac_try="$ac_compile" |
| 10346 | case "(($ac_try" in |
| 10347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10348 | *) ac_try_echo=$ac_try;; |
| 10349 | esac |
| 10350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10351 | (eval "$ac_compile") 2>conftest.er1 |
| 10352 | ac_status=$? |
| 10353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10354 | rm -f conftest.er1 |
| 10355 | cat conftest.err >&5 |
| 10356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10357 | (exit $ac_status); } && { |
| 10358 | test -z "$ac_c_werror_flag" || |
| 10359 | test ! -s conftest.err |
| 10360 | } && test -s conftest.$ac_objext; then |
| 10361 | cat >>confdefs.h <<\_ACEOF |
| 10362 | #define PJ_EMULATE_RWMUTEX 0 |
| 10363 | _ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10364 | |
| 10365 | CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10366 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10367 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10368 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10369 | echo "$as_me: failed program was:" >&5 |
| 10370 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10371 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10372 | cat >>confdefs.h <<\_ACEOF |
| 10373 | #define PJ_EMULATE_RWMUTEX 1 |
| 10374 | _ACEOF |
| 10375 | |
| 10376 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10377 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10378 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10379 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10381 | fi |
| 10382 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10383 | { echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5 |
| 10384 | echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6; } |
| 10385 | cat >conftest.$ac_ext <<_ACEOF |
| 10386 | /* confdefs.h. */ |
| 10387 | _ACEOF |
| 10388 | cat confdefs.h >>conftest.$ac_ext |
| 10389 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10390 | /* end confdefs.h. */ |
| 10391 | #include <pthread.h> |
| 10392 | int |
| 10393 | main () |
| 10394 | { |
| 10395 | pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP); |
| 10396 | ; |
| 10397 | return 0; |
| 10398 | } |
| 10399 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10400 | rm -f conftest.$ac_objext |
| 10401 | if { (ac_try="$ac_compile" |
| 10402 | case "(($ac_try" in |
| 10403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10404 | *) ac_try_echo=$ac_try;; |
| 10405 | esac |
| 10406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10407 | (eval "$ac_compile") 2>conftest.er1 |
| 10408 | ac_status=$? |
| 10409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10410 | rm -f conftest.er1 |
| 10411 | cat conftest.err >&5 |
| 10412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10413 | (exit $ac_status); } && { |
| 10414 | test -z "$ac_c_werror_flag" || |
| 10415 | test ! -s conftest.err |
| 10416 | } && test -s conftest.$ac_objext; then |
| 10417 | cat >>confdefs.h <<\_ACEOF |
| 10418 | #define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1 |
| 10419 | _ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10420 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10421 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10422 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10423 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10424 | echo "$as_me: failed program was:" >&5 |
| 10425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10426 | |
| 10427 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10428 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10429 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10430 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10432 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10433 | { echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5 |
| 10434 | echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6; } |
| 10435 | cat >conftest.$ac_ext <<_ACEOF |
| 10436 | /* confdefs.h. */ |
| 10437 | _ACEOF |
| 10438 | cat confdefs.h >>conftest.$ac_ext |
| 10439 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10440 | /* end confdefs.h. */ |
| 10441 | #include <pthread.h> |
| 10442 | int |
| 10443 | main () |
| 10444 | { |
| 10445 | pthread_mutexattr_t attr; |
| 10446 | attr.recursive=1; |
| 10447 | ; |
| 10448 | return 0; |
| 10449 | } |
| 10450 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10451 | rm -f conftest.$ac_objext |
| 10452 | if { (ac_try="$ac_compile" |
| 10453 | case "(($ac_try" in |
| 10454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10455 | *) ac_try_echo=$ac_try;; |
| 10456 | esac |
| 10457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10458 | (eval "$ac_compile") 2>conftest.er1 |
| 10459 | ac_status=$? |
| 10460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10461 | rm -f conftest.er1 |
| 10462 | cat conftest.err >&5 |
| 10463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10464 | (exit $ac_status); } && { |
| 10465 | test -z "$ac_c_werror_flag" || |
| 10466 | test ! -s conftest.err |
| 10467 | } && test -s conftest.$ac_objext; then |
| 10468 | cat >>confdefs.h <<\_ACEOF |
| 10469 | #define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1 |
| 10470 | _ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10471 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10472 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10473 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10474 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10475 | echo "$as_me: failed program was:" >&5 |
| 10476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10477 | |
| 10478 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10479 | echo "${ECHO_T}no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10480 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10481 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 10483 | |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10484 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10485 | { echo "$as_me:$LINENO: checking ioqueue backend" >&5 |
| 10486 | echo $ECHO_N "checking ioqueue backend... $ECHO_C" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10487 | # Check whether --enable-epoll was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10488 | if test "${enable_epoll+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10489 | enableval=$enable_epoll; |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10490 | ac_os_objs=ioqueue_epoll.o |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10491 | { echo "$as_me:$LINENO: result: /dev/epoll" >&5 |
| 10492 | echo "${ECHO_T}/dev/epoll" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10493 | |
| 10494 | else |
| 10495 | |
| 10496 | ac_os_objs=ioqueue_select.o |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10497 | { echo "$as_me:$LINENO: result: select()" >&5 |
| 10498 | echo "${ECHO_T}select()" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10499 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10500 | fi |
| 10501 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 10502 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10503 | |
| 10504 | case $target in |
| 10505 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10506 | ac_os_objs="$ac_os_objs file_access_win32.o file_io_win32.o os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o" |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10507 | ;; |
| 10508 | *) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 10509 | ac_os_objs="$ac_os_objs file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o" |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 10510 | # UUID |
| 10511 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 10512 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 10513 | else |
| 10514 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 10515 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10516 | ;; |
| 10517 | esac |
| 10518 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10519 | |
| 10520 | |
| 10521 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10522 | ac_external_speex=0 |
| 10523 | |
| 10524 | |
| 10525 | # Check whether --with-external-speex was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10526 | if test "${with_external_speex+set}" = set; then |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10527 | withval=$with_external_speex; |
| 10528 | if test "x$with_external_speex" != "xno"; then |
| 10529 | # Test Speex installation |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10530 | { echo "$as_me:$LINENO: checking if external Speex devkit is installed" >&5 |
| 10531 | echo $ECHO_N "checking if external Speex devkit is installed... $ECHO_C" >&6; } |
| 10532 | cat >conftest.$ac_ext <<_ACEOF |
| 10533 | /* confdefs.h. */ |
| 10534 | _ACEOF |
| 10535 | cat confdefs.h >>conftest.$ac_ext |
| 10536 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10537 | /* end confdefs.h. */ |
| 10538 | #include <speex/speex.h> |
| 10539 | #include <speex/speex_echo.h> |
| 10540 | |
| 10541 | int |
| 10542 | main () |
| 10543 | { |
| 10544 | speex_echo_state_init(0, 0); speex_encoder_init(0); |
| 10545 | ; |
| 10546 | return 0; |
| 10547 | } |
| 10548 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10549 | rm -f conftest.$ac_objext |
| 10550 | if { (ac_try="$ac_compile" |
| 10551 | case "(($ac_try" in |
| 10552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10553 | *) ac_try_echo=$ac_try;; |
| 10554 | esac |
| 10555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10556 | (eval "$ac_compile") 2>conftest.er1 |
| 10557 | ac_status=$? |
| 10558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10559 | rm -f conftest.er1 |
| 10560 | cat conftest.err >&5 |
| 10561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10562 | (exit $ac_status); } && { |
| 10563 | test -z "$ac_c_werror_flag" || |
| 10564 | test ! -s conftest.err |
| 10565 | } && test -s conftest.$ac_objext; then |
| 10566 | { echo "$as_me:$LINENO: result: yes!!" >&5 |
| 10567 | echo "${ECHO_T}yes!!" >&6; } |
| 10568 | cat >>confdefs.h <<\_ACEOF |
| 10569 | #define PJMEDIA_EXTERNAL_SPEEX_CODEC 1 |
| 10570 | _ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10571 | |
| 10572 | ac_external_speex="1" |
| 10573 | |
| 10574 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10575 | echo "$as_me: failed program was:" >&5 |
| 10576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10577 | |
| 10578 | { { echo "$as_me:$LINENO: error: Unable to use external Speex library. If Speex development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&5 |
| 10579 | echo "$as_me: error: Unable to use external Speex library. If Speex development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&2;} |
| 10580 | { (exit 1); exit 1; }; } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10581 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10582 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10584 | fi |
| 10585 | |
| 10586 | |
| 10587 | fi |
| 10588 | |
| 10589 | |
| 10590 | ac_external_gsm=0 |
| 10591 | |
| 10592 | |
| 10593 | # Check whether --with-external-gsm was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10594 | if test "${with_external_gsm+set}" = set; then |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10595 | withval=$with_external_gsm; |
| 10596 | if test "x$with_external_gsm" != "xno"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10597 | # Test GSM library installation |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10598 | { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm/gsm.h" >&5 |
| 10599 | echo $ECHO_N "checking if external GSM devkit is installed as gsm/gsm.h... $ECHO_C" >&6; } |
| 10600 | cat >conftest.$ac_ext <<_ACEOF |
| 10601 | /* confdefs.h. */ |
| 10602 | _ACEOF |
| 10603 | cat confdefs.h >>conftest.$ac_ext |
| 10604 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10605 | /* end confdefs.h. */ |
| 10606 | #include <gsm/gsm.h> |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10607 | int |
| 10608 | main () |
| 10609 | { |
| 10610 | gsm_create(); |
| 10611 | ; |
| 10612 | return 0; |
| 10613 | } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10614 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10615 | rm -f conftest.$ac_objext |
| 10616 | if { (ac_try="$ac_compile" |
| 10617 | case "(($ac_try" in |
| 10618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10619 | *) ac_try_echo=$ac_try;; |
| 10620 | esac |
| 10621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10622 | (eval "$ac_compile") 2>conftest.er1 |
| 10623 | ac_status=$? |
| 10624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10625 | rm -f conftest.er1 |
| 10626 | cat conftest.err >&5 |
| 10627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10628 | (exit $ac_status); } && { |
| 10629 | test -z "$ac_c_werror_flag" || |
| 10630 | test ! -s conftest.err |
| 10631 | } && test -s conftest.$ac_objext; then |
| 10632 | { echo "$as_me:$LINENO: result: yes!!" >&5 |
| 10633 | echo "${ECHO_T}yes!!" >&6; } |
| 10634 | cat >>confdefs.h <<\_ACEOF |
| 10635 | #define PJMEDIA_EXTERNAL_GSM_CODEC 1 |
| 10636 | _ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10637 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10638 | cat >>confdefs.h <<\_ACEOF |
| 10639 | #define PJMEDIA_EXTERNAL_GSM_GSM_H 1 |
| 10640 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10641 | |
| 10642 | ac_external_gsm="1" |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10643 | |
| 10644 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10645 | echo "$as_me: failed program was:" >&5 |
| 10646 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 10647 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10648 | |
| 10649 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10650 | echo "${ECHO_T}no" >&6; } |
| 10651 | { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm.h" >&5 |
| 10652 | echo $ECHO_N "checking if external GSM devkit is installed as gsm.h... $ECHO_C" >&6; } |
| 10653 | cat >conftest.$ac_ext <<_ACEOF |
| 10654 | /* confdefs.h. */ |
| 10655 | _ACEOF |
| 10656 | cat confdefs.h >>conftest.$ac_ext |
| 10657 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10658 | /* end confdefs.h. */ |
| 10659 | #include <gsm.h> |
| 10660 | int |
| 10661 | main () |
| 10662 | { |
| 10663 | gsm_create(); |
| 10664 | ; |
| 10665 | return 0; |
| 10666 | } |
| 10667 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10668 | rm -f conftest.$ac_objext |
| 10669 | if { (ac_try="$ac_compile" |
| 10670 | case "(($ac_try" in |
| 10671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10672 | *) ac_try_echo=$ac_try;; |
| 10673 | esac |
| 10674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10675 | (eval "$ac_compile") 2>conftest.er1 |
| 10676 | ac_status=$? |
| 10677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10678 | rm -f conftest.er1 |
| 10679 | cat conftest.err >&5 |
| 10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10681 | (exit $ac_status); } && { |
| 10682 | test -z "$ac_c_werror_flag" || |
| 10683 | test ! -s conftest.err |
| 10684 | } && test -s conftest.$ac_objext; then |
| 10685 | { echo "$as_me:$LINENO: result: yes!!" >&5 |
| 10686 | echo "${ECHO_T}yes!!" >&6; } |
| 10687 | cat >>confdefs.h <<\_ACEOF |
| 10688 | #define PJMEDIA_EXTERNAL_GSM_CODEC 1 |
| 10689 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10690 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10691 | cat >>confdefs.h <<\_ACEOF |
| 10692 | #define PJMEDIA_EXTERNAL_GSM_H 1 |
| 10693 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10694 | |
| 10695 | ac_external_gsm="1" |
| 10696 | |
| 10697 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10698 | echo "$as_me: failed program was:" >&5 |
| 10699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10700 | |
| 10701 | { { echo "$as_me:$LINENO: error: Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&5 |
| 10702 | echo "$as_me: error: Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&2;} |
| 10703 | { (exit 1); exit 1; }; } |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10704 | |
| 10705 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10706 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10707 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 10709 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 10710 | |
| 10711 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10712 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10714 | fi |
| 10715 | |
| 10716 | |
| 10717 | fi |
| 10718 | |
| 10719 | |
| 10720 | |
| 10721 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 10722 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10723 | # Check whether --enable-sound was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10724 | if test "${enable_sound+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10725 | enableval=$enable_sound; if test "$enable_sound" = "no"; then |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10726 | ac_pjmedia_snd=null |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10727 | { echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5 |
| 10728 | echo "${ECHO_T}Checking if sound is disabled... yes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10729 | fi |
| 10730 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10731 | fi |
| 10732 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10733 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10734 | ac_external_pa=0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10735 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10736 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10737 | # Check whether --with-external-pa was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10738 | if test "${with_external_pa+set}" = set; then |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10739 | withval=$with_external_pa; |
| 10740 | if test "x$with_external_pa" != "xno"; then |
| 10741 | # Test PortAudio installation |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10742 | { echo "$as_me:$LINENO: checking if external PortAudio devkit is installed" >&5 |
| 10743 | echo $ECHO_N "checking if external PortAudio devkit is installed... $ECHO_C" >&6; } |
| 10744 | cat >conftest.$ac_ext <<_ACEOF |
| 10745 | /* confdefs.h. */ |
| 10746 | _ACEOF |
| 10747 | cat confdefs.h >>conftest.$ac_ext |
| 10748 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10749 | /* end confdefs.h. */ |
| 10750 | #include <portaudio.h> |
| 10751 | |
| 10752 | int |
| 10753 | main () |
| 10754 | { |
| 10755 | Pa_Initialize(); |
| 10756 | ; |
| 10757 | return 0; |
| 10758 | } |
| 10759 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10760 | rm -f conftest.$ac_objext |
| 10761 | if { (ac_try="$ac_compile" |
| 10762 | case "(($ac_try" in |
| 10763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10764 | *) ac_try_echo=$ac_try;; |
| 10765 | esac |
| 10766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10767 | (eval "$ac_compile") 2>conftest.er1 |
| 10768 | ac_status=$? |
| 10769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10770 | rm -f conftest.er1 |
| 10771 | cat conftest.err >&5 |
| 10772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10773 | (exit $ac_status); } && { |
| 10774 | test -z "$ac_c_werror_flag" || |
| 10775 | test ! -s conftest.err |
| 10776 | } && test -s conftest.$ac_objext; then |
| 10777 | { echo "$as_me:$LINENO: result: yes!!" >&5 |
| 10778 | echo "${ECHO_T}yes!!" >&6; } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10779 | ac_external_pa="1" |
| 10780 | |
| 10781 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10782 | echo "$as_me: failed program was:" >&5 |
| 10783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10784 | |
| 10785 | { { echo "$as_me:$LINENO: error: Unable to use PortAudio. If PortAudio development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&5 |
| 10786 | echo "$as_me: error: Unable to use PortAudio. If PortAudio development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&2;} |
| 10787 | { (exit 1); exit 1; }; } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10788 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10789 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 10790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 10791 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 10792 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10793 | |
| 10794 | fi |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 10795 | |
| 10796 | |
| 10797 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10798 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 10799 | { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 10800 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } |
| 10801 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 10802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10803 | fi |
| 10804 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 10805 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } |
| 10806 | else |
| 10807 | # Is the header compilable? |
| 10808 | { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5 |
| 10809 | echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; } |
| 10810 | cat >conftest.$ac_ext <<_ACEOF |
| 10811 | /* confdefs.h. */ |
| 10812 | _ACEOF |
| 10813 | cat confdefs.h >>conftest.$ac_ext |
| 10814 | cat >>conftest.$ac_ext <<_ACEOF |
| 10815 | /* end confdefs.h. */ |
| 10816 | $ac_includes_default |
| 10817 | #include <sys/soundcard.h> |
| 10818 | _ACEOF |
| 10819 | rm -f conftest.$ac_objext |
| 10820 | if { (ac_try="$ac_compile" |
| 10821 | case "(($ac_try" in |
| 10822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10823 | *) ac_try_echo=$ac_try;; |
| 10824 | esac |
| 10825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10826 | (eval "$ac_compile") 2>conftest.er1 |
| 10827 | ac_status=$? |
| 10828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10829 | rm -f conftest.er1 |
| 10830 | cat conftest.err >&5 |
| 10831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10832 | (exit $ac_status); } && { |
| 10833 | test -z "$ac_c_werror_flag" || |
| 10834 | test ! -s conftest.err |
| 10835 | } && test -s conftest.$ac_objext; then |
| 10836 | ac_header_compiler=yes |
| 10837 | else |
| 10838 | echo "$as_me: failed program was:" >&5 |
| 10839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10840 | |
| 10841 | ac_header_compiler=no |
| 10842 | fi |
| 10843 | |
| 10844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10845 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10846 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 10847 | |
| 10848 | # Is the header present? |
| 10849 | { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5 |
| 10850 | echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; } |
| 10851 | cat >conftest.$ac_ext <<_ACEOF |
| 10852 | /* confdefs.h. */ |
| 10853 | _ACEOF |
| 10854 | cat confdefs.h >>conftest.$ac_ext |
| 10855 | cat >>conftest.$ac_ext <<_ACEOF |
| 10856 | /* end confdefs.h. */ |
| 10857 | #include <sys/soundcard.h> |
| 10858 | _ACEOF |
| 10859 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10860 | case "(($ac_try" in |
| 10861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10862 | *) ac_try_echo=$ac_try;; |
| 10863 | esac |
| 10864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10865 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 10866 | ac_status=$? |
| 10867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10868 | rm -f conftest.er1 |
| 10869 | cat conftest.err >&5 |
| 10870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10871 | (exit $ac_status); } >/dev/null && { |
| 10872 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10873 | test ! -s conftest.err |
| 10874 | }; then |
| 10875 | ac_header_preproc=yes |
| 10876 | else |
| 10877 | echo "$as_me: failed program was:" >&5 |
| 10878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10879 | |
| 10880 | ac_header_preproc=no |
| 10881 | fi |
| 10882 | |
| 10883 | rm -f conftest.err conftest.$ac_ext |
| 10884 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10885 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 10886 | |
| 10887 | # So? What about this header? |
| 10888 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10889 | yes:no: ) |
| 10890 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10891 | echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10892 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5 |
| 10893 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;} |
| 10894 | ac_header_preproc=yes |
| 10895 | ;; |
| 10896 | no:yes:* ) |
| 10897 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5 |
| 10898 | echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;} |
| 10899 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5 |
| 10900 | echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 10901 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5 |
| 10902 | echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;} |
| 10903 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10904 | echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10905 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 10906 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 10907 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 10908 | echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;} |
| 10909 | |
| 10910 | ;; |
| 10911 | esac |
| 10912 | { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 10913 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } |
| 10914 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 10915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10916 | else |
| 10917 | ac_cv_header_sys_soundcard_h=$ac_header_preproc |
| 10918 | fi |
| 10919 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 10920 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } |
| 10921 | |
| 10922 | fi |
| 10923 | if test $ac_cv_header_sys_soundcard_h = yes; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10924 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 10925 | fi |
| 10926 | |
| 10927 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 10928 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 10929 | { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 10930 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } |
| 10931 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 10932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10933 | fi |
| 10934 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 10935 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } |
| 10936 | else |
| 10937 | # Is the header compilable? |
| 10938 | { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5 |
| 10939 | echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; } |
| 10940 | cat >conftest.$ac_ext <<_ACEOF |
| 10941 | /* confdefs.h. */ |
| 10942 | _ACEOF |
| 10943 | cat confdefs.h >>conftest.$ac_ext |
| 10944 | cat >>conftest.$ac_ext <<_ACEOF |
| 10945 | /* end confdefs.h. */ |
| 10946 | $ac_includes_default |
| 10947 | #include <linux/soundcard.h> |
| 10948 | _ACEOF |
| 10949 | rm -f conftest.$ac_objext |
| 10950 | if { (ac_try="$ac_compile" |
| 10951 | case "(($ac_try" in |
| 10952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10953 | *) ac_try_echo=$ac_try;; |
| 10954 | esac |
| 10955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10956 | (eval "$ac_compile") 2>conftest.er1 |
| 10957 | ac_status=$? |
| 10958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10959 | rm -f conftest.er1 |
| 10960 | cat conftest.err >&5 |
| 10961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10962 | (exit $ac_status); } && { |
| 10963 | test -z "$ac_c_werror_flag" || |
| 10964 | test ! -s conftest.err |
| 10965 | } && test -s conftest.$ac_objext; then |
| 10966 | ac_header_compiler=yes |
| 10967 | else |
| 10968 | echo "$as_me: failed program was:" >&5 |
| 10969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10970 | |
| 10971 | ac_header_compiler=no |
| 10972 | fi |
| 10973 | |
| 10974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10975 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10976 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 10977 | |
| 10978 | # Is the header present? |
| 10979 | { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5 |
| 10980 | echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; } |
| 10981 | cat >conftest.$ac_ext <<_ACEOF |
| 10982 | /* confdefs.h. */ |
| 10983 | _ACEOF |
| 10984 | cat confdefs.h >>conftest.$ac_ext |
| 10985 | cat >>conftest.$ac_ext <<_ACEOF |
| 10986 | /* end confdefs.h. */ |
| 10987 | #include <linux/soundcard.h> |
| 10988 | _ACEOF |
| 10989 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10990 | case "(($ac_try" in |
| 10991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10992 | *) ac_try_echo=$ac_try;; |
| 10993 | esac |
| 10994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10995 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 10996 | ac_status=$? |
| 10997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10998 | rm -f conftest.er1 |
| 10999 | cat conftest.err >&5 |
| 11000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11001 | (exit $ac_status); } >/dev/null && { |
| 11002 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11003 | test ! -s conftest.err |
| 11004 | }; then |
| 11005 | ac_header_preproc=yes |
| 11006 | else |
| 11007 | echo "$as_me: failed program was:" >&5 |
| 11008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11009 | |
| 11010 | ac_header_preproc=no |
| 11011 | fi |
| 11012 | |
| 11013 | rm -f conftest.err conftest.$ac_ext |
| 11014 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11015 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11016 | |
| 11017 | # So? What about this header? |
| 11018 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11019 | yes:no: ) |
| 11020 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11021 | echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11022 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5 |
| 11023 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;} |
| 11024 | ac_header_preproc=yes |
| 11025 | ;; |
| 11026 | no:yes:* ) |
| 11027 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5 |
| 11028 | echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;} |
| 11029 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5 |
| 11030 | echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 11031 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5 |
| 11032 | echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;} |
| 11033 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11034 | echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11035 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 11036 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 11037 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 11038 | echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;} |
| 11039 | |
| 11040 | ;; |
| 11041 | esac |
| 11042 | { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 11043 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } |
| 11044 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 11045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11046 | else |
| 11047 | ac_cv_header_linux_soundcard_h=$ac_header_preproc |
| 11048 | fi |
| 11049 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 11050 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } |
| 11051 | |
| 11052 | fi |
| 11053 | if test $ac_cv_header_linux_soundcard_h = yes; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 11054 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 11055 | fi |
| 11056 | |
| 11057 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11058 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 11059 | { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 11060 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } |
| 11061 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 11062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11063 | fi |
| 11064 | { echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 11065 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } |
| 11066 | else |
| 11067 | # Is the header compilable? |
| 11068 | { echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5 |
| 11069 | echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6; } |
| 11070 | cat >conftest.$ac_ext <<_ACEOF |
| 11071 | /* confdefs.h. */ |
| 11072 | _ACEOF |
| 11073 | cat confdefs.h >>conftest.$ac_ext |
| 11074 | cat >>conftest.$ac_ext <<_ACEOF |
| 11075 | /* end confdefs.h. */ |
| 11076 | $ac_includes_default |
| 11077 | #include <machine/soundcard.h> |
| 11078 | _ACEOF |
| 11079 | rm -f conftest.$ac_objext |
| 11080 | if { (ac_try="$ac_compile" |
| 11081 | case "(($ac_try" in |
| 11082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11083 | *) ac_try_echo=$ac_try;; |
| 11084 | esac |
| 11085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11086 | (eval "$ac_compile") 2>conftest.er1 |
| 11087 | ac_status=$? |
| 11088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11089 | rm -f conftest.er1 |
| 11090 | cat conftest.err >&5 |
| 11091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11092 | (exit $ac_status); } && { |
| 11093 | test -z "$ac_c_werror_flag" || |
| 11094 | test ! -s conftest.err |
| 11095 | } && test -s conftest.$ac_objext; then |
| 11096 | ac_header_compiler=yes |
| 11097 | else |
| 11098 | echo "$as_me: failed program was:" >&5 |
| 11099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11100 | |
| 11101 | ac_header_compiler=no |
| 11102 | fi |
| 11103 | |
| 11104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11105 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11106 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11107 | |
| 11108 | # Is the header present? |
| 11109 | { echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5 |
| 11110 | echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6; } |
| 11111 | cat >conftest.$ac_ext <<_ACEOF |
| 11112 | /* confdefs.h. */ |
| 11113 | _ACEOF |
| 11114 | cat confdefs.h >>conftest.$ac_ext |
| 11115 | cat >>conftest.$ac_ext <<_ACEOF |
| 11116 | /* end confdefs.h. */ |
| 11117 | #include <machine/soundcard.h> |
| 11118 | _ACEOF |
| 11119 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11120 | case "(($ac_try" in |
| 11121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11122 | *) ac_try_echo=$ac_try;; |
| 11123 | esac |
| 11124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11125 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11126 | ac_status=$? |
| 11127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11128 | rm -f conftest.er1 |
| 11129 | cat conftest.err >&5 |
| 11130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11131 | (exit $ac_status); } >/dev/null && { |
| 11132 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11133 | test ! -s conftest.err |
| 11134 | }; then |
| 11135 | ac_header_preproc=yes |
| 11136 | else |
| 11137 | echo "$as_me: failed program was:" >&5 |
| 11138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11139 | |
| 11140 | ac_header_preproc=no |
| 11141 | fi |
| 11142 | |
| 11143 | rm -f conftest.err conftest.$ac_ext |
| 11144 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11145 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11146 | |
| 11147 | # So? What about this header? |
| 11148 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11149 | yes:no: ) |
| 11150 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11151 | echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11152 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5 |
| 11153 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;} |
| 11154 | ac_header_preproc=yes |
| 11155 | ;; |
| 11156 | no:yes:* ) |
| 11157 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5 |
| 11158 | echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;} |
| 11159 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5 |
| 11160 | echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 11161 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5 |
| 11162 | echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;} |
| 11163 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11164 | echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11165 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 11166 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 11167 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 11168 | echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;} |
| 11169 | |
| 11170 | ;; |
| 11171 | esac |
| 11172 | { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 11173 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } |
| 11174 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 11175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11176 | else |
| 11177 | ac_cv_header_machine_soundcard_h=$ac_header_preproc |
| 11178 | fi |
| 11179 | { echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 11180 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } |
| 11181 | |
| 11182 | fi |
| 11183 | if test $ac_cv_header_machine_soundcard_h = yes; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 11184 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 11185 | fi |
| 11186 | |
| 11187 | |
| 11188 | |
Benny Prijono | 3e09167 | 2008-01-09 15:43:02 +0000 | [diff] [blame] | 11189 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 11190 | ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN" |
| 11191 | else |
| 11192 | ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN" |
| 11193 | fi |
| 11194 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 11195 | if test "$enable_sound" = "no"; then |
| 11196 | true; |
| 11197 | else |
| 11198 | case $target in |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 11199 | arm-apple-darwin*) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11200 | LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork" |
| 11201 | { echo "$as_me:$LINENO: result: Checking sound device backend... AudioUnit" >&5 |
| 11202 | echo "${ECHO_T}Checking sound device backend... AudioUnit" >&6; } |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 11203 | ;; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 11204 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11205 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 11206 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 11207 | #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS" |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11208 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 11209 | ac_pjmedia_snd=pa_old_darwinos |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11210 | { echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5 |
| 11211 | echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11212 | else |
| 11213 | ac_pjmedia_snd=pa_darwinos |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11214 | { echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5 |
| 11215 | echo "${ECHO_T}Checking sound device backend... coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11216 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 11217 | ;; |
| 11218 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11219 | ac_pjmedia_snd=pa_win32 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11220 | { echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5 |
| 11221 | echo "${ECHO_T}Checking sound device backend... win32 sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11222 | ;; |
| 11223 | *rtems*) |
| 11224 | ac_pjmedia_snd=null |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11225 | { echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5 |
| 11226 | echo "${ECHO_T}Checking sound device backend... null sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11227 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11228 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11229 | ac_pjmedia_snd=pa_unix |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11230 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 11231 | { echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 11232 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } |
| 11233 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 11234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11235 | fi |
| 11236 | { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 11237 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } |
| 11238 | else |
| 11239 | # Is the header compilable? |
| 11240 | { echo "$as_me:$LINENO: checking alsa/version.h usability" >&5 |
| 11241 | echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6; } |
| 11242 | cat >conftest.$ac_ext <<_ACEOF |
| 11243 | /* confdefs.h. */ |
| 11244 | _ACEOF |
| 11245 | cat confdefs.h >>conftest.$ac_ext |
| 11246 | cat >>conftest.$ac_ext <<_ACEOF |
| 11247 | /* end confdefs.h. */ |
| 11248 | $ac_includes_default |
| 11249 | #include <alsa/version.h> |
| 11250 | _ACEOF |
| 11251 | rm -f conftest.$ac_objext |
| 11252 | if { (ac_try="$ac_compile" |
| 11253 | case "(($ac_try" in |
| 11254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11255 | *) ac_try_echo=$ac_try;; |
| 11256 | esac |
| 11257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11258 | (eval "$ac_compile") 2>conftest.er1 |
| 11259 | ac_status=$? |
| 11260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11261 | rm -f conftest.er1 |
| 11262 | cat conftest.err >&5 |
| 11263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11264 | (exit $ac_status); } && { |
| 11265 | test -z "$ac_c_werror_flag" || |
| 11266 | test ! -s conftest.err |
| 11267 | } && test -s conftest.$ac_objext; then |
| 11268 | ac_header_compiler=yes |
| 11269 | else |
| 11270 | echo "$as_me: failed program was:" >&5 |
| 11271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11272 | |
| 11273 | ac_header_compiler=no |
| 11274 | fi |
| 11275 | |
| 11276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11277 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11278 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11279 | |
| 11280 | # Is the header present? |
| 11281 | { echo "$as_me:$LINENO: checking alsa/version.h presence" >&5 |
| 11282 | echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6; } |
| 11283 | cat >conftest.$ac_ext <<_ACEOF |
| 11284 | /* confdefs.h. */ |
| 11285 | _ACEOF |
| 11286 | cat confdefs.h >>conftest.$ac_ext |
| 11287 | cat >>conftest.$ac_ext <<_ACEOF |
| 11288 | /* end confdefs.h. */ |
| 11289 | #include <alsa/version.h> |
| 11290 | _ACEOF |
| 11291 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11292 | case "(($ac_try" in |
| 11293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11294 | *) ac_try_echo=$ac_try;; |
| 11295 | esac |
| 11296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11297 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11298 | ac_status=$? |
| 11299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11300 | rm -f conftest.er1 |
| 11301 | cat conftest.err >&5 |
| 11302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11303 | (exit $ac_status); } >/dev/null && { |
| 11304 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11305 | test ! -s conftest.err |
| 11306 | }; then |
| 11307 | ac_header_preproc=yes |
| 11308 | else |
| 11309 | echo "$as_me: failed program was:" >&5 |
| 11310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11311 | |
| 11312 | ac_header_preproc=no |
| 11313 | fi |
| 11314 | |
| 11315 | rm -f conftest.err conftest.$ac_ext |
| 11316 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11317 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11318 | |
| 11319 | # So? What about this header? |
| 11320 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11321 | yes:no: ) |
| 11322 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11323 | echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11324 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5 |
| 11325 | echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;} |
| 11326 | ac_header_preproc=yes |
| 11327 | ;; |
| 11328 | no:yes:* ) |
| 11329 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5 |
| 11330 | echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;} |
| 11331 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5 |
| 11332 | echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;} |
| 11333 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5 |
| 11334 | echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;} |
| 11335 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11336 | echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11337 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5 |
| 11338 | echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;} |
| 11339 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5 |
| 11340 | echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;} |
| 11341 | |
| 11342 | ;; |
| 11343 | esac |
| 11344 | { echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 11345 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } |
| 11346 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 11347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11348 | else |
| 11349 | ac_cv_header_alsa_version_h=$ac_header_preproc |
| 11350 | fi |
| 11351 | { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 11352 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } |
| 11353 | |
| 11354 | fi |
| 11355 | if test $ac_cv_header_alsa_version_h = yes; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11356 | ac_pa_use_alsa=1 |
| 11357 | |
| 11358 | LIBS="$LIBS -lasound" |
| 11359 | |
| 11360 | else |
| 11361 | ac_pa_use_alsa=0 |
| 11362 | |
| 11363 | fi |
| 11364 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11365 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11366 | { echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5 |
| 11367 | echo "${ECHO_T}Checking sound device backend... unix" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11368 | |
| 11369 | ac_pa_use_oss=1 |
| 11370 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11371 | # Check whether --enable-oss was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11372 | if test "${enable_oss+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11373 | enableval=$enable_oss; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11374 | if test "$enable_oss" = "no"; then |
| 11375 | ac_pa_use_oss=0 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11376 | { echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5 |
| 11377 | echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11378 | fi |
| 11379 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11380 | fi |
| 11381 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11382 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 11383 | esac |
| 11384 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11385 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11386 | # Check whether --enable-ext_sound was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11387 | if test "${enable_ext_sound+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11388 | enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 11389 | ac_pjmedia_snd=external |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11390 | { echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5 |
| 11391 | echo "${ECHO_T}Checking if external sound is set... yes" >&6; } |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 11392 | fi |
| 11393 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11394 | fi |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 11395 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11396 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11397 | |
| 11398 | # Check whether --enable-small-filter was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11399 | if test "${enable_small_filter+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11400 | enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11401 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11402 | { echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5 |
| 11403 | echo "${ECHO_T}Checking if small filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11404 | fi |
| 11405 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11406 | { echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5 |
| 11407 | echo "${ECHO_T}Checking if small filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11408 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11409 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11410 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11411 | |
| 11412 | # Check whether --enable-large-filter was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11413 | if test "${enable_large_filter+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11414 | enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11415 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11416 | { echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5 |
| 11417 | echo "${ECHO_T}Checking if large filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11418 | fi |
| 11419 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11420 | { echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5 |
| 11421 | echo "${ECHO_T}Checking if large filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11422 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11423 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11424 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11425 | |
| 11426 | # Check whether --enable-speex-aec was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11427 | if test "${enable_speex_aec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11428 | enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11429 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11430 | { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5 |
| 11431 | echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11432 | fi |
| 11433 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11434 | { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5 |
| 11435 | echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11436 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11437 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11438 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11439 | |
| 11440 | # Check whether --enable-g711-codec was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11441 | if test "${enable_g711_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11442 | enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11443 | ac_no_g711_codec=1 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11444 | cat >>confdefs.h <<\_ACEOF |
| 11445 | #define PJMEDIA_HAS_G711_CODEC 0 |
| 11446 | _ACEOF |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 11447 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11448 | { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5 |
| 11449 | echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11450 | fi |
| 11451 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11452 | { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5 |
| 11453 | echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11454 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11455 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11456 | |
| 11457 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11458 | |
| 11459 | # Check whether --enable-l16-codec was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11460 | if test "${enable_l16_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11461 | enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11462 | ac_no_l16_codec=1 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11463 | cat >>confdefs.h <<\_ACEOF |
| 11464 | #define PJMEDIA_HAS_L16_CODEC 0 |
| 11465 | _ACEOF |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 11466 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11467 | { echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5 |
| 11468 | echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11469 | fi |
| 11470 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11471 | { echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5 |
| 11472 | echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11473 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11474 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11475 | |
| 11476 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11477 | |
| 11478 | # Check whether --enable-gsm-codec was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11479 | if test "${enable_gsm_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11480 | enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11481 | ac_no_gsm_codec=1 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11482 | cat >>confdefs.h <<\_ACEOF |
| 11483 | #define PJMEDIA_HAS_GSM_CODEC 0 |
| 11484 | _ACEOF |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 11485 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11486 | { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5 |
| 11487 | echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11488 | fi |
| 11489 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11490 | { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5 |
| 11491 | echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11492 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11493 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11494 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11495 | |
| 11496 | # Check whether --enable-g722-codec was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11497 | if test "${enable_g722_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11498 | enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 11499 | ac_no_g722_codec=1 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11500 | cat >>confdefs.h <<\_ACEOF |
| 11501 | #define PJMEDIA_HAS_G722_CODEC 0 |
| 11502 | _ACEOF |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 11503 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11504 | { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5 |
| 11505 | echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6; } |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 11506 | fi |
| 11507 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11508 | { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5 |
| 11509 | echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11510 | fi |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 11511 | |
| 11512 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11513 | |
| 11514 | # Check whether --enable-g7221-codec was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11515 | if test "${enable_g7221_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11516 | enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then |
| 11517 | ac_no_g7221_codec=1 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11518 | cat >>confdefs.h <<\_ACEOF |
| 11519 | #define PJMEDIA_HAS_G7221_CODEC 0 |
| 11520 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11521 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11522 | { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...yes" >&5 |
| 11523 | echo "${ECHO_T}Checking if G.722.1 codec is disabled...yes" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11524 | fi |
| 11525 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11526 | { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...no" >&5 |
| 11527 | echo "${ECHO_T}Checking if G.722.1 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11528 | fi |
| 11529 | |
| 11530 | |
| 11531 | |
| 11532 | # Check whether --enable-speex-codec was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11533 | if test "${enable_speex_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11534 | enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11535 | ac_no_speex_codec=1 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11536 | cat >>confdefs.h <<\_ACEOF |
| 11537 | #define PJMEDIA_HAS_SPEEX_CODEC 0 |
| 11538 | _ACEOF |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 11539 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11540 | { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5 |
| 11541 | echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11542 | fi |
| 11543 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11544 | { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5 |
| 11545 | echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11546 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11547 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11548 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11549 | |
| 11550 | # Check whether --enable-ilbc-codec was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11551 | if test "${enable_ilbc_codec+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11552 | enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11553 | ac_no_ilbc_codec=1 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11554 | cat >>confdefs.h <<\_ACEOF |
| 11555 | #define PJMEDIA_HAS_ILBC_CODEC 0 |
| 11556 | _ACEOF |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 11557 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11558 | { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5 |
| 11559 | echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11560 | fi |
| 11561 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11562 | { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5 |
| 11563 | echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11564 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11565 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11566 | |
| 11567 | # Check whether --enable-libsamplerate was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11568 | if test "${enable_libsamplerate+set}" = set; then |
| 11569 | enableval=$enable_libsamplerate; |
| 11570 | { echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5 |
| 11571 | echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6; } |
| 11572 | if test "${ac_cv_lib_samplerate_src_new+set}" = set; then |
| 11573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11574 | else |
| 11575 | ac_check_lib_save_LIBS=$LIBS |
| 11576 | LIBS="-lsamplerate $LIBS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11577 | cat >conftest.$ac_ext <<_ACEOF |
| 11578 | /* confdefs.h. */ |
| 11579 | _ACEOF |
| 11580 | cat confdefs.h >>conftest.$ac_ext |
| 11581 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11582 | /* end confdefs.h. */ |
| 11583 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11584 | /* Override any GCC internal prototype to avoid an error. |
| 11585 | Use char because int might match the return type of a GCC |
| 11586 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11587 | #ifdef __cplusplus |
| 11588 | extern "C" |
| 11589 | #endif |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11590 | char src_new (); |
| 11591 | int |
| 11592 | main () |
| 11593 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11594 | return src_new (); |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11595 | ; |
| 11596 | return 0; |
| 11597 | } |
| 11598 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11599 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11600 | if { (ac_try="$ac_link" |
| 11601 | case "(($ac_try" in |
| 11602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11603 | *) ac_try_echo=$ac_try;; |
| 11604 | esac |
| 11605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11606 | (eval "$ac_link") 2>conftest.er1 |
| 11607 | ac_status=$? |
| 11608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11609 | rm -f conftest.er1 |
| 11610 | cat conftest.err >&5 |
| 11611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11612 | (exit $ac_status); } && { |
| 11613 | test -z "$ac_c_werror_flag" || |
| 11614 | test ! -s conftest.err |
| 11615 | } && test -s conftest$ac_exeext && |
| 11616 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11617 | ac_cv_lib_samplerate_src_new=yes |
| 11618 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11619 | echo "$as_me: failed program was:" >&5 |
| 11620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11621 | |
| 11622 | ac_cv_lib_samplerate_src_new=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11623 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11624 | |
| 11625 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11626 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11627 | LIBS=$ac_check_lib_save_LIBS |
| 11628 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11629 | { echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5 |
| 11630 | echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6; } |
| 11631 | if test $ac_cv_lib_samplerate_src_new = yes; then |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11632 | cat >>confdefs.h <<_ACEOF |
| 11633 | #define HAVE_LIBSAMPLERATE 1 |
| 11634 | _ACEOF |
| 11635 | |
| 11636 | LIBS="-lsamplerate $LIBS" |
| 11637 | |
| 11638 | fi |
| 11639 | |
| 11640 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11641 | { echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5 |
| 11642 | echo "${ECHO_T}Skipping libsamplerate detection" >&6; } |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 11643 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11644 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11645 | |
| 11646 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11647 | |
| 11648 | # Check whether --enable-ipp was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11649 | if test "${enable_ipp+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11650 | enableval=$enable_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11651 | else |
| 11652 | enable_ipp=no |
| 11653 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11654 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11655 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11656 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11657 | |
| 11658 | # Check whether --with-ipp was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11659 | if test "${with_ipp+set}" = set; then |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11660 | withval=$with_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11661 | else |
| 11662 | with_ipp=no |
| 11663 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11664 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11665 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11666 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11667 | |
| 11668 | # Check whether --with-ipp-samples was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11669 | if test "${with_ipp_samples+set}" = set; then |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11670 | withval=$with_ipp_samples; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11671 | else |
| 11672 | with_ipp_samples=no |
| 11673 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 11674 | fi |
| 11675 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11676 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11677 | |
| 11678 | # Check whether --with-ipp-arch was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11679 | if test "${with_ipp_arch+set}" = set; then |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11680 | withval=$with_ipp_arch; |
| 11681 | else |
| 11682 | with_ipp_arch=no |
| 11683 | |
| 11684 | fi |
| 11685 | |
| 11686 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11687 | if test "x$enable_ipp" != "xno"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11688 | { echo "$as_me:$LINENO: checking Intel IPP location" >&5 |
| 11689 | echo $ECHO_N "checking Intel IPP location... $ECHO_C" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11690 | |
| 11691 | if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11692 | { echo "$as_me:$LINENO: result: $with_ipp" >&5 |
| 11693 | echo "${ECHO_T}$with_ipp" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11694 | IPPROOT=$with_ipp |
| 11695 | elif test "x$IPPROOT" = "x"; then |
| 11696 | if test -d /opt/intel/ipp; then |
| 11697 | IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1` |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11698 | { echo "$as_me:$LINENO: result: autodetected in $IPPROOT" >&5 |
| 11699 | echo "${ECHO_T}autodetected in $IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11700 | fi |
| 11701 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11702 | { echo "$as_me:$LINENO: result: $IPPROOT" >&5 |
| 11703 | echo "${ECHO_T}$IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11704 | fi |
| 11705 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11706 | if test "x$with_ipp_arch" != "xno"; then |
Benny Prijono | 896be29 | 2010-08-17 12:16:46 +0000 | [diff] [blame] | 11707 | IPP_SUFFIX=$with_ipp_arch |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11708 | { echo "$as_me:$LINENO: result: IPP arch suffix is set to $IPP_SUFFIX" >&5 |
| 11709 | echo "${ECHO_T}IPP arch suffix is set to $IPP_SUFFIX" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11710 | else |
| 11711 | IPP_SUFFIX="" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11712 | { echo "$as_me:$LINENO: result: IPP arch suffix is set to empty" >&5 |
| 11713 | echo "${ECHO_T}IPP arch suffix is set to empty" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11714 | fi |
| 11715 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11716 | if test x$IPPROOT = x; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11717 | { { echo "$as_me:$LINENO: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&5 |
| 11718 | echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&2;} |
| 11719 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11720 | elif test ! -d $IPPROOT; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11721 | { { echo "$as_me:$LINENO: error: not found" >&5 |
| 11722 | echo "$as_me: error: not found" >&2;} |
| 11723 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11724 | elif test ! -d $IPPROOT/include; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11725 | { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5 |
| 11726 | echo "$as_me: error: directory doesn't seem to be valid" >&2;} |
| 11727 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11728 | else |
| 11729 | # IPP directory looks okay. |
| 11730 | # Remove trailing backslash |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11731 | IPPROOT=`echo $IPPROOT | sed 's/\/$//'` |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11732 | |
| 11733 | SAVED_CFLAGS="$CFLAGS" |
| 11734 | SAVED_LDFLAGS="$LDFLAGS" |
| 11735 | SAVED_LIBS="$LIBS" |
| 11736 | |
| 11737 | IPP_CFLAGS="-I$IPPROOT/include" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 11738 | IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX}" |
| 11739 | |
| 11740 | # Some differences between Mac OS X and Linux |
| 11741 | case $target in |
| 11742 | *darwin* ) |
| 11743 | IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib" |
| 11744 | ;; |
| 11745 | *) |
| 11746 | IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
| 11747 | IPP_LIBS="$IPP_LIBS -lguide" |
| 11748 | ;; |
| 11749 | esac |
| 11750 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11751 | #IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 11752 | #Static: |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11753 | #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore" |
| 11754 | |
| 11755 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 11756 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 11757 | LIBS="$IPP_LIBS $LIBS" |
| 11758 | |
| 11759 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11760 | { echo "$as_me:$LINENO: checking Intel IPP usability" >&5 |
| 11761 | echo $ECHO_N "checking Intel IPP usability... $ECHO_C" >&6; } |
| 11762 | cat >conftest.$ac_ext <<_ACEOF |
| 11763 | /* confdefs.h. */ |
| 11764 | _ACEOF |
| 11765 | cat confdefs.h >>conftest.$ac_ext |
| 11766 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11767 | /* end confdefs.h. */ |
| 11768 | #include <ippcore.h> |
| 11769 | |
| 11770 | int |
| 11771 | main () |
| 11772 | { |
| 11773 | ippStaticInit(); |
| 11774 | ; |
| 11775 | return 0; |
| 11776 | } |
| 11777 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11778 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11779 | if { (ac_try="$ac_link" |
| 11780 | case "(($ac_try" in |
| 11781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11782 | *) ac_try_echo=$ac_try;; |
| 11783 | esac |
| 11784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11785 | (eval "$ac_link") 2>conftest.er1 |
| 11786 | ac_status=$? |
| 11787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11788 | rm -f conftest.er1 |
| 11789 | cat conftest.err >&5 |
| 11790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11791 | (exit $ac_status); } && { |
| 11792 | test -z "$ac_c_werror_flag" || |
| 11793 | test ! -s conftest.err |
| 11794 | } && test -s conftest$ac_exeext && |
| 11795 | $as_test_x conftest$ac_exeext; then |
| 11796 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 11797 | echo "${ECHO_T}ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11798 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11799 | echo "$as_me: failed program was:" >&5 |
| 11800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11801 | |
| 11802 | { { echo "$as_me:$LINENO: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly |
| 11803 | See \`config.log' for more details." >&5 |
| 11804 | echo "$as_me: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly |
| 11805 | See \`config.log' for more details." >&2;} |
| 11806 | { (exit run with --help for more info); exit run with --help for more info; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11807 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11808 | |
| 11809 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11810 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11811 | |
| 11812 | CFLAGS="$SAVED_CFLAGS" |
| 11813 | LDFLAGS="$SAVED_LDFLAGS" |
| 11814 | LIBS="$SAVED_LIBS" |
| 11815 | fi |
| 11816 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11817 | { echo "$as_me:$LINENO: checking Intel IPP samples location" >&5 |
| 11818 | echo $ECHO_N "checking Intel IPP samples location... $ECHO_C" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11819 | |
| 11820 | if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11821 | { echo "$as_me:$LINENO: result: $with_ipp_samples" >&5 |
| 11822 | echo "${ECHO_T}$with_ipp_samples" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11823 | IPPSAMPLES=$with_ipp_samples |
| 11824 | elif test "x$IPPSAMPLES" = "x"; then |
| 11825 | if test -d /opt/intel/ipp-samples; then |
| 11826 | IPPSAMPLES=/opt/intel/ipp-samples |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11827 | { echo "$as_me:$LINENO: result: autodetected in $IPPSAMPLES" >&5 |
| 11828 | echo "${ECHO_T}autodetected in $IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11829 | fi |
| 11830 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11831 | { echo "$as_me:$LINENO: result: $IPPSAMPLES" >&5 |
| 11832 | echo "${ECHO_T}$IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11833 | fi |
| 11834 | |
| 11835 | if test x$IPPSAMPLES = x; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11836 | { { echo "$as_me:$LINENO: error: the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" >&5 |
| 11837 | echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" >&2;} |
| 11838 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11839 | elif test ! -d $IPPSAMPLES; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11840 | { { echo "$as_me:$LINENO: error: not found" >&5 |
| 11841 | echo "$as_me: error: not found" >&2;} |
| 11842 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11843 | elif test ! -d $IPPSAMPLES/speech-codecs; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11844 | { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5 |
| 11845 | echo "$as_me: error: directory doesn't seem to be valid" >&2;} |
| 11846 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11847 | else |
| 11848 | # Remove trailing backslash |
| 11849 | IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'` |
| 11850 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11851 | # Guess the libusc.a/libspeech.a build location |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11852 | { echo "$as_me:$LINENO: checking Intel IPP USC build location" >&5 |
| 11853 | echo $ECHO_N "checking Intel IPP USC build location... $ECHO_C" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11854 | if test -d $IPPSAMPLES/speech-codecs/bin; then |
| 11855 | IPPVER=5 |
| 11856 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` |
| 11857 | elif test -d $IPPSAMPLES/speech-codecs/_bin; then |
| 11858 | IPPVER=6 |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 11859 | if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then |
| 11860 | # gcc compiler |
| 11861 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1` |
| 11862 | elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then |
| 11863 | # icc compiler |
| 11864 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1` |
| 11865 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11866 | { { echo "$as_me:$LINENO: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? |
| 11867 | See \`config.log' for more details." >&5 |
| 11868 | echo "$as_me: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? |
| 11869 | See \`config.log' for more details." >&2;} |
| 11870 | { (exit 1); exit 1; }; } |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 11871 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11872 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11873 | { { echo "$as_me:$LINENO: error: unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples? |
| 11874 | See \`config.log' for more details." >&5 |
| 11875 | echo "$as_me: error: unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples? |
| 11876 | See \`config.log' for more details." >&2;} |
| 11877 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11878 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11879 | |
| 11880 | # Test the directory |
| 11881 | if test ! -d $IPPSAMP_DIR; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11882 | { { echo "$as_me:$LINENO: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist |
| 11883 | See \`config.log' for more details." >&5 |
| 11884 | echo "$as_me: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist |
| 11885 | See \`config.log' for more details." >&2;} |
| 11886 | { (exit 1); exit 1; }; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11887 | exit 1; |
| 11888 | fi |
| 11889 | |
| 11890 | if test "x$IPPVER" = "x5"; then |
| 11891 | IPPSAMP_LIBS="libusc.a" |
| 11892 | IPPSAMP_LDLIBS="-lusc" |
| 11893 | elif test "x$IPPVER" = "x6"; then |
| 11894 | IPPSAMP_LIBS="libspeech.a" |
| 11895 | IPPSAMP_LDLIBS="-lspeech" |
| 11896 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11897 | { { echo "$as_me:$LINENO: error: bug in this script: unsupported IPP version |
| 11898 | See \`config.log' for more details." >&5 |
| 11899 | echo "$as_me: error: bug in this script: unsupported IPP version |
| 11900 | See \`config.log' for more details." >&2;} |
| 11901 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11902 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11903 | |
| 11904 | if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11905 | { { echo "$as_me:$LINENO: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR |
| 11906 | See \`config.log' for more details." >&5 |
| 11907 | echo "$as_me: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR |
| 11908 | See \`config.log' for more details." >&2;} |
| 11909 | { (exit 1); exit 1; }; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11910 | fi |
| 11911 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11912 | { echo "$as_me:$LINENO: result: $IPPSAMP_DIR" >&5 |
| 11913 | echo "${ECHO_T}$IPPSAMP_DIR" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11914 | |
| 11915 | SAVED_CFLAGS="$CFLAGS" |
| 11916 | SAVED_LDFLAGS="$LDFLAGS" |
| 11917 | SAVED_LIBS="$LIBS" |
| 11918 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11919 | IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include" |
| 11920 | CFLAGS="$CFLAGS $IPPSAMP_INC" |
| 11921 | LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR" |
| 11922 | LIBS="$IPPSAMP_LDLIBS $LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11923 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11924 | { echo "$as_me:$LINENO: checking Intel IPP USC usability" >&5 |
| 11925 | echo $ECHO_N "checking Intel IPP USC usability... $ECHO_C" >&6; } |
| 11926 | cat >conftest.$ac_ext <<_ACEOF |
| 11927 | /* confdefs.h. */ |
| 11928 | _ACEOF |
| 11929 | cat confdefs.h >>conftest.$ac_ext |
| 11930 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11931 | /* end confdefs.h. */ |
| 11932 | #include <usc.h> |
| 11933 | |
| 11934 | int |
| 11935 | main () |
| 11936 | { |
| 11937 | extern USC_Fxns USC_G729AFP_Fxns; |
| 11938 | ; |
| 11939 | return 0; |
| 11940 | } |
| 11941 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11942 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11943 | if { (ac_try="$ac_link" |
| 11944 | case "(($ac_try" in |
| 11945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11946 | *) ac_try_echo=$ac_try;; |
| 11947 | esac |
| 11948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11949 | (eval "$ac_link") 2>conftest.er1 |
| 11950 | ac_status=$? |
| 11951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11952 | rm -f conftest.er1 |
| 11953 | cat conftest.err >&5 |
| 11954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11955 | (exit $ac_status); } && { |
| 11956 | test -z "$ac_c_werror_flag" || |
| 11957 | test ! -s conftest.err |
| 11958 | } && test -s conftest$ac_exeext && |
| 11959 | $as_test_x conftest$ac_exeext; then |
| 11960 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 11961 | echo "${ECHO_T}ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11962 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11963 | echo "$as_me: failed program was:" >&5 |
| 11964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11965 | |
| 11966 | { { echo "$as_me:$LINENO: error: failed |
| 11967 | See \`config.log' for more details." >&5 |
| 11968 | echo "$as_me: error: failed |
| 11969 | See \`config.log' for more details." >&2;} |
| 11970 | { (exit 1); exit 1; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11971 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11972 | |
| 11973 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11974 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11975 | |
| 11976 | CFLAGS="$SAVED_CFLAGS" |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11977 | LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS" |
| 11978 | LIBS="$IPP_LIBS $SAVED_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11979 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11980 | IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC" |
| 11981 | IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR" |
| 11982 | IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11983 | fi |
| 11984 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 11985 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 11986 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 11987 | LIBS="$LIBS $IPP_LIBS" |
| 11988 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11989 | ac_build_mak_vars="$ac_build_mak_vars\n\ |
| 11990 | export IPP_CFLAGS=$IPP_CFLAGS\n\ |
| 11991 | export IPP_LDFLAGS=$IPP_LDFLAGS\n\ |
| 11992 | export IPP_LIBS=$IPP_LIBS" |
| 11993 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 11994 | { echo "$as_me:$LINENO: result: Skipping Intel IPP settings (not wanted)" >&5 |
| 11995 | echo "${ECHO_T}Skipping Intel IPP settings (not wanted)" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 11996 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11997 | |
| 11998 | |
| 11999 | |
| 12000 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12001 | # Check whether --enable-ssl was given. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12002 | if test "${enable_ssl+set}" = set; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12003 | enableval=$enable_ssl; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12004 | if test "$enable_ssl" = "no"; then |
| 12005 | ac_no_ssl=1 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12006 | { echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5 |
| 12007 | echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12008 | fi |
| 12009 | |
| 12010 | else |
| 12011 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12012 | { echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5 |
| 12013 | echo "${ECHO_T}checking for OpenSSL installations.." >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12014 | |
| 12015 | |
| 12016 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12017 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 12018 | { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 12019 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } |
| 12020 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 12021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12022 | fi |
| 12023 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 12024 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } |
| 12025 | else |
| 12026 | # Is the header compilable? |
| 12027 | { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 |
| 12028 | echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; } |
| 12029 | cat >conftest.$ac_ext <<_ACEOF |
| 12030 | /* confdefs.h. */ |
| 12031 | _ACEOF |
| 12032 | cat confdefs.h >>conftest.$ac_ext |
| 12033 | cat >>conftest.$ac_ext <<_ACEOF |
| 12034 | /* end confdefs.h. */ |
| 12035 | $ac_includes_default |
| 12036 | #include <openssl/ssl.h> |
| 12037 | _ACEOF |
| 12038 | rm -f conftest.$ac_objext |
| 12039 | if { (ac_try="$ac_compile" |
| 12040 | case "(($ac_try" in |
| 12041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12042 | *) ac_try_echo=$ac_try;; |
| 12043 | esac |
| 12044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12045 | (eval "$ac_compile") 2>conftest.er1 |
| 12046 | ac_status=$? |
| 12047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12048 | rm -f conftest.er1 |
| 12049 | cat conftest.err >&5 |
| 12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12051 | (exit $ac_status); } && { |
| 12052 | test -z "$ac_c_werror_flag" || |
| 12053 | test ! -s conftest.err |
| 12054 | } && test -s conftest.$ac_objext; then |
| 12055 | ac_header_compiler=yes |
| 12056 | else |
| 12057 | echo "$as_me: failed program was:" >&5 |
| 12058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12059 | |
| 12060 | ac_header_compiler=no |
| 12061 | fi |
| 12062 | |
| 12063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12064 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12065 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12066 | |
| 12067 | # Is the header present? |
| 12068 | { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 |
| 12069 | echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; } |
| 12070 | cat >conftest.$ac_ext <<_ACEOF |
| 12071 | /* confdefs.h. */ |
| 12072 | _ACEOF |
| 12073 | cat confdefs.h >>conftest.$ac_ext |
| 12074 | cat >>conftest.$ac_ext <<_ACEOF |
| 12075 | /* end confdefs.h. */ |
| 12076 | #include <openssl/ssl.h> |
| 12077 | _ACEOF |
| 12078 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12079 | case "(($ac_try" in |
| 12080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12081 | *) ac_try_echo=$ac_try;; |
| 12082 | esac |
| 12083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12084 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12085 | ac_status=$? |
| 12086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12087 | rm -f conftest.er1 |
| 12088 | cat conftest.err >&5 |
| 12089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12090 | (exit $ac_status); } >/dev/null && { |
| 12091 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 12092 | test ! -s conftest.err |
| 12093 | }; then |
| 12094 | ac_header_preproc=yes |
| 12095 | else |
| 12096 | echo "$as_me: failed program was:" >&5 |
| 12097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12098 | |
| 12099 | ac_header_preproc=no |
| 12100 | fi |
| 12101 | |
| 12102 | rm -f conftest.err conftest.$ac_ext |
| 12103 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12104 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12105 | |
| 12106 | # So? What about this header? |
| 12107 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12108 | yes:no: ) |
| 12109 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12110 | echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12111 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 |
| 12112 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} |
| 12113 | ac_header_preproc=yes |
| 12114 | ;; |
| 12115 | no:yes:* ) |
| 12116 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 |
| 12117 | echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} |
| 12118 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 |
| 12119 | echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} |
| 12120 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 |
| 12121 | echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} |
| 12122 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12123 | echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12124 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 |
| 12125 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} |
| 12126 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 |
| 12127 | echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} |
| 12128 | |
| 12129 | ;; |
| 12130 | esac |
| 12131 | { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 12132 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } |
| 12133 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 12134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12135 | else |
| 12136 | ac_cv_header_openssl_ssl_h=$ac_header_preproc |
| 12137 | fi |
| 12138 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 12139 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } |
| 12140 | |
| 12141 | fi |
| 12142 | if test $ac_cv_header_openssl_ssl_h = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12143 | openssl_h_present=1 |
| 12144 | fi |
| 12145 | |
| 12146 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12147 | { echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 12148 | echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6; } |
| 12149 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then |
| 12150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12151 | else |
| 12152 | ac_check_lib_save_LIBS=$LIBS |
| 12153 | LIBS="-lcrypto $LIBS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12154 | cat >conftest.$ac_ext <<_ACEOF |
| 12155 | /* confdefs.h. */ |
| 12156 | _ACEOF |
| 12157 | cat confdefs.h >>conftest.$ac_ext |
| 12158 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12159 | /* end confdefs.h. */ |
| 12160 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12161 | /* Override any GCC internal prototype to avoid an error. |
| 12162 | Use char because int might match the return type of a GCC |
| 12163 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12164 | #ifdef __cplusplus |
| 12165 | extern "C" |
| 12166 | #endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12167 | char ERR_load_BIO_strings (); |
| 12168 | int |
| 12169 | main () |
| 12170 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12171 | return ERR_load_BIO_strings (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12172 | ; |
| 12173 | return 0; |
| 12174 | } |
| 12175 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12176 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12177 | if { (ac_try="$ac_link" |
| 12178 | case "(($ac_try" in |
| 12179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12180 | *) ac_try_echo=$ac_try;; |
| 12181 | esac |
| 12182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12183 | (eval "$ac_link") 2>conftest.er1 |
| 12184 | ac_status=$? |
| 12185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12186 | rm -f conftest.er1 |
| 12187 | cat conftest.err >&5 |
| 12188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12189 | (exit $ac_status); } && { |
| 12190 | test -z "$ac_c_werror_flag" || |
| 12191 | test ! -s conftest.err |
| 12192 | } && test -s conftest$ac_exeext && |
| 12193 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12194 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 12195 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12196 | echo "$as_me: failed program was:" >&5 |
| 12197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12198 | |
| 12199 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12200 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12201 | |
| 12202 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12203 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12204 | LIBS=$ac_check_lib_save_LIBS |
| 12205 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12206 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 12207 | echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; } |
| 12208 | if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12209 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 12210 | fi |
| 12211 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12212 | { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 |
| 12213 | echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; } |
| 12214 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then |
| 12215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 12216 | else |
| 12217 | ac_check_lib_save_LIBS=$LIBS |
| 12218 | LIBS="-lssl $LIBS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12219 | cat >conftest.$ac_ext <<_ACEOF |
| 12220 | /* confdefs.h. */ |
| 12221 | _ACEOF |
| 12222 | cat confdefs.h >>conftest.$ac_ext |
| 12223 | cat >>conftest.$ac_ext <<_ACEOF |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 12224 | /* end confdefs.h. */ |
| 12225 | |
| 12226 | /* Override any GCC internal prototype to avoid an error. |
| 12227 | Use char because int might match the return type of a GCC |
| 12228 | builtin and then its argument prototype would still apply. */ |
| 12229 | #ifdef __cplusplus |
| 12230 | extern "C" |
| 12231 | #endif |
| 12232 | char SSL_library_init (); |
| 12233 | int |
| 12234 | main () |
| 12235 | { |
| 12236 | return SSL_library_init (); |
| 12237 | ; |
| 12238 | return 0; |
| 12239 | } |
| 12240 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12241 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12242 | if { (ac_try="$ac_link" |
| 12243 | case "(($ac_try" in |
| 12244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12245 | *) ac_try_echo=$ac_try;; |
| 12246 | esac |
| 12247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12248 | (eval "$ac_link") 2>conftest.er1 |
| 12249 | ac_status=$? |
| 12250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12251 | rm -f conftest.er1 |
| 12252 | cat conftest.err >&5 |
| 12253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12254 | (exit $ac_status); } && { |
| 12255 | test -z "$ac_c_werror_flag" || |
| 12256 | test ! -s conftest.err |
| 12257 | } && test -s conftest$ac_exeext && |
| 12258 | $as_test_x conftest$ac_exeext; then |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 12259 | ac_cv_lib_ssl_SSL_library_init=yes |
| 12260 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12261 | echo "$as_me: failed program was:" >&5 |
| 12262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12263 | |
| 12264 | ac_cv_lib_ssl_SSL_library_init=no |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 12265 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12266 | |
| 12267 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12268 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 12269 | LIBS=$ac_check_lib_save_LIBS |
| 12270 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12271 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 12272 | echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; } |
| 12273 | if test $ac_cv_lib_ssl_SSL_library_init = yes; then |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 12274 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 12275 | fi |
| 12276 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12277 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12278 | { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5 |
| 12279 | echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; } |
Nanang Izzuddin | 9c7616f | 2009-10-28 06:09:15 +0000 | [diff] [blame] | 12280 | # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK |
| 12281 | #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12282 | cat >>confdefs.h <<\_ACEOF |
| 12283 | #define PJ_HAS_SSL_SOCK 1 |
| 12284 | _ACEOF |
Nanang Izzuddin | ea6d3c4 | 2009-10-26 15:47:52 +0000 | [diff] [blame] | 12285 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12286 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12287 | { echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 12288 | echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12289 | fi |
| 12290 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12291 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12292 | |
| 12293 | |
| 12294 | |
| 12295 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12296 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12297 | { echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5 |
| 12298 | echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12299 | case $target in |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12300 | *rtems*) cat >>confdefs.h <<\_ACEOF |
| 12301 | #define PJ_SELECT_NEEDS_NFDS 1 |
| 12302 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12303 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12304 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12305 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12306 | ;; |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12307 | *) cat >>confdefs.h <<\_ACEOF |
| 12308 | #define PJ_SELECT_NEEDS_NFDS 0 |
| 12309 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12310 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12311 | { echo "$as_me:$LINENO: result: no (default)" >&5 |
| 12312 | echo "${ECHO_T}no (default)" >&6; } |
| 12313 | { echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
| 12314 | echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12315 | ;; |
| 12316 | esac |
| 12317 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12318 | { echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5 |
| 12319 | echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12320 | case $target in |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12321 | *rtems*) cat >>confdefs.h <<\_ACEOF |
| 12322 | #define PJ_THREAD_SET_STACK_SIZE 1 |
| 12323 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12324 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12325 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12326 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12327 | ;; |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12328 | *) cat >>confdefs.h <<\_ACEOF |
| 12329 | #define PJ_THREAD_SET_STACK_SIZE 0 |
| 12330 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12331 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12332 | { echo "$as_me:$LINENO: result: no (default)" >&5 |
| 12333 | echo "${ECHO_T}no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12334 | ;; |
| 12335 | esac |
| 12336 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12337 | { echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5 |
| 12338 | echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12339 | case $target in |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12340 | *rtems*) cat >>confdefs.h <<\_ACEOF |
| 12341 | #define PJ_THREAD_ALLOCATE_STACK 1 |
| 12342 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12343 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12344 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12345 | echo "${ECHO_T}yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12346 | ;; |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12347 | *) cat >>confdefs.h <<\_ACEOF |
| 12348 | #define PJ_THREAD_ALLOCATE_STACK 0 |
| 12349 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12350 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12351 | { echo "$as_me:$LINENO: result: no (default)" >&5 |
| 12352 | echo "${ECHO_T}no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12353 | ;; |
| 12354 | esac |
| 12355 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12356 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 12357 | *mingw* | *cygw* | *win32* | *w32* ) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12358 | cat >>confdefs.h <<\_ACEOF |
| 12359 | #define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK |
| 12360 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12361 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 12362 | ;; |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12363 | *) cat >>confdefs.h <<\_ACEOF |
| 12364 | #define PJ_BLOCKING_ERROR_VAL EAGAIN |
| 12365 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 12366 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12367 | { echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
| 12368 | echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12369 | ;; |
| 12370 | esac |
| 12371 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12372 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 12373 | *mingw* | *cygw* | *win32* | *w32* ) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12374 | cat >>confdefs.h <<\_ACEOF |
| 12375 | #define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK |
| 12376 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12377 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 12378 | ;; |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12379 | *) cat >>confdefs.h <<\_ACEOF |
| 12380 | #define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS |
| 12381 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 12382 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12383 | { echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
| 12384 | echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12385 | ;; |
| 12386 | esac |
| 12387 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12388 | |
| 12389 | |
| 12390 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12391 | if test "$build" = "$host"; then |
| 12392 | ac_cross_compile= |
| 12393 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 12394 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12395 | fi |
| 12396 | ac_linux_poll=select |
| 12397 | |
| 12398 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12399 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12400 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12401 | case $target in |
| 12402 | *rtems*) |
| 12403 | ac_main_obj=main_rtems.o |
| 12404 | ;; |
| 12405 | *) |
| 12406 | ac_main_obj=main.o |
| 12407 | ;; |
| 12408 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12409 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 12410 | |
| 12411 | ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12412 | cat >confcache <<\_ACEOF |
| 12413 | # This file is a shell script that caches the results of configure |
| 12414 | # tests run on this system so they can be shared between configure |
| 12415 | # scripts and configure runs, see configure's option --config-cache. |
| 12416 | # It is not useful on other systems. If it contains results you don't |
| 12417 | # want to keep, you may remove or edit it. |
| 12418 | # |
| 12419 | # config.status only pays attention to the cache file if you give it |
| 12420 | # the --recheck option to rerun configure. |
| 12421 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12422 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12423 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 12424 | # following values. |
| 12425 | |
| 12426 | _ACEOF |
| 12427 | |
| 12428 | # The following way of writing the cache mishandles newlines in values, |
| 12429 | # but we know of no workaround that is simple, portable, and efficient. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12430 | # So, we kill variables containing newlines. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12431 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 12432 | # and sets the high bit in the cache file unless we assign to the vars. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12433 | ( |
| 12434 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 12435 | eval ac_val=\$$ac_var |
| 12436 | case $ac_val in #( |
| 12437 | *${as_nl}*) |
| 12438 | case $ac_var in #( |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12439 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 12440 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12441 | esac |
| 12442 | case $ac_var in #( |
| 12443 | _ | IFS | as_nl) ;; #( |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12444 | *) $as_unset $ac_var ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12445 | esac ;; |
| 12446 | esac |
| 12447 | done |
| 12448 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12449 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12450 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 12451 | *${as_nl}ac_space=\ *) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12452 | # `set' does not quote correctly, so add quotes (double-quote |
| 12453 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12454 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12455 | "s/'/'\\\\''/g; |
| 12456 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12457 | ;; #( |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12458 | *) |
| 12459 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12460 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12461 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12462 | esac | |
| 12463 | sort |
| 12464 | ) | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12465 | sed ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12466 | /^ac_cv_env_/b end |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12467 | t clear |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12468 | :clear |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12469 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 12470 | t end |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12471 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 12472 | :end' >>confcache |
| 12473 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 12474 | if test -w "$cache_file"; then |
| 12475 | test "x$cache_file" != "x/dev/null" && |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12476 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 12477 | echo "$as_me: updating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12478 | cat confcache >$cache_file |
| 12479 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12480 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 12481 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12482 | fi |
| 12483 | fi |
| 12484 | rm -f confcache |
| 12485 | |
| 12486 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 12487 | # Let make expand exec_prefix. |
| 12488 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 12489 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12490 | DEFS=-DHAVE_CONFIG_H |
| 12491 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12492 | ac_libobjs= |
| 12493 | ac_ltlibobjs= |
| 12494 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 12495 | # 1. Remove the extension, and $U if already installed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12496 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12497 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12498 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 12499 | # will be set to the directory where LIBOBJS objects are built. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12500 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 12501 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12502 | done |
| 12503 | LIBOBJS=$ac_libobjs |
| 12504 | |
| 12505 | LTLIBOBJS=$ac_ltlibobjs |
| 12506 | |
| 12507 | |
| 12508 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12509 | : ${CONFIG_STATUS=./config.status} |
| 12510 | ac_clean_files_save=$ac_clean_files |
| 12511 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12512 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 12513 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 12514 | cat >$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12515 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12516 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12517 | # Run this file to recreate the current configuration. |
| 12518 | # Compiler output produced by configure, useful for debugging |
| 12519 | # configure, is in config.log if it exists. |
| 12520 | |
| 12521 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12522 | ac_cs_recheck=false |
| 12523 | ac_cs_silent=false |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 12524 | SHELL=\${CONFIG_SHELL-$SHELL} |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12525 | _ACEOF |
| 12526 | |
| 12527 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12528 | ## --------------------- ## |
| 12529 | ## M4sh Initialization. ## |
| 12530 | ## --------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12531 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12532 | # Be more Bourne compatible |
| 12533 | DUALCASE=1; export DUALCASE # for MKS sh |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12534 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12535 | emulate sh |
| 12536 | NULLCMD=: |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12537 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12538 | # is contrary to our usage. Disable this feature. |
| 12539 | alias -g '${1+"$@"}'='"$@"' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12540 | setopt NO_GLOB_SUBST |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12541 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12542 | case `(set -o) 2>/dev/null` in |
| 12543 | *posix*) set -o posix ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12544 | esac |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12545 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12546 | fi |
| 12547 | |
| 12548 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12549 | |
| 12550 | |
| 12551 | # PATH needs CR |
| 12552 | # Avoid depending upon Character Ranges. |
| 12553 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 12554 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 12555 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 12556 | as_cr_digits='0123456789' |
| 12557 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 12558 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12559 | # The user is always right. |
| 12560 | if test "${PATH_SEPARATOR+set}" != set; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12561 | echo "#! /bin/sh" >conf$$.sh |
| 12562 | echo "exit 0" >>conf$$.sh |
| 12563 | chmod +x conf$$.sh |
| 12564 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 12565 | PATH_SEPARATOR=';' |
| 12566 | else |
| 12567 | PATH_SEPARATOR=: |
| 12568 | fi |
| 12569 | rm -f conf$$.sh |
| 12570 | fi |
| 12571 | |
| 12572 | # Support unset when possible. |
| 12573 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 12574 | as_unset=unset |
| 12575 | else |
| 12576 | as_unset=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12577 | fi |
| 12578 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12579 | |
| 12580 | # IFS |
| 12581 | # We need space, tab and new line, in precisely that order. Quoting is |
| 12582 | # there to prevent editors from complaining about space-tab. |
| 12583 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 12584 | # splitting by setting IFS to empty value.) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12585 | as_nl=' |
| 12586 | ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12587 | IFS=" "" $as_nl" |
| 12588 | |
| 12589 | # Find who we are. Look in the path if we contain no directory separator. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12590 | case $0 in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12591 | *[\\/]* ) as_myself=$0 ;; |
| 12592 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12593 | for as_dir in $PATH |
| 12594 | do |
| 12595 | IFS=$as_save_IFS |
| 12596 | test -z "$as_dir" && as_dir=. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12597 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 12598 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12599 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12600 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12601 | ;; |
| 12602 | esac |
| 12603 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 12604 | # in which case we are not to be found in the path. |
| 12605 | if test "x$as_myself" = x; then |
| 12606 | as_myself=$0 |
| 12607 | fi |
| 12608 | if test ! -f "$as_myself"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12609 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 12610 | { (exit 1); exit 1; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12611 | fi |
| 12612 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12613 | # Work around bugs in pre-3.0 UWIN ksh. |
| 12614 | for as_var in ENV MAIL MAILPATH |
| 12615 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12616 | done |
| 12617 | PS1='$ ' |
| 12618 | PS2='> ' |
| 12619 | PS4='+ ' |
| 12620 | |
| 12621 | # NLS nuisances. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12622 | for as_var in \ |
| 12623 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 12624 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 12625 | LC_TELEPHONE LC_TIME |
| 12626 | do |
| 12627 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 12628 | eval $as_var=C; export $as_var |
| 12629 | else |
| 12630 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 12631 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12632 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 12633 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12634 | # Required to use basename. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12635 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 12636 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 12637 | as_expr=expr |
| 12638 | else |
| 12639 | as_expr=false |
| 12640 | fi |
| 12641 | |
| 12642 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 12643 | as_basename=basename |
| 12644 | else |
| 12645 | as_basename=false |
| 12646 | fi |
| 12647 | |
| 12648 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12649 | # Name of the executable. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12650 | as_me=`$as_basename -- "$0" || |
| 12651 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 12652 | X"$0" : 'X\(//\)$' \| \ |
| 12653 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12654 | echo X/"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12655 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 12656 | s//\1/ |
| 12657 | q |
| 12658 | } |
| 12659 | /^X\/\(\/\/\)$/{ |
| 12660 | s//\1/ |
| 12661 | q |
| 12662 | } |
| 12663 | /^X\/\(\/\).*/{ |
| 12664 | s//\1/ |
| 12665 | q |
| 12666 | } |
| 12667 | s/.*/./; q'` |
| 12668 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12669 | # CDPATH. |
| 12670 | $as_unset CDPATH |
| 12671 | |
| 12672 | |
| 12673 | |
| 12674 | as_lineno_1=$LINENO |
| 12675 | as_lineno_2=$LINENO |
| 12676 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 12677 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 12678 | |
| 12679 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 12680 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 12681 | # line-number line after each line using $LINENO; the second 'sed' |
| 12682 | # does the real work. The second script uses 'N' to pair each |
| 12683 | # line-number line with the line containing $LINENO, and appends |
| 12684 | # trailing '-' during substitution so that $LINENO is not a special |
| 12685 | # case at line end. |
| 12686 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 12687 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 12688 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 12689 | sed -n ' |
| 12690 | p |
| 12691 | /[$]LINENO/= |
| 12692 | ' <$as_myself | |
| 12693 | sed ' |
| 12694 | s/[$]LINENO.*/&-/ |
| 12695 | t lineno |
| 12696 | b |
| 12697 | :lineno |
| 12698 | N |
| 12699 | :loop |
| 12700 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 12701 | t loop |
| 12702 | s/-\n.*// |
| 12703 | ' >$as_me.lineno && |
| 12704 | chmod +x "$as_me.lineno" || |
| 12705 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 12706 | { (exit 1); exit 1; }; } |
| 12707 | |
| 12708 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 12709 | # (the dirname of $[0] is not the place where we might find the |
| 12710 | # original and so on. Autoconf is especially sensitive to this). |
| 12711 | . "./$as_me.lineno" |
| 12712 | # Exit status is that of the last command. |
| 12713 | exit |
| 12714 | } |
| 12715 | |
| 12716 | |
| 12717 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 12718 | as_dirname=dirname |
| 12719 | else |
| 12720 | as_dirname=false |
| 12721 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12722 | |
| 12723 | ECHO_C= ECHO_N= ECHO_T= |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12724 | case `echo -n x` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12725 | -n*) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12726 | case `echo 'x\c'` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12727 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12728 | *) ECHO_C='\c';; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12729 | esac;; |
| 12730 | *) |
| 12731 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12732 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12733 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12734 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 12735 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 12736 | as_expr=expr |
| 12737 | else |
| 12738 | as_expr=false |
| 12739 | fi |
| 12740 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12741 | rm -f conf$$ conf$$.exe conf$$.file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12742 | if test -d conf$$.dir; then |
| 12743 | rm -f conf$$.dir/conf$$.file |
| 12744 | else |
| 12745 | rm -f conf$$.dir |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12746 | mkdir conf$$.dir |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12747 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12748 | echo >conf$$.file |
| 12749 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 12750 | as_ln_s='ln -s' |
| 12751 | # ... but there are two gotchas: |
| 12752 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 12753 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 12754 | # In both cases, we have to default to `cp -p'. |
| 12755 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12756 | as_ln_s='cp -p' |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12757 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 12758 | as_ln_s=ln |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12759 | else |
| 12760 | as_ln_s='cp -p' |
| 12761 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12762 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 12763 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12764 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12765 | if mkdir -p . 2>/dev/null; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12766 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 12767 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12768 | test -d ./-p && rmdir ./-p |
| 12769 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 12770 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 12771 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12772 | if test -x / >/dev/null 2>&1; then |
| 12773 | as_test_x='test -x' |
| 12774 | else |
| 12775 | if ls -dL / >/dev/null 2>&1; then |
| 12776 | as_ls_L_option=L |
| 12777 | else |
| 12778 | as_ls_L_option= |
| 12779 | fi |
| 12780 | as_test_x=' |
| 12781 | eval sh -c '\'' |
| 12782 | if test -d "$1"; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12783 | test -d "$1/."; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12784 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12785 | case $1 in |
| 12786 | -*)set "./$1";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12787 | esac; |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12788 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12789 | ???[sx]*):;;*)false;;esac;fi |
| 12790 | '\'' sh |
| 12791 | ' |
| 12792 | fi |
| 12793 | as_executable_p=$as_test_x |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12794 | |
| 12795 | # Sed expression to map a string onto a valid CPP name. |
| 12796 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 12797 | |
| 12798 | # Sed expression to map a string onto a valid variable name. |
| 12799 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 12800 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12801 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12802 | exec 6>&1 |
| 12803 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12804 | # Save the log message, to keep $[0] and so on meaningful, and to |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12805 | # report actual input values of CONFIG_FILES etc. instead of their |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12806 | # values after options handling. |
| 12807 | ac_log=" |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 12808 | This file was extended by pjproject $as_me 1.x, which was |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12809 | generated by GNU Autoconf 2.61. Invocation command line was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12810 | |
| 12811 | CONFIG_FILES = $CONFIG_FILES |
| 12812 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 12813 | CONFIG_LINKS = $CONFIG_LINKS |
| 12814 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 12815 | $ $0 $@ |
| 12816 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12817 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 12818 | " |
| 12819 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12820 | _ACEOF |
| 12821 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12822 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12823 | # Files that config.status was made for. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12824 | config_files="$ac_config_files" |
| 12825 | config_headers="$ac_config_headers" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12826 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12827 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12828 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12829 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12830 | ac_cs_usage="\ |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12831 | \`$as_me' instantiates files from templates according to the |
| 12832 | current configuration. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12833 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12834 | Usage: $0 [OPTIONS] [FILE]... |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12835 | |
| 12836 | -h, --help print this help, then exit |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12837 | -V, --version print version number and configuration settings, then exit |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12838 | -q, --quiet do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12839 | -d, --debug don't remove temporary files |
| 12840 | --recheck update $as_me by reconfiguring in the same conditions |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12841 | --file=FILE[:TEMPLATE] |
| 12842 | instantiate the configuration file FILE |
| 12843 | --header=FILE[:TEMPLATE] |
| 12844 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12845 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12846 | Configuration files: |
| 12847 | $config_files |
| 12848 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12849 | Configuration headers: |
| 12850 | $config_headers |
| 12851 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12852 | Report bugs to <bug-autoconf@gnu.org>." |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 12853 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12854 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12855 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12856 | ac_cs_version="\\ |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 12857 | pjproject config.status 1.x |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12858 | configured by $0, generated by GNU Autoconf 2.61, |
| 12859 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12860 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12861 | Copyright (C) 2006 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12862 | This config.status script is free software; the Free Software Foundation |
| 12863 | gives unlimited permission to copy, distribute and modify it." |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12864 | |
| 12865 | ac_pwd='$ac_pwd' |
| 12866 | srcdir='$srcdir' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12867 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12868 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12869 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12870 | # If no file are specified by the user, then we need to provide default |
| 12871 | # value. By we need to know if files were specified by the user. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12872 | ac_need_defaults=: |
| 12873 | while test $# != 0 |
| 12874 | do |
| 12875 | case $1 in |
| 12876 | --*=*) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12877 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12878 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12879 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12880 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12881 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12882 | ac_option=$1 |
| 12883 | ac_optarg=$2 |
| 12884 | ac_shift=shift |
| 12885 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12886 | esac |
| 12887 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12888 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12889 | # Handling of the options. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12890 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12891 | ac_cs_recheck=: ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12892 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12893 | echo "$ac_cs_version"; exit ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12894 | --debug | --debu | --deb | --de | --d | -d ) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12895 | debug=: ;; |
| 12896 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12897 | $ac_shift |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12898 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12899 | ac_need_defaults=false;; |
| 12900 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12901 | $ac_shift |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12902 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12903 | ac_need_defaults=false;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12904 | --he | --h) |
| 12905 | # Conflict between --help and --header |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12906 | { echo "$as_me: error: ambiguous option: $1 |
| 12907 | Try \`$0 --help' for more information." >&2 |
| 12908 | { (exit 1); exit 1; }; };; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12909 | --help | --hel | -h ) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12910 | echo "$ac_cs_usage"; exit ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12911 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12912 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12913 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12914 | |
| 12915 | # This is an error. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12916 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 12917 | Try \`$0 --help' for more information." >&2 |
| 12918 | { (exit 1); exit 1; }; } ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12919 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12920 | *) ac_config_targets="$ac_config_targets $1" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12921 | ac_need_defaults=false ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12922 | |
| 12923 | esac |
| 12924 | shift |
| 12925 | done |
| 12926 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12927 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12928 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12929 | if $ac_cs_silent; then |
| 12930 | exec 6>/dev/null |
| 12931 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12932 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12933 | |
| 12934 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12935 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12936 | if \$ac_cs_recheck; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12937 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 12938 | CONFIG_SHELL=$SHELL |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12939 | export CONFIG_SHELL |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12940 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12941 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12942 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12943 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12944 | cat >>$CONFIG_STATUS <<\_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12945 | exec 5>>config.log |
| 12946 | { |
| 12947 | echo |
| 12948 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12949 | ## Running $as_me. ## |
| 12950 | _ASBOX |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12951 | echo "$ac_log" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12952 | } >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12953 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12954 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12955 | cat >>$CONFIG_STATUS <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12956 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12957 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12958 | cat >>$CONFIG_STATUS <<\_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12959 | |
| 12960 | # Handling of arguments. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12961 | for ac_config_target in $ac_config_targets |
| 12962 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12963 | case $ac_config_target in |
| 12964 | "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
| 12965 | "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
| 12966 | "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 12967 | "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
| 12968 | "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
| 12969 | "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 12970 | "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 12971 | "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12972 | "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 12973 | "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 12974 | "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 12975 | "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12976 | "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 12977 | "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12978 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 12979 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 12980 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 12981 | { (exit 1); exit 1; }; };; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12982 | esac |
| 12983 | done |
| 12984 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12985 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12986 | # If the user did not use the arguments to specify the items to instantiate, |
| 12987 | # then the envvar interface is used. Set only those that are not. |
| 12988 | # We use the long form for the default assignment because of an extremely |
| 12989 | # bizarre bug on SunOS 4.1.3. |
| 12990 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 12991 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12992 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 12993 | fi |
| 12994 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12995 | # Have a temporary directory for convenience. Make it in the build tree |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12996 | # simply because there is no reason against having it here, and in addition, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12997 | # creating and moving files from /tmp can sometimes cause problems. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 12998 | # Hook for its removal unless debugging. |
| 12999 | # Note that there is a small window in which the directory will not be cleaned: |
| 13000 | # after its creation but before its name has been assigned to `$tmp'. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13001 | $debug || |
| 13002 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13003 | tmp= |
| 13004 | trap 'exit_status=$? |
| 13005 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 13006 | ' 0 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13007 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13008 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13009 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13010 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13011 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13012 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13013 | test -n "$tmp" && test -d "$tmp" |
| 13014 | } || |
| 13015 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13016 | tmp=./conf$$-$RANDOM |
| 13017 | (umask 077 && mkdir "$tmp") |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13018 | } || |
| 13019 | { |
| 13020 | echo "$me: cannot create a temporary directory in ." >&2 |
| 13021 | { (exit 1); exit 1; } |
| 13022 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13023 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13024 | # |
| 13025 | # Set up the sed scripts for CONFIG_FILES section. |
| 13026 | # |
| 13027 | |
| 13028 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 13029 | # This happens for instance when ./config.status config.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13030 | if test -n "$CONFIG_FILES"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13031 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13032 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13033 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13034 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13035 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13036 | ac_delim='%!_!# ' |
| 13037 | for ac_last_try in false false false false false :; do |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13038 | cat >conf$$subs.sed <<_ACEOF |
| 13039 | SHELL!$SHELL$ac_delim |
| 13040 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 13041 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 13042 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 13043 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 13044 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 13045 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 13046 | exec_prefix!$exec_prefix$ac_delim |
| 13047 | prefix!$prefix$ac_delim |
| 13048 | program_transform_name!$program_transform_name$ac_delim |
| 13049 | bindir!$bindir$ac_delim |
| 13050 | sbindir!$sbindir$ac_delim |
| 13051 | libexecdir!$libexecdir$ac_delim |
| 13052 | datarootdir!$datarootdir$ac_delim |
| 13053 | datadir!$datadir$ac_delim |
| 13054 | sysconfdir!$sysconfdir$ac_delim |
| 13055 | sharedstatedir!$sharedstatedir$ac_delim |
| 13056 | localstatedir!$localstatedir$ac_delim |
| 13057 | includedir!$includedir$ac_delim |
| 13058 | oldincludedir!$oldincludedir$ac_delim |
| 13059 | docdir!$docdir$ac_delim |
| 13060 | infodir!$infodir$ac_delim |
| 13061 | htmldir!$htmldir$ac_delim |
| 13062 | dvidir!$dvidir$ac_delim |
| 13063 | pdfdir!$pdfdir$ac_delim |
| 13064 | psdir!$psdir$ac_delim |
| 13065 | libdir!$libdir$ac_delim |
| 13066 | localedir!$localedir$ac_delim |
| 13067 | mandir!$mandir$ac_delim |
| 13068 | DEFS!$DEFS$ac_delim |
| 13069 | ECHO_C!$ECHO_C$ac_delim |
| 13070 | ECHO_N!$ECHO_N$ac_delim |
| 13071 | ECHO_T!$ECHO_T$ac_delim |
| 13072 | LIBS!$LIBS$ac_delim |
| 13073 | build_alias!$build_alias$ac_delim |
| 13074 | host_alias!$host_alias$ac_delim |
| 13075 | target_alias!$target_alias$ac_delim |
| 13076 | build!$build$ac_delim |
| 13077 | build_cpu!$build_cpu$ac_delim |
| 13078 | build_vendor!$build_vendor$ac_delim |
| 13079 | build_os!$build_os$ac_delim |
| 13080 | host!$host$ac_delim |
| 13081 | host_cpu!$host_cpu$ac_delim |
| 13082 | host_vendor!$host_vendor$ac_delim |
| 13083 | host_os!$host_os$ac_delim |
| 13084 | target!$target$ac_delim |
| 13085 | target_cpu!$target_cpu$ac_delim |
| 13086 | target_vendor!$target_vendor$ac_delim |
| 13087 | target_os!$target_os$ac_delim |
| 13088 | CC!$CC$ac_delim |
| 13089 | CFLAGS!$CFLAGS$ac_delim |
| 13090 | LDFLAGS!$LDFLAGS$ac_delim |
| 13091 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 13092 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 13093 | EXEEXT!$EXEEXT$ac_delim |
| 13094 | OBJEXT!$OBJEXT$ac_delim |
| 13095 | CXX!$CXX$ac_delim |
| 13096 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 13097 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 13098 | AR!$AR$ac_delim |
| 13099 | LD!$LD$ac_delim |
| 13100 | LDOUT!$LDOUT$ac_delim |
| 13101 | RANLIB!$RANLIB$ac_delim |
| 13102 | LIBEXT!$LIBEXT$ac_delim |
| 13103 | LIBEXT2!$LIBEXT2$ac_delim |
| 13104 | CC_OUT!$CC_OUT$ac_delim |
| 13105 | CC_INC!$CC_INC$ac_delim |
| 13106 | CC_DEF!$CC_DEF$ac_delim |
| 13107 | CC_OPTIMIZE!$CC_OPTIMIZE$ac_delim |
| 13108 | CC_CFLAGS!$CC_CFLAGS$ac_delim |
| 13109 | ac_pjdir!$ac_pjdir$ac_delim |
| 13110 | ac_build_mak_vars!$ac_build_mak_vars$ac_delim |
| 13111 | CPP!$CPP$ac_delim |
| 13112 | GREP!$GREP$ac_delim |
| 13113 | EGREP!$EGREP$ac_delim |
| 13114 | ac_os_objs!$ac_os_objs$ac_delim |
| 13115 | ac_external_speex!$ac_external_speex$ac_delim |
| 13116 | ac_external_gsm!$ac_external_gsm$ac_delim |
| 13117 | ac_pjmedia_snd!$ac_pjmedia_snd$ac_delim |
| 13118 | ac_external_pa!$ac_external_pa$ac_delim |
| 13119 | ac_pa_cflags!$ac_pa_cflags$ac_delim |
| 13120 | ac_pa_use_alsa!$ac_pa_use_alsa$ac_delim |
| 13121 | ac_pa_use_oss!$ac_pa_use_oss$ac_delim |
| 13122 | ac_no_small_filter!$ac_no_small_filter$ac_delim |
| 13123 | ac_no_large_filter!$ac_no_large_filter$ac_delim |
| 13124 | ac_no_speex_aec!$ac_no_speex_aec$ac_delim |
| 13125 | ac_no_g711_codec!$ac_no_g711_codec$ac_delim |
| 13126 | ac_no_l16_codec!$ac_no_l16_codec$ac_delim |
| 13127 | ac_no_gsm_codec!$ac_no_gsm_codec$ac_delim |
| 13128 | ac_no_g722_codec!$ac_no_g722_codec$ac_delim |
| 13129 | ac_no_g7221_codec!$ac_no_g7221_codec$ac_delim |
| 13130 | ac_no_speex_codec!$ac_no_speex_codec$ac_delim |
| 13131 | ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim |
| 13132 | ac_no_ssl!$ac_no_ssl$ac_delim |
| 13133 | openssl_h_present!$openssl_h_present$ac_delim |
| 13134 | libssl_present!$libssl_present$ac_delim |
| 13135 | libcrypto_present!$libcrypto_present$ac_delim |
| 13136 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13137 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13138 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13139 | break |
| 13140 | elif $ac_last_try; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13141 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 13142 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 13143 | { (exit 1); exit 1; }; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13144 | else |
| 13145 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13146 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13147 | done |
| 13148 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13149 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 13150 | if test -n "$ac_eof"; then |
| 13151 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 13152 | ac_eof=`expr $ac_eof + 1` |
| 13153 | fi |
| 13154 | |
| 13155 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13156 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 13157 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13158 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13159 | sed ' |
| 13160 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 13161 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 13162 | :n |
| 13163 | t n |
| 13164 | s/'"$ac_delim"'$/,g/; t |
| 13165 | s/$/\\/; p |
| 13166 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 13167 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 13168 | rm -f conf$$subs.sed |
| 13169 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13170 | CEOF$ac_eof |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 13171 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13172 | |
| 13173 | |
| 13174 | ac_delim='%!_!# ' |
| 13175 | for ac_last_try in false false false false false :; do |
| 13176 | cat >conf$$subs.sed <<_ACEOF |
| 13177 | ac_cross_compile!$ac_cross_compile$ac_delim |
| 13178 | ac_linux_poll!$ac_linux_poll$ac_delim |
| 13179 | ac_host!$ac_host$ac_delim |
| 13180 | ac_main_obj!$ac_main_obj$ac_delim |
| 13181 | LIBOBJS!$LIBOBJS$ac_delim |
| 13182 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 13183 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13184 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13185 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then |
| 13186 | break |
| 13187 | elif $ac_last_try; then |
| 13188 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 13189 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 13190 | { (exit 1); exit 1; }; } |
| 13191 | else |
| 13192 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 13193 | fi |
| 13194 | done |
| 13195 | |
| 13196 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 13197 | if test -n "$ac_eof"; then |
| 13198 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 13199 | ac_eof=`expr $ac_eof + 1` |
| 13200 | fi |
| 13201 | |
| 13202 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13203 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 13204 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 13205 | _ACEOF |
| 13206 | sed ' |
| 13207 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 13208 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 13209 | :n |
| 13210 | t n |
| 13211 | s/'"$ac_delim"'$/,g/; t |
| 13212 | s/$/\\/; p |
| 13213 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 13214 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 13215 | rm -f conf$$subs.sed |
| 13216 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13217 | :end |
| 13218 | s/|#_!!_#|//g |
| 13219 | CEOF$ac_eof |
| 13220 | _ACEOF |
| 13221 | |
| 13222 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13223 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 13224 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 13225 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 13226 | # (actually we leave an empty line to preserve line numbers). |
| 13227 | if test "x$srcdir" = x.; then |
| 13228 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 13229 | s/:*\$(srcdir):*/:/ |
| 13230 | s/:*\${srcdir}:*/:/ |
| 13231 | s/:*@srcdir@:*/:/ |
| 13232 | s/^\([^=]*=[ ]*\):*/\1/ |
| 13233 | s/:*$// |
| 13234 | s/^[^=]*=[ ]*$// |
| 13235 | }' |
| 13236 | fi |
| 13237 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13238 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13239 | fi # test -n "$CONFIG_FILES" |
| 13240 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13241 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13242 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13243 | do |
| 13244 | case $ac_tag in |
| 13245 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 13246 | esac |
| 13247 | case $ac_mode$ac_tag in |
| 13248 | :[FHL]*:*);; |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13249 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 13250 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 13251 | { (exit 1); exit 1; }; };; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13252 | :[FH]-) ac_tag=-:-;; |
| 13253 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 13254 | esac |
| 13255 | ac_save_IFS=$IFS |
| 13256 | IFS=: |
| 13257 | set x $ac_tag |
| 13258 | IFS=$ac_save_IFS |
| 13259 | shift |
| 13260 | ac_file=$1 |
| 13261 | shift |
| 13262 | |
| 13263 | case $ac_mode in |
| 13264 | :L) ac_source=$1;; |
| 13265 | :[FH]) |
| 13266 | ac_file_inputs= |
| 13267 | for ac_f |
| 13268 | do |
| 13269 | case $ac_f in |
| 13270 | -) ac_f="$tmp/stdin";; |
| 13271 | *) # Look for the file first in the build tree, then in the source tree |
| 13272 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 13273 | # because $ac_f cannot contain `:'. |
| 13274 | test -f "$ac_f" || |
| 13275 | case $ac_f in |
| 13276 | [\\/$]*) false;; |
| 13277 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 13278 | esac || |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13279 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 13280 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 13281 | { (exit 1); exit 1; }; };; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13282 | esac |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13283 | ac_file_inputs="$ac_file_inputs $ac_f" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13284 | done |
| 13285 | |
| 13286 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 13287 | # use $as_me), people would be surprised to read: |
| 13288 | # /* config.h. Generated by config.status. */ |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13289 | configure_input="Generated from "`IFS=: |
| 13290 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13291 | if test x"$ac_file" != x-; then |
| 13292 | configure_input="$ac_file. $configure_input" |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13293 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 13294 | echo "$as_me: creating $ac_file" >&6;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13295 | fi |
| 13296 | |
| 13297 | case $ac_tag in |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13298 | *:-:* | *:-) cat >"$tmp/stdin";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13299 | esac |
| 13300 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13301 | esac |
| 13302 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13303 | ac_dir=`$as_dirname -- "$ac_file" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13304 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13305 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 13306 | X"$ac_file" : 'X\(//\)$' \| \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13307 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13308 | echo X"$ac_file" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13310 | s//\1/ |
| 13311 | q |
| 13312 | } |
| 13313 | /^X\(\/\/\)[^/].*/{ |
| 13314 | s//\1/ |
| 13315 | q |
| 13316 | } |
| 13317 | /^X\(\/\/\)$/{ |
| 13318 | s//\1/ |
| 13319 | q |
| 13320 | } |
| 13321 | /^X\(\/\).*/{ |
| 13322 | s//\1/ |
| 13323 | q |
| 13324 | } |
| 13325 | s/.*/./; q'` |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13326 | { as_dir="$ac_dir" |
| 13327 | case $as_dir in #( |
| 13328 | -*) as_dir=./$as_dir;; |
| 13329 | esac |
| 13330 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 13331 | as_dirs= |
| 13332 | while :; do |
| 13333 | case $as_dir in #( |
| 13334 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 13335 | *) as_qdir=$as_dir;; |
| 13336 | esac |
| 13337 | as_dirs="'$as_qdir' $as_dirs" |
| 13338 | as_dir=`$as_dirname -- "$as_dir" || |
| 13339 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13340 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13341 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13342 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 13343 | echo X"$as_dir" | |
| 13344 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13345 | s//\1/ |
| 13346 | q |
| 13347 | } |
| 13348 | /^X\(\/\/\)[^/].*/{ |
| 13349 | s//\1/ |
| 13350 | q |
| 13351 | } |
| 13352 | /^X\(\/\/\)$/{ |
| 13353 | s//\1/ |
| 13354 | q |
| 13355 | } |
| 13356 | /^X\(\/\).*/{ |
| 13357 | s//\1/ |
| 13358 | q |
| 13359 | } |
| 13360 | s/.*/./; q'` |
| 13361 | test -d "$as_dir" && break |
| 13362 | done |
| 13363 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 13364 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 13365 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 13366 | { (exit 1); exit 1; }; }; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13367 | ac_builddir=. |
| 13368 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13369 | case "$ac_dir" in |
| 13370 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 13371 | *) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13372 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13373 | # A ".." for each directory in $ac_dir_suffix. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13374 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13375 | case $ac_top_builddir_sub in |
| 13376 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 13377 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 13378 | esac ;; |
| 13379 | esac |
| 13380 | ac_abs_top_builddir=$ac_pwd |
| 13381 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 13382 | # for backward compatibility: |
| 13383 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13384 | |
| 13385 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13386 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13387 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13388 | ac_top_srcdir=$ac_top_builddir_sub |
| 13389 | ac_abs_top_srcdir=$ac_pwd ;; |
| 13390 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13391 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13392 | ac_top_srcdir=$srcdir |
| 13393 | ac_abs_top_srcdir=$srcdir ;; |
| 13394 | *) # Relative name. |
| 13395 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 13396 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 13397 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13398 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13399 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 13400 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 13401 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13402 | case $ac_mode in |
| 13403 | :F) |
| 13404 | # |
| 13405 | # CONFIG_FILE |
| 13406 | # |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 13407 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 13408 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13409 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13410 | cat >>$CONFIG_STATUS <<\_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13411 | # If the template does not know about datarootdir, expand it. |
| 13412 | # FIXME: This hack should be removed a few years after 2.60. |
| 13413 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13414 | |
| 13415 | case `sed -n '/datarootdir/ { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13416 | p |
| 13417 | q |
| 13418 | } |
| 13419 | /@datadir@/p |
| 13420 | /@docdir@/p |
| 13421 | /@infodir@/p |
| 13422 | /@localedir@/p |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13423 | /@mandir@/p |
| 13424 | ' $ac_file_inputs` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13425 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 13426 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13427 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 13428 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13429 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13430 | cat >>$CONFIG_STATUS <<_ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13431 | ac_datarootdir_hack=' |
| 13432 | s&@datadir@&$datadir&g |
| 13433 | s&@docdir@&$docdir&g |
| 13434 | s&@infodir@&$infodir&g |
| 13435 | s&@localedir@&$localedir&g |
| 13436 | s&@mandir@&$mandir&g |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13437 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13438 | esac |
| 13439 | _ACEOF |
| 13440 | |
| 13441 | # Neutralize VPATH when `$srcdir' = `.'. |
| 13442 | # Shell code in configure.ac might set extrasub. |
| 13443 | # FIXME: do we really want to maintain this feature? |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13444 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13445 | sed "$ac_vpsub |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13446 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13447 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13448 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13449 | :t |
| 13450 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13451 | s&@configure_input@&$configure_input&;t t |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13452 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 13453 | s&@srcdir@&$ac_srcdir&;t t |
| 13454 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 13455 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 13456 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 13457 | s&@builddir@&$ac_builddir&;t t |
| 13458 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 13459 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 13460 | $ac_datarootdir_hack |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13461 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 13462 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13463 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 13464 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 13465 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13466 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13467 | which seems to be undefined. Please make sure it is defined." >&5 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13468 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13469 | which seems to be undefined. Please make sure it is defined." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13470 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13471 | rm -f "$tmp/stdin" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13472 | case $ac_file in |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13473 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 13474 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 13475 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13476 | ;; |
| 13477 | :H) |
| 13478 | # |
| 13479 | # CONFIG_HEADER |
| 13480 | # |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13481 | _ACEOF |
| 13482 | |
| 13483 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 13484 | # substitutes the proper values into config.h.in to produce config.h. |
| 13485 | rm -f conftest.defines conftest.tail |
| 13486 | # First, append a space to every undef/define line, to ease matching. |
| 13487 | echo 's/$/ /' >conftest.defines |
| 13488 | # Then, protect against being on the right side of a sed subst, or in |
| 13489 | # an unquoted here document, in config.status. If some macros were |
| 13490 | # called several times there might be several #defines for the same |
| 13491 | # symbol, which is useless. But do not sort them, since the last |
| 13492 | # AC_DEFINE must be honored. |
| 13493 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 13494 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 13495 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 13496 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 13497 | # just an empty string. |
| 13498 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 13499 | ac_dB='\\)[ (].*,\\1define\\2' |
| 13500 | ac_dC=' ' |
| 13501 | ac_dD=' ,' |
| 13502 | |
| 13503 | uniq confdefs.h | |
| 13504 | sed -n ' |
| 13505 | t rset |
| 13506 | :rset |
| 13507 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 13508 | t ok |
| 13509 | d |
| 13510 | :ok |
| 13511 | s/[\\&,]/\\&/g |
| 13512 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 13513 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 13514 | ' >>conftest.defines |
| 13515 | |
| 13516 | # Remove the space that was appended to ease matching. |
| 13517 | # Then replace #undef with comments. This is necessary, for |
| 13518 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 13519 | # on some systems where configure will not decide to define it. |
| 13520 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 13521 | echo 's/ $// |
| 13522 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 13523 | |
| 13524 | # Break up conftest.defines: |
| 13525 | ac_max_sed_lines=50 |
| 13526 | |
| 13527 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 13528 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 13529 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 13530 | # et cetera. |
| 13531 | ac_in='$ac_file_inputs' |
| 13532 | ac_out='"$tmp/out1"' |
| 13533 | ac_nxt='"$tmp/out2"' |
| 13534 | |
| 13535 | while : |
| 13536 | do |
| 13537 | # Write a here document: |
| 13538 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13539 | # First, check the format of the line: |
| 13540 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 13541 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 13542 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 13543 | b |
| 13544 | :def |
| 13545 | _ACEOF |
| 13546 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 13547 | echo 'CEOF |
| 13548 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 13549 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 13550 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 13551 | grep . conftest.tail >/dev/null || break |
| 13552 | rm -f conftest.defines |
| 13553 | mv conftest.tail conftest.defines |
| 13554 | done |
| 13555 | rm -f conftest.defines conftest.tail |
| 13556 | |
| 13557 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 13558 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13559 | if test x"$ac_file" != x-; then |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13560 | echo "/* $configure_input */" >"$tmp/config.h" |
| 13561 | cat "$ac_result" >>"$tmp/config.h" |
| 13562 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 13563 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 13564 | echo "$as_me: $ac_file is unchanged" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13565 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13566 | rm -f $ac_file |
| 13567 | mv "$tmp/config.h" $ac_file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13568 | fi |
| 13569 | else |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13570 | echo "/* $configure_input */" |
| 13571 | cat "$ac_result" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13572 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13573 | rm -f "$tmp/out12" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13574 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13575 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13576 | |
| 13577 | esac |
| 13578 | |
| 13579 | done # for ac_tag |
| 13580 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13581 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13582 | { (exit 0); exit 0; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13583 | _ACEOF |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13584 | chmod +x $CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13585 | ac_clean_files=$ac_clean_files_save |
| 13586 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13587 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13588 | # configure is writing to config.log, and then calls config.status. |
| 13589 | # config.status does its own redirection, appending to config.log. |
| 13590 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 13591 | # by configure, so config.status won't be able to write to it; its |
| 13592 | # output is simply discarded. So we exec the FD to /dev/null, |
| 13593 | # effectively closing config.log, so it can be properly (re)opened and |
| 13594 | # appended to by config.status. When coming back to configure, we |
| 13595 | # need to make the FD available again. |
| 13596 | if test "$no_create" != yes; then |
| 13597 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13598 | ac_config_status_args= |
| 13599 | test "$silent" = yes && |
| 13600 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13601 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13602 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13603 | exec 5>>config.log |
| 13604 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 13605 | # would make configure fail if this is the last instruction. |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13606 | $ac_cs_success || { (exit 1); exit 1; } |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 13607 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 13608 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 13609 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 13610 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13611 | { echo "$as_me:$LINENO: result: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 13612 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 13613 | Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h. |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 13614 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 13615 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 13616 | - 'user.mak' |
| 13617 | - 'pjlib/include/pj/config_site.h' |
| 13618 | |
| 13619 | The next step now is to run 'make dep' and 'make'. |
| 13620 | " >&5 |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 13621 | echo "${ECHO_T} |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 13622 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 13623 | Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h. |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 13624 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 13625 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 13626 | - 'user.mak' |
| 13627 | - 'pjlib/include/pj/config_site.h' |
| 13628 | |
| 13629 | The next step now is to run 'make dep' and 'make'. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 13630 | " >&6; } |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 13631 | |