Changeset 3841


Ignore:
Timestamp:
Oct 24, 2011 9:28:13 AM (13 years ago)
Author:
ming
Message:

Re #1395: Backport of PJSIP 1.x branch into PJSIP 2.0 trunk

TODO: ticket #1268 (Option for automatic/manual sending of RTCP SDES/BYE for the stream) for video stream.

Location:
pjproject/trunk
Files:
78 edited
3 copied

Legend:

Unmodified
Added
Removed
  • pjproject/trunk

  • pjproject/trunk/aconfigure

    r3827 r3841  
    11#! /bin/sh 
    22# 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. 
    54# 
    65# 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. 
    117# This configure script is free software; the Free Software Foundation 
    128# gives unlimited permission to copy, distribute and modify it. 
    13 ## -------------------- ## 
    14 ## M4sh Initialization. ## 
    15 ## -------------------- ## 
     9## --------------------- ## 
     10## M4sh Initialization.  ## 
     11## --------------------- ## 
    1612 
    1713# Be more Bourne compatible 
    1814DUALCASE=1; export DUALCASE # for MKS sh 
    19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 
     15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 
    2016  emulate sh 
    2117  NULLCMD=: 
    22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 
     18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 
    2319  # is contrary to our usage.  Disable this feature. 
    2420  alias -g '${1+"$@"}'='"$@"' 
    2521  setopt NO_GLOB_SUBST 
    2622else 
    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 ;; 
     25esac 
     26 
     27fi 
     28 
     29 
     30 
     31 
     32# PATH needs CR 
     33# Avoid depending upon Character Ranges. 
     34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 
     35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 
     36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 
     37as_cr_digits='0123456789' 
     38as_cr_alnum=$as_cr_Letters$as_cr_digits 
    7339 
    7440# The user is always right. 
    7541if 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 
     51fi 
     52 
     53# Support unset when possible. 
     54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 
     55  as_unset=unset 
     56else 
     57  as_unset=false 
    8158fi 
    8259 
     
    8764# (If _AS_PATH_WALK were called with IFS unset, it would disable word 
    8865# splitting by setting IFS to empty value.) 
     66as_nl=' 
     67' 
    8968IFS=" ""        $as_nl" 
    9069 
    9170# Find who we are.  Look in the path if we contain no directory separator. 
    92 case $0 in #(( 
     71case $0 in 
    9372  *[\\/]* ) as_myself=$0 ;; 
    9473  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 
     
    9776  IFS=$as_save_IFS 
    9877  test -z "$as_dir" && as_dir=. 
    99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 
    100   done 
     78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 
     79done 
    10180IFS=$as_save_IFS 
    10281 
     
    10988fi 
    11089if 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; } 
     92fi 
     93 
     94# Work around bugs in pre-3.0 UWIN ksh. 
     95for as_var in ENV MAIL MAILPATH 
     96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 
    12297done 
    12398PS1='$ ' 
     
    126101 
    127102# 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 
     103for 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 
    186107do 
    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 
    205113done 
    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. 
    375116if expr a : '\(a\)' >/dev/null 2>&1 && 
    376117   test "X`expr 00001 : '.*\(...\)'`" = X001; then 
     
    386127fi 
    387128 
    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. 
    394131as_me=`$as_basename -- "$0" || 
    395132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 
    396133         X"$0" : 'X\(//\)$' \| \ 
    397134         X"$0" : 'X\(/\)' \| . 2>/dev/null || 
    398 $as_echo X/"$0" | 
     135echo X/"$0" | 
    399136    sed '/^.*\/\([^/][^/]*\)\/*$/{ 
    400137            s//\1/ 
     
    411148          s/.*/./; q'` 
    412149 
    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 
     154if test "x$CONFIG_SHELL" = x; then 
     155  if (eval ":") 2>/dev/null; then 
     156  as_have_required=yes 
     157else 
     158  as_have_required=no 
     159fi 
     160 
     161  if test $as_have_required = yes &&     (eval ": 
     162(as_func_return () { 
     163  (exit \$1) 
     164} 
     165as_func_success () { 
     166  as_func_return 0 
     167} 
     168as_func_failure () { 
     169  as_func_return 1 
     170} 
     171as_func_ret_success () { 
     172  return 0 
     173} 
     174as_func_ret_failure () { 
     175  return 1 
     176} 
     177 
     178exitcode=0 
     179if as_func_success; then 
     180  : 
     181else 
     182  exitcode=1 
     183  echo as_func_success failed. 
     184fi 
     185 
     186if as_func_failure; then 
     187  exitcode=1 
     188  echo as_func_failure succeeded. 
     189fi 
     190 
     191if as_func_ret_success; then 
     192  : 
     193else 
     194  exitcode=1 
     195  echo as_func_ret_success failed. 
     196fi 
     197 
     198if as_func_ret_failure; then 
     199  exitcode=1 
     200  echo as_func_ret_failure succeeded. 
     201fi 
     202 
     203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 
     204  : 
     205else 
     206  exitcode=1 
     207  echo positional parameters were not saved. 
     208fi 
     209 
     210test \$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  : 
     219else 
     220  as_candidate_shells= 
     221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 
     222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 
     223do 
     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 
     232done 
     233IFS=$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 
     240if 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 
     247else 
     248  case `(set -o) 2>/dev/null` in 
     249  *posix*) set -o posix ;; 
     250esac 
     251 
     252fi 
     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 
     261if 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 
     268else 
     269  case `(set -o) 2>/dev/null` in 
     270  *posix*) set -o posix ;; 
     271esac 
     272 
     273fi 
     274 
     275 
     276: 
     277(as_func_return () { 
     278  (exit $1) 
     279} 
     280as_func_success () { 
     281  as_func_return 0 
     282} 
     283as_func_failure () { 
     284  as_func_return 1 
     285} 
     286as_func_ret_success () { 
     287  return 0 
     288} 
     289as_func_ret_failure () { 
     290  return 1 
     291} 
     292 
     293exitcode=0 
     294if as_func_success; then 
     295  : 
     296else 
     297  exitcode=1 
     298  echo as_func_success failed. 
     299fi 
     300 
     301if as_func_failure; then 
     302  exitcode=1 
     303  echo as_func_failure succeeded. 
     304fi 
     305 
     306if as_func_ret_success; then 
     307  : 
     308else 
     309  exitcode=1 
     310  echo as_func_ret_success failed. 
     311fi 
     312 
     313if as_func_ret_failure; then 
     314  exitcode=1 
     315  echo as_func_ret_failure succeeded. 
     316fi 
     317 
     318if ( set x; as_func_ret_success y && test x = "$1" ); then 
     319  : 
     320else 
     321  exitcode=1 
     322  echo positional parameters were not saved. 
     323fi 
     324 
     325test $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 
     336fi 
     337 
     338fi 
     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+"$@"} 
     348fi 
     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; } 
     357fi 
     358 
     359 
     360fi 
     361 
     362fi 
     363 
     364 
     365 
     366(eval "as_func_return () { 
     367  (exit \$1) 
     368} 
     369as_func_success () { 
     370  as_func_return 0 
     371} 
     372as_func_failure () { 
     373  as_func_return 1 
     374} 
     375as_func_ret_success () { 
     376  return 0 
     377} 
     378as_func_ret_failure () { 
     379  return 1 
     380} 
     381 
     382exitcode=0 
     383if as_func_success; then 
     384  : 
     385else 
     386  exitcode=1 
     387  echo as_func_success failed. 
     388fi 
     389 
     390if as_func_failure; then 
     391  exitcode=1 
     392  echo as_func_failure succeeded. 
     393fi 
     394 
     395if as_func_ret_success; then 
     396  : 
     397else 
     398  exitcode=1 
     399  echo as_func_ret_success failed. 
     400fi 
     401 
     402if as_func_ret_failure; then 
     403  exitcode=1 
     404  echo as_func_ret_failure succeeded. 
     405fi 
     406 
     407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 
     408  : 
     409else 
     410  exitcode=1 
     411  echo positional parameters were not saved. 
     412fi 
     413 
     414test \$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.  :-) 
    426438  sed -n ' 
    427439    p 
     
    440452    ' >$as_me.lineno && 
    441453  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; }; } 
    443456 
    444457  # Don't try to exec as it changes $[0], causing all sort of problems 
     
    450463} 
    451464 
     465 
     466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 
     467  as_dirname=dirname 
     468else 
     469  as_dirname=false 
     470fi 
     471 
    452472ECHO_C= ECHO_N= ECHO_T= 
    453 case `echo -n x` in #((((( 
     473case `echo -n x` in 
    454474-n*) 
    455   case `echo 'xy\c'` in 
     475  case `echo 'x\c'` in 
    456476  *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';; 
    460478  esac;; 
    461479*) 
     
    463481esac 
    464482 
     483if expr a : '\(a\)' >/dev/null 2>&1 && 
     484   test "X`expr 00001 : '.*\(...\)'`" = X001; then 
     485  as_expr=expr 
     486else 
     487  as_expr=false 
     488fi 
     489 
    465490rm -f conf$$ conf$$.exe conf$$.file 
    466491if test -d conf$$.dir; then 
     
    468493else 
    469494  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 
     496fi 
     497echo >conf$$.file 
     498if 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 || 
    484505    as_ln_s='cp -p' 
    485   fi 
     506elif ln conf$$.file conf$$ 2>/dev/null; then 
     507  as_ln_s=ln 
    486508else 
    487509  as_ln_s='cp -p' 
     
    491513 
    492514if mkdir -p . 2>/dev/null; then 
    493   as_mkdir_p='mkdir -p "$as_dir"' 
     515  as_mkdir_p=: 
    494516else 
    495517  test -d ./-p && rmdir ./-p 
     
    508530    eval sh -c '\'' 
    509531      if test -d "$1"; then 
    510         test -d "$1/."; 
     532        test -d "$1/."; 
    511533      else 
    512         case $1 in #( 
    513         -*)set "./$1";; 
     534        case $1 in 
     535        -*)set "./$1";; 
    514536        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 
    516538        ???[sx]*):;;*)false;;esac;fi 
    517539    '\'' sh 
     
    527549 
    528550 
    529 test -n "$DJDIR" || exec 7<&0 </dev/null 
    530 exec 6>&1 
     551 
     552exec 7<&0 </dev/null 6>&1 
    531553 
    532554# Name of the host. 
     
    546568MFLAGS= 
    547569MAKEFLAGS= 
     570SHELL=${CONFIG_SHELL-/bin/sh} 
    548571 
    549572# Identity of this package. 
     
    553576PACKAGE_STRING='pjproject 1.x' 
    554577PACKAGE_BUGREPORT='' 
    555 PACKAGE_URL='' 
    556578 
    557579# Factoring default headers for most tests. 
     
    591613#endif" 
    592614 
    593 ac_subst_vars='LTLIBOBJS 
     615ac_subst_vars='SHELL 
     616PATH_SEPARATOR 
     617PACKAGE_NAME 
     618PACKAGE_TARNAME 
     619PACKAGE_VERSION 
     620PACKAGE_STRING 
     621PACKAGE_BUGREPORT 
     622exec_prefix 
     623prefix 
     624program_transform_name 
     625bindir 
     626sbindir 
     627libexecdir 
     628datarootdir 
     629datadir 
     630sysconfdir 
     631sharedstatedir 
     632localstatedir 
     633includedir 
     634oldincludedir 
     635docdir 
     636infodir 
     637htmldir 
     638dvidir 
     639pdfdir 
     640psdir 
     641libdir 
     642localedir 
     643mandir 
     644DEFS 
     645ECHO_C 
     646ECHO_N 
     647ECHO_T 
     648LIBS 
     649build_alias 
     650host_alias 
     651target_alias 
     652build 
     653build_cpu 
     654build_vendor 
     655build_os 
     656host 
     657host_cpu 
     658host_vendor 
     659host_os 
     660target 
     661target_cpu 
     662target_vendor 
     663target_os 
     664CC 
     665CFLAGS 
     666LDFLAGS 
     667CPPFLAGS 
     668ac_ct_CC 
     669EXEEXT 
     670OBJEXT 
     671CXX 
     672CXXFLAGS 
     673ac_ct_CXX 
     674AR 
     675LD 
     676LDOUT 
     677RANLIB 
     678LIBEXT 
     679LIBEXT2 
     680CC_OUT 
     681CC_INC 
     682CC_DEF 
     683CC_OPTIMIZE 
     684CC_CFLAGS 
     685ac_pjdir 
     686ac_build_mak_vars 
     687CPP 
     688GREP 
     689EGREP 
     690ac_os_objs 
     691ac_external_speex 
     692ac_external_gsm 
     693ac_pjmedia_snd 
     694ac_external_pa 
     695ac_pa_cflags 
     696ac_pa_use_alsa 
     697ac_pa_use_oss 
     698ac_pjmedia_video 
     699ac_pjmedia_video_has_ios 
     700ac_ios_cflags 
     701ac_pjmedia_video_has_qt 
     702ac_qt_cflags 
     703ac_no_small_filter 
     704ac_no_large_filter 
     705ac_no_speex_aec 
     706ac_no_g711_codec 
     707ac_no_l16_codec 
     708ac_no_gsm_codec 
     709ac_no_g722_codec 
     710ac_no_g7221_codec 
     711ac_no_speex_codec 
     712ac_no_ilbc_codec 
     713ac_sdl_cflags 
     714ac_sdl_ldflags 
     715ac_has_ffmpeg 
     716ac_ffmpeg_cflags 
     717ac_ffmpeg_ldflags 
     718ac_v4l2_cflags 
     719ac_v4l2_ldflags 
     720ac_no_ssl 
     721openssl_h_present 
     722libssl_present 
     723libcrypto_present 
     724ac_no_opencore_amrnb 
     725opencore_amrnb_h_present 
     726opencore_amrnb_present 
     727ac_cross_compile 
     728ac_linux_poll 
     729ac_host 
     730ac_main_obj 
    594731LIBOBJS 
    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' 
     732LTLIBOBJS' 
    709733ac_subst_files='' 
    710 ac_user_opts=' 
    711 enable_option_checking 
    712 enable_floating_point 
    713 enable_epoll 
    714 with_external_speex 
    715 with_external_gsm 
    716 enable_sound 
    717 with_external_pa 
    718 enable_oss 
    719 enable_ext_sound 
    720 enable_small_filter 
    721 enable_large_filter 
    722 enable_speex_aec 
    723 enable_g711_codec 
    724 enable_l16_codec 
    725 enable_gsm_codec 
    726 enable_g722_codec 
    727 enable_g7221_codec 
    728 enable_speex_codec 
    729 enable_ilbc_codec 
    730 enable_libsamplerate 
    731 with_sdl 
    732 enable_sdl 
    733 enable_ffmpeg 
    734 with_ffmpeg 
    735 enable_v4l2 
    736 enable_ipp 
    737 with_ipp 
    738 with_ipp_samples 
    739 with_ipp_arch 
    740 enable_ssl 
    741 ' 
    742734      ac_precious_vars='build_alias 
    743735host_alias 
     
    757749ac_init_help= 
    758750ac_init_version=false 
    759 ac_unrecognized_opts= 
    760 ac_unrecognized_sep= 
    761751# The variables have the same names as the options, with 
    762752# dashes changed to underlines. 
     
    857847 
    858848  -disable-* | --disable-*) 
    859     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 
     849    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 
    860850    # 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 ;; 
    873856 
    874857  -docdir | --docdir | --docdi | --doc | --do) 
     
    883866 
    884867  -enable-* | --enable-*) 
    885     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 
     868    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 
    886869    # 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 ;; 
    899875 
    900876  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 
     
    10871063 
    10881064  -with-* | --with-*) 
    1089     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 
     1065    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 
    10901066    # 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 ;; 
    11031072 
    11041073  -without-* | --without-*) 
    1105     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 
     1074    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 
    11061075    # 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 ;; 
    11191081 
    11201082  --x) 
     
    11361098    x_libraries=$ac_optarg ;; 
    11371099 
    1138   -*) as_fn_error "unrecognized option: \`$ac_option' 
    1139 Try \`$0 --help' for more information." 
     1100  -*) { echo "$as_me: error: unrecognized option: $ac_option 
     1101Try \`$0 --help' for more information." >&2 
     1102   { (exit 1); exit 1; }; } 
    11401103    ;; 
    11411104 
     
    11431106    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 
    11441107    # 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; }; } 
    11491111    eval $ac_envvar=\$ac_optarg 
    11501112    export $ac_envvar ;; 
     
    11521114  *) 
    11531115    # FIXME: should be removed in autoconf 3.0. 
    1154     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 
     1116    echo "$as_me: WARNING: you should use --build, --host, --target" >&2 
    11551117    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 
    1156       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 
     1118      echo "$as_me: WARNING: invalid host type: $ac_option" >&2 
    11571119    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 
    11581120    ;; 
     
    11631125if test -n "$ac_prev"; then 
    11641126  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; }; } 
     1129fi 
     1130 
     1131# Be sure to have absolute directory names. 
    11771132for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \ 
    11781133                datadir sysconfdir sharedstatedir localstatedir includedir \ 
     
    11811136do 
    11821137  eval ac_val=\$$ac_var 
    1183   # Remove trailing slashes. 
    1184   case $ac_val in 
    1185     */ ) 
    1186       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 
    1187       eval $ac_var=\$ac_val;; 
    1188   esac 
    1189   # Be sure to have absolute directory names. 
    11901138  case $ac_val in 
    11911139    [\\/$]* | ?:[\\/]* )  continue;; 
    11921140    NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 
    11931141  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; }; } 
    11951144done 
    11961145 
     
    12061155  if test "x$build_alias" = x; then 
    12071156    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. 
    12091158    If a cross compiler is detected then cross compile mode will be used." >&2 
    12101159  elif test "x$build_alias" != "x$host_alias"; then 
     
    12221171ac_ls_di=`ls -di .` && 
    12231172ac_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; }; } 
    12251175test "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; }; } 
    12271178 
    12281179 
     
    12311182  ac_srcdir_defaulted=yes 
    12321183  # 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 || 
     1189echo X"$0" | 
    12391190    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 
    12401191            s//\1/ 
     
    12631214if test ! -r "$srcdir/$ac_unique_file"; then 
    12641215  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; }; } 
    12661218fi 
    12671219ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 
    12681220ac_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; }; } 
    12701223        pwd)` 
    12711224# When building in place, set srcdir=. 
     
    13151268Installation directories: 
    13161269  --prefix=PREFIX         install architecture-independent files in PREFIX 
    1317                           [$ac_default_prefix] 
     1270                          [$ac_default_prefix] 
    13181271  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX 
    1319                           [PREFIX] 
     1272                          [PREFIX] 
    13201273 
    13211274By default, \`make install' will install all the files in 
     
    13271280 
    13281281Fine tuning of the installation directories: 
    1329   --bindir=DIR            user executables [EPREFIX/bin] 
    1330   --sbindir=DIR           system admin executables [EPREFIX/sbin] 
    1331   --libexecdir=DIR        program executables [EPREFIX/libexec] 
    1332   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] 
    1333   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] 
    1334   --localstatedir=DIR     modifiable single-machine data [PREFIX/var] 
    1335   --libdir=DIR            object code libraries [EPREFIX/lib] 
    1336   --includedir=DIR        C header files [PREFIX/include] 
    1337   --oldincludedir=DIR     C header files for non-gcc [/usr/include] 
    1338   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] 
    1339   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] 
    1340   --infodir=DIR           info documentation [DATAROOTDIR/info] 
    1341   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] 
    1342   --mandir=DIR            man documentation [DATAROOTDIR/man] 
    1343   --docdir=DIR            documentation root [DATAROOTDIR/doc/pjproject] 
    1344   --htmldir=DIR           html documentation [DOCDIR] 
    1345   --dvidir=DIR            dvi documentation [DOCDIR] 
    1346   --pdfdir=DIR            pdf documentation [DOCDIR] 
    1347   --psdir=DIR             ps documentation [DOCDIR] 
     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] 
    13481301_ACEOF 
    13491302 
     
    13641317 
    13651318Optional Features: 
    1366   --disable-option-checking  ignore unrecognized --enable/--with options 
    13671319  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) 
    13681320  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] 
     
    13941346  --disable-ssl           Exclude SSL support the build (default: autodetect) 
    13951347 
     1348  --disable-opencore-amrnb 
     1349                          Exclude OpenCORE AMR-NB support from the build 
     1350                          (default: autodetect) 
     1351 
    13961352 
    13971353Optional Packages: 
     
    14261382              nonstandard directory <lib dir> 
    14271383  LIBS        libraries to pass to the linker, e.g. -l<library> 
    1428   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 
     1384  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 
    14291385              you have headers in a nonstandard directory <include dir> 
    14301386  CXX         C++ compiler command 
     
    14351391it to find libraries and programs with nonstandard names/locations. 
    14361392 
    1437 Report bugs to the package provider. 
    14381393_ACEOF 
    14391394ac_status=$? 
     
    14431398  # If there are subdirs, report their specific --help. 
    14441399  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 
    14481401    ac_builddir=. 
    14491402 
     
    14511404.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 
    14521405*) 
    1453   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 
     1406  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 
    14541407  # 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,/,,'` 
    14561409  case $ac_top_builddir_sub in 
    14571410  "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 
     
    14891442      $SHELL "$ac_srcdir/configure" --help=recursive 
    14901443    else 
    1491       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 
     1444      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 
    14921445    fi || ac_status=$? 
    14931446    cd "$ac_pwd" || { ac_status=$?; break; } 
     
    14991452  cat <<\_ACEOF 
    15001453pjproject configure 1.x 
    1501 generated by GNU Autoconf 2.65 
    1502  
    1503 Copyright (C) 2009 Free Software Foundation, Inc. 
     1454generated by GNU Autoconf 2.61 
     1455 
     1456Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 
     14572002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 
    15041458This configure script is free software; the Free Software Foundation 
    15051459gives unlimited permission to copy, distribute and modify it. 
     
    15071461  exit 
    15081462fi 
    1509  
    1510 ## ------------------------ ## 
    1511 ## Autoconf initialization. ## 
    1512 ## ------------------------ ## 
    1513  
    1514 # ac_fn_c_try_compile LINENO 
    1515 # -------------------------- 
    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_stack 
    1520   rm -f conftest.$ac_objext 
    1521   if { { ac_try="$ac_compile" 
    1522 case "(($ac_try" in 
    1523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    1524   *) ac_try_echo=$ac_try;; 
    1525 esac 
    1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 
    1527 $as_echo "$ac_try_echo"; } >&5 
    1528   (eval "$ac_compile") 2>conftest.err 
    1529   ac_status=$? 
    1530   if test -s conftest.err; then 
    1531     grep -v '^ *+' conftest.err >conftest.er1 
    1532     cat conftest.er1 >&5 
    1533     mv -f conftest.er1 conftest.err 
    1534   fi 
    1535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 
    1536   test $ac_status = 0; } && { 
    1537          test -z "$ac_c_werror_flag" || 
    1538          test ! -s conftest.err 
    1539        } && test -s conftest.$ac_objext; then : 
    1540   ac_retval=0 
    1541 else 
    1542   $as_echo "$as_me: failed program was:" >&5 
    1543 sed 's/^/| /' conftest.$ac_ext >&5 
    1544  
    1545         ac_retval=1 
    1546 fi 
    1547   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 
    1548   as_fn_set_status $ac_retval 
    1549  
    1550 } # ac_fn_c_try_compile 
    1551  
    1552 # ac_fn_cxx_try_compile LINENO 
    1553 # ---------------------------- 
    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_stack 
    1558   rm -f conftest.$ac_objext 
    1559   if { { ac_try="$ac_compile" 
    1560 case "(($ac_try" in 
    1561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    1562   *) ac_try_echo=$ac_try;; 
    1563 esac 
    1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 
    1565 $as_echo "$ac_try_echo"; } >&5 
    1566   (eval "$ac_compile") 2>conftest.err 
    1567   ac_status=$? 
    1568   if test -s conftest.err; then 
    1569     grep -v '^ *+' conftest.err >conftest.er1 
    1570     cat conftest.er1 >&5 
    1571     mv -f conftest.er1 conftest.err 
    1572   fi 
    1573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 
    1574   test $ac_status = 0; } && { 
    1575          test -z "$ac_cxx_werror_flag" || 
    1576          test ! -s conftest.err 
    1577        } && test -s conftest.$ac_objext; then : 
    1578   ac_retval=0 
    1579 else 
    1580   $as_echo "$as_me: failed program was:" >&5 
    1581 sed 's/^/| /' conftest.$ac_ext >&5 
    1582  
    1583         ac_retval=1 
    1584 fi 
    1585   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 
    1586   as_fn_set_status $ac_retval 
    1587  
    1588 } # ac_fn_cxx_try_compile 
    1589  
    1590 # ac_fn_c_try_link LINENO 
    1591 # ----------------------- 
    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_stack 
    1596   rm -f conftest.$ac_objext conftest$ac_exeext 
    1597   if { { ac_try="$ac_link" 
    1598 case "(($ac_try" in 
    1599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    1600   *) ac_try_echo=$ac_try;; 
    1601 esac 
    1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 
    1603 $as_echo "$ac_try_echo"; } >&5 
    1604   (eval "$ac_link") 2>conftest.err 
    1605   ac_status=$? 
    1606   if test -s conftest.err; then 
    1607     grep -v '^ *+' conftest.err >conftest.er1 
    1608     cat conftest.er1 >&5 
    1609     mv -f conftest.er1 conftest.err 
    1610   fi 
    1611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 
    1612   test $ac_status = 0; } && { 
    1613          test -z "$ac_c_werror_flag" || 
    1614          test ! -s conftest.err 
    1615        } && test -s conftest$ac_exeext && { 
    1616          test "$cross_compiling" = yes || 
    1617          $as_test_x conftest$ac_exeext 
    1618        }; then : 
    1619   ac_retval=0 
    1620 else 
    1621   $as_echo "$as_me: failed program was:" >&5 
    1622 sed 's/^/| /' conftest.$ac_ext >&5 
    1623  
    1624         ac_retval=1 
    1625 fi 
    1626   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 
    1627   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 
    1628   # interfere with the next link command; also delete a directory that is 
    1629   # left behind by Apple's compiler.  We do this before executing the actions. 
    1630   rm -rf conftest.dSYM conftest_ipa8_conftest.oo 
    1631   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 
    1632   as_fn_set_status $ac_retval 
    1633  
    1634 } # ac_fn_c_try_link 
    1635  
    1636 # ac_fn_c_try_run LINENO 
    1637 # ---------------------- 
    1638 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 
    1639 # 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_stack 
    1643   if { { ac_try="$ac_link" 
    1644 case "(($ac_try" in 
    1645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    1646   *) ac_try_echo=$ac_try;; 
    1647 esac 
    1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 
    1649 $as_echo "$ac_try_echo"; } >&5 
    1650   (eval "$ac_link") 2>&5 
    1651   ac_status=$? 
    1652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 
    1653   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 
    1654   { { case "(($ac_try" in 
    1655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    1656   *) ac_try_echo=$ac_try;; 
    1657 esac 
    1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 
    1659 $as_echo "$ac_try_echo"; } >&5 
    1660   (eval "$ac_try") 2>&5 
    1661   ac_status=$? 
    1662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 
    1663   test $ac_status = 0; }; }; then : 
    1664   ac_retval=0 
    1665 else 
    1666   $as_echo "$as_me: program exited with status $ac_status" >&5 
    1667        $as_echo "$as_me: failed program was:" >&5 
    1668 sed 's/^/| /' conftest.$ac_ext >&5 
    1669  
    1670        ac_retval=$ac_status 
    1671 fi 
    1672   rm -rf conftest.dSYM conftest_ipa8_conftest.oo 
    1673   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 
    1674   as_fn_set_status $ac_retval 
    1675  
    1676 } # ac_fn_c_try_run 
    1677  
    1678 # ac_fn_c_try_cpp LINENO 
    1679 # ---------------------- 
    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_stack 
    1684   if { { ac_try="$ac_cpp conftest.$ac_ext" 
    1685 case "(($ac_try" in 
    1686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    1687   *) ac_try_echo=$ac_try;; 
    1688 esac 
    1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 
    1690 $as_echo "$ac_try_echo"; } >&5 
    1691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 
    1692   ac_status=$? 
    1693   if test -s conftest.err; then 
    1694     grep -v '^ *+' conftest.err >conftest.er1 
    1695     cat conftest.er1 >&5 
    1696     mv -f conftest.er1 conftest.err 
    1697   fi 
    1698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 
    1699   test $ac_status = 0; } >/dev/null && { 
    1700          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 
    1701          test ! -s conftest.err 
    1702        }; then : 
    1703   ac_retval=0 
    1704 else 
    1705   $as_echo "$as_me: failed program was:" >&5 
    1706 sed 's/^/| /' conftest.$ac_ext >&5 
    1707  
    1708     ac_retval=1 
    1709 fi 
    1710   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 
    1711   as_fn_set_status $ac_retval 
    1712  
    1713 } # ac_fn_c_try_cpp 
    1714  
    1715 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 
    1716 # ------------------------------------------------------- 
    1717 # Tests whether HEADER exists and can be compiled using the include files in 
    1718 # 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_stack 
    1722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 
    1723 $as_echo_n "checking for $2... " >&6; } 
    1724 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 
    1725   $as_echo_n "(cached) " >&6 
    1726 else 
    1727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
    1728 /* end confdefs.h.  */ 
    1729 $4 
    1730 #include <$2> 
    1731 _ACEOF 
    1732 if ac_fn_c_try_compile "$LINENO"; then : 
    1733   eval "$3=yes" 
    1734 else 
    1735   eval "$3=no" 
    1736 fi 
    1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    1738 fi 
    1739 eval ac_res=\$$3 
    1740                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 
    1741 $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_compile 
    1745  
    1746 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 
    1747 # ------------------------------------------------------- 
    1748 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 
    1749 # the include files in INCLUDES and setting the cache variable VAR 
    1750 # accordingly. 
    1751 ac_fn_c_check_header_mongrel () 
    1752 { 
    1753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 
    1754   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 
    1755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 
    1756 $as_echo_n "checking for $2... " >&6; } 
    1757 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 
    1758   $as_echo_n "(cached) " >&6 
    1759 fi 
    1760 eval ac_res=\$$3 
    1761                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 
    1762 $as_echo "$ac_res" >&6; } 
    1763 else 
    1764   # Is the header compilable? 
    1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 
    1766 $as_echo_n "checking $2 usability... " >&6; } 
    1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
    1768 /* end confdefs.h.  */ 
    1769 $4 
    1770 #include <$2> 
    1771 _ACEOF 
    1772 if ac_fn_c_try_compile "$LINENO"; then : 
    1773   ac_header_compiler=yes 
    1774 else 
    1775   ac_header_compiler=no 
    1776 fi 
    1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 
    1779 $as_echo "$ac_header_compiler" >&6; } 
    1780  
    1781 # Is the header present? 
    1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 
    1783 $as_echo_n "checking $2 presence... " >&6; } 
    1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
    1785 /* end confdefs.h.  */ 
    1786 #include <$2> 
    1787 _ACEOF 
    1788 if ac_fn_c_try_cpp "$LINENO"; then : 
    1789   ac_header_preproc=yes 
    1790 else 
    1791   ac_header_preproc=no 
    1792 fi 
    1793 rm -f conftest.err conftest.$ac_ext 
    1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 
    1795 $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!" >&5 
    1801 $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" >&5 
    1803 $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" >&5 
    1807 $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?" >&5 
    1809 $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" >&5 
    1811 $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\"" >&5 
    1813 $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" >&5 
    1815 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 
    1816     ;; 
    1817 esac 
    1818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 
    1819 $as_echo_n "checking for $2... " >&6; } 
    1820 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 
    1821   $as_echo_n "(cached) " >&6 
    1822 else 
    1823   eval "$3=\$ac_header_compiler" 
    1824 fi 
    1825 eval ac_res=\$$3 
    1826                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 
    1827 $as_echo "$ac_res" >&6; } 
    1828 fi 
    1829   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 
    1830  
    1831 } # ac_fn_c_check_header_mongrel 
    1832  
    1833 # ac_fn_c_check_func LINENO FUNC VAR 
    1834 # ---------------------------------- 
    1835 # Tests whether FUNC exists, setting the cache variable VAR accordingly 
    1836 ac_fn_c_check_func () 
    1837 { 
    1838   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 
    1839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 
    1840 $as_echo_n "checking for $2... " >&6; } 
    1841 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 
    1842   $as_echo_n "(cached) " >&6 
    1843 else 
    1844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
    1845 /* 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_$2 
    1849  
    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, since 
    1853     <limits.h> exists even on freestanding compilers.  */ 
    1854  
    1855 #ifdef __STDC__ 
    1856 # include <limits.h> 
    1857 #else 
    1858 # include <assert.h> 
    1859 #endif 
    1860  
    1861 #undef $2 
    1862  
    1863 /* Override any GCC internal prototype to avoid an error. 
    1864    Use char because int might match the return type of a GCC 
    1865    builtin and then its argument prototype would still apply.  */ 
    1866 #ifdef __cplusplus 
    1867 extern "C" 
    1868 #endif 
    1869 char $2 (); 
    1870 /* The GNU C library defines this for functions which it implements 
    1871     to always fail with ENOSYS.  Some functions are actually named 
    1872     something starting with __ and the normal name is an alias.  */ 
    1873 #if defined __stub_$2 || defined __stub___$2 
    1874 choke me 
    1875 #endif 
    1876  
    1877 int 
    1878 main () 
    1879 { 
    1880 return $2 (); 
    1881   ; 
    1882   return 0; 
    1883 } 
    1884 _ACEOF 
    1885 if ac_fn_c_try_link "$LINENO"; then : 
    1886   eval "$3=yes" 
    1887 else 
    1888   eval "$3=no" 
    1889 fi 
    1890 rm -f core conftest.err conftest.$ac_objext \ 
    1891     conftest$ac_exeext conftest.$ac_ext 
    1892 fi 
    1893 eval ac_res=\$$3 
    1894                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 
    1895 $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_func 
    18991463cat >config.log <<_ACEOF 
    19001464This file contains any messages produced by compilers while 
     
    19021466 
    19031467It was created by pjproject $as_me 1.x, which was 
    1904 generated by GNU Autoconf 2.65.  Invocation command line was 
     1468generated by GNU Autoconf 2.61.  Invocation command line was 
    19051469 
    19061470  $ $0 $@ 
     
    19381502  IFS=$as_save_IFS 
    19391503  test -z "$as_dir" && as_dir=. 
    1940     $as_echo "PATH: $as_dir" 
    1941   done 
     1504  echo "PATH: $as_dir" 
     1505done 
    19421506IFS=$as_save_IFS 
    19431507 
     
    19731537      continue ;; 
    19741538    *\'*) 
    1975       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 
     1539      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 
    19761540    esac 
    19771541    case $ac_pass in 
    1978     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 
     1542    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 
    19791543    2) 
    1980       as_fn_append ac_configure_args1 " '$ac_arg'" 
     1544      ac_configure_args1="$ac_configure_args1 '$ac_arg'" 
    19811545      if test $ac_must_keep_next = true; then 
    19821546        ac_must_keep_next=false # Got value, back to normal. 
     
    19941558        esac 
    19951559      fi 
    1996       as_fn_append ac_configure_args " '$ac_arg'" 
     1560      ac_configure_args="$ac_configure_args '$ac_arg'" 
    19971561      ;; 
    19981562    esac 
    19991563  done 
    20001564done 
    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; } 
    20031567 
    20041568# When interrupted or exit'd, cleanup temporary files, and complete 
     
    20251589    *${as_nl}*) 
    20261590      case $ac_var in #( 
    2027       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 
    2028 $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 
     1592echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 
    20291593      esac 
    20301594      case $ac_var in #( 
    20311595      _ | IFS | as_nl) ;; #( 
    2032       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 
    2033       *) { eval $ac_var=; unset $ac_var;} ;; 
     1596      *) $as_unset $ac_var ;; 
    20341597      esac ;; 
    20351598    esac 
     
    20601623      eval ac_val=\$$ac_var 
    20611624      case $ac_val in 
    2062       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 
     1625      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 
    20631626      esac 
    2064       $as_echo "$ac_var='\''$ac_val'\''" 
     1627      echo "$ac_var='\''$ac_val'\''" 
    20651628    done | sort 
    20661629    echo 
     
    20771640        eval ac_val=\$$ac_var 
    20781641        case $ac_val in 
    2079         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 
     1642        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 
    20801643        esac 
    2081         $as_echo "$ac_var='\''$ac_val'\''" 
     1644        echo "$ac_var='\''$ac_val'\''" 
    20821645      done | sort 
    20831646      echo 
     
    20951658    fi 
    20961659    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" 
    20991662  } >&5 
    21001663  rm -f core *.core core.conftest.* && 
     
    21031666' 0 
    21041667for ac_signal in 1 2 13 15; do 
    2105   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 
     1668  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 
    21061669done 
    21071670ac_signal=0 
     
    21101673rm -f -r conftest* confdefs.h 
    21111674 
    2112 $as_echo "/* confdefs.h */" > confdefs.h 
    2113  
    21141675# Predefined preprocessor variables. 
    21151676 
     
    21181679_ACEOF 
    21191680 
     1681 
    21201682cat >>confdefs.h <<_ACEOF 
    21211683#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 
    21221684_ACEOF 
    21231685 
     1686 
    21241687cat >>confdefs.h <<_ACEOF 
    21251688#define PACKAGE_VERSION "$PACKAGE_VERSION" 
    21261689_ACEOF 
    21271690 
     1691 
    21281692cat >>confdefs.h <<_ACEOF 
    21291693#define PACKAGE_STRING "$PACKAGE_STRING" 
    21301694_ACEOF 
    21311695 
     1696 
    21321697cat >>confdefs.h <<_ACEOF 
    21331698#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 
    21341699_ACEOF 
    21351700 
    2136 cat >>confdefs.h <<_ACEOF 
    2137 #define PACKAGE_URL "$PACKAGE_URL" 
    2138 _ACEOF 
    2139  
    21401701 
    21411702# 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. 
    21451704if test -n "$CONFIG_SITE"; then 
    2146   ac_site_file1=$CONFIG_SITE 
     1705  set x "$CONFIG_SITE" 
    21471706elif test "x$prefix" != xNONE; then 
    2148   ac_site_file1=$prefix/share/config.site 
    2149   ac_site_file2=$prefix/etc/config.site 
    2150 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" 
     1708else 
     1709  set x "$ac_default_prefix/share/config.site" \ 
     1710        "$ac_default_prefix/etc/config.site" 
     1711fi 
     1712shift 
     1713for ac_site_file 
    21551714do 
    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 
     1717echo "$as_me: loading site script $ac_site_file" >&6;} 
    21601718    sed 's/^/| /' "$ac_site_file" >&5 
    21611719    . "$ac_site_file" 
     
    21641722 
    21651723if test -r "$cache_file"; then 
    2166   # Some versions of bash will fail to source /dev/null (special files 
    2167   # actually), so we avoid doing that.  DJGPP emulates it as a regular file. 
    2168   if test /dev/null != "$cache_file" && test -f "$cache_file"; then 
    2169     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 
    2170 $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 
     1728echo "$as_me: loading cache $cache_file" >&6;} 
    21711729    case $cache_file in 
    21721730      [\\/]* | ?:[\\/]* ) . "$cache_file";; 
     
    21751733  fi 
    21761734else 
    2177   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 
    2178 $as_echo "$as_me: creating cache $cache_file" >&6;} 
     1735  { echo "$as_me:$LINENO: creating cache $cache_file" >&5 
     1736echo "$as_me: creating cache $cache_file" >&6;} 
    21791737  >$cache_file 
    21801738fi 
     
    21901748  case $ac_old_set,$ac_new_set in 
    21911749    set,) 
    2192       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 
    2193 $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 
     1751echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 
    21941752      ac_cache_corrupted=: ;; 
    21951753    ,set) 
    2196       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 
    2197 $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 
     1755echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 
    21981756      ac_cache_corrupted=: ;; 
    21991757    ,);; 
    22001758    *) 
    22011759      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 
     1761echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 
     1762        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5 
     1763echo "$as_me:   former value:  $ac_old_val" >&2;} 
     1764        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5 
     1765echo "$as_me:   current value: $ac_new_val" >&2;} 
     1766        ac_cache_corrupted=: 
    22181767      fi;; 
    22191768  esac 
     
    22211770  if test "$ac_new_set" = set; then 
    22221771    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"` ;; 
    22241773    *) ac_arg=$ac_var=$ac_new_val ;; 
    22251774    esac 
    22261775    case " $ac_configure_args " in 
    22271776      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. 
    2228       *) as_fn_append ac_configure_args " '$ac_arg'" ;; 
     1777      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 
    22291778    esac 
    22301779  fi 
    22311780done 
    22321781if $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 
     1783echo "$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 
     1785echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 
     1786   { (exit 1); exit 1; }; } 
     1787fi 
     1788 
     1789 
     1790 
     1791 
     1792 
     1793 
     1794 
     1795 
     1796 
     1797 
     1798 
     1799 
     1800 
     1801 
     1802 
     1803 
     1804 
     1805 
     1806 
     1807 
     1808 
     1809 
     1810 
     1811 
    22421812 
    22431813ac_ext=c 
     
    22531823ac_aux_dir= 
    22541824for 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 
    22621838done 
    22631839if 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 
     1841echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 
     1842   { (exit 1); exit 1; }; } 
    22651843fi 
    22661844 
     
    22761854# Make sure we can run config.sub. 
    22771855$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 
     1857echo "$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 
     1861echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 
     1862if test "${ac_cv_build+set}" = set; then 
     1863  echo $ECHO_N "(cached) $ECHO_C" >&6 
    22841864else 
    22851865  ac_build_alias=$build_alias 
     
    22871867  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 
    22881868test "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 
     1870echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 
     1871   { (exit 1); exit 1; }; } 
    22901872ac_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 
     1874echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 
     1875   { (exit 1); exit 1; }; } 
     1876 
     1877fi 
     1878{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 
     1879echo "${ECHO_T}$ac_cv_build" >&6; } 
    22961880case $ac_cv_build in 
    22971881*-*-*) ;; 
    2298 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 
     1882*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 
     1883echo "$as_me: error: invalid value of canonical build" >&2;} 
     1884   { (exit 1); exit 1; }; };; 
    22991885esac 
    23001886build=$ac_cv_build 
     
    23121898 
    23131899 
    2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 
    2315 $as_echo_n "checking host system type... " >&6; } 
    2316 if test "${ac_cv_host+set}" = set; then : 
    2317   $as_echo_n "(cached) " >&6 
     1900{ echo "$as_me:$LINENO: checking host system type" >&5 
     1901echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 
     1902if test "${ac_cv_host+set}" = set; then 
     1903  echo $ECHO_N "(cached) $ECHO_C" >&6 
    23181904else 
    23191905  if test "x$host_alias" = x; then 
     
    23211907else 
    23221908  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 
     1910echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 
     1911   { (exit 1); exit 1; }; } 
     1912fi 
     1913 
     1914fi 
     1915{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 
     1916echo "${ECHO_T}$ac_cv_host" >&6; } 
    23291917case $ac_cv_host in 
    23301918*-*-*) ;; 
    2331 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 
     1919*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 
     1920echo "$as_me: error: invalid value of canonical host" >&2;} 
     1921   { (exit 1); exit 1; }; };; 
    23321922esac 
    23331923host=$ac_cv_host 
     
    23451935 
    23461936 
    2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 
    2348 $as_echo_n "checking target system type... " >&6; } 
    2349 if test "${ac_cv_target+set}" = set; then : 
    2350   $as_echo_n "(cached) " >&6 
     1937{ echo "$as_me:$LINENO: checking target system type" >&5 
     1938echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 
     1939if test "${ac_cv_target+set}" = set; then 
     1940  echo $ECHO_N "(cached) $ECHO_C" >&6 
    23511941else 
    23521942  if test "x$target_alias" = x; then 
     
    23541944else 
    23551945  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 
     1947echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 
     1948   { (exit 1); exit 1; }; } 
     1949fi 
     1950 
     1951fi 
     1952{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 
     1953echo "${ECHO_T}$ac_cv_target" >&6; } 
    23621954case $ac_cv_target in 
    23631955*-*-*) ;; 
    2364 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 
     1956*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 
     1957echo "$as_me: error: invalid value of canonical target" >&2;} 
     1958   { (exit 1); exit 1; }; };; 
    23651959esac 
    23661960target=$ac_cv_target 
     
    24062000  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 
    24072001set dummy ${ac_tool_prefix}gcc; ac_word=$2 
    2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 
    2409 $as_echo_n "checking for $ac_word... " >&6; } 
    2410 if test "${ac_cv_prog_CC+set}" = set; then : 
    2411   $as_echo_n "(cached) " >&6 
     2002{ echo "$as_me:$LINENO: checking for $ac_word" >&5 
     2003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 
     2004if test "${ac_cv_prog_CC+set}" = set; then 
     2005  echo $ECHO_N "(cached) $ECHO_C" >&6 
    24122006else 
    24132007  if test -n "$CC"; then 
     
    24192013  IFS=$as_save_IFS 
    24202014  test -z "$as_dir" && as_dir=. 
    2421     for ac_exec_ext in '' $ac_executable_extensions; do 
     2015  for ac_exec_ext in '' $ac_executable_extensions; do 
    24222016  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    24232017    ac_cv_prog_CC="${ac_tool_prefix}gcc" 
    2424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
     2018    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
    24252019    break 2 
    24262020  fi 
    24272021done 
    2428   done 
     2022done 
    24292023IFS=$as_save_IFS 
    24302024 
     
    24332027CC=$ac_cv_prog_CC 
    24342028if test -n "$CC"; then 
    2435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 
    2436 $as_echo "$CC" >&6; } 
    2437 else 
    2438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 
    2439 $as_echo "no" >&6; } 
     2029  { echo "$as_me:$LINENO: result: $CC" >&5 
     2030echo "${ECHO_T}$CC" >&6; } 
     2031else 
     2032  { echo "$as_me:$LINENO: result: no" >&5 
     2033echo "${ECHO_T}no" >&6; } 
    24402034fi 
    24412035 
     
    24462040  # Extract the first word of "gcc", so it can be a program name with args. 
    24472041set dummy gcc; ac_word=$2 
    2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 
    2449 $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) " >&6 
     2042{ echo "$as_me:$LINENO: checking for $ac_word" >&5 
     2043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 
     2044if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 
     2045  echo $ECHO_N "(cached) $ECHO_C" >&6 
    24522046else 
    24532047  if test -n "$ac_ct_CC"; then 
     
    24592053  IFS=$as_save_IFS 
    24602054  test -z "$as_dir" && as_dir=. 
    2461     for ac_exec_ext in '' $ac_executable_extensions; do 
     2055  for ac_exec_ext in '' $ac_executable_extensions; do 
    24622056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    24632057    ac_cv_prog_ac_ct_CC="gcc" 
    2464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
     2058    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
    24652059    break 2 
    24662060  fi 
    24672061done 
    2468   done 
     2062done 
    24692063IFS=$as_save_IFS 
    24702064 
     
    24732067ac_ct_CC=$ac_cv_prog_ac_ct_CC 
    24742068if test -n "$ac_ct_CC"; then 
    2475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 
    2476 $as_echo "$ac_ct_CC" >&6; } 
    2477 else 
    2478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 
    2479 $as_echo "no" >&6; } 
     2069  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 
     2070echo "${ECHO_T}$ac_ct_CC" >&6; } 
     2071else 
     2072  { echo "$as_me:$LINENO: result: no" >&5 
     2073echo "${ECHO_T}no" >&6; } 
    24802074fi 
    24812075 
     
    24852079    case $cross_compiling:$ac_tool_warned in 
    24862080yes:) 
    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 
     2082whose name does not start with the host triplet.  If you think this 
     2083configuration is useful to you, please write to autoconf@gnu.org." >&5 
     2084echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 
     2085whose name does not start with the host triplet.  If you think this 
     2086configuration is useful to you, please write to autoconf@gnu.org." >&2;} 
    24892087ac_tool_warned=yes ;; 
    24902088esac 
     
    24992097    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 
    25002098set dummy ${ac_tool_prefix}cc; ac_word=$2 
    2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 
    2502 $as_echo_n "checking for $ac_word... " >&6; } 
    2503 if test "${ac_cv_prog_CC+set}" = set; then : 
    2504   $as_echo_n "(cached) " >&6 
     2099{ echo "$as_me:$LINENO: checking for $ac_word" >&5 
     2100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 
     2101if test "${ac_cv_prog_CC+set}" = set; then 
     2102  echo $ECHO_N "(cached) $ECHO_C" >&6 
    25052103else 
    25062104  if test -n "$CC"; then 
     
    25122110  IFS=$as_save_IFS 
    25132111  test -z "$as_dir" && as_dir=. 
    2514     for ac_exec_ext in '' $ac_executable_extensions; do 
     2112  for ac_exec_ext in '' $ac_executable_extensions; do 
    25152113  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    25162114    ac_cv_prog_CC="${ac_tool_prefix}cc" 
    2517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
     2115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
    25182116    break 2 
    25192117  fi 
    25202118done 
    2521   done 
     2119done 
    25222120IFS=$as_save_IFS 
    25232121 
     
    25262124CC=$ac_cv_prog_CC 
    25272125if test -n "$CC"; then 
    2528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 
    2529 $as_echo "$CC" >&6; } 
    2530 else 
    2531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 
    2532 $as_echo "no" >&6; } 
     2126  { echo "$as_me:$LINENO: result: $CC" >&5 
     2127echo "${ECHO_T}$CC" >&6; } 
     2128else 
     2129  { echo "$as_me:$LINENO: result: no" >&5 
     2130echo "${ECHO_T}no" >&6; } 
    25332131fi 
    25342132 
     
    25392137  # Extract the first word of "cc", so it can be a program name with args. 
    25402138set dummy cc; ac_word=$2 
    2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 
    2542 $as_echo_n "checking for $ac_word... " >&6; } 
    2543 if test "${ac_cv_prog_CC+set}" = set; then : 
    2544   $as_echo_n "(cached) " >&6 
     2139{ echo "$as_me:$LINENO: checking for $ac_word" >&5 
     2140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 
     2141if test "${ac_cv_prog_CC+set}" = set; then 
     2142  echo $ECHO_N "(cached) $ECHO_C" >&6 
    25452143else 
    25462144  if test -n "$CC"; then 
     
    25532151  IFS=$as_save_IFS 
    25542152  test -z "$as_dir" && as_dir=. 
    2555     for ac_exec_ext in '' $ac_executable_extensions; do 
     2153  for ac_exec_ext in '' $ac_executable_extensions; do 
    25562154  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    25572155    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 
     
    25602158     fi 
    25612159    ac_cv_prog_CC="cc" 
    2562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
     2160    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
    25632161    break 2 
    25642162  fi 
    25652163done 
    2566   done 
     2164done 
    25672165IFS=$as_save_IFS 
    25682166 
     
    25832181CC=$ac_cv_prog_CC 
    25842182if test -n "$CC"; then 
    2585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 
    2586 $as_echo "$CC" >&6; } 
    2587 else 
    2588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 
    2589 $as_echo "no" >&6; } 
     2183  { echo "$as_me:$LINENO: result: $CC" >&5 
     2184echo "${ECHO_T}$CC" >&6; } 
     2185else 
     2186  { echo "$as_me:$LINENO: result: no" >&5 
     2187echo "${ECHO_T}no" >&6; } 
    25902188fi 
    25912189 
     
    25982196    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 
    25992197set dummy $ac_tool_prefix$ac_prog; ac_word=$2 
    2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 
    2601 $as_echo_n "checking for $ac_word... " >&6; } 
    2602 if test "${ac_cv_prog_CC+set}" = set; then : 
    2603   $as_echo_n "(cached) " >&6 
     2198{ echo "$as_me:$LINENO: checking for $ac_word" >&5 
     2199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 
     2200if test "${ac_cv_prog_CC+set}" = set; then 
     2201  echo $ECHO_N "(cached) $ECHO_C" >&6 
    26042202else 
    26052203  if test -n "$CC"; then 
     
    26112209  IFS=$as_save_IFS 
    26122210  test -z "$as_dir" && as_dir=. 
    2613     for ac_exec_ext in '' $ac_executable_extensions; do 
     2211  for ac_exec_ext in '' $ac_executable_extensions; do 
    26142212  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    26152213    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" >&5 
     2214    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
    26172215    break 2 
    26182216  fi 
    26192217done 
    2620   done 
     2218done 
    26212219IFS=$as_save_IFS 
    26222220 
     
    26252223CC=$ac_cv_prog_CC 
    26262224if test -n "$CC"; then 
    2627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 
    2628 $as_echo "$CC" >&6; } 
    2629 else 
    2630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 
    2631 $as_echo "no" >&6; } 
     2225  { echo "$as_me:$LINENO: result: $CC" >&5 
     2226echo "${ECHO_T}$CC" >&6; } 
     2227else 
     2228  { echo "$as_me:$LINENO: result: no" >&5 
     2229echo "${ECHO_T}no" >&6; } 
    26322230fi 
    26332231 
     
    26422240  # Extract the first word of "$ac_prog", so it can be a program name with args. 
    26432241set dummy $ac_prog; ac_word=$2 
    2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 
    2645 $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) " >&6 
     2242{ echo "$as_me:$LINENO: checking for $ac_word" >&5 
     2243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 
     2244if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 
     2245  echo $ECHO_N "(cached) $ECHO_C" >&6 
    26482246else 
    26492247  if test -n "$ac_ct_CC"; then 
     
    26552253  IFS=$as_save_IFS 
    26562254  test -z "$as_dir" && as_dir=. 
    2657     for ac_exec_ext in '' $ac_executable_extensions; do 
     2255  for ac_exec_ext in '' $ac_executable_extensions; do 
    26582256  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    26592257    ac_cv_prog_ac_ct_CC="$ac_prog" 
    2660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
     2258    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
    26612259    break 2 
    26622260  fi 
    26632261done 
    2664   done 
     2262done 
    26652263IFS=$as_save_IFS 
    26662264 
     
    26692267ac_ct_CC=$ac_cv_prog_ac_ct_CC 
    26702268if test -n "$ac_ct_CC"; then 
    2671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 
    2672 $as_echo "$ac_ct_CC" >&6; } 
    2673 else 
    2674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 
    2675 $as_echo "no" >&6; } 
     2269  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 
     2270echo "${ECHO_T}$ac_ct_CC" >&6; } 
     2271else 
     2272  { echo "$as_me:$LINENO: result: no" >&5 
     2273echo "${ECHO_T}no" >&6; } 
    26762274fi 
    26772275 
     
    26852283    case $cross_compiling:$ac_tool_warned in 
    26862284yes:) 
    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 
     2286whose name does not start with the host triplet.  If you think this 
     2287configuration is useful to you, please write to autoconf@gnu.org." >&5 
     2288echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 
     2289whose name does not start with the host triplet.  If you think this 
     2290configuration is useful to you, please write to autoconf@gnu.org." >&2;} 
    26892291ac_tool_warned=yes ;; 
    26902292esac 
     
    26962298 
    26972299 
    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; } 
     2300test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 
     2301See \`config.log' for more details." >&5 
     2302echo "$as_me: error: no acceptable C compiler found in \$PATH 
     2303See \`config.log' for more details." >&2;} 
     2304   { (exit 1); exit 1; }; } 
    27022305 
    27032306# 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 
     2307echo "$as_me:$LINENO: checking for C compiler version" >&5 
     2308ac_compiler=`set X $ac_compile; echo $2` 
     2309{ (ac_try="$ac_compiler --version >&5" 
     2310case "(($ac_try" in 
     2311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     2312  *) ac_try_echo=$ac_try;; 
     2313esac 
     2314eval "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" 
     2320case "(($ac_try" in 
     2321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     2322  *) ac_try_echo=$ac_try;; 
     2323esac 
     2324eval "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" 
     2330case "(($ac_try" in 
     2331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     2332  *) ac_try_echo=$ac_try;; 
     2333esac 
     2334eval "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 
     2340cat >conftest.$ac_ext <<_ACEOF 
     2341/* confdefs.h.  */ 
     2342_ACEOF 
     2343cat confdefs.h >>conftest.$ac_ext 
     2344cat >>conftest.$ac_ext <<_ACEOF 
    27292345/* end confdefs.h.  */ 
    27302346 
     
    27382354_ACEOF 
    27392355ac_clean_files_save=$ac_clean_files 
    2740 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 
     2356ac_clean_files="$ac_clean_files a.out a.exe b.out" 
    27412357# Try to create an executable without -o first, disregard a.out. 
    27422358# It will help us diagnose broken compilers, and finding out an intuition 
    27432359# 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 
     2361echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 
     2362ac_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. 
     2367ac_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. 
    27512372ac_rmfiles= 
    27522373for ac_file in $ac_files 
    27532374do 
    27542375  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 ) ;; 
    27562377    * ) ac_rmfiles="$ac_rmfiles $ac_file";; 
    27572378  esac 
     
    27592380rm -f $ac_rmfiles 
    27602381 
    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 
     2382if { (ac_try="$ac_link_default" 
     2383case "(($ac_try" in 
     2384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     2385  *) ac_try_echo=$ac_try;; 
     2386esac 
     2387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    27682388  (eval "$ac_link_default") 2>&5 
    27692389  ac_status=$? 
    2770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 
    2771   test $ac_status = 0; }; then : 
     2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     2391  (exit $ac_status); }; then 
    27722392  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 
    27732393# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 
     
    27792399  test -f "$ac_file" || continue 
    27802400  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 ) 
    27822402        ;; 
    27832403    [ab].out ) 
     
    27862406        break;; 
    27872407    *.* ) 
    2788         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 
     2408        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 
    27892409        then :; else 
    27902410           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 
     
    28052425  ac_file='' 
    28062426fi 
    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 
     2429echo "${ECHO_T}$ac_file" >&6; } 
     2430if test -z "$ac_file"; then 
     2431  echo "$as_me: failed program was:" >&5 
     2432sed 's/^/| /' conftest.$ac_ext >&5 
     2433 
     2434{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 
     2435See \`config.log' for more details." >&5 
     2436echo "$as_me: error: C compiler cannot create executables 
     2437See \`config.log' for more details." >&2;} 
     2438   { (exit 77); exit 77; }; } 
     2439fi 
     2440 
    28262441ac_exeext=$ac_cv_exeext 
    28272442 
    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 
     2446echo $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. 
     2449if 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;; 
     2454esac 
     2455eval "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. 
     2466If you meant to cross compile, use \`--host'. 
     2467See \`config.log' for more details." >&5 
     2468echo "$as_me: error: cannot run C compiled programs. 
     2469If you meant to cross compile, use \`--host'. 
     2470See \`config.log' for more details." >&2;} 
     2471   { (exit 1); exit 1; }; } 
     2472    fi 
     2473  fi 
     2474fi 
     2475{ echo "$as_me:$LINENO: result: yes" >&5 
     2476echo "${ECHO_T}yes" >&6; } 
     2477 
     2478rm -f a.out a.exe conftest$ac_cv_exeext b.out 
    28292479ac_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 
     2483echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 
     2484{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 
     2485echo "${ECHO_T}$cross_compiling" >&6; } 
     2486 
     2487{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 
     2488echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 
     2489if { (ac_try="$ac_link" 
     2490case "(($ac_try" in 
     2491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     2492  *) ac_try_echo=$ac_try;; 
     2493esac 
     2494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    28392495  (eval "$ac_link") 2>&5 
    28402496  ac_status=$? 
    2841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 
    2842   test $ac_status = 0; }; then : 
     2497  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     2498  (exit $ac_status); }; then 
    28432499  # If both `conftest.exe' and `conftest' are `present' (well, observable) 
    28442500# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will 
     
    28482504  test -f "$ac_file" || continue 
    28492505  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 ) ;; 
    28512507    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 
    28522508          break;; 
     
    28552511done 
    28562512else 
    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 
     2514See \`config.log' for more details." >&5 
     2515echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 
     2516See \`config.log' for more details." >&2;} 
     2517   { (exit 1); exit 1; }; } 
     2518fi 
     2519 
     2520rm -f conftest$ac_cv_exeext 
     2521{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 
     2522echo "${ECHO_T}$ac_cv_exeext" >&6; } 
    28652523 
    28662524rm -f conftest.$ac_ext 
    28672525EXEEXT=$ac_cv_exeext 
    28682526ac_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 
     2528echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 
     2529if test "${ac_cv_objext+set}" = set; then 
     2530  echo $ECHO_N "(cached) $ECHO_C" >&6 
     2531else 
     2532  cat >conftest.$ac_ext <<_ACEOF 
     2533/* confdefs.h.  */ 
     2534_ACEOF 
     2535cat confdefs.h >>conftest.$ac_ext 
     2536cat >>conftest.$ac_ext <<_ACEOF 
     2537/* end confdefs.h.  */ 
     2538 
    28722539int 
    28732540main () 
    28742541{ 
    2875 FILE *f = fopen ("conftest.out", "w"); 
    2876  return ferror (f) || fclose (f) != 0; 
    28772542 
    28782543  ; 
     
    28802545} 
    28812546_ACEOF 
    2882 ac_clean_files="$ac_clean_files conftest.out" 
    2883 # Check that the compiler produces executables we can run.  If not, either 
    2884 # the compiler is broken, or we cross compile. 
    2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 
    2886 $as_echo_n "checking whether we are cross compiling... " >&6; } 
    2887 if test "$cross_compiling" != yes; then 
    2888   { { ac_try="$ac_link" 
    2889 case "(($ac_try" in 
    2890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2891   *) ac_try_echo=$ac_try;; 
    2892 esac 
    2893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 
    2894 $as_echo "$ac_try_echo"; } >&5 
    2895   (eval "$ac_link") 2>&5 
    2896   ac_status=$? 
    2897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 
    2898   test $ac_status = 0; } 
    2899   if { ac_try='./conftest$ac_cv_exeext' 
    2900   { { case "(($ac_try" in 
    2901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    2902   *) ac_try_echo=$ac_try;; 
    2903 esac 
    2904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 
    2905 $as_echo "$ac_try_echo"; } >&5 
    2906   (eval "$ac_try") 2>&5 
    2907   ac_status=$? 
    2908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 
    2909   test $ac_status = 0; }; }; then 
    2910     cross_compiling=no 
    2911   else 
    2912     if test "$cross_compiling" = maybe; then 
    2913         cross_compiling=yes 
    2914     else 
    2915         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 
    2916 $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     fi 
    2921   fi 
    2922 fi 
    2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 
    2924 $as_echo "$cross_compiling" >&6; } 
    2925  
    2926 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 
    2927 ac_clean_files=$ac_clean_files_save 
    2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 
    2929 $as_echo_n "checking for suffix of object files... " >&6; } 
    2930 if test "${ac_cv_objext+set}" = set; then : 
    2931   $as_echo_n "(cached) " >&6 
    2932 else 
    2933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
    2934 /* end confdefs.h.  */ 
    2935  
    2936 int 
    2937 main () 
    2938 { 
    2939  
    2940   ; 
    2941   return 0; 
    2942 } 
    2943 _ACEOF 
    29442547rm -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 
     2548if { (ac_try="$ac_compile" 
     2549case "(($ac_try" in 
     2550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     2551  *) ac_try_echo=$ac_try;; 
     2552esac 
     2553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
    29522554  (eval "$ac_compile") 2>&5 
    29532555  ac_status=$? 
    2954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 
    2955   test $ac_status = 0; }; then : 
     2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     2557  (exit $ac_status); }; then 
    29562558  for ac_file in conftest.o conftest.obj conftest.*; do 
    29572559  test -f "$ac_file" || continue; 
    29582560  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 ) ;; 
    29602562    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 
    29612563       break;; 
     
    29632565done 
    29642566else 
    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 
     2568sed 's/^/| /' conftest.$ac_ext >&5 
     2569 
     2570{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 
     2571See \`config.log' for more details." >&5 
     2572echo "$as_me: error: cannot compute suffix of object files: cannot compile 
     2573See \`config.log' for more details." >&2;} 
     2574   { (exit 1); exit 1; }; } 
     2575fi 
     2576 
    29732577rm -f conftest.$ac_cv_objext conftest.$ac_ext 
    29742578fi 
    2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 
    2976 $as_echo "$ac_cv_objext" >&6; } 
     2579{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 
     2580echo "${ECHO_T}$ac_cv_objext" >&6; } 
    29772581OBJEXT=$ac_cv_objext 
    29782582ac_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 
     2584echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 
     2585if test "${ac_cv_c_compiler_gnu+set}" = set; then 
     2586  echo $ECHO_N "(cached) $ECHO_C" >&6 
     2587else 
     2588  cat >conftest.$ac_ext <<_ACEOF 
     2589/* confdefs.h.  */ 
     2590_ACEOF 
     2591cat confdefs.h >>conftest.$ac_ext 
     2592cat >>conftest.$ac_ext <<_ACEOF 
    29852593/* end confdefs.h.  */ 
    29862594 
     
    29962604} 
    29972605_ACEOF 
    2998 if ac_fn_c_try_compile "$LINENO"; then : 
     2606rm -f conftest.$ac_objext 
     2607if { (ac_try="$ac_compile" 
     2608case "(($ac_try" in 
     2609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     2610  *) ac_try_echo=$ac_try;; 
     2611esac 
     2612eval "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 
    29992623  ac_compiler_gnu=yes 
    30002624else 
    3001   ac_compiler_gnu=no 
    3002 fi 
     2625  echo "$as_me: failed program was:" >&5 
     2626sed 's/^/| /' conftest.$ac_ext >&5 
     2627 
     2628        ac_compiler_gnu=no 
     2629fi 
     2630 
    30032631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    30042632ac_cv_c_compiler_gnu=$ac_compiler_gnu 
    30052633 
    30062634fi 
    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 
     2636echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 
     2637GCC=`test $ac_compiler_gnu = yes && echo yes` 
    30142638ac_test_CFLAGS=${CFLAGS+set} 
    30152639ac_save_CFLAGS=$CFLAGS 
    3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 
    3017 $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) " >&6 
     2640{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 
     2641echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 
     2642if test "${ac_cv_prog_cc_g+set}" = set; then 
     2643  echo $ECHO_N "(cached) $ECHO_C" >&6 
    30202644else 
    30212645  ac_save_c_werror_flag=$ac_c_werror_flag 
     
    30232647   ac_cv_prog_cc_g=no 
    30242648   CFLAGS="-g" 
    3025    cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     2649   cat >conftest.$ac_ext <<_ACEOF 
     2650/* confdefs.h.  */ 
     2651_ACEOF 
     2652cat confdefs.h >>conftest.$ac_ext 
     2653cat >>conftest.$ac_ext <<_ACEOF 
    30262654/* end confdefs.h.  */ 
    30272655 
     
    30342662} 
    30352663_ACEOF 
    3036 if ac_fn_c_try_compile "$LINENO"; then : 
     2664rm -f conftest.$ac_objext 
     2665if { (ac_try="$ac_compile" 
     2666case "(($ac_try" in 
     2667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     2668  *) ac_try_echo=$ac_try;; 
     2669esac 
     2670eval "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 
    30372681  ac_cv_prog_cc_g=yes 
    30382682else 
    3039   CFLAGS="" 
    3040       cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     2683  echo "$as_me: failed program was:" >&5 
     2684sed 's/^/| /' conftest.$ac_ext >&5 
     2685 
     2686        CFLAGS="" 
     2687      cat >conftest.$ac_ext <<_ACEOF 
     2688/* confdefs.h.  */ 
     2689_ACEOF 
     2690cat confdefs.h >>conftest.$ac_ext 
     2691cat >>conftest.$ac_ext <<_ACEOF 
    30412692/* end confdefs.h.  */ 
    30422693 
     
    30492700} 
    30502701_ACEOF 
    3051 if ac_fn_c_try_compile "$LINENO"; then : 
    3052  
    3053 else 
    3054   ac_c_werror_flag=$ac_save_c_werror_flag 
     2702rm -f conftest.$ac_objext 
     2703if { (ac_try="$ac_compile" 
     2704case "(($ac_try" in 
     2705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     2706  *) ac_try_echo=$ac_try;; 
     2707esac 
     2708eval "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  : 
     2720else 
     2721  echo "$as_me: failed program was:" >&5 
     2722sed 's/^/| /' conftest.$ac_ext >&5 
     2723 
     2724        ac_c_werror_flag=$ac_save_c_werror_flag 
    30552725         CFLAGS="-g" 
    3056          cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     2726         cat >conftest.$ac_ext <<_ACEOF 
     2727/* confdefs.h.  */ 
     2728_ACEOF 
     2729cat confdefs.h >>conftest.$ac_ext 
     2730cat >>conftest.$ac_ext <<_ACEOF 
    30572731/* end confdefs.h.  */ 
    30582732 
     
    30652739} 
    30662740_ACEOF 
    3067 if ac_fn_c_try_compile "$LINENO"; then : 
     2741rm -f conftest.$ac_objext 
     2742if { (ac_try="$ac_compile" 
     2743case "(($ac_try" in 
     2744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     2745  *) ac_try_echo=$ac_try;; 
     2746esac 
     2747eval "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 
    30682758  ac_cv_prog_cc_g=yes 
    3069 fi 
     2759else 
     2760  echo "$as_me: failed program was:" >&5 
     2761sed 's/^/| /' conftest.$ac_ext >&5 
     2762 
     2763 
     2764fi 
     2765 
    30702766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    30712767fi 
     2768 
    30722769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    30732770fi 
     2771 
    30742772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    30752773   ac_c_werror_flag=$ac_save_c_werror_flag 
    30762774fi 
    3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 
    3078 $as_echo "$ac_cv_prog_cc_g" >&6; } 
     2775{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 
     2776echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 
    30792777if test "$ac_test_CFLAGS" = set; then 
    30802778  CFLAGS=$ac_save_CFLAGS 
     
    30922790  fi 
    30932791fi 
    3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 
    3095 $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) " >&6 
     2792{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 
     2793echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 
     2794if test "${ac_cv_prog_cc_c89+set}" = set; then 
     2795  echo $ECHO_N "(cached) $ECHO_C" >&6 
    30982796else 
    30992797  ac_cv_prog_cc_c89=no 
    31002798ac_save_CC=$CC 
    3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     2799cat >conftest.$ac_ext <<_ACEOF 
     2800/* confdefs.h.  */ 
     2801_ACEOF 
     2802cat confdefs.h >>conftest.$ac_ext 
     2803cat >>conftest.$ac_ext <<_ACEOF 
    31022804/* end confdefs.h.  */ 
    31032805#include <stdarg.h> 
     
    31562858do 
    31572859  CC="$ac_save_CC $ac_arg" 
    3158   if ac_fn_c_try_compile "$LINENO"; then : 
     2860  rm -f conftest.$ac_objext 
     2861if { (ac_try="$ac_compile" 
     2862case "(($ac_try" in 
     2863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     2864  *) ac_try_echo=$ac_try;; 
     2865esac 
     2866eval "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 
    31592877  ac_cv_prog_cc_c89=$ac_arg 
    3160 fi 
     2878else 
     2879  echo "$as_me: failed program was:" >&5 
     2880sed 's/^/| /' conftest.$ac_ext >&5 
     2881 
     2882 
     2883fi 
     2884 
    31612885rm -f core conftest.err conftest.$ac_objext 
    31622886  test "x$ac_cv_prog_cc_c89" != "xno" && break 
     
    31692893case "x$ac_cv_prog_cc_c89" in 
    31702894  x) 
    3171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 
    3172 $as_echo "none needed" >&6; } ;; 
     2895    { echo "$as_me:$LINENO: result: none needed" >&5 
     2896echo "${ECHO_T}none needed" >&6; } ;; 
    31732897  xno) 
    3174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 
    3175 $as_echo "unsupported" >&6; } ;; 
     2898    { echo "$as_me:$LINENO: result: unsupported" >&5 
     2899echo "${ECHO_T}unsupported" >&6; } ;; 
    31762900  *) 
    31772901    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 
     2903echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 
     2904esac 
     2905 
    31842906 
    31852907ac_ext=c 
     
    32032925    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 
    32042926set dummy $ac_tool_prefix$ac_prog; ac_word=$2 
    3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 
    3206 $as_echo_n "checking for $ac_word... " >&6; } 
    3207 if test "${ac_cv_prog_CXX+set}" = set; then : 
    3208   $as_echo_n "(cached) " >&6 
     2927{ echo "$as_me:$LINENO: checking for $ac_word" >&5 
     2928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 
     2929if test "${ac_cv_prog_CXX+set}" = set; then 
     2930  echo $ECHO_N "(cached) $ECHO_C" >&6 
    32092931else 
    32102932  if test -n "$CXX"; then 
     
    32162938  IFS=$as_save_IFS 
    32172939  test -z "$as_dir" && as_dir=. 
    3218     for ac_exec_ext in '' $ac_executable_extensions; do 
     2940  for ac_exec_ext in '' $ac_executable_extensions; do 
    32192941  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    32202942    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" >&5 
     2943    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
    32222944    break 2 
    32232945  fi 
    32242946done 
    3225   done 
     2947done 
    32262948IFS=$as_save_IFS 
    32272949 
     
    32302952CXX=$ac_cv_prog_CXX 
    32312953if test -n "$CXX"; then 
    3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 
    3233 $as_echo "$CXX" >&6; } 
    3234 else 
    3235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 
    3236 $as_echo "no" >&6; } 
     2954  { echo "$as_me:$LINENO: result: $CXX" >&5 
     2955echo "${ECHO_T}$CXX" >&6; } 
     2956else 
     2957  { echo "$as_me:$LINENO: result: no" >&5 
     2958echo "${ECHO_T}no" >&6; } 
    32372959fi 
    32382960 
     
    32472969  # Extract the first word of "$ac_prog", so it can be a program name with args. 
    32482970set dummy $ac_prog; ac_word=$2 
    3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 
    3250 $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) " >&6 
     2971{ echo "$as_me:$LINENO: checking for $ac_word" >&5 
     2972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 
     2973if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 
     2974  echo $ECHO_N "(cached) $ECHO_C" >&6 
    32532975else 
    32542976  if test -n "$ac_ct_CXX"; then 
     
    32602982  IFS=$as_save_IFS 
    32612983  test -z "$as_dir" && as_dir=. 
    3262     for ac_exec_ext in '' $ac_executable_extensions; do 
     2984  for ac_exec_ext in '' $ac_executable_extensions; do 
    32632985  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    32642986    ac_cv_prog_ac_ct_CXX="$ac_prog" 
    3265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
     2987    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 
    32662988    break 2 
    32672989  fi 
    32682990done 
    3269   done 
     2991done 
    32702992IFS=$as_save_IFS 
    32712993 
     
    32742996ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 
    32752997if test -n "$ac_ct_CXX"; then 
    3276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 
    3277 $as_echo "$ac_ct_CXX" >&6; } 
    3278 else 
    3279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 
    3280 $as_echo "no" >&6; } 
     2998  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 
     2999echo "${ECHO_T}$ac_ct_CXX" >&6; } 
     3000else 
     3001  { echo "$as_me:$LINENO: result: no" >&5 
     3002echo "${ECHO_T}no" >&6; } 
    32813003fi 
    32823004 
     
    32903012    case $cross_compiling:$ac_tool_warned in 
    32913013yes:) 
    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 
     3015whose name does not start with the host triplet.  If you think this 
     3016configuration is useful to you, please write to autoconf@gnu.org." >&5 
     3017echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 
     3018whose name does not start with the host triplet.  If you think this 
     3019configuration is useful to you, please write to autoconf@gnu.org." >&2;} 
    32943020ac_tool_warned=yes ;; 
    32953021esac 
     
    33013027fi 
    33023028# 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 
     3029echo "$as_me:$LINENO: checking for C++ compiler version" >&5 
     3030ac_compiler=`set X $ac_compile; echo $2` 
     3031{ (ac_try="$ac_compiler --version >&5" 
     3032case "(($ac_try" in 
     3033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3034  *) ac_try_echo=$ac_try;; 
     3035esac 
     3036eval "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" 
     3042case "(($ac_try" in 
     3043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3044  *) ac_try_echo=$ac_try;; 
     3045esac 
     3046eval "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" 
     3052case "(($ac_try" in 
     3053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3054  *) ac_try_echo=$ac_try;; 
     3055esac 
     3056eval "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 
     3063echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 
     3064if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 
     3065  echo $ECHO_N "(cached) $ECHO_C" >&6 
     3066else 
     3067  cat >conftest.$ac_ext <<_ACEOF 
     3068/* confdefs.h.  */ 
     3069_ACEOF 
     3070cat confdefs.h >>conftest.$ac_ext 
     3071cat >>conftest.$ac_ext <<_ACEOF 
    33333072/* end confdefs.h.  */ 
    33343073 
     
    33443083} 
    33453084_ACEOF 
    3346 if ac_fn_cxx_try_compile "$LINENO"; then : 
     3085rm -f conftest.$ac_objext 
     3086if { (ac_try="$ac_compile" 
     3087case "(($ac_try" in 
     3088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3089  *) ac_try_echo=$ac_try;; 
     3090esac 
     3091eval "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 
    33473102  ac_compiler_gnu=yes 
    33483103else 
    3349   ac_compiler_gnu=no 
    3350 fi 
     3104  echo "$as_me: failed program was:" >&5 
     3105sed 's/^/| /' conftest.$ac_ext >&5 
     3106 
     3107        ac_compiler_gnu=no 
     3108fi 
     3109 
    33513110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    33523111ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 
    33533112 
    33543113fi 
    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 
     3115echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 
     3116GXX=`test $ac_compiler_gnu = yes && echo yes` 
    33623117ac_test_CXXFLAGS=${CXXFLAGS+set} 
    33633118ac_save_CXXFLAGS=$CXXFLAGS 
    3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 
    3365 $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) " >&6 
     3119{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 
     3120echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 
     3121if test "${ac_cv_prog_cxx_g+set}" = set; then 
     3122  echo $ECHO_N "(cached) $ECHO_C" >&6 
    33683123else 
    33693124  ac_save_cxx_werror_flag=$ac_cxx_werror_flag 
     
    33713126   ac_cv_prog_cxx_g=no 
    33723127   CXXFLAGS="-g" 
    3373    cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3128   cat >conftest.$ac_ext <<_ACEOF 
     3129/* confdefs.h.  */ 
     3130_ACEOF 
     3131cat confdefs.h >>conftest.$ac_ext 
     3132cat >>conftest.$ac_ext <<_ACEOF 
    33743133/* end confdefs.h.  */ 
    33753134 
     
    33823141} 
    33833142_ACEOF 
    3384 if ac_fn_cxx_try_compile "$LINENO"; then : 
     3143rm -f conftest.$ac_objext 
     3144if { (ac_try="$ac_compile" 
     3145case "(($ac_try" in 
     3146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3147  *) ac_try_echo=$ac_try;; 
     3148esac 
     3149eval "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 
    33853160  ac_cv_prog_cxx_g=yes 
    33863161else 
    3387   CXXFLAGS="" 
    3388       cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3162  echo "$as_me: failed program was:" >&5 
     3163sed 's/^/| /' conftest.$ac_ext >&5 
     3164 
     3165        CXXFLAGS="" 
     3166      cat >conftest.$ac_ext <<_ACEOF 
     3167/* confdefs.h.  */ 
     3168_ACEOF 
     3169cat confdefs.h >>conftest.$ac_ext 
     3170cat >>conftest.$ac_ext <<_ACEOF 
    33893171/* end confdefs.h.  */ 
    33903172 
     
    33973179} 
    33983180_ACEOF 
    3399 if ac_fn_cxx_try_compile "$LINENO"; then : 
    3400  
    3401 else 
    3402   ac_cxx_werror_flag=$ac_save_cxx_werror_flag 
     3181rm -f conftest.$ac_objext 
     3182if { (ac_try="$ac_compile" 
     3183case "(($ac_try" in 
     3184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3185  *) ac_try_echo=$ac_try;; 
     3186esac 
     3187eval "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  : 
     3199else 
     3200  echo "$as_me: failed program was:" >&5 
     3201sed 's/^/| /' conftest.$ac_ext >&5 
     3202 
     3203        ac_cxx_werror_flag=$ac_save_cxx_werror_flag 
    34033204         CXXFLAGS="-g" 
    3404          cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3205         cat >conftest.$ac_ext <<_ACEOF 
     3206/* confdefs.h.  */ 
     3207_ACEOF 
     3208cat confdefs.h >>conftest.$ac_ext 
     3209cat >>conftest.$ac_ext <<_ACEOF 
    34053210/* end confdefs.h.  */ 
    34063211 
     
    34133218} 
    34143219_ACEOF 
    3415 if ac_fn_cxx_try_compile "$LINENO"; then : 
     3220rm -f conftest.$ac_objext 
     3221if { (ac_try="$ac_compile" 
     3222case "(($ac_try" in 
     3223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3224  *) ac_try_echo=$ac_try;; 
     3225esac 
     3226eval "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 
    34163237  ac_cv_prog_cxx_g=yes 
    3417 fi 
     3238else 
     3239  echo "$as_me: failed program was:" >&5 
     3240sed 's/^/| /' conftest.$ac_ext >&5 
     3241 
     3242 
     3243fi 
     3244 
    34183245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    34193246fi 
     3247 
    34203248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    34213249fi 
     3250 
    34223251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    34233252   ac_cxx_werror_flag=$ac_save_cxx_werror_flag 
    34243253fi 
    3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 
    3426 $as_echo "$ac_cv_prog_cxx_g" >&6; } 
     3254{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 
     3255echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 
    34273256if test "$ac_test_CXXFLAGS" = set; then 
    34283257  CXXFLAGS=$ac_save_CXXFLAGS 
     
    34613290if test "$LD" = ""; then LD="$CC"; fi 
    34623291 
    3463 if test "$LDOUT" = ""; then LDOUT="-o"; fi 
     3292if test "$LDOUT" = ""; then LDOUT="-o "; fi 
    34643293 
    34653294if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi 
     
    34713300if test "$LIBEXT2" = ""; then LIBEXT2=""; fi 
    34723301 
    3473 if test "$CC_OUT" = ""; then CC_OUT="-o"; fi 
     3302if test "$CC_OUT" = ""; then CC_OUT="-o "; fi 
    34743303 
    34753304if test "$CC_INC" = ""; then CC_INC="-I"; fi 
     
    35023331 
    35033332 
    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 
     3335echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } 
     3336if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 
     3337  echo $ECHO_N "(cached) $ECHO_C" >&6 
    35083338else 
    35093339  ac_check_lib_save_LIBS=$LIBS 
    35103340LIBS="-lpthread  $LIBS" 
    3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3341cat >conftest.$ac_ext <<_ACEOF 
     3342/* confdefs.h.  */ 
     3343_ACEOF 
     3344cat confdefs.h >>conftest.$ac_ext 
     3345cat >>conftest.$ac_ext <<_ACEOF 
    35123346/* end confdefs.h.  */ 
    35133347 
     
    35273361} 
    35283362_ACEOF 
    3529 if ac_fn_c_try_link "$LINENO"; then : 
     3363rm -f conftest.$ac_objext conftest$ac_exeext 
     3364if { (ac_try="$ac_link" 
     3365case "(($ac_try" in 
     3366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3367  *) ac_try_echo=$ac_try;; 
     3368esac 
     3369eval "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 
    35303381  ac_cv_lib_pthread_pthread_create=yes 
    35313382else 
    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 
     3384sed 's/^/| /' conftest.$ac_ext >&5 
     3385 
     3386        ac_cv_lib_pthread_pthread_create=no 
     3387fi 
     3388 
     3389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     3390      conftest$ac_exeext conftest.$ac_ext 
    35363391LIBS=$ac_check_lib_save_LIBS 
    35373392fi 
    3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 
    3539 $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 
     3394echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } 
     3395if test $ac_cv_lib_pthread_pthread_create = yes; then 
    35413396  cat >>confdefs.h <<_ACEOF 
    35423397#define HAVE_LIBPTHREAD 1 
     
    35473402fi 
    35483403 
    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 
     3406echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6; } 
     3407if test "${ac_cv_lib_wsock32_puts+set}" = set; then 
     3408  echo $ECHO_N "(cached) $ECHO_C" >&6 
    35533409else 
    35543410  ac_check_lib_save_LIBS=$LIBS 
    35553411LIBS="-lwsock32  $LIBS" 
    3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3412cat >conftest.$ac_ext <<_ACEOF 
     3413/* confdefs.h.  */ 
     3414_ACEOF 
     3415cat confdefs.h >>conftest.$ac_ext 
     3416cat >>conftest.$ac_ext <<_ACEOF 
    35573417/* end confdefs.h.  */ 
    35583418 
     
    35723432} 
    35733433_ACEOF 
    3574 if ac_fn_c_try_link "$LINENO"; then : 
     3434rm -f conftest.$ac_objext conftest$ac_exeext 
     3435if { (ac_try="$ac_link" 
     3436case "(($ac_try" in 
     3437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3438  *) ac_try_echo=$ac_try;; 
     3439esac 
     3440eval "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 
    35753452  ac_cv_lib_wsock32_puts=yes 
    35763453else 
    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 
     3455sed 's/^/| /' conftest.$ac_ext >&5 
     3456 
     3457        ac_cv_lib_wsock32_puts=no 
     3458fi 
     3459 
     3460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     3461      conftest$ac_exeext conftest.$ac_ext 
    35813462LIBS=$ac_check_lib_save_LIBS 
    35823463fi 
    3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5 
    3584 $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 
     3465echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6; } 
     3466if test $ac_cv_lib_wsock32_puts = yes; then 
    35863467  cat >>confdefs.h <<_ACEOF 
    35873468#define HAVE_LIBWSOCK32 1 
     
    35923473fi 
    35933474 
    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 
     3477echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6; } 
     3478if test "${ac_cv_lib_ws2_32_puts+set}" = set; then 
     3479  echo $ECHO_N "(cached) $ECHO_C" >&6 
    35983480else 
    35993481  ac_check_lib_save_LIBS=$LIBS 
    36003482LIBS="-lws2_32  $LIBS" 
    3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3483cat >conftest.$ac_ext <<_ACEOF 
     3484/* confdefs.h.  */ 
     3485_ACEOF 
     3486cat confdefs.h >>conftest.$ac_ext 
     3487cat >>conftest.$ac_ext <<_ACEOF 
    36023488/* end confdefs.h.  */ 
    36033489 
     
    36173503} 
    36183504_ACEOF 
    3619 if ac_fn_c_try_link "$LINENO"; then : 
     3505rm -f conftest.$ac_objext conftest$ac_exeext 
     3506if { (ac_try="$ac_link" 
     3507case "(($ac_try" in 
     3508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3509  *) ac_try_echo=$ac_try;; 
     3510esac 
     3511eval "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 
    36203523  ac_cv_lib_ws2_32_puts=yes 
    36213524else 
    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 
     3526sed 's/^/| /' conftest.$ac_ext >&5 
     3527 
     3528        ac_cv_lib_ws2_32_puts=no 
     3529fi 
     3530 
     3531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     3532      conftest$ac_exeext conftest.$ac_ext 
    36263533LIBS=$ac_check_lib_save_LIBS 
    36273534fi 
    3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5 
    3629 $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 
     3536echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6; } 
     3537if test $ac_cv_lib_ws2_32_puts = yes; then 
    36313538  cat >>confdefs.h <<_ACEOF 
    36323539#define HAVE_LIBWS2_32 1 
     
    36373544fi 
    36383545 
    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 
     3548echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6; } 
     3549if test "${ac_cv_lib_ole32_puts+set}" = set; then 
     3550  echo $ECHO_N "(cached) $ECHO_C" >&6 
    36433551else 
    36443552  ac_check_lib_save_LIBS=$LIBS 
    36453553LIBS="-lole32  $LIBS" 
    3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3554cat >conftest.$ac_ext <<_ACEOF 
     3555/* confdefs.h.  */ 
     3556_ACEOF 
     3557cat confdefs.h >>conftest.$ac_ext 
     3558cat >>conftest.$ac_ext <<_ACEOF 
    36473559/* end confdefs.h.  */ 
    36483560 
     
    36623574} 
    36633575_ACEOF 
    3664 if ac_fn_c_try_link "$LINENO"; then : 
     3576rm -f conftest.$ac_objext conftest$ac_exeext 
     3577if { (ac_try="$ac_link" 
     3578case "(($ac_try" in 
     3579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3580  *) ac_try_echo=$ac_try;; 
     3581esac 
     3582eval "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 
    36653594  ac_cv_lib_ole32_puts=yes 
    36663595else 
    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 
     3597sed 's/^/| /' conftest.$ac_ext >&5 
     3598 
     3599        ac_cv_lib_ole32_puts=no 
     3600fi 
     3601 
     3602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     3603      conftest$ac_exeext conftest.$ac_ext 
    36713604LIBS=$ac_check_lib_save_LIBS 
    36723605fi 
    3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5 
    3674 $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 
     3607echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6; } 
     3608if test $ac_cv_lib_ole32_puts = yes; then 
    36763609  cat >>confdefs.h <<_ACEOF 
    36773610#define HAVE_LIBOLE32 1 
     
    36823615fi 
    36833616 
    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 
     3619echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6; } 
     3620if test "${ac_cv_lib_winmm_puts+set}" = set; then 
     3621  echo $ECHO_N "(cached) $ECHO_C" >&6 
    36883622else 
    36893623  ac_check_lib_save_LIBS=$LIBS 
    36903624LIBS="-lwinmm  $LIBS" 
    3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3625cat >conftest.$ac_ext <<_ACEOF 
     3626/* confdefs.h.  */ 
     3627_ACEOF 
     3628cat confdefs.h >>conftest.$ac_ext 
     3629cat >>conftest.$ac_ext <<_ACEOF 
    36923630/* end confdefs.h.  */ 
    36933631 
     
    37073645} 
    37083646_ACEOF 
    3709 if ac_fn_c_try_link "$LINENO"; then : 
     3647rm -f conftest.$ac_objext conftest$ac_exeext 
     3648if { (ac_try="$ac_link" 
     3649case "(($ac_try" in 
     3650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3651  *) ac_try_echo=$ac_try;; 
     3652esac 
     3653eval "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 
    37103665  ac_cv_lib_winmm_puts=yes 
    37113666else 
    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 
     3668sed 's/^/| /' conftest.$ac_ext >&5 
     3669 
     3670        ac_cv_lib_winmm_puts=no 
     3671fi 
     3672 
     3673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     3674      conftest$ac_exeext conftest.$ac_ext 
    37163675LIBS=$ac_check_lib_save_LIBS 
    37173676fi 
    3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5 
    3719 $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 
     3678echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6; } 
     3679if test $ac_cv_lib_winmm_puts = yes; then 
    37213680  cat >>confdefs.h <<_ACEOF 
    37223681#define HAVE_LIBWINMM 1 
     
    37273686fi 
    37283687 
    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 
     3690echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6; } 
     3691if test "${ac_cv_lib_socket_puts+set}" = set; then 
     3692  echo $ECHO_N "(cached) $ECHO_C" >&6 
    37333693else 
    37343694  ac_check_lib_save_LIBS=$LIBS 
    37353695LIBS="-lsocket  $LIBS" 
    3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3696cat >conftest.$ac_ext <<_ACEOF 
     3697/* confdefs.h.  */ 
     3698_ACEOF 
     3699cat confdefs.h >>conftest.$ac_ext 
     3700cat >>conftest.$ac_ext <<_ACEOF 
    37373701/* end confdefs.h.  */ 
    37383702 
     
    37523716} 
    37533717_ACEOF 
    3754 if ac_fn_c_try_link "$LINENO"; then : 
     3718rm -f conftest.$ac_objext conftest$ac_exeext 
     3719if { (ac_try="$ac_link" 
     3720case "(($ac_try" in 
     3721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3722  *) ac_try_echo=$ac_try;; 
     3723esac 
     3724eval "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 
    37553736  ac_cv_lib_socket_puts=yes 
    37563737else 
    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 
     3739sed 's/^/| /' conftest.$ac_ext >&5 
     3740 
     3741        ac_cv_lib_socket_puts=no 
     3742fi 
     3743 
     3744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     3745      conftest$ac_exeext conftest.$ac_ext 
    37613746LIBS=$ac_check_lib_save_LIBS 
    37623747fi 
    3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5 
    3764 $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 
     3749echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6; } 
     3750if test $ac_cv_lib_socket_puts = yes; then 
    37663751  cat >>confdefs.h <<_ACEOF 
    37673752#define HAVE_LIBSOCKET 1 
     
    37723757fi 
    37733758 
    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 
     3761echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6; } 
     3762if test "${ac_cv_lib_rt_puts+set}" = set; then 
     3763  echo $ECHO_N "(cached) $ECHO_C" >&6 
    37783764else 
    37793765  ac_check_lib_save_LIBS=$LIBS 
    37803766LIBS="-lrt  $LIBS" 
    3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3767cat >conftest.$ac_ext <<_ACEOF 
     3768/* confdefs.h.  */ 
     3769_ACEOF 
     3770cat confdefs.h >>conftest.$ac_ext 
     3771cat >>conftest.$ac_ext <<_ACEOF 
    37823772/* end confdefs.h.  */ 
    37833773 
     
    37973787} 
    37983788_ACEOF 
    3799 if ac_fn_c_try_link "$LINENO"; then : 
     3789rm -f conftest.$ac_objext conftest$ac_exeext 
     3790if { (ac_try="$ac_link" 
     3791case "(($ac_try" in 
     3792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3793  *) ac_try_echo=$ac_try;; 
     3794esac 
     3795eval "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 
    38003807  ac_cv_lib_rt_puts=yes 
    38013808else 
    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 
     3810sed 's/^/| /' conftest.$ac_ext >&5 
     3811 
     3812        ac_cv_lib_rt_puts=no 
     3813fi 
     3814 
     3815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     3816      conftest$ac_exeext conftest.$ac_ext 
    38063817LIBS=$ac_check_lib_save_LIBS 
    38073818fi 
    3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5 
    3809 $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 
     3820echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6; } 
     3821if test $ac_cv_lib_rt_puts = yes; then 
    38113822  cat >>confdefs.h <<_ACEOF 
    38123823#define HAVE_LIBRT 1 
     
    38173828fi 
    38183829 
    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 
     3832echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6; } 
     3833if test "${ac_cv_lib_nsl_puts+set}" = set; then 
     3834  echo $ECHO_N "(cached) $ECHO_C" >&6 
    38233835else 
    38243836  ac_check_lib_save_LIBS=$LIBS 
    38253837LIBS="-lnsl  $LIBS" 
    3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3838cat >conftest.$ac_ext <<_ACEOF 
     3839/* confdefs.h.  */ 
     3840_ACEOF 
     3841cat confdefs.h >>conftest.$ac_ext 
     3842cat >>conftest.$ac_ext <<_ACEOF 
    38273843/* end confdefs.h.  */ 
    38283844 
     
    38423858} 
    38433859_ACEOF 
    3844 if ac_fn_c_try_link "$LINENO"; then : 
     3860rm -f conftest.$ac_objext conftest$ac_exeext 
     3861if { (ac_try="$ac_link" 
     3862case "(($ac_try" in 
     3863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3864  *) ac_try_echo=$ac_try;; 
     3865esac 
     3866eval "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 
    38453878  ac_cv_lib_nsl_puts=yes 
    38463879else 
    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 
     3881sed 's/^/| /' conftest.$ac_ext >&5 
     3882 
     3883        ac_cv_lib_nsl_puts=no 
     3884fi 
     3885 
     3886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     3887      conftest$ac_exeext conftest.$ac_ext 
    38513888LIBS=$ac_check_lib_save_LIBS 
    38523889fi 
    3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5 
    3854 $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 
     3891echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6; } 
     3892if test $ac_cv_lib_nsl_puts = yes; then 
    38563893  cat >>confdefs.h <<_ACEOF 
    38573894#define HAVE_LIBNSL 1 
     
    38623899fi 
    38633900 
    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 
     3903echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; } 
     3904if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then 
     3905  echo $ECHO_N "(cached) $ECHO_C" >&6 
    38683906else 
    38693907  ac_check_lib_save_LIBS=$LIBS 
    38703908LIBS="-luuid  $LIBS" 
    3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3909cat >conftest.$ac_ext <<_ACEOF 
     3910/* confdefs.h.  */ 
     3911_ACEOF 
     3912cat confdefs.h >>conftest.$ac_ext 
     3913cat >>conftest.$ac_ext <<_ACEOF 
    38723914/* end confdefs.h.  */ 
    38733915 
     
    38873929} 
    38883930_ACEOF 
    3889 if ac_fn_c_try_link "$LINENO"; then : 
     3931rm -f conftest.$ac_objext conftest$ac_exeext 
     3932if { (ac_try="$ac_link" 
     3933case "(($ac_try" in 
     3934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     3935  *) ac_try_echo=$ac_try;; 
     3936esac 
     3937eval "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 
    38903949  ac_cv_lib_uuid_uuid_generate=yes 
    38913950else 
    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 
     3952sed 's/^/| /' conftest.$ac_ext >&5 
     3953 
     3954        ac_cv_lib_uuid_uuid_generate=no 
     3955fi 
     3956 
     3957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     3958      conftest$ac_exeext conftest.$ac_ext 
    38963959LIBS=$ac_check_lib_save_LIBS 
    38973960fi 
    3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 
    3899 $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 
     3962echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; } 
     3963if test $ac_cv_lib_uuid_uuid_generate = yes; then 
    39013964  cat >>confdefs.h <<_ACEOF 
    39023965#define HAVE_LIBUUID 1 
     
    39073970fi 
    39083971 
    3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 
    3910 $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) " >&6 
     3972{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 
     3973echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; } 
     3974if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then 
     3975  echo $ECHO_N "(cached) $ECHO_C" >&6 
    39133976else 
    39143977  ac_check_lib_save_LIBS=$LIBS 
    39153978LIBS="-luuid  $LIBS" 
    3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3979cat >conftest.$ac_ext <<_ACEOF 
     3980/* confdefs.h.  */ 
     3981_ACEOF 
     3982cat confdefs.h >>conftest.$ac_ext 
     3983cat >>conftest.$ac_ext <<_ACEOF 
    39173984/* end confdefs.h.  */ 
    39183985 
     
    39323999} 
    39334000_ACEOF 
    3934 if ac_fn_c_try_link "$LINENO"; then : 
     4001rm -f conftest.$ac_objext conftest$ac_exeext 
     4002if { (ac_try="$ac_link" 
     4003case "(($ac_try" in 
     4004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4005  *) ac_try_echo=$ac_try;; 
     4006esac 
     4007eval "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 
    39354019  ac_cv_lib_uuid_uuid_generate=yes 
    39364020else 
    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 
     4022sed 's/^/| /' conftest.$ac_ext >&5 
     4023 
     4024        ac_cv_lib_uuid_uuid_generate=no 
     4025fi 
     4026 
     4027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     4028      conftest$ac_exeext conftest.$ac_ext 
    39414029LIBS=$ac_check_lib_save_LIBS 
    39424030fi 
    3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 
    3944 $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 
     4032echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; } 
     4033if test $ac_cv_lib_uuid_uuid_generate = yes; then 
    39464034  ac_has_uuid_lib=1 
    39474035fi 
    39484036 
    39494037 
    3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5 
    3951 $as_echo "Setting PJ_M_NAME to $target_cpu" >&6; } 
     4038{ echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5 
     4039echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6; } 
    39524040cat >>confdefs.h <<_ACEOF 
    39534041#define PJ_M_NAME "$target_cpu" 
     
    39554043 
    39564044 
    3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5 
    3958 $as_echo_n "checking memory alignment... " >&6; } 
     4045{ echo "$as_me:$LINENO: checking memory alignment" >&5 
     4046echo $ECHO_N "checking memory alignment... $ECHO_C" >&6; } 
    39594047case $target in 
    39604048    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 
     4054echo "${ECHO_T}8 bytes" >&6; } 
    39654055        ;; 
    39664056    * ) 
    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 
     4062echo "${ECHO_T}4 bytes (default)" >&6; } 
    39714063        ;; 
    39724064esac 
     
    39784070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 
    39794071ac_compiler_gnu=$ac_cv_c_compiler_gnu 
    3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 
    3981 $as_echo_n "checking how to run the C preprocessor... " >&6; } 
     4072{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 
     4073echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 
    39824074# On Suns, sometimes $CPP names a directory. 
    39834075if test -n "$CPP" && test -d "$CPP"; then 
     
    39854077fi 
    39864078if test -z "$CPP"; then 
    3987   if test "${ac_cv_prog_CPP+set}" = set; then : 
    3988   $as_echo_n "(cached) " >&6 
     4079  if test "${ac_cv_prog_CPP+set}" = set; then 
     4080  echo $ECHO_N "(cached) $ECHO_C" >&6 
    39894081else 
    39904082      # Double quotes because CPP needs to be expanded 
     
    40004092  # On the NeXT, cc -E runs the code through the compiler's parser, 
    40014093  # 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 
     4097cat confdefs.h >>conftest.$ac_ext 
     4098cat >>conftest.$ac_ext <<_ACEOF 
    40034099/* end confdefs.h.  */ 
    40044100#ifdef __STDC__ 
     
    40094105                     Syntax error 
    40104106_ACEOF 
    4011 if ac_fn_c_try_cpp "$LINENO"; then : 
    4012  
    4013 else 
     4107if { (ac_try="$ac_cpp conftest.$ac_ext" 
     4108case "(($ac_try" in 
     4109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4110  *) ac_try_echo=$ac_try;; 
     4111esac 
     4112eval "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  : 
     4124else 
     4125  echo "$as_me: failed program was:" >&5 
     4126sed 's/^/| /' conftest.$ac_ext >&5 
     4127 
    40144128  # Broken: fails on valid input. 
    40154129continue 
    40164130fi 
     4131 
    40174132rm -f conftest.err conftest.$ac_ext 
    40184133 
    40194134  # OK, works on sane cases.  Now check whether nonexistent headers 
    40204135  # can be detected and how. 
    4021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     4136  cat >conftest.$ac_ext <<_ACEOF 
     4137/* confdefs.h.  */ 
     4138_ACEOF 
     4139cat confdefs.h >>conftest.$ac_ext 
     4140cat >>conftest.$ac_ext <<_ACEOF 
    40224141/* end confdefs.h.  */ 
    40234142#include <ac_nonexistent.h> 
    40244143_ACEOF 
    4025 if ac_fn_c_try_cpp "$LINENO"; then : 
     4144if { (ac_try="$ac_cpp conftest.$ac_ext" 
     4145case "(($ac_try" in 
     4146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4147  *) ac_try_echo=$ac_try;; 
     4148esac 
     4149eval "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 
    40264160  # Broken: success on invalid input. 
    40274161continue 
    40284162else 
     4163  echo "$as_me: failed program was:" >&5 
     4164sed 's/^/| /' conftest.$ac_ext >&5 
     4165 
    40294166  # Passes both tests. 
    40304167ac_preproc_ok=: 
    40314168break 
    40324169fi 
     4170 
    40334171rm -f conftest.err conftest.$ac_ext 
    40344172 
     
    40364174# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 
    40374175rm -f conftest.err conftest.$ac_ext 
    4038 if $ac_preproc_ok; then : 
     4176if $ac_preproc_ok; then 
    40394177  break 
    40404178fi 
     
    40484186  ac_cv_prog_CPP=$CPP 
    40494187fi 
    4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 
    4051 $as_echo "$CPP" >&6; } 
     4188{ echo "$as_me:$LINENO: result: $CPP" >&5 
     4189echo "${ECHO_T}$CPP" >&6; } 
    40524190ac_preproc_ok=false 
    40534191for ac_c_preproc_warn_flag in '' yes 
     
    40594197  # On the NeXT, cc -E runs the code through the compiler's parser, 
    40604198  # 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 
     4202cat confdefs.h >>conftest.$ac_ext 
     4203cat >>conftest.$ac_ext <<_ACEOF 
    40624204/* end confdefs.h.  */ 
    40634205#ifdef __STDC__ 
     
    40684210                     Syntax error 
    40694211_ACEOF 
    4070 if ac_fn_c_try_cpp "$LINENO"; then : 
    4071  
    4072 else 
     4212if { (ac_try="$ac_cpp conftest.$ac_ext" 
     4213case "(($ac_try" in 
     4214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4215  *) ac_try_echo=$ac_try;; 
     4216esac 
     4217eval "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  : 
     4229else 
     4230  echo "$as_me: failed program was:" >&5 
     4231sed 's/^/| /' conftest.$ac_ext >&5 
     4232 
    40734233  # Broken: fails on valid input. 
    40744234continue 
    40754235fi 
     4236 
    40764237rm -f conftest.err conftest.$ac_ext 
    40774238 
    40784239  # OK, works on sane cases.  Now check whether nonexistent headers 
    40794240  # can be detected and how. 
    4080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     4241  cat >conftest.$ac_ext <<_ACEOF 
     4242/* confdefs.h.  */ 
     4243_ACEOF 
     4244cat confdefs.h >>conftest.$ac_ext 
     4245cat >>conftest.$ac_ext <<_ACEOF 
    40814246/* end confdefs.h.  */ 
    40824247#include <ac_nonexistent.h> 
    40834248_ACEOF 
    4084 if ac_fn_c_try_cpp "$LINENO"; then : 
     4249if { (ac_try="$ac_cpp conftest.$ac_ext" 
     4250case "(($ac_try" in 
     4251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4252  *) ac_try_echo=$ac_try;; 
     4253esac 
     4254eval "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 
    40854265  # Broken: success on invalid input. 
    40864266continue 
    40874267else 
     4268  echo "$as_me: failed program was:" >&5 
     4269sed 's/^/| /' conftest.$ac_ext >&5 
     4270 
    40884271  # Passes both tests. 
    40894272ac_preproc_ok=: 
    40904273break 
    40914274fi 
     4275 
    40924276rm -f conftest.err conftest.$ac_ext 
    40934277 
     
    40954279# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 
    40964280rm -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; } 
     4281if $ac_preproc_ok; then 
     4282  : 
     4283else 
     4284  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 
     4285See \`config.log' for more details." >&5 
     4286echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 
     4287See \`config.log' for more details." >&2;} 
     4288   { (exit 1); exit 1; }; } 
    41044289fi 
    41054290 
     
    41114296 
    41124297 
    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 
     4299echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 
     4300if test "${ac_cv_path_GREP+set}" = set; then 
     4301  echo $ECHO_N "(cached) $ECHO_C" >&6 
     4302else 
     4303  # Extract the first word of "grep ggrep" to use in msg output 
     4304if test -z "$GREP"; then 
     4305set dummy grep ggrep; ac_prog_name=$2 
     4306if test "${ac_cv_path_GREP+set}" = set; then 
     4307  echo $ECHO_N "(cached) $ECHO_C" >&6 
     4308else 
    41194309  ac_path_GREP_found=false 
    4120   # Loop through the user's path and test for each of PROGNAME-LIST 
    4121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 
     4310# Loop through the user's path and test for each of PROGNAME-LIST 
     4311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 
    41224312for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 
    41234313do 
    41244314  IFS=$as_save_IFS 
    41254315  test -z "$as_dir" && as_dir=. 
    4126     for ac_prog in grep ggrep; do 
    4127     for ac_exec_ext in '' $ac_executable_extensions; do 
    4128       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 
    4129       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 
    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. 
    41314321  # Check for GNU $ac_path_GREP 
    41324322case `"$ac_path_GREP" --version 2>&1` in 
     
    41354325*) 
    41364326  ac_count=0 
    4137   $as_echo_n 0123456789 >"conftest.in" 
     4327  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 
    41384328  while : 
    41394329  do 
     
    41414331    mv "conftest.tmp" "conftest.in" 
    41424332    cp "conftest.in" "conftest.nl" 
    4143     $as_echo 'GREP' >> "conftest.nl" 
     4333    echo 'GREP' >> "conftest.nl" 
    41444334    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 
    41454335    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 
    4146     as_fn_arith $ac_count + 1 && ac_count=$as_val 
     4336    ac_count=`expr $ac_count + 1` 
    41474337    if test $ac_count -gt ${ac_path_GREP_max-0}; then 
    41484338      # Best one so far, save it but keep looking for a better one 
     
    41564346esac 
    41574347 
    4158       $ac_path_GREP_found && break 3 
    4159     done 
     4348 
     4349    $ac_path_GREP_found && break 3 
    41604350  done 
    4161   done 
     4351done 
     4352 
     4353done 
    41624354IFS=$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 
     4357fi 
     4358 
     4359GREP="$ac_cv_path_GREP" 
     4360if 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 
     4362echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 
     4363   { (exit 1); exit 1; }; } 
     4364fi 
     4365 
    41664366else 
    41674367  ac_cv_path_GREP=$GREP 
    41684368fi 
    41694369 
    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 
     4371fi 
     4372{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 
     4373echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 
    41734374 GREP="$ac_cv_path_GREP" 
    41744375 
    41754376 
    4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 
    4177 $as_echo_n "checking for egrep... " >&6; } 
    4178 if test "${ac_cv_path_EGREP+set}" = set; then : 
    4179   $as_echo_n "(cached) " >&6 
     4377{ echo "$as_me:$LINENO: checking for egrep" >&5 
     4378echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 
     4379if test "${ac_cv_path_EGREP+set}" = set; then 
     4380  echo $ECHO_N "(cached) $ECHO_C" >&6 
    41804381else 
    41814382  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 
    41824383   then ac_cv_path_EGREP="$GREP -E" 
    41834384   else 
    4184      if test -z "$EGREP"; then 
     4385     # Extract the first word of "egrep" to use in msg output 
     4386if test -z "$EGREP"; then 
     4387set dummy egrep; ac_prog_name=$2 
     4388if test "${ac_cv_path_EGREP+set}" = set; then 
     4389  echo $ECHO_N "(cached) $ECHO_C" >&6 
     4390else 
    41854391  ac_path_EGREP_found=false 
    4186   # Loop through the user's path and test for each of PROGNAME-LIST 
    4187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 
     4392# Loop through the user's path and test for each of PROGNAME-LIST 
     4393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 
    41884394for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 
    41894395do 
    41904396  IFS=$as_save_IFS 
    41914397  test -z "$as_dir" && as_dir=. 
    4192     for ac_prog in egrep; do 
    4193     for ac_exec_ext in '' $ac_executable_extensions; do 
    4194       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 
    4195       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 
    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. 
    41974403  # Check for GNU $ac_path_EGREP 
    41984404case `"$ac_path_EGREP" --version 2>&1` in 
     
    42014407*) 
    42024408  ac_count=0 
    4203   $as_echo_n 0123456789 >"conftest.in" 
     4409  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 
    42044410  while : 
    42054411  do 
     
    42074413    mv "conftest.tmp" "conftest.in" 
    42084414    cp "conftest.in" "conftest.nl" 
    4209     $as_echo 'EGREP' >> "conftest.nl" 
     4415    echo 'EGREP' >> "conftest.nl" 
    42104416    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 
    42114417    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 
    4212     as_fn_arith $ac_count + 1 && ac_count=$as_val 
     4418    ac_count=`expr $ac_count + 1` 
    42134419    if test $ac_count -gt ${ac_path_EGREP_max-0}; then 
    42144420      # Best one so far, save it but keep looking for a better one 
     
    42224428esac 
    42234429 
    4224       $ac_path_EGREP_found && break 3 
    4225     done 
     4430 
     4431    $ac_path_EGREP_found && break 3 
    42264432  done 
    4227   done 
     4433done 
     4434 
     4435done 
    42284436IFS=$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 
     4439fi 
     4440 
     4441EGREP="$ac_cv_path_EGREP" 
     4442if 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 
     4444echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 
     4445   { (exit 1); exit 1; }; } 
     4446fi 
     4447 
    42324448else 
    42334449  ac_cv_path_EGREP=$EGREP 
    42344450fi 
    42354451 
     4452 
    42364453   fi 
    42374454fi 
    4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 
    4239 $as_echo "$ac_cv_path_EGREP" >&6; } 
     4455{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 
     4456echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 
    42404457 EGREP="$ac_cv_path_EGREP" 
    42414458 
    42424459 
    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 
     4461echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 
     4462if test "${ac_cv_header_stdc+set}" = set; then 
     4463  echo $ECHO_N "(cached) $ECHO_C" >&6 
     4464else 
     4465  cat >conftest.$ac_ext <<_ACEOF 
     4466/* confdefs.h.  */ 
     4467_ACEOF 
     4468cat confdefs.h >>conftest.$ac_ext 
     4469cat >>conftest.$ac_ext <<_ACEOF 
    42494470/* end confdefs.h.  */ 
    42504471#include <stdlib.h> 
     
    42614482} 
    42624483_ACEOF 
    4263 if ac_fn_c_try_compile "$LINENO"; then : 
     4484rm -f conftest.$ac_objext 
     4485if { (ac_try="$ac_compile" 
     4486case "(($ac_try" in 
     4487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4488  *) ac_try_echo=$ac_try;; 
     4489esac 
     4490eval "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 
    42644501  ac_cv_header_stdc=yes 
    42654502else 
    4266   ac_cv_header_stdc=no 
    4267 fi 
     4503  echo "$as_me: failed program was:" >&5 
     4504sed 's/^/| /' conftest.$ac_ext >&5 
     4505 
     4506        ac_cv_header_stdc=no 
     4507fi 
     4508 
    42684509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    42694510 
    42704511if test $ac_cv_header_stdc = yes; then 
    42714512  # 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 
     4516cat confdefs.h >>conftest.$ac_ext 
     4517cat >>conftest.$ac_ext <<_ACEOF 
    42734518/* end confdefs.h.  */ 
    42744519#include <string.h> 
     
    42764521_ACEOF 
    42774522if (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  : 
    42804525else 
    42814526  ac_cv_header_stdc=no 
    42824527fi 
    4283 rm -f conftest* 
     4528rm -f -r conftest* 
    42844529 
    42854530fi 
     
    42874532if test $ac_cv_header_stdc = yes; then 
    42884533  # 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 
     4537cat confdefs.h >>conftest.$ac_ext 
     4538cat >>conftest.$ac_ext <<_ACEOF 
    42904539/* end confdefs.h.  */ 
    42914540#include <stdlib.h> 
     
    42934542_ACEOF 
    42944543if (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  : 
    42974546else 
    42984547  ac_cv_header_stdc=no 
    42994548fi 
    4300 rm -f conftest* 
     4549rm -f -r conftest* 
    43014550 
    43024551fi 
     
    43044553if test $ac_cv_header_stdc = yes; then 
    43054554  # /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 
    43074556  : 
    43084557else 
    4309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     4558  cat >conftest.$ac_ext <<_ACEOF 
     4559/* confdefs.h.  */ 
     4560_ACEOF 
     4561cat confdefs.h >>conftest.$ac_ext 
     4562cat >>conftest.$ac_ext <<_ACEOF 
    43104563/* end confdefs.h.  */ 
    43114564#include <ctype.h> 
     
    43344587} 
    43354588_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; } 
     4589rm -f conftest$ac_exeext 
     4590if { (ac_try="$ac_link" 
     4591case "(($ac_try" in 
     4592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4593  *) ac_try_echo=$ac_try;; 
     4594esac 
     4595eval "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;; 
     4603esac 
     4604eval "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  : 
     4610else 
     4611  echo "$as_me: program exited with status $ac_status" >&5 
     4612echo "$as_me: failed program was:" >&5 
     4613sed 's/^/| /' conftest.$ac_ext >&5 
     4614 
     4615( exit $ac_status ) 
     4616ac_cv_header_stdc=no 
     4617fi 
     4618rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 
     4619fi 
     4620 
     4621 
     4622fi 
     4623fi 
     4624{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 
     4625echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 
    43494626if test $ac_cv_header_stdc = yes; then 
    43504627 
    4351 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 
     4628cat >>confdefs.h <<\_ACEOF 
     4629#define STDC_HEADERS 1 
     4630_ACEOF 
    43524631 
    43534632fi 
    43544633 
    43554634# On IRIX 5.3, sys/types and inttypes.h are conflicting. 
     4635 
     4636 
     4637 
     4638 
     4639 
     4640 
     4641 
     4642 
     4643 
    43564644for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 
    43574645                  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 : 
     4646do 
     4647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 
     4648{ echo "$as_me:$LINENO: checking for $ac_header" >&5 
     4649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 
     4650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 
     4651  echo $ECHO_N "(cached) $ECHO_C" >&6 
     4652else 
     4653  cat >conftest.$ac_ext <<_ACEOF 
     4654/* confdefs.h.  */ 
     4655_ACEOF 
     4656cat confdefs.h >>conftest.$ac_ext 
     4657cat >>conftest.$ac_ext <<_ACEOF 
     4658/* end confdefs.h.  */ 
     4659$ac_includes_default 
     4660 
     4661#include <$ac_header> 
     4662_ACEOF 
     4663rm -f conftest.$ac_objext 
     4664if { (ac_try="$ac_compile" 
     4665case "(($ac_try" in 
     4666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4667  *) ac_try_echo=$ac_try;; 
     4668esac 
     4669eval "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" 
     4681else 
     4682  echo "$as_me: failed program was:" >&5 
     4683sed 's/^/| /' conftest.$ac_ext >&5 
     4684 
     4685        eval "$as_ac_Header=no" 
     4686fi 
     4687 
     4688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     4689fi 
     4690ac_res=`eval echo '${'$as_ac_Header'}'` 
     4691               { echo "$as_me:$LINENO: result: $ac_res" >&5 
     4692echo "${ECHO_T}$ac_res" >&6; } 
     4693if test `eval echo '${'$as_ac_Header'}'` = yes; then 
    43644694  cat >>confdefs.h <<_ACEOF 
    4365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 
     4695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 
    43664696_ACEOF 
    43674697 
     
    43714701 
    43724702 
    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 
     4704echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 
     4705if test "${ac_cv_c_bigendian+set}" = set; then 
     4706  echo $ECHO_N "(cached) $ECHO_C" >&6 
     4707else 
     4708  # See if sys/param.h defines the BYTE_ORDER macro. 
     4709cat >conftest.$ac_ext <<_ACEOF 
     4710/* confdefs.h.  */ 
     4711_ACEOF 
     4712cat confdefs.h >>conftest.$ac_ext 
     4713cat >>conftest.$ac_ext <<_ACEOF 
    44164714/* end confdefs.h.  */ 
    44174715#include <sys/types.h> 
    4418              #include <sys/param.h> 
     4716#include <sys/param.h> 
    44194717 
    44204718int 
    44214719main () 
    44224720{ 
    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 
    44284725 
    44294726  ; 
     
    44314728} 
    44324729_ACEOF 
    4433 if ac_fn_c_try_compile "$LINENO"; then : 
     4730rm -f conftest.$ac_objext 
     4731if { (ac_try="$ac_compile" 
     4732case "(($ac_try" in 
     4733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4734  *) ac_try_echo=$ac_try;; 
     4735esac 
     4736eval "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 
    44344747  # It does; now see whether it defined to BIG_ENDIAN or not. 
    4435          cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     4748cat >conftest.$ac_ext <<_ACEOF 
     4749/* confdefs.h.  */ 
     4750_ACEOF 
     4751cat confdefs.h >>conftest.$ac_ext 
     4752cat >>conftest.$ac_ext <<_ACEOF 
    44364753/* end confdefs.h.  */ 
    44374754#include <sys/types.h> 
    4438                 #include <sys/param.h> 
     4755#include <sys/param.h> 
    44394756 
    44404757int 
     
    44424759{ 
    44434760#if BYTE_ORDER != BIG_ENDIAN 
    4444                 not big endian 
    4445                 #endif 
     4761 not big endian 
     4762#endif 
    44464763 
    44474764  ; 
     
    44494766} 
    44504767_ACEOF 
    4451 if ac_fn_c_try_compile "$LINENO"; then : 
     4768rm -f conftest.$ac_objext 
     4769if { (ac_try="$ac_compile" 
     4770case "(($ac_try" in 
     4771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4772  *) ac_try_echo=$ac_try;; 
     4773esac 
     4774eval "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 
    44524785  ac_cv_c_bigendian=yes 
    44534786else 
    4454   ac_cv_c_bigendian=no 
    4455 fi 
     4787  echo "$as_me: failed program was:" >&5 
     4788sed 's/^/| /' conftest.$ac_ext >&5 
     4789 
     4790        ac_cv_c_bigendian=no 
     4791fi 
     4792 
    44564793rm -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  
     4794else 
     4795  echo "$as_me: failed program was:" >&5 
     4796sed 's/^/| /' conftest.$ac_ext >&5 
     4797 
     4798        # It does not; compile a test program. 
     4799if 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 
     4805cat confdefs.h >>conftest.$ac_ext 
     4806cat >>conftest.$ac_ext <<_ACEOF 
     4807/* end confdefs.h.  */ 
     4808short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 
     4809short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 
     4810void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 
     4811short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 
     4812short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 
     4813void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 
    44664814int 
    44674815main () 
    44684816{ 
    4469 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 
    4470               bogus endian macros 
    4471              #endif 
    4472  
     4817 _ascii (); _ebcdic (); 
    44734818  ; 
    44744819  return 0; 
    44754820} 
    44764821_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 : 
     4822rm -f conftest.$ac_objext 
     4823if { (ac_try="$ac_compile" 
     4824case "(($ac_try" in 
     4825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4826  *) ac_try_echo=$ac_try;; 
     4827esac 
     4828eval "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 
    44954840  ac_cv_c_bigendian=yes 
    4496 else 
    4497   ac_cv_c_bigendian=no 
    4498 fi 
     4841fi 
     4842if 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 
     4849fi 
     4850else 
     4851  echo "$as_me: failed program was:" >&5 
     4852sed 's/^/| /' conftest.$ac_ext >&5 
     4853 
     4854 
     4855fi 
     4856 
    44994857rm -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 
     4858else 
     4859  cat >conftest.$ac_ext <<_ACEOF 
     4860/* confdefs.h.  */ 
     4861_ACEOF 
     4862cat confdefs.h >>conftest.$ac_ext 
     4863cat >>conftest.$ac_ext <<_ACEOF 
    45494864/* end confdefs.h.  */ 
    45504865$ac_includes_default 
     
    45534868{ 
    45544869 
    4555              /* Are we little or big endian?  From Harbison&Steele.  */ 
    4556              union 
    4557              { 
    4558                long int l; 
    4559                char c[sizeof (long int)]; 
    4560              } u; 
    4561              u.l = 1; 
    4562              return u.c[sizeof (long int) - 1] == 1; 
     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; 
    45634878 
    45644879  ; 
     
    45664881} 
    45674882_ACEOF 
    4568 if ac_fn_c_try_run "$LINENO"; then : 
     4883rm -f conftest$ac_exeext 
     4884if { (ac_try="$ac_link" 
     4885case "(($ac_try" in 
     4886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4887  *) ac_try_echo=$ac_try;; 
     4888esac 
     4889eval "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;; 
     4897esac 
     4898eval "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 
    45694903  ac_cv_c_bigendian=no 
    45704904else 
    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 
     4906echo "$as_me: failed program was:" >&5 
     4907sed 's/^/| /' conftest.$ac_ext >&5 
     4908 
     4909( exit $ac_status ) 
     4910ac_cv_c_bigendian=yes 
     4911fi 
     4912rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 
     4913fi 
     4914 
     4915 
     4916fi 
     4917 
     4918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     4919fi 
     4920{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 
     4921echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 
     4922case $ac_cv_c_bigendian in 
     4923  yes) 
     4924 
     4925cat >>confdefs.h <<\_ACEOF 
     4926#define WORDS_BIGENDIAN 1 
     4927_ACEOF 
     4928 ;; 
     4929  no) 
     4930     ;; 
     4931  *) 
     4932    { { echo "$as_me:$LINENO: error: unknown endianness 
     4933presetting ac_cv_c_bigendian=no (or yes) will help" >&5 
     4934echo "$as_me: error: unknown endianness 
     4935presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 
     4936   { (exit 1); exit 1; }; } ;; 
     4937esac 
     4938 
     4939 
     4940if test "x$ac_cv_c_bigendian" = "xyes"; then 
     4941  CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0" 
     4942else 
     4943  CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1" 
     4944fi 
    45974945 
    45984946case $target in 
    45994947    *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 
    46054959 
    46064960        ;; 
    46074961    *darwin*) 
    4608         $as_echo "#define PJ_DARWINOS 1" >>confdefs.h 
     4962        cat >>confdefs.h <<\_ACEOF 
     4963#define PJ_DARWINOS 1 
     4964_ACEOF 
    46094965 
    46104966        ;; 
    46114967    *linux*) 
    4612         $as_echo "#define PJ_LINUX 1" >>confdefs.h 
     4968        cat >>confdefs.h <<\_ACEOF 
     4969#define PJ_LINUX 1 
     4970_ACEOF 
    46134971 
    46144972        ;; 
    46154973    *rtems*) 
    4616         $as_echo "#define PJ_RTEMS 1" >>confdefs.h 
     4974        cat >>confdefs.h <<\_ACEOF 
     4975#define PJ_RTEMS 1 
     4976_ACEOF 
    46174977 
    46184978        ;; 
    46194979    *sunos* | *solaris* ) 
    4620         $as_echo "#define PJ_SUNOS 1" >>confdefs.h 
     4980        cat >>confdefs.h <<\_ACEOF 
     4981#define PJ_SUNOS 1 
     4982_ACEOF 
    46214983 
    46224984        ;; 
     
    46294991 
    46304992# Check whether --enable-floating-point was given. 
    4631 if test "${enable_floating_point+set}" = set; then : 
     4993if test "${enable_floating_point+set}" = set; then 
    46324994  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 
     5000echo "${ECHO_T}Checking if floating point is disabled... yes" >&6; } 
    46375001               fi 
    46385002else 
    46395003 
    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 
     5009echo "${ECHO_T}Checking if floating point is disabled... no" >&6; } 
     5010 
     5011{ echo "$as_me:$LINENO: checking for fmod in -lm" >&5 
     5012echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; } 
     5013if test "${ac_cv_lib_m_fmod+set}" = set; then 
     5014  echo $ECHO_N "(cached) $ECHO_C" >&6 
    46485015else 
    46495016  ac_check_lib_save_LIBS=$LIBS 
    46505017LIBS="-lm  $LIBS" 
    4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     5018cat >conftest.$ac_ext <<_ACEOF 
     5019/* confdefs.h.  */ 
     5020_ACEOF 
     5021cat confdefs.h >>conftest.$ac_ext 
     5022cat >>conftest.$ac_ext <<_ACEOF 
    46525023/* end confdefs.h.  */ 
    46535024 
     
    46675038} 
    46685039_ACEOF 
    4669 if ac_fn_c_try_link "$LINENO"; then : 
     5040rm -f conftest.$ac_objext conftest$ac_exeext 
     5041if { (ac_try="$ac_link" 
     5042case "(($ac_try" in 
     5043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     5044  *) ac_try_echo=$ac_try;; 
     5045esac 
     5046eval "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 
    46705058  ac_cv_lib_m_fmod=yes 
    46715059else 
    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 
     5061sed 's/^/| /' conftest.$ac_ext >&5 
     5062 
     5063        ac_cv_lib_m_fmod=no 
     5064fi 
     5065 
     5066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     5067      conftest$ac_exeext conftest.$ac_ext 
    46765068LIBS=$ac_check_lib_save_LIBS 
    46775069fi 
    4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5 
    4679 $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 
     5071echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; } 
     5072if test $ac_cv_lib_m_fmod = yes; then 
    46815073  cat >>confdefs.h <<_ACEOF 
    46825074#define HAVE_LIBM 1 
     
    46925084 
    46935085 
    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 
     5086if test "${ac_cv_header_arpa_inet_h+set}" = set; then 
     5087  { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 
     5088echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } 
     5089if test "${ac_cv_header_arpa_inet_h+set}" = set; then 
     5090  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5091fi 
     5092{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 
     5093echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } 
     5094else 
     5095  # Is the header compilable? 
     5096{ echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 
     5097echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; } 
     5098cat >conftest.$ac_ext <<_ACEOF 
     5099/* confdefs.h.  */ 
     5100_ACEOF 
     5101cat confdefs.h >>conftest.$ac_ext 
     5102cat >>conftest.$ac_ext <<_ACEOF 
     5103/* end confdefs.h.  */ 
     5104$ac_includes_default 
     5105#include <arpa/inet.h> 
     5106_ACEOF 
     5107rm -f conftest.$ac_objext 
     5108if { (ac_try="$ac_compile" 
     5109case "(($ac_try" in 
     5110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     5111  *) ac_try_echo=$ac_try;; 
     5112esac 
     5113eval "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 
     5125else 
     5126  echo "$as_me: failed program was:" >&5 
     5127sed 's/^/| /' conftest.$ac_ext >&5 
     5128 
     5129        ac_header_compiler=no 
     5130fi 
     5131 
     5132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     5133{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     5134echo "${ECHO_T}$ac_header_compiler" >&6; } 
     5135 
     5136# Is the header present? 
     5137{ echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 
     5138echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; } 
     5139cat >conftest.$ac_ext <<_ACEOF 
     5140/* confdefs.h.  */ 
     5141_ACEOF 
     5142cat confdefs.h >>conftest.$ac_ext 
     5143cat >>conftest.$ac_ext <<_ACEOF 
     5144/* end confdefs.h.  */ 
     5145#include <arpa/inet.h> 
     5146_ACEOF 
     5147if { (ac_try="$ac_cpp conftest.$ac_ext" 
     5148case "(($ac_try" in 
     5149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     5150  *) ac_try_echo=$ac_try;; 
     5151esac 
     5152eval "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 
     5164else 
     5165  echo "$as_me: failed program was:" >&5 
     5166sed 's/^/| /' conftest.$ac_ext >&5 
     5167 
     5168  ac_header_preproc=no 
     5169fi 
     5170 
     5171rm -f conftest.err conftest.$ac_ext 
     5172{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     5173echo "${ECHO_T}$ac_header_preproc" >&6; } 
     5174 
     5175# So?  What about this header? 
     5176case $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 
     5179echo "$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 
     5181echo "$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 
     5186echo "$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 
     5188echo "$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 
     5190echo "$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 
     5192echo "$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 
     5194echo "$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 
     5196echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} 
     5197 
     5198    ;; 
     5199esac 
     5200{ echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 
     5201echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } 
     5202if test "${ac_cv_header_arpa_inet_h+set}" = set; then 
     5203  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5204else 
     5205  ac_cv_header_arpa_inet_h=$ac_header_preproc 
     5206fi 
     5207{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 
     5208echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } 
     5209 
     5210fi 
     5211if 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 
     5216fi 
     5217 
     5218 
     5219if test "${ac_cv_header_assert_h+set}" = set; then 
     5220  { echo "$as_me:$LINENO: checking for assert.h" >&5 
     5221echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } 
     5222if test "${ac_cv_header_assert_h+set}" = set; then 
     5223  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5224fi 
     5225{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 
     5226echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } 
     5227else 
     5228  # Is the header compilable? 
     5229{ echo "$as_me:$LINENO: checking assert.h usability" >&5 
     5230echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; } 
     5231cat >conftest.$ac_ext <<_ACEOF 
     5232/* confdefs.h.  */ 
     5233_ACEOF 
     5234cat confdefs.h >>conftest.$ac_ext 
     5235cat >>conftest.$ac_ext <<_ACEOF 
     5236/* end confdefs.h.  */ 
     5237$ac_includes_default 
     5238#include <assert.h> 
     5239_ACEOF 
     5240rm -f conftest.$ac_objext 
     5241if { (ac_try="$ac_compile" 
     5242case "(($ac_try" in 
     5243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     5244  *) ac_try_echo=$ac_try;; 
     5245esac 
     5246eval "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 
     5258else 
     5259  echo "$as_me: failed program was:" >&5 
     5260sed 's/^/| /' conftest.$ac_ext >&5 
     5261 
     5262        ac_header_compiler=no 
     5263fi 
     5264 
     5265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     5266{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     5267echo "${ECHO_T}$ac_header_compiler" >&6; } 
     5268 
     5269# Is the header present? 
     5270{ echo "$as_me:$LINENO: checking assert.h presence" >&5 
     5271echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; } 
     5272cat >conftest.$ac_ext <<_ACEOF 
     5273/* confdefs.h.  */ 
     5274_ACEOF 
     5275cat confdefs.h >>conftest.$ac_ext 
     5276cat >>conftest.$ac_ext <<_ACEOF 
     5277/* end confdefs.h.  */ 
     5278#include <assert.h> 
     5279_ACEOF 
     5280if { (ac_try="$ac_cpp conftest.$ac_ext" 
     5281case "(($ac_try" in 
     5282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     5283  *) ac_try_echo=$ac_try;; 
     5284esac 
     5285eval "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 
     5297else 
     5298  echo "$as_me: failed program was:" >&5 
     5299sed 's/^/| /' conftest.$ac_ext >&5 
     5300 
     5301  ac_header_preproc=no 
     5302fi 
     5303 
     5304rm -f conftest.err conftest.$ac_ext 
     5305{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     5306echo "${ECHO_T}$ac_header_preproc" >&6; } 
     5307 
     5308# So?  What about this header? 
     5309case $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 
     5312echo "$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 
     5314echo "$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 
     5319echo "$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 
     5321echo "$as_me: WARNING: assert.h:     check for missing prerequisite headers?" >&2;} 
     5322    { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5 
     5323echo "$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 
     5325echo "$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 
     5327echo "$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 
     5329echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;} 
     5330 
     5331    ;; 
     5332esac 
     5333{ echo "$as_me:$LINENO: checking for assert.h" >&5 
     5334echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; } 
     5335if test "${ac_cv_header_assert_h+set}" = set; then 
     5336  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5337else 
     5338  ac_cv_header_assert_h=$ac_header_preproc 
     5339fi 
     5340{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 
     5341echo "${ECHO_T}$ac_cv_header_assert_h" >&6; } 
     5342 
     5343fi 
     5344if test $ac_cv_header_assert_h = yes; then 
     5345  cat >>confdefs.h <<\_ACEOF 
     5346#define PJ_HAS_ASSERT_H 1 
     5347_ACEOF 
     5348 
     5349fi 
     5350 
     5351 
     5352if test "${ac_cv_header_ctype_h+set}" = set; then 
     5353  { echo "$as_me:$LINENO: checking for ctype.h" >&5 
     5354echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } 
     5355if test "${ac_cv_header_ctype_h+set}" = set; then 
     5356  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5357fi 
     5358{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 
     5359echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } 
     5360else 
     5361  # Is the header compilable? 
     5362{ echo "$as_me:$LINENO: checking ctype.h usability" >&5 
     5363echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6; } 
     5364cat >conftest.$ac_ext <<_ACEOF 
     5365/* confdefs.h.  */ 
     5366_ACEOF 
     5367cat confdefs.h >>conftest.$ac_ext 
     5368cat >>conftest.$ac_ext <<_ACEOF 
     5369/* end confdefs.h.  */ 
     5370$ac_includes_default 
     5371#include <ctype.h> 
     5372_ACEOF 
     5373rm -f conftest.$ac_objext 
     5374if { (ac_try="$ac_compile" 
     5375case "(($ac_try" in 
     5376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     5377  *) ac_try_echo=$ac_try;; 
     5378esac 
     5379eval "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 
     5391else 
     5392  echo "$as_me: failed program was:" >&5 
     5393sed 's/^/| /' conftest.$ac_ext >&5 
     5394 
     5395        ac_header_compiler=no 
     5396fi 
     5397 
     5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     5399{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     5400echo "${ECHO_T}$ac_header_compiler" >&6; } 
     5401 
     5402# Is the header present? 
     5403{ echo "$as_me:$LINENO: checking ctype.h presence" >&5 
     5404echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6; } 
     5405cat >conftest.$ac_ext <<_ACEOF 
     5406/* confdefs.h.  */ 
     5407_ACEOF 
     5408cat confdefs.h >>conftest.$ac_ext 
     5409cat >>conftest.$ac_ext <<_ACEOF 
     5410/* end confdefs.h.  */ 
     5411#include <ctype.h> 
     5412_ACEOF 
     5413if { (ac_try="$ac_cpp conftest.$ac_ext" 
     5414case "(($ac_try" in 
     5415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     5416  *) ac_try_echo=$ac_try;; 
     5417esac 
     5418eval "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 
     5430else 
     5431  echo "$as_me: failed program was:" >&5 
     5432sed 's/^/| /' conftest.$ac_ext >&5 
     5433 
     5434  ac_header_preproc=no 
     5435fi 
     5436 
     5437rm -f conftest.err conftest.$ac_ext 
     5438{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     5439echo "${ECHO_T}$ac_header_preproc" >&6; } 
     5440 
     5441# So?  What about this header? 
     5442case $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 
     5445echo "$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 
     5447echo "$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 
     5452echo "$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 
     5454echo "$as_me: WARNING: ctype.h:     check for missing prerequisite headers?" >&2;} 
     5455    { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5 
     5456echo "$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 
     5458echo "$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 
     5460echo "$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 
     5462echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;} 
     5463 
     5464    ;; 
     5465esac 
     5466{ echo "$as_me:$LINENO: checking for ctype.h" >&5 
     5467echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; } 
     5468if test "${ac_cv_header_ctype_h+set}" = set; then 
     5469  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5470else 
     5471  ac_cv_header_ctype_h=$ac_header_preproc 
     5472fi 
     5473{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 
     5474echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; } 
     5475 
     5476fi 
     5477if test $ac_cv_header_ctype_h = yes; then 
     5478  cat >>confdefs.h <<\_ACEOF 
     5479#define PJ_HAS_CTYPE_H 1 
     5480_ACEOF 
    47115481 
    47125482fi 
     
    47165486case $target in 
    47175487    *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 
    47195491 
    47205492        ;; 
    47215493    *) 
    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 
     5496echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 
     5497if test "${ac_cv_header_errno_h+set}" = set; then 
     5498  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5499fi 
     5500{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 
     5501echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 
     5502else 
     5503  # Is the header compilable? 
     5504{ echo "$as_me:$LINENO: checking errno.h usability" >&5 
     5505echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 
     5506cat >conftest.$ac_ext <<_ACEOF 
     5507/* confdefs.h.  */ 
     5508_ACEOF 
     5509cat confdefs.h >>conftest.$ac_ext 
     5510cat >>conftest.$ac_ext <<_ACEOF 
     5511/* end confdefs.h.  */ 
     5512$ac_includes_default 
     5513#include <errno.h> 
     5514_ACEOF 
     5515rm -f conftest.$ac_objext 
     5516if { (ac_try="$ac_compile" 
     5517case "(($ac_try" in 
     5518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     5519  *) ac_try_echo=$ac_try;; 
     5520esac 
     5521eval "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 
     5533else 
     5534  echo "$as_me: failed program was:" >&5 
     5535sed 's/^/| /' conftest.$ac_ext >&5 
     5536 
     5537        ac_header_compiler=no 
     5538fi 
     5539 
     5540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     5541{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     5542echo "${ECHO_T}$ac_header_compiler" >&6; } 
     5543 
     5544# Is the header present? 
     5545{ echo "$as_me:$LINENO: checking errno.h presence" >&5 
     5546echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 
     5547cat >conftest.$ac_ext <<_ACEOF 
     5548/* confdefs.h.  */ 
     5549_ACEOF 
     5550cat confdefs.h >>conftest.$ac_ext 
     5551cat >>conftest.$ac_ext <<_ACEOF 
     5552/* end confdefs.h.  */ 
     5553#include <errno.h> 
     5554_ACEOF 
     5555if { (ac_try="$ac_cpp conftest.$ac_ext" 
     5556case "(($ac_try" in 
     5557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     5558  *) ac_try_echo=$ac_try;; 
     5559esac 
     5560eval "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 
     5572else 
     5573  echo "$as_me: failed program was:" >&5 
     5574sed 's/^/| /' conftest.$ac_ext >&5 
     5575 
     5576  ac_header_preproc=no 
     5577fi 
     5578 
     5579rm -f conftest.err conftest.$ac_ext 
     5580{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     5581echo "${ECHO_T}$ac_header_preproc" >&6; } 
     5582 
     5583# So?  What about this header? 
     5584case $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 
     5587echo "$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 
     5589echo "$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 
     5594echo "$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 
     5596echo "$as_me: WARNING: errno.h:     check for missing prerequisite headers?" >&2;} 
     5597    { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 
     5598echo "$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 
     5600echo "$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 
     5602echo "$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 
     5604echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 
     5605 
     5606    ;; 
     5607esac 
     5608{ echo "$as_me:$LINENO: checking for errno.h" >&5 
     5609echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 
     5610if test "${ac_cv_header_errno_h+set}" = set; then 
     5611  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5612else 
     5613  ac_cv_header_errno_h=$ac_header_preproc 
     5614fi 
     5615{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 
     5616echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 
     5617 
     5618fi 
     5619if test $ac_cv_header_errno_h = yes; then 
     5620  cat >>confdefs.h <<\_ACEOF 
     5621#define PJ_HAS_ERRNO_H 1 
     5622_ACEOF 
    47255623 
    47265624fi 
     
    47305628esac 
    47315629 
    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 
     5630if test "${ac_cv_header_fcntl_h+set}" = set; then 
     5631  { echo "$as_me:$LINENO: checking for fcntl.h" >&5 
     5632echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } 
     5633if test "${ac_cv_header_fcntl_h+set}" = set; then 
     5634  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5635fi 
     5636{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 
     5637echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } 
     5638else 
     5639  # Is the header compilable? 
     5640{ echo "$as_me:$LINENO: checking fcntl.h usability" >&5 
     5641echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6; } 
     5642cat >conftest.$ac_ext <<_ACEOF 
     5643/* confdefs.h.  */ 
     5644_ACEOF 
     5645cat confdefs.h >>conftest.$ac_ext 
     5646cat >>conftest.$ac_ext <<_ACEOF 
     5647/* end confdefs.h.  */ 
     5648$ac_includes_default 
     5649#include <fcntl.h> 
     5650_ACEOF 
     5651rm -f conftest.$ac_objext 
     5652if { (ac_try="$ac_compile" 
     5653case "(($ac_try" in 
     5654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     5655  *) ac_try_echo=$ac_try;; 
     5656esac 
     5657eval "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 
     5669else 
     5670  echo "$as_me: failed program was:" >&5 
     5671sed 's/^/| /' conftest.$ac_ext >&5 
     5672 
     5673        ac_header_compiler=no 
     5674fi 
     5675 
     5676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     5677{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     5678echo "${ECHO_T}$ac_header_compiler" >&6; } 
     5679 
     5680# Is the header present? 
     5681{ echo "$as_me:$LINENO: checking fcntl.h presence" >&5 
     5682echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6; } 
     5683cat >conftest.$ac_ext <<_ACEOF 
     5684/* confdefs.h.  */ 
     5685_ACEOF 
     5686cat confdefs.h >>conftest.$ac_ext 
     5687cat >>conftest.$ac_ext <<_ACEOF 
     5688/* end confdefs.h.  */ 
     5689#include <fcntl.h> 
     5690_ACEOF 
     5691if { (ac_try="$ac_cpp conftest.$ac_ext" 
     5692case "(($ac_try" in 
     5693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     5694  *) ac_try_echo=$ac_try;; 
     5695esac 
     5696eval "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 
     5708else 
     5709  echo "$as_me: failed program was:" >&5 
     5710sed 's/^/| /' conftest.$ac_ext >&5 
     5711 
     5712  ac_header_preproc=no 
     5713fi 
     5714 
     5715rm -f conftest.err conftest.$ac_ext 
     5716{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     5717echo "${ECHO_T}$ac_header_preproc" >&6; } 
     5718 
     5719# So?  What about this header? 
     5720case $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 
     5723echo "$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 
     5725echo "$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 
     5730echo "$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 
     5732echo "$as_me: WARNING: fcntl.h:     check for missing prerequisite headers?" >&2;} 
     5733    { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5 
     5734echo "$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 
     5736echo "$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 
     5738echo "$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 
     5740echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;} 
     5741 
     5742    ;; 
     5743esac 
     5744{ echo "$as_me:$LINENO: checking for fcntl.h" >&5 
     5745echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; } 
     5746if test "${ac_cv_header_fcntl_h+set}" = set; then 
     5747  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5748else 
     5749  ac_cv_header_fcntl_h=$ac_header_preproc 
     5750fi 
     5751{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 
     5752echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; } 
     5753 
     5754fi 
     5755if test $ac_cv_header_fcntl_h = yes; then 
     5756  cat >>confdefs.h <<\_ACEOF 
     5757#define PJ_HAS_FCNTL_H 1 
     5758_ACEOF 
     5759 
     5760fi 
     5761 
     5762 
     5763if test "${ac_cv_header_linux_socket_h+set}" = set; then 
     5764  { echo "$as_me:$LINENO: checking for linux/socket.h" >&5 
     5765echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } 
     5766if test "${ac_cv_header_linux_socket_h+set}" = set; then 
     5767  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5768fi 
     5769{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 
     5770echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } 
     5771else 
     5772  # Is the header compilable? 
     5773{ echo "$as_me:$LINENO: checking linux/socket.h usability" >&5 
     5774echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6; } 
     5775cat >conftest.$ac_ext <<_ACEOF 
     5776/* confdefs.h.  */ 
     5777_ACEOF 
     5778cat confdefs.h >>conftest.$ac_ext 
     5779cat >>conftest.$ac_ext <<_ACEOF 
     5780/* end confdefs.h.  */ 
     5781$ac_includes_default 
     5782#include <linux/socket.h> 
     5783_ACEOF 
     5784rm -f conftest.$ac_objext 
     5785if { (ac_try="$ac_compile" 
     5786case "(($ac_try" in 
     5787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     5788  *) ac_try_echo=$ac_try;; 
     5789esac 
     5790eval "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 
     5802else 
     5803  echo "$as_me: failed program was:" >&5 
     5804sed 's/^/| /' conftest.$ac_ext >&5 
     5805 
     5806        ac_header_compiler=no 
     5807fi 
     5808 
     5809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     5810{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     5811echo "${ECHO_T}$ac_header_compiler" >&6; } 
     5812 
     5813# Is the header present? 
     5814{ echo "$as_me:$LINENO: checking linux/socket.h presence" >&5 
     5815echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6; } 
     5816cat >conftest.$ac_ext <<_ACEOF 
     5817/* confdefs.h.  */ 
     5818_ACEOF 
     5819cat confdefs.h >>conftest.$ac_ext 
     5820cat >>conftest.$ac_ext <<_ACEOF 
     5821/* end confdefs.h.  */ 
     5822#include <linux/socket.h> 
     5823_ACEOF 
     5824if { (ac_try="$ac_cpp conftest.$ac_ext" 
     5825case "(($ac_try" in 
     5826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     5827  *) ac_try_echo=$ac_try;; 
     5828esac 
     5829eval "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 
     5841else 
     5842  echo "$as_me: failed program was:" >&5 
     5843sed 's/^/| /' conftest.$ac_ext >&5 
     5844 
     5845  ac_header_preproc=no 
     5846fi 
     5847 
     5848rm -f conftest.err conftest.$ac_ext 
     5849{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     5850echo "${ECHO_T}$ac_header_preproc" >&6; } 
     5851 
     5852# So?  What about this header? 
     5853case $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 
     5856echo "$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 
     5858echo "$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 
     5863echo "$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 
     5865echo "$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 
     5867echo "$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 
     5869echo "$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 
     5871echo "$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 
     5873echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;} 
     5874 
     5875    ;; 
     5876esac 
     5877{ echo "$as_me:$LINENO: checking for linux/socket.h" >&5 
     5878echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; } 
     5879if test "${ac_cv_header_linux_socket_h+set}" = set; then 
     5880  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5881else 
     5882  ac_cv_header_linux_socket_h=$ac_header_preproc 
     5883fi 
     5884{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 
     5885echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; } 
     5886 
     5887fi 
     5888if 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 
     5893fi 
     5894 
     5895 
     5896if test "${ac_cv_header_limits_h+set}" = set; then 
     5897  { echo "$as_me:$LINENO: checking for limits.h" >&5 
     5898echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 
     5899if test "${ac_cv_header_limits_h+set}" = set; then 
     5900  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5901fi 
     5902{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 
     5903echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 
     5904else 
     5905  # Is the header compilable? 
     5906{ echo "$as_me:$LINENO: checking limits.h usability" >&5 
     5907echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 
     5908cat >conftest.$ac_ext <<_ACEOF 
     5909/* confdefs.h.  */ 
     5910_ACEOF 
     5911cat confdefs.h >>conftest.$ac_ext 
     5912cat >>conftest.$ac_ext <<_ACEOF 
     5913/* end confdefs.h.  */ 
     5914$ac_includes_default 
     5915#include <limits.h> 
     5916_ACEOF 
     5917rm -f conftest.$ac_objext 
     5918if { (ac_try="$ac_compile" 
     5919case "(($ac_try" in 
     5920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     5921  *) ac_try_echo=$ac_try;; 
     5922esac 
     5923eval "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 
     5935else 
     5936  echo "$as_me: failed program was:" >&5 
     5937sed 's/^/| /' conftest.$ac_ext >&5 
     5938 
     5939        ac_header_compiler=no 
     5940fi 
     5941 
     5942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     5943{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     5944echo "${ECHO_T}$ac_header_compiler" >&6; } 
     5945 
     5946# Is the header present? 
     5947{ echo "$as_me:$LINENO: checking limits.h presence" >&5 
     5948echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 
     5949cat >conftest.$ac_ext <<_ACEOF 
     5950/* confdefs.h.  */ 
     5951_ACEOF 
     5952cat confdefs.h >>conftest.$ac_ext 
     5953cat >>conftest.$ac_ext <<_ACEOF 
     5954/* end confdefs.h.  */ 
     5955#include <limits.h> 
     5956_ACEOF 
     5957if { (ac_try="$ac_cpp conftest.$ac_ext" 
     5958case "(($ac_try" in 
     5959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     5960  *) ac_try_echo=$ac_try;; 
     5961esac 
     5962eval "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 
     5974else 
     5975  echo "$as_me: failed program was:" >&5 
     5976sed 's/^/| /' conftest.$ac_ext >&5 
     5977 
     5978  ac_header_preproc=no 
     5979fi 
     5980 
     5981rm -f conftest.err conftest.$ac_ext 
     5982{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     5983echo "${ECHO_T}$ac_header_preproc" >&6; } 
     5984 
     5985# So?  What about this header? 
     5986case $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 
     5989echo "$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 
     5991echo "$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 
     5996echo "$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 
     5998echo "$as_me: WARNING: limits.h:     check for missing prerequisite headers?" >&2;} 
     5999    { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 
     6000echo "$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 
     6002echo "$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 
     6004echo "$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 
     6006echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 
     6007 
     6008    ;; 
     6009esac 
     6010{ echo "$as_me:$LINENO: checking for limits.h" >&5 
     6011echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 
     6012if test "${ac_cv_header_limits_h+set}" = set; then 
     6013  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6014else 
     6015  ac_cv_header_limits_h=$ac_header_preproc 
     6016fi 
     6017{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 
     6018echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 
     6019 
     6020fi 
     6021if test $ac_cv_header_limits_h = yes; then 
     6022  cat >>confdefs.h <<\_ACEOF 
     6023#define PJ_HAS_LIMITS_H 1 
     6024_ACEOF 
     6025 
     6026fi 
     6027 
     6028 
     6029if test "${ac_cv_header_malloc_h+set}" = set; then 
     6030  { echo "$as_me:$LINENO: checking for malloc.h" >&5 
     6031echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } 
     6032if test "${ac_cv_header_malloc_h+set}" = set; then 
     6033  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6034fi 
     6035{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 
     6036echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } 
     6037else 
     6038  # Is the header compilable? 
     6039{ echo "$as_me:$LINENO: checking malloc.h usability" >&5 
     6040echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; } 
     6041cat >conftest.$ac_ext <<_ACEOF 
     6042/* confdefs.h.  */ 
     6043_ACEOF 
     6044cat confdefs.h >>conftest.$ac_ext 
     6045cat >>conftest.$ac_ext <<_ACEOF 
     6046/* end confdefs.h.  */ 
     6047$ac_includes_default 
     6048#include <malloc.h> 
     6049_ACEOF 
     6050rm -f conftest.$ac_objext 
     6051if { (ac_try="$ac_compile" 
     6052case "(($ac_try" in 
     6053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6054  *) ac_try_echo=$ac_try;; 
     6055esac 
     6056eval "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 
     6068else 
     6069  echo "$as_me: failed program was:" >&5 
     6070sed 's/^/| /' conftest.$ac_ext >&5 
     6071 
     6072        ac_header_compiler=no 
     6073fi 
     6074 
     6075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     6076{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     6077echo "${ECHO_T}$ac_header_compiler" >&6; } 
     6078 
     6079# Is the header present? 
     6080{ echo "$as_me:$LINENO: checking malloc.h presence" >&5 
     6081echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; } 
     6082cat >conftest.$ac_ext <<_ACEOF 
     6083/* confdefs.h.  */ 
     6084_ACEOF 
     6085cat confdefs.h >>conftest.$ac_ext 
     6086cat >>conftest.$ac_ext <<_ACEOF 
     6087/* end confdefs.h.  */ 
     6088#include <malloc.h> 
     6089_ACEOF 
     6090if { (ac_try="$ac_cpp conftest.$ac_ext" 
     6091case "(($ac_try" in 
     6092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6093  *) ac_try_echo=$ac_try;; 
     6094esac 
     6095eval "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 
     6107else 
     6108  echo "$as_me: failed program was:" >&5 
     6109sed 's/^/| /' conftest.$ac_ext >&5 
     6110 
     6111  ac_header_preproc=no 
     6112fi 
     6113 
     6114rm -f conftest.err conftest.$ac_ext 
     6115{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     6116echo "${ECHO_T}$ac_header_preproc" >&6; } 
     6117 
     6118# So?  What about this header? 
     6119case $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 
     6122echo "$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 
     6124echo "$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 
     6129echo "$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 
     6131echo "$as_me: WARNING: malloc.h:     check for missing prerequisite headers?" >&2;} 
     6132    { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 
     6133echo "$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 
     6135echo "$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 
     6137echo "$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 
     6139echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} 
     6140 
     6141    ;; 
     6142esac 
     6143{ echo "$as_me:$LINENO: checking for malloc.h" >&5 
     6144echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; } 
     6145if test "${ac_cv_header_malloc_h+set}" = set; then 
     6146  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6147else 
     6148  ac_cv_header_malloc_h=$ac_header_preproc 
     6149fi 
     6150{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 
     6151echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; } 
     6152 
     6153fi 
     6154if test $ac_cv_header_malloc_h = yes; then 
     6155  cat >>confdefs.h <<\_ACEOF 
     6156#define PJ_HAS_MALLOC_H 1 
     6157_ACEOF 
     6158 
     6159fi 
     6160 
     6161 
     6162if test "${ac_cv_header_netdb_h+set}" = set; then 
     6163  { echo "$as_me:$LINENO: checking for netdb.h" >&5 
     6164echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } 
     6165if test "${ac_cv_header_netdb_h+set}" = set; then 
     6166  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6167fi 
     6168{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 
     6169echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } 
     6170else 
     6171  # Is the header compilable? 
     6172{ echo "$as_me:$LINENO: checking netdb.h usability" >&5 
     6173echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6; } 
     6174cat >conftest.$ac_ext <<_ACEOF 
     6175/* confdefs.h.  */ 
     6176_ACEOF 
     6177cat confdefs.h >>conftest.$ac_ext 
     6178cat >>conftest.$ac_ext <<_ACEOF 
     6179/* end confdefs.h.  */ 
     6180$ac_includes_default 
     6181#include <netdb.h> 
     6182_ACEOF 
     6183rm -f conftest.$ac_objext 
     6184if { (ac_try="$ac_compile" 
     6185case "(($ac_try" in 
     6186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6187  *) ac_try_echo=$ac_try;; 
     6188esac 
     6189eval "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 
     6201else 
     6202  echo "$as_me: failed program was:" >&5 
     6203sed 's/^/| /' conftest.$ac_ext >&5 
     6204 
     6205        ac_header_compiler=no 
     6206fi 
     6207 
     6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     6209{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     6210echo "${ECHO_T}$ac_header_compiler" >&6; } 
     6211 
     6212# Is the header present? 
     6213{ echo "$as_me:$LINENO: checking netdb.h presence" >&5 
     6214echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6; } 
     6215cat >conftest.$ac_ext <<_ACEOF 
     6216/* confdefs.h.  */ 
     6217_ACEOF 
     6218cat confdefs.h >>conftest.$ac_ext 
     6219cat >>conftest.$ac_ext <<_ACEOF 
     6220/* end confdefs.h.  */ 
     6221#include <netdb.h> 
     6222_ACEOF 
     6223if { (ac_try="$ac_cpp conftest.$ac_ext" 
     6224case "(($ac_try" in 
     6225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6226  *) ac_try_echo=$ac_try;; 
     6227esac 
     6228eval "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 
     6240else 
     6241  echo "$as_me: failed program was:" >&5 
     6242sed 's/^/| /' conftest.$ac_ext >&5 
     6243 
     6244  ac_header_preproc=no 
     6245fi 
     6246 
     6247rm -f conftest.err conftest.$ac_ext 
     6248{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     6249echo "${ECHO_T}$ac_header_preproc" >&6; } 
     6250 
     6251# So?  What about this header? 
     6252case $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 
     6255echo "$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 
     6257echo "$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 
     6262echo "$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 
     6264echo "$as_me: WARNING: netdb.h:     check for missing prerequisite headers?" >&2;} 
     6265    { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5 
     6266echo "$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 
     6268echo "$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 
     6270echo "$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 
     6272echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;} 
     6273 
     6274    ;; 
     6275esac 
     6276{ echo "$as_me:$LINENO: checking for netdb.h" >&5 
     6277echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; } 
     6278if test "${ac_cv_header_netdb_h+set}" = set; then 
     6279  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6280else 
     6281  ac_cv_header_netdb_h=$ac_header_preproc 
     6282fi 
     6283{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 
     6284echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; } 
     6285 
     6286fi 
     6287if test $ac_cv_header_netdb_h = yes; then 
     6288  cat >>confdefs.h <<\_ACEOF 
     6289#define PJ_HAS_NETDB_H 1 
     6290_ACEOF 
     6291 
     6292fi 
     6293 
     6294 
     6295if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then 
     6296  { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 
     6297echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; } 
     6298if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then 
     6299  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6300fi 
     6301{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 
     6302echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; } 
     6303else 
     6304  # Is the header compilable? 
     6305{ echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5 
     6306echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6; } 
     6307cat >conftest.$ac_ext <<_ACEOF 
     6308/* confdefs.h.  */ 
     6309_ACEOF 
     6310cat confdefs.h >>conftest.$ac_ext 
     6311cat >>conftest.$ac_ext <<_ACEOF 
     6312/* end confdefs.h.  */ 
     6313$ac_includes_default 
     6314#include <netinet/in_systm.h> 
     6315_ACEOF 
     6316rm -f conftest.$ac_objext 
     6317if { (ac_try="$ac_compile" 
     6318case "(($ac_try" in 
     6319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6320  *) ac_try_echo=$ac_try;; 
     6321esac 
     6322eval "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 
     6334else 
     6335  echo "$as_me: failed program was:" >&5 
     6336sed 's/^/| /' conftest.$ac_ext >&5 
     6337 
     6338        ac_header_compiler=no 
     6339fi 
     6340 
     6341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     6342{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     6343echo "${ECHO_T}$ac_header_compiler" >&6; } 
     6344 
     6345# Is the header present? 
     6346{ echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5 
     6347echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6; } 
     6348cat >conftest.$ac_ext <<_ACEOF 
     6349/* confdefs.h.  */ 
     6350_ACEOF 
     6351cat confdefs.h >>conftest.$ac_ext 
     6352cat >>conftest.$ac_ext <<_ACEOF 
     6353/* end confdefs.h.  */ 
     6354#include <netinet/in_systm.h> 
     6355_ACEOF 
     6356if { (ac_try="$ac_cpp conftest.$ac_ext" 
     6357case "(($ac_try" in 
     6358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6359  *) ac_try_echo=$ac_try;; 
     6360esac 
     6361eval "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 
     6373else 
     6374  echo "$as_me: failed program was:" >&5 
     6375sed 's/^/| /' conftest.$ac_ext >&5 
     6376 
     6377  ac_header_preproc=no 
     6378fi 
     6379 
     6380rm -f conftest.err conftest.$ac_ext 
     6381{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     6382echo "${ECHO_T}$ac_header_preproc" >&6; } 
     6383 
     6384# So?  What about this header? 
     6385case $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 
     6388echo "$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 
     6390echo "$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 
     6395echo "$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 
     6397echo "$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 
     6399echo "$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 
     6401echo "$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 
     6403echo "$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 
     6405echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;} 
     6406 
     6407    ;; 
     6408esac 
     6409{ echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 
     6410echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; } 
     6411if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then 
     6412  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6413else 
     6414  ac_cv_header_netinet_in_systm_h=$ac_header_preproc 
     6415fi 
     6416{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 
     6417echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; } 
     6418 
     6419fi 
     6420if 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 
     6425fi 
     6426 
     6427 
     6428if test "${ac_cv_header_netinet_in_h+set}" = set; then 
     6429  { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 
     6430echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } 
     6431if test "${ac_cv_header_netinet_in_h+set}" = set; then 
     6432  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6433fi 
     6434{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 
     6435echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } 
     6436else 
     6437  # Is the header compilable? 
     6438{ echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 
     6439echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; } 
     6440cat >conftest.$ac_ext <<_ACEOF 
     6441/* confdefs.h.  */ 
     6442_ACEOF 
     6443cat confdefs.h >>conftest.$ac_ext 
     6444cat >>conftest.$ac_ext <<_ACEOF 
     6445/* end confdefs.h.  */ 
     6446$ac_includes_default 
     6447#include <netinet/in.h> 
     6448_ACEOF 
     6449rm -f conftest.$ac_objext 
     6450if { (ac_try="$ac_compile" 
     6451case "(($ac_try" in 
     6452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6453  *) ac_try_echo=$ac_try;; 
     6454esac 
     6455eval "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 
     6467else 
     6468  echo "$as_me: failed program was:" >&5 
     6469sed 's/^/| /' conftest.$ac_ext >&5 
     6470 
     6471        ac_header_compiler=no 
     6472fi 
     6473 
     6474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     6475{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     6476echo "${ECHO_T}$ac_header_compiler" >&6; } 
     6477 
     6478# Is the header present? 
     6479{ echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 
     6480echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; } 
     6481cat >conftest.$ac_ext <<_ACEOF 
     6482/* confdefs.h.  */ 
     6483_ACEOF 
     6484cat confdefs.h >>conftest.$ac_ext 
     6485cat >>conftest.$ac_ext <<_ACEOF 
     6486/* end confdefs.h.  */ 
     6487#include <netinet/in.h> 
     6488_ACEOF 
     6489if { (ac_try="$ac_cpp conftest.$ac_ext" 
     6490case "(($ac_try" in 
     6491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6492  *) ac_try_echo=$ac_try;; 
     6493esac 
     6494eval "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 
     6506else 
     6507  echo "$as_me: failed program was:" >&5 
     6508sed 's/^/| /' conftest.$ac_ext >&5 
     6509 
     6510  ac_header_preproc=no 
     6511fi 
     6512 
     6513rm -f conftest.err conftest.$ac_ext 
     6514{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     6515echo "${ECHO_T}$ac_header_preproc" >&6; } 
     6516 
     6517# So?  What about this header? 
     6518case $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 
     6521echo "$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 
     6523echo "$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 
     6528echo "$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 
     6530echo "$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 
     6532echo "$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 
     6534echo "$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 
     6536echo "$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 
     6538echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} 
     6539 
     6540    ;; 
     6541esac 
     6542{ echo "$as_me:$LINENO: checking for netinet/in.h" >&5 
     6543echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } 
     6544if test "${ac_cv_header_netinet_in_h+set}" = set; then 
     6545  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6546else 
     6547  ac_cv_header_netinet_in_h=$ac_header_preproc 
     6548fi 
     6549{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 
     6550echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } 
     6551 
     6552fi 
     6553if 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 
     6558fi 
     6559 
     6560 
     6561{ echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 
     6562echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; } 
     6563if test "${ac_cv_header_netinet_ip_h+set}" = set; then 
     6564  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6565else 
     6566  cat >conftest.$ac_ext <<_ACEOF 
     6567/* confdefs.h.  */ 
     6568_ACEOF 
     6569cat confdefs.h >>conftest.$ac_ext 
     6570cat >>conftest.$ac_ext <<_ACEOF 
     6571/* end confdefs.h.  */ 
     6572#if PJ_HAS_SYS_TYPES_H 
    47826573                  #     include <sys/types.h> 
    47836574                  #endif 
     
    47896580                  #endif 
    47906581 
    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 
     6585rm -f conftest.$ac_objext 
     6586if { (ac_try="$ac_compile" 
     6587case "(($ac_try" in 
     6588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6589  *) ac_try_echo=$ac_try;; 
     6590esac 
     6591eval "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 
     6603else 
     6604  echo "$as_me: failed program was:" >&5 
     6605sed 's/^/| /' conftest.$ac_ext >&5 
     6606 
     6607        ac_cv_header_netinet_ip_h=no 
     6608fi 
     6609 
     6610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     6611fi 
     6612{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 
     6613echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; } 
     6614if 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 
     6619fi 
     6620 
     6621 
     6622if test "${ac_cv_header_netinet_tcp_h+set}" = set; then 
     6623  { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5 
     6624echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; } 
     6625if test "${ac_cv_header_netinet_tcp_h+set}" = set; then 
     6626  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6627fi 
     6628{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5 
     6629echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; } 
     6630else 
     6631  # Is the header compilable? 
     6632{ echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5 
     6633echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; } 
     6634cat >conftest.$ac_ext <<_ACEOF 
     6635/* confdefs.h.  */ 
     6636_ACEOF 
     6637cat confdefs.h >>conftest.$ac_ext 
     6638cat >>conftest.$ac_ext <<_ACEOF 
     6639/* end confdefs.h.  */ 
     6640$ac_includes_default 
     6641#include <netinet/tcp.h> 
     6642_ACEOF 
     6643rm -f conftest.$ac_objext 
     6644if { (ac_try="$ac_compile" 
     6645case "(($ac_try" in 
     6646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6647  *) ac_try_echo=$ac_try;; 
     6648esac 
     6649eval "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 
     6661else 
     6662  echo "$as_me: failed program was:" >&5 
     6663sed 's/^/| /' conftest.$ac_ext >&5 
     6664 
     6665        ac_header_compiler=no 
     6666fi 
     6667 
     6668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     6669{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     6670echo "${ECHO_T}$ac_header_compiler" >&6; } 
     6671 
     6672# Is the header present? 
     6673{ echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5 
     6674echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; } 
     6675cat >conftest.$ac_ext <<_ACEOF 
     6676/* confdefs.h.  */ 
     6677_ACEOF 
     6678cat confdefs.h >>conftest.$ac_ext 
     6679cat >>conftest.$ac_ext <<_ACEOF 
     6680/* end confdefs.h.  */ 
     6681#include <netinet/tcp.h> 
     6682_ACEOF 
     6683if { (ac_try="$ac_cpp conftest.$ac_ext" 
     6684case "(($ac_try" in 
     6685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6686  *) ac_try_echo=$ac_try;; 
     6687esac 
     6688eval "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 
     6700else 
     6701  echo "$as_me: failed program was:" >&5 
     6702sed 's/^/| /' conftest.$ac_ext >&5 
     6703 
     6704  ac_header_preproc=no 
     6705fi 
     6706 
     6707rm -f conftest.err conftest.$ac_ext 
     6708{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     6709echo "${ECHO_T}$ac_header_preproc" >&6; } 
     6710 
     6711# So?  What about this header? 
     6712case $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 
     6715echo "$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 
     6717echo "$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 
     6722echo "$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 
     6724echo "$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 
     6726echo "$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 
     6728echo "$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 
     6730echo "$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 
     6732echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;} 
     6733 
     6734    ;; 
     6735esac 
     6736{ echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5 
     6737echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; } 
     6738if test "${ac_cv_header_netinet_tcp_h+set}" = set; then 
     6739  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6740else 
     6741  ac_cv_header_netinet_tcp_h=$ac_header_preproc 
     6742fi 
     6743{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5 
     6744echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; } 
     6745 
     6746fi 
     6747if 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 
     6752fi 
     6753 
     6754 
     6755if test "${ac_cv_header_ifaddrs_h+set}" = set; then 
     6756  { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 
     6757echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } 
     6758if test "${ac_cv_header_ifaddrs_h+set}" = set; then 
     6759  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6760fi 
     6761{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 
     6762echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } 
     6763else 
     6764  # Is the header compilable? 
     6765{ echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5 
     6766echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; } 
     6767cat >conftest.$ac_ext <<_ACEOF 
     6768/* confdefs.h.  */ 
     6769_ACEOF 
     6770cat confdefs.h >>conftest.$ac_ext 
     6771cat >>conftest.$ac_ext <<_ACEOF 
     6772/* end confdefs.h.  */ 
     6773$ac_includes_default 
     6774#include <ifaddrs.h> 
     6775_ACEOF 
     6776rm -f conftest.$ac_objext 
     6777if { (ac_try="$ac_compile" 
     6778case "(($ac_try" in 
     6779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6780  *) ac_try_echo=$ac_try;; 
     6781esac 
     6782eval "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 
     6794else 
     6795  echo "$as_me: failed program was:" >&5 
     6796sed 's/^/| /' conftest.$ac_ext >&5 
     6797 
     6798        ac_header_compiler=no 
     6799fi 
     6800 
     6801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     6802{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     6803echo "${ECHO_T}$ac_header_compiler" >&6; } 
     6804 
     6805# Is the header present? 
     6806{ echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5 
     6807echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; } 
     6808cat >conftest.$ac_ext <<_ACEOF 
     6809/* confdefs.h.  */ 
     6810_ACEOF 
     6811cat confdefs.h >>conftest.$ac_ext 
     6812cat >>conftest.$ac_ext <<_ACEOF 
     6813/* end confdefs.h.  */ 
     6814#include <ifaddrs.h> 
     6815_ACEOF 
     6816if { (ac_try="$ac_cpp conftest.$ac_ext" 
     6817case "(($ac_try" in 
     6818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6819  *) ac_try_echo=$ac_try;; 
     6820esac 
     6821eval "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 
     6833else 
     6834  echo "$as_me: failed program was:" >&5 
     6835sed 's/^/| /' conftest.$ac_ext >&5 
     6836 
     6837  ac_header_preproc=no 
     6838fi 
     6839 
     6840rm -f conftest.err conftest.$ac_ext 
     6841{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     6842echo "${ECHO_T}$ac_header_preproc" >&6; } 
     6843 
     6844# So?  What about this header? 
     6845case $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 
     6848echo "$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 
     6850echo "$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 
     6855echo "$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 
     6857echo "$as_me: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&2;} 
     6858    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5 
     6859echo "$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 
     6861echo "$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 
     6863echo "$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 
     6865echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;} 
     6866 
     6867    ;; 
     6868esac 
     6869{ echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 
     6870echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; } 
     6871if test "${ac_cv_header_ifaddrs_h+set}" = set; then 
     6872  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6873else 
     6874  ac_cv_header_ifaddrs_h=$ac_header_preproc 
     6875fi 
     6876{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 
     6877echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; } 
     6878 
     6879fi 
     6880if test $ac_cv_header_ifaddrs_h = yes; then 
     6881  { echo "$as_me:$LINENO: checking for getifaddrs" >&5 
     6882echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; } 
     6883if test "${ac_cv_func_getifaddrs+set}" = set; then 
     6884  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6885else 
     6886  cat >conftest.$ac_ext <<_ACEOF 
     6887/* confdefs.h.  */ 
     6888_ACEOF 
     6889cat confdefs.h >>conftest.$ac_ext 
     6890cat >>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 
     6913extern "C" 
     6914#endif 
     6915char 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 
     6920choke me 
     6921#endif 
     6922 
     6923int 
     6924main () 
     6925{ 
     6926return getifaddrs (); 
     6927  ; 
     6928  return 0; 
     6929} 
     6930_ACEOF 
     6931rm -f conftest.$ac_objext conftest$ac_exeext 
     6932if { (ac_try="$ac_link" 
     6933case "(($ac_try" in 
     6934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6935  *) ac_try_echo=$ac_try;; 
     6936esac 
     6937eval "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 
     6950else 
     6951  echo "$as_me: failed program was:" >&5 
     6952sed 's/^/| /' conftest.$ac_ext >&5 
     6953 
     6954        ac_cv_func_getifaddrs=no 
     6955fi 
     6956 
     6957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     6958      conftest$ac_exeext conftest.$ac_ext 
     6959fi 
     6960{ echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5 
     6961echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; } 
     6962if test $ac_cv_func_getifaddrs = yes; then 
     6963  cat >>confdefs.h <<\_ACEOF 
     6964#define PJ_HAS_IFADDRS_H 1 
     6965_ACEOF 
     6966 
     6967fi 
     6968 
     6969fi 
     6970 
     6971 
     6972if test "${ac_cv_header_semaphore_h+set}" = set; then 
     6973  { echo "$as_me:$LINENO: checking for semaphore.h" >&5 
     6974echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; } 
     6975if test "${ac_cv_header_semaphore_h+set}" = set; then 
     6976  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6977fi 
     6978{ echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 
     6979echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; } 
     6980else 
     6981  # Is the header compilable? 
     6982{ echo "$as_me:$LINENO: checking semaphore.h usability" >&5 
     6983echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6; } 
     6984cat >conftest.$ac_ext <<_ACEOF 
     6985/* confdefs.h.  */ 
     6986_ACEOF 
     6987cat confdefs.h >>conftest.$ac_ext 
     6988cat >>conftest.$ac_ext <<_ACEOF 
     6989/* end confdefs.h.  */ 
     6990$ac_includes_default 
     6991#include <semaphore.h> 
     6992_ACEOF 
     6993rm -f conftest.$ac_objext 
     6994if { (ac_try="$ac_compile" 
     6995case "(($ac_try" in 
     6996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     6997  *) ac_try_echo=$ac_try;; 
     6998esac 
     6999eval "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 
     7011else 
     7012  echo "$as_me: failed program was:" >&5 
     7013sed 's/^/| /' conftest.$ac_ext >&5 
     7014 
     7015        ac_header_compiler=no 
     7016fi 
     7017 
     7018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     7019{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     7020echo "${ECHO_T}$ac_header_compiler" >&6; } 
     7021 
     7022# Is the header present? 
     7023{ echo "$as_me:$LINENO: checking semaphore.h presence" >&5 
     7024echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6; } 
     7025cat >conftest.$ac_ext <<_ACEOF 
     7026/* confdefs.h.  */ 
     7027_ACEOF 
     7028cat confdefs.h >>conftest.$ac_ext 
     7029cat >>conftest.$ac_ext <<_ACEOF 
     7030/* end confdefs.h.  */ 
     7031#include <semaphore.h> 
     7032_ACEOF 
     7033if { (ac_try="$ac_cpp conftest.$ac_ext" 
     7034case "(($ac_try" in 
     7035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7036  *) ac_try_echo=$ac_try;; 
     7037esac 
     7038eval "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 
     7050else 
     7051  echo "$as_me: failed program was:" >&5 
     7052sed 's/^/| /' conftest.$ac_ext >&5 
     7053 
     7054  ac_header_preproc=no 
     7055fi 
     7056 
     7057rm -f conftest.err conftest.$ac_ext 
     7058{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     7059echo "${ECHO_T}$ac_header_preproc" >&6; } 
     7060 
     7061# So?  What about this header? 
     7062case $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 
     7065echo "$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 
     7067echo "$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 
     7072echo "$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 
     7074echo "$as_me: WARNING: semaphore.h:     check for missing prerequisite headers?" >&2;} 
     7075    { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5 
     7076echo "$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 
     7078echo "$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 
     7080echo "$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 
     7082echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;} 
     7083 
     7084    ;; 
     7085esac 
     7086{ echo "$as_me:$LINENO: checking for semaphore.h" >&5 
     7087echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; } 
     7088if test "${ac_cv_header_semaphore_h+set}" = set; then 
     7089  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7090else 
     7091  ac_cv_header_semaphore_h=$ac_header_preproc 
     7092fi 
     7093{ echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 
     7094echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; } 
     7095 
     7096fi 
     7097if test $ac_cv_header_semaphore_h = yes; then 
     7098  cat >>confdefs.h <<\_ACEOF 
     7099#define PJ_HAS_SEMAPHORE_H 1 
     7100_ACEOF 
     7101 
     7102fi 
     7103 
     7104 
     7105if test "${ac_cv_header_setjmp_h+set}" = set; then 
     7106  { echo "$as_me:$LINENO: checking for setjmp.h" >&5 
     7107echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } 
     7108if test "${ac_cv_header_setjmp_h+set}" = set; then 
     7109  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7110fi 
     7111{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 
     7112echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } 
     7113else 
     7114  # Is the header compilable? 
     7115{ echo "$as_me:$LINENO: checking setjmp.h usability" >&5 
     7116echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6; } 
     7117cat >conftest.$ac_ext <<_ACEOF 
     7118/* confdefs.h.  */ 
     7119_ACEOF 
     7120cat confdefs.h >>conftest.$ac_ext 
     7121cat >>conftest.$ac_ext <<_ACEOF 
     7122/* end confdefs.h.  */ 
     7123$ac_includes_default 
     7124#include <setjmp.h> 
     7125_ACEOF 
     7126rm -f conftest.$ac_objext 
     7127if { (ac_try="$ac_compile" 
     7128case "(($ac_try" in 
     7129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7130  *) ac_try_echo=$ac_try;; 
     7131esac 
     7132eval "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 
     7144else 
     7145  echo "$as_me: failed program was:" >&5 
     7146sed 's/^/| /' conftest.$ac_ext >&5 
     7147 
     7148        ac_header_compiler=no 
     7149fi 
     7150 
     7151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     7152{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     7153echo "${ECHO_T}$ac_header_compiler" >&6; } 
     7154 
     7155# Is the header present? 
     7156{ echo "$as_me:$LINENO: checking setjmp.h presence" >&5 
     7157echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6; } 
     7158cat >conftest.$ac_ext <<_ACEOF 
     7159/* confdefs.h.  */ 
     7160_ACEOF 
     7161cat confdefs.h >>conftest.$ac_ext 
     7162cat >>conftest.$ac_ext <<_ACEOF 
     7163/* end confdefs.h.  */ 
     7164#include <setjmp.h> 
     7165_ACEOF 
     7166if { (ac_try="$ac_cpp conftest.$ac_ext" 
     7167case "(($ac_try" in 
     7168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7169  *) ac_try_echo=$ac_try;; 
     7170esac 
     7171eval "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 
     7183else 
     7184  echo "$as_me: failed program was:" >&5 
     7185sed 's/^/| /' conftest.$ac_ext >&5 
     7186 
     7187  ac_header_preproc=no 
     7188fi 
     7189 
     7190rm -f conftest.err conftest.$ac_ext 
     7191{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     7192echo "${ECHO_T}$ac_header_preproc" >&6; } 
     7193 
     7194# So?  What about this header? 
     7195case $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 
     7198echo "$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 
     7200echo "$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 
     7205echo "$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 
     7207echo "$as_me: WARNING: setjmp.h:     check for missing prerequisite headers?" >&2;} 
     7208    { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5 
     7209echo "$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 
     7211echo "$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 
     7213echo "$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 
     7215echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;} 
     7216 
     7217    ;; 
     7218esac 
     7219{ echo "$as_me:$LINENO: checking for setjmp.h" >&5 
     7220echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; } 
     7221if test "${ac_cv_header_setjmp_h+set}" = set; then 
     7222  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7223else 
     7224  ac_cv_header_setjmp_h=$ac_header_preproc 
     7225fi 
     7226{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 
     7227echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; } 
     7228 
     7229fi 
     7230if test $ac_cv_header_setjmp_h = yes; then 
     7231  cat >>confdefs.h <<\_ACEOF 
     7232#define PJ_HAS_SETJMP_H 1 
     7233_ACEOF 
     7234 
     7235fi 
     7236 
     7237 
     7238if test "${ac_cv_header_stdarg_h+set}" = set; then 
     7239  { echo "$as_me:$LINENO: checking for stdarg.h" >&5 
     7240echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } 
     7241if test "${ac_cv_header_stdarg_h+set}" = set; then 
     7242  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7243fi 
     7244{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 
     7245echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } 
     7246else 
     7247  # Is the header compilable? 
     7248{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5 
     7249echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } 
     7250cat >conftest.$ac_ext <<_ACEOF 
     7251/* confdefs.h.  */ 
     7252_ACEOF 
     7253cat confdefs.h >>conftest.$ac_ext 
     7254cat >>conftest.$ac_ext <<_ACEOF 
     7255/* end confdefs.h.  */ 
     7256$ac_includes_default 
     7257#include <stdarg.h> 
     7258_ACEOF 
     7259rm -f conftest.$ac_objext 
     7260if { (ac_try="$ac_compile" 
     7261case "(($ac_try" in 
     7262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7263  *) ac_try_echo=$ac_try;; 
     7264esac 
     7265eval "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 
     7277else 
     7278  echo "$as_me: failed program was:" >&5 
     7279sed 's/^/| /' conftest.$ac_ext >&5 
     7280 
     7281        ac_header_compiler=no 
     7282fi 
     7283 
     7284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     7285{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     7286echo "${ECHO_T}$ac_header_compiler" >&6; } 
     7287 
     7288# Is the header present? 
     7289{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5 
     7290echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } 
     7291cat >conftest.$ac_ext <<_ACEOF 
     7292/* confdefs.h.  */ 
     7293_ACEOF 
     7294cat confdefs.h >>conftest.$ac_ext 
     7295cat >>conftest.$ac_ext <<_ACEOF 
     7296/* end confdefs.h.  */ 
     7297#include <stdarg.h> 
     7298_ACEOF 
     7299if { (ac_try="$ac_cpp conftest.$ac_ext" 
     7300case "(($ac_try" in 
     7301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7302  *) ac_try_echo=$ac_try;; 
     7303esac 
     7304eval "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 
     7316else 
     7317  echo "$as_me: failed program was:" >&5 
     7318sed 's/^/| /' conftest.$ac_ext >&5 
     7319 
     7320  ac_header_preproc=no 
     7321fi 
     7322 
     7323rm -f conftest.err conftest.$ac_ext 
     7324{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     7325echo "${ECHO_T}$ac_header_preproc" >&6; } 
     7326 
     7327# So?  What about this header? 
     7328case $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 
     7331echo "$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 
     7333echo "$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 
     7338echo "$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 
     7340echo "$as_me: WARNING: stdarg.h:     check for missing prerequisite headers?" >&2;} 
     7341    { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 
     7342echo "$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 
     7344echo "$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 
     7346echo "$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 
     7348echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} 
     7349 
     7350    ;; 
     7351esac 
     7352{ echo "$as_me:$LINENO: checking for stdarg.h" >&5 
     7353echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } 
     7354if test "${ac_cv_header_stdarg_h+set}" = set; then 
     7355  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7356else 
     7357  ac_cv_header_stdarg_h=$ac_header_preproc 
     7358fi 
     7359{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 
     7360echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } 
     7361 
     7362fi 
     7363if test $ac_cv_header_stdarg_h = yes; then 
     7364  cat >>confdefs.h <<\_ACEOF 
     7365#define PJ_HAS_STDARG_H 1 
     7366_ACEOF 
     7367 
     7368fi 
     7369 
     7370 
     7371if test "${ac_cv_header_stddef_h+set}" = set; then 
     7372  { echo "$as_me:$LINENO: checking for stddef.h" >&5 
     7373echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } 
     7374if test "${ac_cv_header_stddef_h+set}" = set; then 
     7375  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7376fi 
     7377{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 
     7378echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } 
     7379else 
     7380  # Is the header compilable? 
     7381{ echo "$as_me:$LINENO: checking stddef.h usability" >&5 
     7382echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; } 
     7383cat >conftest.$ac_ext <<_ACEOF 
     7384/* confdefs.h.  */ 
     7385_ACEOF 
     7386cat confdefs.h >>conftest.$ac_ext 
     7387cat >>conftest.$ac_ext <<_ACEOF 
     7388/* end confdefs.h.  */ 
     7389$ac_includes_default 
     7390#include <stddef.h> 
     7391_ACEOF 
     7392rm -f conftest.$ac_objext 
     7393if { (ac_try="$ac_compile" 
     7394case "(($ac_try" in 
     7395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7396  *) ac_try_echo=$ac_try;; 
     7397esac 
     7398eval "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 
     7410else 
     7411  echo "$as_me: failed program was:" >&5 
     7412sed 's/^/| /' conftest.$ac_ext >&5 
     7413 
     7414        ac_header_compiler=no 
     7415fi 
     7416 
     7417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     7418{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     7419echo "${ECHO_T}$ac_header_compiler" >&6; } 
     7420 
     7421# Is the header present? 
     7422{ echo "$as_me:$LINENO: checking stddef.h presence" >&5 
     7423echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; } 
     7424cat >conftest.$ac_ext <<_ACEOF 
     7425/* confdefs.h.  */ 
     7426_ACEOF 
     7427cat confdefs.h >>conftest.$ac_ext 
     7428cat >>conftest.$ac_ext <<_ACEOF 
     7429/* end confdefs.h.  */ 
     7430#include <stddef.h> 
     7431_ACEOF 
     7432if { (ac_try="$ac_cpp conftest.$ac_ext" 
     7433case "(($ac_try" in 
     7434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7435  *) ac_try_echo=$ac_try;; 
     7436esac 
     7437eval "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 
     7449else 
     7450  echo "$as_me: failed program was:" >&5 
     7451sed 's/^/| /' conftest.$ac_ext >&5 
     7452 
     7453  ac_header_preproc=no 
     7454fi 
     7455 
     7456rm -f conftest.err conftest.$ac_ext 
     7457{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     7458echo "${ECHO_T}$ac_header_preproc" >&6; } 
     7459 
     7460# So?  What about this header? 
     7461case $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 
     7464echo "$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 
     7466echo "$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 
     7471echo "$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 
     7473echo "$as_me: WARNING: stddef.h:     check for missing prerequisite headers?" >&2;} 
     7474    { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 
     7475echo "$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 
     7477echo "$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 
     7479echo "$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 
     7481echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;} 
     7482 
     7483    ;; 
     7484esac 
     7485{ echo "$as_me:$LINENO: checking for stddef.h" >&5 
     7486echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; } 
     7487if test "${ac_cv_header_stddef_h+set}" = set; then 
     7488  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7489else 
     7490  ac_cv_header_stddef_h=$ac_header_preproc 
     7491fi 
     7492{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 
     7493echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; } 
     7494 
     7495fi 
     7496if test $ac_cv_header_stddef_h = yes; then 
     7497  cat >>confdefs.h <<\_ACEOF 
     7498#define PJ_HAS_STDDEF_H 1 
     7499_ACEOF 
     7500 
     7501fi 
     7502 
     7503 
     7504if test "${ac_cv_header_stdio_h+set}" = set; then 
     7505  { echo "$as_me:$LINENO: checking for stdio.h" >&5 
     7506echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } 
     7507if test "${ac_cv_header_stdio_h+set}" = set; then 
     7508  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7509fi 
     7510{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 
     7511echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } 
     7512else 
     7513  # Is the header compilable? 
     7514{ echo "$as_me:$LINENO: checking stdio.h usability" >&5 
     7515echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; } 
     7516cat >conftest.$ac_ext <<_ACEOF 
     7517/* confdefs.h.  */ 
     7518_ACEOF 
     7519cat confdefs.h >>conftest.$ac_ext 
     7520cat >>conftest.$ac_ext <<_ACEOF 
     7521/* end confdefs.h.  */ 
     7522$ac_includes_default 
     7523#include <stdio.h> 
     7524_ACEOF 
     7525rm -f conftest.$ac_objext 
     7526if { (ac_try="$ac_compile" 
     7527case "(($ac_try" in 
     7528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7529  *) ac_try_echo=$ac_try;; 
     7530esac 
     7531eval "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 
     7543else 
     7544  echo "$as_me: failed program was:" >&5 
     7545sed 's/^/| /' conftest.$ac_ext >&5 
     7546 
     7547        ac_header_compiler=no 
     7548fi 
     7549 
     7550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     7551{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     7552echo "${ECHO_T}$ac_header_compiler" >&6; } 
     7553 
     7554# Is the header present? 
     7555{ echo "$as_me:$LINENO: checking stdio.h presence" >&5 
     7556echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; } 
     7557cat >conftest.$ac_ext <<_ACEOF 
     7558/* confdefs.h.  */ 
     7559_ACEOF 
     7560cat confdefs.h >>conftest.$ac_ext 
     7561cat >>conftest.$ac_ext <<_ACEOF 
     7562/* end confdefs.h.  */ 
     7563#include <stdio.h> 
     7564_ACEOF 
     7565if { (ac_try="$ac_cpp conftest.$ac_ext" 
     7566case "(($ac_try" in 
     7567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7568  *) ac_try_echo=$ac_try;; 
     7569esac 
     7570eval "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 
     7582else 
     7583  echo "$as_me: failed program was:" >&5 
     7584sed 's/^/| /' conftest.$ac_ext >&5 
     7585 
     7586  ac_header_preproc=no 
     7587fi 
     7588 
     7589rm -f conftest.err conftest.$ac_ext 
     7590{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     7591echo "${ECHO_T}$ac_header_preproc" >&6; } 
     7592 
     7593# So?  What about this header? 
     7594case $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 
     7597echo "$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 
     7599echo "$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 
     7604echo "$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 
     7606echo "$as_me: WARNING: stdio.h:     check for missing prerequisite headers?" >&2;} 
     7607    { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5 
     7608echo "$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 
     7610echo "$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 
     7612echo "$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 
     7614echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;} 
     7615 
     7616    ;; 
     7617esac 
     7618{ echo "$as_me:$LINENO: checking for stdio.h" >&5 
     7619echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; } 
     7620if test "${ac_cv_header_stdio_h+set}" = set; then 
     7621  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7622else 
     7623  ac_cv_header_stdio_h=$ac_header_preproc 
     7624fi 
     7625{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 
     7626echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; } 
     7627 
     7628fi 
     7629if test $ac_cv_header_stdio_h = yes; then 
     7630  cat >>confdefs.h <<\_ACEOF 
     7631#define PJ_HAS_STDIO_H 1 
     7632_ACEOF 
     7633 
     7634fi 
     7635 
     7636 
     7637if test "${ac_cv_header_stdint_h+set}" = set; then 
     7638  { echo "$as_me:$LINENO: checking for stdint.h" >&5 
     7639echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } 
     7640if test "${ac_cv_header_stdint_h+set}" = set; then 
     7641  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7642fi 
     7643{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 
     7644echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } 
     7645else 
     7646  # Is the header compilable? 
     7647{ echo "$as_me:$LINENO: checking stdint.h usability" >&5 
     7648echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; } 
     7649cat >conftest.$ac_ext <<_ACEOF 
     7650/* confdefs.h.  */ 
     7651_ACEOF 
     7652cat confdefs.h >>conftest.$ac_ext 
     7653cat >>conftest.$ac_ext <<_ACEOF 
     7654/* end confdefs.h.  */ 
     7655$ac_includes_default 
     7656#include <stdint.h> 
     7657_ACEOF 
     7658rm -f conftest.$ac_objext 
     7659if { (ac_try="$ac_compile" 
     7660case "(($ac_try" in 
     7661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7662  *) ac_try_echo=$ac_try;; 
     7663esac 
     7664eval "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 
     7676else 
     7677  echo "$as_me: failed program was:" >&5 
     7678sed 's/^/| /' conftest.$ac_ext >&5 
     7679 
     7680        ac_header_compiler=no 
     7681fi 
     7682 
     7683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     7684{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     7685echo "${ECHO_T}$ac_header_compiler" >&6; } 
     7686 
     7687# Is the header present? 
     7688{ echo "$as_me:$LINENO: checking stdint.h presence" >&5 
     7689echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; } 
     7690cat >conftest.$ac_ext <<_ACEOF 
     7691/* confdefs.h.  */ 
     7692_ACEOF 
     7693cat confdefs.h >>conftest.$ac_ext 
     7694cat >>conftest.$ac_ext <<_ACEOF 
     7695/* end confdefs.h.  */ 
     7696#include <stdint.h> 
     7697_ACEOF 
     7698if { (ac_try="$ac_cpp conftest.$ac_ext" 
     7699case "(($ac_try" in 
     7700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7701  *) ac_try_echo=$ac_try;; 
     7702esac 
     7703eval "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 
     7715else 
     7716  echo "$as_me: failed program was:" >&5 
     7717sed 's/^/| /' conftest.$ac_ext >&5 
     7718 
     7719  ac_header_preproc=no 
     7720fi 
     7721 
     7722rm -f conftest.err conftest.$ac_ext 
     7723{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     7724echo "${ECHO_T}$ac_header_preproc" >&6; } 
     7725 
     7726# So?  What about this header? 
     7727case $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 
     7730echo "$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 
     7732echo "$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 
     7737echo "$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 
     7739echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;} 
     7740    { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 
     7741echo "$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 
     7743echo "$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 
     7745echo "$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 
     7747echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} 
     7748 
     7749    ;; 
     7750esac 
     7751{ echo "$as_me:$LINENO: checking for stdint.h" >&5 
     7752echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } 
     7753if test "${ac_cv_header_stdint_h+set}" = set; then 
     7754  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7755else 
     7756  ac_cv_header_stdint_h=$ac_header_preproc 
     7757fi 
     7758{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 
     7759echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; } 
     7760 
     7761fi 
     7762if test $ac_cv_header_stdint_h = yes; then 
     7763  cat >>confdefs.h <<\_ACEOF 
     7764#define PJ_HAS_STDINT_H 1 
     7765_ACEOF 
     7766 
     7767fi 
     7768 
     7769 
     7770if test "${ac_cv_header_stdlib_h+set}" = set; then 
     7771  { echo "$as_me:$LINENO: checking for stdlib.h" >&5 
     7772echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 
     7773if test "${ac_cv_header_stdlib_h+set}" = set; then 
     7774  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7775fi 
     7776{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 
     7777echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 
     7778else 
     7779  # Is the header compilable? 
     7780{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 
     7781echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 
     7782cat >conftest.$ac_ext <<_ACEOF 
     7783/* confdefs.h.  */ 
     7784_ACEOF 
     7785cat confdefs.h >>conftest.$ac_ext 
     7786cat >>conftest.$ac_ext <<_ACEOF 
     7787/* end confdefs.h.  */ 
     7788$ac_includes_default 
     7789#include <stdlib.h> 
     7790_ACEOF 
     7791rm -f conftest.$ac_objext 
     7792if { (ac_try="$ac_compile" 
     7793case "(($ac_try" in 
     7794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7795  *) ac_try_echo=$ac_try;; 
     7796esac 
     7797eval "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 
     7809else 
     7810  echo "$as_me: failed program was:" >&5 
     7811sed 's/^/| /' conftest.$ac_ext >&5 
     7812 
     7813        ac_header_compiler=no 
     7814fi 
     7815 
     7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     7817{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     7818echo "${ECHO_T}$ac_header_compiler" >&6; } 
     7819 
     7820# Is the header present? 
     7821{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 
     7822echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 
     7823cat >conftest.$ac_ext <<_ACEOF 
     7824/* confdefs.h.  */ 
     7825_ACEOF 
     7826cat confdefs.h >>conftest.$ac_ext 
     7827cat >>conftest.$ac_ext <<_ACEOF 
     7828/* end confdefs.h.  */ 
     7829#include <stdlib.h> 
     7830_ACEOF 
     7831if { (ac_try="$ac_cpp conftest.$ac_ext" 
     7832case "(($ac_try" in 
     7833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7834  *) ac_try_echo=$ac_try;; 
     7835esac 
     7836eval "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 
     7848else 
     7849  echo "$as_me: failed program was:" >&5 
     7850sed 's/^/| /' conftest.$ac_ext >&5 
     7851 
     7852  ac_header_preproc=no 
     7853fi 
     7854 
     7855rm -f conftest.err conftest.$ac_ext 
     7856{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     7857echo "${ECHO_T}$ac_header_preproc" >&6; } 
     7858 
     7859# So?  What about this header? 
     7860case $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 
     7863echo "$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 
     7865echo "$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 
     7870echo "$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 
     7872echo "$as_me: WARNING: stdlib.h:     check for missing prerequisite headers?" >&2;} 
     7873    { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 
     7874echo "$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 
     7876echo "$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 
     7878echo "$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 
     7880echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 
     7881 
     7882    ;; 
     7883esac 
     7884{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 
     7885echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 
     7886if test "${ac_cv_header_stdlib_h+set}" = set; then 
     7887  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7888else 
     7889  ac_cv_header_stdlib_h=$ac_header_preproc 
     7890fi 
     7891{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 
     7892echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 
     7893 
     7894fi 
     7895if test $ac_cv_header_stdlib_h = yes; then 
     7896  cat >>confdefs.h <<\_ACEOF 
     7897#define PJ_HAS_STDLIB_H 1 
     7898_ACEOF 
     7899 
     7900fi 
     7901 
     7902 
     7903if test "${ac_cv_header_string_h+set}" = set; then 
     7904  { echo "$as_me:$LINENO: checking for string.h" >&5 
     7905echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 
     7906if test "${ac_cv_header_string_h+set}" = set; then 
     7907  echo $ECHO_N "(cached) $ECHO_C" >&6 
     7908fi 
     7909{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 
     7910echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 
     7911else 
     7912  # Is the header compilable? 
     7913{ echo "$as_me:$LINENO: checking string.h usability" >&5 
     7914echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 
     7915cat >conftest.$ac_ext <<_ACEOF 
     7916/* confdefs.h.  */ 
     7917_ACEOF 
     7918cat confdefs.h >>conftest.$ac_ext 
     7919cat >>conftest.$ac_ext <<_ACEOF 
     7920/* end confdefs.h.  */ 
     7921$ac_includes_default 
     7922#include <string.h> 
     7923_ACEOF 
     7924rm -f conftest.$ac_objext 
     7925if { (ac_try="$ac_compile" 
     7926case "(($ac_try" in 
     7927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7928  *) ac_try_echo=$ac_try;; 
     7929esac 
     7930eval "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 
     7942else 
     7943  echo "$as_me: failed program was:" >&5 
     7944sed 's/^/| /' conftest.$ac_ext >&5 
     7945 
     7946        ac_header_compiler=no 
     7947fi 
     7948 
     7949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     7950{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     7951echo "${ECHO_T}$ac_header_compiler" >&6; } 
     7952 
     7953# Is the header present? 
     7954{ echo "$as_me:$LINENO: checking string.h presence" >&5 
     7955echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 
     7956cat >conftest.$ac_ext <<_ACEOF 
     7957/* confdefs.h.  */ 
     7958_ACEOF 
     7959cat confdefs.h >>conftest.$ac_ext 
     7960cat >>conftest.$ac_ext <<_ACEOF 
     7961/* end confdefs.h.  */ 
     7962#include <string.h> 
     7963_ACEOF 
     7964if { (ac_try="$ac_cpp conftest.$ac_ext" 
     7965case "(($ac_try" in 
     7966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     7967  *) ac_try_echo=$ac_try;; 
     7968esac 
     7969eval "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 
     7981else 
     7982  echo "$as_me: failed program was:" >&5 
     7983sed 's/^/| /' conftest.$ac_ext >&5 
     7984 
     7985  ac_header_preproc=no 
     7986fi 
     7987 
     7988rm -f conftest.err conftest.$ac_ext 
     7989{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     7990echo "${ECHO_T}$ac_header_preproc" >&6; } 
     7991 
     7992# So?  What about this header? 
     7993case $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 
     7996echo "$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 
     7998echo "$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 
     8003echo "$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 
     8005echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;} 
     8006    { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 
     8007echo "$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 
     8009echo "$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 
     8011echo "$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 
     8013echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 
     8014 
     8015    ;; 
     8016esac 
     8017{ echo "$as_me:$LINENO: checking for string.h" >&5 
     8018echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 
     8019if test "${ac_cv_header_string_h+set}" = set; then 
     8020  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8021else 
     8022  ac_cv_header_string_h=$ac_header_preproc 
     8023fi 
     8024{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 
     8025echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 
     8026 
     8027fi 
     8028if test $ac_cv_header_string_h = yes; then 
     8029  cat >>confdefs.h <<\_ACEOF 
     8030#define PJ_HAS_STRING_H 1 
     8031_ACEOF 
     8032 
     8033fi 
     8034 
     8035 
     8036if test "${ac_cv_header_sys_ioctl_h+set}" = set; then 
     8037  { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 
     8038echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } 
     8039if test "${ac_cv_header_sys_ioctl_h+set}" = set; then 
     8040  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8041fi 
     8042{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 
     8043echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } 
     8044else 
     8045  # Is the header compilable? 
     8046{ echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5 
     8047echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6; } 
     8048cat >conftest.$ac_ext <<_ACEOF 
     8049/* confdefs.h.  */ 
     8050_ACEOF 
     8051cat confdefs.h >>conftest.$ac_ext 
     8052cat >>conftest.$ac_ext <<_ACEOF 
     8053/* end confdefs.h.  */ 
     8054$ac_includes_default 
     8055#include <sys/ioctl.h> 
     8056_ACEOF 
     8057rm -f conftest.$ac_objext 
     8058if { (ac_try="$ac_compile" 
     8059case "(($ac_try" in 
     8060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8061  *) ac_try_echo=$ac_try;; 
     8062esac 
     8063eval "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 
     8075else 
     8076  echo "$as_me: failed program was:" >&5 
     8077sed 's/^/| /' conftest.$ac_ext >&5 
     8078 
     8079        ac_header_compiler=no 
     8080fi 
     8081 
     8082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     8083{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     8084echo "${ECHO_T}$ac_header_compiler" >&6; } 
     8085 
     8086# Is the header present? 
     8087{ echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5 
     8088echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6; } 
     8089cat >conftest.$ac_ext <<_ACEOF 
     8090/* confdefs.h.  */ 
     8091_ACEOF 
     8092cat confdefs.h >>conftest.$ac_ext 
     8093cat >>conftest.$ac_ext <<_ACEOF 
     8094/* end confdefs.h.  */ 
     8095#include <sys/ioctl.h> 
     8096_ACEOF 
     8097if { (ac_try="$ac_cpp conftest.$ac_ext" 
     8098case "(($ac_try" in 
     8099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8100  *) ac_try_echo=$ac_try;; 
     8101esac 
     8102eval "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 
     8114else 
     8115  echo "$as_me: failed program was:" >&5 
     8116sed 's/^/| /' conftest.$ac_ext >&5 
     8117 
     8118  ac_header_preproc=no 
     8119fi 
     8120 
     8121rm -f conftest.err conftest.$ac_ext 
     8122{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     8123echo "${ECHO_T}$ac_header_preproc" >&6; } 
     8124 
     8125# So?  What about this header? 
     8126case $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 
     8129echo "$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 
     8131echo "$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 
     8136echo "$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 
     8138echo "$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 
     8140echo "$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 
     8142echo "$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 
     8144echo "$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 
     8146echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;} 
     8147 
     8148    ;; 
     8149esac 
     8150{ echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 
     8151echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; } 
     8152if test "${ac_cv_header_sys_ioctl_h+set}" = set; then 
     8153  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8154else 
     8155  ac_cv_header_sys_ioctl_h=$ac_header_preproc 
     8156fi 
     8157{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 
     8158echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; } 
     8159 
     8160fi 
     8161if 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 
     8166fi 
     8167 
     8168 
     8169if test "${ac_cv_header_sys_select_h+set}" = set; then 
     8170  { echo "$as_me:$LINENO: checking for sys/select.h" >&5 
     8171echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } 
     8172if test "${ac_cv_header_sys_select_h+set}" = set; then 
     8173  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8174fi 
     8175{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 
     8176echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } 
     8177else 
     8178  # Is the header compilable? 
     8179{ echo "$as_me:$LINENO: checking sys/select.h usability" >&5 
     8180echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; } 
     8181cat >conftest.$ac_ext <<_ACEOF 
     8182/* confdefs.h.  */ 
     8183_ACEOF 
     8184cat confdefs.h >>conftest.$ac_ext 
     8185cat >>conftest.$ac_ext <<_ACEOF 
     8186/* end confdefs.h.  */ 
     8187$ac_includes_default 
     8188#include <sys/select.h> 
     8189_ACEOF 
     8190rm -f conftest.$ac_objext 
     8191if { (ac_try="$ac_compile" 
     8192case "(($ac_try" in 
     8193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8194  *) ac_try_echo=$ac_try;; 
     8195esac 
     8196eval "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 
     8208else 
     8209  echo "$as_me: failed program was:" >&5 
     8210sed 's/^/| /' conftest.$ac_ext >&5 
     8211 
     8212        ac_header_compiler=no 
     8213fi 
     8214 
     8215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     8216{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     8217echo "${ECHO_T}$ac_header_compiler" >&6; } 
     8218 
     8219# Is the header present? 
     8220{ echo "$as_me:$LINENO: checking sys/select.h presence" >&5 
     8221echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; } 
     8222cat >conftest.$ac_ext <<_ACEOF 
     8223/* confdefs.h.  */ 
     8224_ACEOF 
     8225cat confdefs.h >>conftest.$ac_ext 
     8226cat >>conftest.$ac_ext <<_ACEOF 
     8227/* end confdefs.h.  */ 
     8228#include <sys/select.h> 
     8229_ACEOF 
     8230if { (ac_try="$ac_cpp conftest.$ac_ext" 
     8231case "(($ac_try" in 
     8232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8233  *) ac_try_echo=$ac_try;; 
     8234esac 
     8235eval "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 
     8247else 
     8248  echo "$as_me: failed program was:" >&5 
     8249sed 's/^/| /' conftest.$ac_ext >&5 
     8250 
     8251  ac_header_preproc=no 
     8252fi 
     8253 
     8254rm -f conftest.err conftest.$ac_ext 
     8255{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     8256echo "${ECHO_T}$ac_header_preproc" >&6; } 
     8257 
     8258# So?  What about this header? 
     8259case $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 
     8262echo "$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 
     8264echo "$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 
     8269echo "$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 
     8271echo "$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 
     8273echo "$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 
     8275echo "$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 
     8277echo "$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 
     8279echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} 
     8280 
     8281    ;; 
     8282esac 
     8283{ echo "$as_me:$LINENO: checking for sys/select.h" >&5 
     8284echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } 
     8285if test "${ac_cv_header_sys_select_h+set}" = set; then 
     8286  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8287else 
     8288  ac_cv_header_sys_select_h=$ac_header_preproc 
     8289fi 
     8290{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 
     8291echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } 
     8292 
     8293fi 
     8294if 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 
     8299fi 
     8300 
     8301 
     8302if test "${ac_cv_header_sys_socket_h+set}" = set; then 
     8303  { echo "$as_me:$LINENO: checking for sys/socket.h" >&5 
     8304echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } 
     8305if test "${ac_cv_header_sys_socket_h+set}" = set; then 
     8306  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8307fi 
     8308{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 
     8309echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } 
     8310else 
     8311  # Is the header compilable? 
     8312{ echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 
     8313echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; } 
     8314cat >conftest.$ac_ext <<_ACEOF 
     8315/* confdefs.h.  */ 
     8316_ACEOF 
     8317cat confdefs.h >>conftest.$ac_ext 
     8318cat >>conftest.$ac_ext <<_ACEOF 
     8319/* end confdefs.h.  */ 
     8320$ac_includes_default 
     8321#include <sys/socket.h> 
     8322_ACEOF 
     8323rm -f conftest.$ac_objext 
     8324if { (ac_try="$ac_compile" 
     8325case "(($ac_try" in 
     8326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8327  *) ac_try_echo=$ac_try;; 
     8328esac 
     8329eval "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 
     8341else 
     8342  echo "$as_me: failed program was:" >&5 
     8343sed 's/^/| /' conftest.$ac_ext >&5 
     8344 
     8345        ac_header_compiler=no 
     8346fi 
     8347 
     8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     8349{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     8350echo "${ECHO_T}$ac_header_compiler" >&6; } 
     8351 
     8352# Is the header present? 
     8353{ echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 
     8354echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; } 
     8355cat >conftest.$ac_ext <<_ACEOF 
     8356/* confdefs.h.  */ 
     8357_ACEOF 
     8358cat confdefs.h >>conftest.$ac_ext 
     8359cat >>conftest.$ac_ext <<_ACEOF 
     8360/* end confdefs.h.  */ 
     8361#include <sys/socket.h> 
     8362_ACEOF 
     8363if { (ac_try="$ac_cpp conftest.$ac_ext" 
     8364case "(($ac_try" in 
     8365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8366  *) ac_try_echo=$ac_try;; 
     8367esac 
     8368eval "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 
     8380else 
     8381  echo "$as_me: failed program was:" >&5 
     8382sed 's/^/| /' conftest.$ac_ext >&5 
     8383 
     8384  ac_header_preproc=no 
     8385fi 
     8386 
     8387rm -f conftest.err conftest.$ac_ext 
     8388{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     8389echo "${ECHO_T}$ac_header_preproc" >&6; } 
     8390 
     8391# So?  What about this header? 
     8392case $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 
     8395echo "$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 
     8397echo "$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 
     8402echo "$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 
     8404echo "$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 
     8406echo "$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 
     8408echo "$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 
     8410echo "$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 
     8412echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;} 
     8413 
     8414    ;; 
     8415esac 
     8416{ echo "$as_me:$LINENO: checking for sys/socket.h" >&5 
     8417echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; } 
     8418if test "${ac_cv_header_sys_socket_h+set}" = set; then 
     8419  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8420else 
     8421  ac_cv_header_sys_socket_h=$ac_header_preproc 
     8422fi 
     8423{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 
     8424echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; } 
     8425 
     8426fi 
     8427if 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 
     8432fi 
     8433 
     8434 
     8435if test "${ac_cv_header_sys_time_h+set}" = set; then 
     8436  { echo "$as_me:$LINENO: checking for sys/time.h" >&5 
     8437echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } 
     8438if test "${ac_cv_header_sys_time_h+set}" = set; then 
     8439  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8440fi 
     8441{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 
     8442echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } 
     8443else 
     8444  # Is the header compilable? 
     8445{ echo "$as_me:$LINENO: checking sys/time.h usability" >&5 
     8446echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6; } 
     8447cat >conftest.$ac_ext <<_ACEOF 
     8448/* confdefs.h.  */ 
     8449_ACEOF 
     8450cat confdefs.h >>conftest.$ac_ext 
     8451cat >>conftest.$ac_ext <<_ACEOF 
     8452/* end confdefs.h.  */ 
     8453$ac_includes_default 
     8454#include <sys/time.h> 
     8455_ACEOF 
     8456rm -f conftest.$ac_objext 
     8457if { (ac_try="$ac_compile" 
     8458case "(($ac_try" in 
     8459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8460  *) ac_try_echo=$ac_try;; 
     8461esac 
     8462eval "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 
     8474else 
     8475  echo "$as_me: failed program was:" >&5 
     8476sed 's/^/| /' conftest.$ac_ext >&5 
     8477 
     8478        ac_header_compiler=no 
     8479fi 
     8480 
     8481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     8482{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     8483echo "${ECHO_T}$ac_header_compiler" >&6; } 
     8484 
     8485# Is the header present? 
     8486{ echo "$as_me:$LINENO: checking sys/time.h presence" >&5 
     8487echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6; } 
     8488cat >conftest.$ac_ext <<_ACEOF 
     8489/* confdefs.h.  */ 
     8490_ACEOF 
     8491cat confdefs.h >>conftest.$ac_ext 
     8492cat >>conftest.$ac_ext <<_ACEOF 
     8493/* end confdefs.h.  */ 
     8494#include <sys/time.h> 
     8495_ACEOF 
     8496if { (ac_try="$ac_cpp conftest.$ac_ext" 
     8497case "(($ac_try" in 
     8498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8499  *) ac_try_echo=$ac_try;; 
     8500esac 
     8501eval "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 
     8513else 
     8514  echo "$as_me: failed program was:" >&5 
     8515sed 's/^/| /' conftest.$ac_ext >&5 
     8516 
     8517  ac_header_preproc=no 
     8518fi 
     8519 
     8520rm -f conftest.err conftest.$ac_ext 
     8521{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     8522echo "${ECHO_T}$ac_header_preproc" >&6; } 
     8523 
     8524# So?  What about this header? 
     8525case $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 
     8528echo "$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 
     8530echo "$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 
     8535echo "$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 
     8537echo "$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 
     8539echo "$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 
     8541echo "$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 
     8543echo "$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 
     8545echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;} 
     8546 
     8547    ;; 
     8548esac 
     8549{ echo "$as_me:$LINENO: checking for sys/time.h" >&5 
     8550echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; } 
     8551if test "${ac_cv_header_sys_time_h+set}" = set; then 
     8552  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8553else 
     8554  ac_cv_header_sys_time_h=$ac_header_preproc 
     8555fi 
     8556{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 
     8557echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; } 
     8558 
     8559fi 
     8560if 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 
     8565fi 
     8566 
     8567 
     8568if test "${ac_cv_header_sys_timeb_h+set}" = set; then 
     8569  { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 
     8570echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } 
     8571if test "${ac_cv_header_sys_timeb_h+set}" = set; then 
     8572  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8573fi 
     8574{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 
     8575echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } 
     8576else 
     8577  # Is the header compilable? 
     8578{ echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5 
     8579echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6; } 
     8580cat >conftest.$ac_ext <<_ACEOF 
     8581/* confdefs.h.  */ 
     8582_ACEOF 
     8583cat confdefs.h >>conftest.$ac_ext 
     8584cat >>conftest.$ac_ext <<_ACEOF 
     8585/* end confdefs.h.  */ 
     8586$ac_includes_default 
     8587#include <sys/timeb.h> 
     8588_ACEOF 
     8589rm -f conftest.$ac_objext 
     8590if { (ac_try="$ac_compile" 
     8591case "(($ac_try" in 
     8592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8593  *) ac_try_echo=$ac_try;; 
     8594esac 
     8595eval "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 
     8607else 
     8608  echo "$as_me: failed program was:" >&5 
     8609sed 's/^/| /' conftest.$ac_ext >&5 
     8610 
     8611        ac_header_compiler=no 
     8612fi 
     8613 
     8614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     8615{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     8616echo "${ECHO_T}$ac_header_compiler" >&6; } 
     8617 
     8618# Is the header present? 
     8619{ echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5 
     8620echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6; } 
     8621cat >conftest.$ac_ext <<_ACEOF 
     8622/* confdefs.h.  */ 
     8623_ACEOF 
     8624cat confdefs.h >>conftest.$ac_ext 
     8625cat >>conftest.$ac_ext <<_ACEOF 
     8626/* end confdefs.h.  */ 
     8627#include <sys/timeb.h> 
     8628_ACEOF 
     8629if { (ac_try="$ac_cpp conftest.$ac_ext" 
     8630case "(($ac_try" in 
     8631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8632  *) ac_try_echo=$ac_try;; 
     8633esac 
     8634eval "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 
     8646else 
     8647  echo "$as_me: failed program was:" >&5 
     8648sed 's/^/| /' conftest.$ac_ext >&5 
     8649 
     8650  ac_header_preproc=no 
     8651fi 
     8652 
     8653rm -f conftest.err conftest.$ac_ext 
     8654{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     8655echo "${ECHO_T}$ac_header_preproc" >&6; } 
     8656 
     8657# So?  What about this header? 
     8658case $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 
     8661echo "$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 
     8663echo "$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 
     8668echo "$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 
     8670echo "$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 
     8672echo "$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 
     8674echo "$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 
     8676echo "$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 
     8678echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;} 
     8679 
     8680    ;; 
     8681esac 
     8682{ echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 
     8683echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; } 
     8684if test "${ac_cv_header_sys_timeb_h+set}" = set; then 
     8685  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8686else 
     8687  ac_cv_header_sys_timeb_h=$ac_header_preproc 
     8688fi 
     8689{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 
     8690echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; } 
     8691 
     8692fi 
     8693if 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 
     8698fi 
     8699 
     8700 
     8701if test "${ac_cv_header_sys_types_h+set}" = set; then 
     8702  { echo "$as_me:$LINENO: checking for sys/types.h" >&5 
     8703echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } 
     8704if test "${ac_cv_header_sys_types_h+set}" = set; then 
     8705  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8706fi 
     8707{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 
     8708echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } 
     8709else 
     8710  # Is the header compilable? 
     8711{ echo "$as_me:$LINENO: checking sys/types.h usability" >&5 
     8712echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; } 
     8713cat >conftest.$ac_ext <<_ACEOF 
     8714/* confdefs.h.  */ 
     8715_ACEOF 
     8716cat confdefs.h >>conftest.$ac_ext 
     8717cat >>conftest.$ac_ext <<_ACEOF 
     8718/* end confdefs.h.  */ 
     8719$ac_includes_default 
     8720#include <sys/types.h> 
     8721_ACEOF 
     8722rm -f conftest.$ac_objext 
     8723if { (ac_try="$ac_compile" 
     8724case "(($ac_try" in 
     8725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8726  *) ac_try_echo=$ac_try;; 
     8727esac 
     8728eval "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 
     8740else 
     8741  echo "$as_me: failed program was:" >&5 
     8742sed 's/^/| /' conftest.$ac_ext >&5 
     8743 
     8744        ac_header_compiler=no 
     8745fi 
     8746 
     8747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     8748{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     8749echo "${ECHO_T}$ac_header_compiler" >&6; } 
     8750 
     8751# Is the header present? 
     8752{ echo "$as_me:$LINENO: checking sys/types.h presence" >&5 
     8753echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; } 
     8754cat >conftest.$ac_ext <<_ACEOF 
     8755/* confdefs.h.  */ 
     8756_ACEOF 
     8757cat confdefs.h >>conftest.$ac_ext 
     8758cat >>conftest.$ac_ext <<_ACEOF 
     8759/* end confdefs.h.  */ 
     8760#include <sys/types.h> 
     8761_ACEOF 
     8762if { (ac_try="$ac_cpp conftest.$ac_ext" 
     8763case "(($ac_try" in 
     8764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8765  *) ac_try_echo=$ac_try;; 
     8766esac 
     8767eval "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 
     8779else 
     8780  echo "$as_me: failed program was:" >&5 
     8781sed 's/^/| /' conftest.$ac_ext >&5 
     8782 
     8783  ac_header_preproc=no 
     8784fi 
     8785 
     8786rm -f conftest.err conftest.$ac_ext 
     8787{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     8788echo "${ECHO_T}$ac_header_preproc" >&6; } 
     8789 
     8790# So?  What about this header? 
     8791case $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 
     8794echo "$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 
     8796echo "$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 
     8801echo "$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 
     8803echo "$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 
     8805echo "$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 
     8807echo "$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 
     8809echo "$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 
     8811echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} 
     8812 
     8813    ;; 
     8814esac 
     8815{ echo "$as_me:$LINENO: checking for sys/types.h" >&5 
     8816echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; } 
     8817if test "${ac_cv_header_sys_types_h+set}" = set; then 
     8818  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8819else 
     8820  ac_cv_header_sys_types_h=$ac_header_preproc 
     8821fi 
     8822{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 
     8823echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; } 
     8824 
     8825fi 
     8826if 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 
     8831fi 
     8832 
     8833 
     8834if test "${ac_cv_header_sys_filio_h+set}" = set; then 
     8835  { echo "$as_me:$LINENO: checking for sys/filio.h" >&5 
     8836echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; } 
     8837if test "${ac_cv_header_sys_filio_h+set}" = set; then 
     8838  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8839fi 
     8840{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5 
     8841echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; } 
     8842else 
     8843  # Is the header compilable? 
     8844{ echo "$as_me:$LINENO: checking sys/filio.h usability" >&5 
     8845echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6; } 
     8846cat >conftest.$ac_ext <<_ACEOF 
     8847/* confdefs.h.  */ 
     8848_ACEOF 
     8849cat confdefs.h >>conftest.$ac_ext 
     8850cat >>conftest.$ac_ext <<_ACEOF 
     8851/* end confdefs.h.  */ 
     8852$ac_includes_default 
     8853#include <sys/filio.h> 
     8854_ACEOF 
     8855rm -f conftest.$ac_objext 
     8856if { (ac_try="$ac_compile" 
     8857case "(($ac_try" in 
     8858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8859  *) ac_try_echo=$ac_try;; 
     8860esac 
     8861eval "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 
     8873else 
     8874  echo "$as_me: failed program was:" >&5 
     8875sed 's/^/| /' conftest.$ac_ext >&5 
     8876 
     8877        ac_header_compiler=no 
     8878fi 
     8879 
     8880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     8881{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     8882echo "${ECHO_T}$ac_header_compiler" >&6; } 
     8883 
     8884# Is the header present? 
     8885{ echo "$as_me:$LINENO: checking sys/filio.h presence" >&5 
     8886echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6; } 
     8887cat >conftest.$ac_ext <<_ACEOF 
     8888/* confdefs.h.  */ 
     8889_ACEOF 
     8890cat confdefs.h >>conftest.$ac_ext 
     8891cat >>conftest.$ac_ext <<_ACEOF 
     8892/* end confdefs.h.  */ 
     8893#include <sys/filio.h> 
     8894_ACEOF 
     8895if { (ac_try="$ac_cpp conftest.$ac_ext" 
     8896case "(($ac_try" in 
     8897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8898  *) ac_try_echo=$ac_try;; 
     8899esac 
     8900eval "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 
     8912else 
     8913  echo "$as_me: failed program was:" >&5 
     8914sed 's/^/| /' conftest.$ac_ext >&5 
     8915 
     8916  ac_header_preproc=no 
     8917fi 
     8918 
     8919rm -f conftest.err conftest.$ac_ext 
     8920{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     8921echo "${ECHO_T}$ac_header_preproc" >&6; } 
     8922 
     8923# So?  What about this header? 
     8924case $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 
     8927echo "$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 
     8929echo "$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 
     8934echo "$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 
     8936echo "$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 
     8938echo "$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 
     8940echo "$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 
     8942echo "$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 
     8944echo "$as_me: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&2;} 
     8945 
     8946    ;; 
     8947esac 
     8948{ echo "$as_me:$LINENO: checking for sys/filio.h" >&5 
     8949echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; } 
     8950if test "${ac_cv_header_sys_filio_h+set}" = set; then 
     8951  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8952else 
     8953  ac_cv_header_sys_filio_h=$ac_header_preproc 
     8954fi 
     8955{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5 
     8956echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; } 
     8957 
     8958fi 
     8959if 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 
     8964fi 
     8965 
     8966 
     8967if test "${ac_cv_header_sys_sockio_h+set}" = set; then 
     8968  { echo "$as_me:$LINENO: checking for sys/sockio.h" >&5 
     8969echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; } 
     8970if test "${ac_cv_header_sys_sockio_h+set}" = set; then 
     8971  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8972fi 
     8973{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5 
     8974echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; } 
     8975else 
     8976  # Is the header compilable? 
     8977{ echo "$as_me:$LINENO: checking sys/sockio.h usability" >&5 
     8978echo $ECHO_N "checking sys/sockio.h usability... $ECHO_C" >&6; } 
     8979cat >conftest.$ac_ext <<_ACEOF 
     8980/* confdefs.h.  */ 
     8981_ACEOF 
     8982cat confdefs.h >>conftest.$ac_ext 
     8983cat >>conftest.$ac_ext <<_ACEOF 
     8984/* end confdefs.h.  */ 
     8985$ac_includes_default 
     8986#include <sys/sockio.h> 
     8987_ACEOF 
     8988rm -f conftest.$ac_objext 
     8989if { (ac_try="$ac_compile" 
     8990case "(($ac_try" in 
     8991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8992  *) ac_try_echo=$ac_try;; 
     8993esac 
     8994eval "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 
     9006else 
     9007  echo "$as_me: failed program was:" >&5 
     9008sed 's/^/| /' conftest.$ac_ext >&5 
     9009 
     9010        ac_header_compiler=no 
     9011fi 
     9012 
     9013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     9014{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     9015echo "${ECHO_T}$ac_header_compiler" >&6; } 
     9016 
     9017# Is the header present? 
     9018{ echo "$as_me:$LINENO: checking sys/sockio.h presence" >&5 
     9019echo $ECHO_N "checking sys/sockio.h presence... $ECHO_C" >&6; } 
     9020cat >conftest.$ac_ext <<_ACEOF 
     9021/* confdefs.h.  */ 
     9022_ACEOF 
     9023cat confdefs.h >>conftest.$ac_ext 
     9024cat >>conftest.$ac_ext <<_ACEOF 
     9025/* end confdefs.h.  */ 
     9026#include <sys/sockio.h> 
     9027_ACEOF 
     9028if { (ac_try="$ac_cpp conftest.$ac_ext" 
     9029case "(($ac_try" in 
     9030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9031  *) ac_try_echo=$ac_try;; 
     9032esac 
     9033eval "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 
     9045else 
     9046  echo "$as_me: failed program was:" >&5 
     9047sed 's/^/| /' conftest.$ac_ext >&5 
     9048 
     9049  ac_header_preproc=no 
     9050fi 
     9051 
     9052rm -f conftest.err conftest.$ac_ext 
     9053{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     9054echo "${ECHO_T}$ac_header_preproc" >&6; } 
     9055 
     9056# So?  What about this header? 
     9057case $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 
     9060echo "$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 
     9062echo "$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 
     9067echo "$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 
     9069echo "$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 
     9071echo "$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 
     9073echo "$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 
     9075echo "$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 
     9077echo "$as_me: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&2;} 
     9078 
     9079    ;; 
     9080esac 
     9081{ echo "$as_me:$LINENO: checking for sys/sockio.h" >&5 
     9082echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; } 
     9083if test "${ac_cv_header_sys_sockio_h+set}" = set; then 
     9084  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9085else 
     9086  ac_cv_header_sys_sockio_h=$ac_header_preproc 
     9087fi 
     9088{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5 
     9089echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; } 
     9090 
     9091fi 
     9092if 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 
     9097fi 
     9098 
     9099 
     9100if test "${ac_cv_header_sys_utsname_h+set}" = set; then 
     9101  { echo "$as_me:$LINENO: checking for sys/utsname.h" >&5 
     9102echo $ECHO_N "checking for sys/utsname.h... $ECHO_C" >&6; } 
     9103if test "${ac_cv_header_sys_utsname_h+set}" = set; then 
     9104  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9105fi 
     9106{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_utsname_h" >&5 
     9107echo "${ECHO_T}$ac_cv_header_sys_utsname_h" >&6; } 
     9108else 
     9109  # Is the header compilable? 
     9110{ echo "$as_me:$LINENO: checking sys/utsname.h usability" >&5 
     9111echo $ECHO_N "checking sys/utsname.h usability... $ECHO_C" >&6; } 
     9112cat >conftest.$ac_ext <<_ACEOF 
     9113/* confdefs.h.  */ 
     9114_ACEOF 
     9115cat confdefs.h >>conftest.$ac_ext 
     9116cat >>conftest.$ac_ext <<_ACEOF 
     9117/* end confdefs.h.  */ 
     9118$ac_includes_default 
     9119#include <sys/utsname.h> 
     9120_ACEOF 
     9121rm -f conftest.$ac_objext 
     9122if { (ac_try="$ac_compile" 
     9123case "(($ac_try" in 
     9124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9125  *) ac_try_echo=$ac_try;; 
     9126esac 
     9127eval "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 
     9139else 
     9140  echo "$as_me: failed program was:" >&5 
     9141sed 's/^/| /' conftest.$ac_ext >&5 
     9142 
     9143        ac_header_compiler=no 
     9144fi 
     9145 
     9146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     9147{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     9148echo "${ECHO_T}$ac_header_compiler" >&6; } 
     9149 
     9150# Is the header present? 
     9151{ echo "$as_me:$LINENO: checking sys/utsname.h presence" >&5 
     9152echo $ECHO_N "checking sys/utsname.h presence... $ECHO_C" >&6; } 
     9153cat >conftest.$ac_ext <<_ACEOF 
     9154/* confdefs.h.  */ 
     9155_ACEOF 
     9156cat confdefs.h >>conftest.$ac_ext 
     9157cat >>conftest.$ac_ext <<_ACEOF 
     9158/* end confdefs.h.  */ 
     9159#include <sys/utsname.h> 
     9160_ACEOF 
     9161if { (ac_try="$ac_cpp conftest.$ac_ext" 
     9162case "(($ac_try" in 
     9163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9164  *) ac_try_echo=$ac_try;; 
     9165esac 
     9166eval "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 
     9178else 
     9179  echo "$as_me: failed program was:" >&5 
     9180sed 's/^/| /' conftest.$ac_ext >&5 
     9181 
     9182  ac_header_preproc=no 
     9183fi 
     9184 
     9185rm -f conftest.err conftest.$ac_ext 
     9186{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     9187echo "${ECHO_T}$ac_header_preproc" >&6; } 
     9188 
     9189# So?  What about this header? 
     9190case $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 
     9193echo "$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 
     9195echo "$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 
     9200echo "$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 
     9202echo "$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 
     9204echo "$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 
     9206echo "$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 
     9208echo "$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 
     9210echo "$as_me: WARNING: sys/utsname.h: in the future, the compiler will take precedence" >&2;} 
     9211 
     9212    ;; 
     9213esac 
     9214{ echo "$as_me:$LINENO: checking for sys/utsname.h" >&5 
     9215echo $ECHO_N "checking for sys/utsname.h... $ECHO_C" >&6; } 
     9216if test "${ac_cv_header_sys_utsname_h+set}" = set; then 
     9217  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9218else 
     9219  ac_cv_header_sys_utsname_h=$ac_header_preproc 
     9220fi 
     9221{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_utsname_h" >&5 
     9222echo "${ECHO_T}$ac_cv_header_sys_utsname_h" >&6; } 
     9223 
     9224fi 
     9225if 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 
     9230fi 
     9231 
     9232 
     9233if test "${ac_cv_header_time_h+set}" = set; then 
     9234  { echo "$as_me:$LINENO: checking for time.h" >&5 
     9235echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } 
     9236if test "${ac_cv_header_time_h+set}" = set; then 
     9237  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9238fi 
     9239{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 
     9240echo "${ECHO_T}$ac_cv_header_time_h" >&6; } 
     9241else 
     9242  # Is the header compilable? 
     9243{ echo "$as_me:$LINENO: checking time.h usability" >&5 
     9244echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; } 
     9245cat >conftest.$ac_ext <<_ACEOF 
     9246/* confdefs.h.  */ 
     9247_ACEOF 
     9248cat confdefs.h >>conftest.$ac_ext 
     9249cat >>conftest.$ac_ext <<_ACEOF 
     9250/* end confdefs.h.  */ 
     9251$ac_includes_default 
     9252#include <time.h> 
     9253_ACEOF 
     9254rm -f conftest.$ac_objext 
     9255if { (ac_try="$ac_compile" 
     9256case "(($ac_try" in 
     9257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9258  *) ac_try_echo=$ac_try;; 
     9259esac 
     9260eval "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 
     9272else 
     9273  echo "$as_me: failed program was:" >&5 
     9274sed 's/^/| /' conftest.$ac_ext >&5 
     9275 
     9276        ac_header_compiler=no 
     9277fi 
     9278 
     9279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     9280{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     9281echo "${ECHO_T}$ac_header_compiler" >&6; } 
     9282 
     9283# Is the header present? 
     9284{ echo "$as_me:$LINENO: checking time.h presence" >&5 
     9285echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; } 
     9286cat >conftest.$ac_ext <<_ACEOF 
     9287/* confdefs.h.  */ 
     9288_ACEOF 
     9289cat confdefs.h >>conftest.$ac_ext 
     9290cat >>conftest.$ac_ext <<_ACEOF 
     9291/* end confdefs.h.  */ 
     9292#include <time.h> 
     9293_ACEOF 
     9294if { (ac_try="$ac_cpp conftest.$ac_ext" 
     9295case "(($ac_try" in 
     9296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9297  *) ac_try_echo=$ac_try;; 
     9298esac 
     9299eval "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 
     9311else 
     9312  echo "$as_me: failed program was:" >&5 
     9313sed 's/^/| /' conftest.$ac_ext >&5 
     9314 
     9315  ac_header_preproc=no 
     9316fi 
     9317 
     9318rm -f conftest.err conftest.$ac_ext 
     9319{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     9320echo "${ECHO_T}$ac_header_preproc" >&6; } 
     9321 
     9322# So?  What about this header? 
     9323case $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 
     9326echo "$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 
     9328echo "$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 
     9333echo "$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 
     9335echo "$as_me: WARNING: time.h:     check for missing prerequisite headers?" >&2;} 
     9336    { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5 
     9337echo "$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 
     9339echo "$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 
     9341echo "$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 
     9343echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;} 
     9344 
     9345    ;; 
     9346esac 
     9347{ echo "$as_me:$LINENO: checking for time.h" >&5 
     9348echo $ECHO_N "checking for time.h... $ECHO_C" >&6; } 
     9349if test "${ac_cv_header_time_h+set}" = set; then 
     9350  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9351else 
     9352  ac_cv_header_time_h=$ac_header_preproc 
     9353fi 
     9354{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 
     9355echo "${ECHO_T}$ac_cv_header_time_h" >&6; } 
     9356 
     9357fi 
     9358if test $ac_cv_header_time_h = yes; then 
     9359  cat >>confdefs.h <<\_ACEOF 
     9360#define PJ_HAS_TIME_H 1 
     9361_ACEOF 
     9362 
     9363fi 
     9364 
     9365 
     9366if test "${ac_cv_header_unistd_h+set}" = set; then 
     9367  { echo "$as_me:$LINENO: checking for unistd.h" >&5 
     9368echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } 
     9369if test "${ac_cv_header_unistd_h+set}" = set; then 
     9370  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9371fi 
     9372{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 
     9373echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } 
     9374else 
     9375  # Is the header compilable? 
     9376{ echo "$as_me:$LINENO: checking unistd.h usability" >&5 
     9377echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; } 
     9378cat >conftest.$ac_ext <<_ACEOF 
     9379/* confdefs.h.  */ 
     9380_ACEOF 
     9381cat confdefs.h >>conftest.$ac_ext 
     9382cat >>conftest.$ac_ext <<_ACEOF 
     9383/* end confdefs.h.  */ 
     9384$ac_includes_default 
     9385#include <unistd.h> 
     9386_ACEOF 
     9387rm -f conftest.$ac_objext 
     9388if { (ac_try="$ac_compile" 
     9389case "(($ac_try" in 
     9390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9391  *) ac_try_echo=$ac_try;; 
     9392esac 
     9393eval "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 
     9405else 
     9406  echo "$as_me: failed program was:" >&5 
     9407sed 's/^/| /' conftest.$ac_ext >&5 
     9408 
     9409        ac_header_compiler=no 
     9410fi 
     9411 
     9412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     9413{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     9414echo "${ECHO_T}$ac_header_compiler" >&6; } 
     9415 
     9416# Is the header present? 
     9417{ echo "$as_me:$LINENO: checking unistd.h presence" >&5 
     9418echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; } 
     9419cat >conftest.$ac_ext <<_ACEOF 
     9420/* confdefs.h.  */ 
     9421_ACEOF 
     9422cat confdefs.h >>conftest.$ac_ext 
     9423cat >>conftest.$ac_ext <<_ACEOF 
     9424/* end confdefs.h.  */ 
     9425#include <unistd.h> 
     9426_ACEOF 
     9427if { (ac_try="$ac_cpp conftest.$ac_ext" 
     9428case "(($ac_try" in 
     9429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9430  *) ac_try_echo=$ac_try;; 
     9431esac 
     9432eval "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 
     9444else 
     9445  echo "$as_me: failed program was:" >&5 
     9446sed 's/^/| /' conftest.$ac_ext >&5 
     9447 
     9448  ac_header_preproc=no 
     9449fi 
     9450 
     9451rm -f conftest.err conftest.$ac_ext 
     9452{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     9453echo "${ECHO_T}$ac_header_preproc" >&6; } 
     9454 
     9455# So?  What about this header? 
     9456case $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 
     9459echo "$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 
     9461echo "$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 
     9466echo "$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 
     9468echo "$as_me: WARNING: unistd.h:     check for missing prerequisite headers?" >&2;} 
     9469    { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 
     9470echo "$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 
     9472echo "$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 
     9474echo "$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 
     9476echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} 
     9477 
     9478    ;; 
     9479esac 
     9480{ echo "$as_me:$LINENO: checking for unistd.h" >&5 
     9481echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; } 
     9482if test "${ac_cv_header_unistd_h+set}" = set; then 
     9483  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9484else 
     9485  ac_cv_header_unistd_h=$ac_header_preproc 
     9486fi 
     9487{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 
     9488echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; } 
     9489 
     9490fi 
     9491if test $ac_cv_header_unistd_h = yes; then 
     9492  cat >>confdefs.h <<\_ACEOF 
     9493#define PJ_HAS_UNISTD_H 1 
     9494_ACEOF 
     9495 
     9496fi 
     9497 
     9498 
     9499if test "${ac_cv_header_winsock_h+set}" = set; then 
     9500  { echo "$as_me:$LINENO: checking for winsock.h" >&5 
     9501echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } 
     9502if test "${ac_cv_header_winsock_h+set}" = set; then 
     9503  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9504fi 
     9505{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 
     9506echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } 
     9507else 
     9508  # Is the header compilable? 
     9509{ echo "$as_me:$LINENO: checking winsock.h usability" >&5 
     9510echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; } 
     9511cat >conftest.$ac_ext <<_ACEOF 
     9512/* confdefs.h.  */ 
     9513_ACEOF 
     9514cat confdefs.h >>conftest.$ac_ext 
     9515cat >>conftest.$ac_ext <<_ACEOF 
     9516/* end confdefs.h.  */ 
     9517$ac_includes_default 
     9518#include <winsock.h> 
     9519_ACEOF 
     9520rm -f conftest.$ac_objext 
     9521if { (ac_try="$ac_compile" 
     9522case "(($ac_try" in 
     9523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9524  *) ac_try_echo=$ac_try;; 
     9525esac 
     9526eval "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 
     9538else 
     9539  echo "$as_me: failed program was:" >&5 
     9540sed 's/^/| /' conftest.$ac_ext >&5 
     9541 
     9542        ac_header_compiler=no 
     9543fi 
     9544 
     9545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     9546{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     9547echo "${ECHO_T}$ac_header_compiler" >&6; } 
     9548 
     9549# Is the header present? 
     9550{ echo "$as_me:$LINENO: checking winsock.h presence" >&5 
     9551echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; } 
     9552cat >conftest.$ac_ext <<_ACEOF 
     9553/* confdefs.h.  */ 
     9554_ACEOF 
     9555cat confdefs.h >>conftest.$ac_ext 
     9556cat >>conftest.$ac_ext <<_ACEOF 
     9557/* end confdefs.h.  */ 
     9558#include <winsock.h> 
     9559_ACEOF 
     9560if { (ac_try="$ac_cpp conftest.$ac_ext" 
     9561case "(($ac_try" in 
     9562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9563  *) ac_try_echo=$ac_try;; 
     9564esac 
     9565eval "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 
     9577else 
     9578  echo "$as_me: failed program was:" >&5 
     9579sed 's/^/| /' conftest.$ac_ext >&5 
     9580 
     9581  ac_header_preproc=no 
     9582fi 
     9583 
     9584rm -f conftest.err conftest.$ac_ext 
     9585{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     9586echo "${ECHO_T}$ac_header_preproc" >&6; } 
     9587 
     9588# So?  What about this header? 
     9589case $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 
     9592echo "$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 
     9594echo "$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 
     9599echo "$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 
     9601echo "$as_me: WARNING: winsock.h:     check for missing prerequisite headers?" >&2;} 
     9602    { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5 
     9603echo "$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 
     9605echo "$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 
     9607echo "$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 
     9609echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;} 
     9610 
     9611    ;; 
     9612esac 
     9613{ echo "$as_me:$LINENO: checking for winsock.h" >&5 
     9614echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; } 
     9615if test "${ac_cv_header_winsock_h+set}" = set; then 
     9616  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9617else 
     9618  ac_cv_header_winsock_h=$ac_header_preproc 
     9619fi 
     9620{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 
     9621echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; } 
     9622 
     9623fi 
     9624if test $ac_cv_header_winsock_h = yes; then 
     9625  cat >>confdefs.h <<\_ACEOF 
     9626#define PJ_HAS_WINSOCK_H 1 
     9627_ACEOF 
     9628 
     9629fi 
     9630 
     9631 
     9632if test "${ac_cv_header_winsock2_h+set}" = set; then 
     9633  { echo "$as_me:$LINENO: checking for winsock2.h" >&5 
     9634echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } 
     9635if test "${ac_cv_header_winsock2_h+set}" = set; then 
     9636  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9637fi 
     9638{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 
     9639echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } 
     9640else 
     9641  # Is the header compilable? 
     9642{ echo "$as_me:$LINENO: checking winsock2.h usability" >&5 
     9643echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; } 
     9644cat >conftest.$ac_ext <<_ACEOF 
     9645/* confdefs.h.  */ 
     9646_ACEOF 
     9647cat confdefs.h >>conftest.$ac_ext 
     9648cat >>conftest.$ac_ext <<_ACEOF 
     9649/* end confdefs.h.  */ 
     9650$ac_includes_default 
     9651#include <winsock2.h> 
     9652_ACEOF 
     9653rm -f conftest.$ac_objext 
     9654if { (ac_try="$ac_compile" 
     9655case "(($ac_try" in 
     9656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9657  *) ac_try_echo=$ac_try;; 
     9658esac 
     9659eval "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 
     9671else 
     9672  echo "$as_me: failed program was:" >&5 
     9673sed 's/^/| /' conftest.$ac_ext >&5 
     9674 
     9675        ac_header_compiler=no 
     9676fi 
     9677 
     9678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     9679{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     9680echo "${ECHO_T}$ac_header_compiler" >&6; } 
     9681 
     9682# Is the header present? 
     9683{ echo "$as_me:$LINENO: checking winsock2.h presence" >&5 
     9684echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; } 
     9685cat >conftest.$ac_ext <<_ACEOF 
     9686/* confdefs.h.  */ 
     9687_ACEOF 
     9688cat confdefs.h >>conftest.$ac_ext 
     9689cat >>conftest.$ac_ext <<_ACEOF 
     9690/* end confdefs.h.  */ 
     9691#include <winsock2.h> 
     9692_ACEOF 
     9693if { (ac_try="$ac_cpp conftest.$ac_ext" 
     9694case "(($ac_try" in 
     9695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9696  *) ac_try_echo=$ac_try;; 
     9697esac 
     9698eval "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 
     9710else 
     9711  echo "$as_me: failed program was:" >&5 
     9712sed 's/^/| /' conftest.$ac_ext >&5 
     9713 
     9714  ac_header_preproc=no 
     9715fi 
     9716 
     9717rm -f conftest.err conftest.$ac_ext 
     9718{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     9719echo "${ECHO_T}$ac_header_preproc" >&6; } 
     9720 
     9721# So?  What about this header? 
     9722case $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 
     9725echo "$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 
     9727echo "$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 
     9732echo "$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 
     9734echo "$as_me: WARNING: winsock2.h:     check for missing prerequisite headers?" >&2;} 
     9735    { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 
     9736echo "$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 
     9738echo "$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 
     9740echo "$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 
     9742echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} 
     9743 
     9744    ;; 
     9745esac 
     9746{ echo "$as_me:$LINENO: checking for winsock2.h" >&5 
     9747echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; } 
     9748if test "${ac_cv_header_winsock2_h+set}" = set; then 
     9749  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9750else 
     9751  ac_cv_header_winsock2_h=$ac_header_preproc 
     9752fi 
     9753{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 
     9754echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; } 
     9755 
     9756fi 
     9757if test $ac_cv_header_winsock2_h = yes; then 
     9758  cat >>confdefs.h <<\_ACEOF 
     9759#define PJ_HAS_WINSOCK2_H 1 
     9760_ACEOF 
     9761 
     9762fi 
     9763 
     9764 
     9765{ echo "$as_me:$LINENO: checking for mswsock.h" >&5 
     9766echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; } 
     9767if test "${ac_cv_header_mswsock_h+set}" = set; then 
     9768  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9769else 
     9770  cat >conftest.$ac_ext <<_ACEOF 
     9771/* confdefs.h.  */ 
     9772_ACEOF 
     9773cat confdefs.h >>conftest.$ac_ext 
     9774cat >>conftest.$ac_ext <<_ACEOF 
     9775/* end confdefs.h.  */ 
     9776#if PJ_HAS_WINSOCK2_H 
    49649777                  #     include <winsock2.h> 
    49659778                  #elif PJ_HAS_WINSOCK_H 
     
    49679780                  #endif 
    49689781 
    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 
     9785rm -f conftest.$ac_objext 
     9786if { (ac_try="$ac_compile" 
     9787case "(($ac_try" in 
     9788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9789  *) ac_try_echo=$ac_try;; 
     9790esac 
     9791eval "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 
     9803else 
     9804  echo "$as_me: failed program was:" >&5 
     9805sed 's/^/| /' conftest.$ac_ext >&5 
     9806 
     9807        ac_cv_header_mswsock_h=no 
     9808fi 
     9809 
     9810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     9811fi 
     9812{ echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 
     9813echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; } 
     9814if test $ac_cv_header_mswsock_h = yes; then 
     9815  cat >>confdefs.h <<\_ACEOF 
     9816#define PJ_HAS_MSWSOCK_H 1 
     9817_ACEOF 
     9818 
     9819fi 
     9820 
     9821 
     9822if test "${ac_cv_header_ws2tcpip_h+set}" = set; then 
     9823  { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5 
     9824echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; } 
     9825if test "${ac_cv_header_ws2tcpip_h+set}" = set; then 
     9826  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9827fi 
     9828{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5 
     9829echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; } 
     9830else 
     9831  # Is the header compilable? 
     9832{ echo "$as_me:$LINENO: checking ws2tcpip.h usability" >&5 
     9833echo $ECHO_N "checking ws2tcpip.h usability... $ECHO_C" >&6; } 
     9834cat >conftest.$ac_ext <<_ACEOF 
     9835/* confdefs.h.  */ 
     9836_ACEOF 
     9837cat confdefs.h >>conftest.$ac_ext 
     9838cat >>conftest.$ac_ext <<_ACEOF 
     9839/* end confdefs.h.  */ 
     9840$ac_includes_default 
     9841#include <ws2tcpip.h> 
     9842_ACEOF 
     9843rm -f conftest.$ac_objext 
     9844if { (ac_try="$ac_compile" 
     9845case "(($ac_try" in 
     9846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9847  *) ac_try_echo=$ac_try;; 
     9848esac 
     9849eval "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 
     9861else 
     9862  echo "$as_me: failed program was:" >&5 
     9863sed 's/^/| /' conftest.$ac_ext >&5 
     9864 
     9865        ac_header_compiler=no 
     9866fi 
     9867 
     9868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     9869{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     9870echo "${ECHO_T}$ac_header_compiler" >&6; } 
     9871 
     9872# Is the header present? 
     9873{ echo "$as_me:$LINENO: checking ws2tcpip.h presence" >&5 
     9874echo $ECHO_N "checking ws2tcpip.h presence... $ECHO_C" >&6; } 
     9875cat >conftest.$ac_ext <<_ACEOF 
     9876/* confdefs.h.  */ 
     9877_ACEOF 
     9878cat confdefs.h >>conftest.$ac_ext 
     9879cat >>conftest.$ac_ext <<_ACEOF 
     9880/* end confdefs.h.  */ 
     9881#include <ws2tcpip.h> 
     9882_ACEOF 
     9883if { (ac_try="$ac_cpp conftest.$ac_ext" 
     9884case "(($ac_try" in 
     9885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9886  *) ac_try_echo=$ac_try;; 
     9887esac 
     9888eval "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 
     9900else 
     9901  echo "$as_me: failed program was:" >&5 
     9902sed 's/^/| /' conftest.$ac_ext >&5 
     9903 
     9904  ac_header_preproc=no 
     9905fi 
     9906 
     9907rm -f conftest.err conftest.$ac_ext 
     9908{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     9909echo "${ECHO_T}$ac_header_preproc" >&6; } 
     9910 
     9911# So?  What about this header? 
     9912case $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 
     9915echo "$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 
     9917echo "$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 
     9922echo "$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 
     9924echo "$as_me: WARNING: ws2tcpip.h:     check for missing prerequisite headers?" >&2;} 
     9925    { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: see the Autoconf documentation" >&5 
     9926echo "$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 
     9928echo "$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 
     9930echo "$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 
     9932echo "$as_me: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&2;} 
     9933 
     9934    ;; 
     9935esac 
     9936{ echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5 
     9937echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; } 
     9938if test "${ac_cv_header_ws2tcpip_h+set}" = set; then 
     9939  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9940else 
     9941  ac_cv_header_ws2tcpip_h=$ac_header_preproc 
     9942fi 
     9943{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5 
     9944echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; } 
     9945 
     9946fi 
     9947if test $ac_cv_header_ws2tcpip_h = yes; then 
     9948  cat >>confdefs.h <<\_ACEOF 
     9949#define PJ_HAS_WS2TCPIP_H 1 
     9950_ACEOF 
     9951 
     9952fi 
     9953 
     9954 
     9955if test "${ac_cv_header_uuid_uuid_h+set}" = set; then 
     9956  { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 
     9957echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } 
     9958if test "${ac_cv_header_uuid_uuid_h+set}" = set; then 
     9959  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9960fi 
     9961{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 
     9962echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } 
     9963else 
     9964  # Is the header compilable? 
     9965{ echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 
     9966echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; } 
     9967cat >conftest.$ac_ext <<_ACEOF 
     9968/* confdefs.h.  */ 
     9969_ACEOF 
     9970cat confdefs.h >>conftest.$ac_ext 
     9971cat >>conftest.$ac_ext <<_ACEOF 
     9972/* end confdefs.h.  */ 
     9973$ac_includes_default 
     9974#include <uuid/uuid.h> 
     9975_ACEOF 
     9976rm -f conftest.$ac_objext 
     9977if { (ac_try="$ac_compile" 
     9978case "(($ac_try" in 
     9979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9980  *) ac_try_echo=$ac_try;; 
     9981esac 
     9982eval "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 
     9994else 
     9995  echo "$as_me: failed program was:" >&5 
     9996sed 's/^/| /' conftest.$ac_ext >&5 
     9997 
     9998        ac_header_compiler=no 
     9999fi 
     10000 
     10001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     10002{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     10003echo "${ECHO_T}$ac_header_compiler" >&6; } 
     10004 
     10005# Is the header present? 
     10006{ echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 
     10007echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; } 
     10008cat >conftest.$ac_ext <<_ACEOF 
     10009/* confdefs.h.  */ 
     10010_ACEOF 
     10011cat confdefs.h >>conftest.$ac_ext 
     10012cat >>conftest.$ac_ext <<_ACEOF 
     10013/* end confdefs.h.  */ 
     10014#include <uuid/uuid.h> 
     10015_ACEOF 
     10016if { (ac_try="$ac_cpp conftest.$ac_ext" 
     10017case "(($ac_try" in 
     10018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10019  *) ac_try_echo=$ac_try;; 
     10020esac 
     10021eval "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 
     10033else 
     10034  echo "$as_me: failed program was:" >&5 
     10035sed 's/^/| /' conftest.$ac_ext >&5 
     10036 
     10037  ac_header_preproc=no 
     10038fi 
     10039 
     10040rm -f conftest.err conftest.$ac_ext 
     10041{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     10042echo "${ECHO_T}$ac_header_preproc" >&6; } 
     10043 
     10044# So?  What about this header? 
     10045case $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 
     10048echo "$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 
     10050echo "$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 
     10055echo "$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 
     10057echo "$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 
     10059echo "$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 
     10061echo "$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 
     10063echo "$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 
     10065echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;} 
     10066 
     10067    ;; 
     10068esac 
     10069{ echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 
     10070echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; } 
     10071if test "${ac_cv_header_uuid_uuid_h+set}" = set; then 
     10072  echo $ECHO_N "(cached) $ECHO_C" >&6 
     10073else 
     10074  ac_cv_header_uuid_uuid_h=$ac_header_preproc 
     10075fi 
     10076{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 
     10077echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; } 
     10078 
     10079fi 
     10080if test $ac_cv_header_uuid_uuid_h = yes; then 
    498510081  ac_has_uuid_h=1 
    498610082fi 
    498710083 
    498810084 
    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 
     10086echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; } 
     10087if test "${ac_cv_header_net_if_h+set}" = set; then 
     10088  echo $ECHO_N "(cached) $ECHO_C" >&6 
     10089else 
     10090  cat >conftest.$ac_ext <<_ACEOF 
     10091/* confdefs.h.  */ 
     10092_ACEOF 
     10093cat confdefs.h >>conftest.$ac_ext 
     10094cat >>conftest.$ac_ext <<_ACEOF 
     10095/* end confdefs.h.  */ 
     10096#if PJ_HAS_SYS_TYPES_H 
    499010097                  #     include <sys/types.h> 
    499110098                  #endif 
     
    499510102                  #endif 
    499610103 
    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 
     10107rm -f conftest.$ac_objext 
     10108if { (ac_try="$ac_compile" 
     10109case "(($ac_try" in 
     10110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10111  *) ac_try_echo=$ac_try;; 
     10112esac 
     10113eval "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 
     10125else 
     10126  echo "$as_me: failed program was:" >&5 
     10127sed 's/^/| /' conftest.$ac_ext >&5 
     10128 
     10129        ac_cv_header_net_if_h=no 
     10130fi 
     10131 
     10132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     10133fi 
     10134{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 
     10135echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; } 
     10136if 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 
     10141fi 
     10142 
     10143 
     10144{ echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 
     10145echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6; } 
    500610146cat >>confdefs.h <<_ACEOF 
    500710147#define PJ_OS_NAME "$target" 
     
    500910149 
    501010150 
    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 
     10152echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6; } 
     10153cat >>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 
     10159echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } 
     10160cat >>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 
     10166echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6; } 
     10167cat >>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 
     10173echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } 
     10174cat >>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 
     10180echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } 
     10181cat >>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 
     10187echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6; } 
     10188cat >conftest.$ac_ext <<_ACEOF 
     10189/* confdefs.h.  */ 
     10190_ACEOF 
     10191cat confdefs.h >>conftest.$ac_ext 
     10192cat >>conftest.$ac_ext <<_ACEOF 
    503910193/* end confdefs.h.  */ 
    504010194#include <sys/types.h> 
     
    504910203} 
    505010204_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 
     10205rm -f conftest.$ac_objext 
     10206if { (ac_try="$ac_compile" 
     10207case "(($ac_try" in 
     10208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10209  *) ac_try_echo=$ac_try;; 
     10210esac 
     10211eval "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 
     10227echo "${ECHO_T}yes" >&6; } 
     10228else 
     10229  echo "$as_me: failed program was:" >&5 
     10230sed 's/^/| /' conftest.$ac_ext >&5 
     10231 
     10232        { echo "$as_me:$LINENO: result: no" >&5 
     10233echo "${ECHO_T}no" >&6; } 
     10234fi 
     10235 
    506010236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    506110237 
    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 
     10239echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6; } 
     10240cat >conftest.$ac_ext <<_ACEOF 
     10241/* confdefs.h.  */ 
     10242_ACEOF 
     10243cat confdefs.h >>conftest.$ac_ext 
     10244cat >>conftest.$ac_ext <<_ACEOF 
    506510245/* end confdefs.h.  */ 
    506610246#include <sys/types.h> 
     
    507510255} 
    507610256_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 
     10257rm -f conftest.$ac_objext 
     10258if { (ac_try="$ac_compile" 
     10259case "(($ac_try" in 
     10260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10261  *) ac_try_echo=$ac_try;; 
     10262esac 
     10263eval "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 
     10279echo "${ECHO_T}yes" >&6; } 
     10280else 
     10281  echo "$as_me: failed program was:" >&5 
     10282sed 's/^/| /' conftest.$ac_ext >&5 
     10283 
     10284        { echo "$as_me:$LINENO: result: no" >&5 
     10285echo "${ECHO_T}no" >&6; } 
     10286fi 
     10287 
    508610288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    508710289 
    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 
     10291echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6; } 
     10292cat >conftest.$ac_ext <<_ACEOF 
     10293/* confdefs.h.  */ 
     10294_ACEOF 
     10295cat confdefs.h >>conftest.$ac_ext 
     10296cat >>conftest.$ac_ext <<_ACEOF 
    509110297/* end confdefs.h.  */ 
    509210298#include <sys/types.h> 
     
    510110307} 
    510210308_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 
     10309rm -f conftest.$ac_objext 
     10310if { (ac_try="$ac_compile" 
     10311case "(($ac_try" in 
     10312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10313  *) ac_try_echo=$ac_try;; 
     10314esac 
     10315eval "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 
     10331echo "${ECHO_T}yes" >&6; } 
     10332else 
     10333  echo "$as_me: failed program was:" >&5 
     10334sed 's/^/| /' conftest.$ac_ext >&5 
     10335 
     10336        { echo "$as_me:$LINENO: result: no" >&5 
     10337echo "${ECHO_T}no" >&6; } 
     10338fi 
     10339 
    511210340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    511310341 
    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 
     10343echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6; } 
     10344cat >conftest.$ac_ext <<_ACEOF 
     10345/* confdefs.h.  */ 
     10346_ACEOF 
     10347cat confdefs.h >>conftest.$ac_ext 
     10348cat >>conftest.$ac_ext <<_ACEOF 
    511710349/* end confdefs.h.  */ 
    511810350#include <sys/types.h> 
     
    512710359} 
    512810360_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 
     10361rm -f conftest.$ac_objext 
     10362if { (ac_try="$ac_compile" 
     10363case "(($ac_try" in 
     10364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10365  *) ac_try_echo=$ac_try;; 
     10366esac 
     10367eval "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 
     10383echo "${ECHO_T}yes" >&6; } 
     10384else 
     10385  echo "$as_me: failed program was:" >&5 
     10386sed 's/^/| /' conftest.$ac_ext >&5 
     10387 
     10388        { echo "$as_me:$LINENO: result: no" >&5 
     10389echo "${ECHO_T}no" >&6; } 
     10390fi 
     10391 
    513810392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    513910393 
    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 
     10395echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6; } 
     10396cat >conftest.$ac_ext <<_ACEOF 
     10397/* confdefs.h.  */ 
     10398_ACEOF 
     10399cat confdefs.h >>conftest.$ac_ext 
     10400cat >>conftest.$ac_ext <<_ACEOF 
    514310401/* end confdefs.h.  */ 
    514410402#include <sys/types.h> 
     
    515410412} 
    515510413_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 
     10414rm -f conftest.$ac_objext 
     10415if { (ac_try="$ac_compile" 
     10416case "(($ac_try" in 
     10417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10418  *) ac_try_echo=$ac_try;; 
     10419esac 
     10420eval "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 
     10436echo "${ECHO_T}yes" >&6; } 
     10437else 
     10438  echo "$as_me: failed program was:" >&5 
     10439sed 's/^/| /' conftest.$ac_ext >&5 
     10440 
     10441        { echo "$as_me:$LINENO: result: no" >&5 
     10442echo "${ECHO_T}no" >&6; } 
     10443fi 
     10444 
    516510445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    516610446 
    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 
     10448echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6; } 
     10449cat >conftest.$ac_ext <<_ACEOF 
     10450/* confdefs.h.  */ 
     10451_ACEOF 
     10452cat confdefs.h >>conftest.$ac_ext 
     10453cat >>conftest.$ac_ext <<_ACEOF 
    517010454/* end confdefs.h.  */ 
    517110455#include <sys/types.h> 
     
    517910463} 
    518010464_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 
     10465rm -f conftest.$ac_objext 
     10466if { (ac_try="$ac_compile" 
     10467case "(($ac_try" in 
     10468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10469  *) ac_try_echo=$ac_try;; 
     10470esac 
     10471eval "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 
     10487echo "${ECHO_T}yes" >&6; } 
     10488else 
     10489  echo "$as_me: failed program was:" >&5 
     10490sed 's/^/| /' conftest.$ac_ext >&5 
     10491 
     10492        { echo "$as_me:$LINENO: result: no" >&5 
     10493echo "${ECHO_T}no" >&6; } 
     10494fi 
     10495 
    519010496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    519110497 
    5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5 
    5193 $as_echo_n "checking if SO_ERROR is available... " >&6; } 
     10498{ echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5 
     10499echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6; } 
    519410500case $target in 
    519510501    *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 
     10507echo "${ECHO_T}yes" >&6; } 
    520010508        ;; 
    520110509    *) 
    5202         cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     10510        cat >conftest.$ac_ext <<_ACEOF 
     10511/* confdefs.h.  */ 
     10512_ACEOF 
     10513cat confdefs.h >>conftest.$ac_ext 
     10514cat >>conftest.$ac_ext <<_ACEOF 
    520310515/* end confdefs.h.  */ 
    520410516#include <sys/types.h> 
     
    521410526} 
    521510527_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 
     10528rm -f conftest.$ac_objext 
     10529if { (ac_try="$ac_compile" 
     10530case "(($ac_try" in 
     10531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10532  *) ac_try_echo=$ac_try;; 
     10533esac 
     10534eval "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 
     10550echo "${ECHO_T}yes" >&6; } 
     10551else 
     10552  echo "$as_me: failed program was:" >&5 
     10553sed 's/^/| /' conftest.$ac_ext >&5 
     10554 
     10555        { echo "$as_me:$LINENO: result: no" >&5 
     10556echo "${ECHO_T}no" >&6; } 
     10557fi 
     10558 
    522510559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    522610560        ;; 
     
    522810562 
    522910563 
    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 
     10565echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6; } 
     10566cat >conftest.$ac_ext <<_ACEOF 
     10567/* confdefs.h.  */ 
     10568_ACEOF 
     10569cat confdefs.h >>conftest.$ac_ext 
     10570cat >>conftest.$ac_ext <<_ACEOF 
    523310571/* end confdefs.h.  */ 
    523410572#include <pthread.h> 
     
    524110579} 
    524210580_ACEOF 
    5243 if ac_fn_c_try_compile "$LINENO"; then : 
    5244   $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h 
     10581rm -f conftest.$ac_objext 
     10582if { (ac_try="$ac_compile" 
     10583case "(($ac_try" in 
     10584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10585  *) ac_try_echo=$ac_try;; 
     10586esac 
     10587eval "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 
    524510601 
    524610602                   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 
     10604echo "${ECHO_T}yes" >&6; } 
     10605else 
     10606  echo "$as_me: failed program was:" >&5 
     10607sed 's/^/| /' conftest.$ac_ext >&5 
     10608 
     10609        cat >>confdefs.h <<\_ACEOF 
     10610#define PJ_EMULATE_RWMUTEX 1 
     10611_ACEOF 
    525110612 
    525210613                   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 
     10615echo "${ECHO_T}no" >&6; } 
     10616fi 
     10617 
    525610618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    525710619 
    525810620if 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 
     10622echo $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 
     10626cat confdefs.h >>conftest.$ac_ext 
     10627cat >>conftest.$ac_ext <<_ACEOF 
    526210628/* end confdefs.h.  */ 
    526310629#define _POSIX_READER_WRITER_LOCKS 
     
    527110637} 
    527210638_ACEOF 
    5273 if ac_fn_c_try_compile "$LINENO"; then : 
    5274   $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h 
     10639rm -f conftest.$ac_objext 
     10640if { (ac_try="$ac_compile" 
     10641case "(($ac_try" in 
     10642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10643  *) ac_try_echo=$ac_try;; 
     10644esac 
     10645eval "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 
    527510659 
    527610660                       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 
     10662echo "${ECHO_T}yes" >&6; } 
     10663else 
     10664  echo "$as_me: failed program was:" >&5 
     10665sed '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 
     10672echo "${ECHO_T}no" >&6; } 
     10673fi 
     10674 
    528510675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    528610676fi 
    528710677 
    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 
     10679echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6; } 
     10680cat >conftest.$ac_ext <<_ACEOF 
     10681/* confdefs.h.  */ 
     10682_ACEOF 
     10683cat confdefs.h >>conftest.$ac_ext 
     10684cat >>conftest.$ac_ext <<_ACEOF 
    529110685/* end confdefs.h.  */ 
    529210686#include <pthread.h> 
     
    529910693} 
    530010694_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 
     10695rm -f conftest.$ac_objext 
     10696if { (ac_try="$ac_compile" 
     10697case "(($ac_try" in 
     10698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10699  *) ac_try_echo=$ac_try;; 
     10700esac 
     10701eval "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 
     10717echo "${ECHO_T}yes" >&6; } 
     10718else 
     10719  echo "$as_me: failed program was:" >&5 
     10720sed 's/^/| /' conftest.$ac_ext >&5 
     10721 
     10722        { echo "$as_me:$LINENO: result: no" >&5 
     10723echo "${ECHO_T}no" >&6; } 
     10724fi 
     10725 
    531010726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    531110727 
    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 
     10729echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6; } 
     10730cat >conftest.$ac_ext <<_ACEOF 
     10731/* confdefs.h.  */ 
     10732_ACEOF 
     10733cat confdefs.h >>conftest.$ac_ext 
     10734cat >>conftest.$ac_ext <<_ACEOF 
    531510735/* end confdefs.h.  */ 
    531610736#include <pthread.h> 
     
    532410744} 
    532510745_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 
     10746rm -f conftest.$ac_objext 
     10747if { (ac_try="$ac_compile" 
     10748case "(($ac_try" in 
     10749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10750  *) ac_try_echo=$ac_try;; 
     10751esac 
     10752eval "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 
     10768echo "${ECHO_T}yes" >&6; } 
     10769else 
     10770  echo "$as_me: failed program was:" >&5 
     10771sed 's/^/| /' conftest.$ac_ext >&5 
     10772 
     10773        { echo "$as_me:$LINENO: result: no" >&5 
     10774echo "${ECHO_T}no" >&6; } 
     10775fi 
     10776 
    533510777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    533610778 
    533710779 
    5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5 
    5339 $as_echo_n "checking ioqueue backend... " >&6; } 
     10780{ echo "$as_me:$LINENO: checking ioqueue backend" >&5 
     10781echo $ECHO_N "checking ioqueue backend... $ECHO_C" >&6; } 
    534010782# Check whether --enable-epoll was given. 
    5341 if test "${enable_epoll+set}" = set; then : 
     10783if test "${enable_epoll+set}" = set; then 
    534210784  enableval=$enable_epoll; 
    534310785                ac_os_objs=ioqueue_epoll.o 
    5344                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5 
    5345 $as_echo "/dev/epoll" >&6; } 
     10786                { echo "$as_me:$LINENO: result: /dev/epoll" >&5 
     10787echo "${ECHO_T}/dev/epoll" >&6; } 
    534610788 
    534710789else 
    534810790 
    534910791                ac_os_objs=ioqueue_select.o 
    5350                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5 
    5351 $as_echo "select()" >&6; } 
     10792                { echo "$as_me:$LINENO: result: select()" >&5 
     10793echo "${ECHO_T}select()" >&6; } 
    535210794 
    535310795fi 
     
    538610828 
    538710829# Check whether --with-external-speex was given. 
    5388 if test "${with_external_speex+set}" = set; then : 
     10830if test "${with_external_speex+set}" = set; then 
    538910831  withval=$with_external_speex; 
    539010832        if test "x$with_external_speex" != "xno"; then 
    539110833                # 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 
     10835echo $ECHO_N "checking if external Speex devkit is installed... $ECHO_C" >&6; } 
     10836                cat >conftest.$ac_ext <<_ACEOF 
     10837/* confdefs.h.  */ 
     10838_ACEOF 
     10839cat confdefs.h >>conftest.$ac_ext 
     10840cat >>conftest.$ac_ext <<_ACEOF 
    539510841/* end confdefs.h.  */ 
    539610842#include <speex/speex.h> 
     
    540510851} 
    540610852_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 
     10853rm -f conftest.$ac_objext 
     10854if { (ac_try="$ac_compile" 
     10855case "(($ac_try" in 
     10856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10857  *) ac_try_echo=$ac_try;; 
     10858esac 
     10859eval "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 
     10871echo "${ECHO_T}yes!!" >&6; } 
     10872                                   cat >>confdefs.h <<\_ACEOF 
     10873#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1 
     10874_ACEOF 
    541110875 
    541210876                                   ac_external_speex="1" 
    541310877 
    541410878else 
    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 
     10880sed '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 
     10883echo "$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; }; } 
     10885fi 
     10886 
    541710887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    541810888        fi 
     
    542610896 
    542710897# Check whether --with-external-gsm was given. 
    5428 if test "${with_external_gsm+set}" = set; then : 
     10898if test "${with_external_gsm+set}" = set; then 
    542910899  withval=$with_external_gsm; 
    543010900        if test "x$with_external_gsm" != "xno"; then 
    543110901                # 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 
     10903echo $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 
     10907cat confdefs.h >>conftest.$ac_ext 
     10908cat >>conftest.$ac_ext <<_ACEOF 
    543510909/* end confdefs.h.  */ 
    543610910#include <gsm/gsm.h> 
     
    544310917} 
    544410918_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 
     10919rm -f conftest.$ac_objext 
     10920if { (ac_try="$ac_compile" 
     10921case "(($ac_try" in 
     10922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10923  *) ac_try_echo=$ac_try;; 
     10924esac 
     10925eval "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 
     10937echo "${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 
    545110945 
    545210946                     ac_external_gsm="1" 
    545310947 
    545410948else 
    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 
     10950sed 's/^/| /' conftest.$ac_ext >&5 
     10951 
     10952 
     10953                     { echo "$as_me:$LINENO: result: no" >&5 
     10954echo "${ECHO_T}no" >&6; } 
     10955                     { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm.h" >&5 
     10956echo $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 
     10960cat confdefs.h >>conftest.$ac_ext 
     10961cat >>conftest.$ac_ext <<_ACEOF 
    546110962/* end confdefs.h.  */ 
    546210963#include <gsm.h> 
     
    546910970} 
    547010971_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 
     10972rm -f conftest.$ac_objext 
     10973if { (ac_try="$ac_compile" 
     10974case "(($ac_try" in 
     10975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     10976  *) ac_try_echo=$ac_try;; 
     10977esac 
     10978eval "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 
     10990echo "${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 
    547710998 
    547810999                         ac_external_gsm="1" 
    547911000 
    548011001else 
    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 
     11003sed '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 
     11006echo "$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 
     11010fi 
     11011 
    548511012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    548611013 
    548711014 
    548811015fi 
     11016 
    548911017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    549011018        fi 
     
    549811026 
    549911027# Check whether --enable-sound was given. 
    5500 if test "${enable_sound+set}" = set; then : 
     11028if test "${enable_sound+set}" = set; then 
    550111029  enableval=$enable_sound; if test "$enable_sound" = "no"; then 
    550211030                ac_pjmedia_snd=null 
    5503                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5 
    5504 $as_echo "Checking if sound is disabled... yes" >&6; } 
     11031                { echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5 
     11032echo "${ECHO_T}Checking if sound is disabled... yes" >&6; } 
    550511033               fi 
    550611034 
     
    551211040 
    551311041# Check whether --with-external-pa was given. 
    5514 if test "${with_external_pa+set}" = set; then : 
     11042if test "${with_external_pa+set}" = set; then 
    551511043  withval=$with_external_pa; 
    551611044        if test "x$with_external_pa" != "xno"; then 
    551711045                # 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 
     11047echo $ECHO_N "checking if external PortAudio devkit is installed... $ECHO_C" >&6; } 
     11048                cat >conftest.$ac_ext <<_ACEOF 
     11049/* confdefs.h.  */ 
     11050_ACEOF 
     11051cat confdefs.h >>conftest.$ac_ext 
     11052cat >>conftest.$ac_ext <<_ACEOF 
    552111053/* end confdefs.h.  */ 
    552211054#include <portaudio.h> 
     
    553011062} 
    553111063_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; } 
     11064rm -f conftest.$ac_objext 
     11065if { (ac_try="$ac_compile" 
     11066case "(($ac_try" in 
     11067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     11068  *) ac_try_echo=$ac_try;; 
     11069esac 
     11070eval "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 
     11082echo "${ECHO_T}yes!!" >&6; } 
    553511083                                   ac_external_pa="1" 
    553611084 
    553711085else 
    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 
     11087sed '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 
     11090echo "$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; }; } 
     11092fi 
     11093 
    554011094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    554111095        fi 
     
    554611100 
    554711101 
    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 : 
     11102if test "${ac_cv_header_sys_soundcard_h+set}" = set; then 
     11103  { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 
     11104echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } 
     11105if test "${ac_cv_header_sys_soundcard_h+set}" = set; then 
     11106  echo $ECHO_N "(cached) $ECHO_C" >&6 
     11107fi 
     11108{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 
     11109echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } 
     11110else 
     11111  # Is the header compilable? 
     11112{ echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5 
     11113echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; } 
     11114cat >conftest.$ac_ext <<_ACEOF 
     11115/* confdefs.h.  */ 
     11116_ACEOF 
     11117cat confdefs.h >>conftest.$ac_ext 
     11118cat >>conftest.$ac_ext <<_ACEOF 
     11119/* end confdefs.h.  */ 
     11120$ac_includes_default 
     11121#include <sys/soundcard.h> 
     11122_ACEOF 
     11123rm -f conftest.$ac_objext 
     11124if { (ac_try="$ac_compile" 
     11125case "(($ac_try" in 
     11126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     11127  *) ac_try_echo=$ac_try;; 
     11128esac 
     11129eval "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 
     11141else 
     11142  echo "$as_me: failed program was:" >&5 
     11143sed 's/^/| /' conftest.$ac_ext >&5 
     11144 
     11145        ac_header_compiler=no 
     11146fi 
     11147 
     11148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     11149{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     11150echo "${ECHO_T}$ac_header_compiler" >&6; } 
     11151 
     11152# Is the header present? 
     11153{ echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5 
     11154echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; } 
     11155cat >conftest.$ac_ext <<_ACEOF 
     11156/* confdefs.h.  */ 
     11157_ACEOF 
     11158cat confdefs.h >>conftest.$ac_ext 
     11159cat >>conftest.$ac_ext <<_ACEOF 
     11160/* end confdefs.h.  */ 
     11161#include <sys/soundcard.h> 
     11162_ACEOF 
     11163if { (ac_try="$ac_cpp conftest.$ac_ext" 
     11164case "(($ac_try" in 
     11165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     11166  *) ac_try_echo=$ac_try;; 
     11167esac 
     11168eval "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 
     11180else 
     11181  echo "$as_me: failed program was:" >&5 
     11182sed 's/^/| /' conftest.$ac_ext >&5 
     11183 
     11184  ac_header_preproc=no 
     11185fi 
     11186 
     11187rm -f conftest.err conftest.$ac_ext 
     11188{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     11189echo "${ECHO_T}$ac_header_preproc" >&6; } 
     11190 
     11191# So?  What about this header? 
     11192case $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 
     11195echo "$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 
     11197echo "$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 
     11202echo "$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 
     11204echo "$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 
     11206echo "$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 
     11208echo "$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 
     11210echo "$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 
     11212echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;} 
     11213 
     11214    ;; 
     11215esac 
     11216{ echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 
     11217echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; } 
     11218if test "${ac_cv_header_sys_soundcard_h+set}" = set; then 
     11219  echo $ECHO_N "(cached) $ECHO_C" >&6 
     11220else 
     11221  ac_cv_header_sys_soundcard_h=$ac_header_preproc 
     11222fi 
     11223{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 
     11224echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; } 
     11225 
     11226fi 
     11227if test $ac_cv_header_sys_soundcard_h = yes; then 
    555011228  ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" 
    555111229fi 
    555211230 
    555311231 
    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 : 
     11232if test "${ac_cv_header_linux_soundcard_h+set}" = set; then 
     11233  { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 
     11234echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } 
     11235if test "${ac_cv_header_linux_soundcard_h+set}" = set; then 
     11236  echo $ECHO_N "(cached) $ECHO_C" >&6 
     11237fi 
     11238{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 
     11239echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } 
     11240else 
     11241  # Is the header compilable? 
     11242{ echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5 
     11243echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; } 
     11244cat >conftest.$ac_ext <<_ACEOF 
     11245/* confdefs.h.  */ 
     11246_ACEOF 
     11247cat confdefs.h >>conftest.$ac_ext 
     11248cat >>conftest.$ac_ext <<_ACEOF 
     11249/* end confdefs.h.  */ 
     11250$ac_includes_default 
     11251#include <linux/soundcard.h> 
     11252_ACEOF 
     11253rm -f conftest.$ac_objext 
     11254if { (ac_try="$ac_compile" 
     11255case "(($ac_try" in 
     11256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     11257  *) ac_try_echo=$ac_try;; 
     11258esac 
     11259eval "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 
     11271else 
     11272  echo "$as_me: failed program was:" >&5 
     11273sed 's/^/| /' conftest.$ac_ext >&5 
     11274 
     11275        ac_header_compiler=no 
     11276fi 
     11277 
     11278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     11279{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     11280echo "${ECHO_T}$ac_header_compiler" >&6; } 
     11281 
     11282# Is the header present? 
     11283{ echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5 
     11284echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; } 
     11285cat >conftest.$ac_ext <<_ACEOF 
     11286/* confdefs.h.  */ 
     11287_ACEOF 
     11288cat confdefs.h >>conftest.$ac_ext 
     11289cat >>conftest.$ac_ext <<_ACEOF 
     11290/* end confdefs.h.  */ 
     11291#include <linux/soundcard.h> 
     11292_ACEOF 
     11293if { (ac_try="$ac_cpp conftest.$ac_ext" 
     11294case "(($ac_try" in 
     11295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     11296  *) ac_try_echo=$ac_try;; 
     11297esac 
     11298eval "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 
     11310else 
     11311  echo "$as_me: failed program was:" >&5 
     11312sed 's/^/| /' conftest.$ac_ext >&5 
     11313 
     11314  ac_header_preproc=no 
     11315fi 
     11316 
     11317rm -f conftest.err conftest.$ac_ext 
     11318{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     11319echo "${ECHO_T}$ac_header_preproc" >&6; } 
     11320 
     11321# So?  What about this header? 
     11322case $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 
     11325echo "$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 
     11327echo "$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 
     11332echo "$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 
     11334echo "$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 
     11336echo "$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 
     11338echo "$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 
     11340echo "$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 
     11342echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;} 
     11343 
     11344    ;; 
     11345esac 
     11346{ echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 
     11347echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; } 
     11348if test "${ac_cv_header_linux_soundcard_h+set}" = set; then 
     11349  echo $ECHO_N "(cached) $ECHO_C" >&6 
     11350else 
     11351  ac_cv_header_linux_soundcard_h=$ac_header_preproc 
     11352fi 
     11353{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 
     11354echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; } 
     11355 
     11356fi 
     11357if test $ac_cv_header_linux_soundcard_h = yes; then 
    555611358  ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" 
    555711359fi 
    555811360 
    555911361 
    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 : 
     11362if test "${ac_cv_header_machine_soundcard_h+set}" = set; then 
     11363  { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 
     11364echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } 
     11365if test "${ac_cv_header_machine_soundcard_h+set}" = set; then 
     11366  echo $ECHO_N "(cached) $ECHO_C" >&6 
     11367fi 
     11368{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 
     11369echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } 
     11370else 
     11371  # Is the header compilable? 
     11372{ echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5 
     11373echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6; } 
     11374cat >conftest.$ac_ext <<_ACEOF 
     11375/* confdefs.h.  */ 
     11376_ACEOF 
     11377cat confdefs.h >>conftest.$ac_ext 
     11378cat >>conftest.$ac_ext <<_ACEOF 
     11379/* end confdefs.h.  */ 
     11380$ac_includes_default 
     11381#include <machine/soundcard.h> 
     11382_ACEOF 
     11383rm -f conftest.$ac_objext 
     11384if { (ac_try="$ac_compile" 
     11385case "(($ac_try" in 
     11386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     11387  *) ac_try_echo=$ac_try;; 
     11388esac 
     11389eval "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 
     11401else 
     11402  echo "$as_me: failed program was:" >&5 
     11403sed 's/^/| /' conftest.$ac_ext >&5 
     11404 
     11405        ac_header_compiler=no 
     11406fi 
     11407 
     11408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     11409{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     11410echo "${ECHO_T}$ac_header_compiler" >&6; } 
     11411 
     11412# Is the header present? 
     11413{ echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5 
     11414echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6; } 
     11415cat >conftest.$ac_ext <<_ACEOF 
     11416/* confdefs.h.  */ 
     11417_ACEOF 
     11418cat confdefs.h >>conftest.$ac_ext 
     11419cat >>conftest.$ac_ext <<_ACEOF 
     11420/* end confdefs.h.  */ 
     11421#include <machine/soundcard.h> 
     11422_ACEOF 
     11423if { (ac_try="$ac_cpp conftest.$ac_ext" 
     11424case "(($ac_try" in 
     11425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     11426  *) ac_try_echo=$ac_try;; 
     11427esac 
     11428eval "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 
     11440else 
     11441  echo "$as_me: failed program was:" >&5 
     11442sed 's/^/| /' conftest.$ac_ext >&5 
     11443 
     11444  ac_header_preproc=no 
     11445fi 
     11446 
     11447rm -f conftest.err conftest.$ac_ext 
     11448{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     11449echo "${ECHO_T}$ac_header_preproc" >&6; } 
     11450 
     11451# So?  What about this header? 
     11452case $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 
     11455echo "$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 
     11457echo "$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 
     11462echo "$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 
     11464echo "$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 
     11466echo "$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 
     11468echo "$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 
     11470echo "$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 
     11472echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;} 
     11473 
     11474    ;; 
     11475esac 
     11476{ echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 
     11477echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; } 
     11478if test "${ac_cv_header_machine_soundcard_h+set}" = set; then 
     11479  echo $ECHO_N "(cached) $ECHO_C" >&6 
     11480else 
     11481  ac_cv_header_machine_soundcard_h=$ac_header_preproc 
     11482fi 
     11483{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 
     11484echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; } 
     11485 
     11486fi 
     11487if test $ac_cv_header_machine_soundcard_h = yes; then 
    556211488  ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" 
    556311489fi 
     
    557711503  arm-apple-darwin*) 
    557811504        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" >&5 
    5580 $as_echo "Checking sound device backend... AudioUnit" >&6; } 
     11505        { echo "$as_me:$LINENO: result: Checking sound device backend... AudioUnit" >&5 
     11506echo "${ECHO_T}Checking sound device backend... AudioUnit" >&6; } 
    558111507        ;; 
    558211508  *darwin*) 
     
    558611512                #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) 
    558711513                ac_pjmedia_snd=pa_old_darwinos 
    5588                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5 
    5589 $as_echo "Checking sound device backend... old coreaudio" >&6; } 
     11514                { echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5 
     11515echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6; } 
    559011516        else 
    559111517                ac_pjmedia_snd=pa_darwinos 
    5592                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5 
    5593 $as_echo "Checking sound device backend... coreaudio" >&6; } 
     11518                { echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5 
     11519echo "${ECHO_T}Checking sound device backend... coreaudio" >&6; } 
    559411520        fi 
    559511521        ;; 
    559611522  *cygwin* | *mingw*) 
    559711523        ac_pjmedia_snd=pa_win32 
    5598         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5 
    5599 $as_echo "Checking sound device backend... win32 sound" >&6; } 
     11524        { echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5 
     11525echo "${ECHO_T}Checking sound device backend... win32 sound" >&6; } 
    560011526        ;; 
    560111527  *rtems*) 
    560211528        ac_pjmedia_snd=null 
    5603         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5 
    5604 $as_echo "Checking sound device backend... null sound" >&6; } 
     11529        { echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5 
     11530echo "${ECHO_T}Checking sound device backend... null sound" >&6; } 
    560511531        ;; 
    560611532  *) 
    560711533                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 
     11536echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } 
     11537if test "${ac_cv_header_alsa_version_h+set}" = set; then 
     11538  echo $ECHO_N "(cached) $ECHO_C" >&6 
     11539fi 
     11540{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 
     11541echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } 
     11542else 
     11543  # Is the header compilable? 
     11544{ echo "$as_me:$LINENO: checking alsa/version.h usability" >&5 
     11545echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6; } 
     11546cat >conftest.$ac_ext <<_ACEOF 
     11547/* confdefs.h.  */ 
     11548_ACEOF 
     11549cat confdefs.h >>conftest.$ac_ext 
     11550cat >>conftest.$ac_ext <<_ACEOF 
     11551/* end confdefs.h.  */ 
     11552$ac_includes_default 
     11553#include <alsa/version.h> 
     11554_ACEOF 
     11555rm -f conftest.$ac_objext 
     11556if { (ac_try="$ac_compile" 
     11557case "(($ac_try" in 
     11558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     11559  *) ac_try_echo=$ac_try;; 
     11560esac 
     11561eval "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 
     11573else 
     11574  echo "$as_me: failed program was:" >&5 
     11575sed 's/^/| /' conftest.$ac_ext >&5 
     11576 
     11577        ac_header_compiler=no 
     11578fi 
     11579 
     11580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     11581{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     11582echo "${ECHO_T}$ac_header_compiler" >&6; } 
     11583 
     11584# Is the header present? 
     11585{ echo "$as_me:$LINENO: checking alsa/version.h presence" >&5 
     11586echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6; } 
     11587cat >conftest.$ac_ext <<_ACEOF 
     11588/* confdefs.h.  */ 
     11589_ACEOF 
     11590cat confdefs.h >>conftest.$ac_ext 
     11591cat >>conftest.$ac_ext <<_ACEOF 
     11592/* end confdefs.h.  */ 
     11593#include <alsa/version.h> 
     11594_ACEOF 
     11595if { (ac_try="$ac_cpp conftest.$ac_ext" 
     11596case "(($ac_try" in 
     11597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     11598  *) ac_try_echo=$ac_try;; 
     11599esac 
     11600eval "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 
     11612else 
     11613  echo "$as_me: failed program was:" >&5 
     11614sed 's/^/| /' conftest.$ac_ext >&5 
     11615 
     11616  ac_header_preproc=no 
     11617fi 
     11618 
     11619rm -f conftest.err conftest.$ac_ext 
     11620{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     11621echo "${ECHO_T}$ac_header_preproc" >&6; } 
     11622 
     11623# So?  What about this header? 
     11624case $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 
     11627echo "$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 
     11629echo "$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 
     11634echo "$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 
     11636echo "$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 
     11638echo "$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 
     11640echo "$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 
     11642echo "$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 
     11644echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;} 
     11645 
     11646    ;; 
     11647esac 
     11648{ echo "$as_me:$LINENO: checking for alsa/version.h" >&5 
     11649echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; } 
     11650if test "${ac_cv_header_alsa_version_h+set}" = set; then 
     11651  echo $ECHO_N "(cached) $ECHO_C" >&6 
     11652else 
     11653  ac_cv_header_alsa_version_h=$ac_header_preproc 
     11654fi 
     11655{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 
     11656echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; } 
     11657 
     11658fi 
     11659if test $ac_cv_header_alsa_version_h = yes; then 
    561011660  ac_pa_use_alsa=1 
    561111661 
     
    561811668 
    561911669 
    5620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5 
    5621 $as_echo "Checking sound device backend... unix" >&6; } 
     11670        { echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5 
     11671echo "${ECHO_T}Checking sound device backend... unix" >&6; } 
    562211672 
    562311673                ac_pa_use_oss=1 
    562411674 
    562511675        # Check whether --enable-oss was given. 
    5626 if test "${enable_oss+set}" = set; then : 
     11676if test "${enable_oss+set}" = set; then 
    562711677  enableval=$enable_oss; 
    562811678                        if test "$enable_oss" = "no"; then 
    562911679                         ac_pa_use_oss=0 
    5630                          { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5 
    5631 $as_echo "Checking if OSS audio is disabled... yes" >&6; } 
     11680                         { echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5 
     11681echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6; } 
    563211682                        fi 
    563311683 
     
    564911699        SAVED_LIBS="$LIBS" 
    565011700        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 
     11704cat confdefs.h >>conftest.$ac_ext 
     11705cat >>conftest.$ac_ext <<_ACEOF 
    565211706/* end confdefs.h.  */ 
    565311707 
     
    566011714} 
    566111715_ACEOF 
    5662 if ac_fn_c_try_link "$LINENO"; then : 
     11716rm -f conftest.$ac_objext conftest$ac_exeext 
     11717if { (ac_try="$ac_link" 
     11718case "(($ac_try" in 
     11719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     11720  *) ac_try_echo=$ac_try;; 
     11721esac 
     11722eval "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 
    566311734  ac_pjmedia_video_has_ios=yes 
    566411735else 
    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 
     11737sed 's/^/| /' conftest.$ac_ext >&5 
     11738 
     11739        ac_pjmedia_video_has_ios=no 
     11740fi 
     11741 
     11742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     11743      conftest$ac_exeext conftest.$ac_ext 
    566911744        LIBS="$SAVED_LIBS" 
    567011745        if test "$ac_pjmedia_video_has_ios" = "yes"; then 
    567111746          ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1" 
    567211747          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" >&5 
    5674 $as_echo "Checking if AVFoundation framework is available... yes" >&6; } 
     11748          { echo "$as_me:$LINENO: result: Checking if AVFoundation framework is available... yes" >&5 
     11749echo "${ECHO_T}Checking if AVFoundation framework is available... yes" >&6; } 
    567511750        else 
    5676           { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5 
    5677 $as_echo "Checking if AVFoundation framework is available... no" >&6; } 
     11751          { echo "$as_me:$LINENO: result: Checking if AVFoundation framework is available... no" >&5 
     11752echo "${ECHO_T}Checking if AVFoundation framework is available... no" >&6; } 
    567811753        fi 
    567911754        ;; 
     
    568411759        SAVED_LIBS="$LIBS" 
    568511760        LIBS="-framework QTKit" 
    5686         cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     11761        cat >conftest.$ac_ext <<_ACEOF 
     11762/* confdefs.h.  */ 
     11763_ACEOF 
     11764cat confdefs.h >>conftest.$ac_ext 
     11765cat >>conftest.$ac_ext <<_ACEOF 
    568711766/* end confdefs.h.  */ 
    568811767 
     
    569511774} 
    569611775_ACEOF 
    5697 if ac_fn_c_try_link "$LINENO"; then : 
     11776rm -f conftest.$ac_objext conftest$ac_exeext 
     11777if { (ac_try="$ac_link" 
     11778case "(($ac_try" in 
     11779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     11780  *) ac_try_echo=$ac_try;; 
     11781esac 
     11782eval "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 
    569811794  ac_pjmedia_video_has_qt=yes 
    569911795else 
    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 
     11797sed 's/^/| /' conftest.$ac_ext >&5 
     11798 
     11799        ac_pjmedia_video_has_qt=no 
     11800fi 
     11801 
     11802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     11803      conftest$ac_exeext conftest.$ac_ext 
    570411804        LIBS="$SAVED_LIBS" 
    570511805        if test "$ac_pjmedia_video_has_qt" = "yes"; then 
    570611806          ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" 
    570711807          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" >&5 
    5709 $as_echo "Checking if QTKit framework is available... yes" >&6; } 
     11808          { echo "$as_me:$LINENO: result: Checking if QTKit framework is available... yes" >&5 
     11809echo "${ECHO_T}Checking if QTKit framework is available... yes" >&6; } 
    571011810        else 
    5711           { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5 
    5712 $as_echo "Checking if QTKit framework is available... no" >&6; } 
     11811          { echo "$as_me:$LINENO: result: Checking if QTKit framework is available... no" >&5 
     11812echo "${ECHO_T}Checking if QTKit framework is available... no" >&6; } 
    571311813        fi 
    571411814        ;; 
     
    571711817 
    571811818# Check whether --enable-ext_sound was given. 
    5719 if test "${enable_ext_sound+set}" = set; then : 
     11819if test "${enable_ext_sound+set}" = set; then 
    572011820  enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then 
    572111821                ac_pjmedia_snd=external 
    5722                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5 
    5723 $as_echo "Checking if external sound is set... yes" >&6; } 
     11822                { echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5 
     11823echo "${ECHO_T}Checking if external sound is set... yes" >&6; } 
    572411824               fi 
    572511825 
     
    572911829 
    573011830# Check whether --enable-small-filter was given. 
    5731 if test "${enable_small_filter+set}" = set; then : 
     11831if test "${enable_small_filter+set}" = set; then 
    573211832  enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then 
    573311833                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" >&5 
    5735 $as_echo "Checking if small filter is disabled... yes" >&6; } 
     11834                { echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5 
     11835echo "${ECHO_T}Checking if small filter is disabled... yes" >&6; } 
    573611836               fi 
    573711837else 
    5738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5 
    5739 $as_echo "Checking if small filter is disabled... no" >&6; } 
     11838  { echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5 
     11839echo "${ECHO_T}Checking if small filter is disabled... no" >&6; } 
    574011840fi 
    574111841 
     
    574311843 
    574411844# Check whether --enable-large-filter was given. 
    5745 if test "${enable_large_filter+set}" = set; then : 
     11845if test "${enable_large_filter+set}" = set; then 
    574611846  enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then 
    574711847                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" >&5 
    5749 $as_echo "Checking if large filter is disabled... yes" >&6; } 
     11848                { echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5 
     11849echo "${ECHO_T}Checking if large filter is disabled... yes" >&6; } 
    575011850               fi 
    575111851else 
    5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5 
    5753 $as_echo "Checking if large filter is disabled... no" >&6; } 
     11852  { echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5 
     11853echo "${ECHO_T}Checking if large filter is disabled... no" >&6; } 
    575411854fi 
    575511855 
     
    575711857 
    575811858# Check whether --enable-speex-aec was given. 
    5759 if test "${enable_speex_aec+set}" = set; then : 
     11859if test "${enable_speex_aec+set}" = set; then 
    576011860  enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then 
    576111861                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" >&5 
    5763 $as_echo "Checking if Speex AEC is disabled...yes" >&6; } 
     11862                { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5 
     11863echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6; } 
    576411864               fi 
    576511865else 
    5766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5 
    5767 $as_echo "Checking if Speex AEC is disabled...no" >&6; } 
     11866  { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5 
     11867echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6; } 
    576811868fi 
    576911869 
     
    577111871 
    577211872# Check whether --enable-g711-codec was given. 
    5773 if test "${enable_g711_codec+set}" = set; then : 
     11873if test "${enable_g711_codec+set}" = set; then 
    577411874  enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then 
    577511875                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 
     11881echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6; } 
    578011882               fi 
    578111883else 
    5782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5 
    5783 $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 
     11885echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6; } 
    578411886fi 
    578511887 
     
    578811890 
    578911891# Check whether --enable-l16-codec was given. 
    5790 if test "${enable_l16_codec+set}" = set; then : 
     11892if test "${enable_l16_codec+set}" = set; then 
    579111893  enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then 
    579211894                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 
     11900echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6; } 
    579711901               fi 
    579811902else 
    5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5 
    5800 $as_echo "Checking if L16 codec is disabled...no" >&6; } 
     11903  { echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5 
     11904echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6; } 
    580111905fi 
    580211906 
     
    580511909 
    580611910# Check whether --enable-gsm-codec was given. 
    5807 if test "${enable_gsm_codec+set}" = set; then : 
     11911if test "${enable_gsm_codec+set}" = set; then 
    580811912  enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then 
    580911913                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 
     11919echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6; } 
    581411920               fi 
    581511921else 
    5816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5 
    5817 $as_echo "Checking if GSM codec is disabled...no" >&6; } 
     11922  { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5 
     11923echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6; } 
    581811924fi 
    581911925 
     
    582111927 
    582211928# Check whether --enable-g722-codec was given. 
    5823 if test "${enable_g722_codec+set}" = set; then : 
     11929if test "${enable_g722_codec+set}" = set; then 
    582411930  enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then 
    582511931                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 
     11937echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6; } 
    583011938               fi 
    583111939else 
    5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5 
    5833 $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 
     11941echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6; } 
    583411942fi 
    583511943 
     
    583711945 
    583811946# Check whether --enable-g7221-codec was given. 
    5839 if test "${enable_g7221_codec+set}" = set; then : 
     11947if test "${enable_g7221_codec+set}" = set; then 
    584011948  enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then 
    584111949                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 
     11955echo "${ECHO_T}Checking if G.722.1 codec is disabled...yes" >&6; } 
    584611956               fi 
    584711957else 
    5848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5 
    5849 $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 
     11959echo "${ECHO_T}Checking if G.722.1 codec is disabled...no" >&6; } 
    585011960fi 
    585111961 
     
    585311963 
    585411964# Check whether --enable-speex-codec was given. 
    5855 if test "${enable_speex_codec+set}" = set; then : 
     11965if test "${enable_speex_codec+set}" = set; then 
    585611966  enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then 
    585711967                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 
     11973echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6; } 
    586211974               fi 
    586311975else 
    5864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5 
    5865 $as_echo "Checking if Speex codec is disabled...no" >&6; } 
     11976  { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5 
     11977echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6; } 
    586611978fi 
    586711979 
     
    586911981 
    587011982# Check whether --enable-ilbc-codec was given. 
    5871 if test "${enable_ilbc_codec+set}" = set; then : 
     11983if test "${enable_ilbc_codec+set}" = set; then 
    587211984  enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then 
    587311985                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 
     11991echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6; } 
    587811992               fi 
    587911993else 
    5880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5 
    5881 $as_echo "Checking if iLBC codec is disabled...no" >&6; } 
     11994  { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5 
     11995echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6; } 
    588211996fi 
    588311997 
    588411998 
    588511999# 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 
     12000if test "${enable_libsamplerate+set}" = set; then 
     12001  enableval=$enable_libsamplerate; 
     12002{ echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5 
     12003echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6; } 
     12004if test "${ac_cv_lib_samplerate_src_new+set}" = set; then 
     12005  echo $ECHO_N "(cached) $ECHO_C" >&6 
    589112006else 
    589212007  ac_check_lib_save_LIBS=$LIBS 
    589312008LIBS="-lsamplerate  $LIBS" 
    5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     12009cat >conftest.$ac_ext <<_ACEOF 
     12010/* confdefs.h.  */ 
     12011_ACEOF 
     12012cat confdefs.h >>conftest.$ac_ext 
     12013cat >>conftest.$ac_ext <<_ACEOF 
    589512014/* end confdefs.h.  */ 
    589612015 
     
    591012029} 
    591112030_ACEOF 
    5912 if ac_fn_c_try_link "$LINENO"; then : 
     12031rm -f conftest.$ac_objext conftest$ac_exeext 
     12032if { (ac_try="$ac_link" 
     12033case "(($ac_try" in 
     12034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     12035  *) ac_try_echo=$ac_try;; 
     12036esac 
     12037eval "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 
    591312049  ac_cv_lib_samplerate_src_new=yes 
    591412050else 
    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 
     12052sed 's/^/| /' conftest.$ac_ext >&5 
     12053 
     12054        ac_cv_lib_samplerate_src_new=no 
     12055fi 
     12056 
     12057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     12058      conftest$ac_exeext conftest.$ac_ext 
    591912059LIBS=$ac_check_lib_save_LIBS 
    592012060fi 
    5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5 
    5922 $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 
     12062echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6; } 
     12063if test $ac_cv_lib_samplerate_src_new = yes; then 
    592412064  cat >>confdefs.h <<_ACEOF 
    592512065#define HAVE_LIBSAMPLERATE 1 
     
    593112071 
    593212072else 
    5933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5 
    5934 $as_echo "Skipping libsamplerate detection" >&6; } 
     12073  { echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5 
     12074echo "${ECHO_T}Skipping libsamplerate detection" >&6; } 
    593512075 
    593612076fi 
     
    593912079 
    594012080# Check whether --with-sdl was given. 
    5941 if test "${with_sdl+set}" = set; then : 
     12081if test "${with_sdl+set}" = set; then 
    594212082  withval=$with_sdl; 
    594312083else 
     
    594812088 
    594912089# Check whether --enable-sdl was given. 
    5950 if test "${enable_sdl+set}" = set; then : 
     12090if test "${enable_sdl+set}" = set; then 
    595112091  enableval=$enable_sdl; 
    595212092                if test "$enable_sdl" = "no"; then 
    5953                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5 
    5954 $as_echo "Checking if SDL is disabled... yes" >&6; } 
     12093                  { echo "$as_me:$LINENO: result: Checking if SDL is disabled... yes" >&5 
     12094echo "${ECHO_T}Checking if SDL is disabled... yes" >&6; } 
    595512095                fi 
    595612096 
     
    596012100                  if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then 
    596112101                        SDL_CONFIG=$with_sdl/bin/sdl-config 
    5962                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5 
    5963 $as_echo "Using SDL prefix... $with_sdl" >&6; } 
     12102                        { echo "$as_me:$LINENO: result: Using SDL prefix... $with_sdl" >&5 
     12103echo "${ECHO_T}Using SDL prefix... $with_sdl" >&6; } 
    596412104                  fi 
    596512105 
    5966                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability.." >&5 
    5967 $as_echo_n "checking SDL availability..... " >&6; } 
     12106                  { echo "$as_me:$LINENO: checking SDL availability.." >&5 
     12107echo $ECHO_N "checking SDL availability..... $ECHO_C" >&6; } 
    596812108                  if (sh -c "$SDL_CONFIG --version" | grep 1.3) then 
    596912109 
     
    597412114                          LIBS="$LIBS $ac_sdl_ldflags" 
    597512115                   else 
    5976                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5 
    5977 $as_echo "Unsupported SDL version" >&6; } 
     12116                        { echo "$as_me:$LINENO: result: Unsupported SDL version" >&5 
     12117echo "${ECHO_T}Unsupported SDL version" >&6; } 
    597812118                   fi 
    597912119 
     
    598312123 
    598412124# Check whether --enable-ffmpeg was given. 
    5985 if test "${enable_ffmpeg+set}" = set; then : 
     12125if test "${enable_ffmpeg+set}" = set; then 
    598612126  enableval=$enable_ffmpeg; 
    598712127                ac_has_ffmpeg=0 
    598812128 
    598912129                if test "$enable_ffmpeg" = "no"; then 
    5990                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5 
    5991 $as_echo "Checking if ffmpeg is disabled... yes" >&6; } 
     12130                        { echo "$as_me:$LINENO: result: Checking if ffmpeg is disabled... yes" >&5 
     12131echo "${ECHO_T}Checking if ffmpeg is disabled... yes" >&6; } 
    599212132                fi 
    599312133 
     
    599712137 
    599812138 
    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 
     12141echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; } 
     12142if test "${ac_cv_lib_z_deflate+set}" = set; then 
     12143  echo $ECHO_N "(cached) $ECHO_C" >&6 
    600312144else 
    600412145  ac_check_lib_save_LIBS=$LIBS 
    600512146LIBS="-lz  $LIBS" 
    6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     12147cat >conftest.$ac_ext <<_ACEOF 
     12148/* confdefs.h.  */ 
     12149_ACEOF 
     12150cat confdefs.h >>conftest.$ac_ext 
     12151cat >>conftest.$ac_ext <<_ACEOF 
    600712152/* end confdefs.h.  */ 
    600812153 
     
    602212167} 
    602312168_ACEOF 
    6024 if ac_fn_c_try_link "$LINENO"; then : 
     12169rm -f conftest.$ac_objext conftest$ac_exeext 
     12170if { (ac_try="$ac_link" 
     12171case "(($ac_try" in 
     12172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     12173  *) ac_try_echo=$ac_try;; 
     12174esac 
     12175eval "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 
    602512187  ac_cv_lib_z_deflate=yes 
    602612188else 
    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 
     12190sed 's/^/| /' conftest.$ac_ext >&5 
     12191 
     12192        ac_cv_lib_z_deflate=no 
     12193fi 
     12194 
     12195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     12196      conftest$ac_exeext conftest.$ac_ext 
    603112197LIBS=$ac_check_lib_save_LIBS 
    603212198fi 
    6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 
    6034 $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 
     12200echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; } 
     12201if test $ac_cv_lib_z_deflate = yes; then 
    603612202  cat >>confdefs.h <<_ACEOF 
    603712203#define HAVE_LIBZ 1 
     
    604612212                if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then 
    604712213                        FFMPEG_PREFIX=$with_ffmpeg 
    6048                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5 
    6049 $as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; } 
     12214                        { echo "$as_me:$LINENO: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5 
     12215echo "${ECHO_T}Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; } 
    605012216                        LIBS="-L$FFMPEG_PREFIX/lib $LIBS" 
    605112217                        LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS" 
     
    605312219                fi 
    605412220 
    6055                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5 
    6056 $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) " >&6 
     12221                { echo "$as_me:$LINENO: checking for avdevice_version in -lavdevice" >&5 
     12222echo $ECHO_N "checking for avdevice_version in -lavdevice... $ECHO_C" >&6; } 
     12223if test "${ac_cv_lib_avdevice_avdevice_version+set}" = set; then 
     12224  echo $ECHO_N "(cached) $ECHO_C" >&6 
    605912225else 
    606012226  ac_check_lib_save_LIBS=$LIBS 
    606112227LIBS="-lavdevice  $LIBS" 
    6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     12228cat >conftest.$ac_ext <<_ACEOF 
     12229/* confdefs.h.  */ 
     12230_ACEOF 
     12231cat confdefs.h >>conftest.$ac_ext 
     12232cat >>conftest.$ac_ext <<_ACEOF 
    606312233/* end confdefs.h.  */ 
    606412234 
     
    607812248} 
    607912249_ACEOF 
    6080 if ac_fn_c_try_link "$LINENO"; then : 
     12250rm -f conftest.$ac_objext conftest$ac_exeext 
     12251if { (ac_try="$ac_link" 
     12252case "(($ac_try" in 
     12253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     12254  *) ac_try_echo=$ac_try;; 
     12255esac 
     12256eval "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 
    608112268  ac_cv_lib_avdevice_avdevice_version=yes 
    608212269else 
    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 
     12271sed 's/^/| /' conftest.$ac_ext >&5 
     12272 
     12273        ac_cv_lib_avdevice_avdevice_version=no 
     12274fi 
     12275 
     12276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     12277      conftest$ac_exeext conftest.$ac_ext 
    608712278LIBS=$ac_check_lib_save_LIBS 
    608812279fi 
    6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5 
    6090 $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 
     12281echo "${ECHO_T}$ac_cv_lib_avdevice_avdevice_version" >&6; } 
     12282if test $ac_cv_lib_avdevice_avdevice_version = yes; then 
    609212283  ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1" 
    609312284                              ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice" 
     
    609612287fi 
    609712288 
    6098                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5 
    6099 $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) " >&6 
     12289                { echo "$as_me:$LINENO: checking for av_register_all in -lavformat" >&5 
     12290echo $ECHO_N "checking for av_register_all in -lavformat... $ECHO_C" >&6; } 
     12291if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then 
     12292  echo $ECHO_N "(cached) $ECHO_C" >&6 
    610212293else 
    610312294  ac_check_lib_save_LIBS=$LIBS 
    610412295LIBS="-lavformat -lavcodec -lavutil 
    610512296                              $LIBS" 
    6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     12297cat >conftest.$ac_ext <<_ACEOF 
     12298/* confdefs.h.  */ 
     12299_ACEOF 
     12300cat confdefs.h >>conftest.$ac_ext 
     12301cat >>conftest.$ac_ext <<_ACEOF 
    610712302/* end confdefs.h.  */ 
    610812303 
     
    612212317} 
    612312318_ACEOF 
    6124 if ac_fn_c_try_link "$LINENO"; then : 
     12319rm -f conftest.$ac_objext conftest$ac_exeext 
     12320if { (ac_try="$ac_link" 
     12321case "(($ac_try" in 
     12322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     12323  *) ac_try_echo=$ac_try;; 
     12324esac 
     12325eval "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 
    612512337  ac_cv_lib_avformat_av_register_all=yes 
    612612338else 
    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 
     12340sed 's/^/| /' conftest.$ac_ext >&5 
     12341 
     12342        ac_cv_lib_avformat_av_register_all=no 
     12343fi 
     12344 
     12345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     12346      conftest$ac_exeext conftest.$ac_ext 
    613112347LIBS=$ac_check_lib_save_LIBS 
    613212348fi 
    6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5 
    6134 $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 
     12350echo "${ECHO_T}$ac_cv_lib_avformat_av_register_all" >&6; } 
     12351if test $ac_cv_lib_avformat_av_register_all = yes; then 
    613612352  ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1" 
    613712353                              ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat" 
     
    613912355fi 
    614012356 
    6141                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5 
    6142 $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) " >&6 
     12357                { echo "$as_me:$LINENO: checking for avcodec_init in -lavcodec" >&5 
     12358echo $ECHO_N "checking for avcodec_init in -lavcodec... $ECHO_C" >&6; } 
     12359if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then 
     12360  echo $ECHO_N "(cached) $ECHO_C" >&6 
    614512361else 
    614612362  ac_check_lib_save_LIBS=$LIBS 
    614712363LIBS="-lavcodec -lavutil 
    614812364                              $LIBS" 
    6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     12365cat >conftest.$ac_ext <<_ACEOF 
     12366/* confdefs.h.  */ 
     12367_ACEOF 
     12368cat confdefs.h >>conftest.$ac_ext 
     12369cat >>conftest.$ac_ext <<_ACEOF 
    615012370/* end confdefs.h.  */ 
    615112371 
     
    616512385} 
    616612386_ACEOF 
    6167 if ac_fn_c_try_link "$LINENO"; then : 
     12387rm -f conftest.$ac_objext conftest$ac_exeext 
     12388if { (ac_try="$ac_link" 
     12389case "(($ac_try" in 
     12390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     12391  *) ac_try_echo=$ac_try;; 
     12392esac 
     12393eval "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 
    616812405  ac_cv_lib_avcodec_avcodec_init=yes 
    616912406else 
    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 
     12408sed 's/^/| /' conftest.$ac_ext >&5 
     12409 
     12410        ac_cv_lib_avcodec_avcodec_init=no 
     12411fi 
     12412 
     12413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     12414      conftest$ac_exeext conftest.$ac_ext 
    617412415LIBS=$ac_check_lib_save_LIBS 
    617512416fi 
    6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5 
    6177 $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 
     12418echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_init" >&6; } 
     12419if test $ac_cv_lib_avcodec_avcodec_init = yes; then 
    617912420  ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1" 
    618012421                              ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec" 
     
    618212423fi 
    618312424 
    6184                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5 
    6185 $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) " >&6 
     12425                { echo "$as_me:$LINENO: checking for sws_scale in -lswscale" >&5 
     12426echo $ECHO_N "checking for sws_scale in -lswscale... $ECHO_C" >&6; } 
     12427if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then 
     12428  echo $ECHO_N "(cached) $ECHO_C" >&6 
    618812429else 
    618912430  ac_check_lib_save_LIBS=$LIBS 
    619012431LIBS="-lswscale -lavutil 
    619112432                              $LIBS" 
    6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     12433cat >conftest.$ac_ext <<_ACEOF 
     12434/* confdefs.h.  */ 
     12435_ACEOF 
     12436cat confdefs.h >>conftest.$ac_ext 
     12437cat >>conftest.$ac_ext <<_ACEOF 
    619312438/* end confdefs.h.  */ 
    619412439 
     
    620812453} 
    620912454_ACEOF 
    6210 if ac_fn_c_try_link "$LINENO"; then : 
     12455rm -f conftest.$ac_objext conftest$ac_exeext 
     12456if { (ac_try="$ac_link" 
     12457case "(($ac_try" in 
     12458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     12459  *) ac_try_echo=$ac_try;; 
     12460esac 
     12461eval "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 
    621112473  ac_cv_lib_swscale_sws_scale=yes 
    621212474else 
    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 
     12476sed 's/^/| /' conftest.$ac_ext >&5 
     12477 
     12478        ac_cv_lib_swscale_sws_scale=no 
     12479fi 
     12480 
     12481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     12482      conftest$ac_exeext conftest.$ac_ext 
    621712483LIBS=$ac_check_lib_save_LIBS 
    621812484fi 
    6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5 
    6220 $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 
     12486echo "${ECHO_T}$ac_cv_lib_swscale_sws_scale" >&6; } 
     12487if test $ac_cv_lib_swscale_sws_scale = yes; then 
    622212488  ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1" 
    622312489                              ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale" 
     
    622512491fi 
    622612492 
    6227                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5 
    6228 $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) " >&6 
     12493                { echo "$as_me:$LINENO: checking for av_malloc in -lavutil" >&5 
     12494echo $ECHO_N "checking for av_malloc in -lavutil... $ECHO_C" >&6; } 
     12495if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then 
     12496  echo $ECHO_N "(cached) $ECHO_C" >&6 
    623112497else 
    623212498  ac_check_lib_save_LIBS=$LIBS 
    623312499LIBS="-lavutil  $LIBS" 
    6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     12500cat >conftest.$ac_ext <<_ACEOF 
     12501/* confdefs.h.  */ 
     12502_ACEOF 
     12503cat confdefs.h >>conftest.$ac_ext 
     12504cat >>conftest.$ac_ext <<_ACEOF 
    623512505/* end confdefs.h.  */ 
    623612506 
     
    625012520} 
    625112521_ACEOF 
    6252 if ac_fn_c_try_link "$LINENO"; then : 
     12522rm -f conftest.$ac_objext conftest$ac_exeext 
     12523if { (ac_try="$ac_link" 
     12524case "(($ac_try" in 
     12525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     12526  *) ac_try_echo=$ac_try;; 
     12527esac 
     12528eval "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 
    625312540  ac_cv_lib_avutil_av_malloc=yes 
    625412541else 
    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 
     12543sed 's/^/| /' conftest.$ac_ext >&5 
     12544 
     12545        ac_cv_lib_avutil_av_malloc=no 
     12546fi 
     12547 
     12548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     12549      conftest$ac_exeext conftest.$ac_ext 
    625912550LIBS=$ac_check_lib_save_LIBS 
    626012551fi 
    6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5 
    6262 $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 
     12553echo "${ECHO_T}$ac_cv_lib_avutil_av_malloc" >&6; } 
     12554if test $ac_cv_lib_avutil_av_malloc = yes; then 
    626412555  ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1" 
    626512556                              ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil" 
     
    626812559fi 
    626912560 
    6270                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5 
    6271 $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) " >&6 
     12561                { echo "$as_me:$LINENO: checking for avcore_version in -lavcore" >&5 
     12562echo $ECHO_N "checking for avcore_version in -lavcore... $ECHO_C" >&6; } 
     12563if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then 
     12564  echo $ECHO_N "(cached) $ECHO_C" >&6 
    627412565else 
    627512566  ac_check_lib_save_LIBS=$LIBS 
    627612567LIBS="-lavcore  $LIBS" 
    6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     12568cat >conftest.$ac_ext <<_ACEOF 
     12569/* confdefs.h.  */ 
     12570_ACEOF 
     12571cat confdefs.h >>conftest.$ac_ext 
     12572cat >>conftest.$ac_ext <<_ACEOF 
    627812573/* end confdefs.h.  */ 
    627912574 
     
    629312588} 
    629412589_ACEOF 
    6295 if ac_fn_c_try_link "$LINENO"; then : 
     12590rm -f conftest.$ac_objext conftest$ac_exeext 
     12591if { (ac_try="$ac_link" 
     12592case "(($ac_try" in 
     12593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     12594  *) ac_try_echo=$ac_try;; 
     12595esac 
     12596eval "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 
    629612608  ac_cv_lib_avcore_avcore_version=yes 
    629712609else 
    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 
     12611sed 's/^/| /' conftest.$ac_ext >&5 
     12612 
     12613        ac_cv_lib_avcore_avcore_version=no 
     12614fi 
     12615 
     12616rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     12617      conftest$ac_exeext conftest.$ac_ext 
    630212618LIBS=$ac_check_lib_save_LIBS 
    630312619fi 
    6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5 
    6305 $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 
     12621echo "${ECHO_T}$ac_cv_lib_avcore_avcore_version" >&6; } 
     12622if test $ac_cv_lib_avcore_avcore_version = yes; then 
    630712623  ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1" 
    630812624                              ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore" 
     
    631912635 
    632012636# Check whether --with-ffmpeg was given. 
    6321 if test "${with_ffmpeg+set}" = set; then : 
     12637if test "${with_ffmpeg+set}" = set; then 
    632212638  withval=$with_ffmpeg; 
    632312639else 
     
    632912645 
    633012646# Check whether --enable-v4l2 was given. 
    6331 if test "${enable_v4l2+set}" = set; then : 
     12647if test "${enable_v4l2+set}" = set; then 
    633212648  enableval=$enable_v4l2; 
    633312649                if test "$enable_v4l2" = "no"; then 
    6334                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5 
    6335 $as_echo "Checking if V4L2 is disabled... yes" >&6; } 
     12650                  { echo "$as_me:$LINENO: result: Checking if V4L2 is disabled... yes" >&5 
     12651echo "${ECHO_T}Checking if V4L2 is disabled... yes" >&6; } 
    633612652                fi 
    633712653 
     
    634012656 
    634112657 
    6342                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5 
    6343 $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) " >&6 
     12658                { echo "$as_me:$LINENO: checking for v4l2_open in -lv4l2" >&5 
     12659echo $ECHO_N "checking for v4l2_open in -lv4l2... $ECHO_C" >&6; } 
     12660if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then 
     12661  echo $ECHO_N "(cached) $ECHO_C" >&6 
    634612662else 
    634712663  ac_check_lib_save_LIBS=$LIBS 
    634812664LIBS="-lv4l2  $LIBS" 
    6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     12665cat >conftest.$ac_ext <<_ACEOF 
     12666/* confdefs.h.  */ 
     12667_ACEOF 
     12668cat confdefs.h >>conftest.$ac_ext 
     12669cat >>conftest.$ac_ext <<_ACEOF 
    635012670/* end confdefs.h.  */ 
    635112671 
     
    636512685} 
    636612686_ACEOF 
    6367 if ac_fn_c_try_link "$LINENO"; then : 
     12687rm -f conftest.$ac_objext conftest$ac_exeext 
     12688if { (ac_try="$ac_link" 
     12689case "(($ac_try" in 
     12690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     12691  *) ac_try_echo=$ac_try;; 
     12692esac 
     12693eval "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 
    636812705  ac_cv_lib_v4l2_v4l2_open=yes 
    636912706else 
    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 
     12708sed 's/^/| /' conftest.$ac_ext >&5 
     12709 
     12710        ac_cv_lib_v4l2_v4l2_open=no 
     12711fi 
     12712 
     12713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     12714      conftest$ac_exeext conftest.$ac_ext 
    637412715LIBS=$ac_check_lib_save_LIBS 
    637512716fi 
    6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5 
    6377 $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 
     12718echo "${ECHO_T}$ac_cv_lib_v4l2_v4l2_open" >&6; } 
     12719if test $ac_cv_lib_v4l2_v4l2_open = yes; then 
    637912720  ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1" 
    638012721                              ac_v4l2_ldflags="-lv4l2" 
     
    638912730 
    639012731# Check whether --enable-ipp was given. 
    6391 if test "${enable_ipp+set}" = set; then : 
     12732if test "${enable_ipp+set}" = set; then 
    639212733  enableval=$enable_ipp; 
    639312734else 
     
    639912740 
    640012741# Check whether --with-ipp was given. 
    6401 if test "${with_ipp+set}" = set; then : 
     12742if test "${with_ipp+set}" = set; then 
    640212743  withval=$with_ipp; 
    640312744else 
     
    640912750 
    641012751# Check whether --with-ipp-samples was given. 
    6411 if test "${with_ipp_samples+set}" = set; then : 
     12752if test "${with_ipp_samples+set}" = set; then 
    641212753  withval=$with_ipp_samples; 
    641312754else 
     
    641912760 
    642012761# Check whether --with-ipp-arch was given. 
    6421 if test "${with_ipp_arch+set}" = set; then : 
     12762if test "${with_ipp_arch+set}" = set; then 
    642212763  withval=$with_ipp_arch; 
    642312764else 
     
    642812769 
    642912770if test "x$enable_ipp" != "xno"; then 
    6430                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5 
    6431 $as_echo_n "checking Intel IPP location... " >&6; } 
     12771                { echo "$as_me:$LINENO: checking Intel IPP location" >&5 
     12772echo $ECHO_N "checking Intel IPP location... $ECHO_C" >&6; } 
    643212773 
    643312774    if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then 
    6434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5 
    6435 $as_echo "$with_ipp" >&6; } 
     12775        { echo "$as_me:$LINENO: result: $with_ipp" >&5 
     12776echo "${ECHO_T}$with_ipp" >&6; } 
    643612777        IPPROOT=$with_ipp 
    643712778    elif test "x$IPPROOT" = "x"; then 
    643812779        if test -d /opt/intel/ipp; then 
    643912780            IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1` 
    6440             { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5 
    6441 $as_echo "autodetected in $IPPROOT" >&6; } 
     12781            { echo "$as_me:$LINENO: result: autodetected in $IPPROOT" >&5 
     12782echo "${ECHO_T}autodetected in $IPPROOT" >&6; } 
    644212783        fi 
    644312784    else 
    6444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5 
    6445 $as_echo "$IPPROOT" >&6; } 
     12785        { echo "$as_me:$LINENO: result: $IPPROOT" >&5 
     12786echo "${ECHO_T}$IPPROOT" >&6; } 
    644612787    fi 
    644712788 
    644812789    if test "x$with_ipp_arch" != "xno"; then 
    644912790        IPP_SUFFIX=$with_ipp_arch 
    6450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5 
    6451 $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 
     12792echo "${ECHO_T}IPP arch suffix is set to $IPP_SUFFIX" >&6; } 
    645212793    else 
    645312794        IPP_SUFFIX="" 
    6454         { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5 
    6455 $as_echo "IPP arch suffix is set to empty" >&6; } 
     12795        { echo "$as_me:$LINENO: result: IPP arch suffix is set to empty" >&5 
     12796echo "${ECHO_T}IPP arch suffix is set to empty" >&6; } 
    645612797    fi 
    645712798 
    645812799    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 
     12801echo "$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; }; } 
    646012803    elif test ! -d $IPPROOT; then 
    6461         as_fn_error "not found" "$LINENO" 5 
     12804        { { echo "$as_me:$LINENO: error: not found" >&5 
     12805echo "$as_me: error: not found" >&2;} 
     12806   { (exit 1); exit 1; }; } 
    646212807    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 
     12809echo "$as_me: error: directory doesn't seem to be valid" >&2;} 
     12810   { (exit 1); exit 1; }; } 
    646412811    else 
    646512812        # IPP directory looks okay. 
     
    649812845                   # IPP7 
    649912846                   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 
     12848echo "$as_me: error: Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" >&2;} 
     12849   { (exit 1); exit 1; }; } 
    650112850                   fi 
    650212851                   IPP_CFLAGS="$IPP_CFLAGS" 
     
    651612865 
    651712866 
    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 
     12868echo $ECHO_N "checking Intel IPP usability... $ECHO_C" >&6; } 
     12869        cat >conftest.$ac_ext <<_ACEOF 
     12870/* confdefs.h.  */ 
     12871_ACEOF 
     12872cat confdefs.h >>conftest.$ac_ext 
     12873cat >>conftest.$ac_ext <<_ACEOF 
    652112874/* end confdefs.h.  */ 
    652212875#include <ippcore.h> 
     
    653012883} 
    653112884_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 
     12885rm -f conftest.$ac_objext conftest$ac_exeext 
     12886if { (ac_try="$ac_link" 
     12887case "(($ac_try" in 
     12888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     12889  *) ac_try_echo=$ac_try;; 
     12890esac 
     12891eval "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 
     12904echo "${ECHO_T}ok" >&6; } 
     12905else 
     12906  echo "$as_me: failed program was:" >&5 
     12907sed '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 
     12910See \`config.log' for more details." >&5 
     12911echo "$as_me: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly 
     12912See \`config.log' for more details." >&2;} 
     12913   { (exit run with --help for more info); exit run with --help for more info; }; } 
     12914fi 
     12915 
     12916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     12917      conftest$ac_exeext conftest.$ac_ext 
    654412918 
    654512919        CFLAGS="$SAVED_CFLAGS" 
     
    654812922    fi 
    654912923 
    6550                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5 
    6551 $as_echo_n "checking Intel IPP samples location... " >&6; } 
     12924                { echo "$as_me:$LINENO: checking Intel IPP samples location" >&5 
     12925echo $ECHO_N "checking Intel IPP samples location... $ECHO_C" >&6; } 
    655212926 
    655312927    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" >&5 
    6555 $as_echo "$with_ipp_samples" >&6; } 
     12928        { echo "$as_me:$LINENO: result: $with_ipp_samples" >&5 
     12929echo "${ECHO_T}$with_ipp_samples" >&6; } 
    655612930        IPPSAMPLES=$with_ipp_samples 
    655712931    elif test "x$IPPSAMPLES" = "x"; then 
    655812932        if test -d /opt/intel/ipp-samples; then 
    655912933            IPPSAMPLES=/opt/intel/ipp-samples 
    6560             { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5 
    6561 $as_echo "autodetected in $IPPSAMPLES" >&6; } 
     12934            { echo "$as_me:$LINENO: result: autodetected in $IPPSAMPLES" >&5 
     12935echo "${ECHO_T}autodetected in $IPPSAMPLES" >&6; } 
    656212936        fi 
    656312937    else 
    6564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5 
    6565 $as_echo "$IPPSAMPLES" >&6; } 
     12938        { echo "$as_me:$LINENO: result: $IPPSAMPLES" >&5 
     12939echo "${ECHO_T}$IPPSAMPLES" >&6; } 
    656612940    fi 
    656712941 
    656812942    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 
     12944echo "$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; }; } 
    657012946    elif test ! -d $IPPSAMPLES; then 
    6571         as_fn_error "not found" "$LINENO" 5 
     12947        { { echo "$as_me:$LINENO: error: not found" >&5 
     12948echo "$as_me: error: not found" >&2;} 
     12949   { (exit 1); exit 1; }; } 
    657212950    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 
     12952echo "$as_me: error: directory doesn't seem to be valid" >&2;} 
     12953   { (exit 1); exit 1; }; } 
    657412954    else 
    657512955        # Remove trailing backslash 
     
    657712957 
    657812958        # Guess the libusc.a/libspeech.a build location 
    6579         { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5 
    6580 $as_echo_n "checking Intel IPP USC build location... " >&6; } 
     12959        { echo "$as_me:$LINENO: checking Intel IPP USC build location" >&5 
     12960echo $ECHO_N "checking Intel IPP USC build location... $ECHO_C" >&6; } 
    658112961        if test -d $IPPSAMPLES/speech-codecs/bin; then 
    658212962            IPPVER=5 
     
    659112971                IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1` 
    659212972            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? 
     12974See \`config.log' for more details." >&5 
     12975echo "$as_me: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? 
     12976See \`config.log' for more details." >&2;} 
     12977   { (exit 1); exit 1; }; } 
    659712978            fi 
    659812979        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? 
     12981See \`config.log' for more details." >&5 
     12982echo "$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? 
     12983See \`config.log' for more details." >&2;} 
     12984   { (exit 1); exit 1; }; } 
    660312985        fi 
    660412986 
    660512987        # Test the directory 
    660612988        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 
     12990See \`config.log' for more details." >&5 
     12991echo "$as_me: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist 
     12992See \`config.log' for more details." >&2;} 
     12993   { (exit 1); exit 1; }; } 
    661112994            exit 1; 
    661212995        fi 
     
    661913002            IPPSAMP_LDLIBS="-lspeech" 
    662013003        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 
     13005See \`config.log' for more details." >&5 
     13006echo "$as_me: error: bug in this script: unsupported IPP version 
     13007See \`config.log' for more details." >&2;} 
     13008   { (exit 1); exit 1; }; } 
    662513009        fi 
    662613010 
    662713011        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 
     13013See \`config.log' for more details." >&5 
     13014echo "$as_me: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR 
     13015See \`config.log' for more details." >&2;} 
     13016   { (exit 1); exit 1; }; } 
    663213017        fi 
    663313018 
    6634         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5 
    6635 $as_echo "$IPPSAMP_DIR" >&6; } 
     13019        { echo "$as_me:$LINENO: result: $IPPSAMP_DIR" >&5 
     13020echo "${ECHO_T}$IPPSAMP_DIR" >&6; } 
    663613021 
    663713022        SAVED_CFLAGS="$CFLAGS" 
     
    664413029        LIBS="$IPPSAMP_LDLIBS $LIBS" 
    664513030 
    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 
     13032echo $ECHO_N "checking Intel IPP USC usability... $ECHO_C" >&6; } 
     13033        cat >conftest.$ac_ext <<_ACEOF 
     13034/* confdefs.h.  */ 
     13035_ACEOF 
     13036cat confdefs.h >>conftest.$ac_ext 
     13037cat >>conftest.$ac_ext <<_ACEOF 
    664913038/* end confdefs.h.  */ 
    665013039#include <usc.h> 
     
    665813047} 
    665913048_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 
     13049rm -f conftest.$ac_objext conftest$ac_exeext 
     13050if { (ac_try="$ac_link" 
     13051case "(($ac_try" in 
     13052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     13053  *) ac_try_echo=$ac_try;; 
     13054esac 
     13055eval "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 
     13068echo "${ECHO_T}ok" >&6; } 
     13069else 
     13070  echo "$as_me: failed program was:" >&5 
     13071sed 's/^/| /' conftest.$ac_ext >&5 
     13072 
     13073        { { echo "$as_me:$LINENO: error: failed 
     13074See \`config.log' for more details." >&5 
     13075echo "$as_me: error: failed 
     13076See \`config.log' for more details." >&2;} 
     13077   { (exit 1); exit 1; }; } 
     13078fi 
     13079 
     13080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     13081      conftest$ac_exeext conftest.$ac_ext 
    667113082 
    667213083        CFLAGS="$SAVED_CFLAGS" 
     
    668813099export IPP_LIBS=$IPP_LIBS" 
    668913100else 
    6690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5 
    6691 $as_echo "Skipping Intel IPP settings (not wanted)" >&6; } 
     13101    { echo "$as_me:$LINENO: result: Skipping Intel IPP settings (not wanted)" >&5 
     13102echo "${ECHO_T}Skipping Intel IPP settings (not wanted)" >&6; } 
    669213103fi 
    669313104 
     
    669613107 
    669713108# Check whether --enable-ssl was given. 
    6698 if test "${enable_ssl+set}" = set; then : 
     13109if test "${enable_ssl+set}" = set; then 
    669913110  enableval=$enable_ssl; 
    670013111                if test "$enable_ssl" = "no"; then 
    670113112                 ac_no_ssl=1 
    6702                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5 
    6703 $as_echo "Checking if SSL support is disabled... yes" >&6; } 
     13113                 { echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5 
     13114echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6; } 
    670413115                fi 
    670513116 
    670613117else 
    670713118 
    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 
     13120echo "${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 
     13126echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } 
     13127if test "${ac_cv_header_openssl_ssl_h+set}" = set; then 
     13128  echo $ECHO_N "(cached) $ECHO_C" >&6 
     13129fi 
     13130{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 
     13131echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } 
     13132else 
     13133  # Is the header compilable? 
     13134{ echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 
     13135echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; } 
     13136cat >conftest.$ac_ext <<_ACEOF 
     13137/* confdefs.h.  */ 
     13138_ACEOF 
     13139cat confdefs.h >>conftest.$ac_ext 
     13140cat >>conftest.$ac_ext <<_ACEOF 
     13141/* end confdefs.h.  */ 
     13142$ac_includes_default 
     13143#include <openssl/ssl.h> 
     13144_ACEOF 
     13145rm -f conftest.$ac_objext 
     13146if { (ac_try="$ac_compile" 
     13147case "(($ac_try" in 
     13148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     13149  *) ac_try_echo=$ac_try;; 
     13150esac 
     13151eval "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 
     13163else 
     13164  echo "$as_me: failed program was:" >&5 
     13165sed 's/^/| /' conftest.$ac_ext >&5 
     13166 
     13167        ac_header_compiler=no 
     13168fi 
     13169 
     13170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     13171{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     13172echo "${ECHO_T}$ac_header_compiler" >&6; } 
     13173 
     13174# Is the header present? 
     13175{ echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 
     13176echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; } 
     13177cat >conftest.$ac_ext <<_ACEOF 
     13178/* confdefs.h.  */ 
     13179_ACEOF 
     13180cat confdefs.h >>conftest.$ac_ext 
     13181cat >>conftest.$ac_ext <<_ACEOF 
     13182/* end confdefs.h.  */ 
     13183#include <openssl/ssl.h> 
     13184_ACEOF 
     13185if { (ac_try="$ac_cpp conftest.$ac_ext" 
     13186case "(($ac_try" in 
     13187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     13188  *) ac_try_echo=$ac_try;; 
     13189esac 
     13190eval "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 
     13202else 
     13203  echo "$as_me: failed program was:" >&5 
     13204sed 's/^/| /' conftest.$ac_ext >&5 
     13205 
     13206  ac_header_preproc=no 
     13207fi 
     13208 
     13209rm -f conftest.err conftest.$ac_ext 
     13210{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     13211echo "${ECHO_T}$ac_header_preproc" >&6; } 
     13212 
     13213# So?  What about this header? 
     13214case $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 
     13217echo "$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 
     13219echo "$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 
     13224echo "$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 
     13226echo "$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 
     13228echo "$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 
     13230echo "$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 
     13232echo "$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 
     13234echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} 
     13235 
     13236    ;; 
     13237esac 
     13238{ echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 
     13239echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; } 
     13240if test "${ac_cv_header_openssl_ssl_h+set}" = set; then 
     13241  echo $ECHO_N "(cached) $ECHO_C" >&6 
     13242else 
     13243  ac_cv_header_openssl_ssl_h=$ac_header_preproc 
     13244fi 
     13245{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 
     13246echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; } 
     13247 
     13248fi 
     13249if test $ac_cv_header_openssl_ssl_h = yes; then 
    671513250  openssl_h_present=1 
    671613251fi 
    671713252 
    671813253 
    6719                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5 
    6720 $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) " >&6 
     13254                { echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5 
     13255echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6; } 
     13256if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then 
     13257  echo $ECHO_N "(cached) $ECHO_C" >&6 
    672313258else 
    672413259  ac_check_lib_save_LIBS=$LIBS 
    672513260LIBS="-lcrypto  $LIBS" 
    6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     13261cat >conftest.$ac_ext <<_ACEOF 
     13262/* confdefs.h.  */ 
     13263_ACEOF 
     13264cat confdefs.h >>conftest.$ac_ext 
     13265cat >>conftest.$ac_ext <<_ACEOF 
    672713266/* end confdefs.h.  */ 
    672813267 
     
    674213281} 
    674313282_ACEOF 
    6744 if ac_fn_c_try_link "$LINENO"; then : 
     13283rm -f conftest.$ac_objext conftest$ac_exeext 
     13284if { (ac_try="$ac_link" 
     13285case "(($ac_try" in 
     13286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     13287  *) ac_try_echo=$ac_try;; 
     13288esac 
     13289eval "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 
    674513301  ac_cv_lib_crypto_ERR_load_BIO_strings=yes 
    674613302else 
    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 
     13304sed 's/^/| /' conftest.$ac_ext >&5 
     13305 
     13306        ac_cv_lib_crypto_ERR_load_BIO_strings=no 
     13307fi 
     13308 
     13309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     13310      conftest$ac_exeext conftest.$ac_ext 
    675113311LIBS=$ac_check_lib_save_LIBS 
    675213312fi 
    6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 
    6754 $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 
     13314echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; } 
     13315if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then 
    675613316  libcrypto_present=1 && LIBS="$LIBS -lcrypto" 
    675713317fi 
    675813318 
    6759                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 
    6760 $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) " >&6 
     13319                { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 
     13320echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; } 
     13321if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then 
     13322  echo $ECHO_N "(cached) $ECHO_C" >&6 
    676313323else 
    676413324  ac_check_lib_save_LIBS=$LIBS 
    676513325LIBS="-lssl  $LIBS" 
    6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     13326cat >conftest.$ac_ext <<_ACEOF 
     13327/* confdefs.h.  */ 
     13328_ACEOF 
     13329cat confdefs.h >>conftest.$ac_ext 
     13330cat >>conftest.$ac_ext <<_ACEOF 
    676713331/* end confdefs.h.  */ 
    676813332 
     
    678213346} 
    678313347_ACEOF 
    6784 if ac_fn_c_try_link "$LINENO"; then : 
     13348rm -f conftest.$ac_objext conftest$ac_exeext 
     13349if { (ac_try="$ac_link" 
     13350case "(($ac_try" in 
     13351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     13352  *) ac_try_echo=$ac_try;; 
     13353esac 
     13354eval "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 
    678513366  ac_cv_lib_ssl_SSL_library_init=yes 
    678613367else 
    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 
     13369sed 's/^/| /' conftest.$ac_ext >&5 
     13370 
     13371        ac_cv_lib_ssl_SSL_library_init=no 
     13372fi 
     13373 
     13374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     13375      conftest$ac_exeext conftest.$ac_ext 
    679113376LIBS=$ac_check_lib_save_LIBS 
    679213377fi 
    6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 
    6794 $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 
     13379echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; } 
     13380if test $ac_cv_lib_ssl_SSL_library_init = yes; then 
    679613381  libssl_present=1 && LIBS="$LIBS -lssl" 
    679713382fi 
    679813383 
    679913384                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" >&5 
    6801 $as_echo "OpenSSL library found, SSL support enabled" >&6; } 
     13385                        { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5 
     13386echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; } 
    680213387                        # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK 
    680313388                        #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 
    680513392 
    680613393                else 
    6807                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 
    6808 $as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; } 
     13394                        { echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 
     13395echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6; } 
    680913396                fi 
    681013397 
     
    681313400 
    681413401 
    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. 
     13403if 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 
     13412echo "${ECHO_T}Checking if OpenCORE AMR-NB support is disabled... yes" >&6; } 
     13413                fi 
     13414 
     13415else 
     13416 
     13417                { echo "$as_me:$LINENO: result: checking for OpenCORE AMR-NB installations.." >&5 
     13418echo "${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 
     13423echo $ECHO_N "checking for opencore-amrnb/interf_enc.h... $ECHO_C" >&6; } 
     13424if test "${ac_cv_header_opencore_amrnb_interf_enc_h+set}" = set; then 
     13425  echo $ECHO_N "(cached) $ECHO_C" >&6 
     13426fi 
     13427{ echo "$as_me:$LINENO: result: $ac_cv_header_opencore_amrnb_interf_enc_h" >&5 
     13428echo "${ECHO_T}$ac_cv_header_opencore_amrnb_interf_enc_h" >&6; } 
     13429else 
     13430  # Is the header compilable? 
     13431{ echo "$as_me:$LINENO: checking opencore-amrnb/interf_enc.h usability" >&5 
     13432echo $ECHO_N "checking opencore-amrnb/interf_enc.h usability... $ECHO_C" >&6; } 
     13433cat >conftest.$ac_ext <<_ACEOF 
     13434/* confdefs.h.  */ 
     13435_ACEOF 
     13436cat confdefs.h >>conftest.$ac_ext 
     13437cat >>conftest.$ac_ext <<_ACEOF 
     13438/* end confdefs.h.  */ 
     13439$ac_includes_default 
     13440#include <opencore-amrnb/interf_enc.h> 
     13441_ACEOF 
     13442rm -f conftest.$ac_objext 
     13443if { (ac_try="$ac_compile" 
     13444case "(($ac_try" in 
     13445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     13446  *) ac_try_echo=$ac_try;; 
     13447esac 
     13448eval "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 
     13460else 
     13461  echo "$as_me: failed program was:" >&5 
     13462sed 's/^/| /' conftest.$ac_ext >&5 
     13463 
     13464        ac_header_compiler=no 
     13465fi 
     13466 
     13467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     13468{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 
     13469echo "${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 
     13473echo $ECHO_N "checking opencore-amrnb/interf_enc.h presence... $ECHO_C" >&6; } 
     13474cat >conftest.$ac_ext <<_ACEOF 
     13475/* confdefs.h.  */ 
     13476_ACEOF 
     13477cat confdefs.h >>conftest.$ac_ext 
     13478cat >>conftest.$ac_ext <<_ACEOF 
     13479/* end confdefs.h.  */ 
     13480#include <opencore-amrnb/interf_enc.h> 
     13481_ACEOF 
     13482if { (ac_try="$ac_cpp conftest.$ac_ext" 
     13483case "(($ac_try" in 
     13484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     13485  *) ac_try_echo=$ac_try;; 
     13486esac 
     13487eval "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 
     13499else 
     13500  echo "$as_me: failed program was:" >&5 
     13501sed 's/^/| /' conftest.$ac_ext >&5 
     13502 
     13503  ac_header_preproc=no 
     13504fi 
     13505 
     13506rm -f conftest.err conftest.$ac_ext 
     13507{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 
     13508echo "${ECHO_T}$ac_header_preproc" >&6; } 
     13509 
     13510# So?  What about this header? 
     13511case $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 
     13514echo "$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 
     13516echo "$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 
     13521echo "$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 
     13523echo "$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 
     13525echo "$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 
     13527echo "$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 
     13529echo "$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 
     13531echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: in the future, the compiler will take precedence" >&2;} 
     13532 
     13533    ;; 
     13534esac 
     13535{ echo "$as_me:$LINENO: checking for opencore-amrnb/interf_enc.h" >&5 
     13536echo $ECHO_N "checking for opencore-amrnb/interf_enc.h... $ECHO_C" >&6; } 
     13537if test "${ac_cv_header_opencore_amrnb_interf_enc_h+set}" = set; then 
     13538  echo $ECHO_N "(cached) $ECHO_C" >&6 
     13539else 
     13540  ac_cv_header_opencore_amrnb_interf_enc_h=$ac_header_preproc 
     13541fi 
     13542{ echo "$as_me:$LINENO: result: $ac_cv_header_opencore_amrnb_interf_enc_h" >&5 
     13543echo "${ECHO_T}$ac_cv_header_opencore_amrnb_interf_enc_h" >&6; } 
     13544 
     13545fi 
     13546if test $ac_cv_header_opencore_amrnb_interf_enc_h = yes; then 
     13547  opencore_amrnb_h_present=1 
     13548fi 
     13549 
     13550 
     13551                { echo "$as_me:$LINENO: checking for Encoder_Interface_init in -lopencore-amrnb" >&5 
     13552echo $ECHO_N "checking for Encoder_Interface_init in -lopencore-amrnb... $ECHO_C" >&6; } 
     13553if test "${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+set}" = set; then 
     13554  echo $ECHO_N "(cached) $ECHO_C" >&6 
     13555else 
     13556  ac_check_lib_save_LIBS=$LIBS 
     13557LIBS="-lopencore-amrnb  $LIBS" 
     13558cat >conftest.$ac_ext <<_ACEOF 
     13559/* confdefs.h.  */ 
     13560_ACEOF 
     13561cat confdefs.h >>conftest.$ac_ext 
     13562cat >>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 
     13569extern "C" 
     13570#endif 
     13571char Encoder_Interface_init (); 
     13572int 
     13573main () 
     13574{ 
     13575return Encoder_Interface_init (); 
     13576  ; 
     13577  return 0; 
     13578} 
     13579_ACEOF 
     13580rm -f conftest.$ac_objext conftest$ac_exeext 
     13581if { (ac_try="$ac_link" 
     13582case "(($ac_try" in 
     13583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     13584  *) ac_try_echo=$ac_try;; 
     13585esac 
     13586eval "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 
     13599else 
     13600  echo "$as_me: failed program was:" >&5 
     13601sed 's/^/| /' conftest.$ac_ext >&5 
     13602 
     13603        ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no 
     13604fi 
     13605 
     13606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     13607      conftest$ac_exeext conftest.$ac_ext 
     13608LIBS=$ac_check_lib_save_LIBS 
     13609fi 
     13610{ echo "$as_me:$LINENO: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5 
     13611echo "${ECHO_T}$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; } 
     13612if test $ac_cv_lib_opencore_amrnb_Encoder_Interface_init = yes; then 
     13613  opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb" 
     13614fi 
     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 
     13618echo "${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 
     13631fi 
     13632 
     13633 
     13634 
     13635 
     13636 
     13637{ echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5 
     13638echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6; } 
    681913639case $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 
     13645echo "${ECHO_T}yes" >&6; } 
    682413646        ;; 
    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 
     13652echo "${ECHO_T}no (default)" >&6; } 
     13653     { echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 
     13654echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6; } 
    683113655        ;; 
    683213656esac 
    683313657 
    6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5 
    6835 $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 
     13659echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6; } 
    683613660case $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 
     13666echo "${ECHO_T}yes" >&6; } 
    684113667        ;; 
    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 
     13673echo "${ECHO_T}no (default)" >&6; } 
    684613674        ;; 
    684713675esac 
    684813676 
    6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5 
    6850 $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 
     13678echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6; } 
    685113679case $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 
     13685echo "${ECHO_T}yes" >&6; } 
    685613686        ;; 
    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 
     13692echo "${ECHO_T}no (default)" >&6; } 
    686113693        ;; 
    686213694esac 
     
    686413696case $target in 
    686513697  *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 
    686713701 
    686813702        ;; 
    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 
     13708echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; } 
    687313709        ;; 
    687413710esac 
     
    687613712case $target in 
    687713713  *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 
    687913717 
    688013718        ;; 
    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 
     13724echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; } 
    688513725        ;; 
    688613726esac 
     
    693713777    *${as_nl}*) 
    693813778      case $ac_var in #( 
    6939       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 
    6940 $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 
     13780echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 
    694113781      esac 
    694213782      case $ac_var in #( 
    694313783      _ | IFS | as_nl) ;; #( 
    6944       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 
    6945       *) { eval $ac_var=; unset $ac_var;} ;; 
     13784      *) $as_unset $ac_var ;; 
    694613785      esac ;; 
    694713786    esac 
     
    695113790    case $as_nl`(ac_space=' '; set) 2>&1` in #( 
    695213791    *${as_nl}ac_space=\ *) 
    6953       # `set' does not quote correctly, so add quotes: double-quote 
    6954       # 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 \). 
    695513794      sed -n \ 
    695613795        "s/'/'\\\\''/g; 
     
    697513814  if test -w "$cache_file"; then 
    697613815    test "x$cache_file" != "x/dev/null" && 
    6977       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 
    6978 $as_echo "$as_me: updating cache $cache_file" >&6;} 
     13816      { echo "$as_me:$LINENO: updating cache $cache_file" >&5 
     13817echo "$as_me: updating cache $cache_file" >&6;} 
    697913818    cat confcache >$cache_file 
    698013819  else 
    6981     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 
    6982 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 
     13820    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 
     13821echo "$as_me: not updating unwritable cache $cache_file" >&6;} 
    698313822  fi 
    698413823fi 
     
    699613835  # 1. Remove the extension, and $U if already installed. 
    699713836  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"` 
    699913838  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR 
    700013839  #    will be set to the directory where LIBOBJS objects are built. 
    7001   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 
    7002   as_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' 
    700313842done 
    700413843LIBOBJS=$ac_libobjs 
     
    700813847 
    700913848 
    7010  
    701113849: ${CONFIG_STATUS=./config.status} 
    7012 ac_write_fail=0 
    701313850ac_clean_files_save=$ac_clean_files 
    701413851ac_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 
     13853echo "$as_me: creating $CONFIG_STATUS" >&6;} 
     13854cat >$CONFIG_STATUS <<_ACEOF 
    701913855#! $SHELL 
    702013856# Generated by $as_me. 
     
    702613862ac_cs_recheck=false 
    702713863ac_cs_silent=false 
    7028  
    702913864SHELL=\${CONFIG_SHELL-$SHELL} 
    7030 export SHELL 
    7031 _ASEOF 
    7032 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 
    7033 ## -------------------- ## 
    7034 ## M4sh Initialization. ## 
    7035 ## -------------------- ## 
     13865_ACEOF 
     13866 
     13867cat >>$CONFIG_STATUS <<\_ACEOF 
     13868## --------------------- ## 
     13869## M4sh Initialization.  ## 
     13870## --------------------- ## 
    703613871 
    703713872# Be more Bourne compatible 
    703813873DUALCASE=1; export DUALCASE # for MKS sh 
    7039 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 
     13874if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 
    704013875  emulate sh 
    704113876  NULLCMD=: 
    7042   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 
     13877  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 
    704313878  # is contrary to our usage.  Disable this feature. 
    704413879  alias -g '${1+"$@"}'='"$@"' 
    704513880  setopt NO_GLOB_SUBST 
    704613881else 
    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 ;; 
     13884esac 
     13885 
     13886fi 
     13887 
     13888 
     13889 
     13890 
     13891# PATH needs CR 
     13892# Avoid depending upon Character Ranges. 
     13893as_cr_letters='abcdefghijklmnopqrstuvwxyz' 
     13894as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 
     13895as_cr_Letters=$as_cr_letters$as_cr_LETTERS 
     13896as_cr_digits='0123456789' 
     13897as_cr_alnum=$as_cr_Letters$as_cr_digits 
    709313898 
    709413899# The user is always right. 
    709513900if 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 
     13910fi 
     13911 
     13912# Support unset when possible. 
     13913if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 
     13914  as_unset=unset 
     13915else 
     13916  as_unset=false 
    710113917fi 
    710213918 
     
    710713923# (If _AS_PATH_WALK were called with IFS unset, it would disable word 
    710813924# splitting by setting IFS to empty value.) 
     13925as_nl=' 
     13926' 
    710913927IFS=" ""        $as_nl" 
    711013928 
    711113929# Find who we are.  Look in the path if we contain no directory separator. 
    7112 case $0 in #(( 
     13930case $0 in 
    711313931  *[\\/]* ) as_myself=$0 ;; 
    711413932  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 
     
    711713935  IFS=$as_save_IFS 
    711813936  test -z "$as_dir" && as_dir=. 
    7119     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 
    7120   done 
     13937  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 
     13938done 
    712113939IFS=$as_save_IFS 
    712213940 
     
    712913947fi 
    713013948if 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; } 
     13951fi 
     13952 
     13953# Work around bugs in pre-3.0 UWIN ksh. 
     13954for as_var in ENV MAIL MAILPATH 
     13955do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 
    714213956done 
    714313957PS1='$ ' 
     
    714613960 
    714713961# 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 
     13962for 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 
     13966do 
     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 
    716813971  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  
     13972done 
     13973 
     13974# Required to use basename. 
    723613975if expr a : '\(a\)' >/dev/null 2>&1 && 
    723713976   test "X`expr 00001 : '.*\(...\)'`" = X001; then 
     
    724713986fi 
    724813987 
    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. 
    725513990as_me=`$as_basename -- "$0" || 
    725613991$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 
    725713992         X"$0" : 'X\(//\)$' \| \ 
    725813993         X"$0" : 'X\(/\)' \| . 2>/dev/null || 
    7259 $as_echo X/"$0" | 
     13994echo X/"$0" | 
    726013995    sed '/^.*\/\([^/][^/]*\)\/*$/{ 
    726113996            s//\1/ 
     
    727214007          s/.*/./; q'` 
    727314008 
    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 
     14057if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 
     14058  as_dirname=dirname 
     14059else 
     14060  as_dirname=false 
     14061fi 
    728014062 
    728114063ECHO_C= ECHO_N= ECHO_T= 
    7282 case `echo -n x` in #((((( 
     14064case `echo -n x` in 
    728314065-n*) 
    7284   case `echo 'xy\c'` in 
     14066  case `echo 'x\c'` in 
    728514067  *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';; 
    728914069  esac;; 
    729014070*) 
     
    729214072esac 
    729314073 
     14074if expr a : '\(a\)' >/dev/null 2>&1 && 
     14075   test "X`expr 00001 : '.*\(...\)'`" = X001; then 
     14076  as_expr=expr 
     14077else 
     14078  as_expr=false 
     14079fi 
     14080 
    729414081rm -f conf$$ conf$$.exe conf$$.file 
    729514082if test -d conf$$.dir; then 
     
    729714084else 
    729814085  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 
     14087fi 
     14088echo >conf$$.file 
     14089if 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 || 
    731314096    as_ln_s='cp -p' 
    7314   fi 
     14097elif ln conf$$.file conf$$ 2>/dev/null; then 
     14098  as_ln_s=ln 
    731514099else 
    731614100  as_ln_s='cp -p' 
     
    731914103rmdir conf$$.dir 2>/dev/null 
    732014104 
    7321  
    7322 # as_fn_mkdir_p 
    7323 # ------------- 
    7324 # Create "$as_dir" as a directory, including parents if necessary. 
    7325 as_fn_mkdir_p () 
     14105if mkdir -p . 2>/dev/null; then 
     14106  as_mkdir_p=: 
     14107else 
     14108  test -d ./-p && rmdir ./-p 
     14109  as_mkdir_p=false 
     14110fi 
     14111 
     14112if test -x / >/dev/null 2>&1; then 
     14113  as_test_x='test -x' 
     14114else 
     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  ' 
     14132fi 
     14133as_executable_p=$as_test_x 
     14134 
     14135# Sed expression to map a string onto a valid CPP name. 
     14136as_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. 
     14139as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 
     14140 
     14141 
     14142exec 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. 
     14147ac_log=" 
     14148This file was extended by pjproject $as_me 1.x, which was 
     14149generated 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 
     14157on `(hostname || uname -n) 2>/dev/null | sed 1q` 
     14158" 
     14159 
     14160_ACEOF 
     14161 
     14162cat >>$CONFIG_STATUS <<_ACEOF 
     14163# Files that config.status was made for. 
     14164config_files="$ac_config_files" 
     14165config_headers="$ac_config_headers" 
     14166 
     14167_ACEOF 
     14168 
     14169cat >>$CONFIG_STATUS <<\_ACEOF 
     14170ac_cs_usage="\ 
     14171\`$as_me' instantiates files from templates according to the 
     14172current configuration. 
     14173 
     14174Usage: $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 
     14186Configuration files: 
     14187$config_files 
     14188 
     14189Configuration headers: 
     14190$config_headers 
     14191 
     14192Report bugs to <bug-autoconf@gnu.org>." 
     14193 
     14194_ACEOF 
     14195cat >>$CONFIG_STATUS <<_ACEOF 
     14196ac_cs_version="\\ 
     14197pjproject config.status 1.x 
     14198configured by $0, generated by GNU Autoconf 2.61, 
     14199  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 
     14200 
     14201Copyright (C) 2006 Free Software Foundation, Inc. 
     14202This config.status script is free software; the Free Software Foundation 
     14203gives unlimited permission to copy, distribute and modify it." 
     14204 
     14205ac_pwd='$ac_pwd' 
     14206srcdir='$srcdir' 
     14207_ACEOF 
     14208 
     14209cat >>$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. 
     14212ac_need_defaults=: 
     14213while test $# != 0 
     14214do 
     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 
     14247Try \`$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 
     14257Try \`$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 
     14265done 
     14266 
     14267ac_configure_extra_args= 
     14268 
     14269if $ac_cs_silent; then 
     14270  exec 6>/dev/null 
     14271  ac_configure_extra_args="$ac_configure_extra_args --silent" 
     14272fi 
     14273 
     14274_ACEOF 
     14275cat >>$CONFIG_STATUS <<_ACEOF 
     14276if \$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 
     14281fi 
     14282 
     14283_ACEOF 
     14284cat >>$CONFIG_STATUS <<\_ACEOF 
     14285exec 5>>config.log 
    732614286{ 
    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 
     14295cat >>$CONFIG_STATUS <<_ACEOF 
     14296_ACEOF 
     14297 
     14298cat >>$CONFIG_STATUS <<\_ACEOF 
     14299 
     14300# Handling of arguments. 
     14301for ac_config_target in $ac_config_targets 
     14302do 
     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 
     14320echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 
     14321   { (exit 1); exit 1; }; };; 
     14322  esac 
     14323done 
     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. 
     14330if $ac_need_defaults; then 
     14331  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 
     14332  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 
     14333fi 
     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 
     14370if test -n "$CONFIG_FILES"; then 
     14371 
     14372_ACEOF 
     14373 
     14374 
     14375 
     14376ac_delim='%!_!# ' 
     14377for ac_last_try in false false false false false :; do 
     14378  cat >conf$$subs.sed <<_ACEOF 
     14379SHELL!$SHELL$ac_delim 
     14380PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 
     14381PACKAGE_NAME!$PACKAGE_NAME$ac_delim 
     14382PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 
     14383PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 
     14384PACKAGE_STRING!$PACKAGE_STRING$ac_delim 
     14385PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 
     14386exec_prefix!$exec_prefix$ac_delim 
     14387prefix!$prefix$ac_delim 
     14388program_transform_name!$program_transform_name$ac_delim 
     14389bindir!$bindir$ac_delim 
     14390sbindir!$sbindir$ac_delim 
     14391libexecdir!$libexecdir$ac_delim 
     14392datarootdir!$datarootdir$ac_delim 
     14393datadir!$datadir$ac_delim 
     14394sysconfdir!$sysconfdir$ac_delim 
     14395sharedstatedir!$sharedstatedir$ac_delim 
     14396localstatedir!$localstatedir$ac_delim 
     14397includedir!$includedir$ac_delim 
     14398oldincludedir!$oldincludedir$ac_delim 
     14399docdir!$docdir$ac_delim 
     14400infodir!$infodir$ac_delim 
     14401htmldir!$htmldir$ac_delim 
     14402dvidir!$dvidir$ac_delim 
     14403pdfdir!$pdfdir$ac_delim 
     14404psdir!$psdir$ac_delim 
     14405libdir!$libdir$ac_delim 
     14406localedir!$localedir$ac_delim 
     14407mandir!$mandir$ac_delim 
     14408DEFS!$DEFS$ac_delim 
     14409ECHO_C!$ECHO_C$ac_delim 
     14410ECHO_N!$ECHO_N$ac_delim 
     14411ECHO_T!$ECHO_T$ac_delim 
     14412LIBS!$LIBS$ac_delim 
     14413build_alias!$build_alias$ac_delim 
     14414host_alias!$host_alias$ac_delim 
     14415target_alias!$target_alias$ac_delim 
     14416build!$build$ac_delim 
     14417build_cpu!$build_cpu$ac_delim 
     14418build_vendor!$build_vendor$ac_delim 
     14419build_os!$build_os$ac_delim 
     14420host!$host$ac_delim 
     14421host_cpu!$host_cpu$ac_delim 
     14422host_vendor!$host_vendor$ac_delim 
     14423host_os!$host_os$ac_delim 
     14424target!$target$ac_delim 
     14425target_cpu!$target_cpu$ac_delim 
     14426target_vendor!$target_vendor$ac_delim 
     14427target_os!$target_os$ac_delim 
     14428CC!$CC$ac_delim 
     14429CFLAGS!$CFLAGS$ac_delim 
     14430LDFLAGS!$LDFLAGS$ac_delim 
     14431CPPFLAGS!$CPPFLAGS$ac_delim 
     14432ac_ct_CC!$ac_ct_CC$ac_delim 
     14433EXEEXT!$EXEEXT$ac_delim 
     14434OBJEXT!$OBJEXT$ac_delim 
     14435CXX!$CXX$ac_delim 
     14436CXXFLAGS!$CXXFLAGS$ac_delim 
     14437ac_ct_CXX!$ac_ct_CXX$ac_delim 
     14438AR!$AR$ac_delim 
     14439LD!$LD$ac_delim 
     14440LDOUT!$LDOUT$ac_delim 
     14441RANLIB!$RANLIB$ac_delim 
     14442LIBEXT!$LIBEXT$ac_delim 
     14443LIBEXT2!$LIBEXT2$ac_delim 
     14444CC_OUT!$CC_OUT$ac_delim 
     14445CC_INC!$CC_INC$ac_delim 
     14446CC_DEF!$CC_DEF$ac_delim 
     14447CC_OPTIMIZE!$CC_OPTIMIZE$ac_delim 
     14448CC_CFLAGS!$CC_CFLAGS$ac_delim 
     14449ac_pjdir!$ac_pjdir$ac_delim 
     14450ac_build_mak_vars!$ac_build_mak_vars$ac_delim 
     14451CPP!$CPP$ac_delim 
     14452GREP!$GREP$ac_delim 
     14453EGREP!$EGREP$ac_delim 
     14454ac_os_objs!$ac_os_objs$ac_delim 
     14455ac_external_speex!$ac_external_speex$ac_delim 
     14456ac_external_gsm!$ac_external_gsm$ac_delim 
     14457ac_pjmedia_snd!$ac_pjmedia_snd$ac_delim 
     14458ac_external_pa!$ac_external_pa$ac_delim 
     14459ac_pa_cflags!$ac_pa_cflags$ac_delim 
     14460ac_pa_use_alsa!$ac_pa_use_alsa$ac_delim 
     14461ac_pa_use_oss!$ac_pa_use_oss$ac_delim 
     14462ac_pjmedia_video!$ac_pjmedia_video$ac_delim 
     14463ac_pjmedia_video_has_ios!$ac_pjmedia_video_has_ios$ac_delim 
     14464ac_ios_cflags!$ac_ios_cflags$ac_delim 
     14465ac_pjmedia_video_has_qt!$ac_pjmedia_video_has_qt$ac_delim 
     14466ac_qt_cflags!$ac_qt_cflags$ac_delim 
     14467ac_no_small_filter!$ac_no_small_filter$ac_delim 
     14468ac_no_large_filter!$ac_no_large_filter$ac_delim 
     14469ac_no_speex_aec!$ac_no_speex_aec$ac_delim 
     14470ac_no_g711_codec!$ac_no_g711_codec$ac_delim 
     14471ac_no_l16_codec!$ac_no_l16_codec$ac_delim 
     14472ac_no_gsm_codec!$ac_no_gsm_codec$ac_delim 
     14473ac_no_g722_codec!$ac_no_g722_codec$ac_delim 
     14474ac_no_g7221_codec!$ac_no_g7221_codec$ac_delim 
     14475ac_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 
     14482echo "$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 
     14487done 
     14488 
     14489ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 
     14490if test -n "$ac_eof"; then 
     14491  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 
     14492  ac_eof=`expr $ac_eof + 1` 
     14493fi 
     14494 
     14495cat >>$CONFIG_STATUS <<_ACEOF 
     14496cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 
     14497/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 
     14498_ACEOF 
     14499sed ' 
     14500s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 
     14501s/^/s,@/; s/!/@,|#_!!_#|/ 
     14502:n 
     14503t n 
     14504s/'"$ac_delim"'$/,g/; t 
     14505s/$/\\/; p 
     14506N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 
     14507' >>$CONFIG_STATUS <conf$$subs.sed 
     14508rm -f conf$$subs.sed 
     14509cat >>$CONFIG_STATUS <<_ACEOF 
     14510CEOF$ac_eof 
     14511_ACEOF 
     14512 
     14513 
     14514ac_delim='%!_!# ' 
     14515for ac_last_try in false false false false false :; do 
     14516  cat >conf$$subs.sed <<_ACEOF 
     14517ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim 
     14518ac_sdl_cflags!$ac_sdl_cflags$ac_delim 
     14519ac_sdl_ldflags!$ac_sdl_ldflags$ac_delim 
     14520ac_has_ffmpeg!$ac_has_ffmpeg$ac_delim 
     14521ac_ffmpeg_cflags!$ac_ffmpeg_cflags$ac_delim 
     14522ac_ffmpeg_ldflags!$ac_ffmpeg_ldflags$ac_delim 
     14523ac_v4l2_cflags!$ac_v4l2_cflags$ac_delim 
     14524ac_v4l2_ldflags!$ac_v4l2_ldflags$ac_delim 
     14525ac_no_ssl!$ac_no_ssl$ac_delim 
     14526openssl_h_present!$openssl_h_present$ac_delim 
     14527libssl_present!$libssl_present$ac_delim 
     14528libcrypto_present!$libcrypto_present$ac_delim 
     14529ac_no_opencore_amrnb!$ac_no_opencore_amrnb$ac_delim 
     14530opencore_amrnb_h_present!$opencore_amrnb_h_present$ac_delim 
     14531opencore_amrnb_present!$opencore_amrnb_present$ac_delim 
     14532ac_cross_compile!$ac_cross_compile$ac_delim 
     14533ac_linux_poll!$ac_linux_poll$ac_delim 
     14534ac_host!$ac_host$ac_delim 
     14535ac_main_obj!$ac_main_obj$ac_delim 
     14536LIBOBJS!$LIBOBJS$ac_delim 
     14537LTLIBOBJS!$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 
     14544echo "$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 
     14549done 
     14550 
     14551ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 
     14552if test -n "$ac_eof"; then 
     14553  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 
     14554  ac_eof=`expr $ac_eof + 1` 
     14555fi 
     14556 
     14557cat >>$CONFIG_STATUS <<_ACEOF 
     14558cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 
     14559/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 
     14560_ACEOF 
     14561sed ' 
     14562s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 
     14563s/^/s,@/; s/!/@,|#_!!_#|/ 
     14564:n 
     14565t n 
     14566s/'"$ac_delim"'$/,g/; t 
     14567s/$/\\/; p 
     14568N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 
     14569' >>$CONFIG_STATUS <conf$$subs.sed 
     14570rm -f conf$$subs.sed 
     14571cat >>$CONFIG_STATUS <<_ACEOF 
     14572:end 
     14573s/|#_!!_#|//g 
     14574CEOF$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). 
     14582if test "x$srcdir" = x.; then 
     14583  ac_vpsub='/^[  ]*VPATH[        ]*=/{ 
     14584s/:*\$(srcdir):*/:/ 
     14585s/:*\${srcdir}:*/:/ 
     14586s/:*@srcdir@:*/:/ 
     14587s/^\([^=]*=[     ]*\):*/\1/ 
     14588s/:*$// 
     14589s/^[^=]*=[       ]*$// 
     14590}' 
     14591fi 
     14592 
     14593cat >>$CONFIG_STATUS <<\_ACEOF 
     14594fi # test -n "$CONFIG_FILES" 
     14595 
     14596 
     14597for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS 
     14598do 
     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 
     14605echo "$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 
     14635echo "$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 
     14649echo "$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 || 
     14663echo 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" 
    732814682  case $as_dir in #( 
    732914683  -*) as_dir=./$as_dir;; 
    733014684  esac 
    7331   test -d "$as_dir" || eval $as_mkdir_p || { 
     14685  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 
    733214686    as_dirs= 
    733314687    while :; do 
    733414688      case $as_dir in #( 
    7335       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 
     14689      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 
    733614690      *) as_qdir=$as_dir;; 
    733714691      esac 
     
    734214696         X"$as_dir" : 'X\(//\)$' \| \ 
    734314697         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 
    7344 $as_echo X"$as_dir" | 
     14698echo X"$as_dir" | 
    734514699    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 
    734614700            s//\1/ 
     
    736314717    done 
    736414718    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 
     14720echo "$as_me: error: cannot create directory $as_dir" >&2;} 
     14721   { (exit 1); exit 1; }; }; } 
    800114722  ac_builddir=. 
    800214723 
     
    800414725.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 
    800514726*) 
    8006   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 
     14727  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 
    800714728  # 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,/,,'` 
    800914730  case $ac_top_builddir_sub in 
    801014731  "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 
     
    804214763_ACEOF 
    804314764 
    8044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 
     14765cat >>$CONFIG_STATUS <<\_ACEOF 
    804514766# If the template does not know about datarootdir, expand it. 
    804614767# FIXME: This hack should be removed a few years after 2.60. 
    804714768ac_datarootdir_hack=; ac_datarootdir_seen= 
    8048 ac_sed_dataroot=' 
    8049 /datarootdir/ { 
     14769 
     14770case `sed -n '/datarootdir/ { 
    805014771  p 
    805114772  q 
     
    805514776/@infodir@/p 
    805614777/@localedir@/p 
    8057 /@mandir@/p' 
    8058 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 
     14778/@mandir@/p 
     14779' $ac_file_inputs` in 
    805914780*datarootdir*) ac_datarootdir_seen=yes;; 
    806014781*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 
    8061   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 
    8062 $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=1 
     14782  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 
     14783echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 
     14784_ACEOF 
     14785cat >>$CONFIG_STATUS <<_ACEOF 
    806514786  ac_datarootdir_hack=' 
    806614787  s&@datadir@&$datadir&g 
     
    806914790  s&@localedir@&$localedir&g 
    807014791  s&@mandir@&$mandir&g 
    8071   s&\\\${datarootdir}&$datarootdir&g' ;; 
     14792    s&\\\${datarootdir}&$datarootdir&g' ;; 
    807214793esac 
    807314794_ACEOF 
     
    807614797# Shell code in configure.ac might set extrasub. 
    807714798# FIXME: do we really want to maintain this feature? 
    8078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 
    8079 ac_sed_extra="$ac_vpsub 
     14799cat >>$CONFIG_STATUS <<_ACEOF 
     14800  sed "$ac_vpsub 
    808014801$extrasub 
    808114802_ACEOF 
    8082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 
     14803cat >>$CONFIG_STATUS <<\_ACEOF 
    808314804:t 
    808414805/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 
    8085 s|@configure_input@|$ac_sed_conf_input|;t t 
     14806s&@configure_input@&$configure_input&;t t 
    808614807s&@top_builddir@&$ac_top_builddir_sub&;t t 
    8087 s&@top_build_prefix@&$ac_top_build_prefix&;t t 
    808814808s&@srcdir@&$ac_srcdir&;t t 
    808914809s&@abs_srcdir@&$ac_abs_srcdir&;t t 
     
    809414814s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 
    809514815$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 
    809914817 
    810014818test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 
    810114819  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 
    810214820  { 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' 
    810414822which 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' 
     14823echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 
    810614824which seems to be undefined.  Please make sure it is defined." >&2;} 
    810714825 
    810814826  rm -f "$tmp/stdin" 
    810914827  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 
    811414831 ;; 
    811514832  :H) 
     
    811714834  # CONFIG_HEADER 
    811814835  # 
     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. 
     14840rm -f conftest.defines conftest.tail 
     14841# First, append a space to every undef/define line, to ease matching. 
     14842echo '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. 
     14848ac_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. 
     14853ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*' 
     14854ac_dB='\\)[      (].*,\\1define\\2' 
     14855ac_dC=' ' 
     14856ac_dD=' ,' 
     14857 
     14858uniq 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.) 
     14876echo 's/ $// 
     14877s,^[     #]*u.*,/* & */,' >>conftest.defines 
     14878 
     14879# Break up conftest.defines: 
     14880ac_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. 
     14886ac_in='$ac_file_inputs' 
     14887ac_out='"$tmp/out1"' 
     14888ac_nxt='"$tmp/out2"' 
     14889 
     14890while : 
     14891do 
     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 
     14898b 
     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 
     14909done 
     14910rm -f conftest.defines conftest.tail 
     14911 
     14912echo "ac_result=$ac_in" >>$CONFIG_STATUS 
     14913cat >>$CONFIG_STATUS <<\_ACEOF 
    811914914  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 
     14919echo "$as_me: $ac_file is unchanged" >&6;} 
    812814920    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 
    813214923    fi 
    813314924  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" 
    813714927  fi 
     14928  rm -f "$tmp/out12" 
    813814929 ;; 
    813914930 
     
    814414935 
    814514936 
    8146 as_fn_exit 0 
    8147 _ACEOF 
     14937{ (exit 0); exit 0; } 
     14938_ACEOF 
     14939chmod +x $CONFIG_STATUS 
    814814940ac_clean_files=$ac_clean_files_save 
    8149  
    8150 test $ac_write_fail = 0 || 
    8151   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 
    815214941 
    815314942 
     
    817014959  # Use ||, not &&, to avoid exiting from the if with $? = 1, which 
    817114960  # 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; } 
     14962fi 
     14963 
     14964 
     14965 
     14966{ echo "$as_me:$LINENO: result: 
    818214967 
    818314968Configurations 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. 
     
    818914974The next step now is to run 'make dep' and 'make'. 
    819014975" >&5 
    8191 $as_echo " 
     14976echo "${ECHO_T} 
    819214977 
    819314978Configurations 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  
    5353if test "$LD" = ""; then LD="$CC"; fi 
    5454AC_SUBST(LD) 
    55 if test "$LDOUT" = ""; then LDOUT="-o"; fi 
     55if test "$LDOUT" = ""; then LDOUT="-o "; fi 
    5656AC_SUBST(LDOUT) 
    5757if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi 
     
    6363if test "$LIBEXT2" = ""; then LIBEXT2=""; fi 
    6464AC_SUBST(LIBEXT2) 
    65 if test "$CC_OUT" = ""; then CC_OUT="-o"; fi 
     65if test "$CC_OUT" = ""; then CC_OUT="-o "; fi 
    6666AC_SUBST(CC_OUT) 
    6767if test "$CC_INC" = ""; then CC_INC="-I"; fi 
     
    127127dnl 
    128128AC_C_BIGENDIAN 
     129 
     130if test "x$ac_cv_c_bigendian" = "xyes"; then 
     131  CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0" 
     132else 
     133  CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1" 
     134fi 
    129135 
    130136dnl 
     
    11791185              ]) 
    11801186 
     1187dnl # Include opencore-amrnb support 
     1188AC_SUBST(ac_no_opencore_amrnb) 
     1189AC_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 
    11811215 
    11821216dnl ########################################## 
  • pjproject/trunk/configure-iphone

    r3462 r3841  
    7272 
    7373if 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 
    8292    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 
    8897fi 
    8998 
  • pjproject/trunk/pjlib-util/include/pjlib-util/http_client.h

    r3553 r3841  
    189189    pj_http_auth_cred   auth_cred; 
    190190 
     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 
    191221} pj_http_req_param; 
    192222 
  • pjproject/trunk/pjlib-util/src/pjlib-util/http_client.c

    r3553 r3841  
    2727#include <pj/string.h> 
    2828#include <pj/timer.h> 
     29#include <pj/rand.h> 
    2930#include <pjlib-util/base64.h> 
    3031#include <pjlib-util/errno.h> 
     
    3334#include <pjlib-util/string.h> 
    3435 
     36#define THIS_FILE   "http_client.c" 
     37 
    3538#if 0 
    3639    /* Enable some tracing */ 
    37     #define THIS_FILE   "http_client.c" 
    3840    #define TRACE_(arg) PJ_LOG(3,arg) 
    3941#else 
     
    765767    param->timeout.msec = PJ_HTTP_DEFAULT_TIMEOUT; 
    766768    pj_time_val_normalize(&param->timeout); 
     769    param->max_retries = 3; 
    767770} 
    768771 
     
    10051008} 
    10061009 
    1007 PJ_DEF(pj_status_t) pj_http_req_start(pj_http_req *http_req) 
     1010static pj_status_t start_http_req(pj_http_req *http_req, 
     1011                                  pj_bool_t notify_on_fail) 
    10081012{ 
    10091013    pj_sock_t sock = PJ_INVALID_SOCKET; 
    10101014    pj_status_t status; 
    10111015    pj_activesock_cb asock_cb; 
     1016    int retry = 0; 
    10121017 
    10131018    PJ_ASSERT_RETURN(http_req, PJ_EINVAL); 
     
    10321037             http_req->addr.ipv4.sin_addr.s_addr==PJ_INADDR_NONE)) 
    10331038        { 
    1034             return status; // cannot resolve host name 
     1039            goto on_return; 
    10351040        } 
    10361041        http_req->resolved = PJ_TRUE; 
     
    10461051    asock_cb.on_data_sent = &http_on_data_sent; 
    10471052    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    } 
    10481079 
    10491080    // TODO: should we set whole data to 0 by default? 
     
    10531084                                  &asock_cb, http_req, &http_req->asock); 
    10541085    if (status != PJ_SUCCESS) { 
    1055         if (sock != PJ_INVALID_SOCKET) 
    1056             pj_sock_close(sock); 
     1086        pj_sock_close(sock); 
    10571087        goto on_return; // error creating activesock 
    10581088    } 
     
    10751105    if (status == PJ_SUCCESS) { 
    10761106        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; 
    10781110    } else if (status != PJ_EPENDING) { 
    10791111        goto on_return; // error connecting 
     
    10831115 
    10841116on_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 
    10861123    return status; 
     1124} 
     1125 
     1126/* Starts an asynchronous HTTP request to the URL specified. */ 
     1127PJ_DEF(pj_status_t) pj_http_req_start(pj_http_req *http_req) 
     1128{ 
     1129    return start_http_req(http_req, PJ_FALSE); 
    10871130} 
    10881131 
     
    13461389        const pj_str_t STR_MD5 = { "MD5", 3 }; 
    13471390        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"); 
    13491392        const pj_str_t cnonce = pj_str("b39971"); 
    13501393 
     
    14341477    http_req_end_request(hreq); 
    14351478 
    1436     status = pj_http_req_start(hreq); 
     1479    status = start_http_req(hreq, PJ_TRUE); 
    14371480    if (status != PJ_SUCCESS) 
    14381481        goto on_error; 
  • pjproject/trunk/pjlib-util/src/pjlib-util/pcap.c

    r3553 r3841  
    369369        *udp_payload_size = sz; 
    370370 
     371        // Some layers may have trailer, e.g: link eth2. 
    371372        /* 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        } 
    373385 
    374386        return PJ_SUCCESS; 
  • pjproject/trunk/pjlib/include/pj/compat/os_auto.h.in

    r3543 r3841  
    178178        /* Use CFHost API for pj_getaddrinfo() (see ticket #1246) */ 
    179179#       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 
    180182#       ifdef __IPHONE_4_0 
    181183            /* Is multitasking support available?  (see ticket #1107) */ 
  • pjproject/trunk/pjlib/include/pj/compat/os_symbian.h

    r3553 r3841  
    109109#endif 
    110110 
     111/* Endianness */ 
     112#ifndef PJ_IS_LITTLE_ENDIAN 
     113#   define PJ_IS_LITTLE_ENDIAN  1 
     114#   define PJ_IS_BIG_ENDIAN     0 
     115#endif 
    111116 
    112117/* Doesn't seem to allow more than this */ 
  • pjproject/trunk/pjlib/include/pj/compat/os_win32_wince.h

    r3553 r3841  
    9999#define PJ_SELECT_NEEDS_NFDS        0 
    100100 
     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 
    101107/* Default threading is enabled, unless it's overridden. */ 
    102108#ifndef PJ_HAS_THREADS 
  • pjproject/trunk/pjlib/include/pj/config.h

    r3808 r3841  
    171171        defined(__IA64__) || defined(   _M_IA64) 
    172172    /* 
    173      * Intel IA64 processor, little endian 
     173     * Intel IA64 processor, default to little endian 
    174174     */ 
    175175#   undef PJ_M_IA64 
     
    209209        defined(__MIPS__) || defined(MIPS) || defined(_MIPS_) 
    210210    /* 
    211      * MIPS, default to little endian 
     211     * MIPS, bi-endian, so raise error if endianness is not configured 
    212212     */ 
    213213#   undef PJ_M_MIPS 
     
    215215#   define PJ_M_NAME            "mips" 
    216216#   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 
    220219#   endif 
    221220 
     
    235234        defined(ARMV4) || defined(__arm__) 
    236235    /* 
    237      * ARM, default to little endian 
     236     * ARM, bi-endian, so raise error if endianness is not configured 
    238237     */ 
    239238#   undef PJ_M_ARMV4 
     
    241240#   define PJ_M_NAME            "armv4" 
    242241#   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 
    246244#   endif 
    247245 
     
    250248        defined(_ARCH_PPC) 
    251249    /* 
    252      * PowerPC, big endian 
     250     * PowerPC, bi-endian, so raise error if endianness is not configured 
    253251     */ 
    254252#   undef PJ_M_POWERPC 
     
    256254#   define PJ_M_NAME            "powerpc" 
    257255#   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 
    260259 
    261260#elif defined (PJ_M_NIOS2) || defined(__nios2) || defined(__nios2__) || \ 
  • pjproject/trunk/pjlib/include/pj/hash.h

    r3553 r3841  
    126126 *                  created. 
    127127 * @param ht        the hash table. 
    128  * @param key       the key, which MUST point to buffer that remains valid 
    129  *                  for the duration of the entry. 
     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. 
    130130 * @param keylen    the length of the key, or PJ_HASH_KEY_STRING to use the  
    131131 *                  string length of the key. 
  • pjproject/trunk/pjlib/include/pj/sock.h

    r3553 r3841  
    494494#define PJ_INET6_ADDRSTRLEN     46 
    495495 
     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 
    496503 
    497504/** 
     
    513520    pj_uint16_t sin_port;       /**< Transport layer port number.   */ 
    514521    pj_in_addr  sin_addr;       /**< IP address.                    */ 
    515     char        sin_zero[8];    /**< Padding.                       */ 
     522    char        sin_zero[PJ_SOCKADDR_IN_SIN_ZERO_LEN]; /**< Padding.*/ 
    516523}; 
    517524 
  • pjproject/trunk/pjlib/src/pj/ioqueue_symbian.cpp

    r3553 r3841  
    341341void CIoqueueCallback::RunL() 
    342342{ 
     343    pj_ioqueue_t *ioq = ioqueue_; 
    343344    Type cur_type = type_; 
    344345 
     
    400401    } 
    401402 
    402     ioqueue_->eventCount++; 
     403    ioq->eventCount++; 
    403404} 
    404405 
  • pjproject/trunk/pjlib/src/pj/sock_common.c

    r3553 r3841  
    785785    PJ_SOCKADDR_RESET_LEN(addr); 
    786786 
     787#if !defined(PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION) || \ 
     788    PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION == 0 
    787789    /* Get hostname's IP address */ 
    788790    count = 1; 
     
    798800                pj_sockaddr_print(&ai.ai_addr, strip, sizeof(strip), 0))); 
    799801    } 
    800  
     802#else 
     803    PJ_UNUSED_ARG(ai); 
     804    PJ_UNUSED_ARG(count); 
     805#endif 
    801806 
    802807    /* Get default interface (interface for default route) */ 
  • pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c

    r3553 r3841  
    311311        if (!meth) 
    312312            meth = (SSL_METHOD*)SSLv3_server_method(); 
     313#ifndef OPENSSL_NO_SSL2 
    313314        if (!meth) 
    314315            meth = (SSL_METHOD*)SSLv2_server_method(); 
     316#endif 
    315317        pj_assert(meth); 
    316318 
     
    489491        ssl_method = (SSL_METHOD*)TLSv1_method(); 
    490492        break; 
     493#ifndef OPENSSL_NO_SSL2 
    491494    case PJ_SSL_SOCK_PROTO_SSL2: 
    492495        ssl_method = (SSL_METHOD*)SSLv2_method(); 
    493496        break; 
     497#endif 
    494498    case PJ_SSL_SOCK_PROTO_SSL3: 
    495499        ssl_method = (SSL_METHOD*)SSLv3_method(); 
  • pjproject/trunk/pjlib/src/pjlib-test/os.c

    r3553 r3841  
    2323 
    2424#if INCLUDE_OS_TEST 
     25static 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 
    2594int os_test(void) 
    2695{ 
     
    2897    int rc = 0; 
    2998 
     99    PJ_LOG(3,("", " Sys info:")); 
    30100    si = pj_get_sys_info(); 
    31101    PJ_LOG(3,("", "   machine:  %s", si->machine.ptr)); 
     
    36106    PJ_LOG(3,("", "   info:     %s", si->info.ptr)); 
    37107 
     108    rc = endianness_test32(); 
     109 
    38110    return rc; 
    39111} 
  • pjproject/trunk/pjlib/src/pjlib-test/sock.c

    r3553 r3841  
    511511        if (srclen != addrlen) 
    512512            return -151; 
    513         if (pj_memcmp(&addr, srcaddr, srclen) != 0) { 
     513        if (pj_sockaddr_cmp(&addr, srcaddr) != 0) { 
    514514            char srcaddr_str[32], addr_str[32]; 
    515515            strcpy(srcaddr_str, pj_inet_ntoa(srcaddr->sin_addr)); 
  • pjproject/trunk/pjmedia/build/Jbtest.dat

    r3396 r3841  
    2020# 3. Success conditions, started with '!', followed by condition name  
    2121#    and its maximum tolerable value, in frames unit. Recognized condition  
    22 #    names are: burst, discard, lost, empty, delay. These conditions will 
    23 #    be verified with jitter buffer statistics after all session test data 
    24 #    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. 
    2525#    Example: 
    26 #    !delay 10  <- maximum average delay of jbuf is 10 frames 
     26#    !delay 10  <- average delay of jbuf is 10 frames 
    2727# 
    2828# 4. Session test data, containing sequence of jitter buffer events, 
     
    296296!lost       50 <- ticket #1188, normal frame after discarded frame is flagged 'lost' to align signal 
    297297!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 
     299PPPPPPPPPPPPPPPPPPPP PPPPPPPPPPPPPPPPPPPP PPPPPPPPPP 
     300PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     301PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     302PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     303PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     304PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     305PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     306PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     307PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     308PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     309PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     310PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     311PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     312PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     313PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     314PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     315PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     316PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
    300317PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
    301318PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     
    317334%fixed 5 
    318335!burst      1 
    319 !discard    0 
    320 !lost       0 
     336!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 
    321338!empty      10 
    322339!delay      5 
     
    330347%fixed 5 
    331348!burst      3 
    332 !discard    0 
    333 !lost       0 
     349!discard    4 <- (see above test scenario) 
     350!lost       4 <- (see above test scenario) 
    334351!empty      5 
    335352!delay      5 
     
    350367!lost       50 <- ticket #1188, normal frame after discarded frame is flagged 'lost' to align signal 
    351368!empty      0 
    352 !delay      20 <- average delay, twice of minimal prefetch 
     369!delay_min  20 <- minimum delay, twice of minimal prefetch 
    353370PPPPPPPPPPPPPPPPPPPP PPPPPPPPPPPPPPPPPPPP PPPPPPPPPP 
    354371PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG PGPGPGPGPG 
     
    370387= Large PUT burst at beginning, then normal with burst level 10 and periodic burst spikes 
    371388%adaptive 0 0 40 
    372 !burst      10 
     389!burst      12 
    373390!discard    300 <- not so relevant for long period session with many delay adjustments needed (i.e: for first burst and periodic spikes) 
    374391!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  
    5858AC_NO_G722_CODEC=@ac_no_g722_codec@ 
    5959AC_NO_G7221_CODEC=@ac_no_g7221_codec@ 
     60AC_NO_OPENCORE_AMRNB=@ac_no_opencore_amrnb@ 
    6061 
    6162export CODEC_OBJS= 
     
    108109export CODEC_OBJS += g7221.o 
    109110export G7221_CFLAGS += -I$(THIRD_PARTY) 
     111endif 
     112 
     113ifeq ($(AC_NO_OPENCORE_AMRNB),1) 
     114export CFLAGS += -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 
     115else 
     116export CODEC_OBJS += opencore_amrnb.o 
    110117endif 
    111118 
  • pjproject/trunk/pjmedia/build/pjmedia_codec.vcproj

    r3665 r3841  
    29682968                        </File> 
    29692969                        <File 
     2970                                RelativePath="..\src\pjmedia-codec\opencore_amrnb.c" 
     2971                                > 
     2972                        </File> 
     2973                        <File 
    29702974                                RelativePath="..\src\pjmedia-codec\passthrough.c" 
    29712975                                > 
     
    31033107                        </File> 
    31043108                        <File 
     3109                                RelativePath="..\include\pjmedia-codec\opencore_amrnb.h" 
     3110                                > 
     3111                        </File> 
     3112                        <File 
    31053113                                RelativePath="..\include\pjmedia-codec\passthrough.h" 
    31063114                                > 
  • pjproject/trunk/pjmedia/include/pjmedia-audiodev/config.h

    r3664 r3841  
    146146 
    147147/** 
     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/** 
    148163 * This setting controls whether the Audio Device API should support 
    149164 * device implementation that is based on the old sound device API 
  • pjproject/trunk/pjmedia/include/pjmedia-codec.h

    r3664 r3841  
    3636#include <pjmedia-codec/ipp_codecs.h> 
    3737#include <pjmedia-codec/passthrough.h> 
     38#include <pjmedia-codec/opencore_amrnb.h> 
    3839 
    3940 
  • pjproject/trunk/pjmedia/include/pjmedia-codec/amr_helper.h

    r3553 r3841  
    568568 */ 
    569569const 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}; 
    571571/** 
    572572 * Constant of AMR-NB frame lengths in bits. 
     
    584584 */ 
    585585const 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}; 
    587587/** 
    588588 * Constant of AMR-WB frame lengths in bits. 
     
    607607    pj_uint8_t start_bit;       /**< Frame start bit.                   */ 
    608608    pj_uint8_t good_quality:1;  /**< Flag if frame is good/degraded.    */ 
     609    pj_uint8_t STI:1;           /**< STI mode (first/update).           */ 
    609610} pjmedia_codec_amr_bit_info; 
    610611#pragma pack() 
     
    10211022 
    10221023            /* SID */ 
    1023             pj_uint8_t STI = 0; 
    1024  
    1025             amr_bits[35] = (pj_uint8_t)(STI & 1); 
     1024            amr_bits[35] |= info->STI; 
    10261025 
    10271026            if (setting->amr_nb) { 
     
    11641163        info->good_quality = (pj_uint8_t)(Q == 1); 
    11651164        info->start_bit = 0; 
     1165        info->STI = 0; 
    11661166        frames[cnt].timestamp = ts_; 
    11671167        frames[cnt].type = PJMEDIA_FRAME_TYPE_AUDIO; 
     
    11861186        frames[cnt].buf = r; 
    11871187        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        } 
    11881195 
    11891196        if (setting->octet_aligned) { 
  • pjproject/trunk/pjmedia/include/pjmedia-codec/config.h

    r3819 r3841  
    314314 
    315315/** 
     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/** 
    316349 * Default G.722.1 codec encoder and decoder level adjustment.  
    317350 * 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  
    7070#endif 
    7171 
     72/* OpenCORE AMR-NB codec */ 
     73#ifndef PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 
     74#undef PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 
     75#endif 
     76 
    7277 
    7378#endif  /* __PJMEDIA_CODEC_CONFIG_AUTO_H_ */ 
  • pjproject/trunk/pjmedia/include/pjmedia/config.h

    r3837 r3841  
    388388 
    389389/** 
    390  * Number of packets received from different source IP address from the 
     390 * Number of RTP packets received from different source IP address from the 
    391391 * remote address required to make the stream switch transmission 
    392392 * to the source address. 
     
    394394#ifndef PJMEDIA_RTP_NAT_PROBATION_CNT    
    395395#  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 
    396406#endif 
    397407 
     
    917927 */ 
    918928#ifndef PJMEDIA_STREAM_KA_INTERVAL 
    919 #       define PJMEDIA_STREAM_KA_INTERVAL           5 
     929#   define PJMEDIA_STREAM_KA_INTERVAL               5 
    920930#endif 
    921931 
     
    10581068 
    10591069/** 
     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/** 
    10601127 * Video stream will discard old picture from the jitter buffer as soon as 
    10611128 * new picture is received, to reduce latency. 
  • pjproject/trunk/pjmedia/include/pjmedia/delaybuf.h

    r3553 r3841  
    6565 
    6666/** 
     67 * Delay buffer options. 
     68 */ 
     69typedef 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/** 
    6780 * Create the delay buffer. Once the delay buffer is created, it will 
    6881 * enter learning state unless the delay argument is specified, which 
     
    8093 *                          one frame time, default maximum delay used is 
    8194 *                          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. 
    83101 * @param p_b               Pointer to receive the delay buffer instance. 
    84102 * 
  • pjproject/trunk/pjmedia/include/pjmedia/echo.h

    r3553 r3841  
    8989     * canceller will not be called by different threads at the same time. 
    9090     */ 
    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 
    92100 
    93101} pjmedia_echo_flag; 
  • pjproject/trunk/pjmedia/include/pjmedia/jbuf.h

    r3835 r3841  
    4949 * Types of frame returned by the jitter buffer. 
    5050 */ 
    51 enum pjmedia_jb_frame_type  
     51typedef enum pjmedia_jb_frame_type  
    5252{ 
    5353    PJMEDIA_JB_MISSING_FRAME       = 0, /**< No frame because it's missing  */ 
     
    5757    PJMEDIA_JB_ZERO_EMPTY_FRAME    = 3  /**< Zero frame is being returned 
    5858                                             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 */ 
     68typedef 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; 
    6694 
    6795 
     
    108136 * Create an adaptive jitter buffer according to the specification. If 
    109137 * 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(). 
    111141 * 
    112142 * This function may allocate large chunk of memory to keep the frames in  
     
    175205 
    176206/** 
    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 */ 
     215PJ_DECL(pj_status_t) pjmedia_jbuf_set_discard(pjmedia_jbuf *jb, 
     216                                              pjmedia_jb_discard_algo algo); 
    187217 
    188218 
  • pjproject/trunk/pjmedia/include/pjmedia/session.h

    r3553 r3841  
    233233 
    234234/** 
     235 * Send RTCP SDES for the session. 
     236 * 
     237 * @param session       The media session. 
     238 * 
     239 * @return              PJ_SUCCESS on success. 
     240 */ 
     241PJ_DECL(pj_status_t)  
     242pjmedia_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 */ 
     251PJ_DECL(pj_status_t)  
     252pjmedia_session_send_rtcp_bye( const pjmedia_session *session ); 
     253 
     254/** 
    235255 * Enumerate media streams in the session. 
    236256 * 
  • pjproject/trunk/pjmedia/include/pjmedia/stream.h

    r3837 r3841  
    136136                                         is enabled?                        */ 
    137137#endif 
     138    pj_bool_t           rtcp_sdes_bye_disabled;  
     139                                    /**< Disable automatic sending of RTCP 
     140                                         SDES and BYE.                      */ 
    138141} pjmedia_stream_info; 
    139142 
     
    405408 
    406409/** 
     410 * Send RTCP SDES for the media stream. 
     411 * 
     412 * @param stream        The media stream. 
     413 * 
     414 * @return              PJ_SUCCESS on success. 
     415 */ 
     416PJ_DECL(pj_status_t)  
     417pjmedia_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 */ 
     426PJ_DECL(pj_status_t) 
     427pjmedia_stream_send_rtcp_bye( pjmedia_stream *stream ); 
     428 
     429/** 
    407430 * @} 
    408431 */ 
  • pjproject/trunk/pjmedia/include/pjmedia/transport_adapter_sample.h

    r3553 r3841  
    5050 * @param name          Optional name to identify this media transport 
    5151 *                      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. 
    5456 * @param p_tp          Pointer to receive the media transport instance. 
    5557 * 
     
    5860PJ_DECL(pj_status_t) pjmedia_tp_adapter_create( pjmedia_endpt *endpt, 
    5961                                                const char *name, 
    60                                                 pjmedia_transport *transport, 
     62                                                pjmedia_transport *base_tp, 
     63                                                pj_bool_t del_base, 
    6164                                                pjmedia_transport **p_tp); 
    6265 
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/audiodev.c

    r3664 r3841  
    491491    --aud_subsys.init_count; 
    492492 
    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    } 
    498500    return PJ_SUCCESS; 
    499501} 
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/coreaudio_dev.c

    r3553 r3841  
    11121112    struct stream_list *it, *itBegin; 
    11131113    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     
    11151125    PJ_LOG(3, (THIS_FILE, "Session interrupted! --- %s ---", 
    11161126           inInterruption == kAudioSessionBeginInterruption ? 
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/symb_aps_dev.cpp

    r3553 r3841  
    10871087                } else { 
    10881088                    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); 
    10901090 
    10911091                    buf.iBuffer.Append(amr_header); 
     
    10961096            } else { /* PJMEDIA_FRAME_TYPE_NONE */ 
    10971097                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); 
    10991099 
    11001100                buf.iBuffer.Append(amr_header); 
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/symb_mda_dev.cpp

    r3553 r3841  
    240240    TInt                     lastError_; 
    241241    pj_uint32_t              timeStamp_; 
     242    CActiveSchedulerWait     startAsw_; 
    242243 
    243244    // cache variable 
     
    364365    iInputStream_->Open(&iStreamSettings); 
    365366     
     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     
    366374    // Success 
    367375    PJ_LOG(4,(THIS_FILE, "Sound capture started.")); 
     
    387395    } 
    388396     
     397    if (startAsw_.IsStarted()) { 
     398        startAsw_.AsyncStop(); 
     399    } 
     400     
    389401    state_ = STATE_INACTIVE; 
    390402} 
     
    400412void CPjAudioInputEngine::MaiscOpenComplete(TInt aError) 
    401413{ 
     414    if (startAsw_.IsStarted()) { 
     415        startAsw_.AsyncStop(); 
     416    } 
     417     
    402418    lastError_ = aError; 
    403419    if (aError != KErrNone) { 
    404420        snd_perror("Error in MaiscOpenComplete()", aError); 
    405421        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); 
    406431    } 
    407432 
     
    415440    if (err2) { 
    416441        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; 
    418448} 
    419449 
     
    548578    TInt                     lastError_; 
    549579    unsigned                 timestamp_; 
     580    CActiveSchedulerWait     startAsw_; 
    550581 
    551582    CPjAudioOutputEngine(struct mda_stream *parent_strm, 
     
    639670    lastError_ = KRequestPending; 
    640671    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 
    641679 
    642680    // Success 
     
    663701    } 
    664702     
     703    if (startAsw_.IsStarted()) { 
     704        startAsw_.AsyncStop(); 
     705    } 
     706     
    665707    state_ = STATE_INACTIVE; 
    666708} 
     
    668710void CPjAudioOutputEngine::MaoscOpenComplete(TInt aError) 
    669711{ 
     712    if (startAsw_.IsStarted()) { 
     713        startAsw_.AsyncStop(); 
     714    } 
     715 
    670716    lastError_ = aError; 
    671717     
    672718    if (aError==KErrNone) { 
    673         // output stream opened succesfully, set status to Active 
    674         state_ = STATE_ACTIVE; 
    675  
    676719        // set stream properties, 16bit 8KHz mono 
    677720        TMdaAudioDataSettings iSettings; 
     
    684727                                            iSettings.iChannels); 
    685728 
    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        } 
    688740         
    689741        // set stream priority to normal and time sensitive 
     
    719771        frame_.Set(frameBuf_, frameBufSize_); 
    720772        iOutputStream_->WriteL(frame_); 
     773 
     774        // output stream opened succesfully, set status to Active 
     775        state_ = STATE_ACTIVE; 
    721776    } else { 
    722777        snd_perror("Error in MaoscOpenComplete()", aError); 
     
    882937    param->samples_per_frame = af->dev_info.default_samples_per_sec * 20 / 1000; 
    883938    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; 
    885941 
    886942    return PJ_SUCCESS; 
     
    9561012 
    9571013    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    } 
    9581028     
    9591029    return PJ_SUCCESS; 
     
    10351105        break; 
    10361106    case PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING: 
    1037         if (strm->param.dir & PJMEDIA_DIR_CAPTURE) { 
     1107        if (strm->param.dir & PJMEDIA_DIR_PLAYBACK) { 
    10381108            PJ_ASSERT_RETURN(strm->out_engine, PJ_EINVAL); 
    10391109             
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/symb_vas_dev.cpp

    r3553 r3841  
    11311131                } else { 
    11321132                    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); 
    11341134 
    11351135                    buffer.Append(amr_header); 
     
    11401140            } else { /* PJMEDIA_FRAME_TYPE_NONE */ 
    11411141                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); 
    11431143 
    11441144                buffer.Append(amr_header); 
     
    17471747    } 
    17481748 
    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                        &param->output_vol); 
    1753     } 
    1754  
    17551749    /* Done */ 
    17561750    strm->base.op = &stream_op; 
     
    19461940                 (now.MicroSecondsFrom(start) < VAS_WAIT_START * 1000)); 
    19471941         
    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 
    19491953            return PJ_SUCCESS; 
    1950         else 
     1954        } else { 
    19511955            return PJ_ETIMEDOUT; 
     1956        } 
    19521957    }     
    19531958 
  • pjproject/trunk/pjmedia/src/pjmedia-codec/audio_codecs.c

    r3664 r3841  
    108108#endif  /* PJMEDIA_HAS_L16_CODEC */ 
    109109 
     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 
    110117    return PJ_SUCCESS; 
    111118} 
  • pjproject/trunk/pjmedia/src/pjmedia-codec/ipp_codecs.c

    r3664 r3841  
    4242 
    4343#define THIS_FILE   "ipp_codecs.c" 
     44 
    4445 
    4546/* Prototypes for IPP codecs factory */ 
     
    239240{ 
    240241#   if PJMEDIA_HAS_INTEL_IPP_CODEC_AMR 
    241     /* AMR-NB SID seems to produce noise, so let's just disable its VAD. */ 
    242242    {1, "AMR",      PJMEDIA_RTP_PT_AMR,       &USC_GSMAMR_Fxns,  8000, 1, 160,  
    243                     7400, 12200, 2, 0, 1,  
     243                    7400, 12200, 2, 1, 1,  
    244244                    &predecode_amr, &parse_amr, &pack_amr, 
    245245                    {1, {{{"octet-align", 11}, {"1", 1}}} } 
     
    489489        /* SID */ 
    490490        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; 
    494492        } else { 
    495493            usc_frame->frametype = setting->amr_nb ? 6 : 7; 
     
    535533        info->good_quality = (pj_uint8_t)((info_ & 0x80) == 0); 
    536534        info->mode = (pj_int8_t) ((info_ >> 8) & 0x0F); 
     535        info->STI = (pj_uint8_t)((info_ >> 5) & 1); 
    537536 
    538537        frames[nframes].buf = r + 2; 
     
    14201419            /* Two octets for AMR frame info, 0=LSB: 
    14211420             * bit 0-3  : frame type 
     1421             * bit 5    : STI flag 
    14221422             * bit 6    : last frame flag 
    14231423             * bit 7    : quality flag 
     
    14431443                if (out.frametype == 6 || out.frametype == 7) 
    14441444                    *info |= 0x80; 
     1445                /* STI */ 
     1446                if (out.frametype != 1) 
     1447                    *info |= 0x20; 
    14451448            } else { 
    14461449                /* Untransmited */ 
  • pjproject/trunk/pjmedia/src/pjmedia-codec/passthrough.c

    r3664 r3841  
    268268        info->good_quality = 1; 
    269269        info->mode = setting->enc_mode; 
     270        if (info->frame_type == SID_FT) 
     271            info->STI = (sf->data[4] >> 4) & 1; 
    270272 
    271273        frames[i].buf = sf->data; 
  • pjproject/trunk/pjmedia/src/pjmedia/alaw_ulaw.c

    r1417 r3841  
    129129                mask = 0x55;            /* sign bit = 0 */ 
    130130                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; 
    131137        } 
    132138 
  • pjproject/trunk/pjmedia/src/pjmedia/delaybuf.c

    r3664 r3841  
    101101    PJ_ASSERT_RETURN(pool && samples_per_frame && clock_rate && channel_count && 
    102102                     p_b, PJ_EINVAL); 
    103     PJ_ASSERT_RETURN(options==0, PJ_EINVAL); 
    104  
    105     PJ_UNUSED_ARG(options); 
    106103 
    107104    if (!name) { 
     
    128125        return status; 
    129126 
    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    } 
    135137 
    136138    /* Finally, create mutex */ 
     
    149151PJ_DEF(pj_status_t) pjmedia_delay_buf_destroy(pjmedia_delay_buf *b) 
    150152{ 
    151     pj_status_t status; 
     153    pj_status_t status = PJ_SUCCESS; 
    152154 
    153155    PJ_ASSERT_RETURN(b, PJ_EINVAL); 
     
    155157    pj_lock_acquire(b->lock); 
    156158 
    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    } 
    160164 
    161165    pj_lock_release(b->lock); 
     
    266270    pj_lock_acquire(b->lock); 
    267271 
    268     update(b, OP_PUT); 
     272    if (b->wsola) { 
     273        update(b, OP_PUT); 
    269274     
    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        } 
    274280    } 
    275281 
     
    279285    { 
    280286        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        } 
    288296 
    289297        /* Check if shrinking failed or erased count is less than requested, 
     
    299307            pjmedia_circ_buf_adv_read_ptr(b->circ_buf, erase_cnt); 
    300308 
    301             PJ_LOG(4,(b->obj_name,"Shrinking failed or insufficient, dropping" 
    302                       " %d eldest samples, buf_cnt=%d", erase_cnt,  
    303                       pjmedia_circ_buf_get_len(b->circ_buf))); 
     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))); 
    304312        } 
    305313    } 
     
    314322                                           pj_int16_t frame[]) 
    315323{ 
    316     pj_status_t status; 
     324    pj_status_t status = PJ_SUCCESS; 
    317325 
    318326    PJ_ASSERT_RETURN(b && frame, PJ_EINVAL); 
     
    320328    pj_lock_acquire(b->lock); 
    321329 
    322     update(b, OP_GET); 
     330    if (b->wsola) 
     331        update(b, OP_GET); 
    323332 
    324333    /* Starvation checking */ 
     
    328337                  pjmedia_circ_buf_get_len(b->circ_buf))); 
    329338 
    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) { 
    343356            unsigned buf_len = pjmedia_circ_buf_get_len(b->circ_buf); 
    344357             
    345358            /* 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)); 
    348362 
    349363            pjmedia_circ_buf_read(b->circ_buf, frame, buf_len); 
     
    380394 
    381395    /* Reset WSOLA */ 
    382     pjmedia_wsola_reset(b->wsola, 0); 
     396    if (b->wsola) 
     397        pjmedia_wsola_reset(b->wsola, 0); 
    383398 
    384399    pj_lock_release(b->lock); 
  • pjproject/trunk/pjmedia/src/pjmedia/echo_common.c

    r3664 r3841  
    146146{ 
    147147    unsigned ptime, lat_cnt; 
     148    unsigned delay_buf_opt = 0; 
    148149    pjmedia_echo_state *ec; 
    149150    pj_status_t status; 
     
    213214 
    214215    /* Create delay buffer to compensate drifts */ 
     216    if (options & PJMEDIA_ECHO_USE_SIMPLE_FIFO) 
     217        delay_buf_opt |= PJMEDIA_DELAY_BUF_SIMPLE_FIFO; 
    215218    status = pjmedia_delay_buf_create(ec->pool, ec->obj_name, clock_rate,  
    216219                                      samples_per_frame, channel_count, 
    217220                                      (PJMEDIA_SOUND_BUFFER_COUNT+1) * ptime, 
    218                                       0, &ec->delay_buf); 
     221                                      delay_buf_opt, &ec->delay_buf); 
    219222    if (status != PJ_SUCCESS) { 
    220223        pj_pool_release(pool); 
  • pjproject/trunk/pjmedia/src/pjmedia/jbuf.c

    r3835 r3841  
    3333 
    3434 
    35 /* Minimal difference between JB size and 2*burst-level to perform  
    36  * JB shrinking.  
    37  */ 
    38 #define SAFE_SHRINKING_DIFF     1 
    39  
    40 /* Minimal gap (in ms) between JB shrinking */ 
    41 #define MIN_SHRINK_GAP_MSEC     200 
    42  
    4335/* Invalid sequence number, used as the initial value. */ 
    4436#define INVALID_OFFSET          -9999 
     
    5345 */ 
    5446#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 
    5553 
    5654 
     
    8381 
    8482 
     83typedef void (*discard_algo)(pjmedia_jbuf *jb); 
     84static void jbuf_discard_static(pjmedia_jbuf *jb); 
     85static void jbuf_discard_progressive(pjmedia_jbuf *jb); 
     86 
     87 
    8588struct pjmedia_jbuf 
    8689{ 
     
    99102                                             calculation                    */ 
    100103    int             jb_min_shrink_gap;  /**< How often can we shrink        */ 
     104    discard_algo    jb_discard_algo;    /**< Discard algorithm              */ 
    101105 
    102106    /* Buffer */ 
     
    121125                                             continuously updated based on 
    122126                                             current frame burst level.     */ 
     127    pj_bool_t       jb_prefetching;     /**< flag if jbuf is prefetching.   */ 
    123128    int             jb_status;          /**< status is 'init' until the first  
    124129                                             'put' operation                */ 
    125130    int             jb_init_cycle_cnt;  /**< status is 'init' until the first  
    126131                                             '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)    */ 
    130137 
    131138    /* Statistics */ 
     
    142149#define JB_STATUS_INITIALIZING  0 
    143150#define JB_STATUS_PROCESSING    1 
    144 #define JB_STATUS_PREFETCHING   2 
    145151 
    146152 
     
    452458    enum { MAX_DROPOUT = 3000 }; 
    453459 
    454     assert(frame_size <= framelist->frame_size); 
     460    PJ_ASSERT_RETURN(frame_size <= framelist->frame_size, PJ_EINVAL); 
    455461 
    456462    /* too late or sequence restart */ 
     
    508514        pj_memcpy(framelist->content + pos * framelist->frame_size, 
    509515                  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 
     522static 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} 
    518541 
    519542 
     
    549572    jb->jb_max_prefetch  = max_count*4/5; 
    550573    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; 
    552575    jb->jb_max_burst     = PJ_MAX(MAX_BURST_MSEC / ptime, max_count*3/4); 
    553     jb->jb_last_discard_seq = 0; 
    554576 
    555577    pj_math_stat_init(&jb->jb_delay); 
    556578    pj_math_stat_init(&jb->jb_burst); 
    557579 
     580    pjmedia_jbuf_set_discard(jb, PJMEDIA_JB_DISCARD_PROGRESSIVE); 
    558581    pjmedia_jbuf_reset(jb); 
    559582 
     
    590613{ 
    591614    PJ_ASSERT_RETURN(jb, PJ_EINVAL); 
    592     PJ_ASSERT_RETURN(min_prefetch < max_prefetch && 
     615    PJ_ASSERT_RETURN(min_prefetch <= max_prefetch && 
    593616                     prefetch <= max_prefetch && 
    594617                     max_prefetch <= jb->jb_max_count, 
     
    598621    jb->jb_min_prefetch = min_prefetch; 
    599622    jb->jb_max_prefetch = max_prefetch; 
     623 
     624    return PJ_SUCCESS; 
     625} 
     626 
     627 
     628PJ_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    } 
    600647 
    601648    return PJ_SUCCESS; 
     
    611658    jb->jb_init_cycle_cnt= 0; 
    612659    jb->jb_max_hist_level= 0; 
     660    jb->jb_prefetching   = (jb->jb_prefetch != 0); 
     661    jb->jb_discard_dist  = 0; 
    613662 
    614663    jb_framelist_reset(&jb->jb_framelist); 
     
    622671    PJ_LOG(5, (jb->jb_name.ptr, "" 
    623672               "JB summary:\n" 
    624                "  size=%d prefetch=%d level=%d\n" 
     673               "  size=%d/eff=%d prefetch=%d level=%d\n" 
    625674               "  delay (min/max/avg/dev)=%d/%d/%d/%d ms\n" 
    626675               "  burst (min/max/avg/dev)=%d/%d/%d/%d frames\n" 
    627676               "  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, 
    629680               jb->jb_delay.min, jb->jb_delay.max, jb->jb_delay.mean,  
    630681               pj_math_stat_get_stddev(&jb->jb_delay), 
     
    712763    } 
    713764} 
     765 
     766 
     767static 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 
     819static 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     
    714895 
    715896PJ_INLINE(void) jbuf_update(pjmedia_jbuf *jb, int oper) 
     
    748929    } 
    749930 
    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    } 
    807935} 
    808936 
     
    835963{ 
    836964    pj_size_t min_frame_size; 
    837     int new_size, cur_size, frame_type = PJMEDIA_JB_NORMAL_FRAME; 
     965    int new_size, cur_size; 
    838966    pj_status_t status; 
    839967 
    840968    cur_size = jb_framelist_eff_size(&jb->jb_framelist); 
    841  
    842 #if PROGRESSIVE_DISCARD 
    843     { 
    844         unsigned interval, seq_delta; 
    845         unsigned burst_level, burst_factor; 
    846  
    847         /* Calculating discard interval (aggressiveness) based on 
    848          * (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 sequence 
    877          * discarded. If negative, then this is an out of 
    878          * order frame so just proceed with discard. Else 
    879          * see if the delta is at least the intervals worth away 
    880          * 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      
    899969 
    900970    /* Attempt to store the frame */ 
    901971    min_frame_size = PJ_MIN(frame_size, jb->jb_frame_size); 
    902972    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); 
    904975     
    905976    /* Jitter buffer is full, remove some older frames */ 
     
    908979        unsigned removed; 
    909980 
    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 
    915983         * been handled/normalized by previous call of jb_framelist_put_at(). 
    916984         * So we're confident about 'distance' value here. 
     
    919987                   jb->jb_max_count + 1; 
    920988        pj_assert(distance > 0); 
    921 #else 
    922         distance = PJ_MAX(jb->jb_max_count/4, 1); 
    923 #endif 
     989 
    924990        removed = jb_framelist_remove_head(&jb->jb_framelist, distance); 
    925991        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); 
    927994 
    928995        jb->jb_discard += removed; 
     
    9371004 
    9381005    if (status == PJ_SUCCESS) { 
    939         if (jb->jb_status == JB_STATUS_PREFETCHING) { 
     1006        if (jb->jb_prefetching) { 
    9401007            TRACE__((jb->jb_name.ptr, "PUT prefetch_cnt=%d/%d",  
    9411008                     new_size, jb->jb_prefetch)); 
    9421009            if (new_size >= jb->jb_prefetch) 
    943                 jb->jb_status = JB_STATUS_PROCESSING; 
     1010                jb->jb_prefetching = PJ_FALSE; 
    9441011        } 
    9451012        jb->jb_level += (new_size > cur_size ? new_size-cur_size : 1); 
     
    9841051                                     int *seq) 
    9851052{ 
    986     if (jb->jb_status == JB_STATUS_PREFETCHING) { 
     1053    if (jb->jb_prefetching) { 
    9871054 
    9881055        /* Can't return frame because jitter buffer is filling up 
     
    10311098            /* Jitter buffer is empty */ 
    10321099            if (jb->jb_prefetch) 
    1033                 jb->jb_status = JB_STATUS_PREFETCHING; 
     1100                jb->jb_prefetching = PJ_TRUE; 
    10341101 
    10351102            //pj_bzero(frame, jb->jb_frame_size); 
  • pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c

    r3837 r3841  
    13311331                            or_.clock_rate == lr.clock_rate && 
    13321332                            (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')))  
    13341337                        { 
    13351338                            /* Match! */ 
  • pjproject/trunk/pjmedia/src/pjmedia/session.c

    r3791 r3841  
    274274 
    275275/** 
     276 * Send RTCP SDES for the session. 
     277 */ 
     278PJ_DEF(pj_status_t)  
     279pjmedia_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 */ 
     295PJ_DEF(pj_status_t)  
     296pjmedia_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/** 
    276310 * Enumerate media stream in the session. 
    277311 */ 
  • pjproject/trunk/pjmedia/src/pjmedia/stream.c

    r3837 r3841  
    155155    pj_uint32_t              rtcp_interval; /**< Interval, in timestamp.    */ 
    156156    pj_bool_t                initial_rr;    /**< Initial RTCP RR sent       */ 
     157    pj_bool_t                rtcp_sdes_bye_disabled;/**< Send RTCP SDES/BYE?*/ 
    157158 
    158159    /* RFC 2833 DTMF transmission queue: */ 
     
    18251826        /* Build RR or SR */ 
    18261827        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        } 
    18401846 
    18411847        stream->initial_rr = PJ_TRUE; 
     
    19601966    pjmedia_stream *stream; 
    19611967    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; 
    19631969    pjmedia_audio_format_detail *afd; 
    19641970    pj_pool_t *own_pool = NULL; 
     
    20112017    stream->rtcp_interval = (PJMEDIA_RTCP_INTERVAL-500 + (pj_rand()%1000)) * 
    20122018                            info->fmt.clock_rate / 1000; 
     2019    stream->rtcp_sdes_bye_disabled = info->rtcp_sdes_bye_disabled; 
    20132020 
    20142021    stream->tx_event_pt = info->tx_event_pt ? info->tx_event_pt : -1; 
     
    23232330 
    23242331    /* 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); 
    23302334    } 
    23312335 
     
    23442348                         TRACE_JB_PATH_PREFIX "%s.csv", 
    23452349                         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); 
    23472351        if (status != PJ_SUCCESS) { 
    23482352            stream->trace_jb_fd = TRACE_JB_INVALID_FD; 
     
    23822386PJ_DEF(pj_status_t) pjmedia_stream_destroy( pjmedia_stream *stream ) 
    23832387{ 
    2384     unsigned len; 
    23852388    PJ_ASSERT_RETURN(stream != NULL, PJ_EINVAL); 
    23862389 
     
    24242427 
    24252428    /* 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); 
    24332431    } 
    24342432 
     
    32993297    return status; 
    33003298} 
     3299 
     3300/* 
     3301 * Send RTCP SDES. 
     3302 */ 
     3303PJ_DEF(pj_status_t) 
     3304pjmedia_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 */ 
     3323PJ_DEF(pj_status_t) 
     3324pjmedia_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  
    9595{ 
    9696    pjmedia_transport    base; 
     97    pj_bool_t            del_base; 
    9798 
    9899    pj_pool_t           *pool; 
     
    119120                                               const char *name, 
    120121                                               pjmedia_transport *transport, 
     122                                               pj_bool_t del_base, 
    121123                                               pjmedia_transport **p_tp) 
    122124{ 
     
    139141    /* Save the transport as the slave transport */ 
    140142    adapter->slave_tp = transport; 
     143    adapter->del_base = del_base; 
    141144 
    142145    /* Done */ 
     
    422425 
    423426    /* Close the slave transport */ 
    424     pjmedia_transport_close(adapter->slave_tp); 
     427    if (adapter->del_base) { 
     428        pjmedia_transport_close(adapter->slave_tp); 
     429    } 
    425430 
    426431    /* Self destruct.. */ 
  • pjproject/trunk/pjmedia/src/pjmedia/transport_ice.c

    r3664 r3841  
    7373    pj_sockaddr          rtcp_src_addr; /**< Actual source RTCP address.    */ 
    7474    unsigned             rtp_src_cnt;   /**< How many pkt from this addr.   */ 
     75    unsigned             rtcp_src_cnt;  /**< How many pkt from this addr.   */ 
    7576 
    7677    unsigned             tx_drop_pct;   /**< Percent of tx pkts to drop.    */ 
     
    15171518    if (tp_ice->use_ice || tp_ice->rtp_src_cnt) { 
    15181519        info->src_rtp_name  = tp_ice->rtp_src_addr; 
     1520    } 
     1521    if (tp_ice->use_ice || tp_ice->rtcp_src_cnt) { 
    15191522        info->src_rtcp_name = tp_ice->rtcp_src_addr; 
    15201523    } 
     
    15821585    tp_ice->rtcp_src_addr = tp_ice->remote_rtcp; 
    15831586    tp_ice->rtp_src_cnt = 0; 
     1587    tp_ice->rtcp_src_cnt = 0; 
    15841588 
    15851589    return PJ_SUCCESS; 
     
    16571661{ 
    16581662    struct transport_ice *tp_ice; 
     1663    pj_bool_t discard = PJ_FALSE; 
    16591664 
    16601665    tp_ice = (struct transport_ice*) pj_ice_strans_get_user_data(ice_st); 
     
    16721677        } 
    16731678 
    1674         (*tp_ice->rtp_cb)(tp_ice->stream, pkt, size); 
    1675  
    16761679        /* See if source address of RTP packet is different than the  
    16771680         * configured address, and switch RTP remote address to  
     
    16801683         */ 
    16811684        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; 
    16881696 
    16891697                /* Check if the source address is recognized. */ 
     
    16931701                    /* Reset counter */ 
    16941702                    tp_ice->rtp_src_cnt = 0; 
     1703                    discard = PJ_TRUE; 
    16951704                } 
    16961705 
    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 { 
    17001709                    char addr_text[80]; 
    17011710 
     
    17261735 
    17271736                        PJ_LOG(4,(tp_ice->base.name, 
    1728                                   "Remote RTCP address switched to %s", 
     1737                                  "Remote RTCP address switched to predicted " 
     1738                                  "address %s", 
    17291739                                  pj_sockaddr_print(&tp_ice->remote_rtcp,  
    17301740                                                    addr_text, 
     
    17341744            } 
    17351745        } 
     1746 
     1747        if (!discard) 
     1748            (*tp_ice->rtp_cb)(tp_ice->stream, pkt, size); 
     1749 
    17361750    } else if (comp_id==2 && tp_ice->rtcp_cb) { 
    1737         (*tp_ice->rtcp_cb)(tp_ice->stream, pkt, size); 
    17381751 
    17391752        /* Check if RTCP source address is the same as the configured 
     
    17421755         */ 
    17431756        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) 
    17451758        { 
    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 { 
    17491762                char addr_text[80]; 
    17501763 
    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                } 
    17591780            } 
    17601781        } 
     1782 
     1783        if (!discard) 
     1784            (*tp_ice->rtcp_cb)(tp_ice->stream, pkt, size); 
    17611785    } 
    17621786 
  • pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c

    r3553 r3841  
    8484    pj_sockaddr         rtcp_addr_name; /**< Published RTCP address.        */ 
    8585    pj_sockaddr         rtcp_src_addr;  /**< Actual source RTCP address.    */ 
     86    unsigned            rtcp_src_cnt;   /**< How many pkt from this addr.   */ 
    8687    int                 rtcp_addr_len;  /**< Length of RTCP src address.    */ 
    8788    pj_ioqueue_key_t   *rtcp_key;       /**< RTCP socket key in ioqueue     */ 
     
    453454        void (*cb)(void*,void*,pj_ssize_t); 
    454455        void *user_data; 
     456        pj_bool_t discard = PJ_FALSE; 
    455457 
    456458        cb = udp->rtp_cb; 
     
    463465                          "RX RTP packet dropped because of pkt lost " 
    464466                          "simulation")); 
    465                 goto read_next_packet; 
     467                discard = PJ_TRUE; 
    466468            } 
    467469        } 
    468  
    469  
    470         if (udp->attached && cb) 
    471             (*cb)(user_data, udp->rtp_pkt, bytes_read); 
    472470 
    473471        /* See if source address of RTP packet is different than the  
     
    479477            (udp->options & PJMEDIA_UDP_NO_SRC_ADDR_CHECKING)==0)  
    480478        { 
    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 { 
    483483                udp->rtp_src_cnt++; 
    484484 
    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 { 
    486488                 
    487489                    char addr_text[80]; 
     
    517519 
    518520                        PJ_LOG(4,(udp->base.name, 
    519                                   "Remote RTCP address switched to %s", 
     521                                  "Remote RTCP address switched to predicted" 
     522                                  " address %s", 
    520523                                  pj_sockaddr_print(&udp->rtcp_src_addr,  
    521524                                                    addr_text, 
     
    527530        } 
    528531 
    529 read_next_packet: 
     532        if (!discard && udp->attached && cb) 
     533            (*cb)(user_data, udp->rtp_pkt, bytes_read); 
     534 
    530535        bytes_read = sizeof(udp->rtp_pkt); 
    531536        udp->rtp_addrlen = sizeof(udp->rtp_src_addr); 
     
    569574         */ 
    570575        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) 
    573577        { 
    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            } 
    583597        } 
    584598 
     
    678692    pj_bzero(&udp->rtcp_src_addr, sizeof(udp->rtcp_src_addr)); 
    679693    udp->rtp_src_cnt = 0; 
     694    udp->rtcp_src_cnt = 0; 
    680695 
    681696    /* Unlock keys */ 
  • pjproject/trunk/pjmedia/src/test/jbuf_test.c

    r3553 r3841  
    4444    int lost; 
    4545    int empty; 
    46     int delay;      /**< Maximum delay, in frames.          */ 
     46    int delay;      /**< Average delay, in frames.          */ 
     47    int delay_min;  /**< Minimum delay, in frames.          */ 
    4748} test_cond_t; 
    4849 
     
    7071        else if (pj_ansi_stricmp(cond_st, "delay") == 0) 
    7172            cond->delay = cond_val; 
     73        else if (pj_ansi_stricmp(cond_st, "delay_min") == 0) 
     74            cond->delay_min = cond_val; 
    7275        else if (pj_ansi_stricmp(cond_st, "discard") == 0) 
    7376            cond->discard = cond_val; 
     
    218221        cond.burst = -1; 
    219222        cond.delay = -1; 
     223        cond.delay_min = -1; 
    220224        cond.discard = -1; 
    221225        cond.empty = -1; 
     
    314318            rc |= 2; 
    315319        } 
     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        } 
    316325        if (cond.discard >= 0 && (int)state.discard > cond.discard) { 
    317326            printf("! 'Discard' should be %d, it is %d\n", 
  • pjproject/trunk/pjmedia/src/test/mips_test.c

    r3678 r3841  
    917917#endif  /* PJMEDIA_HAS_G7221_CODEC */ 
    918918 
     919#if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 
     920/* AMR-NB benchmark benchmark */ 
     921static 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 
    919936#if defined(PJMEDIA_HAS_L16_CODEC) && PJMEDIA_HAS_L16_CODEC!=0 
    920937static pj_status_t init_l16_default(pjmedia_endpt *endpt) 
     
    19761993} 
    19771994#endif  /* PJMEDIA_HAS_G7221_CODEC */  
     1995 
     1996/* AMR-NB stream */ 
     1997#if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 
     1998static 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 */  
    19782012 
    19792013/***************************************************************************/ 
     
    23672401        { "codec encode/decode - G.722.1c", OP_PUT, K32, &g7221c_encode_decode}, 
    23682402#endif 
     2403#if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 
     2404        { "codec encode/decode - AMR-NB", OP_PUT, K8, &amr_encode_decode}, 
     2405#endif 
    23692406#if PJMEDIA_HAS_L16_CODEC 
    23702407        { "codec encode/decode - L16/8000/1", OP_PUT, K8, &l16_8_encode_decode}, 
     
    23922429        { "stream TX/RX - G.722.1c", OP_PUT_GET, K32, &create_stream_g7221c}, 
    23932430#endif 
     2431#if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 
     2432        { "stream TX/RX - AMR-NB", OP_PUT_GET, K8, &create_stream_amr}, 
     2433#endif 
    23942434    }; 
    23952435 
  • pjproject/trunk/pjmedia/src/test/test.c

    r3667 r3841  
    4343    PJ_LOG(3,(THIS_FILE, "%s: %s", msg, errbuf)); 
    4444} 
     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 
     50int dummy() 
     51{ 
     52    // Dummy 
     53    return (int) &pjmedia_plc_save; 
     54} 
     55#endif 
    4556 
    4657int test_main(void) 
  • pjproject/trunk/pjnath/src/pjnath/ice_strans.c

    r3775 r3841  
    12021202            }; 
    12031203 
     1204            /* https://trac.pjsip.org/repos/ticket/1316 */ 
     1205            if (comp->turn_sock == NULL) { 
     1206                /* TURN socket error */ 
     1207                return PJ_EINVALIDOP; 
     1208            } 
     1209 
    12041210            if (!comp->turn_log_off) { 
    12051211                /* Disable logging for Send/Data indications */ 
  • pjproject/trunk/pjnath/src/pjnath/stun_sock.c

    r3553 r3841  
    121121        "DNS resolution", 
    122122        "STUN Binding request", 
    123         "Keep-alive" 
     123        "Keep-alive", 
     124        "Mapped addr. changed" 
    124125    }; 
    125126 
    126     return op <= PJ_STUN_SOCK_KEEP_ALIVE_OP ? names[op] : "?"; 
     127    return op < PJ_ARRAY_SIZE(names) ? names[op] : "???"; 
    127128}; 
    128129 
  • pjproject/trunk/pjnath/src/pjnath/turn_sock.c

    r3553 r3841  
    620620    if (turn_sock == NULL) { 
    621621        /* 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"); 
    623624        return PJ_EINVALIDOP; 
    624625    } 
  • pjproject/trunk/pjsip-apps/src/ipjsua/ipjsua.xcodeproj/project.pbxproj

    r3664 r3841  
    378378                                GCC_PRECOMPILE_PREFIX_HEADER = YES; 
    379379                                GCC_PREFIX_HEADER = ipjsua_Prefix.pch; 
     380                                GCC_PREPROCESSOR_DEFINITIONS = ( 
     381                                        "PJ_AUTOCONF=1", 
     382                                        USE_GUI, 
     383                                ); 
    380384                                INFOPLIST_FILE = "ipjsua-Info.plist"; 
    381385                                IPHONEOS_DEPLOYMENT_TARGET = 3.2; 
     
    407411                                GCC_PRECOMPILE_PREFIX_HEADER = YES; 
    408412                                GCC_PREFIX_HEADER = ipjsua_Prefix.pch; 
     413                                GCC_PREPROCESSOR_DEFINITIONS = ( 
     414                                        "PJ_AUTOCONF=1", 
     415                                        USE_GUI, 
     416                                ); 
    409417                                INFOPLIST_FILE = "ipjsua-Info.plist"; 
    410418                                IPHONEOS_DEPLOYMENT_TARGET = 3.2; 
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r3825 r3841  
    148148#ifdef STEREO_DEMO 
    149149static void stereo_demo(); 
    150 #endif 
    151 #ifdef TRANSPORT_ADAPTER_SAMPLE 
    152 static pj_status_t transport_adapter_sample(void); 
    153150#endif 
    154151static pj_status_t create_ipv6_media_transports(void); 
     
    912909 
    913910        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; 
    916913            break; 
    917914 
     
    32213218#endif 
    32223219} 
     3220 
     3221#ifdef TRANSPORT_ADAPTER_SAMPLE 
     3222/* 
     3223 * This callback is called when media transport needs to be created. 
     3224 */ 
     3225static 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 
    32233249 
    32243250/* 
     
    52115237    app_config.cfg.cb.on_snd_dev_operation = &on_snd_dev_operation; 
    52125238    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 
    52135242    app_config.log_cfg.cb = log_cb; 
    52145243 
     
    54905519    for (i=0; i<app_config.acc_cnt; ++i) { 
    54915520        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 
    54925524        status = pjsua_acc_add(&app_config.acc_cfg[i], PJ_TRUE, NULL); 
    54935525        if (status != PJ_SUCCESS) 
     
    55225554 
    55235555    /* Add RTP transports */ 
    5524 #ifdef TRANSPORT_ADAPTER_SAMPLE 
    5525     status = transport_adapter_sample(); 
    5526  
    5527 #else 
    55285556    if (app_config.ipv6) 
    55295557        status = create_ipv6_media_transports(); 
     
    55325560        status = pjsua_media_transports_create(&app_config.rtp_cfg); 
    55335561  #endif 
    5534 #endif 
    55355562    if (status != PJ_SUCCESS) 
    55365563        goto on_error; 
     
    57535780#endif 
    57545781 
    5755 #ifdef TRANSPORT_ADAPTER_SAMPLE 
    5756 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 #endif 
    5795  
    57965782static pj_status_t create_ipv6_media_transports(void) 
    57975783{ 
  • pjproject/trunk/pjsip-apps/src/samples/icedemo.c

    r3553 r3841  
    10291029         "   - parse remote SDP, by pasting SDP generated by the other icedemo\n" 
    10301030         "     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" 
    10331033         "   - ICE negotiation will run, and result will be printed to screen\n" 
    10341034         "   - send application data to remote [menu \"x\"]\n" 
  • pjproject/trunk/pjsip-apps/src/samples/pcaputil.c

    r3664 r3841  
    2626"pcaputil [options] INPUT OUTPUT\n" 
    2727"\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" 
    3237"\n" 
    3338"Options to filter packets from PCAP file:\n" 
     
    3843"  --dst-port=port        Only include packets destined to this port number\n" 
    3944"\n" 
    40 "Options for saving to WAV file:\n" 
     45"Options for RTP packet processing:\n" 
    4146"" 
    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" 
    4650"  --srtp-crypto=TAG, -c  Set crypto to be used to decrypt SRTP packets. Valid\n" 
    4751"                         tags are: \n" 
     
    5054"  --srtp-key=KEY, -k     Set the base64 key to decrypt SRTP packets.\n" 
    5155"\n" 
     56"Options for playing to audio device:\n" 
     57"" 
     58"  --play-dev-id=dev_id   Audio device ID for playback.\n" 
     59"\n" 
    5260"  Example:\n" 
    5361"    pcaputil file.pcap output.wav\n" 
    5462"    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" 
    5966; 
    6067 
     
    6774    pjmedia_port        *wav; 
    6875    pjmedia_codec       *codec; 
     76    pjmedia_aud_stream  *aud_strm; 
    6977    unsigned             pt; 
    7078    pjmedia_transport   *srtp; 
     
    7381} app; 
    7482 
    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 
     84static void cleanup() 
     85{ 
    8586    if (app.srtp) pjmedia_transport_close(app.srtp); 
    8687    if (app.wav) { 
     
    103104        pjmedia_codec_mgr_dealloc_codec(cmgr, app.codec); 
    104105    } 
     106    if (app.aud_strm) { 
     107        pjmedia_aud_stream_stop(app.aud_strm); 
     108        pjmedia_aud_stream_destroy(app.aud_strm); 
     109    } 
    105110    if (app.mept) pjmedia_endpt_destroy(app.mept); 
    106111    if (app.pool) pj_pool_release(app.pool); 
    107112    pj_caching_pool_destroy(&app.cp); 
    108113    pj_shutdown(); 
    109  
     114} 
     115 
     116static 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(); 
    110126    exit(1); 
    111127} 
     
    213229} 
    214230 
    215 static void pcap2wav(const char *wav_filename, const pj_str_t *srtp_crypto, 
     231pjmedia_frame play_frm; 
     232static pj_bool_t play_frm_copied, play_frm_ready; 
     233 
     234static 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 
     247static 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 
     263static 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, 
    216267                     const pj_str_t *srtp_key) 
    217268{ 
     269    const pj_str_t WAV = {".wav", 4}; 
    218270    struct pkt 
    219271    { 
     
    256308    /* Get codec info and param for the specified payload type */ 
    257309    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    } 
    259322    T( pjmedia_codec_mgr_get_default_param(cmgr, ci, &param) ); 
    260323 
     
    264327    T( pjmedia_codec_open(app.codec, &param) ); 
    265328 
    266     /* Open WAV file */ 
     329    /* Init audio device or WAV file */ 
    267330    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    } 
    273353 
    274354    /* Loop reading PCAP and writing WAV file */ 
     
    299379            T( pjmedia_codec_decode(app.codec, &frames[i], pcm_frame.size,  
    300380                                     &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            } 
    302387            samples_cnt += samples_per_frame; 
    303388        } 
     
    322407            } 
    323408 
    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            } 
    325415            ts_gap -= samples_per_frame; 
    326416        } 
     
    336426int main(int argc, char *argv[]) 
    337427{ 
    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; 
    339430    pj_pcap_filter filter; 
    340431    pj_status_t status; 
    341432 
    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    }; 
    343437    struct pj_getopt_option long_options[] = { 
    344438        { "srtp-crypto",    1, 0, 'c' }, 
     
    348442        { "src-port",       1, 0, OPT_SRC_PORT }, 
    349443        { "dst-port",       1, 0, OPT_DST_PORT }, 
     444        { "codec",          1, 0, OPT_CODEC }, 
     445        { "play-dev-id",    1, 0, OPT_PLAY_DEV_ID }, 
    350446        { NULL, 0, 0, 0} 
    351447    }; 
     
    355451 
    356452    srtp_crypto.slen = srtp_key.slen = 0; 
     453    codec.slen = 0; 
    357454 
    358455    pj_pcap_filter_default(&filter); 
     
    399496            filter.dst_port = pj_htons((pj_uint16_t)atoi(pj_optarg)); 
    400497            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; 
    401504        default: 
    402505            puts("Error: invalid option"); 
     
    418521    input = pj_str(argv[pj_optind]); 
    419522    output = pj_str(argv[pj_optind+1]); 
    420     wav = pj_str(".wav"); 
    421523     
    422524    T( pj_init() ); 
     
    431533    T( pj_pcap_set_filter(app.pcap, &filter) ); 
    432534 
    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(); 
    443538    return 0; 
    444539} 
  • pjproject/trunk/pjsip/include/pjsip-ua/sip_inv.h

    r3777 r3841  
    368368    pj_str_t             cause_text;                /**< Cause text.        */ 
    369369    pj_bool_t            notify;                    /**< Internal.          */ 
     370    unsigned             cb_called;                 /**< Cb has been called */ 
    370371    pjsip_dialog        *dlg;                       /**< Underlying dialog. */ 
    371372    pjsip_role_e         role;                      /**< Invite role.       */ 
  • pjproject/trunk/pjsip/include/pjsip/sip_config.h

    r3553 r3841  
    669669#endif 
    670670 
     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 
    671681#define PJSIP_MAX_TSX_KEY_LEN           (PJSIP_MAX_URL_SIZE*2) 
    672682 
  • pjproject/trunk/pjsip/include/pjsip/sip_endpoint.h

    r3553 r3841  
    5757 *  - and so on.. 
    5858 * 
    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. 
    6161 * 
    6262 * @{ 
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r3796 r3841  
    540540 
    541541/** 
     542 * This enumeration specifies the options for custom media transport creation. 
     543 */ 
     544typedef 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/** 
    542558 * This structure describes application callback to receive various event 
    543559 * notification from PJSUA-API. All of these callbacks are OPTIONAL, 
     
    706722 
    707723 
     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     
    708736    /** 
    709737     * Notify application when registration status has changed. 
     
    10751103                                pjmedia_event *event); 
    10761104 
     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 
    10771131} pjsua_callback; 
    10781132 
     
    11081162 
    11091163} pjsua_sip_timer_use; 
     1164 
     1165 
     1166/** 
     1167 * This constants controls the use of 100rel extension. 
     1168 */ 
     1169typedef 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; 
    11101192 
    11111193 
     
    12461328 
    12471329    /** 
    1248      * Specify whether support for reliable provisional response (100rel and 
    1249      * PRACK) should be required by default. Note that this setting can be 
     1330     * Specify how the support for reliable provisional response (100rel/ 
     1331     * PRACK) should be used by default. Note that this setting can be 
    12501332     * further customized in account configuration (#pjsua_acc_config). 
    12511333     * 
    1252      * Default: PJ_FALSE 
    1253      */ 
    1254     pj_bool_t      require_100rel; 
     1334     * Default: PJSUA_100REL_NOT_USED 
     1335     */ 
     1336    pjsua_100rel_use require_100rel; 
    12551337 
    12561338    /** 
     
    13671449 
    13681450/** 
     1451 * Flags to be given to pjsua_destroy2() 
     1452 */ 
     1453typedef 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/** 
    13691480 * Use this function to initialize pjsua config. 
    13701481 * 
     
    15141625 * keep track of it's state. 
    15151626 * 
     1627 * @see pjsua_destroy2() 
     1628 * 
    15161629 * @return              PJ_SUCCESS on success, or the appropriate error code. 
    15171630 */ 
     
    15251638 */ 
    15261639PJ_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 */ 
     1649PJ_DECL(pj_status_t) pjsua_destroy2(unsigned flags); 
    15271650 
    15281651 
     
    23962519 
    23972520    /** 
    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; 
    24042529 
    24052530    /** 
     
    26772802     * Specify interval of auto registration retry upon registration failure 
    26782803     * (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. 
    26802811     * 
    26812812     * Default: #PJSUA_REG_RETRY_INTERVAL 
    26822813     */ 
    26832814    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; 
    26842824 
    26852825    /** 
     
    27222862     */ 
    27232863    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; 
    27242874 
    27252875} pjsua_acc_config; 
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua_internal.h

    r3780 r3841  
    4444    unsigned             idx;       /**< This media index in parent call.   */ 
    4545    pjsua_call_media_status state;  /**< Media state.                       */ 
     46    pjsua_call_media_status prev_state;/**< Previous media state.           */ 
    4647    pjmedia_dir          dir;       /**< Media direction.                   */ 
    4748 
     
    7980    pj_bool_t            tp_auto_del; /**< May delete media transport       */ 
    8081    pjsua_med_tp_st      tp_st;     /**< Media transport state              */ 
     82    pj_bool_t            use_custom_med_tp;/**< Use custom media transport? */ 
    8183    pj_sockaddr          rtp_addr;  /**< Current RTP source address 
    8284                                            (used to update ICE default 
     
    131133    pjsua_call_hold_type call_hold_type; /**< How to do call hold.          */ 
    132134    pj_bool_t            local_hold;/**< Flag for call-hold by local.       */ 
     135    void                *hold_msg;  /**< Outgoing hold tx_data.             */ 
    133136 
    134137    unsigned             med_cnt;   /**< Number of media in SDP.            */ 
     
    581584 * Shutdown presence. 
    582585 */ 
    583 void pjsua_pres_shutdown(void); 
     586void pjsua_pres_shutdown(unsigned flags); 
    584587 
    585588/** 
     
    596599 *  Send un-PUBLISH 
    597600 */ 
    598 void pjsua_pres_unpublish(pjsua_acc *acc); 
     601void pjsua_pres_unpublish(pjsua_acc *acc, unsigned flags); 
    599602 
    600603/** 
    601604 * Terminate server subscription for the account  
    602605 */ 
    603 void pjsua_pres_delete_acc(int acc_id); 
     606void pjsua_pres_delete_acc(int acc_id, unsigned flags); 
    604607 
    605608/** 
     
    636639 * Destroy pjsua media subsystem. 
    637640 */ 
    638 pj_status_t pjsua_media_subsys_destroy(void); 
     641pj_status_t pjsua_media_subsys_destroy(unsigned flags); 
    639642 
    640643/** 
  • pjproject/trunk/pjsip/src/pjsip-simple/evsub_msg.c

    r3553 r3841  
    296296PJ_DEF(void) pjsip_evsub_init_parser(void) 
    297297{ 
    298     pjsip_register_hdr_parser( "Event", NULL,  
     298    pjsip_register_hdr_parser( "Event", "o", 
    299299                               &parse_hdr_event); 
    300300 
  • pjproject/trunk/pjsip/src/pjsip-simple/pidf.c

    r3553 r3841  
    325325{ 
    326326    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; 
    328329    return pj_stricmp(&node->content, &OPEN)==0; 
    329330} 
     
    332333{ 
    333334    pj_xml_node *node = pj_xml_find_node(st, &BASIC); 
    334     pj_assert(node != NULL); 
    335     node->content = open ? OPEN : CLOSED; 
     335    if (node) 
     336        node->content = open ? OPEN : CLOSED; 
    336337} 
    337338 
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_100rel.c

    r3664 r3841  
    106106typedef struct uac_state_t 
    107107{ 
    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        */ 
    110112} uac_state_t; 
    111113 
     
    116118        pjsip_inv_session       *inv; 
    117119        uas_state_t             *uas_state; 
    118         uac_state_t             *uac_state; 
     120        uac_state_t             *uac_state_list; 
    119121}; 
    120122 
     
    232234{ 
    233235    dlg_data *dd; 
     236    uac_state_t *uac_state = NULL; 
     237    const pj_str_t *to_tag = &rdata->msg_info.to->tag; 
    234238    pjsip_transaction *tsx; 
    235239    pjsip_msg *msg; 
     
    262266    if (rseq_hdr == NULL) { 
    263267        PJ_LOG(4,(dd->inv->dlg->obj_name,  
    264                  "Ignoring provisional response with no RSeq header")); 
     268                 "Ignoring 100rel response with no RSeq header")); 
    265269        return PJSIP_EMISSINGHDR; 
    266270    } 
    267271    rseq = (pj_uint32_t) pj_strtoul(&rseq_hdr->hvalue); 
    268272 
     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 
    269281    /* 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; 
    281295    } 
    282296 
    283297    /* Ignore provisional response retransmission */ 
    284     if (rseq <= dd->uac_state->rseq) { 
     298    if (rseq <= uac_state->rseq) { 
    285299        /* This should have been handled before */ 
    286300        return PJ_EIGNORED; 
    287301 
    288302    /* 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) { 
    290304        PJ_LOG(4,(dd->inv->dlg->obj_name,  
    291                  "Ignoring provisional response because RSeq jump " 
     305                 "Ignoring 100rel response because RSeq jump " 
    292306                 "(expecting %u, got %u)", 
    293                  dd->uac_state->rseq+1, rseq)); 
     307                 uac_state->rseq+1, rseq)); 
    294308        return PJ_EIGNORED; 
    295309    } 
    296310 
    297311    /* Update our RSeq */ 
    298     dd->uac_state->rseq = rseq; 
     312    uac_state->rseq = rseq; 
    299313 
    300314    /* Create PRACK */ 
     
    303317    if (status != PJ_SUCCESS) 
    304318        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    } 
    305339 
    306340    /* Create RAck header */ 
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c

    r3777 r3841  
    196196{ 
    197197    pjsip_inv_state prev_state = inv->state; 
     198    pj_bool_t dont_notify = PJ_FALSE; 
    198199    pj_status_t status; 
    199200 
     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    } 
    200210 
    201211    /* If state is confirmed, check that SDP negotiation is done, 
     
    225235              inv->cause != 0); 
    226236 
     237    /* Mark the callback as called for this state */ 
     238    inv->cb_called |= (1 << state); 
     239 
    227240    /* 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) 
    229242        (*mod_inv.cb.on_state_changed)(inv, e); 
    230243 
     
    41174130                const pjsip_hdr *accept; 
    41184131 
     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 
    41194142                status = pjsip_dlg_create_response(inv->dlg, rdata,  
    41204143                                                   488, NULL, &tdata); 
  • pjproject/trunk/pjsip/src/pjsip/sip_multipart.c

    r3553 r3841  
    8282        hdr = part->hdr.next; 
    8383        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); 
    8586            if (printed < 0) 
    8687                return -1; 
    8788            p += printed; 
     89            *p++ = '\r'; 
     90            *p++ = '\n'; 
    8891            hdr = hdr->next; 
    8992        } 
  • pjproject/trunk/pjsip/src/pjsip/sip_transaction.c

    r3753 r3841  
    146146#define TIMER_INACTIVE  0 
    147147#define TIMER_ACTIVE    1 
    148  
    149 /* Delay for 1xx retransmission (should be 60 seconds). 
    150  * Specify 0 to disable this feature 
    151  */ 
    152 #ifndef PJSIP_TSX_1XX_RETRANS_DELAY 
    153 #   define PJSIP_TSX_1XX_RETRANS_DELAY    60 
    154 #endif 
    155148 
    156149 
     
    21192112static void tsx_resched_retransmission( pjsip_transaction *tsx ) 
    21202113{ 
    2121     pj_time_val timeout; 
    21222114    pj_uint32_t msec_time; 
    21232115 
     
    21522144    } 
    21532145 
    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    } 
    21592155} 
    21602156 
     
    29882984        } 
    29892985        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 ); 
    29902992        tsx->timeout_timer.id = TIMER_ACTIVE; 
    29912993        pjsip_endpt_schedule_timer( tsx->endpt, &tsx->timeout_timer, &timeout); 
  • pjproject/trunk/pjsip/src/pjsip/sip_util.c

    r3553 r3841  
    814814        pjsip_uri *uri = (pjsip_uri*) target_uri; 
    815815        const pjsip_sip_uri *url=(const pjsip_sip_uri*)pjsip_uri_get_uri(uri); 
     816        unsigned flag; 
     817 
    816818        dest_info->flag |= (PJSIP_TRANSPORT_SECURE | PJSIP_TRANSPORT_RELIABLE); 
    817819        if (url->maddr_param.slen) 
     
    822824        dest_info->type =  
    823825            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        } 
    824838 
    825839    } else if (PJSIP_URI_SCHEME_IS_SIP(target_uri)) { 
     
    13901404 
    13911405        pj_assert(addr->count != 0); 
     1406 
     1407        /* Avoid tdata destroyed by pjsip_tpmgr_send_raw(). */ 
     1408        pjsip_tx_data_add_ref(sraw_data->tdata); 
    13921409 
    13931410        data_len = sraw_data->tdata->buf.cur - sraw_data->tdata->buf.start; 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c

    r3753 r3841  
    471471 
    472472    /* 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 { 
    476477        /* Otherwise subscribe to MWI, if it's enabled */ 
    477478        if (pjsua_var.acc[id].cfg.mwi_enabled) 
     
    604605 
    605606    /* Delete server presence subscription */ 
    606     pjsua_pres_delete_acc(acc_id); 
     607    pjsua_pres_delete_acc(acc_id, 0); 
    607608 
    608609    /* Release account pool */ 
     
    834835        acc->cfg.publish_enabled = cfg->publish_enabled; 
    835836        if (!acc->cfg.publish_enabled) 
    836             pjsua_pres_unpublish(acc); 
     837            pjsua_pres_unpublish(acc, 0); 
    837838        else 
    838839            update_reg = PJ_TRUE; 
     
    993994    acc->cfg.allow_contact_rewrite = cfg->allow_contact_rewrite; 
    994995    acc->cfg.reg_retry_interval = cfg->reg_retry_interval; 
     996    acc->cfg.reg_first_retry_interval = cfg->reg_first_retry_interval; 
    995997    acc->cfg.drop_calls_on_reg_fail = cfg->drop_calls_on_reg_fail; 
    996998    if (acc->cfg.reg_delay_before_refresh != cfg->reg_delay_before_refresh) { 
     
    13941396                               (int)acc->cfg.contact_uri_params.slen, 
    13951397                               acc->cfg.contact_uri_params.ptr, 
    1396                                ob, 
     1398                               (acc->cfg.use_rfc5626? ob: ""), 
    13971399                               (int)acc->cfg.contact_params.slen, 
    13981400                               acc->cfg.contact_params.ptr); 
     
    16921694    pjsua_acc *acc = (pjsua_acc*) param->token; 
    16931695 
    1694     if (param->regc != acc->regc) 
     1696    PJSUA_LOCK(); 
     1697 
     1698    if (param->regc != acc->regc) { 
     1699        PJSUA_UNLOCK(); 
    16951700        return; 
     1701    } 
    16961702 
    16971703    pj_log_push_indent(); 
    1698     PJSUA_LOCK(); 
    16991704 
    17001705    /* 
     
    20552060        } 
    20562061 
    2057         pjsua_pres_unpublish(&pjsua_var.acc[acc_id]); 
     2062        pjsua_pres_unpublish(&pjsua_var.acc[acc_id], 0); 
    20582063 
    20592064        status = pjsip_regc_unregister(pjsua_var.acc[acc_id].regc, &tdata); 
     
    20712076        pjsip_regc_get_info(pjsua_var.acc[acc_id].regc, &reg_info); 
    20722077        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        } 
    20732082    } 
    20742083 
     
    25302539    contact->ptr = (char*)pj_pool_alloc(pool, PJSIP_MAX_URL_SIZE); 
    25312540    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?"\"" : ""), 
    25332543                                     (int)acc->display.slen, 
    25342544                                     acc->display.ptr, 
    2535                                      (acc->display.slen?" " : ""), 
     2545                                     (acc->display.slen?"\" " : ""), 
    25362546                                     (secure ? PJSUA_SECURE_SCHEME : "sip"), 
    25372547                                     (int)acc->user_part.slen, 
     
    25462556                                     (int)acc->cfg.contact_uri_params.slen, 
    25472557                                     acc->cfg.contact_uri_params.ptr, 
    2548                                      ob, 
     2558                                     (acc->cfg.use_rfc5626? ob: ""), 
    25492559                                     (int)acc->cfg.contact_params.slen, 
    25502560                                     acc->cfg.contact_params.ptr); 
     
    26882698    contact->ptr = (char*) pj_pool_alloc(pool, PJSIP_MAX_URL_SIZE); 
    26892699    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?"\"" : ""), 
    26912702                                     (int)acc->display.slen, 
    26922703                                     acc->display.ptr, 
    2693                                      (acc->display.slen?" " : ""), 
     2704                                     (acc->display.slen?"\" " : ""), 
    26942705                                     (secure ? PJSUA_SECURE_SCHEME : "sip"), 
    26952706                                     (int)acc->user_part.slen, 
     
    28082819 
    28092820    /* 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; 
    28112823    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 
    28122838    pjsua_schedule_timer(&acc->auto_rereg.timer, &delay); 
    28132839} 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r3796 r3841  
    972972    options |= PJSIP_INV_SUPPORT_100REL; 
    973973    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) 
    975975        options |= PJSIP_INV_REQUIRE_100REL; 
    976976    if (pjsua_var.media_cfg.enable_ice) 
     
    10461046    { 
    10471047        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; 
    10481061    } 
    10491062 
     
    12891302 
    12901303    pj_gettimeofday(&time_start); 
     1304    timeout.sec = 0; 
    12911305    timeout.msec = PJSUA_ACQUIRE_CALL_TIMEOUT; 
    12921306    pj_time_val_normalize(&timeout); 
     
    13571371{ 
    13581372    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; 
    13621374 
    13631375    PJ_ASSERT_RETURN(call_id>=0 && call_id<(int)pjsua_var.ua_cfg.max_calls,  
    13641376                     PJ_EINVAL); 
    13651377 
    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]; 
    13701387    port_id = call->media[call->audio_idx].strm.a.conf_slot; 
    13711388 
    1372     pjsip_dlg_dec_lock(dlg); 
     1389on_return: 
     1390    PJSUA_UNLOCK(); 
    13731391 
    13741392    return port_id; 
     
    13841402{ 
    13851403    pjsua_call *call; 
    1386     pjsip_dialog *dlg; 
    13871404    unsigned mi; 
    1388     pj_status_t status; 
    13891405 
    13901406    PJ_ASSERT_RETURN(call_id>=0 && call_id<(int)pjsua_var.ua_cfg.max_calls, 
     
    13931409    pj_bzero(info, sizeof(*info)); 
    13941410 
    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; 
    13981421    } 
    13991422 
     
    15211544    } 
    15221545 
    1523     pjsip_dlg_dec_lock(dlg); 
     1546    PJSUA_UNLOCK(); 
    15241547 
    15251548    return PJ_SUCCESS; 
     
    19621985    pjsua_process_msg_data( tdata, msg_data); 
    19631986 
     1987    /* Record the tx_data to keep track the operation */ 
     1988    call->hold_msg = (void*) tdata; 
     1989 
    19641990    /* Send the request */ 
    19651991    status = pjsip_inv_send_msg( call->inv, tdata); 
    19661992    if (status != PJ_SUCCESS) { 
    19671993        pjsua_perror(THIS_FILE, "Unable to send re-INVITE", status); 
     1994        call->hold_msg = NULL; 
    19681995        goto on_return; 
    19691996    } 
     
    25322559    pj_log_push_indent(); 
    25332560 
    2534     PJSUA_LOCK(); 
     2561    // This may deadlock, see https://trac.pjsip.org/repos/ticket/1305 
     2562    //PJSUA_LOCK(); 
    25352563 
    25362564    for (i=0; i<pjsua_var.ua_cfg.max_calls; ++i) { 
     
    25392567    } 
    25402568 
    2541     PJSUA_UNLOCK(); 
     2569    //PJSUA_UNLOCK(); 
    25422570    pj_log_pop_indent(); 
    25432571} 
     
    39724000            } 
    39734001        } 
     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        } 
    39744014    } 
    39754015 
    39764016on_return: 
     4017 
    39774018    PJSUA_UNLOCK(); 
    39784019    pj_log_pop_indent(); 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r3763 r3841  
    235235    pj_list_init(&cfg->sub_hdr_list); 
    236236    cfg->call_hold_type = PJSUA_CALL_HOLD_TYPE_DEFAULT; 
     237    cfg->register_on_acc_add = PJ_TRUE; 
    237238} 
    238239 
     
    13411342 * Destroy pjsua. 
    13421343 */ 
    1343 PJ_DEF(pj_status_t) pjsua_destroy(void) 
     1344PJ_DEF(pj_status_t) pjsua_destroy2(unsigned flags) 
    13441345{ 
    13451346    int i;  /* Must be signed */ 
     
    13661367        unsigned max_wait; 
    13671368 
    1368         PJ_LOG(4,(THIS_FILE, "Shutting down...")); 
     1369        PJ_LOG(4,(THIS_FILE, "Shutting down, flags=%d...", flags)); 
    13691370 
    13701371        pj_log_push_indent(); 
    13711372 
    13721373        /* Terminate all calls. */ 
    1373         pjsua_call_hangup_all(); 
     1374        if ((flags & PJSUA_DESTROY_NO_TX_MSG) == 0) { 
     1375            pjsua_call_hangup_all(); 
     1376        } 
    13741377 
    13751378        /* Set all accounts to offline */ 
     
    13821385 
    13831386        /* Terminate all presence subscriptions. */ 
    1384         pjsua_pres_shutdown(); 
     1387        pjsua_pres_shutdown(flags); 
    13851388 
    13861389        /* Destroy media (to shutdown media transports etc) */ 
    1387         pjsua_media_subsys_destroy(); 
     1390        pjsua_media_subsys_destroy(flags); 
    13881391 
    13891392        /* Wait for sometime until all publish client sessions are done 
     
    13991402        } 
    14001403         
     1404        /* No waiting if RX is disabled */ 
     1405        if (flags & PJSUA_DESTROY_NO_RX_MSG) { 
     1406            max_wait = 0; 
     1407        } 
     1408 
    14011409        /* Second stage, wait for unpublications to complete */ 
    14021410        for (i=0; i<(int)(max_wait/50); ++i) { 
     
    14281436                continue; 
    14291437 
    1430             if (pjsua_var.acc[i].regc) { 
     1438            if (pjsua_var.acc[i].regc && (flags & PJSUA_DESTROY_NO_TX_MSG)==0) 
     1439            { 
    14311440                pjsua_acc_set_registration(i, PJ_FALSE); 
    14321441            } 
     
    14531462        } 
    14541463         
     1464        /* No waiting if RX is disabled */ 
     1465        if (flags & PJSUA_DESTROY_NO_RX_MSG) { 
     1466            max_wait = 0; 
     1467        } 
     1468 
    14551469        /* Second stage, wait for unregistrations to complete */ 
    14561470        for (i=0; i<(int)(max_wait/50); ++i) { 
     
    14731487         * transports shutdown to complete:  
    14741488         */ 
    1475         if (i < 20) 
     1489        if (i < 20 && (flags & PJSUA_DESTROY_NO_RX_MSG) == 0) { 
    14761490            busy_sleep(1000 - i*50); 
     1491        } 
    14771492 
    14781493        PJ_LOG(4,(THIS_FILE, "Destroying...")); 
     
    15601575    return pjsua_var.state; 
    15611576} 
     1577 
     1578PJ_DEF(pj_status_t) pjsua_destroy(void) 
     1579{ 
     1580    return pjsua_destroy2(0); 
     1581} 
     1582 
    15621583 
    15631584/** 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r3796 r3841  
    397397 * Destroy pjsua media subsystem. 
    398398 */ 
    399 pj_status_t pjsua_media_subsys_destroy(void) 
     399pj_status_t pjsua_media_subsys_destroy(unsigned flags) 
    400400{ 
    401401    unsigned i; 
     
    442442            } 
    443443            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); 
    444448                pjmedia_transport_close(call_med->tp); 
    445449            } 
     
    12951299        set_media_tp_state(call_med, PJSUA_MED_TP_IDLE); 
    12961300 
     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 
    12971308#if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 
    12981309    /* This function may be called when SRTP transport already exists 
    12991310     * (e.g: in re-invite, update), don't need to destroy/re-create. 
    13001311     */ 
    1301     if (!call_med->tp_orig || call_med->tp == call_med->tp_orig) { 
     1312    if (!call_med->tp_orig) { 
    13021313        pjmedia_srtp_setting srtp_opt; 
    13031314        pjmedia_transport *srtp = NULL; 
     
    13151326        pjmedia_srtp_setting_default(&srtp_opt); 
    13161327        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  
    13181329         * preference in SRTP usage policy, especially when it is stricter. 
    13191330         */ 
     
    15201531            } 
    15211532 
    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            } 
    15251552            if (status != PJ_SUCCESS) { 
    15261553                call->med_ch_info.status = status; 
     
    21052132        PJ_LOG(4,(THIS_FILE, "Media session call%02d:%d is destroyed", 
    21062133                             call_id, mi)); 
     2134        call_med->prev_state = call_med->state; 
    21072135        call_med->state = PJSUA_CALL_MEDIA_NONE; 
    21082136    } 
     
    21342162    pj_log_push_indent(); 
    21352163 
    2136     stop_media_session(call_id); 
    2137  
    21382164    for (mi=0; mi<call->med_cnt; ++mi) { 
    21392165        pjsua_call_media *call_med = &call->media[mi]; 
    21402166 
    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) { 
    21422177            pjmedia_transport_media_stop(call_med->tp); 
    21432178            set_media_tp_state(call_med, PJSUA_MED_TP_IDLE); 
     
    21542189            call_med->tp = call_med->tp_orig = NULL; 
    21552190        } 
     2191        call_med->tp_orig = NULL; 
    21562192    } 
    21572193 
     
    22062242    if (status != PJ_SUCCESS) 
    22072243        goto on_return; 
     2244 
     2245    si->rtcp_sdes_bye_disabled = PJ_TRUE; 
    22082246 
    22092247    /* Check if no media is active */ 
     
    22962334            goto on_return; 
    22972335        } 
     2336 
     2337        if (call_med->prev_state == PJSUA_CALL_MEDIA_NONE) 
     2338            pjmedia_stream_send_rtcp_sdes(call_med->strm.a.stream); 
    22982339 
    22992340        /* If DTMF callback is installed by application, install our 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c

    r3753 r3841  
    13211321 
    13221322/* Unpublish presence publication */ 
    1323 void pjsua_pres_unpublish(pjsua_acc *acc) 
     1323void pjsua_pres_unpublish(pjsua_acc *acc, unsigned flags) 
    13241324{ 
    13251325    if (acc->publish_sess) { 
     
    13271327 
    13281328        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 
    13301334        /* By ticket #364, don't destroy the session yet (let the callback 
    13311335           destroy it) 
     
    13401344 
    13411345/* Terminate server subscription for the account */ 
    1342 void pjsua_pres_delete_acc(int acc_id) 
     1346void pjsua_pres_delete_acc(int acc_id, unsigned flags) 
    13431347{ 
    13441348    pjsua_acc *acc = &pjsua_var.acc[acc_id]; 
     
    13621366        pjsip_pres_set_status(uapres->sub, &pres_status); 
    13631367 
    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); 
    13691377        } 
    13701378 
     
    13771385 
    13781386    /* Terminate presence publication, if any */ 
    1379     pjsua_pres_unpublish(acc); 
     1387    pjsua_pres_unpublish(acc, flags); 
    13801388} 
    13811389 
     
    22522260        pjsua_acc *acc = &pjsua_var.acc[i]; 
    22532261 
     2262        /* Acc may not be ready yet, otherwise assertion will happen */ 
     2263        if (!pjsua_acc_is_valid(i)) 
     2264            continue; 
     2265 
    22542266        /* Retry PUBLISH */ 
    22552267        if (acc->cfg.publish_enabled && acc->publish_sess==NULL) 
     
    23252337 * Shutdown presence. 
    23262338 */ 
    2327 void pjsua_pres_shutdown(void) 
     2339void pjsua_pres_shutdown(unsigned flags) 
    23282340{ 
    23292341    unsigned i; 
     
    23402352        if (!pjsua_var.acc[i].valid) 
    23412353            continue; 
    2342         pjsua_pres_delete_acc(i); 
     2354        pjsua_pres_delete_acc(i, flags); 
    23432355    } 
    23442356 
     
    23472359    } 
    23482360 
    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        } 
    23542368    } 
    23552369 
Note: See TracChangeset for help on using the changeset viewer.