Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.65 for pjproject 1.x. |
| 4 | # |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5 | # |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 8 | # Inc. |
| 9 | # |
| 10 | # |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 16 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 26 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 32 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 33 | fi |
| 34 | |
| 35 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 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 |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 73 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 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 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 81 | fi |
| 82 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 92 | case $0 in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 93 | *[\\/]* ) as_myself=$0 ;; |
| 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 95 | for as_dir in $PATH |
| 96 | do |
| 97 | IFS=$as_save_IFS |
| 98 | test -z "$as_dir" && as_dir=. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 100 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 101 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 102 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 103 | ;; |
| 104 | esac |
| 105 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 106 | # in which case we are not to be found in the path. |
| 107 | if test "x$as_myself" = x; then |
| 108 | as_myself=$0 |
| 109 | fi |
| 110 | if test ! -f "$as_myself"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 112 | exit 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 113 | fi |
| 114 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 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 || : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 122 | done |
| 123 | PS1='$ ' |
| 124 | PS2='> ' |
| 125 | PS4='+ ' |
| 126 | |
| 127 | # NLS nuisances. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 128 | LC_ALL=C |
| 129 | export LC_ALL |
| 130 | LANGUAGE=C |
| 131 | export LANGUAGE |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 132 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 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 |
| 186 | do |
| 187 | IFS=$as_save_IFS |
| 188 | test -z "$as_dir" && as_dir=. |
| 189 | as_found=: |
| 190 | case $as_dir in #( |
| 191 | /*) |
| 192 | for as_base in sh bash ksh sh5; do |
| 193 | # Try only shells that exist, to save several forks. |
| 194 | as_shell=$as_dir/$as_base |
| 195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 197 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | break 2 |
| 200 | fi |
| 201 | fi |
| 202 | done;; |
| 203 | esac |
| 204 | as_found=false |
| 205 | done |
| 206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 208 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 209 | fi; } |
| 210 | IFS=$as_save_IFS |
| 211 | |
| 212 | |
| 213 | if test "x$CONFIG_SHELL" != x; then : |
| 214 | # We cannot yet assume a decent shell, so we have to provide a |
| 215 | # neutralization value for shells without unset; and this also |
| 216 | # works around shells that cannot unset nonexistent variables. |
| 217 | BASH_ENV=/dev/null |
| 218 | ENV=/dev/null |
| 219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 220 | export CONFIG_SHELL |
| 221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 222 | fi |
| 223 | |
| 224 | if test x$as_have_required = xno; then : |
| 225 | $as_echo "$0: This script requires a shell more modern than all" |
| 226 | $as_echo "$0: the shells that I found on your system." |
| 227 | if test x${ZSH_VERSION+set} = xset ; then |
| 228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 230 | else |
| 231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 232 | $0: including any error possibly output before this |
| 233 | $0: message. Then install a modern shell, or manually run |
| 234 | $0: the script under such a shell if you do have one." |
| 235 | fi |
| 236 | exit 1 |
| 237 | fi |
| 238 | fi |
| 239 | fi |
| 240 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 241 | export SHELL |
| 242 | # Unset more variables known to interfere with behavior of common tools. |
| 243 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 244 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 245 | |
| 246 | ## --------------------- ## |
| 247 | ## M4sh Shell Functions. ## |
| 248 | ## --------------------- ## |
| 249 | # as_fn_unset VAR |
| 250 | # --------------- |
| 251 | # Portably unset VAR. |
| 252 | as_fn_unset () |
| 253 | { |
| 254 | { eval $1=; unset $1;} |
| 255 | } |
| 256 | as_unset=as_fn_unset |
| 257 | |
| 258 | # as_fn_set_status STATUS |
| 259 | # ----------------------- |
| 260 | # Set $? to STATUS, without forking. |
| 261 | as_fn_set_status () |
| 262 | { |
| 263 | return $1 |
| 264 | } # as_fn_set_status |
| 265 | |
| 266 | # as_fn_exit STATUS |
| 267 | # ----------------- |
| 268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 269 | as_fn_exit () |
| 270 | { |
| 271 | set +e |
| 272 | as_fn_set_status $1 |
| 273 | exit $1 |
| 274 | } # as_fn_exit |
| 275 | |
| 276 | # as_fn_mkdir_p |
| 277 | # ------------- |
| 278 | # Create "$as_dir" as a directory, including parents if necessary. |
| 279 | as_fn_mkdir_p () |
| 280 | { |
| 281 | |
| 282 | case $as_dir in #( |
| 283 | -*) as_dir=./$as_dir;; |
| 284 | esac |
| 285 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 286 | as_dirs= |
| 287 | while :; do |
| 288 | case $as_dir in #( |
| 289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 290 | *) as_qdir=$as_dir;; |
| 291 | esac |
| 292 | as_dirs="'$as_qdir' $as_dirs" |
| 293 | as_dir=`$as_dirname -- "$as_dir" || |
| 294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 295 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 296 | X"$as_dir" : 'X\(//\)$' \| \ |
| 297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 298 | $as_echo X"$as_dir" | |
| 299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 300 | s//\1/ |
| 301 | q |
| 302 | } |
| 303 | /^X\(\/\/\)[^/].*/{ |
| 304 | s//\1/ |
| 305 | q |
| 306 | } |
| 307 | /^X\(\/\/\)$/{ |
| 308 | s//\1/ |
| 309 | q |
| 310 | } |
| 311 | /^X\(\/\).*/{ |
| 312 | s//\1/ |
| 313 | q |
| 314 | } |
| 315 | s/.*/./; q'` |
| 316 | test -d "$as_dir" && break |
| 317 | done |
| 318 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 320 | |
| 321 | |
| 322 | } # as_fn_mkdir_p |
| 323 | # as_fn_append VAR VALUE |
| 324 | # ---------------------- |
| 325 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 326 | # advantage of any shell optimizations that allow amortized linear growth over |
| 327 | # repeated appends, instead of the typical quadratic growth present in naive |
| 328 | # implementations. |
| 329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 330 | eval 'as_fn_append () |
| 331 | { |
| 332 | eval $1+=\$2 |
| 333 | }' |
| 334 | else |
| 335 | as_fn_append () |
| 336 | { |
| 337 | eval $1=\$$1\$2 |
| 338 | } |
| 339 | fi # as_fn_append |
| 340 | |
| 341 | # as_fn_arith ARG... |
| 342 | # ------------------ |
| 343 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 345 | # must be portable across $(()) and expr. |
| 346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 347 | eval 'as_fn_arith () |
| 348 | { |
| 349 | as_val=$(( $* )) |
| 350 | }' |
| 351 | else |
| 352 | as_fn_arith () |
| 353 | { |
| 354 | as_val=`expr "$@" || test $? -eq 1` |
| 355 | } |
| 356 | fi # as_fn_arith |
| 357 | |
| 358 | |
| 359 | # as_fn_error ERROR [LINENO LOG_FD] |
| 360 | # --------------------------------- |
| 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 363 | # script with status $?, using 1 if that was 0. |
| 364 | as_fn_error () |
| 365 | { |
| 366 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 367 | if test "$3"; then |
| 368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 370 | fi |
| 371 | $as_echo "$as_me: error: $1" >&2 |
| 372 | as_fn_exit $as_status |
| 373 | } # as_fn_error |
| 374 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 377 | as_expr=expr |
| 378 | else |
| 379 | as_expr=false |
| 380 | fi |
| 381 | |
| 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 383 | as_basename=basename |
| 384 | else |
| 385 | as_basename=false |
| 386 | fi |
| 387 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 393 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 394 | as_me=`$as_basename -- "$0" || |
| 395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 396 | X"$0" : 'X\(//\)$' \| \ |
| 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 398 | $as_echo X/"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 400 | s//\1/ |
| 401 | q |
| 402 | } |
| 403 | /^X\/\(\/\/\)$/{ |
| 404 | s//\1/ |
| 405 | q |
| 406 | } |
| 407 | /^X\/\(\/\).*/{ |
| 408 | s//\1/ |
| 409 | q |
| 410 | } |
| 411 | s/.*/./; q'` |
| 412 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 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 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 419 | |
| 420 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 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. :-) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 426 | sed -n ' |
| 427 | p |
| 428 | /[$]LINENO/= |
| 429 | ' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 430 | sed ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 431 | s/[$]LINENO.*/&-/ |
| 432 | t lineno |
| 433 | b |
| 434 | :lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 435 | N |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 436 | :loop |
| 437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 438 | t loop |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 439 | s/-\n.*// |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 440 | ' >$as_me.lineno && |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 441 | chmod +x "$as_me.lineno" || |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 443 | |
| 444 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 445 | # (the dirname of $[0] is not the place where we might find the |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 446 | # original and so on. Autoconf is especially sensitive to this). |
| 447 | . "./$as_me.lineno" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 448 | # Exit status is that of the last command. |
| 449 | exit |
| 450 | } |
| 451 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 452 | ECHO_C= ECHO_N= ECHO_T= |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 453 | case `echo -n x` in #((((( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 454 | -n*) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 455 | case `echo 'xy\c'` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 457 | xy) ECHO_C='\c';; |
| 458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 459 | ECHO_T=' ';; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 460 | esac;; |
| 461 | *) |
| 462 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 463 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 464 | |
| 465 | rm -f conf$$ conf$$.exe conf$$.file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 466 | if test -d conf$$.dir; then |
| 467 | rm -f conf$$.dir/conf$$.file |
| 468 | else |
| 469 | rm -f conf$$.dir |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 470 | mkdir conf$$.dir 2>/dev/null |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 471 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 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 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 484 | as_ln_s='cp -p' |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 485 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 486 | else |
| 487 | as_ln_s='cp -p' |
| 488 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 490 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 491 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 492 | if mkdir -p . 2>/dev/null; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 493 | as_mkdir_p='mkdir -p "$as_dir"' |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 494 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 495 | test -d ./-p && rmdir ./-p |
| 496 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 497 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 498 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 499 | if test -x / >/dev/null 2>&1; then |
| 500 | as_test_x='test -x' |
| 501 | else |
| 502 | if ls -dL / >/dev/null 2>&1; then |
| 503 | as_ls_L_option=L |
| 504 | else |
| 505 | as_ls_L_option= |
| 506 | fi |
| 507 | as_test_x=' |
| 508 | eval sh -c '\'' |
| 509 | if test -d "$1"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 510 | test -d "$1/."; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 511 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 512 | case $1 in #( |
| 513 | -*)set "./$1";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 514 | esac; |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 516 | ???[sx]*):;;*)false;;esac;fi |
| 517 | '\'' sh |
| 518 | ' |
| 519 | fi |
| 520 | as_executable_p=$as_test_x |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 521 | |
| 522 | # Sed expression to map a string onto a valid CPP name. |
| 523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 524 | |
| 525 | # Sed expression to map a string onto a valid variable name. |
| 526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 527 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 528 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 529 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 530 | exec 6>&1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 531 | |
| 532 | # Name of the host. |
| 533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 534 | # so uname gets run too. |
| 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 536 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 537 | # |
| 538 | # Initializations. |
| 539 | # |
| 540 | ac_default_prefix=/usr/local |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 541 | ac_clean_files= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 542 | ac_config_libobj_dir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 543 | LIBOBJS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 544 | cross_compiling=no |
| 545 | subdirs= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 546 | MFLAGS= |
| 547 | MAKEFLAGS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 548 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 549 | # Identity of this package. |
| 550 | PACKAGE_NAME='pjproject' |
| 551 | PACKAGE_TARNAME='pjproject' |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 552 | PACKAGE_VERSION='1.x' |
| 553 | PACKAGE_STRING='pjproject 1.x' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 554 | PACKAGE_BUGREPORT='' |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 555 | PACKAGE_URL='' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 556 | |
| 557 | # Factoring default headers for most tests. |
| 558 | ac_includes_default="\ |
| 559 | #include <stdio.h> |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 560 | #ifdef HAVE_SYS_TYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 561 | # include <sys/types.h> |
| 562 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 563 | #ifdef HAVE_SYS_STAT_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 564 | # include <sys/stat.h> |
| 565 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 566 | #ifdef STDC_HEADERS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 567 | # include <stdlib.h> |
| 568 | # include <stddef.h> |
| 569 | #else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 570 | # ifdef HAVE_STDLIB_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 571 | # include <stdlib.h> |
| 572 | # endif |
| 573 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 574 | #ifdef HAVE_STRING_H |
| 575 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 576 | # include <memory.h> |
| 577 | # endif |
| 578 | # include <string.h> |
| 579 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 580 | #ifdef HAVE_STRINGS_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 581 | # include <strings.h> |
| 582 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 583 | #ifdef HAVE_INTTYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 584 | # include <inttypes.h> |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 585 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 586 | #ifdef HAVE_STDINT_H |
| 587 | # include <stdint.h> |
| 588 | #endif |
| 589 | #ifdef HAVE_UNISTD_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 590 | # include <unistd.h> |
| 591 | #endif" |
| 592 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 593 | ac_subst_vars='LTLIBOBJS |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 594 | LIBOBJS |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 595 | ac_main_obj |
| 596 | ac_host |
| 597 | ac_linux_poll |
| 598 | ac_cross_compile |
| 599 | opencore_amrnb_present |
| 600 | opencore_amrnb_h_present |
| 601 | ac_no_opencore_amrnb |
| 602 | libcrypto_present |
| 603 | libssl_present |
| 604 | openssl_h_present |
| 605 | ac_no_ssl |
| 606 | ac_v4l2_ldflags |
| 607 | ac_v4l2_cflags |
| 608 | ac_ffmpeg_ldflags |
| 609 | ac_ffmpeg_cflags |
| 610 | ac_has_ffmpeg |
| 611 | ac_sdl_ldflags |
| 612 | ac_sdl_cflags |
| 613 | ac_no_ilbc_codec |
| 614 | ac_no_speex_codec |
| 615 | ac_no_g7221_codec |
| 616 | ac_no_g722_codec |
| 617 | ac_no_gsm_codec |
| 618 | ac_no_l16_codec |
| 619 | ac_no_g711_codec |
| 620 | ac_no_speex_aec |
| 621 | ac_no_large_filter |
| 622 | ac_no_small_filter |
| 623 | ac_qt_cflags |
| 624 | ac_pjmedia_video_has_qt |
| 625 | ac_ios_cflags |
| 626 | ac_pjmedia_video_has_ios |
| 627 | ac_pjmedia_video |
| 628 | ac_pa_use_oss |
| 629 | ac_pa_use_alsa |
| 630 | ac_pa_cflags |
| 631 | ac_external_pa |
| 632 | ac_pjmedia_snd |
| 633 | ac_external_gsm |
| 634 | ac_external_speex |
| 635 | ac_os_objs |
| 636 | EGREP |
| 637 | GREP |
| 638 | CPP |
| 639 | ac_build_mak_vars |
| 640 | ac_pjdir |
| 641 | CC_CFLAGS |
| 642 | CC_OPTIMIZE |
| 643 | CC_DEF |
| 644 | CC_INC |
| 645 | CC_OUT |
| 646 | LIBEXT2 |
| 647 | LIBEXT |
| 648 | RANLIB |
| 649 | LDOUT |
| 650 | LD |
| 651 | AR |
| 652 | ac_ct_CXX |
| 653 | CXXFLAGS |
| 654 | CXX |
| 655 | OBJEXT |
| 656 | EXEEXT |
| 657 | ac_ct_CC |
| 658 | CPPFLAGS |
| 659 | LDFLAGS |
| 660 | CFLAGS |
| 661 | CC |
| 662 | target_os |
| 663 | target_vendor |
| 664 | target_cpu |
| 665 | target |
| 666 | host_os |
| 667 | host_vendor |
| 668 | host_cpu |
| 669 | host |
| 670 | build_os |
| 671 | build_vendor |
| 672 | build_cpu |
| 673 | build |
| 674 | target_alias |
| 675 | host_alias |
| 676 | build_alias |
| 677 | LIBS |
| 678 | ECHO_T |
| 679 | ECHO_N |
| 680 | ECHO_C |
| 681 | DEFS |
| 682 | mandir |
| 683 | localedir |
| 684 | libdir |
| 685 | psdir |
| 686 | pdfdir |
| 687 | dvidir |
| 688 | htmldir |
| 689 | infodir |
| 690 | docdir |
| 691 | oldincludedir |
| 692 | includedir |
| 693 | localstatedir |
| 694 | sharedstatedir |
| 695 | sysconfdir |
| 696 | datadir |
| 697 | datarootdir |
| 698 | libexecdir |
| 699 | sbindir |
| 700 | bindir |
| 701 | program_transform_name |
| 702 | prefix |
| 703 | exec_prefix |
| 704 | PACKAGE_URL |
| 705 | PACKAGE_BUGREPORT |
| 706 | PACKAGE_STRING |
| 707 | PACKAGE_VERSION |
| 708 | PACKAGE_TARNAME |
| 709 | PACKAGE_NAME |
| 710 | PATH_SEPARATOR |
| 711 | SHELL' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 712 | ac_subst_files='' |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 713 | ac_user_opts=' |
| 714 | enable_option_checking |
| 715 | enable_floating_point |
| 716 | enable_epoll |
| 717 | with_external_speex |
| 718 | with_external_gsm |
| 719 | enable_sound |
| 720 | with_external_pa |
| 721 | enable_oss |
| 722 | enable_ext_sound |
| 723 | enable_small_filter |
| 724 | enable_large_filter |
| 725 | enable_speex_aec |
| 726 | enable_g711_codec |
| 727 | enable_l16_codec |
| 728 | enable_gsm_codec |
| 729 | enable_g722_codec |
| 730 | enable_g7221_codec |
| 731 | enable_speex_codec |
| 732 | enable_ilbc_codec |
| 733 | enable_libsamplerate |
| 734 | with_sdl |
| 735 | enable_sdl |
| 736 | enable_ffmpeg |
| 737 | with_ffmpeg |
| 738 | enable_v4l2 |
| 739 | enable_ipp |
| 740 | with_ipp |
| 741 | with_ipp_samples |
| 742 | with_ipp_arch |
| 743 | enable_ssl |
| 744 | enable_opencore_amrnb |
| 745 | ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 746 | ac_precious_vars='build_alias |
| 747 | host_alias |
| 748 | target_alias |
| 749 | CC |
| 750 | CFLAGS |
| 751 | LDFLAGS |
| 752 | LIBS |
| 753 | CPPFLAGS |
| 754 | CXX |
| 755 | CXXFLAGS |
| 756 | CCC |
| 757 | CPP' |
| 758 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 759 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 760 | # Initialize some variables set by options. |
| 761 | ac_init_help= |
| 762 | ac_init_version=false |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 763 | ac_unrecognized_opts= |
| 764 | ac_unrecognized_sep= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 765 | # The variables have the same names as the options, with |
| 766 | # dashes changed to underlines. |
| 767 | cache_file=/dev/null |
| 768 | exec_prefix=NONE |
| 769 | no_create= |
| 770 | no_recursion= |
| 771 | prefix=NONE |
| 772 | program_prefix=NONE |
| 773 | program_suffix=NONE |
| 774 | program_transform_name=s,x,x, |
| 775 | silent= |
| 776 | site= |
| 777 | srcdir= |
| 778 | verbose= |
| 779 | x_includes=NONE |
| 780 | x_libraries=NONE |
| 781 | |
| 782 | # Installation directory options. |
| 783 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 784 | # and all the variables that are supposed to be based on exec_prefix |
| 785 | # by default will actually change. |
| 786 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 787 | # (The list follows the same order as the GNU Coding Standards.) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 788 | bindir='${exec_prefix}/bin' |
| 789 | sbindir='${exec_prefix}/sbin' |
| 790 | libexecdir='${exec_prefix}/libexec' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 791 | datarootdir='${prefix}/share' |
| 792 | datadir='${datarootdir}' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 793 | sysconfdir='${prefix}/etc' |
| 794 | sharedstatedir='${prefix}/com' |
| 795 | localstatedir='${prefix}/var' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 796 | includedir='${prefix}/include' |
| 797 | oldincludedir='/usr/include' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 798 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 799 | infodir='${datarootdir}/info' |
| 800 | htmldir='${docdir}' |
| 801 | dvidir='${docdir}' |
| 802 | pdfdir='${docdir}' |
| 803 | psdir='${docdir}' |
| 804 | libdir='${exec_prefix}/lib' |
| 805 | localedir='${datarootdir}/locale' |
| 806 | mandir='${datarootdir}/man' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 807 | |
| 808 | ac_prev= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 809 | ac_dashdash= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 810 | for ac_option |
| 811 | do |
| 812 | # If the previous option needs an argument, assign it. |
| 813 | if test -n "$ac_prev"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 814 | eval $ac_prev=\$ac_option |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 815 | ac_prev= |
| 816 | continue |
| 817 | fi |
| 818 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 819 | case $ac_option in |
| 820 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 821 | *) ac_optarg=yes ;; |
| 822 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 823 | |
| 824 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 825 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 826 | case $ac_dashdash$ac_option in |
| 827 | --) |
| 828 | ac_dashdash=yes ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 829 | |
| 830 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 831 | ac_prev=bindir ;; |
| 832 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 833 | bindir=$ac_optarg ;; |
| 834 | |
| 835 | -build | --build | --buil | --bui | --bu) |
| 836 | ac_prev=build_alias ;; |
| 837 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 838 | build_alias=$ac_optarg ;; |
| 839 | |
| 840 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 841 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 842 | ac_prev=cache_file ;; |
| 843 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 844 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 845 | cache_file=$ac_optarg ;; |
| 846 | |
| 847 | --config-cache | -C) |
| 848 | cache_file=config.cache ;; |
| 849 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 850 | -datadir | --datadir | --datadi | --datad) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 851 | ac_prev=datadir ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 852 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 853 | datadir=$ac_optarg ;; |
| 854 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 855 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 856 | | --dataroo | --dataro | --datar) |
| 857 | ac_prev=datarootdir ;; |
| 858 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 859 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 860 | datarootdir=$ac_optarg ;; |
| 861 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 862 | -disable-* | --disable-*) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 863 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 864 | # Reject names that are not valid shell variable names. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 865 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 866 | as_fn_error "invalid feature name: $ac_useropt" |
| 867 | ac_useropt_orig=$ac_useropt |
| 868 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 869 | case $ac_user_opts in |
| 870 | *" |
| 871 | "enable_$ac_useropt" |
| 872 | "*) ;; |
| 873 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 874 | ac_unrecognized_sep=', ';; |
| 875 | esac |
| 876 | eval enable_$ac_useropt=no ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 877 | |
| 878 | -docdir | --docdir | --docdi | --doc | --do) |
| 879 | ac_prev=docdir ;; |
| 880 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 881 | docdir=$ac_optarg ;; |
| 882 | |
| 883 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 884 | ac_prev=dvidir ;; |
| 885 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 886 | dvidir=$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 887 | |
| 888 | -enable-* | --enable-*) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 889 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 890 | # Reject names that are not valid shell variable names. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 891 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 892 | as_fn_error "invalid feature name: $ac_useropt" |
| 893 | ac_useropt_orig=$ac_useropt |
| 894 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 895 | case $ac_user_opts in |
| 896 | *" |
| 897 | "enable_$ac_useropt" |
| 898 | "*) ;; |
| 899 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 900 | ac_unrecognized_sep=', ';; |
| 901 | esac |
| 902 | eval enable_$ac_useropt=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 903 | |
| 904 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 905 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 906 | | --exec | --exe | --ex) |
| 907 | ac_prev=exec_prefix ;; |
| 908 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 909 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 910 | | --exec=* | --exe=* | --ex=*) |
| 911 | exec_prefix=$ac_optarg ;; |
| 912 | |
| 913 | -gas | --gas | --ga | --g) |
| 914 | # Obsolete; use --with-gas. |
| 915 | with_gas=yes ;; |
| 916 | |
| 917 | -help | --help | --hel | --he | -h) |
| 918 | ac_init_help=long ;; |
| 919 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 920 | ac_init_help=recursive ;; |
| 921 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 922 | ac_init_help=short ;; |
| 923 | |
| 924 | -host | --host | --hos | --ho) |
| 925 | ac_prev=host_alias ;; |
| 926 | -host=* | --host=* | --hos=* | --ho=*) |
| 927 | host_alias=$ac_optarg ;; |
| 928 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 929 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 930 | ac_prev=htmldir ;; |
| 931 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 932 | | --ht=*) |
| 933 | htmldir=$ac_optarg ;; |
| 934 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 935 | -includedir | --includedir | --includedi | --included | --include \ |
| 936 | | --includ | --inclu | --incl | --inc) |
| 937 | ac_prev=includedir ;; |
| 938 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 939 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 940 | includedir=$ac_optarg ;; |
| 941 | |
| 942 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 943 | ac_prev=infodir ;; |
| 944 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 945 | infodir=$ac_optarg ;; |
| 946 | |
| 947 | -libdir | --libdir | --libdi | --libd) |
| 948 | ac_prev=libdir ;; |
| 949 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 950 | libdir=$ac_optarg ;; |
| 951 | |
| 952 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 953 | | --libexe | --libex | --libe) |
| 954 | ac_prev=libexecdir ;; |
| 955 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 956 | | --libexe=* | --libex=* | --libe=*) |
| 957 | libexecdir=$ac_optarg ;; |
| 958 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 959 | -localedir | --localedir | --localedi | --localed | --locale) |
| 960 | ac_prev=localedir ;; |
| 961 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 962 | localedir=$ac_optarg ;; |
| 963 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 964 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 965 | | --localstate | --localstat | --localsta | --localst | --locals) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 966 | ac_prev=localstatedir ;; |
| 967 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 968 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 969 | localstatedir=$ac_optarg ;; |
| 970 | |
| 971 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 972 | ac_prev=mandir ;; |
| 973 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 974 | mandir=$ac_optarg ;; |
| 975 | |
| 976 | -nfp | --nfp | --nf) |
| 977 | # Obsolete; use --without-fp. |
| 978 | with_fp=no ;; |
| 979 | |
| 980 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 981 | | --no-cr | --no-c | -n) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 982 | no_create=yes ;; |
| 983 | |
| 984 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 985 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 986 | no_recursion=yes ;; |
| 987 | |
| 988 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 989 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 990 | | --oldin | --oldi | --old | --ol | --o) |
| 991 | ac_prev=oldincludedir ;; |
| 992 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 993 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 994 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 995 | oldincludedir=$ac_optarg ;; |
| 996 | |
| 997 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 998 | ac_prev=prefix ;; |
| 999 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1000 | prefix=$ac_optarg ;; |
| 1001 | |
| 1002 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1003 | | --program-pre | --program-pr | --program-p) |
| 1004 | ac_prev=program_prefix ;; |
| 1005 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1006 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1007 | program_prefix=$ac_optarg ;; |
| 1008 | |
| 1009 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1010 | | --program-suf | --program-su | --program-s) |
| 1011 | ac_prev=program_suffix ;; |
| 1012 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1013 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1014 | program_suffix=$ac_optarg ;; |
| 1015 | |
| 1016 | -program-transform-name | --program-transform-name \ |
| 1017 | | --program-transform-nam | --program-transform-na \ |
| 1018 | | --program-transform-n | --program-transform- \ |
| 1019 | | --program-transform | --program-transfor \ |
| 1020 | | --program-transfo | --program-transf \ |
| 1021 | | --program-trans | --program-tran \ |
| 1022 | | --progr-tra | --program-tr | --program-t) |
| 1023 | ac_prev=program_transform_name ;; |
| 1024 | -program-transform-name=* | --program-transform-name=* \ |
| 1025 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1026 | | --program-transform-n=* | --program-transform-=* \ |
| 1027 | | --program-transform=* | --program-transfor=* \ |
| 1028 | | --program-transfo=* | --program-transf=* \ |
| 1029 | | --program-trans=* | --program-tran=* \ |
| 1030 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1031 | program_transform_name=$ac_optarg ;; |
| 1032 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1033 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1034 | ac_prev=pdfdir ;; |
| 1035 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1036 | pdfdir=$ac_optarg ;; |
| 1037 | |
| 1038 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1039 | ac_prev=psdir ;; |
| 1040 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1041 | psdir=$ac_optarg ;; |
| 1042 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1043 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1044 | | -silent | --silent | --silen | --sile | --sil) |
| 1045 | silent=yes ;; |
| 1046 | |
| 1047 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1048 | ac_prev=sbindir ;; |
| 1049 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1050 | | --sbi=* | --sb=*) |
| 1051 | sbindir=$ac_optarg ;; |
| 1052 | |
| 1053 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1054 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1055 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1056 | | --sha | --sh) |
| 1057 | ac_prev=sharedstatedir ;; |
| 1058 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1059 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1060 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1061 | | --sha=* | --sh=*) |
| 1062 | sharedstatedir=$ac_optarg ;; |
| 1063 | |
| 1064 | -site | --site | --sit) |
| 1065 | ac_prev=site ;; |
| 1066 | -site=* | --site=* | --sit=*) |
| 1067 | site=$ac_optarg ;; |
| 1068 | |
| 1069 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1070 | ac_prev=srcdir ;; |
| 1071 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1072 | srcdir=$ac_optarg ;; |
| 1073 | |
| 1074 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1075 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1076 | ac_prev=sysconfdir ;; |
| 1077 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1078 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1079 | sysconfdir=$ac_optarg ;; |
| 1080 | |
| 1081 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1082 | ac_prev=target_alias ;; |
| 1083 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1084 | target_alias=$ac_optarg ;; |
| 1085 | |
| 1086 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1087 | verbose=yes ;; |
| 1088 | |
| 1089 | -version | --version | --versio | --versi | --vers | -V) |
| 1090 | ac_init_version=: ;; |
| 1091 | |
| 1092 | -with-* | --with-*) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1093 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1094 | # Reject names that are not valid shell variable names. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1095 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1096 | as_fn_error "invalid package name: $ac_useropt" |
| 1097 | ac_useropt_orig=$ac_useropt |
| 1098 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1099 | case $ac_user_opts in |
| 1100 | *" |
| 1101 | "with_$ac_useropt" |
| 1102 | "*) ;; |
| 1103 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1104 | ac_unrecognized_sep=', ';; |
| 1105 | esac |
| 1106 | eval with_$ac_useropt=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1107 | |
| 1108 | -without-* | --without-*) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1109 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1110 | # Reject names that are not valid shell variable names. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1111 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1112 | as_fn_error "invalid package name: $ac_useropt" |
| 1113 | ac_useropt_orig=$ac_useropt |
| 1114 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1115 | case $ac_user_opts in |
| 1116 | *" |
| 1117 | "with_$ac_useropt" |
| 1118 | "*) ;; |
| 1119 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1120 | ac_unrecognized_sep=', ';; |
| 1121 | esac |
| 1122 | eval with_$ac_useropt=no ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1123 | |
| 1124 | --x) |
| 1125 | # Obsolete; use --with-x. |
| 1126 | with_x=yes ;; |
| 1127 | |
| 1128 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1129 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1130 | ac_prev=x_includes ;; |
| 1131 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1132 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1133 | x_includes=$ac_optarg ;; |
| 1134 | |
| 1135 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1136 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1137 | ac_prev=x_libraries ;; |
| 1138 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1139 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1140 | x_libraries=$ac_optarg ;; |
| 1141 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1142 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1143 | Try \`$0 --help' for more information." |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1144 | ;; |
| 1145 | |
| 1146 | *=*) |
| 1147 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1148 | # Reject names that are not valid shell variable names. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1149 | case $ac_envvar in #( |
| 1150 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1151 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1152 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1153 | eval $ac_envvar=\$ac_optarg |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1154 | export $ac_envvar ;; |
| 1155 | |
| 1156 | *) |
| 1157 | # FIXME: should be removed in autoconf 3.0. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1158 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1159 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1160 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1161 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1162 | ;; |
| 1163 | |
| 1164 | esac |
| 1165 | done |
| 1166 | |
| 1167 | if test -n "$ac_prev"; then |
| 1168 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1169 | as_fn_error "missing argument to $ac_option" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1170 | fi |
| 1171 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1172 | if test -n "$ac_unrecognized_opts"; then |
| 1173 | case $enable_option_checking in |
| 1174 | no) ;; |
| 1175 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1176 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1177 | esac |
| 1178 | fi |
| 1179 | |
| 1180 | # Check all directory arguments for consistency. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1181 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1182 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1183 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1184 | libdir localedir mandir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1185 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1186 | eval ac_val=\$$ac_var |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1187 | # Remove trailing slashes. |
| 1188 | case $ac_val in |
| 1189 | */ ) |
| 1190 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1191 | eval $ac_var=\$ac_val;; |
| 1192 | esac |
| 1193 | # Be sure to have absolute directory names. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1194 | case $ac_val in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1195 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1196 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1197 | esac |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1198 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1199 | done |
| 1200 | |
| 1201 | # There might be people who depend on the old broken behavior: `$host' |
| 1202 | # used to hold the argument of --host etc. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1203 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1204 | build=$build_alias |
| 1205 | host=$host_alias |
| 1206 | target=$target_alias |
| 1207 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1208 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1209 | if test "x$host_alias" != x; then |
| 1210 | if test "x$build_alias" = x; then |
| 1211 | cross_compiling=maybe |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1212 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1213 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1214 | elif test "x$build_alias" != "x$host_alias"; then |
| 1215 | cross_compiling=yes |
| 1216 | fi |
| 1217 | fi |
| 1218 | |
| 1219 | ac_tool_prefix= |
| 1220 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1221 | |
| 1222 | test "$silent" = yes && exec 6>/dev/null |
| 1223 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1224 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1225 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1226 | ac_ls_di=`ls -di .` && |
| 1227 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1228 | as_fn_error "working directory cannot be determined" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1229 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1230 | as_fn_error "pwd does not report name of working directory" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1231 | |
| 1232 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1233 | # Find the source files, if location was not specified. |
| 1234 | if test -z "$srcdir"; then |
| 1235 | ac_srcdir_defaulted=yes |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1236 | # Try the directory containing this script, then the parent directory. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1237 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1238 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1239 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1240 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1241 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1242 | $as_echo X"$as_myself" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1243 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1244 | s//\1/ |
| 1245 | q |
| 1246 | } |
| 1247 | /^X\(\/\/\)[^/].*/{ |
| 1248 | s//\1/ |
| 1249 | q |
| 1250 | } |
| 1251 | /^X\(\/\/\)$/{ |
| 1252 | s//\1/ |
| 1253 | q |
| 1254 | } |
| 1255 | /^X\(\/\).*/{ |
| 1256 | s//\1/ |
| 1257 | q |
| 1258 | } |
| 1259 | s/.*/./; q'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1260 | srcdir=$ac_confdir |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1261 | if test ! -r "$srcdir/$ac_unique_file"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1262 | srcdir=.. |
| 1263 | fi |
| 1264 | else |
| 1265 | ac_srcdir_defaulted=no |
| 1266 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1267 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1268 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1269 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1270 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1271 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1272 | ac_abs_confdir=`( |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1273 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1274 | pwd)` |
| 1275 | # When building in place, set srcdir=. |
| 1276 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1277 | srcdir=. |
| 1278 | fi |
| 1279 | # Remove unnecessary trailing slashes from srcdir. |
| 1280 | # Double slashes in file names in object file debugging info |
| 1281 | # mess up M-x gdb in Emacs. |
| 1282 | case $srcdir in |
| 1283 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1284 | esac |
| 1285 | for ac_var in $ac_precious_vars; do |
| 1286 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1287 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1288 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1289 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1290 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1291 | |
| 1292 | # |
| 1293 | # Report the --help message. |
| 1294 | # |
| 1295 | if test "$ac_init_help" = "long"; then |
| 1296 | # Omit some internal or obsolete options to make the list less imposing. |
| 1297 | # This message is too long to be a string in the A/UX 3.1 sh. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1298 | cat <<_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1299 | \`configure' configures pjproject 1.x to adapt to many kinds of systems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1300 | |
| 1301 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1302 | |
| 1303 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1304 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1305 | |
| 1306 | Defaults for the options are specified in brackets. |
| 1307 | |
| 1308 | Configuration: |
| 1309 | -h, --help display this help and exit |
| 1310 | --help=short display options specific to this package |
| 1311 | --help=recursive display the short help of all the included packages |
| 1312 | -V, --version display version information and exit |
| 1313 | -q, --quiet, --silent do not print \`checking...' messages |
| 1314 | --cache-file=FILE cache test results in FILE [disabled] |
| 1315 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1316 | -n, --no-create do not create output files |
| 1317 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1318 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1319 | Installation directories: |
| 1320 | --prefix=PREFIX install architecture-independent files in PREFIX |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1321 | [$ac_default_prefix] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1322 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1323 | [PREFIX] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1324 | |
| 1325 | By default, \`make install' will install all the files in |
| 1326 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1327 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1328 | for instance \`--prefix=\$HOME'. |
| 1329 | |
| 1330 | For better control, use the options below. |
| 1331 | |
| 1332 | Fine tuning of the installation directories: |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1333 | --bindir=DIR user executables [EPREFIX/bin] |
| 1334 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1335 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1336 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1337 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1338 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1339 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1340 | --includedir=DIR C header files [PREFIX/include] |
| 1341 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1342 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1343 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1344 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1345 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1346 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1347 | --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject] |
| 1348 | --htmldir=DIR html documentation [DOCDIR] |
| 1349 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1350 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1351 | --psdir=DIR ps documentation [DOCDIR] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1352 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1353 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1354 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1355 | |
| 1356 | System types: |
| 1357 | --build=BUILD configure for building on BUILD [guessed] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1358 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1359 | --target=TARGET configure for building compilers for TARGET [HOST] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1360 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1361 | fi |
| 1362 | |
| 1363 | if test -n "$ac_init_help"; then |
| 1364 | case $ac_init_help in |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1365 | short | recursive ) echo "Configuration of pjproject 1.x:";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1366 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1367 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1368 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1369 | Optional Features: |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1370 | --disable-option-checking ignore unrecognized --enable/--with options |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1371 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1372 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1373 | --disable-floating-point |
| 1374 | Disable floating point where possible |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1375 | --enable-epoll Use /dev/epoll ioqueue on Linux (experimental) |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 1376 | --disable-sound Exclude sound (i.e. use null sound) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1377 | --disable-oss Disable OSS audio (default: not disabled) |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 1378 | --enable-ext-sound PJMEDIA will not provide any sound device backend |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1379 | --disable-small-filter Exclude small filter in resampling |
| 1380 | --disable-large-filter Exclude large filter in resampling |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1381 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 1382 | --disable-g711-codec Exclude G.711 codecs from the build |
| 1383 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 1384 | --disable-gsm-codec Exclude GSM codec in the build |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 1385 | --disable-g722-codec Exclude G.722 codec in the build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1386 | --disable-g7221-codec Exclude G.7221 codec in the build |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1387 | --disable-speex-codec Exclude Speex codecs in the build |
| 1388 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 1389 | --enable-libsamplerate Link with libsamplerate when available. Note that |
| 1390 | PJMEDIA_RESAMPLE_IMP must also be configured |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 1391 | --disable-sdl Disable SDL (default: not disabled) |
| 1392 | --disable-ffmpeg Disable ffmpeg (default: not disabled) |
| 1393 | --disable-v4l2 Disable Video4Linux2 (default: not disabled) |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1394 | --enable-ipp Enable Intel IPP support. Specify the Intel IPP |
| 1395 | package and samples location using IPPROOT and |
| 1396 | IPPSAMPLES env var or with --with-ipp and |
| 1397 | --with-ipp-samples options |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 1398 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1399 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 1400 | --disable-opencore-amrnb |
| 1401 | Exclude OpenCORE AMR-NB support from the build |
| 1402 | (default: autodetect) |
| 1403 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1404 | |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1405 | Optional Packages: |
| 1406 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1407 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1408 | --with-external-speex Use external Speex development files, not the one in |
| 1409 | "third_party" directory. When this option is set, |
| 1410 | make sure that Speex is accessible to use (hint: use |
| 1411 | CFLAGS and LDFLAGS env var to set the include/lib |
| 1412 | paths) |
| 1413 | --with-external-gsm Use external GSM codec library, not the one in |
| 1414 | "third_party" directory. When this option is set, |
| 1415 | make sure that the GSM include/lib files are |
| 1416 | accessible to use (hint: use CFLAGS and LDFLAGS env |
| 1417 | var to set the include/lib paths) |
| 1418 | --with-external-pa Use external PortAudio development files, not the |
| 1419 | one in "third_party" directory. When this option is |
| 1420 | set, make sure that PortAudio is accessible to use |
| 1421 | (hint: use CFLAGS and LDFLAGS env var to set the |
| 1422 | include/lib paths) |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 1423 | --with-sdl=DIR Specify alternate libSDL prefix |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 1424 | --with-ffmpeg=DIR Specify alternate FFMPEG prefix |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 1425 | --with-ipp=DIR Specify the Intel IPP location |
| 1426 | --with-ipp-samples=DIR Specify the Intel IPP samples location |
| 1427 | --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 1428 | "em64t. Default is blank for IA32" |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1429 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1430 | Some influential environment variables: |
| 1431 | CC C compiler command |
| 1432 | CFLAGS C compiler flags |
| 1433 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1434 | nonstandard directory <lib dir> |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1435 | LIBS libraries to pass to the linker, e.g. -l<library> |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1436 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1437 | you have headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1438 | CXX C++ compiler command |
| 1439 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1440 | CPP C preprocessor |
| 1441 | |
| 1442 | Use these variables to override the choices made by `configure' or to help |
| 1443 | it to find libraries and programs with nonstandard names/locations. |
| 1444 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1445 | Report bugs to the package provider. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1446 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1447 | ac_status=$? |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1448 | fi |
| 1449 | |
| 1450 | if test "$ac_init_help" = "recursive"; then |
| 1451 | # If there are subdirs, report their specific --help. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1452 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1453 | test -d "$ac_dir" || |
| 1454 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1455 | continue |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1456 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1457 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1458 | case "$ac_dir" in |
| 1459 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1460 | *) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1461 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1462 | # A ".." for each directory in $ac_dir_suffix. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1463 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1464 | case $ac_top_builddir_sub in |
| 1465 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1466 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1467 | esac ;; |
| 1468 | esac |
| 1469 | ac_abs_top_builddir=$ac_pwd |
| 1470 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1471 | # for backward compatibility: |
| 1472 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1473 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1474 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1475 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1476 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1477 | ac_top_srcdir=$ac_top_builddir_sub |
| 1478 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1479 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1480 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1481 | ac_top_srcdir=$srcdir |
| 1482 | ac_abs_top_srcdir=$srcdir ;; |
| 1483 | *) # Relative name. |
| 1484 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1485 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1486 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1487 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1488 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1489 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1490 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1491 | # Check for guested configure. |
| 1492 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1493 | echo && |
| 1494 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1495 | elif test -f "$ac_srcdir/configure"; then |
| 1496 | echo && |
| 1497 | $SHELL "$ac_srcdir/configure" --help=recursive |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1498 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1499 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1500 | fi || ac_status=$? |
| 1501 | cd "$ac_pwd" || { ac_status=$?; break; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1502 | done |
| 1503 | fi |
| 1504 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1505 | test -n "$ac_init_help" && exit $ac_status |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1506 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1507 | cat <<\_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1508 | pjproject configure 1.x |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1509 | generated by GNU Autoconf 2.65 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1510 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1511 | Copyright (C) 2009 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1512 | This configure script is free software; the Free Software Foundation |
| 1513 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1514 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1515 | exit |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1516 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1517 | |
| 1518 | ## ------------------------ ## |
| 1519 | ## Autoconf initialization. ## |
| 1520 | ## ------------------------ ## |
| 1521 | |
| 1522 | # ac_fn_c_try_compile LINENO |
| 1523 | # -------------------------- |
| 1524 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1525 | ac_fn_c_try_compile () |
| 1526 | { |
| 1527 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1528 | rm -f conftest.$ac_objext |
| 1529 | if { { ac_try="$ac_compile" |
| 1530 | case "(($ac_try" in |
| 1531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1532 | *) ac_try_echo=$ac_try;; |
| 1533 | esac |
| 1534 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1535 | $as_echo "$ac_try_echo"; } >&5 |
| 1536 | (eval "$ac_compile") 2>conftest.err |
| 1537 | ac_status=$? |
| 1538 | if test -s conftest.err; then |
| 1539 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1540 | cat conftest.er1 >&5 |
| 1541 | mv -f conftest.er1 conftest.err |
| 1542 | fi |
| 1543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1544 | test $ac_status = 0; } && { |
| 1545 | test -z "$ac_c_werror_flag" || |
| 1546 | test ! -s conftest.err |
| 1547 | } && test -s conftest.$ac_objext; then : |
| 1548 | ac_retval=0 |
| 1549 | else |
| 1550 | $as_echo "$as_me: failed program was:" >&5 |
| 1551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1552 | |
| 1553 | ac_retval=1 |
| 1554 | fi |
| 1555 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1556 | as_fn_set_status $ac_retval |
| 1557 | |
| 1558 | } # ac_fn_c_try_compile |
| 1559 | |
| 1560 | # ac_fn_cxx_try_compile LINENO |
| 1561 | # ---------------------------- |
| 1562 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1563 | ac_fn_cxx_try_compile () |
| 1564 | { |
| 1565 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1566 | rm -f conftest.$ac_objext |
| 1567 | if { { ac_try="$ac_compile" |
| 1568 | case "(($ac_try" in |
| 1569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1570 | *) ac_try_echo=$ac_try;; |
| 1571 | esac |
| 1572 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1573 | $as_echo "$ac_try_echo"; } >&5 |
| 1574 | (eval "$ac_compile") 2>conftest.err |
| 1575 | ac_status=$? |
| 1576 | if test -s conftest.err; then |
| 1577 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1578 | cat conftest.er1 >&5 |
| 1579 | mv -f conftest.er1 conftest.err |
| 1580 | fi |
| 1581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1582 | test $ac_status = 0; } && { |
| 1583 | test -z "$ac_cxx_werror_flag" || |
| 1584 | test ! -s conftest.err |
| 1585 | } && test -s conftest.$ac_objext; then : |
| 1586 | ac_retval=0 |
| 1587 | else |
| 1588 | $as_echo "$as_me: failed program was:" >&5 |
| 1589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1590 | |
| 1591 | ac_retval=1 |
| 1592 | fi |
| 1593 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1594 | as_fn_set_status $ac_retval |
| 1595 | |
| 1596 | } # ac_fn_cxx_try_compile |
| 1597 | |
| 1598 | # ac_fn_c_try_link LINENO |
| 1599 | # ----------------------- |
| 1600 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1601 | ac_fn_c_try_link () |
| 1602 | { |
| 1603 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1604 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1605 | if { { ac_try="$ac_link" |
| 1606 | case "(($ac_try" in |
| 1607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1608 | *) ac_try_echo=$ac_try;; |
| 1609 | esac |
| 1610 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1611 | $as_echo "$ac_try_echo"; } >&5 |
| 1612 | (eval "$ac_link") 2>conftest.err |
| 1613 | ac_status=$? |
| 1614 | if test -s conftest.err; then |
| 1615 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1616 | cat conftest.er1 >&5 |
| 1617 | mv -f conftest.er1 conftest.err |
| 1618 | fi |
| 1619 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1620 | test $ac_status = 0; } && { |
| 1621 | test -z "$ac_c_werror_flag" || |
| 1622 | test ! -s conftest.err |
| 1623 | } && test -s conftest$ac_exeext && { |
| 1624 | test "$cross_compiling" = yes || |
| 1625 | $as_test_x conftest$ac_exeext |
| 1626 | }; then : |
| 1627 | ac_retval=0 |
| 1628 | else |
| 1629 | $as_echo "$as_me: failed program was:" >&5 |
| 1630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1631 | |
| 1632 | ac_retval=1 |
| 1633 | fi |
| 1634 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1635 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1636 | # interfere with the next link command; also delete a directory that is |
| 1637 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1638 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1639 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1640 | as_fn_set_status $ac_retval |
| 1641 | |
| 1642 | } # ac_fn_c_try_link |
| 1643 | |
| 1644 | # ac_fn_c_try_run LINENO |
| 1645 | # ---------------------- |
| 1646 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1647 | # that executables *can* be run. |
| 1648 | ac_fn_c_try_run () |
| 1649 | { |
| 1650 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1651 | if { { ac_try="$ac_link" |
| 1652 | case "(($ac_try" in |
| 1653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1654 | *) ac_try_echo=$ac_try;; |
| 1655 | esac |
| 1656 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1657 | $as_echo "$ac_try_echo"; } >&5 |
| 1658 | (eval "$ac_link") 2>&5 |
| 1659 | ac_status=$? |
| 1660 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1661 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1662 | { { case "(($ac_try" in |
| 1663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1664 | *) ac_try_echo=$ac_try;; |
| 1665 | esac |
| 1666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1667 | $as_echo "$ac_try_echo"; } >&5 |
| 1668 | (eval "$ac_try") 2>&5 |
| 1669 | ac_status=$? |
| 1670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1671 | test $ac_status = 0; }; }; then : |
| 1672 | ac_retval=0 |
| 1673 | else |
| 1674 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1675 | $as_echo "$as_me: failed program was:" >&5 |
| 1676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1677 | |
| 1678 | ac_retval=$ac_status |
| 1679 | fi |
| 1680 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1681 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1682 | as_fn_set_status $ac_retval |
| 1683 | |
| 1684 | } # ac_fn_c_try_run |
| 1685 | |
| 1686 | # ac_fn_c_try_cpp LINENO |
| 1687 | # ---------------------- |
| 1688 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1689 | ac_fn_c_try_cpp () |
| 1690 | { |
| 1691 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1692 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1693 | case "(($ac_try" in |
| 1694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1695 | *) ac_try_echo=$ac_try;; |
| 1696 | esac |
| 1697 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1698 | $as_echo "$ac_try_echo"; } >&5 |
| 1699 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1700 | ac_status=$? |
| 1701 | if test -s conftest.err; then |
| 1702 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1703 | cat conftest.er1 >&5 |
| 1704 | mv -f conftest.er1 conftest.err |
| 1705 | fi |
| 1706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1707 | test $ac_status = 0; } >/dev/null && { |
| 1708 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1709 | test ! -s conftest.err |
| 1710 | }; then : |
| 1711 | ac_retval=0 |
| 1712 | else |
| 1713 | $as_echo "$as_me: failed program was:" >&5 |
| 1714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1715 | |
| 1716 | ac_retval=1 |
| 1717 | fi |
| 1718 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1719 | as_fn_set_status $ac_retval |
| 1720 | |
| 1721 | } # ac_fn_c_try_cpp |
| 1722 | |
| 1723 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1724 | # ------------------------------------------------------- |
| 1725 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1726 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1727 | ac_fn_c_check_header_compile () |
| 1728 | { |
| 1729 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1731 | $as_echo_n "checking for $2... " >&6; } |
| 1732 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1733 | $as_echo_n "(cached) " >&6 |
| 1734 | else |
| 1735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1736 | /* end confdefs.h. */ |
| 1737 | $4 |
| 1738 | #include <$2> |
| 1739 | _ACEOF |
| 1740 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1741 | eval "$3=yes" |
| 1742 | else |
| 1743 | eval "$3=no" |
| 1744 | fi |
| 1745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1746 | fi |
| 1747 | eval ac_res=\$$3 |
| 1748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1749 | $as_echo "$ac_res" >&6; } |
| 1750 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1751 | |
| 1752 | } # ac_fn_c_check_header_compile |
| 1753 | |
| 1754 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1755 | # ------------------------------------------------------- |
| 1756 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1757 | # the include files in INCLUDES and setting the cache variable VAR |
| 1758 | # accordingly. |
| 1759 | ac_fn_c_check_header_mongrel () |
| 1760 | { |
| 1761 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1762 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1764 | $as_echo_n "checking for $2... " >&6; } |
| 1765 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1766 | $as_echo_n "(cached) " >&6 |
| 1767 | fi |
| 1768 | eval ac_res=\$$3 |
| 1769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1770 | $as_echo "$ac_res" >&6; } |
| 1771 | else |
| 1772 | # Is the header compilable? |
| 1773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1774 | $as_echo_n "checking $2 usability... " >&6; } |
| 1775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1776 | /* end confdefs.h. */ |
| 1777 | $4 |
| 1778 | #include <$2> |
| 1779 | _ACEOF |
| 1780 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1781 | ac_header_compiler=yes |
| 1782 | else |
| 1783 | ac_header_compiler=no |
| 1784 | fi |
| 1785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1787 | $as_echo "$ac_header_compiler" >&6; } |
| 1788 | |
| 1789 | # Is the header present? |
| 1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1791 | $as_echo_n "checking $2 presence... " >&6; } |
| 1792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1793 | /* end confdefs.h. */ |
| 1794 | #include <$2> |
| 1795 | _ACEOF |
| 1796 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1797 | ac_header_preproc=yes |
| 1798 | else |
| 1799 | ac_header_preproc=no |
| 1800 | fi |
| 1801 | rm -f conftest.err conftest.$ac_ext |
| 1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1803 | $as_echo "$ac_header_preproc" >&6; } |
| 1804 | |
| 1805 | # So? What about this header? |
| 1806 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1807 | yes:no: ) |
| 1808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1809 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1811 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1812 | ;; |
| 1813 | no:yes:* ) |
| 1814 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1815 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1817 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1819 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1821 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1823 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1824 | ;; |
| 1825 | esac |
| 1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1827 | $as_echo_n "checking for $2... " >&6; } |
| 1828 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1829 | $as_echo_n "(cached) " >&6 |
| 1830 | else |
| 1831 | eval "$3=\$ac_header_compiler" |
| 1832 | fi |
| 1833 | eval ac_res=\$$3 |
| 1834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1835 | $as_echo "$ac_res" >&6; } |
| 1836 | fi |
| 1837 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1838 | |
| 1839 | } # ac_fn_c_check_header_mongrel |
| 1840 | |
| 1841 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1842 | # ---------------------------------- |
| 1843 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1844 | ac_fn_c_check_func () |
| 1845 | { |
| 1846 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1848 | $as_echo_n "checking for $2... " >&6; } |
| 1849 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1850 | $as_echo_n "(cached) " >&6 |
| 1851 | else |
| 1852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1853 | /* end confdefs.h. */ |
| 1854 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1855 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1856 | #define $2 innocuous_$2 |
| 1857 | |
| 1858 | /* System header to define __stub macros and hopefully few prototypes, |
| 1859 | which can conflict with char $2 (); below. |
| 1860 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1861 | <limits.h> exists even on freestanding compilers. */ |
| 1862 | |
| 1863 | #ifdef __STDC__ |
| 1864 | # include <limits.h> |
| 1865 | #else |
| 1866 | # include <assert.h> |
| 1867 | #endif |
| 1868 | |
| 1869 | #undef $2 |
| 1870 | |
| 1871 | /* Override any GCC internal prototype to avoid an error. |
| 1872 | Use char because int might match the return type of a GCC |
| 1873 | builtin and then its argument prototype would still apply. */ |
| 1874 | #ifdef __cplusplus |
| 1875 | extern "C" |
| 1876 | #endif |
| 1877 | char $2 (); |
| 1878 | /* The GNU C library defines this for functions which it implements |
| 1879 | to always fail with ENOSYS. Some functions are actually named |
| 1880 | something starting with __ and the normal name is an alias. */ |
| 1881 | #if defined __stub_$2 || defined __stub___$2 |
| 1882 | choke me |
| 1883 | #endif |
| 1884 | |
| 1885 | int |
| 1886 | main () |
| 1887 | { |
| 1888 | return $2 (); |
| 1889 | ; |
| 1890 | return 0; |
| 1891 | } |
| 1892 | _ACEOF |
| 1893 | if ac_fn_c_try_link "$LINENO"; then : |
| 1894 | eval "$3=yes" |
| 1895 | else |
| 1896 | eval "$3=no" |
| 1897 | fi |
| 1898 | rm -f core conftest.err conftest.$ac_objext \ |
| 1899 | conftest$ac_exeext conftest.$ac_ext |
| 1900 | fi |
| 1901 | eval ac_res=\$$3 |
| 1902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1903 | $as_echo "$ac_res" >&6; } |
| 1904 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1905 | |
| 1906 | } # ac_fn_c_check_func |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1907 | cat >config.log <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1908 | This file contains any messages produced by compilers while |
| 1909 | running configure, to aid debugging if configure makes a mistake. |
| 1910 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1911 | It was created by pjproject $as_me 1.x, which was |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1912 | generated by GNU Autoconf 2.65. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1913 | |
| 1914 | $ $0 $@ |
| 1915 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1916 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1917 | exec 5>>config.log |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1918 | { |
| 1919 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1920 | ## --------- ## |
| 1921 | ## Platform. ## |
| 1922 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1923 | |
| 1924 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1925 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1926 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1927 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1928 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1929 | |
| 1930 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1931 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1932 | |
| 1933 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1934 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1935 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1936 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1937 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1938 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1939 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1940 | |
| 1941 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1942 | |
| 1943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1944 | for as_dir in $PATH |
| 1945 | do |
| 1946 | IFS=$as_save_IFS |
| 1947 | test -z "$as_dir" && as_dir=. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1948 | $as_echo "PATH: $as_dir" |
| 1949 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1950 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1951 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1952 | } >&5 |
| 1953 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1954 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1955 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1956 | |
| 1957 | ## ----------- ## |
| 1958 | ## Core tests. ## |
| 1959 | ## ----------- ## |
| 1960 | |
| 1961 | _ACEOF |
| 1962 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1963 | |
| 1964 | # Keep a trace of the command line. |
| 1965 | # Strip out --no-create and --no-recursion so they do not pile up. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1966 | # Strip out --silent because we don't want to record it for future runs. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1967 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1968 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1969 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1970 | ac_configure_args0= |
| 1971 | ac_configure_args1= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1972 | ac_must_keep_next=false |
| 1973 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1974 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1975 | for ac_arg |
| 1976 | do |
| 1977 | case $ac_arg in |
| 1978 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1979 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1980 | | -silent | --silent | --silen | --sile | --sil) |
| 1981 | continue ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1982 | *\'*) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1983 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1984 | esac |
| 1985 | case $ac_pass in |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1986 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1987 | 2) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 1988 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1989 | if test $ac_must_keep_next = true; then |
| 1990 | ac_must_keep_next=false # Got value, back to normal. |
| 1991 | else |
| 1992 | case $ac_arg in |
| 1993 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1994 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1995 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1996 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1997 | case "$ac_configure_args0 " in |
| 1998 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1999 | esac |
| 2000 | ;; |
| 2001 | -* ) ac_must_keep_next=true ;; |
| 2002 | esac |
| 2003 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2004 | as_fn_append ac_configure_args " '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2005 | ;; |
| 2006 | esac |
| 2007 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2008 | done |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2009 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2010 | { ac_configure_args1=; unset ac_configure_args1;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2011 | |
| 2012 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2013 | # config.log. We remove comments because anyway the quotes in there |
| 2014 | # would cause problems or look ugly. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2015 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2016 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2017 | trap 'exit_status=$? |
| 2018 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2019 | { |
| 2020 | echo |
| 2021 | |
| 2022 | cat <<\_ASBOX |
| 2023 | ## ---------------- ## |
| 2024 | ## Cache variables. ## |
| 2025 | ## ---------------- ## |
| 2026 | _ASBOX |
| 2027 | echo |
| 2028 | # The following way of writing the cache mishandles newlines in values, |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2029 | ( |
| 2030 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2031 | eval ac_val=\$$ac_var |
| 2032 | case $ac_val in #( |
| 2033 | *${as_nl}*) |
| 2034 | case $ac_var in #( |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2035 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2036 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2037 | esac |
| 2038 | case $ac_var in #( |
| 2039 | _ | IFS | as_nl) ;; #( |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2040 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2041 | *) { eval $ac_var=; unset $ac_var;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2042 | esac ;; |
| 2043 | esac |
| 2044 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2045 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2046 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2047 | *${as_nl}ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2048 | sed -n \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2049 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2050 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2051 | ;; #( |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2052 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2053 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2054 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2055 | esac | |
| 2056 | sort |
| 2057 | ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2058 | echo |
| 2059 | |
| 2060 | cat <<\_ASBOX |
| 2061 | ## ----------------- ## |
| 2062 | ## Output variables. ## |
| 2063 | ## ----------------- ## |
| 2064 | _ASBOX |
| 2065 | echo |
| 2066 | for ac_var in $ac_subst_vars |
| 2067 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2068 | eval ac_val=\$$ac_var |
| 2069 | case $ac_val in |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2070 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2071 | esac |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2072 | $as_echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2073 | done | sort |
| 2074 | echo |
| 2075 | |
| 2076 | if test -n "$ac_subst_files"; then |
| 2077 | cat <<\_ASBOX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2078 | ## ------------------- ## |
| 2079 | ## File substitutions. ## |
| 2080 | ## ------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2081 | _ASBOX |
| 2082 | echo |
| 2083 | for ac_var in $ac_subst_files |
| 2084 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2085 | eval ac_val=\$$ac_var |
| 2086 | case $ac_val in |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2087 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2088 | esac |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2089 | $as_echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2090 | done | sort |
| 2091 | echo |
| 2092 | fi |
| 2093 | |
| 2094 | if test -s confdefs.h; then |
| 2095 | cat <<\_ASBOX |
| 2096 | ## ----------- ## |
| 2097 | ## confdefs.h. ## |
| 2098 | ## ----------- ## |
| 2099 | _ASBOX |
| 2100 | echo |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2101 | cat confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2102 | echo |
| 2103 | fi |
| 2104 | test "$ac_signal" != 0 && |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2105 | $as_echo "$as_me: caught signal $ac_signal" |
| 2106 | $as_echo "$as_me: exit $exit_status" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2107 | } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2108 | rm -f core *.core core.conftest.* && |
| 2109 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2110 | exit $exit_status |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2111 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2112 | for ac_signal in 1 2 13 15; do |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2113 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2114 | done |
| 2115 | ac_signal=0 |
| 2116 | |
| 2117 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2118 | rm -f -r conftest* confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2119 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2120 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2121 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2122 | # Predefined preprocessor variables. |
| 2123 | |
| 2124 | cat >>confdefs.h <<_ACEOF |
| 2125 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2126 | _ACEOF |
| 2127 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2128 | cat >>confdefs.h <<_ACEOF |
| 2129 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2130 | _ACEOF |
| 2131 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2132 | cat >>confdefs.h <<_ACEOF |
| 2133 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2134 | _ACEOF |
| 2135 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2136 | cat >>confdefs.h <<_ACEOF |
| 2137 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2138 | _ACEOF |
| 2139 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2140 | cat >>confdefs.h <<_ACEOF |
| 2141 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2142 | _ACEOF |
| 2143 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2144 | cat >>confdefs.h <<_ACEOF |
| 2145 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2146 | _ACEOF |
| 2147 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2148 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2149 | # Let the site file select an alternate cache file if it wants to. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2150 | # Prefer an explicitly selected file to automatically selected ones. |
| 2151 | ac_site_file1=NONE |
| 2152 | ac_site_file2=NONE |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2153 | if test -n "$CONFIG_SITE"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2154 | ac_site_file1=$CONFIG_SITE |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2155 | elif test "x$prefix" != xNONE; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2156 | ac_site_file1=$prefix/share/config.site |
| 2157 | ac_site_file2=$prefix/etc/config.site |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2158 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2159 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2160 | ac_site_file2=$ac_default_prefix/etc/config.site |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2161 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2162 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2163 | do |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2164 | test "x$ac_site_file" = xNONE && continue |
| 2165 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2166 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2167 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2168 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2169 | . "$ac_site_file" |
| 2170 | fi |
| 2171 | done |
| 2172 | |
| 2173 | if test -r "$cache_file"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2174 | # Some versions of bash will fail to source /dev/null (special files |
| 2175 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2176 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2177 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2178 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2179 | case $cache_file in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2180 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2181 | *) . "./$cache_file";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2182 | esac |
| 2183 | fi |
| 2184 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2185 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2186 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2187 | >$cache_file |
| 2188 | fi |
| 2189 | |
| 2190 | # Check that the precious variables saved in the cache have kept the same |
| 2191 | # value. |
| 2192 | ac_cache_corrupted=false |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2193 | for ac_var in $ac_precious_vars; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2194 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2195 | eval ac_new_set=\$ac_env_${ac_var}_set |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2196 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2197 | eval ac_new_val=\$ac_env_${ac_var}_value |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2198 | case $ac_old_set,$ac_new_set in |
| 2199 | set,) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2201 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2202 | ac_cache_corrupted=: ;; |
| 2203 | ,set) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2204 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2205 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2206 | ac_cache_corrupted=: ;; |
| 2207 | ,);; |
| 2208 | *) |
| 2209 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2210 | # differences in whitespace do not lead to failure. |
| 2211 | ac_old_val_w=`echo x $ac_old_val` |
| 2212 | ac_new_val_w=`echo x $ac_new_val` |
| 2213 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2214 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2215 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2216 | ac_cache_corrupted=: |
| 2217 | else |
| 2218 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2219 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2220 | eval $ac_var=\$ac_old_val |
| 2221 | fi |
| 2222 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2223 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2225 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2226 | fi;; |
| 2227 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2228 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2229 | if test "$ac_new_set" = set; then |
| 2230 | case $ac_new_val in |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2231 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2232 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2233 | esac |
| 2234 | case " $ac_configure_args " in |
| 2235 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2236 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2237 | esac |
| 2238 | fi |
| 2239 | done |
| 2240 | if $ac_cache_corrupted; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2241 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2242 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2243 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2244 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2245 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2246 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2247 | ## -------------------- ## |
| 2248 | ## Main body of script. ## |
| 2249 | ## -------------------- ## |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2250 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2251 | ac_ext=c |
| 2252 | ac_cpp='$CPP $CPPFLAGS' |
| 2253 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2254 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2255 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2256 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2257 | |
| 2258 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2259 | host_orig="$host" |
| 2260 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2261 | ac_aux_dir= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2262 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2263 | for ac_t in install-sh install.sh shtool; do |
| 2264 | if test -f "$ac_dir/$ac_t"; then |
| 2265 | ac_aux_dir=$ac_dir |
| 2266 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2267 | break 2 |
| 2268 | fi |
| 2269 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2270 | done |
| 2271 | if test -z "$ac_aux_dir"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2272 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2273 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2274 | |
| 2275 | # These three variables are undocumented and unsupported, |
| 2276 | # and are intended to be withdrawn in a future Autoconf release. |
| 2277 | # They can cause serious problems if a builder's source tree is in a directory |
| 2278 | # whose full name contains unusual characters. |
| 2279 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2280 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2281 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2282 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2283 | |
| 2284 | # Make sure we can run config.sub. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2285 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2286 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2287 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2289 | $as_echo_n "checking build system type... " >&6; } |
| 2290 | if test "${ac_cv_build+set}" = set; then : |
| 2291 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2292 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2293 | ac_build_alias=$build_alias |
| 2294 | test "x$ac_build_alias" = x && |
| 2295 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2296 | test "x$ac_build_alias" = x && |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2297 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2298 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2299 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2300 | |
| 2301 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2303 | $as_echo "$ac_cv_build" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2304 | case $ac_cv_build in |
| 2305 | *-*-*) ;; |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2306 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2307 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2308 | build=$ac_cv_build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2309 | ac_save_IFS=$IFS; IFS='-' |
| 2310 | set x $ac_cv_build |
| 2311 | shift |
| 2312 | build_cpu=$1 |
| 2313 | build_vendor=$2 |
| 2314 | shift; shift |
| 2315 | # Remember, the first character of IFS is used to create $*, |
| 2316 | # except with old shells: |
| 2317 | build_os=$* |
| 2318 | IFS=$ac_save_IFS |
| 2319 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2320 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2321 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2323 | $as_echo_n "checking host system type... " >&6; } |
| 2324 | if test "${ac_cv_host+set}" = set; then : |
| 2325 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2326 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2327 | if test "x$host_alias" = x; then |
| 2328 | ac_cv_host=$ac_cv_build |
| 2329 | else |
| 2330 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2331 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2332 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2333 | |
| 2334 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2336 | $as_echo "$ac_cv_host" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2337 | case $ac_cv_host in |
| 2338 | *-*-*) ;; |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2339 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2340 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2341 | host=$ac_cv_host |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2342 | ac_save_IFS=$IFS; IFS='-' |
| 2343 | set x $ac_cv_host |
| 2344 | shift |
| 2345 | host_cpu=$1 |
| 2346 | host_vendor=$2 |
| 2347 | shift; shift |
| 2348 | # Remember, the first character of IFS is used to create $*, |
| 2349 | # except with old shells: |
| 2350 | host_os=$* |
| 2351 | IFS=$ac_save_IFS |
| 2352 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2353 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2354 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 2356 | $as_echo_n "checking target system type... " >&6; } |
| 2357 | if test "${ac_cv_target+set}" = set; then : |
| 2358 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2359 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2360 | if test "x$target_alias" = x; then |
| 2361 | ac_cv_target=$ac_cv_host |
| 2362 | else |
| 2363 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2364 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2365 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2366 | |
| 2367 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 2369 | $as_echo "$ac_cv_target" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2370 | case $ac_cv_target in |
| 2371 | *-*-*) ;; |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2372 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2373 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2374 | target=$ac_cv_target |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2375 | ac_save_IFS=$IFS; IFS='-' |
| 2376 | set x $ac_cv_target |
| 2377 | shift |
| 2378 | target_cpu=$1 |
| 2379 | target_vendor=$2 |
| 2380 | shift; shift |
| 2381 | # Remember, the first character of IFS is used to create $*, |
| 2382 | # except with old shells: |
| 2383 | target_os=$* |
| 2384 | IFS=$ac_save_IFS |
| 2385 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2386 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2387 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2388 | # The aliases save the names the user supplied, while $host etc. |
| 2389 | # will get canonicalized. |
| 2390 | test -n "$target_alias" && |
| 2391 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2392 | NONENONEs,x,x, && |
| 2393 | program_prefix=${target_alias}- |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2394 | ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2395 | |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 2396 | ac_config_files="$ac_config_files build.mak build/os-auto.mak build/cc-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/os-auto.mak third_party/build/portaudio/os-auto.mak" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2397 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2398 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 2399 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2400 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 2401 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2402 | else |
| 2403 | CFLAGS="$CFLAGS" |
| 2404 | fi |
| 2405 | |
| 2406 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 2407 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2408 | ac_ext=c |
| 2409 | ac_cpp='$CPP $CPPFLAGS' |
| 2410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2413 | if test -n "$ac_tool_prefix"; then |
| 2414 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2415 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2417 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2418 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2419 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2420 | else |
| 2421 | if test -n "$CC"; then |
| 2422 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2423 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2425 | for as_dir in $PATH |
| 2426 | do |
| 2427 | IFS=$as_save_IFS |
| 2428 | test -z "$as_dir" && as_dir=. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2429 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2431 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2433 | break 2 |
| 2434 | fi |
| 2435 | done |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2436 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2437 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2438 | |
| 2439 | fi |
| 2440 | fi |
| 2441 | CC=$ac_cv_prog_CC |
| 2442 | if test -n "$CC"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2444 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2445 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2447 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2448 | fi |
| 2449 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2450 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2451 | fi |
| 2452 | if test -z "$ac_cv_prog_CC"; then |
| 2453 | ac_ct_CC=$CC |
| 2454 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2455 | set dummy gcc; ac_word=$2 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2457 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2458 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2459 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2460 | else |
| 2461 | if test -n "$ac_ct_CC"; then |
| 2462 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2463 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2465 | for as_dir in $PATH |
| 2466 | do |
| 2467 | IFS=$as_save_IFS |
| 2468 | test -z "$as_dir" && as_dir=. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2469 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2470 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2471 | ac_cv_prog_ac_ct_CC="gcc" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2472 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2473 | break 2 |
| 2474 | fi |
| 2475 | done |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2476 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2477 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2478 | |
| 2479 | fi |
| 2480 | fi |
| 2481 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2482 | if test -n "$ac_ct_CC"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2484 | $as_echo "$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2485 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2487 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2488 | fi |
| 2489 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2490 | if test "x$ac_ct_CC" = x; then |
| 2491 | CC="" |
| 2492 | else |
| 2493 | case $cross_compiling:$ac_tool_warned in |
| 2494 | yes:) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2496 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2497 | ac_tool_warned=yes ;; |
| 2498 | esac |
| 2499 | CC=$ac_ct_CC |
| 2500 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2501 | else |
| 2502 | CC="$ac_cv_prog_CC" |
| 2503 | fi |
| 2504 | |
| 2505 | if test -z "$CC"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2506 | if test -n "$ac_tool_prefix"; then |
| 2507 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2508 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2510 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2511 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2512 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2513 | else |
| 2514 | if test -n "$CC"; then |
| 2515 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2516 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2518 | for as_dir in $PATH |
| 2519 | do |
| 2520 | IFS=$as_save_IFS |
| 2521 | test -z "$as_dir" && as_dir=. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2522 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2524 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2526 | break 2 |
| 2527 | fi |
| 2528 | done |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2529 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2530 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2531 | |
| 2532 | fi |
| 2533 | fi |
| 2534 | CC=$ac_cv_prog_CC |
| 2535 | if test -n "$CC"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2537 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2538 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2540 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2541 | fi |
| 2542 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2543 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2544 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2545 | fi |
| 2546 | if test -z "$CC"; then |
| 2547 | # Extract the first word of "cc", so it can be a program name with args. |
| 2548 | set dummy cc; ac_word=$2 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2550 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2551 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2552 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2553 | else |
| 2554 | if test -n "$CC"; then |
| 2555 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2556 | else |
| 2557 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2559 | for as_dir in $PATH |
| 2560 | do |
| 2561 | IFS=$as_save_IFS |
| 2562 | test -z "$as_dir" && as_dir=. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2563 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2564 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2565 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2566 | ac_prog_rejected=yes |
| 2567 | continue |
| 2568 | fi |
| 2569 | ac_cv_prog_CC="cc" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2570 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2571 | break 2 |
| 2572 | fi |
| 2573 | done |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2574 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2575 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2576 | |
| 2577 | if test $ac_prog_rejected = yes; then |
| 2578 | # We found a bogon in the path, so make sure we never use it. |
| 2579 | set dummy $ac_cv_prog_CC |
| 2580 | shift |
| 2581 | if test $# != 0; then |
| 2582 | # We chose a different compiler from the bogus one. |
| 2583 | # However, it has the same basename, so the bogon will be chosen |
| 2584 | # first if we set CC to just the basename; use the full file name. |
| 2585 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2586 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2587 | fi |
| 2588 | fi |
| 2589 | fi |
| 2590 | fi |
| 2591 | CC=$ac_cv_prog_CC |
| 2592 | if test -n "$CC"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2594 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2595 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2597 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2598 | fi |
| 2599 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2600 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2601 | fi |
| 2602 | if test -z "$CC"; then |
| 2603 | if test -n "$ac_tool_prefix"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2604 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2605 | do |
| 2606 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2607 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2609 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2610 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2611 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2612 | else |
| 2613 | if test -n "$CC"; then |
| 2614 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2615 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2617 | for as_dir in $PATH |
| 2618 | do |
| 2619 | IFS=$as_save_IFS |
| 2620 | test -z "$as_dir" && as_dir=. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2621 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2623 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2625 | break 2 |
| 2626 | fi |
| 2627 | done |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2628 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2629 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2630 | |
| 2631 | fi |
| 2632 | fi |
| 2633 | CC=$ac_cv_prog_CC |
| 2634 | if test -n "$CC"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2636 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2637 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2639 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2640 | fi |
| 2641 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2642 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2643 | test -n "$CC" && break |
| 2644 | done |
| 2645 | fi |
| 2646 | if test -z "$CC"; then |
| 2647 | ac_ct_CC=$CC |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2648 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2649 | do |
| 2650 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2651 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2653 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2654 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2655 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2656 | else |
| 2657 | if test -n "$ac_ct_CC"; then |
| 2658 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2659 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2661 | for as_dir in $PATH |
| 2662 | do |
| 2663 | IFS=$as_save_IFS |
| 2664 | test -z "$as_dir" && as_dir=. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2665 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2666 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2667 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2668 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2669 | break 2 |
| 2670 | fi |
| 2671 | done |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2672 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2673 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2674 | |
| 2675 | fi |
| 2676 | fi |
| 2677 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2678 | if test -n "$ac_ct_CC"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2680 | $as_echo "$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2681 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2683 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2684 | fi |
| 2685 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2686 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2687 | test -n "$ac_ct_CC" && break |
| 2688 | done |
| 2689 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2690 | if test "x$ac_ct_CC" = x; then |
| 2691 | CC="" |
| 2692 | else |
| 2693 | case $cross_compiling:$ac_tool_warned in |
| 2694 | yes:) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2696 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2697 | ac_tool_warned=yes ;; |
| 2698 | esac |
| 2699 | CC=$ac_ct_CC |
| 2700 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2701 | fi |
| 2702 | |
| 2703 | fi |
| 2704 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2705 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2706 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2707 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2708 | as_fn_error "no acceptable C compiler found in \$PATH |
| 2709 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2710 | |
| 2711 | # Provide some information about the compiler. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2712 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2713 | set X $ac_compile |
| 2714 | ac_compiler=$2 |
| 2715 | for ac_option in --version -v -V -qversion; do |
| 2716 | { { ac_try="$ac_compiler $ac_option >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2717 | case "(($ac_try" in |
| 2718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2719 | *) ac_try_echo=$ac_try;; |
| 2720 | esac |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2722 | $as_echo "$ac_try_echo"; } >&5 |
| 2723 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2724 | ac_status=$? |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2725 | if test -s conftest.err; then |
| 2726 | sed '10a\ |
| 2727 | ... rest of stderr output deleted ... |
| 2728 | 10q' conftest.err >conftest.er1 |
| 2729 | cat conftest.er1 >&5 |
| 2730 | fi |
| 2731 | rm -f conftest.er1 conftest.err |
| 2732 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2733 | test $ac_status = 0; } |
| 2734 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2735 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2737 | /* end confdefs.h. */ |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2738 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2739 | int |
| 2740 | main () |
| 2741 | { |
| 2742 | |
| 2743 | ; |
| 2744 | return 0; |
| 2745 | } |
| 2746 | _ACEOF |
| 2747 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2748 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2749 | # Try to create an executable without -o first, disregard a.out. |
| 2750 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2751 | # of exeext. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2753 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2754 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2755 | |
| 2756 | # The possible output files: |
| 2757 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2758 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2759 | ac_rmfiles= |
| 2760 | for ac_file in $ac_files |
| 2761 | do |
| 2762 | case $ac_file in |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2763 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2764 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2765 | esac |
| 2766 | done |
| 2767 | rm -f $ac_rmfiles |
| 2768 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2769 | if { { ac_try="$ac_link_default" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2770 | case "(($ac_try" in |
| 2771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2772 | *) ac_try_echo=$ac_try;; |
| 2773 | esac |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2775 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2776 | (eval "$ac_link_default") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2777 | ac_status=$? |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2779 | test $ac_status = 0; }; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2780 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2781 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2782 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2783 | # so that the user can short-circuit this test for compilers unknown to |
| 2784 | # Autoconf. |
| 2785 | for ac_file in $ac_files '' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2786 | do |
| 2787 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2788 | case $ac_file in |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2789 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2790 | ;; |
| 2791 | [ab].out ) |
| 2792 | # We found the default executable, but exeext='' is most |
| 2793 | # certainly right. |
| 2794 | break;; |
| 2795 | *.* ) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2796 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2797 | then :; else |
| 2798 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2799 | fi |
| 2800 | # We set ac_cv_exeext here because the later test for it is not |
| 2801 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2802 | # argument, so we may need to know it at that point already. |
| 2803 | # Even if this section looks crufty: it has the advantage of |
| 2804 | # actually working. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2805 | break;; |
| 2806 | * ) |
| 2807 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2808 | esac |
| 2809 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2810 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2811 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2812 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2813 | ac_file='' |
| 2814 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2815 | if test -z "$ac_file"; then : |
| 2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2817 | $as_echo "no" >&6; } |
| 2818 | $as_echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2820 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2821 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2822 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2823 | { as_fn_set_status 77 |
| 2824 | as_fn_error "C compiler cannot create executables |
| 2825 | See \`config.log' for more details." "$LINENO" 5; }; } |
| 2826 | else |
| 2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2828 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2829 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2831 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2833 | $as_echo "$ac_file" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2834 | ac_exeext=$ac_cv_exeext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2835 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2836 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2837 | ac_clean_files=$ac_clean_files_save |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2839 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2840 | if { { ac_try="$ac_link" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2841 | case "(($ac_try" in |
| 2842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2843 | *) ac_try_echo=$ac_try;; |
| 2844 | esac |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2845 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2846 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2847 | (eval "$ac_link") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2848 | ac_status=$? |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2849 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2850 | test $ac_status = 0; }; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2851 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2852 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2853 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2854 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2855 | for ac_file in conftest.exe conftest conftest.*; do |
| 2856 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2857 | case $ac_file in |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2858 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2859 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2860 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2861 | * ) break;; |
| 2862 | esac |
| 2863 | done |
| 2864 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2865 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2866 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2867 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 2868 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2869 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2870 | rm -f conftest conftest$ac_cv_exeext |
| 2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2872 | $as_echo "$ac_cv_exeext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2873 | |
| 2874 | rm -f conftest.$ac_ext |
| 2875 | EXEEXT=$ac_cv_exeext |
| 2876 | ac_exeext=$EXEEXT |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2878 | /* end confdefs.h. */ |
| 2879 | #include <stdio.h> |
| 2880 | int |
| 2881 | main () |
| 2882 | { |
| 2883 | FILE *f = fopen ("conftest.out", "w"); |
| 2884 | return ferror (f) || fclose (f) != 0; |
| 2885 | |
| 2886 | ; |
| 2887 | return 0; |
| 2888 | } |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 2889 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2890 | ac_clean_files="$ac_clean_files conftest.out" |
| 2891 | # Check that the compiler produces executables we can run. If not, either |
| 2892 | # the compiler is broken, or we cross compile. |
| 2893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2894 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2895 | if test "$cross_compiling" != yes; then |
| 2896 | { { ac_try="$ac_link" |
| 2897 | case "(($ac_try" in |
| 2898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2899 | *) ac_try_echo=$ac_try;; |
| 2900 | esac |
| 2901 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2902 | $as_echo "$ac_try_echo"; } >&5 |
| 2903 | (eval "$ac_link") 2>&5 |
| 2904 | ac_status=$? |
| 2905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2906 | test $ac_status = 0; } |
| 2907 | if { ac_try='./conftest$ac_cv_exeext' |
| 2908 | { { case "(($ac_try" in |
| 2909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2910 | *) ac_try_echo=$ac_try;; |
| 2911 | esac |
| 2912 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2913 | $as_echo "$ac_try_echo"; } >&5 |
| 2914 | (eval "$ac_try") 2>&5 |
| 2915 | ac_status=$? |
| 2916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2917 | test $ac_status = 0; }; }; then |
| 2918 | cross_compiling=no |
| 2919 | else |
| 2920 | if test "$cross_compiling" = maybe; then |
| 2921 | cross_compiling=yes |
| 2922 | else |
| 2923 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2924 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2925 | as_fn_error "cannot run C compiled programs. |
| 2926 | If you meant to cross compile, use \`--host'. |
| 2927 | See \`config.log' for more details." "$LINENO" 5; } |
| 2928 | fi |
| 2929 | fi |
| 2930 | fi |
| 2931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2932 | $as_echo "$cross_compiling" >&6; } |
| 2933 | |
| 2934 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 2935 | ac_clean_files=$ac_clean_files_save |
| 2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2937 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2938 | if test "${ac_cv_objext+set}" = set; then : |
| 2939 | $as_echo_n "(cached) " >&6 |
| 2940 | else |
| 2941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2942 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2943 | |
| 2944 | int |
| 2945 | main () |
| 2946 | { |
| 2947 | |
| 2948 | ; |
| 2949 | return 0; |
| 2950 | } |
| 2951 | _ACEOF |
| 2952 | rm -f conftest.o conftest.obj |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2953 | if { { ac_try="$ac_compile" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2954 | case "(($ac_try" in |
| 2955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2956 | *) ac_try_echo=$ac_try;; |
| 2957 | esac |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2958 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2959 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2960 | (eval "$ac_compile") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2961 | ac_status=$? |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2962 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2963 | test $ac_status = 0; }; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2964 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2965 | test -f "$ac_file" || continue; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2966 | case $ac_file in |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2967 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2968 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2969 | break;; |
| 2970 | esac |
| 2971 | done |
| 2972 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2973 | $as_echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2975 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2976 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2977 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2978 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 2979 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2980 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2981 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2982 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 2984 | $as_echo "$ac_cv_objext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2985 | OBJEXT=$ac_cv_objext |
| 2986 | ac_objext=$OBJEXT |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 2988 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 2989 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 2990 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2991 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 2992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2993 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2994 | |
| 2995 | int |
| 2996 | main () |
| 2997 | { |
| 2998 | #ifndef __GNUC__ |
| 2999 | choke me |
| 3000 | #endif |
| 3001 | |
| 3002 | ; |
| 3003 | return 0; |
| 3004 | } |
| 3005 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3006 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3007 | ac_compiler_gnu=yes |
| 3008 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3009 | ac_compiler_gnu=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3010 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3012 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3013 | |
| 3014 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3016 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3017 | if test $ac_compiler_gnu = yes; then |
| 3018 | GCC=yes |
| 3019 | else |
| 3020 | GCC= |
| 3021 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3022 | ac_test_CFLAGS=${CFLAGS+set} |
| 3023 | ac_save_CFLAGS=$CFLAGS |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3025 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3026 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3027 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3028 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3029 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3030 | ac_c_werror_flag=yes |
| 3031 | ac_cv_prog_cc_g=no |
| 3032 | CFLAGS="-g" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3034 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3035 | |
| 3036 | int |
| 3037 | main () |
| 3038 | { |
| 3039 | |
| 3040 | ; |
| 3041 | return 0; |
| 3042 | } |
| 3043 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3044 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3045 | ac_cv_prog_cc_g=yes |
| 3046 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3047 | CFLAGS="" |
| 3048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3049 | /* end confdefs.h. */ |
| 3050 | |
| 3051 | int |
| 3052 | main () |
| 3053 | { |
| 3054 | |
| 3055 | ; |
| 3056 | return 0; |
| 3057 | } |
| 3058 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3059 | if ac_fn_c_try_compile "$LINENO"; then : |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 3060 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3061 | else |
| 3062 | ac_c_werror_flag=$ac_save_c_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3063 | CFLAGS="-g" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3065 | /* end confdefs.h. */ |
| 3066 | |
| 3067 | int |
| 3068 | main () |
| 3069 | { |
| 3070 | |
| 3071 | ; |
| 3072 | return 0; |
| 3073 | } |
| 3074 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3075 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3076 | ac_cv_prog_cc_g=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3077 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3079 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3081 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3083 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3084 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3086 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3087 | if test "$ac_test_CFLAGS" = set; then |
| 3088 | CFLAGS=$ac_save_CFLAGS |
| 3089 | elif test $ac_cv_prog_cc_g = yes; then |
| 3090 | if test "$GCC" = yes; then |
| 3091 | CFLAGS="-g -O2" |
| 3092 | else |
| 3093 | CFLAGS="-g" |
| 3094 | fi |
| 3095 | else |
| 3096 | if test "$GCC" = yes; then |
| 3097 | CFLAGS="-O2" |
| 3098 | else |
| 3099 | CFLAGS= |
| 3100 | fi |
| 3101 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3103 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3104 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 3105 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3106 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3107 | ac_cv_prog_cc_c89=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3108 | ac_save_CC=$CC |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3110 | /* end confdefs.h. */ |
| 3111 | #include <stdarg.h> |
| 3112 | #include <stdio.h> |
| 3113 | #include <sys/types.h> |
| 3114 | #include <sys/stat.h> |
| 3115 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3116 | struct buf { int x; }; |
| 3117 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3118 | static char *e (p, i) |
| 3119 | char **p; |
| 3120 | int i; |
| 3121 | { |
| 3122 | return p[i]; |
| 3123 | } |
| 3124 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3125 | { |
| 3126 | char *s; |
| 3127 | va_list v; |
| 3128 | va_start (v,p); |
| 3129 | s = g (p, va_arg (v,int)); |
| 3130 | va_end (v); |
| 3131 | return s; |
| 3132 | } |
| 3133 | |
| 3134 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3135 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3136 | These don't provoke an error unfortunately, instead are silently treated |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3137 | as 'x'. The following induces an error, until -std is added to get |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3138 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3139 | array size at least. It's necessary to write '\x00'==0 to get something |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3140 | that's true only with -std. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3141 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3142 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3143 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3144 | inside strings and character constants. */ |
| 3145 | #define FOO(x) 'x' |
| 3146 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3147 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3148 | int test (int i, double x); |
| 3149 | struct s1 {int (*f) (int a);}; |
| 3150 | struct s2 {int (*f) (double a);}; |
| 3151 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3152 | int argc; |
| 3153 | char **argv; |
| 3154 | int |
| 3155 | main () |
| 3156 | { |
| 3157 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3158 | ; |
| 3159 | return 0; |
| 3160 | } |
| 3161 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3162 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3163 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3164 | do |
| 3165 | CC="$ac_save_CC $ac_arg" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3166 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3167 | ac_cv_prog_cc_c89=$ac_arg |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3168 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3169 | rm -f core conftest.err conftest.$ac_objext |
| 3170 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3171 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3172 | rm -f conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3173 | CC=$ac_save_CC |
| 3174 | |
| 3175 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3176 | # AC_CACHE_VAL |
| 3177 | case "x$ac_cv_prog_cc_c89" in |
| 3178 | x) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3180 | $as_echo "none needed" >&6; } ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3181 | xno) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3183 | $as_echo "unsupported" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3184 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3185 | CC="$CC $ac_cv_prog_cc_c89" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3187 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3188 | esac |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3189 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3190 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3191 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3192 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3193 | ac_ext=c |
| 3194 | ac_cpp='$CPP $CPPFLAGS' |
| 3195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3198 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3199 | ac_ext=cpp |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3200 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3201 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3202 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3203 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3204 | if test -z "$CXX"; then |
| 3205 | if test -n "$CCC"; then |
| 3206 | CXX=$CCC |
| 3207 | else |
| 3208 | if test -n "$ac_tool_prefix"; then |
| 3209 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3210 | do |
| 3211 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3212 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3214 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3215 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 3216 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3217 | else |
| 3218 | if test -n "$CXX"; then |
| 3219 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3220 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3222 | for as_dir in $PATH |
| 3223 | do |
| 3224 | IFS=$as_save_IFS |
| 3225 | test -z "$as_dir" && as_dir=. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3226 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3227 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3228 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3230 | break 2 |
| 3231 | fi |
| 3232 | done |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3233 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3234 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3235 | |
| 3236 | fi |
| 3237 | fi |
| 3238 | CXX=$ac_cv_prog_CXX |
| 3239 | if test -n "$CXX"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 3241 | $as_echo "$CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3242 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3244 | $as_echo "no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3245 | fi |
| 3246 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3247 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3248 | test -n "$CXX" && break |
| 3249 | done |
| 3250 | fi |
| 3251 | if test -z "$CXX"; then |
| 3252 | ac_ct_CXX=$CXX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3253 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3254 | do |
| 3255 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3256 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3258 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3259 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 3260 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3261 | else |
| 3262 | if test -n "$ac_ct_CXX"; then |
| 3263 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3264 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3266 | for as_dir in $PATH |
| 3267 | do |
| 3268 | IFS=$as_save_IFS |
| 3269 | test -z "$as_dir" && as_dir=. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3270 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3271 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3272 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3274 | break 2 |
| 3275 | fi |
| 3276 | done |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3277 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3278 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3279 | |
| 3280 | fi |
| 3281 | fi |
| 3282 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3283 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 3285 | $as_echo "$ac_ct_CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3286 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3288 | $as_echo "no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3289 | fi |
| 3290 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3291 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3292 | test -n "$ac_ct_CXX" && break |
| 3293 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3294 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3295 | if test "x$ac_ct_CXX" = x; then |
| 3296 | CXX="g++" |
| 3297 | else |
| 3298 | case $cross_compiling:$ac_tool_warned in |
| 3299 | yes:) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3301 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3302 | ac_tool_warned=yes ;; |
| 3303 | esac |
| 3304 | CXX=$ac_ct_CXX |
| 3305 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3306 | fi |
| 3307 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3308 | fi |
| 3309 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3310 | # Provide some information about the compiler. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3311 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 3312 | set X $ac_compile |
| 3313 | ac_compiler=$2 |
| 3314 | for ac_option in --version -v -V -qversion; do |
| 3315 | { { ac_try="$ac_compiler $ac_option >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3316 | case "(($ac_try" in |
| 3317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3318 | *) ac_try_echo=$ac_try;; |
| 3319 | esac |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3320 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3321 | $as_echo "$ac_try_echo"; } >&5 |
| 3322 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3323 | ac_status=$? |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3324 | if test -s conftest.err; then |
| 3325 | sed '10a\ |
| 3326 | ... rest of stderr output deleted ... |
| 3327 | 10q' conftest.err >conftest.er1 |
| 3328 | cat conftest.er1 >&5 |
| 3329 | fi |
| 3330 | rm -f conftest.er1 conftest.err |
| 3331 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3332 | test $ac_status = 0; } |
| 3333 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3334 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 3336 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 3337 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 3338 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3339 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3341 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3342 | |
| 3343 | int |
| 3344 | main () |
| 3345 | { |
| 3346 | #ifndef __GNUC__ |
| 3347 | choke me |
| 3348 | #endif |
| 3349 | |
| 3350 | ; |
| 3351 | return 0; |
| 3352 | } |
| 3353 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3354 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3355 | ac_compiler_gnu=yes |
| 3356 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3357 | ac_compiler_gnu=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3358 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3360 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3361 | |
| 3362 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3364 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 3365 | if test $ac_compiler_gnu = yes; then |
| 3366 | GXX=yes |
| 3367 | else |
| 3368 | GXX= |
| 3369 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3370 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3371 | ac_save_CXXFLAGS=$CXXFLAGS |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 3373 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 3374 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 3375 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3376 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3377 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3378 | ac_cxx_werror_flag=yes |
| 3379 | ac_cv_prog_cxx_g=no |
| 3380 | CXXFLAGS="-g" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3382 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3383 | |
| 3384 | int |
| 3385 | main () |
| 3386 | { |
| 3387 | |
| 3388 | ; |
| 3389 | return 0; |
| 3390 | } |
| 3391 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3392 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3393 | ac_cv_prog_cxx_g=yes |
| 3394 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3395 | CXXFLAGS="" |
| 3396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3397 | /* end confdefs.h. */ |
| 3398 | |
| 3399 | int |
| 3400 | main () |
| 3401 | { |
| 3402 | |
| 3403 | ; |
| 3404 | return 0; |
| 3405 | } |
| 3406 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3407 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 3408 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3409 | else |
| 3410 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3411 | CXXFLAGS="-g" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3413 | /* end confdefs.h. */ |
| 3414 | |
| 3415 | int |
| 3416 | main () |
| 3417 | { |
| 3418 | |
| 3419 | ; |
| 3420 | return 0; |
| 3421 | } |
| 3422 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3423 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3424 | ac_cv_prog_cxx_g=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3425 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3427 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3429 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3431 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3432 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 3434 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3435 | if test "$ac_test_CXXFLAGS" = set; then |
| 3436 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3437 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3438 | if test "$GXX" = yes; then |
| 3439 | CXXFLAGS="-g -O2" |
| 3440 | else |
| 3441 | CXXFLAGS="-g" |
| 3442 | fi |
| 3443 | else |
| 3444 | if test "$GXX" = yes; then |
| 3445 | CXXFLAGS="-O2" |
| 3446 | else |
| 3447 | CXXFLAGS= |
| 3448 | fi |
| 3449 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3450 | ac_ext=c |
| 3451 | ac_cpp='$CPP $CPPFLAGS' |
| 3452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3455 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3456 | ac_ext=c |
| 3457 | ac_cpp='$CPP $CPPFLAGS' |
| 3458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3461 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3462 | |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3463 | if test -z "$CROSS_COMPILE"; then |
| 3464 | CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'` |
| 3465 | fi |
| 3466 | |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 3467 | if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3468 | |
| 3469 | if test "$LD" = ""; then LD="$CC"; fi |
| 3470 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 3471 | if test "$LDOUT" = ""; then LDOUT="-o "; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3472 | |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 3473 | if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3474 | |
| 3475 | if test "$OBJEXT" = ""; then OBJEXT='o'; fi |
| 3476 | |
| 3477 | if test "$LIBEXT" = ""; then LIBEXT='a'; fi |
| 3478 | |
| 3479 | if test "$LIBEXT2" = ""; then LIBEXT2=""; fi |
| 3480 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 3481 | if test "$CC_OUT" = ""; then CC_OUT="-o "; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3482 | |
| 3483 | if test "$CC_INC" = ""; then CC_INC="-I"; fi |
| 3484 | |
| 3485 | if test "$CC_DEF" = ""; then CC_DEF="-D"; fi |
| 3486 | |
| 3487 | if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi |
| 3488 | |
| 3489 | if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi |
| 3490 | |
| 3491 | |
| 3492 | |
| 3493 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3494 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3495 | |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3496 | |
| 3497 | case $host in |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3498 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3499 | if pwd -W 2&> /dev/null; then |
| 3500 | ac_pjdir=`pwd -W` |
| 3501 | else |
| 3502 | # We're probably cross-compiling mingw on Linux |
| 3503 | ac_pjdir=`pwd` |
| 3504 | fi |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3505 | ;; |
| 3506 | *) |
| 3507 | ac_pjdir=`pwd` |
| 3508 | ;; |
| 3509 | esac |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 3510 | |
| 3511 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 3513 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
| 3514 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : |
| 3515 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3516 | else |
| 3517 | ac_check_lib_save_LIBS=$LIBS |
| 3518 | LIBS="-lpthread $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3520 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3521 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3522 | /* Override any GCC internal prototype to avoid an error. |
| 3523 | Use char because int might match the return type of a GCC |
| 3524 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3525 | #ifdef __cplusplus |
| 3526 | extern "C" |
| 3527 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3528 | char pthread_create (); |
| 3529 | int |
| 3530 | main () |
| 3531 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3532 | return pthread_create (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3533 | ; |
| 3534 | return 0; |
| 3535 | } |
| 3536 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3537 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3538 | ac_cv_lib_pthread_pthread_create=yes |
| 3539 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3540 | ac_cv_lib_pthread_pthread_create=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3541 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3542 | rm -f core conftest.err conftest.$ac_objext \ |
| 3543 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3544 | LIBS=$ac_check_lib_save_LIBS |
| 3545 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 3547 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
| 3548 | if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3549 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3550 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3551 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3552 | |
| 3553 | LIBS="-lpthread $LIBS" |
| 3554 | |
| 3555 | fi |
| 3556 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5 |
| 3558 | $as_echo_n "checking for puts in -lwsock32... " >&6; } |
| 3559 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then : |
| 3560 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3561 | else |
| 3562 | ac_check_lib_save_LIBS=$LIBS |
| 3563 | LIBS="-lwsock32 $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3565 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3566 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3567 | /* Override any GCC internal prototype to avoid an error. |
| 3568 | Use char because int might match the return type of a GCC |
| 3569 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3570 | #ifdef __cplusplus |
| 3571 | extern "C" |
| 3572 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3573 | char puts (); |
| 3574 | int |
| 3575 | main () |
| 3576 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3577 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3578 | ; |
| 3579 | return 0; |
| 3580 | } |
| 3581 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3582 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3583 | ac_cv_lib_wsock32_puts=yes |
| 3584 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3585 | ac_cv_lib_wsock32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3586 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3587 | rm -f core conftest.err conftest.$ac_objext \ |
| 3588 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3589 | LIBS=$ac_check_lib_save_LIBS |
| 3590 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5 |
| 3592 | $as_echo "$ac_cv_lib_wsock32_puts" >&6; } |
| 3593 | if test "x$ac_cv_lib_wsock32_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3594 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3595 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3596 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3597 | |
| 3598 | LIBS="-lwsock32 $LIBS" |
| 3599 | |
| 3600 | fi |
| 3601 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5 |
| 3603 | $as_echo_n "checking for puts in -lws2_32... " >&6; } |
| 3604 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then : |
| 3605 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3606 | else |
| 3607 | ac_check_lib_save_LIBS=$LIBS |
| 3608 | LIBS="-lws2_32 $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3610 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3611 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3612 | /* Override any GCC internal prototype to avoid an error. |
| 3613 | Use char because int might match the return type of a GCC |
| 3614 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3615 | #ifdef __cplusplus |
| 3616 | extern "C" |
| 3617 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3618 | char puts (); |
| 3619 | int |
| 3620 | main () |
| 3621 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3622 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3623 | ; |
| 3624 | return 0; |
| 3625 | } |
| 3626 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3627 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3628 | ac_cv_lib_ws2_32_puts=yes |
| 3629 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3630 | ac_cv_lib_ws2_32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3631 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3632 | rm -f core conftest.err conftest.$ac_objext \ |
| 3633 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3634 | LIBS=$ac_check_lib_save_LIBS |
| 3635 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5 |
| 3637 | $as_echo "$ac_cv_lib_ws2_32_puts" >&6; } |
| 3638 | if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3639 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3640 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3641 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3642 | |
| 3643 | LIBS="-lws2_32 $LIBS" |
| 3644 | |
| 3645 | fi |
| 3646 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5 |
| 3648 | $as_echo_n "checking for puts in -lole32... " >&6; } |
| 3649 | if test "${ac_cv_lib_ole32_puts+set}" = set; then : |
| 3650 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3651 | else |
| 3652 | ac_check_lib_save_LIBS=$LIBS |
| 3653 | LIBS="-lole32 $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3655 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3656 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3657 | /* Override any GCC internal prototype to avoid an error. |
| 3658 | Use char because int might match the return type of a GCC |
| 3659 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3660 | #ifdef __cplusplus |
| 3661 | extern "C" |
| 3662 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3663 | char puts (); |
| 3664 | int |
| 3665 | main () |
| 3666 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3667 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3668 | ; |
| 3669 | return 0; |
| 3670 | } |
| 3671 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3672 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3673 | ac_cv_lib_ole32_puts=yes |
| 3674 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3675 | ac_cv_lib_ole32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3676 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3677 | rm -f core conftest.err conftest.$ac_objext \ |
| 3678 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3679 | LIBS=$ac_check_lib_save_LIBS |
| 3680 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5 |
| 3682 | $as_echo "$ac_cv_lib_ole32_puts" >&6; } |
| 3683 | if test "x$ac_cv_lib_ole32_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3684 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3685 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3686 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3687 | |
| 3688 | LIBS="-lole32 $LIBS" |
| 3689 | |
| 3690 | fi |
| 3691 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5 |
| 3693 | $as_echo_n "checking for puts in -lwinmm... " >&6; } |
| 3694 | if test "${ac_cv_lib_winmm_puts+set}" = set; then : |
| 3695 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3696 | else |
| 3697 | ac_check_lib_save_LIBS=$LIBS |
| 3698 | LIBS="-lwinmm $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3700 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3701 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3702 | /* Override any GCC internal prototype to avoid an error. |
| 3703 | Use char because int might match the return type of a GCC |
| 3704 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3705 | #ifdef __cplusplus |
| 3706 | extern "C" |
| 3707 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3708 | char puts (); |
| 3709 | int |
| 3710 | main () |
| 3711 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3712 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3713 | ; |
| 3714 | return 0; |
| 3715 | } |
| 3716 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3717 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3718 | ac_cv_lib_winmm_puts=yes |
| 3719 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3720 | ac_cv_lib_winmm_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3721 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3722 | rm -f core conftest.err conftest.$ac_objext \ |
| 3723 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3724 | LIBS=$ac_check_lib_save_LIBS |
| 3725 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5 |
| 3727 | $as_echo "$ac_cv_lib_winmm_puts" >&6; } |
| 3728 | if test "x$ac_cv_lib_winmm_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3729 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3730 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3731 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3732 | |
| 3733 | LIBS="-lwinmm $LIBS" |
| 3734 | |
| 3735 | fi |
| 3736 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5 |
| 3738 | $as_echo_n "checking for puts in -lsocket... " >&6; } |
| 3739 | if test "${ac_cv_lib_socket_puts+set}" = set; then : |
| 3740 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3741 | else |
| 3742 | ac_check_lib_save_LIBS=$LIBS |
| 3743 | LIBS="-lsocket $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3745 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3746 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3747 | /* Override any GCC internal prototype to avoid an error. |
| 3748 | Use char because int might match the return type of a GCC |
| 3749 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3750 | #ifdef __cplusplus |
| 3751 | extern "C" |
| 3752 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3753 | char puts (); |
| 3754 | int |
| 3755 | main () |
| 3756 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3757 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3758 | ; |
| 3759 | return 0; |
| 3760 | } |
| 3761 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3762 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3763 | ac_cv_lib_socket_puts=yes |
| 3764 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3765 | ac_cv_lib_socket_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3766 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3767 | rm -f core conftest.err conftest.$ac_objext \ |
| 3768 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3769 | LIBS=$ac_check_lib_save_LIBS |
| 3770 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5 |
| 3772 | $as_echo "$ac_cv_lib_socket_puts" >&6; } |
| 3773 | if test "x$ac_cv_lib_socket_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3774 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3775 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3776 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3777 | |
| 3778 | LIBS="-lsocket $LIBS" |
| 3779 | |
| 3780 | fi |
| 3781 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5 |
| 3783 | $as_echo_n "checking for puts in -lrt... " >&6; } |
| 3784 | if test "${ac_cv_lib_rt_puts+set}" = set; then : |
| 3785 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3786 | else |
| 3787 | ac_check_lib_save_LIBS=$LIBS |
| 3788 | LIBS="-lrt $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3790 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3791 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3792 | /* Override any GCC internal prototype to avoid an error. |
| 3793 | Use char because int might match the return type of a GCC |
| 3794 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3795 | #ifdef __cplusplus |
| 3796 | extern "C" |
| 3797 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3798 | char puts (); |
| 3799 | int |
| 3800 | main () |
| 3801 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3802 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3803 | ; |
| 3804 | return 0; |
| 3805 | } |
| 3806 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3807 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3808 | ac_cv_lib_rt_puts=yes |
| 3809 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3810 | ac_cv_lib_rt_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3811 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3812 | rm -f core conftest.err conftest.$ac_objext \ |
| 3813 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3814 | LIBS=$ac_check_lib_save_LIBS |
| 3815 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5 |
| 3817 | $as_echo "$ac_cv_lib_rt_puts" >&6; } |
| 3818 | if test "x$ac_cv_lib_rt_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3819 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3820 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3821 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3822 | |
| 3823 | LIBS="-lrt $LIBS" |
| 3824 | |
| 3825 | fi |
| 3826 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5 |
| 3828 | $as_echo_n "checking for puts in -lnsl... " >&6; } |
| 3829 | if test "${ac_cv_lib_nsl_puts+set}" = set; then : |
| 3830 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3831 | else |
| 3832 | ac_check_lib_save_LIBS=$LIBS |
| 3833 | LIBS="-lnsl $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3835 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3836 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3837 | /* Override any GCC internal prototype to avoid an error. |
| 3838 | Use char because int might match the return type of a GCC |
| 3839 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3840 | #ifdef __cplusplus |
| 3841 | extern "C" |
| 3842 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3843 | char puts (); |
| 3844 | int |
| 3845 | main () |
| 3846 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3847 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3848 | ; |
| 3849 | return 0; |
| 3850 | } |
| 3851 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3852 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3853 | ac_cv_lib_nsl_puts=yes |
| 3854 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3855 | ac_cv_lib_nsl_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3856 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3857 | rm -f core conftest.err conftest.$ac_objext \ |
| 3858 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3859 | LIBS=$ac_check_lib_save_LIBS |
| 3860 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5 |
| 3862 | $as_echo "$ac_cv_lib_nsl_puts" >&6; } |
| 3863 | if test "x$ac_cv_lib_nsl_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3864 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3865 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3866 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3867 | |
| 3868 | LIBS="-lnsl $LIBS" |
| 3869 | |
| 3870 | fi |
| 3871 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 3873 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 3874 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
| 3875 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3876 | else |
| 3877 | ac_check_lib_save_LIBS=$LIBS |
| 3878 | LIBS="-luuid $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3880 | /* end confdefs.h. */ |
| 3881 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3882 | /* Override any GCC internal prototype to avoid an error. |
| 3883 | Use char because int might match the return type of a GCC |
| 3884 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3885 | #ifdef __cplusplus |
| 3886 | extern "C" |
| 3887 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3888 | char uuid_generate (); |
| 3889 | int |
| 3890 | main () |
| 3891 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3892 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3893 | ; |
| 3894 | return 0; |
| 3895 | } |
| 3896 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3897 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3898 | ac_cv_lib_uuid_uuid_generate=yes |
| 3899 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3900 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3901 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3902 | rm -f core conftest.err conftest.$ac_objext \ |
| 3903 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3904 | LIBS=$ac_check_lib_save_LIBS |
| 3905 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3907 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 3908 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3909 | cat >>confdefs.h <<_ACEOF |
| 3910 | #define HAVE_LIBUUID 1 |
| 3911 | _ACEOF |
| 3912 | |
| 3913 | LIBS="-luuid $LIBS" |
| 3914 | |
| 3915 | fi |
| 3916 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 3918 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 3919 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
| 3920 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3921 | else |
| 3922 | ac_check_lib_save_LIBS=$LIBS |
| 3923 | LIBS="-luuid $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3925 | /* end confdefs.h. */ |
| 3926 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3927 | /* Override any GCC internal prototype to avoid an error. |
| 3928 | Use char because int might match the return type of a GCC |
| 3929 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3930 | #ifdef __cplusplus |
| 3931 | extern "C" |
| 3932 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3933 | char uuid_generate (); |
| 3934 | int |
| 3935 | main () |
| 3936 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3937 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3938 | ; |
| 3939 | return 0; |
| 3940 | } |
| 3941 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3942 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3943 | ac_cv_lib_uuid_uuid_generate=yes |
| 3944 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3945 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3946 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3947 | rm -f core conftest.err conftest.$ac_objext \ |
| 3948 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3949 | LIBS=$ac_check_lib_save_LIBS |
| 3950 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3952 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 3953 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3954 | ac_has_uuid_lib=1 |
| 3955 | fi |
| 3956 | |
| 3957 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 3959 | $as_echo "Setting PJ_M_NAME to $target_cpu" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3960 | cat >>confdefs.h <<_ACEOF |
| 3961 | #define PJ_M_NAME "$target_cpu" |
| 3962 | _ACEOF |
| 3963 | |
| 3964 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5 |
| 3966 | $as_echo_n "checking memory alignment... " >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3967 | case $target in |
Benny Prijono | b18e950 | 2010-05-19 05:51:38 +0000 | [diff] [blame] | 3968 | sparc64-* | ia64-* | x86_64-* ) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3969 | $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3970 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5 |
| 3972 | $as_echo "8 bytes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3973 | ;; |
| 3974 | * ) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3975 | $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3976 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5 |
| 3978 | $as_echo "4 bytes (default)" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3979 | ;; |
| 3980 | esac |
| 3981 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3982 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3983 | ac_ext=c |
| 3984 | ac_cpp='$CPP $CPPFLAGS' |
| 3985 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3986 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3987 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3989 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3990 | # On Suns, sometimes $CPP names a directory. |
| 3991 | if test -n "$CPP" && test -d "$CPP"; then |
| 3992 | CPP= |
| 3993 | fi |
| 3994 | if test -z "$CPP"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 3995 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 3996 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3997 | else |
| 3998 | # Double quotes because CPP needs to be expanded |
| 3999 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4000 | do |
| 4001 | ac_preproc_ok=false |
| 4002 | for ac_c_preproc_warn_flag in '' yes |
| 4003 | do |
| 4004 | # Use a header file that comes with gcc, so configuring glibc |
| 4005 | # with a fresh cross-compiler works. |
| 4006 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4007 | # <limits.h> exists even on freestanding compilers. |
| 4008 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4009 | # not just through cpp. "Syntax error" is here to catch this case. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4011 | /* end confdefs.h. */ |
| 4012 | #ifdef __STDC__ |
| 4013 | # include <limits.h> |
| 4014 | #else |
| 4015 | # include <assert.h> |
| 4016 | #endif |
| 4017 | Syntax error |
| 4018 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4019 | if ac_fn_c_try_cpp "$LINENO"; then : |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4020 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4021 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4022 | # Broken: fails on valid input. |
| 4023 | continue |
| 4024 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4025 | rm -f conftest.err conftest.$ac_ext |
| 4026 | |
| 4027 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4028 | # can be detected and how. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4030 | /* end confdefs.h. */ |
| 4031 | #include <ac_nonexistent.h> |
| 4032 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4033 | if ac_fn_c_try_cpp "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4034 | # Broken: success on invalid input. |
| 4035 | continue |
| 4036 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4037 | # Passes both tests. |
| 4038 | ac_preproc_ok=: |
| 4039 | break |
| 4040 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4041 | rm -f conftest.err conftest.$ac_ext |
| 4042 | |
| 4043 | done |
| 4044 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4045 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4046 | if $ac_preproc_ok; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4047 | break |
| 4048 | fi |
| 4049 | |
| 4050 | done |
| 4051 | ac_cv_prog_CPP=$CPP |
| 4052 | |
| 4053 | fi |
| 4054 | CPP=$ac_cv_prog_CPP |
| 4055 | else |
| 4056 | ac_cv_prog_CPP=$CPP |
| 4057 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4059 | $as_echo "$CPP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4060 | ac_preproc_ok=false |
| 4061 | for ac_c_preproc_warn_flag in '' yes |
| 4062 | do |
| 4063 | # Use a header file that comes with gcc, so configuring glibc |
| 4064 | # with a fresh cross-compiler works. |
| 4065 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4066 | # <limits.h> exists even on freestanding compilers. |
| 4067 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4068 | # not just through cpp. "Syntax error" is here to catch this case. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4070 | /* end confdefs.h. */ |
| 4071 | #ifdef __STDC__ |
| 4072 | # include <limits.h> |
| 4073 | #else |
| 4074 | # include <assert.h> |
| 4075 | #endif |
| 4076 | Syntax error |
| 4077 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4078 | if ac_fn_c_try_cpp "$LINENO"; then : |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4079 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4080 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4081 | # Broken: fails on valid input. |
| 4082 | continue |
| 4083 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4084 | rm -f conftest.err conftest.$ac_ext |
| 4085 | |
| 4086 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4087 | # can be detected and how. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4089 | /* end confdefs.h. */ |
| 4090 | #include <ac_nonexistent.h> |
| 4091 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4092 | if ac_fn_c_try_cpp "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4093 | # Broken: success on invalid input. |
| 4094 | continue |
| 4095 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4096 | # Passes both tests. |
| 4097 | ac_preproc_ok=: |
| 4098 | break |
| 4099 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4100 | rm -f conftest.err conftest.$ac_ext |
| 4101 | |
| 4102 | done |
| 4103 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4104 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4105 | if $ac_preproc_ok; then : |
| 4106 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4107 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4108 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4109 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4110 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4111 | See \`config.log' for more details." "$LINENO" 5; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4112 | fi |
| 4113 | |
| 4114 | ac_ext=c |
| 4115 | ac_cpp='$CPP $CPPFLAGS' |
| 4116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4119 | |
| 4120 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4122 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4123 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 4124 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4125 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4126 | if test -z "$GREP"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4127 | ac_path_GREP_found=false |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4128 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4130 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4131 | do |
| 4132 | IFS=$as_save_IFS |
| 4133 | test -z "$as_dir" && as_dir=. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4134 | for ac_prog in grep ggrep; do |
| 4135 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4136 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4137 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4138 | # Check for GNU ac_path_GREP and select it if it is found. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4139 | # Check for GNU $ac_path_GREP |
| 4140 | case `"$ac_path_GREP" --version 2>&1` in |
| 4141 | *GNU*) |
| 4142 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4143 | *) |
| 4144 | ac_count=0 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4145 | $as_echo_n 0123456789 >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4146 | while : |
| 4147 | do |
| 4148 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4149 | mv "conftest.tmp" "conftest.in" |
| 4150 | cp "conftest.in" "conftest.nl" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4151 | $as_echo 'GREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4152 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4153 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4154 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4155 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4156 | # Best one so far, save it but keep looking for a better one |
| 4157 | ac_cv_path_GREP="$ac_path_GREP" |
| 4158 | ac_path_GREP_max=$ac_count |
| 4159 | fi |
| 4160 | # 10*(2^10) chars as input seems more than enough |
| 4161 | test $ac_count -gt 10 && break |
| 4162 | done |
| 4163 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4164 | esac |
| 4165 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4166 | $ac_path_GREP_found && break 3 |
| 4167 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4168 | done |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4169 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4170 | IFS=$as_save_IFS |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4171 | if test -z "$ac_cv_path_GREP"; then |
| 4172 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4173 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4174 | else |
| 4175 | ac_cv_path_GREP=$GREP |
| 4176 | fi |
| 4177 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4178 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4180 | $as_echo "$ac_cv_path_GREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4181 | GREP="$ac_cv_path_GREP" |
| 4182 | |
| 4183 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4185 | $as_echo_n "checking for egrep... " >&6; } |
| 4186 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4187 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4188 | else |
| 4189 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4190 | then ac_cv_path_EGREP="$GREP -E" |
| 4191 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4192 | if test -z "$EGREP"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4193 | ac_path_EGREP_found=false |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4194 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4196 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4197 | do |
| 4198 | IFS=$as_save_IFS |
| 4199 | test -z "$as_dir" && as_dir=. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4200 | for ac_prog in egrep; do |
| 4201 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4202 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4203 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4204 | # Check for GNU ac_path_EGREP and select it if it is found. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4205 | # Check for GNU $ac_path_EGREP |
| 4206 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4207 | *GNU*) |
| 4208 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4209 | *) |
| 4210 | ac_count=0 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4211 | $as_echo_n 0123456789 >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4212 | while : |
| 4213 | do |
| 4214 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4215 | mv "conftest.tmp" "conftest.in" |
| 4216 | cp "conftest.in" "conftest.nl" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4217 | $as_echo 'EGREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4218 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4219 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4220 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4221 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4222 | # Best one so far, save it but keep looking for a better one |
| 4223 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4224 | ac_path_EGREP_max=$ac_count |
| 4225 | fi |
| 4226 | # 10*(2^10) chars as input seems more than enough |
| 4227 | test $ac_count -gt 10 && break |
| 4228 | done |
| 4229 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4230 | esac |
| 4231 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4232 | $ac_path_EGREP_found && break 3 |
| 4233 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4234 | done |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4235 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4236 | IFS=$as_save_IFS |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4237 | if test -z "$ac_cv_path_EGREP"; then |
| 4238 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4239 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4240 | else |
| 4241 | ac_cv_path_EGREP=$EGREP |
| 4242 | fi |
| 4243 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4244 | fi |
| 4245 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4247 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4248 | EGREP="$ac_cv_path_EGREP" |
| 4249 | |
| 4250 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4252 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4253 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 4254 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4255 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4257 | /* end confdefs.h. */ |
| 4258 | #include <stdlib.h> |
| 4259 | #include <stdarg.h> |
| 4260 | #include <string.h> |
| 4261 | #include <float.h> |
| 4262 | |
| 4263 | int |
| 4264 | main () |
| 4265 | { |
| 4266 | |
| 4267 | ; |
| 4268 | return 0; |
| 4269 | } |
| 4270 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4271 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4272 | ac_cv_header_stdc=yes |
| 4273 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4274 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4275 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4277 | |
| 4278 | if test $ac_cv_header_stdc = yes; then |
| 4279 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4281 | /* end confdefs.h. */ |
| 4282 | #include <string.h> |
| 4283 | |
| 4284 | _ACEOF |
| 4285 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4286 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4287 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4288 | else |
| 4289 | ac_cv_header_stdc=no |
| 4290 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4291 | rm -f conftest* |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4292 | |
| 4293 | fi |
| 4294 | |
| 4295 | if test $ac_cv_header_stdc = yes; then |
| 4296 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4298 | /* end confdefs.h. */ |
| 4299 | #include <stdlib.h> |
| 4300 | |
| 4301 | _ACEOF |
| 4302 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4303 | $EGREP "free" >/dev/null 2>&1; then : |
| 4304 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4305 | else |
| 4306 | ac_cv_header_stdc=no |
| 4307 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4308 | rm -f conftest* |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4309 | |
| 4310 | fi |
| 4311 | |
| 4312 | if test $ac_cv_header_stdc = yes; then |
| 4313 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4314 | if test "$cross_compiling" = yes; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4315 | : |
| 4316 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4318 | /* end confdefs.h. */ |
| 4319 | #include <ctype.h> |
| 4320 | #include <stdlib.h> |
| 4321 | #if ((' ' & 0x0FF) == 0x020) |
| 4322 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4323 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4324 | #else |
| 4325 | # define ISLOWER(c) \ |
| 4326 | (('a' <= (c) && (c) <= 'i') \ |
| 4327 | || ('j' <= (c) && (c) <= 'r') \ |
| 4328 | || ('s' <= (c) && (c) <= 'z')) |
| 4329 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4330 | #endif |
| 4331 | |
| 4332 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4333 | int |
| 4334 | main () |
| 4335 | { |
| 4336 | int i; |
| 4337 | for (i = 0; i < 256; i++) |
| 4338 | if (XOR (islower (i), ISLOWER (i)) |
| 4339 | || toupper (i) != TOUPPER (i)) |
| 4340 | return 2; |
| 4341 | return 0; |
| 4342 | } |
| 4343 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4344 | if ac_fn_c_try_run "$LINENO"; then : |
| 4345 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4346 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4347 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4348 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4349 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4350 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4351 | fi |
| 4352 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4353 | fi |
| 4354 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4356 | $as_echo "$ac_cv_header_stdc" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4357 | if test $ac_cv_header_stdc = yes; then |
| 4358 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4359 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4360 | |
| 4361 | fi |
| 4362 | |
| 4363 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4364 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4365 | inttypes.h stdint.h unistd.h |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4366 | do : |
| 4367 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4368 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4369 | " |
| 4370 | eval as_val=\$$as_ac_Header |
| 4371 | if test "x$as_val" = x""yes; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4372 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4373 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4374 | _ACEOF |
| 4375 | |
| 4376 | fi |
| 4377 | |
| 4378 | done |
| 4379 | |
| 4380 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 4382 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 4383 | if test "${ac_cv_c_bigendian+set}" = set; then : |
| 4384 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4385 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4386 | ac_cv_c_bigendian=unknown |
| 4387 | # See if we're dealing with a universal compiler. |
| 4388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4389 | /* end confdefs.h. */ |
| 4390 | #ifndef __APPLE_CC__ |
| 4391 | not a universal capable compiler |
| 4392 | #endif |
| 4393 | typedef int dummy; |
| 4394 | |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4395 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4396 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4397 | |
| 4398 | # Check for potential -arch flags. It is not universal unless |
| 4399 | # there are at least two -arch flags with different values. |
| 4400 | ac_arch= |
| 4401 | ac_prev= |
| 4402 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 4403 | if test -n "$ac_prev"; then |
| 4404 | case $ac_word in |
| 4405 | i?86 | x86_64 | ppc | ppc64) |
| 4406 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 4407 | ac_arch=$ac_word |
| 4408 | else |
| 4409 | ac_cv_c_bigendian=universal |
| 4410 | break |
| 4411 | fi |
| 4412 | ;; |
| 4413 | esac |
| 4414 | ac_prev= |
| 4415 | elif test "x$ac_word" = "x-arch"; then |
| 4416 | ac_prev=arch |
| 4417 | fi |
| 4418 | done |
| 4419 | fi |
| 4420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4421 | if test $ac_cv_c_bigendian = unknown; then |
| 4422 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4424 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4425 | #include <sys/types.h> |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4426 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4427 | |
| 4428 | int |
| 4429 | main () |
| 4430 | { |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4431 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 4432 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 4433 | && LITTLE_ENDIAN) |
| 4434 | bogus endian macros |
| 4435 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4436 | |
| 4437 | ; |
| 4438 | return 0; |
| 4439 | } |
| 4440 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4441 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4442 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4444 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4445 | #include <sys/types.h> |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4446 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4447 | |
| 4448 | int |
| 4449 | main () |
| 4450 | { |
| 4451 | #if BYTE_ORDER != BIG_ENDIAN |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4452 | not big endian |
| 4453 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4454 | |
| 4455 | ; |
| 4456 | return 0; |
| 4457 | } |
| 4458 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4459 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4460 | ac_cv_c_bigendian=yes |
| 4461 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4462 | ac_cv_c_bigendian=no |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4463 | fi |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4465 | fi |
| 4466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4467 | fi |
| 4468 | if test $ac_cv_c_bigendian = unknown; then |
| 4469 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 4470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4471 | /* end confdefs.h. */ |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4472 | #include <limits.h> |
| 4473 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4474 | int |
| 4475 | main () |
| 4476 | { |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4477 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 4478 | bogus endian macros |
| 4479 | #endif |
| 4480 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4481 | ; |
| 4482 | return 0; |
| 4483 | } |
| 4484 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4485 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4486 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 4487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4488 | /* end confdefs.h. */ |
| 4489 | #include <limits.h> |
| 4490 | |
| 4491 | int |
| 4492 | main () |
| 4493 | { |
| 4494 | #ifndef _BIG_ENDIAN |
| 4495 | not big endian |
| 4496 | #endif |
| 4497 | |
| 4498 | ; |
| 4499 | return 0; |
| 4500 | } |
| 4501 | _ACEOF |
| 4502 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4503 | ac_cv_c_bigendian=yes |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4504 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4505 | ac_cv_c_bigendian=no |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 4506 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4508 | fi |
| 4509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4510 | fi |
| 4511 | if test $ac_cv_c_bigendian = unknown; then |
| 4512 | # Compile a test program. |
| 4513 | if test "$cross_compiling" = yes; then : |
| 4514 | # Try to guess by grepping values from an object file. |
| 4515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4516 | /* end confdefs.h. */ |
| 4517 | short int ascii_mm[] = |
| 4518 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4519 | short int ascii_ii[] = |
| 4520 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4521 | int use_ascii (int i) { |
| 4522 | return ascii_mm[i] + ascii_ii[i]; |
| 4523 | } |
| 4524 | short int ebcdic_ii[] = |
| 4525 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4526 | short int ebcdic_mm[] = |
| 4527 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4528 | int use_ebcdic (int i) { |
| 4529 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 4530 | } |
| 4531 | extern int foo; |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4532 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4533 | int |
| 4534 | main () |
| 4535 | { |
| 4536 | return use_ascii (foo) == use_ebcdic (foo); |
| 4537 | ; |
| 4538 | return 0; |
| 4539 | } |
| 4540 | _ACEOF |
| 4541 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4542 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 4543 | ac_cv_c_bigendian=yes |
| 4544 | fi |
| 4545 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4546 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4547 | ac_cv_c_bigendian=no |
| 4548 | else |
| 4549 | # finding both strings is unlikely to happen, but who knows? |
| 4550 | ac_cv_c_bigendian=unknown |
| 4551 | fi |
| 4552 | fi |
| 4553 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4555 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4557 | /* end confdefs.h. */ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4558 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4559 | int |
| 4560 | main () |
| 4561 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4562 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4563 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4564 | union |
| 4565 | { |
| 4566 | long int l; |
| 4567 | char c[sizeof (long int)]; |
| 4568 | } u; |
| 4569 | u.l = 1; |
| 4570 | return u.c[sizeof (long int) - 1] == 1; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4571 | |
| 4572 | ; |
| 4573 | return 0; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4574 | } |
| 4575 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4576 | if ac_fn_c_try_run "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4577 | ac_cv_c_bigendian=no |
| 4578 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4579 | ac_cv_c_bigendian=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4580 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4581 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4582 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4583 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4584 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4585 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4586 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 4588 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 4589 | case $ac_cv_c_bigendian in #( |
| 4590 | yes) |
| 4591 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 4592 | ;; #( |
| 4593 | no) |
| 4594 | ;; #( |
| 4595 | universal) |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4596 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4597 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4598 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4599 | ;; #( |
| 4600 | *) |
| 4601 | as_fn_error "unknown endianness |
| 4602 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 4603 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4604 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4605 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4606 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 4607 | CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0" |
| 4608 | else |
| 4609 | CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1" |
| 4610 | fi |
| 4611 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4612 | case $target in |
| 4613 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4614 | $as_echo "#define PJ_WIN32 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4615 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4616 | $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4617 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4618 | $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4619 | |
| 4620 | ;; |
| 4621 | *darwin*) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4622 | $as_echo "#define PJ_DARWINOS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4623 | |
| 4624 | ;; |
| 4625 | *linux*) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4626 | $as_echo "#define PJ_LINUX 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4627 | |
| 4628 | ;; |
| 4629 | *rtems*) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4630 | $as_echo "#define PJ_RTEMS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4631 | |
| 4632 | ;; |
| 4633 | *sunos* | *solaris* ) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4634 | $as_echo "#define PJ_SUNOS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4635 | |
| 4636 | ;; |
| 4637 | *) |
| 4638 | ;; |
| 4639 | esac |
| 4640 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4641 | |
| 4642 | |
| 4643 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4644 | # Check whether --enable-floating-point was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4645 | if test "${enable_floating_point+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4646 | enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4647 | $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4648 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5 |
| 4650 | $as_echo "Checking if floating point is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4651 | fi |
| 4652 | else |
| 4653 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4654 | $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4655 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5 |
| 4657 | $as_echo "Checking if floating point is disabled... no" >&6; } |
| 4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5 |
| 4659 | $as_echo_n "checking for fmod in -lm... " >&6; } |
| 4660 | if test "${ac_cv_lib_m_fmod+set}" = set; then : |
| 4661 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4662 | else |
| 4663 | ac_check_lib_save_LIBS=$LIBS |
| 4664 | LIBS="-lm $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4666 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4667 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4668 | /* Override any GCC internal prototype to avoid an error. |
| 4669 | Use char because int might match the return type of a GCC |
| 4670 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4671 | #ifdef __cplusplus |
| 4672 | extern "C" |
| 4673 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4674 | char fmod (); |
| 4675 | int |
| 4676 | main () |
| 4677 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4678 | return fmod (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4679 | ; |
| 4680 | return 0; |
| 4681 | } |
| 4682 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4683 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4684 | ac_cv_lib_m_fmod=yes |
| 4685 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4686 | ac_cv_lib_m_fmod=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4687 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4688 | rm -f core conftest.err conftest.$ac_objext \ |
| 4689 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4690 | LIBS=$ac_check_lib_save_LIBS |
| 4691 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5 |
| 4693 | $as_echo "$ac_cv_lib_m_fmod" >&6; } |
| 4694 | if test "x$ac_cv_lib_m_fmod" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4695 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4696 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4697 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4698 | |
| 4699 | LIBS="-lm $LIBS" |
| 4700 | |
| 4701 | fi |
| 4702 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4703 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4704 | fi |
| 4705 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4706 | |
| 4707 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4708 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" |
| 4709 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : |
| 4710 | $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4711 | |
| 4712 | fi |
| 4713 | |
| 4714 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4715 | ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" |
| 4716 | if test "x$ac_cv_header_assert_h" = x""yes; then : |
| 4717 | $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4718 | |
| 4719 | fi |
| 4720 | |
| 4721 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4722 | ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" |
| 4723 | if test "x$ac_cv_header_ctype_h" = x""yes; then : |
| 4724 | $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4725 | |
| 4726 | fi |
| 4727 | |
| 4728 | |
| 4729 | |
| 4730 | case $target in |
| 4731 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4732 | $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4733 | |
| 4734 | ;; |
| 4735 | *) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4736 | ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
| 4737 | if test "x$ac_cv_header_errno_h" = x""yes; then : |
| 4738 | $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4739 | |
| 4740 | fi |
| 4741 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4742 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4743 | ;; |
| 4744 | esac |
| 4745 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4746 | ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
| 4747 | if test "x$ac_cv_header_fcntl_h" = x""yes; then : |
| 4748 | $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4749 | |
| 4750 | fi |
| 4751 | |
| 4752 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4753 | ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default" |
| 4754 | if test "x$ac_cv_header_linux_socket_h" = x""yes; then : |
| 4755 | $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4756 | |
| 4757 | fi |
| 4758 | |
| 4759 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4760 | ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" |
| 4761 | if test "x$ac_cv_header_limits_h" = x""yes; then : |
| 4762 | $as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4763 | |
| 4764 | fi |
| 4765 | |
| 4766 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4767 | ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" |
| 4768 | if test "x$ac_cv_header_malloc_h" = x""yes; then : |
| 4769 | $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4770 | |
| 4771 | fi |
| 4772 | |
| 4773 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4774 | ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" |
| 4775 | if test "x$ac_cv_header_netdb_h" = x""yes; then : |
| 4776 | $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4777 | |
| 4778 | fi |
| 4779 | |
| 4780 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4781 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default" |
| 4782 | if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then : |
| 4783 | $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4784 | |
| 4785 | fi |
| 4786 | |
| 4787 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4788 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" |
| 4789 | if test "x$ac_cv_header_netinet_in_h" = x""yes; then : |
| 4790 | $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h |
Benny Prijono | e3e6580 | 2011-02-28 07:44:19 +0000 | [diff] [blame] | 4791 | |
| 4792 | fi |
| 4793 | |
| 4794 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4795 | ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if PJ_HAS_SYS_TYPES_H |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4796 | # include <sys/types.h> |
| 4797 | #endif |
| 4798 | #if PJ_HAS_NETINET_IN_SYSTM_H |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4799 | # include <netinet/in_systm.h> |
| 4800 | #endif |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4801 | #if PJ_HAS_NETINET_IN_H |
| 4802 | # include <netinet/in.h> |
| 4803 | #endif |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4804 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4805 | " |
| 4806 | if test "x$ac_cv_header_netinet_ip_h" = x""yes; then : |
| 4807 | $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4808 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4809 | fi |
| 4810 | |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4811 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4812 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" |
| 4813 | if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then : |
| 4814 | $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4815 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4816 | fi |
| 4817 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4818 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4819 | ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" |
| 4820 | if test "x$ac_cv_header_ifaddrs_h" = x""yes; then : |
| 4821 | ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" |
| 4822 | if test "x$ac_cv_func_getifaddrs" = x""yes; then : |
| 4823 | $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4824 | |
| 4825 | fi |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4826 | |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4827 | fi |
| 4828 | |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4829 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4830 | ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" |
| 4831 | if test "x$ac_cv_header_semaphore_h" = x""yes; then : |
| 4832 | $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4833 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4834 | fi |
| 4835 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4836 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4837 | ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" |
| 4838 | if test "x$ac_cv_header_setjmp_h" = x""yes; then : |
| 4839 | $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4840 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4841 | fi |
| 4842 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4843 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4844 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
| 4845 | if test "x$ac_cv_header_stdarg_h" = x""yes; then : |
| 4846 | $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4847 | |
| 4848 | fi |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4849 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4850 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4851 | ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" |
| 4852 | if test "x$ac_cv_header_stddef_h" = x""yes; then : |
| 4853 | $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4854 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4855 | fi |
| 4856 | |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4857 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4858 | ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" |
| 4859 | if test "x$ac_cv_header_stdio_h" = x""yes; then : |
| 4860 | $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h |
Sauw Ming | 68c1457 | 2011-07-20 03:00:48 +0000 | [diff] [blame] | 4861 | |
Sauw Ming | 68c1457 | 2011-07-20 03:00:48 +0000 | [diff] [blame] | 4862 | fi |
| 4863 | |
Sauw Ming | 68c1457 | 2011-07-20 03:00:48 +0000 | [diff] [blame] | 4864 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4865 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 4866 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
| 4867 | $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4868 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4869 | fi |
| 4870 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4871 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4872 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 4873 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : |
| 4874 | $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4875 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4876 | fi |
| 4877 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4878 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4879 | ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
| 4880 | if test "x$ac_cv_header_string_h" = x""yes; then : |
| 4881 | $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4882 | |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4883 | fi |
| 4884 | |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4885 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4886 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
| 4887 | if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : |
| 4888 | $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4889 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4890 | fi |
| 4891 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4892 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4893 | ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
| 4894 | if test "x$ac_cv_header_sys_select_h" = x""yes; then : |
| 4895 | $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4896 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4897 | fi |
| 4898 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4899 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4900 | ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
| 4901 | if test "x$ac_cv_header_sys_socket_h" = x""yes; then : |
| 4902 | $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4903 | |
| 4904 | fi |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4905 | |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4906 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4907 | ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 4908 | if test "x$ac_cv_header_sys_time_h" = x""yes; then : |
| 4909 | $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4910 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4911 | fi |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4912 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4913 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4914 | ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" |
| 4915 | if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : |
| 4916 | $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4917 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4918 | fi |
| 4919 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4920 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4921 | ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| 4922 | if test "x$ac_cv_header_sys_types_h" = x""yes; then : |
| 4923 | $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4924 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4925 | fi |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4926 | |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4927 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4928 | ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" |
| 4929 | if test "x$ac_cv_header_sys_filio_h" = x""yes; then : |
| 4930 | $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4931 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4932 | fi |
| 4933 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4934 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4935 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" |
| 4936 | if test "x$ac_cv_header_sys_sockio_h" = x""yes; then : |
| 4937 | $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4938 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4939 | fi |
| 4940 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4941 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4942 | ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" |
| 4943 | if test "x$ac_cv_header_sys_utsname_h" = x""yes; then : |
| 4944 | $as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4945 | |
| 4946 | fi |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4947 | |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4948 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4949 | ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" |
| 4950 | if test "x$ac_cv_header_time_h" = x""yes; then : |
| 4951 | $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h |
Sauw Ming | 68c1457 | 2011-07-20 03:00:48 +0000 | [diff] [blame] | 4952 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4953 | fi |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4954 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4955 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4956 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 4957 | if test "x$ac_cv_header_unistd_h" = x""yes; then : |
| 4958 | $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4959 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4960 | fi |
| 4961 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4962 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4963 | ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default" |
| 4964 | if test "x$ac_cv_header_winsock_h" = x""yes; then : |
| 4965 | $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4966 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4967 | fi |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4968 | |
Sauw Ming | 6a970a3 | 2011-03-01 05:25:27 +0000 | [diff] [blame] | 4969 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4970 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 4971 | if test "x$ac_cv_header_winsock2_h" = x""yes; then : |
| 4972 | $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h |
Sauw Ming | 6a970a3 | 2011-03-01 05:25:27 +0000 | [diff] [blame] | 4973 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4974 | fi |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4975 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4976 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4977 | ac_fn_c_check_header_compile "$LINENO" "mswsock.h" "ac_cv_header_mswsock_h" "#if PJ_HAS_WINSOCK2_H |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 4978 | # include <winsock2.h> |
| 4979 | #elif PJ_HAS_WINSOCK_H |
| 4980 | # include <winsock.h> |
| 4981 | #endif |
| 4982 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4983 | " |
| 4984 | if test "x$ac_cv_header_mswsock_h" = x""yes; then : |
| 4985 | $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 4986 | |
| 4987 | fi |
| 4988 | |
| 4989 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4990 | ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" |
| 4991 | if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then : |
| 4992 | $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4993 | |
| 4994 | fi |
| 4995 | |
| 4996 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 4997 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" |
| 4998 | if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4999 | ac_has_uuid_h=1 |
| 5000 | fi |
| 5001 | |
| 5002 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5003 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if PJ_HAS_SYS_TYPES_H |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 5004 | # include <sys/types.h> |
| 5005 | #endif |
| 5006 | #if PJ_HAS_SYS_SOCKET_H |
| 5007 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 5008 | # include <sys/socket.h> |
| 5009 | #endif |
| 5010 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5011 | " |
| 5012 | if test "x$ac_cv_header_net_if_h" = x""yes; then : |
| 5013 | $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 5014 | |
| 5015 | fi |
| 5016 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 5017 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5 |
| 5019 | $as_echo "Setting PJ_OS_NAME to $target" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5020 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5021 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5022 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5023 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5024 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
| 5026 | $as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; } |
| 5027 | $as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5028 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5029 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
| 5031 | $as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } |
| 5032 | $as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5033 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5034 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5 |
| 5036 | $as_echo "Setting PJ_HAS_MALLOC to 1" >&6; } |
| 5037 | $as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5038 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5039 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
| 5041 | $as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } |
| 5042 | $as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5043 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5044 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
| 5046 | $as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } |
| 5047 | $as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5048 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5049 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5 |
| 5051 | $as_echo_n "checking if inet_aton() is available... " >&6; } |
| 5052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5053 | /* end confdefs.h. */ |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5054 | #include <sys/types.h> |
| 5055 | #include <sys/socket.h> |
| 5056 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5057 | int |
| 5058 | main () |
| 5059 | { |
| 5060 | inet_aton(0, 0); |
| 5061 | ; |
| 5062 | return 0; |
| 5063 | } |
| 5064 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5065 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5066 | $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5067 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5069 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5070 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5072 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5073 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5075 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5 |
| 5077 | $as_echo_n "checking if inet_pton() is available... " >&6; } |
| 5078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5079 | /* end confdefs.h. */ |
| 5080 | #include <sys/types.h> |
| 5081 | #include <sys/socket.h> |
| 5082 | #include <arpa/inet.h> |
| 5083 | int |
| 5084 | main () |
| 5085 | { |
| 5086 | inet_pton(0, 0, 0); |
| 5087 | ; |
| 5088 | return 0; |
| 5089 | } |
| 5090 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5091 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5092 | $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5093 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5095 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5096 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5098 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5099 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5101 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5 |
| 5103 | $as_echo_n "checking if inet_ntop() is available... " >&6; } |
| 5104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5105 | /* end confdefs.h. */ |
| 5106 | #include <sys/types.h> |
| 5107 | #include <sys/socket.h> |
| 5108 | #include <arpa/inet.h> |
| 5109 | int |
| 5110 | main () |
| 5111 | { |
| 5112 | inet_ntop(0, 0, 0, 0); |
| 5113 | ; |
| 5114 | return 0; |
| 5115 | } |
| 5116 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5117 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5118 | $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5119 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5121 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5122 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5124 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5125 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5127 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5 |
| 5129 | $as_echo_n "checking if getaddrinfo() is available... " >&6; } |
| 5130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5131 | /* end confdefs.h. */ |
| 5132 | #include <sys/types.h> |
| 5133 | #include <sys/socket.h> |
| 5134 | #include <netdb.h> |
| 5135 | int |
| 5136 | main () |
| 5137 | { |
| 5138 | getaddrinfo(0, 0, 0, 0); |
| 5139 | ; |
| 5140 | return 0; |
| 5141 | } |
| 5142 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5143 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5144 | $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5145 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5147 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5148 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5150 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5151 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5153 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5 |
| 5155 | $as_echo_n "checking if sockaddr_in has sin_len member... " >&6; } |
| 5156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5157 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5158 | #include <sys/types.h> |
| 5159 | #include <sys/socket.h> |
| 5160 | #include <netinet/in.h> |
| 5161 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5162 | int |
| 5163 | main () |
| 5164 | { |
| 5165 | struct sockaddr_in a; a.sin_len=0; |
| 5166 | ; |
| 5167 | return 0; |
| 5168 | } |
| 5169 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5170 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5171 | $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5172 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5174 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5175 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5177 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5178 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5180 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5 |
| 5182 | $as_echo_n "checking if socklen_t is available... " >&6; } |
| 5183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5184 | /* end confdefs.h. */ |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 5185 | #include <sys/types.h> |
| 5186 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5187 | int |
| 5188 | main () |
| 5189 | { |
| 5190 | socklen_t xxx = 0; |
| 5191 | ; |
| 5192 | return 0; |
| 5193 | } |
| 5194 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5195 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5196 | $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5197 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5199 | $as_echo "yes" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5200 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5202 | $as_echo "no" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5203 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5205 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5 |
| 5207 | $as_echo_n "checking if SO_ERROR is available... " >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5208 | case $target in |
| 5209 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5210 | $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5211 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5213 | $as_echo "yes" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5214 | ;; |
| 5215 | *) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5217 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5218 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5219 | #include <sys/socket.h> |
| 5220 | #include <netinet/in.h> |
| 5221 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5222 | int |
| 5223 | main () |
| 5224 | { |
| 5225 | int i=SO_ERROR; |
| 5226 | ; |
| 5227 | return 0; |
| 5228 | } |
| 5229 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5230 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5231 | $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5232 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5234 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5235 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5237 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5238 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5240 | ;; |
| 5241 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5242 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5243 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5 |
| 5245 | $as_echo_n "checking if pthread_rwlock_t is available... " >&6; } |
| 5246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5247 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5248 | #include <pthread.h> |
| 5249 | int |
| 5250 | main () |
| 5251 | { |
| 5252 | pthread_rwlock_t *x; |
| 5253 | ; |
| 5254 | return 0; |
| 5255 | } |
| 5256 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5257 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5258 | $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5259 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5260 | ac_rwmutex="yes" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5262 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5263 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5264 | $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5265 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5266 | ac_rwmutex="no" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5268 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5269 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5271 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5272 | if test "$ac_rwmutex" = "no"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 |
| 5274 | $as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; } |
| 5275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5276 | /* end confdefs.h. */ |
| 5277 | #define _POSIX_READER_WRITER_LOCKS |
| 5278 | #include <pthread.h> |
| 5279 | int |
| 5280 | main () |
| 5281 | { |
| 5282 | pthread_rwlock_t *x; |
| 5283 | ; |
| 5284 | return 0; |
| 5285 | } |
| 5286 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5287 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5288 | $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5289 | |
| 5290 | CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5292 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5293 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5294 | $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5295 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5297 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5298 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5300 | fi |
| 5301 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5 |
| 5303 | $as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; } |
| 5304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5305 | /* end confdefs.h. */ |
| 5306 | #include <pthread.h> |
| 5307 | int |
| 5308 | main () |
| 5309 | { |
| 5310 | pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP); |
| 5311 | ; |
| 5312 | return 0; |
| 5313 | } |
| 5314 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5315 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5316 | $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5317 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5319 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5320 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5322 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5323 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5325 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5 |
| 5327 | $as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; } |
| 5328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5329 | /* end confdefs.h. */ |
| 5330 | #include <pthread.h> |
| 5331 | int |
| 5332 | main () |
| 5333 | { |
| 5334 | pthread_mutexattr_t attr; |
| 5335 | attr.recursive=1; |
| 5336 | ; |
| 5337 | return 0; |
| 5338 | } |
| 5339 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5340 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5341 | $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5342 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5344 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5345 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5347 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5348 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5350 | |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5351 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5 |
| 5353 | $as_echo_n "checking ioqueue backend... " >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5354 | # Check whether --enable-epoll was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5355 | if test "${enable_epoll+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5356 | enableval=$enable_epoll; |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5357 | ac_os_objs=ioqueue_epoll.o |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5 |
| 5359 | $as_echo "/dev/epoll" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5360 | |
| 5361 | else |
| 5362 | |
| 5363 | ac_os_objs=ioqueue_select.o |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5 |
| 5365 | $as_echo "select()" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5366 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5367 | fi |
| 5368 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5369 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5370 | |
| 5371 | case $target in |
| 5372 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5373 | ac_os_objs="$ac_os_objs file_access_win32.o file_io_win32.o os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o" |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5374 | ;; |
| 5375 | *) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5376 | ac_os_objs="$ac_os_objs file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o" |
Sauw Ming | 6a970a3 | 2011-03-01 05:25:27 +0000 | [diff] [blame] | 5377 | case $target in |
| 5378 | arm-apple-darwin*) |
Sauw Ming | fe42f0c | 2011-03-01 10:42:11 +0000 | [diff] [blame] | 5379 | ac_os_objs="$ac_os_objs os_info_iphone.o" |
Sauw Ming | 6a970a3 | 2011-03-01 05:25:27 +0000 | [diff] [blame] | 5380 | ;; |
| 5381 | esac |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 5382 | # UUID |
| 5383 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 5384 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 5385 | else |
| 5386 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 5387 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5388 | ;; |
| 5389 | esac |
| 5390 | |
Sauw Ming | 68c1457 | 2011-07-20 03:00:48 +0000 | [diff] [blame] | 5391 | case $target in |
| 5392 | *darwin*) |
| 5393 | ac_os_objs="$ac_os_objs os_core_darwin.o" |
| 5394 | ;; |
| 5395 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5396 | |
| 5397 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5398 | ac_external_speex=0 |
| 5399 | |
| 5400 | |
| 5401 | # Check whether --with-external-speex was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5402 | if test "${with_external_speex+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5403 | withval=$with_external_speex; |
| 5404 | if test "x$with_external_speex" != "xno"; then |
| 5405 | # Test Speex installation |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5 |
| 5407 | $as_echo_n "checking if external Speex devkit is installed... " >&6; } |
| 5408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5409 | /* end confdefs.h. */ |
| 5410 | #include <speex/speex.h> |
| 5411 | #include <speex/speex_echo.h> |
| 5412 | |
| 5413 | int |
| 5414 | main () |
| 5415 | { |
| 5416 | speex_echo_state_init(0, 0); speex_encoder_init(0); |
| 5417 | ; |
| 5418 | return 0; |
| 5419 | } |
| 5420 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5421 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5423 | $as_echo "yes!!" >&6; } |
| 5424 | $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5425 | |
| 5426 | ac_external_speex="1" |
| 5427 | |
| 5428 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5429 | 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 |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5430 | fi |
| 5431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5432 | fi |
| 5433 | |
| 5434 | |
| 5435 | fi |
| 5436 | |
| 5437 | |
| 5438 | ac_external_gsm=0 |
| 5439 | |
| 5440 | |
| 5441 | # Check whether --with-external-gsm was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5442 | if test "${with_external_gsm+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5443 | withval=$with_external_gsm; |
| 5444 | if test "x$with_external_gsm" != "xno"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5445 | # Test GSM library installation |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5 |
| 5447 | $as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; } |
| 5448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5449 | /* end confdefs.h. */ |
| 5450 | #include <gsm/gsm.h> |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5451 | int |
| 5452 | main () |
| 5453 | { |
| 5454 | gsm_create(); |
| 5455 | ; |
| 5456 | return 0; |
| 5457 | } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5458 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5459 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5461 | $as_echo "yes!!" >&6; } |
| 5462 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5463 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5464 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5465 | |
| 5466 | ac_external_gsm="1" |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5467 | |
| 5468 | else |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5469 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5471 | $as_echo "no" >&6; } |
| 5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5 |
| 5473 | $as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; } |
| 5474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5475 | /* end confdefs.h. */ |
| 5476 | #include <gsm.h> |
| 5477 | int |
| 5478 | main () |
| 5479 | { |
| 5480 | gsm_create(); |
| 5481 | ; |
| 5482 | return 0; |
| 5483 | } |
| 5484 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5485 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5487 | $as_echo "yes!!" >&6; } |
| 5488 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5489 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5490 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5491 | |
| 5492 | ac_external_gsm="1" |
| 5493 | |
| 5494 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5495 | 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 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5496 | |
| 5497 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5498 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5500 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5501 | |
| 5502 | fi |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5504 | fi |
| 5505 | |
| 5506 | |
| 5507 | fi |
| 5508 | |
| 5509 | |
| 5510 | |
| 5511 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 5512 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5513 | # Check whether --enable-sound was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5514 | if test "${enable_sound+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5515 | enableval=$enable_sound; if test "$enable_sound" = "no"; then |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5516 | ac_pjmedia_snd=null |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5 |
| 5518 | $as_echo "Checking if sound is disabled... yes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5519 | fi |
| 5520 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5521 | fi |
| 5522 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5523 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5524 | ac_external_pa=0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5525 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5526 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5527 | # Check whether --with-external-pa was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5528 | if test "${with_external_pa+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5529 | withval=$with_external_pa; |
| 5530 | if test "x$with_external_pa" != "xno"; then |
| 5531 | # Test PortAudio installation |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5 |
| 5533 | $as_echo_n "checking if external PortAudio devkit is installed... " >&6; } |
| 5534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5535 | /* end confdefs.h. */ |
| 5536 | #include <portaudio.h> |
| 5537 | |
| 5538 | int |
| 5539 | main () |
| 5540 | { |
| 5541 | Pa_Initialize(); |
| 5542 | ; |
| 5543 | return 0; |
| 5544 | } |
| 5545 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5546 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5548 | $as_echo "yes!!" >&6; } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5549 | ac_external_pa="1" |
| 5550 | |
| 5551 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5552 | 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 |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5553 | fi |
| 5554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 5555 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5556 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5557 | |
| 5558 | fi |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 5559 | |
| 5560 | |
| 5561 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5562 | ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default" |
| 5563 | if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5564 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 5565 | fi |
| 5566 | |
| 5567 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5568 | ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default" |
| 5569 | if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5570 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 5571 | fi |
| 5572 | |
| 5573 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5574 | ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default" |
| 5575 | if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5576 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 5577 | fi |
| 5578 | |
| 5579 | |
| 5580 | |
Benny Prijono | 3e09167 | 2008-01-09 15:43:02 +0000 | [diff] [blame] | 5581 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 5582 | ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN" |
| 5583 | else |
| 5584 | ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN" |
| 5585 | fi |
| 5586 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5587 | if test "$enable_sound" = "no"; then |
| 5588 | true; |
| 5589 | else |
| 5590 | case $target in |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 5591 | arm-apple-darwin*) |
Sauw Ming | 6a970a3 | 2011-03-01 05:25:27 +0000 | [diff] [blame] | 5592 | LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5 |
| 5594 | $as_echo "Checking sound device backend... AudioUnit" >&6; } |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 5595 | ;; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5596 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5597 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 5598 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5599 | #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS" |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5600 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 5601 | ac_pjmedia_snd=pa_old_darwinos |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5 |
| 5603 | $as_echo "Checking sound device backend... old coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5604 | else |
| 5605 | ac_pjmedia_snd=pa_darwinos |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5 |
| 5607 | $as_echo "Checking sound device backend... coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5608 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5609 | ;; |
| 5610 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5611 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5 |
| 5613 | $as_echo "Checking sound device backend... win32 sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5614 | ;; |
| 5615 | *rtems*) |
| 5616 | ac_pjmedia_snd=null |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5 |
| 5618 | $as_echo "Checking sound device backend... null sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5619 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5620 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5621 | ac_pjmedia_snd=pa_unix |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5622 | ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default" |
| 5623 | if test "x$ac_cv_header_alsa_version_h" = x""yes; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5624 | ac_pa_use_alsa=1 |
| 5625 | |
| 5626 | LIBS="$LIBS -lasound" |
| 5627 | |
| 5628 | else |
| 5629 | ac_pa_use_alsa=0 |
| 5630 | |
| 5631 | fi |
| 5632 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5633 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5 |
| 5635 | $as_echo "Checking sound device backend... unix" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5636 | |
| 5637 | ac_pa_use_oss=1 |
| 5638 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5639 | # Check whether --enable-oss was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5640 | if test "${enable_oss+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5641 | enableval=$enable_oss; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5642 | if test "$enable_oss" = "no"; then |
| 5643 | ac_pa_use_oss=0 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5 |
| 5645 | $as_echo "Checking if OSS audio is disabled... yes" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5646 | fi |
| 5647 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5648 | fi |
| 5649 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5650 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5651 | esac |
| 5652 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5653 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5654 | |
| 5655 | if test "$enable_video" = "no"; then |
| 5656 | true; |
| 5657 | else |
| 5658 | case $target in |
| 5659 | arm-apple-darwin*) |
| 5660 | ac_pjmedia_video=iphone_os |
| 5661 | |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5662 | |
| 5663 | SAVED_LIBS="$LIBS" |
| 5664 | LIBS="-framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5666 | /* end confdefs.h. */ |
| 5667 | |
| 5668 | int |
| 5669 | main () |
| 5670 | { |
| 5671 | |
| 5672 | ; |
| 5673 | return 0; |
| 5674 | } |
| 5675 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5676 | if ac_fn_c_try_link "$LINENO"; then : |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5677 | ac_pjmedia_video_has_ios=yes |
| 5678 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5679 | ac_pjmedia_video_has_ios=no |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5680 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5681 | rm -f core conftest.err conftest.$ac_objext \ |
| 5682 | conftest$ac_exeext conftest.$ac_ext |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5683 | LIBS="$SAVED_LIBS" |
| 5684 | if test "$ac_pjmedia_video_has_ios" = "yes"; then |
| 5685 | ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1" |
| 5686 | LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5 |
| 5688 | $as_echo "Checking if AVFoundation framework is available... yes" >&6; } |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5689 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5 |
| 5691 | $as_echo "Checking if AVFoundation framework is available... no" >&6; } |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5692 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5693 | ;; |
| 5694 | *darwin*) |
| 5695 | ac_pjmedia_video=mac_os |
| 5696 | |
| 5697 | |
| 5698 | SAVED_LIBS="$LIBS" |
| 5699 | LIBS="-framework QTKit" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5701 | /* end confdefs.h. */ |
| 5702 | |
| 5703 | int |
| 5704 | main () |
| 5705 | { |
| 5706 | |
| 5707 | ; |
| 5708 | return 0; |
| 5709 | } |
| 5710 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5711 | if ac_fn_c_try_link "$LINENO"; then : |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5712 | ac_pjmedia_video_has_qt=yes |
| 5713 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5714 | ac_pjmedia_video_has_qt=no |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5715 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5716 | rm -f core conftest.err conftest.$ac_objext \ |
| 5717 | conftest$ac_exeext conftest.$ac_ext |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5718 | LIBS="$SAVED_LIBS" |
| 5719 | if test "$ac_pjmedia_video_has_qt" = "yes"; then |
| 5720 | ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" |
Sauw Ming | 21bd3fd | 2011-04-06 11:30:18 +0000 | [diff] [blame] | 5721 | LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -framework QuartzCore -framework OpenGL" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5 |
| 5723 | $as_echo "Checking if QTKit framework is available... yes" >&6; } |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5724 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5 |
| 5726 | $as_echo "Checking if QTKit framework is available... no" >&6; } |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5727 | fi |
| 5728 | ;; |
| 5729 | esac |
| 5730 | fi |
| 5731 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5732 | # Check whether --enable-ext_sound was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5733 | if test "${enable_ext_sound+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5734 | enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5735 | ac_pjmedia_snd=external |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5 |
| 5737 | $as_echo "Checking if external sound is set... yes" >&6; } |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5738 | fi |
| 5739 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5740 | fi |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5741 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5742 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5743 | |
| 5744 | # Check whether --enable-small-filter was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5745 | if test "${enable_small_filter+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5746 | enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5747 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5 |
| 5749 | $as_echo "Checking if small filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5750 | fi |
| 5751 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5 |
| 5753 | $as_echo "Checking if small filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5754 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5755 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5756 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5757 | |
| 5758 | # Check whether --enable-large-filter was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5759 | if test "${enable_large_filter+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5760 | enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5761 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5 |
| 5763 | $as_echo "Checking if large filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5764 | fi |
| 5765 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5 |
| 5767 | $as_echo "Checking if large filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5768 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5769 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5770 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5771 | |
| 5772 | # Check whether --enable-speex-aec was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5773 | if test "${enable_speex_aec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5774 | enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5775 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5 |
| 5777 | $as_echo "Checking if Speex AEC is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5778 | fi |
| 5779 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5 |
| 5781 | $as_echo "Checking if Speex AEC is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5782 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5783 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5784 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5785 | |
| 5786 | # Check whether --enable-g711-codec was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5787 | if test "${enable_g711_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5788 | enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5789 | ac_no_g711_codec=1 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5790 | $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5791 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5 |
| 5793 | $as_echo "Checking if G.711 codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5794 | fi |
| 5795 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5 |
| 5797 | $as_echo "Checking if G.711 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5798 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5799 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5800 | |
| 5801 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5802 | |
| 5803 | # Check whether --enable-l16-codec was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5804 | if test "${enable_l16_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5805 | enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5806 | ac_no_l16_codec=1 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5807 | $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5808 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5 |
| 5810 | $as_echo "Checking if L16 codecs are disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5811 | fi |
| 5812 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5 |
| 5814 | $as_echo "Checking if L16 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5815 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5816 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5817 | |
| 5818 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5819 | |
| 5820 | # Check whether --enable-gsm-codec was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5821 | if test "${enable_gsm_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5822 | enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5823 | ac_no_gsm_codec=1 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5824 | $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5825 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5 |
| 5827 | $as_echo "Checking if GSM codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5828 | fi |
| 5829 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5 |
| 5831 | $as_echo "Checking if GSM codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5832 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5833 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5834 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5835 | |
| 5836 | # Check whether --enable-g722-codec was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5837 | if test "${enable_g722_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5838 | enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5839 | ac_no_g722_codec=1 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5840 | $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5841 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5 |
| 5843 | $as_echo "Checking if G.722 codec is disabled...yes" >&6; } |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5844 | fi |
| 5845 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5 |
| 5847 | $as_echo "Checking if G.722 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5848 | fi |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5849 | |
| 5850 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5851 | |
| 5852 | # Check whether --enable-g7221-codec was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5853 | if test "${enable_g7221_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5854 | enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then |
| 5855 | ac_no_g7221_codec=1 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5856 | $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5857 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5 |
| 5859 | $as_echo "Checking if G.722.1 codec is disabled...yes" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5860 | fi |
| 5861 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5 |
| 5863 | $as_echo "Checking if G.722.1 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5864 | fi |
| 5865 | |
| 5866 | |
| 5867 | |
| 5868 | # Check whether --enable-speex-codec was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5869 | if test "${enable_speex_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5870 | enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5871 | ac_no_speex_codec=1 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5872 | $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5873 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5 |
| 5875 | $as_echo "Checking if Speex codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5876 | fi |
| 5877 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5 |
| 5879 | $as_echo "Checking if Speex codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5880 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5881 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5882 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5883 | |
| 5884 | # Check whether --enable-ilbc-codec was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5885 | if test "${enable_ilbc_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5886 | enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5887 | ac_no_ilbc_codec=1 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5888 | $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5889 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5 |
| 5891 | $as_echo "Checking if iLBC codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5892 | fi |
| 5893 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5 |
| 5895 | $as_echo "Checking if iLBC codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5896 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5897 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5898 | |
| 5899 | # Check whether --enable-libsamplerate was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5900 | if test "${enable_libsamplerate+set}" = set; then : |
| 5901 | enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5 |
| 5902 | $as_echo_n "checking for src_new in -lsamplerate... " >&6; } |
| 5903 | if test "${ac_cv_lib_samplerate_src_new+set}" = set; then : |
| 5904 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5905 | else |
| 5906 | ac_check_lib_save_LIBS=$LIBS |
| 5907 | LIBS="-lsamplerate $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5909 | /* end confdefs.h. */ |
| 5910 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5911 | /* Override any GCC internal prototype to avoid an error. |
| 5912 | Use char because int might match the return type of a GCC |
| 5913 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5914 | #ifdef __cplusplus |
| 5915 | extern "C" |
| 5916 | #endif |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5917 | char src_new (); |
| 5918 | int |
| 5919 | main () |
| 5920 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5921 | return src_new (); |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5922 | ; |
| 5923 | return 0; |
| 5924 | } |
| 5925 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5926 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5927 | ac_cv_lib_samplerate_src_new=yes |
| 5928 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5929 | ac_cv_lib_samplerate_src_new=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5930 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5931 | rm -f core conftest.err conftest.$ac_objext \ |
| 5932 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5933 | LIBS=$ac_check_lib_save_LIBS |
| 5934 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5 |
| 5936 | $as_echo "$ac_cv_lib_samplerate_src_new" >&6; } |
| 5937 | if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then : |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5938 | cat >>confdefs.h <<_ACEOF |
| 5939 | #define HAVE_LIBSAMPLERATE 1 |
| 5940 | _ACEOF |
| 5941 | |
| 5942 | LIBS="-lsamplerate $LIBS" |
| 5943 | |
| 5944 | fi |
| 5945 | |
| 5946 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5 |
| 5948 | $as_echo "Skipping libsamplerate detection" >&6; } |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 5949 | |
| 5950 | fi |
| 5951 | |
| 5952 | |
| 5953 | |
| 5954 | # Check whether --with-sdl was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5955 | if test "${with_sdl+set}" = set; then : |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 5956 | withval=$with_sdl; |
| 5957 | else |
| 5958 | with_sdl=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5959 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5960 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5961 | |
| 5962 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5963 | # Check whether --enable-sdl was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5964 | if test "${enable_sdl+set}" = set; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5965 | enableval=$enable_sdl; |
| 5966 | if test "$enable_sdl" = "no"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5 |
| 5968 | $as_echo "Checking if SDL is disabled... yes" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5969 | fi |
| 5970 | |
| 5971 | else |
| 5972 | |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 5973 | SDL_CONFIG="sdl-config" |
| 5974 | if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then |
| 5975 | SDL_CONFIG=$with_sdl/bin/sdl-config |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5 |
| 5977 | $as_echo "Using SDL prefix... $with_sdl" >&6; } |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 5978 | fi |
| 5979 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability.." >&5 |
| 5981 | $as_echo_n "checking SDL availability..... " >&6; } |
Sauw Ming | 1d8ceb1 | 2011-08-24 05:54:25 +0000 | [diff] [blame] | 5982 | if (sh -c "$SDL_CONFIG --version" | grep 1.3) then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5983 | |
| 5984 | |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 5985 | ac_sdl_cflags=`$SDL_CONFIG --cflags` |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5986 | ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags" |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 5987 | ac_sdl_ldflags=`$SDL_CONFIG --libs` |
Benny Prijono | 69b1f82 | 2010-12-10 11:33:01 +0000 | [diff] [blame] | 5988 | LIBS="$LIBS $ac_sdl_ldflags" |
Sauw Ming | 1d8ceb1 | 2011-08-24 05:54:25 +0000 | [diff] [blame] | 5989 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5 |
| 5991 | $as_echo "Unsupported SDL version" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5992 | fi |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5993 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5994 | fi |
| 5995 | |
| 5996 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5997 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5998 | # Check whether --enable-ffmpeg was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 5999 | if test "${enable_ffmpeg+set}" = set; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6000 | enableval=$enable_ffmpeg; |
| 6001 | ac_has_ffmpeg=0 |
| 6002 | |
| 6003 | if test "$enable_ffmpeg" = "no"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5 |
| 6005 | $as_echo "Checking if ffmpeg is disabled... yes" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6006 | fi |
| 6007 | |
| 6008 | else |
| 6009 | |
| 6010 | |
| 6011 | |
| 6012 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
| 6014 | $as_echo_n "checking for deflate in -lz... " >&6; } |
| 6015 | if test "${ac_cv_lib_z_deflate+set}" = set; then : |
| 6016 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 6017 | else |
| 6018 | ac_check_lib_save_LIBS=$LIBS |
| 6019 | LIBS="-lz $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 6021 | /* end confdefs.h. */ |
| 6022 | |
| 6023 | /* Override any GCC internal prototype to avoid an error. |
| 6024 | Use char because int might match the return type of a GCC |
| 6025 | builtin and then its argument prototype would still apply. */ |
| 6026 | #ifdef __cplusplus |
| 6027 | extern "C" |
| 6028 | #endif |
| 6029 | char deflate (); |
| 6030 | int |
| 6031 | main () |
| 6032 | { |
| 6033 | return deflate (); |
| 6034 | ; |
| 6035 | return 0; |
| 6036 | } |
| 6037 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6038 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 6039 | ac_cv_lib_z_deflate=yes |
| 6040 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6041 | ac_cv_lib_z_deflate=no |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 6042 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6043 | rm -f core conftest.err conftest.$ac_objext \ |
| 6044 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 6045 | LIBS=$ac_check_lib_save_LIBS |
| 6046 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
| 6048 | $as_echo "$ac_cv_lib_z_deflate" >&6; } |
| 6049 | if test "x$ac_cv_lib_z_deflate" = x""yes; then : |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 6050 | cat >>confdefs.h <<_ACEOF |
| 6051 | #define HAVE_LIBZ 1 |
| 6052 | _ACEOF |
| 6053 | |
| 6054 | LIBS="-lz $LIBS" |
| 6055 | |
| 6056 | fi |
| 6057 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x264_free in -lx264" >&5 |
| 6059 | $as_echo_n "checking for x264_free in -lx264... " >&6; } |
| 6060 | if test "${ac_cv_lib_x264_x264_free+set}" = set; then : |
| 6061 | $as_echo_n "(cached) " >&6 |
| 6062 | else |
| 6063 | ac_check_lib_save_LIBS=$LIBS |
| 6064 | LIBS="-lx264 $LIBS" |
| 6065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6066 | /* end confdefs.h. */ |
| 6067 | |
| 6068 | /* Override any GCC internal prototype to avoid an error. |
| 6069 | Use char because int might match the return type of a GCC |
| 6070 | builtin and then its argument prototype would still apply. */ |
| 6071 | #ifdef __cplusplus |
| 6072 | extern "C" |
| 6073 | #endif |
| 6074 | char x264_free (); |
| 6075 | int |
| 6076 | main () |
| 6077 | { |
| 6078 | return x264_free (); |
| 6079 | ; |
| 6080 | return 0; |
| 6081 | } |
| 6082 | _ACEOF |
| 6083 | if ac_fn_c_try_link "$LINENO"; then : |
| 6084 | ac_cv_lib_x264_x264_free=yes |
| 6085 | else |
| 6086 | ac_cv_lib_x264_x264_free=no |
| 6087 | fi |
| 6088 | rm -f core conftest.err conftest.$ac_objext \ |
| 6089 | conftest$ac_exeext conftest.$ac_ext |
| 6090 | LIBS=$ac_check_lib_save_LIBS |
| 6091 | fi |
| 6092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_x264_x264_free" >&5 |
| 6093 | $as_echo "$ac_cv_lib_x264_x264_free" >&6; } |
| 6094 | if test "x$ac_cv_lib_x264_x264_free" = x""yes; then : |
| 6095 | cat >>confdefs.h <<_ACEOF |
| 6096 | #define HAVE_LIBX264 1 |
| 6097 | _ACEOF |
| 6098 | |
| 6099 | LIBS="-lx264 $LIBS" |
| 6100 | |
| 6101 | fi |
| 6102 | |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 6103 | |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 6104 | FFMPEG_PREFIX="" |
| 6105 | if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then |
| 6106 | FFMPEG_PREFIX=$with_ffmpeg |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5 |
| 6108 | $as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; } |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 6109 | LIBS="-L$FFMPEG_PREFIX/lib $LIBS" |
Sauw Ming | 01095d8 | 2011-07-14 08:46:19 +0000 | [diff] [blame] | 6110 | LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS" |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 6111 | CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS" |
| 6112 | fi |
| 6113 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5 |
| 6115 | $as_echo_n "checking for avdevice_version in -lavdevice... " >&6; } |
| 6116 | if test "${ac_cv_lib_avdevice_avdevice_version+set}" = set; then : |
| 6117 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6118 | else |
| 6119 | ac_check_lib_save_LIBS=$LIBS |
| 6120 | LIBS="-lavdevice $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6122 | /* end confdefs.h. */ |
| 6123 | |
| 6124 | /* Override any GCC internal prototype to avoid an error. |
| 6125 | Use char because int might match the return type of a GCC |
| 6126 | builtin and then its argument prototype would still apply. */ |
| 6127 | #ifdef __cplusplus |
| 6128 | extern "C" |
| 6129 | #endif |
| 6130 | char avdevice_version (); |
| 6131 | int |
| 6132 | main () |
| 6133 | { |
| 6134 | return avdevice_version (); |
| 6135 | ; |
| 6136 | return 0; |
| 6137 | } |
| 6138 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6139 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6140 | ac_cv_lib_avdevice_avdevice_version=yes |
| 6141 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6142 | ac_cv_lib_avdevice_avdevice_version=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6143 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6144 | rm -f core conftest.err conftest.$ac_objext \ |
| 6145 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6146 | LIBS=$ac_check_lib_save_LIBS |
| 6147 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5 |
| 6149 | $as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; } |
| 6150 | if test "x$ac_cv_lib_avdevice_avdevice_version" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6151 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1" |
| 6152 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice" |
| 6153 | |
| 6154 | |
| 6155 | fi |
| 6156 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5 |
| 6158 | $as_echo_n "checking for av_register_all in -lavformat... " >&6; } |
| 6159 | if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then : |
| 6160 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6161 | else |
| 6162 | ac_check_lib_save_LIBS=$LIBS |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 6163 | LIBS="-lavformat -lavcodec -lavutil |
| 6164 | $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6166 | /* end confdefs.h. */ |
| 6167 | |
| 6168 | /* Override any GCC internal prototype to avoid an error. |
| 6169 | Use char because int might match the return type of a GCC |
| 6170 | builtin and then its argument prototype would still apply. */ |
| 6171 | #ifdef __cplusplus |
| 6172 | extern "C" |
| 6173 | #endif |
| 6174 | char av_register_all (); |
| 6175 | int |
| 6176 | main () |
| 6177 | { |
| 6178 | return av_register_all (); |
| 6179 | ; |
| 6180 | return 0; |
| 6181 | } |
| 6182 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6183 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6184 | ac_cv_lib_avformat_av_register_all=yes |
| 6185 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6186 | ac_cv_lib_avformat_av_register_all=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6187 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6188 | rm -f core conftest.err conftest.$ac_objext \ |
| 6189 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6190 | LIBS=$ac_check_lib_save_LIBS |
| 6191 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5 |
| 6193 | $as_echo "$ac_cv_lib_avformat_av_register_all" >&6; } |
| 6194 | if test "x$ac_cv_lib_avformat_av_register_all" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6195 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1" |
| 6196 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat" |
| 6197 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6198 | fi |
| 6199 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5 |
| 6201 | $as_echo_n "checking for avcodec_init in -lavcodec... " >&6; } |
| 6202 | if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then : |
| 6203 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6204 | else |
| 6205 | ac_check_lib_save_LIBS=$LIBS |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 6206 | LIBS="-lavcodec -lavutil |
| 6207 | $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6209 | /* end confdefs.h. */ |
| 6210 | |
| 6211 | /* Override any GCC internal prototype to avoid an error. |
| 6212 | Use char because int might match the return type of a GCC |
| 6213 | builtin and then its argument prototype would still apply. */ |
| 6214 | #ifdef __cplusplus |
| 6215 | extern "C" |
| 6216 | #endif |
| 6217 | char avcodec_init (); |
| 6218 | int |
| 6219 | main () |
| 6220 | { |
| 6221 | return avcodec_init (); |
| 6222 | ; |
| 6223 | return 0; |
| 6224 | } |
| 6225 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6226 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6227 | ac_cv_lib_avcodec_avcodec_init=yes |
| 6228 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6229 | ac_cv_lib_avcodec_avcodec_init=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6230 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6231 | rm -f core conftest.err conftest.$ac_objext \ |
| 6232 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6233 | LIBS=$ac_check_lib_save_LIBS |
| 6234 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5 |
| 6236 | $as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; } |
| 6237 | if test "x$ac_cv_lib_avcodec_avcodec_init" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6238 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1" |
| 6239 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec" |
| 6240 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6241 | fi |
| 6242 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5 |
| 6244 | $as_echo_n "checking for sws_scale in -lswscale... " >&6; } |
| 6245 | if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then : |
| 6246 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6247 | else |
| 6248 | ac_check_lib_save_LIBS=$LIBS |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 6249 | LIBS="-lswscale -lavutil |
| 6250 | $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6252 | /* end confdefs.h. */ |
| 6253 | |
| 6254 | /* Override any GCC internal prototype to avoid an error. |
| 6255 | Use char because int might match the return type of a GCC |
| 6256 | builtin and then its argument prototype would still apply. */ |
| 6257 | #ifdef __cplusplus |
| 6258 | extern "C" |
| 6259 | #endif |
| 6260 | char sws_scale (); |
| 6261 | int |
| 6262 | main () |
| 6263 | { |
| 6264 | return sws_scale (); |
| 6265 | ; |
| 6266 | return 0; |
| 6267 | } |
| 6268 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6269 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6270 | ac_cv_lib_swscale_sws_scale=yes |
| 6271 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6272 | ac_cv_lib_swscale_sws_scale=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6273 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6274 | rm -f core conftest.err conftest.$ac_objext \ |
| 6275 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6276 | LIBS=$ac_check_lib_save_LIBS |
| 6277 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5 |
| 6279 | $as_echo "$ac_cv_lib_swscale_sws_scale" >&6; } |
| 6280 | if test "x$ac_cv_lib_swscale_sws_scale" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6281 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1" |
| 6282 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale" |
| 6283 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6284 | fi |
| 6285 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5 |
| 6287 | $as_echo_n "checking for av_malloc in -lavutil... " >&6; } |
| 6288 | if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then : |
| 6289 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6290 | else |
| 6291 | ac_check_lib_save_LIBS=$LIBS |
| 6292 | LIBS="-lavutil $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6294 | /* end confdefs.h. */ |
| 6295 | |
| 6296 | /* Override any GCC internal prototype to avoid an error. |
| 6297 | Use char because int might match the return type of a GCC |
| 6298 | builtin and then its argument prototype would still apply. */ |
| 6299 | #ifdef __cplusplus |
| 6300 | extern "C" |
| 6301 | #endif |
| 6302 | char av_malloc (); |
| 6303 | int |
| 6304 | main () |
| 6305 | { |
| 6306 | return av_malloc (); |
| 6307 | ; |
| 6308 | return 0; |
| 6309 | } |
| 6310 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6311 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6312 | ac_cv_lib_avutil_av_malloc=yes |
| 6313 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6314 | ac_cv_lib_avutil_av_malloc=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6315 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6316 | rm -f core conftest.err conftest.$ac_objext \ |
| 6317 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6318 | LIBS=$ac_check_lib_save_LIBS |
| 6319 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5 |
| 6321 | $as_echo "$ac_cv_lib_avutil_av_malloc" >&6; } |
| 6322 | if test "x$ac_cv_lib_avutil_av_malloc" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6323 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1" |
| 6324 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil" |
| 6325 | |
| 6326 | |
| 6327 | fi |
| 6328 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5 |
| 6330 | $as_echo_n "checking for avcore_version in -lavcore... " >&6; } |
| 6331 | if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then : |
| 6332 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6333 | else |
| 6334 | ac_check_lib_save_LIBS=$LIBS |
| 6335 | LIBS="-lavcore $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6337 | /* end confdefs.h. */ |
| 6338 | |
| 6339 | /* Override any GCC internal prototype to avoid an error. |
| 6340 | Use char because int might match the return type of a GCC |
| 6341 | builtin and then its argument prototype would still apply. */ |
| 6342 | #ifdef __cplusplus |
| 6343 | extern "C" |
| 6344 | #endif |
| 6345 | char avcore_version (); |
| 6346 | int |
| 6347 | main () |
| 6348 | { |
| 6349 | return avcore_version (); |
| 6350 | ; |
| 6351 | return 0; |
| 6352 | } |
| 6353 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6354 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6355 | ac_cv_lib_avcore_avcore_version=yes |
| 6356 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6357 | ac_cv_lib_avcore_avcore_version=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6358 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6359 | rm -f core conftest.err conftest.$ac_objext \ |
| 6360 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6361 | LIBS=$ac_check_lib_save_LIBS |
| 6362 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5 |
| 6364 | $as_echo "$ac_cv_lib_avcore_avcore_version" >&6; } |
| 6365 | if test "x$ac_cv_lib_avcore_avcore_version" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6366 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1" |
| 6367 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore" |
| 6368 | |
| 6369 | |
| 6370 | fi |
| 6371 | |
Benny Prijono | 69b1f82 | 2010-12-10 11:33:01 +0000 | [diff] [blame] | 6372 | LIBS="$LIBS $ac_ffmpeg_ldflags" |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6373 | |
| 6374 | |
| 6375 | fi |
| 6376 | |
| 6377 | |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 6378 | |
| 6379 | # Check whether --with-ffmpeg was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6380 | if test "${with_ffmpeg+set}" = set; then : |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 6381 | withval=$with_ffmpeg; |
| 6382 | else |
| 6383 | with_ffmpeg=no |
| 6384 | |
| 6385 | fi |
| 6386 | |
| 6387 | |
| 6388 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6389 | # Check whether --enable-v4l2 was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6390 | if test "${enable_v4l2+set}" = set; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6391 | enableval=$enable_v4l2; |
| 6392 | if test "$enable_v4l2" = "no"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5 |
| 6394 | $as_echo "Checking if V4L2 is disabled... yes" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6395 | fi |
| 6396 | |
| 6397 | else |
| 6398 | |
| 6399 | |
| 6400 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5 |
| 6402 | $as_echo_n "checking for v4l2_open in -lv4l2... " >&6; } |
| 6403 | if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then : |
| 6404 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6405 | else |
| 6406 | ac_check_lib_save_LIBS=$LIBS |
| 6407 | LIBS="-lv4l2 $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6409 | /* end confdefs.h. */ |
| 6410 | |
| 6411 | /* Override any GCC internal prototype to avoid an error. |
| 6412 | Use char because int might match the return type of a GCC |
| 6413 | builtin and then its argument prototype would still apply. */ |
| 6414 | #ifdef __cplusplus |
| 6415 | extern "C" |
| 6416 | #endif |
| 6417 | char v4l2_open (); |
| 6418 | int |
| 6419 | main () |
| 6420 | { |
| 6421 | return v4l2_open (); |
| 6422 | ; |
| 6423 | return 0; |
| 6424 | } |
| 6425 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6426 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6427 | ac_cv_lib_v4l2_v4l2_open=yes |
| 6428 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6429 | ac_cv_lib_v4l2_v4l2_open=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6430 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6431 | rm -f core conftest.err conftest.$ac_objext \ |
| 6432 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6433 | LIBS=$ac_check_lib_save_LIBS |
| 6434 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5 |
| 6436 | $as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; } |
| 6437 | if test "x$ac_cv_lib_v4l2_v4l2_open" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6438 | ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1" |
| 6439 | ac_v4l2_ldflags="-lv4l2" |
Benny Prijono | 69b1f82 | 2010-12-10 11:33:01 +0000 | [diff] [blame] | 6440 | LIBS="$LIBS -lv4l2" |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6441 | |
| 6442 | |
| 6443 | fi |
| 6444 | |
| 6445 | |
| 6446 | fi |
| 6447 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6448 | |
| 6449 | # Check whether --enable-ipp was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6450 | if test "${enable_ipp+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6451 | enableval=$enable_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6452 | else |
| 6453 | enable_ipp=no |
| 6454 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6455 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6456 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6457 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6458 | |
| 6459 | # Check whether --with-ipp was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6460 | if test "${with_ipp+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6461 | withval=$with_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6462 | else |
| 6463 | with_ipp=no |
| 6464 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6465 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6466 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6467 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6468 | |
| 6469 | # Check whether --with-ipp-samples was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6470 | if test "${with_ipp_samples+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6471 | withval=$with_ipp_samples; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6472 | else |
| 6473 | with_ipp_samples=no |
| 6474 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6475 | fi |
| 6476 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6477 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6478 | |
| 6479 | # Check whether --with-ipp-arch was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6480 | if test "${with_ipp_arch+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6481 | withval=$with_ipp_arch; |
| 6482 | else |
| 6483 | with_ipp_arch=no |
| 6484 | |
| 6485 | fi |
| 6486 | |
| 6487 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6488 | if test "x$enable_ipp" != "xno"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5 |
| 6490 | $as_echo_n "checking Intel IPP location... " >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6491 | |
| 6492 | if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5 |
| 6494 | $as_echo "$with_ipp" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6495 | IPPROOT=$with_ipp |
| 6496 | elif test "x$IPPROOT" = "x"; then |
| 6497 | if test -d /opt/intel/ipp; then |
| 6498 | IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1` |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5 |
| 6500 | $as_echo "autodetected in $IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6501 | fi |
| 6502 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5 |
| 6504 | $as_echo "$IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6505 | fi |
| 6506 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6507 | if test "x$with_ipp_arch" != "xno"; then |
Benny Prijono | 896be29 | 2010-08-17 12:16:46 +0000 | [diff] [blame] | 6508 | IPP_SUFFIX=$with_ipp_arch |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5 |
| 6510 | $as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6511 | else |
| 6512 | IPP_SUFFIX="" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5 |
| 6514 | $as_echo "IPP arch suffix is set to empty" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6515 | fi |
| 6516 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6517 | if test x$IPPROOT = x; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6518 | 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 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6519 | elif test ! -d $IPPROOT; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6520 | as_fn_error "not found" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6521 | elif test ! -d $IPPROOT/include; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6522 | as_fn_error "directory doesn't seem to be valid" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6523 | else |
| 6524 | # IPP directory looks okay. |
| 6525 | # Remove trailing backslash |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6526 | IPPROOT=`echo $IPPROOT | sed 's/\/$//'` |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6527 | |
| 6528 | SAVED_CFLAGS="$CFLAGS" |
| 6529 | SAVED_LDFLAGS="$LDFLAGS" |
| 6530 | SAVED_LIBS="$LIBS" |
| 6531 | |
| 6532 | IPP_CFLAGS="-I$IPPROOT/include" |
Benny Prijono | cd62c4e | 2011-03-18 08:33:29 +0000 | [diff] [blame] | 6533 | IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6534 | |
Benny Prijono | cd62c4e | 2011-03-18 08:33:29 +0000 | [diff] [blame] | 6535 | # |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6536 | # Some differences between Mac OS X and Linux |
| 6537 | case $target in |
| 6538 | *darwin* ) |
| 6539 | IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib" |
| 6540 | ;; |
| 6541 | *) |
Benny Prijono | cd62c4e | 2011-03-18 08:33:29 +0000 | [diff] [blame] | 6542 | # Find out where the libraries live. |
| 6543 | IPP7_ARCH="" |
| 6544 | if test -d $IPPROOT/lib/intel64; then |
| 6545 | IPP7_ARCH="intel64" |
| 6546 | elif test -d $IPPROOT/lib/ia32; then |
| 6547 | IPP7_ARCH="ia32" |
| 6548 | elif test -d $IPPROOT/lib/mic; then |
| 6549 | IPP7_ARCH="mic" |
| 6550 | fi |
| 6551 | |
| 6552 | if test -z "$IPP7_ARCH"; then |
| 6553 | # IPP6 (and possibly below) |
| 6554 | IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
| 6555 | IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide" |
| 6556 | else |
| 6557 | # IPP7 |
| 6558 | if ! test -d $IPPROOT/../compiler; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6559 | as_fn_error "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5 |
Benny Prijono | cd62c4e | 2011-03-18 08:33:29 +0000 | [diff] [blame] | 6560 | fi |
| 6561 | IPP_CFLAGS="$IPP_CFLAGS" |
| 6562 | IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH" |
| 6563 | IPP_LIBS="$IPP_LIBS -liomp5" |
| 6564 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6565 | ;; |
| 6566 | esac |
| 6567 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6568 | #IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6569 | #Static: |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6570 | #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore" |
| 6571 | |
| 6572 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 6573 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 6574 | LIBS="$IPP_LIBS $LIBS" |
| 6575 | |
| 6576 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5 |
| 6578 | $as_echo_n "checking Intel IPP usability... " >&6; } |
| 6579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6580 | /* end confdefs.h. */ |
| 6581 | #include <ippcore.h> |
| 6582 | |
| 6583 | int |
| 6584 | main () |
| 6585 | { |
| 6586 | ippStaticInit(); |
| 6587 | ; |
| 6588 | return 0; |
| 6589 | } |
| 6590 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6591 | if ac_fn_c_try_link "$LINENO"; then : |
| 6592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6593 | $as_echo "ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6594 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6595 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6596 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6597 | { as_fn_set_status run with --help for more info |
| 6598 | as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly |
| 6599 | See \`config.log' for more details." "$LINENO" 5; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6600 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6601 | rm -f core conftest.err conftest.$ac_objext \ |
| 6602 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6603 | |
| 6604 | CFLAGS="$SAVED_CFLAGS" |
| 6605 | LDFLAGS="$SAVED_LDFLAGS" |
| 6606 | LIBS="$SAVED_LIBS" |
| 6607 | fi |
| 6608 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5 |
| 6610 | $as_echo_n "checking Intel IPP samples location... " >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6611 | |
| 6612 | if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5 |
| 6614 | $as_echo "$with_ipp_samples" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6615 | IPPSAMPLES=$with_ipp_samples |
| 6616 | elif test "x$IPPSAMPLES" = "x"; then |
| 6617 | if test -d /opt/intel/ipp-samples; then |
| 6618 | IPPSAMPLES=/opt/intel/ipp-samples |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5 |
| 6620 | $as_echo "autodetected in $IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6621 | fi |
| 6622 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5 |
| 6624 | $as_echo "$IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6625 | fi |
| 6626 | |
| 6627 | if test x$IPPSAMPLES = x; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6628 | 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 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6629 | elif test ! -d $IPPSAMPLES; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6630 | as_fn_error "not found" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6631 | elif test ! -d $IPPSAMPLES/speech-codecs; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6632 | as_fn_error "directory doesn't seem to be valid" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6633 | else |
| 6634 | # Remove trailing backslash |
| 6635 | IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'` |
| 6636 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6637 | # Guess the libusc.a/libspeech.a build location |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5 |
| 6639 | $as_echo_n "checking Intel IPP USC build location... " >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6640 | if test -d $IPPSAMPLES/speech-codecs/bin; then |
| 6641 | IPPVER=5 |
| 6642 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` |
| 6643 | elif test -d $IPPSAMPLES/speech-codecs/_bin; then |
| 6644 | IPPVER=6 |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6645 | if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then |
| 6646 | # gcc compiler |
| 6647 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1` |
| 6648 | elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then |
| 6649 | # icc compiler |
| 6650 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1` |
| 6651 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6652 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6653 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6654 | as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? |
| 6655 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6656 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6657 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6658 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6659 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6660 | 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? |
| 6661 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6662 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6663 | |
| 6664 | # Test the directory |
| 6665 | if test ! -d $IPPSAMP_DIR; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6666 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6667 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6668 | as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist |
| 6669 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6670 | exit 1; |
| 6671 | fi |
| 6672 | |
| 6673 | if test "x$IPPVER" = "x5"; then |
| 6674 | IPPSAMP_LIBS="libusc.a" |
| 6675 | IPPSAMP_LDLIBS="-lusc" |
| 6676 | elif test "x$IPPVER" = "x6"; then |
| 6677 | IPPSAMP_LIBS="libspeech.a" |
| 6678 | IPPSAMP_LDLIBS="-lspeech" |
| 6679 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6680 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6681 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6682 | as_fn_error "bug in this script: unsupported IPP version |
| 6683 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6684 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6685 | |
| 6686 | if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6687 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6689 | as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR |
| 6690 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6691 | fi |
| 6692 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5 |
| 6694 | $as_echo "$IPPSAMP_DIR" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6695 | |
| 6696 | SAVED_CFLAGS="$CFLAGS" |
| 6697 | SAVED_LDFLAGS="$LDFLAGS" |
| 6698 | SAVED_LIBS="$LIBS" |
| 6699 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6700 | IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include" |
| 6701 | CFLAGS="$CFLAGS $IPPSAMP_INC" |
| 6702 | LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR" |
| 6703 | LIBS="$IPPSAMP_LDLIBS $LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6704 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5 |
| 6706 | $as_echo_n "checking Intel IPP USC usability... " >&6; } |
| 6707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6708 | /* end confdefs.h. */ |
| 6709 | #include <usc.h> |
| 6710 | |
| 6711 | int |
| 6712 | main () |
| 6713 | { |
| 6714 | extern USC_Fxns USC_G729AFP_Fxns; |
| 6715 | ; |
| 6716 | return 0; |
| 6717 | } |
| 6718 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6719 | if ac_fn_c_try_link "$LINENO"; then : |
| 6720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6721 | $as_echo "ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6722 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6723 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6724 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6725 | as_fn_error "failed |
| 6726 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6727 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6728 | rm -f core conftest.err conftest.$ac_objext \ |
| 6729 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6730 | |
| 6731 | CFLAGS="$SAVED_CFLAGS" |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6732 | LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS" |
| 6733 | LIBS="$IPP_LIBS $SAVED_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6734 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6735 | IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC" |
| 6736 | IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR" |
| 6737 | IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6738 | fi |
| 6739 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6740 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 6741 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 6742 | LIBS="$LIBS $IPP_LIBS" |
| 6743 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6744 | ac_build_mak_vars="$ac_build_mak_vars\n\ |
| 6745 | export IPP_CFLAGS=$IPP_CFLAGS\n\ |
| 6746 | export IPP_LDFLAGS=$IPP_LDFLAGS\n\ |
| 6747 | export IPP_LIBS=$IPP_LIBS" |
| 6748 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5 |
| 6750 | $as_echo "Skipping Intel IPP settings (not wanted)" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6751 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6752 | |
| 6753 | |
| 6754 | |
| 6755 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6756 | # Check whether --enable-ssl was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6757 | if test "${enable_ssl+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6758 | enableval=$enable_ssl; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6759 | if test "$enable_ssl" = "no"; then |
| 6760 | ac_no_ssl=1 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5 |
| 6762 | $as_echo "Checking if SSL support is disabled... yes" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6763 | fi |
| 6764 | |
| 6765 | else |
| 6766 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5 |
| 6768 | $as_echo "checking for OpenSSL installations.." >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6769 | |
| 6770 | |
| 6771 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6772 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" |
| 6773 | if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6774 | openssl_h_present=1 |
| 6775 | fi |
| 6776 | |
| 6777 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 6779 | $as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; } |
| 6780 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then : |
| 6781 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6782 | else |
| 6783 | ac_check_lib_save_LIBS=$LIBS |
| 6784 | LIBS="-lcrypto $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6786 | /* end confdefs.h. */ |
| 6787 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6788 | /* Override any GCC internal prototype to avoid an error. |
| 6789 | Use char because int might match the return type of a GCC |
| 6790 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6791 | #ifdef __cplusplus |
| 6792 | extern "C" |
| 6793 | #endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6794 | char ERR_load_BIO_strings (); |
| 6795 | int |
| 6796 | main () |
| 6797 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6798 | return ERR_load_BIO_strings (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6799 | ; |
| 6800 | return 0; |
| 6801 | } |
| 6802 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6803 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6804 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 6805 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6806 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6807 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6808 | rm -f core conftest.err conftest.$ac_objext \ |
| 6809 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6810 | LIBS=$ac_check_lib_save_LIBS |
| 6811 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 6813 | $as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; } |
| 6814 | if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6815 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 6816 | fi |
| 6817 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 |
| 6819 | $as_echo_n "checking for SSL_library_init in -lssl... " >&6; } |
| 6820 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then : |
| 6821 | $as_echo_n "(cached) " >&6 |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6822 | else |
| 6823 | ac_check_lib_save_LIBS=$LIBS |
| 6824 | LIBS="-lssl $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6826 | /* end confdefs.h. */ |
| 6827 | |
| 6828 | /* Override any GCC internal prototype to avoid an error. |
| 6829 | Use char because int might match the return type of a GCC |
| 6830 | builtin and then its argument prototype would still apply. */ |
| 6831 | #ifdef __cplusplus |
| 6832 | extern "C" |
| 6833 | #endif |
| 6834 | char SSL_library_init (); |
| 6835 | int |
| 6836 | main () |
| 6837 | { |
| 6838 | return SSL_library_init (); |
| 6839 | ; |
| 6840 | return 0; |
| 6841 | } |
| 6842 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6843 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6844 | ac_cv_lib_ssl_SSL_library_init=yes |
| 6845 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6846 | ac_cv_lib_ssl_SSL_library_init=no |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6847 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6848 | rm -f core conftest.err conftest.$ac_objext \ |
| 6849 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6850 | LIBS=$ac_check_lib_save_LIBS |
| 6851 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 6853 | $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } |
| 6854 | if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then : |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6855 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 6856 | fi |
| 6857 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6858 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5 |
| 6860 | $as_echo "OpenSSL library found, SSL support enabled" >&6; } |
Nanang Izzuddin | 9c7616f | 2009-10-28 06:09:15 +0000 | [diff] [blame] | 6861 | # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK |
| 6862 | #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6863 | $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h |
Nanang Izzuddin | ea6d3c4 | 2009-10-26 15:47:52 +0000 | [diff] [blame] | 6864 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6865 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 6867 | $as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; } |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6868 | fi |
| 6869 | |
| 6870 | fi |
| 6871 | |
| 6872 | |
| 6873 | |
| 6874 | # Check whether --enable-opencore_amrnb was given. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6875 | if test "${enable_opencore_amrnb+set}" = set; then : |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6876 | enableval=$enable_opencore_amrnb; |
| 6877 | if test "$enable_opencore_amrnb" = "no"; then |
| 6878 | ac_no_opencore_amrnb=1 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6879 | $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6880 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5 |
| 6882 | $as_echo "Checking if OpenCORE AMR-NB support is disabled... yes" >&6; } |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6883 | fi |
| 6884 | |
| 6885 | else |
| 6886 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR-NB installations.." >&5 |
| 6888 | $as_echo "checking for OpenCORE AMR-NB installations.." >&6; } |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6889 | |
| 6890 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6891 | ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default" |
| 6892 | if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = x""yes; then : |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6893 | opencore_amrnb_h_present=1 |
| 6894 | fi |
| 6895 | |
| 6896 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5 |
| 6898 | $as_echo_n "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; } |
| 6899 | if test "${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+set}" = set; then : |
| 6900 | $as_echo_n "(cached) " >&6 |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6901 | else |
| 6902 | ac_check_lib_save_LIBS=$LIBS |
| 6903 | LIBS="-lopencore-amrnb $LIBS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6905 | /* end confdefs.h. */ |
| 6906 | |
| 6907 | /* Override any GCC internal prototype to avoid an error. |
| 6908 | Use char because int might match the return type of a GCC |
| 6909 | builtin and then its argument prototype would still apply. */ |
| 6910 | #ifdef __cplusplus |
| 6911 | extern "C" |
| 6912 | #endif |
| 6913 | char Encoder_Interface_init (); |
| 6914 | int |
| 6915 | main () |
| 6916 | { |
| 6917 | return Encoder_Interface_init (); |
| 6918 | ; |
| 6919 | return 0; |
| 6920 | } |
| 6921 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6922 | if ac_fn_c_try_link "$LINENO"; then : |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6923 | ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes |
| 6924 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6925 | ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6926 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6927 | rm -f core conftest.err conftest.$ac_objext \ |
| 6928 | conftest$ac_exeext conftest.$ac_ext |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6929 | LIBS=$ac_check_lib_save_LIBS |
| 6930 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5 |
| 6932 | $as_echo "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; } |
| 6933 | if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = x""yes; then : |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6934 | opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb" |
| 6935 | fi |
| 6936 | |
| 6937 | if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5 |
| 6939 | $as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; } |
| 6940 | $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6941 | |
| 6942 | else |
| 6943 | ac_no_opencore_amrnb=1 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6944 | $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6945 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6946 | fi |
| 6947 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6948 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6949 | |
| 6950 | |
| 6951 | |
| 6952 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6953 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5 |
| 6955 | $as_echo_n "checking if select() needs correct nfds... " >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6956 | case $target in |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6957 | *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6958 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6960 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6961 | ;; |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6962 | *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6963 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 6965 | $as_echo "no (default)" >&6; } |
| 6966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
| 6967 | $as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6968 | ;; |
| 6969 | esac |
| 6970 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5 |
| 6972 | $as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6973 | case $target in |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6974 | *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6975 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6977 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6978 | ;; |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6979 | *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6980 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 6982 | $as_echo "no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6983 | ;; |
| 6984 | esac |
| 6985 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5 |
| 6987 | $as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6988 | case $target in |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6989 | *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6990 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6992 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6993 | ;; |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6994 | *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6995 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 6996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 6997 | $as_echo "no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6998 | ;; |
| 6999 | esac |
| 7000 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7001 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7002 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7003 | $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7004 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7005 | ;; |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7006 | *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7007 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
| 7009 | $as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7010 | ;; |
| 7011 | esac |
| 7012 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7013 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7014 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7015 | $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7016 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7017 | ;; |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7018 | *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7019 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
| 7021 | $as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7022 | ;; |
| 7023 | esac |
| 7024 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7025 | |
| 7026 | |
| 7027 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7028 | if test "$build" = "$host"; then |
| 7029 | ac_cross_compile= |
| 7030 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 7031 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7032 | fi |
| 7033 | ac_linux_poll=select |
| 7034 | |
| 7035 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7036 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7037 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7038 | case $target in |
| 7039 | *rtems*) |
| 7040 | ac_main_obj=main_rtems.o |
| 7041 | ;; |
| 7042 | *) |
| 7043 | ac_main_obj=main.o |
| 7044 | ;; |
| 7045 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7046 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7047 | |
| 7048 | ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7049 | cat >confcache <<\_ACEOF |
| 7050 | # This file is a shell script that caches the results of configure |
| 7051 | # tests run on this system so they can be shared between configure |
| 7052 | # scripts and configure runs, see configure's option --config-cache. |
| 7053 | # It is not useful on other systems. If it contains results you don't |
| 7054 | # want to keep, you may remove or edit it. |
| 7055 | # |
| 7056 | # config.status only pays attention to the cache file if you give it |
| 7057 | # the --recheck option to rerun configure. |
| 7058 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7059 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7060 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 7061 | # following values. |
| 7062 | |
| 7063 | _ACEOF |
| 7064 | |
| 7065 | # The following way of writing the cache mishandles newlines in values, |
| 7066 | # but we know of no workaround that is simple, portable, and efficient. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7067 | # So, we kill variables containing newlines. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7068 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 7069 | # and sets the high bit in the cache file unless we assign to the vars. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7070 | ( |
| 7071 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 7072 | eval ac_val=\$$ac_var |
| 7073 | case $ac_val in #( |
| 7074 | *${as_nl}*) |
| 7075 | case $ac_var in #( |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7076 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 7077 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7078 | esac |
| 7079 | case $ac_var in #( |
| 7080 | _ | IFS | as_nl) ;; #( |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7081 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 7082 | *) { eval $ac_var=; unset $ac_var;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7083 | esac ;; |
| 7084 | esac |
| 7085 | done |
| 7086 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7087 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7088 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 7089 | *${as_nl}ac_space=\ *) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7090 | # `set' does not quote correctly, so add quotes: double-quote |
| 7091 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7092 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7093 | "s/'/'\\\\''/g; |
| 7094 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7095 | ;; #( |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7096 | *) |
| 7097 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7098 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7099 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7100 | esac | |
| 7101 | sort |
| 7102 | ) | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7103 | sed ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7104 | /^ac_cv_env_/b end |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7105 | t clear |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7106 | :clear |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7107 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 7108 | t end |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7109 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 7110 | :end' >>confcache |
| 7111 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 7112 | if test -w "$cache_file"; then |
| 7113 | test "x$cache_file" != "x/dev/null" && |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7114 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 7115 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7116 | cat confcache >$cache_file |
| 7117 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 7119 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7120 | fi |
| 7121 | fi |
| 7122 | rm -f confcache |
| 7123 | |
| 7124 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7125 | # Let make expand exec_prefix. |
| 7126 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 7127 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7128 | DEFS=-DHAVE_CONFIG_H |
| 7129 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7130 | ac_libobjs= |
| 7131 | ac_ltlibobjs= |
| 7132 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 7133 | # 1. Remove the extension, and $U if already installed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7134 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7135 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7136 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 7137 | # will be set to the directory where LIBOBJS objects are built. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7138 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 7139 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7140 | done |
| 7141 | LIBOBJS=$ac_libobjs |
| 7142 | |
| 7143 | LTLIBOBJS=$ac_ltlibobjs |
| 7144 | |
| 7145 | |
| 7146 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7147 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7148 | : ${CONFIG_STATUS=./config.status} |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7149 | ac_write_fail=0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7150 | ac_clean_files_save=$ac_clean_files |
| 7151 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7152 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 7153 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 7154 | as_write_fail=0 |
| 7155 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7156 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7157 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7158 | # Run this file to recreate the current configuration. |
| 7159 | # Compiler output produced by configure, useful for debugging |
| 7160 | # configure, is in config.log if it exists. |
| 7161 | |
| 7162 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7163 | ac_cs_recheck=false |
| 7164 | ac_cs_silent=false |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7165 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7166 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 7167 | export SHELL |
| 7168 | _ASEOF |
| 7169 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 7170 | ## -------------------- ## |
| 7171 | ## M4sh Initialization. ## |
| 7172 | ## -------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7173 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7174 | # Be more Bourne compatible |
| 7175 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7176 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7177 | emulate sh |
| 7178 | NULLCMD=: |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7179 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7180 | # is contrary to our usage. Disable this feature. |
| 7181 | alias -g '${1+"$@"}'='"$@"' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7182 | setopt NO_GLOB_SUBST |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7183 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7184 | case `(set -o) 2>/dev/null` in #( |
| 7185 | *posix*) : |
| 7186 | set -o posix ;; #( |
| 7187 | *) : |
| 7188 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7189 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7190 | fi |
| 7191 | |
| 7192 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7193 | as_nl=' |
| 7194 | ' |
| 7195 | export as_nl |
| 7196 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 7197 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 7198 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 7199 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 7200 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 7201 | # but without wasting forks for bash or zsh. |
| 7202 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 7203 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 7204 | as_echo='print -r --' |
| 7205 | as_echo_n='print -rn --' |
| 7206 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 7207 | as_echo='printf %s\n' |
| 7208 | as_echo_n='printf %s' |
| 7209 | else |
| 7210 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 7211 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 7212 | as_echo_n='/usr/ucb/echo -n' |
| 7213 | else |
| 7214 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 7215 | as_echo_n_body='eval |
| 7216 | arg=$1; |
| 7217 | case $arg in #( |
| 7218 | *"$as_nl"*) |
| 7219 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 7220 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 7221 | esac; |
| 7222 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 7223 | ' |
| 7224 | export as_echo_n_body |
| 7225 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 7226 | fi |
| 7227 | export as_echo_body |
| 7228 | as_echo='sh -c $as_echo_body as_echo' |
| 7229 | fi |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 7230 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7231 | # The user is always right. |
| 7232 | if test "${PATH_SEPARATOR+set}" != set; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7233 | PATH_SEPARATOR=: |
| 7234 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 7235 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 7236 | PATH_SEPARATOR=';' |
| 7237 | } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7238 | fi |
| 7239 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7240 | |
| 7241 | # IFS |
| 7242 | # We need space, tab and new line, in precisely that order. Quoting is |
| 7243 | # there to prevent editors from complaining about space-tab. |
| 7244 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 7245 | # splitting by setting IFS to empty value.) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7246 | IFS=" "" $as_nl" |
| 7247 | |
| 7248 | # Find who we are. Look in the path if we contain no directory separator. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7249 | case $0 in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7250 | *[\\/]* ) as_myself=$0 ;; |
| 7251 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7252 | for as_dir in $PATH |
| 7253 | do |
| 7254 | IFS=$as_save_IFS |
| 7255 | test -z "$as_dir" && as_dir=. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7256 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 7257 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7258 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7259 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7260 | ;; |
| 7261 | esac |
| 7262 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 7263 | # in which case we are not to be found in the path. |
| 7264 | if test "x$as_myself" = x; then |
| 7265 | as_myself=$0 |
| 7266 | fi |
| 7267 | if test ! -f "$as_myself"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7268 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 7269 | exit 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7270 | fi |
| 7271 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7272 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 7273 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 7274 | # suppresses any "Segmentation fault" message there. '((' could |
| 7275 | # trigger a bug in pdksh 5.2.14. |
| 7276 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 7277 | do eval test x\${$as_var+set} = xset \ |
| 7278 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7279 | done |
| 7280 | PS1='$ ' |
| 7281 | PS2='> ' |
| 7282 | PS4='+ ' |
| 7283 | |
| 7284 | # NLS nuisances. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7285 | LC_ALL=C |
| 7286 | export LC_ALL |
| 7287 | LANGUAGE=C |
| 7288 | export LANGUAGE |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 7289 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7290 | # CDPATH. |
| 7291 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 7292 | |
| 7293 | |
| 7294 | # as_fn_error ERROR [LINENO LOG_FD] |
| 7295 | # --------------------------------- |
| 7296 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 7297 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 7298 | # script with status $?, using 1 if that was 0. |
| 7299 | as_fn_error () |
| 7300 | { |
| 7301 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 7302 | if test "$3"; then |
| 7303 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 7304 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 7305 | fi |
| 7306 | $as_echo "$as_me: error: $1" >&2 |
| 7307 | as_fn_exit $as_status |
| 7308 | } # as_fn_error |
| 7309 | |
| 7310 | |
| 7311 | # as_fn_set_status STATUS |
| 7312 | # ----------------------- |
| 7313 | # Set $? to STATUS, without forking. |
| 7314 | as_fn_set_status () |
| 7315 | { |
| 7316 | return $1 |
| 7317 | } # as_fn_set_status |
| 7318 | |
| 7319 | # as_fn_exit STATUS |
| 7320 | # ----------------- |
| 7321 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 7322 | as_fn_exit () |
| 7323 | { |
| 7324 | set +e |
| 7325 | as_fn_set_status $1 |
| 7326 | exit $1 |
| 7327 | } # as_fn_exit |
| 7328 | |
| 7329 | # as_fn_unset VAR |
| 7330 | # --------------- |
| 7331 | # Portably unset VAR. |
| 7332 | as_fn_unset () |
| 7333 | { |
| 7334 | { eval $1=; unset $1;} |
| 7335 | } |
| 7336 | as_unset=as_fn_unset |
| 7337 | # as_fn_append VAR VALUE |
| 7338 | # ---------------------- |
| 7339 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 7340 | # advantage of any shell optimizations that allow amortized linear growth over |
| 7341 | # repeated appends, instead of the typical quadratic growth present in naive |
| 7342 | # implementations. |
| 7343 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 7344 | eval 'as_fn_append () |
| 7345 | { |
| 7346 | eval $1+=\$2 |
| 7347 | }' |
| 7348 | else |
| 7349 | as_fn_append () |
| 7350 | { |
| 7351 | eval $1=\$$1\$2 |
| 7352 | } |
| 7353 | fi # as_fn_append |
| 7354 | |
| 7355 | # as_fn_arith ARG... |
| 7356 | # ------------------ |
| 7357 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 7358 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 7359 | # must be portable across $(()) and expr. |
| 7360 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 7361 | eval 'as_fn_arith () |
| 7362 | { |
| 7363 | as_val=$(( $* )) |
| 7364 | }' |
| 7365 | else |
| 7366 | as_fn_arith () |
| 7367 | { |
| 7368 | as_val=`expr "$@" || test $? -eq 1` |
| 7369 | } |
| 7370 | fi # as_fn_arith |
| 7371 | |
| 7372 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 7374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 7375 | as_expr=expr |
| 7376 | else |
| 7377 | as_expr=false |
| 7378 | fi |
| 7379 | |
| 7380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 7381 | as_basename=basename |
| 7382 | else |
| 7383 | as_basename=false |
| 7384 | fi |
| 7385 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 7387 | as_dirname=dirname |
| 7388 | else |
| 7389 | as_dirname=false |
| 7390 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7391 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7392 | as_me=`$as_basename -- "$0" || |
| 7393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 7394 | X"$0" : 'X\(//\)$' \| \ |
| 7395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7396 | $as_echo X/"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 7398 | s//\1/ |
| 7399 | q |
| 7400 | } |
| 7401 | /^X\/\(\/\/\)$/{ |
| 7402 | s//\1/ |
| 7403 | q |
| 7404 | } |
| 7405 | /^X\/\(\/\).*/{ |
| 7406 | s//\1/ |
| 7407 | q |
| 7408 | } |
| 7409 | s/.*/./; q'` |
| 7410 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7411 | # Avoid depending upon Character Ranges. |
| 7412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 7413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 7414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 7415 | as_cr_digits='0123456789' |
| 7416 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7417 | |
| 7418 | ECHO_C= ECHO_N= ECHO_T= |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7419 | case `echo -n x` in #((((( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7420 | -n*) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7421 | case `echo 'xy\c'` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7422 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7423 | xy) ECHO_C='\c';; |
| 7424 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 7425 | ECHO_T=' ';; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7426 | esac;; |
| 7427 | *) |
| 7428 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7429 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7430 | |
| 7431 | rm -f conf$$ conf$$.exe conf$$.file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7432 | if test -d conf$$.dir; then |
| 7433 | rm -f conf$$.dir/conf$$.file |
| 7434 | else |
| 7435 | rm -f conf$$.dir |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7436 | mkdir conf$$.dir 2>/dev/null |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7437 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7438 | if (echo >conf$$.file) 2>/dev/null; then |
| 7439 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 7440 | as_ln_s='ln -s' |
| 7441 | # ... but there are two gotchas: |
| 7442 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 7443 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 7444 | # In both cases, we have to default to `cp -p'. |
| 7445 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 7446 | as_ln_s='cp -p' |
| 7447 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 7448 | as_ln_s=ln |
| 7449 | else |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7450 | as_ln_s='cp -p' |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7451 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7452 | else |
| 7453 | as_ln_s='cp -p' |
| 7454 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7455 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 7456 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7457 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7458 | |
| 7459 | # as_fn_mkdir_p |
| 7460 | # ------------- |
| 7461 | # Create "$as_dir" as a directory, including parents if necessary. |
| 7462 | as_fn_mkdir_p () |
| 7463 | { |
| 7464 | |
| 7465 | case $as_dir in #( |
| 7466 | -*) as_dir=./$as_dir;; |
| 7467 | esac |
| 7468 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 7469 | as_dirs= |
| 7470 | while :; do |
| 7471 | case $as_dir in #( |
| 7472 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 7473 | *) as_qdir=$as_dir;; |
| 7474 | esac |
| 7475 | as_dirs="'$as_qdir' $as_dirs" |
| 7476 | as_dir=`$as_dirname -- "$as_dir" || |
| 7477 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7478 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 7479 | X"$as_dir" : 'X\(//\)$' \| \ |
| 7480 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 7481 | $as_echo X"$as_dir" | |
| 7482 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7483 | s//\1/ |
| 7484 | q |
| 7485 | } |
| 7486 | /^X\(\/\/\)[^/].*/{ |
| 7487 | s//\1/ |
| 7488 | q |
| 7489 | } |
| 7490 | /^X\(\/\/\)$/{ |
| 7491 | s//\1/ |
| 7492 | q |
| 7493 | } |
| 7494 | /^X\(\/\).*/{ |
| 7495 | s//\1/ |
| 7496 | q |
| 7497 | } |
| 7498 | s/.*/./; q'` |
| 7499 | test -d "$as_dir" && break |
| 7500 | done |
| 7501 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 7502 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 7503 | |
| 7504 | |
| 7505 | } # as_fn_mkdir_p |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7506 | if mkdir -p . 2>/dev/null; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7507 | as_mkdir_p='mkdir -p "$as_dir"' |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 7508 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7509 | test -d ./-p && rmdir ./-p |
| 7510 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 7511 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7512 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7513 | if test -x / >/dev/null 2>&1; then |
| 7514 | as_test_x='test -x' |
| 7515 | else |
| 7516 | if ls -dL / >/dev/null 2>&1; then |
| 7517 | as_ls_L_option=L |
| 7518 | else |
| 7519 | as_ls_L_option= |
| 7520 | fi |
| 7521 | as_test_x=' |
| 7522 | eval sh -c '\'' |
| 7523 | if test -d "$1"; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7524 | test -d "$1/."; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7525 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7526 | case $1 in #( |
| 7527 | -*)set "./$1";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7528 | esac; |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7529 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7530 | ???[sx]*):;;*)false;;esac;fi |
| 7531 | '\'' sh |
| 7532 | ' |
| 7533 | fi |
| 7534 | as_executable_p=$as_test_x |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7535 | |
| 7536 | # Sed expression to map a string onto a valid CPP name. |
| 7537 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 7538 | |
| 7539 | # Sed expression to map a string onto a valid variable name. |
| 7540 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 7541 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7542 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7543 | exec 6>&1 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7544 | ## ----------------------------------- ## |
| 7545 | ## Main body of $CONFIG_STATUS script. ## |
| 7546 | ## ----------------------------------- ## |
| 7547 | _ASEOF |
| 7548 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7549 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7550 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7551 | # Save the log message, to keep $0 and so on meaningful, and to |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7552 | # report actual input values of CONFIG_FILES etc. instead of their |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7553 | # values after options handling. |
| 7554 | ac_log=" |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 7555 | This file was extended by pjproject $as_me 1.x, which was |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7556 | generated by GNU Autoconf 2.65. Invocation command line was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7557 | |
| 7558 | CONFIG_FILES = $CONFIG_FILES |
| 7559 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 7560 | CONFIG_LINKS = $CONFIG_LINKS |
| 7561 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 7562 | $ $0 $@ |
| 7563 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7564 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 7565 | " |
| 7566 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7567 | _ACEOF |
| 7568 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7569 | case $ac_config_files in *" |
| 7570 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 7571 | esac |
| 7572 | |
| 7573 | case $ac_config_headers in *" |
| 7574 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 7575 | esac |
| 7576 | |
| 7577 | |
| 7578 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7579 | # Files that config.status was made for. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7580 | config_files="$ac_config_files" |
| 7581 | config_headers="$ac_config_headers" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7582 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7583 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7584 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7585 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7586 | ac_cs_usage="\ |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7587 | \`$as_me' instantiates files and other configuration actions |
| 7588 | from templates according to the current configuration. Unless the files |
| 7589 | and actions are specified as TAGs, all are instantiated by default. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7590 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7591 | Usage: $0 [OPTION]... [TAG]... |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7592 | |
| 7593 | -h, --help print this help, then exit |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7594 | -V, --version print version number and configuration settings, then exit |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7595 | --config print configuration, then exit |
| 7596 | -q, --quiet, --silent |
| 7597 | do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7598 | -d, --debug don't remove temporary files |
| 7599 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7600 | --file=FILE[:TEMPLATE] |
| 7601 | instantiate the configuration file FILE |
| 7602 | --header=FILE[:TEMPLATE] |
| 7603 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7604 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7605 | Configuration files: |
| 7606 | $config_files |
| 7607 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7608 | Configuration headers: |
| 7609 | $config_headers |
| 7610 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7611 | Report bugs to the package provider." |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7612 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7613 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7614 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7615 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7616 | ac_cs_version="\\ |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 7617 | pjproject config.status 1.x |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7618 | configured by $0, generated by GNU Autoconf 2.65, |
| 7619 | with options \\"\$ac_cs_config\\" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7620 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7621 | Copyright (C) 2009 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7622 | This config.status script is free software; the Free Software Foundation |
| 7623 | gives unlimited permission to copy, distribute and modify it." |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7624 | |
| 7625 | ac_pwd='$ac_pwd' |
| 7626 | srcdir='$srcdir' |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7627 | test -n "\$AWK" || AWK=awk |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7628 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7629 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7630 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7631 | # The default lists apply if the user does not specify any file. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7632 | ac_need_defaults=: |
| 7633 | while test $# != 0 |
| 7634 | do |
| 7635 | case $1 in |
| 7636 | --*=*) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7637 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 7638 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7639 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7640 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7641 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7642 | ac_option=$1 |
| 7643 | ac_optarg=$2 |
| 7644 | ac_shift=shift |
| 7645 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7646 | esac |
| 7647 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7648 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7649 | # Handling of the options. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7650 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7651 | ac_cs_recheck=: ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7652 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7653 | $as_echo "$ac_cs_version"; exit ;; |
| 7654 | --config | --confi | --conf | --con | --co | --c ) |
| 7655 | $as_echo "$ac_cs_config"; exit ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7656 | --debug | --debu | --deb | --de | --d | -d ) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7657 | debug=: ;; |
| 7658 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7659 | $ac_shift |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7660 | case $ac_optarg in |
| 7661 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 7662 | esac |
| 7663 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7664 | ac_need_defaults=false;; |
| 7665 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7666 | $ac_shift |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7667 | case $ac_optarg in |
| 7668 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 7669 | esac |
| 7670 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7671 | ac_need_defaults=false;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7672 | --he | --h) |
| 7673 | # Conflict between --help and --header |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7674 | as_fn_error "ambiguous option: \`$1' |
| 7675 | Try \`$0 --help' for more information.";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7676 | --help | --hel | -h ) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7677 | $as_echo "$ac_cs_usage"; exit ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7678 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 7679 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 7680 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7681 | |
| 7682 | # This is an error. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7683 | -*) as_fn_error "unrecognized option: \`$1' |
| 7684 | Try \`$0 --help' for more information." ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7685 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7686 | *) as_fn_append ac_config_targets " $1" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7687 | ac_need_defaults=false ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7688 | |
| 7689 | esac |
| 7690 | shift |
| 7691 | done |
| 7692 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7693 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7694 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7695 | if $ac_cs_silent; then |
| 7696 | exec 6>/dev/null |
| 7697 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 7698 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7699 | |
| 7700 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7701 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7702 | if \$ac_cs_recheck; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7703 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 7704 | shift |
| 7705 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 7706 | CONFIG_SHELL='$SHELL' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7707 | export CONFIG_SHELL |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7708 | exec "\$@" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7709 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7710 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7711 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7712 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7713 | exec 5>>config.log |
| 7714 | { |
| 7715 | echo |
| 7716 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 7717 | ## Running $as_me. ## |
| 7718 | _ASBOX |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7719 | $as_echo "$ac_log" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7720 | } >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7721 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7722 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7723 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7724 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7725 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7726 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7727 | |
| 7728 | # Handling of arguments. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7729 | for ac_config_target in $ac_config_targets |
| 7730 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7731 | case $ac_config_target in |
| 7732 | "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
| 7733 | "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
| 7734 | "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 7735 | "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
| 7736 | "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
| 7737 | "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 7738 | "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 7739 | "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7740 | "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 7741 | "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 7742 | "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 7743 | "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7744 | "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 7745 | "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7746 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7747 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7748 | esac |
| 7749 | done |
| 7750 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7751 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7752 | # If the user did not use the arguments to specify the items to instantiate, |
| 7753 | # then the envvar interface is used. Set only those that are not. |
| 7754 | # We use the long form for the default assignment because of an extremely |
| 7755 | # bizarre bug on SunOS 4.1.3. |
| 7756 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7757 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7758 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 7759 | fi |
| 7760 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7761 | # Have a temporary directory for convenience. Make it in the build tree |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7762 | # simply because there is no reason against having it here, and in addition, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7763 | # creating and moving files from /tmp can sometimes cause problems. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7764 | # Hook for its removal unless debugging. |
| 7765 | # Note that there is a small window in which the directory will not be cleaned: |
| 7766 | # after its creation but before its name has been assigned to `$tmp'. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7767 | $debug || |
| 7768 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7769 | tmp= |
| 7770 | trap 'exit_status=$? |
| 7771 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 7772 | ' 0 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7773 | trap 'as_fn_exit 1' 1 2 13 15 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7774 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7775 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7776 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7777 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7778 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7779 | test -n "$tmp" && test -d "$tmp" |
| 7780 | } || |
| 7781 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7782 | tmp=./conf$$-$RANDOM |
| 7783 | (umask 077 && mkdir "$tmp") |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7784 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7785 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7786 | # Set up the scripts for CONFIG_FILES section. |
| 7787 | # No need to generate them if there are no CONFIG_FILES. |
| 7788 | # This happens for instance with `./config.status config.h'. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7789 | if test -n "$CONFIG_FILES"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7790 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7791 | |
| 7792 | ac_cr=`echo X | tr X '\015'` |
| 7793 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 7794 | # But we know of no other shell where ac_cr would be empty at this |
| 7795 | # point, so we can use a bashism as a fallback. |
| 7796 | if test "x$ac_cr" = x; then |
| 7797 | eval ac_cr=\$\'\\r\' |
| 7798 | fi |
| 7799 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 7800 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 7801 | ac_cs_awk_cr='\r' |
| 7802 | else |
| 7803 | ac_cs_awk_cr=$ac_cr |
| 7804 | fi |
| 7805 | |
| 7806 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7807 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7808 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7809 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7810 | { |
| 7811 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 7812 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 7813 | echo "_ACEOF" |
| 7814 | } >conf$$subs.sh || |
| 7815 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 7816 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7817 | ac_delim='%!_!# ' |
| 7818 | for ac_last_try in false false false false false :; do |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7819 | . ./conf$$subs.sh || |
| 7820 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7821 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7822 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 7823 | if test $ac_delim_n = $ac_delim_num; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7824 | break |
| 7825 | elif $ac_last_try; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7826 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7827 | else |
| 7828 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7829 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7830 | done |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7831 | rm -f conf$$subs.sh |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7832 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7833 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7834 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7835 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7836 | sed -n ' |
| 7837 | h |
| 7838 | s/^/S["/; s/!.*/"]=/ |
| 7839 | p |
| 7840 | g |
| 7841 | s/^[^!]*!// |
| 7842 | :repl |
| 7843 | t repl |
| 7844 | s/'"$ac_delim"'$// |
| 7845 | t delim |
| 7846 | :nl |
| 7847 | h |
| 7848 | s/\(.\{148\}\)..*/\1/ |
| 7849 | t more1 |
| 7850 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 7851 | p |
| 7852 | n |
| 7853 | b repl |
| 7854 | :more1 |
| 7855 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7856 | p |
| 7857 | g |
| 7858 | s/.\{148\}// |
| 7859 | t nl |
| 7860 | :delim |
| 7861 | h |
| 7862 | s/\(.\{148\}\)..*/\1/ |
| 7863 | t more2 |
| 7864 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 7865 | p |
| 7866 | b |
| 7867 | :more2 |
| 7868 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7869 | p |
| 7870 | g |
| 7871 | s/.\{148\}// |
| 7872 | t delim |
| 7873 | ' <conf$$subs.awk | sed ' |
| 7874 | /^[^""]/{ |
| 7875 | N |
| 7876 | s/\n// |
| 7877 | } |
| 7878 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 7879 | rm -f conf$$subs.awk |
| 7880 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7881 | _ACAWK |
| 7882 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 7883 | for (key in S) S_is_set[key] = 1 |
| 7884 | FS = "" |
| 7885 | |
| 7886 | } |
| 7887 | { |
| 7888 | line = $ 0 |
| 7889 | nfields = split(line, field, "@") |
| 7890 | substed = 0 |
| 7891 | len = length(field[1]) |
| 7892 | for (i = 2; i < nfields; i++) { |
| 7893 | key = field[i] |
| 7894 | keylen = length(key) |
| 7895 | if (S_is_set[key]) { |
| 7896 | value = S[key] |
| 7897 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 7898 | len += length(value) + length(field[++i]) |
| 7899 | substed = 1 |
| 7900 | } else |
| 7901 | len += 1 + keylen |
| 7902 | } |
| 7903 | |
| 7904 | print line |
| 7905 | } |
| 7906 | |
| 7907 | _ACAWK |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7908 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7909 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7910 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 7911 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 7912 | else |
| 7913 | cat |
| 7914 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 7915 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7916 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7917 | |
| 7918 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 7919 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 7920 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 7921 | # (actually we leave an empty line to preserve line numbers). |
| 7922 | if test "x$srcdir" = x.; then |
| 7923 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 7924 | s/:*\$(srcdir):*/:/ |
| 7925 | s/:*\${srcdir}:*/:/ |
| 7926 | s/:*@srcdir@:*/:/ |
| 7927 | s/^\([^=]*=[ ]*\):*/\1/ |
| 7928 | s/:*$// |
| 7929 | s/^[^=]*=[ ]*$// |
| 7930 | }' |
| 7931 | fi |
| 7932 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7933 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7934 | fi # test -n "$CONFIG_FILES" |
| 7935 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7936 | # Set up the scripts for CONFIG_HEADERS section. |
| 7937 | # No need to generate them if there are no CONFIG_HEADERS. |
| 7938 | # This happens for instance with `./config.status Makefile'. |
| 7939 | if test -n "$CONFIG_HEADERS"; then |
| 7940 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 7941 | BEGIN { |
| 7942 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7943 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 7944 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 7945 | # here-document in config.status, that substitutes the proper values into |
| 7946 | # config.h.in to produce config.h. |
| 7947 | |
| 7948 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 7949 | # handling of long lines. |
| 7950 | ac_delim='%!_!# ' |
| 7951 | for ac_last_try in false false :; do |
| 7952 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 7953 | if test -z "$ac_t"; then |
| 7954 | break |
| 7955 | elif $ac_last_try; then |
| 7956 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 7957 | else |
| 7958 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 7959 | fi |
| 7960 | done |
| 7961 | |
| 7962 | # For the awk script, D is an array of macro values keyed by name, |
| 7963 | # likewise P contains macro parameters if any. Preserve backslash |
| 7964 | # newline sequences. |
| 7965 | |
| 7966 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 7967 | sed -n ' |
| 7968 | s/.\{148\}/&'"$ac_delim"'/g |
| 7969 | t rset |
| 7970 | :rset |
| 7971 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 7972 | t def |
| 7973 | d |
| 7974 | :def |
| 7975 | s/\\$// |
| 7976 | t bsnl |
| 7977 | s/["\\]/\\&/g |
| 7978 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7979 | D["\1"]=" \3"/p |
| 7980 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 7981 | d |
| 7982 | :bsnl |
| 7983 | s/["\\]/\\&/g |
| 7984 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7985 | D["\1"]=" \3\\\\\\n"\\/p |
| 7986 | t cont |
| 7987 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 7988 | t cont |
| 7989 | d |
| 7990 | :cont |
| 7991 | n |
| 7992 | s/.\{148\}/&'"$ac_delim"'/g |
| 7993 | t clear |
| 7994 | :clear |
| 7995 | s/\\$// |
| 7996 | t bsnlc |
| 7997 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 7998 | d |
| 7999 | :bsnlc |
| 8000 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 8001 | b cont |
| 8002 | ' <confdefs.h | sed ' |
| 8003 | s/'"$ac_delim"'/"\\\ |
| 8004 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 8005 | |
| 8006 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8007 | for (key in D) D_is_set[key] = 1 |
| 8008 | FS = "" |
| 8009 | } |
| 8010 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 8011 | line = \$ 0 |
| 8012 | split(line, arg, " ") |
| 8013 | if (arg[1] == "#") { |
| 8014 | defundef = arg[2] |
| 8015 | mac1 = arg[3] |
| 8016 | } else { |
| 8017 | defundef = substr(arg[1], 2) |
| 8018 | mac1 = arg[2] |
| 8019 | } |
| 8020 | split(mac1, mac2, "(") #) |
| 8021 | macro = mac2[1] |
| 8022 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 8023 | if (D_is_set[macro]) { |
| 8024 | # Preserve the white space surrounding the "#". |
| 8025 | print prefix "define", macro P[macro] D[macro] |
| 8026 | next |
| 8027 | } else { |
| 8028 | # Replace #undef with comments. This is necessary, for example, |
| 8029 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 8030 | # on some systems where configure will not decide to define it. |
| 8031 | if (defundef == "undef") { |
| 8032 | print "/*", prefix defundef, macro, "*/" |
| 8033 | next |
| 8034 | } |
| 8035 | } |
| 8036 | } |
| 8037 | { print } |
| 8038 | _ACAWK |
| 8039 | _ACEOF |
| 8040 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8041 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 8042 | fi # test -n "$CONFIG_HEADERS" |
| 8043 | |
| 8044 | |
| 8045 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 8046 | shift |
| 8047 | for ac_tag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8048 | do |
| 8049 | case $ac_tag in |
| 8050 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 8051 | esac |
| 8052 | case $ac_mode$ac_tag in |
| 8053 | :[FHL]*:*);; |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8054 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8055 | :[FH]-) ac_tag=-:-;; |
| 8056 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 8057 | esac |
| 8058 | ac_save_IFS=$IFS |
| 8059 | IFS=: |
| 8060 | set x $ac_tag |
| 8061 | IFS=$ac_save_IFS |
| 8062 | shift |
| 8063 | ac_file=$1 |
| 8064 | shift |
| 8065 | |
| 8066 | case $ac_mode in |
| 8067 | :L) ac_source=$1;; |
| 8068 | :[FH]) |
| 8069 | ac_file_inputs= |
| 8070 | for ac_f |
| 8071 | do |
| 8072 | case $ac_f in |
| 8073 | -) ac_f="$tmp/stdin";; |
| 8074 | *) # Look for the file first in the build tree, then in the source tree |
| 8075 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 8076 | # because $ac_f cannot contain `:'. |
| 8077 | test -f "$ac_f" || |
| 8078 | case $ac_f in |
| 8079 | [\\/$]*) false;; |
| 8080 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 8081 | esac || |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8082 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8083 | esac |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8084 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 8085 | as_fn_append ac_file_inputs " '$ac_f'" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8086 | done |
| 8087 | |
| 8088 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 8089 | # use $as_me), people would be surprised to read: |
| 8090 | # /* config.h. Generated by config.status. */ |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8091 | configure_input='Generated from '` |
| 8092 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 8093 | `' by configure.' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8094 | if test x"$ac_file" != x-; then |
| 8095 | configure_input="$ac_file. $configure_input" |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8096 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 8097 | $as_echo "$as_me: creating $ac_file" >&6;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8098 | fi |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8099 | # Neutralize special characters interpreted by sed in replacement strings. |
| 8100 | case $configure_input in #( |
| 8101 | *\&* | *\|* | *\\* ) |
| 8102 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 8103 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 8104 | *) ac_sed_conf_input=$configure_input;; |
| 8105 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8106 | |
| 8107 | case $ac_tag in |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8108 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 8109 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8110 | esac |
| 8111 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8112 | esac |
| 8113 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8114 | ac_dir=`$as_dirname -- "$ac_file" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8115 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8116 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 8117 | X"$ac_file" : 'X\(//\)$' \| \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8118 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8119 | $as_echo X"$ac_file" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8120 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 8121 | s//\1/ |
| 8122 | q |
| 8123 | } |
| 8124 | /^X\(\/\/\)[^/].*/{ |
| 8125 | s//\1/ |
| 8126 | q |
| 8127 | } |
| 8128 | /^X\(\/\/\)$/{ |
| 8129 | s//\1/ |
| 8130 | q |
| 8131 | } |
| 8132 | /^X\(\/\).*/{ |
| 8133 | s//\1/ |
| 8134 | q |
| 8135 | } |
| 8136 | s/.*/./; q'` |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8137 | as_dir="$ac_dir"; as_fn_mkdir_p |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8138 | ac_builddir=. |
| 8139 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8140 | case "$ac_dir" in |
| 8141 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 8142 | *) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8143 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8144 | # A ".." for each directory in $ac_dir_suffix. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8145 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8146 | case $ac_top_builddir_sub in |
| 8147 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 8148 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 8149 | esac ;; |
| 8150 | esac |
| 8151 | ac_abs_top_builddir=$ac_pwd |
| 8152 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 8153 | # for backward compatibility: |
| 8154 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8155 | |
| 8156 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8157 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8158 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8159 | ac_top_srcdir=$ac_top_builddir_sub |
| 8160 | ac_abs_top_srcdir=$ac_pwd ;; |
| 8161 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8162 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8163 | ac_top_srcdir=$srcdir |
| 8164 | ac_abs_top_srcdir=$srcdir ;; |
| 8165 | *) # Relative name. |
| 8166 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 8167 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 8168 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8169 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8170 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 8171 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8172 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8173 | case $ac_mode in |
| 8174 | :F) |
| 8175 | # |
| 8176 | # CONFIG_FILE |
| 8177 | # |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8178 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8179 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8180 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8181 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8182 | # If the template does not know about datarootdir, expand it. |
| 8183 | # FIXME: This hack should be removed a few years after 2.60. |
| 8184 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8185 | ac_sed_dataroot=' |
| 8186 | /datarootdir/ { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8187 | p |
| 8188 | q |
| 8189 | } |
| 8190 | /@datadir@/p |
| 8191 | /@docdir@/p |
| 8192 | /@infodir@/p |
| 8193 | /@localedir@/p |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8194 | /@mandir@/p' |
| 8195 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8196 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 8197 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 8199 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8200 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8201 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8202 | ac_datarootdir_hack=' |
| 8203 | s&@datadir@&$datadir&g |
| 8204 | s&@docdir@&$docdir&g |
| 8205 | s&@infodir@&$infodir&g |
| 8206 | s&@localedir@&$localedir&g |
| 8207 | s&@mandir@&$mandir&g |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8208 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8209 | esac |
| 8210 | _ACEOF |
| 8211 | |
| 8212 | # Neutralize VPATH when `$srcdir' = `.'. |
| 8213 | # Shell code in configure.ac might set extrasub. |
| 8214 | # FIXME: do we really want to maintain this feature? |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8215 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8216 | ac_sed_extra="$ac_vpsub |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8217 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8218 | _ACEOF |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8219 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8220 | :t |
| 8221 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8222 | s|@configure_input@|$ac_sed_conf_input|;t t |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8223 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8224 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8225 | s&@srcdir@&$ac_srcdir&;t t |
| 8226 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 8227 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 8228 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 8229 | s&@builddir@&$ac_builddir&;t t |
| 8230 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 8231 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 8232 | $ac_datarootdir_hack |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8233 | " |
| 8234 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 8235 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8236 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8237 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 8238 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 8239 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8240 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8241 | which seems to be undefined. Please make sure it is defined." >&5 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8242 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8243 | which seems to be undefined. Please make sure it is defined." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8244 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8245 | rm -f "$tmp/stdin" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8246 | case $ac_file in |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8247 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 8248 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 8249 | esac \ |
| 8250 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8251 | ;; |
| 8252 | :H) |
| 8253 | # |
| 8254 | # CONFIG_HEADER |
| 8255 | # |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8256 | if test x"$ac_file" != x-; then |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8257 | { |
| 8258 | $as_echo "/* $configure_input */" \ |
| 8259 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 8260 | } >"$tmp/config.h" \ |
| 8261 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 8262 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 8263 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 8264 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8265 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8266 | rm -f "$ac_file" |
| 8267 | mv "$tmp/config.h" "$ac_file" \ |
| 8268 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8269 | fi |
| 8270 | else |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8271 | $as_echo "/* $configure_input */" \ |
| 8272 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 8273 | || as_fn_error "could not create -" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8274 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8275 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8276 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8277 | |
| 8278 | esac |
| 8279 | |
| 8280 | done # for ac_tag |
| 8281 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8282 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8283 | as_fn_exit 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8284 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8285 | ac_clean_files=$ac_clean_files_save |
| 8286 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8287 | test $ac_write_fail = 0 || |
| 8288 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 8289 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8290 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8291 | # configure is writing to config.log, and then calls config.status. |
| 8292 | # config.status does its own redirection, appending to config.log. |
| 8293 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 8294 | # by configure, so config.status won't be able to write to it; its |
| 8295 | # output is simply discarded. So we exec the FD to /dev/null, |
| 8296 | # effectively closing config.log, so it can be properly (re)opened and |
| 8297 | # appended to by config.status. When coming back to configure, we |
| 8298 | # need to make the FD available again. |
| 8299 | if test "$no_create" != yes; then |
| 8300 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8301 | ac_config_status_args= |
| 8302 | test "$silent" = yes && |
| 8303 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8304 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8305 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8306 | exec 5>>config.log |
| 8307 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 8308 | # would make configure fail if this is the last instruction. |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8309 | $ac_cs_success || as_fn_exit $? |
| 8310 | fi |
| 8311 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 8312 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 8313 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 8314 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8315 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8316 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8317 | |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8319 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8320 | Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h. |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8321 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8322 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8323 | - 'user.mak' |
| 8324 | - 'pjlib/include/pj/config_site.h' |
| 8325 | |
| 8326 | The next step now is to run 'make dep' and 'make'. |
| 8327 | " >&5 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame^] | 8328 | $as_echo " |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8329 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8330 | Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h. |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8331 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8332 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8333 | - 'user.mak' |
| 8334 | - 'pjlib/include/pj/config_site.h' |
| 8335 | |
| 8336 | The next step now is to run 'make dep' and 'make'. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8337 | " >&6; } |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8338 | |