Changeset 3841
- Timestamp:
- Oct 24, 2011 9:28:13 AM (13 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 78 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk
- Property svn:mergeinfo changed
-
pjproject/trunk/aconfigure
r3827 r3841 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.65 for pjproject 1.x. 4 # 3 # Generated by GNU Autoconf 2.61 for pjproject 1.x. 5 4 # 6 5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 8 # Inc. 9 # 10 # 6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 11 7 # This configure script is free software; the Free Software Foundation 12 8 # gives unlimited permission to copy, distribute and modify it. 13 ## -------------------- ##14 ## M4sh Initialization. ##15 ## -------------------- ##9 ## --------------------- ## 10 ## M4sh Initialization. ## 11 ## --------------------- ## 16 12 17 13 # Be more Bourne compatible 18 14 DUALCASE=1; export DUALCASE # for MKS sh 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20 16 emulate sh 21 17 NULLCMD=: 22 # Pre-4.2 versions of Zsh doword splitting on ${1+"$@"}, which18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23 19 # is contrary to our usage. Disable this feature. 24 20 alias -g '${1+"$@"}'='"$@"' 25 21 setopt NO_GLOB_SUBST 26 22 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25 esac 26 27 fi 28 29 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 73 39 74 40 # The user is always right. 75 41 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 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 81 58 fi 82 59 … … 87 64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 65 # splitting by setting IFS to empty value.) 66 as_nl=' 67 ' 89 68 IFS=" "" $as_nl" 90 69 91 70 # Find who we are. Look in the path if we contain no directory separator. 92 case $0 in #((71 case $0 in 93 72 *[\\/]* ) as_myself=$0 ;; 94 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 97 76 IFS=$as_save_IFS 98 77 test -z "$as_dir" && as_dir=. 99 100 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79 done 101 80 IFS=$as_save_IFS 102 81 … … 109 88 fi 110 89 if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113 fi 114 115 # Unset variables that we do not need and which cause bugs (e.g. in 116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117 # suppresses any "Segmentation fault" message there. '((' could 118 # trigger a bug in pdksh 5.2.14. 119 for as_var in BASH_ENV ENV MAIL MAILPATH 120 do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92 fi 93 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 122 97 done 123 98 PS1='$ ' … … 126 101 127 102 # NLS nuisances. 128 LC_ALL=C 129 export LC_ALL 130 LANGUAGE=C 131 export LANGUAGE 132 133 # CDPATH. 134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136 if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144 else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150 esac 151 fi 152 " 153 as_required="as_fn_return () { (exit \$1); } 154 as_fn_success () { as_fn_return 0; } 155 as_fn_failure () { as_fn_return 1; } 156 as_fn_ret_success () { return 0; } 157 as_fn_ret_failure () { return 1; } 158 159 exitcode=0 160 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166 else 167 exitcode=1; echo positional parameters were not saved. 168 fi 169 test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174 test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177 else 178 as_have_required=no 179 fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182 else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184 as_found=false 185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 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 186 107 do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200 fi 201 fi 202 done;; 203 esac 204 as_found=false 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 205 113 done 206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209 fi; } 210 IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222 fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232 $0: including any error possibly output before this 233 $0: message. Then install a modern shell, or manually run 234 $0: the script under such a shell if you do have one." 235 fi 236 exit 1 237 fi 238 fi 239 fi 240 SHELL=${CONFIG_SHELL-/bin/sh} 241 export SHELL 242 # Unset more variables known to interfere with behavior of common tools. 243 CLICOLOR_FORCE= GREP_OPTIONS= 244 unset CLICOLOR_FORCE GREP_OPTIONS 245 246 ## --------------------- ## 247 ## M4sh Shell Functions. ## 248 ## --------------------- ## 249 # as_fn_unset VAR 250 # --------------- 251 # Portably unset VAR. 252 as_fn_unset () 253 { 254 { eval $1=; unset $1;} 255 } 256 as_unset=as_fn_unset 257 258 # as_fn_set_status STATUS 259 # ----------------------- 260 # Set $? to STATUS, without forking. 261 as_fn_set_status () 262 { 263 return $1 264 } # as_fn_set_status 265 266 # as_fn_exit STATUS 267 # ----------------- 268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269 as_fn_exit () 270 { 271 set +e 272 as_fn_set_status $1 273 exit $1 274 } # as_fn_exit 275 276 # as_fn_mkdir_p 277 # ------------- 278 # Create "$as_dir" as a directory, including parents if necessary. 279 as_fn_mkdir_p () 280 { 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298 $as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 320 321 322 } # as_fn_mkdir_p 323 # as_fn_append VAR VALUE 324 # ---------------------- 325 # Append the text in VALUE to the end of the definition contained in VAR. Take 326 # advantage of any shell optimizations that allow amortized linear growth over 327 # repeated appends, instead of the typical quadratic growth present in naive 328 # implementations. 329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334 else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339 fi # as_fn_append 340 341 # as_fn_arith ARG... 342 # ------------------ 343 # Perform arithmetic evaluation on the ARGs, and store the result in the 344 # global $as_val. Take advantage of shells that can avoid forks. The arguments 345 # must be portable across $(()) and expr. 346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351 else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356 fi # as_fn_arith 357 358 359 # as_fn_error ERROR [LINENO LOG_FD] 360 # --------------------------------- 361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363 # script with status $?, using 1 if that was 0. 364 as_fn_error () 365 { 366 as_status=$?; test $as_status -eq 0 && as_status=1 367 if test "$3"; then 368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 370 fi 371 $as_echo "$as_me: error: $1" >&2 372 as_fn_exit $as_status 373 } # as_fn_error 374 114 115 # Required to use basename. 375 116 if expr a : '\(a\)' >/dev/null 2>&1 && 376 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then … … 386 127 fi 387 128 388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390 else 391 as_dirname=false 392 fi 393 129 130 # Name of the executable. 394 131 as_me=`$as_basename -- "$0" || 395 132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396 133 X"$0" : 'X\(//\)$' \| \ 397 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398 $as_echo X/"$0" |135 echo X/"$0" | 399 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 137 s//\1/ … … 411 148 s/.*/./; q'` 412 149 413 # Avoid depending upon Character Ranges. 414 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417 as_cr_digits='0123456789' 418 as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 150 # CDPATH. 151 $as_unset CDPATH 152 153 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. :-) 426 438 sed -n ' 427 439 p … … 440 452 ' >$as_me.lineno && 441 453 chmod +x "$as_me.lineno" || 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 443 456 444 457 # Don't try to exec as it changes $[0], causing all sort of problems … … 450 463 } 451 464 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 452 472 ECHO_C= ECHO_N= ECHO_T= 453 case `echo -n x` in #(((((473 case `echo -n x` in 454 474 -n*) 455 case `echo 'x y\c'` in475 case `echo 'x\c'` in 456 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 477 *) ECHO_C='\c';; 460 478 esac;; 461 479 *) … … 463 481 esac 464 482 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 465 490 rm -f conf$$ conf$$.exe conf$$.file 466 491 if test -d conf$$.dir; then … … 468 493 else 469 494 rm -f conf$$.dir 470 mkdir conf$$.dir 2>/dev/null 471 fi 472 if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 495 mkdir conf$$.dir 496 fi 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 || 484 505 as_ln_s='cp -p' 485 fi 506 elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 486 508 else 487 509 as_ln_s='cp -p' … … 491 513 492 514 if mkdir -p . 2>/dev/null; then 493 as_mkdir_p= 'mkdir -p "$as_dir"'515 as_mkdir_p=: 494 516 else 495 517 test -d ./-p && rmdir ./-p … … 508 530 eval sh -c '\'' 509 531 if test -d "$1"; then 510 532 test -d "$1/."; 511 533 else 512 case $1 in #(513 534 case $1 in 535 -*)set "./$1";; 514 536 esac; 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 516 538 ???[sx]*):;;*)false;;esac;fi 517 539 '\'' sh … … 527 549 528 550 529 test -n "$DJDIR" || exec 7<&0 </dev/null 530 exec 6>&1551 552 exec 7<&0 </dev/null 6>&1 531 553 532 554 # Name of the host. … … 546 568 MFLAGS= 547 569 MAKEFLAGS= 570 SHELL=${CONFIG_SHELL-/bin/sh} 548 571 549 572 # Identity of this package. … … 553 576 PACKAGE_STRING='pjproject 1.x' 554 577 PACKAGE_BUGREPORT='' 555 PACKAGE_URL=''556 578 557 579 # Factoring default headers for most tests. … … 591 613 #endif" 592 614 593 ac_subst_vars='LTLIBOBJS 615 ac_subst_vars='SHELL 616 PATH_SEPARATOR 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_pjmedia_video 699 ac_pjmedia_video_has_ios 700 ac_ios_cflags 701 ac_pjmedia_video_has_qt 702 ac_qt_cflags 703 ac_no_small_filter 704 ac_no_large_filter 705 ac_no_speex_aec 706 ac_no_g711_codec 707 ac_no_l16_codec 708 ac_no_gsm_codec 709 ac_no_g722_codec 710 ac_no_g7221_codec 711 ac_no_speex_codec 712 ac_no_ilbc_codec 713 ac_sdl_cflags 714 ac_sdl_ldflags 715 ac_has_ffmpeg 716 ac_ffmpeg_cflags 717 ac_ffmpeg_ldflags 718 ac_v4l2_cflags 719 ac_v4l2_ldflags 720 ac_no_ssl 721 openssl_h_present 722 libssl_present 723 libcrypto_present 724 ac_no_opencore_amrnb 725 opencore_amrnb_h_present 726 opencore_amrnb_present 727 ac_cross_compile 728 ac_linux_poll 729 ac_host 730 ac_main_obj 594 731 LIBOBJS 595 ac_main_obj 596 ac_host 597 ac_linux_poll 598 ac_cross_compile 599 libcrypto_present 600 libssl_present 601 openssl_h_present 602 ac_no_ssl 603 ac_v4l2_ldflags 604 ac_v4l2_cflags 605 ac_ffmpeg_ldflags 606 ac_ffmpeg_cflags 607 ac_has_ffmpeg 608 ac_sdl_ldflags 609 ac_sdl_cflags 610 ac_no_ilbc_codec 611 ac_no_speex_codec 612 ac_no_g7221_codec 613 ac_no_g722_codec 614 ac_no_gsm_codec 615 ac_no_l16_codec 616 ac_no_g711_codec 617 ac_no_speex_aec 618 ac_no_large_filter 619 ac_no_small_filter 620 ac_qt_cflags 621 ac_pjmedia_video_has_qt 622 ac_ios_cflags 623 ac_pjmedia_video_has_ios 624 ac_pjmedia_video 625 ac_pa_use_oss 626 ac_pa_use_alsa 627 ac_pa_cflags 628 ac_external_pa 629 ac_pjmedia_snd 630 ac_external_gsm 631 ac_external_speex 632 ac_os_objs 633 EGREP 634 GREP 635 CPP 636 ac_build_mak_vars 637 ac_pjdir 638 CC_CFLAGS 639 CC_OPTIMIZE 640 CC_DEF 641 CC_INC 642 CC_OUT 643 LIBEXT2 644 LIBEXT 645 RANLIB 646 LDOUT 647 LD 648 AR 649 ac_ct_CXX 650 CXXFLAGS 651 CXX 652 OBJEXT 653 EXEEXT 654 ac_ct_CC 655 CPPFLAGS 656 LDFLAGS 657 CFLAGS 658 CC 659 target_os 660 target_vendor 661 target_cpu 662 target 663 host_os 664 host_vendor 665 host_cpu 666 host 667 build_os 668 build_vendor 669 build_cpu 670 build 671 target_alias 672 host_alias 673 build_alias 674 LIBS 675 ECHO_T 676 ECHO_N 677 ECHO_C 678 DEFS 679 mandir 680 localedir 681 libdir 682 psdir 683 pdfdir 684 dvidir 685 htmldir 686 infodir 687 docdir 688 oldincludedir 689 includedir 690 localstatedir 691 sharedstatedir 692 sysconfdir 693 datadir 694 datarootdir 695 libexecdir 696 sbindir 697 bindir 698 program_transform_name 699 prefix 700 exec_prefix 701 PACKAGE_URL 702 PACKAGE_BUGREPORT 703 PACKAGE_STRING 704 PACKAGE_VERSION 705 PACKAGE_TARNAME 706 PACKAGE_NAME 707 PATH_SEPARATOR 708 SHELL' 732 LTLIBOBJS' 709 733 ac_subst_files='' 710 ac_user_opts='711 enable_option_checking712 enable_floating_point713 enable_epoll714 with_external_speex715 with_external_gsm716 enable_sound717 with_external_pa718 enable_oss719 enable_ext_sound720 enable_small_filter721 enable_large_filter722 enable_speex_aec723 enable_g711_codec724 enable_l16_codec725 enable_gsm_codec726 enable_g722_codec727 enable_g7221_codec728 enable_speex_codec729 enable_ilbc_codec730 enable_libsamplerate731 with_sdl732 enable_sdl733 enable_ffmpeg734 with_ffmpeg735 enable_v4l2736 enable_ipp737 with_ipp738 with_ipp_samples739 with_ipp_arch740 enable_ssl741 '742 734 ac_precious_vars='build_alias 743 735 host_alias … … 757 749 ac_init_help= 758 750 ac_init_version=false 759 ac_unrecognized_opts=760 ac_unrecognized_sep=761 751 # The variables have the same names as the options, with 762 752 # dashes changed to underlines. … … 857 847 858 848 -disable-* | --disable-*) 859 ac_ useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`849 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 860 850 # Reject names that are not valid shell variable names. 861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 862 as_fn_error "invalid feature name: $ac_useropt" 863 ac_useropt_orig=$ac_useropt 864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 865 case $ac_user_opts in 866 *" 867 "enable_$ac_useropt" 868 "*) ;; 869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 870 ac_unrecognized_sep=', ';; 871 esac 872 eval enable_$ac_useropt=no ;; 851 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 852 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 853 { (exit 1); exit 1; }; } 854 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 855 eval enable_$ac_feature=no ;; 873 856 874 857 -docdir | --docdir | --docdi | --doc | --do) … … 883 866 884 867 -enable-* | --enable-*) 885 ac_ useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`868 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 886 869 # Reject names that are not valid shell variable names. 887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 888 as_fn_error "invalid feature name: $ac_useropt" 889 ac_useropt_orig=$ac_useropt 890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 891 case $ac_user_opts in 892 *" 893 "enable_$ac_useropt" 894 "*) ;; 895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 896 ac_unrecognized_sep=', ';; 897 esac 898 eval enable_$ac_useropt=\$ac_optarg ;; 870 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 871 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 872 { (exit 1); exit 1; }; } 873 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 874 eval enable_$ac_feature=\$ac_optarg ;; 899 875 900 876 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 1087 1063 1088 1064 -with-* | --with-*) 1089 ac_ useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`1065 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1090 1066 # Reject names that are not valid shell variable names. 1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1092 as_fn_error "invalid package name: $ac_useropt" 1093 ac_useropt_orig=$ac_useropt 1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1095 case $ac_user_opts in 1096 *" 1097 "with_$ac_useropt" 1098 "*) ;; 1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1100 ac_unrecognized_sep=', ';; 1101 esac 1102 eval with_$ac_useropt=\$ac_optarg ;; 1067 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1068 { echo "$as_me: error: invalid package name: $ac_package" >&2 1069 { (exit 1); exit 1; }; } 1070 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1071 eval with_$ac_package=\$ac_optarg ;; 1103 1072 1104 1073 -without-* | --without-*) 1105 ac_ useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`1074 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1106 1075 # Reject names that are not valid shell variable names. 1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1108 as_fn_error "invalid package name: $ac_useropt" 1109 ac_useropt_orig=$ac_useropt 1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1111 case $ac_user_opts in 1112 *" 1113 "with_$ac_useropt" 1114 "*) ;; 1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1116 ac_unrecognized_sep=', ';; 1117 esac 1118 eval with_$ac_useropt=no ;; 1076 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1077 { echo "$as_me: error: invalid package name: $ac_package" >&2 1078 { (exit 1); exit 1; }; } 1079 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1080 eval with_$ac_package=no ;; 1119 1081 1120 1082 --x) … … 1136 1098 x_libraries=$ac_optarg ;; 1137 1099 1138 -*) as_fn_error "unrecognized option: \`$ac_option' 1139 Try \`$0 --help' for more information." 1100 -*) { echo "$as_me: error: unrecognized option: $ac_option 1101 Try \`$0 --help' for more information." >&2 1102 { (exit 1); exit 1; }; } 1140 1103 ;; 1141 1104 … … 1143 1106 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1144 1107 # Reject names that are not valid shell variable names. 1145 case $ac_envvar in #( 1146 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1147 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1148 esac 1108 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1109 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1110 { (exit 1); exit 1; }; } 1149 1111 eval $ac_envvar=\$ac_optarg 1150 1112 export $ac_envvar ;; … … 1152 1114 *) 1153 1115 # FIXME: should be removed in autoconf 3.0. 1154 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&21116 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1155 1117 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1156 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&21118 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1157 1119 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1158 1120 ;; … … 1163 1125 if test -n "$ac_prev"; then 1164 1126 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1165 as_fn_error "missing argument to $ac_option" 1166 fi 1167 1168 if test -n "$ac_unrecognized_opts"; then 1169 case $enable_option_checking in 1170 no) ;; 1171 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1172 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1173 esac 1174 fi 1175 1176 # Check all directory arguments for consistency. 1127 { echo "$as_me: error: missing argument to $ac_option" >&2 1128 { (exit 1); exit 1; }; } 1129 fi 1130 1131 # Be sure to have absolute directory names. 1177 1132 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1178 1133 datadir sysconfdir sharedstatedir localstatedir includedir \ … … 1181 1136 do 1182 1137 eval ac_val=\$$ac_var 1183 # Remove trailing slashes.1184 case $ac_val in1185 */ )1186 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`1187 eval $ac_var=\$ac_val;;1188 esac1189 # Be sure to have absolute directory names.1190 1138 case $ac_val in 1191 1139 [\\/$]* | ?:[\\/]* ) continue;; 1192 1140 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1193 1141 esac 1194 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1142 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1143 { (exit 1); exit 1; }; } 1195 1144 done 1196 1145 … … 1206 1155 if test "x$build_alias" = x; then 1207 1156 cross_compiling=maybe 1208 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.1157 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1209 1158 If a cross compiler is detected then cross compile mode will be used." >&2 1210 1159 elif test "x$build_alias" != "x$host_alias"; then … … 1222 1171 ac_ls_di=`ls -di .` && 1223 1172 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1224 as_fn_error "working directory cannot be determined" 1173 { echo "$as_me: error: Working directory cannot be determined" >&2 1174 { (exit 1); exit 1; }; } 1225 1175 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1226 as_fn_error "pwd does not report name of working directory" 1176 { echo "$as_me: error: pwd does not report name of working directory" >&2 1177 { (exit 1); exit 1; }; } 1227 1178 1228 1179 … … 1231 1182 ac_srcdir_defaulted=yes 1232 1183 # Try the directory containing this script, then the parent directory. 1233 ac_confdir=`$as_dirname -- "$ as_myself" ||1234 $as_expr X"$ as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \1235 X"$ as_myself" : 'X\(//\)[^/]' \| \1236 X"$ as_myself" : 'X\(//\)$' \| \1237 X"$ as_myself" : 'X\(/\)' \| . 2>/dev/null ||1238 $as_echo X"$as_myself" |1184 ac_confdir=`$as_dirname -- "$0" || 1185 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1186 X"$0" : 'X\(//\)[^/]' \| \ 1187 X"$0" : 'X\(//\)$' \| \ 1188 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1189 echo X"$0" | 1239 1190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1240 1191 s//\1/ … … 1263 1214 if test ! -r "$srcdir/$ac_unique_file"; then 1264 1215 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1265 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1216 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1217 { (exit 1); exit 1; }; } 1266 1218 fi 1267 1219 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1268 1220 ac_abs_confdir=`( 1269 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1221 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1222 { (exit 1); exit 1; }; } 1270 1223 pwd)` 1271 1224 # When building in place, set srcdir=. … … 1315 1268 Installation directories: 1316 1269 --prefix=PREFIX install architecture-independent files in PREFIX 1317 1270 [$ac_default_prefix] 1318 1271 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1319 1272 [PREFIX] 1320 1273 1321 1274 By default, \`make install' will install all the files in … … 1327 1280 1328 1281 Fine tuning of the installation directories: 1329 --bindir=DIR 1330 --sbindir=DIR 1331 --libexecdir=DIR 1332 --sysconfdir=DIR 1333 --sharedstatedir=DIR 1334 --localstatedir=DIR 1335 --libdir=DIR 1336 --includedir=DIR 1337 --oldincludedir=DIR 1338 --datarootdir=DIR 1339 --datadir=DIR 1340 --infodir=DIR 1341 --localedir=DIR 1342 --mandir=DIR 1343 --docdir=DIR 1344 --htmldir=DIR 1345 --dvidir=DIR 1346 --pdfdir=DIR 1347 --psdir=DIR 1282 --bindir=DIR user executables [EPREFIX/bin] 1283 --sbindir=DIR system admin executables [EPREFIX/sbin] 1284 --libexecdir=DIR program executables [EPREFIX/libexec] 1285 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1286 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1287 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1288 --libdir=DIR object code libraries [EPREFIX/lib] 1289 --includedir=DIR C header files [PREFIX/include] 1290 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1291 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1292 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1293 --infodir=DIR info documentation [DATAROOTDIR/info] 1294 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1295 --mandir=DIR man documentation [DATAROOTDIR/man] 1296 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject] 1297 --htmldir=DIR html documentation [DOCDIR] 1298 --dvidir=DIR dvi documentation [DOCDIR] 1299 --pdfdir=DIR pdf documentation [DOCDIR] 1300 --psdir=DIR ps documentation [DOCDIR] 1348 1301 _ACEOF 1349 1302 … … 1364 1317 1365 1318 Optional Features: 1366 --disable-option-checking ignore unrecognized --enable/--with options1367 1319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1368 1320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] … … 1394 1346 --disable-ssl Exclude SSL support the build (default: autodetect) 1395 1347 1348 --disable-opencore-amrnb 1349 Exclude OpenCORE AMR-NB support from the build 1350 (default: autodetect) 1351 1396 1352 1397 1353 Optional Packages: … … 1426 1382 nonstandard directory <lib dir> 1427 1383 LIBS libraries to pass to the linker, e.g. -l<library> 1428 CPPFLAGS (Objective) C/C++preprocessor flags, e.g. -I<include dir> if1384 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1429 1385 you have headers in a nonstandard directory <include dir> 1430 1386 CXX C++ compiler command … … 1435 1391 it to find libraries and programs with nonstandard names/locations. 1436 1392 1437 Report bugs to the package provider.1438 1393 _ACEOF 1439 1394 ac_status=$? … … 1443 1398 # If there are subdirs, report their specific --help. 1444 1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1445 test -d "$ac_dir" || 1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1447 continue 1400 test -d "$ac_dir" || continue 1448 1401 ac_builddir=. 1449 1402 … … 1451 1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1452 1405 *) 1453 ac_dir_suffix=/` $as_echo "$ac_dir" | sed 's|^\.[\\/]||'`1406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1454 1407 # A ".." for each directory in $ac_dir_suffix. 1455 ac_top_builddir_sub=` $as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1456 1409 case $ac_top_builddir_sub in 1457 1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; … … 1489 1442 $SHELL "$ac_srcdir/configure" --help=recursive 1490 1443 else 1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&21444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1492 1445 fi || ac_status=$? 1493 1446 cd "$ac_pwd" || { ac_status=$?; break; } … … 1499 1452 cat <<\_ACEOF 1500 1453 pjproject configure 1.x 1501 generated by GNU Autoconf 2.65 1502 1503 Copyright (C) 2009 Free Software Foundation, Inc. 1454 generated by GNU Autoconf 2.61 1455 1456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1504 1458 This configure script is free software; the Free Software Foundation 1505 1459 gives unlimited permission to copy, distribute and modify it. … … 1507 1461 exit 1508 1462 fi 1509 1510 ## ------------------------ ##1511 ## Autoconf initialization. ##1512 ## ------------------------ ##1513 1514 # ac_fn_c_try_compile LINENO1515 # --------------------------1516 # Try to compile conftest.$ac_ext, and return whether this succeeded.1517 ac_fn_c_try_compile ()1518 {1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1520 rm -f conftest.$ac_objext1521 if { { ac_try="$ac_compile"1522 case "(($ac_try" in1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1524 *) ac_try_echo=$ac_try;;1525 esac1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1527 $as_echo "$ac_try_echo"; } >&51528 (eval "$ac_compile") 2>conftest.err1529 ac_status=$?1530 if test -s conftest.err; then1531 grep -v '^ *+' conftest.err >conftest.er11532 cat conftest.er1 >&51533 mv -f conftest.er1 conftest.err1534 fi1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51536 test $ac_status = 0; } && {1537 test -z "$ac_c_werror_flag" ||1538 test ! -s conftest.err1539 } && test -s conftest.$ac_objext; then :1540 ac_retval=01541 else1542 $as_echo "$as_me: failed program was:" >&51543 sed 's/^/| /' conftest.$ac_ext >&51544 1545 ac_retval=11546 fi1547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1548 as_fn_set_status $ac_retval1549 1550 } # ac_fn_c_try_compile1551 1552 # ac_fn_cxx_try_compile LINENO1553 # ----------------------------1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.1555 ac_fn_cxx_try_compile ()1556 {1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1558 rm -f conftest.$ac_objext1559 if { { ac_try="$ac_compile"1560 case "(($ac_try" in1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1562 *) ac_try_echo=$ac_try;;1563 esac1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1565 $as_echo "$ac_try_echo"; } >&51566 (eval "$ac_compile") 2>conftest.err1567 ac_status=$?1568 if test -s conftest.err; then1569 grep -v '^ *+' conftest.err >conftest.er11570 cat conftest.er1 >&51571 mv -f conftest.er1 conftest.err1572 fi1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51574 test $ac_status = 0; } && {1575 test -z "$ac_cxx_werror_flag" ||1576 test ! -s conftest.err1577 } && test -s conftest.$ac_objext; then :1578 ac_retval=01579 else1580 $as_echo "$as_me: failed program was:" >&51581 sed 's/^/| /' conftest.$ac_ext >&51582 1583 ac_retval=11584 fi1585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1586 as_fn_set_status $ac_retval1587 1588 } # ac_fn_cxx_try_compile1589 1590 # ac_fn_c_try_link LINENO1591 # -----------------------1592 # Try to link conftest.$ac_ext, and return whether this succeeded.1593 ac_fn_c_try_link ()1594 {1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1596 rm -f conftest.$ac_objext conftest$ac_exeext1597 if { { ac_try="$ac_link"1598 case "(($ac_try" in1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1600 *) ac_try_echo=$ac_try;;1601 esac1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1603 $as_echo "$ac_try_echo"; } >&51604 (eval "$ac_link") 2>conftest.err1605 ac_status=$?1606 if test -s conftest.err; then1607 grep -v '^ *+' conftest.err >conftest.er11608 cat conftest.er1 >&51609 mv -f conftest.er1 conftest.err1610 fi1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51612 test $ac_status = 0; } && {1613 test -z "$ac_c_werror_flag" ||1614 test ! -s conftest.err1615 } && test -s conftest$ac_exeext && {1616 test "$cross_compiling" = yes ||1617 $as_test_x conftest$ac_exeext1618 }; then :1619 ac_retval=01620 else1621 $as_echo "$as_me: failed program was:" >&51622 sed 's/^/| /' conftest.$ac_ext >&51623 1624 ac_retval=11625 fi1626 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information1627 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would1628 # interfere with the next link command; also delete a directory that is1629 # left behind by Apple's compiler. We do this before executing the actions.1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1632 as_fn_set_status $ac_retval1633 1634 } # ac_fn_c_try_link1635 1636 # ac_fn_c_try_run LINENO1637 # ----------------------1638 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes1639 # that executables *can* be run.1640 ac_fn_c_try_run ()1641 {1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1643 if { { ac_try="$ac_link"1644 case "(($ac_try" in1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1646 *) ac_try_echo=$ac_try;;1647 esac1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1649 $as_echo "$ac_try_echo"; } >&51650 (eval "$ac_link") 2>&51651 ac_status=$?1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51653 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'1654 { { case "(($ac_try" in1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1656 *) ac_try_echo=$ac_try;;1657 esac1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1659 $as_echo "$ac_try_echo"; } >&51660 (eval "$ac_try") 2>&51661 ac_status=$?1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51663 test $ac_status = 0; }; }; then :1664 ac_retval=01665 else1666 $as_echo "$as_me: program exited with status $ac_status" >&51667 $as_echo "$as_me: failed program was:" >&51668 sed 's/^/| /' conftest.$ac_ext >&51669 1670 ac_retval=$ac_status1671 fi1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1674 as_fn_set_status $ac_retval1675 1676 } # ac_fn_c_try_run1677 1678 # ac_fn_c_try_cpp LINENO1679 # ----------------------1680 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.1681 ac_fn_c_try_cpp ()1682 {1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1684 if { { ac_try="$ac_cpp conftest.$ac_ext"1685 case "(($ac_try" in1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1687 *) ac_try_echo=$ac_try;;1688 esac1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1690 $as_echo "$ac_try_echo"; } >&51691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err1692 ac_status=$?1693 if test -s conftest.err; then1694 grep -v '^ *+' conftest.err >conftest.er11695 cat conftest.er1 >&51696 mv -f conftest.er1 conftest.err1697 fi1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51699 test $ac_status = 0; } >/dev/null && {1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||1701 test ! -s conftest.err1702 }; then :1703 ac_retval=01704 else1705 $as_echo "$as_me: failed program was:" >&51706 sed 's/^/| /' conftest.$ac_ext >&51707 1708 ac_retval=11709 fi1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1711 as_fn_set_status $ac_retval1712 1713 } # ac_fn_c_try_cpp1714 1715 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES1716 # -------------------------------------------------------1717 # Tests whether HEADER exists and can be compiled using the include files in1718 # INCLUDES, setting the cache variable VAR accordingly.1719 ac_fn_c_check_header_compile ()1720 {1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51723 $as_echo_n "checking for $2... " >&6; }1724 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :1725 $as_echo_n "(cached) " >&61726 else1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1728 /* end confdefs.h. */1729 $41730 #include <$2>1731 _ACEOF1732 if ac_fn_c_try_compile "$LINENO"; then :1733 eval "$3=yes"1734 else1735 eval "$3=no"1736 fi1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1738 fi1739 eval ac_res=\$$31740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51741 $as_echo "$ac_res" >&6; }1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1743 1744 } # ac_fn_c_check_header_compile1745 1746 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES1747 # -------------------------------------------------------1748 # Tests whether HEADER exists, giving a warning if it cannot be compiled using1749 # the include files in INCLUDES and setting the cache variable VAR1750 # accordingly.1751 ac_fn_c_check_header_mongrel ()1752 {1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1754 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51756 $as_echo_n "checking for $2... " >&6; }1757 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :1758 $as_echo_n "(cached) " >&61759 fi1760 eval ac_res=\$$31761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51762 $as_echo "$ac_res" >&6; }1763 else1764 # Is the header compilable?1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&51766 $as_echo_n "checking $2 usability... " >&6; }1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1768 /* end confdefs.h. */1769 $41770 #include <$2>1771 _ACEOF1772 if ac_fn_c_try_compile "$LINENO"; then :1773 ac_header_compiler=yes1774 else1775 ac_header_compiler=no1776 fi1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&51779 $as_echo "$ac_header_compiler" >&6; }1780 1781 # Is the header present?1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&51783 $as_echo_n "checking $2 presence... " >&6; }1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1785 /* end confdefs.h. */1786 #include <$2>1787 _ACEOF1788 if ac_fn_c_try_cpp "$LINENO"; then :1789 ac_header_preproc=yes1790 else1791 ac_header_preproc=no1792 fi1793 rm -f conftest.err conftest.$ac_ext1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&51795 $as_echo "$ac_header_preproc" >&6; }1796 1797 # So? What about this header?1798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((1799 yes:no: )1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&51801 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&51803 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}1804 ;;1805 no:yes:* )1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&51807 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&51809 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&51811 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&51813 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&51815 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}1816 ;;1817 esac1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51819 $as_echo_n "checking for $2... " >&6; }1820 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :1821 $as_echo_n "(cached) " >&61822 else1823 eval "$3=\$ac_header_compiler"1824 fi1825 eval ac_res=\$$31826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51827 $as_echo "$ac_res" >&6; }1828 fi1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1830 1831 } # ac_fn_c_check_header_mongrel1832 1833 # ac_fn_c_check_func LINENO FUNC VAR1834 # ----------------------------------1835 # Tests whether FUNC exists, setting the cache variable VAR accordingly1836 ac_fn_c_check_func ()1837 {1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51840 $as_echo_n "checking for $2... " >&6; }1841 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :1842 $as_echo_n "(cached) " >&61843 else1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1845 /* end confdefs.h. */1846 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.1847 For example, HP-UX 11i <limits.h> declares gettimeofday. */1848 #define $2 innocuous_$21849 1850 /* System header to define __stub macros and hopefully few prototypes,1851 which can conflict with char $2 (); below.1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since1853 <limits.h> exists even on freestanding compilers. */1854 1855 #ifdef __STDC__1856 # include <limits.h>1857 #else1858 # include <assert.h>1859 #endif1860 1861 #undef $21862 1863 /* Override any GCC internal prototype to avoid an error.1864 Use char because int might match the return type of a GCC1865 builtin and then its argument prototype would still apply. */1866 #ifdef __cplusplus1867 extern "C"1868 #endif1869 char $2 ();1870 /* The GNU C library defines this for functions which it implements1871 to always fail with ENOSYS. Some functions are actually named1872 something starting with __ and the normal name is an alias. */1873 #if defined __stub_$2 || defined __stub___$21874 choke me1875 #endif1876 1877 int1878 main ()1879 {1880 return $2 ();1881 ;1882 return 0;1883 }1884 _ACEOF1885 if ac_fn_c_try_link "$LINENO"; then :1886 eval "$3=yes"1887 else1888 eval "$3=no"1889 fi1890 rm -f core conftest.err conftest.$ac_objext \1891 conftest$ac_exeext conftest.$ac_ext1892 fi1893 eval ac_res=\$$31894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51895 $as_echo "$ac_res" >&6; }1896 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1897 1898 } # ac_fn_c_check_func1899 1463 cat >config.log <<_ACEOF 1900 1464 This file contains any messages produced by compilers while … … 1902 1466 1903 1467 It was created by pjproject $as_me 1.x, which was 1904 generated by GNU Autoconf 2.6 5. Invocation command line was1468 generated by GNU Autoconf 2.61. Invocation command line was 1905 1469 1906 1470 $ $0 $@ … … 1938 1502 IFS=$as_save_IFS 1939 1503 test -z "$as_dir" && as_dir=. 1940 $as_echo "PATH: $as_dir"1941 1504 echo "PATH: $as_dir" 1505 done 1942 1506 IFS=$as_save_IFS 1943 1507 … … 1973 1537 continue ;; 1974 1538 *\'*) 1975 ac_arg=` $as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;1539 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1976 1540 esac 1977 1541 case $ac_pass in 1978 1) a s_fn_append ac_configure_args0 "'$ac_arg'" ;;1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1979 1543 2) 1980 a s_fn_append ac_configure_args1 "'$ac_arg'"1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1981 1545 if test $ac_must_keep_next = true; then 1982 1546 ac_must_keep_next=false # Got value, back to normal. … … 1994 1558 esac 1995 1559 fi 1996 a s_fn_append ac_configure_args "'$ac_arg'"1560 ac_configure_args="$ac_configure_args '$ac_arg'" 1997 1561 ;; 1998 1562 esac 1999 1563 done 2000 1564 done 2001 { ac_configure_args0=; unset ac_configure_args0;}2002 { ac_configure_args1=; unset ac_configure_args1;}1565 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1566 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 2003 1567 2004 1568 # When interrupted or exit'd, cleanup temporary files, and complete … … 2025 1589 *${as_nl}*) 2026 1590 case $ac_var in #( 2027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&52028 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 2029 1593 esac 2030 1594 case $ac_var in #( 2031 1595 _ | IFS | as_nl) ;; #( 2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2033 *) { eval $ac_var=; unset $ac_var;} ;; 1596 *) $as_unset $ac_var ;; 2034 1597 esac ;; 2035 1598 esac … … 2060 1623 eval ac_val=\$$ac_var 2061 1624 case $ac_val in 2062 *\'\''*) ac_val=` $as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2063 1626 esac 2064 $as_echo "$ac_var='\''$ac_val'\''"1627 echo "$ac_var='\''$ac_val'\''" 2065 1628 done | sort 2066 1629 echo … … 2077 1640 eval ac_val=\$$ac_var 2078 1641 case $ac_val in 2079 *\'\''*) ac_val=` $as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2080 1643 esac 2081 $as_echo "$ac_var='\''$ac_val'\''"1644 echo "$ac_var='\''$ac_val'\''" 2082 1645 done | sort 2083 1646 echo … … 2095 1658 fi 2096 1659 test "$ac_signal" != 0 && 2097 $as_echo "$as_me: caught signal $ac_signal"2098 $as_echo "$as_me: exit $exit_status"1660 echo "$as_me: caught signal $ac_signal" 1661 echo "$as_me: exit $exit_status" 2099 1662 } >&5 2100 1663 rm -f core *.core core.conftest.* && … … 2103 1666 ' 0 2104 1667 for ac_signal in 1 2 13 15; do 2105 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 2106 1669 done 2107 1670 ac_signal=0 … … 2110 1673 rm -f -r conftest* confdefs.h 2111 1674 2112 $as_echo "/* confdefs.h */" > confdefs.h2113 2114 1675 # Predefined preprocessor variables. 2115 1676 … … 2118 1679 _ACEOF 2119 1680 1681 2120 1682 cat >>confdefs.h <<_ACEOF 2121 1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2122 1684 _ACEOF 2123 1685 1686 2124 1687 cat >>confdefs.h <<_ACEOF 2125 1688 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2126 1689 _ACEOF 2127 1690 1691 2128 1692 cat >>confdefs.h <<_ACEOF 2129 1693 #define PACKAGE_STRING "$PACKAGE_STRING" 2130 1694 _ACEOF 2131 1695 1696 2132 1697 cat >>confdefs.h <<_ACEOF 2133 1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2134 1699 _ACEOF 2135 1700 2136 cat >>confdefs.h <<_ACEOF2137 #define PACKAGE_URL "$PACKAGE_URL"2138 _ACEOF2139 2140 1701 2141 1702 # Let the site file select an alternate cache file if it wants to. 2142 # Prefer an explicitly selected file to automatically selected ones. 2143 ac_site_file1=NONE 2144 ac_site_file2=NONE 1703 # Prefer explicitly selected file to automatically selected ones. 2145 1704 if test -n "$CONFIG_SITE"; then 2146 ac_site_file1=$CONFIG_SITE1705 set x "$CONFIG_SITE" 2147 1706 elif test "x$prefix" != xNONE; then 2148 ac_site_file1=$prefix/share/config.site2149 ac_site_file2=$prefix/etc/config.site2150 else 2151 ac_site_file1=$ac_default_prefix/share/config.site 2152 ac_site_file2=$ac_default_prefix/etc/config.site 2153 fi 2154 for ac_site_file in "$ac_site_file1" "$ac_site_file2"1707 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1708 else 1709 set x "$ac_default_prefix/share/config.site" \ 1710 "$ac_default_prefix/etc/config.site" 1711 fi 1712 shift 1713 for ac_site_file 2155 1714 do 2156 test "x$ac_site_file" = xNONE && continue 2157 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2159 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1715 if test -r "$ac_site_file"; then 1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1717 echo "$as_me: loading site script $ac_site_file" >&6;} 2160 1718 sed 's/^/| /' "$ac_site_file" >&5 2161 1719 . "$ac_site_file" … … 2164 1722 2165 1723 if test -r "$cache_file"; then 2166 # Some versions of bash will fail to source /dev/null (special files2167 # actually), so we avoid doing that. DJGPP emulates it as a regular file.2168 if test /dev/null != "$cache_file" && test-f "$cache_file"; then2169 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&52170 $as_echo "$as_me: loading cache $cache_file" >&6;}1724 # Some versions of bash will fail to source /dev/null (special 1725 # files actually), so we avoid doing that. 1726 if test -f "$cache_file"; then 1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1728 echo "$as_me: loading cache $cache_file" >&6;} 2171 1729 case $cache_file in 2172 1730 [\\/]* | ?:[\\/]* ) . "$cache_file";; … … 2175 1733 fi 2176 1734 else 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&52178 $as_echo "$as_me: creating cache $cache_file" >&6;}1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1736 echo "$as_me: creating cache $cache_file" >&6;} 2179 1737 >$cache_file 2180 1738 fi … … 2190 1748 case $ac_old_set,$ac_new_set in 2191 1749 set,) 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&52193 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}1750 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1751 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2194 1752 ac_cache_corrupted=: ;; 2195 1753 ,set) 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&52197 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}1754 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1755 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2198 1756 ac_cache_corrupted=: ;; 2199 1757 ,);; 2200 1758 *) 2201 1759 if test "x$ac_old_val" != "x$ac_new_val"; then 2202 # differences in whitespace do not lead to failure. 2203 ac_old_val_w=`echo x $ac_old_val` 2204 ac_new_val_w=`echo x $ac_new_val` 2205 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2207 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2208 ac_cache_corrupted=: 2209 else 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2211 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2212 eval $ac_var=\$ac_old_val 2213 fi 2214 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2215 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2217 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1760 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1761 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1762 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1763 echo "$as_me: former value: $ac_old_val" >&2;} 1764 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1765 echo "$as_me: current value: $ac_new_val" >&2;} 1766 ac_cache_corrupted=: 2218 1767 fi;; 2219 1768 esac … … 2221 1770 if test "$ac_new_set" = set; then 2222 1771 case $ac_new_val in 2223 *\'*) ac_arg=$ac_var=` $as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;1772 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2224 1773 *) ac_arg=$ac_var=$ac_new_val ;; 2225 1774 esac 2226 1775 case " $ac_configure_args " in 2227 1776 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2228 *) a s_fn_append ac_configure_args "'$ac_arg'" ;;1777 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2229 1778 esac 2230 1779 fi 2231 1780 done 2232 1781 if $ac_cache_corrupted; then 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2236 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2237 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2238 fi 2239 ## -------------------- ## 2240 ## Main body of script. ## 2241 ## -------------------- ## 1782 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1783 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1784 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1785 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1786 { (exit 1); exit 1; }; } 1787 fi 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 2242 1812 2243 1813 ac_ext=c … … 2253 1823 ac_aux_dir= 2254 1824 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2255 for ac_t in install-sh install.sh shtool; do 2256 if test -f "$ac_dir/$ac_t"; then 2257 ac_aux_dir=$ac_dir 2258 ac_install_sh="$ac_aux_dir/$ac_t -c" 2259 break 2 2260 fi 2261 done 1825 if test -f "$ac_dir/install-sh"; then 1826 ac_aux_dir=$ac_dir 1827 ac_install_sh="$ac_aux_dir/install-sh -c" 1828 break 1829 elif test -f "$ac_dir/install.sh"; then 1830 ac_aux_dir=$ac_dir 1831 ac_install_sh="$ac_aux_dir/install.sh -c" 1832 break 1833 elif test -f "$ac_dir/shtool"; then 1834 ac_aux_dir=$ac_dir 1835 ac_install_sh="$ac_aux_dir/shtool install -c" 1836 break 1837 fi 2262 1838 done 2263 1839 if test -z "$ac_aux_dir"; then 2264 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 1840 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1841 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1842 { (exit 1); exit 1; }; } 2265 1843 fi 2266 1844 … … 2276 1854 # Make sure we can run config.sub. 2277 1855 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2278 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2279 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2281 $as_echo_n "checking build system type... " >&6; } 2282 if test "${ac_cv_build+set}" = set; then : 2283 $as_echo_n "(cached) " >&6 1856 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1857 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1858 { (exit 1); exit 1; }; } 1859 1860 { echo "$as_me:$LINENO: checking build system type" >&5 1861 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1862 if test "${ac_cv_build+set}" = set; then 1863 echo $ECHO_N "(cached) $ECHO_C" >&6 2284 1864 else 2285 1865 ac_build_alias=$build_alias … … 2287 1867 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2288 1868 test "x$ac_build_alias" = x && 2289 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 1869 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1870 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1871 { (exit 1); exit 1; }; } 2290 1872 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2291 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2292 2293 fi 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2295 $as_echo "$ac_cv_build" >&6; } 1873 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1874 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1875 { (exit 1); exit 1; }; } 1876 1877 fi 1878 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1879 echo "${ECHO_T}$ac_cv_build" >&6; } 2296 1880 case $ac_cv_build in 2297 1881 *-*-*) ;; 2298 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 1882 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1883 echo "$as_me: error: invalid value of canonical build" >&2;} 1884 { (exit 1); exit 1; }; };; 2299 1885 esac 2300 1886 build=$ac_cv_build … … 2312 1898 2313 1899 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&52315 $as_echo_n "checking host system type..." >&6; }2316 if test "${ac_cv_host+set}" = set; then :2317 $as_echo_n "(cached)" >&61900 { echo "$as_me:$LINENO: checking host system type" >&5 1901 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1902 if test "${ac_cv_host+set}" = set; then 1903 echo $ECHO_N "(cached) $ECHO_C" >&6 2318 1904 else 2319 1905 if test "x$host_alias" = x; then … … 2321 1907 else 2322 1908 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2323 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2324 fi 2325 2326 fi 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2328 $as_echo "$ac_cv_host" >&6; } 1909 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1910 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1911 { (exit 1); exit 1; }; } 1912 fi 1913 1914 fi 1915 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1916 echo "${ECHO_T}$ac_cv_host" >&6; } 2329 1917 case $ac_cv_host in 2330 1918 *-*-*) ;; 2331 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 1919 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1920 echo "$as_me: error: invalid value of canonical host" >&2;} 1921 { (exit 1); exit 1; }; };; 2332 1922 esac 2333 1923 host=$ac_cv_host … … 2345 1935 2346 1936 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&52348 $as_echo_n "checking target system type..." >&6; }2349 if test "${ac_cv_target+set}" = set; then :2350 $as_echo_n "(cached)" >&61937 { echo "$as_me:$LINENO: checking target system type" >&5 1938 echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 1939 if test "${ac_cv_target+set}" = set; then 1940 echo $ECHO_N "(cached) $ECHO_C" >&6 2351 1941 else 2352 1942 if test "x$target_alias" = x; then … … 2354 1944 else 2355 1945 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2356 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2357 fi 2358 2359 fi 2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2361 $as_echo "$ac_cv_target" >&6; } 1946 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 1947 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 1948 { (exit 1); exit 1; }; } 1949 fi 1950 1951 fi 1952 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1953 echo "${ECHO_T}$ac_cv_target" >&6; } 2362 1954 case $ac_cv_target in 2363 1955 *-*-*) ;; 2364 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 1956 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 1957 echo "$as_me: error: invalid value of canonical target" >&2;} 1958 { (exit 1); exit 1; }; };; 2365 1959 esac 2366 1960 target=$ac_cv_target … … 2406 2000 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2407 2001 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&52409 $as_echo_n "checking for $ac_word..." >&6; }2410 if test "${ac_cv_prog_CC+set}" = set; then :2411 $as_echo_n "(cached)" >&62002 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2004 if test "${ac_cv_prog_CC+set}" = set; then 2005 echo $ECHO_N "(cached) $ECHO_C" >&6 2412 2006 else 2413 2007 if test -n "$CC"; then … … 2419 2013 IFS=$as_save_IFS 2420 2014 test -z "$as_dir" && as_dir=. 2421 2015 for ac_exec_ext in '' $ac_executable_extensions; do 2422 2016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2423 2017 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2425 2019 break 2 2426 2020 fi 2427 2021 done 2428 2022 done 2429 2023 IFS=$as_save_IFS 2430 2024 … … 2433 2027 CC=$ac_cv_prog_CC 2434 2028 if test -n "$CC"; then 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&52436 $as_echo "$CC" >&6; }2437 else 2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&52439 $as_echo "no" >&6; }2029 { echo "$as_me:$LINENO: result: $CC" >&5 2030 echo "${ECHO_T}$CC" >&6; } 2031 else 2032 { echo "$as_me:$LINENO: result: no" >&5 2033 echo "${ECHO_T}no" >&6; } 2440 2034 fi 2441 2035 … … 2446 2040 # Extract the first word of "gcc", so it can be a program name with args. 2447 2041 set dummy gcc; ac_word=$2 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&52449 $as_echo_n "checking for $ac_word..." >&6; }2450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :2451 $as_echo_n "(cached)" >&62042 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2045 echo $ECHO_N "(cached) $ECHO_C" >&6 2452 2046 else 2453 2047 if test -n "$ac_ct_CC"; then … … 2459 2053 IFS=$as_save_IFS 2460 2054 test -z "$as_dir" && as_dir=. 2461 2055 for ac_exec_ext in '' $ac_executable_extensions; do 2462 2056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2463 2057 ac_cv_prog_ac_ct_CC="gcc" 2464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2465 2059 break 2 2466 2060 fi 2467 2061 done 2468 2062 done 2469 2063 IFS=$as_save_IFS 2470 2064 … … 2473 2067 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2474 2068 if test -n "$ac_ct_CC"; then 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&52476 $as_echo "$ac_ct_CC" >&6; }2477 else 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&52479 $as_echo "no" >&6; }2069 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2070 echo "${ECHO_T}$ac_ct_CC" >&6; } 2071 else 2072 { echo "$as_me:$LINENO: result: no" >&5 2073 echo "${ECHO_T}no" >&6; } 2480 2074 fi 2481 2075 … … 2485 2079 case $cross_compiling:$ac_tool_warned in 2486 2080 yes:) 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2081 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2082 whose name does not start with the host triplet. If you think this 2083 configuration is useful to you, please write to autoconf@gnu.org." >&5 2084 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2085 whose name does not start with the host triplet. If you think this 2086 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2489 2087 ac_tool_warned=yes ;; 2490 2088 esac … … 2499 2097 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2500 2098 set dummy ${ac_tool_prefix}cc; ac_word=$2 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&52502 $as_echo_n "checking for $ac_word..." >&6; }2503 if test "${ac_cv_prog_CC+set}" = set; then :2504 $as_echo_n "(cached)" >&62099 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2101 if test "${ac_cv_prog_CC+set}" = set; then 2102 echo $ECHO_N "(cached) $ECHO_C" >&6 2505 2103 else 2506 2104 if test -n "$CC"; then … … 2512 2110 IFS=$as_save_IFS 2513 2111 test -z "$as_dir" && as_dir=. 2514 2112 for ac_exec_ext in '' $ac_executable_extensions; do 2515 2113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2516 2114 ac_cv_prog_CC="${ac_tool_prefix}cc" 2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2518 2116 break 2 2519 2117 fi 2520 2118 done 2521 2119 done 2522 2120 IFS=$as_save_IFS 2523 2121 … … 2526 2124 CC=$ac_cv_prog_CC 2527 2125 if test -n "$CC"; then 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&52529 $as_echo "$CC" >&6; }2530 else 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&52532 $as_echo "no" >&6; }2126 { echo "$as_me:$LINENO: result: $CC" >&5 2127 echo "${ECHO_T}$CC" >&6; } 2128 else 2129 { echo "$as_me:$LINENO: result: no" >&5 2130 echo "${ECHO_T}no" >&6; } 2533 2131 fi 2534 2132 … … 2539 2137 # Extract the first word of "cc", so it can be a program name with args. 2540 2138 set dummy cc; ac_word=$2 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&52542 $as_echo_n "checking for $ac_word..." >&6; }2543 if test "${ac_cv_prog_CC+set}" = set; then :2544 $as_echo_n "(cached)" >&62139 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2141 if test "${ac_cv_prog_CC+set}" = set; then 2142 echo $ECHO_N "(cached) $ECHO_C" >&6 2545 2143 else 2546 2144 if test -n "$CC"; then … … 2553 2151 IFS=$as_save_IFS 2554 2152 test -z "$as_dir" && as_dir=. 2555 2153 for ac_exec_ext in '' $ac_executable_extensions; do 2556 2154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2557 2155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then … … 2560 2158 fi 2561 2159 ac_cv_prog_CC="cc" 2562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2563 2161 break 2 2564 2162 fi 2565 2163 done 2566 2164 done 2567 2165 IFS=$as_save_IFS 2568 2166 … … 2583 2181 CC=$ac_cv_prog_CC 2584 2182 if test -n "$CC"; then 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&52586 $as_echo "$CC" >&6; }2587 else 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&52589 $as_echo "no" >&6; }2183 { echo "$as_me:$LINENO: result: $CC" >&5 2184 echo "${ECHO_T}$CC" >&6; } 2185 else 2186 { echo "$as_me:$LINENO: result: no" >&5 2187 echo "${ECHO_T}no" >&6; } 2590 2188 fi 2591 2189 … … 2598 2196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2599 2197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&52601 $as_echo_n "checking for $ac_word..." >&6; }2602 if test "${ac_cv_prog_CC+set}" = set; then :2603 $as_echo_n "(cached)" >&62198 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2200 if test "${ac_cv_prog_CC+set}" = set; then 2201 echo $ECHO_N "(cached) $ECHO_C" >&6 2604 2202 else 2605 2203 if test -n "$CC"; then … … 2611 2209 IFS=$as_save_IFS 2612 2210 test -z "$as_dir" && as_dir=. 2613 2211 for ac_exec_ext in '' $ac_executable_extensions; do 2614 2212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2615 2213 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2617 2215 break 2 2618 2216 fi 2619 2217 done 2620 2218 done 2621 2219 IFS=$as_save_IFS 2622 2220 … … 2625 2223 CC=$ac_cv_prog_CC 2626 2224 if test -n "$CC"; then 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&52628 $as_echo "$CC" >&6; }2629 else 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&52631 $as_echo "no" >&6; }2225 { echo "$as_me:$LINENO: result: $CC" >&5 2226 echo "${ECHO_T}$CC" >&6; } 2227 else 2228 { echo "$as_me:$LINENO: result: no" >&5 2229 echo "${ECHO_T}no" >&6; } 2632 2230 fi 2633 2231 … … 2642 2240 # Extract the first word of "$ac_prog", so it can be a program name with args. 2643 2241 set dummy $ac_prog; ac_word=$2 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&52645 $as_echo_n "checking for $ac_word..." >&6; }2646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :2647 $as_echo_n "(cached)" >&62242 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2244 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2245 echo $ECHO_N "(cached) $ECHO_C" >&6 2648 2246 else 2649 2247 if test -n "$ac_ct_CC"; then … … 2655 2253 IFS=$as_save_IFS 2656 2254 test -z "$as_dir" && as_dir=. 2657 2255 for ac_exec_ext in '' $ac_executable_extensions; do 2658 2256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2659 2257 ac_cv_prog_ac_ct_CC="$ac_prog" 2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2661 2259 break 2 2662 2260 fi 2663 2261 done 2664 2262 done 2665 2263 IFS=$as_save_IFS 2666 2264 … … 2669 2267 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2670 2268 if test -n "$ac_ct_CC"; then 2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&52672 $as_echo "$ac_ct_CC" >&6; }2673 else 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&52675 $as_echo "no" >&6; }2269 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2270 echo "${ECHO_T}$ac_ct_CC" >&6; } 2271 else 2272 { echo "$as_me:$LINENO: result: no" >&5 2273 echo "${ECHO_T}no" >&6; } 2676 2274 fi 2677 2275 … … 2685 2283 case $cross_compiling:$ac_tool_warned in 2686 2284 yes:) 2687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2285 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2286 whose name does not start with the host triplet. If you think this 2287 configuration is useful to you, please write to autoconf@gnu.org." >&5 2288 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2289 whose name does not start with the host triplet. If you think this 2290 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2689 2291 ac_tool_warned=yes ;; 2690 2292 esac … … 2696 2298 2697 2299 2698 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2700 as_fn_error "no acceptable C compiler found in \$PATH 2701 See \`config.log' for more details." "$LINENO" 5; } 2300 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2301 See \`config.log' for more details." >&5 2302 echo "$as_me: error: no acceptable C compiler found in \$PATH 2303 See \`config.log' for more details." >&2;} 2304 { (exit 1); exit 1; }; } 2702 2305 2703 2306 # Provide some information about the compiler. 2704 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2705 set X $ac_compile 2706 ac_compiler=$2 2707 for ac_option in --version -v -V -qversion; do 2708 { { ac_try="$ac_compiler $ac_option >&5" 2709 case "(($ac_try" in 2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2711 *) ac_try_echo=$ac_try;; 2712 esac 2713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2714 $as_echo "$ac_try_echo"; } >&5 2715 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2716 ac_status=$? 2717 if test -s conftest.err; then 2718 sed '10a\ 2719 ... rest of stderr output deleted ... 2720 10q' conftest.err >conftest.er1 2721 cat conftest.er1 >&5 2722 fi 2723 rm -f conftest.er1 conftest.err 2724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2725 test $ac_status = 0; } 2726 done 2727 2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2307 echo "$as_me:$LINENO: checking for C compiler version" >&5 2308 ac_compiler=`set X $ac_compile; echo $2` 2309 { (ac_try="$ac_compiler --version >&5" 2310 case "(($ac_try" in 2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2312 *) ac_try_echo=$ac_try;; 2313 esac 2314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2315 (eval "$ac_compiler --version >&5") 2>&5 2316 ac_status=$? 2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2318 (exit $ac_status); } 2319 { (ac_try="$ac_compiler -v >&5" 2320 case "(($ac_try" in 2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2322 *) ac_try_echo=$ac_try;; 2323 esac 2324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2325 (eval "$ac_compiler -v >&5") 2>&5 2326 ac_status=$? 2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2328 (exit $ac_status); } 2329 { (ac_try="$ac_compiler -V >&5" 2330 case "(($ac_try" in 2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2332 *) ac_try_echo=$ac_try;; 2333 esac 2334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2335 (eval "$ac_compiler -V >&5") 2>&5 2336 ac_status=$? 2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2338 (exit $ac_status); } 2339 2340 cat >conftest.$ac_ext <<_ACEOF 2341 /* confdefs.h. */ 2342 _ACEOF 2343 cat confdefs.h >>conftest.$ac_ext 2344 cat >>conftest.$ac_ext <<_ACEOF 2729 2345 /* end confdefs.h. */ 2730 2346 … … 2738 2354 _ACEOF 2739 2355 ac_clean_files_save=$ac_clean_files 2740 ac_clean_files="$ac_clean_files a.out a. out.dSYM a.exe b.out"2356 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2741 2357 # Try to create an executable without -o first, disregard a.out. 2742 2358 # It will help us diagnose broken compilers, and finding out an intuition 2743 2359 # of exeext. 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2745 $as_echo_n "checking whether the C compiler works... " >&6; } 2746 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2747 2748 # The possible output files: 2749 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2750 2360 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2361 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2362 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2363 # 2364 # List of possible output files, starting from the most likely. 2365 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2366 # only as a last resort. b.out is created by i960 compilers. 2367 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2368 # 2369 # The IRIX 6 linker writes into existing files which may not be 2370 # executable, retaining their permissions. Remove them first so a 2371 # subsequent execution test works. 2751 2372 ac_rmfiles= 2752 2373 for ac_file in $ac_files 2753 2374 do 2754 2375 case $ac_file in 2755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *. dSYM | *.o | *.obj ) ;;2376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2756 2377 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2757 2378 esac … … 2759 2380 rm -f $ac_rmfiles 2760 2381 2761 if { { ac_try="$ac_link_default" 2762 case "(($ac_try" in 2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2764 *) ac_try_echo=$ac_try;; 2765 esac 2766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2767 $as_echo "$ac_try_echo"; } >&5 2382 if { (ac_try="$ac_link_default" 2383 case "(($ac_try" in 2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2385 *) ac_try_echo=$ac_try;; 2386 esac 2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2768 2388 (eval "$ac_link_default") 2>&5 2769 2389 ac_status=$? 2770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&52771 test $ac_status = 0; }; then :2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2391 (exit $ac_status); }; then 2772 2392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2773 2393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' … … 2779 2399 test -f "$ac_file" || continue 2780 2400 case $ac_file in 2781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *. dSYM | *.o | *.obj )2401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2782 2402 ;; 2783 2403 [ab].out ) … … 2786 2406 break;; 2787 2407 *.* ) 2788 2408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2789 2409 then :; else 2790 2410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` … … 2805 2425 ac_file='' 2806 2426 fi 2807 if test -z "$ac_file"; then : 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2809 $as_echo "no" >&6; } 2810 $as_echo "$as_me: failed program was:" >&5 2811 sed 's/^/| /' conftest.$ac_ext >&5 2812 2813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2815 { as_fn_set_status 77 2816 as_fn_error "C compiler cannot create executables 2817 See \`config.log' for more details." "$LINENO" 5; }; } 2818 else 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2820 $as_echo "yes" >&6; } 2821 fi 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2823 $as_echo_n "checking for C compiler default output file name... " >&6; } 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2825 $as_echo "$ac_file" >&6; } 2427 2428 { echo "$as_me:$LINENO: result: $ac_file" >&5 2429 echo "${ECHO_T}$ac_file" >&6; } 2430 if test -z "$ac_file"; then 2431 echo "$as_me: failed program was:" >&5 2432 sed 's/^/| /' conftest.$ac_ext >&5 2433 2434 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2435 See \`config.log' for more details." >&5 2436 echo "$as_me: error: C compiler cannot create executables 2437 See \`config.log' for more details." >&2;} 2438 { (exit 77); exit 77; }; } 2439 fi 2440 2826 2441 ac_exeext=$ac_cv_exeext 2827 2442 2828 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2443 # Check that the compiler produces executables we can run. If not, either 2444 # the compiler is broken, or we cross compile. 2445 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2446 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2447 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2448 # If not cross compiling, check that we can run a simple program. 2449 if test "$cross_compiling" != yes; then 2450 if { ac_try='./$ac_file' 2451 { (case "(($ac_try" in 2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2453 *) ac_try_echo=$ac_try;; 2454 esac 2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2456 (eval "$ac_try") 2>&5 2457 ac_status=$? 2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2459 (exit $ac_status); }; }; then 2460 cross_compiling=no 2461 else 2462 if test "$cross_compiling" = maybe; then 2463 cross_compiling=yes 2464 else 2465 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2466 If you meant to cross compile, use \`--host'. 2467 See \`config.log' for more details." >&5 2468 echo "$as_me: error: cannot run C compiled programs. 2469 If you meant to cross compile, use \`--host'. 2470 See \`config.log' for more details." >&2;} 2471 { (exit 1); exit 1; }; } 2472 fi 2473 fi 2474 fi 2475 { echo "$as_me:$LINENO: result: yes" >&5 2476 echo "${ECHO_T}yes" >&6; } 2477 2478 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2829 2479 ac_clean_files=$ac_clean_files_save 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2831 $as_echo_n "checking for suffix of executables... " >&6; } 2832 if { { ac_try="$ac_link" 2833 case "(($ac_try" in 2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2835 *) ac_try_echo=$ac_try;; 2836 esac 2837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2838 $as_echo "$ac_try_echo"; } >&5 2480 # Check that the compiler produces executables we can run. If not, either 2481 # the compiler is broken, or we cross compile. 2482 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2483 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2484 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2485 echo "${ECHO_T}$cross_compiling" >&6; } 2486 2487 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2488 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2489 if { (ac_try="$ac_link" 2490 case "(($ac_try" in 2491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2492 *) ac_try_echo=$ac_try;; 2493 esac 2494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2839 2495 (eval "$ac_link") 2>&5 2840 2496 ac_status=$? 2841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&52842 test $ac_status = 0; }; then :2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2498 (exit $ac_status); }; then 2843 2499 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2844 2500 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will … … 2848 2504 test -f "$ac_file" || continue 2849 2505 case $ac_file in 2850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *. dSYM | *.o | *.obj ) ;;2506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2851 2507 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2852 2508 break;; … … 2855 2511 done 2856 2512 else 2857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2859 as_fn_error "cannot compute suffix of executables: cannot compile and link 2860 See \`config.log' for more details." "$LINENO" 5; } 2861 fi 2862 rm -f conftest conftest$ac_cv_exeext 2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2864 $as_echo "$ac_cv_exeext" >&6; } 2513 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2514 See \`config.log' for more details." >&5 2515 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2516 See \`config.log' for more details." >&2;} 2517 { (exit 1); exit 1; }; } 2518 fi 2519 2520 rm -f conftest$ac_cv_exeext 2521 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2522 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2865 2523 2866 2524 rm -f conftest.$ac_ext 2867 2525 EXEEXT=$ac_cv_exeext 2868 2526 ac_exeext=$EXEEXT 2869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2870 /* end confdefs.h. */ 2871 #include <stdio.h> 2527 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2528 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2529 if test "${ac_cv_objext+set}" = set; then 2530 echo $ECHO_N "(cached) $ECHO_C" >&6 2531 else 2532 cat >conftest.$ac_ext <<_ACEOF 2533 /* confdefs.h. */ 2534 _ACEOF 2535 cat confdefs.h >>conftest.$ac_ext 2536 cat >>conftest.$ac_ext <<_ACEOF 2537 /* end confdefs.h. */ 2538 2872 2539 int 2873 2540 main () 2874 2541 { 2875 FILE *f = fopen ("conftest.out", "w");2876 return ferror (f) || fclose (f) != 0;2877 2542 2878 2543 ; … … 2880 2545 } 2881 2546 _ACEOF 2882 ac_clean_files="$ac_clean_files conftest.out"2883 # Check that the compiler produces executables we can run. If not, either2884 # the compiler is broken, or we cross compile.2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&52886 $as_echo_n "checking whether we are cross compiling... " >&6; }2887 if test "$cross_compiling" != yes; then2888 { { ac_try="$ac_link"2889 case "(($ac_try" in2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;2891 *) ac_try_echo=$ac_try;;2892 esac2893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""2894 $as_echo "$ac_try_echo"; } >&52895 (eval "$ac_link") 2>&52896 ac_status=$?2897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&52898 test $ac_status = 0; }2899 if { ac_try='./conftest$ac_cv_exeext'2900 { { case "(($ac_try" in2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;2902 *) ac_try_echo=$ac_try;;2903 esac2904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""2905 $as_echo "$ac_try_echo"; } >&52906 (eval "$ac_try") 2>&52907 ac_status=$?2908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&52909 test $ac_status = 0; }; }; then2910 cross_compiling=no2911 else2912 if test "$cross_compiling" = maybe; then2913 cross_compiling=yes2914 else2915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&52916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2917 as_fn_error "cannot run C compiled programs.2918 If you meant to cross compile, use \`--host'.2919 See \`config.log' for more details." "$LINENO" 5; }2920 fi2921 fi2922 fi2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&52924 $as_echo "$cross_compiling" >&6; }2925 2926 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out2927 ac_clean_files=$ac_clean_files_save2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&52929 $as_echo_n "checking for suffix of object files... " >&6; }2930 if test "${ac_cv_objext+set}" = set; then :2931 $as_echo_n "(cached) " >&62932 else2933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2934 /* end confdefs.h. */2935 2936 int2937 main ()2938 {2939 2940 ;2941 return 0;2942 }2943 _ACEOF2944 2547 rm -f conftest.o conftest.obj 2945 if { { ac_try="$ac_compile" 2946 case "(($ac_try" in 2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2948 *) ac_try_echo=$ac_try;; 2949 esac 2950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2951 $as_echo "$ac_try_echo"; } >&5 2548 if { (ac_try="$ac_compile" 2549 case "(($ac_try" in 2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2551 *) ac_try_echo=$ac_try;; 2552 esac 2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2952 2554 (eval "$ac_compile") 2>&5 2953 2555 ac_status=$? 2954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&52955 test $ac_status = 0; }; then :2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2557 (exit $ac_status); }; then 2956 2558 for ac_file in conftest.o conftest.obj conftest.*; do 2957 2559 test -f "$ac_file" || continue; 2958 2560 case $ac_file in 2959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM) ;;2561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2960 2562 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2961 2563 break;; … … 2963 2565 done 2964 2566 else 2965 $as_echo "$as_me: failed program was:" >&5 2966 sed 's/^/| /' conftest.$ac_ext >&5 2967 2968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2970 as_fn_error "cannot compute suffix of object files: cannot compile 2971 See \`config.log' for more details." "$LINENO" 5; } 2972 fi 2567 echo "$as_me: failed program was:" >&5 2568 sed 's/^/| /' conftest.$ac_ext >&5 2569 2570 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2571 See \`config.log' for more details." >&5 2572 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2573 See \`config.log' for more details." >&2;} 2574 { (exit 1); exit 1; }; } 2575 fi 2576 2973 2577 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2974 2578 fi 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&52976 $as_echo "$ac_cv_objext" >&6; }2579 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2580 echo "${ECHO_T}$ac_cv_objext" >&6; } 2977 2581 OBJEXT=$ac_cv_objext 2978 2582 ac_objext=$OBJEXT 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2980 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2981 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 2982 $as_echo_n "(cached) " >&6 2983 else 2984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2583 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2584 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2585 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2586 echo $ECHO_N "(cached) $ECHO_C" >&6 2587 else 2588 cat >conftest.$ac_ext <<_ACEOF 2589 /* confdefs.h. */ 2590 _ACEOF 2591 cat confdefs.h >>conftest.$ac_ext 2592 cat >>conftest.$ac_ext <<_ACEOF 2985 2593 /* end confdefs.h. */ 2986 2594 … … 2996 2604 } 2997 2605 _ACEOF 2998 if ac_fn_c_try_compile "$LINENO"; then : 2606 rm -f conftest.$ac_objext 2607 if { (ac_try="$ac_compile" 2608 case "(($ac_try" in 2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2610 *) ac_try_echo=$ac_try;; 2611 esac 2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2613 (eval "$ac_compile") 2>conftest.er1 2614 ac_status=$? 2615 grep -v '^ *+' conftest.er1 >conftest.err 2616 rm -f conftest.er1 2617 cat conftest.err >&5 2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2619 (exit $ac_status); } && { 2620 test -z "$ac_c_werror_flag" || 2621 test ! -s conftest.err 2622 } && test -s conftest.$ac_objext; then 2999 2623 ac_compiler_gnu=yes 3000 2624 else 3001 ac_compiler_gnu=no 3002 fi 2625 echo "$as_me: failed program was:" >&5 2626 sed 's/^/| /' conftest.$ac_ext >&5 2627 2628 ac_compiler_gnu=no 2629 fi 2630 3003 2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3004 2632 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3005 2633 3006 2634 fi 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3008 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3009 if test $ac_compiler_gnu = yes; then 3010 GCC=yes 3011 else 3012 GCC= 3013 fi 2635 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2636 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2637 GCC=`test $ac_compiler_gnu = yes && echo yes` 3014 2638 ac_test_CFLAGS=${CFLAGS+set} 3015 2639 ac_save_CFLAGS=$CFLAGS 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&53017 $as_echo_n "checking whether $CC accepts -g..." >&6; }3018 if test "${ac_cv_prog_cc_g+set}" = set; then :3019 $as_echo_n "(cached)" >&62640 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2641 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2642 if test "${ac_cv_prog_cc_g+set}" = set; then 2643 echo $ECHO_N "(cached) $ECHO_C" >&6 3020 2644 else 3021 2645 ac_save_c_werror_flag=$ac_c_werror_flag … … 3023 2647 ac_cv_prog_cc_g=no 3024 2648 CFLAGS="-g" 3025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2649 cat >conftest.$ac_ext <<_ACEOF 2650 /* confdefs.h. */ 2651 _ACEOF 2652 cat confdefs.h >>conftest.$ac_ext 2653 cat >>conftest.$ac_ext <<_ACEOF 3026 2654 /* end confdefs.h. */ 3027 2655 … … 3034 2662 } 3035 2663 _ACEOF 3036 if ac_fn_c_try_compile "$LINENO"; then : 2664 rm -f conftest.$ac_objext 2665 if { (ac_try="$ac_compile" 2666 case "(($ac_try" in 2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2668 *) ac_try_echo=$ac_try;; 2669 esac 2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2671 (eval "$ac_compile") 2>conftest.er1 2672 ac_status=$? 2673 grep -v '^ *+' conftest.er1 >conftest.err 2674 rm -f conftest.er1 2675 cat conftest.err >&5 2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2677 (exit $ac_status); } && { 2678 test -z "$ac_c_werror_flag" || 2679 test ! -s conftest.err 2680 } && test -s conftest.$ac_objext; then 3037 2681 ac_cv_prog_cc_g=yes 3038 2682 else 3039 CFLAGS="" 3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2683 echo "$as_me: failed program was:" >&5 2684 sed 's/^/| /' conftest.$ac_ext >&5 2685 2686 CFLAGS="" 2687 cat >conftest.$ac_ext <<_ACEOF 2688 /* confdefs.h. */ 2689 _ACEOF 2690 cat confdefs.h >>conftest.$ac_ext 2691 cat >>conftest.$ac_ext <<_ACEOF 3041 2692 /* end confdefs.h. */ 3042 2693 … … 3049 2700 } 3050 2701 _ACEOF 3051 if ac_fn_c_try_compile "$LINENO"; then : 3052 3053 else 3054 ac_c_werror_flag=$ac_save_c_werror_flag 2702 rm -f conftest.$ac_objext 2703 if { (ac_try="$ac_compile" 2704 case "(($ac_try" in 2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2706 *) ac_try_echo=$ac_try;; 2707 esac 2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2709 (eval "$ac_compile") 2>conftest.er1 2710 ac_status=$? 2711 grep -v '^ *+' conftest.er1 >conftest.err 2712 rm -f conftest.er1 2713 cat conftest.err >&5 2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2715 (exit $ac_status); } && { 2716 test -z "$ac_c_werror_flag" || 2717 test ! -s conftest.err 2718 } && test -s conftest.$ac_objext; then 2719 : 2720 else 2721 echo "$as_me: failed program was:" >&5 2722 sed 's/^/| /' conftest.$ac_ext >&5 2723 2724 ac_c_werror_flag=$ac_save_c_werror_flag 3055 2725 CFLAGS="-g" 3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2726 cat >conftest.$ac_ext <<_ACEOF 2727 /* confdefs.h. */ 2728 _ACEOF 2729 cat confdefs.h >>conftest.$ac_ext 2730 cat >>conftest.$ac_ext <<_ACEOF 3057 2731 /* end confdefs.h. */ 3058 2732 … … 3065 2739 } 3066 2740 _ACEOF 3067 if ac_fn_c_try_compile "$LINENO"; then : 2741 rm -f conftest.$ac_objext 2742 if { (ac_try="$ac_compile" 2743 case "(($ac_try" in 2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2745 *) ac_try_echo=$ac_try;; 2746 esac 2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2748 (eval "$ac_compile") 2>conftest.er1 2749 ac_status=$? 2750 grep -v '^ *+' conftest.er1 >conftest.err 2751 rm -f conftest.er1 2752 cat conftest.err >&5 2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2754 (exit $ac_status); } && { 2755 test -z "$ac_c_werror_flag" || 2756 test ! -s conftest.err 2757 } && test -s conftest.$ac_objext; then 3068 2758 ac_cv_prog_cc_g=yes 3069 fi 2759 else 2760 echo "$as_me: failed program was:" >&5 2761 sed 's/^/| /' conftest.$ac_ext >&5 2762 2763 2764 fi 2765 3070 2766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3071 2767 fi 2768 3072 2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3073 2770 fi 2771 3074 2772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3075 2773 ac_c_werror_flag=$ac_save_c_werror_flag 3076 2774 fi 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&53078 $as_echo "$ac_cv_prog_cc_g" >&6; }2775 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2776 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3079 2777 if test "$ac_test_CFLAGS" = set; then 3080 2778 CFLAGS=$ac_save_CFLAGS … … 3092 2790 fi 3093 2791 fi 3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&53095 $as_echo_n "checking for $CC option to accept ISO C89..." >&6; }3096 if test "${ac_cv_prog_cc_c89+set}" = set; then :3097 $as_echo_n "(cached)" >&62792 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2793 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2794 if test "${ac_cv_prog_cc_c89+set}" = set; then 2795 echo $ECHO_N "(cached) $ECHO_C" >&6 3098 2796 else 3099 2797 ac_cv_prog_cc_c89=no 3100 2798 ac_save_CC=$CC 3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2799 cat >conftest.$ac_ext <<_ACEOF 2800 /* confdefs.h. */ 2801 _ACEOF 2802 cat confdefs.h >>conftest.$ac_ext 2803 cat >>conftest.$ac_ext <<_ACEOF 3102 2804 /* end confdefs.h. */ 3103 2805 #include <stdarg.h> … … 3156 2858 do 3157 2859 CC="$ac_save_CC $ac_arg" 3158 if ac_fn_c_try_compile "$LINENO"; then : 2860 rm -f conftest.$ac_objext 2861 if { (ac_try="$ac_compile" 2862 case "(($ac_try" in 2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2864 *) ac_try_echo=$ac_try;; 2865 esac 2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2867 (eval "$ac_compile") 2>conftest.er1 2868 ac_status=$? 2869 grep -v '^ *+' conftest.er1 >conftest.err 2870 rm -f conftest.er1 2871 cat conftest.err >&5 2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2873 (exit $ac_status); } && { 2874 test -z "$ac_c_werror_flag" || 2875 test ! -s conftest.err 2876 } && test -s conftest.$ac_objext; then 3159 2877 ac_cv_prog_cc_c89=$ac_arg 3160 fi 2878 else 2879 echo "$as_me: failed program was:" >&5 2880 sed 's/^/| /' conftest.$ac_ext >&5 2881 2882 2883 fi 2884 3161 2885 rm -f core conftest.err conftest.$ac_objext 3162 2886 test "x$ac_cv_prog_cc_c89" != "xno" && break … … 3169 2893 case "x$ac_cv_prog_cc_c89" in 3170 2894 x) 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&53172 $as_echo "none needed" >&6; } ;;2895 { echo "$as_me:$LINENO: result: none needed" >&5 2896 echo "${ECHO_T}none needed" >&6; } ;; 3173 2897 xno) 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&53175 $as_echo "unsupported" >&6; } ;;2898 { echo "$as_me:$LINENO: result: unsupported" >&5 2899 echo "${ECHO_T}unsupported" >&6; } ;; 3176 2900 *) 3177 2901 CC="$CC $ac_cv_prog_cc_c89" 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3179 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3180 esac 3181 if test "x$ac_cv_prog_cc_c89" != xno; then : 3182 3183 fi 2902 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2903 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2904 esac 2905 3184 2906 3185 2907 ac_ext=c … … 3203 2925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3204 2926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&53206 $as_echo_n "checking for $ac_word..." >&6; }3207 if test "${ac_cv_prog_CXX+set}" = set; then :3208 $as_echo_n "(cached)" >&62927 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2929 if test "${ac_cv_prog_CXX+set}" = set; then 2930 echo $ECHO_N "(cached) $ECHO_C" >&6 3209 2931 else 3210 2932 if test -n "$CXX"; then … … 3216 2938 IFS=$as_save_IFS 3217 2939 test -z "$as_dir" && as_dir=. 3218 2940 for ac_exec_ext in '' $ac_executable_extensions; do 3219 2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3220 2942 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3222 2944 break 2 3223 2945 fi 3224 2946 done 3225 2947 done 3226 2948 IFS=$as_save_IFS 3227 2949 … … 3230 2952 CXX=$ac_cv_prog_CXX 3231 2953 if test -n "$CXX"; then 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&53233 $as_echo "$CXX" >&6; }3234 else 3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&53236 $as_echo "no" >&6; }2954 { echo "$as_me:$LINENO: result: $CXX" >&5 2955 echo "${ECHO_T}$CXX" >&6; } 2956 else 2957 { echo "$as_me:$LINENO: result: no" >&5 2958 echo "${ECHO_T}no" >&6; } 3237 2959 fi 3238 2960 … … 3247 2969 # Extract the first word of "$ac_prog", so it can be a program name with args. 3248 2970 set dummy $ac_prog; ac_word=$2 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&53250 $as_echo_n "checking for $ac_word..." >&6; }3251 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :3252 $as_echo_n "(cached)" >&62971 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2973 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2974 echo $ECHO_N "(cached) $ECHO_C" >&6 3253 2975 else 3254 2976 if test -n "$ac_ct_CXX"; then … … 3260 2982 IFS=$as_save_IFS 3261 2983 test -z "$as_dir" && as_dir=. 3262 2984 for ac_exec_ext in '' $ac_executable_extensions; do 3263 2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3264 2986 ac_cv_prog_ac_ct_CXX="$ac_prog" 3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3266 2988 break 2 3267 2989 fi 3268 2990 done 3269 2991 done 3270 2992 IFS=$as_save_IFS 3271 2993 … … 3274 2996 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3275 2997 if test -n "$ac_ct_CXX"; then 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&53277 $as_echo "$ac_ct_CXX" >&6; }3278 else 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&53280 $as_echo "no" >&6; }2998 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2999 echo "${ECHO_T}$ac_ct_CXX" >&6; } 3000 else 3001 { echo "$as_me:$LINENO: result: no" >&5 3002 echo "${ECHO_T}no" >&6; } 3281 3003 fi 3282 3004 … … 3290 3012 case $cross_compiling:$ac_tool_warned in 3291 3013 yes:) 3292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3015 whose name does not start with the host triplet. If you think this 3016 configuration is useful to you, please write to autoconf@gnu.org." >&5 3017 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3018 whose name does not start with the host triplet. If you think this 3019 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3294 3020 ac_tool_warned=yes ;; 3295 3021 esac … … 3301 3027 fi 3302 3028 # Provide some information about the compiler. 3303 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3304 set X $ac_compile 3305 ac_compiler=$2 3306 for ac_option in --version -v -V -qversion; do 3307 { { ac_try="$ac_compiler $ac_option >&5" 3308 case "(($ac_try" in 3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3310 *) ac_try_echo=$ac_try;; 3311 esac 3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3313 $as_echo "$ac_try_echo"; } >&5 3314 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3315 ac_status=$? 3316 if test -s conftest.err; then 3317 sed '10a\ 3318 ... rest of stderr output deleted ... 3319 10q' conftest.err >conftest.er1 3320 cat conftest.er1 >&5 3321 fi 3322 rm -f conftest.er1 conftest.err 3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3324 test $ac_status = 0; } 3325 done 3326 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3328 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3329 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 3330 $as_echo_n "(cached) " >&6 3331 else 3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3029 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3030 ac_compiler=`set X $ac_compile; echo $2` 3031 { (ac_try="$ac_compiler --version >&5" 3032 case "(($ac_try" in 3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3034 *) ac_try_echo=$ac_try;; 3035 esac 3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3037 (eval "$ac_compiler --version >&5") 2>&5 3038 ac_status=$? 3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3040 (exit $ac_status); } 3041 { (ac_try="$ac_compiler -v >&5" 3042 case "(($ac_try" in 3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3044 *) ac_try_echo=$ac_try;; 3045 esac 3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3047 (eval "$ac_compiler -v >&5") 2>&5 3048 ac_status=$? 3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3050 (exit $ac_status); } 3051 { (ac_try="$ac_compiler -V >&5" 3052 case "(($ac_try" in 3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3054 *) ac_try_echo=$ac_try;; 3055 esac 3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3057 (eval "$ac_compiler -V >&5") 2>&5 3058 ac_status=$? 3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3060 (exit $ac_status); } 3061 3062 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3063 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 3064 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3065 echo $ECHO_N "(cached) $ECHO_C" >&6 3066 else 3067 cat >conftest.$ac_ext <<_ACEOF 3068 /* confdefs.h. */ 3069 _ACEOF 3070 cat confdefs.h >>conftest.$ac_ext 3071 cat >>conftest.$ac_ext <<_ACEOF 3333 3072 /* end confdefs.h. */ 3334 3073 … … 3344 3083 } 3345 3084 _ACEOF 3346 if ac_fn_cxx_try_compile "$LINENO"; then : 3085 rm -f conftest.$ac_objext 3086 if { (ac_try="$ac_compile" 3087 case "(($ac_try" in 3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3089 *) ac_try_echo=$ac_try;; 3090 esac 3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3092 (eval "$ac_compile") 2>conftest.er1 3093 ac_status=$? 3094 grep -v '^ *+' conftest.er1 >conftest.err 3095 rm -f conftest.er1 3096 cat conftest.err >&5 3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3098 (exit $ac_status); } && { 3099 test -z "$ac_cxx_werror_flag" || 3100 test ! -s conftest.err 3101 } && test -s conftest.$ac_objext; then 3347 3102 ac_compiler_gnu=yes 3348 3103 else 3349 ac_compiler_gnu=no 3350 fi 3104 echo "$as_me: failed program was:" >&5 3105 sed 's/^/| /' conftest.$ac_ext >&5 3106 3107 ac_compiler_gnu=no 3108 fi 3109 3351 3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3352 3111 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3353 3112 3354 3113 fi 3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3356 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3357 if test $ac_compiler_gnu = yes; then 3358 GXX=yes 3359 else 3360 GXX= 3361 fi 3114 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3115 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3116 GXX=`test $ac_compiler_gnu = yes && echo yes` 3362 3117 ac_test_CXXFLAGS=${CXXFLAGS+set} 3363 3118 ac_save_CXXFLAGS=$CXXFLAGS 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&53365 $as_echo_n "checking whether $CXX accepts -g..." >&6; }3366 if test "${ac_cv_prog_cxx_g+set}" = set; then :3367 $as_echo_n "(cached)" >&63119 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3120 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3121 if test "${ac_cv_prog_cxx_g+set}" = set; then 3122 echo $ECHO_N "(cached) $ECHO_C" >&6 3368 3123 else 3369 3124 ac_save_cxx_werror_flag=$ac_cxx_werror_flag … … 3371 3126 ac_cv_prog_cxx_g=no 3372 3127 CXXFLAGS="-g" 3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3128 cat >conftest.$ac_ext <<_ACEOF 3129 /* confdefs.h. */ 3130 _ACEOF 3131 cat confdefs.h >>conftest.$ac_ext 3132 cat >>conftest.$ac_ext <<_ACEOF 3374 3133 /* end confdefs.h. */ 3375 3134 … … 3382 3141 } 3383 3142 _ACEOF 3384 if ac_fn_cxx_try_compile "$LINENO"; then : 3143 rm -f conftest.$ac_objext 3144 if { (ac_try="$ac_compile" 3145 case "(($ac_try" in 3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3147 *) ac_try_echo=$ac_try;; 3148 esac 3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3150 (eval "$ac_compile") 2>conftest.er1 3151 ac_status=$? 3152 grep -v '^ *+' conftest.er1 >conftest.err 3153 rm -f conftest.er1 3154 cat conftest.err >&5 3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3156 (exit $ac_status); } && { 3157 test -z "$ac_cxx_werror_flag" || 3158 test ! -s conftest.err 3159 } && test -s conftest.$ac_objext; then 3385 3160 ac_cv_prog_cxx_g=yes 3386 3161 else 3387 CXXFLAGS="" 3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3162 echo "$as_me: failed program was:" >&5 3163 sed 's/^/| /' conftest.$ac_ext >&5 3164 3165 CXXFLAGS="" 3166 cat >conftest.$ac_ext <<_ACEOF 3167 /* confdefs.h. */ 3168 _ACEOF 3169 cat confdefs.h >>conftest.$ac_ext 3170 cat >>conftest.$ac_ext <<_ACEOF 3389 3171 /* end confdefs.h. */ 3390 3172 … … 3397 3179 } 3398 3180 _ACEOF 3399 if ac_fn_cxx_try_compile "$LINENO"; then : 3400 3401 else 3402 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3181 rm -f conftest.$ac_objext 3182 if { (ac_try="$ac_compile" 3183 case "(($ac_try" in 3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3185 *) ac_try_echo=$ac_try;; 3186 esac 3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3188 (eval "$ac_compile") 2>conftest.er1 3189 ac_status=$? 3190 grep -v '^ *+' conftest.er1 >conftest.err 3191 rm -f conftest.er1 3192 cat conftest.err >&5 3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3194 (exit $ac_status); } && { 3195 test -z "$ac_cxx_werror_flag" || 3196 test ! -s conftest.err 3197 } && test -s conftest.$ac_objext; then 3198 : 3199 else 3200 echo "$as_me: failed program was:" >&5 3201 sed 's/^/| /' conftest.$ac_ext >&5 3202 3203 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3403 3204 CXXFLAGS="-g" 3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3205 cat >conftest.$ac_ext <<_ACEOF 3206 /* confdefs.h. */ 3207 _ACEOF 3208 cat confdefs.h >>conftest.$ac_ext 3209 cat >>conftest.$ac_ext <<_ACEOF 3405 3210 /* end confdefs.h. */ 3406 3211 … … 3413 3218 } 3414 3219 _ACEOF 3415 if ac_fn_cxx_try_compile "$LINENO"; then : 3220 rm -f conftest.$ac_objext 3221 if { (ac_try="$ac_compile" 3222 case "(($ac_try" in 3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3224 *) ac_try_echo=$ac_try;; 3225 esac 3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3227 (eval "$ac_compile") 2>conftest.er1 3228 ac_status=$? 3229 grep -v '^ *+' conftest.er1 >conftest.err 3230 rm -f conftest.er1 3231 cat conftest.err >&5 3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3233 (exit $ac_status); } && { 3234 test -z "$ac_cxx_werror_flag" || 3235 test ! -s conftest.err 3236 } && test -s conftest.$ac_objext; then 3416 3237 ac_cv_prog_cxx_g=yes 3417 fi 3238 else 3239 echo "$as_me: failed program was:" >&5 3240 sed 's/^/| /' conftest.$ac_ext >&5 3241 3242 3243 fi 3244 3418 3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3419 3246 fi 3247 3420 3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3421 3249 fi 3250 3422 3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3423 3252 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3424 3253 fi 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&53426 $as_echo "$ac_cv_prog_cxx_g" >&6; }3254 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3255 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3427 3256 if test "$ac_test_CXXFLAGS" = set; then 3428 3257 CXXFLAGS=$ac_save_CXXFLAGS … … 3461 3290 if test "$LD" = ""; then LD="$CC"; fi 3462 3291 3463 if test "$LDOUT" = ""; then LDOUT="-o "; fi3292 if test "$LDOUT" = ""; then LDOUT="-o "; fi 3464 3293 3465 3294 if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi … … 3471 3300 if test "$LIBEXT2" = ""; then LIBEXT2=""; fi 3472 3301 3473 if test "$CC_OUT" = ""; then CC_OUT="-o "; fi3302 if test "$CC_OUT" = ""; then CC_OUT="-o "; fi 3474 3303 3475 3304 if test "$CC_INC" = ""; then CC_INC="-I"; fi … … 3502 3331 3503 3332 3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 3505 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } 3506 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : 3507 $as_echo_n "(cached) " >&6 3333 3334 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 3335 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } 3336 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 3337 echo $ECHO_N "(cached) $ECHO_C" >&6 3508 3338 else 3509 3339 ac_check_lib_save_LIBS=$LIBS 3510 3340 LIBS="-lpthread $LIBS" 3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3341 cat >conftest.$ac_ext <<_ACEOF 3342 /* confdefs.h. */ 3343 _ACEOF 3344 cat confdefs.h >>conftest.$ac_ext 3345 cat >>conftest.$ac_ext <<_ACEOF 3512 3346 /* end confdefs.h. */ 3513 3347 … … 3527 3361 } 3528 3362 _ACEOF 3529 if ac_fn_c_try_link "$LINENO"; then : 3363 rm -f conftest.$ac_objext conftest$ac_exeext 3364 if { (ac_try="$ac_link" 3365 case "(($ac_try" in 3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3367 *) ac_try_echo=$ac_try;; 3368 esac 3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3370 (eval "$ac_link") 2>conftest.er1 3371 ac_status=$? 3372 grep -v '^ *+' conftest.er1 >conftest.err 3373 rm -f conftest.er1 3374 cat conftest.err >&5 3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3376 (exit $ac_status); } && { 3377 test -z "$ac_c_werror_flag" || 3378 test ! -s conftest.err 3379 } && test -s conftest$ac_exeext && 3380 $as_test_x conftest$ac_exeext; then 3530 3381 ac_cv_lib_pthread_pthread_create=yes 3531 3382 else 3532 ac_cv_lib_pthread_pthread_create=no 3533 fi 3534 rm -f core conftest.err conftest.$ac_objext \ 3535 conftest$ac_exeext conftest.$ac_ext 3383 echo "$as_me: failed program was:" >&5 3384 sed 's/^/| /' conftest.$ac_ext >&5 3385 3386 ac_cv_lib_pthread_pthread_create=no 3387 fi 3388 3389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3390 conftest$ac_exeext conftest.$ac_ext 3536 3391 LIBS=$ac_check_lib_save_LIBS 3537 3392 fi 3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&53539 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }3540 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :3393 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 3394 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } 3395 if test $ac_cv_lib_pthread_pthread_create = yes; then 3541 3396 cat >>confdefs.h <<_ACEOF 3542 3397 #define HAVE_LIBPTHREAD 1 … … 3547 3402 fi 3548 3403 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5 3550 $as_echo_n "checking for puts in -lwsock32... " >&6; } 3551 if test "${ac_cv_lib_wsock32_puts+set}" = set; then : 3552 $as_echo_n "(cached) " >&6 3404 3405 { echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5 3406 echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6; } 3407 if test "${ac_cv_lib_wsock32_puts+set}" = set; then 3408 echo $ECHO_N "(cached) $ECHO_C" >&6 3553 3409 else 3554 3410 ac_check_lib_save_LIBS=$LIBS 3555 3411 LIBS="-lwsock32 $LIBS" 3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3412 cat >conftest.$ac_ext <<_ACEOF 3413 /* confdefs.h. */ 3414 _ACEOF 3415 cat confdefs.h >>conftest.$ac_ext 3416 cat >>conftest.$ac_ext <<_ACEOF 3557 3417 /* end confdefs.h. */ 3558 3418 … … 3572 3432 } 3573 3433 _ACEOF 3574 if ac_fn_c_try_link "$LINENO"; then : 3434 rm -f conftest.$ac_objext conftest$ac_exeext 3435 if { (ac_try="$ac_link" 3436 case "(($ac_try" in 3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3438 *) ac_try_echo=$ac_try;; 3439 esac 3440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3441 (eval "$ac_link") 2>conftest.er1 3442 ac_status=$? 3443 grep -v '^ *+' conftest.er1 >conftest.err 3444 rm -f conftest.er1 3445 cat conftest.err >&5 3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3447 (exit $ac_status); } && { 3448 test -z "$ac_c_werror_flag" || 3449 test ! -s conftest.err 3450 } && test -s conftest$ac_exeext && 3451 $as_test_x conftest$ac_exeext; then 3575 3452 ac_cv_lib_wsock32_puts=yes 3576 3453 else 3577 ac_cv_lib_wsock32_puts=no 3578 fi 3579 rm -f core conftest.err conftest.$ac_objext \ 3580 conftest$ac_exeext conftest.$ac_ext 3454 echo "$as_me: failed program was:" >&5 3455 sed 's/^/| /' conftest.$ac_ext >&5 3456 3457 ac_cv_lib_wsock32_puts=no 3458 fi 3459 3460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3461 conftest$ac_exeext conftest.$ac_ext 3581 3462 LIBS=$ac_check_lib_save_LIBS 3582 3463 fi 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&53584 $as_echo "$ac_cv_lib_wsock32_puts" >&6; }3585 if test "x$ac_cv_lib_wsock32_puts" = x""yes; then :3464 { echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5 3465 echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6; } 3466 if test $ac_cv_lib_wsock32_puts = yes; then 3586 3467 cat >>confdefs.h <<_ACEOF 3587 3468 #define HAVE_LIBWSOCK32 1 … … 3592 3473 fi 3593 3474 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5 3595 $as_echo_n "checking for puts in -lws2_32... " >&6; } 3596 if test "${ac_cv_lib_ws2_32_puts+set}" = set; then : 3597 $as_echo_n "(cached) " >&6 3475 3476 { echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5 3477 echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6; } 3478 if test "${ac_cv_lib_ws2_32_puts+set}" = set; then 3479 echo $ECHO_N "(cached) $ECHO_C" >&6 3598 3480 else 3599 3481 ac_check_lib_save_LIBS=$LIBS 3600 3482 LIBS="-lws2_32 $LIBS" 3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3483 cat >conftest.$ac_ext <<_ACEOF 3484 /* confdefs.h. */ 3485 _ACEOF 3486 cat confdefs.h >>conftest.$ac_ext 3487 cat >>conftest.$ac_ext <<_ACEOF 3602 3488 /* end confdefs.h. */ 3603 3489 … … 3617 3503 } 3618 3504 _ACEOF 3619 if ac_fn_c_try_link "$LINENO"; then : 3505 rm -f conftest.$ac_objext conftest$ac_exeext 3506 if { (ac_try="$ac_link" 3507 case "(($ac_try" in 3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3509 *) ac_try_echo=$ac_try;; 3510 esac 3511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3512 (eval "$ac_link") 2>conftest.er1 3513 ac_status=$? 3514 grep -v '^ *+' conftest.er1 >conftest.err 3515 rm -f conftest.er1 3516 cat conftest.err >&5 3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3518 (exit $ac_status); } && { 3519 test -z "$ac_c_werror_flag" || 3520 test ! -s conftest.err 3521 } && test -s conftest$ac_exeext && 3522 $as_test_x conftest$ac_exeext; then 3620 3523 ac_cv_lib_ws2_32_puts=yes 3621 3524 else 3622 ac_cv_lib_ws2_32_puts=no 3623 fi 3624 rm -f core conftest.err conftest.$ac_objext \ 3625 conftest$ac_exeext conftest.$ac_ext 3525 echo "$as_me: failed program was:" >&5 3526 sed 's/^/| /' conftest.$ac_ext >&5 3527 3528 ac_cv_lib_ws2_32_puts=no 3529 fi 3530 3531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3532 conftest$ac_exeext conftest.$ac_ext 3626 3533 LIBS=$ac_check_lib_save_LIBS 3627 3534 fi 3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&53629 $as_echo "$ac_cv_lib_ws2_32_puts" >&6; }3630 if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then :3535 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5 3536 echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6; } 3537 if test $ac_cv_lib_ws2_32_puts = yes; then 3631 3538 cat >>confdefs.h <<_ACEOF 3632 3539 #define HAVE_LIBWS2_32 1 … … 3637 3544 fi 3638 3545 3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5 3640 $as_echo_n "checking for puts in -lole32... " >&6; } 3641 if test "${ac_cv_lib_ole32_puts+set}" = set; then : 3642 $as_echo_n "(cached) " >&6 3546 3547 { echo "$as_me:$LINENO: checking for puts in -lole32" >&5 3548 echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6; } 3549 if test "${ac_cv_lib_ole32_puts+set}" = set; then 3550 echo $ECHO_N "(cached) $ECHO_C" >&6 3643 3551 else 3644 3552 ac_check_lib_save_LIBS=$LIBS 3645 3553 LIBS="-lole32 $LIBS" 3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3554 cat >conftest.$ac_ext <<_ACEOF 3555 /* confdefs.h. */ 3556 _ACEOF 3557 cat confdefs.h >>conftest.$ac_ext 3558 cat >>conftest.$ac_ext <<_ACEOF 3647 3559 /* end confdefs.h. */ 3648 3560 … … 3662 3574 } 3663 3575 _ACEOF 3664 if ac_fn_c_try_link "$LINENO"; then : 3576 rm -f conftest.$ac_objext conftest$ac_exeext 3577 if { (ac_try="$ac_link" 3578 case "(($ac_try" in 3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3580 *) ac_try_echo=$ac_try;; 3581 esac 3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3583 (eval "$ac_link") 2>conftest.er1 3584 ac_status=$? 3585 grep -v '^ *+' conftest.er1 >conftest.err 3586 rm -f conftest.er1 3587 cat conftest.err >&5 3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3589 (exit $ac_status); } && { 3590 test -z "$ac_c_werror_flag" || 3591 test ! -s conftest.err 3592 } && test -s conftest$ac_exeext && 3593 $as_test_x conftest$ac_exeext; then 3665 3594 ac_cv_lib_ole32_puts=yes 3666 3595 else 3667 ac_cv_lib_ole32_puts=no 3668 fi 3669 rm -f core conftest.err conftest.$ac_objext \ 3670 conftest$ac_exeext conftest.$ac_ext 3596 echo "$as_me: failed program was:" >&5 3597 sed 's/^/| /' conftest.$ac_ext >&5 3598 3599 ac_cv_lib_ole32_puts=no 3600 fi 3601 3602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3603 conftest$ac_exeext conftest.$ac_ext 3671 3604 LIBS=$ac_check_lib_save_LIBS 3672 3605 fi 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&53674 $as_echo "$ac_cv_lib_ole32_puts" >&6; }3675 if test "x$ac_cv_lib_ole32_puts" = x""yes; then :3606 { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5 3607 echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6; } 3608 if test $ac_cv_lib_ole32_puts = yes; then 3676 3609 cat >>confdefs.h <<_ACEOF 3677 3610 #define HAVE_LIBOLE32 1 … … 3682 3615 fi 3683 3616 3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5 3685 $as_echo_n "checking for puts in -lwinmm... " >&6; } 3686 if test "${ac_cv_lib_winmm_puts+set}" = set; then : 3687 $as_echo_n "(cached) " >&6 3617 3618 { echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5 3619 echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6; } 3620 if test "${ac_cv_lib_winmm_puts+set}" = set; then 3621 echo $ECHO_N "(cached) $ECHO_C" >&6 3688 3622 else 3689 3623 ac_check_lib_save_LIBS=$LIBS 3690 3624 LIBS="-lwinmm $LIBS" 3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3625 cat >conftest.$ac_ext <<_ACEOF 3626 /* confdefs.h. */ 3627 _ACEOF 3628 cat confdefs.h >>conftest.$ac_ext 3629 cat >>conftest.$ac_ext <<_ACEOF 3692 3630 /* end confdefs.h. */ 3693 3631 … … 3707 3645 } 3708 3646 _ACEOF 3709 if ac_fn_c_try_link "$LINENO"; then : 3647 rm -f conftest.$ac_objext conftest$ac_exeext 3648 if { (ac_try="$ac_link" 3649 case "(($ac_try" in 3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3651 *) ac_try_echo=$ac_try;; 3652 esac 3653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3654 (eval "$ac_link") 2>conftest.er1 3655 ac_status=$? 3656 grep -v '^ *+' conftest.er1 >conftest.err 3657 rm -f conftest.er1 3658 cat conftest.err >&5 3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3660 (exit $ac_status); } && { 3661 test -z "$ac_c_werror_flag" || 3662 test ! -s conftest.err 3663 } && test -s conftest$ac_exeext && 3664 $as_test_x conftest$ac_exeext; then 3710 3665 ac_cv_lib_winmm_puts=yes 3711 3666 else 3712 ac_cv_lib_winmm_puts=no 3713 fi 3714 rm -f core conftest.err conftest.$ac_objext \ 3715 conftest$ac_exeext conftest.$ac_ext 3667 echo "$as_me: failed program was:" >&5 3668 sed 's/^/| /' conftest.$ac_ext >&5 3669 3670 ac_cv_lib_winmm_puts=no 3671 fi 3672 3673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3674 conftest$ac_exeext conftest.$ac_ext 3716 3675 LIBS=$ac_check_lib_save_LIBS 3717 3676 fi 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&53719 $as_echo "$ac_cv_lib_winmm_puts" >&6; }3720 if test "x$ac_cv_lib_winmm_puts" = x""yes; then :3677 { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5 3678 echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6; } 3679 if test $ac_cv_lib_winmm_puts = yes; then 3721 3680 cat >>confdefs.h <<_ACEOF 3722 3681 #define HAVE_LIBWINMM 1 … … 3727 3686 fi 3728 3687 3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5 3730 $as_echo_n "checking for puts in -lsocket... " >&6; } 3731 if test "${ac_cv_lib_socket_puts+set}" = set; then : 3732 $as_echo_n "(cached) " >&6 3688 3689 { echo "$as_me:$LINENO: checking for puts in -lsocket" >&5 3690 echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6; } 3691 if test "${ac_cv_lib_socket_puts+set}" = set; then 3692 echo $ECHO_N "(cached) $ECHO_C" >&6 3733 3693 else 3734 3694 ac_check_lib_save_LIBS=$LIBS 3735 3695 LIBS="-lsocket $LIBS" 3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3696 cat >conftest.$ac_ext <<_ACEOF 3697 /* confdefs.h. */ 3698 _ACEOF 3699 cat confdefs.h >>conftest.$ac_ext 3700 cat >>conftest.$ac_ext <<_ACEOF 3737 3701 /* end confdefs.h. */ 3738 3702 … … 3752 3716 } 3753 3717 _ACEOF 3754 if ac_fn_c_try_link "$LINENO"; then : 3718 rm -f conftest.$ac_objext conftest$ac_exeext 3719 if { (ac_try="$ac_link" 3720 case "(($ac_try" in 3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3722 *) ac_try_echo=$ac_try;; 3723 esac 3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3725 (eval "$ac_link") 2>conftest.er1 3726 ac_status=$? 3727 grep -v '^ *+' conftest.er1 >conftest.err 3728 rm -f conftest.er1 3729 cat conftest.err >&5 3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3731 (exit $ac_status); } && { 3732 test -z "$ac_c_werror_flag" || 3733 test ! -s conftest.err 3734 } && test -s conftest$ac_exeext && 3735 $as_test_x conftest$ac_exeext; then 3755 3736 ac_cv_lib_socket_puts=yes 3756 3737 else 3757 ac_cv_lib_socket_puts=no 3758 fi 3759 rm -f core conftest.err conftest.$ac_objext \ 3760 conftest$ac_exeext conftest.$ac_ext 3738 echo "$as_me: failed program was:" >&5 3739 sed 's/^/| /' conftest.$ac_ext >&5 3740 3741 ac_cv_lib_socket_puts=no 3742 fi 3743 3744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3745 conftest$ac_exeext conftest.$ac_ext 3761 3746 LIBS=$ac_check_lib_save_LIBS 3762 3747 fi 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&53764 $as_echo "$ac_cv_lib_socket_puts" >&6; }3765 if test "x$ac_cv_lib_socket_puts" = x""yes; then :3748 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5 3749 echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6; } 3750 if test $ac_cv_lib_socket_puts = yes; then 3766 3751 cat >>confdefs.h <<_ACEOF 3767 3752 #define HAVE_LIBSOCKET 1 … … 3772 3757 fi 3773 3758 3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5 3775 $as_echo_n "checking for puts in -lrt... " >&6; } 3776 if test "${ac_cv_lib_rt_puts+set}" = set; then : 3777 $as_echo_n "(cached) " >&6 3759 3760 { echo "$as_me:$LINENO: checking for puts in -lrt" >&5 3761 echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6; } 3762 if test "${ac_cv_lib_rt_puts+set}" = set; then 3763 echo $ECHO_N "(cached) $ECHO_C" >&6 3778 3764 else 3779 3765 ac_check_lib_save_LIBS=$LIBS 3780 3766 LIBS="-lrt $LIBS" 3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3767 cat >conftest.$ac_ext <<_ACEOF 3768 /* confdefs.h. */ 3769 _ACEOF 3770 cat confdefs.h >>conftest.$ac_ext 3771 cat >>conftest.$ac_ext <<_ACEOF 3782 3772 /* end confdefs.h. */ 3783 3773 … … 3797 3787 } 3798 3788 _ACEOF 3799 if ac_fn_c_try_link "$LINENO"; then : 3789 rm -f conftest.$ac_objext conftest$ac_exeext 3790 if { (ac_try="$ac_link" 3791 case "(($ac_try" in 3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3793 *) ac_try_echo=$ac_try;; 3794 esac 3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3796 (eval "$ac_link") 2>conftest.er1 3797 ac_status=$? 3798 grep -v '^ *+' conftest.er1 >conftest.err 3799 rm -f conftest.er1 3800 cat conftest.err >&5 3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3802 (exit $ac_status); } && { 3803 test -z "$ac_c_werror_flag" || 3804 test ! -s conftest.err 3805 } && test -s conftest$ac_exeext && 3806 $as_test_x conftest$ac_exeext; then 3800 3807 ac_cv_lib_rt_puts=yes 3801 3808 else 3802 ac_cv_lib_rt_puts=no 3803 fi 3804 rm -f core conftest.err conftest.$ac_objext \ 3805 conftest$ac_exeext conftest.$ac_ext 3809 echo "$as_me: failed program was:" >&5 3810 sed 's/^/| /' conftest.$ac_ext >&5 3811 3812 ac_cv_lib_rt_puts=no 3813 fi 3814 3815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3816 conftest$ac_exeext conftest.$ac_ext 3806 3817 LIBS=$ac_check_lib_save_LIBS 3807 3818 fi 3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&53809 $as_echo "$ac_cv_lib_rt_puts" >&6; }3810 if test "x$ac_cv_lib_rt_puts" = x""yes; then :3819 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5 3820 echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6; } 3821 if test $ac_cv_lib_rt_puts = yes; then 3811 3822 cat >>confdefs.h <<_ACEOF 3812 3823 #define HAVE_LIBRT 1 … … 3817 3828 fi 3818 3829 3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5 3820 $as_echo_n "checking for puts in -lnsl... " >&6; } 3821 if test "${ac_cv_lib_nsl_puts+set}" = set; then : 3822 $as_echo_n "(cached) " >&6 3830 3831 { echo "$as_me:$LINENO: checking for puts in -lnsl" >&5 3832 echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6; } 3833 if test "${ac_cv_lib_nsl_puts+set}" = set; then 3834 echo $ECHO_N "(cached) $ECHO_C" >&6 3823 3835 else 3824 3836 ac_check_lib_save_LIBS=$LIBS 3825 3837 LIBS="-lnsl $LIBS" 3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3838 cat >conftest.$ac_ext <<_ACEOF 3839 /* confdefs.h. */ 3840 _ACEOF 3841 cat confdefs.h >>conftest.$ac_ext 3842 cat >>conftest.$ac_ext <<_ACEOF 3827 3843 /* end confdefs.h. */ 3828 3844 … … 3842 3858 } 3843 3859 _ACEOF 3844 if ac_fn_c_try_link "$LINENO"; then : 3860 rm -f conftest.$ac_objext conftest$ac_exeext 3861 if { (ac_try="$ac_link" 3862 case "(($ac_try" in 3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3864 *) ac_try_echo=$ac_try;; 3865 esac 3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3867 (eval "$ac_link") 2>conftest.er1 3868 ac_status=$? 3869 grep -v '^ *+' conftest.er1 >conftest.err 3870 rm -f conftest.er1 3871 cat conftest.err >&5 3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3873 (exit $ac_status); } && { 3874 test -z "$ac_c_werror_flag" || 3875 test ! -s conftest.err 3876 } && test -s conftest$ac_exeext && 3877 $as_test_x conftest$ac_exeext; then 3845 3878 ac_cv_lib_nsl_puts=yes 3846 3879 else 3847 ac_cv_lib_nsl_puts=no 3848 fi 3849 rm -f core conftest.err conftest.$ac_objext \ 3850 conftest$ac_exeext conftest.$ac_ext 3880 echo "$as_me: failed program was:" >&5 3881 sed 's/^/| /' conftest.$ac_ext >&5 3882 3883 ac_cv_lib_nsl_puts=no 3884 fi 3885 3886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3887 conftest$ac_exeext conftest.$ac_ext 3851 3888 LIBS=$ac_check_lib_save_LIBS 3852 3889 fi 3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&53854 $as_echo "$ac_cv_lib_nsl_puts" >&6; }3855 if test "x$ac_cv_lib_nsl_puts" = x""yes; then :3890 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5 3891 echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6; } 3892 if test $ac_cv_lib_nsl_puts = yes; then 3856 3893 cat >>confdefs.h <<_ACEOF 3857 3894 #define HAVE_LIBNSL 1 … … 3862 3899 fi 3863 3900 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 3865 $as_echo_n "checking for uuid_generate in -luuid... " >&6; } 3866 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : 3867 $as_echo_n "(cached) " >&6 3901 3902 { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 3903 echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; } 3904 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then 3905 echo $ECHO_N "(cached) $ECHO_C" >&6 3868 3906 else 3869 3907 ac_check_lib_save_LIBS=$LIBS 3870 3908 LIBS="-luuid $LIBS" 3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3909 cat >conftest.$ac_ext <<_ACEOF 3910 /* confdefs.h. */ 3911 _ACEOF 3912 cat confdefs.h >>conftest.$ac_ext 3913 cat >>conftest.$ac_ext <<_ACEOF 3872 3914 /* end confdefs.h. */ 3873 3915 … … 3887 3929 } 3888 3930 _ACEOF 3889 if ac_fn_c_try_link "$LINENO"; then : 3931 rm -f conftest.$ac_objext conftest$ac_exeext 3932 if { (ac_try="$ac_link" 3933 case "(($ac_try" in 3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3935 *) ac_try_echo=$ac_try;; 3936 esac 3937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3938 (eval "$ac_link") 2>conftest.er1 3939 ac_status=$? 3940 grep -v '^ *+' conftest.er1 >conftest.err 3941 rm -f conftest.er1 3942 cat conftest.err >&5 3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3944 (exit $ac_status); } && { 3945 test -z "$ac_c_werror_flag" || 3946 test ! -s conftest.err 3947 } && test -s conftest$ac_exeext && 3948 $as_test_x conftest$ac_exeext; then 3890 3949 ac_cv_lib_uuid_uuid_generate=yes 3891 3950 else 3892 ac_cv_lib_uuid_uuid_generate=no 3893 fi 3894 rm -f core conftest.err conftest.$ac_objext \ 3895 conftest$ac_exeext conftest.$ac_ext 3951 echo "$as_me: failed program was:" >&5 3952 sed 's/^/| /' conftest.$ac_ext >&5 3953 3954 ac_cv_lib_uuid_uuid_generate=no 3955 fi 3956 3957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3958 conftest$ac_exeext conftest.$ac_ext 3896 3959 LIBS=$ac_check_lib_save_LIBS 3897 3960 fi 3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&53899 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }3900 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :3961 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 3962 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; } 3963 if test $ac_cv_lib_uuid_uuid_generate = yes; then 3901 3964 cat >>confdefs.h <<_ACEOF 3902 3965 #define HAVE_LIBUUID 1 … … 3907 3970 fi 3908 3971 3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&53910 $as_echo_n "checking for uuid_generate in -luuid..." >&6; }3911 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :3912 $as_echo_n "(cached)" >&63972 { echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 3973 echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; } 3974 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then 3975 echo $ECHO_N "(cached) $ECHO_C" >&6 3913 3976 else 3914 3977 ac_check_lib_save_LIBS=$LIBS 3915 3978 LIBS="-luuid $LIBS" 3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3979 cat >conftest.$ac_ext <<_ACEOF 3980 /* confdefs.h. */ 3981 _ACEOF 3982 cat confdefs.h >>conftest.$ac_ext 3983 cat >>conftest.$ac_ext <<_ACEOF 3917 3984 /* end confdefs.h. */ 3918 3985 … … 3932 3999 } 3933 4000 _ACEOF 3934 if ac_fn_c_try_link "$LINENO"; then : 4001 rm -f conftest.$ac_objext conftest$ac_exeext 4002 if { (ac_try="$ac_link" 4003 case "(($ac_try" in 4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4005 *) ac_try_echo=$ac_try;; 4006 esac 4007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4008 (eval "$ac_link") 2>conftest.er1 4009 ac_status=$? 4010 grep -v '^ *+' conftest.er1 >conftest.err 4011 rm -f conftest.er1 4012 cat conftest.err >&5 4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4014 (exit $ac_status); } && { 4015 test -z "$ac_c_werror_flag" || 4016 test ! -s conftest.err 4017 } && test -s conftest$ac_exeext && 4018 $as_test_x conftest$ac_exeext; then 3935 4019 ac_cv_lib_uuid_uuid_generate=yes 3936 4020 else 3937 ac_cv_lib_uuid_uuid_generate=no 3938 fi 3939 rm -f core conftest.err conftest.$ac_objext \ 3940 conftest$ac_exeext conftest.$ac_ext 4021 echo "$as_me: failed program was:" >&5 4022 sed 's/^/| /' conftest.$ac_ext >&5 4023 4024 ac_cv_lib_uuid_uuid_generate=no 4025 fi 4026 4027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4028 conftest$ac_exeext conftest.$ac_ext 3941 4029 LIBS=$ac_check_lib_save_LIBS 3942 4030 fi 3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&53944 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }3945 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :4031 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 4032 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; } 4033 if test $ac_cv_lib_uuid_uuid_generate = yes; then 3946 4034 ac_has_uuid_lib=1 3947 4035 fi 3948 4036 3949 4037 3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&53951 $as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }4038 { echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5 4039 echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6; } 3952 4040 cat >>confdefs.h <<_ACEOF 3953 4041 #define PJ_M_NAME "$target_cpu" … … 3955 4043 3956 4044 3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&53958 $as_echo_n "checking memory alignment..." >&6; }4045 { echo "$as_me:$LINENO: checking memory alignment" >&5 4046 echo $ECHO_N "checking memory alignment... $ECHO_C" >&6; } 3959 4047 case $target in 3960 4048 sparc64-* | ia64-* | x86_64-* ) 3961 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h 3962 3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5 3964 $as_echo "8 bytes" >&6; } 4049 cat >>confdefs.h <<\_ACEOF 4050 #define PJ_POOL_ALIGNMENT 8 4051 _ACEOF 4052 4053 { echo "$as_me:$LINENO: result: 8 bytes" >&5 4054 echo "${ECHO_T}8 bytes" >&6; } 3965 4055 ;; 3966 4056 * ) 3967 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h 3968 3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5 3970 $as_echo "4 bytes (default)" >&6; } 4057 cat >>confdefs.h <<\_ACEOF 4058 #define PJ_POOL_ALIGNMENT 4 4059 _ACEOF 4060 4061 { echo "$as_me:$LINENO: result: 4 bytes (default)" >&5 4062 echo "${ECHO_T}4 bytes (default)" >&6; } 3971 4063 ;; 3972 4064 esac … … 3978 4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3979 4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&53981 $as_echo_n "checking how to run the C preprocessor..." >&6; }4072 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4073 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3982 4074 # On Suns, sometimes $CPP names a directory. 3983 4075 if test -n "$CPP" && test -d "$CPP"; then … … 3985 4077 fi 3986 4078 if test -z "$CPP"; then 3987 if test "${ac_cv_prog_CPP+set}" = set; then :3988 $as_echo_n "(cached)" >&64079 if test "${ac_cv_prog_CPP+set}" = set; then 4080 echo $ECHO_N "(cached) $ECHO_C" >&6 3989 4081 else 3990 4082 # Double quotes because CPP needs to be expanded … … 4000 4092 # On the NeXT, cc -E runs the code through the compiler's parser, 4001 4093 # not just through cpp. "Syntax error" is here to catch this case. 4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4094 cat >conftest.$ac_ext <<_ACEOF 4095 /* confdefs.h. */ 4096 _ACEOF 4097 cat confdefs.h >>conftest.$ac_ext 4098 cat >>conftest.$ac_ext <<_ACEOF 4003 4099 /* end confdefs.h. */ 4004 4100 #ifdef __STDC__ … … 4009 4105 Syntax error 4010 4106 _ACEOF 4011 if ac_fn_c_try_cpp "$LINENO"; then : 4012 4013 else 4107 if { (ac_try="$ac_cpp conftest.$ac_ext" 4108 case "(($ac_try" in 4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4110 *) ac_try_echo=$ac_try;; 4111 esac 4112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4114 ac_status=$? 4115 grep -v '^ *+' conftest.er1 >conftest.err 4116 rm -f conftest.er1 4117 cat conftest.err >&5 4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4119 (exit $ac_status); } >/dev/null && { 4120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4121 test ! -s conftest.err 4122 }; then 4123 : 4124 else 4125 echo "$as_me: failed program was:" >&5 4126 sed 's/^/| /' conftest.$ac_ext >&5 4127 4014 4128 # Broken: fails on valid input. 4015 4129 continue 4016 4130 fi 4131 4017 4132 rm -f conftest.err conftest.$ac_ext 4018 4133 4019 4134 # OK, works on sane cases. Now check whether nonexistent headers 4020 4135 # can be detected and how. 4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136 cat >conftest.$ac_ext <<_ACEOF 4137 /* confdefs.h. */ 4138 _ACEOF 4139 cat confdefs.h >>conftest.$ac_ext 4140 cat >>conftest.$ac_ext <<_ACEOF 4022 4141 /* end confdefs.h. */ 4023 4142 #include <ac_nonexistent.h> 4024 4143 _ACEOF 4025 if ac_fn_c_try_cpp "$LINENO"; then : 4144 if { (ac_try="$ac_cpp conftest.$ac_ext" 4145 case "(($ac_try" in 4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4147 *) ac_try_echo=$ac_try;; 4148 esac 4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4151 ac_status=$? 4152 grep -v '^ *+' conftest.er1 >conftest.err 4153 rm -f conftest.er1 4154 cat conftest.err >&5 4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4156 (exit $ac_status); } >/dev/null && { 4157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4158 test ! -s conftest.err 4159 }; then 4026 4160 # Broken: success on invalid input. 4027 4161 continue 4028 4162 else 4163 echo "$as_me: failed program was:" >&5 4164 sed 's/^/| /' conftest.$ac_ext >&5 4165 4029 4166 # Passes both tests. 4030 4167 ac_preproc_ok=: 4031 4168 break 4032 4169 fi 4170 4033 4171 rm -f conftest.err conftest.$ac_ext 4034 4172 … … 4036 4174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4037 4175 rm -f conftest.err conftest.$ac_ext 4038 if $ac_preproc_ok; then :4176 if $ac_preproc_ok; then 4039 4177 break 4040 4178 fi … … 4048 4186 ac_cv_prog_CPP=$CPP 4049 4187 fi 4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&54051 $as_echo "$CPP" >&6; }4188 { echo "$as_me:$LINENO: result: $CPP" >&5 4189 echo "${ECHO_T}$CPP" >&6; } 4052 4190 ac_preproc_ok=false 4053 4191 for ac_c_preproc_warn_flag in '' yes … … 4059 4197 # On the NeXT, cc -E runs the code through the compiler's parser, 4060 4198 # not just through cpp. "Syntax error" is here to catch this case. 4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4199 cat >conftest.$ac_ext <<_ACEOF 4200 /* confdefs.h. */ 4201 _ACEOF 4202 cat confdefs.h >>conftest.$ac_ext 4203 cat >>conftest.$ac_ext <<_ACEOF 4062 4204 /* end confdefs.h. */ 4063 4205 #ifdef __STDC__ … … 4068 4210 Syntax error 4069 4211 _ACEOF 4070 if ac_fn_c_try_cpp "$LINENO"; then : 4071 4072 else 4212 if { (ac_try="$ac_cpp conftest.$ac_ext" 4213 case "(($ac_try" in 4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4215 *) ac_try_echo=$ac_try;; 4216 esac 4217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4219 ac_status=$? 4220 grep -v '^ *+' conftest.er1 >conftest.err 4221 rm -f conftest.er1 4222 cat conftest.err >&5 4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4224 (exit $ac_status); } >/dev/null && { 4225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4226 test ! -s conftest.err 4227 }; then 4228 : 4229 else 4230 echo "$as_me: failed program was:" >&5 4231 sed 's/^/| /' conftest.$ac_ext >&5 4232 4073 4233 # Broken: fails on valid input. 4074 4234 continue 4075 4235 fi 4236 4076 4237 rm -f conftest.err conftest.$ac_ext 4077 4238 4078 4239 # OK, works on sane cases. Now check whether nonexistent headers 4079 4240 # can be detected and how. 4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4241 cat >conftest.$ac_ext <<_ACEOF 4242 /* confdefs.h. */ 4243 _ACEOF 4244 cat confdefs.h >>conftest.$ac_ext 4245 cat >>conftest.$ac_ext <<_ACEOF 4081 4246 /* end confdefs.h. */ 4082 4247 #include <ac_nonexistent.h> 4083 4248 _ACEOF 4084 if ac_fn_c_try_cpp "$LINENO"; then : 4249 if { (ac_try="$ac_cpp conftest.$ac_ext" 4250 case "(($ac_try" in 4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4252 *) ac_try_echo=$ac_try;; 4253 esac 4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4256 ac_status=$? 4257 grep -v '^ *+' conftest.er1 >conftest.err 4258 rm -f conftest.er1 4259 cat conftest.err >&5 4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4261 (exit $ac_status); } >/dev/null && { 4262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4263 test ! -s conftest.err 4264 }; then 4085 4265 # Broken: success on invalid input. 4086 4266 continue 4087 4267 else 4268 echo "$as_me: failed program was:" >&5 4269 sed 's/^/| /' conftest.$ac_ext >&5 4270 4088 4271 # Passes both tests. 4089 4272 ac_preproc_ok=: 4090 4273 break 4091 4274 fi 4275 4092 4276 rm -f conftest.err conftest.$ac_ext 4093 4277 … … 4095 4279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4096 4280 rm -f conftest.err conftest.$ac_ext 4097 if $ac_preproc_ok; then : 4098 4099 else 4100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4102 as_fn_error "C preprocessor \"$CPP\" fails sanity check 4103 See \`config.log' for more details." "$LINENO" 5; } 4281 if $ac_preproc_ok; then 4282 : 4283 else 4284 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4285 See \`config.log' for more details." >&5 4286 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4287 See \`config.log' for more details." >&2;} 4288 { (exit 1); exit 1; }; } 4104 4289 fi 4105 4290 … … 4111 4296 4112 4297 4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4114 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4115 if test "${ac_cv_path_GREP+set}" = set; then : 4116 $as_echo_n "(cached) " >&6 4117 else 4118 if test -z "$GREP"; then 4298 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4299 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4300 if test "${ac_cv_path_GREP+set}" = set; then 4301 echo $ECHO_N "(cached) $ECHO_C" >&6 4302 else 4303 # Extract the first word of "grep ggrep" to use in msg output 4304 if test -z "$GREP"; then 4305 set dummy grep ggrep; ac_prog_name=$2 4306 if test "${ac_cv_path_GREP+set}" = set; then 4307 echo $ECHO_N "(cached) $ECHO_C" >&6 4308 else 4119 4309 ac_path_GREP_found=false 4120 4121 4310 # Loop through the user's path and test for each of PROGNAME-LIST 4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4122 4312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4123 4313 do 4124 4314 IFS=$as_save_IFS 4125 4315 test -z "$as_dir" && as_dir=. 4126 4127 4128 4129 4130 # Check for GNU ac_path_GREP and select it if it is found.4316 for ac_prog in grep ggrep; do 4317 for ac_exec_ext in '' $ac_executable_extensions; do 4318 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4319 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4320 # Check for GNU ac_path_GREP and select it if it is found. 4131 4321 # Check for GNU $ac_path_GREP 4132 4322 case `"$ac_path_GREP" --version 2>&1` in … … 4135 4325 *) 4136 4326 ac_count=0 4137 $as_echo_n 0123456789>"conftest.in"4327 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4138 4328 while : 4139 4329 do … … 4141 4331 mv "conftest.tmp" "conftest.in" 4142 4332 cp "conftest.in" "conftest.nl" 4143 $as_echo 'GREP' >> "conftest.nl"4333 echo 'GREP' >> "conftest.nl" 4144 4334 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4145 4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4146 a s_fn_arith $ac_count + 1 && ac_count=$as_val4336 ac_count=`expr $ac_count + 1` 4147 4337 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4148 4338 # Best one so far, save it but keep looking for a better one … … 4156 4346 esac 4157 4347 4158 $ac_path_GREP_found && break 3 4159 done4348 4349 $ac_path_GREP_found && break 3 4160 4350 done 4161 done 4351 done 4352 4353 done 4162 4354 IFS=$as_save_IFS 4163 if test -z "$ac_cv_path_GREP"; then 4164 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4165 fi 4355 4356 4357 fi 4358 4359 GREP="$ac_cv_path_GREP" 4360 if test -z "$GREP"; then 4361 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4362 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4363 { (exit 1); exit 1; }; } 4364 fi 4365 4166 4366 else 4167 4367 ac_cv_path_GREP=$GREP 4168 4368 fi 4169 4369 4170 fi 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4172 $as_echo "$ac_cv_path_GREP" >&6; } 4370 4371 fi 4372 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4373 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4173 4374 GREP="$ac_cv_path_GREP" 4174 4375 4175 4376 4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&54177 $as_echo_n "checking for egrep..." >&6; }4178 if test "${ac_cv_path_EGREP+set}" = set; then :4179 $as_echo_n "(cached)" >&64377 { echo "$as_me:$LINENO: checking for egrep" >&5 4378 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4379 if test "${ac_cv_path_EGREP+set}" = set; then 4380 echo $ECHO_N "(cached) $ECHO_C" >&6 4180 4381 else 4181 4382 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4182 4383 then ac_cv_path_EGREP="$GREP -E" 4183 4384 else 4184 if test -z "$EGREP"; then 4385 # Extract the first word of "egrep" to use in msg output 4386 if test -z "$EGREP"; then 4387 set dummy egrep; ac_prog_name=$2 4388 if test "${ac_cv_path_EGREP+set}" = set; then 4389 echo $ECHO_N "(cached) $ECHO_C" >&6 4390 else 4185 4391 ac_path_EGREP_found=false 4186 4187 4392 # Loop through the user's path and test for each of PROGNAME-LIST 4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4188 4394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4189 4395 do 4190 4396 IFS=$as_save_IFS 4191 4397 test -z "$as_dir" && as_dir=. 4192 4193 4194 4195 4196 # Check for GNU ac_path_EGREP and select it if it is found.4398 for ac_prog in egrep; do 4399 for ac_exec_ext in '' $ac_executable_extensions; do 4400 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4401 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4402 # Check for GNU ac_path_EGREP and select it if it is found. 4197 4403 # Check for GNU $ac_path_EGREP 4198 4404 case `"$ac_path_EGREP" --version 2>&1` in … … 4201 4407 *) 4202 4408 ac_count=0 4203 $as_echo_n 0123456789>"conftest.in"4409 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4204 4410 while : 4205 4411 do … … 4207 4413 mv "conftest.tmp" "conftest.in" 4208 4414 cp "conftest.in" "conftest.nl" 4209 $as_echo 'EGREP' >> "conftest.nl"4415 echo 'EGREP' >> "conftest.nl" 4210 4416 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4211 4417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4212 a s_fn_arith $ac_count + 1 && ac_count=$as_val4418 ac_count=`expr $ac_count + 1` 4213 4419 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4214 4420 # Best one so far, save it but keep looking for a better one … … 4222 4428 esac 4223 4429 4224 $ac_path_EGREP_found && break 3 4225 done4430 4431 $ac_path_EGREP_found && break 3 4226 4432 done 4227 done 4433 done 4434 4435 done 4228 4436 IFS=$as_save_IFS 4229 if test -z "$ac_cv_path_EGREP"; then 4230 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4231 fi 4437 4438 4439 fi 4440 4441 EGREP="$ac_cv_path_EGREP" 4442 if test -z "$EGREP"; then 4443 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4444 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4445 { (exit 1); exit 1; }; } 4446 fi 4447 4232 4448 else 4233 4449 ac_cv_path_EGREP=$EGREP 4234 4450 fi 4235 4451 4452 4236 4453 fi 4237 4454 fi 4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&54239 $as_echo "$ac_cv_path_EGREP" >&6; }4455 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4456 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4240 4457 EGREP="$ac_cv_path_EGREP" 4241 4458 4242 4459 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4244 $as_echo_n "checking for ANSI C header files... " >&6; } 4245 if test "${ac_cv_header_stdc+set}" = set; then : 4246 $as_echo_n "(cached) " >&6 4247 else 4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4460 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4461 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4462 if test "${ac_cv_header_stdc+set}" = set; then 4463 echo $ECHO_N "(cached) $ECHO_C" >&6 4464 else 4465 cat >conftest.$ac_ext <<_ACEOF 4466 /* confdefs.h. */ 4467 _ACEOF 4468 cat confdefs.h >>conftest.$ac_ext 4469 cat >>conftest.$ac_ext <<_ACEOF 4249 4470 /* end confdefs.h. */ 4250 4471 #include <stdlib.h> … … 4261 4482 } 4262 4483 _ACEOF 4263 if ac_fn_c_try_compile "$LINENO"; then : 4484 rm -f conftest.$ac_objext 4485 if { (ac_try="$ac_compile" 4486 case "(($ac_try" in 4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4488 *) ac_try_echo=$ac_try;; 4489 esac 4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4491 (eval "$ac_compile") 2>conftest.er1 4492 ac_status=$? 4493 grep -v '^ *+' conftest.er1 >conftest.err 4494 rm -f conftest.er1 4495 cat conftest.err >&5 4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4497 (exit $ac_status); } && { 4498 test -z "$ac_c_werror_flag" || 4499 test ! -s conftest.err 4500 } && test -s conftest.$ac_objext; then 4264 4501 ac_cv_header_stdc=yes 4265 4502 else 4266 ac_cv_header_stdc=no 4267 fi 4503 echo "$as_me: failed program was:" >&5 4504 sed 's/^/| /' conftest.$ac_ext >&5 4505 4506 ac_cv_header_stdc=no 4507 fi 4508 4268 4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4269 4510 4270 4511 if test $ac_cv_header_stdc = yes; then 4271 4512 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4513 cat >conftest.$ac_ext <<_ACEOF 4514 /* confdefs.h. */ 4515 _ACEOF 4516 cat confdefs.h >>conftest.$ac_ext 4517 cat >>conftest.$ac_ext <<_ACEOF 4273 4518 /* end confdefs.h. */ 4274 4519 #include <string.h> … … 4276 4521 _ACEOF 4277 4522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4278 $EGREP "memchr" >/dev/null 2>&1; then :4279 4523 $EGREP "memchr" >/dev/null 2>&1; then 4524 : 4280 4525 else 4281 4526 ac_cv_header_stdc=no 4282 4527 fi 4283 rm -f conftest*4528 rm -f -r conftest* 4284 4529 4285 4530 fi … … 4287 4532 if test $ac_cv_header_stdc = yes; then 4288 4533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4534 cat >conftest.$ac_ext <<_ACEOF 4535 /* confdefs.h. */ 4536 _ACEOF 4537 cat confdefs.h >>conftest.$ac_ext 4538 cat >>conftest.$ac_ext <<_ACEOF 4290 4539 /* end confdefs.h. */ 4291 4540 #include <stdlib.h> … … 4293 4542 _ACEOF 4294 4543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4295 $EGREP "free" >/dev/null 2>&1; then :4296 4544 $EGREP "free" >/dev/null 2>&1; then 4545 : 4297 4546 else 4298 4547 ac_cv_header_stdc=no 4299 4548 fi 4300 rm -f conftest*4549 rm -f -r conftest* 4301 4550 4302 4551 fi … … 4304 4553 if test $ac_cv_header_stdc = yes; then 4305 4554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4306 if test "$cross_compiling" = yes; then :4555 if test "$cross_compiling" = yes; then 4307 4556 : 4308 4557 else 4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4558 cat >conftest.$ac_ext <<_ACEOF 4559 /* confdefs.h. */ 4560 _ACEOF 4561 cat confdefs.h >>conftest.$ac_ext 4562 cat >>conftest.$ac_ext <<_ACEOF 4310 4563 /* end confdefs.h. */ 4311 4564 #include <ctype.h> … … 4334 4587 } 4335 4588 _ACEOF 4336 if ac_fn_c_try_run "$LINENO"; then : 4337 4338 else 4339 ac_cv_header_stdc=no 4340 fi 4341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4342 conftest.$ac_objext conftest.beam conftest.$ac_ext 4343 fi 4344 4345 fi 4346 fi 4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4348 $as_echo "$ac_cv_header_stdc" >&6; } 4589 rm -f conftest$ac_exeext 4590 if { (ac_try="$ac_link" 4591 case "(($ac_try" in 4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4593 *) ac_try_echo=$ac_try;; 4594 esac 4595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4596 (eval "$ac_link") 2>&5 4597 ac_status=$? 4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4600 { (case "(($ac_try" in 4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4602 *) ac_try_echo=$ac_try;; 4603 esac 4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4605 (eval "$ac_try") 2>&5 4606 ac_status=$? 4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4608 (exit $ac_status); }; }; then 4609 : 4610 else 4611 echo "$as_me: program exited with status $ac_status" >&5 4612 echo "$as_me: failed program was:" >&5 4613 sed 's/^/| /' conftest.$ac_ext >&5 4614 4615 ( exit $ac_status ) 4616 ac_cv_header_stdc=no 4617 fi 4618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4619 fi 4620 4621 4622 fi 4623 fi 4624 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4625 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4349 4626 if test $ac_cv_header_stdc = yes; then 4350 4627 4351 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4628 cat >>confdefs.h <<\_ACEOF 4629 #define STDC_HEADERS 1 4630 _ACEOF 4352 4631 4353 4632 fi 4354 4633 4355 4634 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4635 4636 4637 4638 4639 4640 4641 4642 4643 4356 4644 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4357 4645 inttypes.h stdint.h unistd.h 4358 do : 4359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4360 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4361 " 4362 eval as_val=\$$as_ac_Header 4363 if test "x$as_val" = x""yes; then : 4646 do 4647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4648 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4651 echo $ECHO_N "(cached) $ECHO_C" >&6 4652 else 4653 cat >conftest.$ac_ext <<_ACEOF 4654 /* confdefs.h. */ 4655 _ACEOF 4656 cat confdefs.h >>conftest.$ac_ext 4657 cat >>conftest.$ac_ext <<_ACEOF 4658 /* end confdefs.h. */ 4659 $ac_includes_default 4660 4661 #include <$ac_header> 4662 _ACEOF 4663 rm -f conftest.$ac_objext 4664 if { (ac_try="$ac_compile" 4665 case "(($ac_try" in 4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4667 *) ac_try_echo=$ac_try;; 4668 esac 4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4670 (eval "$ac_compile") 2>conftest.er1 4671 ac_status=$? 4672 grep -v '^ *+' conftest.er1 >conftest.err 4673 rm -f conftest.er1 4674 cat conftest.err >&5 4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4676 (exit $ac_status); } && { 4677 test -z "$ac_c_werror_flag" || 4678 test ! -s conftest.err 4679 } && test -s conftest.$ac_objext; then 4680 eval "$as_ac_Header=yes" 4681 else 4682 echo "$as_me: failed program was:" >&5 4683 sed 's/^/| /' conftest.$ac_ext >&5 4684 4685 eval "$as_ac_Header=no" 4686 fi 4687 4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4689 fi 4690 ac_res=`eval echo '${'$as_ac_Header'}'` 4691 { echo "$as_me:$LINENO: result: $ac_res" >&5 4692 echo "${ECHO_T}$ac_res" >&6; } 4693 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4364 4694 cat >>confdefs.h <<_ACEOF 4365 #define ` $as_echo "HAVE_$ac_header" | $as_tr_cpp` 14695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4366 4696 _ACEOF 4367 4697 … … 4371 4701 4372 4702 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4374 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4375 if test "${ac_cv_c_bigendian+set}" = set; then : 4376 $as_echo_n "(cached) " >&6 4377 else 4378 ac_cv_c_bigendian=unknown 4379 # See if we're dealing with a universal compiler. 4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4381 /* end confdefs.h. */ 4382 #ifndef __APPLE_CC__ 4383 not a universal capable compiler 4384 #endif 4385 typedef int dummy; 4386 4387 _ACEOF 4388 if ac_fn_c_try_compile "$LINENO"; then : 4389 4390 # Check for potential -arch flags. It is not universal unless 4391 # there are at least two -arch flags with different values. 4392 ac_arch= 4393 ac_prev= 4394 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4395 if test -n "$ac_prev"; then 4396 case $ac_word in 4397 i?86 | x86_64 | ppc | ppc64) 4398 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4399 ac_arch=$ac_word 4400 else 4401 ac_cv_c_bigendian=universal 4402 break 4403 fi 4404 ;; 4405 esac 4406 ac_prev= 4407 elif test "x$ac_word" = "x-arch"; then 4408 ac_prev=arch 4409 fi 4410 done 4411 fi 4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4413 if test $ac_cv_c_bigendian = unknown; then 4414 # See if sys/param.h defines the BYTE_ORDER macro. 4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4703 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4704 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4705 if test "${ac_cv_c_bigendian+set}" = set; then 4706 echo $ECHO_N "(cached) $ECHO_C" >&6 4707 else 4708 # See if sys/param.h defines the BYTE_ORDER macro. 4709 cat >conftest.$ac_ext <<_ACEOF 4710 /* confdefs.h. */ 4711 _ACEOF 4712 cat confdefs.h >>conftest.$ac_ext 4713 cat >>conftest.$ac_ext <<_ACEOF 4416 4714 /* end confdefs.h. */ 4417 4715 #include <sys/types.h> 4418 4716 #include <sys/param.h> 4419 4717 4420 4718 int 4421 4719 main () 4422 4720 { 4423 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4424 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4425 && LITTLE_ENDIAN) 4426 bogus endian macros 4427 #endif 4721 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4722 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4723 bogus endian macros 4724 #endif 4428 4725 4429 4726 ; … … 4431 4728 } 4432 4729 _ACEOF 4433 if ac_fn_c_try_compile "$LINENO"; then : 4730 rm -f conftest.$ac_objext 4731 if { (ac_try="$ac_compile" 4732 case "(($ac_try" in 4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4734 *) ac_try_echo=$ac_try;; 4735 esac 4736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4737 (eval "$ac_compile") 2>conftest.er1 4738 ac_status=$? 4739 grep -v '^ *+' conftest.er1 >conftest.err 4740 rm -f conftest.er1 4741 cat conftest.err >&5 4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4743 (exit $ac_status); } && { 4744 test -z "$ac_c_werror_flag" || 4745 test ! -s conftest.err 4746 } && test -s conftest.$ac_objext; then 4434 4747 # It does; now see whether it defined to BIG_ENDIAN or not. 4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4748 cat >conftest.$ac_ext <<_ACEOF 4749 /* confdefs.h. */ 4750 _ACEOF 4751 cat confdefs.h >>conftest.$ac_ext 4752 cat >>conftest.$ac_ext <<_ACEOF 4436 4753 /* end confdefs.h. */ 4437 4754 #include <sys/types.h> 4438 4755 #include <sys/param.h> 4439 4756 4440 4757 int … … 4442 4759 { 4443 4760 #if BYTE_ORDER != BIG_ENDIAN 4444 4445 4761 not big endian 4762 #endif 4446 4763 4447 4764 ; … … 4449 4766 } 4450 4767 _ACEOF 4451 if ac_fn_c_try_compile "$LINENO"; then : 4768 rm -f conftest.$ac_objext 4769 if { (ac_try="$ac_compile" 4770 case "(($ac_try" in 4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4772 *) ac_try_echo=$ac_try;; 4773 esac 4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4775 (eval "$ac_compile") 2>conftest.er1 4776 ac_status=$? 4777 grep -v '^ *+' conftest.er1 >conftest.err 4778 rm -f conftest.er1 4779 cat conftest.err >&5 4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4781 (exit $ac_status); } && { 4782 test -z "$ac_c_werror_flag" || 4783 test ! -s conftest.err 4784 } && test -s conftest.$ac_objext; then 4452 4785 ac_cv_c_bigendian=yes 4453 4786 else 4454 ac_cv_c_bigendian=no 4455 fi 4787 echo "$as_me: failed program was:" >&5 4788 sed 's/^/| /' conftest.$ac_ext >&5 4789 4790 ac_cv_c_bigendian=no 4791 fi 4792 4456 4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4457 fi 4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4459 fi 4460 if test $ac_cv_c_bigendian = unknown; then 4461 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4463 /* end confdefs.h. */ 4464 #include <limits.h> 4465 4794 else 4795 echo "$as_me: failed program was:" >&5 4796 sed 's/^/| /' conftest.$ac_ext >&5 4797 4798 # It does not; compile a test program. 4799 if test "$cross_compiling" = yes; then 4800 # try to guess the endianness by grepping values into an object file 4801 ac_cv_c_bigendian=unknown 4802 cat >conftest.$ac_ext <<_ACEOF 4803 /* confdefs.h. */ 4804 _ACEOF 4805 cat confdefs.h >>conftest.$ac_ext 4806 cat >>conftest.$ac_ext <<_ACEOF 4807 /* end confdefs.h. */ 4808 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4809 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4810 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4811 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4812 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4813 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4466 4814 int 4467 4815 main () 4468 4816 { 4469 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4470 bogus endian macros 4471 #endif 4472 4817 _ascii (); _ebcdic (); 4473 4818 ; 4474 4819 return 0; 4475 4820 } 4476 4821 _ACEOF 4477 if ac_fn_c_try_compile "$LINENO"; then : 4478 # It does; now see whether it defined to _BIG_ENDIAN or not. 4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4480 /* end confdefs.h. */ 4481 #include <limits.h> 4482 4483 int 4484 main () 4485 { 4486 #ifndef _BIG_ENDIAN 4487 not big endian 4488 #endif 4489 4490 ;4491 return 0; 4492 } 4493 _ACEOF 4494 if ac_fn_c_try_compile "$LINENO"; then : 4822 rm -f conftest.$ac_objext 4823 if { (ac_try="$ac_compile" 4824 case "(($ac_try" in 4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4826 *) ac_try_echo=$ac_try;; 4827 esac 4828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4829 (eval "$ac_compile") 2>conftest.er1 4830 ac_status=$? 4831 grep -v '^ *+' conftest.er1 >conftest.err 4832 rm -f conftest.er1 4833 cat conftest.err >&5 4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4835 (exit $ac_status); } && { 4836 test -z "$ac_c_werror_flag" || 4837 test ! -s conftest.err 4838 } && test -s conftest.$ac_objext; then 4839 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4495 4840 ac_cv_c_bigendian=yes 4496 else 4497 ac_cv_c_bigendian=no 4498 fi 4841 fi 4842 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4843 if test "$ac_cv_c_bigendian" = unknown; then 4844 ac_cv_c_bigendian=no 4845 else 4846 # finding both strings is unlikely to happen, but who knows? 4847 ac_cv_c_bigendian=unknown 4848 fi 4849 fi 4850 else 4851 echo "$as_me: failed program was:" >&5 4852 sed 's/^/| /' conftest.$ac_ext >&5 4853 4854 4855 fi 4856 4499 4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4500 fi 4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4502 fi 4503 if test $ac_cv_c_bigendian = unknown; then 4504 # Compile a test program. 4505 if test "$cross_compiling" = yes; then : 4506 # Try to guess by grepping values from an object file. 4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4508 /* end confdefs.h. */ 4509 short int ascii_mm[] = 4510 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4511 short int ascii_ii[] = 4512 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4513 int use_ascii (int i) { 4514 return ascii_mm[i] + ascii_ii[i]; 4515 } 4516 short int ebcdic_ii[] = 4517 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4518 short int ebcdic_mm[] = 4519 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4520 int use_ebcdic (int i) { 4521 return ebcdic_mm[i] + ebcdic_ii[i]; 4522 } 4523 extern int foo; 4524 4525 int 4526 main () 4527 { 4528 return use_ascii (foo) == use_ebcdic (foo); 4529 ; 4530 return 0; 4531 } 4532 _ACEOF 4533 if ac_fn_c_try_compile "$LINENO"; then : 4534 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4535 ac_cv_c_bigendian=yes 4536 fi 4537 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4538 if test "$ac_cv_c_bigendian" = unknown; then 4539 ac_cv_c_bigendian=no 4540 else 4541 # finding both strings is unlikely to happen, but who knows? 4542 ac_cv_c_bigendian=unknown 4543 fi 4544 fi 4545 fi 4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4547 else 4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4858 else 4859 cat >conftest.$ac_ext <<_ACEOF 4860 /* confdefs.h. */ 4861 _ACEOF 4862 cat confdefs.h >>conftest.$ac_ext 4863 cat >>conftest.$ac_ext <<_ACEOF 4549 4864 /* end confdefs.h. */ 4550 4865 $ac_includes_default … … 4553 4868 { 4554 4869 4555 4556 4557 4558 4559 4560 4561 4562 4870 /* Are we little or big endian? From Harbison&Steele. */ 4871 union 4872 { 4873 long int l; 4874 char c[sizeof (long int)]; 4875 } u; 4876 u.l = 1; 4877 return u.c[sizeof (long int) - 1] == 1; 4563 4878 4564 4879 ; … … 4566 4881 } 4567 4882 _ACEOF 4568 if ac_fn_c_try_run "$LINENO"; then : 4883 rm -f conftest$ac_exeext 4884 if { (ac_try="$ac_link" 4885 case "(($ac_try" in 4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4887 *) ac_try_echo=$ac_try;; 4888 esac 4889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4890 (eval "$ac_link") 2>&5 4891 ac_status=$? 4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4894 { (case "(($ac_try" in 4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4896 *) ac_try_echo=$ac_try;; 4897 esac 4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4899 (eval "$ac_try") 2>&5 4900 ac_status=$? 4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4902 (exit $ac_status); }; }; then 4569 4903 ac_cv_c_bigendian=no 4570 4904 else 4571 ac_cv_c_bigendian=yes 4572 fi 4573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4574 conftest.$ac_objext conftest.beam conftest.$ac_ext 4575 fi 4576 4577 fi 4578 fi 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4580 $as_echo "$ac_cv_c_bigendian" >&6; } 4581 case $ac_cv_c_bigendian in #( 4582 yes) 4583 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4584 ;; #( 4585 no) 4586 ;; #( 4587 universal) 4588 4589 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4590 4591 ;; #( 4592 *) 4593 as_fn_error "unknown endianness 4594 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4595 esac 4596 4905 echo "$as_me: program exited with status $ac_status" >&5 4906 echo "$as_me: failed program was:" >&5 4907 sed 's/^/| /' conftest.$ac_ext >&5 4908 4909 ( exit $ac_status ) 4910 ac_cv_c_bigendian=yes 4911 fi 4912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4913 fi 4914 4915 4916 fi 4917 4918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4919 fi 4920 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4921 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4922 case $ac_cv_c_bigendian in 4923 yes) 4924 4925 cat >>confdefs.h <<\_ACEOF 4926 #define WORDS_BIGENDIAN 1 4927 _ACEOF 4928 ;; 4929 no) 4930 ;; 4931 *) 4932 { { echo "$as_me:$LINENO: error: unknown endianness 4933 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4934 echo "$as_me: error: unknown endianness 4935 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4936 { (exit 1); exit 1; }; } ;; 4937 esac 4938 4939 4940 if test "x$ac_cv_c_bigendian" = "xyes"; then 4941 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0" 4942 else 4943 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1" 4944 fi 4597 4945 4598 4946 case $target in 4599 4947 *mingw* | *cygw* | *win32* | *w32* ) 4600 $as_echo "#define PJ_WIN32 1" >>confdefs.h 4601 4602 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h 4603 4604 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h 4948 cat >>confdefs.h <<\_ACEOF 4949 #define PJ_WIN32 1 4950 _ACEOF 4951 4952 cat >>confdefs.h <<\_ACEOF 4953 #define PJ_WIN32_WINNT 0x0400 4954 _ACEOF 4955 4956 cat >>confdefs.h <<\_ACEOF 4957 #define WIN32_LEAN_AND_MEAN 1 4958 _ACEOF 4605 4959 4606 4960 ;; 4607 4961 *darwin*) 4608 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h 4962 cat >>confdefs.h <<\_ACEOF 4963 #define PJ_DARWINOS 1 4964 _ACEOF 4609 4965 4610 4966 ;; 4611 4967 *linux*) 4612 $as_echo "#define PJ_LINUX 1" >>confdefs.h 4968 cat >>confdefs.h <<\_ACEOF 4969 #define PJ_LINUX 1 4970 _ACEOF 4613 4971 4614 4972 ;; 4615 4973 *rtems*) 4616 $as_echo "#define PJ_RTEMS 1" >>confdefs.h 4974 cat >>confdefs.h <<\_ACEOF 4975 #define PJ_RTEMS 1 4976 _ACEOF 4617 4977 4618 4978 ;; 4619 4979 *sunos* | *solaris* ) 4620 $as_echo "#define PJ_SUNOS 1" >>confdefs.h 4980 cat >>confdefs.h <<\_ACEOF 4981 #define PJ_SUNOS 1 4982 _ACEOF 4621 4983 4622 4984 ;; … … 4629 4991 4630 4992 # Check whether --enable-floating-point was given. 4631 if test "${enable_floating_point+set}" = set; then :4993 if test "${enable_floating_point+set}" = set; then 4632 4994 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then 4633 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h 4634 4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5 4636 $as_echo "Checking if floating point is disabled... yes" >&6; } 4995 cat >>confdefs.h <<\_ACEOF 4996 #define PJ_HAS_FLOATING_POINT 0 4997 _ACEOF 4998 4999 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5 5000 echo "${ECHO_T}Checking if floating point is disabled... yes" >&6; } 4637 5001 fi 4638 5002 else 4639 5003 4640 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h 4641 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5 4643 $as_echo "Checking if floating point is disabled... no" >&6; } 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5 4645 $as_echo_n "checking for fmod in -lm... " >&6; } 4646 if test "${ac_cv_lib_m_fmod+set}" = set; then : 4647 $as_echo_n "(cached) " >&6 5004 cat >>confdefs.h <<\_ACEOF 5005 #define PJ_HAS_FLOATING_POINT 1 5006 _ACEOF 5007 5008 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5 5009 echo "${ECHO_T}Checking if floating point is disabled... no" >&6; } 5010 5011 { echo "$as_me:$LINENO: checking for fmod in -lm" >&5 5012 echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; } 5013 if test "${ac_cv_lib_m_fmod+set}" = set; then 5014 echo $ECHO_N "(cached) $ECHO_C" >&6 4648 5015 else 4649 5016 ac_check_lib_save_LIBS=$LIBS 4650 5017 LIBS="-lm $LIBS" 4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5018 cat >conftest.$ac_ext <<_ACEOF 5019 /* confdefs.h. */ 5020 _ACEOF 5021 cat confdefs.h >>conftest.$ac_ext 5022 cat >>conftest.$ac_ext <<_ACEOF 4652 5023 /* end confdefs.h. */ 4653 5024 … … 4667 5038 } 4668 5039 _ACEOF 4669 if ac_fn_c_try_link "$LINENO"; then : 5040 rm -f conftest.$ac_objext conftest$ac_exeext 5041 if { (ac_try="$ac_link" 5042 case "(($ac_try" in 5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5044 *) ac_try_echo=$ac_try;; 5045 esac 5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5047 (eval "$ac_link") 2>conftest.er1 5048 ac_status=$? 5049 grep -v '^ *+' conftest.er1 >conftest.err 5050 rm -f conftest.er1 5051 cat conftest.err >&5 5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5053 (exit $ac_status); } && { 5054 test -z "$ac_c_werror_flag" || 5055 test ! -s conftest.err 5056 } && test -s conftest$ac_exeext && 5057 $as_test_x conftest$ac_exeext; then 4670 5058 ac_cv_lib_m_fmod=yes 4671 5059 else 4672 ac_cv_lib_m_fmod=no 4673 fi 4674 rm -f core conftest.err conftest.$ac_objext \ 4675 conftest$ac_exeext conftest.$ac_ext 5060 echo "$as_me: failed program was:" >&5 5061 sed 's/^/| /' conftest.$ac_ext >&5 5062 5063 ac_cv_lib_m_fmod=no 5064 fi 5065 5066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5067 conftest$ac_exeext conftest.$ac_ext 4676 5068 LIBS=$ac_check_lib_save_LIBS 4677 5069 fi 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&54679 $as_echo "$ac_cv_lib_m_fmod" >&6; }4680 if test "x$ac_cv_lib_m_fmod" = x""yes; then :5070 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 5071 echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; } 5072 if test $ac_cv_lib_m_fmod = yes; then 4681 5073 cat >>confdefs.h <<_ACEOF 4682 5074 #define HAVE_LIBM 1 … … 4692 5084 4693 5085 4694 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 4695 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : 4696 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h 4697 4698 fi 4699 4700 4701 ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" 4702 if test "x$ac_cv_header_assert_h" = x""yes; then : 4703 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h 4704 4705 fi 4706 4707 4708 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" 4709 if test "x$ac_cv_header_ctype_h" = x""yes; then : 4710 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h 5086 if test "${ac_cv_header_arpa_inet_h+set}" = set; then 5087 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 5088 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } 5089 if test "${ac_cv_header_arpa_inet_h+set}" = set; then 5090 echo $ECHO_N "(cached) $ECHO_C" >&6 5091 fi 5092 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 5093 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } 5094 else 5095 # Is the header compilable? 5096 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 5097 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; } 5098 cat >conftest.$ac_ext <<_ACEOF 5099 /* confdefs.h. */ 5100 _ACEOF 5101 cat confdefs.h >>conftest.$ac_ext 5102 cat >>conftest.$ac_ext <<_ACEOF 5103 /* end confdefs.h. */ 5104 $ac_includes_default 5105 #include <arpa/inet.h> 5106 _ACEOF 5107 rm -f conftest.$ac_objext 5108 if { (ac_try="$ac_compile" 5109 case "(($ac_try" in 5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5111 *) ac_try_echo=$ac_try;; 5112 esac 5113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5114 (eval "$ac_compile") 2>conftest.er1 5115 ac_status=$? 5116 grep -v '^ *+' conftest.er1 >conftest.err 5117 rm -f conftest.er1 5118 cat conftest.err >&5 5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5120 (exit $ac_status); } && { 5121 test -z "$ac_c_werror_flag" || 5122 test ! -s conftest.err 5123 } && test -s conftest.$ac_objext; then 5124 ac_header_compiler=yes 5125 else 5126 echo "$as_me: failed program was:" >&5 5127 sed 's/^/| /' conftest.$ac_ext >&5 5128 5129 ac_header_compiler=no 5130 fi 5131 5132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5134 echo "${ECHO_T}$ac_header_compiler" >&6; } 5135 5136 # Is the header present? 5137 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 5138 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; } 5139 cat >conftest.$ac_ext <<_ACEOF 5140 /* confdefs.h. */ 5141 _ACEOF 5142 cat confdefs.h >>conftest.$ac_ext 5143 cat >>conftest.$ac_ext <<_ACEOF 5144 /* end confdefs.h. */ 5145 #include <arpa/inet.h> 5146 _ACEOF 5147 if { (ac_try="$ac_cpp conftest.$ac_ext" 5148 case "(($ac_try" in 5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5150 *) ac_try_echo=$ac_try;; 5151 esac 5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5154 ac_status=$? 5155 grep -v '^ *+' conftest.er1 >conftest.err 5156 rm -f conftest.er1 5157 cat conftest.err >&5 5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5159 (exit $ac_status); } >/dev/null && { 5160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5161 test ! -s conftest.err 5162 }; then 5163 ac_header_preproc=yes 5164 else 5165 echo "$as_me: failed program was:" >&5 5166 sed 's/^/| /' conftest.$ac_ext >&5 5167 5168 ac_header_preproc=no 5169 fi 5170 5171 rm -f conftest.err conftest.$ac_ext 5172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5173 echo "${ECHO_T}$ac_header_preproc" >&6; } 5174 5175 # So? What about this header? 5176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5177 yes:no: ) 5178 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 5179 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5180 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 5181 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} 5182 ac_header_preproc=yes 5183 ;; 5184 no:yes:* ) 5185 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 5186 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} 5187 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 5188 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} 5189 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 5190 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} 5191 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 5192 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} 5193 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 5194 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} 5195 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 5196 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} 5197 5198 ;; 5199 esac 5200 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 5201 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } 5202 if test "${ac_cv_header_arpa_inet_h+set}" = set; then 5203 echo $ECHO_N "(cached) $ECHO_C" >&6 5204 else 5205 ac_cv_header_arpa_inet_h=$ac_header_preproc 5206 fi 5207 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 5208 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } 5209 5210 fi 5211 if test $ac_cv_header_arpa_inet_h = yes; then 5212 cat >>confdefs.h <<\_ACEOF 5213 #define PJ_HAS_ARPA_INET_H 1 5214 _ACEOF 5215 5216 fi 5217 5218 5219 if test "${ac_cv_header_assert_h+set}" = set; then 5220 { echo "$as_me:$LINENO: checking for assert.h" >&5 5221 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } 5222 if test "${ac_cv_header_assert_h+set}" = set; then 5223 echo $ECHO_N "(cached) $ECHO_C" >&6 5224 fi 5225 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 5226 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } 5227 else 5228 # Is the header compilable? 5229 { echo "$as_me:$LINENO: checking assert.h usability" >&5 5230 echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; } 5231 cat >conftest.$ac_ext <<_ACEOF 5232 /* confdefs.h. */ 5233 _ACEOF 5234 cat confdefs.h >>conftest.$ac_ext 5235 cat >>conftest.$ac_ext <<_ACEOF 5236 /* end confdefs.h. */ 5237 $ac_includes_default 5238 #include <assert.h> 5239 _ACEOF 5240 rm -f conftest.$ac_objext 5241 if { (ac_try="$ac_compile" 5242 case "(($ac_try" in 5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5244 *) ac_try_echo=$ac_try;; 5245 esac 5246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5247 (eval "$ac_compile") 2>conftest.er1 5248 ac_status=$? 5249 grep -v '^ *+' conftest.er1 >conftest.err 5250 rm -f conftest.er1 5251 cat conftest.err >&5 5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5253 (exit $ac_status); } && { 5254 test -z "$ac_c_werror_flag" || 5255 test ! -s conftest.err 5256 } && test -s conftest.$ac_objext; then 5257 ac_header_compiler=yes 5258 else 5259 echo "$as_me: failed program was:" >&5 5260 sed 's/^/| /' conftest.$ac_ext >&5 5261 5262 ac_header_compiler=no 5263 fi 5264 5265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5267 echo "${ECHO_T}$ac_header_compiler" >&6; } 5268 5269 # Is the header present? 5270 { echo "$as_me:$LINENO: checking assert.h presence" >&5 5271 echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; } 5272 cat >conftest.$ac_ext <<_ACEOF 5273 /* confdefs.h. */ 5274 _ACEOF 5275 cat confdefs.h >>conftest.$ac_ext 5276 cat >>conftest.$ac_ext <<_ACEOF 5277 /* end confdefs.h. */ 5278 #include <assert.h> 5279 _ACEOF 5280 if { (ac_try="$ac_cpp conftest.$ac_ext" 5281 case "(($ac_try" in 5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5283 *) ac_try_echo=$ac_try;; 5284 esac 5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5287 ac_status=$? 5288 grep -v '^ *+' conftest.er1 >conftest.err 5289 rm -f conftest.er1 5290 cat conftest.err >&5 5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5292 (exit $ac_status); } >/dev/null && { 5293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5294 test ! -s conftest.err 5295 }; then 5296 ac_header_preproc=yes 5297 else 5298 echo "$as_me: failed program was:" >&5 5299 sed 's/^/| /' conftest.$ac_ext >&5 5300 5301 ac_header_preproc=no 5302 fi 5303 5304 rm -f conftest.err conftest.$ac_ext 5305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5306 echo "${ECHO_T}$ac_header_preproc" >&6; } 5307 5308 # So? What about this header? 5309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5310 yes:no: ) 5311 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5 5312 echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5313 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5 5314 echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;} 5315 ac_header_preproc=yes 5316 ;; 5317 no:yes:* ) 5318 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5 5319 echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;} 5320 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5 5321 echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;} 5322 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5 5323 echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;} 5324 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5 5325 echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;} 5326 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5 5327 echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;} 5328 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5 5329 echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;} 5330 5331 ;; 5332 esac 5333 { echo "$as_me:$LINENO: checking for assert.h" >&5 5334 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } 5335 if test "${ac_cv_header_assert_h+set}" = set; then 5336 echo $ECHO_N "(cached) $ECHO_C" >&6 5337 else 5338 ac_cv_header_assert_h=$ac_header_preproc 5339 fi 5340 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 5341 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } 5342 5343 fi 5344 if test $ac_cv_header_assert_h = yes; then 5345 cat >>confdefs.h <<\_ACEOF 5346 #define PJ_HAS_ASSERT_H 1 5347 _ACEOF 5348 5349 fi 5350 5351 5352 if test "${ac_cv_header_ctype_h+set}" = set; then 5353 { echo "$as_me:$LINENO: checking for ctype.h" >&5 5354 echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } 5355 if test "${ac_cv_header_ctype_h+set}" = set; then 5356 echo $ECHO_N "(cached) $ECHO_C" >&6 5357 fi 5358 { echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 5359 echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } 5360 else 5361 # Is the header compilable? 5362 { echo "$as_me:$LINENO: checking ctype.h usability" >&5 5363 echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6; } 5364 cat >conftest.$ac_ext <<_ACEOF 5365 /* confdefs.h. */ 5366 _ACEOF 5367 cat confdefs.h >>conftest.$ac_ext 5368 cat >>conftest.$ac_ext <<_ACEOF 5369 /* end confdefs.h. */ 5370 $ac_includes_default 5371 #include <ctype.h> 5372 _ACEOF 5373 rm -f conftest.$ac_objext 5374 if { (ac_try="$ac_compile" 5375 case "(($ac_try" in 5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5377 *) ac_try_echo=$ac_try;; 5378 esac 5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5380 (eval "$ac_compile") 2>conftest.er1 5381 ac_status=$? 5382 grep -v '^ *+' conftest.er1 >conftest.err 5383 rm -f conftest.er1 5384 cat conftest.err >&5 5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5386 (exit $ac_status); } && { 5387 test -z "$ac_c_werror_flag" || 5388 test ! -s conftest.err 5389 } && test -s conftest.$ac_objext; then 5390 ac_header_compiler=yes 5391 else 5392 echo "$as_me: failed program was:" >&5 5393 sed 's/^/| /' conftest.$ac_ext >&5 5394 5395 ac_header_compiler=no 5396 fi 5397 5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5400 echo "${ECHO_T}$ac_header_compiler" >&6; } 5401 5402 # Is the header present? 5403 { echo "$as_me:$LINENO: checking ctype.h presence" >&5 5404 echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6; } 5405 cat >conftest.$ac_ext <<_ACEOF 5406 /* confdefs.h. */ 5407 _ACEOF 5408 cat confdefs.h >>conftest.$ac_ext 5409 cat >>conftest.$ac_ext <<_ACEOF 5410 /* end confdefs.h. */ 5411 #include <ctype.h> 5412 _ACEOF 5413 if { (ac_try="$ac_cpp conftest.$ac_ext" 5414 case "(($ac_try" in 5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5416 *) ac_try_echo=$ac_try;; 5417 esac 5418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5420 ac_status=$? 5421 grep -v '^ *+' conftest.er1 >conftest.err 5422 rm -f conftest.er1 5423 cat conftest.err >&5 5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5425 (exit $ac_status); } >/dev/null && { 5426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5427 test ! -s conftest.err 5428 }; then 5429 ac_header_preproc=yes 5430 else 5431 echo "$as_me: failed program was:" >&5 5432 sed 's/^/| /' conftest.$ac_ext >&5 5433 5434 ac_header_preproc=no 5435 fi 5436 5437 rm -f conftest.err conftest.$ac_ext 5438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5439 echo "${ECHO_T}$ac_header_preproc" >&6; } 5440 5441 # So? What about this header? 5442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5443 yes:no: ) 5444 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5 5445 echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5446 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5 5447 echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;} 5448 ac_header_preproc=yes 5449 ;; 5450 no:yes:* ) 5451 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5 5452 echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;} 5453 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5 5454 echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;} 5455 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5 5456 echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;} 5457 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5 5458 echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;} 5459 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5 5460 echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;} 5461 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5 5462 echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;} 5463 5464 ;; 5465 esac 5466 { echo "$as_me:$LINENO: checking for ctype.h" >&5 5467 echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } 5468 if test "${ac_cv_header_ctype_h+set}" = set; then 5469 echo $ECHO_N "(cached) $ECHO_C" >&6 5470 else 5471 ac_cv_header_ctype_h=$ac_header_preproc 5472 fi 5473 { echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 5474 echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } 5475 5476 fi 5477 if test $ac_cv_header_ctype_h = yes; then 5478 cat >>confdefs.h <<\_ACEOF 5479 #define PJ_HAS_CTYPE_H 1 5480 _ACEOF 4711 5481 4712 5482 fi … … 4716 5486 case $target in 4717 5487 *mingw* | *cygw* | *win32* | *w32* ) 4718 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h 5488 cat >>confdefs.h <<\_ACEOF 5489 #define PJ_HAS_ERRNO_H 0 5490 _ACEOF 4719 5491 4720 5492 ;; 4721 5493 *) 4722 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 4723 if test "x$ac_cv_header_errno_h" = x""yes; then : 4724 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h 5494 if test "${ac_cv_header_errno_h+set}" = set; then 5495 { echo "$as_me:$LINENO: checking for errno.h" >&5 5496 echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5497 if test "${ac_cv_header_errno_h+set}" = set; then 5498 echo $ECHO_N "(cached) $ECHO_C" >&6 5499 fi 5500 { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5501 echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5502 else 5503 # Is the header compilable? 5504 { echo "$as_me:$LINENO: checking errno.h usability" >&5 5505 echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5506 cat >conftest.$ac_ext <<_ACEOF 5507 /* confdefs.h. */ 5508 _ACEOF 5509 cat confdefs.h >>conftest.$ac_ext 5510 cat >>conftest.$ac_ext <<_ACEOF 5511 /* end confdefs.h. */ 5512 $ac_includes_default 5513 #include <errno.h> 5514 _ACEOF 5515 rm -f conftest.$ac_objext 5516 if { (ac_try="$ac_compile" 5517 case "(($ac_try" in 5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5519 *) ac_try_echo=$ac_try;; 5520 esac 5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5522 (eval "$ac_compile") 2>conftest.er1 5523 ac_status=$? 5524 grep -v '^ *+' conftest.er1 >conftest.err 5525 rm -f conftest.er1 5526 cat conftest.err >&5 5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5528 (exit $ac_status); } && { 5529 test -z "$ac_c_werror_flag" || 5530 test ! -s conftest.err 5531 } && test -s conftest.$ac_objext; then 5532 ac_header_compiler=yes 5533 else 5534 echo "$as_me: failed program was:" >&5 5535 sed 's/^/| /' conftest.$ac_ext >&5 5536 5537 ac_header_compiler=no 5538 fi 5539 5540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5542 echo "${ECHO_T}$ac_header_compiler" >&6; } 5543 5544 # Is the header present? 5545 { echo "$as_me:$LINENO: checking errno.h presence" >&5 5546 echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5547 cat >conftest.$ac_ext <<_ACEOF 5548 /* confdefs.h. */ 5549 _ACEOF 5550 cat confdefs.h >>conftest.$ac_ext 5551 cat >>conftest.$ac_ext <<_ACEOF 5552 /* end confdefs.h. */ 5553 #include <errno.h> 5554 _ACEOF 5555 if { (ac_try="$ac_cpp conftest.$ac_ext" 5556 case "(($ac_try" in 5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5558 *) ac_try_echo=$ac_try;; 5559 esac 5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5562 ac_status=$? 5563 grep -v '^ *+' conftest.er1 >conftest.err 5564 rm -f conftest.er1 5565 cat conftest.err >&5 5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5567 (exit $ac_status); } >/dev/null && { 5568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5569 test ! -s conftest.err 5570 }; then 5571 ac_header_preproc=yes 5572 else 5573 echo "$as_me: failed program was:" >&5 5574 sed 's/^/| /' conftest.$ac_ext >&5 5575 5576 ac_header_preproc=no 5577 fi 5578 5579 rm -f conftest.err conftest.$ac_ext 5580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5581 echo "${ECHO_T}$ac_header_preproc" >&6; } 5582 5583 # So? What about this header? 5584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5585 yes:no: ) 5586 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5587 echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5588 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5589 echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5590 ac_header_preproc=yes 5591 ;; 5592 no:yes:* ) 5593 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5594 echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5595 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5596 echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5597 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5598 echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5599 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5600 echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5601 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5602 echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5603 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5604 echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5605 5606 ;; 5607 esac 5608 { echo "$as_me:$LINENO: checking for errno.h" >&5 5609 echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5610 if test "${ac_cv_header_errno_h+set}" = set; then 5611 echo $ECHO_N "(cached) $ECHO_C" >&6 5612 else 5613 ac_cv_header_errno_h=$ac_header_preproc 5614 fi 5615 { echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5616 echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5617 5618 fi 5619 if test $ac_cv_header_errno_h = yes; then 5620 cat >>confdefs.h <<\_ACEOF 5621 #define PJ_HAS_ERRNO_H 1 5622 _ACEOF 4725 5623 4726 5624 fi … … 4730 5628 esac 4731 5629 4732 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 4733 if test "x$ac_cv_header_fcntl_h" = x""yes; then : 4734 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h 4735 4736 fi 4737 4738 4739 ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default" 4740 if test "x$ac_cv_header_linux_socket_h" = x""yes; then : 4741 $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h 4742 4743 fi 4744 4745 4746 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 4747 if test "x$ac_cv_header_limits_h" = x""yes; then : 4748 $as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h 4749 4750 fi 4751 4752 4753 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 4754 if test "x$ac_cv_header_malloc_h" = x""yes; then : 4755 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h 4756 4757 fi 4758 4759 4760 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" 4761 if test "x$ac_cv_header_netdb_h" = x""yes; then : 4762 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h 4763 4764 fi 4765 4766 4767 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default" 4768 if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then : 4769 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h 4770 4771 fi 4772 4773 4774 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 4775 if test "x$ac_cv_header_netinet_in_h" = x""yes; then : 4776 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h 4777 4778 fi 4779 4780 4781 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if PJ_HAS_SYS_TYPES_H 5630 if test "${ac_cv_header_fcntl_h+set}" = set; then 5631 { echo "$as_me:$LINENO: checking for fcntl.h" >&5 5632 echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } 5633 if test "${ac_cv_header_fcntl_h+set}" = set; then 5634 echo $ECHO_N "(cached) $ECHO_C" >&6 5635 fi 5636 { echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 5637 echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } 5638 else 5639 # Is the header compilable? 5640 { echo "$as_me:$LINENO: checking fcntl.h usability" >&5 5641 echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6; } 5642 cat >conftest.$ac_ext <<_ACEOF 5643 /* confdefs.h. */ 5644 _ACEOF 5645 cat confdefs.h >>conftest.$ac_ext 5646 cat >>conftest.$ac_ext <<_ACEOF 5647 /* end confdefs.h. */ 5648 $ac_includes_default 5649 #include <fcntl.h> 5650 _ACEOF 5651 rm -f conftest.$ac_objext 5652 if { (ac_try="$ac_compile" 5653 case "(($ac_try" in 5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5655 *) ac_try_echo=$ac_try;; 5656 esac 5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5658 (eval "$ac_compile") 2>conftest.er1 5659 ac_status=$? 5660 grep -v '^ *+' conftest.er1 >conftest.err 5661 rm -f conftest.er1 5662 cat conftest.err >&5 5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5664 (exit $ac_status); } && { 5665 test -z "$ac_c_werror_flag" || 5666 test ! -s conftest.err 5667 } && test -s conftest.$ac_objext; then 5668 ac_header_compiler=yes 5669 else 5670 echo "$as_me: failed program was:" >&5 5671 sed 's/^/| /' conftest.$ac_ext >&5 5672 5673 ac_header_compiler=no 5674 fi 5675 5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5678 echo "${ECHO_T}$ac_header_compiler" >&6; } 5679 5680 # Is the header present? 5681 { echo "$as_me:$LINENO: checking fcntl.h presence" >&5 5682 echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6; } 5683 cat >conftest.$ac_ext <<_ACEOF 5684 /* confdefs.h. */ 5685 _ACEOF 5686 cat confdefs.h >>conftest.$ac_ext 5687 cat >>conftest.$ac_ext <<_ACEOF 5688 /* end confdefs.h. */ 5689 #include <fcntl.h> 5690 _ACEOF 5691 if { (ac_try="$ac_cpp conftest.$ac_ext" 5692 case "(($ac_try" in 5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5694 *) ac_try_echo=$ac_try;; 5695 esac 5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5698 ac_status=$? 5699 grep -v '^ *+' conftest.er1 >conftest.err 5700 rm -f conftest.er1 5701 cat conftest.err >&5 5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5703 (exit $ac_status); } >/dev/null && { 5704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5705 test ! -s conftest.err 5706 }; then 5707 ac_header_preproc=yes 5708 else 5709 echo "$as_me: failed program was:" >&5 5710 sed 's/^/| /' conftest.$ac_ext >&5 5711 5712 ac_header_preproc=no 5713 fi 5714 5715 rm -f conftest.err conftest.$ac_ext 5716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5717 echo "${ECHO_T}$ac_header_preproc" >&6; } 5718 5719 # So? What about this header? 5720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5721 yes:no: ) 5722 { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5 5723 echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5724 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5 5725 echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;} 5726 ac_header_preproc=yes 5727 ;; 5728 no:yes:* ) 5729 { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5 5730 echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;} 5731 { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5 5732 echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;} 5733 { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5 5734 echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;} 5735 { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5 5736 echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;} 5737 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5 5738 echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;} 5739 { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5 5740 echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;} 5741 5742 ;; 5743 esac 5744 { echo "$as_me:$LINENO: checking for fcntl.h" >&5 5745 echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } 5746 if test "${ac_cv_header_fcntl_h+set}" = set; then 5747 echo $ECHO_N "(cached) $ECHO_C" >&6 5748 else 5749 ac_cv_header_fcntl_h=$ac_header_preproc 5750 fi 5751 { echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 5752 echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } 5753 5754 fi 5755 if test $ac_cv_header_fcntl_h = yes; then 5756 cat >>confdefs.h <<\_ACEOF 5757 #define PJ_HAS_FCNTL_H 1 5758 _ACEOF 5759 5760 fi 5761 5762 5763 if test "${ac_cv_header_linux_socket_h+set}" = set; then 5764 { echo "$as_me:$LINENO: checking for linux/socket.h" >&5 5765 echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } 5766 if test "${ac_cv_header_linux_socket_h+set}" = set; then 5767 echo $ECHO_N "(cached) $ECHO_C" >&6 5768 fi 5769 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 5770 echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } 5771 else 5772 # Is the header compilable? 5773 { echo "$as_me:$LINENO: checking linux/socket.h usability" >&5 5774 echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6; } 5775 cat >conftest.$ac_ext <<_ACEOF 5776 /* confdefs.h. */ 5777 _ACEOF 5778 cat confdefs.h >>conftest.$ac_ext 5779 cat >>conftest.$ac_ext <<_ACEOF 5780 /* end confdefs.h. */ 5781 $ac_includes_default 5782 #include <linux/socket.h> 5783 _ACEOF 5784 rm -f conftest.$ac_objext 5785 if { (ac_try="$ac_compile" 5786 case "(($ac_try" in 5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5788 *) ac_try_echo=$ac_try;; 5789 esac 5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5791 (eval "$ac_compile") 2>conftest.er1 5792 ac_status=$? 5793 grep -v '^ *+' conftest.er1 >conftest.err 5794 rm -f conftest.er1 5795 cat conftest.err >&5 5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5797 (exit $ac_status); } && { 5798 test -z "$ac_c_werror_flag" || 5799 test ! -s conftest.err 5800 } && test -s conftest.$ac_objext; then 5801 ac_header_compiler=yes 5802 else 5803 echo "$as_me: failed program was:" >&5 5804 sed 's/^/| /' conftest.$ac_ext >&5 5805 5806 ac_header_compiler=no 5807 fi 5808 5809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5811 echo "${ECHO_T}$ac_header_compiler" >&6; } 5812 5813 # Is the header present? 5814 { echo "$as_me:$LINENO: checking linux/socket.h presence" >&5 5815 echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6; } 5816 cat >conftest.$ac_ext <<_ACEOF 5817 /* confdefs.h. */ 5818 _ACEOF 5819 cat confdefs.h >>conftest.$ac_ext 5820 cat >>conftest.$ac_ext <<_ACEOF 5821 /* end confdefs.h. */ 5822 #include <linux/socket.h> 5823 _ACEOF 5824 if { (ac_try="$ac_cpp conftest.$ac_ext" 5825 case "(($ac_try" in 5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5827 *) ac_try_echo=$ac_try;; 5828 esac 5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5831 ac_status=$? 5832 grep -v '^ *+' conftest.er1 >conftest.err 5833 rm -f conftest.er1 5834 cat conftest.err >&5 5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5836 (exit $ac_status); } >/dev/null && { 5837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5838 test ! -s conftest.err 5839 }; then 5840 ac_header_preproc=yes 5841 else 5842 echo "$as_me: failed program was:" >&5 5843 sed 's/^/| /' conftest.$ac_ext >&5 5844 5845 ac_header_preproc=no 5846 fi 5847 5848 rm -f conftest.err conftest.$ac_ext 5849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5850 echo "${ECHO_T}$ac_header_preproc" >&6; } 5851 5852 # So? What about this header? 5853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5854 yes:no: ) 5855 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 5856 echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5857 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5 5858 echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;} 5859 ac_header_preproc=yes 5860 ;; 5861 no:yes:* ) 5862 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5 5863 echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;} 5864 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5 5865 echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;} 5866 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5 5867 echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;} 5868 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5 5869 echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} 5870 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5 5871 echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;} 5872 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5 5873 echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;} 5874 5875 ;; 5876 esac 5877 { echo "$as_me:$LINENO: checking for linux/socket.h" >&5 5878 echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } 5879 if test "${ac_cv_header_linux_socket_h+set}" = set; then 5880 echo $ECHO_N "(cached) $ECHO_C" >&6 5881 else 5882 ac_cv_header_linux_socket_h=$ac_header_preproc 5883 fi 5884 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 5885 echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } 5886 5887 fi 5888 if test $ac_cv_header_linux_socket_h = yes; then 5889 cat >>confdefs.h <<\_ACEOF 5890 #define PJ_HAS_LINUX_SOCKET_H 1 5891 _ACEOF 5892 5893 fi 5894 5895 5896 if test "${ac_cv_header_limits_h+set}" = set; then 5897 { echo "$as_me:$LINENO: checking for limits.h" >&5 5898 echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5899 if test "${ac_cv_header_limits_h+set}" = set; then 5900 echo $ECHO_N "(cached) $ECHO_C" >&6 5901 fi 5902 { echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5903 echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5904 else 5905 # Is the header compilable? 5906 { echo "$as_me:$LINENO: checking limits.h usability" >&5 5907 echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5908 cat >conftest.$ac_ext <<_ACEOF 5909 /* confdefs.h. */ 5910 _ACEOF 5911 cat confdefs.h >>conftest.$ac_ext 5912 cat >>conftest.$ac_ext <<_ACEOF 5913 /* end confdefs.h. */ 5914 $ac_includes_default 5915 #include <limits.h> 5916 _ACEOF 5917 rm -f conftest.$ac_objext 5918 if { (ac_try="$ac_compile" 5919 case "(($ac_try" in 5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5921 *) ac_try_echo=$ac_try;; 5922 esac 5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5924 (eval "$ac_compile") 2>conftest.er1 5925 ac_status=$? 5926 grep -v '^ *+' conftest.er1 >conftest.err 5927 rm -f conftest.er1 5928 cat conftest.err >&5 5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5930 (exit $ac_status); } && { 5931 test -z "$ac_c_werror_flag" || 5932 test ! -s conftest.err 5933 } && test -s conftest.$ac_objext; then 5934 ac_header_compiler=yes 5935 else 5936 echo "$as_me: failed program was:" >&5 5937 sed 's/^/| /' conftest.$ac_ext >&5 5938 5939 ac_header_compiler=no 5940 fi 5941 5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5943 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5944 echo "${ECHO_T}$ac_header_compiler" >&6; } 5945 5946 # Is the header present? 5947 { echo "$as_me:$LINENO: checking limits.h presence" >&5 5948 echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5949 cat >conftest.$ac_ext <<_ACEOF 5950 /* confdefs.h. */ 5951 _ACEOF 5952 cat confdefs.h >>conftest.$ac_ext 5953 cat >>conftest.$ac_ext <<_ACEOF 5954 /* end confdefs.h. */ 5955 #include <limits.h> 5956 _ACEOF 5957 if { (ac_try="$ac_cpp conftest.$ac_ext" 5958 case "(($ac_try" in 5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5960 *) ac_try_echo=$ac_try;; 5961 esac 5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5964 ac_status=$? 5965 grep -v '^ *+' conftest.er1 >conftest.err 5966 rm -f conftest.er1 5967 cat conftest.err >&5 5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5969 (exit $ac_status); } >/dev/null && { 5970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5971 test ! -s conftest.err 5972 }; then 5973 ac_header_preproc=yes 5974 else 5975 echo "$as_me: failed program was:" >&5 5976 sed 's/^/| /' conftest.$ac_ext >&5 5977 5978 ac_header_preproc=no 5979 fi 5980 5981 rm -f conftest.err conftest.$ac_ext 5982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5983 echo "${ECHO_T}$ac_header_preproc" >&6; } 5984 5985 # So? What about this header? 5986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5987 yes:no: ) 5988 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5989 echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5990 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5991 echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5992 ac_header_preproc=yes 5993 ;; 5994 no:yes:* ) 5995 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5996 echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5997 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5998 echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5999 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 6000 echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 6001 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 6002 echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 6003 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 6004 echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 6005 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 6006 echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 6007 6008 ;; 6009 esac 6010 { echo "$as_me:$LINENO: checking for limits.h" >&5 6011 echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 6012 if test "${ac_cv_header_limits_h+set}" = set; then 6013 echo $ECHO_N "(cached) $ECHO_C" >&6 6014 else 6015 ac_cv_header_limits_h=$ac_header_preproc 6016 fi 6017 { echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 6018 echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 6019 6020 fi 6021 if test $ac_cv_header_limits_h = yes; then 6022 cat >>confdefs.h <<\_ACEOF 6023 #define PJ_HAS_LIMITS_H 1 6024 _ACEOF 6025 6026 fi 6027 6028 6029 if test "${ac_cv_header_malloc_h+set}" = set; then 6030 { echo "$as_me:$LINENO: checking for malloc.h" >&5 6031 echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } 6032 if test "${ac_cv_header_malloc_h+set}" = set; then 6033 echo $ECHO_N "(cached) $ECHO_C" >&6 6034 fi 6035 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 6036 echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } 6037 else 6038 # Is the header compilable? 6039 { echo "$as_me:$LINENO: checking malloc.h usability" >&5 6040 echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; } 6041 cat >conftest.$ac_ext <<_ACEOF 6042 /* confdefs.h. */ 6043 _ACEOF 6044 cat confdefs.h >>conftest.$ac_ext 6045 cat >>conftest.$ac_ext <<_ACEOF 6046 /* end confdefs.h. */ 6047 $ac_includes_default 6048 #include <malloc.h> 6049 _ACEOF 6050 rm -f conftest.$ac_objext 6051 if { (ac_try="$ac_compile" 6052 case "(($ac_try" in 6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6054 *) ac_try_echo=$ac_try;; 6055 esac 6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6057 (eval "$ac_compile") 2>conftest.er1 6058 ac_status=$? 6059 grep -v '^ *+' conftest.er1 >conftest.err 6060 rm -f conftest.er1 6061 cat conftest.err >&5 6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6063 (exit $ac_status); } && { 6064 test -z "$ac_c_werror_flag" || 6065 test ! -s conftest.err 6066 } && test -s conftest.$ac_objext; then 6067 ac_header_compiler=yes 6068 else 6069 echo "$as_me: failed program was:" >&5 6070 sed 's/^/| /' conftest.$ac_ext >&5 6071 6072 ac_header_compiler=no 6073 fi 6074 6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6077 echo "${ECHO_T}$ac_header_compiler" >&6; } 6078 6079 # Is the header present? 6080 { echo "$as_me:$LINENO: checking malloc.h presence" >&5 6081 echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; } 6082 cat >conftest.$ac_ext <<_ACEOF 6083 /* confdefs.h. */ 6084 _ACEOF 6085 cat confdefs.h >>conftest.$ac_ext 6086 cat >>conftest.$ac_ext <<_ACEOF 6087 /* end confdefs.h. */ 6088 #include <malloc.h> 6089 _ACEOF 6090 if { (ac_try="$ac_cpp conftest.$ac_ext" 6091 case "(($ac_try" in 6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6093 *) ac_try_echo=$ac_try;; 6094 esac 6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6097 ac_status=$? 6098 grep -v '^ *+' conftest.er1 >conftest.err 6099 rm -f conftest.er1 6100 cat conftest.err >&5 6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6102 (exit $ac_status); } >/dev/null && { 6103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6104 test ! -s conftest.err 6105 }; then 6106 ac_header_preproc=yes 6107 else 6108 echo "$as_me: failed program was:" >&5 6109 sed 's/^/| /' conftest.$ac_ext >&5 6110 6111 ac_header_preproc=no 6112 fi 6113 6114 rm -f conftest.err conftest.$ac_ext 6115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6116 echo "${ECHO_T}$ac_header_preproc" >&6; } 6117 6118 # So? What about this header? 6119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6120 yes:no: ) 6121 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 6122 echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6123 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 6124 echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} 6125 ac_header_preproc=yes 6126 ;; 6127 no:yes:* ) 6128 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 6129 echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} 6130 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 6131 echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} 6132 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 6133 echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} 6134 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 6135 echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} 6136 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 6137 echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} 6138 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 6139 echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} 6140 6141 ;; 6142 esac 6143 { echo "$as_me:$LINENO: checking for malloc.h" >&5 6144 echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } 6145 if test "${ac_cv_header_malloc_h+set}" = set; then 6146 echo $ECHO_N "(cached) $ECHO_C" >&6 6147 else 6148 ac_cv_header_malloc_h=$ac_header_preproc 6149 fi 6150 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 6151 echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } 6152 6153 fi 6154 if test $ac_cv_header_malloc_h = yes; then 6155 cat >>confdefs.h <<\_ACEOF 6156 #define PJ_HAS_MALLOC_H 1 6157 _ACEOF 6158 6159 fi 6160 6161 6162 if test "${ac_cv_header_netdb_h+set}" = set; then 6163 { echo "$as_me:$LINENO: checking for netdb.h" >&5 6164 echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } 6165 if test "${ac_cv_header_netdb_h+set}" = set; then 6166 echo $ECHO_N "(cached) $ECHO_C" >&6 6167 fi 6168 { echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 6169 echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } 6170 else 6171 # Is the header compilable? 6172 { echo "$as_me:$LINENO: checking netdb.h usability" >&5 6173 echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6; } 6174 cat >conftest.$ac_ext <<_ACEOF 6175 /* confdefs.h. */ 6176 _ACEOF 6177 cat confdefs.h >>conftest.$ac_ext 6178 cat >>conftest.$ac_ext <<_ACEOF 6179 /* end confdefs.h. */ 6180 $ac_includes_default 6181 #include <netdb.h> 6182 _ACEOF 6183 rm -f conftest.$ac_objext 6184 if { (ac_try="$ac_compile" 6185 case "(($ac_try" in 6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6187 *) ac_try_echo=$ac_try;; 6188 esac 6189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6190 (eval "$ac_compile") 2>conftest.er1 6191 ac_status=$? 6192 grep -v '^ *+' conftest.er1 >conftest.err 6193 rm -f conftest.er1 6194 cat conftest.err >&5 6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6196 (exit $ac_status); } && { 6197 test -z "$ac_c_werror_flag" || 6198 test ! -s conftest.err 6199 } && test -s conftest.$ac_objext; then 6200 ac_header_compiler=yes 6201 else 6202 echo "$as_me: failed program was:" >&5 6203 sed 's/^/| /' conftest.$ac_ext >&5 6204 6205 ac_header_compiler=no 6206 fi 6207 6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6210 echo "${ECHO_T}$ac_header_compiler" >&6; } 6211 6212 # Is the header present? 6213 { echo "$as_me:$LINENO: checking netdb.h presence" >&5 6214 echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6; } 6215 cat >conftest.$ac_ext <<_ACEOF 6216 /* confdefs.h. */ 6217 _ACEOF 6218 cat confdefs.h >>conftest.$ac_ext 6219 cat >>conftest.$ac_ext <<_ACEOF 6220 /* end confdefs.h. */ 6221 #include <netdb.h> 6222 _ACEOF 6223 if { (ac_try="$ac_cpp conftest.$ac_ext" 6224 case "(($ac_try" in 6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6226 *) ac_try_echo=$ac_try;; 6227 esac 6228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6230 ac_status=$? 6231 grep -v '^ *+' conftest.er1 >conftest.err 6232 rm -f conftest.er1 6233 cat conftest.err >&5 6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6235 (exit $ac_status); } >/dev/null && { 6236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6237 test ! -s conftest.err 6238 }; then 6239 ac_header_preproc=yes 6240 else 6241 echo "$as_me: failed program was:" >&5 6242 sed 's/^/| /' conftest.$ac_ext >&5 6243 6244 ac_header_preproc=no 6245 fi 6246 6247 rm -f conftest.err conftest.$ac_ext 6248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6249 echo "${ECHO_T}$ac_header_preproc" >&6; } 6250 6251 # So? What about this header? 6252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6253 yes:no: ) 6254 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5 6255 echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6256 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5 6257 echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;} 6258 ac_header_preproc=yes 6259 ;; 6260 no:yes:* ) 6261 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5 6262 echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;} 6263 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5 6264 echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;} 6265 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5 6266 echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;} 6267 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5 6268 echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;} 6269 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5 6270 echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;} 6271 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5 6272 echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;} 6273 6274 ;; 6275 esac 6276 { echo "$as_me:$LINENO: checking for netdb.h" >&5 6277 echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } 6278 if test "${ac_cv_header_netdb_h+set}" = set; then 6279 echo $ECHO_N "(cached) $ECHO_C" >&6 6280 else 6281 ac_cv_header_netdb_h=$ac_header_preproc 6282 fi 6283 { echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 6284 echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } 6285 6286 fi 6287 if test $ac_cv_header_netdb_h = yes; then 6288 cat >>confdefs.h <<\_ACEOF 6289 #define PJ_HAS_NETDB_H 1 6290 _ACEOF 6291 6292 fi 6293 6294 6295 if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then 6296 { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 6297 echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; } 6298 if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then 6299 echo $ECHO_N "(cached) $ECHO_C" >&6 6300 fi 6301 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 6302 echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; } 6303 else 6304 # Is the header compilable? 6305 { echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5 6306 echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6; } 6307 cat >conftest.$ac_ext <<_ACEOF 6308 /* confdefs.h. */ 6309 _ACEOF 6310 cat confdefs.h >>conftest.$ac_ext 6311 cat >>conftest.$ac_ext <<_ACEOF 6312 /* end confdefs.h. */ 6313 $ac_includes_default 6314 #include <netinet/in_systm.h> 6315 _ACEOF 6316 rm -f conftest.$ac_objext 6317 if { (ac_try="$ac_compile" 6318 case "(($ac_try" in 6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6320 *) ac_try_echo=$ac_try;; 6321 esac 6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6323 (eval "$ac_compile") 2>conftest.er1 6324 ac_status=$? 6325 grep -v '^ *+' conftest.er1 >conftest.err 6326 rm -f conftest.er1 6327 cat conftest.err >&5 6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6329 (exit $ac_status); } && { 6330 test -z "$ac_c_werror_flag" || 6331 test ! -s conftest.err 6332 } && test -s conftest.$ac_objext; then 6333 ac_header_compiler=yes 6334 else 6335 echo "$as_me: failed program was:" >&5 6336 sed 's/^/| /' conftest.$ac_ext >&5 6337 6338 ac_header_compiler=no 6339 fi 6340 6341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6343 echo "${ECHO_T}$ac_header_compiler" >&6; } 6344 6345 # Is the header present? 6346 { echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5 6347 echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6; } 6348 cat >conftest.$ac_ext <<_ACEOF 6349 /* confdefs.h. */ 6350 _ACEOF 6351 cat confdefs.h >>conftest.$ac_ext 6352 cat >>conftest.$ac_ext <<_ACEOF 6353 /* end confdefs.h. */ 6354 #include <netinet/in_systm.h> 6355 _ACEOF 6356 if { (ac_try="$ac_cpp conftest.$ac_ext" 6357 case "(($ac_try" in 6358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6359 *) ac_try_echo=$ac_try;; 6360 esac 6361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6363 ac_status=$? 6364 grep -v '^ *+' conftest.er1 >conftest.err 6365 rm -f conftest.er1 6366 cat conftest.err >&5 6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6368 (exit $ac_status); } >/dev/null && { 6369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6370 test ! -s conftest.err 6371 }; then 6372 ac_header_preproc=yes 6373 else 6374 echo "$as_me: failed program was:" >&5 6375 sed 's/^/| /' conftest.$ac_ext >&5 6376 6377 ac_header_preproc=no 6378 fi 6379 6380 rm -f conftest.err conftest.$ac_ext 6381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6382 echo "${ECHO_T}$ac_header_preproc" >&6; } 6383 6384 # So? What about this header? 6385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6386 yes:no: ) 6387 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5 6388 echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6389 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5 6390 echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;} 6391 ac_header_preproc=yes 6392 ;; 6393 no:yes:* ) 6394 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5 6395 echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;} 6396 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5 6397 echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;} 6398 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5 6399 echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;} 6400 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5 6401 echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;} 6402 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5 6403 echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;} 6404 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5 6405 echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;} 6406 6407 ;; 6408 esac 6409 { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 6410 echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; } 6411 if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then 6412 echo $ECHO_N "(cached) $ECHO_C" >&6 6413 else 6414 ac_cv_header_netinet_in_systm_h=$ac_header_preproc 6415 fi 6416 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 6417 echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; } 6418 6419 fi 6420 if test $ac_cv_header_netinet_in_systm_h = yes; then 6421 cat >>confdefs.h <<\_ACEOF 6422 #define PJ_HAS_NETINET_IN_SYSTM_H 1 6423 _ACEOF 6424 6425 fi 6426 6427 6428 if test "${ac_cv_header_netinet_in_h+set}" = set; then 6429 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 6430 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } 6431 if test "${ac_cv_header_netinet_in_h+set}" = set; then 6432 echo $ECHO_N "(cached) $ECHO_C" >&6 6433 fi 6434 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 6435 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } 6436 else 6437 # Is the header compilable? 6438 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 6439 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; } 6440 cat >conftest.$ac_ext <<_ACEOF 6441 /* confdefs.h. */ 6442 _ACEOF 6443 cat confdefs.h >>conftest.$ac_ext 6444 cat >>conftest.$ac_ext <<_ACEOF 6445 /* end confdefs.h. */ 6446 $ac_includes_default 6447 #include <netinet/in.h> 6448 _ACEOF 6449 rm -f conftest.$ac_objext 6450 if { (ac_try="$ac_compile" 6451 case "(($ac_try" in 6452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6453 *) ac_try_echo=$ac_try;; 6454 esac 6455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6456 (eval "$ac_compile") 2>conftest.er1 6457 ac_status=$? 6458 grep -v '^ *+' conftest.er1 >conftest.err 6459 rm -f conftest.er1 6460 cat conftest.err >&5 6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6462 (exit $ac_status); } && { 6463 test -z "$ac_c_werror_flag" || 6464 test ! -s conftest.err 6465 } && test -s conftest.$ac_objext; then 6466 ac_header_compiler=yes 6467 else 6468 echo "$as_me: failed program was:" >&5 6469 sed 's/^/| /' conftest.$ac_ext >&5 6470 6471 ac_header_compiler=no 6472 fi 6473 6474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6476 echo "${ECHO_T}$ac_header_compiler" >&6; } 6477 6478 # Is the header present? 6479 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 6480 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; } 6481 cat >conftest.$ac_ext <<_ACEOF 6482 /* confdefs.h. */ 6483 _ACEOF 6484 cat confdefs.h >>conftest.$ac_ext 6485 cat >>conftest.$ac_ext <<_ACEOF 6486 /* end confdefs.h. */ 6487 #include <netinet/in.h> 6488 _ACEOF 6489 if { (ac_try="$ac_cpp conftest.$ac_ext" 6490 case "(($ac_try" in 6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6492 *) ac_try_echo=$ac_try;; 6493 esac 6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6496 ac_status=$? 6497 grep -v '^ *+' conftest.er1 >conftest.err 6498 rm -f conftest.er1 6499 cat conftest.err >&5 6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6501 (exit $ac_status); } >/dev/null && { 6502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6503 test ! -s conftest.err 6504 }; then 6505 ac_header_preproc=yes 6506 else 6507 echo "$as_me: failed program was:" >&5 6508 sed 's/^/| /' conftest.$ac_ext >&5 6509 6510 ac_header_preproc=no 6511 fi 6512 6513 rm -f conftest.err conftest.$ac_ext 6514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6515 echo "${ECHO_T}$ac_header_preproc" >&6; } 6516 6517 # So? What about this header? 6518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6519 yes:no: ) 6520 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 6521 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 6523 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} 6524 ac_header_preproc=yes 6525 ;; 6526 no:yes:* ) 6527 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 6528 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} 6529 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 6530 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} 6531 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 6532 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} 6533 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 6534 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} 6535 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 6536 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} 6537 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 6538 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} 6539 6540 ;; 6541 esac 6542 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 6543 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } 6544 if test "${ac_cv_header_netinet_in_h+set}" = set; then 6545 echo $ECHO_N "(cached) $ECHO_C" >&6 6546 else 6547 ac_cv_header_netinet_in_h=$ac_header_preproc 6548 fi 6549 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 6550 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } 6551 6552 fi 6553 if test $ac_cv_header_netinet_in_h = yes; then 6554 cat >>confdefs.h <<\_ACEOF 6555 #define PJ_HAS_NETINET_IN_H 1 6556 _ACEOF 6557 6558 fi 6559 6560 6561 { echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 6562 echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; } 6563 if test "${ac_cv_header_netinet_ip_h+set}" = set; then 6564 echo $ECHO_N "(cached) $ECHO_C" >&6 6565 else 6566 cat >conftest.$ac_ext <<_ACEOF 6567 /* confdefs.h. */ 6568 _ACEOF 6569 cat confdefs.h >>conftest.$ac_ext 6570 cat >>conftest.$ac_ext <<_ACEOF 6571 /* end confdefs.h. */ 6572 #if PJ_HAS_SYS_TYPES_H 4782 6573 # include <sys/types.h> 4783 6574 #endif … … 4789 6580 #endif 4790 6581 4791 " 4792 if test "x$ac_cv_header_netinet_ip_h" = x""yes; then : 4793 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h 4794 4795 fi 4796 4797 4798 ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" 4799 if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then : 4800 $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h 4801 4802 fi 4803 4804 4805 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" 4806 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then : 4807 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 4808 if test "x$ac_cv_func_getifaddrs" = x""yes; then : 4809 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h 4810 4811 fi 4812 4813 fi 4814 4815 4816 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" 4817 if test "x$ac_cv_header_semaphore_h" = x""yes; then : 4818 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h 4819 4820 fi 4821 4822 4823 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 4824 if test "x$ac_cv_header_setjmp_h" = x""yes; then : 4825 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h 4826 4827 fi 4828 4829 4830 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 4831 if test "x$ac_cv_header_stdarg_h" = x""yes; then : 4832 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h 4833 4834 fi 4835 4836 4837 ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" 4838 if test "x$ac_cv_header_stddef_h" = x""yes; then : 4839 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h 4840 4841 fi 4842 4843 4844 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 4845 if test "x$ac_cv_header_stdio_h" = x""yes; then : 4846 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h 4847 4848 fi 4849 4850 4851 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 4852 if test "x$ac_cv_header_stdint_h" = x""yes; then : 4853 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h 4854 4855 fi 4856 4857 4858 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 4859 if test "x$ac_cv_header_stdlib_h" = x""yes; then : 4860 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h 4861 4862 fi 4863 4864 4865 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 4866 if test "x$ac_cv_header_string_h" = x""yes; then : 4867 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h 4868 4869 fi 4870 4871 4872 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 4873 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : 4874 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h 4875 4876 fi 4877 4878 4879 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 4880 if test "x$ac_cv_header_sys_select_h" = x""yes; then : 4881 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h 4882 4883 fi 4884 4885 4886 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 4887 if test "x$ac_cv_header_sys_socket_h" = x""yes; then : 4888 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h 4889 4890 fi 4891 4892 4893 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 4894 if test "x$ac_cv_header_sys_time_h" = x""yes; then : 4895 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h 4896 4897 fi 4898 4899 4900 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" 4901 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : 4902 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h 4903 4904 fi 4905 4906 4907 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 4908 if test "x$ac_cv_header_sys_types_h" = x""yes; then : 4909 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h 4910 4911 fi 4912 4913 4914 ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" 4915 if test "x$ac_cv_header_sys_filio_h" = x""yes; then : 4916 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h 4917 4918 fi 4919 4920 4921 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" 4922 if test "x$ac_cv_header_sys_sockio_h" = x""yes; then : 4923 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h 4924 4925 fi 4926 4927 4928 ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 4929 if test "x$ac_cv_header_sys_utsname_h" = x""yes; then : 4930 $as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h 4931 4932 fi 4933 4934 4935 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 4936 if test "x$ac_cv_header_time_h" = x""yes; then : 4937 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h 4938 4939 fi 4940 4941 4942 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 4943 if test "x$ac_cv_header_unistd_h" = x""yes; then : 4944 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h 4945 4946 fi 4947 4948 4949 ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default" 4950 if test "x$ac_cv_header_winsock_h" = x""yes; then : 4951 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h 4952 4953 fi 4954 4955 4956 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 4957 if test "x$ac_cv_header_winsock2_h" = x""yes; then : 4958 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h 4959 4960 fi 4961 4962 4963 ac_fn_c_check_header_compile "$LINENO" "mswsock.h" "ac_cv_header_mswsock_h" "#if PJ_HAS_WINSOCK2_H 6582 6583 #include <netinet/ip.h> 6584 _ACEOF 6585 rm -f conftest.$ac_objext 6586 if { (ac_try="$ac_compile" 6587 case "(($ac_try" in 6588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6589 *) ac_try_echo=$ac_try;; 6590 esac 6591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6592 (eval "$ac_compile") 2>conftest.er1 6593 ac_status=$? 6594 grep -v '^ *+' conftest.er1 >conftest.err 6595 rm -f conftest.er1 6596 cat conftest.err >&5 6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6598 (exit $ac_status); } && { 6599 test -z "$ac_c_werror_flag" || 6600 test ! -s conftest.err 6601 } && test -s conftest.$ac_objext; then 6602 ac_cv_header_netinet_ip_h=yes 6603 else 6604 echo "$as_me: failed program was:" >&5 6605 sed 's/^/| /' conftest.$ac_ext >&5 6606 6607 ac_cv_header_netinet_ip_h=no 6608 fi 6609 6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6611 fi 6612 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 6613 echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; } 6614 if test $ac_cv_header_netinet_ip_h = yes; then 6615 cat >>confdefs.h <<\_ACEOF 6616 #define PJ_HAS_NETINET_IP_H 1 6617 _ACEOF 6618 6619 fi 6620 6621 6622 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then 6623 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5 6624 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; } 6625 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then 6626 echo $ECHO_N "(cached) $ECHO_C" >&6 6627 fi 6628 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5 6629 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; } 6630 else 6631 # Is the header compilable? 6632 { echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5 6633 echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; } 6634 cat >conftest.$ac_ext <<_ACEOF 6635 /* confdefs.h. */ 6636 _ACEOF 6637 cat confdefs.h >>conftest.$ac_ext 6638 cat >>conftest.$ac_ext <<_ACEOF 6639 /* end confdefs.h. */ 6640 $ac_includes_default 6641 #include <netinet/tcp.h> 6642 _ACEOF 6643 rm -f conftest.$ac_objext 6644 if { (ac_try="$ac_compile" 6645 case "(($ac_try" in 6646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6647 *) ac_try_echo=$ac_try;; 6648 esac 6649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6650 (eval "$ac_compile") 2>conftest.er1 6651 ac_status=$? 6652 grep -v '^ *+' conftest.er1 >conftest.err 6653 rm -f conftest.er1 6654 cat conftest.err >&5 6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6656 (exit $ac_status); } && { 6657 test -z "$ac_c_werror_flag" || 6658 test ! -s conftest.err 6659 } && test -s conftest.$ac_objext; then 6660 ac_header_compiler=yes 6661 else 6662 echo "$as_me: failed program was:" >&5 6663 sed 's/^/| /' conftest.$ac_ext >&5 6664 6665 ac_header_compiler=no 6666 fi 6667 6668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6670 echo "${ECHO_T}$ac_header_compiler" >&6; } 6671 6672 # Is the header present? 6673 { echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5 6674 echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; } 6675 cat >conftest.$ac_ext <<_ACEOF 6676 /* confdefs.h. */ 6677 _ACEOF 6678 cat confdefs.h >>conftest.$ac_ext 6679 cat >>conftest.$ac_ext <<_ACEOF 6680 /* end confdefs.h. */ 6681 #include <netinet/tcp.h> 6682 _ACEOF 6683 if { (ac_try="$ac_cpp conftest.$ac_ext" 6684 case "(($ac_try" in 6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6686 *) ac_try_echo=$ac_try;; 6687 esac 6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6690 ac_status=$? 6691 grep -v '^ *+' conftest.er1 >conftest.err 6692 rm -f conftest.er1 6693 cat conftest.err >&5 6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6695 (exit $ac_status); } >/dev/null && { 6696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6697 test ! -s conftest.err 6698 }; then 6699 ac_header_preproc=yes 6700 else 6701 echo "$as_me: failed program was:" >&5 6702 sed 's/^/| /' conftest.$ac_ext >&5 6703 6704 ac_header_preproc=no 6705 fi 6706 6707 rm -f conftest.err conftest.$ac_ext 6708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6709 echo "${ECHO_T}$ac_header_preproc" >&6; } 6710 6711 # So? What about this header? 6712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6713 yes:no: ) 6714 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5 6715 echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6716 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5 6717 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;} 6718 ac_header_preproc=yes 6719 ;; 6720 no:yes:* ) 6721 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5 6722 echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;} 6723 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5 6724 echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;} 6725 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5 6726 echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;} 6727 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5 6728 echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;} 6729 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5 6730 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;} 6731 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5 6732 echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;} 6733 6734 ;; 6735 esac 6736 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5 6737 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; } 6738 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then 6739 echo $ECHO_N "(cached) $ECHO_C" >&6 6740 else 6741 ac_cv_header_netinet_tcp_h=$ac_header_preproc 6742 fi 6743 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5 6744 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; } 6745 6746 fi 6747 if test $ac_cv_header_netinet_tcp_h = yes; then 6748 cat >>confdefs.h <<\_ACEOF 6749 #define PJ_HAS_NETINET_TCP_H 1 6750 _ACEOF 6751 6752 fi 6753 6754 6755 if test "${ac_cv_header_ifaddrs_h+set}" = set; then 6756 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 6757 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } 6758 if test "${ac_cv_header_ifaddrs_h+set}" = set; then 6759 echo $ECHO_N "(cached) $ECHO_C" >&6 6760 fi 6761 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 6762 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } 6763 else 6764 # Is the header compilable? 6765 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5 6766 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; } 6767 cat >conftest.$ac_ext <<_ACEOF 6768 /* confdefs.h. */ 6769 _ACEOF 6770 cat confdefs.h >>conftest.$ac_ext 6771 cat >>conftest.$ac_ext <<_ACEOF 6772 /* end confdefs.h. */ 6773 $ac_includes_default 6774 #include <ifaddrs.h> 6775 _ACEOF 6776 rm -f conftest.$ac_objext 6777 if { (ac_try="$ac_compile" 6778 case "(($ac_try" in 6779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6780 *) ac_try_echo=$ac_try;; 6781 esac 6782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6783 (eval "$ac_compile") 2>conftest.er1 6784 ac_status=$? 6785 grep -v '^ *+' conftest.er1 >conftest.err 6786 rm -f conftest.er1 6787 cat conftest.err >&5 6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6789 (exit $ac_status); } && { 6790 test -z "$ac_c_werror_flag" || 6791 test ! -s conftest.err 6792 } && test -s conftest.$ac_objext; then 6793 ac_header_compiler=yes 6794 else 6795 echo "$as_me: failed program was:" >&5 6796 sed 's/^/| /' conftest.$ac_ext >&5 6797 6798 ac_header_compiler=no 6799 fi 6800 6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6803 echo "${ECHO_T}$ac_header_compiler" >&6; } 6804 6805 # Is the header present? 6806 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5 6807 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; } 6808 cat >conftest.$ac_ext <<_ACEOF 6809 /* confdefs.h. */ 6810 _ACEOF 6811 cat confdefs.h >>conftest.$ac_ext 6812 cat >>conftest.$ac_ext <<_ACEOF 6813 /* end confdefs.h. */ 6814 #include <ifaddrs.h> 6815 _ACEOF 6816 if { (ac_try="$ac_cpp conftest.$ac_ext" 6817 case "(($ac_try" in 6818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6819 *) ac_try_echo=$ac_try;; 6820 esac 6821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6823 ac_status=$? 6824 grep -v '^ *+' conftest.er1 >conftest.err 6825 rm -f conftest.er1 6826 cat conftest.err >&5 6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6828 (exit $ac_status); } >/dev/null && { 6829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6830 test ! -s conftest.err 6831 }; then 6832 ac_header_preproc=yes 6833 else 6834 echo "$as_me: failed program was:" >&5 6835 sed 's/^/| /' conftest.$ac_ext >&5 6836 6837 ac_header_preproc=no 6838 fi 6839 6840 rm -f conftest.err conftest.$ac_ext 6841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6842 echo "${ECHO_T}$ac_header_preproc" >&6; } 6843 6844 # So? What about this header? 6845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6846 yes:no: ) 6847 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5 6848 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6849 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5 6850 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;} 6851 ac_header_preproc=yes 6852 ;; 6853 no:yes:* ) 6854 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5 6855 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;} 6856 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5 6857 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;} 6858 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5 6859 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;} 6860 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5 6861 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;} 6862 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5 6863 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;} 6864 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5 6865 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;} 6866 6867 ;; 6868 esac 6869 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 6870 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } 6871 if test "${ac_cv_header_ifaddrs_h+set}" = set; then 6872 echo $ECHO_N "(cached) $ECHO_C" >&6 6873 else 6874 ac_cv_header_ifaddrs_h=$ac_header_preproc 6875 fi 6876 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 6877 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } 6878 6879 fi 6880 if test $ac_cv_header_ifaddrs_h = yes; then 6881 { echo "$as_me:$LINENO: checking for getifaddrs" >&5 6882 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; } 6883 if test "${ac_cv_func_getifaddrs+set}" = set; then 6884 echo $ECHO_N "(cached) $ECHO_C" >&6 6885 else 6886 cat >conftest.$ac_ext <<_ACEOF 6887 /* confdefs.h. */ 6888 _ACEOF 6889 cat confdefs.h >>conftest.$ac_ext 6890 cat >>conftest.$ac_ext <<_ACEOF 6891 /* end confdefs.h. */ 6892 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs. 6893 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6894 #define getifaddrs innocuous_getifaddrs 6895 6896 /* System header to define __stub macros and hopefully few prototypes, 6897 which can conflict with char getifaddrs (); below. 6898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6899 <limits.h> exists even on freestanding compilers. */ 6900 6901 #ifdef __STDC__ 6902 # include <limits.h> 6903 #else 6904 # include <assert.h> 6905 #endif 6906 6907 #undef getifaddrs 6908 6909 /* Override any GCC internal prototype to avoid an error. 6910 Use char because int might match the return type of a GCC 6911 builtin and then its argument prototype would still apply. */ 6912 #ifdef __cplusplus 6913 extern "C" 6914 #endif 6915 char getifaddrs (); 6916 /* The GNU C library defines this for functions which it implements 6917 to always fail with ENOSYS. Some functions are actually named 6918 something starting with __ and the normal name is an alias. */ 6919 #if defined __stub_getifaddrs || defined __stub___getifaddrs 6920 choke me 6921 #endif 6922 6923 int 6924 main () 6925 { 6926 return getifaddrs (); 6927 ; 6928 return 0; 6929 } 6930 _ACEOF 6931 rm -f conftest.$ac_objext conftest$ac_exeext 6932 if { (ac_try="$ac_link" 6933 case "(($ac_try" in 6934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6935 *) ac_try_echo=$ac_try;; 6936 esac 6937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6938 (eval "$ac_link") 2>conftest.er1 6939 ac_status=$? 6940 grep -v '^ *+' conftest.er1 >conftest.err 6941 rm -f conftest.er1 6942 cat conftest.err >&5 6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6944 (exit $ac_status); } && { 6945 test -z "$ac_c_werror_flag" || 6946 test ! -s conftest.err 6947 } && test -s conftest$ac_exeext && 6948 $as_test_x conftest$ac_exeext; then 6949 ac_cv_func_getifaddrs=yes 6950 else 6951 echo "$as_me: failed program was:" >&5 6952 sed 's/^/| /' conftest.$ac_ext >&5 6953 6954 ac_cv_func_getifaddrs=no 6955 fi 6956 6957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6958 conftest$ac_exeext conftest.$ac_ext 6959 fi 6960 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5 6961 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; } 6962 if test $ac_cv_func_getifaddrs = yes; then 6963 cat >>confdefs.h <<\_ACEOF 6964 #define PJ_HAS_IFADDRS_H 1 6965 _ACEOF 6966 6967 fi 6968 6969 fi 6970 6971 6972 if test "${ac_cv_header_semaphore_h+set}" = set; then 6973 { echo "$as_me:$LINENO: checking for semaphore.h" >&5 6974 echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; } 6975 if test "${ac_cv_header_semaphore_h+set}" = set; then 6976 echo $ECHO_N "(cached) $ECHO_C" >&6 6977 fi 6978 { echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 6979 echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; } 6980 else 6981 # Is the header compilable? 6982 { echo "$as_me:$LINENO: checking semaphore.h usability" >&5 6983 echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6; } 6984 cat >conftest.$ac_ext <<_ACEOF 6985 /* confdefs.h. */ 6986 _ACEOF 6987 cat confdefs.h >>conftest.$ac_ext 6988 cat >>conftest.$ac_ext <<_ACEOF 6989 /* end confdefs.h. */ 6990 $ac_includes_default 6991 #include <semaphore.h> 6992 _ACEOF 6993 rm -f conftest.$ac_objext 6994 if { (ac_try="$ac_compile" 6995 case "(($ac_try" in 6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6997 *) ac_try_echo=$ac_try;; 6998 esac 6999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7000 (eval "$ac_compile") 2>conftest.er1 7001 ac_status=$? 7002 grep -v '^ *+' conftest.er1 >conftest.err 7003 rm -f conftest.er1 7004 cat conftest.err >&5 7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7006 (exit $ac_status); } && { 7007 test -z "$ac_c_werror_flag" || 7008 test ! -s conftest.err 7009 } && test -s conftest.$ac_objext; then 7010 ac_header_compiler=yes 7011 else 7012 echo "$as_me: failed program was:" >&5 7013 sed 's/^/| /' conftest.$ac_ext >&5 7014 7015 ac_header_compiler=no 7016 fi 7017 7018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7020 echo "${ECHO_T}$ac_header_compiler" >&6; } 7021 7022 # Is the header present? 7023 { echo "$as_me:$LINENO: checking semaphore.h presence" >&5 7024 echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6; } 7025 cat >conftest.$ac_ext <<_ACEOF 7026 /* confdefs.h. */ 7027 _ACEOF 7028 cat confdefs.h >>conftest.$ac_ext 7029 cat >>conftest.$ac_ext <<_ACEOF 7030 /* end confdefs.h. */ 7031 #include <semaphore.h> 7032 _ACEOF 7033 if { (ac_try="$ac_cpp conftest.$ac_ext" 7034 case "(($ac_try" in 7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7036 *) ac_try_echo=$ac_try;; 7037 esac 7038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7040 ac_status=$? 7041 grep -v '^ *+' conftest.er1 >conftest.err 7042 rm -f conftest.er1 7043 cat conftest.err >&5 7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7045 (exit $ac_status); } >/dev/null && { 7046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7047 test ! -s conftest.err 7048 }; then 7049 ac_header_preproc=yes 7050 else 7051 echo "$as_me: failed program was:" >&5 7052 sed 's/^/| /' conftest.$ac_ext >&5 7053 7054 ac_header_preproc=no 7055 fi 7056 7057 rm -f conftest.err conftest.$ac_ext 7058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7059 echo "${ECHO_T}$ac_header_preproc" >&6; } 7060 7061 # So? What about this header? 7062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7063 yes:no: ) 7064 { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5 7065 echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7066 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5 7067 echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;} 7068 ac_header_preproc=yes 7069 ;; 7070 no:yes:* ) 7071 { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5 7072 echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;} 7073 { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5 7074 echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;} 7075 { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5 7076 echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;} 7077 { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5 7078 echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;} 7079 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5 7080 echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;} 7081 { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5 7082 echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;} 7083 7084 ;; 7085 esac 7086 { echo "$as_me:$LINENO: checking for semaphore.h" >&5 7087 echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; } 7088 if test "${ac_cv_header_semaphore_h+set}" = set; then 7089 echo $ECHO_N "(cached) $ECHO_C" >&6 7090 else 7091 ac_cv_header_semaphore_h=$ac_header_preproc 7092 fi 7093 { echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 7094 echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; } 7095 7096 fi 7097 if test $ac_cv_header_semaphore_h = yes; then 7098 cat >>confdefs.h <<\_ACEOF 7099 #define PJ_HAS_SEMAPHORE_H 1 7100 _ACEOF 7101 7102 fi 7103 7104 7105 if test "${ac_cv_header_setjmp_h+set}" = set; then 7106 { echo "$as_me:$LINENO: checking for setjmp.h" >&5 7107 echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } 7108 if test "${ac_cv_header_setjmp_h+set}" = set; then 7109 echo $ECHO_N "(cached) $ECHO_C" >&6 7110 fi 7111 { echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 7112 echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } 7113 else 7114 # Is the header compilable? 7115 { echo "$as_me:$LINENO: checking setjmp.h usability" >&5 7116 echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6; } 7117 cat >conftest.$ac_ext <<_ACEOF 7118 /* confdefs.h. */ 7119 _ACEOF 7120 cat confdefs.h >>conftest.$ac_ext 7121 cat >>conftest.$ac_ext <<_ACEOF 7122 /* end confdefs.h. */ 7123 $ac_includes_default 7124 #include <setjmp.h> 7125 _ACEOF 7126 rm -f conftest.$ac_objext 7127 if { (ac_try="$ac_compile" 7128 case "(($ac_try" in 7129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7130 *) ac_try_echo=$ac_try;; 7131 esac 7132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7133 (eval "$ac_compile") 2>conftest.er1 7134 ac_status=$? 7135 grep -v '^ *+' conftest.er1 >conftest.err 7136 rm -f conftest.er1 7137 cat conftest.err >&5 7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7139 (exit $ac_status); } && { 7140 test -z "$ac_c_werror_flag" || 7141 test ! -s conftest.err 7142 } && test -s conftest.$ac_objext; then 7143 ac_header_compiler=yes 7144 else 7145 echo "$as_me: failed program was:" >&5 7146 sed 's/^/| /' conftest.$ac_ext >&5 7147 7148 ac_header_compiler=no 7149 fi 7150 7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7153 echo "${ECHO_T}$ac_header_compiler" >&6; } 7154 7155 # Is the header present? 7156 { echo "$as_me:$LINENO: checking setjmp.h presence" >&5 7157 echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6; } 7158 cat >conftest.$ac_ext <<_ACEOF 7159 /* confdefs.h. */ 7160 _ACEOF 7161 cat confdefs.h >>conftest.$ac_ext 7162 cat >>conftest.$ac_ext <<_ACEOF 7163 /* end confdefs.h. */ 7164 #include <setjmp.h> 7165 _ACEOF 7166 if { (ac_try="$ac_cpp conftest.$ac_ext" 7167 case "(($ac_try" in 7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7169 *) ac_try_echo=$ac_try;; 7170 esac 7171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7173 ac_status=$? 7174 grep -v '^ *+' conftest.er1 >conftest.err 7175 rm -f conftest.er1 7176 cat conftest.err >&5 7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7178 (exit $ac_status); } >/dev/null && { 7179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7180 test ! -s conftest.err 7181 }; then 7182 ac_header_preproc=yes 7183 else 7184 echo "$as_me: failed program was:" >&5 7185 sed 's/^/| /' conftest.$ac_ext >&5 7186 7187 ac_header_preproc=no 7188 fi 7189 7190 rm -f conftest.err conftest.$ac_ext 7191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7192 echo "${ECHO_T}$ac_header_preproc" >&6; } 7193 7194 # So? What about this header? 7195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7196 yes:no: ) 7197 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 7198 echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7199 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5 7200 echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;} 7201 ac_header_preproc=yes 7202 ;; 7203 no:yes:* ) 7204 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5 7205 echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;} 7206 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5 7207 echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;} 7208 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5 7209 echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;} 7210 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5 7211 echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;} 7212 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5 7213 echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;} 7214 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5 7215 echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;} 7216 7217 ;; 7218 esac 7219 { echo "$as_me:$LINENO: checking for setjmp.h" >&5 7220 echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } 7221 if test "${ac_cv_header_setjmp_h+set}" = set; then 7222 echo $ECHO_N "(cached) $ECHO_C" >&6 7223 else 7224 ac_cv_header_setjmp_h=$ac_header_preproc 7225 fi 7226 { echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 7227 echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } 7228 7229 fi 7230 if test $ac_cv_header_setjmp_h = yes; then 7231 cat >>confdefs.h <<\_ACEOF 7232 #define PJ_HAS_SETJMP_H 1 7233 _ACEOF 7234 7235 fi 7236 7237 7238 if test "${ac_cv_header_stdarg_h+set}" = set; then 7239 { echo "$as_me:$LINENO: checking for stdarg.h" >&5 7240 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } 7241 if test "${ac_cv_header_stdarg_h+set}" = set; then 7242 echo $ECHO_N "(cached) $ECHO_C" >&6 7243 fi 7244 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 7245 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } 7246 else 7247 # Is the header compilable? 7248 { echo "$as_me:$LINENO: checking stdarg.h usability" >&5 7249 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } 7250 cat >conftest.$ac_ext <<_ACEOF 7251 /* confdefs.h. */ 7252 _ACEOF 7253 cat confdefs.h >>conftest.$ac_ext 7254 cat >>conftest.$ac_ext <<_ACEOF 7255 /* end confdefs.h. */ 7256 $ac_includes_default 7257 #include <stdarg.h> 7258 _ACEOF 7259 rm -f conftest.$ac_objext 7260 if { (ac_try="$ac_compile" 7261 case "(($ac_try" in 7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7263 *) ac_try_echo=$ac_try;; 7264 esac 7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7266 (eval "$ac_compile") 2>conftest.er1 7267 ac_status=$? 7268 grep -v '^ *+' conftest.er1 >conftest.err 7269 rm -f conftest.er1 7270 cat conftest.err >&5 7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7272 (exit $ac_status); } && { 7273 test -z "$ac_c_werror_flag" || 7274 test ! -s conftest.err 7275 } && test -s conftest.$ac_objext; then 7276 ac_header_compiler=yes 7277 else 7278 echo "$as_me: failed program was:" >&5 7279 sed 's/^/| /' conftest.$ac_ext >&5 7280 7281 ac_header_compiler=no 7282 fi 7283 7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7286 echo "${ECHO_T}$ac_header_compiler" >&6; } 7287 7288 # Is the header present? 7289 { echo "$as_me:$LINENO: checking stdarg.h presence" >&5 7290 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } 7291 cat >conftest.$ac_ext <<_ACEOF 7292 /* confdefs.h. */ 7293 _ACEOF 7294 cat confdefs.h >>conftest.$ac_ext 7295 cat >>conftest.$ac_ext <<_ACEOF 7296 /* end confdefs.h. */ 7297 #include <stdarg.h> 7298 _ACEOF 7299 if { (ac_try="$ac_cpp conftest.$ac_ext" 7300 case "(($ac_try" in 7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7302 *) ac_try_echo=$ac_try;; 7303 esac 7304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7306 ac_status=$? 7307 grep -v '^ *+' conftest.er1 >conftest.err 7308 rm -f conftest.er1 7309 cat conftest.err >&5 7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7311 (exit $ac_status); } >/dev/null && { 7312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7313 test ! -s conftest.err 7314 }; then 7315 ac_header_preproc=yes 7316 else 7317 echo "$as_me: failed program was:" >&5 7318 sed 's/^/| /' conftest.$ac_ext >&5 7319 7320 ac_header_preproc=no 7321 fi 7322 7323 rm -f conftest.err conftest.$ac_ext 7324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7325 echo "${ECHO_T}$ac_header_preproc" >&6; } 7326 7327 # So? What about this header? 7328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7329 yes:no: ) 7330 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 7331 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7332 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 7333 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} 7334 ac_header_preproc=yes 7335 ;; 7336 no:yes:* ) 7337 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 7338 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} 7339 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 7340 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} 7341 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 7342 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} 7343 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 7344 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} 7345 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 7346 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} 7347 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 7348 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} 7349 7350 ;; 7351 esac 7352 { echo "$as_me:$LINENO: checking for stdarg.h" >&5 7353 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } 7354 if test "${ac_cv_header_stdarg_h+set}" = set; then 7355 echo $ECHO_N "(cached) $ECHO_C" >&6 7356 else 7357 ac_cv_header_stdarg_h=$ac_header_preproc 7358 fi 7359 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 7360 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } 7361 7362 fi 7363 if test $ac_cv_header_stdarg_h = yes; then 7364 cat >>confdefs.h <<\_ACEOF 7365 #define PJ_HAS_STDARG_H 1 7366 _ACEOF 7367 7368 fi 7369 7370 7371 if test "${ac_cv_header_stddef_h+set}" = set; then 7372 { echo "$as_me:$LINENO: checking for stddef.h" >&5 7373 echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } 7374 if test "${ac_cv_header_stddef_h+set}" = set; then 7375 echo $ECHO_N "(cached) $ECHO_C" >&6 7376 fi 7377 { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 7378 echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } 7379 else 7380 # Is the header compilable? 7381 { echo "$as_me:$LINENO: checking stddef.h usability" >&5 7382 echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; } 7383 cat >conftest.$ac_ext <<_ACEOF 7384 /* confdefs.h. */ 7385 _ACEOF 7386 cat confdefs.h >>conftest.$ac_ext 7387 cat >>conftest.$ac_ext <<_ACEOF 7388 /* end confdefs.h. */ 7389 $ac_includes_default 7390 #include <stddef.h> 7391 _ACEOF 7392 rm -f conftest.$ac_objext 7393 if { (ac_try="$ac_compile" 7394 case "(($ac_try" in 7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7396 *) ac_try_echo=$ac_try;; 7397 esac 7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7399 (eval "$ac_compile") 2>conftest.er1 7400 ac_status=$? 7401 grep -v '^ *+' conftest.er1 >conftest.err 7402 rm -f conftest.er1 7403 cat conftest.err >&5 7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7405 (exit $ac_status); } && { 7406 test -z "$ac_c_werror_flag" || 7407 test ! -s conftest.err 7408 } && test -s conftest.$ac_objext; then 7409 ac_header_compiler=yes 7410 else 7411 echo "$as_me: failed program was:" >&5 7412 sed 's/^/| /' conftest.$ac_ext >&5 7413 7414 ac_header_compiler=no 7415 fi 7416 7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7419 echo "${ECHO_T}$ac_header_compiler" >&6; } 7420 7421 # Is the header present? 7422 { echo "$as_me:$LINENO: checking stddef.h presence" >&5 7423 echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; } 7424 cat >conftest.$ac_ext <<_ACEOF 7425 /* confdefs.h. */ 7426 _ACEOF 7427 cat confdefs.h >>conftest.$ac_ext 7428 cat >>conftest.$ac_ext <<_ACEOF 7429 /* end confdefs.h. */ 7430 #include <stddef.h> 7431 _ACEOF 7432 if { (ac_try="$ac_cpp conftest.$ac_ext" 7433 case "(($ac_try" in 7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7435 *) ac_try_echo=$ac_try;; 7436 esac 7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7439 ac_status=$? 7440 grep -v '^ *+' conftest.er1 >conftest.err 7441 rm -f conftest.er1 7442 cat conftest.err >&5 7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7444 (exit $ac_status); } >/dev/null && { 7445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7446 test ! -s conftest.err 7447 }; then 7448 ac_header_preproc=yes 7449 else 7450 echo "$as_me: failed program was:" >&5 7451 sed 's/^/| /' conftest.$ac_ext >&5 7452 7453 ac_header_preproc=no 7454 fi 7455 7456 rm -f conftest.err conftest.$ac_ext 7457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7458 echo "${ECHO_T}$ac_header_preproc" >&6; } 7459 7460 # So? What about this header? 7461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7462 yes:no: ) 7463 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5 7464 echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7465 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5 7466 echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;} 7467 ac_header_preproc=yes 7468 ;; 7469 no:yes:* ) 7470 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5 7471 echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;} 7472 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5 7473 echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;} 7474 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 7475 echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;} 7476 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5 7477 echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;} 7478 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5 7479 echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;} 7480 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5 7481 echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;} 7482 7483 ;; 7484 esac 7485 { echo "$as_me:$LINENO: checking for stddef.h" >&5 7486 echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } 7487 if test "${ac_cv_header_stddef_h+set}" = set; then 7488 echo $ECHO_N "(cached) $ECHO_C" >&6 7489 else 7490 ac_cv_header_stddef_h=$ac_header_preproc 7491 fi 7492 { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 7493 echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } 7494 7495 fi 7496 if test $ac_cv_header_stddef_h = yes; then 7497 cat >>confdefs.h <<\_ACEOF 7498 #define PJ_HAS_STDDEF_H 1 7499 _ACEOF 7500 7501 fi 7502 7503 7504 if test "${ac_cv_header_stdio_h+set}" = set; then 7505 { echo "$as_me:$LINENO: checking for stdio.h" >&5 7506 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } 7507 if test "${ac_cv_header_stdio_h+set}" = set; then 7508 echo $ECHO_N "(cached) $ECHO_C" >&6 7509 fi 7510 { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 7511 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } 7512 else 7513 # Is the header compilable? 7514 { echo "$as_me:$LINENO: checking stdio.h usability" >&5 7515 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; } 7516 cat >conftest.$ac_ext <<_ACEOF 7517 /* confdefs.h. */ 7518 _ACEOF 7519 cat confdefs.h >>conftest.$ac_ext 7520 cat >>conftest.$ac_ext <<_ACEOF 7521 /* end confdefs.h. */ 7522 $ac_includes_default 7523 #include <stdio.h> 7524 _ACEOF 7525 rm -f conftest.$ac_objext 7526 if { (ac_try="$ac_compile" 7527 case "(($ac_try" in 7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7529 *) ac_try_echo=$ac_try;; 7530 esac 7531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7532 (eval "$ac_compile") 2>conftest.er1 7533 ac_status=$? 7534 grep -v '^ *+' conftest.er1 >conftest.err 7535 rm -f conftest.er1 7536 cat conftest.err >&5 7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7538 (exit $ac_status); } && { 7539 test -z "$ac_c_werror_flag" || 7540 test ! -s conftest.err 7541 } && test -s conftest.$ac_objext; then 7542 ac_header_compiler=yes 7543 else 7544 echo "$as_me: failed program was:" >&5 7545 sed 's/^/| /' conftest.$ac_ext >&5 7546 7547 ac_header_compiler=no 7548 fi 7549 7550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7552 echo "${ECHO_T}$ac_header_compiler" >&6; } 7553 7554 # Is the header present? 7555 { echo "$as_me:$LINENO: checking stdio.h presence" >&5 7556 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; } 7557 cat >conftest.$ac_ext <<_ACEOF 7558 /* confdefs.h. */ 7559 _ACEOF 7560 cat confdefs.h >>conftest.$ac_ext 7561 cat >>conftest.$ac_ext <<_ACEOF 7562 /* end confdefs.h. */ 7563 #include <stdio.h> 7564 _ACEOF 7565 if { (ac_try="$ac_cpp conftest.$ac_ext" 7566 case "(($ac_try" in 7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7568 *) ac_try_echo=$ac_try;; 7569 esac 7570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7572 ac_status=$? 7573 grep -v '^ *+' conftest.er1 >conftest.err 7574 rm -f conftest.er1 7575 cat conftest.err >&5 7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7577 (exit $ac_status); } >/dev/null && { 7578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7579 test ! -s conftest.err 7580 }; then 7581 ac_header_preproc=yes 7582 else 7583 echo "$as_me: failed program was:" >&5 7584 sed 's/^/| /' conftest.$ac_ext >&5 7585 7586 ac_header_preproc=no 7587 fi 7588 7589 rm -f conftest.err conftest.$ac_ext 7590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7591 echo "${ECHO_T}$ac_header_preproc" >&6; } 7592 7593 # So? What about this header? 7594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7595 yes:no: ) 7596 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5 7597 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7598 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5 7599 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;} 7600 ac_header_preproc=yes 7601 ;; 7602 no:yes:* ) 7603 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5 7604 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;} 7605 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5 7606 echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;} 7607 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5 7608 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;} 7609 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5 7610 echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;} 7611 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5 7612 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;} 7613 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5 7614 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;} 7615 7616 ;; 7617 esac 7618 { echo "$as_me:$LINENO: checking for stdio.h" >&5 7619 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } 7620 if test "${ac_cv_header_stdio_h+set}" = set; then 7621 echo $ECHO_N "(cached) $ECHO_C" >&6 7622 else 7623 ac_cv_header_stdio_h=$ac_header_preproc 7624 fi 7625 { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 7626 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } 7627 7628 fi 7629 if test $ac_cv_header_stdio_h = yes; then 7630 cat >>confdefs.h <<\_ACEOF 7631 #define PJ_HAS_STDIO_H 1 7632 _ACEOF 7633 7634 fi 7635 7636 7637 if test "${ac_cv_header_stdint_h+set}" = set; then 7638 { echo "$as_me:$LINENO: checking for stdint.h" >&5 7639 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } 7640 if test "${ac_cv_header_stdint_h+set}" = set; then 7641 echo $ECHO_N "(cached) $ECHO_C" >&6 7642 fi 7643 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 7644 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } 7645 else 7646 # Is the header compilable? 7647 { echo "$as_me:$LINENO: checking stdint.h usability" >&5 7648 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; } 7649 cat >conftest.$ac_ext <<_ACEOF 7650 /* confdefs.h. */ 7651 _ACEOF 7652 cat confdefs.h >>conftest.$ac_ext 7653 cat >>conftest.$ac_ext <<_ACEOF 7654 /* end confdefs.h. */ 7655 $ac_includes_default 7656 #include <stdint.h> 7657 _ACEOF 7658 rm -f conftest.$ac_objext 7659 if { (ac_try="$ac_compile" 7660 case "(($ac_try" in 7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7662 *) ac_try_echo=$ac_try;; 7663 esac 7664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7665 (eval "$ac_compile") 2>conftest.er1 7666 ac_status=$? 7667 grep -v '^ *+' conftest.er1 >conftest.err 7668 rm -f conftest.er1 7669 cat conftest.err >&5 7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7671 (exit $ac_status); } && { 7672 test -z "$ac_c_werror_flag" || 7673 test ! -s conftest.err 7674 } && test -s conftest.$ac_objext; then 7675 ac_header_compiler=yes 7676 else 7677 echo "$as_me: failed program was:" >&5 7678 sed 's/^/| /' conftest.$ac_ext >&5 7679 7680 ac_header_compiler=no 7681 fi 7682 7683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7685 echo "${ECHO_T}$ac_header_compiler" >&6; } 7686 7687 # Is the header present? 7688 { echo "$as_me:$LINENO: checking stdint.h presence" >&5 7689 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; } 7690 cat >conftest.$ac_ext <<_ACEOF 7691 /* confdefs.h. */ 7692 _ACEOF 7693 cat confdefs.h >>conftest.$ac_ext 7694 cat >>conftest.$ac_ext <<_ACEOF 7695 /* end confdefs.h. */ 7696 #include <stdint.h> 7697 _ACEOF 7698 if { (ac_try="$ac_cpp conftest.$ac_ext" 7699 case "(($ac_try" in 7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7701 *) ac_try_echo=$ac_try;; 7702 esac 7703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7705 ac_status=$? 7706 grep -v '^ *+' conftest.er1 >conftest.err 7707 rm -f conftest.er1 7708 cat conftest.err >&5 7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7710 (exit $ac_status); } >/dev/null && { 7711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7712 test ! -s conftest.err 7713 }; then 7714 ac_header_preproc=yes 7715 else 7716 echo "$as_me: failed program was:" >&5 7717 sed 's/^/| /' conftest.$ac_ext >&5 7718 7719 ac_header_preproc=no 7720 fi 7721 7722 rm -f conftest.err conftest.$ac_ext 7723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7724 echo "${ECHO_T}$ac_header_preproc" >&6; } 7725 7726 # So? What about this header? 7727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7728 yes:no: ) 7729 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 7730 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7731 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 7732 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} 7733 ac_header_preproc=yes 7734 ;; 7735 no:yes:* ) 7736 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 7737 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} 7738 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 7739 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} 7740 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 7741 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} 7742 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 7743 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} 7744 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 7745 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} 7746 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 7747 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} 7748 7749 ;; 7750 esac 7751 { echo "$as_me:$LINENO: checking for stdint.h" >&5 7752 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } 7753 if test "${ac_cv_header_stdint_h+set}" = set; then 7754 echo $ECHO_N "(cached) $ECHO_C" >&6 7755 else 7756 ac_cv_header_stdint_h=$ac_header_preproc 7757 fi 7758 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 7759 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } 7760 7761 fi 7762 if test $ac_cv_header_stdint_h = yes; then 7763 cat >>confdefs.h <<\_ACEOF 7764 #define PJ_HAS_STDINT_H 1 7765 _ACEOF 7766 7767 fi 7768 7769 7770 if test "${ac_cv_header_stdlib_h+set}" = set; then 7771 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 7772 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 7773 if test "${ac_cv_header_stdlib_h+set}" = set; then 7774 echo $ECHO_N "(cached) $ECHO_C" >&6 7775 fi 7776 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 7777 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 7778 else 7779 # Is the header compilable? 7780 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5 7781 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 7782 cat >conftest.$ac_ext <<_ACEOF 7783 /* confdefs.h. */ 7784 _ACEOF 7785 cat confdefs.h >>conftest.$ac_ext 7786 cat >>conftest.$ac_ext <<_ACEOF 7787 /* end confdefs.h. */ 7788 $ac_includes_default 7789 #include <stdlib.h> 7790 _ACEOF 7791 rm -f conftest.$ac_objext 7792 if { (ac_try="$ac_compile" 7793 case "(($ac_try" in 7794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7795 *) ac_try_echo=$ac_try;; 7796 esac 7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7798 (eval "$ac_compile") 2>conftest.er1 7799 ac_status=$? 7800 grep -v '^ *+' conftest.er1 >conftest.err 7801 rm -f conftest.er1 7802 cat conftest.err >&5 7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7804 (exit $ac_status); } && { 7805 test -z "$ac_c_werror_flag" || 7806 test ! -s conftest.err 7807 } && test -s conftest.$ac_objext; then 7808 ac_header_compiler=yes 7809 else 7810 echo "$as_me: failed program was:" >&5 7811 sed 's/^/| /' conftest.$ac_ext >&5 7812 7813 ac_header_compiler=no 7814 fi 7815 7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7818 echo "${ECHO_T}$ac_header_compiler" >&6; } 7819 7820 # Is the header present? 7821 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5 7822 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 7823 cat >conftest.$ac_ext <<_ACEOF 7824 /* confdefs.h. */ 7825 _ACEOF 7826 cat confdefs.h >>conftest.$ac_ext 7827 cat >>conftest.$ac_ext <<_ACEOF 7828 /* end confdefs.h. */ 7829 #include <stdlib.h> 7830 _ACEOF 7831 if { (ac_try="$ac_cpp conftest.$ac_ext" 7832 case "(($ac_try" in 7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7834 *) ac_try_echo=$ac_try;; 7835 esac 7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7838 ac_status=$? 7839 grep -v '^ *+' conftest.er1 >conftest.err 7840 rm -f conftest.er1 7841 cat conftest.err >&5 7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7843 (exit $ac_status); } >/dev/null && { 7844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7845 test ! -s conftest.err 7846 }; then 7847 ac_header_preproc=yes 7848 else 7849 echo "$as_me: failed program was:" >&5 7850 sed 's/^/| /' conftest.$ac_ext >&5 7851 7852 ac_header_preproc=no 7853 fi 7854 7855 rm -f conftest.err conftest.$ac_ext 7856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7857 echo "${ECHO_T}$ac_header_preproc" >&6; } 7858 7859 # So? What about this header? 7860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7861 yes:no: ) 7862 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 7863 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7864 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 7865 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 7866 ac_header_preproc=yes 7867 ;; 7868 no:yes:* ) 7869 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 7870 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 7871 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 7872 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 7873 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 7874 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 7875 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 7876 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 7877 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 7878 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 7879 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 7880 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 7881 7882 ;; 7883 esac 7884 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 7885 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 7886 if test "${ac_cv_header_stdlib_h+set}" = set; then 7887 echo $ECHO_N "(cached) $ECHO_C" >&6 7888 else 7889 ac_cv_header_stdlib_h=$ac_header_preproc 7890 fi 7891 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 7892 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 7893 7894 fi 7895 if test $ac_cv_header_stdlib_h = yes; then 7896 cat >>confdefs.h <<\_ACEOF 7897 #define PJ_HAS_STDLIB_H 1 7898 _ACEOF 7899 7900 fi 7901 7902 7903 if test "${ac_cv_header_string_h+set}" = set; then 7904 { echo "$as_me:$LINENO: checking for string.h" >&5 7905 echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 7906 if test "${ac_cv_header_string_h+set}" = set; then 7907 echo $ECHO_N "(cached) $ECHO_C" >&6 7908 fi 7909 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 7910 echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 7911 else 7912 # Is the header compilable? 7913 { echo "$as_me:$LINENO: checking string.h usability" >&5 7914 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 7915 cat >conftest.$ac_ext <<_ACEOF 7916 /* confdefs.h. */ 7917 _ACEOF 7918 cat confdefs.h >>conftest.$ac_ext 7919 cat >>conftest.$ac_ext <<_ACEOF 7920 /* end confdefs.h. */ 7921 $ac_includes_default 7922 #include <string.h> 7923 _ACEOF 7924 rm -f conftest.$ac_objext 7925 if { (ac_try="$ac_compile" 7926 case "(($ac_try" in 7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7928 *) ac_try_echo=$ac_try;; 7929 esac 7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7931 (eval "$ac_compile") 2>conftest.er1 7932 ac_status=$? 7933 grep -v '^ *+' conftest.er1 >conftest.err 7934 rm -f conftest.er1 7935 cat conftest.err >&5 7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7937 (exit $ac_status); } && { 7938 test -z "$ac_c_werror_flag" || 7939 test ! -s conftest.err 7940 } && test -s conftest.$ac_objext; then 7941 ac_header_compiler=yes 7942 else 7943 echo "$as_me: failed program was:" >&5 7944 sed 's/^/| /' conftest.$ac_ext >&5 7945 7946 ac_header_compiler=no 7947 fi 7948 7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7951 echo "${ECHO_T}$ac_header_compiler" >&6; } 7952 7953 # Is the header present? 7954 { echo "$as_me:$LINENO: checking string.h presence" >&5 7955 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 7956 cat >conftest.$ac_ext <<_ACEOF 7957 /* confdefs.h. */ 7958 _ACEOF 7959 cat confdefs.h >>conftest.$ac_ext 7960 cat >>conftest.$ac_ext <<_ACEOF 7961 /* end confdefs.h. */ 7962 #include <string.h> 7963 _ACEOF 7964 if { (ac_try="$ac_cpp conftest.$ac_ext" 7965 case "(($ac_try" in 7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7967 *) ac_try_echo=$ac_try;; 7968 esac 7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7971 ac_status=$? 7972 grep -v '^ *+' conftest.er1 >conftest.err 7973 rm -f conftest.er1 7974 cat conftest.err >&5 7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7976 (exit $ac_status); } >/dev/null && { 7977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7978 test ! -s conftest.err 7979 }; then 7980 ac_header_preproc=yes 7981 else 7982 echo "$as_me: failed program was:" >&5 7983 sed 's/^/| /' conftest.$ac_ext >&5 7984 7985 ac_header_preproc=no 7986 fi 7987 7988 rm -f conftest.err conftest.$ac_ext 7989 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7990 echo "${ECHO_T}$ac_header_preproc" >&6; } 7991 7992 # So? What about this header? 7993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7994 yes:no: ) 7995 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 7996 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7997 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 7998 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 7999 ac_header_preproc=yes 8000 ;; 8001 no:yes:* ) 8002 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 8003 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 8004 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 8005 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 8006 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 8007 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 8008 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 8009 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 8010 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 8011 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 8012 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 8013 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 8014 8015 ;; 8016 esac 8017 { echo "$as_me:$LINENO: checking for string.h" >&5 8018 echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 8019 if test "${ac_cv_header_string_h+set}" = set; then 8020 echo $ECHO_N "(cached) $ECHO_C" >&6 8021 else 8022 ac_cv_header_string_h=$ac_header_preproc 8023 fi 8024 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 8025 echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 8026 8027 fi 8028 if test $ac_cv_header_string_h = yes; then 8029 cat >>confdefs.h <<\_ACEOF 8030 #define PJ_HAS_STRING_H 1 8031 _ACEOF 8032 8033 fi 8034 8035 8036 if test "${ac_cv_header_sys_ioctl_h+set}" = set; then 8037 { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 8038 echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } 8039 if test "${ac_cv_header_sys_ioctl_h+set}" = set; then 8040 echo $ECHO_N "(cached) $ECHO_C" >&6 8041 fi 8042 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 8043 echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } 8044 else 8045 # Is the header compilable? 8046 { echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5 8047 echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6; } 8048 cat >conftest.$ac_ext <<_ACEOF 8049 /* confdefs.h. */ 8050 _ACEOF 8051 cat confdefs.h >>conftest.$ac_ext 8052 cat >>conftest.$ac_ext <<_ACEOF 8053 /* end confdefs.h. */ 8054 $ac_includes_default 8055 #include <sys/ioctl.h> 8056 _ACEOF 8057 rm -f conftest.$ac_objext 8058 if { (ac_try="$ac_compile" 8059 case "(($ac_try" in 8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8061 *) ac_try_echo=$ac_try;; 8062 esac 8063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8064 (eval "$ac_compile") 2>conftest.er1 8065 ac_status=$? 8066 grep -v '^ *+' conftest.er1 >conftest.err 8067 rm -f conftest.er1 8068 cat conftest.err >&5 8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8070 (exit $ac_status); } && { 8071 test -z "$ac_c_werror_flag" || 8072 test ! -s conftest.err 8073 } && test -s conftest.$ac_objext; then 8074 ac_header_compiler=yes 8075 else 8076 echo "$as_me: failed program was:" >&5 8077 sed 's/^/| /' conftest.$ac_ext >&5 8078 8079 ac_header_compiler=no 8080 fi 8081 8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8084 echo "${ECHO_T}$ac_header_compiler" >&6; } 8085 8086 # Is the header present? 8087 { echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5 8088 echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6; } 8089 cat >conftest.$ac_ext <<_ACEOF 8090 /* confdefs.h. */ 8091 _ACEOF 8092 cat confdefs.h >>conftest.$ac_ext 8093 cat >>conftest.$ac_ext <<_ACEOF 8094 /* end confdefs.h. */ 8095 #include <sys/ioctl.h> 8096 _ACEOF 8097 if { (ac_try="$ac_cpp conftest.$ac_ext" 8098 case "(($ac_try" in 8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8100 *) ac_try_echo=$ac_try;; 8101 esac 8102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8104 ac_status=$? 8105 grep -v '^ *+' conftest.er1 >conftest.err 8106 rm -f conftest.er1 8107 cat conftest.err >&5 8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8109 (exit $ac_status); } >/dev/null && { 8110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8111 test ! -s conftest.err 8112 }; then 8113 ac_header_preproc=yes 8114 else 8115 echo "$as_me: failed program was:" >&5 8116 sed 's/^/| /' conftest.$ac_ext >&5 8117 8118 ac_header_preproc=no 8119 fi 8120 8121 rm -f conftest.err conftest.$ac_ext 8122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8123 echo "${ECHO_T}$ac_header_preproc" >&6; } 8124 8125 # So? What about this header? 8126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8127 yes:no: ) 8128 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5 8129 echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8130 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5 8131 echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;} 8132 ac_header_preproc=yes 8133 ;; 8134 no:yes:* ) 8135 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5 8136 echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;} 8137 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5 8138 echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;} 8139 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5 8140 echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;} 8141 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5 8142 echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;} 8143 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5 8144 echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;} 8145 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5 8146 echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;} 8147 8148 ;; 8149 esac 8150 { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 8151 echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } 8152 if test "${ac_cv_header_sys_ioctl_h+set}" = set; then 8153 echo $ECHO_N "(cached) $ECHO_C" >&6 8154 else 8155 ac_cv_header_sys_ioctl_h=$ac_header_preproc 8156 fi 8157 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 8158 echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } 8159 8160 fi 8161 if test $ac_cv_header_sys_ioctl_h = yes; then 8162 cat >>confdefs.h <<\_ACEOF 8163 #define PJ_HAS_SYS_IOCTL_H 1 8164 _ACEOF 8165 8166 fi 8167 8168 8169 if test "${ac_cv_header_sys_select_h+set}" = set; then 8170 { echo "$as_me:$LINENO: checking for sys/select.h" >&5 8171 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } 8172 if test "${ac_cv_header_sys_select_h+set}" = set; then 8173 echo $ECHO_N "(cached) $ECHO_C" >&6 8174 fi 8175 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 8176 echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } 8177 else 8178 # Is the header compilable? 8179 { echo "$as_me:$LINENO: checking sys/select.h usability" >&5 8180 echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; } 8181 cat >conftest.$ac_ext <<_ACEOF 8182 /* confdefs.h. */ 8183 _ACEOF 8184 cat confdefs.h >>conftest.$ac_ext 8185 cat >>conftest.$ac_ext <<_ACEOF 8186 /* end confdefs.h. */ 8187 $ac_includes_default 8188 #include <sys/select.h> 8189 _ACEOF 8190 rm -f conftest.$ac_objext 8191 if { (ac_try="$ac_compile" 8192 case "(($ac_try" in 8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8194 *) ac_try_echo=$ac_try;; 8195 esac 8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8197 (eval "$ac_compile") 2>conftest.er1 8198 ac_status=$? 8199 grep -v '^ *+' conftest.er1 >conftest.err 8200 rm -f conftest.er1 8201 cat conftest.err >&5 8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8203 (exit $ac_status); } && { 8204 test -z "$ac_c_werror_flag" || 8205 test ! -s conftest.err 8206 } && test -s conftest.$ac_objext; then 8207 ac_header_compiler=yes 8208 else 8209 echo "$as_me: failed program was:" >&5 8210 sed 's/^/| /' conftest.$ac_ext >&5 8211 8212 ac_header_compiler=no 8213 fi 8214 8215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8217 echo "${ECHO_T}$ac_header_compiler" >&6; } 8218 8219 # Is the header present? 8220 { echo "$as_me:$LINENO: checking sys/select.h presence" >&5 8221 echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; } 8222 cat >conftest.$ac_ext <<_ACEOF 8223 /* confdefs.h. */ 8224 _ACEOF 8225 cat confdefs.h >>conftest.$ac_ext 8226 cat >>conftest.$ac_ext <<_ACEOF 8227 /* end confdefs.h. */ 8228 #include <sys/select.h> 8229 _ACEOF 8230 if { (ac_try="$ac_cpp conftest.$ac_ext" 8231 case "(($ac_try" in 8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8233 *) ac_try_echo=$ac_try;; 8234 esac 8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8237 ac_status=$? 8238 grep -v '^ *+' conftest.er1 >conftest.err 8239 rm -f conftest.er1 8240 cat conftest.err >&5 8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8242 (exit $ac_status); } >/dev/null && { 8243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8244 test ! -s conftest.err 8245 }; then 8246 ac_header_preproc=yes 8247 else 8248 echo "$as_me: failed program was:" >&5 8249 sed 's/^/| /' conftest.$ac_ext >&5 8250 8251 ac_header_preproc=no 8252 fi 8253 8254 rm -f conftest.err conftest.$ac_ext 8255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8256 echo "${ECHO_T}$ac_header_preproc" >&6; } 8257 8258 # So? What about this header? 8259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8260 yes:no: ) 8261 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 8262 echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8263 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 8264 echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} 8265 ac_header_preproc=yes 8266 ;; 8267 no:yes:* ) 8268 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 8269 echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} 8270 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 8271 echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} 8272 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 8273 echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} 8274 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 8275 echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} 8276 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 8277 echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} 8278 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 8279 echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} 8280 8281 ;; 8282 esac 8283 { echo "$as_me:$LINENO: checking for sys/select.h" >&5 8284 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } 8285 if test "${ac_cv_header_sys_select_h+set}" = set; then 8286 echo $ECHO_N "(cached) $ECHO_C" >&6 8287 else 8288 ac_cv_header_sys_select_h=$ac_header_preproc 8289 fi 8290 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 8291 echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } 8292 8293 fi 8294 if test $ac_cv_header_sys_select_h = yes; then 8295 cat >>confdefs.h <<\_ACEOF 8296 #define PJ_HAS_SYS_SELECT_H 1 8297 _ACEOF 8298 8299 fi 8300 8301 8302 if test "${ac_cv_header_sys_socket_h+set}" = set; then 8303 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5 8304 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } 8305 if test "${ac_cv_header_sys_socket_h+set}" = set; then 8306 echo $ECHO_N "(cached) $ECHO_C" >&6 8307 fi 8308 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 8309 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } 8310 else 8311 # Is the header compilable? 8312 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 8313 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; } 8314 cat >conftest.$ac_ext <<_ACEOF 8315 /* confdefs.h. */ 8316 _ACEOF 8317 cat confdefs.h >>conftest.$ac_ext 8318 cat >>conftest.$ac_ext <<_ACEOF 8319 /* end confdefs.h. */ 8320 $ac_includes_default 8321 #include <sys/socket.h> 8322 _ACEOF 8323 rm -f conftest.$ac_objext 8324 if { (ac_try="$ac_compile" 8325 case "(($ac_try" in 8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8327 *) ac_try_echo=$ac_try;; 8328 esac 8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8330 (eval "$ac_compile") 2>conftest.er1 8331 ac_status=$? 8332 grep -v '^ *+' conftest.er1 >conftest.err 8333 rm -f conftest.er1 8334 cat conftest.err >&5 8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8336 (exit $ac_status); } && { 8337 test -z "$ac_c_werror_flag" || 8338 test ! -s conftest.err 8339 } && test -s conftest.$ac_objext; then 8340 ac_header_compiler=yes 8341 else 8342 echo "$as_me: failed program was:" >&5 8343 sed 's/^/| /' conftest.$ac_ext >&5 8344 8345 ac_header_compiler=no 8346 fi 8347 8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8350 echo "${ECHO_T}$ac_header_compiler" >&6; } 8351 8352 # Is the header present? 8353 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 8354 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; } 8355 cat >conftest.$ac_ext <<_ACEOF 8356 /* confdefs.h. */ 8357 _ACEOF 8358 cat confdefs.h >>conftest.$ac_ext 8359 cat >>conftest.$ac_ext <<_ACEOF 8360 /* end confdefs.h. */ 8361 #include <sys/socket.h> 8362 _ACEOF 8363 if { (ac_try="$ac_cpp conftest.$ac_ext" 8364 case "(($ac_try" in 8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8366 *) ac_try_echo=$ac_try;; 8367 esac 8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8370 ac_status=$? 8371 grep -v '^ *+' conftest.er1 >conftest.err 8372 rm -f conftest.er1 8373 cat conftest.err >&5 8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8375 (exit $ac_status); } >/dev/null && { 8376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8377 test ! -s conftest.err 8378 }; then 8379 ac_header_preproc=yes 8380 else 8381 echo "$as_me: failed program was:" >&5 8382 sed 's/^/| /' conftest.$ac_ext >&5 8383 8384 ac_header_preproc=no 8385 fi 8386 8387 rm -f conftest.err conftest.$ac_ext 8388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8389 echo "${ECHO_T}$ac_header_preproc" >&6; } 8390 8391 # So? What about this header? 8392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8393 yes:no: ) 8394 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 8395 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8396 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5 8397 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;} 8398 ac_header_preproc=yes 8399 ;; 8400 no:yes:* ) 8401 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 8402 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} 8403 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 8404 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} 8405 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5 8406 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;} 8407 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5 8408 echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} 8409 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 8410 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} 8411 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5 8412 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;} 8413 8414 ;; 8415 esac 8416 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5 8417 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } 8418 if test "${ac_cv_header_sys_socket_h+set}" = set; then 8419 echo $ECHO_N "(cached) $ECHO_C" >&6 8420 else 8421 ac_cv_header_sys_socket_h=$ac_header_preproc 8422 fi 8423 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 8424 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } 8425 8426 fi 8427 if test $ac_cv_header_sys_socket_h = yes; then 8428 cat >>confdefs.h <<\_ACEOF 8429 #define PJ_HAS_SYS_SOCKET_H 1 8430 _ACEOF 8431 8432 fi 8433 8434 8435 if test "${ac_cv_header_sys_time_h+set}" = set; then 8436 { echo "$as_me:$LINENO: checking for sys/time.h" >&5 8437 echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } 8438 if test "${ac_cv_header_sys_time_h+set}" = set; then 8439 echo $ECHO_N "(cached) $ECHO_C" >&6 8440 fi 8441 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 8442 echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } 8443 else 8444 # Is the header compilable? 8445 { echo "$as_me:$LINENO: checking sys/time.h usability" >&5 8446 echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6; } 8447 cat >conftest.$ac_ext <<_ACEOF 8448 /* confdefs.h. */ 8449 _ACEOF 8450 cat confdefs.h >>conftest.$ac_ext 8451 cat >>conftest.$ac_ext <<_ACEOF 8452 /* end confdefs.h. */ 8453 $ac_includes_default 8454 #include <sys/time.h> 8455 _ACEOF 8456 rm -f conftest.$ac_objext 8457 if { (ac_try="$ac_compile" 8458 case "(($ac_try" in 8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8460 *) ac_try_echo=$ac_try;; 8461 esac 8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8463 (eval "$ac_compile") 2>conftest.er1 8464 ac_status=$? 8465 grep -v '^ *+' conftest.er1 >conftest.err 8466 rm -f conftest.er1 8467 cat conftest.err >&5 8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8469 (exit $ac_status); } && { 8470 test -z "$ac_c_werror_flag" || 8471 test ! -s conftest.err 8472 } && test -s conftest.$ac_objext; then 8473 ac_header_compiler=yes 8474 else 8475 echo "$as_me: failed program was:" >&5 8476 sed 's/^/| /' conftest.$ac_ext >&5 8477 8478 ac_header_compiler=no 8479 fi 8480 8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8483 echo "${ECHO_T}$ac_header_compiler" >&6; } 8484 8485 # Is the header present? 8486 { echo "$as_me:$LINENO: checking sys/time.h presence" >&5 8487 echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6; } 8488 cat >conftest.$ac_ext <<_ACEOF 8489 /* confdefs.h. */ 8490 _ACEOF 8491 cat confdefs.h >>conftest.$ac_ext 8492 cat >>conftest.$ac_ext <<_ACEOF 8493 /* end confdefs.h. */ 8494 #include <sys/time.h> 8495 _ACEOF 8496 if { (ac_try="$ac_cpp conftest.$ac_ext" 8497 case "(($ac_try" in 8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8499 *) ac_try_echo=$ac_try;; 8500 esac 8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8503 ac_status=$? 8504 grep -v '^ *+' conftest.er1 >conftest.err 8505 rm -f conftest.er1 8506 cat conftest.err >&5 8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8508 (exit $ac_status); } >/dev/null && { 8509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8510 test ! -s conftest.err 8511 }; then 8512 ac_header_preproc=yes 8513 else 8514 echo "$as_me: failed program was:" >&5 8515 sed 's/^/| /' conftest.$ac_ext >&5 8516 8517 ac_header_preproc=no 8518 fi 8519 8520 rm -f conftest.err conftest.$ac_ext 8521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8522 echo "${ECHO_T}$ac_header_preproc" >&6; } 8523 8524 # So? What about this header? 8525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8526 yes:no: ) 8527 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5 8528 echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8529 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5 8530 echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;} 8531 ac_header_preproc=yes 8532 ;; 8533 no:yes:* ) 8534 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5 8535 echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;} 8536 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5 8537 echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;} 8538 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5 8539 echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;} 8540 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5 8541 echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;} 8542 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5 8543 echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;} 8544 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5 8545 echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;} 8546 8547 ;; 8548 esac 8549 { echo "$as_me:$LINENO: checking for sys/time.h" >&5 8550 echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } 8551 if test "${ac_cv_header_sys_time_h+set}" = set; then 8552 echo $ECHO_N "(cached) $ECHO_C" >&6 8553 else 8554 ac_cv_header_sys_time_h=$ac_header_preproc 8555 fi 8556 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 8557 echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } 8558 8559 fi 8560 if test $ac_cv_header_sys_time_h = yes; then 8561 cat >>confdefs.h <<\_ACEOF 8562 #define PJ_HAS_SYS_TIME_H 1 8563 _ACEOF 8564 8565 fi 8566 8567 8568 if test "${ac_cv_header_sys_timeb_h+set}" = set; then 8569 { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 8570 echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } 8571 if test "${ac_cv_header_sys_timeb_h+set}" = set; then 8572 echo $ECHO_N "(cached) $ECHO_C" >&6 8573 fi 8574 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 8575 echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } 8576 else 8577 # Is the header compilable? 8578 { echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5 8579 echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6; } 8580 cat >conftest.$ac_ext <<_ACEOF 8581 /* confdefs.h. */ 8582 _ACEOF 8583 cat confdefs.h >>conftest.$ac_ext 8584 cat >>conftest.$ac_ext <<_ACEOF 8585 /* end confdefs.h. */ 8586 $ac_includes_default 8587 #include <sys/timeb.h> 8588 _ACEOF 8589 rm -f conftest.$ac_objext 8590 if { (ac_try="$ac_compile" 8591 case "(($ac_try" in 8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8593 *) ac_try_echo=$ac_try;; 8594 esac 8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8596 (eval "$ac_compile") 2>conftest.er1 8597 ac_status=$? 8598 grep -v '^ *+' conftest.er1 >conftest.err 8599 rm -f conftest.er1 8600 cat conftest.err >&5 8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8602 (exit $ac_status); } && { 8603 test -z "$ac_c_werror_flag" || 8604 test ! -s conftest.err 8605 } && test -s conftest.$ac_objext; then 8606 ac_header_compiler=yes 8607 else 8608 echo "$as_me: failed program was:" >&5 8609 sed 's/^/| /' conftest.$ac_ext >&5 8610 8611 ac_header_compiler=no 8612 fi 8613 8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8616 echo "${ECHO_T}$ac_header_compiler" >&6; } 8617 8618 # Is the header present? 8619 { echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5 8620 echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6; } 8621 cat >conftest.$ac_ext <<_ACEOF 8622 /* confdefs.h. */ 8623 _ACEOF 8624 cat confdefs.h >>conftest.$ac_ext 8625 cat >>conftest.$ac_ext <<_ACEOF 8626 /* end confdefs.h. */ 8627 #include <sys/timeb.h> 8628 _ACEOF 8629 if { (ac_try="$ac_cpp conftest.$ac_ext" 8630 case "(($ac_try" in 8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8632 *) ac_try_echo=$ac_try;; 8633 esac 8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8636 ac_status=$? 8637 grep -v '^ *+' conftest.er1 >conftest.err 8638 rm -f conftest.er1 8639 cat conftest.err >&5 8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8641 (exit $ac_status); } >/dev/null && { 8642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8643 test ! -s conftest.err 8644 }; then 8645 ac_header_preproc=yes 8646 else 8647 echo "$as_me: failed program was:" >&5 8648 sed 's/^/| /' conftest.$ac_ext >&5 8649 8650 ac_header_preproc=no 8651 fi 8652 8653 rm -f conftest.err conftest.$ac_ext 8654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8655 echo "${ECHO_T}$ac_header_preproc" >&6; } 8656 8657 # So? What about this header? 8658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8659 yes:no: ) 8660 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5 8661 echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8662 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5 8663 echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;} 8664 ac_header_preproc=yes 8665 ;; 8666 no:yes:* ) 8667 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5 8668 echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;} 8669 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5 8670 echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;} 8671 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5 8672 echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;} 8673 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5 8674 echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;} 8675 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5 8676 echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;} 8677 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5 8678 echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;} 8679 8680 ;; 8681 esac 8682 { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 8683 echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } 8684 if test "${ac_cv_header_sys_timeb_h+set}" = set; then 8685 echo $ECHO_N "(cached) $ECHO_C" >&6 8686 else 8687 ac_cv_header_sys_timeb_h=$ac_header_preproc 8688 fi 8689 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 8690 echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } 8691 8692 fi 8693 if test $ac_cv_header_sys_timeb_h = yes; then 8694 cat >>confdefs.h <<\_ACEOF 8695 #define PJ_HAS_SYS_TIMEB_H 1 8696 _ACEOF 8697 8698 fi 8699 8700 8701 if test "${ac_cv_header_sys_types_h+set}" = set; then 8702 { echo "$as_me:$LINENO: checking for sys/types.h" >&5 8703 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } 8704 if test "${ac_cv_header_sys_types_h+set}" = set; then 8705 echo $ECHO_N "(cached) $ECHO_C" >&6 8706 fi 8707 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 8708 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } 8709 else 8710 # Is the header compilable? 8711 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5 8712 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; } 8713 cat >conftest.$ac_ext <<_ACEOF 8714 /* confdefs.h. */ 8715 _ACEOF 8716 cat confdefs.h >>conftest.$ac_ext 8717 cat >>conftest.$ac_ext <<_ACEOF 8718 /* end confdefs.h. */ 8719 $ac_includes_default 8720 #include <sys/types.h> 8721 _ACEOF 8722 rm -f conftest.$ac_objext 8723 if { (ac_try="$ac_compile" 8724 case "(($ac_try" in 8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8726 *) ac_try_echo=$ac_try;; 8727 esac 8728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8729 (eval "$ac_compile") 2>conftest.er1 8730 ac_status=$? 8731 grep -v '^ *+' conftest.er1 >conftest.err 8732 rm -f conftest.er1 8733 cat conftest.err >&5 8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8735 (exit $ac_status); } && { 8736 test -z "$ac_c_werror_flag" || 8737 test ! -s conftest.err 8738 } && test -s conftest.$ac_objext; then 8739 ac_header_compiler=yes 8740 else 8741 echo "$as_me: failed program was:" >&5 8742 sed 's/^/| /' conftest.$ac_ext >&5 8743 8744 ac_header_compiler=no 8745 fi 8746 8747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8749 echo "${ECHO_T}$ac_header_compiler" >&6; } 8750 8751 # Is the header present? 8752 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5 8753 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; } 8754 cat >conftest.$ac_ext <<_ACEOF 8755 /* confdefs.h. */ 8756 _ACEOF 8757 cat confdefs.h >>conftest.$ac_ext 8758 cat >>conftest.$ac_ext <<_ACEOF 8759 /* end confdefs.h. */ 8760 #include <sys/types.h> 8761 _ACEOF 8762 if { (ac_try="$ac_cpp conftest.$ac_ext" 8763 case "(($ac_try" in 8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8765 *) ac_try_echo=$ac_try;; 8766 esac 8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8769 ac_status=$? 8770 grep -v '^ *+' conftest.er1 >conftest.err 8771 rm -f conftest.er1 8772 cat conftest.err >&5 8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8774 (exit $ac_status); } >/dev/null && { 8775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8776 test ! -s conftest.err 8777 }; then 8778 ac_header_preproc=yes 8779 else 8780 echo "$as_me: failed program was:" >&5 8781 sed 's/^/| /' conftest.$ac_ext >&5 8782 8783 ac_header_preproc=no 8784 fi 8785 8786 rm -f conftest.err conftest.$ac_ext 8787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8788 echo "${ECHO_T}$ac_header_preproc" >&6; } 8789 8790 # So? What about this header? 8791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8792 yes:no: ) 8793 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 8794 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8795 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 8796 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} 8797 ac_header_preproc=yes 8798 ;; 8799 no:yes:* ) 8800 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 8801 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} 8802 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 8803 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} 8804 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 8805 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} 8806 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 8807 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} 8808 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 8809 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} 8810 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 8811 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} 8812 8813 ;; 8814 esac 8815 { echo "$as_me:$LINENO: checking for sys/types.h" >&5 8816 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } 8817 if test "${ac_cv_header_sys_types_h+set}" = set; then 8818 echo $ECHO_N "(cached) $ECHO_C" >&6 8819 else 8820 ac_cv_header_sys_types_h=$ac_header_preproc 8821 fi 8822 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 8823 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } 8824 8825 fi 8826 if test $ac_cv_header_sys_types_h = yes; then 8827 cat >>confdefs.h <<\_ACEOF 8828 #define PJ_HAS_SYS_TYPES_H 1 8829 _ACEOF 8830 8831 fi 8832 8833 8834 if test "${ac_cv_header_sys_filio_h+set}" = set; then 8835 { echo "$as_me:$LINENO: checking for sys/filio.h" >&5 8836 echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; } 8837 if test "${ac_cv_header_sys_filio_h+set}" = set; then 8838 echo $ECHO_N "(cached) $ECHO_C" >&6 8839 fi 8840 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5 8841 echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; } 8842 else 8843 # Is the header compilable? 8844 { echo "$as_me:$LINENO: checking sys/filio.h usability" >&5 8845 echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6; } 8846 cat >conftest.$ac_ext <<_ACEOF 8847 /* confdefs.h. */ 8848 _ACEOF 8849 cat confdefs.h >>conftest.$ac_ext 8850 cat >>conftest.$ac_ext <<_ACEOF 8851 /* end confdefs.h. */ 8852 $ac_includes_default 8853 #include <sys/filio.h> 8854 _ACEOF 8855 rm -f conftest.$ac_objext 8856 if { (ac_try="$ac_compile" 8857 case "(($ac_try" in 8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8859 *) ac_try_echo=$ac_try;; 8860 esac 8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8862 (eval "$ac_compile") 2>conftest.er1 8863 ac_status=$? 8864 grep -v '^ *+' conftest.er1 >conftest.err 8865 rm -f conftest.er1 8866 cat conftest.err >&5 8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8868 (exit $ac_status); } && { 8869 test -z "$ac_c_werror_flag" || 8870 test ! -s conftest.err 8871 } && test -s conftest.$ac_objext; then 8872 ac_header_compiler=yes 8873 else 8874 echo "$as_me: failed program was:" >&5 8875 sed 's/^/| /' conftest.$ac_ext >&5 8876 8877 ac_header_compiler=no 8878 fi 8879 8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8882 echo "${ECHO_T}$ac_header_compiler" >&6; } 8883 8884 # Is the header present? 8885 { echo "$as_me:$LINENO: checking sys/filio.h presence" >&5 8886 echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6; } 8887 cat >conftest.$ac_ext <<_ACEOF 8888 /* confdefs.h. */ 8889 _ACEOF 8890 cat confdefs.h >>conftest.$ac_ext 8891 cat >>conftest.$ac_ext <<_ACEOF 8892 /* end confdefs.h. */ 8893 #include <sys/filio.h> 8894 _ACEOF 8895 if { (ac_try="$ac_cpp conftest.$ac_ext" 8896 case "(($ac_try" in 8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8898 *) ac_try_echo=$ac_try;; 8899 esac 8900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8902 ac_status=$? 8903 grep -v '^ *+' conftest.er1 >conftest.err 8904 rm -f conftest.er1 8905 cat conftest.err >&5 8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8907 (exit $ac_status); } >/dev/null && { 8908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8909 test ! -s conftest.err 8910 }; then 8911 ac_header_preproc=yes 8912 else 8913 echo "$as_me: failed program was:" >&5 8914 sed 's/^/| /' conftest.$ac_ext >&5 8915 8916 ac_header_preproc=no 8917 fi 8918 8919 rm -f conftest.err conftest.$ac_ext 8920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8921 echo "${ECHO_T}$ac_header_preproc" >&6; } 8922 8923 # So? What about this header? 8924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8925 yes:no: ) 8926 { echo "$as_me:$LINENO: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&5 8927 echo "$as_me: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8928 { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the compiler's result" >&5 8929 echo "$as_me: WARNING: sys/filio.h: proceeding with the compiler's result" >&2;} 8930 ac_header_preproc=yes 8931 ;; 8932 no:yes:* ) 8933 { echo "$as_me:$LINENO: WARNING: sys/filio.h: present but cannot be compiled" >&5 8934 echo "$as_me: WARNING: sys/filio.h: present but cannot be compiled" >&2;} 8935 { echo "$as_me:$LINENO: WARNING: sys/filio.h: check for missing prerequisite headers?" >&5 8936 echo "$as_me: WARNING: sys/filio.h: check for missing prerequisite headers?" >&2;} 8937 { echo "$as_me:$LINENO: WARNING: sys/filio.h: see the Autoconf documentation" >&5 8938 echo "$as_me: WARNING: sys/filio.h: see the Autoconf documentation" >&2;} 8939 { echo "$as_me:$LINENO: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&5 8940 echo "$as_me: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&2;} 8941 { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&5 8942 echo "$as_me: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&2;} 8943 { echo "$as_me:$LINENO: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&5 8944 echo "$as_me: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&2;} 8945 8946 ;; 8947 esac 8948 { echo "$as_me:$LINENO: checking for sys/filio.h" >&5 8949 echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; } 8950 if test "${ac_cv_header_sys_filio_h+set}" = set; then 8951 echo $ECHO_N "(cached) $ECHO_C" >&6 8952 else 8953 ac_cv_header_sys_filio_h=$ac_header_preproc 8954 fi 8955 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5 8956 echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; } 8957 8958 fi 8959 if test $ac_cv_header_sys_filio_h = yes; then 8960 cat >>confdefs.h <<\_ACEOF 8961 #define PJ_HAS_SYS_FILIO_H 1 8962 _ACEOF 8963 8964 fi 8965 8966 8967 if test "${ac_cv_header_sys_sockio_h+set}" = set; then 8968 { echo "$as_me:$LINENO: checking for sys/sockio.h" >&5 8969 echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; } 8970 if test "${ac_cv_header_sys_sockio_h+set}" = set; then 8971 echo $ECHO_N "(cached) $ECHO_C" >&6 8972 fi 8973 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5 8974 echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; } 8975 else 8976 # Is the header compilable? 8977 { echo "$as_me:$LINENO: checking sys/sockio.h usability" >&5 8978 echo $ECHO_N "checking sys/sockio.h usability... $ECHO_C" >&6; } 8979 cat >conftest.$ac_ext <<_ACEOF 8980 /* confdefs.h. */ 8981 _ACEOF 8982 cat confdefs.h >>conftest.$ac_ext 8983 cat >>conftest.$ac_ext <<_ACEOF 8984 /* end confdefs.h. */ 8985 $ac_includes_default 8986 #include <sys/sockio.h> 8987 _ACEOF 8988 rm -f conftest.$ac_objext 8989 if { (ac_try="$ac_compile" 8990 case "(($ac_try" in 8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8992 *) ac_try_echo=$ac_try;; 8993 esac 8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8995 (eval "$ac_compile") 2>conftest.er1 8996 ac_status=$? 8997 grep -v '^ *+' conftest.er1 >conftest.err 8998 rm -f conftest.er1 8999 cat conftest.err >&5 9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9001 (exit $ac_status); } && { 9002 test -z "$ac_c_werror_flag" || 9003 test ! -s conftest.err 9004 } && test -s conftest.$ac_objext; then 9005 ac_header_compiler=yes 9006 else 9007 echo "$as_me: failed program was:" >&5 9008 sed 's/^/| /' conftest.$ac_ext >&5 9009 9010 ac_header_compiler=no 9011 fi 9012 9013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9015 echo "${ECHO_T}$ac_header_compiler" >&6; } 9016 9017 # Is the header present? 9018 { echo "$as_me:$LINENO: checking sys/sockio.h presence" >&5 9019 echo $ECHO_N "checking sys/sockio.h presence... $ECHO_C" >&6; } 9020 cat >conftest.$ac_ext <<_ACEOF 9021 /* confdefs.h. */ 9022 _ACEOF 9023 cat confdefs.h >>conftest.$ac_ext 9024 cat >>conftest.$ac_ext <<_ACEOF 9025 /* end confdefs.h. */ 9026 #include <sys/sockio.h> 9027 _ACEOF 9028 if { (ac_try="$ac_cpp conftest.$ac_ext" 9029 case "(($ac_try" in 9030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9031 *) ac_try_echo=$ac_try;; 9032 esac 9033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9035 ac_status=$? 9036 grep -v '^ *+' conftest.er1 >conftest.err 9037 rm -f conftest.er1 9038 cat conftest.err >&5 9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9040 (exit $ac_status); } >/dev/null && { 9041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9042 test ! -s conftest.err 9043 }; then 9044 ac_header_preproc=yes 9045 else 9046 echo "$as_me: failed program was:" >&5 9047 sed 's/^/| /' conftest.$ac_ext >&5 9048 9049 ac_header_preproc=no 9050 fi 9051 9052 rm -f conftest.err conftest.$ac_ext 9053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9054 echo "${ECHO_T}$ac_header_preproc" >&6; } 9055 9056 # So? What about this header? 9057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9058 yes:no: ) 9059 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&5 9060 echo "$as_me: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9061 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the compiler's result" >&5 9062 echo "$as_me: WARNING: sys/sockio.h: proceeding with the compiler's result" >&2;} 9063 ac_header_preproc=yes 9064 ;; 9065 no:yes:* ) 9066 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: present but cannot be compiled" >&5 9067 echo "$as_me: WARNING: sys/sockio.h: present but cannot be compiled" >&2;} 9068 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&5 9069 echo "$as_me: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&2;} 9070 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: see the Autoconf documentation" >&5 9071 echo "$as_me: WARNING: sys/sockio.h: see the Autoconf documentation" >&2;} 9072 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&5 9073 echo "$as_me: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&2;} 9074 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&5 9075 echo "$as_me: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&2;} 9076 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&5 9077 echo "$as_me: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&2;} 9078 9079 ;; 9080 esac 9081 { echo "$as_me:$LINENO: checking for sys/sockio.h" >&5 9082 echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; } 9083 if test "${ac_cv_header_sys_sockio_h+set}" = set; then 9084 echo $ECHO_N "(cached) $ECHO_C" >&6 9085 else 9086 ac_cv_header_sys_sockio_h=$ac_header_preproc 9087 fi 9088 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5 9089 echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; } 9090 9091 fi 9092 if test $ac_cv_header_sys_sockio_h = yes; then 9093 cat >>confdefs.h <<\_ACEOF 9094 #define PJ_HAS_SYS_SOCKIO_H 1 9095 _ACEOF 9096 9097 fi 9098 9099 9100 if test "${ac_cv_header_sys_utsname_h+set}" = set; then 9101 { echo "$as_me:$LINENO: checking for sys/utsname.h" >&5 9102 echo $ECHO_N "checking for sys/utsname.h... $ECHO_C" >&6; } 9103 if test "${ac_cv_header_sys_utsname_h+set}" = set; then 9104 echo $ECHO_N "(cached) $ECHO_C" >&6 9105 fi 9106 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_utsname_h" >&5 9107 echo "${ECHO_T}$ac_cv_header_sys_utsname_h" >&6; } 9108 else 9109 # Is the header compilable? 9110 { echo "$as_me:$LINENO: checking sys/utsname.h usability" >&5 9111 echo $ECHO_N "checking sys/utsname.h usability... $ECHO_C" >&6; } 9112 cat >conftest.$ac_ext <<_ACEOF 9113 /* confdefs.h. */ 9114 _ACEOF 9115 cat confdefs.h >>conftest.$ac_ext 9116 cat >>conftest.$ac_ext <<_ACEOF 9117 /* end confdefs.h. */ 9118 $ac_includes_default 9119 #include <sys/utsname.h> 9120 _ACEOF 9121 rm -f conftest.$ac_objext 9122 if { (ac_try="$ac_compile" 9123 case "(($ac_try" in 9124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9125 *) ac_try_echo=$ac_try;; 9126 esac 9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9128 (eval "$ac_compile") 2>conftest.er1 9129 ac_status=$? 9130 grep -v '^ *+' conftest.er1 >conftest.err 9131 rm -f conftest.er1 9132 cat conftest.err >&5 9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9134 (exit $ac_status); } && { 9135 test -z "$ac_c_werror_flag" || 9136 test ! -s conftest.err 9137 } && test -s conftest.$ac_objext; then 9138 ac_header_compiler=yes 9139 else 9140 echo "$as_me: failed program was:" >&5 9141 sed 's/^/| /' conftest.$ac_ext >&5 9142 9143 ac_header_compiler=no 9144 fi 9145 9146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9148 echo "${ECHO_T}$ac_header_compiler" >&6; } 9149 9150 # Is the header present? 9151 { echo "$as_me:$LINENO: checking sys/utsname.h presence" >&5 9152 echo $ECHO_N "checking sys/utsname.h presence... $ECHO_C" >&6; } 9153 cat >conftest.$ac_ext <<_ACEOF 9154 /* confdefs.h. */ 9155 _ACEOF 9156 cat confdefs.h >>conftest.$ac_ext 9157 cat >>conftest.$ac_ext <<_ACEOF 9158 /* end confdefs.h. */ 9159 #include <sys/utsname.h> 9160 _ACEOF 9161 if { (ac_try="$ac_cpp conftest.$ac_ext" 9162 case "(($ac_try" in 9163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9164 *) ac_try_echo=$ac_try;; 9165 esac 9166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9168 ac_status=$? 9169 grep -v '^ *+' conftest.er1 >conftest.err 9170 rm -f conftest.er1 9171 cat conftest.err >&5 9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9173 (exit $ac_status); } >/dev/null && { 9174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9175 test ! -s conftest.err 9176 }; then 9177 ac_header_preproc=yes 9178 else 9179 echo "$as_me: failed program was:" >&5 9180 sed 's/^/| /' conftest.$ac_ext >&5 9181 9182 ac_header_preproc=no 9183 fi 9184 9185 rm -f conftest.err conftest.$ac_ext 9186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9187 echo "${ECHO_T}$ac_header_preproc" >&6; } 9188 9189 # So? What about this header? 9190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9191 yes:no: ) 9192 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: accepted by the compiler, rejected by the preprocessor!" >&5 9193 echo "$as_me: WARNING: sys/utsname.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9194 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: proceeding with the compiler's result" >&5 9195 echo "$as_me: WARNING: sys/utsname.h: proceeding with the compiler's result" >&2;} 9196 ac_header_preproc=yes 9197 ;; 9198 no:yes:* ) 9199 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: present but cannot be compiled" >&5 9200 echo "$as_me: WARNING: sys/utsname.h: present but cannot be compiled" >&2;} 9201 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: check for missing prerequisite headers?" >&5 9202 echo "$as_me: WARNING: sys/utsname.h: check for missing prerequisite headers?" >&2;} 9203 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: see the Autoconf documentation" >&5 9204 echo "$as_me: WARNING: sys/utsname.h: see the Autoconf documentation" >&2;} 9205 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: section \"Present But Cannot Be Compiled\"" >&5 9206 echo "$as_me: WARNING: sys/utsname.h: section \"Present But Cannot Be Compiled\"" >&2;} 9207 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: proceeding with the preprocessor's result" >&5 9208 echo "$as_me: WARNING: sys/utsname.h: proceeding with the preprocessor's result" >&2;} 9209 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: in the future, the compiler will take precedence" >&5 9210 echo "$as_me: WARNING: sys/utsname.h: in the future, the compiler will take precedence" >&2;} 9211 9212 ;; 9213 esac 9214 { echo "$as_me:$LINENO: checking for sys/utsname.h" >&5 9215 echo $ECHO_N "checking for sys/utsname.h... $ECHO_C" >&6; } 9216 if test "${ac_cv_header_sys_utsname_h+set}" = set; then 9217 echo $ECHO_N "(cached) $ECHO_C" >&6 9218 else 9219 ac_cv_header_sys_utsname_h=$ac_header_preproc 9220 fi 9221 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_utsname_h" >&5 9222 echo "${ECHO_T}$ac_cv_header_sys_utsname_h" >&6; } 9223 9224 fi 9225 if test $ac_cv_header_sys_utsname_h = yes; then 9226 cat >>confdefs.h <<\_ACEOF 9227 #define PJ_HAS_SYS_UTSNAME_H 1 9228 _ACEOF 9229 9230 fi 9231 9232 9233 if test "${ac_cv_header_time_h+set}" = set; then 9234 { echo "$as_me:$LINENO: checking for time.h" >&5 9235 echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } 9236 if test "${ac_cv_header_time_h+set}" = set; then 9237 echo $ECHO_N "(cached) $ECHO_C" >&6 9238 fi 9239 { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 9240 echo "${ECHO_T}$ac_cv_header_time_h" >&6; } 9241 else 9242 # Is the header compilable? 9243 { echo "$as_me:$LINENO: checking time.h usability" >&5 9244 echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; } 9245 cat >conftest.$ac_ext <<_ACEOF 9246 /* confdefs.h. */ 9247 _ACEOF 9248 cat confdefs.h >>conftest.$ac_ext 9249 cat >>conftest.$ac_ext <<_ACEOF 9250 /* end confdefs.h. */ 9251 $ac_includes_default 9252 #include <time.h> 9253 _ACEOF 9254 rm -f conftest.$ac_objext 9255 if { (ac_try="$ac_compile" 9256 case "(($ac_try" in 9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9258 *) ac_try_echo=$ac_try;; 9259 esac 9260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9261 (eval "$ac_compile") 2>conftest.er1 9262 ac_status=$? 9263 grep -v '^ *+' conftest.er1 >conftest.err 9264 rm -f conftest.er1 9265 cat conftest.err >&5 9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9267 (exit $ac_status); } && { 9268 test -z "$ac_c_werror_flag" || 9269 test ! -s conftest.err 9270 } && test -s conftest.$ac_objext; then 9271 ac_header_compiler=yes 9272 else 9273 echo "$as_me: failed program was:" >&5 9274 sed 's/^/| /' conftest.$ac_ext >&5 9275 9276 ac_header_compiler=no 9277 fi 9278 9279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9281 echo "${ECHO_T}$ac_header_compiler" >&6; } 9282 9283 # Is the header present? 9284 { echo "$as_me:$LINENO: checking time.h presence" >&5 9285 echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; } 9286 cat >conftest.$ac_ext <<_ACEOF 9287 /* confdefs.h. */ 9288 _ACEOF 9289 cat confdefs.h >>conftest.$ac_ext 9290 cat >>conftest.$ac_ext <<_ACEOF 9291 /* end confdefs.h. */ 9292 #include <time.h> 9293 _ACEOF 9294 if { (ac_try="$ac_cpp conftest.$ac_ext" 9295 case "(($ac_try" in 9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9297 *) ac_try_echo=$ac_try;; 9298 esac 9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9301 ac_status=$? 9302 grep -v '^ *+' conftest.er1 >conftest.err 9303 rm -f conftest.er1 9304 cat conftest.err >&5 9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9306 (exit $ac_status); } >/dev/null && { 9307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9308 test ! -s conftest.err 9309 }; then 9310 ac_header_preproc=yes 9311 else 9312 echo "$as_me: failed program was:" >&5 9313 sed 's/^/| /' conftest.$ac_ext >&5 9314 9315 ac_header_preproc=no 9316 fi 9317 9318 rm -f conftest.err conftest.$ac_ext 9319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9320 echo "${ECHO_T}$ac_header_preproc" >&6; } 9321 9322 # So? What about this header? 9323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9324 yes:no: ) 9325 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5 9326 echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9327 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5 9328 echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;} 9329 ac_header_preproc=yes 9330 ;; 9331 no:yes:* ) 9332 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5 9333 echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;} 9334 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5 9335 echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;} 9336 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5 9337 echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;} 9338 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5 9339 echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;} 9340 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5 9341 echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;} 9342 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5 9343 echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;} 9344 9345 ;; 9346 esac 9347 { echo "$as_me:$LINENO: checking for time.h" >&5 9348 echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } 9349 if test "${ac_cv_header_time_h+set}" = set; then 9350 echo $ECHO_N "(cached) $ECHO_C" >&6 9351 else 9352 ac_cv_header_time_h=$ac_header_preproc 9353 fi 9354 { echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 9355 echo "${ECHO_T}$ac_cv_header_time_h" >&6; } 9356 9357 fi 9358 if test $ac_cv_header_time_h = yes; then 9359 cat >>confdefs.h <<\_ACEOF 9360 #define PJ_HAS_TIME_H 1 9361 _ACEOF 9362 9363 fi 9364 9365 9366 if test "${ac_cv_header_unistd_h+set}" = set; then 9367 { echo "$as_me:$LINENO: checking for unistd.h" >&5 9368 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } 9369 if test "${ac_cv_header_unistd_h+set}" = set; then 9370 echo $ECHO_N "(cached) $ECHO_C" >&6 9371 fi 9372 { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 9373 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } 9374 else 9375 # Is the header compilable? 9376 { echo "$as_me:$LINENO: checking unistd.h usability" >&5 9377 echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; } 9378 cat >conftest.$ac_ext <<_ACEOF 9379 /* confdefs.h. */ 9380 _ACEOF 9381 cat confdefs.h >>conftest.$ac_ext 9382 cat >>conftest.$ac_ext <<_ACEOF 9383 /* end confdefs.h. */ 9384 $ac_includes_default 9385 #include <unistd.h> 9386 _ACEOF 9387 rm -f conftest.$ac_objext 9388 if { (ac_try="$ac_compile" 9389 case "(($ac_try" in 9390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9391 *) ac_try_echo=$ac_try;; 9392 esac 9393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9394 (eval "$ac_compile") 2>conftest.er1 9395 ac_status=$? 9396 grep -v '^ *+' conftest.er1 >conftest.err 9397 rm -f conftest.er1 9398 cat conftest.err >&5 9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9400 (exit $ac_status); } && { 9401 test -z "$ac_c_werror_flag" || 9402 test ! -s conftest.err 9403 } && test -s conftest.$ac_objext; then 9404 ac_header_compiler=yes 9405 else 9406 echo "$as_me: failed program was:" >&5 9407 sed 's/^/| /' conftest.$ac_ext >&5 9408 9409 ac_header_compiler=no 9410 fi 9411 9412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9414 echo "${ECHO_T}$ac_header_compiler" >&6; } 9415 9416 # Is the header present? 9417 { echo "$as_me:$LINENO: checking unistd.h presence" >&5 9418 echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; } 9419 cat >conftest.$ac_ext <<_ACEOF 9420 /* confdefs.h. */ 9421 _ACEOF 9422 cat confdefs.h >>conftest.$ac_ext 9423 cat >>conftest.$ac_ext <<_ACEOF 9424 /* end confdefs.h. */ 9425 #include <unistd.h> 9426 _ACEOF 9427 if { (ac_try="$ac_cpp conftest.$ac_ext" 9428 case "(($ac_try" in 9429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9430 *) ac_try_echo=$ac_try;; 9431 esac 9432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9434 ac_status=$? 9435 grep -v '^ *+' conftest.er1 >conftest.err 9436 rm -f conftest.er1 9437 cat conftest.err >&5 9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9439 (exit $ac_status); } >/dev/null && { 9440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9441 test ! -s conftest.err 9442 }; then 9443 ac_header_preproc=yes 9444 else 9445 echo "$as_me: failed program was:" >&5 9446 sed 's/^/| /' conftest.$ac_ext >&5 9447 9448 ac_header_preproc=no 9449 fi 9450 9451 rm -f conftest.err conftest.$ac_ext 9452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9453 echo "${ECHO_T}$ac_header_preproc" >&6; } 9454 9455 # So? What about this header? 9456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9457 yes:no: ) 9458 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 9459 echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9460 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 9461 echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} 9462 ac_header_preproc=yes 9463 ;; 9464 no:yes:* ) 9465 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 9466 echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} 9467 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 9468 echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} 9469 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 9470 echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} 9471 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 9472 echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} 9473 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 9474 echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} 9475 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 9476 echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} 9477 9478 ;; 9479 esac 9480 { echo "$as_me:$LINENO: checking for unistd.h" >&5 9481 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } 9482 if test "${ac_cv_header_unistd_h+set}" = set; then 9483 echo $ECHO_N "(cached) $ECHO_C" >&6 9484 else 9485 ac_cv_header_unistd_h=$ac_header_preproc 9486 fi 9487 { echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 9488 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } 9489 9490 fi 9491 if test $ac_cv_header_unistd_h = yes; then 9492 cat >>confdefs.h <<\_ACEOF 9493 #define PJ_HAS_UNISTD_H 1 9494 _ACEOF 9495 9496 fi 9497 9498 9499 if test "${ac_cv_header_winsock_h+set}" = set; then 9500 { echo "$as_me:$LINENO: checking for winsock.h" >&5 9501 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } 9502 if test "${ac_cv_header_winsock_h+set}" = set; then 9503 echo $ECHO_N "(cached) $ECHO_C" >&6 9504 fi 9505 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 9506 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } 9507 else 9508 # Is the header compilable? 9509 { echo "$as_me:$LINENO: checking winsock.h usability" >&5 9510 echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; } 9511 cat >conftest.$ac_ext <<_ACEOF 9512 /* confdefs.h. */ 9513 _ACEOF 9514 cat confdefs.h >>conftest.$ac_ext 9515 cat >>conftest.$ac_ext <<_ACEOF 9516 /* end confdefs.h. */ 9517 $ac_includes_default 9518 #include <winsock.h> 9519 _ACEOF 9520 rm -f conftest.$ac_objext 9521 if { (ac_try="$ac_compile" 9522 case "(($ac_try" in 9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9524 *) ac_try_echo=$ac_try;; 9525 esac 9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9527 (eval "$ac_compile") 2>conftest.er1 9528 ac_status=$? 9529 grep -v '^ *+' conftest.er1 >conftest.err 9530 rm -f conftest.er1 9531 cat conftest.err >&5 9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9533 (exit $ac_status); } && { 9534 test -z "$ac_c_werror_flag" || 9535 test ! -s conftest.err 9536 } && test -s conftest.$ac_objext; then 9537 ac_header_compiler=yes 9538 else 9539 echo "$as_me: failed program was:" >&5 9540 sed 's/^/| /' conftest.$ac_ext >&5 9541 9542 ac_header_compiler=no 9543 fi 9544 9545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9547 echo "${ECHO_T}$ac_header_compiler" >&6; } 9548 9549 # Is the header present? 9550 { echo "$as_me:$LINENO: checking winsock.h presence" >&5 9551 echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; } 9552 cat >conftest.$ac_ext <<_ACEOF 9553 /* confdefs.h. */ 9554 _ACEOF 9555 cat confdefs.h >>conftest.$ac_ext 9556 cat >>conftest.$ac_ext <<_ACEOF 9557 /* end confdefs.h. */ 9558 #include <winsock.h> 9559 _ACEOF 9560 if { (ac_try="$ac_cpp conftest.$ac_ext" 9561 case "(($ac_try" in 9562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9563 *) ac_try_echo=$ac_try;; 9564 esac 9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9567 ac_status=$? 9568 grep -v '^ *+' conftest.er1 >conftest.err 9569 rm -f conftest.er1 9570 cat conftest.err >&5 9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9572 (exit $ac_status); } >/dev/null && { 9573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9574 test ! -s conftest.err 9575 }; then 9576 ac_header_preproc=yes 9577 else 9578 echo "$as_me: failed program was:" >&5 9579 sed 's/^/| /' conftest.$ac_ext >&5 9580 9581 ac_header_preproc=no 9582 fi 9583 9584 rm -f conftest.err conftest.$ac_ext 9585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9586 echo "${ECHO_T}$ac_header_preproc" >&6; } 9587 9588 # So? What about this header? 9589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9590 yes:no: ) 9591 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 9592 echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9593 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5 9594 echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;} 9595 ac_header_preproc=yes 9596 ;; 9597 no:yes:* ) 9598 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5 9599 echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;} 9600 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5 9601 echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;} 9602 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5 9603 echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;} 9604 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5 9605 echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;} 9606 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5 9607 echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;} 9608 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5 9609 echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;} 9610 9611 ;; 9612 esac 9613 { echo "$as_me:$LINENO: checking for winsock.h" >&5 9614 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } 9615 if test "${ac_cv_header_winsock_h+set}" = set; then 9616 echo $ECHO_N "(cached) $ECHO_C" >&6 9617 else 9618 ac_cv_header_winsock_h=$ac_header_preproc 9619 fi 9620 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 9621 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } 9622 9623 fi 9624 if test $ac_cv_header_winsock_h = yes; then 9625 cat >>confdefs.h <<\_ACEOF 9626 #define PJ_HAS_WINSOCK_H 1 9627 _ACEOF 9628 9629 fi 9630 9631 9632 if test "${ac_cv_header_winsock2_h+set}" = set; then 9633 { echo "$as_me:$LINENO: checking for winsock2.h" >&5 9634 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } 9635 if test "${ac_cv_header_winsock2_h+set}" = set; then 9636 echo $ECHO_N "(cached) $ECHO_C" >&6 9637 fi 9638 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 9639 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } 9640 else 9641 # Is the header compilable? 9642 { echo "$as_me:$LINENO: checking winsock2.h usability" >&5 9643 echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; } 9644 cat >conftest.$ac_ext <<_ACEOF 9645 /* confdefs.h. */ 9646 _ACEOF 9647 cat confdefs.h >>conftest.$ac_ext 9648 cat >>conftest.$ac_ext <<_ACEOF 9649 /* end confdefs.h. */ 9650 $ac_includes_default 9651 #include <winsock2.h> 9652 _ACEOF 9653 rm -f conftest.$ac_objext 9654 if { (ac_try="$ac_compile" 9655 case "(($ac_try" in 9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9657 *) ac_try_echo=$ac_try;; 9658 esac 9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9660 (eval "$ac_compile") 2>conftest.er1 9661 ac_status=$? 9662 grep -v '^ *+' conftest.er1 >conftest.err 9663 rm -f conftest.er1 9664 cat conftest.err >&5 9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9666 (exit $ac_status); } && { 9667 test -z "$ac_c_werror_flag" || 9668 test ! -s conftest.err 9669 } && test -s conftest.$ac_objext; then 9670 ac_header_compiler=yes 9671 else 9672 echo "$as_me: failed program was:" >&5 9673 sed 's/^/| /' conftest.$ac_ext >&5 9674 9675 ac_header_compiler=no 9676 fi 9677 9678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9680 echo "${ECHO_T}$ac_header_compiler" >&6; } 9681 9682 # Is the header present? 9683 { echo "$as_me:$LINENO: checking winsock2.h presence" >&5 9684 echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; } 9685 cat >conftest.$ac_ext <<_ACEOF 9686 /* confdefs.h. */ 9687 _ACEOF 9688 cat confdefs.h >>conftest.$ac_ext 9689 cat >>conftest.$ac_ext <<_ACEOF 9690 /* end confdefs.h. */ 9691 #include <winsock2.h> 9692 _ACEOF 9693 if { (ac_try="$ac_cpp conftest.$ac_ext" 9694 case "(($ac_try" in 9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9696 *) ac_try_echo=$ac_try;; 9697 esac 9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9700 ac_status=$? 9701 grep -v '^ *+' conftest.er1 >conftest.err 9702 rm -f conftest.er1 9703 cat conftest.err >&5 9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9705 (exit $ac_status); } >/dev/null && { 9706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9707 test ! -s conftest.err 9708 }; then 9709 ac_header_preproc=yes 9710 else 9711 echo "$as_me: failed program was:" >&5 9712 sed 's/^/| /' conftest.$ac_ext >&5 9713 9714 ac_header_preproc=no 9715 fi 9716 9717 rm -f conftest.err conftest.$ac_ext 9718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9719 echo "${ECHO_T}$ac_header_preproc" >&6; } 9720 9721 # So? What about this header? 9722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9723 yes:no: ) 9724 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 9725 echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9726 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 9727 echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} 9728 ac_header_preproc=yes 9729 ;; 9730 no:yes:* ) 9731 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 9732 echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} 9733 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 9734 echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} 9735 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 9736 echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} 9737 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 9738 echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} 9739 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 9740 echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} 9741 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 9742 echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} 9743 9744 ;; 9745 esac 9746 { echo "$as_me:$LINENO: checking for winsock2.h" >&5 9747 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } 9748 if test "${ac_cv_header_winsock2_h+set}" = set; then 9749 echo $ECHO_N "(cached) $ECHO_C" >&6 9750 else 9751 ac_cv_header_winsock2_h=$ac_header_preproc 9752 fi 9753 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 9754 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } 9755 9756 fi 9757 if test $ac_cv_header_winsock2_h = yes; then 9758 cat >>confdefs.h <<\_ACEOF 9759 #define PJ_HAS_WINSOCK2_H 1 9760 _ACEOF 9761 9762 fi 9763 9764 9765 { echo "$as_me:$LINENO: checking for mswsock.h" >&5 9766 echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; } 9767 if test "${ac_cv_header_mswsock_h+set}" = set; then 9768 echo $ECHO_N "(cached) $ECHO_C" >&6 9769 else 9770 cat >conftest.$ac_ext <<_ACEOF 9771 /* confdefs.h. */ 9772 _ACEOF 9773 cat confdefs.h >>conftest.$ac_ext 9774 cat >>conftest.$ac_ext <<_ACEOF 9775 /* end confdefs.h. */ 9776 #if PJ_HAS_WINSOCK2_H 4964 9777 # include <winsock2.h> 4965 9778 #elif PJ_HAS_WINSOCK_H … … 4967 9780 #endif 4968 9781 4969 " 4970 if test "x$ac_cv_header_mswsock_h" = x""yes; then : 4971 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h 4972 4973 fi 4974 4975 4976 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" 4977 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then : 4978 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h 4979 4980 fi 4981 4982 4983 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" 4984 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then : 9782 9783 #include <mswsock.h> 9784 _ACEOF 9785 rm -f conftest.$ac_objext 9786 if { (ac_try="$ac_compile" 9787 case "(($ac_try" in 9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9789 *) ac_try_echo=$ac_try;; 9790 esac 9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9792 (eval "$ac_compile") 2>conftest.er1 9793 ac_status=$? 9794 grep -v '^ *+' conftest.er1 >conftest.err 9795 rm -f conftest.er1 9796 cat conftest.err >&5 9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9798 (exit $ac_status); } && { 9799 test -z "$ac_c_werror_flag" || 9800 test ! -s conftest.err 9801 } && test -s conftest.$ac_objext; then 9802 ac_cv_header_mswsock_h=yes 9803 else 9804 echo "$as_me: failed program was:" >&5 9805 sed 's/^/| /' conftest.$ac_ext >&5 9806 9807 ac_cv_header_mswsock_h=no 9808 fi 9809 9810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9811 fi 9812 { echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 9813 echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; } 9814 if test $ac_cv_header_mswsock_h = yes; then 9815 cat >>confdefs.h <<\_ACEOF 9816 #define PJ_HAS_MSWSOCK_H 1 9817 _ACEOF 9818 9819 fi 9820 9821 9822 if test "${ac_cv_header_ws2tcpip_h+set}" = set; then 9823 { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5 9824 echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; } 9825 if test "${ac_cv_header_ws2tcpip_h+set}" = set; then 9826 echo $ECHO_N "(cached) $ECHO_C" >&6 9827 fi 9828 { echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5 9829 echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; } 9830 else 9831 # Is the header compilable? 9832 { echo "$as_me:$LINENO: checking ws2tcpip.h usability" >&5 9833 echo $ECHO_N "checking ws2tcpip.h usability... $ECHO_C" >&6; } 9834 cat >conftest.$ac_ext <<_ACEOF 9835 /* confdefs.h. */ 9836 _ACEOF 9837 cat confdefs.h >>conftest.$ac_ext 9838 cat >>conftest.$ac_ext <<_ACEOF 9839 /* end confdefs.h. */ 9840 $ac_includes_default 9841 #include <ws2tcpip.h> 9842 _ACEOF 9843 rm -f conftest.$ac_objext 9844 if { (ac_try="$ac_compile" 9845 case "(($ac_try" in 9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9847 *) ac_try_echo=$ac_try;; 9848 esac 9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9850 (eval "$ac_compile") 2>conftest.er1 9851 ac_status=$? 9852 grep -v '^ *+' conftest.er1 >conftest.err 9853 rm -f conftest.er1 9854 cat conftest.err >&5 9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9856 (exit $ac_status); } && { 9857 test -z "$ac_c_werror_flag" || 9858 test ! -s conftest.err 9859 } && test -s conftest.$ac_objext; then 9860 ac_header_compiler=yes 9861 else 9862 echo "$as_me: failed program was:" >&5 9863 sed 's/^/| /' conftest.$ac_ext >&5 9864 9865 ac_header_compiler=no 9866 fi 9867 9868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9870 echo "${ECHO_T}$ac_header_compiler" >&6; } 9871 9872 # Is the header present? 9873 { echo "$as_me:$LINENO: checking ws2tcpip.h presence" >&5 9874 echo $ECHO_N "checking ws2tcpip.h presence... $ECHO_C" >&6; } 9875 cat >conftest.$ac_ext <<_ACEOF 9876 /* confdefs.h. */ 9877 _ACEOF 9878 cat confdefs.h >>conftest.$ac_ext 9879 cat >>conftest.$ac_ext <<_ACEOF 9880 /* end confdefs.h. */ 9881 #include <ws2tcpip.h> 9882 _ACEOF 9883 if { (ac_try="$ac_cpp conftest.$ac_ext" 9884 case "(($ac_try" in 9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9886 *) ac_try_echo=$ac_try;; 9887 esac 9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9890 ac_status=$? 9891 grep -v '^ *+' conftest.er1 >conftest.err 9892 rm -f conftest.er1 9893 cat conftest.err >&5 9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9895 (exit $ac_status); } >/dev/null && { 9896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9897 test ! -s conftest.err 9898 }; then 9899 ac_header_preproc=yes 9900 else 9901 echo "$as_me: failed program was:" >&5 9902 sed 's/^/| /' conftest.$ac_ext >&5 9903 9904 ac_header_preproc=no 9905 fi 9906 9907 rm -f conftest.err conftest.$ac_ext 9908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9909 echo "${ECHO_T}$ac_header_preproc" >&6; } 9910 9911 # So? What about this header? 9912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9913 yes:no: ) 9914 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&5 9915 echo "$as_me: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9916 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&5 9917 echo "$as_me: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&2;} 9918 ac_header_preproc=yes 9919 ;; 9920 no:yes:* ) 9921 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: present but cannot be compiled" >&5 9922 echo "$as_me: WARNING: ws2tcpip.h: present but cannot be compiled" >&2;} 9923 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&5 9924 echo "$as_me: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&2;} 9925 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: see the Autoconf documentation" >&5 9926 echo "$as_me: WARNING: ws2tcpip.h: see the Autoconf documentation" >&2;} 9927 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&5 9928 echo "$as_me: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&2;} 9929 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&5 9930 echo "$as_me: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&2;} 9931 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&5 9932 echo "$as_me: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&2;} 9933 9934 ;; 9935 esac 9936 { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5 9937 echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; } 9938 if test "${ac_cv_header_ws2tcpip_h+set}" = set; then 9939 echo $ECHO_N "(cached) $ECHO_C" >&6 9940 else 9941 ac_cv_header_ws2tcpip_h=$ac_header_preproc 9942 fi 9943 { echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5 9944 echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; } 9945 9946 fi 9947 if test $ac_cv_header_ws2tcpip_h = yes; then 9948 cat >>confdefs.h <<\_ACEOF 9949 #define PJ_HAS_WS2TCPIP_H 1 9950 _ACEOF 9951 9952 fi 9953 9954 9955 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then 9956 { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 9957 echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } 9958 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then 9959 echo $ECHO_N "(cached) $ECHO_C" >&6 9960 fi 9961 { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 9962 echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } 9963 else 9964 # Is the header compilable? 9965 { echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 9966 echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; } 9967 cat >conftest.$ac_ext <<_ACEOF 9968 /* confdefs.h. */ 9969 _ACEOF 9970 cat confdefs.h >>conftest.$ac_ext 9971 cat >>conftest.$ac_ext <<_ACEOF 9972 /* end confdefs.h. */ 9973 $ac_includes_default 9974 #include <uuid/uuid.h> 9975 _ACEOF 9976 rm -f conftest.$ac_objext 9977 if { (ac_try="$ac_compile" 9978 case "(($ac_try" in 9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9980 *) ac_try_echo=$ac_try;; 9981 esac 9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9983 (eval "$ac_compile") 2>conftest.er1 9984 ac_status=$? 9985 grep -v '^ *+' conftest.er1 >conftest.err 9986 rm -f conftest.er1 9987 cat conftest.err >&5 9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9989 (exit $ac_status); } && { 9990 test -z "$ac_c_werror_flag" || 9991 test ! -s conftest.err 9992 } && test -s conftest.$ac_objext; then 9993 ac_header_compiler=yes 9994 else 9995 echo "$as_me: failed program was:" >&5 9996 sed 's/^/| /' conftest.$ac_ext >&5 9997 9998 ac_header_compiler=no 9999 fi 10000 10001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10003 echo "${ECHO_T}$ac_header_compiler" >&6; } 10004 10005 # Is the header present? 10006 { echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 10007 echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; } 10008 cat >conftest.$ac_ext <<_ACEOF 10009 /* confdefs.h. */ 10010 _ACEOF 10011 cat confdefs.h >>conftest.$ac_ext 10012 cat >>conftest.$ac_ext <<_ACEOF 10013 /* end confdefs.h. */ 10014 #include <uuid/uuid.h> 10015 _ACEOF 10016 if { (ac_try="$ac_cpp conftest.$ac_ext" 10017 case "(($ac_try" in 10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10019 *) ac_try_echo=$ac_try;; 10020 esac 10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10023 ac_status=$? 10024 grep -v '^ *+' conftest.er1 >conftest.err 10025 rm -f conftest.er1 10026 cat conftest.err >&5 10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10028 (exit $ac_status); } >/dev/null && { 10029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10030 test ! -s conftest.err 10031 }; then 10032 ac_header_preproc=yes 10033 else 10034 echo "$as_me: failed program was:" >&5 10035 sed 's/^/| /' conftest.$ac_ext >&5 10036 10037 ac_header_preproc=no 10038 fi 10039 10040 rm -f conftest.err conftest.$ac_ext 10041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10042 echo "${ECHO_T}$ac_header_preproc" >&6; } 10043 10044 # So? What about this header? 10045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10046 yes:no: ) 10047 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 10048 echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10049 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5 10050 echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;} 10051 ac_header_preproc=yes 10052 ;; 10053 no:yes:* ) 10054 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5 10055 echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;} 10056 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5 10057 echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;} 10058 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5 10059 echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;} 10060 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5 10061 echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;} 10062 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5 10063 echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;} 10064 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5 10065 echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;} 10066 10067 ;; 10068 esac 10069 { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 10070 echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } 10071 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then 10072 echo $ECHO_N "(cached) $ECHO_C" >&6 10073 else 10074 ac_cv_header_uuid_uuid_h=$ac_header_preproc 10075 fi 10076 { echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 10077 echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } 10078 10079 fi 10080 if test $ac_cv_header_uuid_uuid_h = yes; then 4985 10081 ac_has_uuid_h=1 4986 10082 fi 4987 10083 4988 10084 4989 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if PJ_HAS_SYS_TYPES_H 10085 { echo "$as_me:$LINENO: checking for net/if.h" >&5 10086 echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; } 10087 if test "${ac_cv_header_net_if_h+set}" = set; then 10088 echo $ECHO_N "(cached) $ECHO_C" >&6 10089 else 10090 cat >conftest.$ac_ext <<_ACEOF 10091 /* confdefs.h. */ 10092 _ACEOF 10093 cat confdefs.h >>conftest.$ac_ext 10094 cat >>conftest.$ac_ext <<_ACEOF 10095 /* end confdefs.h. */ 10096 #if PJ_HAS_SYS_TYPES_H 4990 10097 # include <sys/types.h> 4991 10098 #endif … … 4995 10102 #endif 4996 10103 4997 " 4998 if test "x$ac_cv_header_net_if_h" = x""yes; then : 4999 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h 5000 5001 fi 5002 5003 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5 5005 $as_echo "Setting PJ_OS_NAME to $target" >&6; } 10104 10105 #include <net/if.h> 10106 _ACEOF 10107 rm -f conftest.$ac_objext 10108 if { (ac_try="$ac_compile" 10109 case "(($ac_try" in 10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10111 *) ac_try_echo=$ac_try;; 10112 esac 10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10114 (eval "$ac_compile") 2>conftest.er1 10115 ac_status=$? 10116 grep -v '^ *+' conftest.er1 >conftest.err 10117 rm -f conftest.er1 10118 cat conftest.err >&5 10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10120 (exit $ac_status); } && { 10121 test -z "$ac_c_werror_flag" || 10122 test ! -s conftest.err 10123 } && test -s conftest.$ac_objext; then 10124 ac_cv_header_net_if_h=yes 10125 else 10126 echo "$as_me: failed program was:" >&5 10127 sed 's/^/| /' conftest.$ac_ext >&5 10128 10129 ac_cv_header_net_if_h=no 10130 fi 10131 10132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10133 fi 10134 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 10135 echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; } 10136 if test $ac_cv_header_net_if_h = yes; then 10137 cat >>confdefs.h <<\_ACEOF 10138 #define PJ_HAS_NET_IF_H 1 10139 _ACEOF 10140 10141 fi 10142 10143 10144 { echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 10145 echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6; } 5006 10146 cat >>confdefs.h <<_ACEOF 5007 10147 #define PJ_OS_NAME "$target" … … 5009 10149 5010 10150 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 5012 $as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; } 5013 $as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h 5014 5015 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 5017 $as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } 5018 $as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h 5019 5020 5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5 5022 $as_echo "Setting PJ_HAS_MALLOC to 1" >&6; } 5023 $as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h 5024 5025 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 5027 $as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } 5028 $as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h 5029 5030 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 5032 $as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } 5033 $as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h 5034 5035 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5 5037 $as_echo_n "checking if inet_aton() is available... " >&6; } 5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10151 { echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 10152 echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6; } 10153 cat >>confdefs.h <<\_ACEOF 10154 #define PJ_HAS_ERRNO_VAR 1 10155 _ACEOF 10156 10157 10158 { echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 10159 echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } 10160 cat >>confdefs.h <<\_ACEOF 10161 #define PJ_HAS_HIGH_RES_TIMER 1 10162 _ACEOF 10163 10164 10165 { echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5 10166 echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6; } 10167 cat >>confdefs.h <<\_ACEOF 10168 #define PJ_HAS_MALLOC 1 10169 _ACEOF 10170 10171 10172 { echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 10173 echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } 10174 cat >>confdefs.h <<\_ACEOF 10175 #define PJ_NATIVE_STRING_IS_UNICODE 0 10176 _ACEOF 10177 10178 10179 { echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 10180 echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } 10181 cat >>confdefs.h <<\_ACEOF 10182 #define PJ_ATOMIC_VALUE_TYPE long 10183 _ACEOF 10184 10185 10186 { echo "$as_me:$LINENO: checking if inet_aton() is available" >&5 10187 echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6; } 10188 cat >conftest.$ac_ext <<_ACEOF 10189 /* confdefs.h. */ 10190 _ACEOF 10191 cat confdefs.h >>conftest.$ac_ext 10192 cat >>conftest.$ac_ext <<_ACEOF 5039 10193 /* end confdefs.h. */ 5040 10194 #include <sys/types.h> … … 5049 10203 } 5050 10204 _ACEOF 5051 if ac_fn_c_try_compile "$LINENO"; then : 5052 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h 5053 5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5055 $as_echo "yes" >&6; } 5056 else 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5058 $as_echo "no" >&6; } 5059 fi 10205 rm -f conftest.$ac_objext 10206 if { (ac_try="$ac_compile" 10207 case "(($ac_try" in 10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10209 *) ac_try_echo=$ac_try;; 10210 esac 10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10212 (eval "$ac_compile") 2>conftest.er1 10213 ac_status=$? 10214 grep -v '^ *+' conftest.er1 >conftest.err 10215 rm -f conftest.er1 10216 cat conftest.err >&5 10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10218 (exit $ac_status); } && { 10219 test -z "$ac_c_werror_flag" || 10220 test ! -s conftest.err 10221 } && test -s conftest.$ac_objext; then 10222 cat >>confdefs.h <<\_ACEOF 10223 #define PJ_SOCK_HAS_INET_ATON 1 10224 _ACEOF 10225 10226 { echo "$as_me:$LINENO: result: yes" >&5 10227 echo "${ECHO_T}yes" >&6; } 10228 else 10229 echo "$as_me: failed program was:" >&5 10230 sed 's/^/| /' conftest.$ac_ext >&5 10231 10232 { echo "$as_me:$LINENO: result: no" >&5 10233 echo "${ECHO_T}no" >&6; } 10234 fi 10235 5060 10236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5061 10237 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5 5063 $as_echo_n "checking if inet_pton() is available... " >&6; } 5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10238 { echo "$as_me:$LINENO: checking if inet_pton() is available" >&5 10239 echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6; } 10240 cat >conftest.$ac_ext <<_ACEOF 10241 /* confdefs.h. */ 10242 _ACEOF 10243 cat confdefs.h >>conftest.$ac_ext 10244 cat >>conftest.$ac_ext <<_ACEOF 5065 10245 /* end confdefs.h. */ 5066 10246 #include <sys/types.h> … … 5075 10255 } 5076 10256 _ACEOF 5077 if ac_fn_c_try_compile "$LINENO"; then : 5078 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h 5079 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5081 $as_echo "yes" >&6; } 5082 else 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5084 $as_echo "no" >&6; } 5085 fi 10257 rm -f conftest.$ac_objext 10258 if { (ac_try="$ac_compile" 10259 case "(($ac_try" in 10260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10261 *) ac_try_echo=$ac_try;; 10262 esac 10263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10264 (eval "$ac_compile") 2>conftest.er1 10265 ac_status=$? 10266 grep -v '^ *+' conftest.er1 >conftest.err 10267 rm -f conftest.er1 10268 cat conftest.err >&5 10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10270 (exit $ac_status); } && { 10271 test -z "$ac_c_werror_flag" || 10272 test ! -s conftest.err 10273 } && test -s conftest.$ac_objext; then 10274 cat >>confdefs.h <<\_ACEOF 10275 #define PJ_SOCK_HAS_INET_PTON 1 10276 _ACEOF 10277 10278 { echo "$as_me:$LINENO: result: yes" >&5 10279 echo "${ECHO_T}yes" >&6; } 10280 else 10281 echo "$as_me: failed program was:" >&5 10282 sed 's/^/| /' conftest.$ac_ext >&5 10283 10284 { echo "$as_me:$LINENO: result: no" >&5 10285 echo "${ECHO_T}no" >&6; } 10286 fi 10287 5086 10288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5087 10289 5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5 5089 $as_echo_n "checking if inet_ntop() is available... " >&6; } 5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10290 { echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5 10291 echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6; } 10292 cat >conftest.$ac_ext <<_ACEOF 10293 /* confdefs.h. */ 10294 _ACEOF 10295 cat confdefs.h >>conftest.$ac_ext 10296 cat >>conftest.$ac_ext <<_ACEOF 5091 10297 /* end confdefs.h. */ 5092 10298 #include <sys/types.h> … … 5101 10307 } 5102 10308 _ACEOF 5103 if ac_fn_c_try_compile "$LINENO"; then : 5104 $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h 5105 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5107 $as_echo "yes" >&6; } 5108 else 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5110 $as_echo "no" >&6; } 5111 fi 10309 rm -f conftest.$ac_objext 10310 if { (ac_try="$ac_compile" 10311 case "(($ac_try" in 10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10313 *) ac_try_echo=$ac_try;; 10314 esac 10315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10316 (eval "$ac_compile") 2>conftest.er1 10317 ac_status=$? 10318 grep -v '^ *+' conftest.er1 >conftest.err 10319 rm -f conftest.er1 10320 cat conftest.err >&5 10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10322 (exit $ac_status); } && { 10323 test -z "$ac_c_werror_flag" || 10324 test ! -s conftest.err 10325 } && test -s conftest.$ac_objext; then 10326 cat >>confdefs.h <<\_ACEOF 10327 #define PJ_SOCK_HAS_INET_NTOP 1 10328 _ACEOF 10329 10330 { echo "$as_me:$LINENO: result: yes" >&5 10331 echo "${ECHO_T}yes" >&6; } 10332 else 10333 echo "$as_me: failed program was:" >&5 10334 sed 's/^/| /' conftest.$ac_ext >&5 10335 10336 { echo "$as_me:$LINENO: result: no" >&5 10337 echo "${ECHO_T}no" >&6; } 10338 fi 10339 5112 10340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5113 10341 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5 5115 $as_echo_n "checking if getaddrinfo() is available... " >&6; } 5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10342 { echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5 10343 echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6; } 10344 cat >conftest.$ac_ext <<_ACEOF 10345 /* confdefs.h. */ 10346 _ACEOF 10347 cat confdefs.h >>conftest.$ac_ext 10348 cat >>conftest.$ac_ext <<_ACEOF 5117 10349 /* end confdefs.h. */ 5118 10350 #include <sys/types.h> … … 5127 10359 } 5128 10360 _ACEOF 5129 if ac_fn_c_try_compile "$LINENO"; then : 5130 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h 5131 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5133 $as_echo "yes" >&6; } 5134 else 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5136 $as_echo "no" >&6; } 5137 fi 10361 rm -f conftest.$ac_objext 10362 if { (ac_try="$ac_compile" 10363 case "(($ac_try" in 10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10365 *) ac_try_echo=$ac_try;; 10366 esac 10367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10368 (eval "$ac_compile") 2>conftest.er1 10369 ac_status=$? 10370 grep -v '^ *+' conftest.er1 >conftest.err 10371 rm -f conftest.er1 10372 cat conftest.err >&5 10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10374 (exit $ac_status); } && { 10375 test -z "$ac_c_werror_flag" || 10376 test ! -s conftest.err 10377 } && test -s conftest.$ac_objext; then 10378 cat >>confdefs.h <<\_ACEOF 10379 #define PJ_SOCK_HAS_GETADDRINFO 1 10380 _ACEOF 10381 10382 { echo "$as_me:$LINENO: result: yes" >&5 10383 echo "${ECHO_T}yes" >&6; } 10384 else 10385 echo "$as_me: failed program was:" >&5 10386 sed 's/^/| /' conftest.$ac_ext >&5 10387 10388 { echo "$as_me:$LINENO: result: no" >&5 10389 echo "${ECHO_T}no" >&6; } 10390 fi 10391 5138 10392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5139 10393 5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5 5141 $as_echo_n "checking if sockaddr_in has sin_len member... " >&6; } 5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10394 { echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5 10395 echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6; } 10396 cat >conftest.$ac_ext <<_ACEOF 10397 /* confdefs.h. */ 10398 _ACEOF 10399 cat confdefs.h >>conftest.$ac_ext 10400 cat >>conftest.$ac_ext <<_ACEOF 5143 10401 /* end confdefs.h. */ 5144 10402 #include <sys/types.h> … … 5154 10412 } 5155 10413 _ACEOF 5156 if ac_fn_c_try_compile "$LINENO"; then : 5157 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h 5158 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5160 $as_echo "yes" >&6; } 5161 else 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5163 $as_echo "no" >&6; } 5164 fi 10414 rm -f conftest.$ac_objext 10415 if { (ac_try="$ac_compile" 10416 case "(($ac_try" in 10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10418 *) ac_try_echo=$ac_try;; 10419 esac 10420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10421 (eval "$ac_compile") 2>conftest.er1 10422 ac_status=$? 10423 grep -v '^ *+' conftest.er1 >conftest.err 10424 rm -f conftest.er1 10425 cat conftest.err >&5 10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10427 (exit $ac_status); } && { 10428 test -z "$ac_c_werror_flag" || 10429 test ! -s conftest.err 10430 } && test -s conftest.$ac_objext; then 10431 cat >>confdefs.h <<\_ACEOF 10432 #define PJ_SOCKADDR_HAS_LEN 1 10433 _ACEOF 10434 10435 { echo "$as_me:$LINENO: result: yes" >&5 10436 echo "${ECHO_T}yes" >&6; } 10437 else 10438 echo "$as_me: failed program was:" >&5 10439 sed 's/^/| /' conftest.$ac_ext >&5 10440 10441 { echo "$as_me:$LINENO: result: no" >&5 10442 echo "${ECHO_T}no" >&6; } 10443 fi 10444 5165 10445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5166 10446 5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5 5168 $as_echo_n "checking if socklen_t is available... " >&6; } 5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10447 { echo "$as_me:$LINENO: checking if socklen_t is available" >&5 10448 echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6; } 10449 cat >conftest.$ac_ext <<_ACEOF 10450 /* confdefs.h. */ 10451 _ACEOF 10452 cat confdefs.h >>conftest.$ac_ext 10453 cat >>conftest.$ac_ext <<_ACEOF 5170 10454 /* end confdefs.h. */ 5171 10455 #include <sys/types.h> … … 5179 10463 } 5180 10464 _ACEOF 5181 if ac_fn_c_try_compile "$LINENO"; then : 5182 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h 5183 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5185 $as_echo "yes" >&6; } 5186 else 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5188 $as_echo "no" >&6; } 5189 fi 10465 rm -f conftest.$ac_objext 10466 if { (ac_try="$ac_compile" 10467 case "(($ac_try" in 10468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10469 *) ac_try_echo=$ac_try;; 10470 esac 10471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10472 (eval "$ac_compile") 2>conftest.er1 10473 ac_status=$? 10474 grep -v '^ *+' conftest.er1 >conftest.err 10475 rm -f conftest.er1 10476 cat conftest.err >&5 10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10478 (exit $ac_status); } && { 10479 test -z "$ac_c_werror_flag" || 10480 test ! -s conftest.err 10481 } && test -s conftest.$ac_objext; then 10482 cat >>confdefs.h <<\_ACEOF 10483 #define PJ_HAS_SOCKLEN_T 1 10484 _ACEOF 10485 10486 { echo "$as_me:$LINENO: result: yes" >&5 10487 echo "${ECHO_T}yes" >&6; } 10488 else 10489 echo "$as_me: failed program was:" >&5 10490 sed 's/^/| /' conftest.$ac_ext >&5 10491 10492 { echo "$as_me:$LINENO: result: no" >&5 10493 echo "${ECHO_T}no" >&6; } 10494 fi 10495 5190 10496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5191 10497 5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&55193 $as_echo_n "checking if SO_ERROR is available..." >&6; }10498 { echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5 10499 echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6; } 5194 10500 case $target in 5195 10501 *mingw* | *cygw* | *win32* | *w32* ) 5196 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h 5197 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5199 $as_echo "yes" >&6; } 10502 cat >>confdefs.h <<\_ACEOF 10503 #define PJ_HAS_SO_ERROR 1 10504 _ACEOF 10505 10506 { echo "$as_me:$LINENO: result: yes" >&5 10507 echo "${ECHO_T}yes" >&6; } 5200 10508 ;; 5201 10509 *) 5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10510 cat >conftest.$ac_ext <<_ACEOF 10511 /* confdefs.h. */ 10512 _ACEOF 10513 cat confdefs.h >>conftest.$ac_ext 10514 cat >>conftest.$ac_ext <<_ACEOF 5203 10515 /* end confdefs.h. */ 5204 10516 #include <sys/types.h> … … 5214 10526 } 5215 10527 _ACEOF 5216 if ac_fn_c_try_compile "$LINENO"; then : 5217 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h 5218 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5220 $as_echo "yes" >&6; } 5221 else 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5223 $as_echo "no" >&6; } 5224 fi 10528 rm -f conftest.$ac_objext 10529 if { (ac_try="$ac_compile" 10530 case "(($ac_try" in 10531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10532 *) ac_try_echo=$ac_try;; 10533 esac 10534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10535 (eval "$ac_compile") 2>conftest.er1 10536 ac_status=$? 10537 grep -v '^ *+' conftest.er1 >conftest.err 10538 rm -f conftest.er1 10539 cat conftest.err >&5 10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10541 (exit $ac_status); } && { 10542 test -z "$ac_c_werror_flag" || 10543 test ! -s conftest.err 10544 } && test -s conftest.$ac_objext; then 10545 cat >>confdefs.h <<\_ACEOF 10546 #define PJ_HAS_SO_ERROR 1 10547 _ACEOF 10548 10549 { echo "$as_me:$LINENO: result: yes" >&5 10550 echo "${ECHO_T}yes" >&6; } 10551 else 10552 echo "$as_me: failed program was:" >&5 10553 sed 's/^/| /' conftest.$ac_ext >&5 10554 10555 { echo "$as_me:$LINENO: result: no" >&5 10556 echo "${ECHO_T}no" >&6; } 10557 fi 10558 5225 10559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5226 10560 ;; … … 5228 10562 5229 10563 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5 5231 $as_echo_n "checking if pthread_rwlock_t is available... " >&6; } 5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10564 { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5 10565 echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6; } 10566 cat >conftest.$ac_ext <<_ACEOF 10567 /* confdefs.h. */ 10568 _ACEOF 10569 cat confdefs.h >>conftest.$ac_ext 10570 cat >>conftest.$ac_ext <<_ACEOF 5233 10571 /* end confdefs.h. */ 5234 10572 #include <pthread.h> … … 5241 10579 } 5242 10580 _ACEOF 5243 if ac_fn_c_try_compile "$LINENO"; then : 5244 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h 10581 rm -f conftest.$ac_objext 10582 if { (ac_try="$ac_compile" 10583 case "(($ac_try" in 10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10585 *) ac_try_echo=$ac_try;; 10586 esac 10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10588 (eval "$ac_compile") 2>conftest.er1 10589 ac_status=$? 10590 grep -v '^ *+' conftest.er1 >conftest.err 10591 rm -f conftest.er1 10592 cat conftest.err >&5 10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10594 (exit $ac_status); } && { 10595 test -z "$ac_c_werror_flag" || 10596 test ! -s conftest.err 10597 } && test -s conftest.$ac_objext; then 10598 cat >>confdefs.h <<\_ACEOF 10599 #define PJ_EMULATE_RWMUTEX 0 10600 _ACEOF 5245 10601 5246 10602 ac_rwmutex="yes" 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5248 $as_echo "yes" >&6; } 5249 else 5250 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h 10603 { echo "$as_me:$LINENO: result: yes" >&5 10604 echo "${ECHO_T}yes" >&6; } 10605 else 10606 echo "$as_me: failed program was:" >&5 10607 sed 's/^/| /' conftest.$ac_ext >&5 10608 10609 cat >>confdefs.h <<\_ACEOF 10610 #define PJ_EMULATE_RWMUTEX 1 10611 _ACEOF 5251 10612 5252 10613 ac_rwmutex="no" 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5254 $as_echo "no" >&6; } 5255 fi 10614 { echo "$as_me:$LINENO: result: no" >&5 10615 echo "${ECHO_T}no" >&6; } 10616 fi 10617 5256 10618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5257 10619 5258 10620 if test "$ac_rwmutex" = "no"; then 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 5260 $as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; } 5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10621 { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 10622 echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6; } 10623 cat >conftest.$ac_ext <<_ACEOF 10624 /* confdefs.h. */ 10625 _ACEOF 10626 cat confdefs.h >>conftest.$ac_ext 10627 cat >>conftest.$ac_ext <<_ACEOF 5262 10628 /* end confdefs.h. */ 5263 10629 #define _POSIX_READER_WRITER_LOCKS … … 5271 10637 } 5272 10638 _ACEOF 5273 if ac_fn_c_try_compile "$LINENO"; then : 5274 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h 10639 rm -f conftest.$ac_objext 10640 if { (ac_try="$ac_compile" 10641 case "(($ac_try" in 10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10643 *) ac_try_echo=$ac_try;; 10644 esac 10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10646 (eval "$ac_compile") 2>conftest.er1 10647 ac_status=$? 10648 grep -v '^ *+' conftest.er1 >conftest.err 10649 rm -f conftest.er1 10650 cat conftest.err >&5 10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10652 (exit $ac_status); } && { 10653 test -z "$ac_c_werror_flag" || 10654 test ! -s conftest.err 10655 } && test -s conftest.$ac_objext; then 10656 cat >>confdefs.h <<\_ACEOF 10657 #define PJ_EMULATE_RWMUTEX 0 10658 _ACEOF 5275 10659 5276 10660 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5278 $as_echo "yes" >&6; } 5279 else 5280 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h 5281 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5283 $as_echo "no" >&6; } 5284 fi 10661 { echo "$as_me:$LINENO: result: yes" >&5 10662 echo "${ECHO_T}yes" >&6; } 10663 else 10664 echo "$as_me: failed program was:" >&5 10665 sed 's/^/| /' conftest.$ac_ext >&5 10666 10667 cat >>confdefs.h <<\_ACEOF 10668 #define PJ_EMULATE_RWMUTEX 1 10669 _ACEOF 10670 10671 { echo "$as_me:$LINENO: result: no" >&5 10672 echo "${ECHO_T}no" >&6; } 10673 fi 10674 5285 10675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5286 10676 fi 5287 10677 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5 5289 $as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; } 5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10678 { echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5 10679 echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6; } 10680 cat >conftest.$ac_ext <<_ACEOF 10681 /* confdefs.h. */ 10682 _ACEOF 10683 cat confdefs.h >>conftest.$ac_ext 10684 cat >>conftest.$ac_ext <<_ACEOF 5291 10685 /* end confdefs.h. */ 5292 10686 #include <pthread.h> … … 5299 10693 } 5300 10694 _ACEOF 5301 if ac_fn_c_try_compile "$LINENO"; then : 5302 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h 5303 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5305 $as_echo "yes" >&6; } 5306 else 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5308 $as_echo "no" >&6; } 5309 fi 10695 rm -f conftest.$ac_objext 10696 if { (ac_try="$ac_compile" 10697 case "(($ac_try" in 10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10699 *) ac_try_echo=$ac_try;; 10700 esac 10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10702 (eval "$ac_compile") 2>conftest.er1 10703 ac_status=$? 10704 grep -v '^ *+' conftest.er1 >conftest.err 10705 rm -f conftest.er1 10706 cat conftest.err >&5 10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10708 (exit $ac_status); } && { 10709 test -z "$ac_c_werror_flag" || 10710 test ! -s conftest.err 10711 } && test -s conftest.$ac_objext; then 10712 cat >>confdefs.h <<\_ACEOF 10713 #define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1 10714 _ACEOF 10715 10716 { echo "$as_me:$LINENO: result: yes" >&5 10717 echo "${ECHO_T}yes" >&6; } 10718 else 10719 echo "$as_me: failed program was:" >&5 10720 sed 's/^/| /' conftest.$ac_ext >&5 10721 10722 { echo "$as_me:$LINENO: result: no" >&5 10723 echo "${ECHO_T}no" >&6; } 10724 fi 10725 5310 10726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5311 10727 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5 5313 $as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; } 5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10728 { echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5 10729 echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6; } 10730 cat >conftest.$ac_ext <<_ACEOF 10731 /* confdefs.h. */ 10732 _ACEOF 10733 cat confdefs.h >>conftest.$ac_ext 10734 cat >>conftest.$ac_ext <<_ACEOF 5315 10735 /* end confdefs.h. */ 5316 10736 #include <pthread.h> … … 5324 10744 } 5325 10745 _ACEOF 5326 if ac_fn_c_try_compile "$LINENO"; then : 5327 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h 5328 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5330 $as_echo "yes" >&6; } 5331 else 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5333 $as_echo "no" >&6; } 5334 fi 10746 rm -f conftest.$ac_objext 10747 if { (ac_try="$ac_compile" 10748 case "(($ac_try" in 10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10750 *) ac_try_echo=$ac_try;; 10751 esac 10752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10753 (eval "$ac_compile") 2>conftest.er1 10754 ac_status=$? 10755 grep -v '^ *+' conftest.er1 >conftest.err 10756 rm -f conftest.er1 10757 cat conftest.err >&5 10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10759 (exit $ac_status); } && { 10760 test -z "$ac_c_werror_flag" || 10761 test ! -s conftest.err 10762 } && test -s conftest.$ac_objext; then 10763 cat >>confdefs.h <<\_ACEOF 10764 #define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1 10765 _ACEOF 10766 10767 { echo "$as_me:$LINENO: result: yes" >&5 10768 echo "${ECHO_T}yes" >&6; } 10769 else 10770 echo "$as_me: failed program was:" >&5 10771 sed 's/^/| /' conftest.$ac_ext >&5 10772 10773 { echo "$as_me:$LINENO: result: no" >&5 10774 echo "${ECHO_T}no" >&6; } 10775 fi 10776 5335 10777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5336 10778 5337 10779 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&55339 $as_echo_n "checking ioqueue backend..." >&6; }10780 { echo "$as_me:$LINENO: checking ioqueue backend" >&5 10781 echo $ECHO_N "checking ioqueue backend... $ECHO_C" >&6; } 5340 10782 # Check whether --enable-epoll was given. 5341 if test "${enable_epoll+set}" = set; then :10783 if test "${enable_epoll+set}" = set; then 5342 10784 enableval=$enable_epoll; 5343 10785 ac_os_objs=ioqueue_epoll.o 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&55345 $as_echo "/dev/epoll" >&6; }10786 { echo "$as_me:$LINENO: result: /dev/epoll" >&5 10787 echo "${ECHO_T}/dev/epoll" >&6; } 5346 10788 5347 10789 else 5348 10790 5349 10791 ac_os_objs=ioqueue_select.o 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&55351 $as_echo "select()" >&6; }10792 { echo "$as_me:$LINENO: result: select()" >&5 10793 echo "${ECHO_T}select()" >&6; } 5352 10794 5353 10795 fi … … 5386 10828 5387 10829 # Check whether --with-external-speex was given. 5388 if test "${with_external_speex+set}" = set; then :10830 if test "${with_external_speex+set}" = set; then 5389 10831 withval=$with_external_speex; 5390 10832 if test "x$with_external_speex" != "xno"; then 5391 10833 # Test Speex installation 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5 5393 $as_echo_n "checking if external Speex devkit is installed... " >&6; } 5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10834 { echo "$as_me:$LINENO: checking if external Speex devkit is installed" >&5 10835 echo $ECHO_N "checking if external Speex devkit is installed... $ECHO_C" >&6; } 10836 cat >conftest.$ac_ext <<_ACEOF 10837 /* confdefs.h. */ 10838 _ACEOF 10839 cat confdefs.h >>conftest.$ac_ext 10840 cat >>conftest.$ac_ext <<_ACEOF 5395 10841 /* end confdefs.h. */ 5396 10842 #include <speex/speex.h> … … 5405 10851 } 5406 10852 _ACEOF 5407 if ac_fn_c_try_compile "$LINENO"; then : 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 5409 $as_echo "yes!!" >&6; } 5410 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h 10853 rm -f conftest.$ac_objext 10854 if { (ac_try="$ac_compile" 10855 case "(($ac_try" in 10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10857 *) ac_try_echo=$ac_try;; 10858 esac 10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10860 (eval "$ac_compile") 2>conftest.er1 10861 ac_status=$? 10862 grep -v '^ *+' conftest.er1 >conftest.err 10863 rm -f conftest.er1 10864 cat conftest.err >&5 10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10866 (exit $ac_status); } && { 10867 test -z "$ac_c_werror_flag" || 10868 test ! -s conftest.err 10869 } && test -s conftest.$ac_objext; then 10870 { echo "$as_me:$LINENO: result: yes!!" >&5 10871 echo "${ECHO_T}yes!!" >&6; } 10872 cat >>confdefs.h <<\_ACEOF 10873 #define PJMEDIA_EXTERNAL_SPEEX_CODEC 1 10874 _ACEOF 5411 10875 5412 10876 ac_external_speex="1" 5413 10877 5414 10878 else 5415 as_fn_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" "$LINENO" 5 5416 fi 10879 echo "$as_me: failed program was:" >&5 10880 sed 's/^/| /' conftest.$ac_ext >&5 10881 10882 { { 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 10883 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;} 10884 { (exit 1); exit 1; }; } 10885 fi 10886 5417 10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5418 10888 fi … … 5426 10896 5427 10897 # Check whether --with-external-gsm was given. 5428 if test "${with_external_gsm+set}" = set; then :10898 if test "${with_external_gsm+set}" = set; then 5429 10899 withval=$with_external_gsm; 5430 10900 if test "x$with_external_gsm" != "xno"; then 5431 10901 # Test GSM library installation 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5 5433 $as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; } 5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10902 { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm/gsm.h" >&5 10903 echo $ECHO_N "checking if external GSM devkit is installed as gsm/gsm.h... $ECHO_C" >&6; } 10904 cat >conftest.$ac_ext <<_ACEOF 10905 /* confdefs.h. */ 10906 _ACEOF 10907 cat confdefs.h >>conftest.$ac_ext 10908 cat >>conftest.$ac_ext <<_ACEOF 5435 10909 /* end confdefs.h. */ 5436 10910 #include <gsm/gsm.h> … … 5443 10917 } 5444 10918 _ACEOF 5445 if ac_fn_c_try_compile "$LINENO"; then : 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 5447 $as_echo "yes!!" >&6; } 5448 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h 5449 5450 $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h 10919 rm -f conftest.$ac_objext 10920 if { (ac_try="$ac_compile" 10921 case "(($ac_try" in 10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10923 *) ac_try_echo=$ac_try;; 10924 esac 10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10926 (eval "$ac_compile") 2>conftest.er1 10927 ac_status=$? 10928 grep -v '^ *+' conftest.er1 >conftest.err 10929 rm -f conftest.er1 10930 cat conftest.err >&5 10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10932 (exit $ac_status); } && { 10933 test -z "$ac_c_werror_flag" || 10934 test ! -s conftest.err 10935 } && test -s conftest.$ac_objext; then 10936 { echo "$as_me:$LINENO: result: yes!!" >&5 10937 echo "${ECHO_T}yes!!" >&6; } 10938 cat >>confdefs.h <<\_ACEOF 10939 #define PJMEDIA_EXTERNAL_GSM_CODEC 1 10940 _ACEOF 10941 10942 cat >>confdefs.h <<\_ACEOF 10943 #define PJMEDIA_EXTERNAL_GSM_GSM_H 1 10944 _ACEOF 5451 10945 5452 10946 ac_external_gsm="1" 5453 10947 5454 10948 else 5455 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5457 $as_echo "no" >&6; } 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5 5459 $as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; } 5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10949 echo "$as_me: failed program was:" >&5 10950 sed 's/^/| /' conftest.$ac_ext >&5 10951 10952 10953 { echo "$as_me:$LINENO: result: no" >&5 10954 echo "${ECHO_T}no" >&6; } 10955 { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm.h" >&5 10956 echo $ECHO_N "checking if external GSM devkit is installed as gsm.h... $ECHO_C" >&6; } 10957 cat >conftest.$ac_ext <<_ACEOF 10958 /* confdefs.h. */ 10959 _ACEOF 10960 cat confdefs.h >>conftest.$ac_ext 10961 cat >>conftest.$ac_ext <<_ACEOF 5461 10962 /* end confdefs.h. */ 5462 10963 #include <gsm.h> … … 5469 10970 } 5470 10971 _ACEOF 5471 if ac_fn_c_try_compile "$LINENO"; then : 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 5473 $as_echo "yes!!" >&6; } 5474 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h 5475 5476 $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h 10972 rm -f conftest.$ac_objext 10973 if { (ac_try="$ac_compile" 10974 case "(($ac_try" in 10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10976 *) ac_try_echo=$ac_try;; 10977 esac 10978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10979 (eval "$ac_compile") 2>conftest.er1 10980 ac_status=$? 10981 grep -v '^ *+' conftest.er1 >conftest.err 10982 rm -f conftest.er1 10983 cat conftest.err >&5 10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10985 (exit $ac_status); } && { 10986 test -z "$ac_c_werror_flag" || 10987 test ! -s conftest.err 10988 } && test -s conftest.$ac_objext; then 10989 { echo "$as_me:$LINENO: result: yes!!" >&5 10990 echo "${ECHO_T}yes!!" >&6; } 10991 cat >>confdefs.h <<\_ACEOF 10992 #define PJMEDIA_EXTERNAL_GSM_CODEC 1 10993 _ACEOF 10994 10995 cat >>confdefs.h <<\_ACEOF 10996 #define PJMEDIA_EXTERNAL_GSM_H 1 10997 _ACEOF 5477 10998 5478 10999 ac_external_gsm="1" 5479 11000 5480 11001 else 5481 as_fn_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" "$LINENO" 5 5482 5483 5484 fi 11002 echo "$as_me: failed program was:" >&5 11003 sed 's/^/| /' conftest.$ac_ext >&5 11004 11005 { { 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 11006 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;} 11007 { (exit 1); exit 1; }; } 11008 11009 11010 fi 11011 5485 11012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5486 11013 5487 11014 5488 11015 fi 11016 5489 11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5490 11018 fi … … 5498 11026 5499 11027 # Check whether --enable-sound was given. 5500 if test "${enable_sound+set}" = set; then :11028 if test "${enable_sound+set}" = set; then 5501 11029 enableval=$enable_sound; if test "$enable_sound" = "no"; then 5502 11030 ac_pjmedia_snd=null 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&55504 $as_echo "Checking if sound is disabled... yes" >&6; }11031 { echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5 11032 echo "${ECHO_T}Checking if sound is disabled... yes" >&6; } 5505 11033 fi 5506 11034 … … 5512 11040 5513 11041 # Check whether --with-external-pa was given. 5514 if test "${with_external_pa+set}" = set; then :11042 if test "${with_external_pa+set}" = set; then 5515 11043 withval=$with_external_pa; 5516 11044 if test "x$with_external_pa" != "xno"; then 5517 11045 # Test PortAudio installation 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5 5519 $as_echo_n "checking if external PortAudio devkit is installed... " >&6; } 5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11046 { echo "$as_me:$LINENO: checking if external PortAudio devkit is installed" >&5 11047 echo $ECHO_N "checking if external PortAudio devkit is installed... $ECHO_C" >&6; } 11048 cat >conftest.$ac_ext <<_ACEOF 11049 /* confdefs.h. */ 11050 _ACEOF 11051 cat confdefs.h >>conftest.$ac_ext 11052 cat >>conftest.$ac_ext <<_ACEOF 5521 11053 /* end confdefs.h. */ 5522 11054 #include <portaudio.h> … … 5530 11062 } 5531 11063 _ACEOF 5532 if ac_fn_c_try_compile "$LINENO"; then : 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 5534 $as_echo "yes!!" >&6; } 11064 rm -f conftest.$ac_objext 11065 if { (ac_try="$ac_compile" 11066 case "(($ac_try" in 11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11068 *) ac_try_echo=$ac_try;; 11069 esac 11070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11071 (eval "$ac_compile") 2>conftest.er1 11072 ac_status=$? 11073 grep -v '^ *+' conftest.er1 >conftest.err 11074 rm -f conftest.er1 11075 cat conftest.err >&5 11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11077 (exit $ac_status); } && { 11078 test -z "$ac_c_werror_flag" || 11079 test ! -s conftest.err 11080 } && test -s conftest.$ac_objext; then 11081 { echo "$as_me:$LINENO: result: yes!!" >&5 11082 echo "${ECHO_T}yes!!" >&6; } 5535 11083 ac_external_pa="1" 5536 11084 5537 11085 else 5538 as_fn_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" "$LINENO" 5 5539 fi 11086 echo "$as_me: failed program was:" >&5 11087 sed 's/^/| /' conftest.$ac_ext >&5 11088 11089 { { 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 11090 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;} 11091 { (exit 1); exit 1; }; } 11092 fi 11093 5540 11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5541 11095 fi … … 5546 11100 5547 11101 5548 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default" 5549 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then : 11102 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then 11103 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 11104 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } 11105 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then 11106 echo $ECHO_N "(cached) $ECHO_C" >&6 11107 fi 11108 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 11109 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } 11110 else 11111 # Is the header compilable? 11112 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5 11113 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; } 11114 cat >conftest.$ac_ext <<_ACEOF 11115 /* confdefs.h. */ 11116 _ACEOF 11117 cat confdefs.h >>conftest.$ac_ext 11118 cat >>conftest.$ac_ext <<_ACEOF 11119 /* end confdefs.h. */ 11120 $ac_includes_default 11121 #include <sys/soundcard.h> 11122 _ACEOF 11123 rm -f conftest.$ac_objext 11124 if { (ac_try="$ac_compile" 11125 case "(($ac_try" in 11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11127 *) ac_try_echo=$ac_try;; 11128 esac 11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11130 (eval "$ac_compile") 2>conftest.er1 11131 ac_status=$? 11132 grep -v '^ *+' conftest.er1 >conftest.err 11133 rm -f conftest.er1 11134 cat conftest.err >&5 11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11136 (exit $ac_status); } && { 11137 test -z "$ac_c_werror_flag" || 11138 test ! -s conftest.err 11139 } && test -s conftest.$ac_objext; then 11140 ac_header_compiler=yes 11141 else 11142 echo "$as_me: failed program was:" >&5 11143 sed 's/^/| /' conftest.$ac_ext >&5 11144 11145 ac_header_compiler=no 11146 fi 11147 11148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11150 echo "${ECHO_T}$ac_header_compiler" >&6; } 11151 11152 # Is the header present? 11153 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5 11154 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; } 11155 cat >conftest.$ac_ext <<_ACEOF 11156 /* confdefs.h. */ 11157 _ACEOF 11158 cat confdefs.h >>conftest.$ac_ext 11159 cat >>conftest.$ac_ext <<_ACEOF 11160 /* end confdefs.h. */ 11161 #include <sys/soundcard.h> 11162 _ACEOF 11163 if { (ac_try="$ac_cpp conftest.$ac_ext" 11164 case "(($ac_try" in 11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11166 *) ac_try_echo=$ac_try;; 11167 esac 11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11170 ac_status=$? 11171 grep -v '^ *+' conftest.er1 >conftest.err 11172 rm -f conftest.er1 11173 cat conftest.err >&5 11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11175 (exit $ac_status); } >/dev/null && { 11176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11177 test ! -s conftest.err 11178 }; then 11179 ac_header_preproc=yes 11180 else 11181 echo "$as_me: failed program was:" >&5 11182 sed 's/^/| /' conftest.$ac_ext >&5 11183 11184 ac_header_preproc=no 11185 fi 11186 11187 rm -f conftest.err conftest.$ac_ext 11188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11189 echo "${ECHO_T}$ac_header_preproc" >&6; } 11190 11191 # So? What about this header? 11192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11193 yes:no: ) 11194 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 11195 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11196 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5 11197 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;} 11198 ac_header_preproc=yes 11199 ;; 11200 no:yes:* ) 11201 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5 11202 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;} 11203 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5 11204 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;} 11205 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5 11206 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;} 11207 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 11208 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} 11209 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5 11210 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;} 11211 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5 11212 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;} 11213 11214 ;; 11215 esac 11216 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 11217 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } 11218 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then 11219 echo $ECHO_N "(cached) $ECHO_C" >&6 11220 else 11221 ac_cv_header_sys_soundcard_h=$ac_header_preproc 11222 fi 11223 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 11224 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } 11225 11226 fi 11227 if test $ac_cv_header_sys_soundcard_h = yes; then 5550 11228 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" 5551 11229 fi 5552 11230 5553 11231 5554 ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default" 5555 if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then : 11232 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then 11233 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 11234 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } 11235 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then 11236 echo $ECHO_N "(cached) $ECHO_C" >&6 11237 fi 11238 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 11239 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } 11240 else 11241 # Is the header compilable? 11242 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5 11243 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; } 11244 cat >conftest.$ac_ext <<_ACEOF 11245 /* confdefs.h. */ 11246 _ACEOF 11247 cat confdefs.h >>conftest.$ac_ext 11248 cat >>conftest.$ac_ext <<_ACEOF 11249 /* end confdefs.h. */ 11250 $ac_includes_default 11251 #include <linux/soundcard.h> 11252 _ACEOF 11253 rm -f conftest.$ac_objext 11254 if { (ac_try="$ac_compile" 11255 case "(($ac_try" in 11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11257 *) ac_try_echo=$ac_try;; 11258 esac 11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11260 (eval "$ac_compile") 2>conftest.er1 11261 ac_status=$? 11262 grep -v '^ *+' conftest.er1 >conftest.err 11263 rm -f conftest.er1 11264 cat conftest.err >&5 11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11266 (exit $ac_status); } && { 11267 test -z "$ac_c_werror_flag" || 11268 test ! -s conftest.err 11269 } && test -s conftest.$ac_objext; then 11270 ac_header_compiler=yes 11271 else 11272 echo "$as_me: failed program was:" >&5 11273 sed 's/^/| /' conftest.$ac_ext >&5 11274 11275 ac_header_compiler=no 11276 fi 11277 11278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11280 echo "${ECHO_T}$ac_header_compiler" >&6; } 11281 11282 # Is the header present? 11283 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5 11284 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; } 11285 cat >conftest.$ac_ext <<_ACEOF 11286 /* confdefs.h. */ 11287 _ACEOF 11288 cat confdefs.h >>conftest.$ac_ext 11289 cat >>conftest.$ac_ext <<_ACEOF 11290 /* end confdefs.h. */ 11291 #include <linux/soundcard.h> 11292 _ACEOF 11293 if { (ac_try="$ac_cpp conftest.$ac_ext" 11294 case "(($ac_try" in 11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11296 *) ac_try_echo=$ac_try;; 11297 esac 11298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11300 ac_status=$? 11301 grep -v '^ *+' conftest.er1 >conftest.err 11302 rm -f conftest.er1 11303 cat conftest.err >&5 11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11305 (exit $ac_status); } >/dev/null && { 11306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11307 test ! -s conftest.err 11308 }; then 11309 ac_header_preproc=yes 11310 else 11311 echo "$as_me: failed program was:" >&5 11312 sed 's/^/| /' conftest.$ac_ext >&5 11313 11314 ac_header_preproc=no 11315 fi 11316 11317 rm -f conftest.err conftest.$ac_ext 11318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11319 echo "${ECHO_T}$ac_header_preproc" >&6; } 11320 11321 # So? What about this header? 11322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11323 yes:no: ) 11324 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 11325 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11326 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5 11327 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;} 11328 ac_header_preproc=yes 11329 ;; 11330 no:yes:* ) 11331 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5 11332 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;} 11333 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5 11334 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;} 11335 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5 11336 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;} 11337 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 11338 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} 11339 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5 11340 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;} 11341 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5 11342 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;} 11343 11344 ;; 11345 esac 11346 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 11347 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } 11348 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then 11349 echo $ECHO_N "(cached) $ECHO_C" >&6 11350 else 11351 ac_cv_header_linux_soundcard_h=$ac_header_preproc 11352 fi 11353 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 11354 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } 11355 11356 fi 11357 if test $ac_cv_header_linux_soundcard_h = yes; then 5556 11358 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" 5557 11359 fi 5558 11360 5559 11361 5560 ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default" 5561 if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then : 11362 if test "${ac_cv_header_machine_soundcard_h+set}" = set; then 11363 { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 11364 echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } 11365 if test "${ac_cv_header_machine_soundcard_h+set}" = set; then 11366 echo $ECHO_N "(cached) $ECHO_C" >&6 11367 fi 11368 { echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 11369 echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } 11370 else 11371 # Is the header compilable? 11372 { echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5 11373 echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6; } 11374 cat >conftest.$ac_ext <<_ACEOF 11375 /* confdefs.h. */ 11376 _ACEOF 11377 cat confdefs.h >>conftest.$ac_ext 11378 cat >>conftest.$ac_ext <<_ACEOF 11379 /* end confdefs.h. */ 11380 $ac_includes_default 11381 #include <machine/soundcard.h> 11382 _ACEOF 11383 rm -f conftest.$ac_objext 11384 if { (ac_try="$ac_compile" 11385 case "(($ac_try" in 11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11387 *) ac_try_echo=$ac_try;; 11388 esac 11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11390 (eval "$ac_compile") 2>conftest.er1 11391 ac_status=$? 11392 grep -v '^ *+' conftest.er1 >conftest.err 11393 rm -f conftest.er1 11394 cat conftest.err >&5 11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11396 (exit $ac_status); } && { 11397 test -z "$ac_c_werror_flag" || 11398 test ! -s conftest.err 11399 } && test -s conftest.$ac_objext; then 11400 ac_header_compiler=yes 11401 else 11402 echo "$as_me: failed program was:" >&5 11403 sed 's/^/| /' conftest.$ac_ext >&5 11404 11405 ac_header_compiler=no 11406 fi 11407 11408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11410 echo "${ECHO_T}$ac_header_compiler" >&6; } 11411 11412 # Is the header present? 11413 { echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5 11414 echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6; } 11415 cat >conftest.$ac_ext <<_ACEOF 11416 /* confdefs.h. */ 11417 _ACEOF 11418 cat confdefs.h >>conftest.$ac_ext 11419 cat >>conftest.$ac_ext <<_ACEOF 11420 /* end confdefs.h. */ 11421 #include <machine/soundcard.h> 11422 _ACEOF 11423 if { (ac_try="$ac_cpp conftest.$ac_ext" 11424 case "(($ac_try" in 11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11426 *) ac_try_echo=$ac_try;; 11427 esac 11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11430 ac_status=$? 11431 grep -v '^ *+' conftest.er1 >conftest.err 11432 rm -f conftest.er1 11433 cat conftest.err >&5 11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11435 (exit $ac_status); } >/dev/null && { 11436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11437 test ! -s conftest.err 11438 }; then 11439 ac_header_preproc=yes 11440 else 11441 echo "$as_me: failed program was:" >&5 11442 sed 's/^/| /' conftest.$ac_ext >&5 11443 11444 ac_header_preproc=no 11445 fi 11446 11447 rm -f conftest.err conftest.$ac_ext 11448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11449 echo "${ECHO_T}$ac_header_preproc" >&6; } 11450 11451 # So? What about this header? 11452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11453 yes:no: ) 11454 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 11455 echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11456 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5 11457 echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;} 11458 ac_header_preproc=yes 11459 ;; 11460 no:yes:* ) 11461 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5 11462 echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;} 11463 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5 11464 echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;} 11465 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5 11466 echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;} 11467 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 11468 echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} 11469 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5 11470 echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;} 11471 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5 11472 echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;} 11473 11474 ;; 11475 esac 11476 { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 11477 echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } 11478 if test "${ac_cv_header_machine_soundcard_h+set}" = set; then 11479 echo $ECHO_N "(cached) $ECHO_C" >&6 11480 else 11481 ac_cv_header_machine_soundcard_h=$ac_header_preproc 11482 fi 11483 { echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 11484 echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } 11485 11486 fi 11487 if test $ac_cv_header_machine_soundcard_h = yes; then 5562 11488 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" 5563 11489 fi … … 5577 11503 arm-apple-darwin*) 5578 11504 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit" 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&55580 $as_echo "Checking sound device backend... AudioUnit" >&6; }11505 { echo "$as_me:$LINENO: result: Checking sound device backend... AudioUnit" >&5 11506 echo "${ECHO_T}Checking sound device backend... AudioUnit" >&6; } 5581 11507 ;; 5582 11508 *darwin*) … … 5586 11512 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) 5587 11513 ac_pjmedia_snd=pa_old_darwinos 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&55589 $as_echo "Checking sound device backend... old coreaudio" >&6; }11514 { echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5 11515 echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6; } 5590 11516 else 5591 11517 ac_pjmedia_snd=pa_darwinos 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&55593 $as_echo "Checking sound device backend... coreaudio" >&6; }11518 { echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5 11519 echo "${ECHO_T}Checking sound device backend... coreaudio" >&6; } 5594 11520 fi 5595 11521 ;; 5596 11522 *cygwin* | *mingw*) 5597 11523 ac_pjmedia_snd=pa_win32 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&55599 $as_echo "Checking sound device backend... win32 sound" >&6; }11524 { echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5 11525 echo "${ECHO_T}Checking sound device backend... win32 sound" >&6; } 5600 11526 ;; 5601 11527 *rtems*) 5602 11528 ac_pjmedia_snd=null 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&55604 $as_echo "Checking sound device backend... null sound" >&6; }11529 { echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5 11530 echo "${ECHO_T}Checking sound device backend... null sound" >&6; } 5605 11531 ;; 5606 11532 *) 5607 11533 ac_pjmedia_snd=pa_unix 5608 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default" 5609 if test "x$ac_cv_header_alsa_version_h" = x""yes; then : 11534 if test "${ac_cv_header_alsa_version_h+set}" = set; then 11535 { echo "$as_me:$LINENO: checking for alsa/version.h" >&5 11536 echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } 11537 if test "${ac_cv_header_alsa_version_h+set}" = set; then 11538 echo $ECHO_N "(cached) $ECHO_C" >&6 11539 fi 11540 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 11541 echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } 11542 else 11543 # Is the header compilable? 11544 { echo "$as_me:$LINENO: checking alsa/version.h usability" >&5 11545 echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6; } 11546 cat >conftest.$ac_ext <<_ACEOF 11547 /* confdefs.h. */ 11548 _ACEOF 11549 cat confdefs.h >>conftest.$ac_ext 11550 cat >>conftest.$ac_ext <<_ACEOF 11551 /* end confdefs.h. */ 11552 $ac_includes_default 11553 #include <alsa/version.h> 11554 _ACEOF 11555 rm -f conftest.$ac_objext 11556 if { (ac_try="$ac_compile" 11557 case "(($ac_try" in 11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11559 *) ac_try_echo=$ac_try;; 11560 esac 11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11562 (eval "$ac_compile") 2>conftest.er1 11563 ac_status=$? 11564 grep -v '^ *+' conftest.er1 >conftest.err 11565 rm -f conftest.er1 11566 cat conftest.err >&5 11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11568 (exit $ac_status); } && { 11569 test -z "$ac_c_werror_flag" || 11570 test ! -s conftest.err 11571 } && test -s conftest.$ac_objext; then 11572 ac_header_compiler=yes 11573 else 11574 echo "$as_me: failed program was:" >&5 11575 sed 's/^/| /' conftest.$ac_ext >&5 11576 11577 ac_header_compiler=no 11578 fi 11579 11580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11582 echo "${ECHO_T}$ac_header_compiler" >&6; } 11583 11584 # Is the header present? 11585 { echo "$as_me:$LINENO: checking alsa/version.h presence" >&5 11586 echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6; } 11587 cat >conftest.$ac_ext <<_ACEOF 11588 /* confdefs.h. */ 11589 _ACEOF 11590 cat confdefs.h >>conftest.$ac_ext 11591 cat >>conftest.$ac_ext <<_ACEOF 11592 /* end confdefs.h. */ 11593 #include <alsa/version.h> 11594 _ACEOF 11595 if { (ac_try="$ac_cpp conftest.$ac_ext" 11596 case "(($ac_try" in 11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11598 *) ac_try_echo=$ac_try;; 11599 esac 11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11602 ac_status=$? 11603 grep -v '^ *+' conftest.er1 >conftest.err 11604 rm -f conftest.er1 11605 cat conftest.err >&5 11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11607 (exit $ac_status); } >/dev/null && { 11608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11609 test ! -s conftest.err 11610 }; then 11611 ac_header_preproc=yes 11612 else 11613 echo "$as_me: failed program was:" >&5 11614 sed 's/^/| /' conftest.$ac_ext >&5 11615 11616 ac_header_preproc=no 11617 fi 11618 11619 rm -f conftest.err conftest.$ac_ext 11620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11621 echo "${ECHO_T}$ac_header_preproc" >&6; } 11622 11623 # So? What about this header? 11624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11625 yes:no: ) 11626 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 11627 echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11628 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5 11629 echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;} 11630 ac_header_preproc=yes 11631 ;; 11632 no:yes:* ) 11633 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5 11634 echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;} 11635 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5 11636 echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;} 11637 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5 11638 echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;} 11639 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5 11640 echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;} 11641 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5 11642 echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;} 11643 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5 11644 echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;} 11645 11646 ;; 11647 esac 11648 { echo "$as_me:$LINENO: checking for alsa/version.h" >&5 11649 echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } 11650 if test "${ac_cv_header_alsa_version_h+set}" = set; then 11651 echo $ECHO_N "(cached) $ECHO_C" >&6 11652 else 11653 ac_cv_header_alsa_version_h=$ac_header_preproc 11654 fi 11655 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 11656 echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } 11657 11658 fi 11659 if test $ac_cv_header_alsa_version_h = yes; then 5610 11660 ac_pa_use_alsa=1 5611 11661 … … 5618 11668 5619 11669 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&55621 $as_echo "Checking sound device backend... unix" >&6; }11670 { echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5 11671 echo "${ECHO_T}Checking sound device backend... unix" >&6; } 5622 11672 5623 11673 ac_pa_use_oss=1 5624 11674 5625 11675 # Check whether --enable-oss was given. 5626 if test "${enable_oss+set}" = set; then :11676 if test "${enable_oss+set}" = set; then 5627 11677 enableval=$enable_oss; 5628 11678 if test "$enable_oss" = "no"; then 5629 11679 ac_pa_use_oss=0 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&55631 $as_echo "Checking if OSS audio is disabled... yes" >&6; }11680 { echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5 11681 echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6; } 5632 11682 fi 5633 11683 … … 5649 11699 SAVED_LIBS="$LIBS" 5650 11700 LIBS="-framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11701 cat >conftest.$ac_ext <<_ACEOF 11702 /* confdefs.h. */ 11703 _ACEOF 11704 cat confdefs.h >>conftest.$ac_ext 11705 cat >>conftest.$ac_ext <<_ACEOF 5652 11706 /* end confdefs.h. */ 5653 11707 … … 5660 11714 } 5661 11715 _ACEOF 5662 if ac_fn_c_try_link "$LINENO"; then : 11716 rm -f conftest.$ac_objext conftest$ac_exeext 11717 if { (ac_try="$ac_link" 11718 case "(($ac_try" in 11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11720 *) ac_try_echo=$ac_try;; 11721 esac 11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11723 (eval "$ac_link") 2>conftest.er1 11724 ac_status=$? 11725 grep -v '^ *+' conftest.er1 >conftest.err 11726 rm -f conftest.er1 11727 cat conftest.err >&5 11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11729 (exit $ac_status); } && { 11730 test -z "$ac_c_werror_flag" || 11731 test ! -s conftest.err 11732 } && test -s conftest$ac_exeext && 11733 $as_test_x conftest$ac_exeext; then 5663 11734 ac_pjmedia_video_has_ios=yes 5664 11735 else 5665 ac_pjmedia_video_has_ios=no 5666 fi 5667 rm -f core conftest.err conftest.$ac_objext \ 5668 conftest$ac_exeext conftest.$ac_ext 11736 echo "$as_me: failed program was:" >&5 11737 sed 's/^/| /' conftest.$ac_ext >&5 11738 11739 ac_pjmedia_video_has_ios=no 11740 fi 11741 11742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11743 conftest$ac_exeext conftest.$ac_ext 5669 11744 LIBS="$SAVED_LIBS" 5670 11745 if test "$ac_pjmedia_video_has_ios" = "yes"; then 5671 11746 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1" 5672 11747 LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&55674 $as_echo "Checking if AVFoundation framework is available... yes" >&6; }11748 { echo "$as_me:$LINENO: result: Checking if AVFoundation framework is available... yes" >&5 11749 echo "${ECHO_T}Checking if AVFoundation framework is available... yes" >&6; } 5675 11750 else 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&55677 $as_echo "Checking if AVFoundation framework is available... no" >&6; }11751 { echo "$as_me:$LINENO: result: Checking if AVFoundation framework is available... no" >&5 11752 echo "${ECHO_T}Checking if AVFoundation framework is available... no" >&6; } 5678 11753 fi 5679 11754 ;; … … 5684 11759 SAVED_LIBS="$LIBS" 5685 11760 LIBS="-framework QTKit" 5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11761 cat >conftest.$ac_ext <<_ACEOF 11762 /* confdefs.h. */ 11763 _ACEOF 11764 cat confdefs.h >>conftest.$ac_ext 11765 cat >>conftest.$ac_ext <<_ACEOF 5687 11766 /* end confdefs.h. */ 5688 11767 … … 5695 11774 } 5696 11775 _ACEOF 5697 if ac_fn_c_try_link "$LINENO"; then : 11776 rm -f conftest.$ac_objext conftest$ac_exeext 11777 if { (ac_try="$ac_link" 11778 case "(($ac_try" in 11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11780 *) ac_try_echo=$ac_try;; 11781 esac 11782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11783 (eval "$ac_link") 2>conftest.er1 11784 ac_status=$? 11785 grep -v '^ *+' conftest.er1 >conftest.err 11786 rm -f conftest.er1 11787 cat conftest.err >&5 11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11789 (exit $ac_status); } && { 11790 test -z "$ac_c_werror_flag" || 11791 test ! -s conftest.err 11792 } && test -s conftest$ac_exeext && 11793 $as_test_x conftest$ac_exeext; then 5698 11794 ac_pjmedia_video_has_qt=yes 5699 11795 else 5700 ac_pjmedia_video_has_qt=no 5701 fi 5702 rm -f core conftest.err conftest.$ac_objext \ 5703 conftest$ac_exeext conftest.$ac_ext 11796 echo "$as_me: failed program was:" >&5 11797 sed 's/^/| /' conftest.$ac_ext >&5 11798 11799 ac_pjmedia_video_has_qt=no 11800 fi 11801 11802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11803 conftest$ac_exeext conftest.$ac_ext 5704 11804 LIBS="$SAVED_LIBS" 5705 11805 if test "$ac_pjmedia_video_has_qt" = "yes"; then 5706 11806 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" 5707 11807 LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -framework QuartzCore -framework OpenGL" 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&55709 $as_echo "Checking if QTKit framework is available... yes" >&6; }11808 { echo "$as_me:$LINENO: result: Checking if QTKit framework is available... yes" >&5 11809 echo "${ECHO_T}Checking if QTKit framework is available... yes" >&6; } 5710 11810 else 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&55712 $as_echo "Checking if QTKit framework is available... no" >&6; }11811 { echo "$as_me:$LINENO: result: Checking if QTKit framework is available... no" >&5 11812 echo "${ECHO_T}Checking if QTKit framework is available... no" >&6; } 5713 11813 fi 5714 11814 ;; … … 5717 11817 5718 11818 # Check whether --enable-ext_sound was given. 5719 if test "${enable_ext_sound+set}" = set; then :11819 if test "${enable_ext_sound+set}" = set; then 5720 11820 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then 5721 11821 ac_pjmedia_snd=external 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&55723 $as_echo "Checking if external sound is set... yes" >&6; }11822 { echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5 11823 echo "${ECHO_T}Checking if external sound is set... yes" >&6; } 5724 11824 fi 5725 11825 … … 5729 11829 5730 11830 # Check whether --enable-small-filter was given. 5731 if test "${enable_small_filter+set}" = set; then :11831 if test "${enable_small_filter+set}" = set; then 5732 11832 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then 5733 11833 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&55735 $as_echo "Checking if small filter is disabled... yes" >&6; }11834 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5 11835 echo "${ECHO_T}Checking if small filter is disabled... yes" >&6; } 5736 11836 fi 5737 11837 else 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&55739 $as_echo "Checking if small filter is disabled... no" >&6; }11838 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5 11839 echo "${ECHO_T}Checking if small filter is disabled... no" >&6; } 5740 11840 fi 5741 11841 … … 5743 11843 5744 11844 # Check whether --enable-large-filter was given. 5745 if test "${enable_large_filter+set}" = set; then :11845 if test "${enable_large_filter+set}" = set; then 5746 11846 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then 5747 11847 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&55749 $as_echo "Checking if large filter is disabled... yes" >&6; }11848 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5 11849 echo "${ECHO_T}Checking if large filter is disabled... yes" >&6; } 5750 11850 fi 5751 11851 else 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&55753 $as_echo "Checking if large filter is disabled... no" >&6; }11852 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5 11853 echo "${ECHO_T}Checking if large filter is disabled... no" >&6; } 5754 11854 fi 5755 11855 … … 5757 11857 5758 11858 # Check whether --enable-speex-aec was given. 5759 if test "${enable_speex_aec+set}" = set; then :11859 if test "${enable_speex_aec+set}" = set; then 5760 11860 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then 5761 11861 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&55763 $as_echo "Checking if Speex AEC is disabled...yes" >&6; }11862 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5 11863 echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6; } 5764 11864 fi 5765 11865 else 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&55767 $as_echo "Checking if Speex AEC is disabled...no" >&6; }11866 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5 11867 echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6; } 5768 11868 fi 5769 11869 … … 5771 11871 5772 11872 # Check whether --enable-g711-codec was given. 5773 if test "${enable_g711_codec+set}" = set; then :11873 if test "${enable_g711_codec+set}" = set; then 5774 11874 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then 5775 11875 ac_no_g711_codec=1 5776 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h 5777 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5 5779 $as_echo "Checking if G.711 codec is disabled...yes" >&6; } 11876 cat >>confdefs.h <<\_ACEOF 11877 #define PJMEDIA_HAS_G711_CODEC 0 11878 _ACEOF 11879 11880 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5 11881 echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6; } 5780 11882 fi 5781 11883 else 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&55783 $as_echo "Checking if G.711 codec is disabled...no" >&6; }11884 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5 11885 echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6; } 5784 11886 fi 5785 11887 … … 5788 11890 5789 11891 # Check whether --enable-l16-codec was given. 5790 if test "${enable_l16_codec+set}" = set; then :11892 if test "${enable_l16_codec+set}" = set; then 5791 11893 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then 5792 11894 ac_no_l16_codec=1 5793 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h 5794 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5 5796 $as_echo "Checking if L16 codecs are disabled...yes" >&6; } 11895 cat >>confdefs.h <<\_ACEOF 11896 #define PJMEDIA_HAS_L16_CODEC 0 11897 _ACEOF 11898 11899 { echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5 11900 echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6; } 5797 11901 fi 5798 11902 else 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&55800 $as_echo "Checking if L16 codec is disabled...no" >&6; }11903 { echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5 11904 echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6; } 5801 11905 fi 5802 11906 … … 5805 11909 5806 11910 # Check whether --enable-gsm-codec was given. 5807 if test "${enable_gsm_codec+set}" = set; then :11911 if test "${enable_gsm_codec+set}" = set; then 5808 11912 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then 5809 11913 ac_no_gsm_codec=1 5810 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h 5811 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5 5813 $as_echo "Checking if GSM codec is disabled...yes" >&6; } 11914 cat >>confdefs.h <<\_ACEOF 11915 #define PJMEDIA_HAS_GSM_CODEC 0 11916 _ACEOF 11917 11918 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5 11919 echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6; } 5814 11920 fi 5815 11921 else 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&55817 $as_echo "Checking if GSM codec is disabled...no" >&6; }11922 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5 11923 echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6; } 5818 11924 fi 5819 11925 … … 5821 11927 5822 11928 # Check whether --enable-g722-codec was given. 5823 if test "${enable_g722_codec+set}" = set; then :11929 if test "${enable_g722_codec+set}" = set; then 5824 11930 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then 5825 11931 ac_no_g722_codec=1 5826 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h 5827 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5 5829 $as_echo "Checking if G.722 codec is disabled...yes" >&6; } 11932 cat >>confdefs.h <<\_ACEOF 11933 #define PJMEDIA_HAS_G722_CODEC 0 11934 _ACEOF 11935 11936 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5 11937 echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6; } 5830 11938 fi 5831 11939 else 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&55833 $as_echo "Checking if G.722 codec is disabled...no" >&6; }11940 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5 11941 echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6; } 5834 11942 fi 5835 11943 … … 5837 11945 5838 11946 # Check whether --enable-g7221-codec was given. 5839 if test "${enable_g7221_codec+set}" = set; then :11947 if test "${enable_g7221_codec+set}" = set; then 5840 11948 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then 5841 11949 ac_no_g7221_codec=1 5842 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h 5843 5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5 5845 $as_echo "Checking if G.722.1 codec is disabled...yes" >&6; } 11950 cat >>confdefs.h <<\_ACEOF 11951 #define PJMEDIA_HAS_G7221_CODEC 0 11952 _ACEOF 11953 11954 { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...yes" >&5 11955 echo "${ECHO_T}Checking if G.722.1 codec is disabled...yes" >&6; } 5846 11956 fi 5847 11957 else 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&55849 $as_echo "Checking if G.722.1 codec is disabled...no" >&6; }11958 { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...no" >&5 11959 echo "${ECHO_T}Checking if G.722.1 codec is disabled...no" >&6; } 5850 11960 fi 5851 11961 … … 5853 11963 5854 11964 # Check whether --enable-speex-codec was given. 5855 if test "${enable_speex_codec+set}" = set; then :11965 if test "${enable_speex_codec+set}" = set; then 5856 11966 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then 5857 11967 ac_no_speex_codec=1 5858 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h 5859 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5 5861 $as_echo "Checking if Speex codec is disabled...yes" >&6; } 11968 cat >>confdefs.h <<\_ACEOF 11969 #define PJMEDIA_HAS_SPEEX_CODEC 0 11970 _ACEOF 11971 11972 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5 11973 echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6; } 5862 11974 fi 5863 11975 else 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&55865 $as_echo "Checking if Speex codec is disabled...no" >&6; }11976 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5 11977 echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6; } 5866 11978 fi 5867 11979 … … 5869 11981 5870 11982 # Check whether --enable-ilbc-codec was given. 5871 if test "${enable_ilbc_codec+set}" = set; then :11983 if test "${enable_ilbc_codec+set}" = set; then 5872 11984 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then 5873 11985 ac_no_ilbc_codec=1 5874 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h 5875 5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5 5877 $as_echo "Checking if iLBC codec is disabled...yes" >&6; } 11986 cat >>confdefs.h <<\_ACEOF 11987 #define PJMEDIA_HAS_ILBC_CODEC 0 11988 _ACEOF 11989 11990 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5 11991 echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6; } 5878 11992 fi 5879 11993 else 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&55881 $as_echo "Checking if iLBC codec is disabled...no" >&6; }11994 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5 11995 echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6; } 5882 11996 fi 5883 11997 5884 11998 5885 11999 # Check whether --enable-libsamplerate was given. 5886 if test "${enable_libsamplerate+set}" = set; then : 5887 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5 5888 $as_echo_n "checking for src_new in -lsamplerate... " >&6; } 5889 if test "${ac_cv_lib_samplerate_src_new+set}" = set; then : 5890 $as_echo_n "(cached) " >&6 12000 if test "${enable_libsamplerate+set}" = set; then 12001 enableval=$enable_libsamplerate; 12002 { echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5 12003 echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6; } 12004 if test "${ac_cv_lib_samplerate_src_new+set}" = set; then 12005 echo $ECHO_N "(cached) $ECHO_C" >&6 5891 12006 else 5892 12007 ac_check_lib_save_LIBS=$LIBS 5893 12008 LIBS="-lsamplerate $LIBS" 5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12009 cat >conftest.$ac_ext <<_ACEOF 12010 /* confdefs.h. */ 12011 _ACEOF 12012 cat confdefs.h >>conftest.$ac_ext 12013 cat >>conftest.$ac_ext <<_ACEOF 5895 12014 /* end confdefs.h. */ 5896 12015 … … 5910 12029 } 5911 12030 _ACEOF 5912 if ac_fn_c_try_link "$LINENO"; then : 12031 rm -f conftest.$ac_objext conftest$ac_exeext 12032 if { (ac_try="$ac_link" 12033 case "(($ac_try" in 12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12035 *) ac_try_echo=$ac_try;; 12036 esac 12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12038 (eval "$ac_link") 2>conftest.er1 12039 ac_status=$? 12040 grep -v '^ *+' conftest.er1 >conftest.err 12041 rm -f conftest.er1 12042 cat conftest.err >&5 12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12044 (exit $ac_status); } && { 12045 test -z "$ac_c_werror_flag" || 12046 test ! -s conftest.err 12047 } && test -s conftest$ac_exeext && 12048 $as_test_x conftest$ac_exeext; then 5913 12049 ac_cv_lib_samplerate_src_new=yes 5914 12050 else 5915 ac_cv_lib_samplerate_src_new=no 5916 fi 5917 rm -f core conftest.err conftest.$ac_objext \ 5918 conftest$ac_exeext conftest.$ac_ext 12051 echo "$as_me: failed program was:" >&5 12052 sed 's/^/| /' conftest.$ac_ext >&5 12053 12054 ac_cv_lib_samplerate_src_new=no 12055 fi 12056 12057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12058 conftest$ac_exeext conftest.$ac_ext 5919 12059 LIBS=$ac_check_lib_save_LIBS 5920 12060 fi 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&55922 $as_echo "$ac_cv_lib_samplerate_src_new" >&6; }5923 if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then :12061 { echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5 12062 echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6; } 12063 if test $ac_cv_lib_samplerate_src_new = yes; then 5924 12064 cat >>confdefs.h <<_ACEOF 5925 12065 #define HAVE_LIBSAMPLERATE 1 … … 5931 12071 5932 12072 else 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&55934 $as_echo "Skipping libsamplerate detection" >&6; }12073 { echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5 12074 echo "${ECHO_T}Skipping libsamplerate detection" >&6; } 5935 12075 5936 12076 fi … … 5939 12079 5940 12080 # Check whether --with-sdl was given. 5941 if test "${with_sdl+set}" = set; then :12081 if test "${with_sdl+set}" = set; then 5942 12082 withval=$with_sdl; 5943 12083 else … … 5948 12088 5949 12089 # Check whether --enable-sdl was given. 5950 if test "${enable_sdl+set}" = set; then :12090 if test "${enable_sdl+set}" = set; then 5951 12091 enableval=$enable_sdl; 5952 12092 if test "$enable_sdl" = "no"; then 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&55954 $as_echo "Checking if SDL is disabled... yes" >&6; }12093 { echo "$as_me:$LINENO: result: Checking if SDL is disabled... yes" >&5 12094 echo "${ECHO_T}Checking if SDL is disabled... yes" >&6; } 5955 12095 fi 5956 12096 … … 5960 12100 if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then 5961 12101 SDL_CONFIG=$with_sdl/bin/sdl-config 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&55963 $as_echo "Using SDL prefix... $with_sdl" >&6; }12102 { echo "$as_me:$LINENO: result: Using SDL prefix... $with_sdl" >&5 12103 echo "${ECHO_T}Using SDL prefix... $with_sdl" >&6; } 5964 12104 fi 5965 12105 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability.." >&55967 $as_echo_n "checking SDL availability....." >&6; }12106 { echo "$as_me:$LINENO: checking SDL availability.." >&5 12107 echo $ECHO_N "checking SDL availability..... $ECHO_C" >&6; } 5968 12108 if (sh -c "$SDL_CONFIG --version" | grep 1.3) then 5969 12109 … … 5974 12114 LIBS="$LIBS $ac_sdl_ldflags" 5975 12115 else 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&55977 $as_echo "Unsupported SDL version" >&6; }12116 { echo "$as_me:$LINENO: result: Unsupported SDL version" >&5 12117 echo "${ECHO_T}Unsupported SDL version" >&6; } 5978 12118 fi 5979 12119 … … 5983 12123 5984 12124 # Check whether --enable-ffmpeg was given. 5985 if test "${enable_ffmpeg+set}" = set; then :12125 if test "${enable_ffmpeg+set}" = set; then 5986 12126 enableval=$enable_ffmpeg; 5987 12127 ac_has_ffmpeg=0 5988 12128 5989 12129 if test "$enable_ffmpeg" = "no"; then 5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&55991 $as_echo "Checking if ffmpeg is disabled... yes" >&6; }12130 { echo "$as_me:$LINENO: result: Checking if ffmpeg is disabled... yes" >&5 12131 echo "${ECHO_T}Checking if ffmpeg is disabled... yes" >&6; } 5992 12132 fi 5993 12133 … … 5997 12137 5998 12138 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 6000 $as_echo_n "checking for deflate in -lz... " >&6; } 6001 if test "${ac_cv_lib_z_deflate+set}" = set; then : 6002 $as_echo_n "(cached) " >&6 12139 12140 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5 12141 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; } 12142 if test "${ac_cv_lib_z_deflate+set}" = set; then 12143 echo $ECHO_N "(cached) $ECHO_C" >&6 6003 12144 else 6004 12145 ac_check_lib_save_LIBS=$LIBS 6005 12146 LIBS="-lz $LIBS" 6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12147 cat >conftest.$ac_ext <<_ACEOF 12148 /* confdefs.h. */ 12149 _ACEOF 12150 cat confdefs.h >>conftest.$ac_ext 12151 cat >>conftest.$ac_ext <<_ACEOF 6007 12152 /* end confdefs.h. */ 6008 12153 … … 6022 12167 } 6023 12168 _ACEOF 6024 if ac_fn_c_try_link "$LINENO"; then : 12169 rm -f conftest.$ac_objext conftest$ac_exeext 12170 if { (ac_try="$ac_link" 12171 case "(($ac_try" in 12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12173 *) ac_try_echo=$ac_try;; 12174 esac 12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12176 (eval "$ac_link") 2>conftest.er1 12177 ac_status=$? 12178 grep -v '^ *+' conftest.er1 >conftest.err 12179 rm -f conftest.er1 12180 cat conftest.err >&5 12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12182 (exit $ac_status); } && { 12183 test -z "$ac_c_werror_flag" || 12184 test ! -s conftest.err 12185 } && test -s conftest$ac_exeext && 12186 $as_test_x conftest$ac_exeext; then 6025 12187 ac_cv_lib_z_deflate=yes 6026 12188 else 6027 ac_cv_lib_z_deflate=no 6028 fi 6029 rm -f core conftest.err conftest.$ac_objext \ 6030 conftest$ac_exeext conftest.$ac_ext 12189 echo "$as_me: failed program was:" >&5 12190 sed 's/^/| /' conftest.$ac_ext >&5 12191 12192 ac_cv_lib_z_deflate=no 12193 fi 12194 12195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12196 conftest$ac_exeext conftest.$ac_ext 6031 12197 LIBS=$ac_check_lib_save_LIBS 6032 12198 fi 6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&56034 $as_echo "$ac_cv_lib_z_deflate" >&6; }6035 if test "x$ac_cv_lib_z_deflate" = x""yes; then :12199 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 12200 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; } 12201 if test $ac_cv_lib_z_deflate = yes; then 6036 12202 cat >>confdefs.h <<_ACEOF 6037 12203 #define HAVE_LIBZ 1 … … 6046 12212 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then 6047 12213 FFMPEG_PREFIX=$with_ffmpeg 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&56049 $as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }12214 { echo "$as_me:$LINENO: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5 12215 echo "${ECHO_T}Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; } 6050 12216 LIBS="-L$FFMPEG_PREFIX/lib $LIBS" 6051 12217 LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS" … … 6053 12219 fi 6054 12220 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&56056 $as_echo_n "checking for avdevice_version in -lavdevice..." >&6; }6057 if test "${ac_cv_lib_avdevice_avdevice_version+set}" = set; then :6058 $as_echo_n "(cached)" >&612221 { echo "$as_me:$LINENO: checking for avdevice_version in -lavdevice" >&5 12222 echo $ECHO_N "checking for avdevice_version in -lavdevice... $ECHO_C" >&6; } 12223 if test "${ac_cv_lib_avdevice_avdevice_version+set}" = set; then 12224 echo $ECHO_N "(cached) $ECHO_C" >&6 6059 12225 else 6060 12226 ac_check_lib_save_LIBS=$LIBS 6061 12227 LIBS="-lavdevice $LIBS" 6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12228 cat >conftest.$ac_ext <<_ACEOF 12229 /* confdefs.h. */ 12230 _ACEOF 12231 cat confdefs.h >>conftest.$ac_ext 12232 cat >>conftest.$ac_ext <<_ACEOF 6063 12233 /* end confdefs.h. */ 6064 12234 … … 6078 12248 } 6079 12249 _ACEOF 6080 if ac_fn_c_try_link "$LINENO"; then : 12250 rm -f conftest.$ac_objext conftest$ac_exeext 12251 if { (ac_try="$ac_link" 12252 case "(($ac_try" in 12253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12254 *) ac_try_echo=$ac_try;; 12255 esac 12256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12257 (eval "$ac_link") 2>conftest.er1 12258 ac_status=$? 12259 grep -v '^ *+' conftest.er1 >conftest.err 12260 rm -f conftest.er1 12261 cat conftest.err >&5 12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12263 (exit $ac_status); } && { 12264 test -z "$ac_c_werror_flag" || 12265 test ! -s conftest.err 12266 } && test -s conftest$ac_exeext && 12267 $as_test_x conftest$ac_exeext; then 6081 12268 ac_cv_lib_avdevice_avdevice_version=yes 6082 12269 else 6083 ac_cv_lib_avdevice_avdevice_version=no 6084 fi 6085 rm -f core conftest.err conftest.$ac_objext \ 6086 conftest$ac_exeext conftest.$ac_ext 12270 echo "$as_me: failed program was:" >&5 12271 sed 's/^/| /' conftest.$ac_ext >&5 12272 12273 ac_cv_lib_avdevice_avdevice_version=no 12274 fi 12275 12276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12277 conftest$ac_exeext conftest.$ac_ext 6087 12278 LIBS=$ac_check_lib_save_LIBS 6088 12279 fi 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&56090 $as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; }6091 if test "x$ac_cv_lib_avdevice_avdevice_version" = x""yes; then :12280 { echo "$as_me:$LINENO: result: $ac_cv_lib_avdevice_avdevice_version" >&5 12281 echo "${ECHO_T}$ac_cv_lib_avdevice_avdevice_version" >&6; } 12282 if test $ac_cv_lib_avdevice_avdevice_version = yes; then 6092 12283 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1" 6093 12284 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice" … … 6096 12287 fi 6097 12288 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&56099 $as_echo_n "checking for av_register_all in -lavformat..." >&6; }6100 if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then :6101 $as_echo_n "(cached)" >&612289 { echo "$as_me:$LINENO: checking for av_register_all in -lavformat" >&5 12290 echo $ECHO_N "checking for av_register_all in -lavformat... $ECHO_C" >&6; } 12291 if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then 12292 echo $ECHO_N "(cached) $ECHO_C" >&6 6102 12293 else 6103 12294 ac_check_lib_save_LIBS=$LIBS 6104 12295 LIBS="-lavformat -lavcodec -lavutil 6105 12296 $LIBS" 6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12297 cat >conftest.$ac_ext <<_ACEOF 12298 /* confdefs.h. */ 12299 _ACEOF 12300 cat confdefs.h >>conftest.$ac_ext 12301 cat >>conftest.$ac_ext <<_ACEOF 6107 12302 /* end confdefs.h. */ 6108 12303 … … 6122 12317 } 6123 12318 _ACEOF 6124 if ac_fn_c_try_link "$LINENO"; then : 12319 rm -f conftest.$ac_objext conftest$ac_exeext 12320 if { (ac_try="$ac_link" 12321 case "(($ac_try" in 12322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12323 *) ac_try_echo=$ac_try;; 12324 esac 12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12326 (eval "$ac_link") 2>conftest.er1 12327 ac_status=$? 12328 grep -v '^ *+' conftest.er1 >conftest.err 12329 rm -f conftest.er1 12330 cat conftest.err >&5 12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12332 (exit $ac_status); } && { 12333 test -z "$ac_c_werror_flag" || 12334 test ! -s conftest.err 12335 } && test -s conftest$ac_exeext && 12336 $as_test_x conftest$ac_exeext; then 6125 12337 ac_cv_lib_avformat_av_register_all=yes 6126 12338 else 6127 ac_cv_lib_avformat_av_register_all=no 6128 fi 6129 rm -f core conftest.err conftest.$ac_objext \ 6130 conftest$ac_exeext conftest.$ac_ext 12339 echo "$as_me: failed program was:" >&5 12340 sed 's/^/| /' conftest.$ac_ext >&5 12341 12342 ac_cv_lib_avformat_av_register_all=no 12343 fi 12344 12345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12346 conftest$ac_exeext conftest.$ac_ext 6131 12347 LIBS=$ac_check_lib_save_LIBS 6132 12348 fi 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&56134 $as_echo "$ac_cv_lib_avformat_av_register_all" >&6; }6135 if test "x$ac_cv_lib_avformat_av_register_all" = x""yes; then :12349 { echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_av_register_all" >&5 12350 echo "${ECHO_T}$ac_cv_lib_avformat_av_register_all" >&6; } 12351 if test $ac_cv_lib_avformat_av_register_all = yes; then 6136 12352 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1" 6137 12353 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat" … … 6139 12355 fi 6140 12356 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&56142 $as_echo_n "checking for avcodec_init in -lavcodec..." >&6; }6143 if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then :6144 $as_echo_n "(cached)" >&612357 { echo "$as_me:$LINENO: checking for avcodec_init in -lavcodec" >&5 12358 echo $ECHO_N "checking for avcodec_init in -lavcodec... $ECHO_C" >&6; } 12359 if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then 12360 echo $ECHO_N "(cached) $ECHO_C" >&6 6145 12361 else 6146 12362 ac_check_lib_save_LIBS=$LIBS 6147 12363 LIBS="-lavcodec -lavutil 6148 12364 $LIBS" 6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12365 cat >conftest.$ac_ext <<_ACEOF 12366 /* confdefs.h. */ 12367 _ACEOF 12368 cat confdefs.h >>conftest.$ac_ext 12369 cat >>conftest.$ac_ext <<_ACEOF 6150 12370 /* end confdefs.h. */ 6151 12371 … … 6165 12385 } 6166 12386 _ACEOF 6167 if ac_fn_c_try_link "$LINENO"; then : 12387 rm -f conftest.$ac_objext conftest$ac_exeext 12388 if { (ac_try="$ac_link" 12389 case "(($ac_try" in 12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12391 *) ac_try_echo=$ac_try;; 12392 esac 12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12394 (eval "$ac_link") 2>conftest.er1 12395 ac_status=$? 12396 grep -v '^ *+' conftest.er1 >conftest.err 12397 rm -f conftest.er1 12398 cat conftest.err >&5 12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12400 (exit $ac_status); } && { 12401 test -z "$ac_c_werror_flag" || 12402 test ! -s conftest.err 12403 } && test -s conftest$ac_exeext && 12404 $as_test_x conftest$ac_exeext; then 6168 12405 ac_cv_lib_avcodec_avcodec_init=yes 6169 12406 else 6170 ac_cv_lib_avcodec_avcodec_init=no 6171 fi 6172 rm -f core conftest.err conftest.$ac_objext \ 6173 conftest$ac_exeext conftest.$ac_ext 12407 echo "$as_me: failed program was:" >&5 12408 sed 's/^/| /' conftest.$ac_ext >&5 12409 12410 ac_cv_lib_avcodec_avcodec_init=no 12411 fi 12412 12413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12414 conftest$ac_exeext conftest.$ac_ext 6174 12415 LIBS=$ac_check_lib_save_LIBS 6175 12416 fi 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&56177 $as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; }6178 if test "x$ac_cv_lib_avcodec_avcodec_init" = x""yes; then :12417 { echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_init" >&5 12418 echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_init" >&6; } 12419 if test $ac_cv_lib_avcodec_avcodec_init = yes; then 6179 12420 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1" 6180 12421 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec" … … 6182 12423 fi 6183 12424 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&56185 $as_echo_n "checking for sws_scale in -lswscale..." >&6; }6186 if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then :6187 $as_echo_n "(cached)" >&612425 { echo "$as_me:$LINENO: checking for sws_scale in -lswscale" >&5 12426 echo $ECHO_N "checking for sws_scale in -lswscale... $ECHO_C" >&6; } 12427 if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then 12428 echo $ECHO_N "(cached) $ECHO_C" >&6 6188 12429 else 6189 12430 ac_check_lib_save_LIBS=$LIBS 6190 12431 LIBS="-lswscale -lavutil 6191 12432 $LIBS" 6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12433 cat >conftest.$ac_ext <<_ACEOF 12434 /* confdefs.h. */ 12435 _ACEOF 12436 cat confdefs.h >>conftest.$ac_ext 12437 cat >>conftest.$ac_ext <<_ACEOF 6193 12438 /* end confdefs.h. */ 6194 12439 … … 6208 12453 } 6209 12454 _ACEOF 6210 if ac_fn_c_try_link "$LINENO"; then : 12455 rm -f conftest.$ac_objext conftest$ac_exeext 12456 if { (ac_try="$ac_link" 12457 case "(($ac_try" in 12458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12459 *) ac_try_echo=$ac_try;; 12460 esac 12461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12462 (eval "$ac_link") 2>conftest.er1 12463 ac_status=$? 12464 grep -v '^ *+' conftest.er1 >conftest.err 12465 rm -f conftest.er1 12466 cat conftest.err >&5 12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12468 (exit $ac_status); } && { 12469 test -z "$ac_c_werror_flag" || 12470 test ! -s conftest.err 12471 } && test -s conftest$ac_exeext && 12472 $as_test_x conftest$ac_exeext; then 6211 12473 ac_cv_lib_swscale_sws_scale=yes 6212 12474 else 6213 ac_cv_lib_swscale_sws_scale=no 6214 fi 6215 rm -f core conftest.err conftest.$ac_objext \ 6216 conftest$ac_exeext conftest.$ac_ext 12475 echo "$as_me: failed program was:" >&5 12476 sed 's/^/| /' conftest.$ac_ext >&5 12477 12478 ac_cv_lib_swscale_sws_scale=no 12479 fi 12480 12481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12482 conftest$ac_exeext conftest.$ac_ext 6217 12483 LIBS=$ac_check_lib_save_LIBS 6218 12484 fi 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&56220 $as_echo "$ac_cv_lib_swscale_sws_scale" >&6; }6221 if test "x$ac_cv_lib_swscale_sws_scale" = x""yes; then :12485 { echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_sws_scale" >&5 12486 echo "${ECHO_T}$ac_cv_lib_swscale_sws_scale" >&6; } 12487 if test $ac_cv_lib_swscale_sws_scale = yes; then 6222 12488 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1" 6223 12489 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale" … … 6225 12491 fi 6226 12492 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&56228 $as_echo_n "checking for av_malloc in -lavutil..." >&6; }6229 if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then :6230 $as_echo_n "(cached)" >&612493 { echo "$as_me:$LINENO: checking for av_malloc in -lavutil" >&5 12494 echo $ECHO_N "checking for av_malloc in -lavutil... $ECHO_C" >&6; } 12495 if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then 12496 echo $ECHO_N "(cached) $ECHO_C" >&6 6231 12497 else 6232 12498 ac_check_lib_save_LIBS=$LIBS 6233 12499 LIBS="-lavutil $LIBS" 6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12500 cat >conftest.$ac_ext <<_ACEOF 12501 /* confdefs.h. */ 12502 _ACEOF 12503 cat confdefs.h >>conftest.$ac_ext 12504 cat >>conftest.$ac_ext <<_ACEOF 6235 12505 /* end confdefs.h. */ 6236 12506 … … 6250 12520 } 6251 12521 _ACEOF 6252 if ac_fn_c_try_link "$LINENO"; then : 12522 rm -f conftest.$ac_objext conftest$ac_exeext 12523 if { (ac_try="$ac_link" 12524 case "(($ac_try" in 12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12526 *) ac_try_echo=$ac_try;; 12527 esac 12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12529 (eval "$ac_link") 2>conftest.er1 12530 ac_status=$? 12531 grep -v '^ *+' conftest.er1 >conftest.err 12532 rm -f conftest.er1 12533 cat conftest.err >&5 12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12535 (exit $ac_status); } && { 12536 test -z "$ac_c_werror_flag" || 12537 test ! -s conftest.err 12538 } && test -s conftest$ac_exeext && 12539 $as_test_x conftest$ac_exeext; then 6253 12540 ac_cv_lib_avutil_av_malloc=yes 6254 12541 else 6255 ac_cv_lib_avutil_av_malloc=no 6256 fi 6257 rm -f core conftest.err conftest.$ac_objext \ 6258 conftest$ac_exeext conftest.$ac_ext 12542 echo "$as_me: failed program was:" >&5 12543 sed 's/^/| /' conftest.$ac_ext >&5 12544 12545 ac_cv_lib_avutil_av_malloc=no 12546 fi 12547 12548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12549 conftest$ac_exeext conftest.$ac_ext 6259 12550 LIBS=$ac_check_lib_save_LIBS 6260 12551 fi 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&56262 $as_echo "$ac_cv_lib_avutil_av_malloc" >&6; }6263 if test "x$ac_cv_lib_avutil_av_malloc" = x""yes; then :12552 { echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_av_malloc" >&5 12553 echo "${ECHO_T}$ac_cv_lib_avutil_av_malloc" >&6; } 12554 if test $ac_cv_lib_avutil_av_malloc = yes; then 6264 12555 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1" 6265 12556 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil" … … 6268 12559 fi 6269 12560 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&56271 $as_echo_n "checking for avcore_version in -lavcore..." >&6; }6272 if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then :6273 $as_echo_n "(cached)" >&612561 { echo "$as_me:$LINENO: checking for avcore_version in -lavcore" >&5 12562 echo $ECHO_N "checking for avcore_version in -lavcore... $ECHO_C" >&6; } 12563 if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then 12564 echo $ECHO_N "(cached) $ECHO_C" >&6 6274 12565 else 6275 12566 ac_check_lib_save_LIBS=$LIBS 6276 12567 LIBS="-lavcore $LIBS" 6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12568 cat >conftest.$ac_ext <<_ACEOF 12569 /* confdefs.h. */ 12570 _ACEOF 12571 cat confdefs.h >>conftest.$ac_ext 12572 cat >>conftest.$ac_ext <<_ACEOF 6278 12573 /* end confdefs.h. */ 6279 12574 … … 6293 12588 } 6294 12589 _ACEOF 6295 if ac_fn_c_try_link "$LINENO"; then : 12590 rm -f conftest.$ac_objext conftest$ac_exeext 12591 if { (ac_try="$ac_link" 12592 case "(($ac_try" in 12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12594 *) ac_try_echo=$ac_try;; 12595 esac 12596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12597 (eval "$ac_link") 2>conftest.er1 12598 ac_status=$? 12599 grep -v '^ *+' conftest.er1 >conftest.err 12600 rm -f conftest.er1 12601 cat conftest.err >&5 12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12603 (exit $ac_status); } && { 12604 test -z "$ac_c_werror_flag" || 12605 test ! -s conftest.err 12606 } && test -s conftest$ac_exeext && 12607 $as_test_x conftest$ac_exeext; then 6296 12608 ac_cv_lib_avcore_avcore_version=yes 6297 12609 else 6298 ac_cv_lib_avcore_avcore_version=no 6299 fi 6300 rm -f core conftest.err conftest.$ac_objext \ 6301 conftest$ac_exeext conftest.$ac_ext 12610 echo "$as_me: failed program was:" >&5 12611 sed 's/^/| /' conftest.$ac_ext >&5 12612 12613 ac_cv_lib_avcore_avcore_version=no 12614 fi 12615 12616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12617 conftest$ac_exeext conftest.$ac_ext 6302 12618 LIBS=$ac_check_lib_save_LIBS 6303 12619 fi 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&56305 $as_echo "$ac_cv_lib_avcore_avcore_version" >&6; }6306 if test "x$ac_cv_lib_avcore_avcore_version" = x""yes; then :12620 { echo "$as_me:$LINENO: result: $ac_cv_lib_avcore_avcore_version" >&5 12621 echo "${ECHO_T}$ac_cv_lib_avcore_avcore_version" >&6; } 12622 if test $ac_cv_lib_avcore_avcore_version = yes; then 6307 12623 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1" 6308 12624 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore" … … 6319 12635 6320 12636 # Check whether --with-ffmpeg was given. 6321 if test "${with_ffmpeg+set}" = set; then :12637 if test "${with_ffmpeg+set}" = set; then 6322 12638 withval=$with_ffmpeg; 6323 12639 else … … 6329 12645 6330 12646 # Check whether --enable-v4l2 was given. 6331 if test "${enable_v4l2+set}" = set; then :12647 if test "${enable_v4l2+set}" = set; then 6332 12648 enableval=$enable_v4l2; 6333 12649 if test "$enable_v4l2" = "no"; then 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&56335 $as_echo "Checking if V4L2 is disabled... yes" >&6; }12650 { echo "$as_me:$LINENO: result: Checking if V4L2 is disabled... yes" >&5 12651 echo "${ECHO_T}Checking if V4L2 is disabled... yes" >&6; } 6336 12652 fi 6337 12653 … … 6340 12656 6341 12657 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&56343 $as_echo_n "checking for v4l2_open in -lv4l2..." >&6; }6344 if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then :6345 $as_echo_n "(cached)" >&612658 { echo "$as_me:$LINENO: checking for v4l2_open in -lv4l2" >&5 12659 echo $ECHO_N "checking for v4l2_open in -lv4l2... $ECHO_C" >&6; } 12660 if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then 12661 echo $ECHO_N "(cached) $ECHO_C" >&6 6346 12662 else 6347 12663 ac_check_lib_save_LIBS=$LIBS 6348 12664 LIBS="-lv4l2 $LIBS" 6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12665 cat >conftest.$ac_ext <<_ACEOF 12666 /* confdefs.h. */ 12667 _ACEOF 12668 cat confdefs.h >>conftest.$ac_ext 12669 cat >>conftest.$ac_ext <<_ACEOF 6350 12670 /* end confdefs.h. */ 6351 12671 … … 6365 12685 } 6366 12686 _ACEOF 6367 if ac_fn_c_try_link "$LINENO"; then : 12687 rm -f conftest.$ac_objext conftest$ac_exeext 12688 if { (ac_try="$ac_link" 12689 case "(($ac_try" in 12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12691 *) ac_try_echo=$ac_try;; 12692 esac 12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12694 (eval "$ac_link") 2>conftest.er1 12695 ac_status=$? 12696 grep -v '^ *+' conftest.er1 >conftest.err 12697 rm -f conftest.er1 12698 cat conftest.err >&5 12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12700 (exit $ac_status); } && { 12701 test -z "$ac_c_werror_flag" || 12702 test ! -s conftest.err 12703 } && test -s conftest$ac_exeext && 12704 $as_test_x conftest$ac_exeext; then 6368 12705 ac_cv_lib_v4l2_v4l2_open=yes 6369 12706 else 6370 ac_cv_lib_v4l2_v4l2_open=no 6371 fi 6372 rm -f core conftest.err conftest.$ac_objext \ 6373 conftest$ac_exeext conftest.$ac_ext 12707 echo "$as_me: failed program was:" >&5 12708 sed 's/^/| /' conftest.$ac_ext >&5 12709 12710 ac_cv_lib_v4l2_v4l2_open=no 12711 fi 12712 12713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12714 conftest$ac_exeext conftest.$ac_ext 6374 12715 LIBS=$ac_check_lib_save_LIBS 6375 12716 fi 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&56377 $as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; }6378 if test "x$ac_cv_lib_v4l2_v4l2_open" = x""yes; then :12717 { echo "$as_me:$LINENO: result: $ac_cv_lib_v4l2_v4l2_open" >&5 12718 echo "${ECHO_T}$ac_cv_lib_v4l2_v4l2_open" >&6; } 12719 if test $ac_cv_lib_v4l2_v4l2_open = yes; then 6379 12720 ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1" 6380 12721 ac_v4l2_ldflags="-lv4l2" … … 6389 12730 6390 12731 # Check whether --enable-ipp was given. 6391 if test "${enable_ipp+set}" = set; then :12732 if test "${enable_ipp+set}" = set; then 6392 12733 enableval=$enable_ipp; 6393 12734 else … … 6399 12740 6400 12741 # Check whether --with-ipp was given. 6401 if test "${with_ipp+set}" = set; then :12742 if test "${with_ipp+set}" = set; then 6402 12743 withval=$with_ipp; 6403 12744 else … … 6409 12750 6410 12751 # Check whether --with-ipp-samples was given. 6411 if test "${with_ipp_samples+set}" = set; then :12752 if test "${with_ipp_samples+set}" = set; then 6412 12753 withval=$with_ipp_samples; 6413 12754 else … … 6419 12760 6420 12761 # Check whether --with-ipp-arch was given. 6421 if test "${with_ipp_arch+set}" = set; then :12762 if test "${with_ipp_arch+set}" = set; then 6422 12763 withval=$with_ipp_arch; 6423 12764 else … … 6428 12769 6429 12770 if test "x$enable_ipp" != "xno"; then 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&56431 $as_echo_n "checking Intel IPP location..." >&6; }12771 { echo "$as_me:$LINENO: checking Intel IPP location" >&5 12772 echo $ECHO_N "checking Intel IPP location... $ECHO_C" >&6; } 6432 12773 6433 12774 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&56435 $as_echo "$with_ipp" >&6; }12775 { echo "$as_me:$LINENO: result: $with_ipp" >&5 12776 echo "${ECHO_T}$with_ipp" >&6; } 6436 12777 IPPROOT=$with_ipp 6437 12778 elif test "x$IPPROOT" = "x"; then 6438 12779 if test -d /opt/intel/ipp; then 6439 12780 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1` 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&56441 $as_echo "autodetected in $IPPROOT" >&6; }12781 { echo "$as_me:$LINENO: result: autodetected in $IPPROOT" >&5 12782 echo "${ECHO_T}autodetected in $IPPROOT" >&6; } 6442 12783 fi 6443 12784 else 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&56445 $as_echo "$IPPROOT" >&6; }12785 { echo "$as_me:$LINENO: result: $IPPROOT" >&5 12786 echo "${ECHO_T}$IPPROOT" >&6; } 6446 12787 fi 6447 12788 6448 12789 if test "x$with_ipp_arch" != "xno"; then 6449 12790 IPP_SUFFIX=$with_ipp_arch 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&56451 $as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }12791 { echo "$as_me:$LINENO: result: IPP arch suffix is set to $IPP_SUFFIX" >&5 12792 echo "${ECHO_T}IPP arch suffix is set to $IPP_SUFFIX" >&6; } 6452 12793 else 6453 12794 IPP_SUFFIX="" 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&56455 $as_echo "IPP arch suffix is set to empty" >&6; }12795 { echo "$as_me:$LINENO: result: IPP arch suffix is set to empty" >&5 12796 echo "${ECHO_T}IPP arch suffix is set to empty" >&6; } 6456 12797 fi 6457 12798 6458 12799 if test x$IPPROOT = x; then 6459 as_fn_error "the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" "$LINENO" 5 12800 { { 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 12801 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;} 12802 { (exit 1); exit 1; }; } 6460 12803 elif test ! -d $IPPROOT; then 6461 as_fn_error "not found" "$LINENO" 5 12804 { { echo "$as_me:$LINENO: error: not found" >&5 12805 echo "$as_me: error: not found" >&2;} 12806 { (exit 1); exit 1; }; } 6462 12807 elif test ! -d $IPPROOT/include; then 6463 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5 12808 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5 12809 echo "$as_me: error: directory doesn't seem to be valid" >&2;} 12810 { (exit 1); exit 1; }; } 6464 12811 else 6465 12812 # IPP directory looks okay. … … 6498 12845 # IPP7 6499 12846 if ! test -d $IPPROOT/../compiler; then 6500 as_fn_error "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5 12847 { { echo "$as_me:$LINENO: error: Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" >&5 12848 echo "$as_me: error: Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" >&2;} 12849 { (exit 1); exit 1; }; } 6501 12850 fi 6502 12851 IPP_CFLAGS="$IPP_CFLAGS" … … 6516 12865 6517 12866 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5 6519 $as_echo_n "checking Intel IPP usability... " >&6; } 6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12867 { echo "$as_me:$LINENO: checking Intel IPP usability" >&5 12868 echo $ECHO_N "checking Intel IPP usability... $ECHO_C" >&6; } 12869 cat >conftest.$ac_ext <<_ACEOF 12870 /* confdefs.h. */ 12871 _ACEOF 12872 cat confdefs.h >>conftest.$ac_ext 12873 cat >>conftest.$ac_ext <<_ACEOF 6521 12874 /* end confdefs.h. */ 6522 12875 #include <ippcore.h> … … 6530 12883 } 6531 12884 _ACEOF 6532 if ac_fn_c_try_link "$LINENO"; then : 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6534 $as_echo "ok" >&6; } 6535 else 6536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6538 { as_fn_set_status run with --help for more info 6539 as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly 6540 See \`config.log' for more details." "$LINENO" 5; }; } 6541 fi 6542 rm -f core conftest.err conftest.$ac_objext \ 6543 conftest$ac_exeext conftest.$ac_ext 12885 rm -f conftest.$ac_objext conftest$ac_exeext 12886 if { (ac_try="$ac_link" 12887 case "(($ac_try" in 12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12889 *) ac_try_echo=$ac_try;; 12890 esac 12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12892 (eval "$ac_link") 2>conftest.er1 12893 ac_status=$? 12894 grep -v '^ *+' conftest.er1 >conftest.err 12895 rm -f conftest.er1 12896 cat conftest.err >&5 12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12898 (exit $ac_status); } && { 12899 test -z "$ac_c_werror_flag" || 12900 test ! -s conftest.err 12901 } && test -s conftest$ac_exeext && 12902 $as_test_x conftest$ac_exeext; then 12903 { echo "$as_me:$LINENO: result: ok" >&5 12904 echo "${ECHO_T}ok" >&6; } 12905 else 12906 echo "$as_me: failed program was:" >&5 12907 sed 's/^/| /' conftest.$ac_ext >&5 12908 12909 { { echo "$as_me:$LINENO: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly 12910 See \`config.log' for more details." >&5 12911 echo "$as_me: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly 12912 See \`config.log' for more details." >&2;} 12913 { (exit run with --help for more info); exit run with --help for more info; }; } 12914 fi 12915 12916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12917 conftest$ac_exeext conftest.$ac_ext 6544 12918 6545 12919 CFLAGS="$SAVED_CFLAGS" … … 6548 12922 fi 6549 12923 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&56551 $as_echo_n "checking Intel IPP samples location..." >&6; }12924 { echo "$as_me:$LINENO: checking Intel IPP samples location" >&5 12925 echo $ECHO_N "checking Intel IPP samples location... $ECHO_C" >&6; } 6552 12926 6553 12927 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&56555 $as_echo "$with_ipp_samples" >&6; }12928 { echo "$as_me:$LINENO: result: $with_ipp_samples" >&5 12929 echo "${ECHO_T}$with_ipp_samples" >&6; } 6556 12930 IPPSAMPLES=$with_ipp_samples 6557 12931 elif test "x$IPPSAMPLES" = "x"; then 6558 12932 if test -d /opt/intel/ipp-samples; then 6559 12933 IPPSAMPLES=/opt/intel/ipp-samples 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&56561 $as_echo "autodetected in $IPPSAMPLES" >&6; }12934 { echo "$as_me:$LINENO: result: autodetected in $IPPSAMPLES" >&5 12935 echo "${ECHO_T}autodetected in $IPPSAMPLES" >&6; } 6562 12936 fi 6563 12937 else 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&56565 $as_echo "$IPPSAMPLES" >&6; }12938 { echo "$as_me:$LINENO: result: $IPPSAMPLES" >&5 12939 echo "${ECHO_T}$IPPSAMPLES" >&6; } 6566 12940 fi 6567 12941 6568 12942 if test x$IPPSAMPLES = x; then 6569 as_fn_error "the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" "$LINENO" 5 12943 { { 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 12944 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;} 12945 { (exit 1); exit 1; }; } 6570 12946 elif test ! -d $IPPSAMPLES; then 6571 as_fn_error "not found" "$LINENO" 5 12947 { { echo "$as_me:$LINENO: error: not found" >&5 12948 echo "$as_me: error: not found" >&2;} 12949 { (exit 1); exit 1; }; } 6572 12950 elif test ! -d $IPPSAMPLES/speech-codecs; then 6573 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5 12951 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5 12952 echo "$as_me: error: directory doesn't seem to be valid" >&2;} 12953 { (exit 1); exit 1; }; } 6574 12954 else 6575 12955 # Remove trailing backslash … … 6577 12957 6578 12958 # Guess the libusc.a/libspeech.a build location 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&56580 $as_echo_n "checking Intel IPP USC build location..." >&6; }12959 { echo "$as_me:$LINENO: checking Intel IPP USC build location" >&5 12960 echo $ECHO_N "checking Intel IPP USC build location... $ECHO_C" >&6; } 6581 12961 if test -d $IPPSAMPLES/speech-codecs/bin; then 6582 12962 IPPVER=5 … … 6591 12971 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1` 6592 12972 else 6593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6595 as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? 6596 See \`config.log' for more details." "$LINENO" 5; } 12973 { { echo "$as_me:$LINENO: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? 12974 See \`config.log' for more details." >&5 12975 echo "$as_me: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? 12976 See \`config.log' for more details." >&2;} 12977 { (exit 1); exit 1; }; } 6597 12978 fi 6598 12979 else 6599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6601 as_fn_error "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples? 6602 See \`config.log' for more details." "$LINENO" 5; } 12980 { { 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? 12981 See \`config.log' for more details." >&5 12982 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? 12983 See \`config.log' for more details." >&2;} 12984 { (exit 1); exit 1; }; } 6603 12985 fi 6604 12986 6605 12987 # Test the directory 6606 12988 if test ! -d $IPPSAMP_DIR; then 6607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6609 as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist 6610 See \`config.log' for more details." "$LINENO" 5; } 12989 { { echo "$as_me:$LINENO: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist 12990 See \`config.log' for more details." >&5 12991 echo "$as_me: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist 12992 See \`config.log' for more details." >&2;} 12993 { (exit 1); exit 1; }; } 6611 12994 exit 1; 6612 12995 fi … … 6619 13002 IPPSAMP_LDLIBS="-lspeech" 6620 13003 else 6621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6623 as_fn_error "bug in this script: unsupported IPP version 6624 See \`config.log' for more details." "$LINENO" 5; } 13004 { { echo "$as_me:$LINENO: error: bug in this script: unsupported IPP version 13005 See \`config.log' for more details." >&5 13006 echo "$as_me: error: bug in this script: unsupported IPP version 13007 See \`config.log' for more details." >&2;} 13008 { (exit 1); exit 1; }; } 6625 13009 fi 6626 13010 6627 13011 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then 6628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6630 as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR 6631 See \`config.log' for more details." "$LINENO" 5; } 13012 { { echo "$as_me:$LINENO: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR 13013 See \`config.log' for more details." >&5 13014 echo "$as_me: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR 13015 See \`config.log' for more details." >&2;} 13016 { (exit 1); exit 1; }; } 6632 13017 fi 6633 13018 6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&56635 $as_echo "$IPPSAMP_DIR" >&6; }13019 { echo "$as_me:$LINENO: result: $IPPSAMP_DIR" >&5 13020 echo "${ECHO_T}$IPPSAMP_DIR" >&6; } 6636 13021 6637 13022 SAVED_CFLAGS="$CFLAGS" … … 6644 13029 LIBS="$IPPSAMP_LDLIBS $LIBS" 6645 13030 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5 6647 $as_echo_n "checking Intel IPP USC usability... " >&6; } 6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13031 { echo "$as_me:$LINENO: checking Intel IPP USC usability" >&5 13032 echo $ECHO_N "checking Intel IPP USC usability... $ECHO_C" >&6; } 13033 cat >conftest.$ac_ext <<_ACEOF 13034 /* confdefs.h. */ 13035 _ACEOF 13036 cat confdefs.h >>conftest.$ac_ext 13037 cat >>conftest.$ac_ext <<_ACEOF 6649 13038 /* end confdefs.h. */ 6650 13039 #include <usc.h> … … 6658 13047 } 6659 13048 _ACEOF 6660 if ac_fn_c_try_link "$LINENO"; then : 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6662 $as_echo "ok" >&6; } 6663 else 6664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6666 as_fn_error "failed 6667 See \`config.log' for more details." "$LINENO" 5; } 6668 fi 6669 rm -f core conftest.err conftest.$ac_objext \ 6670 conftest$ac_exeext conftest.$ac_ext 13049 rm -f conftest.$ac_objext conftest$ac_exeext 13050 if { (ac_try="$ac_link" 13051 case "(($ac_try" in 13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13053 *) ac_try_echo=$ac_try;; 13054 esac 13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13056 (eval "$ac_link") 2>conftest.er1 13057 ac_status=$? 13058 grep -v '^ *+' conftest.er1 >conftest.err 13059 rm -f conftest.er1 13060 cat conftest.err >&5 13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13062 (exit $ac_status); } && { 13063 test -z "$ac_c_werror_flag" || 13064 test ! -s conftest.err 13065 } && test -s conftest$ac_exeext && 13066 $as_test_x conftest$ac_exeext; then 13067 { echo "$as_me:$LINENO: result: ok" >&5 13068 echo "${ECHO_T}ok" >&6; } 13069 else 13070 echo "$as_me: failed program was:" >&5 13071 sed 's/^/| /' conftest.$ac_ext >&5 13072 13073 { { echo "$as_me:$LINENO: error: failed 13074 See \`config.log' for more details." >&5 13075 echo "$as_me: error: failed 13076 See \`config.log' for more details." >&2;} 13077 { (exit 1); exit 1; }; } 13078 fi 13079 13080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13081 conftest$ac_exeext conftest.$ac_ext 6671 13082 6672 13083 CFLAGS="$SAVED_CFLAGS" … … 6688 13099 export IPP_LIBS=$IPP_LIBS" 6689 13100 else 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&56691 $as_echo "Skipping Intel IPP settings (not wanted)" >&6; }13101 { echo "$as_me:$LINENO: result: Skipping Intel IPP settings (not wanted)" >&5 13102 echo "${ECHO_T}Skipping Intel IPP settings (not wanted)" >&6; } 6692 13103 fi 6693 13104 … … 6696 13107 6697 13108 # Check whether --enable-ssl was given. 6698 if test "${enable_ssl+set}" = set; then :13109 if test "${enable_ssl+set}" = set; then 6699 13110 enableval=$enable_ssl; 6700 13111 if test "$enable_ssl" = "no"; then 6701 13112 ac_no_ssl=1 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&56703 $as_echo "Checking if SSL support is disabled... yes" >&6; }13113 { echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5 13114 echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6; } 6704 13115 fi 6705 13116 6706 13117 else 6707 13118 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5 6709 $as_echo "checking for OpenSSL installations.." >&6; } 6710 6711 6712 6713 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 6714 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then : 13119 { echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5 13120 echo "${ECHO_T}checking for OpenSSL installations.." >&6; } 13121 13122 13123 13124 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then 13125 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 13126 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } 13127 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then 13128 echo $ECHO_N "(cached) $ECHO_C" >&6 13129 fi 13130 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 13131 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } 13132 else 13133 # Is the header compilable? 13134 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 13135 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; } 13136 cat >conftest.$ac_ext <<_ACEOF 13137 /* confdefs.h. */ 13138 _ACEOF 13139 cat confdefs.h >>conftest.$ac_ext 13140 cat >>conftest.$ac_ext <<_ACEOF 13141 /* end confdefs.h. */ 13142 $ac_includes_default 13143 #include <openssl/ssl.h> 13144 _ACEOF 13145 rm -f conftest.$ac_objext 13146 if { (ac_try="$ac_compile" 13147 case "(($ac_try" in 13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13149 *) ac_try_echo=$ac_try;; 13150 esac 13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13152 (eval "$ac_compile") 2>conftest.er1 13153 ac_status=$? 13154 grep -v '^ *+' conftest.er1 >conftest.err 13155 rm -f conftest.er1 13156 cat conftest.err >&5 13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13158 (exit $ac_status); } && { 13159 test -z "$ac_c_werror_flag" || 13160 test ! -s conftest.err 13161 } && test -s conftest.$ac_objext; then 13162 ac_header_compiler=yes 13163 else 13164 echo "$as_me: failed program was:" >&5 13165 sed 's/^/| /' conftest.$ac_ext >&5 13166 13167 ac_header_compiler=no 13168 fi 13169 13170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13172 echo "${ECHO_T}$ac_header_compiler" >&6; } 13173 13174 # Is the header present? 13175 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 13176 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; } 13177 cat >conftest.$ac_ext <<_ACEOF 13178 /* confdefs.h. */ 13179 _ACEOF 13180 cat confdefs.h >>conftest.$ac_ext 13181 cat >>conftest.$ac_ext <<_ACEOF 13182 /* end confdefs.h. */ 13183 #include <openssl/ssl.h> 13184 _ACEOF 13185 if { (ac_try="$ac_cpp conftest.$ac_ext" 13186 case "(($ac_try" in 13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13188 *) ac_try_echo=$ac_try;; 13189 esac 13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13192 ac_status=$? 13193 grep -v '^ *+' conftest.er1 >conftest.err 13194 rm -f conftest.er1 13195 cat conftest.err >&5 13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13197 (exit $ac_status); } >/dev/null && { 13198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13199 test ! -s conftest.err 13200 }; then 13201 ac_header_preproc=yes 13202 else 13203 echo "$as_me: failed program was:" >&5 13204 sed 's/^/| /' conftest.$ac_ext >&5 13205 13206 ac_header_preproc=no 13207 fi 13208 13209 rm -f conftest.err conftest.$ac_ext 13210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13211 echo "${ECHO_T}$ac_header_preproc" >&6; } 13212 13213 # So? What about this header? 13214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13215 yes:no: ) 13216 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 13217 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13218 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 13219 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} 13220 ac_header_preproc=yes 13221 ;; 13222 no:yes:* ) 13223 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 13224 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} 13225 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 13226 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} 13227 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 13228 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} 13229 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 13230 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} 13231 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 13232 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} 13233 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 13234 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} 13235 13236 ;; 13237 esac 13238 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 13239 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } 13240 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then 13241 echo $ECHO_N "(cached) $ECHO_C" >&6 13242 else 13243 ac_cv_header_openssl_ssl_h=$ac_header_preproc 13244 fi 13245 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 13246 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } 13247 13248 fi 13249 if test $ac_cv_header_openssl_ssl_h = yes; then 6715 13250 openssl_h_present=1 6716 13251 fi 6717 13252 6718 13253 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&56720 $as_echo_n "checking for ERR_load_BIO_strings in -lcrypto..." >&6; }6721 if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then :6722 $as_echo_n "(cached)" >&613254 { echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5 13255 echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6; } 13256 if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then 13257 echo $ECHO_N "(cached) $ECHO_C" >&6 6723 13258 else 6724 13259 ac_check_lib_save_LIBS=$LIBS 6725 13260 LIBS="-lcrypto $LIBS" 6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13261 cat >conftest.$ac_ext <<_ACEOF 13262 /* confdefs.h. */ 13263 _ACEOF 13264 cat confdefs.h >>conftest.$ac_ext 13265 cat >>conftest.$ac_ext <<_ACEOF 6727 13266 /* end confdefs.h. */ 6728 13267 … … 6742 13281 } 6743 13282 _ACEOF 6744 if ac_fn_c_try_link "$LINENO"; then : 13283 rm -f conftest.$ac_objext conftest$ac_exeext 13284 if { (ac_try="$ac_link" 13285 case "(($ac_try" in 13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13287 *) ac_try_echo=$ac_try;; 13288 esac 13289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13290 (eval "$ac_link") 2>conftest.er1 13291 ac_status=$? 13292 grep -v '^ *+' conftest.er1 >conftest.err 13293 rm -f conftest.er1 13294 cat conftest.err >&5 13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13296 (exit $ac_status); } && { 13297 test -z "$ac_c_werror_flag" || 13298 test ! -s conftest.err 13299 } && test -s conftest$ac_exeext && 13300 $as_test_x conftest$ac_exeext; then 6745 13301 ac_cv_lib_crypto_ERR_load_BIO_strings=yes 6746 13302 else 6747 ac_cv_lib_crypto_ERR_load_BIO_strings=no 6748 fi 6749 rm -f core conftest.err conftest.$ac_objext \ 6750 conftest$ac_exeext conftest.$ac_ext 13303 echo "$as_me: failed program was:" >&5 13304 sed 's/^/| /' conftest.$ac_ext >&5 13305 13306 ac_cv_lib_crypto_ERR_load_BIO_strings=no 13307 fi 13308 13309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13310 conftest$ac_exeext conftest.$ac_ext 6751 13311 LIBS=$ac_check_lib_save_LIBS 6752 13312 fi 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&56754 $as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }6755 if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = x""yes; then :13313 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 13314 echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; } 13315 if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then 6756 13316 libcrypto_present=1 && LIBS="$LIBS -lcrypto" 6757 13317 fi 6758 13318 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&56760 $as_echo_n "checking for SSL_library_init in -lssl..." >&6; }6761 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :6762 $as_echo_n "(cached)" >&613319 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 13320 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; } 13321 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then 13322 echo $ECHO_N "(cached) $ECHO_C" >&6 6763 13323 else 6764 13324 ac_check_lib_save_LIBS=$LIBS 6765 13325 LIBS="-lssl $LIBS" 6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13326 cat >conftest.$ac_ext <<_ACEOF 13327 /* confdefs.h. */ 13328 _ACEOF 13329 cat confdefs.h >>conftest.$ac_ext 13330 cat >>conftest.$ac_ext <<_ACEOF 6767 13331 /* end confdefs.h. */ 6768 13332 … … 6782 13346 } 6783 13347 _ACEOF 6784 if ac_fn_c_try_link "$LINENO"; then : 13348 rm -f conftest.$ac_objext conftest$ac_exeext 13349 if { (ac_try="$ac_link" 13350 case "(($ac_try" in 13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13352 *) ac_try_echo=$ac_try;; 13353 esac 13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13355 (eval "$ac_link") 2>conftest.er1 13356 ac_status=$? 13357 grep -v '^ *+' conftest.er1 >conftest.err 13358 rm -f conftest.er1 13359 cat conftest.err >&5 13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13361 (exit $ac_status); } && { 13362 test -z "$ac_c_werror_flag" || 13363 test ! -s conftest.err 13364 } && test -s conftest$ac_exeext && 13365 $as_test_x conftest$ac_exeext; then 6785 13366 ac_cv_lib_ssl_SSL_library_init=yes 6786 13367 else 6787 ac_cv_lib_ssl_SSL_library_init=no 6788 fi 6789 rm -f core conftest.err conftest.$ac_objext \ 6790 conftest$ac_exeext conftest.$ac_ext 13368 echo "$as_me: failed program was:" >&5 13369 sed 's/^/| /' conftest.$ac_ext >&5 13370 13371 ac_cv_lib_ssl_SSL_library_init=no 13372 fi 13373 13374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13375 conftest$ac_exeext conftest.$ac_ext 6791 13376 LIBS=$ac_check_lib_save_LIBS 6792 13377 fi 6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&56794 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }6795 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :13378 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 13379 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; } 13380 if test $ac_cv_lib_ssl_SSL_library_init = yes; then 6796 13381 libssl_present=1 && LIBS="$LIBS -lssl" 6797 13382 fi 6798 13383 6799 13384 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&56801 $as_echo "OpenSSL library found, SSL support enabled" >&6; }13385 { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5 13386 echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; } 6802 13387 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK 6803 13388 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) 6804 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h 13389 cat >>confdefs.h <<\_ACEOF 13390 #define PJ_HAS_SSL_SOCK 1 13391 _ACEOF 6805 13392 6806 13393 else 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&56808 $as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }13394 { echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 13395 echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6; } 6809 13396 fi 6810 13397 … … 6813 13400 6814 13401 6815 6816 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5 6818 $as_echo_n "checking if select() needs correct nfds... " >&6; } 13402 # Check whether --enable-opencore_amrnb was given. 13403 if test "${enable_opencore_amrnb+set}" = set; then 13404 enableval=$enable_opencore_amrnb; 13405 if test "$enable_opencore_amrnb" = "no"; then 13406 ac_no_opencore_amrnb=1 13407 cat >>confdefs.h <<\_ACEOF 13408 #define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0 13409 _ACEOF 13410 13411 { echo "$as_me:$LINENO: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5 13412 echo "${ECHO_T}Checking if OpenCORE AMR-NB support is disabled... yes" >&6; } 13413 fi 13414 13415 else 13416 13417 { echo "$as_me:$LINENO: result: checking for OpenCORE AMR-NB installations.." >&5 13418 echo "${ECHO_T}checking for OpenCORE AMR-NB installations.." >&6; } 13419 13420 13421 if test "${ac_cv_header_opencore_amrnb_interf_enc_h+set}" = set; then 13422 { echo "$as_me:$LINENO: checking for opencore-amrnb/interf_enc.h" >&5 13423 echo $ECHO_N "checking for opencore-amrnb/interf_enc.h... $ECHO_C" >&6; } 13424 if test "${ac_cv_header_opencore_amrnb_interf_enc_h+set}" = set; then 13425 echo $ECHO_N "(cached) $ECHO_C" >&6 13426 fi 13427 { echo "$as_me:$LINENO: result: $ac_cv_header_opencore_amrnb_interf_enc_h" >&5 13428 echo "${ECHO_T}$ac_cv_header_opencore_amrnb_interf_enc_h" >&6; } 13429 else 13430 # Is the header compilable? 13431 { echo "$as_me:$LINENO: checking opencore-amrnb/interf_enc.h usability" >&5 13432 echo $ECHO_N "checking opencore-amrnb/interf_enc.h usability... $ECHO_C" >&6; } 13433 cat >conftest.$ac_ext <<_ACEOF 13434 /* confdefs.h. */ 13435 _ACEOF 13436 cat confdefs.h >>conftest.$ac_ext 13437 cat >>conftest.$ac_ext <<_ACEOF 13438 /* end confdefs.h. */ 13439 $ac_includes_default 13440 #include <opencore-amrnb/interf_enc.h> 13441 _ACEOF 13442 rm -f conftest.$ac_objext 13443 if { (ac_try="$ac_compile" 13444 case "(($ac_try" in 13445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13446 *) ac_try_echo=$ac_try;; 13447 esac 13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13449 (eval "$ac_compile") 2>conftest.er1 13450 ac_status=$? 13451 grep -v '^ *+' conftest.er1 >conftest.err 13452 rm -f conftest.er1 13453 cat conftest.err >&5 13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13455 (exit $ac_status); } && { 13456 test -z "$ac_c_werror_flag" || 13457 test ! -s conftest.err 13458 } && test -s conftest.$ac_objext; then 13459 ac_header_compiler=yes 13460 else 13461 echo "$as_me: failed program was:" >&5 13462 sed 's/^/| /' conftest.$ac_ext >&5 13463 13464 ac_header_compiler=no 13465 fi 13466 13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13469 echo "${ECHO_T}$ac_header_compiler" >&6; } 13470 13471 # Is the header present? 13472 { echo "$as_me:$LINENO: checking opencore-amrnb/interf_enc.h presence" >&5 13473 echo $ECHO_N "checking opencore-amrnb/interf_enc.h presence... $ECHO_C" >&6; } 13474 cat >conftest.$ac_ext <<_ACEOF 13475 /* confdefs.h. */ 13476 _ACEOF 13477 cat confdefs.h >>conftest.$ac_ext 13478 cat >>conftest.$ac_ext <<_ACEOF 13479 /* end confdefs.h. */ 13480 #include <opencore-amrnb/interf_enc.h> 13481 _ACEOF 13482 if { (ac_try="$ac_cpp conftest.$ac_ext" 13483 case "(($ac_try" in 13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13485 *) ac_try_echo=$ac_try;; 13486 esac 13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13489 ac_status=$? 13490 grep -v '^ *+' conftest.er1 >conftest.err 13491 rm -f conftest.er1 13492 cat conftest.err >&5 13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13494 (exit $ac_status); } >/dev/null && { 13495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13496 test ! -s conftest.err 13497 }; then 13498 ac_header_preproc=yes 13499 else 13500 echo "$as_me: failed program was:" >&5 13501 sed 's/^/| /' conftest.$ac_ext >&5 13502 13503 ac_header_preproc=no 13504 fi 13505 13506 rm -f conftest.err conftest.$ac_ext 13507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13508 echo "${ECHO_T}$ac_header_preproc" >&6; } 13509 13510 # So? What about this header? 13511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13512 yes:no: ) 13513 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: accepted by the compiler, rejected by the preprocessor!" >&5 13514 echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13515 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: proceeding with the compiler's result" >&5 13516 echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: proceeding with the compiler's result" >&2;} 13517 ac_header_preproc=yes 13518 ;; 13519 no:yes:* ) 13520 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: present but cannot be compiled" >&5 13521 echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: present but cannot be compiled" >&2;} 13522 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: check for missing prerequisite headers?" >&5 13523 echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: check for missing prerequisite headers?" >&2;} 13524 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: see the Autoconf documentation" >&5 13525 echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: see the Autoconf documentation" >&2;} 13526 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: section \"Present But Cannot Be Compiled\"" >&5 13527 echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: section \"Present But Cannot Be Compiled\"" >&2;} 13528 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: proceeding with the preprocessor's result" >&5 13529 echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: proceeding with the preprocessor's result" >&2;} 13530 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: in the future, the compiler will take precedence" >&5 13531 echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: in the future, the compiler will take precedence" >&2;} 13532 13533 ;; 13534 esac 13535 { echo "$as_me:$LINENO: checking for opencore-amrnb/interf_enc.h" >&5 13536 echo $ECHO_N "checking for opencore-amrnb/interf_enc.h... $ECHO_C" >&6; } 13537 if test "${ac_cv_header_opencore_amrnb_interf_enc_h+set}" = set; then 13538 echo $ECHO_N "(cached) $ECHO_C" >&6 13539 else 13540 ac_cv_header_opencore_amrnb_interf_enc_h=$ac_header_preproc 13541 fi 13542 { echo "$as_me:$LINENO: result: $ac_cv_header_opencore_amrnb_interf_enc_h" >&5 13543 echo "${ECHO_T}$ac_cv_header_opencore_amrnb_interf_enc_h" >&6; } 13544 13545 fi 13546 if test $ac_cv_header_opencore_amrnb_interf_enc_h = yes; then 13547 opencore_amrnb_h_present=1 13548 fi 13549 13550 13551 { echo "$as_me:$LINENO: checking for Encoder_Interface_init in -lopencore-amrnb" >&5 13552 echo $ECHO_N "checking for Encoder_Interface_init in -lopencore-amrnb... $ECHO_C" >&6; } 13553 if test "${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+set}" = set; then 13554 echo $ECHO_N "(cached) $ECHO_C" >&6 13555 else 13556 ac_check_lib_save_LIBS=$LIBS 13557 LIBS="-lopencore-amrnb $LIBS" 13558 cat >conftest.$ac_ext <<_ACEOF 13559 /* confdefs.h. */ 13560 _ACEOF 13561 cat confdefs.h >>conftest.$ac_ext 13562 cat >>conftest.$ac_ext <<_ACEOF 13563 /* end confdefs.h. */ 13564 13565 /* Override any GCC internal prototype to avoid an error. 13566 Use char because int might match the return type of a GCC 13567 builtin and then its argument prototype would still apply. */ 13568 #ifdef __cplusplus 13569 extern "C" 13570 #endif 13571 char Encoder_Interface_init (); 13572 int 13573 main () 13574 { 13575 return Encoder_Interface_init (); 13576 ; 13577 return 0; 13578 } 13579 _ACEOF 13580 rm -f conftest.$ac_objext conftest$ac_exeext 13581 if { (ac_try="$ac_link" 13582 case "(($ac_try" in 13583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13584 *) ac_try_echo=$ac_try;; 13585 esac 13586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13587 (eval "$ac_link") 2>conftest.er1 13588 ac_status=$? 13589 grep -v '^ *+' conftest.er1 >conftest.err 13590 rm -f conftest.er1 13591 cat conftest.err >&5 13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13593 (exit $ac_status); } && { 13594 test -z "$ac_c_werror_flag" || 13595 test ! -s conftest.err 13596 } && test -s conftest$ac_exeext && 13597 $as_test_x conftest$ac_exeext; then 13598 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes 13599 else 13600 echo "$as_me: failed program was:" >&5 13601 sed 's/^/| /' conftest.$ac_ext >&5 13602 13603 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no 13604 fi 13605 13606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13607 conftest$ac_exeext conftest.$ac_ext 13608 LIBS=$ac_check_lib_save_LIBS 13609 fi 13610 { echo "$as_me:$LINENO: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5 13611 echo "${ECHO_T}$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; } 13612 if test $ac_cv_lib_opencore_amrnb_Encoder_Interface_init = yes; then 13613 opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb" 13614 fi 13615 13616 if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then 13617 { echo "$as_me:$LINENO: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5 13618 echo "${ECHO_T}OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; } 13619 cat >>confdefs.h <<\_ACEOF 13620 #define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1 13621 _ACEOF 13622 13623 else 13624 ac_no_opencore_amrnb=1 13625 cat >>confdefs.h <<\_ACEOF 13626 #define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0 13627 _ACEOF 13628 13629 fi 13630 13631 fi 13632 13633 13634 13635 13636 13637 { echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5 13638 echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6; } 6819 13639 case $target in 6820 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h 6821 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6823 $as_echo "yes" >&6; } 13640 *rtems*) cat >>confdefs.h <<\_ACEOF 13641 #define PJ_SELECT_NEEDS_NFDS 1 13642 _ACEOF 13643 13644 { echo "$as_me:$LINENO: result: yes" >&5 13645 echo "${ECHO_T}yes" >&6; } 6824 13646 ;; 6825 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h 6826 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 6828 $as_echo "no (default)" >&6; } 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 6830 $as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; } 13647 *) cat >>confdefs.h <<\_ACEOF 13648 #define PJ_SELECT_NEEDS_NFDS 0 13649 _ACEOF 13650 13651 { echo "$as_me:$LINENO: result: no (default)" >&5 13652 echo "${ECHO_T}no (default)" >&6; } 13653 { echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 13654 echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6; } 6831 13655 ;; 6832 13656 esac 6833 13657 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&56835 $as_echo_n "checking if pj_thread_create() should enforce stack size..." >&6; }13658 { echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5 13659 echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6; } 6836 13660 case $target in 6837 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h 6838 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6840 $as_echo "yes" >&6; } 13661 *rtems*) cat >>confdefs.h <<\_ACEOF 13662 #define PJ_THREAD_SET_STACK_SIZE 1 13663 _ACEOF 13664 13665 { echo "$as_me:$LINENO: result: yes" >&5 13666 echo "${ECHO_T}yes" >&6; } 6841 13667 ;; 6842 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h 6843 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 6845 $as_echo "no (default)" >&6; } 13668 *) cat >>confdefs.h <<\_ACEOF 13669 #define PJ_THREAD_SET_STACK_SIZE 0 13670 _ACEOF 13671 13672 { echo "$as_me:$LINENO: result: no (default)" >&5 13673 echo "${ECHO_T}no (default)" >&6; } 6846 13674 ;; 6847 13675 esac 6848 13676 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&56850 $as_echo_n "checking if pj_thread_create() should allocate stack..." >&6; }13677 { echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5 13678 echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6; } 6851 13679 case $target in 6852 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h 6853 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6855 $as_echo "yes" >&6; } 13680 *rtems*) cat >>confdefs.h <<\_ACEOF 13681 #define PJ_THREAD_ALLOCATE_STACK 1 13682 _ACEOF 13683 13684 { echo "$as_me:$LINENO: result: yes" >&5 13685 echo "${ECHO_T}yes" >&6; } 6856 13686 ;; 6857 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h 6858 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 6860 $as_echo "no (default)" >&6; } 13687 *) cat >>confdefs.h <<\_ACEOF 13688 #define PJ_THREAD_ALLOCATE_STACK 0 13689 _ACEOF 13690 13691 { echo "$as_me:$LINENO: result: no (default)" >&5 13692 echo "${ECHO_T}no (default)" >&6; } 6861 13693 ;; 6862 13694 esac … … 6864 13696 case $target in 6865 13697 *mingw* | *cygw* | *win32* | *w32* ) 6866 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h 13698 cat >>confdefs.h <<\_ACEOF 13699 #define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK 13700 _ACEOF 6867 13701 6868 13702 ;; 6869 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h 6870 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 6872 $as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; } 13703 *) cat >>confdefs.h <<\_ACEOF 13704 #define PJ_BLOCKING_ERROR_VAL EAGAIN 13705 _ACEOF 13706 13707 { echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 13708 echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; } 6873 13709 ;; 6874 13710 esac … … 6876 13712 case $target in 6877 13713 *mingw* | *cygw* | *win32* | *w32* ) 6878 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h 13714 cat >>confdefs.h <<\_ACEOF 13715 #define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK 13716 _ACEOF 6879 13717 6880 13718 ;; 6881 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h 6882 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 6884 $as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; } 13719 *) cat >>confdefs.h <<\_ACEOF 13720 #define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS 13721 _ACEOF 13722 13723 { echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 13724 echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; } 6885 13725 ;; 6886 13726 esac … … 6937 13777 *${as_nl}*) 6938 13778 case $ac_var in #( 6939 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&56940 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;13779 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 13780 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 6941 13781 esac 6942 13782 case $ac_var in #( 6943 13783 _ | IFS | as_nl) ;; #( 6944 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 6945 *) { eval $ac_var=; unset $ac_var;} ;; 13784 *) $as_unset $ac_var ;; 6946 13785 esac ;; 6947 13786 esac … … 6951 13790 case $as_nl`(ac_space=' '; set) 2>&1` in #( 6952 13791 *${as_nl}ac_space=\ *) 6953 # `set' does not quote correctly, so add quotes :double-quote6954 # substitution turns \\\\ into \\, and sed turns \\ into \ .13792 # `set' does not quote correctly, so add quotes (double-quote 13793 # substitution turns \\\\ into \\, and sed turns \\ into \). 6955 13794 sed -n \ 6956 13795 "s/'/'\\\\''/g; … … 6975 13814 if test -w "$cache_file"; then 6976 13815 test "x$cache_file" != "x/dev/null" && 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&56978 $as_echo "$as_me: updating cache $cache_file" >&6;}13816 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 13817 echo "$as_me: updating cache $cache_file" >&6;} 6979 13818 cat confcache >$cache_file 6980 13819 else 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&56982 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}13820 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13821 echo "$as_me: not updating unwritable cache $cache_file" >&6;} 6983 13822 fi 6984 13823 fi … … 6996 13835 # 1. Remove the extension, and $U if already installed. 6997 13836 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 6998 ac_i=` $as_echo "$ac_i" | sed "$ac_script"`13837 ac_i=`echo "$ac_i" | sed "$ac_script"` 6999 13838 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 7000 13839 # will be set to the directory where LIBOBJS objects are built. 7001 a s_fn_append ac_libobjs "\${LIBOBJDIR}$ac_i\$U.$ac_objext"7002 a s_fn_append ac_ltlibobjs "\${LIBOBJDIR}$ac_i"'$U.lo'13840 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13841 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 7003 13842 done 7004 13843 LIBOBJS=$ac_libobjs … … 7008 13847 7009 13848 7010 7011 13849 : ${CONFIG_STATUS=./config.status} 7012 ac_write_fail=07013 13850 ac_clean_files_save=$ac_clean_files 7014 13851 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 7016 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 7017 as_write_fail=0 7018 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13852 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13853 echo "$as_me: creating $CONFIG_STATUS" >&6;} 13854 cat >$CONFIG_STATUS <<_ACEOF 7019 13855 #! $SHELL 7020 13856 # Generated by $as_me. … … 7026 13862 ac_cs_recheck=false 7027 13863 ac_cs_silent=false 7028 7029 13864 SHELL=\${CONFIG_SHELL-$SHELL} 7030 export SHELL 7031 _ASEOF 7032 cat >>$CONFIG_STATUS <<\_A SEOF || as_write_fail=17033 ## -------------------- ##7034 ## M4sh Initialization. ##7035 ## -------------------- ##13865 _ACEOF 13866 13867 cat >>$CONFIG_STATUS <<\_ACEOF 13868 ## --------------------- ## 13869 ## M4sh Initialization. ## 13870 ## --------------------- ## 7036 13871 7037 13872 # Be more Bourne compatible 7038 13873 DUALCASE=1; export DUALCASE # for MKS sh 7039 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :13874 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 7040 13875 emulate sh 7041 13876 NULLCMD=: 7042 # Pre-4.2 versions of Zsh doword splitting on ${1+"$@"}, which13877 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 7043 13878 # is contrary to our usage. Disable this feature. 7044 13879 alias -g '${1+"$@"}'='"$@"' 7045 13880 setopt NO_GLOB_SUBST 7046 13881 else 7047 case `(set -o) 2>/dev/null` in #( 7048 *posix*) : 7049 set -o posix ;; #( 7050 *) : 7051 ;; 7052 esac 7053 fi 7054 7055 7056 as_nl=' 7057 ' 7058 export as_nl 7059 # Printing a long string crashes Solaris 7 /usr/bin/printf. 7060 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7061 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 7062 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 7063 # Prefer a ksh shell builtin over an external printf program on Solaris, 7064 # but without wasting forks for bash or zsh. 7065 if test -z "$BASH_VERSION$ZSH_VERSION" \ 7066 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 7067 as_echo='print -r --' 7068 as_echo_n='print -rn --' 7069 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 7070 as_echo='printf %s\n' 7071 as_echo_n='printf %s' 7072 else 7073 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 7074 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 7075 as_echo_n='/usr/ucb/echo -n' 7076 else 7077 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 7078 as_echo_n_body='eval 7079 arg=$1; 7080 case $arg in #( 7081 *"$as_nl"*) 7082 expr "X$arg" : "X\\(.*\\)$as_nl"; 7083 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 7084 esac; 7085 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 7086 ' 7087 export as_echo_n_body 7088 as_echo_n='sh -c $as_echo_n_body as_echo' 7089 fi 7090 export as_echo_body 7091 as_echo='sh -c $as_echo_body as_echo' 7092 fi 13882 case `(set -o) 2>/dev/null` in 13883 *posix*) set -o posix ;; 13884 esac 13885 13886 fi 13887 13888 13889 13890 13891 # PATH needs CR 13892 # Avoid depending upon Character Ranges. 13893 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13894 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13895 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13896 as_cr_digits='0123456789' 13897 as_cr_alnum=$as_cr_Letters$as_cr_digits 7093 13898 7094 13899 # The user is always right. 7095 13900 if test "${PATH_SEPARATOR+set}" != set; then 7096 PATH_SEPARATOR=: 7097 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7098 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7099 PATH_SEPARATOR=';' 7100 } 13901 echo "#! /bin/sh" >conf$$.sh 13902 echo "exit 0" >>conf$$.sh 13903 chmod +x conf$$.sh 13904 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13905 PATH_SEPARATOR=';' 13906 else 13907 PATH_SEPARATOR=: 13908 fi 13909 rm -f conf$$.sh 13910 fi 13911 13912 # Support unset when possible. 13913 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13914 as_unset=unset 13915 else 13916 as_unset=false 7101 13917 fi 7102 13918 … … 7107 13923 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 7108 13924 # splitting by setting IFS to empty value.) 13925 as_nl=' 13926 ' 7109 13927 IFS=" "" $as_nl" 7110 13928 7111 13929 # Find who we are. Look in the path if we contain no directory separator. 7112 case $0 in #((13930 case $0 in 7113 13931 *[\\/]* ) as_myself=$0 ;; 7114 13932 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 7117 13935 IFS=$as_save_IFS 7118 13936 test -z "$as_dir" && as_dir=. 7119 7120 13937 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13938 done 7121 13939 IFS=$as_save_IFS 7122 13940 … … 7129 13947 fi 7130 13948 if test ! -f "$as_myself"; then 7131 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 7132 exit 1 7133 fi 7134 7135 # Unset variables that we do not need and which cause bugs (e.g. in 7136 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 7137 # suppresses any "Segmentation fault" message there. '((' could 7138 # trigger a bug in pdksh 5.2.14. 7139 for as_var in BASH_ENV ENV MAIL MAILPATH 7140 do eval test x\${$as_var+set} = xset \ 7141 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13949 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13950 { (exit 1); exit 1; } 13951 fi 13952 13953 # Work around bugs in pre-3.0 UWIN ksh. 13954 for as_var in ENV MAIL MAILPATH 13955 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 7142 13956 done 7143 13957 PS1='$ ' … … 7146 13960 7147 13961 # NLS nuisances. 7148 LC_ALL=C 7149 export LC_ALL 7150 LANGUAGE=C 7151 export LANGUAGE 7152 7153 # CDPATH. 7154 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 7155 7156 7157 # as_fn_error ERROR [LINENO LOG_FD] 7158 # --------------------------------- 7159 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 7160 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 7161 # script with status $?, using 1 if that was 0. 7162 as_fn_error () 7163 { 7164 as_status=$?; test $as_status -eq 0 && as_status=1 7165 if test "$3"; then 7166 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 7167 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 13962 for as_var in \ 13963 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 13964 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 13965 LC_TELEPHONE LC_TIME 13966 do 13967 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 13968 eval $as_var=C; export $as_var 13969 else 13970 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 7168 13971 fi 7169 $as_echo "$as_me: error: $1" >&2 7170 as_fn_exit $as_status 7171 } # as_fn_error 7172 7173 7174 # as_fn_set_status STATUS 7175 # ----------------------- 7176 # Set $? to STATUS, without forking. 7177 as_fn_set_status () 7178 { 7179 return $1 7180 } # as_fn_set_status 7181 7182 # as_fn_exit STATUS 7183 # ----------------- 7184 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 7185 as_fn_exit () 7186 { 7187 set +e 7188 as_fn_set_status $1 7189 exit $1 7190 } # as_fn_exit 7191 7192 # as_fn_unset VAR 7193 # --------------- 7194 # Portably unset VAR. 7195 as_fn_unset () 7196 { 7197 { eval $1=; unset $1;} 7198 } 7199 as_unset=as_fn_unset 7200 # as_fn_append VAR VALUE 7201 # ---------------------- 7202 # Append the text in VALUE to the end of the definition contained in VAR. Take 7203 # advantage of any shell optimizations that allow amortized linear growth over 7204 # repeated appends, instead of the typical quadratic growth present in naive 7205 # implementations. 7206 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 7207 eval 'as_fn_append () 7208 { 7209 eval $1+=\$2 7210 }' 7211 else 7212 as_fn_append () 7213 { 7214 eval $1=\$$1\$2 7215 } 7216 fi # as_fn_append 7217 7218 # as_fn_arith ARG... 7219 # ------------------ 7220 # Perform arithmetic evaluation on the ARGs, and store the result in the 7221 # global $as_val. Take advantage of shells that can avoid forks. The arguments 7222 # must be portable across $(()) and expr. 7223 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 7224 eval 'as_fn_arith () 7225 { 7226 as_val=$(( $* )) 7227 }' 7228 else 7229 as_fn_arith () 7230 { 7231 as_val=`expr "$@" || test $? -eq 1` 7232 } 7233 fi # as_fn_arith 7234 7235 13972 done 13973 13974 # Required to use basename. 7236 13975 if expr a : '\(a\)' >/dev/null 2>&1 && 7237 13976 test "X`expr 00001 : '.*\(...\)'`" = X001; then … … 7247 13986 fi 7248 13987 7249 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7250 as_dirname=dirname 7251 else 7252 as_dirname=false 7253 fi 7254 13988 13989 # Name of the executable. 7255 13990 as_me=`$as_basename -- "$0" || 7256 13991 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7257 13992 X"$0" : 'X\(//\)$' \| \ 7258 13993 X"$0" : 'X\(/\)' \| . 2>/dev/null || 7259 $as_echo X/"$0" |13994 echo X/"$0" | 7260 13995 sed '/^.*\/\([^/][^/]*\)\/*$/{ 7261 13996 s//\1/ … … 7272 14007 s/.*/./; q'` 7273 14008 7274 # Avoid depending upon Character Ranges. 7275 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 7276 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7277 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 7278 as_cr_digits='0123456789' 7279 as_cr_alnum=$as_cr_Letters$as_cr_digits 14009 # CDPATH. 14010 $as_unset CDPATH 14011 14012 14013 14014 as_lineno_1=$LINENO 14015 as_lineno_2=$LINENO 14016 test "x$as_lineno_1" != "x$as_lineno_2" && 14017 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 14018 14019 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14020 # uniformly replaced by the line number. The first 'sed' inserts a 14021 # line-number line after each line using $LINENO; the second 'sed' 14022 # does the real work. The second script uses 'N' to pair each 14023 # line-number line with the line containing $LINENO, and appends 14024 # trailing '-' during substitution so that $LINENO is not a special 14025 # case at line end. 14026 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14027 # scripts with optimization help from Paolo Bonzini. Blame Lee 14028 # E. McMahon (1931-1989) for sed's syntax. :-) 14029 sed -n ' 14030 p 14031 /[$]LINENO/= 14032 ' <$as_myself | 14033 sed ' 14034 s/[$]LINENO.*/&-/ 14035 t lineno 14036 b 14037 :lineno 14038 N 14039 :loop 14040 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 14041 t loop 14042 s/-\n.*// 14043 ' >$as_me.lineno && 14044 chmod +x "$as_me.lineno" || 14045 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 14046 { (exit 1); exit 1; }; } 14047 14048 # Don't try to exec as it changes $[0], causing all sort of problems 14049 # (the dirname of $[0] is not the place where we might find the 14050 # original and so on. Autoconf is especially sensitive to this). 14051 . "./$as_me.lineno" 14052 # Exit status is that of the last command. 14053 exit 14054 } 14055 14056 14057 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14058 as_dirname=dirname 14059 else 14060 as_dirname=false 14061 fi 7280 14062 7281 14063 ECHO_C= ECHO_N= ECHO_T= 7282 case `echo -n x` in #(((((14064 case `echo -n x` in 7283 14065 -n*) 7284 case `echo 'x y\c'` in14066 case `echo 'x\c'` in 7285 14067 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7286 xy) ECHO_C='\c';; 7287 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 7288 ECHO_T=' ';; 14068 *) ECHO_C='\c';; 7289 14069 esac;; 7290 14070 *) … … 7292 14072 esac 7293 14073 14074 if expr a : '\(a\)' >/dev/null 2>&1 && 14075 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14076 as_expr=expr 14077 else 14078 as_expr=false 14079 fi 14080 7294 14081 rm -f conf$$ conf$$.exe conf$$.file 7295 14082 if test -d conf$$.dir; then … … 7297 14084 else 7298 14085 rm -f conf$$.dir 7299 mkdir conf$$.dir 2>/dev/null 7300 fi 7301 if (echo >conf$$.file) 2>/dev/null; then 7302 if ln -s conf$$.file conf$$ 2>/dev/null; then 7303 as_ln_s='ln -s' 7304 # ... but there are two gotchas: 7305 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7306 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7307 # In both cases, we have to default to `cp -p'. 7308 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7309 as_ln_s='cp -p' 7310 elif ln conf$$.file conf$$ 2>/dev/null; then 7311 as_ln_s=ln 7312 else 14086 mkdir conf$$.dir 14087 fi 14088 echo >conf$$.file 14089 if ln -s conf$$.file conf$$ 2>/dev/null; then 14090 as_ln_s='ln -s' 14091 # ... but there are two gotchas: 14092 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14093 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14094 # In both cases, we have to default to `cp -p'. 14095 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7313 14096 as_ln_s='cp -p' 7314 fi 14097 elif ln conf$$.file conf$$ 2>/dev/null; then 14098 as_ln_s=ln 7315 14099 else 7316 14100 as_ln_s='cp -p' … … 7319 14103 rmdir conf$$.dir 2>/dev/null 7320 14104 7321 7322 # as_fn_mkdir_p 7323 # ------------- 7324 # Create "$as_dir" as a directory, including parents if necessary. 7325 as_fn_mkdir_p () 14105 if mkdir -p . 2>/dev/null; then 14106 as_mkdir_p=: 14107 else 14108 test -d ./-p && rmdir ./-p 14109 as_mkdir_p=false 14110 fi 14111 14112 if test -x / >/dev/null 2>&1; then 14113 as_test_x='test -x' 14114 else 14115 if ls -dL / >/dev/null 2>&1; then 14116 as_ls_L_option=L 14117 else 14118 as_ls_L_option= 14119 fi 14120 as_test_x=' 14121 eval sh -c '\'' 14122 if test -d "$1"; then 14123 test -d "$1/."; 14124 else 14125 case $1 in 14126 -*)set "./$1";; 14127 esac; 14128 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14129 ???[sx]*):;;*)false;;esac;fi 14130 '\'' sh 14131 ' 14132 fi 14133 as_executable_p=$as_test_x 14134 14135 # Sed expression to map a string onto a valid CPP name. 14136 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14137 14138 # Sed expression to map a string onto a valid variable name. 14139 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14140 14141 14142 exec 6>&1 14143 14144 # Save the log message, to keep $[0] and so on meaningful, and to 14145 # report actual input values of CONFIG_FILES etc. instead of their 14146 # values after options handling. 14147 ac_log=" 14148 This file was extended by pjproject $as_me 1.x, which was 14149 generated by GNU Autoconf 2.61. Invocation command line was 14150 14151 CONFIG_FILES = $CONFIG_FILES 14152 CONFIG_HEADERS = $CONFIG_HEADERS 14153 CONFIG_LINKS = $CONFIG_LINKS 14154 CONFIG_COMMANDS = $CONFIG_COMMANDS 14155 $ $0 $@ 14156 14157 on `(hostname || uname -n) 2>/dev/null | sed 1q` 14158 " 14159 14160 _ACEOF 14161 14162 cat >>$CONFIG_STATUS <<_ACEOF 14163 # Files that config.status was made for. 14164 config_files="$ac_config_files" 14165 config_headers="$ac_config_headers" 14166 14167 _ACEOF 14168 14169 cat >>$CONFIG_STATUS <<\_ACEOF 14170 ac_cs_usage="\ 14171 \`$as_me' instantiates files from templates according to the 14172 current configuration. 14173 14174 Usage: $0 [OPTIONS] [FILE]... 14175 14176 -h, --help print this help, then exit 14177 -V, --version print version number and configuration settings, then exit 14178 -q, --quiet do not print progress messages 14179 -d, --debug don't remove temporary files 14180 --recheck update $as_me by reconfiguring in the same conditions 14181 --file=FILE[:TEMPLATE] 14182 instantiate the configuration file FILE 14183 --header=FILE[:TEMPLATE] 14184 instantiate the configuration header FILE 14185 14186 Configuration files: 14187 $config_files 14188 14189 Configuration headers: 14190 $config_headers 14191 14192 Report bugs to <bug-autoconf@gnu.org>." 14193 14194 _ACEOF 14195 cat >>$CONFIG_STATUS <<_ACEOF 14196 ac_cs_version="\\ 14197 pjproject config.status 1.x 14198 configured by $0, generated by GNU Autoconf 2.61, 14199 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14200 14201 Copyright (C) 2006 Free Software Foundation, Inc. 14202 This config.status script is free software; the Free Software Foundation 14203 gives unlimited permission to copy, distribute and modify it." 14204 14205 ac_pwd='$ac_pwd' 14206 srcdir='$srcdir' 14207 _ACEOF 14208 14209 cat >>$CONFIG_STATUS <<\_ACEOF 14210 # If no file are specified by the user, then we need to provide default 14211 # value. By we need to know if files were specified by the user. 14212 ac_need_defaults=: 14213 while test $# != 0 14214 do 14215 case $1 in 14216 --*=*) 14217 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14218 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14219 ac_shift=: 14220 ;; 14221 *) 14222 ac_option=$1 14223 ac_optarg=$2 14224 ac_shift=shift 14225 ;; 14226 esac 14227 14228 case $ac_option in 14229 # Handling of the options. 14230 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14231 ac_cs_recheck=: ;; 14232 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14233 echo "$ac_cs_version"; exit ;; 14234 --debug | --debu | --deb | --de | --d | -d ) 14235 debug=: ;; 14236 --file | --fil | --fi | --f ) 14237 $ac_shift 14238 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 14239 ac_need_defaults=false;; 14240 --header | --heade | --head | --hea ) 14241 $ac_shift 14242 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 14243 ac_need_defaults=false;; 14244 --he | --h) 14245 # Conflict between --help and --header 14246 { echo "$as_me: error: ambiguous option: $1 14247 Try \`$0 --help' for more information." >&2 14248 { (exit 1); exit 1; }; };; 14249 --help | --hel | -h ) 14250 echo "$ac_cs_usage"; exit ;; 14251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14252 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14253 ac_cs_silent=: ;; 14254 14255 # This is an error. 14256 -*) { echo "$as_me: error: unrecognized option: $1 14257 Try \`$0 --help' for more information." >&2 14258 { (exit 1); exit 1; }; } ;; 14259 14260 *) ac_config_targets="$ac_config_targets $1" 14261 ac_need_defaults=false ;; 14262 14263 esac 14264 shift 14265 done 14266 14267 ac_configure_extra_args= 14268 14269 if $ac_cs_silent; then 14270 exec 6>/dev/null 14271 ac_configure_extra_args="$ac_configure_extra_args --silent" 14272 fi 14273 14274 _ACEOF 14275 cat >>$CONFIG_STATUS <<_ACEOF 14276 if \$ac_cs_recheck; then 14277 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 14278 CONFIG_SHELL=$SHELL 14279 export CONFIG_SHELL 14280 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14281 fi 14282 14283 _ACEOF 14284 cat >>$CONFIG_STATUS <<\_ACEOF 14285 exec 5>>config.log 7326 14286 { 7327 14287 echo 14288 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14289 ## Running $as_me. ## 14290 _ASBOX 14291 echo "$ac_log" 14292 } >&5 14293 14294 _ACEOF 14295 cat >>$CONFIG_STATUS <<_ACEOF 14296 _ACEOF 14297 14298 cat >>$CONFIG_STATUS <<\_ACEOF 14299 14300 # Handling of arguments. 14301 for ac_config_target in $ac_config_targets 14302 do 14303 case $ac_config_target in 14304 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; 14305 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; 14306 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; 14307 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; 14308 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; 14309 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; 14310 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; 14311 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;; 14312 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; 14313 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; 14314 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; 14315 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; 14316 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; 14317 "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; 14318 14319 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14320 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14321 { (exit 1); exit 1; }; };; 14322 esac 14323 done 14324 14325 14326 # If the user did not use the arguments to specify the items to instantiate, 14327 # then the envvar interface is used. Set only those that are not. 14328 # We use the long form for the default assignment because of an extremely 14329 # bizarre bug on SunOS 4.1.3. 14330 if $ac_need_defaults; then 14331 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14332 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14333 fi 14334 14335 # Have a temporary directory for convenience. Make it in the build tree 14336 # simply because there is no reason against having it here, and in addition, 14337 # creating and moving files from /tmp can sometimes cause problems. 14338 # Hook for its removal unless debugging. 14339 # Note that there is a small window in which the directory will not be cleaned: 14340 # after its creation but before its name has been assigned to `$tmp'. 14341 $debug || 14342 { 14343 tmp= 14344 trap 'exit_status=$? 14345 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14346 ' 0 14347 trap '{ (exit 1); exit 1; }' 1 2 13 15 14348 } 14349 # Create a (secure) tmp directory for tmp files. 14350 14351 { 14352 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14353 test -n "$tmp" && test -d "$tmp" 14354 } || 14355 { 14356 tmp=./conf$$-$RANDOM 14357 (umask 077 && mkdir "$tmp") 14358 } || 14359 { 14360 echo "$me: cannot create a temporary directory in ." >&2 14361 { (exit 1); exit 1; } 14362 } 14363 14364 # 14365 # Set up the sed scripts for CONFIG_FILES section. 14366 # 14367 14368 # No need to generate the scripts if there are no CONFIG_FILES. 14369 # This happens for instance when ./config.status config.h 14370 if test -n "$CONFIG_FILES"; then 14371 14372 _ACEOF 14373 14374 14375 14376 ac_delim='%!_!# ' 14377 for ac_last_try in false false false false false :; do 14378 cat >conf$$subs.sed <<_ACEOF 14379 SHELL!$SHELL$ac_delim 14380 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 14381 PACKAGE_NAME!$PACKAGE_NAME$ac_delim 14382 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 14383 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 14384 PACKAGE_STRING!$PACKAGE_STRING$ac_delim 14385 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 14386 exec_prefix!$exec_prefix$ac_delim 14387 prefix!$prefix$ac_delim 14388 program_transform_name!$program_transform_name$ac_delim 14389 bindir!$bindir$ac_delim 14390 sbindir!$sbindir$ac_delim 14391 libexecdir!$libexecdir$ac_delim 14392 datarootdir!$datarootdir$ac_delim 14393 datadir!$datadir$ac_delim 14394 sysconfdir!$sysconfdir$ac_delim 14395 sharedstatedir!$sharedstatedir$ac_delim 14396 localstatedir!$localstatedir$ac_delim 14397 includedir!$includedir$ac_delim 14398 oldincludedir!$oldincludedir$ac_delim 14399 docdir!$docdir$ac_delim 14400 infodir!$infodir$ac_delim 14401 htmldir!$htmldir$ac_delim 14402 dvidir!$dvidir$ac_delim 14403 pdfdir!$pdfdir$ac_delim 14404 psdir!$psdir$ac_delim 14405 libdir!$libdir$ac_delim 14406 localedir!$localedir$ac_delim 14407 mandir!$mandir$ac_delim 14408 DEFS!$DEFS$ac_delim 14409 ECHO_C!$ECHO_C$ac_delim 14410 ECHO_N!$ECHO_N$ac_delim 14411 ECHO_T!$ECHO_T$ac_delim 14412 LIBS!$LIBS$ac_delim 14413 build_alias!$build_alias$ac_delim 14414 host_alias!$host_alias$ac_delim 14415 target_alias!$target_alias$ac_delim 14416 build!$build$ac_delim 14417 build_cpu!$build_cpu$ac_delim 14418 build_vendor!$build_vendor$ac_delim 14419 build_os!$build_os$ac_delim 14420 host!$host$ac_delim 14421 host_cpu!$host_cpu$ac_delim 14422 host_vendor!$host_vendor$ac_delim 14423 host_os!$host_os$ac_delim 14424 target!$target$ac_delim 14425 target_cpu!$target_cpu$ac_delim 14426 target_vendor!$target_vendor$ac_delim 14427 target_os!$target_os$ac_delim 14428 CC!$CC$ac_delim 14429 CFLAGS!$CFLAGS$ac_delim 14430 LDFLAGS!$LDFLAGS$ac_delim 14431 CPPFLAGS!$CPPFLAGS$ac_delim 14432 ac_ct_CC!$ac_ct_CC$ac_delim 14433 EXEEXT!$EXEEXT$ac_delim 14434 OBJEXT!$OBJEXT$ac_delim 14435 CXX!$CXX$ac_delim 14436 CXXFLAGS!$CXXFLAGS$ac_delim 14437 ac_ct_CXX!$ac_ct_CXX$ac_delim 14438 AR!$AR$ac_delim 14439 LD!$LD$ac_delim 14440 LDOUT!$LDOUT$ac_delim 14441 RANLIB!$RANLIB$ac_delim 14442 LIBEXT!$LIBEXT$ac_delim 14443 LIBEXT2!$LIBEXT2$ac_delim 14444 CC_OUT!$CC_OUT$ac_delim 14445 CC_INC!$CC_INC$ac_delim 14446 CC_DEF!$CC_DEF$ac_delim 14447 CC_OPTIMIZE!$CC_OPTIMIZE$ac_delim 14448 CC_CFLAGS!$CC_CFLAGS$ac_delim 14449 ac_pjdir!$ac_pjdir$ac_delim 14450 ac_build_mak_vars!$ac_build_mak_vars$ac_delim 14451 CPP!$CPP$ac_delim 14452 GREP!$GREP$ac_delim 14453 EGREP!$EGREP$ac_delim 14454 ac_os_objs!$ac_os_objs$ac_delim 14455 ac_external_speex!$ac_external_speex$ac_delim 14456 ac_external_gsm!$ac_external_gsm$ac_delim 14457 ac_pjmedia_snd!$ac_pjmedia_snd$ac_delim 14458 ac_external_pa!$ac_external_pa$ac_delim 14459 ac_pa_cflags!$ac_pa_cflags$ac_delim 14460 ac_pa_use_alsa!$ac_pa_use_alsa$ac_delim 14461 ac_pa_use_oss!$ac_pa_use_oss$ac_delim 14462 ac_pjmedia_video!$ac_pjmedia_video$ac_delim 14463 ac_pjmedia_video_has_ios!$ac_pjmedia_video_has_ios$ac_delim 14464 ac_ios_cflags!$ac_ios_cflags$ac_delim 14465 ac_pjmedia_video_has_qt!$ac_pjmedia_video_has_qt$ac_delim 14466 ac_qt_cflags!$ac_qt_cflags$ac_delim 14467 ac_no_small_filter!$ac_no_small_filter$ac_delim 14468 ac_no_large_filter!$ac_no_large_filter$ac_delim 14469 ac_no_speex_aec!$ac_no_speex_aec$ac_delim 14470 ac_no_g711_codec!$ac_no_g711_codec$ac_delim 14471 ac_no_l16_codec!$ac_no_l16_codec$ac_delim 14472 ac_no_gsm_codec!$ac_no_gsm_codec$ac_delim 14473 ac_no_g722_codec!$ac_no_g722_codec$ac_delim 14474 ac_no_g7221_codec!$ac_no_g7221_codec$ac_delim 14475 ac_no_speex_codec!$ac_no_speex_codec$ac_delim 14476 _ACEOF 14477 14478 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 14479 break 14480 elif $ac_last_try; then 14481 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14482 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14483 { (exit 1); exit 1; }; } 14484 else 14485 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14486 fi 14487 done 14488 14489 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 14490 if test -n "$ac_eof"; then 14491 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 14492 ac_eof=`expr $ac_eof + 1` 14493 fi 14494 14495 cat >>$CONFIG_STATUS <<_ACEOF 14496 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 14497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14498 _ACEOF 14499 sed ' 14500 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 14501 s/^/s,@/; s/!/@,|#_!!_#|/ 14502 :n 14503 t n 14504 s/'"$ac_delim"'$/,g/; t 14505 s/$/\\/; p 14506 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 14507 ' >>$CONFIG_STATUS <conf$$subs.sed 14508 rm -f conf$$subs.sed 14509 cat >>$CONFIG_STATUS <<_ACEOF 14510 CEOF$ac_eof 14511 _ACEOF 14512 14513 14514 ac_delim='%!_!# ' 14515 for ac_last_try in false false false false false :; do 14516 cat >conf$$subs.sed <<_ACEOF 14517 ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim 14518 ac_sdl_cflags!$ac_sdl_cflags$ac_delim 14519 ac_sdl_ldflags!$ac_sdl_ldflags$ac_delim 14520 ac_has_ffmpeg!$ac_has_ffmpeg$ac_delim 14521 ac_ffmpeg_cflags!$ac_ffmpeg_cflags$ac_delim 14522 ac_ffmpeg_ldflags!$ac_ffmpeg_ldflags$ac_delim 14523 ac_v4l2_cflags!$ac_v4l2_cflags$ac_delim 14524 ac_v4l2_ldflags!$ac_v4l2_ldflags$ac_delim 14525 ac_no_ssl!$ac_no_ssl$ac_delim 14526 openssl_h_present!$openssl_h_present$ac_delim 14527 libssl_present!$libssl_present$ac_delim 14528 libcrypto_present!$libcrypto_present$ac_delim 14529 ac_no_opencore_amrnb!$ac_no_opencore_amrnb$ac_delim 14530 opencore_amrnb_h_present!$opencore_amrnb_h_present$ac_delim 14531 opencore_amrnb_present!$opencore_amrnb_present$ac_delim 14532 ac_cross_compile!$ac_cross_compile$ac_delim 14533 ac_linux_poll!$ac_linux_poll$ac_delim 14534 ac_host!$ac_host$ac_delim 14535 ac_main_obj!$ac_main_obj$ac_delim 14536 LIBOBJS!$LIBOBJS$ac_delim 14537 LTLIBOBJS!$LTLIBOBJS$ac_delim 14538 _ACEOF 14539 14540 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then 14541 break 14542 elif $ac_last_try; then 14543 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14544 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14545 { (exit 1); exit 1; }; } 14546 else 14547 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14548 fi 14549 done 14550 14551 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 14552 if test -n "$ac_eof"; then 14553 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 14554 ac_eof=`expr $ac_eof + 1` 14555 fi 14556 14557 cat >>$CONFIG_STATUS <<_ACEOF 14558 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 14559 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 14560 _ACEOF 14561 sed ' 14562 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 14563 s/^/s,@/; s/!/@,|#_!!_#|/ 14564 :n 14565 t n 14566 s/'"$ac_delim"'$/,g/; t 14567 s/$/\\/; p 14568 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 14569 ' >>$CONFIG_STATUS <conf$$subs.sed 14570 rm -f conf$$subs.sed 14571 cat >>$CONFIG_STATUS <<_ACEOF 14572 :end 14573 s/|#_!!_#|//g 14574 CEOF$ac_eof 14575 _ACEOF 14576 14577 14578 # VPATH may cause trouble with some makes, so we remove $(srcdir), 14579 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14580 # trailing colons and then remove the whole line if VPATH becomes empty 14581 # (actually we leave an empty line to preserve line numbers). 14582 if test "x$srcdir" = x.; then 14583 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14584 s/:*\$(srcdir):*/:/ 14585 s/:*\${srcdir}:*/:/ 14586 s/:*@srcdir@:*/:/ 14587 s/^\([^=]*=[ ]*\):*/\1/ 14588 s/:*$// 14589 s/^[^=]*=[ ]*$// 14590 }' 14591 fi 14592 14593 cat >>$CONFIG_STATUS <<\_ACEOF 14594 fi # test -n "$CONFIG_FILES" 14595 14596 14597 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 14598 do 14599 case $ac_tag in 14600 :[FHLC]) ac_mode=$ac_tag; continue;; 14601 esac 14602 case $ac_mode$ac_tag in 14603 :[FHL]*:*);; 14604 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 14605 echo "$as_me: error: Invalid tag $ac_tag." >&2;} 14606 { (exit 1); exit 1; }; };; 14607 :[FH]-) ac_tag=-:-;; 14608 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14609 esac 14610 ac_save_IFS=$IFS 14611 IFS=: 14612 set x $ac_tag 14613 IFS=$ac_save_IFS 14614 shift 14615 ac_file=$1 14616 shift 14617 14618 case $ac_mode in 14619 :L) ac_source=$1;; 14620 :[FH]) 14621 ac_file_inputs= 14622 for ac_f 14623 do 14624 case $ac_f in 14625 -) ac_f="$tmp/stdin";; 14626 *) # Look for the file first in the build tree, then in the source tree 14627 # (if the path is not absolute). The absolute path cannot be DOS-style, 14628 # because $ac_f cannot contain `:'. 14629 test -f "$ac_f" || 14630 case $ac_f in 14631 [\\/$]*) false;; 14632 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14633 esac || 14634 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14635 echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14636 { (exit 1); exit 1; }; };; 14637 esac 14638 ac_file_inputs="$ac_file_inputs $ac_f" 14639 done 14640 14641 # Let's still pretend it is `configure' which instantiates (i.e., don't 14642 # use $as_me), people would be surprised to read: 14643 # /* config.h. Generated by config.status. */ 14644 configure_input="Generated from "`IFS=: 14645 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 14646 if test x"$ac_file" != x-; then 14647 configure_input="$ac_file. $configure_input" 14648 { echo "$as_me:$LINENO: creating $ac_file" >&5 14649 echo "$as_me: creating $ac_file" >&6;} 14650 fi 14651 14652 case $ac_tag in 14653 *:-:* | *:-) cat >"$tmp/stdin";; 14654 esac 14655 ;; 14656 esac 14657 14658 ac_dir=`$as_dirname -- "$ac_file" || 14659 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14660 X"$ac_file" : 'X\(//\)[^/]' \| \ 14661 X"$ac_file" : 'X\(//\)$' \| \ 14662 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14663 echo X"$ac_file" | 14664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14665 s//\1/ 14666 q 14667 } 14668 /^X\(\/\/\)[^/].*/{ 14669 s//\1/ 14670 q 14671 } 14672 /^X\(\/\/\)$/{ 14673 s//\1/ 14674 q 14675 } 14676 /^X\(\/\).*/{ 14677 s//\1/ 14678 q 14679 } 14680 s/.*/./; q'` 14681 { as_dir="$ac_dir" 7328 14682 case $as_dir in #( 7329 14683 -*) as_dir=./$as_dir;; 7330 14684 esac 7331 test -d "$as_dir" || eval $as_mkdir_p|| {14685 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 7332 14686 as_dirs= 7333 14687 while :; do 7334 14688 case $as_dir in #( 7335 *\'*) as_qdir=` $as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(14689 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 7336 14690 *) as_qdir=$as_dir;; 7337 14691 esac … … 7342 14696 X"$as_dir" : 'X\(//\)$' \| \ 7343 14697 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7344 $as_echo X"$as_dir" |14698 echo X"$as_dir" | 7345 14699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7346 14700 s//\1/ … … 7363 14717 done 7364 14718 test -z "$as_dirs" || eval "mkdir $as_dirs" 7365 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 7366 7367 7368 } # as_fn_mkdir_p 7369 if mkdir -p . 2>/dev/null; then 7370 as_mkdir_p='mkdir -p "$as_dir"' 7371 else 7372 test -d ./-p && rmdir ./-p 7373 as_mkdir_p=false 7374 fi 7375 7376 if test -x / >/dev/null 2>&1; then 7377 as_test_x='test -x' 7378 else 7379 if ls -dL / >/dev/null 2>&1; then 7380 as_ls_L_option=L 7381 else 7382 as_ls_L_option= 7383 fi 7384 as_test_x=' 7385 eval sh -c '\'' 7386 if test -d "$1"; then 7387 test -d "$1/."; 7388 else 7389 case $1 in #( 7390 -*)set "./$1";; 7391 esac; 7392 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 7393 ???[sx]*):;;*)false;;esac;fi 7394 '\'' sh 7395 ' 7396 fi 7397 as_executable_p=$as_test_x 7398 7399 # Sed expression to map a string onto a valid CPP name. 7400 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7401 7402 # Sed expression to map a string onto a valid variable name. 7403 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7404 7405 7406 exec 6>&1 7407 ## ----------------------------------- ## 7408 ## Main body of $CONFIG_STATUS script. ## 7409 ## ----------------------------------- ## 7410 _ASEOF 7411 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 7412 7413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7414 # Save the log message, to keep $0 and so on meaningful, and to 7415 # report actual input values of CONFIG_FILES etc. instead of their 7416 # values after options handling. 7417 ac_log=" 7418 This file was extended by pjproject $as_me 1.x, which was 7419 generated by GNU Autoconf 2.65. Invocation command line was 7420 7421 CONFIG_FILES = $CONFIG_FILES 7422 CONFIG_HEADERS = $CONFIG_HEADERS 7423 CONFIG_LINKS = $CONFIG_LINKS 7424 CONFIG_COMMANDS = $CONFIG_COMMANDS 7425 $ $0 $@ 7426 7427 on `(hostname || uname -n) 2>/dev/null | sed 1q` 7428 " 7429 7430 _ACEOF 7431 7432 case $ac_config_files in *" 7433 "*) set x $ac_config_files; shift; ac_config_files=$*;; 7434 esac 7435 7436 case $ac_config_headers in *" 7437 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 7438 esac 7439 7440 7441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7442 # Files that config.status was made for. 7443 config_files="$ac_config_files" 7444 config_headers="$ac_config_headers" 7445 7446 _ACEOF 7447 7448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7449 ac_cs_usage="\ 7450 \`$as_me' instantiates files and other configuration actions 7451 from templates according to the current configuration. Unless the files 7452 and actions are specified as TAGs, all are instantiated by default. 7453 7454 Usage: $0 [OPTION]... [TAG]... 7455 7456 -h, --help print this help, then exit 7457 -V, --version print version number and configuration settings, then exit 7458 --config print configuration, then exit 7459 -q, --quiet, --silent 7460 do not print progress messages 7461 -d, --debug don't remove temporary files 7462 --recheck update $as_me by reconfiguring in the same conditions 7463 --file=FILE[:TEMPLATE] 7464 instantiate the configuration file FILE 7465 --header=FILE[:TEMPLATE] 7466 instantiate the configuration header FILE 7467 7468 Configuration files: 7469 $config_files 7470 7471 Configuration headers: 7472 $config_headers 7473 7474 Report bugs to the package provider." 7475 7476 _ACEOF 7477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7478 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 7479 ac_cs_version="\\ 7480 pjproject config.status 1.x 7481 configured by $0, generated by GNU Autoconf 2.65, 7482 with options \\"\$ac_cs_config\\" 7483 7484 Copyright (C) 2009 Free Software Foundation, Inc. 7485 This config.status script is free software; the Free Software Foundation 7486 gives unlimited permission to copy, distribute and modify it." 7487 7488 ac_pwd='$ac_pwd' 7489 srcdir='$srcdir' 7490 test -n "\$AWK" || AWK=awk 7491 _ACEOF 7492 7493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7494 # The default lists apply if the user does not specify any file. 7495 ac_need_defaults=: 7496 while test $# != 0 7497 do 7498 case $1 in 7499 --*=*) 7500 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7501 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7502 ac_shift=: 7503 ;; 7504 *) 7505 ac_option=$1 7506 ac_optarg=$2 7507 ac_shift=shift 7508 ;; 7509 esac 7510 7511 case $ac_option in 7512 # Handling of the options. 7513 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7514 ac_cs_recheck=: ;; 7515 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7516 $as_echo "$ac_cs_version"; exit ;; 7517 --config | --confi | --conf | --con | --co | --c ) 7518 $as_echo "$ac_cs_config"; exit ;; 7519 --debug | --debu | --deb | --de | --d | -d ) 7520 debug=: ;; 7521 --file | --fil | --fi | --f ) 7522 $ac_shift 7523 case $ac_optarg in 7524 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7525 esac 7526 as_fn_append CONFIG_FILES " '$ac_optarg'" 7527 ac_need_defaults=false;; 7528 --header | --heade | --head | --hea ) 7529 $ac_shift 7530 case $ac_optarg in 7531 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7532 esac 7533 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 7534 ac_need_defaults=false;; 7535 --he | --h) 7536 # Conflict between --help and --header 7537 as_fn_error "ambiguous option: \`$1' 7538 Try \`$0 --help' for more information.";; 7539 --help | --hel | -h ) 7540 $as_echo "$ac_cs_usage"; exit ;; 7541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7542 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7543 ac_cs_silent=: ;; 7544 7545 # This is an error. 7546 -*) as_fn_error "unrecognized option: \`$1' 7547 Try \`$0 --help' for more information." ;; 7548 7549 *) as_fn_append ac_config_targets " $1" 7550 ac_need_defaults=false ;; 7551 7552 esac 7553 shift 7554 done 7555 7556 ac_configure_extra_args= 7557 7558 if $ac_cs_silent; then 7559 exec 6>/dev/null 7560 ac_configure_extra_args="$ac_configure_extra_args --silent" 7561 fi 7562 7563 _ACEOF 7564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7565 if \$ac_cs_recheck; then 7566 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7567 shift 7568 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 7569 CONFIG_SHELL='$SHELL' 7570 export CONFIG_SHELL 7571 exec "\$@" 7572 fi 7573 7574 _ACEOF 7575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7576 exec 5>>config.log 7577 { 7578 echo 7579 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7580 ## Running $as_me. ## 7581 _ASBOX 7582 $as_echo "$ac_log" 7583 } >&5 7584 7585 _ACEOF 7586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7587 _ACEOF 7588 7589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7590 7591 # Handling of arguments. 7592 for ac_config_target in $ac_config_targets 7593 do 7594 case $ac_config_target in 7595 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; 7596 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; 7597 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; 7598 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; 7599 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; 7600 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; 7601 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; 7602 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;; 7603 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; 7604 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; 7605 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; 7606 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; 7607 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; 7608 "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; 7609 7610 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 7611 esac 7612 done 7613 7614 7615 # If the user did not use the arguments to specify the items to instantiate, 7616 # then the envvar interface is used. Set only those that are not. 7617 # We use the long form for the default assignment because of an extremely 7618 # bizarre bug on SunOS 4.1.3. 7619 if $ac_need_defaults; then 7620 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7621 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7622 fi 7623 7624 # Have a temporary directory for convenience. Make it in the build tree 7625 # simply because there is no reason against having it here, and in addition, 7626 # creating and moving files from /tmp can sometimes cause problems. 7627 # Hook for its removal unless debugging. 7628 # Note that there is a small window in which the directory will not be cleaned: 7629 # after its creation but before its name has been assigned to `$tmp'. 7630 $debug || 7631 { 7632 tmp= 7633 trap 'exit_status=$? 7634 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 7635 ' 0 7636 trap 'as_fn_exit 1' 1 2 13 15 7637 } 7638 # Create a (secure) tmp directory for tmp files. 7639 7640 { 7641 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7642 test -n "$tmp" && test -d "$tmp" 7643 } || 7644 { 7645 tmp=./conf$$-$RANDOM 7646 (umask 077 && mkdir "$tmp") 7647 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 7648 7649 # Set up the scripts for CONFIG_FILES section. 7650 # No need to generate them if there are no CONFIG_FILES. 7651 # This happens for instance with `./config.status config.h'. 7652 if test -n "$CONFIG_FILES"; then 7653 7654 7655 ac_cr=`echo X | tr X '\015'` 7656 # On cygwin, bash can eat \r inside `` if the user requested igncr. 7657 # But we know of no other shell where ac_cr would be empty at this 7658 # point, so we can use a bashism as a fallback. 7659 if test "x$ac_cr" = x; then 7660 eval ac_cr=\$\'\\r\' 7661 fi 7662 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 7663 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7664 ac_cs_awk_cr='\r' 7665 else 7666 ac_cs_awk_cr=$ac_cr 7667 fi 7668 7669 echo 'BEGIN {' >"$tmp/subs1.awk" && 7670 _ACEOF 7671 7672 7673 { 7674 echo "cat >conf$$subs.awk <<_ACEOF" && 7675 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 7676 echo "_ACEOF" 7677 } >conf$$subs.sh || 7678 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 7679 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 7680 ac_delim='%!_!# ' 7681 for ac_last_try in false false false false false :; do 7682 . ./conf$$subs.sh || 7683 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 7684 7685 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 7686 if test $ac_delim_n = $ac_delim_num; then 7687 break 7688 elif $ac_last_try; then 7689 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 7690 else 7691 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7692 fi 7693 done 7694 rm -f conf$$subs.sh 7695 7696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7697 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 7698 _ACEOF 7699 sed -n ' 7700 h 7701 s/^/S["/; s/!.*/"]=/ 7702 p 7703 g 7704 s/^[^!]*!// 7705 :repl 7706 t repl 7707 s/'"$ac_delim"'$// 7708 t delim 7709 :nl 7710 h 7711 s/\(.\{148\}\)..*/\1/ 7712 t more1 7713 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 7714 p 7715 n 7716 b repl 7717 :more1 7718 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7719 p 7720 g 7721 s/.\{148\}// 7722 t nl 7723 :delim 7724 h 7725 s/\(.\{148\}\)..*/\1/ 7726 t more2 7727 s/["\\]/\\&/g; s/^/"/; s/$/"/ 7728 p 7729 b 7730 :more2 7731 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7732 p 7733 g 7734 s/.\{148\}// 7735 t delim 7736 ' <conf$$subs.awk | sed ' 7737 /^[^""]/{ 7738 N 7739 s/\n// 7740 } 7741 ' >>$CONFIG_STATUS || ac_write_fail=1 7742 rm -f conf$$subs.awk 7743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7744 _ACAWK 7745 cat >>"\$tmp/subs1.awk" <<_ACAWK && 7746 for (key in S) S_is_set[key] = 1 7747 FS = "" 7748 7749 } 7750 { 7751 line = $ 0 7752 nfields = split(line, field, "@") 7753 substed = 0 7754 len = length(field[1]) 7755 for (i = 2; i < nfields; i++) { 7756 key = field[i] 7757 keylen = length(key) 7758 if (S_is_set[key]) { 7759 value = S[key] 7760 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 7761 len += length(value) + length(field[++i]) 7762 substed = 1 7763 } else 7764 len += 1 + keylen 7765 } 7766 7767 print line 7768 } 7769 7770 _ACAWK 7771 _ACEOF 7772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7773 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 7774 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 7775 else 7776 cat 7777 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 7778 || as_fn_error "could not setup config files machinery" "$LINENO" 5 7779 _ACEOF 7780 7781 # VPATH may cause trouble with some makes, so we remove $(srcdir), 7782 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 7783 # trailing colons and then remove the whole line if VPATH becomes empty 7784 # (actually we leave an empty line to preserve line numbers). 7785 if test "x$srcdir" = x.; then 7786 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 7787 s/:*\$(srcdir):*/:/ 7788 s/:*\${srcdir}:*/:/ 7789 s/:*@srcdir@:*/:/ 7790 s/^\([^=]*=[ ]*\):*/\1/ 7791 s/:*$// 7792 s/^[^=]*=[ ]*$// 7793 }' 7794 fi 7795 7796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7797 fi # test -n "$CONFIG_FILES" 7798 7799 # Set up the scripts for CONFIG_HEADERS section. 7800 # No need to generate them if there are no CONFIG_HEADERS. 7801 # This happens for instance with `./config.status Makefile'. 7802 if test -n "$CONFIG_HEADERS"; then 7803 cat >"$tmp/defines.awk" <<\_ACAWK || 7804 BEGIN { 7805 _ACEOF 7806 7807 # Transform confdefs.h into an awk script `defines.awk', embedded as 7808 # here-document in config.status, that substitutes the proper values into 7809 # config.h.in to produce config.h. 7810 7811 # Create a delimiter string that does not exist in confdefs.h, to ease 7812 # handling of long lines. 7813 ac_delim='%!_!# ' 7814 for ac_last_try in false false :; do 7815 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 7816 if test -z "$ac_t"; then 7817 break 7818 elif $ac_last_try; then 7819 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 7820 else 7821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7822 fi 7823 done 7824 7825 # For the awk script, D is an array of macro values keyed by name, 7826 # likewise P contains macro parameters if any. Preserve backslash 7827 # newline sequences. 7828 7829 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 7830 sed -n ' 7831 s/.\{148\}/&'"$ac_delim"'/g 7832 t rset 7833 :rset 7834 s/^[ ]*#[ ]*define[ ][ ]*/ / 7835 t def 7836 d 7837 :def 7838 s/\\$// 7839 t bsnl 7840 s/["\\]/\\&/g 7841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7842 D["\1"]=" \3"/p 7843 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 7844 d 7845 :bsnl 7846 s/["\\]/\\&/g 7847 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7848 D["\1"]=" \3\\\\\\n"\\/p 7849 t cont 7850 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 7851 t cont 7852 d 7853 :cont 7854 n 7855 s/.\{148\}/&'"$ac_delim"'/g 7856 t clear 7857 :clear 7858 s/\\$// 7859 t bsnlc 7860 s/["\\]/\\&/g; s/^/"/; s/$/"/p 7861 d 7862 :bsnlc 7863 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 7864 b cont 7865 ' <confdefs.h | sed ' 7866 s/'"$ac_delim"'/"\\\ 7867 "/g' >>$CONFIG_STATUS || ac_write_fail=1 7868 7869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7870 for (key in D) D_is_set[key] = 1 7871 FS = "" 7872 } 7873 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 7874 line = \$ 0 7875 split(line, arg, " ") 7876 if (arg[1] == "#") { 7877 defundef = arg[2] 7878 mac1 = arg[3] 7879 } else { 7880 defundef = substr(arg[1], 2) 7881 mac1 = arg[2] 7882 } 7883 split(mac1, mac2, "(") #) 7884 macro = mac2[1] 7885 prefix = substr(line, 1, index(line, defundef) - 1) 7886 if (D_is_set[macro]) { 7887 # Preserve the white space surrounding the "#". 7888 print prefix "define", macro P[macro] D[macro] 7889 next 7890 } else { 7891 # Replace #undef with comments. This is necessary, for example, 7892 # in the case of _POSIX_SOURCE, which is predefined and required 7893 # on some systems where configure will not decide to define it. 7894 if (defundef == "undef") { 7895 print "/*", prefix defundef, macro, "*/" 7896 next 7897 } 7898 } 7899 } 7900 { print } 7901 _ACAWK 7902 _ACEOF 7903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7904 as_fn_error "could not setup config headers machinery" "$LINENO" 5 7905 fi # test -n "$CONFIG_HEADERS" 7906 7907 7908 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 7909 shift 7910 for ac_tag 7911 do 7912 case $ac_tag in 7913 :[FHLC]) ac_mode=$ac_tag; continue;; 7914 esac 7915 case $ac_mode$ac_tag in 7916 :[FHL]*:*);; 7917 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 7918 :[FH]-) ac_tag=-:-;; 7919 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 7920 esac 7921 ac_save_IFS=$IFS 7922 IFS=: 7923 set x $ac_tag 7924 IFS=$ac_save_IFS 7925 shift 7926 ac_file=$1 7927 shift 7928 7929 case $ac_mode in 7930 :L) ac_source=$1;; 7931 :[FH]) 7932 ac_file_inputs= 7933 for ac_f 7934 do 7935 case $ac_f in 7936 -) ac_f="$tmp/stdin";; 7937 *) # Look for the file first in the build tree, then in the source tree 7938 # (if the path is not absolute). The absolute path cannot be DOS-style, 7939 # because $ac_f cannot contain `:'. 7940 test -f "$ac_f" || 7941 case $ac_f in 7942 [\\/$]*) false;; 7943 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7944 esac || 7945 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 7946 esac 7947 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 7948 as_fn_append ac_file_inputs " '$ac_f'" 7949 done 7950 7951 # Let's still pretend it is `configure' which instantiates (i.e., don't 7952 # use $as_me), people would be surprised to read: 7953 # /* config.h. Generated by config.status. */ 7954 configure_input='Generated from '` 7955 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 7956 `' by configure.' 7957 if test x"$ac_file" != x-; then 7958 configure_input="$ac_file. $configure_input" 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 7960 $as_echo "$as_me: creating $ac_file" >&6;} 7961 fi 7962 # Neutralize special characters interpreted by sed in replacement strings. 7963 case $configure_input in #( 7964 *\&* | *\|* | *\\* ) 7965 ac_sed_conf_input=`$as_echo "$configure_input" | 7966 sed 's/[\\\\&|]/\\\\&/g'`;; #( 7967 *) ac_sed_conf_input=$configure_input;; 7968 esac 7969 7970 case $ac_tag in 7971 *:-:* | *:-) cat >"$tmp/stdin" \ 7972 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 7973 esac 7974 ;; 7975 esac 7976 7977 ac_dir=`$as_dirname -- "$ac_file" || 7978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7979 X"$ac_file" : 'X\(//\)[^/]' \| \ 7980 X"$ac_file" : 'X\(//\)$' \| \ 7981 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 7982 $as_echo X"$ac_file" | 7983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7984 s//\1/ 7985 q 7986 } 7987 /^X\(\/\/\)[^/].*/{ 7988 s//\1/ 7989 q 7990 } 7991 /^X\(\/\/\)$/{ 7992 s//\1/ 7993 q 7994 } 7995 /^X\(\/\).*/{ 7996 s//\1/ 7997 q 7998 } 7999 s/.*/./; q'` 8000 as_dir="$ac_dir"; as_fn_mkdir_p 14719 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14720 echo "$as_me: error: cannot create directory $as_dir" >&2;} 14721 { (exit 1); exit 1; }; }; } 8001 14722 ac_builddir=. 8002 14723 … … 8004 14725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 8005 14726 *) 8006 ac_dir_suffix=/` $as_echo "$ac_dir" | sed 's|^\.[\\/]||'`14727 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 8007 14728 # A ".." for each directory in $ac_dir_suffix. 8008 ac_top_builddir_sub=` $as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`14729 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 8009 14730 case $ac_top_builddir_sub in 8010 14731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; … … 8042 14763 _ACEOF 8043 14764 8044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=114765 cat >>$CONFIG_STATUS <<\_ACEOF 8045 14766 # If the template does not know about datarootdir, expand it. 8046 14767 # FIXME: This hack should be removed a few years after 2.60. 8047 14768 ac_datarootdir_hack=; ac_datarootdir_seen= 8048 ac_sed_dataroot=' 8049 /datarootdir/ {14769 14770 case `sed -n '/datarootdir/ { 8050 14771 p 8051 14772 q … … 8055 14776 /@infodir@/p 8056 14777 /@localedir@/p 8057 /@mandir@/p '8058 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in14778 /@mandir@/p 14779 ' $ac_file_inputs` in 8059 14780 *datarootdir*) ac_datarootdir_seen=yes;; 8060 14781 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&58062 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}8063 _ACEOF 8064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=114782 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14783 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14784 _ACEOF 14785 cat >>$CONFIG_STATUS <<_ACEOF 8065 14786 ac_datarootdir_hack=' 8066 14787 s&@datadir@&$datadir&g … … 8069 14790 s&@localedir@&$localedir&g 8070 14791 s&@mandir@&$mandir&g 8071 s&\\\${datarootdir}&$datarootdir&g' ;;14792 s&\\\${datarootdir}&$datarootdir&g' ;; 8072 14793 esac 8073 14794 _ACEOF … … 8076 14797 # Shell code in configure.ac might set extrasub. 8077 14798 # FIXME: do we really want to maintain this feature? 8078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=18079 ac_sed_extra="$ac_vpsub14799 cat >>$CONFIG_STATUS <<_ACEOF 14800 sed "$ac_vpsub 8080 14801 $extrasub 8081 14802 _ACEOF 8082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=114803 cat >>$CONFIG_STATUS <<\_ACEOF 8083 14804 :t 8084 14805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8085 s |@configure_input@|$ac_sed_conf_input|;t t14806 s&@configure_input@&$configure_input&;t t 8086 14807 s&@top_builddir@&$ac_top_builddir_sub&;t t 8087 s&@top_build_prefix@&$ac_top_build_prefix&;t t8088 14808 s&@srcdir@&$ac_srcdir&;t t 8089 14809 s&@abs_srcdir@&$ac_abs_srcdir&;t t … … 8094 14814 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 8095 14815 $ac_datarootdir_hack 8096 " 8097 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 8098 || as_fn_error "could not create $ac_file" "$LINENO" 5 14816 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 8099 14817 8100 14818 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 8101 14819 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 8102 14820 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'14821 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8104 14822 which seems to be undefined. Please make sure it is defined." >&5 8105 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'14823 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8106 14824 which seems to be undefined. Please make sure it is defined." >&2;} 8107 14825 8108 14826 rm -f "$tmp/stdin" 8109 14827 case $ac_file in 8110 -) cat "$tmp/out" && rm -f "$tmp/out";; 8111 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 8112 esac \ 8113 || as_fn_error "could not create $ac_file" "$LINENO" 5 14828 -) cat "$tmp/out"; rm -f "$tmp/out";; 14829 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 14830 esac 8114 14831 ;; 8115 14832 :H) … … 8117 14834 # CONFIG_HEADER 8118 14835 # 14836 _ACEOF 14837 14838 # Transform confdefs.h into a sed script `conftest.defines', that 14839 # substitutes the proper values into config.h.in to produce config.h. 14840 rm -f conftest.defines conftest.tail 14841 # First, append a space to every undef/define line, to ease matching. 14842 echo 's/$/ /' >conftest.defines 14843 # Then, protect against being on the right side of a sed subst, or in 14844 # an unquoted here document, in config.status. If some macros were 14845 # called several times there might be several #defines for the same 14846 # symbol, which is useless. But do not sort them, since the last 14847 # AC_DEFINE must be honored. 14848 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14849 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 14850 # NAME is the cpp macro being defined, VALUE is the value it is being given. 14851 # PARAMS is the parameter list in the macro definition--in most cases, it's 14852 # just an empty string. 14853 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 14854 ac_dB='\\)[ (].*,\\1define\\2' 14855 ac_dC=' ' 14856 ac_dD=' ,' 14857 14858 uniq confdefs.h | 14859 sed -n ' 14860 t rset 14861 :rset 14862 s/^[ ]*#[ ]*define[ ][ ]*// 14863 t ok 14864 d 14865 :ok 14866 s/[\\&,]/\\&/g 14867 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 14868 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 14869 ' >>conftest.defines 14870 14871 # Remove the space that was appended to ease matching. 14872 # Then replace #undef with comments. This is necessary, for 14873 # example, in the case of _POSIX_SOURCE, which is predefined and required 14874 # on some systems where configure will not decide to define it. 14875 # (The regexp can be short, since the line contains either #define or #undef.) 14876 echo 's/ $// 14877 s,^[ #]*u.*,/* & */,' >>conftest.defines 14878 14879 # Break up conftest.defines: 14880 ac_max_sed_lines=50 14881 14882 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 14883 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 14884 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 14885 # et cetera. 14886 ac_in='$ac_file_inputs' 14887 ac_out='"$tmp/out1"' 14888 ac_nxt='"$tmp/out2"' 14889 14890 while : 14891 do 14892 # Write a here document: 14893 cat >>$CONFIG_STATUS <<_ACEOF 14894 # First, check the format of the line: 14895 cat >"\$tmp/defines.sed" <<\\CEOF 14896 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*/b def 14897 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 14898 b 14899 :def 14900 _ACEOF 14901 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 14902 echo 'CEOF 14903 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 14904 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 14905 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 14906 grep . conftest.tail >/dev/null || break 14907 rm -f conftest.defines 14908 mv conftest.tail conftest.defines 14909 done 14910 rm -f conftest.defines conftest.tail 14911 14912 echo "ac_result=$ac_in" >>$CONFIG_STATUS 14913 cat >>$CONFIG_STATUS <<\_ACEOF 8119 14914 if test x"$ac_file" != x-; then 8120 { 8121 $as_echo "/* $configure_input */" \ 8122 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 8123 } >"$tmp/config.h" \ 8124 || as_fn_error "could not create $ac_file" "$LINENO" 5 8125 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 8127 $as_echo "$as_me: $ac_file is unchanged" >&6;} 14915 echo "/* $configure_input */" >"$tmp/config.h" 14916 cat "$ac_result" >>"$tmp/config.h" 14917 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 14918 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14919 echo "$as_me: $ac_file is unchanged" >&6;} 8128 14920 else 8129 rm -f "$ac_file" 8130 mv "$tmp/config.h" "$ac_file" \ 8131 || as_fn_error "could not create $ac_file" "$LINENO" 5 14921 rm -f $ac_file 14922 mv "$tmp/config.h" $ac_file 8132 14923 fi 8133 14924 else 8134 $as_echo "/* $configure_input */" \ 8135 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 8136 || as_fn_error "could not create -" "$LINENO" 5 14925 echo "/* $configure_input */" 14926 cat "$ac_result" 8137 14927 fi 14928 rm -f "$tmp/out12" 8138 14929 ;; 8139 14930 … … 8144 14935 8145 14936 8146 as_fn_exit 0 8147 _ACEOF 14937 { (exit 0); exit 0; } 14938 _ACEOF 14939 chmod +x $CONFIG_STATUS 8148 14940 ac_clean_files=$ac_clean_files_save 8149 8150 test $ac_write_fail = 0 ||8151 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 58152 14941 8153 14942 … … 8170 14959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8171 14960 # would make configure fail if this is the last instruction. 8172 $ac_cs_success || as_fn_exit $? 8173 fi 8174 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 8176 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 8177 fi 8178 8179 8180 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 14961 $ac_cs_success || { (exit 1); exit 1; } 14962 fi 14963 14964 14965 14966 { echo "$as_me:$LINENO: result: 8182 14967 8183 14968 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. … … 8189 14974 The next step now is to run 'make dep' and 'make'. 8190 14975 " >&5 8191 $as_echo " 14976 echo "${ECHO_T} 8192 14977 8193 14978 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. -
pjproject/trunk/aconfigure.ac
r3827 r3841 53 53 if test "$LD" = ""; then LD="$CC"; fi 54 54 AC_SUBST(LD) 55 if test "$LDOUT" = ""; then LDOUT="-o "; fi55 if test "$LDOUT" = ""; then LDOUT="-o "; fi 56 56 AC_SUBST(LDOUT) 57 57 if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi … … 63 63 if test "$LIBEXT2" = ""; then LIBEXT2=""; fi 64 64 AC_SUBST(LIBEXT2) 65 if test "$CC_OUT" = ""; then CC_OUT="-o "; fi65 if test "$CC_OUT" = ""; then CC_OUT="-o "; fi 66 66 AC_SUBST(CC_OUT) 67 67 if test "$CC_INC" = ""; then CC_INC="-I"; fi … … 127 127 dnl 128 128 AC_C_BIGENDIAN 129 130 if test "x$ac_cv_c_bigendian" = "xyes"; then 131 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0" 132 else 133 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1" 134 fi 129 135 130 136 dnl … … 1179 1185 ]) 1180 1186 1187 dnl # Include opencore-amrnb support 1188 AC_SUBST(ac_no_opencore_amrnb) 1189 AC_ARG_ENABLE(opencore_amrnb, 1190 AC_HELP_STRING([--disable-opencore-amrnb], 1191 [Exclude OpenCORE AMR-NB support from the build (default: autodetect)]) 1192 , 1193 [ 1194 if test "$enable_opencore_amrnb" = "no"; then 1195 [ac_no_opencore_amrnb=1] 1196 AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC,0) 1197 AC_MSG_RESULT([Checking if OpenCORE AMR-NB support is disabled... yes]) 1198 fi 1199 ], 1200 [ 1201 AC_MSG_RESULT([checking for OpenCORE AMR-NB installations..]) 1202 AC_SUBST(opencore_amrnb_h_present) 1203 AC_SUBST(opencore_amrnb_present) 1204 AC_CHECK_HEADER(opencore-amrnb/interf_enc.h,[opencore_amrnb_h_present=1]) 1205 AC_CHECK_LIB(opencore-amrnb,Encoder_Interface_init,[opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"]) 1206 if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then 1207 AC_MSG_RESULT([OpenCORE AMR-NB library found, AMR-NB support enabled]) 1208 AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC,1) 1209 else 1210 [ac_no_opencore_amrnb=1] 1211 AC_DEFINE(PJMEDIA_HAS_OPENCORE_AMRNB_CODEC,0) 1212 fi 1213 ]) 1214 1181 1215 1182 1216 dnl ########################################## -
pjproject/trunk/configure-iphone
r3462 r3841 72 72 73 73 if test "${CC}" = ""; then 74 for archpath in `ls -d ${SDKPATH}/usr/lib/gcc/arm-apple-darwin*`; do 75 archname=`basename ${archpath}` 76 for gccver in `ls ${archpath}`; do 77 gccpath="${DEVPATH}/usr/bin/${archname}-gcc-${gccver}" 78 if test -e ${gccpath}; then 79 export CC="${gccpath}" 80 # break 81 fi 74 # Try to use llvm-gcc if available 75 gccpath="${DEVPATH}/usr/bin/llvm-gcc" 76 if test -e ${gccpath}; then 77 export CC="${gccpath}" 78 79 if test "${ARCH}" = ""; then 80 export ARCH="-arch armv7" 81 echo "$F: ARCH is not specified, choosing ${ARCH}" 82 fi 83 else 84 for archpath in `ls -d ${SDKPATH}/usr/lib/gcc/arm-apple-darwin*`; do 85 archname=`basename ${archpath}` 86 for gccver in `ls ${archpath}`; do 87 gccpath="${DEVPATH}/usr/bin/${archname}-gcc-${gccver}" 88 if test -e ${gccpath}; then 89 export CC="${gccpath}" 90 fi 91 done 82 92 done 83 if test ! "${CC}" = ""; then 84 echo "$F: CC is not specified, choosing ${CC}" 85 break 86 fi 87 done 93 fi 94 if test ! "${CC}" = ""; then 95 echo "$F: CC is not specified, choosing ${CC}" 96 fi 88 97 fi 89 98 -
pjproject/trunk/pjlib-util/include/pjlib-util/http_client.h
r3553 r3841 189 189 pj_http_auth_cred auth_cred; 190 190 191 /** 192 * Optional source port range to use when binding the socket. 193 * This can be used if the source port needs to be within a certain range 194 * for instance due to strict firewall settings. The port used will be 195 * randomized within the range. 196 * 197 * Note that if authentication is configured, the authentication response 198 * will be a new transaction 199 * 200 * Default is 0 (The OS will select the source port automatically) 201 */ 202 pj_uint16_t source_port_range_start; 203 204 /** 205 * Optional source port range to use when binding. 206 * The size of the port restriction range 207 * 208 * Default is 0 (The OS will select the source port automatically)) 209 */ 210 pj_uint16_t source_port_range_size; 211 212 /** 213 * Max number of retries if binding to a port fails. 214 * Note that this does not adress the scenario where a request times out 215 * or errors. This needs to be taken care of by the on_complete callback. 216 * 217 * Default is 3 218 */ 219 pj_uint16_t max_retries; 220 191 221 } pj_http_req_param; 192 222 -
pjproject/trunk/pjlib-util/src/pjlib-util/http_client.c
r3553 r3841 27 27 #include <pj/string.h> 28 28 #include <pj/timer.h> 29 #include <pj/rand.h> 29 30 #include <pjlib-util/base64.h> 30 31 #include <pjlib-util/errno.h> … … 33 34 #include <pjlib-util/string.h> 34 35 36 #define THIS_FILE "http_client.c" 37 35 38 #if 0 36 39 /* Enable some tracing */ 37 #define THIS_FILE "http_client.c"38 40 #define TRACE_(arg) PJ_LOG(3,arg) 39 41 #else … … 765 767 param->timeout.msec = PJ_HTTP_DEFAULT_TIMEOUT; 766 768 pj_time_val_normalize(¶m->timeout); 769 param->max_retries = 3; 767 770 } 768 771 … … 1005 1008 } 1006 1009 1007 PJ_DEF(pj_status_t) pj_http_req_start(pj_http_req *http_req) 1010 static pj_status_t start_http_req(pj_http_req *http_req, 1011 pj_bool_t notify_on_fail) 1008 1012 { 1009 1013 pj_sock_t sock = PJ_INVALID_SOCKET; 1010 1014 pj_status_t status; 1011 1015 pj_activesock_cb asock_cb; 1016 int retry = 0; 1012 1017 1013 1018 PJ_ASSERT_RETURN(http_req, PJ_EINVAL); … … 1032 1037 http_req->addr.ipv4.sin_addr.s_addr==PJ_INADDR_NONE)) 1033 1038 { 1034 return status; // cannot resolve host name1039 goto on_return; 1035 1040 } 1036 1041 http_req->resolved = PJ_TRUE; … … 1046 1051 asock_cb.on_data_sent = &http_on_data_sent; 1047 1052 asock_cb.on_connect_complete = &http_on_connect; 1053 1054 do 1055 { 1056 pj_sockaddr_in bound_addr; 1057 pj_uint16_t port = 0; 1058 1059 /* If we are using port restriction. 1060 * Get a random port within the range 1061 */ 1062 if (http_req->param.source_port_range_start != 0) { 1063 port = (pj_uint16_t) 1064 (http_req->param.source_port_range_start + 1065 (pj_rand() % http_req->param.source_port_range_size)); 1066 } 1067 1068 pj_sockaddr_in_init(&bound_addr, NULL, port); 1069 status = pj_sock_bind(sock, &bound_addr, sizeof(bound_addr)); 1070 1071 } while (status != PJ_SUCCESS && (retry++ < http_req->param.max_retries)); 1072 1073 if (status != PJ_SUCCESS) { 1074 PJ_PERROR(1,(THIS_FILE, status, 1075 "Unable to bind to the requested port")); 1076 pj_sock_close(sock); 1077 goto on_return; 1078 } 1048 1079 1049 1080 // TODO: should we set whole data to 0 by default? … … 1053 1084 &asock_cb, http_req, &http_req->asock); 1054 1085 if (status != PJ_SUCCESS) { 1055 if (sock != PJ_INVALID_SOCKET) 1056 pj_sock_close(sock); 1086 pj_sock_close(sock); 1057 1087 goto on_return; // error creating activesock 1058 1088 } … … 1075 1105 if (status == PJ_SUCCESS) { 1076 1106 http_req->state = SENDING_REQUEST; 1077 return http_req_start_sending(http_req); 1107 status = http_req_start_sending(http_req); 1108 if (status != PJ_SUCCESS) 1109 goto on_return; 1078 1110 } else if (status != PJ_EPENDING) { 1079 1111 goto on_return; // error connecting … … 1083 1115 1084 1116 on_return: 1085 http_req_end_request(http_req); 1117 http_req->error = status; 1118 if (notify_on_fail) 1119 pj_http_req_cancel(http_req, PJ_TRUE); 1120 else 1121 http_req_end_request(http_req); 1122 1086 1123 return status; 1124 } 1125 1126 /* Starts an asynchronous HTTP request to the URL specified. */ 1127 PJ_DEF(pj_status_t) pj_http_req_start(pj_http_req *http_req) 1128 { 1129 return start_http_req(http_req, PJ_FALSE); 1087 1130 } 1088 1131 … … 1346 1389 const pj_str_t STR_MD5 = { "MD5", 3 }; 1347 1390 const pj_str_t qop = pj_str("auth"); 1348 const pj_str_t nc = pj_str(" 1");1391 const pj_str_t nc = pj_str("00000001"); 1349 1392 const pj_str_t cnonce = pj_str("b39971"); 1350 1393 … … 1434 1477 http_req_end_request(hreq); 1435 1478 1436 status = pj_http_req_start(hreq);1479 status = start_http_req(hreq, PJ_TRUE); 1437 1480 if (status != PJ_SUCCESS) 1438 1481 goto on_error; -
pjproject/trunk/pjlib-util/src/pjlib-util/pcap.c
r3553 r3841 369 369 *udp_payload_size = sz; 370 370 371 // Some layers may have trailer, e.g: link eth2. 371 372 /* Check that we've read all the packets */ 372 PJ_ASSERT_RETURN(sz_read == rec_incl, PJ_EBUG); 373 //PJ_ASSERT_RETURN(sz_read == rec_incl, PJ_EBUG); 374 375 /* Skip trailer */ 376 while (sz_read < rec_incl) { 377 sz = rec_incl - sz_read; 378 status = read_file(file, &tmp.eth, &sz); 379 if (status != PJ_SUCCESS) { 380 TRACE_((file->obj_name, "Error reading trailer: %d", status)); 381 return status; 382 } 383 sz_read += sz; 384 } 373 385 374 386 return PJ_SUCCESS; -
pjproject/trunk/pjlib/include/pj/compat/os_auto.h.in
r3543 r3841 178 178 /* Use CFHost API for pj_getaddrinfo() (see ticket #1246) */ 179 179 # define PJ_GETADDRINFO_USE_CFHOST 1 180 /* Disable local host resolution in pj_gethostip() (see ticket #1342) */ 181 # define PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION 1 180 182 # ifdef __IPHONE_4_0 181 183 /* Is multitasking support available? (see ticket #1107) */ -
pjproject/trunk/pjlib/include/pj/compat/os_symbian.h
r3553 r3841 109 109 #endif 110 110 111 /* Endianness */ 112 #ifndef PJ_IS_LITTLE_ENDIAN 113 # define PJ_IS_LITTLE_ENDIAN 1 114 # define PJ_IS_BIG_ENDIAN 0 115 #endif 111 116 112 117 /* Doesn't seem to allow more than this */ -
pjproject/trunk/pjlib/include/pj/compat/os_win32_wince.h
r3553 r3841 99 99 #define PJ_SELECT_NEEDS_NFDS 0 100 100 101 /* Endianness */ 102 #ifndef PJ_IS_LITTLE_ENDIAN 103 # define PJ_IS_LITTLE_ENDIAN 1 104 # define PJ_IS_BIG_ENDIAN 0 105 #endif 106 101 107 /* Default threading is enabled, unless it's overridden. */ 102 108 #ifndef PJ_HAS_THREADS -
pjproject/trunk/pjlib/include/pj/config.h
r3808 r3841 171 171 defined(__IA64__) || defined( _M_IA64) 172 172 /* 173 * Intel IA64 processor, little endian173 * Intel IA64 processor, default to little endian 174 174 */ 175 175 # undef PJ_M_IA64 … … 209 209 defined(__MIPS__) || defined(MIPS) || defined(_MIPS_) 210 210 /* 211 * MIPS, default to little endian211 * MIPS, bi-endian, so raise error if endianness is not configured 212 212 */ 213 213 # undef PJ_M_MIPS … … 215 215 # define PJ_M_NAME "mips" 216 216 # define PJ_HAS_PENTIUM 0 217 # if !defined(PJ_IS_LITTLE_ENDIAN) && !defined(PJ_IS_BIG_ENDIAN) 218 # define PJ_IS_LITTLE_ENDIAN 1 219 # define PJ_IS_BIG_ENDIAN 0 217 # if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN 218 # error Endianness must be declared for this processor 220 219 # endif 221 220 … … 235 234 defined(ARMV4) || defined(__arm__) 236 235 /* 237 * ARM, default to little endian236 * ARM, bi-endian, so raise error if endianness is not configured 238 237 */ 239 238 # undef PJ_M_ARMV4 … … 241 240 # define PJ_M_NAME "armv4" 242 241 # define PJ_HAS_PENTIUM 0 243 # if !defined(PJ_IS_LITTLE_ENDIAN) && !defined(PJ_IS_BIG_ENDIAN) 244 # define PJ_IS_LITTLE_ENDIAN 1 245 # define PJ_IS_BIG_ENDIAN 0 242 # if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN 243 # error Endianness must be declared for this processor 246 244 # endif 247 245 … … 250 248 defined(_ARCH_PPC) 251 249 /* 252 * PowerPC, bi g endian250 * PowerPC, bi-endian, so raise error if endianness is not configured 253 251 */ 254 252 # undef PJ_M_POWERPC … … 256 254 # define PJ_M_NAME "powerpc" 257 255 # define PJ_HAS_PENTIUM 0 258 # define PJ_IS_LITTLE_ENDIAN 0 259 # define PJ_IS_BIG_ENDIAN 1 256 # if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN 257 # error Endianness must be declared for this processor 258 # endif 260 259 261 260 #elif defined (PJ_M_NIOS2) || defined(__nios2) || defined(__nios2__) || \ -
pjproject/trunk/pjlib/include/pj/hash.h
r3553 r3841 126 126 * created. 127 127 * @param ht the hash table. 128 * @param key the key , which MUST point to buffer that remains valid129 * 128 * @param key the key. If pool is not specified, the key MUST point to 129 * buffer that remains valid for the duration of the entry. 130 130 * @param keylen the length of the key, or PJ_HASH_KEY_STRING to use the 131 131 * string length of the key. -
pjproject/trunk/pjlib/include/pj/sock.h
r3553 r3841 494 494 #define PJ_INET6_ADDRSTRLEN 46 495 495 496 /** 497 * The size of sin_zero field in pj_sockaddr_in structure. Most OSes 498 * use 8, but others such as the BSD TCP/IP stack in eCos uses 24. 499 */ 500 #ifndef PJ_SOCKADDR_IN_SIN_ZERO_LEN 501 # define PJ_SOCKADDR_IN_SIN_ZERO_LEN 8 502 #endif 496 503 497 504 /** … … 513 520 pj_uint16_t sin_port; /**< Transport layer port number. */ 514 521 pj_in_addr sin_addr; /**< IP address. */ 515 char sin_zero[ 8]; /**< Padding.*/522 char sin_zero[PJ_SOCKADDR_IN_SIN_ZERO_LEN]; /**< Padding.*/ 516 523 }; 517 524 -
pjproject/trunk/pjlib/src/pj/ioqueue_symbian.cpp
r3553 r3841 341 341 void CIoqueueCallback::RunL() 342 342 { 343 pj_ioqueue_t *ioq = ioqueue_; 343 344 Type cur_type = type_; 344 345 … … 400 401 } 401 402 402 ioq ueue_->eventCount++;403 ioq->eventCount++; 403 404 } 404 405 -
pjproject/trunk/pjlib/src/pj/sock_common.c
r3553 r3841 785 785 PJ_SOCKADDR_RESET_LEN(addr); 786 786 787 #if !defined(PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION) || \ 788 PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION == 0 787 789 /* Get hostname's IP address */ 788 790 count = 1; … … 798 800 pj_sockaddr_print(&ai.ai_addr, strip, sizeof(strip), 0))); 799 801 } 800 802 #else 803 PJ_UNUSED_ARG(ai); 804 PJ_UNUSED_ARG(count); 805 #endif 801 806 802 807 /* Get default interface (interface for default route) */ -
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r3553 r3841 311 311 if (!meth) 312 312 meth = (SSL_METHOD*)SSLv3_server_method(); 313 #ifndef OPENSSL_NO_SSL2 313 314 if (!meth) 314 315 meth = (SSL_METHOD*)SSLv2_server_method(); 316 #endif 315 317 pj_assert(meth); 316 318 … … 489 491 ssl_method = (SSL_METHOD*)TLSv1_method(); 490 492 break; 493 #ifndef OPENSSL_NO_SSL2 491 494 case PJ_SSL_SOCK_PROTO_SSL2: 492 495 ssl_method = (SSL_METHOD*)SSLv2_method(); 493 496 break; 497 #endif 494 498 case PJ_SSL_SOCK_PROTO_SSL3: 495 499 ssl_method = (SSL_METHOD*)SSLv3_method(); -
pjproject/trunk/pjlib/src/pjlib-test/os.c
r3553 r3841 23 23 24 24 #if INCLUDE_OS_TEST 25 static int endianness_test32(void) 26 { 27 union t 28 { 29 pj_uint32_t u32; 30 pj_uint16_t u16[2]; 31 pj_uint8_t u8[4]; 32 } t; 33 34 PJ_LOG(3,("", " Testing endianness..")); 35 36 t.u32 = 0x11223344; 37 38 #if defined(PJ_IS_LITTLE_ENDIAN) && PJ_IS_LITTLE_ENDIAN 39 PJ_LOG(3,("", " Library is set to little endian")); 40 41 # if defined(PJ_IS_BIG_ENDIAN) && PJ_IS_BIG_ENDIAN 42 # error Error: Both PJ_IS_LITTLE_ENDIAN and PJ_IS_BIG_ENDIAN are set! 43 # endif 44 45 if ((t.u16[0] & 0xFFFF) != 0x3344 || 46 (t.u16[1] & 0xFFFF) != 0x1122) 47 { 48 PJ_LOG(3,("", " Error: wrong 16bit values 0x%x and 0x%x", 49 (t.u16[0] & 0xFFFF), (t.u16[1] & 0xFFFF))); 50 return 10; 51 } 52 53 if ((t.u8[0] & 0xFF) != 0x44 || 54 (t.u8[1] & 0xFF) != 0x33 || 55 (t.u8[2] & 0xFF) != 0x22 || 56 (t.u8[3] & 0xFF) != 0x11) 57 { 58 PJ_LOG(3,("", " Error: wrong 8bit values")); 59 return 12; 60 } 61 62 #elif defined(PJ_IS_BIG_ENDIAN) && PJ_IS_BIG_ENDIAN 63 PJ_LOG(3,("", " Library is set to big endian")); 64 65 if ((t.u16[0] & 0xFFFF) != 0x1122 || 66 (t.u16[1] & 0xFFFF) != 0x3344) 67 { 68 PJ_LOG(3,("", " Error: wrong 16bit values 0x%x and 0x%x", 69 (t.u16[0] & 0xFFFF), (t.u16[1] & 0xFFFF))); 70 return 20; 71 } 72 73 if ((t.u8[0] & 0xFF) != 0x11 || 74 (t.u8[1] & 0xFF) != 0x22 || 75 (t.u8[2] & 0xFF) != 0x33 || 76 (t.u8[3] & 0xFF) != 0x44) 77 { 78 PJ_LOG(3,("", " Error: wrong 8bit values")); 79 return 22; 80 } 81 82 # if defined(PJ_IS_LITTLE_ENDIAN) && PJ_IS_LITTLE_ENDIAN 83 # error Error: Both PJ_IS_LITTLE_ENDIAN and PJ_IS_BIG_ENDIAN are set! 84 # endif 85 86 87 #else 88 # error Error: Endianness is not set properly! 89 #endif 90 91 return 0; 92 } 93 25 94 int os_test(void) 26 95 { … … 28 97 int rc = 0; 29 98 99 PJ_LOG(3,("", " Sys info:")); 30 100 si = pj_get_sys_info(); 31 101 PJ_LOG(3,("", " machine: %s", si->machine.ptr)); … … 36 106 PJ_LOG(3,("", " info: %s", si->info.ptr)); 37 107 108 rc = endianness_test32(); 109 38 110 return rc; 39 111 } -
pjproject/trunk/pjlib/src/pjlib-test/sock.c
r3553 r3841 511 511 if (srclen != addrlen) 512 512 return -151; 513 if (pj_ memcmp(&addr, srcaddr, srclen) != 0) {513 if (pj_sockaddr_cmp(&addr, srcaddr) != 0) { 514 514 char srcaddr_str[32], addr_str[32]; 515 515 strcpy(srcaddr_str, pj_inet_ntoa(srcaddr->sin_addr)); -
pjproject/trunk/pjmedia/build/Jbtest.dat
r3396 r3841 20 20 # 3. Success conditions, started with '!', followed by condition name 21 21 # and its maximum tolerable value, in frames unit. Recognized condition 22 # names are: burst, discard, lost, empty, delay . These conditions will23 # be verified with jitter buffer statistics after all session test data24 # are executed.22 # names are: burst, discard, lost, empty, delay, delay_min. These 23 # conditions will be verified with jitter buffer statistics after all 24 # session test data are executed. 25 25 # Example: 26 # !delay 10 <- maximumaverage delay of jbuf is 10 frames26 # !delay 10 <- average delay of jbuf is 10 frames 27 27 # 28 28 # 4. Session test data, containing sequence of jitter buffer events, … … 296 296 !lost 50 <- ticket #1188, normal frame after discarded frame is flagged 'lost' to align signal 297 297 !empty 0 298 !delay 25 <- average delay, JB is able to adapt the delay 299 PPPPPPPPPPPPPPPPPPPP PPPPPPPPPPPPPPPPPPPP PPPPPPPPPP 298 !delay_min 2 <- minimum delay, JB is able to adapt the delay 299 PPPPPPPPPPPPPPPPPPPP PPPPPPPPPPPPPPPPPPPP PPPPPPPPPP 300 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 301 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 302 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 303 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 304 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 305 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 306 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 307 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 308 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 309 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 310 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 311 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 312 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 313 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 314 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 315 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 316 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 300 317 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 301 318 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG … … 317 334 %fixed 5 318 335 !burst 1 319 !discard 0320 !lost 0336 !discard 4 <- the burst level is about 1, but prefetching will cause delay by 5 frames prefetching, delay adjustment may take place later on 337 !lost 4 <- progressive discard drops frames as if they were lost 321 338 !empty 10 322 339 !delay 5 … … 330 347 %fixed 5 331 348 !burst 3 332 !discard 0333 !lost 0349 !discard 4 <- (see above test scenario) 350 !lost 4 <- (see above test scenario) 334 351 !empty 5 335 352 !delay 5 … … 350 367 !lost 50 <- ticket #1188, normal frame after discarded frame is flagged 'lost' to align signal 351 368 !empty 0 352 !delay 20 <- averagedelay, twice of minimal prefetch369 !delay_min 20 <- minimum delay, twice of minimal prefetch 353 370 PPPPPPPPPPPPPPPPPPPP PPPPPPPPPPPPPPPPPPPP PPPPPPPPPP 354 371 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG … … 370 387 = Large PUT burst at beginning, then normal with burst level 10 and periodic burst spikes 371 388 %adaptive 0 0 40 372 !burst 1 0389 !burst 12 373 390 !discard 300 <- not so relevant for long period session with many delay adjustments needed (i.e: for first burst and periodic spikes) 374 391 !lost 300 <- ticket #1188, normal frame after discarded frame is flagged 'lost' to align signal -
pjproject/trunk/pjmedia/build/os-auto.mak.in
r3668 r3841 58 58 AC_NO_G722_CODEC=@ac_no_g722_codec@ 59 59 AC_NO_G7221_CODEC=@ac_no_g7221_codec@ 60 AC_NO_OPENCORE_AMRNB=@ac_no_opencore_amrnb@ 60 61 61 62 export CODEC_OBJS= … … 108 109 export CODEC_OBJS += g7221.o 109 110 export G7221_CFLAGS += -I$(THIRD_PARTY) 111 endif 112 113 ifeq ($(AC_NO_OPENCORE_AMRNB),1) 114 export CFLAGS += -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 115 else 116 export CODEC_OBJS += opencore_amrnb.o 110 117 endif 111 118 -
pjproject/trunk/pjmedia/build/pjmedia_codec.vcproj
r3665 r3841 2968 2968 </File> 2969 2969 <File 2970 RelativePath="..\src\pjmedia-codec\opencore_amrnb.c" 2971 > 2972 </File> 2973 <File 2970 2974 RelativePath="..\src\pjmedia-codec\passthrough.c" 2971 2975 > … … 3103 3107 </File> 3104 3108 <File 3109 RelativePath="..\include\pjmedia-codec\opencore_amrnb.h" 3110 > 3111 </File> 3112 <File 3105 3113 RelativePath="..\include\pjmedia-codec\passthrough.h" 3106 3114 > -
pjproject/trunk/pjmedia/include/pjmedia-audiodev/config.h
r3664 r3841 146 146 147 147 /** 148 * This setting controls whether the Symbian audio with built-in multimedia 149 * framework backend should be started synchronously. Note that synchronous 150 * start will block the application/UI, e.g: about 40ms for each direction 151 * on N95. While asynchronous start may cause invalid value (always zero) 152 * returned in input/output volume query, if the query is performed when 153 * the internal start procedure is not completely finished. 154 * 155 * Default: 1 (yes) 156 */ 157 #ifndef PJMEDIA_AUDIO_DEV_MDA_USE_SYNC_START 158 # define PJMEDIA_AUDIO_DEV_MDA_USE_SYNC_START 1 159 #endif 160 161 162 /** 148 163 * This setting controls whether the Audio Device API should support 149 164 * device implementation that is based on the old sound device API -
pjproject/trunk/pjmedia/include/pjmedia-codec.h
r3664 r3841 36 36 #include <pjmedia-codec/ipp_codecs.h> 37 37 #include <pjmedia-codec/passthrough.h> 38 #include <pjmedia-codec/opencore_amrnb.h> 38 39 39 40 -
pjproject/trunk/pjmedia/include/pjmedia-codec/amr_helper.h
r3553 r3841 568 568 */ 569 569 const pj_uint8_t pjmedia_codec_amrnb_framelen[16] = 570 {12, 13, 15, 17, 19, 20, 26, 31, 5, 0, 0, 0, 0, 0, 0, 5};570 {12, 13, 15, 17, 19, 20, 26, 31, 5, 0, 0, 0, 0, 0, 0, 0}; 571 571 /** 572 572 * Constant of AMR-NB frame lengths in bits. … … 584 584 */ 585 585 const pj_uint8_t pjmedia_codec_amrwb_framelen[16] = 586 {17, 23, 32, 37, 40, 46, 50, 58, 60, 5, 0, 0, 0, 0, 0, 5};586 {17, 23, 32, 37, 40, 46, 50, 58, 60, 5, 0, 0, 0, 0, 0, 0}; 587 587 /** 588 588 * Constant of AMR-WB frame lengths in bits. … … 607 607 pj_uint8_t start_bit; /**< Frame start bit. */ 608 608 pj_uint8_t good_quality:1; /**< Flag if frame is good/degraded. */ 609 pj_uint8_t STI:1; /**< STI mode (first/update). */ 609 610 } pjmedia_codec_amr_bit_info; 610 611 #pragma pack() … … 1021 1022 1022 1023 /* SID */ 1023 pj_uint8_t STI = 0; 1024 1025 amr_bits[35] = (pj_uint8_t)(STI & 1); 1024 amr_bits[35] |= info->STI; 1026 1025 1027 1026 if (setting->amr_nb) { … … 1164 1163 info->good_quality = (pj_uint8_t)(Q == 1); 1165 1164 info->start_bit = 0; 1165 info->STI = 0; 1166 1166 frames[cnt].timestamp = ts_; 1167 1167 frames[cnt].type = PJMEDIA_FRAME_TYPE_AUDIO; … … 1186 1186 frames[cnt].buf = r; 1187 1187 info->start_bit = r_bitptr; 1188 1189 if (FT == SID_FT) { 1190 unsigned sti_bitptr; 1191 sti_bitptr = r_bitptr + 35; 1192 info->STI = (pj_uint8_t) 1193 (r[sti_bitptr >> 3] >> (7 - (sti_bitptr % 8))) & 1; 1194 } 1188 1195 1189 1196 if (setting->octet_aligned) { -
pjproject/trunk/pjmedia/include/pjmedia-codec/config.h
r3819 r3841 314 314 315 315 /** 316 * Enable OpenCORE AMR-NB codec. 317 * See https://trac.pjsip.org/repos/ticket/1388 for some info. 318 * 319 * Default: 0 320 */ 321 #ifndef PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 322 # define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0 323 #endif 324 325 /** 326 * Link with libopencore-amrXX via pragma comment on Visual Studio. 327 * This option only makes sense if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 328 * is enabled. 329 * 330 * Default: 1 331 */ 332 #ifndef PJMEDIA_AUTO_LINK_OPENCORE_AMR_LIBS 333 # define PJMEDIA_AUTO_LINK_OPENCORE_AMR_LIBS 1 334 #endif 335 336 /** 337 * Link with libopencore-amrXX.a that has been produced with gcc. 338 * This option only makes sense if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 339 * and PJMEDIA_AUTO_LINK_OPENCORE_AMR_LIBS are enabled. 340 * 341 * Default: 1 342 */ 343 #ifndef PJMEDIA_OPENCORE_AMR_BUILT_WITH_GCC 344 # define PJMEDIA_OPENCORE_AMR_BUILT_WITH_GCC 1 345 #endif 346 347 348 /** 316 349 * Default G.722.1 codec encoder and decoder level adjustment. 317 350 * If the value is non-zero, then PCM input samples to the encoder will -
pjproject/trunk/pjmedia/include/pjmedia-codec/config_auto.h.in
r3295 r3841 70 70 #endif 71 71 72 /* OpenCORE AMR-NB codec */ 73 #ifndef PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 74 #undef PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 75 #endif 76 72 77 73 78 #endif /* __PJMEDIA_CODEC_CONFIG_AUTO_H_ */ -
pjproject/trunk/pjmedia/include/pjmedia/config.h
r3837 r3841 388 388 389 389 /** 390 * Number of packets received from different source IP address from the390 * Number of RTP packets received from different source IP address from the 391 391 * remote address required to make the stream switch transmission 392 392 * to the source address. … … 394 394 #ifndef PJMEDIA_RTP_NAT_PROBATION_CNT 395 395 # define PJMEDIA_RTP_NAT_PROBATION_CNT 10 396 #endif 397 398 399 /** 400 * Number of RTCP packets received from different source IP address from the 401 * remote address required to make the stream switch RTCP transmission 402 * to the source address. 403 */ 404 #ifndef PJMEDIA_RTCP_NAT_PROBATION_CNT 405 # define PJMEDIA_RTCP_NAT_PROBATION_CNT 3 396 406 #endif 397 407 … … 917 927 */ 918 928 #ifndef PJMEDIA_STREAM_KA_INTERVAL 919 # define PJMEDIA_STREAM_KA_INTERVAL5929 # define PJMEDIA_STREAM_KA_INTERVAL 5 920 930 #endif 921 931 … … 1058 1068 1059 1069 /** 1070 * Minimum gap between two consecutive discards in jitter buffer, 1071 * in milliseconds. 1072 * 1073 * Default: 200 ms 1074 */ 1075 #ifndef PJMEDIA_JBUF_DISC_MIN_GAP 1076 # define PJMEDIA_JBUF_DISC_MIN_GAP 200 1077 #endif 1078 1079 1080 /** 1081 * Minimum burst level reference used for calculating discard duration 1082 * in jitter buffer progressive discard algorithm, in frames. 1083 * 1084 * Default: 1 frame 1085 */ 1086 #ifndef PJMEDIA_JBUF_PRO_DISC_MIN_BURST 1087 # define PJMEDIA_JBUF_PRO_DISC_MIN_BURST 1 1088 #endif 1089 1090 1091 /** 1092 * Maximum burst level reference used for calculating discard duration 1093 * in jitter buffer progressive discard algorithm, in frames. 1094 * 1095 * Default: 200 frames 1096 */ 1097 #ifndef PJMEDIA_JBUF_PRO_DISC_MAX_BURST 1098 # define PJMEDIA_JBUF_PRO_DISC_MAX_BURST 100 1099 #endif 1100 1101 1102 /** 1103 * Duration for progressive discard algotithm in jitter buffer to discard 1104 * an excessive frame when burst is equal to or lower than 1105 * PJMEDIA_JBUF_PRO_DISC_MIN_BURST, in milliseconds. 1106 * 1107 * Default: 2000 ms 1108 */ 1109 #ifndef PJMEDIA_JBUF_PRO_DISC_T1 1110 # define PJMEDIA_JBUF_PRO_DISC_T1 2000 1111 #endif 1112 1113 1114 /** 1115 * Duration for progressive discard algotithm in jitter buffer to discard 1116 * an excessive frame when burst is equal to or lower than 1117 * PJMEDIA_JBUF_PRO_DISC_MAX_BURST, in milliseconds. 1118 * 1119 * Default: 10000 ms 1120 */ 1121 #ifndef PJMEDIA_JBUF_PRO_DISC_T2 1122 # define PJMEDIA_JBUF_PRO_DISC_T2 10000 1123 #endif 1124 1125 1126 /** 1060 1127 * Video stream will discard old picture from the jitter buffer as soon as 1061 1128 * new picture is received, to reduce latency. -
pjproject/trunk/pjmedia/include/pjmedia/delaybuf.h
r3553 r3841 65 65 66 66 /** 67 * Delay buffer options. 68 */ 69 typedef enum pjmedia_delay_buf_flag 70 { 71 /** 72 * Use simple FIFO mechanism for the delay buffer, i.e. 73 * without WSOLA for expanding and shrinking audio samples. 74 */ 75 PJMEDIA_DELAY_BUF_SIMPLE_FIFO = 1 76 77 } pjmedia_delay_buf_flag; 78 79 /** 67 80 * Create the delay buffer. Once the delay buffer is created, it will 68 81 * enter learning state unless the delay argument is specified, which … … 80 93 * one frame time, default maximum delay used is 81 94 * 400 ms. 82 * @param options Option flags, must be zero for now. 95 * @param options Options. If PJMEDIA_DELAY_BUF_SIMPLE_FIFO is 96 * specified, then a simple FIFO mechanism 97 * will be used instead of the adaptive 98 * implementation (which uses WSOLA to expand 99 * or shrink audio samples). 100 * See #pjmedia_delay_buf_flag for other options. 83 101 * @param p_b Pointer to receive the delay buffer instance. 84 102 * -
pjproject/trunk/pjmedia/include/pjmedia/echo.h
r3553 r3841 89 89 * canceller will not be called by different threads at the same time. 90 90 */ 91 PJMEDIA_ECHO_NO_LOCK = 16 91 PJMEDIA_ECHO_NO_LOCK = 16, 92 93 /** 94 * If PJMEDIA_ECHO_USE_SIMPLE_FIFO flag is specified, the delay buffer 95 * created for the echo canceller will use simple FIFO mechanism, i.e. 96 * without using WSOLA to expand and shrink audio samples. 97 */ 98 PJMEDIA_ECHO_USE_SIMPLE_FIFO = 32 99 92 100 93 101 } pjmedia_echo_flag; -
pjproject/trunk/pjmedia/include/pjmedia/jbuf.h
r3835 r3841 49 49 * Types of frame returned by the jitter buffer. 50 50 */ 51 enum pjmedia_jb_frame_type51 typedef enum pjmedia_jb_frame_type 52 52 { 53 53 PJMEDIA_JB_MISSING_FRAME = 0, /**< No frame because it's missing */ … … 57 57 PJMEDIA_JB_ZERO_EMPTY_FRAME = 3 /**< Zero frame is being returned 58 58 because JB is empty. */ 59 }; 60 61 62 /** 63 * @see pjmedia_jb_frame_type. 64 */ 65 typedef enum pjmedia_jb_frame_type pjmedia_jb_frame_type; 59 } pjmedia_jb_frame_type; 60 61 62 /** 63 * Enumeration of jitter buffer discard algorithm. The jitter buffer 64 * continuously calculates the jitter level to get the optimum latency at 65 * any time and in order to adjust the latency, the jitter buffer may need 66 * to discard some frames. 67 */ 68 typedef enum pjmedia_jb_discard_algo 69 { 70 /** 71 * Jitter buffer should not discard any frame, except when the jitter 72 * buffer is full and a new frame arrives, one frame will be discarded 73 * to make space for the new frame. 74 */ 75 PJMEDIA_JB_DISCARD_NONE = 0, 76 77 /** 78 * Only discard one frame in at least 200ms when the latency is considered 79 * much higher than it should be. When the jitter buffer is full and a new 80 * frame arrives, one frame will be discarded to make space for the new 81 * frame. 82 */ 83 PJMEDIA_JB_DISCARD_STATIC, 84 85 /** 86 * The discard rate is dynamically calculated based on actual parameters 87 * such as jitter level and latency. When the jitter buffer is full and 88 * a new frame arrives, one frame will be discarded to make space for the 89 * new frame. 90 */ 91 PJMEDIA_JB_DISCARD_PROGRESSIVE 92 93 } pjmedia_jb_discard_algo; 66 94 67 95 … … 108 136 * Create an adaptive jitter buffer according to the specification. If 109 137 * application wants to have a fixed jitter buffer, it may call 110 * #pjmedia_jbuf_set_fixed() after the jitter buffer is created. 138 * #pjmedia_jbuf_set_fixed() after the jitter buffer is created. Also 139 * if application wants to alter the discard algorithm, which the default 140 * PJMEDIA_JB_DISCARD_PROGRESSIVE, it may call #pjmedia_jbuf_set_discard(). 111 141 * 112 142 * This function may allocate large chunk of memory to keep the frames in … … 175 205 176 206 /** 177 * Enable/disable the jitter buffer drift detection and handling mechanism.178 * The default behavior is enabled.179 * 180 * @param jb The jitter buffer 181 * @param enable Set to PJ_TRUE to enable or PJ_FALSE to disable.182 * 183 * @return PJ_SUCCESS on success. 184 */ 185 PJ_DECL(pj_status_t) pjmedia_jbuf_ enable_discard(pjmedia_jbuf *jb,186 pj_bool_t enable);207 * Set the jitter buffer discard algorithm. The default discard algorithm, 208 * set in jitter buffer creation, is PJMEDIA_JB_DISCARD_PROGRESSIVE. 209 * 210 * @param jb The jitter buffer. 211 * @param algo The discard algorithm to be used. 212 * 213 * @return PJ_SUCCESS on success. 214 */ 215 PJ_DECL(pj_status_t) pjmedia_jbuf_set_discard(pjmedia_jbuf *jb, 216 pjmedia_jb_discard_algo algo); 187 217 188 218 -
pjproject/trunk/pjmedia/include/pjmedia/session.h
r3553 r3841 233 233 234 234 /** 235 * Send RTCP SDES for the session. 236 * 237 * @param session The media session. 238 * 239 * @return PJ_SUCCESS on success. 240 */ 241 PJ_DECL(pj_status_t) 242 pjmedia_session_send_rtcp_sdes( const pjmedia_session *session ); 243 244 /** 245 * Send RTCP BYE for the session. 246 * 247 * @param session The media session. 248 * 249 * @return PJ_SUCCESS on success. 250 */ 251 PJ_DECL(pj_status_t) 252 pjmedia_session_send_rtcp_bye( const pjmedia_session *session ); 253 254 /** 235 255 * Enumerate media streams in the session. 236 256 * -
pjproject/trunk/pjmedia/include/pjmedia/stream.h
r3837 r3841 136 136 is enabled? */ 137 137 #endif 138 pj_bool_t rtcp_sdes_bye_disabled; 139 /**< Disable automatic sending of RTCP 140 SDES and BYE. */ 138 141 } pjmedia_stream_info; 139 142 … … 405 408 406 409 /** 410 * Send RTCP SDES for the media stream. 411 * 412 * @param stream The media stream. 413 * 414 * @return PJ_SUCCESS on success. 415 */ 416 PJ_DECL(pj_status_t) 417 pjmedia_stream_send_rtcp_sdes( pjmedia_stream *stream ); 418 419 /** 420 * Send RTCP BYE for the media stream. 421 * 422 * @param stream The media stream. 423 * 424 * @return PJ_SUCCESS on success. 425 */ 426 PJ_DECL(pj_status_t) 427 pjmedia_stream_send_rtcp_bye( pjmedia_stream *stream ); 428 429 /** 407 430 * @} 408 431 */ -
pjproject/trunk/pjmedia/include/pjmedia/transport_adapter_sample.h
r3553 r3841 50 50 * @param name Optional name to identify this media transport 51 51 * for logging purposes. 52 * @param transport The underlying media transport to send and receive 53 * RTP/RTCP packets. 52 * @param base_tp The base/underlying media transport to send and 53 * receive RTP/RTCP packets. 54 * @param del_base Specify whether the base transport should also be 55 * destroyed when destroy() is called upon us. 54 56 * @param p_tp Pointer to receive the media transport instance. 55 57 * … … 58 60 PJ_DECL(pj_status_t) pjmedia_tp_adapter_create( pjmedia_endpt *endpt, 59 61 const char *name, 60 pjmedia_transport *transport, 62 pjmedia_transport *base_tp, 63 pj_bool_t del_base, 61 64 pjmedia_transport **p_tp); 62 65 -
pjproject/trunk/pjmedia/src/pjmedia-audiodev/audiodev.c
r3664 r3841 491 491 --aud_subsys.init_count; 492 492 493 for (i=0; i<aud_subsys.drv_cnt; ++i) { 494 deinit_driver(i); 495 } 496 497 aud_subsys.pf = NULL; 493 if (aud_subsys.init_count == 0) { 494 for (i=0; i<aud_subsys.drv_cnt; ++i) { 495 deinit_driver(i); 496 } 497 498 aud_subsys.pf = NULL; 499 } 498 500 return PJ_SUCCESS; 499 501 } -
pjproject/trunk/pjmedia/src/pjmedia-audiodev/coreaudio_dev.c
r3553 r3841 1112 1112 struct stream_list *it, *itBegin; 1113 1113 pj_status_t status; 1114 1114 pj_thread_desc thread_desc; 1115 pj_thread_t *thread; 1116 1117 /* Register the thread with PJLIB, this is must for any external threads 1118 * which need to use the PJLIB framework. 1119 */ 1120 if (!pj_thread_is_registered()) { 1121 pj_bzero(thread_desc, sizeof(pj_thread_desc)); 1122 status = pj_thread_register("intListener", thread_desc, &thread); 1123 } 1124 1115 1125 PJ_LOG(3, (THIS_FILE, "Session interrupted! --- %s ---", 1116 1126 inInterruption == kAudioSessionBeginInterruption ? -
pjproject/trunk/pjmedia/src/pjmedia-audiodev/symb_aps_dev.cpp
r3553 r3841 1087 1087 } else { 1088 1088 enum {NO_DATA_FT = 15 }; 1089 pj_uint8_t amr_header = 4 | |(NO_DATA_FT << 3);1089 pj_uint8_t amr_header = 4 | (NO_DATA_FT << 3); 1090 1090 1091 1091 buf.iBuffer.Append(amr_header); … … 1096 1096 } else { /* PJMEDIA_FRAME_TYPE_NONE */ 1097 1097 enum {NO_DATA_FT = 15 }; 1098 pj_uint8_t amr_header = 4 | |(NO_DATA_FT << 3);1098 pj_uint8_t amr_header = 4 | (NO_DATA_FT << 3); 1099 1099 1100 1100 buf.iBuffer.Append(amr_header); -
pjproject/trunk/pjmedia/src/pjmedia-audiodev/symb_mda_dev.cpp
r3553 r3841 240 240 TInt lastError_; 241 241 pj_uint32_t timeStamp_; 242 CActiveSchedulerWait startAsw_; 242 243 243 244 // cache variable … … 364 365 iInputStream_->Open(&iStreamSettings); 365 366 367 #if defined(PJMEDIA_AUDIO_DEV_MDA_USE_SYNC_START) && \ 368 PJMEDIA_AUDIO_DEV_MDA_USE_SYNC_START != 0 369 370 startAsw_.Start(); 371 372 #endif 373 366 374 // Success 367 375 PJ_LOG(4,(THIS_FILE, "Sound capture started.")); … … 387 395 } 388 396 397 if (startAsw_.IsStarted()) { 398 startAsw_.AsyncStop(); 399 } 400 389 401 state_ = STATE_INACTIVE; 390 402 } … … 400 412 void CPjAudioInputEngine::MaiscOpenComplete(TInt aError) 401 413 { 414 if (startAsw_.IsStarted()) { 415 startAsw_.AsyncStop(); 416 } 417 402 418 lastError_ = aError; 403 419 if (aError != KErrNone) { 404 420 snd_perror("Error in MaiscOpenComplete()", aError); 405 421 return; 422 } 423 424 /* Apply input volume setting if specified */ 425 if (parentStrm_->param.flags & 426 PJMEDIA_AUD_DEV_CAP_INPUT_VOLUME_SETTING) 427 { 428 stream_set_cap(&parentStrm_->base, 429 PJMEDIA_AUD_DEV_CAP_INPUT_VOLUME_SETTING, 430 &parentStrm_->param.input_vol); 406 431 } 407 432 … … 415 440 if (err2) { 416 441 PJ_LOG(4,(THIS_FILE, "Exception in iInputStream_->ReadL()")); 417 } 442 lastError_ = err2; 443 return; 444 } 445 446 // input stream opened succesfully, set status to Active 447 state_ = STATE_ACTIVE; 418 448 } 419 449 … … 548 578 TInt lastError_; 549 579 unsigned timestamp_; 580 CActiveSchedulerWait startAsw_; 550 581 551 582 CPjAudioOutputEngine(struct mda_stream *parent_strm, … … 639 670 lastError_ = KRequestPending; 640 671 iOutputStream_->Open(&iStreamSettings); 672 673 #if defined(PJMEDIA_AUDIO_DEV_MDA_USE_SYNC_START) && \ 674 PJMEDIA_AUDIO_DEV_MDA_USE_SYNC_START != 0 675 676 startAsw_.Start(); 677 678 #endif 641 679 642 680 // Success … … 663 701 } 664 702 703 if (startAsw_.IsStarted()) { 704 startAsw_.AsyncStop(); 705 } 706 665 707 state_ = STATE_INACTIVE; 666 708 } … … 668 710 void CPjAudioOutputEngine::MaoscOpenComplete(TInt aError) 669 711 { 712 if (startAsw_.IsStarted()) { 713 startAsw_.AsyncStop(); 714 } 715 670 716 lastError_ = aError; 671 717 672 718 if (aError==KErrNone) { 673 // output stream opened succesfully, set status to Active674 state_ = STATE_ACTIVE;675 676 719 // set stream properties, 16bit 8KHz mono 677 720 TMdaAudioDataSettings iSettings; … … 684 727 iSettings.iChannels); 685 728 686 // set volume to 1/2th of stream max volume 687 iOutputStream_->SetVolume(iOutputStream_->MaxVolume()/2); 729 /* Apply output volume setting if specified */ 730 if (parentStrm_->param.flags & 731 PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING) 732 { 733 stream_set_cap(&parentStrm_->base, 734 PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING, 735 &parentStrm_->param.output_vol); 736 } else { 737 // set volume to 1/2th of stream max volume 738 iOutputStream_->SetVolume(iOutputStream_->MaxVolume()/2); 739 } 688 740 689 741 // set stream priority to normal and time sensitive … … 719 771 frame_.Set(frameBuf_, frameBufSize_); 720 772 iOutputStream_->WriteL(frame_); 773 774 // output stream opened succesfully, set status to Active 775 state_ = STATE_ACTIVE; 721 776 } else { 722 777 snd_perror("Error in MaoscOpenComplete()", aError); … … 882 937 param->samples_per_frame = af->dev_info.default_samples_per_sec * 20 / 1000; 883 938 param->bits_per_sample = BITS_PER_SAMPLE; 884 param->flags = af->dev_info.caps; 939 // Don't set the flags without specifying the flags value. 940 //param->flags = af->dev_info.caps; 885 941 886 942 return PJ_SUCCESS; … … 956 1012 957 1013 pj_memcpy(pi, &strm->param, sizeof(*pi)); 1014 1015 /* Update the output volume setting */ 1016 if (stream_get_cap(s, PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING, 1017 &pi->output_vol) == PJ_SUCCESS) 1018 { 1019 pi->flags |= PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING; 1020 } 1021 1022 /* Update the input volume setting */ 1023 if (stream_get_cap(s, PJMEDIA_AUD_DEV_CAP_INPUT_VOLUME_SETTING, 1024 &pi->input_vol) == PJ_SUCCESS) 1025 { 1026 pi->flags |= PJMEDIA_AUD_DEV_CAP_INPUT_VOLUME_SETTING; 1027 } 958 1028 959 1029 return PJ_SUCCESS; … … 1035 1105 break; 1036 1106 case PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING: 1037 if (strm->param.dir & PJMEDIA_DIR_ CAPTURE) {1107 if (strm->param.dir & PJMEDIA_DIR_PLAYBACK) { 1038 1108 PJ_ASSERT_RETURN(strm->out_engine, PJ_EINVAL); 1039 1109 -
pjproject/trunk/pjmedia/src/pjmedia-audiodev/symb_vas_dev.cpp
r3553 r3841 1131 1131 } else { 1132 1132 enum {NO_DATA_FT = 15 }; 1133 pj_uint8_t amr_header = 4 | |(NO_DATA_FT << 3);1133 pj_uint8_t amr_header = 4 | (NO_DATA_FT << 3); 1134 1134 1135 1135 buffer.Append(amr_header); … … 1140 1140 } else { /* PJMEDIA_FRAME_TYPE_NONE */ 1141 1141 enum {NO_DATA_FT = 15 }; 1142 pj_uint8_t amr_header = 4 | |(NO_DATA_FT << 3);1142 pj_uint8_t amr_header = 4 | (NO_DATA_FT << 3); 1143 1143 1144 1144 buffer.Append(amr_header); … … 1747 1747 } 1748 1748 1749 /* Apply output volume setting if specified */1750 if (param->flags & PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING) {1751 stream_set_cap(&strm->base, PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING,1752 ¶m->output_vol);1753 }1754 1755 1749 /* Done */ 1756 1750 strm->base.op = &stream_op; … … 1946 1940 (now.MicroSecondsFrom(start) < VAS_WAIT_START * 1000)); 1947 1941 1948 if (stream->engine->IsStarted()) 1942 if (stream->engine->IsStarted()) { 1943 1944 /* Apply output volume setting if specified */ 1945 if (stream->param.flags & 1946 PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING) 1947 { 1948 stream_set_cap(strm, 1949 PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING, 1950 &stream->param.output_vol); 1951 } 1952 1949 1953 return PJ_SUCCESS; 1950 else1954 } else { 1951 1955 return PJ_ETIMEDOUT; 1956 } 1952 1957 } 1953 1958 -
pjproject/trunk/pjmedia/src/pjmedia-codec/audio_codecs.c
r3664 r3841 108 108 #endif /* PJMEDIA_HAS_L16_CODEC */ 109 109 110 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 111 /* Register OpenCORE AMR-NB */ 112 status = pjmedia_codec_opencore_amrnb_init(endpt); 113 if (status != PJ_SUCCESS) 114 return status; 115 #endif 116 110 117 return PJ_SUCCESS; 111 118 } -
pjproject/trunk/pjmedia/src/pjmedia-codec/ipp_codecs.c
r3664 r3841 42 42 43 43 #define THIS_FILE "ipp_codecs.c" 44 44 45 45 46 /* Prototypes for IPP codecs factory */ … … 239 240 { 240 241 # if PJMEDIA_HAS_INTEL_IPP_CODEC_AMR 241 /* AMR-NB SID seems to produce noise, so let's just disable its VAD. */242 242 {1, "AMR", PJMEDIA_RTP_PT_AMR, &USC_GSMAMR_Fxns, 8000, 1, 160, 243 7400, 12200, 2, 0, 1,243 7400, 12200, 2, 1, 1, 244 244 &predecode_amr, &parse_amr, &pack_amr, 245 245 {1, {{{"octet-align", 11}, {"1", 1}}} } … … 489 489 /* SID */ 490 490 if (info->good_quality) { 491 pj_bool_t STI; 492 STI = (((pj_uint8_t*)frame.buf)[35 >> 3] & 0x10) != 0; 493 usc_frame->frametype = STI? 2 : 1; 491 usc_frame->frametype = info->STI? 2 : 1; 494 492 } else { 495 493 usc_frame->frametype = setting->amr_nb ? 6 : 7; … … 535 533 info->good_quality = (pj_uint8_t)((info_ & 0x80) == 0); 536 534 info->mode = (pj_int8_t) ((info_ >> 8) & 0x0F); 535 info->STI = (pj_uint8_t)((info_ >> 5) & 1); 537 536 538 537 frames[nframes].buf = r + 2; … … 1420 1419 /* Two octets for AMR frame info, 0=LSB: 1421 1420 * bit 0-3 : frame type 1421 * bit 5 : STI flag 1422 1422 * bit 6 : last frame flag 1423 1423 * bit 7 : quality flag … … 1443 1443 if (out.frametype == 6 || out.frametype == 7) 1444 1444 *info |= 0x80; 1445 /* STI */ 1446 if (out.frametype != 1) 1447 *info |= 0x20; 1445 1448 } else { 1446 1449 /* Untransmited */ -
pjproject/trunk/pjmedia/src/pjmedia-codec/passthrough.c
r3664 r3841 268 268 info->good_quality = 1; 269 269 info->mode = setting->enc_mode; 270 if (info->frame_type == SID_FT) 271 info->STI = (sf->data[4] >> 4) & 1; 270 272 271 273 frames[i].buf = sf->data; -
pjproject/trunk/pjmedia/src/pjmedia/alaw_ulaw.c
r1417 r3841 129 129 mask = 0x55; /* sign bit = 0 */ 130 130 pcm_val = -pcm_val - 8; 131 132 /* https://trac.pjsip.org/repos/ticket/1301 133 * Thank you K Johnson - Zetron - 27 May 2011 134 */ 135 if (pcm_val < 0) 136 pcm_val = 0; 131 137 } 132 138 -
pjproject/trunk/pjmedia/src/pjmedia/delaybuf.c
r3664 r3841 101 101 PJ_ASSERT_RETURN(pool && samples_per_frame && clock_rate && channel_count && 102 102 p_b, PJ_EINVAL); 103 PJ_ASSERT_RETURN(options==0, PJ_EINVAL);104 105 PJ_UNUSED_ARG(options);106 103 107 104 if (!name) { … … 128 125 return status; 129 126 130 /* Create WSOLA */ 131 status = pjmedia_wsola_create(pool, clock_rate, samples_per_frame, 1, 132 PJMEDIA_WSOLA_NO_FADING, &b->wsola); 133 if (status != PJ_SUCCESS) 134 return status; 127 if (!(options & PJMEDIA_DELAY_BUF_SIMPLE_FIFO)) { 128 /* Create WSOLA */ 129 status = pjmedia_wsola_create(pool, clock_rate, samples_per_frame, 1, 130 PJMEDIA_WSOLA_NO_FADING, &b->wsola); 131 if (status != PJ_SUCCESS) 132 return status; 133 PJ_LOG(5, (b->obj_name, "Using delay buffer with WSOLA.")); 134 } else { 135 PJ_LOG(5, (b->obj_name, "Using simple FIFO delay buffer.")); 136 } 135 137 136 138 /* Finally, create mutex */ … … 149 151 PJ_DEF(pj_status_t) pjmedia_delay_buf_destroy(pjmedia_delay_buf *b) 150 152 { 151 pj_status_t status ;153 pj_status_t status = PJ_SUCCESS; 152 154 153 155 PJ_ASSERT_RETURN(b, PJ_EINVAL); … … 155 157 pj_lock_acquire(b->lock); 156 158 157 status = pjmedia_wsola_destroy(b->wsola); 158 if (status == PJ_SUCCESS) 159 b->wsola = NULL; 159 if (b->wsola) { 160 status = pjmedia_wsola_destroy(b->wsola); 161 if (status == PJ_SUCCESS) 162 b->wsola = NULL; 163 } 160 164 161 165 pj_lock_release(b->lock); … … 266 270 pj_lock_acquire(b->lock); 267 271 268 update(b, OP_PUT); 272 if (b->wsola) { 273 update(b, OP_PUT); 269 274 270 status = pjmedia_wsola_save(b->wsola, frame, PJ_FALSE); 271 if (status != PJ_SUCCESS) { 272 pj_lock_release(b->lock); 273 return status; 275 status = pjmedia_wsola_save(b->wsola, frame, PJ_FALSE); 276 if (status != PJ_SUCCESS) { 277 pj_lock_release(b->lock); 278 return status; 279 } 274 280 } 275 281 … … 279 285 { 280 286 unsigned erase_cnt; 281 282 /* shrink one frame or just the diff? */ 283 //erase_cnt = b->samples_per_frame; 284 erase_cnt = pjmedia_circ_buf_get_len(b->circ_buf) + 285 b->samples_per_frame - b->max_cnt; 286 287 shrink_buffer(b, erase_cnt); 287 288 if (b->wsola) { 289 /* shrink one frame or just the diff? */ 290 //erase_cnt = b->samples_per_frame; 291 erase_cnt = pjmedia_circ_buf_get_len(b->circ_buf) + 292 b->samples_per_frame - b->max_cnt; 293 294 shrink_buffer(b, erase_cnt); 295 } 288 296 289 297 /* Check if shrinking failed or erased count is less than requested, … … 299 307 pjmedia_circ_buf_adv_read_ptr(b->circ_buf, erase_cnt); 300 308 301 PJ_LOG(4,(b->obj_name," Shrinking failed or insufficient, dropping"302 " %d eldest samples, buf_cnt=%d", erase_cnt, 303 309 PJ_LOG(4,(b->obj_name,"%sDropping %d eldest samples, buf_cnt=%d", 310 (b->wsola? "Shrinking failed or insufficient. ": ""), 311 erase_cnt, pjmedia_circ_buf_get_len(b->circ_buf))); 304 312 } 305 313 } … … 314 322 pj_int16_t frame[]) 315 323 { 316 pj_status_t status ;324 pj_status_t status = PJ_SUCCESS; 317 325 318 326 PJ_ASSERT_RETURN(b && frame, PJ_EINVAL); … … 320 328 pj_lock_acquire(b->lock); 321 329 322 update(b, OP_GET); 330 if (b->wsola) 331 update(b, OP_GET); 323 332 324 333 /* Starvation checking */ … … 328 337 pjmedia_circ_buf_get_len(b->circ_buf))); 329 338 330 status = pjmedia_wsola_generate(b->wsola, frame); 331 332 if (status == PJ_SUCCESS) { 333 TRACE__((b->obj_name,"Successfully generate 1 frame")); 334 if (pjmedia_circ_buf_get_len(b->circ_buf) == 0) { 335 pj_lock_release(b->lock); 336 return PJ_SUCCESS; 337 } 338 339 /* Put generated frame into buffer */ 340 pjmedia_circ_buf_write(b->circ_buf, frame, b->samples_per_frame); 341 342 } else { 339 if (b->wsola) { 340 status = pjmedia_wsola_generate(b->wsola, frame); 341 342 if (status == PJ_SUCCESS) { 343 TRACE__((b->obj_name,"Successfully generate 1 frame")); 344 if (pjmedia_circ_buf_get_len(b->circ_buf) == 0) { 345 pj_lock_release(b->lock); 346 return PJ_SUCCESS; 347 } 348 349 /* Put generated frame into buffer */ 350 pjmedia_circ_buf_write(b->circ_buf, frame, 351 b->samples_per_frame); 352 } 353 } 354 355 if (!b->wsola || status != PJ_SUCCESS) { 343 356 unsigned buf_len = pjmedia_circ_buf_get_len(b->circ_buf); 344 357 345 358 /* Give all what delay buffer has, then pad with zeroes */ 346 PJ_LOG(4,(b->obj_name,"Error generating frame, status=%d", 347 status)); 359 if (b->wsola) 360 PJ_LOG(4,(b->obj_name,"Error generating frame, status=%d", 361 status)); 348 362 349 363 pjmedia_circ_buf_read(b->circ_buf, frame, buf_len); … … 380 394 381 395 /* Reset WSOLA */ 382 pjmedia_wsola_reset(b->wsola, 0); 396 if (b->wsola) 397 pjmedia_wsola_reset(b->wsola, 0); 383 398 384 399 pj_lock_release(b->lock); -
pjproject/trunk/pjmedia/src/pjmedia/echo_common.c
r3664 r3841 146 146 { 147 147 unsigned ptime, lat_cnt; 148 unsigned delay_buf_opt = 0; 148 149 pjmedia_echo_state *ec; 149 150 pj_status_t status; … … 213 214 214 215 /* Create delay buffer to compensate drifts */ 216 if (options & PJMEDIA_ECHO_USE_SIMPLE_FIFO) 217 delay_buf_opt |= PJMEDIA_DELAY_BUF_SIMPLE_FIFO; 215 218 status = pjmedia_delay_buf_create(ec->pool, ec->obj_name, clock_rate, 216 219 samples_per_frame, channel_count, 217 220 (PJMEDIA_SOUND_BUFFER_COUNT+1) * ptime, 218 0, &ec->delay_buf);221 delay_buf_opt, &ec->delay_buf); 219 222 if (status != PJ_SUCCESS) { 220 223 pj_pool_release(pool); -
pjproject/trunk/pjmedia/src/pjmedia/jbuf.c
r3835 r3841 33 33 34 34 35 /* Minimal difference between JB size and 2*burst-level to perform36 * JB shrinking.37 */38 #define SAFE_SHRINKING_DIFF 139 40 /* Minimal gap (in ms) between JB shrinking */41 #define MIN_SHRINK_GAP_MSEC 20042 43 35 /* Invalid sequence number, used as the initial value. */ 44 36 #define INVALID_OFFSET -9999 … … 53 45 */ 54 46 #define INIT_CYCLE 10 47 48 49 /* Minimal difference between JB size and 2*burst-level to perform 50 * JB shrinking in static discard algorithm. 51 */ 52 #define STA_DISC_SAFE_SHRINKING_DIFF 1 55 53 56 54 … … 83 81 84 82 83 typedef void (*discard_algo)(pjmedia_jbuf *jb); 84 static void jbuf_discard_static(pjmedia_jbuf *jb); 85 static void jbuf_discard_progressive(pjmedia_jbuf *jb); 86 87 85 88 struct pjmedia_jbuf 86 89 { … … 99 102 calculation */ 100 103 int jb_min_shrink_gap; /**< How often can we shrink */ 104 discard_algo jb_discard_algo; /**< Discard algorithm */ 101 105 102 106 /* Buffer */ … … 121 125 continuously updated based on 122 126 current frame burst level. */ 127 pj_bool_t jb_prefetching; /**< flag if jbuf is prefetching. */ 123 128 int jb_status; /**< status is 'init' until the first 124 129 'put' operation */ 125 130 int jb_init_cycle_cnt; /**< status is 'init' until the first 126 131 'put' operation */ 127 int jb_last_del_seq; /**< Seq # of last frame deleted */ 128 129 int jb_last_discard_seq;/**< Seq # of last frame discarded */ 132 133 int jb_discard_ref; /**< Seq # of last frame deleted or 134 discarded */ 135 unsigned jb_discard_dist; /**< Distance from jb_discard_ref 136 to perform discard (in frm) */ 130 137 131 138 /* Statistics */ … … 142 149 #define JB_STATUS_INITIALIZING 0 143 150 #define JB_STATUS_PROCESSING 1 144 #define JB_STATUS_PREFETCHING 2145 151 146 152 … … 452 458 enum { MAX_DROPOUT = 3000 }; 453 459 454 assert(frame_size <= framelist->frame_size);460 PJ_ASSERT_RETURN(frame_size <= framelist->frame_size, PJ_EINVAL); 455 461 456 462 /* too late or sequence restart */ … … 508 514 pj_memcpy(framelist->content + pos * framelist->frame_size, 509 515 frame, frame_size); 510 return PJ_SUCCESS; 511 } else { 512 /* frame is being discarded */ 513 framelist->discarded_num++; 514 return PJ_EIGNORED; 515 } 516 } 517 516 } 517 518 return PJ_SUCCESS; 519 } 520 521 522 static pj_status_t jb_framelist_discard(jb_framelist_t *framelist, 523 int index) 524 { 525 unsigned pos; 526 527 PJ_ASSERT_RETURN(index >= framelist->origin && 528 index < framelist->origin + (int)framelist->size, 529 PJ_EINVAL); 530 531 /* Get the slot position */ 532 pos = (framelist->head + (index - framelist->origin)) % 533 framelist->max_count; 534 535 /* Discard the frame */ 536 framelist->frame_type[pos] = PJMEDIA_JB_DISCARDED_FRAME; 537 framelist->discarded_num++; 538 539 return PJ_SUCCESS; 540 } 518 541 519 542 … … 549 572 jb->jb_max_prefetch = max_count*4/5; 550 573 jb->jb_max_count = max_count; 551 jb->jb_min_shrink_gap= MIN_SHRINK_GAP_MSEC/ ptime;574 jb->jb_min_shrink_gap= PJMEDIA_JBUF_DISC_MIN_GAP / ptime; 552 575 jb->jb_max_burst = PJ_MAX(MAX_BURST_MSEC / ptime, max_count*3/4); 553 jb->jb_last_discard_seq = 0;554 576 555 577 pj_math_stat_init(&jb->jb_delay); 556 578 pj_math_stat_init(&jb->jb_burst); 557 579 580 pjmedia_jbuf_set_discard(jb, PJMEDIA_JB_DISCARD_PROGRESSIVE); 558 581 pjmedia_jbuf_reset(jb); 559 582 … … 590 613 { 591 614 PJ_ASSERT_RETURN(jb, PJ_EINVAL); 592 PJ_ASSERT_RETURN(min_prefetch < max_prefetch &&615 PJ_ASSERT_RETURN(min_prefetch <= max_prefetch && 593 616 prefetch <= max_prefetch && 594 617 max_prefetch <= jb->jb_max_count, … … 598 621 jb->jb_min_prefetch = min_prefetch; 599 622 jb->jb_max_prefetch = max_prefetch; 623 624 return PJ_SUCCESS; 625 } 626 627 628 PJ_DEF(pj_status_t) pjmedia_jbuf_set_discard( pjmedia_jbuf *jb, 629 pjmedia_jb_discard_algo algo) 630 { 631 PJ_ASSERT_RETURN(jb, PJ_EINVAL); 632 PJ_ASSERT_RETURN(algo >= PJMEDIA_JB_DISCARD_NONE && 633 algo <= PJMEDIA_JB_DISCARD_PROGRESSIVE, 634 PJ_EINVAL); 635 636 switch(algo) { 637 case PJMEDIA_JB_DISCARD_PROGRESSIVE: 638 jb->jb_discard_algo = &jbuf_discard_progressive; 639 break; 640 case PJMEDIA_JB_DISCARD_STATIC: 641 jb->jb_discard_algo = &jbuf_discard_static; 642 break; 643 default: 644 jb->jb_discard_algo = NULL; 645 break; 646 } 600 647 601 648 return PJ_SUCCESS; … … 611 658 jb->jb_init_cycle_cnt= 0; 612 659 jb->jb_max_hist_level= 0; 660 jb->jb_prefetching = (jb->jb_prefetch != 0); 661 jb->jb_discard_dist = 0; 613 662 614 663 jb_framelist_reset(&jb->jb_framelist); … … 622 671 PJ_LOG(5, (jb->jb_name.ptr, "" 623 672 "JB summary:\n" 624 " size=%d prefetch=%d level=%d\n"673 " size=%d/eff=%d prefetch=%d level=%d\n" 625 674 " delay (min/max/avg/dev)=%d/%d/%d/%d ms\n" 626 675 " burst (min/max/avg/dev)=%d/%d/%d/%d frames\n" 627 676 " lost=%d discard=%d empty=%d", 628 jb->jb_framelist.size, jb->jb_prefetch, jb->jb_eff_level, 677 jb_framelist_size(&jb->jb_framelist), 678 jb_framelist_eff_size(&jb->jb_framelist), 679 jb->jb_prefetch, jb->jb_eff_level, 629 680 jb->jb_delay.min, jb->jb_delay.max, jb->jb_delay.mean, 630 681 pj_math_stat_get_stddev(&jb->jb_delay), … … 712 763 } 713 764 } 765 766 767 static void jbuf_discard_static(pjmedia_jbuf *jb) 768 { 769 /* These code is used for shortening the delay in the jitter buffer. 770 * It needs shrink only when there is possibility of drift. Drift 771 * detection is performed by inspecting the jitter buffer size, if 772 * its size is twice of current burst level, there can be drift. 773 * 774 * Moreover, normally drift level is quite low, so JB shouldn't need 775 * to shrink aggresively, it will shrink maximum one frame per 776 * PJMEDIA_JBUF_DISC_MIN_GAP ms. Theoritically, JB may handle drift level 777 * as much as = FRAME_PTIME/PJMEDIA_JBUF_DISC_MIN_GAP * 100% 778 * 779 * Whenever there is drift, where PUT > GET, this method will keep 780 * the latency (JB size) as much as twice of burst level. 781 */ 782 783 /* Shrinking due of drift will be implicitly done by progressive discard, 784 * so just disable it when progressive discard is active. 785 */ 786 int diff, burst_level; 787 788 burst_level = PJ_MAX(jb->jb_eff_level, jb->jb_level); 789 diff = jb_framelist_eff_size(&jb->jb_framelist) - burst_level*2; 790 791 if (diff >= STA_DISC_SAFE_SHRINKING_DIFF) { 792 int seq_origin; 793 794 /* Check and adjust jb_discard_ref, in case there was 795 * seq restart 796 */ 797 seq_origin = jb_framelist_origin(&jb->jb_framelist); 798 if (seq_origin < jb->jb_discard_ref) 799 jb->jb_discard_ref = seq_origin; 800 801 if (seq_origin - jb->jb_discard_ref >= jb->jb_min_shrink_gap) 802 { 803 /* Shrink slowly, one frame per cycle */ 804 diff = 1; 805 806 /* Drop frame(s)! */ 807 diff = jb_framelist_remove_head(&jb->jb_framelist, diff); 808 jb->jb_discard_ref = jb_framelist_origin(&jb->jb_framelist); 809 jb->jb_discard += diff; 810 811 TRACE__((jb->jb_name.ptr, 812 "JB shrinking %d frame(s), cur size=%d", diff, 813 jb_framelist_eff_size(&jb->jb_framelist))); 814 } 815 } 816 } 817 818 819 static void jbuf_discard_progressive(pjmedia_jbuf *jb) 820 { 821 unsigned cur_size, burst_level, overflow, T, discard_dist; 822 int last_seq; 823 824 /* Should be done in PUT operation */ 825 if (jb->jb_last_op != JB_OP_PUT) 826 return; 827 828 /* Check if latency is longer than burst */ 829 cur_size = jb_framelist_eff_size(&jb->jb_framelist); 830 burst_level = PJ_MAX(jb->jb_eff_level, jb->jb_level); 831 if (cur_size <= burst_level) { 832 /* Reset any scheduled discard */ 833 jb->jb_discard_dist = 0; 834 return; 835 } 836 837 /* Estimate discard duration needed for adjusting latency */ 838 if (burst_level <= PJMEDIA_JBUF_PRO_DISC_MIN_BURST) 839 T = PJMEDIA_JBUF_PRO_DISC_T1; 840 else if (burst_level >= PJMEDIA_JBUF_PRO_DISC_MAX_BURST) 841 T = PJMEDIA_JBUF_PRO_DISC_T2; 842 else 843 T = PJMEDIA_JBUF_PRO_DISC_T1 + 844 (PJMEDIA_JBUF_PRO_DISC_T2 - PJMEDIA_JBUF_PRO_DISC_T1) * 845 (burst_level - PJMEDIA_JBUF_PRO_DISC_MIN_BURST) / 846 (PJMEDIA_JBUF_PRO_DISC_MAX_BURST-PJMEDIA_JBUF_PRO_DISC_MIN_BURST); 847 848 /* Calculate current discard distance */ 849 overflow = cur_size - burst_level; 850 discard_dist = T / overflow / jb->jb_frame_ptime; 851 852 /* Get last seq number in the JB */ 853 last_seq = jb_framelist_origin(&jb->jb_framelist) + 854 jb_framelist_size(&jb->jb_framelist) - 1; 855 856 /* Setup new discard schedule if none, otherwise, update the existing 857 * discard schedule (can be delayed or accelerated). 858 */ 859 if (jb->jb_discard_dist == 0) { 860 /* Setup new discard schedule */ 861 jb->jb_discard_ref = last_seq; 862 } else if (last_seq < jb->jb_discard_ref) { 863 /* Seq restarted, update discard reference */ 864 jb->jb_discard_ref = last_seq; 865 } 866 jb->jb_discard_dist = PJ_MAX(jb->jb_min_shrink_gap, (int)discard_dist); 867 868 /* Check if we need to discard now */ 869 if (last_seq >= (jb->jb_discard_ref + (int)jb->jb_discard_dist)) { 870 int discard_seq; 871 872 discard_seq = jb->jb_discard_ref + jb->jb_discard_dist; 873 if (discard_seq < jb_framelist_origin(&jb->jb_framelist)) 874 discard_seq = jb_framelist_origin(&jb->jb_framelist); 875 876 jb_framelist_discard(&jb->jb_framelist, discard_seq); 877 878 TRACE__((jb->jb_name.ptr, 879 "Discard #%d: ref=#%d dist=%d orig=%d size=%d/%d " 880 "burst=%d/%d", 881 discard_seq, 882 jb->jb_discard_ref, 883 jb->jb_discard_dist, 884 jb_framelist_origin(&jb->jb_framelist), 885 cur_size, 886 jb_framelist_size(&jb->jb_framelist), 887 jb->jb_eff_level, 888 burst_level)); 889 890 /* Update discard reference */ 891 jb->jb_discard_ref = discard_seq; 892 } 893 } 894 714 895 715 896 PJ_INLINE(void) jbuf_update(pjmedia_jbuf *jb, int oper) … … 748 929 } 749 930 750 /* These code is used for shortening the delay in the jitter buffer. 751 * It needs shrink only when there is possibility of drift. Drift 752 * detection is performed by inspecting the jitter buffer size, if 753 * its size is twice of current burst level, there can be drift. 754 * 755 * Moreover, normally drift level is quite low, so JB shouldn't need 756 * to shrink aggresively, it will shrink maximum one frame per 757 * MIN_SHRINK_GAP_MSEC ms. Theoritically, JB may handle drift level 758 * as much as = FRAME_PTIME/MIN_SHRINK_GAP_MSEC * 100% 759 * 760 * Whenever there is drift, where PUT > GET, this method will keep 761 * the latency (JB size) as much as twice of burst level. 762 */ 763 764 /* Shrinking due of drift will be implicitly done by progressive discard, 765 * so just disable it when progressive discard is active. 766 */ 767 #if !PROGRESSIVE_DISCARD 768 769 if (jb->jb_status != JB_STATUS_PROCESSING) 770 return; 771 772 { 773 int diff, burst_level; 774 775 burst_level = PJ_MAX(jb->jb_eff_level, jb->jb_level); 776 diff = jb_framelist_eff_size(&jb->jb_framelist) - burst_level*2; 777 778 if (diff >= SAFE_SHRINKING_DIFF) { 779 int seq_origin; 780 781 /* Check and adjust jb_last_del_seq, in case there was 782 * seq restart 783 */ 784 seq_origin = jb_framelist_origin(&jb->jb_framelist); 785 if (seq_origin < jb->jb_last_del_seq) 786 jb->jb_last_del_seq = seq_origin; 787 788 if (seq_origin - jb->jb_last_del_seq >= jb->jb_min_shrink_gap) 789 { 790 /* Shrink slowly, one frame per cycle */ 791 diff = 1; 792 793 /* Drop frame(s)! */ 794 diff = jb_framelist_remove_head(&jb->jb_framelist, diff); 795 jb->jb_last_del_seq = jb_framelist_origin(&jb->jb_framelist); 796 jb->jb_discard += diff; 797 798 TRACE__((jb->jb_name.ptr, 799 "JB shrinking %d frame(s), cur size=%d", diff, 800 jb_framelist_eff_size(&jb->jb_framelist))); 801 } 802 } 803 } 804 805 #endif /* !PROGRESSIVE_DISCARD */ 806 931 /* Call discard algorithm */ 932 if (jb->jb_status == JB_STATUS_PROCESSING && jb->jb_discard_algo) { 933 (*jb->jb_discard_algo)(jb); 934 } 807 935 } 808 936 … … 835 963 { 836 964 pj_size_t min_frame_size; 837 int new_size, cur_size , frame_type = PJMEDIA_JB_NORMAL_FRAME;965 int new_size, cur_size; 838 966 pj_status_t status; 839 967 840 968 cur_size = jb_framelist_eff_size(&jb->jb_framelist); 841 842 #if PROGRESSIVE_DISCARD843 {844 unsigned interval, seq_delta;845 unsigned burst_level, burst_factor;846 847 /* Calculating discard interval (aggressiveness) based on848 * (current size / burst level).849 */850 if (jb->jb_status == JB_STATUS_PROCESSING) {851 burst_level = PJ_MAX(jb->jb_eff_level, jb->jb_level);852 burst_factor = cur_size / burst_level;853 /* Tolerate small spikes */854 if ((burst_level <= 5) && (burst_factor < 3))855 burst_factor = 0;856 } else {857 burst_factor = 0;858 }859 860 switch (burst_factor) {861 case 0:862 interval = 0;863 break;864 case 1:865 interval = 7;866 break;867 case 2:868 interval = 5;869 break;870 default:871 interval = 4;872 break;873 }874 875 /* Do the math now to see if we should discard this packet.876 * Calculate the distance from the last sequence877 * discarded. If negative, then this is an out of878 * order frame so just proceed with discard. Else879 * see if the delta is at least the intervals worth away880 * from the last frame discarded.881 */882 seq_delta = (pj_uint16_t)(frame_seq - jb->jb_last_discard_seq);883 if ((0 != interval) && (seq_delta >= interval)) {884 frame_type = PJMEDIA_JB_DISCARDED_FRAME;885 jb->jb_last_discard_seq = frame_seq;886 887 TRACE__((jb->jb_name.ptr,888 "Discarding frame #%d: eff=%d disc=%d orig:%d"889 " seq_delta:%d",890 frame_seq,891 cur_size,892 jb_framelist_size(&jb->jb_framelist) - cur_size,893 jb_framelist_origin(&jb->jb_framelist),894 (int)seq_delta));895 }896 }897 #endif /* PROGRESSIVE_DISCARD */898 899 969 900 970 /* Attempt to store the frame */ 901 971 min_frame_size = PJ_MIN(frame_size, jb->jb_frame_size); 902 972 status = jb_framelist_put_at(&jb->jb_framelist, frame_seq, frame, 903 min_frame_size, bit_info, ts, frame_type); 973 min_frame_size, bit_info, ts, 974 PJMEDIA_JB_NORMAL_FRAME); 904 975 905 976 /* Jitter buffer is full, remove some older frames */ … … 908 979 unsigned removed; 909 980 910 /* When progressive discard activated, just remove as few as possible 911 * just to make this frame in. 912 */ 913 #if PROGRESSIVE_DISCARD 914 /* The cases of seq-jump, out-of-order, and seq restart should have 981 /* Remove as few as possible just to make this frame in. Note that 982 * the cases of seq-jump, out-of-order, and seq restart should have 915 983 * been handled/normalized by previous call of jb_framelist_put_at(). 916 984 * So we're confident about 'distance' value here. … … 919 987 jb->jb_max_count + 1; 920 988 pj_assert(distance > 0); 921 #else 922 distance = PJ_MAX(jb->jb_max_count/4, 1); 923 #endif 989 924 990 removed = jb_framelist_remove_head(&jb->jb_framelist, distance); 925 991 status = jb_framelist_put_at(&jb->jb_framelist, frame_seq, frame, 926 min_frame_size, bit_info, ts, frame_type); 992 min_frame_size, bit_info, ts, 993 PJMEDIA_JB_NORMAL_FRAME); 927 994 928 995 jb->jb_discard += removed; … … 937 1004 938 1005 if (status == PJ_SUCCESS) { 939 if (jb->jb_ status == JB_STATUS_PREFETCHING) {1006 if (jb->jb_prefetching) { 940 1007 TRACE__((jb->jb_name.ptr, "PUT prefetch_cnt=%d/%d", 941 1008 new_size, jb->jb_prefetch)); 942 1009 if (new_size >= jb->jb_prefetch) 943 jb->jb_ status = JB_STATUS_PROCESSING;1010 jb->jb_prefetching = PJ_FALSE; 944 1011 } 945 1012 jb->jb_level += (new_size > cur_size ? new_size-cur_size : 1); … … 984 1051 int *seq) 985 1052 { 986 if (jb->jb_ status == JB_STATUS_PREFETCHING) {1053 if (jb->jb_prefetching) { 987 1054 988 1055 /* Can't return frame because jitter buffer is filling up … … 1031 1098 /* Jitter buffer is empty */ 1032 1099 if (jb->jb_prefetch) 1033 jb->jb_ status = JB_STATUS_PREFETCHING;1100 jb->jb_prefetching = PJ_TRUE; 1034 1101 1035 1102 //pj_bzero(frame, jb->jb_frame_size); -
pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c
r3837 r3841 1331 1331 or_.clock_rate == lr.clock_rate && 1332 1332 (pj_stricmp(&or_.param, &lr.param)==0 || 1333 (or_.param.slen==1 && *or_.param.ptr=='1'))) 1333 (lr.param.slen==0 && or_.param.slen==1 && 1334 *or_.param.ptr=='1') || 1335 (or_.param.slen==0 && lr.param.slen==1 && 1336 *lr.param.ptr=='1'))) 1334 1337 { 1335 1338 /* Match! */ -
pjproject/trunk/pjmedia/src/pjmedia/session.c
r3791 r3841 274 274 275 275 /** 276 * Send RTCP SDES for the session. 277 */ 278 PJ_DEF(pj_status_t) 279 pjmedia_session_send_rtcp_sdes( const pjmedia_session *session ) 280 { 281 unsigned i; 282 283 PJ_ASSERT_RETURN(session, PJ_EINVAL); 284 285 for (i=0; i<session->stream_cnt; ++i) { 286 pjmedia_stream_send_rtcp_sdes(session->stream[i]); 287 } 288 289 return PJ_SUCCESS; 290 } 291 292 /** 293 * Send RTCP BYE for the session. 294 */ 295 PJ_DEF(pj_status_t) 296 pjmedia_session_send_rtcp_bye( const pjmedia_session *session ) 297 { 298 unsigned i; 299 300 PJ_ASSERT_RETURN(session, PJ_EINVAL); 301 302 for (i=0; i<session->stream_cnt; ++i) { 303 pjmedia_stream_send_rtcp_bye(session->stream[i]); 304 } 305 306 return PJ_SUCCESS; 307 } 308 309 /** 276 310 * Enumerate media stream in the session. 277 311 */ -
pjproject/trunk/pjmedia/src/pjmedia/stream.c
r3837 r3841 155 155 pj_uint32_t rtcp_interval; /**< Interval, in timestamp. */ 156 156 pj_bool_t initial_rr; /**< Initial RTCP RR sent */ 157 pj_bool_t rtcp_sdes_bye_disabled;/**< Send RTCP SDES/BYE?*/ 157 158 158 159 /* RFC 2833 DTMF transmission queue: */ … … 1825 1826 /* Build RR or SR */ 1826 1827 pjmedia_rtcp_build_rtcp(&stream->rtcp, &sr_rr_pkt, &len); 1827 pkt = (pj_uint8_t*) stream->enc->out_pkt; 1828 pj_memcpy(pkt, sr_rr_pkt, len); 1829 pkt += len; 1830 1831 /* Append SDES */ 1832 len = create_rtcp_sdes(stream, (pj_uint8_t*)pkt, 1833 stream->enc->out_pkt_size - len); 1834 if (len > 0) { 1835 pkt += len; 1836 len = ((pj_uint8_t*)pkt) - ((pj_uint8_t*)stream->enc->out_pkt); 1837 pjmedia_transport_send_rtcp(stream->transport, 1838 stream->enc->out_pkt, len); 1839 } 1828 1829 if (!stream->rtcp_sdes_bye_disabled) { 1830 pkt = (pj_uint8_t*) stream->enc->out_pkt; 1831 pj_memcpy(pkt, sr_rr_pkt, len); 1832 pkt += len; 1833 1834 /* Append SDES */ 1835 len = create_rtcp_sdes(stream, (pj_uint8_t*)pkt, 1836 stream->enc->out_pkt_size - len); 1837 if (len > 0) { 1838 pkt += len; 1839 len = ((pj_uint8_t*)pkt) - ((pj_uint8_t*)stream->enc->out_pkt); 1840 pjmedia_transport_send_rtcp(stream->transport, 1841 stream->enc->out_pkt, len); 1842 } 1843 } else { 1844 pjmedia_transport_send_rtcp(stream->transport, sr_rr_pkt, len); 1845 } 1840 1846 1841 1847 stream->initial_rr = PJ_TRUE; … … 1960 1966 pjmedia_stream *stream; 1961 1967 pj_str_t name; 1962 unsigned jb_init, jb_max, jb_min_pre, jb_max_pre , len;1968 unsigned jb_init, jb_max, jb_min_pre, jb_max_pre; 1963 1969 pjmedia_audio_format_detail *afd; 1964 1970 pj_pool_t *own_pool = NULL; … … 2011 2017 stream->rtcp_interval = (PJMEDIA_RTCP_INTERVAL-500 + (pj_rand()%1000)) * 2012 2018 info->fmt.clock_rate / 1000; 2019 stream->rtcp_sdes_bye_disabled = info->rtcp_sdes_bye_disabled; 2013 2020 2014 2021 stream->tx_event_pt = info->tx_event_pt ? info->tx_event_pt : -1; … … 2323 2330 2324 2331 /* Send RTCP SDES */ 2325 len = create_rtcp_sdes(stream, (pj_uint8_t*)stream->enc->out_pkt, 2326 stream->enc->out_pkt_size); 2327 if (len != 0) { 2328 pjmedia_transport_send_rtcp(stream->transport, 2329 stream->enc->out_pkt, len); 2332 if (!stream->rtcp_sdes_bye_disabled) { 2333 pjmedia_stream_send_rtcp_sdes(stream); 2330 2334 } 2331 2335 … … 2344 2348 TRACE_JB_PATH_PREFIX "%s.csv", 2345 2349 stream->port.info.name.ptr); 2346 status = pj_file_open(pool, trace_name, PJ_O_ RDWR, &stream->trace_jb_fd);2350 status = pj_file_open(pool, trace_name, PJ_O_WRONLY, &stream->trace_jb_fd); 2347 2351 if (status != PJ_SUCCESS) { 2348 2352 stream->trace_jb_fd = TRACE_JB_INVALID_FD; … … 2382 2386 PJ_DEF(pj_status_t) pjmedia_stream_destroy( pjmedia_stream *stream ) 2383 2387 { 2384 unsigned len;2385 2388 PJ_ASSERT_RETURN(stream != NULL, PJ_EINVAL); 2386 2389 … … 2424 2427 2425 2428 /* Send RTCP BYE */ 2426 if (stream->enc && stream->transport) { 2427 len = create_rtcp_bye(stream, (pj_uint8_t*)stream->enc->out_pkt, 2428 stream->enc->out_pkt_size); 2429 if (len != 0) { 2430 pjmedia_transport_send_rtcp(stream->transport, 2431 stream->enc->out_pkt, len); 2432 } 2429 if (!stream->rtcp_sdes_bye_disabled) { 2430 pjmedia_stream_send_rtcp_bye(stream); 2433 2431 } 2434 2432 … … 3299 3297 return status; 3300 3298 } 3299 3300 /* 3301 * Send RTCP SDES. 3302 */ 3303 PJ_DEF(pj_status_t) 3304 pjmedia_stream_send_rtcp_sdes( pjmedia_stream *stream ) 3305 { 3306 unsigned len; 3307 3308 PJ_ASSERT_RETURN(stream, PJ_EINVAL); 3309 3310 len = create_rtcp_sdes(stream, (pj_uint8_t*)stream->enc->out_pkt, 3311 stream->enc->out_pkt_size); 3312 if (len != 0) { 3313 return pjmedia_transport_send_rtcp(stream->transport, 3314 stream->enc->out_pkt, len); 3315 } 3316 3317 return PJ_SUCCESS; 3318 } 3319 3320 /* 3321 * Send RTCP BYE. 3322 */ 3323 PJ_DEF(pj_status_t) 3324 pjmedia_stream_send_rtcp_bye( pjmedia_stream *stream ) 3325 { 3326 PJ_ASSERT_RETURN(stream, PJ_EINVAL); 3327 3328 if (stream->enc && stream->transport) { 3329 unsigned len; 3330 3331 len = create_rtcp_bye(stream, (pj_uint8_t*)stream->enc->out_pkt, 3332 stream->enc->out_pkt_size); 3333 if (len != 0) { 3334 return pjmedia_transport_send_rtcp(stream->transport, 3335 stream->enc->out_pkt, len); 3336 } 3337 } 3338 3339 return PJ_SUCCESS; 3340 } -
pjproject/trunk/pjmedia/src/pjmedia/transport_adapter_sample.c
r3553 r3841 95 95 { 96 96 pjmedia_transport base; 97 pj_bool_t del_base; 97 98 98 99 pj_pool_t *pool; … … 119 120 const char *name, 120 121 pjmedia_transport *transport, 122 pj_bool_t del_base, 121 123 pjmedia_transport **p_tp) 122 124 { … … 139 141 /* Save the transport as the slave transport */ 140 142 adapter->slave_tp = transport; 143 adapter->del_base = del_base; 141 144 142 145 /* Done */ … … 422 425 423 426 /* Close the slave transport */ 424 pjmedia_transport_close(adapter->slave_tp); 427 if (adapter->del_base) { 428 pjmedia_transport_close(adapter->slave_tp); 429 } 425 430 426 431 /* Self destruct.. */ -
pjproject/trunk/pjmedia/src/pjmedia/transport_ice.c
r3664 r3841 73 73 pj_sockaddr rtcp_src_addr; /**< Actual source RTCP address. */ 74 74 unsigned rtp_src_cnt; /**< How many pkt from this addr. */ 75 unsigned rtcp_src_cnt; /**< How many pkt from this addr. */ 75 76 76 77 unsigned tx_drop_pct; /**< Percent of tx pkts to drop. */ … … 1517 1518 if (tp_ice->use_ice || tp_ice->rtp_src_cnt) { 1518 1519 info->src_rtp_name = tp_ice->rtp_src_addr; 1520 } 1521 if (tp_ice->use_ice || tp_ice->rtcp_src_cnt) { 1519 1522 info->src_rtcp_name = tp_ice->rtcp_src_addr; 1520 1523 } … … 1582 1585 tp_ice->rtcp_src_addr = tp_ice->remote_rtcp; 1583 1586 tp_ice->rtp_src_cnt = 0; 1587 tp_ice->rtcp_src_cnt = 0; 1584 1588 1585 1589 return PJ_SUCCESS; … … 1657 1661 { 1658 1662 struct transport_ice *tp_ice; 1663 pj_bool_t discard = PJ_FALSE; 1659 1664 1660 1665 tp_ice = (struct transport_ice*) pj_ice_strans_get_user_data(ice_st); … … 1672 1677 } 1673 1678 1674 (*tp_ice->rtp_cb)(tp_ice->stream, pkt, size);1675 1676 1679 /* See if source address of RTP packet is different than the 1677 1680 * configured address, and switch RTP remote address to … … 1680 1683 */ 1681 1684 if (!tp_ice->use_ice) { 1682 1683 /* Increment counter and avoid zero */ 1684 if (++tp_ice->rtp_src_cnt == 0) 1685 tp_ice->rtp_src_cnt = 1; 1686 1687 if (pj_sockaddr_cmp(&tp_ice->remote_rtp, src_addr) != 0) { 1685 pj_bool_t enable_switch = 1686 ((tp_ice->options & PJMEDIA_ICE_NO_SRC_ADDR_CHECKING)==0); 1687 1688 if (!enable_switch || 1689 pj_sockaddr_cmp(&tp_ice->remote_rtp, src_addr) == 0) 1690 { 1691 /* Don't switch while we're receiving from remote_rtp */ 1692 tp_ice->rtp_src_cnt = 0; 1693 } else { 1694 1695 ++tp_ice->rtp_src_cnt; 1688 1696 1689 1697 /* Check if the source address is recognized. */ … … 1693 1701 /* Reset counter */ 1694 1702 tp_ice->rtp_src_cnt = 0; 1703 discard = PJ_TRUE; 1695 1704 } 1696 1705 1697 if ( (tp_ice->options & PJMEDIA_ICE_NO_SRC_ADDR_CHECKING)==0 &&1698 tp_ice->rtp_src_cnt >= PJMEDIA_RTP_NAT_PROBATION_CNT)1699 {1706 if (tp_ice->rtp_src_cnt < PJMEDIA_RTP_NAT_PROBATION_CNT) { 1707 discard = PJ_TRUE; 1708 } else { 1700 1709 char addr_text[80]; 1701 1710 … … 1726 1735 1727 1736 PJ_LOG(4,(tp_ice->base.name, 1728 "Remote RTCP address switched to %s", 1737 "Remote RTCP address switched to predicted " 1738 "address %s", 1729 1739 pj_sockaddr_print(&tp_ice->remote_rtcp, 1730 1740 addr_text, … … 1734 1744 } 1735 1745 } 1746 1747 if (!discard) 1748 (*tp_ice->rtp_cb)(tp_ice->stream, pkt, size); 1749 1736 1750 } else if (comp_id==2 && tp_ice->rtcp_cb) { 1737 (*tp_ice->rtcp_cb)(tp_ice->stream, pkt, size);1738 1751 1739 1752 /* Check if RTCP source address is the same as the configured … … 1742 1755 */ 1743 1756 if (!tp_ice->use_ice && 1744 pj_sockaddr_cmp(&tp_ice->remote_rtcp, src_addr) !=0)1757 (tp_ice->options & PJMEDIA_ICE_NO_SRC_ADDR_CHECKING)==0) 1745 1758 { 1746 pj_sockaddr_cp(&tp_ice->rtcp_src_addr, src_addr);1747 1748 if ((tp_ice->options & PJMEDIA_ICE_NO_SRC_ADDR_CHECKING)==0){1759 if (pj_sockaddr_cmp(&tp_ice->remote_rtcp, src_addr) == 0) { 1760 tp_ice->rtcp_src_cnt = 0; 1761 } else { 1749 1762 char addr_text[80]; 1750 1763 1751 pj_sockaddr_cp(&tp_ice->remote_rtcp, src_addr); 1752 1753 pj_assert(tp_ice->addr_len == pj_sockaddr_get_len(src_addr)); 1754 1755 PJ_LOG(4,(tp_ice->base.name, 1756 "Remote RTCP address switched to %s", 1757 pj_sockaddr_print(&tp_ice->remote_rtcp, addr_text, 1758 sizeof(addr_text), 3))); 1764 ++tp_ice->rtcp_src_cnt; 1765 if (tp_ice->rtcp_src_cnt < PJMEDIA_RTCP_NAT_PROBATION_CNT) { 1766 discard = PJ_TRUE; 1767 } else { 1768 tp_ice->rtcp_src_cnt = 0; 1769 pj_sockaddr_cp(&tp_ice->rtcp_src_addr, src_addr); 1770 pj_sockaddr_cp(&tp_ice->remote_rtcp, src_addr); 1771 1772 pj_assert(tp_ice->addr_len==pj_sockaddr_get_len(src_addr)); 1773 1774 PJ_LOG(4,(tp_ice->base.name, 1775 "Remote RTCP address switched to %s", 1776 pj_sockaddr_print(&tp_ice->remote_rtcp, 1777 addr_text, sizeof(addr_text), 1778 3))); 1779 } 1759 1780 } 1760 1781 } 1782 1783 if (!discard) 1784 (*tp_ice->rtcp_cb)(tp_ice->stream, pkt, size); 1761 1785 } 1762 1786 -
pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c
r3553 r3841 84 84 pj_sockaddr rtcp_addr_name; /**< Published RTCP address. */ 85 85 pj_sockaddr rtcp_src_addr; /**< Actual source RTCP address. */ 86 unsigned rtcp_src_cnt; /**< How many pkt from this addr. */ 86 87 int rtcp_addr_len; /**< Length of RTCP src address. */ 87 88 pj_ioqueue_key_t *rtcp_key; /**< RTCP socket key in ioqueue */ … … 453 454 void (*cb)(void*,void*,pj_ssize_t); 454 455 void *user_data; 456 pj_bool_t discard = PJ_FALSE; 455 457 456 458 cb = udp->rtp_cb; … … 463 465 "RX RTP packet dropped because of pkt lost " 464 466 "simulation")); 465 goto read_next_packet;467 discard = PJ_TRUE; 466 468 } 467 469 } 468 469 470 if (udp->attached && cb)471 (*cb)(user_data, udp->rtp_pkt, bytes_read);472 470 473 471 /* See if source address of RTP packet is different than the … … 479 477 (udp->options & PJMEDIA_UDP_NO_SRC_ADDR_CHECKING)==0) 480 478 { 481 if (pj_sockaddr_cmp(&udp->rem_rtp_addr, &udp->rtp_src_addr) != 0) { 482 479 if (pj_sockaddr_cmp(&udp->rem_rtp_addr, &udp->rtp_src_addr) == 0) { 480 /* We're still receiving from rem_rtp_addr. Don't switch. */ 481 udp->rtp_src_cnt = 0; 482 } else { 483 483 udp->rtp_src_cnt++; 484 484 485 if (udp->rtp_src_cnt >= PJMEDIA_RTP_NAT_PROBATION_CNT) { 485 if (udp->rtp_src_cnt < PJMEDIA_RTP_NAT_PROBATION_CNT) { 486 discard = PJ_TRUE; 487 } else { 486 488 487 489 char addr_text[80]; … … 517 519 518 520 PJ_LOG(4,(udp->base.name, 519 "Remote RTCP address switched to %s", 521 "Remote RTCP address switched to predicted" 522 " address %s", 520 523 pj_sockaddr_print(&udp->rtcp_src_addr, 521 524 addr_text, … … 527 530 } 528 531 529 read_next_packet: 532 if (!discard && udp->attached && cb) 533 (*cb)(user_data, udp->rtp_pkt, bytes_read); 534 530 535 bytes_read = sizeof(udp->rtp_pkt); 531 536 udp->rtp_addrlen = sizeof(udp->rtp_src_addr); … … 569 574 */ 570 575 if (bytes_read>0 && 571 (udp->options & PJMEDIA_UDP_NO_SRC_ADDR_CHECKING)==0 && 572 pj_sockaddr_cmp(&udp->rem_rtcp_addr, &udp->rtcp_src_addr) != 0) 576 (udp->options & PJMEDIA_UDP_NO_SRC_ADDR_CHECKING)==0) 573 577 { 574 char addr_text[80]; 575 576 pj_memcpy(&udp->rem_rtcp_addr, &udp->rtcp_src_addr, 577 sizeof(pj_sockaddr)); 578 579 PJ_LOG(4,(udp->base.name, 580 "Remote RTCP address switched to %s", 581 pj_sockaddr_print(&udp->rtcp_src_addr, addr_text, 582 sizeof(addr_text), 3))); 578 if (pj_sockaddr_cmp(&udp->rem_rtcp_addr, &udp->rtcp_src_addr) == 0) { 579 /* Still receiving from rem_rtcp_addr, don't switch */ 580 udp->rtcp_src_cnt = 0; 581 } else { 582 ++udp->rtcp_src_cnt; 583 584 if (udp->rtcp_src_cnt >= PJMEDIA_RTCP_NAT_PROBATION_CNT ) { 585 char addr_text[80]; 586 587 udp->rtcp_src_cnt = 0; 588 pj_memcpy(&udp->rem_rtcp_addr, &udp->rtcp_src_addr, 589 sizeof(pj_sockaddr)); 590 591 PJ_LOG(4,(udp->base.name, 592 "Remote RTCP address switched to %s", 593 pj_sockaddr_print(&udp->rtcp_src_addr, addr_text, 594 sizeof(addr_text), 3))); 595 } 596 } 583 597 } 584 598 … … 678 692 pj_bzero(&udp->rtcp_src_addr, sizeof(udp->rtcp_src_addr)); 679 693 udp->rtp_src_cnt = 0; 694 udp->rtcp_src_cnt = 0; 680 695 681 696 /* Unlock keys */ -
pjproject/trunk/pjmedia/src/test/jbuf_test.c
r3553 r3841 44 44 int lost; 45 45 int empty; 46 int delay; /**< Maximum delay, in frames. */ 46 int delay; /**< Average delay, in frames. */ 47 int delay_min; /**< Minimum delay, in frames. */ 47 48 } test_cond_t; 48 49 … … 70 71 else if (pj_ansi_stricmp(cond_st, "delay") == 0) 71 72 cond->delay = cond_val; 73 else if (pj_ansi_stricmp(cond_st, "delay_min") == 0) 74 cond->delay_min = cond_val; 72 75 else if (pj_ansi_stricmp(cond_st, "discard") == 0) 73 76 cond->discard = cond_val; … … 218 221 cond.burst = -1; 219 222 cond.delay = -1; 223 cond.delay_min = -1; 220 224 cond.discard = -1; 221 225 cond.empty = -1; … … 314 318 rc |= 2; 315 319 } 320 if (cond.delay_min >= 0 && (int)state.min_delay/JB_PTIME > cond.delay_min) { 321 printf("! 'Minimum delay' should be %d, it is %d\n", 322 cond.delay_min, state.min_delay/JB_PTIME); 323 rc |= 32; 324 } 316 325 if (cond.discard >= 0 && (int)state.discard > cond.discard) { 317 326 printf("! 'Discard' should be %d, it is %d\n", -
pjproject/trunk/pjmedia/src/test/mips_test.c
r3678 r3841 917 917 #endif /* PJMEDIA_HAS_G7221_CODEC */ 918 918 919 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 920 /* AMR-NB benchmark benchmark */ 921 static pjmedia_port* amr_encode_decode(pj_pool_t *pool, 922 unsigned clock_rate, 923 unsigned channel_count, 924 unsigned samples_per_frame, 925 unsigned flags, 926 struct test_entry *te) 927 { 928 return codec_encode_decode(pool, "AMR/8000", 929 &pjmedia_codec_opencore_amrnb_init, 930 &pjmedia_codec_opencore_amrnb_deinit, 931 clock_rate, channel_count, 932 samples_per_frame, flags, te); 933 } 934 #endif /* PJMEDIA_HAS_OPENCORE_AMRNB_CODEC */ 935 919 936 #if defined(PJMEDIA_HAS_L16_CODEC) && PJMEDIA_HAS_L16_CODEC!=0 920 937 static pj_status_t init_l16_default(pjmedia_endpt *endpt) … … 1976 1993 } 1977 1994 #endif /* PJMEDIA_HAS_G7221_CODEC */ 1995 1996 /* AMR-NB stream */ 1997 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1998 static pjmedia_port* create_stream_amr( pj_pool_t *pool, 1999 unsigned clock_rate, 2000 unsigned channel_count, 2001 unsigned samples_per_frame, 2002 unsigned flags, 2003 struct test_entry *te) 2004 { 2005 return create_stream(pool, "AMR/8000", &pjmedia_codec_opencore_amrnb_init, 2006 &pjmedia_codec_opencore_amrnb_deinit, 2007 PJ_FALSE, PJ_FALSE, PJ_FALSE, 2008 clock_rate, channel_count, 2009 samples_per_frame, flags, te); 2010 } 2011 #endif /* PJMEDIA_HAS_OPENCORE_AMRNB_CODEC */ 1978 2012 1979 2013 /***************************************************************************/ … … 2367 2401 { "codec encode/decode - G.722.1c", OP_PUT, K32, &g7221c_encode_decode}, 2368 2402 #endif 2403 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 2404 { "codec encode/decode - AMR-NB", OP_PUT, K8, &amr_encode_decode}, 2405 #endif 2369 2406 #if PJMEDIA_HAS_L16_CODEC 2370 2407 { "codec encode/decode - L16/8000/1", OP_PUT, K8, &l16_8_encode_decode}, … … 2392 2429 { "stream TX/RX - G.722.1c", OP_PUT_GET, K32, &create_stream_g7221c}, 2393 2430 #endif 2431 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 2432 { "stream TX/RX - AMR-NB", OP_PUT_GET, K8, &create_stream_amr}, 2433 #endif 2394 2434 }; 2395 2435 -
pjproject/trunk/pjmedia/src/test/test.c
r3667 r3841 43 43 PJ_LOG(3,(THIS_FILE, "%s: %s", msg, errbuf)); 44 44 } 45 46 /* Force linking PLC stuff if G.711 is disabled. See: 47 * https://trac.pjsip.org/repos/ticket/1337 48 */ 49 #if PJMEDIA_HAS_G711_CODEC==0 50 int dummy() 51 { 52 // Dummy 53 return (int) &pjmedia_plc_save; 54 } 55 #endif 45 56 46 57 int test_main(void) -
pjproject/trunk/pjnath/src/pjnath/ice_strans.c
r3775 r3841 1202 1202 }; 1203 1203 1204 /* https://trac.pjsip.org/repos/ticket/1316 */ 1205 if (comp->turn_sock == NULL) { 1206 /* TURN socket error */ 1207 return PJ_EINVALIDOP; 1208 } 1209 1204 1210 if (!comp->turn_log_off) { 1205 1211 /* Disable logging for Send/Data indications */ -
pjproject/trunk/pjnath/src/pjnath/stun_sock.c
r3553 r3841 121 121 "DNS resolution", 122 122 "STUN Binding request", 123 "Keep-alive" 123 "Keep-alive", 124 "Mapped addr. changed" 124 125 }; 125 126 126 return op < = PJ_STUN_SOCK_KEEP_ALIVE_OP ? names[op] : "?";127 return op < PJ_ARRAY_SIZE(names) ? names[op] : "???"; 127 128 }; 128 129 -
pjproject/trunk/pjnath/src/pjnath/turn_sock.c
r3553 r3841 620 620 if (turn_sock == NULL) { 621 621 /* We've been destroyed */ 622 pj_assert(!"We should shutdown gracefully"); 622 // https://trac.pjsip.org/repos/ticket/1316 623 //pj_assert(!"We should shutdown gracefully"); 623 624 return PJ_EINVALIDOP; 624 625 } -
pjproject/trunk/pjsip-apps/src/ipjsua/ipjsua.xcodeproj/project.pbxproj
r3664 r3841 378 378 GCC_PRECOMPILE_PREFIX_HEADER = YES; 379 379 GCC_PREFIX_HEADER = ipjsua_Prefix.pch; 380 GCC_PREPROCESSOR_DEFINITIONS = ( 381 "PJ_AUTOCONF=1", 382 USE_GUI, 383 ); 380 384 INFOPLIST_FILE = "ipjsua-Info.plist"; 381 385 IPHONEOS_DEPLOYMENT_TARGET = 3.2; … … 407 411 GCC_PRECOMPILE_PREFIX_HEADER = YES; 408 412 GCC_PREFIX_HEADER = ipjsua_Prefix.pch; 413 GCC_PREPROCESSOR_DEFINITIONS = ( 414 "PJ_AUTOCONF=1", 415 USE_GUI, 416 ); 409 417 INFOPLIST_FILE = "ipjsua-Info.plist"; 410 418 IPHONEOS_DEPLOYMENT_TARGET = 3.2; -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r3825 r3841 148 148 #ifdef STEREO_DEMO 149 149 static void stereo_demo(); 150 #endif151 #ifdef TRANSPORT_ADAPTER_SAMPLE152 static pj_status_t transport_adapter_sample(void);153 150 #endif 154 151 static pj_status_t create_ipv6_media_transports(void); … … 912 909 913 910 case OPT_100REL: /** 100rel */ 914 cur_acc->require_100rel = PJ _TRUE;915 cfg->cfg.require_100rel = PJ _TRUE;911 cur_acc->require_100rel = PJSUA_100REL_MANDATORY; 912 cfg->cfg.require_100rel = PJSUA_100REL_MANDATORY; 916 913 break; 917 914 … … 3221 3218 #endif 3222 3219 } 3220 3221 #ifdef TRANSPORT_ADAPTER_SAMPLE 3222 /* 3223 * This callback is called when media transport needs to be created. 3224 */ 3225 static pjmedia_transport* on_create_media_transport(pjsua_call_id call_id, 3226 unsigned media_idx, 3227 pjmedia_transport *base_tp, 3228 unsigned flags) 3229 { 3230 pjmedia_transport *adapter; 3231 pj_status_t status; 3232 3233 /* Create the adapter */ 3234 status = pjmedia_tp_adapter_create(pjsua_get_pjmedia_endpt(), 3235 NULL, base_tp, 3236 (flags & PJSUA_MED_TP_CLOSE_MEMBER), 3237 &adapter); 3238 if (status != PJ_SUCCESS) { 3239 PJ_PERROR(1,(THIS_FILE, status, "Error creating adapter")); 3240 return NULL; 3241 } 3242 3243 PJ_LOG(3,(THIS_FILE, "Media transport is created for call %d media %d", 3244 call_id, media_idx)); 3245 3246 return adapter; 3247 } 3248 #endif 3223 3249 3224 3250 /* … … 5211 5237 app_config.cfg.cb.on_snd_dev_operation = &on_snd_dev_operation; 5212 5238 app_config.cfg.cb.on_call_media_event = &on_call_media_event; 5239 #ifdef TRANSPORT_ADAPTER_SAMPLE 5240 app_config.cfg.cb.on_create_media_transport = &on_create_media_transport; 5241 #endif 5213 5242 app_config.log_cfg.cb = log_cb; 5214 5243 … … 5490 5519 for (i=0; i<app_config.acc_cnt; ++i) { 5491 5520 app_config.acc_cfg[i].rtp_cfg = app_config.rtp_cfg; 5521 app_config.acc_cfg[i].reg_retry_interval = 300; 5522 app_config.acc_cfg[i].reg_first_retry_interval = 60; 5523 5492 5524 status = pjsua_acc_add(&app_config.acc_cfg[i], PJ_TRUE, NULL); 5493 5525 if (status != PJ_SUCCESS) … … 5522 5554 5523 5555 /* Add RTP transports */ 5524 #ifdef TRANSPORT_ADAPTER_SAMPLE5525 status = transport_adapter_sample();5526 5527 #else5528 5556 if (app_config.ipv6) 5529 5557 status = create_ipv6_media_transports(); … … 5532 5560 status = pjsua_media_transports_create(&app_config.rtp_cfg); 5533 5561 #endif 5534 #endif5535 5562 if (status != PJ_SUCCESS) 5536 5563 goto on_error; … … 5753 5780 #endif 5754 5781 5755 #ifdef TRANSPORT_ADAPTER_SAMPLE5756 static pj_status_t create_transport_adapter(pjmedia_endpt *med_endpt, int port,5757 pjmedia_transport **p_tp)5758 {5759 pjmedia_transport *udp;5760 pj_status_t status;5761 5762 /* Create the UDP media transport */5763 status = pjmedia_transport_udp_create(med_endpt, NULL, port, 0, &udp);5764 if (status != PJ_SUCCESS)5765 return status;5766 5767 /* Create the adapter */5768 status = pjmedia_tp_adapter_create(med_endpt, NULL, udp, p_tp);5769 if (status != PJ_SUCCESS) {5770 pjmedia_transport_close(udp);5771 return status;5772 }5773 5774 return PJ_SUCCESS;5775 }5776 5777 static pj_status_t transport_adapter_sample(void)5778 {5779 pjsua_media_transport tp[PJSUA_MAX_CALLS];5780 pj_status_t status;5781 int port = 7000;5782 unsigned i;5783 5784 for (i=0; i<app_config.cfg.max_calls; ++i) {5785 status = create_transport_adapter(pjsua_get_pjmedia_endpt(),5786 port + i*10,5787 &tp[i].transport);5788 if (status != PJ_SUCCESS)5789 return status;5790 }5791 5792 return pjsua_media_transports_attach(tp, i, PJ_TRUE);5793 }5794 #endif5795 5796 5782 static pj_status_t create_ipv6_media_transports(void) 5797 5783 { -
pjproject/trunk/pjsip-apps/src/samples/icedemo.c
r3553 r3841 1029 1029 " - parse remote SDP, by pasting SDP generated by the other icedemo\n" 1030 1030 " instance [menu \"r\"]\n" 1031 " - begin ICE negotiation in our end [menu \"b\"] \n"1032 " - begin ICE negotiation in the other icedemo instance\n"1031 " - begin ICE negotiation in our end [menu \"b\"], and \n" 1032 " - immediately begin ICE negotiation in the other icedemo instance\n" 1033 1033 " - ICE negotiation will run, and result will be printed to screen\n" 1034 1034 " - send application data to remote [menu \"x\"]\n" -
pjproject/trunk/pjsip-apps/src/samples/pcaputil.c
r3664 r3841 26 26 "pcaputil [options] INPUT OUTPUT\n" 27 27 "\n" 28 " Convert captured RTP packets in PCAP file to WAV or stream it\n" 29 " to remote destination.\n" 30 "\n" 31 "INPUT is the PCAP file name/path\n" 28 " Convert captured RTP packets in PCAP file to WAV file or play it\n" 29 " to audio device.\n" 30 "\n" 31 " INPUT is the PCAP file name/path.\n" 32 " OUTPUT is the WAV file name/path to store the output, or set to \"-\",\n" 33 " to play the output to audio device. The program will decode\n" 34 " the RTP contents using codec that is available in PJMEDIA,\n" 35 " and optionally decrypt the content using the SRTP crypto and\n" 36 " keys below.\n" 32 37 "\n" 33 38 "Options to filter packets from PCAP file:\n" … … 38 43 " --dst-port=port Only include packets destined to this port number\n" 39 44 "\n" 40 "Options for saving to WAV file:\n"45 "Options for RTP packet processing:\n" 41 46 "" 42 " OUTPUT is WAV file: Set output to WAV file. The program will decode the\n" 43 " RTP contents to the specified WAV file using codec\n" 44 " that is available in PJMEDIA, and optionally decrypt\n" 45 " the content using the SRTP crypto and keys below.\n" 47 " --codec=codec_id The codec ID formatted \"name/clock-rate/channel-count\"\n" 48 " must be specified for codec with dynamic PT,\n" 49 " e.g: \"Speex/8000\"\n" 46 50 " --srtp-crypto=TAG, -c Set crypto to be used to decrypt SRTP packets. Valid\n" 47 51 " tags are: \n" … … 50 54 " --srtp-key=KEY, -k Set the base64 key to decrypt SRTP packets.\n" 51 55 "\n" 56 "Options for playing to audio device:\n" 57 "" 58 " --play-dev-id=dev_id Audio device ID for playback.\n" 59 "\n" 52 60 " Example:\n" 53 61 " pcaputil file.pcap output.wav\n" 54 62 " pcaputil -c AES_CM_128_HMAC_SHA1_80 \\\n" 55 " -k VLDONbsbGl2Puqy+0PV7w/uGfpSPKFevDpxGsxN3 \\\n" 56 " file.pcap output.wav\n" 57 "\n" 58 "Remote streaming is not supported yet." 63 " -k VLDONbsbGl2Puqy+0PV7w/uGfpSPKFevDpxGsxN3 \\\n" 64 " file.pcap output.wav\n" 65 "\n" 59 66 ; 60 67 … … 67 74 pjmedia_port *wav; 68 75 pjmedia_codec *codec; 76 pjmedia_aud_stream *aud_strm; 69 77 unsigned pt; 70 78 pjmedia_transport *srtp; … … 73 81 } app; 74 82 75 static void err_exit(const char *title, pj_status_t status) 76 { 77 if (status != PJ_SUCCESS) { 78 char errmsg[PJ_ERR_MSG_SIZE]; 79 pj_strerror(status, errmsg, sizeof(errmsg)); 80 printf("Error: %s: %s\n", title, errmsg); 81 } else { 82 printf("Error: %s\n", title); 83 } 84 83 84 static void cleanup() 85 { 85 86 if (app.srtp) pjmedia_transport_close(app.srtp); 86 87 if (app.wav) { … … 103 104 pjmedia_codec_mgr_dealloc_codec(cmgr, app.codec); 104 105 } 106 if (app.aud_strm) { 107 pjmedia_aud_stream_stop(app.aud_strm); 108 pjmedia_aud_stream_destroy(app.aud_strm); 109 } 105 110 if (app.mept) pjmedia_endpt_destroy(app.mept); 106 111 if (app.pool) pj_pool_release(app.pool); 107 112 pj_caching_pool_destroy(&app.cp); 108 113 pj_shutdown(); 109 114 } 115 116 static void err_exit(const char *title, pj_status_t status) 117 { 118 if (status != PJ_SUCCESS) { 119 char errmsg[PJ_ERR_MSG_SIZE]; 120 pj_strerror(status, errmsg, sizeof(errmsg)); 121 printf("Error: %s: %s\n", title, errmsg); 122 } else { 123 printf("Error: %s\n", title); 124 } 125 cleanup(); 110 126 exit(1); 111 127 } … … 213 229 } 214 230 215 static void pcap2wav(const char *wav_filename, const pj_str_t *srtp_crypto, 231 pjmedia_frame play_frm; 232 static pj_bool_t play_frm_copied, play_frm_ready; 233 234 static pj_status_t wait_play(pjmedia_frame *f) 235 { 236 play_frm_copied = PJ_FALSE; 237 play_frm = *f; 238 play_frm_ready = PJ_TRUE; 239 while (!play_frm_copied) { 240 pj_thread_sleep(1); 241 } 242 play_frm_ready = PJ_FALSE; 243 244 return PJ_SUCCESS; 245 } 246 247 static pj_status_t play_cb(void *user_data, pjmedia_frame *f) 248 { 249 PJ_UNUSED_ARG(user_data); 250 251 if (!play_frm_ready) { 252 PJ_LOG(3, ("play_cb()", "Warning! Play frame not ready")); 253 return PJ_SUCCESS; 254 } 255 256 pj_memcpy(f->buf, play_frm.buf, play_frm.size); 257 f->size = play_frm.size; 258 259 play_frm_copied = PJ_TRUE; 260 return PJ_SUCCESS; 261 } 262 263 static void pcap2wav(const pj_str_t *codec, 264 const pj_str_t *wav_filename, 265 pjmedia_aud_dev_index dev_id, 266 const pj_str_t *srtp_crypto, 216 267 const pj_str_t *srtp_key) 217 268 { 269 const pj_str_t WAV = {".wav", 4}; 218 270 struct pkt 219 271 { … … 256 308 /* Get codec info and param for the specified payload type */ 257 309 app.pt = pkt0.rtp->pt; 258 T( pjmedia_codec_mgr_get_codec_info(cmgr, pkt0.rtp->pt, &ci) ); 310 if (app.pt >=0 && app.pt < 96) { 311 T( pjmedia_codec_mgr_get_codec_info(cmgr, pkt0.rtp->pt, &ci) ); 312 } else { 313 unsigned cnt = 2; 314 const pjmedia_codec_info *info[2]; 315 T( pjmedia_codec_mgr_find_codecs_by_id(cmgr, codec, &cnt, 316 info, NULL) ); 317 if (cnt != 1) 318 err_exit("Codec ID must be specified and unique!", 0); 319 320 ci = info[0]; 321 } 259 322 T( pjmedia_codec_mgr_get_default_param(cmgr, ci, ¶m) ); 260 323 … … 264 327 T( pjmedia_codec_open(app.codec, ¶m) ); 265 328 266 /* OpenWAV file */329 /* Init audio device or WAV file */ 267 330 samples_per_frame = ci->clock_rate * param.info.frm_ptime / 1000; 268 T( pjmedia_wav_writer_port_create(app.pool, wav_filename, 269 ci->clock_rate, ci->channel_cnt, 270 samples_per_frame, 271 param.info.pcm_bits_per_sample, 0, 0, 272 &app.wav) ); 331 if (pj_strcmp2(wav_filename, "-") == 0) { 332 pjmedia_aud_param aud_param; 333 334 /* Open audio device */ 335 T( pjmedia_aud_dev_default_param(dev_id, &aud_param) ); 336 aud_param.dir = PJMEDIA_DIR_PLAYBACK; 337 aud_param.channel_count = ci->channel_cnt; 338 aud_param.clock_rate = ci->clock_rate; 339 aud_param.samples_per_frame = samples_per_frame; 340 T( pjmedia_aud_stream_create(&aud_param, NULL, &play_cb, 341 NULL, &app.aud_strm) ); 342 T( pjmedia_aud_stream_start(app.aud_strm) ); 343 } else if (pj_stristr(wav_filename, &WAV)) { 344 /* Open WAV file */ 345 T( pjmedia_wav_writer_port_create(app.pool, wav_filename->ptr, 346 ci->clock_rate, ci->channel_cnt, 347 samples_per_frame, 348 param.info.pcm_bits_per_sample, 0, 0, 349 &app.wav) ); 350 } else { 351 err_exit("invalid output file", PJ_EINVAL); 352 } 273 353 274 354 /* Loop reading PCAP and writing WAV file */ … … 299 379 T( pjmedia_codec_decode(app.codec, &frames[i], pcm_frame.size, 300 380 &pcm_frame) ); 301 T( pjmedia_port_put_frame(app.wav, &pcm_frame) ); 381 if (app.wav) { 382 T( pjmedia_port_put_frame(app.wav, &pcm_frame) ); 383 } 384 if (app.aud_strm) { 385 T( wait_play(&pcm_frame) ); 386 } 302 387 samples_cnt += samples_per_frame; 303 388 } … … 322 407 } 323 408 324 T( pjmedia_port_put_frame(app.wav, &pcm_frame) ); 409 if (app.wav) { 410 T( pjmedia_port_put_frame(app.wav, &pcm_frame) ); 411 } 412 if (app.aud_strm) { 413 T( wait_play(&pcm_frame) ); 414 } 325 415 ts_gap -= samples_per_frame; 326 416 } … … 336 426 int main(int argc, char *argv[]) 337 427 { 338 pj_str_t input, output, wav, srtp_crypto, srtp_key; 428 pj_str_t input, output, srtp_crypto, srtp_key, codec; 429 pjmedia_aud_dev_index dev_id = PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV; 339 430 pj_pcap_filter filter; 340 431 pj_status_t status; 341 432 342 enum { OPT_SRC_IP = 1, OPT_DST_IP, OPT_SRC_PORT, OPT_DST_PORT }; 433 enum { 434 OPT_SRC_IP = 1, OPT_DST_IP, OPT_SRC_PORT, OPT_DST_PORT, 435 OPT_CODEC, OPT_PLAY_DEV_ID 436 }; 343 437 struct pj_getopt_option long_options[] = { 344 438 { "srtp-crypto", 1, 0, 'c' }, … … 348 442 { "src-port", 1, 0, OPT_SRC_PORT }, 349 443 { "dst-port", 1, 0, OPT_DST_PORT }, 444 { "codec", 1, 0, OPT_CODEC }, 445 { "play-dev-id", 1, 0, OPT_PLAY_DEV_ID }, 350 446 { NULL, 0, 0, 0} 351 447 }; … … 355 451 356 452 srtp_crypto.slen = srtp_key.slen = 0; 453 codec.slen = 0; 357 454 358 455 pj_pcap_filter_default(&filter); … … 399 496 filter.dst_port = pj_htons((pj_uint16_t)atoi(pj_optarg)); 400 497 break; 498 case OPT_CODEC: 499 codec = pj_str(pj_optarg); 500 break; 501 case OPT_PLAY_DEV_ID: 502 dev_id = atoi(pj_optarg); 503 break; 401 504 default: 402 505 puts("Error: invalid option"); … … 418 521 input = pj_str(argv[pj_optind]); 419 522 output = pj_str(argv[pj_optind+1]); 420 wav = pj_str(".wav");421 523 422 524 T( pj_init() ); … … 431 533 T( pj_pcap_set_filter(app.pcap, &filter) ); 432 534 433 if (pj_stristr(&output, &wav)) { 434 pcap2wav(output.ptr, &srtp_crypto, &srtp_key); 435 } else { 436 err_exit("invalid output file", PJ_EINVAL); 437 } 438 439 pjmedia_endpt_destroy(app.mept); 440 pj_pool_release(app.pool); 441 pj_caching_pool_destroy(&app.cp); 442 pj_shutdown(); 535 pcap2wav(&codec, &output, dev_id, &srtp_crypto, &srtp_key); 536 537 cleanup(); 443 538 return 0; 444 539 } -
pjproject/trunk/pjsip/include/pjsip-ua/sip_inv.h
r3777 r3841 368 368 pj_str_t cause_text; /**< Cause text. */ 369 369 pj_bool_t notify; /**< Internal. */ 370 unsigned cb_called; /**< Cb has been called */ 370 371 pjsip_dialog *dlg; /**< Underlying dialog. */ 371 372 pjsip_role_e role; /**< Invite role. */ -
pjproject/trunk/pjsip/include/pjsip/sip_config.h
r3553 r3841 669 669 #endif 670 670 671 /** 672 * Delay for non-100 1xx retransmission, in seconds. 673 * Set to 0 to disable this feature. 674 * 675 * Default: 60 seconds 676 */ 677 #ifndef PJSIP_TSX_1XX_RETRANS_DELAY 678 # define PJSIP_TSX_1XX_RETRANS_DELAY 60 679 #endif 680 671 681 #define PJSIP_MAX_TSX_KEY_LEN (PJSIP_MAX_URL_SIZE*2) 672 682 -
pjproject/trunk/pjsip/include/pjsip/sip_endpoint.h
r3553 r3841 57 57 * - and so on.. 58 58 * 59 * Theoritically application can have multiple instances of SIP endpoint,60 * although it's not clear why application may want to do it.59 * Application should only instantiate one SIP endpoint instance for every 60 * process. 61 61 * 62 62 * @{ -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r3796 r3841 540 540 541 541 /** 542 * This enumeration specifies the options for custom media transport creation. 543 */ 544 typedef enum pjsua_create_media_transport_flag 545 { 546 /** 547 * This flag indicates that the media transport must also close its 548 * "member" or "child" transport when pjmedia_transport_close() is 549 * called. If this flag is not specified, then the media transport 550 * must not call pjmedia_transport_close() of its member transport. 551 */ 552 PJSUA_MED_TP_CLOSE_MEMBER = 1 553 554 } pjsua_create_media_transport_flag; 555 556 557 /** 542 558 * This structure describes application callback to receive various event 543 559 * notification from PJSUA-API. All of these callbacks are OPTIONAL, … … 706 722 707 723 724 /** 725 * Notify application when registration or unregistration has been 726 * initiated. Note that this only notifies the initial registration 727 * and unregistration. Once registration session is active, subsequent 728 * refresh will not cause this callback to be called. 729 * 730 * @param acc_id The account ID. 731 * @param renew Non-zero for registration and zero for 732 * unregistration. 733 */ 734 void (*on_reg_started)(pjsua_acc_id acc_id, pj_bool_t renew); 735 708 736 /** 709 737 * Notify application when registration status has changed. … … 1075 1103 pjmedia_event *event); 1076 1104 1105 /** 1106 * This callback can be used by application to implement custom media 1107 * transport adapter for the call, or to replace the media transport 1108 * with something completely new altogether. 1109 * 1110 * This callback is called when a new call is created. The library has 1111 * created a media transport for the call, and it is provided as the 1112 * \a base_tp argument of this callback. Upon returning, the callback 1113 * must return an instance of media transport to be used by the call. 1114 * 1115 * @param call_id Call ID 1116 * @param media_idx The media index in the SDP for which this media 1117 * transport will be used. 1118 * @param base_tp The media transport which otherwise will be 1119 * used by the call has this callback not been 1120 * implemented. 1121 * @param flags Bitmask from pjsua_create_media_transport_flag. 1122 * 1123 * @return The callback must return an instance of media 1124 * transport to be used by the call. 1125 */ 1126 pjmedia_transport* (*on_create_media_transport)(pjsua_call_id call_id, 1127 unsigned media_idx, 1128 pjmedia_transport *base_tp, 1129 unsigned flags); 1130 1077 1131 } pjsua_callback; 1078 1132 … … 1108 1162 1109 1163 } pjsua_sip_timer_use; 1164 1165 1166 /** 1167 * This constants controls the use of 100rel extension. 1168 */ 1169 typedef enum pjsua_100rel_use 1170 { 1171 /** 1172 * Not used. For UAC, support for 100rel will be indicated in Supported 1173 * header so that peer can opt to use it if it wants to. As UAS, this 1174 * option will NOT cause 100rel to be used even if UAC indicates that 1175 * it supports this feature. 1176 */ 1177 PJSUA_100REL_NOT_USED, 1178 1179 /** 1180 * Mandatory. UAC will place 100rel in Require header, and UAS will 1181 * reject incoming calls unless it has 100rel in Supported header. 1182 */ 1183 PJSUA_100REL_MANDATORY, 1184 1185 /** 1186 * Optional. Similar to PJSUA_100REL_NOT_USED, except that as UAS, this 1187 * option will cause 100rel to be used if UAC indicates that it supports it. 1188 */ 1189 PJSUA_100REL_OPTIONAL 1190 1191 } pjsua_100rel_use; 1110 1192 1111 1193 … … 1246 1328 1247 1329 /** 1248 * Specify whether support for reliable provisional response (100rel and1249 * PRACK) should be required by default. Note that this setting can be1330 * Specify how the support for reliable provisional response (100rel/ 1331 * PRACK) should be used by default. Note that this setting can be 1250 1332 * further customized in account configuration (#pjsua_acc_config). 1251 1333 * 1252 * Default: PJ _FALSE1253 */ 1254 pj _bool_trequire_100rel;1334 * Default: PJSUA_100REL_NOT_USED 1335 */ 1336 pjsua_100rel_use require_100rel; 1255 1337 1256 1338 /** … … 1367 1449 1368 1450 /** 1451 * Flags to be given to pjsua_destroy2() 1452 */ 1453 typedef enum pjsua_destroy_flag 1454 { 1455 /** 1456 * Allow sending outgoing messages (such as unregistration, event 1457 * unpublication, BYEs, unsubscription, etc.), but do not wait for 1458 * responses. This is useful to perform "best effort" clean up 1459 * without delaying the shutdown process waiting for responses. 1460 */ 1461 PJSUA_DESTROY_NO_RX_MSG = 1, 1462 1463 /** 1464 * If this flag is set, do not send any outgoing messages at all. 1465 * This flag is useful if application knows that the network which 1466 * the messages are to be sent on is currently down. 1467 */ 1468 PJSUA_DESTROY_NO_TX_MSG = 2, 1469 1470 /** 1471 * Do not send or receive messages during destroy. This flag is 1472 * shorthand for PJSUA_DESTROY_NO_RX_MSG + PJSUA_DESTROY_NO_TX_MSG. 1473 */ 1474 PJSUA_DESTROY_NO_NETWORK = PJSUA_DESTROY_NO_RX_MSG | 1475 PJSUA_DESTROY_NO_TX_MSG 1476 1477 } pjsua_destroy_flag; 1478 1479 /** 1369 1480 * Use this function to initialize pjsua config. 1370 1481 * … … 1514 1625 * keep track of it's state. 1515 1626 * 1627 * @see pjsua_destroy2() 1628 * 1516 1629 * @return PJ_SUCCESS on success, or the appropriate error code. 1517 1630 */ … … 1525 1638 */ 1526 1639 PJ_DECL(pjsua_state) pjsua_get_state(void); 1640 1641 1642 /** 1643 * Variant of destroy with additional flags. 1644 * 1645 * @param flags Combination of pjsua_destroy_flag enumeration. 1646 * 1647 * @return PJ_SUCCESS on success, or the appropriate error code. 1648 */ 1649 PJ_DECL(pj_status_t) pjsua_destroy2(unsigned flags); 1527 1650 1528 1651 … … 2396 2519 2397 2520 /** 2398 * Specify whether support for reliable provisional response (100rel and 2399 * PRACK) should be required for all sessions of this account. 2400 * 2401 * Default: PJ_FALSE 2402 */ 2403 pj_bool_t require_100rel; 2521 * Specify how support for reliable provisional response (100rel/ 2522 * PRACK) should be used for all sessions in this account. See the 2523 * documentation of pjsua_100rel_use enumeration for more info. 2524 * 2525 * Default: The default value is taken from the value of 2526 * require_100rel in pjsua_config. 2527 */ 2528 pjsua_100rel_use require_100rel; 2404 2529 2405 2530 /** … … 2677 2802 * Specify interval of auto registration retry upon registration failure 2678 2803 * (including caused by transport problem), in second. Set to 0 to 2679 * disable auto re-registration. 2804 * disable auto re-registration. Note that if the registration retry 2805 * occurs because of transport failure, the first retry will be done 2806 * after \a reg_first_retry_interval seconds instead. Also note that 2807 * the interval will be randomized slightly by approximately +/- ten 2808 * seconds to avoid all clients re-registering at the same time. 2809 * 2810 * See also \a reg_first_retry_interval setting. 2680 2811 * 2681 2812 * Default: #PJSUA_REG_RETRY_INTERVAL 2682 2813 */ 2683 2814 unsigned reg_retry_interval; 2815 2816 /** 2817 * This specifies the interval for the first registration retry. The 2818 * registration retry is explained in \a reg_retry_interval. Note that 2819 * the value here will also be randomized by +/- ten seconds. 2820 * 2821 * Default: 0 2822 */ 2823 unsigned reg_first_retry_interval; 2684 2824 2685 2825 /** … … 2722 2862 */ 2723 2863 pjsua_call_hold_type call_hold_type; 2864 2865 2866 /** 2867 * Specify whether the account should register as soon as it is 2868 * added to the UA. Application can set this to PJ_FALSE and control 2869 * the registration manually with pjsua_acc_set_registration(). 2870 * 2871 * Default: PJ_TRUE 2872 */ 2873 pj_bool_t register_on_acc_add; 2724 2874 2725 2875 } pjsua_acc_config; -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua_internal.h
r3780 r3841 44 44 unsigned idx; /**< This media index in parent call. */ 45 45 pjsua_call_media_status state; /**< Media state. */ 46 pjsua_call_media_status prev_state;/**< Previous media state. */ 46 47 pjmedia_dir dir; /**< Media direction. */ 47 48 … … 79 80 pj_bool_t tp_auto_del; /**< May delete media transport */ 80 81 pjsua_med_tp_st tp_st; /**< Media transport state */ 82 pj_bool_t use_custom_med_tp;/**< Use custom media transport? */ 81 83 pj_sockaddr rtp_addr; /**< Current RTP source address 82 84 (used to update ICE default … … 131 133 pjsua_call_hold_type call_hold_type; /**< How to do call hold. */ 132 134 pj_bool_t local_hold;/**< Flag for call-hold by local. */ 135 void *hold_msg; /**< Outgoing hold tx_data. */ 133 136 134 137 unsigned med_cnt; /**< Number of media in SDP. */ … … 581 584 * Shutdown presence. 582 585 */ 583 void pjsua_pres_shutdown( void);586 void pjsua_pres_shutdown(unsigned flags); 584 587 585 588 /** … … 596 599 * Send un-PUBLISH 597 600 */ 598 void pjsua_pres_unpublish(pjsua_acc *acc );601 void pjsua_pres_unpublish(pjsua_acc *acc, unsigned flags); 599 602 600 603 /** 601 604 * Terminate server subscription for the account 602 605 */ 603 void pjsua_pres_delete_acc(int acc_id );606 void pjsua_pres_delete_acc(int acc_id, unsigned flags); 604 607 605 608 /** … … 636 639 * Destroy pjsua media subsystem. 637 640 */ 638 pj_status_t pjsua_media_subsys_destroy( void);641 pj_status_t pjsua_media_subsys_destroy(unsigned flags); 639 642 640 643 /** -
pjproject/trunk/pjsip/src/pjsip-simple/evsub_msg.c
r3553 r3841 296 296 PJ_DEF(void) pjsip_evsub_init_parser(void) 297 297 { 298 pjsip_register_hdr_parser( "Event", NULL,298 pjsip_register_hdr_parser( "Event", "o", 299 299 &parse_hdr_event); 300 300 -
pjproject/trunk/pjsip/src/pjsip-simple/pidf.c
r3553 r3841 325 325 { 326 326 pj_xml_node *node = pj_xml_find_node((pj_xml_node*)st, &BASIC); 327 pj_assert(node != NULL); 327 if (!node) 328 return PJ_FALSE; 328 329 return pj_stricmp(&node->content, &OPEN)==0; 329 330 } … … 332 333 { 333 334 pj_xml_node *node = pj_xml_find_node(st, &BASIC); 334 pj_assert(node != NULL);335 335 if (node) 336 node->content = open ? OPEN : CLOSED; 336 337 } 337 338 -
pjproject/trunk/pjsip/src/pjsip-ua/sip_100rel.c
r3664 r3841 106 106 typedef struct uac_state_t 107 107 { 108 pj_int32_t cseq; 109 pj_uint32_t rseq; /* Initialized to -1 */ 108 pj_str_t tag; /* To tag */ 109 pj_int32_t cseq; 110 pj_uint32_t rseq; /* Initialized to -1 */ 111 struct uac_state_t *next; /* next call leg */ 110 112 } uac_state_t; 111 113 … … 116 118 pjsip_inv_session *inv; 117 119 uas_state_t *uas_state; 118 uac_state_t *uac_state ;120 uac_state_t *uac_state_list; 119 121 }; 120 122 … … 232 234 { 233 235 dlg_data *dd; 236 uac_state_t *uac_state = NULL; 237 const pj_str_t *to_tag = &rdata->msg_info.to->tag; 234 238 pjsip_transaction *tsx; 235 239 pjsip_msg *msg; … … 262 266 if (rseq_hdr == NULL) { 263 267 PJ_LOG(4,(dd->inv->dlg->obj_name, 264 "Ignoring provisional response with no RSeq header"));268 "Ignoring 100rel response with no RSeq header")); 265 269 return PJSIP_EMISSINGHDR; 266 270 } 267 271 rseq = (pj_uint32_t) pj_strtoul(&rseq_hdr->hvalue); 268 272 273 /* Find UAC state for the specified call leg */ 274 uac_state = dd->uac_state_list; 275 while (uac_state) { 276 if (pj_strcmp(&uac_state->tag, to_tag)==0) 277 break; 278 uac_state = uac_state->next; 279 } 280 269 281 /* Create new UAC state if we don't have one */ 270 if (dd->uac_state == NULL) { 271 dd->uac_state = PJ_POOL_ZALLOC_T(dd->inv->dlg->pool, 272 uac_state_t); 273 dd->uac_state->cseq = rdata->msg_info.cseq->cseq; 274 dd->uac_state->rseq = rseq - 1; 275 } 276 277 /* If this is from new INVITE transaction, reset UAC state */ 278 if (rdata->msg_info.cseq->cseq != dd->uac_state->cseq) { 279 dd->uac_state->cseq = rdata->msg_info.cseq->cseq; 280 dd->uac_state->rseq = rseq - 1; 282 if (uac_state == NULL) { 283 uac_state = PJ_POOL_ZALLOC_T(dd->inv->dlg->pool, uac_state_t); 284 uac_state->cseq = rdata->msg_info.cseq->cseq; 285 uac_state->rseq = rseq - 1; 286 pj_strdup(dd->inv->dlg->pool, &uac_state->tag, to_tag); 287 uac_state->next = dd->uac_state_list; 288 dd->uac_state_list = uac_state; 289 } 290 291 /* If this is from new INVITE transaction, reset UAC state. */ 292 if (rdata->msg_info.cseq->cseq != uac_state->cseq) { 293 uac_state->cseq = rdata->msg_info.cseq->cseq; 294 uac_state->rseq = rseq - 1; 281 295 } 282 296 283 297 /* Ignore provisional response retransmission */ 284 if (rseq <= dd->uac_state->rseq) {298 if (rseq <= uac_state->rseq) { 285 299 /* This should have been handled before */ 286 300 return PJ_EIGNORED; 287 301 288 302 /* Ignore provisional response with out-of-order RSeq */ 289 } else if (rseq != dd->uac_state->rseq + 1) {303 } else if (rseq != uac_state->rseq + 1) { 290 304 PJ_LOG(4,(dd->inv->dlg->obj_name, 291 "Ignoring provisional response because RSeq jump "305 "Ignoring 100rel response because RSeq jump " 292 306 "(expecting %u, got %u)", 293 dd->uac_state->rseq+1, rseq));307 uac_state->rseq+1, rseq)); 294 308 return PJ_EIGNORED; 295 309 } 296 310 297 311 /* Update our RSeq */ 298 dd->uac_state->rseq = rseq;312 uac_state->rseq = rseq; 299 313 300 314 /* Create PRACK */ … … 303 317 if (status != PJ_SUCCESS) 304 318 return status; 319 320 /* If this response is a forked response from a different call-leg, 321 * update the req URI (https://trac.pjsip.org/repos/ticket/1364) 322 */ 323 if (pj_strcmp(&uac_state->tag, &dd->inv->dlg->remote.info->tag)) { 324 const pjsip_contact_hdr *mhdr; 325 326 mhdr = (const pjsip_contact_hdr*) 327 pjsip_msg_find_hdr(rdata->msg_info.msg, 328 PJSIP_H_CONTACT, NULL); 329 if (!mhdr || !mhdr->uri) { 330 PJ_LOG(4,(dd->inv->dlg->obj_name, 331 "Ignoring 100rel response with no or " 332 "invalid Contact header")); 333 pjsip_tx_data_dec_ref(tdata); 334 return PJ_EIGNORED; 335 } 336 tdata->msg->line.req.uri = (pjsip_uri*) 337 pjsip_uri_clone(tdata->pool, mhdr->uri); 338 } 305 339 306 340 /* Create RAck header */ -
pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c
r3777 r3841 196 196 { 197 197 pjsip_inv_state prev_state = inv->state; 198 pj_bool_t dont_notify = PJ_FALSE; 198 199 pj_status_t status; 199 200 201 /* Prevent STATE_CALLING from being reported more than once because 202 * of authentication 203 * https://trac.pjsip.org/repos/ticket/1318 204 */ 205 if (state==PJSIP_INV_STATE_CALLING && 206 (inv->cb_called & (1 << PJSIP_INV_STATE_CALLING)) != 0) 207 { 208 dont_notify = PJ_TRUE; 209 } 200 210 201 211 /* If state is confirmed, check that SDP negotiation is done, … … 225 235 inv->cause != 0); 226 236 237 /* Mark the callback as called for this state */ 238 inv->cb_called |= (1 << state); 239 227 240 /* Call on_state_changed() callback. */ 228 if (mod_inv.cb.on_state_changed && inv->notify )241 if (mod_inv.cb.on_state_changed && inv->notify && !dont_notify) 229 242 (*mod_inv.cb.on_state_changed)(inv, e); 230 243 … … 4117 4130 const pjsip_hdr *accept; 4118 4131 4132 /* The incoming SDP is unacceptable. If the SDP negotiator 4133 * state has just been changed, i.e: DONE -> REMOTE_OFFER, 4134 * revert it back. 4135 */ 4136 if (pjmedia_sdp_neg_get_state(inv->neg) == 4137 PJMEDIA_SDP_NEG_STATE_REMOTE_OFFER) 4138 { 4139 pjmedia_sdp_neg_cancel_offer(inv->neg); 4140 } 4141 4119 4142 status = pjsip_dlg_create_response(inv->dlg, rdata, 4120 4143 488, NULL, &tdata); -
pjproject/trunk/pjsip/src/pjsip/sip_multipart.c
r3553 r3841 82 82 hdr = part->hdr.next; 83 83 while (hdr != &part->hdr) { 84 int printed = pjsip_hdr_print_on((pjsip_hdr*)hdr, p, SIZE_LEFT()); 84 int printed = pjsip_hdr_print_on((pjsip_hdr*)hdr, p, 85 SIZE_LEFT()-2); 85 86 if (printed < 0) 86 87 return -1; 87 88 p += printed; 89 *p++ = '\r'; 90 *p++ = '\n'; 88 91 hdr = hdr->next; 89 92 } -
pjproject/trunk/pjsip/src/pjsip/sip_transaction.c
r3753 r3841 146 146 #define TIMER_INACTIVE 0 147 147 #define TIMER_ACTIVE 1 148 149 /* Delay for 1xx retransmission (should be 60 seconds).150 * Specify 0 to disable this feature151 */152 #ifndef PJSIP_TSX_1XX_RETRANS_DELAY153 # define PJSIP_TSX_1XX_RETRANS_DELAY 60154 #endif155 148 156 149 … … 2119 2112 static void tsx_resched_retransmission( pjsip_transaction *tsx ) 2120 2113 { 2121 pj_time_val timeout;2122 2114 pj_uint32_t msec_time; 2123 2115 … … 2152 2144 } 2153 2145 2154 timeout.sec = msec_time / 1000; 2155 timeout.msec = msec_time % 1000; 2156 tsx->retransmit_timer.id = TIMER_ACTIVE; 2157 pjsip_endpt_schedule_timer( tsx->endpt, &tsx->retransmit_timer, 2158 &timeout); 2146 if (msec_time != 0) { 2147 pj_time_val timeout; 2148 2149 timeout.sec = msec_time / 1000; 2150 timeout.msec = msec_time % 1000; 2151 tsx->retransmit_timer.id = TIMER_ACTIVE; 2152 pjsip_endpt_schedule_timer( tsx->endpt, &tsx->retransmit_timer, 2153 &timeout); 2154 } 2159 2155 } 2160 2156 … … 2988 2984 } 2989 2985 lock_timer(tsx); 2986 /* In the short period above timer may have been inserted 2987 * by set_timeout() (by CANCEL). Cancel it if necessary. See: 2988 * https://trac.pjsip.org/repos/ticket/1374 2989 */ 2990 if (tsx->timeout_timer.id) 2991 pjsip_endpt_cancel_timer( tsx->endpt, &tsx->timeout_timer ); 2990 2992 tsx->timeout_timer.id = TIMER_ACTIVE; 2991 2993 pjsip_endpt_schedule_timer( tsx->endpt, &tsx->timeout_timer, &timeout); -
pjproject/trunk/pjsip/src/pjsip/sip_util.c
r3553 r3841 814 814 pjsip_uri *uri = (pjsip_uri*) target_uri; 815 815 const pjsip_sip_uri *url=(const pjsip_sip_uri*)pjsip_uri_get_uri(uri); 816 unsigned flag; 817 816 818 dest_info->flag |= (PJSIP_TRANSPORT_SECURE | PJSIP_TRANSPORT_RELIABLE); 817 819 if (url->maddr_param.slen) … … 822 824 dest_info->type = 823 825 pjsip_transport_get_type_from_name(&url->transport_param); 826 /* Double-check that the transport parameter match. 827 * Sample case: sips:host;transport=tcp 828 * See https://trac.pjsip.org/repos/ticket/1319 829 */ 830 flag = pjsip_transport_get_flag_from_type(dest_info->type); 831 if ((flag & dest_info->flag) != dest_info->flag) { 832 pjsip_transport_type_e t; 833 834 t = pjsip_transport_get_type_from_flag(dest_info->flag); 835 if (t != PJSIP_TRANSPORT_UNSPECIFIED) 836 dest_info->type = t; 837 } 824 838 825 839 } else if (PJSIP_URI_SCHEME_IS_SIP(target_uri)) { … … 1390 1404 1391 1405 pj_assert(addr->count != 0); 1406 1407 /* Avoid tdata destroyed by pjsip_tpmgr_send_raw(). */ 1408 pjsip_tx_data_add_ref(sraw_data->tdata); 1392 1409 1393 1410 data_len = sraw_data->tdata->buf.cur - sraw_data->tdata->buf.start; -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r3753 r3841 471 471 472 472 /* If accounts has registration enabled, start registration */ 473 if (pjsua_var.acc[id].cfg.reg_uri.slen) 474 pjsua_acc_set_registration(id, PJ_TRUE); 475 else { 473 if (pjsua_var.acc[id].cfg.reg_uri.slen) { 474 if (pjsua_var.acc[id].cfg.register_on_acc_add) 475 pjsua_acc_set_registration(id, PJ_TRUE); 476 } else { 476 477 /* Otherwise subscribe to MWI, if it's enabled */ 477 478 if (pjsua_var.acc[id].cfg.mwi_enabled) … … 604 605 605 606 /* Delete server presence subscription */ 606 pjsua_pres_delete_acc(acc_id );607 pjsua_pres_delete_acc(acc_id, 0); 607 608 608 609 /* Release account pool */ … … 834 835 acc->cfg.publish_enabled = cfg->publish_enabled; 835 836 if (!acc->cfg.publish_enabled) 836 pjsua_pres_unpublish(acc );837 pjsua_pres_unpublish(acc, 0); 837 838 else 838 839 update_reg = PJ_TRUE; … … 993 994 acc->cfg.allow_contact_rewrite = cfg->allow_contact_rewrite; 994 995 acc->cfg.reg_retry_interval = cfg->reg_retry_interval; 996 acc->cfg.reg_first_retry_interval = cfg->reg_first_retry_interval; 995 997 acc->cfg.drop_calls_on_reg_fail = cfg->drop_calls_on_reg_fail; 996 998 if (acc->cfg.reg_delay_before_refresh != cfg->reg_delay_before_refresh) { … … 1394 1396 (int)acc->cfg.contact_uri_params.slen, 1395 1397 acc->cfg.contact_uri_params.ptr, 1396 ob,1398 (acc->cfg.use_rfc5626? ob: ""), 1397 1399 (int)acc->cfg.contact_params.slen, 1398 1400 acc->cfg.contact_params.ptr); … … 1692 1694 pjsua_acc *acc = (pjsua_acc*) param->token; 1693 1695 1694 if (param->regc != acc->regc) 1696 PJSUA_LOCK(); 1697 1698 if (param->regc != acc->regc) { 1699 PJSUA_UNLOCK(); 1695 1700 return; 1701 } 1696 1702 1697 1703 pj_log_push_indent(); 1698 PJSUA_LOCK();1699 1704 1700 1705 /* … … 2055 2060 } 2056 2061 2057 pjsua_pres_unpublish(&pjsua_var.acc[acc_id] );2062 pjsua_pres_unpublish(&pjsua_var.acc[acc_id], 0); 2058 2063 2059 2064 status = pjsip_regc_unregister(pjsua_var.acc[acc_id].regc, &tdata); … … 2071 2076 pjsip_regc_get_info(pjsua_var.acc[acc_id].regc, ®_info); 2072 2077 pjsua_var.acc[acc_id].auto_rereg.reg_tp = reg_info.transport; 2078 2079 if (pjsua_var.ua_cfg.cb.on_reg_started) { 2080 (*pjsua_var.ua_cfg.cb.on_reg_started)(acc_id, renew); 2081 } 2073 2082 } 2074 2083 … … 2530 2539 contact->ptr = (char*)pj_pool_alloc(pool, PJSIP_MAX_URL_SIZE); 2531 2540 contact->slen = pj_ansi_snprintf(contact->ptr, PJSIP_MAX_URL_SIZE, 2532 "%.*s%s<%s:%.*s%s%s%.*s%s:%d%s%.*s%s>%.*s", 2541 "%s%.*s%s<%s:%.*s%s%s%.*s%s:%d%s%.*s%s>%.*s", 2542 (acc->display.slen?"\"" : ""), 2533 2543 (int)acc->display.slen, 2534 2544 acc->display.ptr, 2535 (acc->display.slen?" " : ""),2545 (acc->display.slen?"\" " : ""), 2536 2546 (secure ? PJSUA_SECURE_SCHEME : "sip"), 2537 2547 (int)acc->user_part.slen, … … 2546 2556 (int)acc->cfg.contact_uri_params.slen, 2547 2557 acc->cfg.contact_uri_params.ptr, 2548 ob,2558 (acc->cfg.use_rfc5626? ob: ""), 2549 2559 (int)acc->cfg.contact_params.slen, 2550 2560 acc->cfg.contact_params.ptr); … … 2688 2698 contact->ptr = (char*) pj_pool_alloc(pool, PJSIP_MAX_URL_SIZE); 2689 2699 contact->slen = pj_ansi_snprintf(contact->ptr, PJSIP_MAX_URL_SIZE, 2690 "%.*s%s<%s:%.*s%s%s%.*s%s:%d%s%.*s>%.*s", 2700 "%s%.*s%s<%s:%.*s%s%s%.*s%s:%d%s%.*s>%.*s", 2701 (acc->display.slen?"\"" : ""), 2691 2702 (int)acc->display.slen, 2692 2703 acc->display.ptr, 2693 (acc->display.slen?" " : ""),2704 (acc->display.slen?"\" " : ""), 2694 2705 (secure ? PJSUA_SECURE_SCHEME : "sip"), 2695 2706 (int)acc->user_part.slen, … … 2808 2819 2809 2820 /* Reregistration attempt. The first attempt will be done immediately. */ 2810 delay.sec = acc->auto_rereg.attempt_cnt? acc->cfg.reg_retry_interval : 0; 2821 delay.sec = acc->auto_rereg.attempt_cnt? acc->cfg.reg_retry_interval : 2822 acc->cfg.reg_first_retry_interval; 2811 2823 delay.msec = 0; 2824 2825 /* Randomize interval by +/- 10 secs */ 2826 if (delay.sec >= 10) { 2827 delay.msec = -10000 + (pj_rand() % 20000); 2828 } else { 2829 delay.sec = 0; 2830 delay.msec = (pj_rand() % 10000); 2831 } 2832 pj_time_val_normalize(&delay); 2833 2834 PJ_LOG(4,(THIS_FILE, 2835 "Scheduling re-registration retry for acc %d in %u seconds..", 2836 acc->index, delay.sec)); 2837 2812 2838 pjsua_schedule_timer(&acc->auto_rereg.timer, &delay); 2813 2839 } -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r3796 r3841 972 972 options |= PJSIP_INV_SUPPORT_100REL; 973 973 options |= PJSIP_INV_SUPPORT_TIMER; 974 if (pjsua_var.acc[acc_id].cfg.require_100rel )974 if (pjsua_var.acc[acc_id].cfg.require_100rel == PJSUA_100REL_MANDATORY) 975 975 options |= PJSIP_INV_REQUIRE_100REL; 976 976 if (pjsua_var.media_cfg.enable_ice) … … 1046 1046 { 1047 1047 options &= ~(PJSIP_INV_SUPPORT_TIMER); 1048 } 1049 1050 /* If 100rel is optional and UAC supports it, use it. */ 1051 if ((options & PJSIP_INV_REQUIRE_100REL)==0 && 1052 pjsua_var.acc[acc_id].cfg.require_100rel == PJSUA_100REL_OPTIONAL) 1053 { 1054 const pj_str_t token = { "100rel", 6}; 1055 pjsip_dialog_cap_status cap_status; 1056 1057 cap_status = pjsip_dlg_remote_has_cap(dlg, PJSIP_H_SUPPORTED, NULL, 1058 &token); 1059 if (cap_status == PJSIP_DIALOG_CAP_SUPPORTED) 1060 options |= PJSIP_INV_REQUIRE_100REL; 1048 1061 } 1049 1062 … … 1289 1302 1290 1303 pj_gettimeofday(&time_start); 1304 timeout.sec = 0; 1291 1305 timeout.msec = PJSUA_ACQUIRE_CALL_TIMEOUT; 1292 1306 pj_time_val_normalize(&timeout); … … 1357 1371 { 1358 1372 pjsua_call *call; 1359 pjsua_conf_port_id port_id; 1360 pjsip_dialog *dlg; 1361 pj_status_t status; 1373 pjsua_conf_port_id port_id = PJSUA_INVALID_ID; 1362 1374 1363 1375 PJ_ASSERT_RETURN(call_id>=0 && call_id<(int)pjsua_var.ua_cfg.max_calls, 1364 1376 PJ_EINVAL); 1365 1377 1366 status = acquire_call("pjsua_call_get_conf_port()", call_id, &call, &dlg); 1367 if (status != PJ_SUCCESS) 1368 return PJSUA_INVALID_ID; 1369 1378 /* Use PJSUA_LOCK() instead of acquire_call(): 1379 * https://trac.pjsip.org/repos/ticket/1371 1380 */ 1381 PJSUA_LOCK(); 1382 1383 if (!pjsua_call_is_active(call_id)) 1384 goto on_return; 1385 1386 call = &pjsua_var.calls[call_id]; 1370 1387 port_id = call->media[call->audio_idx].strm.a.conf_slot; 1371 1388 1372 pjsip_dlg_dec_lock(dlg); 1389 on_return: 1390 PJSUA_UNLOCK(); 1373 1391 1374 1392 return port_id; … … 1384 1402 { 1385 1403 pjsua_call *call; 1386 pjsip_dialog *dlg;1387 1404 unsigned mi; 1388 pj_status_t status;1389 1405 1390 1406 PJ_ASSERT_RETURN(call_id>=0 && call_id<(int)pjsua_var.ua_cfg.max_calls, … … 1393 1409 pj_bzero(info, sizeof(*info)); 1394 1410 1395 status = acquire_call("pjsua_call_get_info()", call_id, &call, &dlg); 1396 if (status != PJ_SUCCESS) { 1397 return status; 1411 /* Use PJSUA_LOCK() instead of acquire_call(): 1412 * https://trac.pjsip.org/repos/ticket/1371 1413 */ 1414 PJSUA_LOCK(); 1415 1416 call = &pjsua_var.calls[call_id]; 1417 1418 if (!call->inv) { 1419 PJSUA_UNLOCK(); 1420 return PJSIP_ESESSIONTERMINATED; 1398 1421 } 1399 1422 … … 1521 1544 } 1522 1545 1523 pjsip_dlg_dec_lock(dlg);1546 PJSUA_UNLOCK(); 1524 1547 1525 1548 return PJ_SUCCESS; … … 1962 1985 pjsua_process_msg_data( tdata, msg_data); 1963 1986 1987 /* Record the tx_data to keep track the operation */ 1988 call->hold_msg = (void*) tdata; 1989 1964 1990 /* Send the request */ 1965 1991 status = pjsip_inv_send_msg( call->inv, tdata); 1966 1992 if (status != PJ_SUCCESS) { 1967 1993 pjsua_perror(THIS_FILE, "Unable to send re-INVITE", status); 1994 call->hold_msg = NULL; 1968 1995 goto on_return; 1969 1996 } … … 2532 2559 pj_log_push_indent(); 2533 2560 2534 PJSUA_LOCK(); 2561 // This may deadlock, see https://trac.pjsip.org/repos/ticket/1305 2562 //PJSUA_LOCK(); 2535 2563 2536 2564 for (i=0; i<pjsua_var.ua_cfg.max_calls; ++i) { … … 2539 2567 } 2540 2568 2541 PJSUA_UNLOCK();2569 //PJSUA_UNLOCK(); 2542 2570 pj_log_pop_indent(); 2543 2571 } … … 3972 4000 } 3973 4001 } 4002 } else if (tsx->role == PJSIP_ROLE_UAC && 4003 tsx->last_tx == (pjsip_tx_data*)call->hold_msg && 4004 tsx->state >= PJSIP_TSX_STATE_COMPLETED) 4005 { 4006 /* Monitor the status of call hold request */ 4007 call->hold_msg = NULL; 4008 if (tsx->status_code/100 != 2) { 4009 /* Outgoing call hold failed */ 4010 call->local_hold = PJ_FALSE; 4011 PJ_LOG(3,(THIS_FILE, "Error putting call %d on hold (reason=%d)", 4012 call->index, tsx->status_code)); 4013 } 3974 4014 } 3975 4015 3976 4016 on_return: 4017 3977 4018 PJSUA_UNLOCK(); 3978 4019 pj_log_pop_indent(); -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r3763 r3841 235 235 pj_list_init(&cfg->sub_hdr_list); 236 236 cfg->call_hold_type = PJSUA_CALL_HOLD_TYPE_DEFAULT; 237 cfg->register_on_acc_add = PJ_TRUE; 237 238 } 238 239 … … 1341 1342 * Destroy pjsua. 1342 1343 */ 1343 PJ_DEF(pj_status_t) pjsua_destroy (void)1344 PJ_DEF(pj_status_t) pjsua_destroy2(unsigned flags) 1344 1345 { 1345 1346 int i; /* Must be signed */ … … 1366 1367 unsigned max_wait; 1367 1368 1368 PJ_LOG(4,(THIS_FILE, "Shutting down ..."));1369 PJ_LOG(4,(THIS_FILE, "Shutting down, flags=%d...", flags)); 1369 1370 1370 1371 pj_log_push_indent(); 1371 1372 1372 1373 /* Terminate all calls. */ 1373 pjsua_call_hangup_all(); 1374 if ((flags & PJSUA_DESTROY_NO_TX_MSG) == 0) { 1375 pjsua_call_hangup_all(); 1376 } 1374 1377 1375 1378 /* Set all accounts to offline */ … … 1382 1385 1383 1386 /* Terminate all presence subscriptions. */ 1384 pjsua_pres_shutdown( );1387 pjsua_pres_shutdown(flags); 1385 1388 1386 1389 /* Destroy media (to shutdown media transports etc) */ 1387 pjsua_media_subsys_destroy( );1390 pjsua_media_subsys_destroy(flags); 1388 1391 1389 1392 /* Wait for sometime until all publish client sessions are done … … 1399 1402 } 1400 1403 1404 /* No waiting if RX is disabled */ 1405 if (flags & PJSUA_DESTROY_NO_RX_MSG) { 1406 max_wait = 0; 1407 } 1408 1401 1409 /* Second stage, wait for unpublications to complete */ 1402 1410 for (i=0; i<(int)(max_wait/50); ++i) { … … 1428 1436 continue; 1429 1437 1430 if (pjsua_var.acc[i].regc) { 1438 if (pjsua_var.acc[i].regc && (flags & PJSUA_DESTROY_NO_TX_MSG)==0) 1439 { 1431 1440 pjsua_acc_set_registration(i, PJ_FALSE); 1432 1441 } … … 1453 1462 } 1454 1463 1464 /* No waiting if RX is disabled */ 1465 if (flags & PJSUA_DESTROY_NO_RX_MSG) { 1466 max_wait = 0; 1467 } 1468 1455 1469 /* Second stage, wait for unregistrations to complete */ 1456 1470 for (i=0; i<(int)(max_wait/50); ++i) { … … 1473 1487 * transports shutdown to complete: 1474 1488 */ 1475 if (i < 20 )1489 if (i < 20 && (flags & PJSUA_DESTROY_NO_RX_MSG) == 0) { 1476 1490 busy_sleep(1000 - i*50); 1491 } 1477 1492 1478 1493 PJ_LOG(4,(THIS_FILE, "Destroying...")); … … 1560 1575 return pjsua_var.state; 1561 1576 } 1577 1578 PJ_DEF(pj_status_t) pjsua_destroy(void) 1579 { 1580 return pjsua_destroy2(0); 1581 } 1582 1562 1583 1563 1584 /** -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r3796 r3841 397 397 * Destroy pjsua media subsystem. 398 398 */ 399 pj_status_t pjsua_media_subsys_destroy( void)399 pj_status_t pjsua_media_subsys_destroy(unsigned flags) 400 400 { 401 401 unsigned i; … … 442 442 } 443 443 if (call_med->tp && call_med->tp_auto_del) { 444 /* TODO: check if we're not allowed to send to network in the 445 * "flags", and if so do not do TURN allocation... 446 */ 447 PJ_UNUSED_ARG(flags); 444 448 pjmedia_transport_close(call_med->tp); 445 449 } … … 1295 1299 set_media_tp_state(call_med, PJSUA_MED_TP_IDLE); 1296 1300 1301 if (!call_med->tp_orig && 1302 pjsua_var.ua_cfg.cb.on_create_media_transport) 1303 { 1304 call_med->use_custom_med_tp = PJ_TRUE; 1305 } else 1306 call_med->use_custom_med_tp = PJ_FALSE; 1307 1297 1308 #if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 1298 1309 /* This function may be called when SRTP transport already exists 1299 1310 * (e.g: in re-invite, update), don't need to destroy/re-create. 1300 1311 */ 1301 if (!call_med->tp_orig || call_med->tp == call_med->tp_orig) {1312 if (!call_med->tp_orig) { 1302 1313 pjmedia_srtp_setting srtp_opt; 1303 1314 pjmedia_transport *srtp = NULL; … … 1315 1326 pjmedia_srtp_setting_default(&srtp_opt); 1316 1327 srtp_opt.close_member_tp = PJ_TRUE; 1317 /* If media session has been ever established, let's use remote's 1328 /* If media session has been ever established, let's use remote's 1318 1329 * preference in SRTP usage policy, especially when it is stricter. 1319 1330 */ … … 1520 1531 } 1521 1532 1522 status = pjmedia_transport_media_create( 1523 call_med->tp, tmp_pool, 1524 0, call->async_call.rem_sdp, mi); 1533 if (call_med->use_custom_med_tp) { 1534 unsigned custom_med_tp_flags = 0; 1535 1536 /* Use custom media transport returned by the application */ 1537 call_med->tp = 1538 (*pjsua_var.ua_cfg.cb.on_create_media_transport) 1539 (call_id, mi, call_med->tp, 1540 custom_med_tp_flags); 1541 if (!call_med->tp) { 1542 status = 1543 PJSIP_ERRNO_FROM_SIP_STATUS(PJSIP_SC_NOT_ACCEPTABLE); 1544 } 1545 } 1546 1547 if (call_med->tp) { 1548 status = pjmedia_transport_media_create( 1549 call_med->tp, tmp_pool, 1550 0, call->async_call.rem_sdp, mi); 1551 } 1525 1552 if (status != PJ_SUCCESS) { 1526 1553 call->med_ch_info.status = status; … … 2105 2132 PJ_LOG(4,(THIS_FILE, "Media session call%02d:%d is destroyed", 2106 2133 call_id, mi)); 2134 call_med->prev_state = call_med->state; 2107 2135 call_med->state = PJSUA_CALL_MEDIA_NONE; 2108 2136 } … … 2134 2162 pj_log_push_indent(); 2135 2163 2136 stop_media_session(call_id);2137 2138 2164 for (mi=0; mi<call->med_cnt; ++mi) { 2139 2165 pjsua_call_media *call_med = &call->media[mi]; 2140 2166 2141 if (call_med->tp_st > PJSUA_MED_TP_IDLE) { 2167 if (call_med->type == PJMEDIA_TYPE_AUDIO && call_med->strm.a.stream) 2168 pjmedia_stream_send_rtcp_bye(call_med->strm.a.stream); 2169 } 2170 2171 stop_media_session(call_id); 2172 2173 for (mi=0; mi<call->med_cnt; ++mi) { 2174 pjsua_call_media *call_med = &call->media[mi]; 2175 2176 if (call_med->tp_st > PJSUA_MED_TP_IDLE) { 2142 2177 pjmedia_transport_media_stop(call_med->tp); 2143 2178 set_media_tp_state(call_med, PJSUA_MED_TP_IDLE); … … 2154 2189 call_med->tp = call_med->tp_orig = NULL; 2155 2190 } 2191 call_med->tp_orig = NULL; 2156 2192 } 2157 2193 … … 2206 2242 if (status != PJ_SUCCESS) 2207 2243 goto on_return; 2244 2245 si->rtcp_sdes_bye_disabled = PJ_TRUE; 2208 2246 2209 2247 /* Check if no media is active */ … … 2296 2334 goto on_return; 2297 2335 } 2336 2337 if (call_med->prev_state == PJSUA_CALL_MEDIA_NONE) 2338 pjmedia_stream_send_rtcp_sdes(call_med->strm.a.stream); 2298 2339 2299 2340 /* If DTMF callback is installed by application, install our -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
r3753 r3841 1321 1321 1322 1322 /* Unpublish presence publication */ 1323 void pjsua_pres_unpublish(pjsua_acc *acc )1323 void pjsua_pres_unpublish(pjsua_acc *acc, unsigned flags) 1324 1324 { 1325 1325 if (acc->publish_sess) { … … 1327 1327 1328 1328 acc->online_status = PJ_FALSE; 1329 send_publish(acc->index, PJ_FALSE); 1329 1330 if ((flags & PJSUA_DESTROY_NO_TX_MSG) == 0) { 1331 send_publish(acc->index, PJ_FALSE); 1332 } 1333 1330 1334 /* By ticket #364, don't destroy the session yet (let the callback 1331 1335 destroy it) … … 1340 1344 1341 1345 /* Terminate server subscription for the account */ 1342 void pjsua_pres_delete_acc(int acc_id )1346 void pjsua_pres_delete_acc(int acc_id, unsigned flags) 1343 1347 { 1344 1348 pjsua_acc *acc = &pjsua_var.acc[acc_id]; … … 1362 1366 pjsip_pres_set_status(uapres->sub, &pres_status); 1363 1367 1364 if (pjsip_pres_notify(uapres->sub, 1365 PJSIP_EVSUB_STATE_TERMINATED, NULL, 1366 &reason, &tdata)==PJ_SUCCESS) 1367 { 1368 pjsip_pres_send_request(uapres->sub, tdata); 1368 if ((flags & PJSUA_DESTROY_NO_TX_MSG) == 0) { 1369 if (pjsip_pres_notify(uapres->sub, 1370 PJSIP_EVSUB_STATE_TERMINATED, NULL, 1371 &reason, &tdata)==PJ_SUCCESS) 1372 { 1373 pjsip_pres_send_request(uapres->sub, tdata); 1374 } 1375 } else { 1376 pjsip_pres_terminate(uapres->sub, PJ_FALSE); 1369 1377 } 1370 1378 … … 1377 1385 1378 1386 /* Terminate presence publication, if any */ 1379 pjsua_pres_unpublish(acc );1387 pjsua_pres_unpublish(acc, flags); 1380 1388 } 1381 1389 … … 2252 2260 pjsua_acc *acc = &pjsua_var.acc[i]; 2253 2261 2262 /* Acc may not be ready yet, otherwise assertion will happen */ 2263 if (!pjsua_acc_is_valid(i)) 2264 continue; 2265 2254 2266 /* Retry PUBLISH */ 2255 2267 if (acc->cfg.publish_enabled && acc->publish_sess==NULL) … … 2325 2337 * Shutdown presence. 2326 2338 */ 2327 void pjsua_pres_shutdown( void)2339 void pjsua_pres_shutdown(unsigned flags) 2328 2340 { 2329 2341 unsigned i; … … 2340 2352 if (!pjsua_var.acc[i].valid) 2341 2353 continue; 2342 pjsua_pres_delete_acc(i );2354 pjsua_pres_delete_acc(i, flags); 2343 2355 } 2344 2356 … … 2347 2359 } 2348 2360 2349 refresh_client_subscriptions(); 2350 2351 for (i=0; i<PJ_ARRAY_SIZE(pjsua_var.acc); ++i) { 2352 if (pjsua_var.acc[i].valid) 2353 pjsua_pres_update_acc(i, PJ_FALSE); 2361 if ((flags & PJSUA_DESTROY_NO_TX_MSG) == 0) { 2362 refresh_client_subscriptions(); 2363 2364 for (i=0; i<PJ_ARRAY_SIZE(pjsua_var.acc); ++i) { 2365 if (pjsua_var.acc[i].valid) 2366 pjsua_pres_update_acc(i, PJ_FALSE); 2367 } 2354 2368 } 2355 2369
Note: See TracChangeset
for help on using the changeset viewer.